diff --git a/.env.example b/.env.example new file mode 100644 index 00000000..6d794978 --- /dev/null +++ b/.env.example @@ -0,0 +1,15 @@ +## +## signNow API SDK configuration +## + +## Replace these dummy values with your actual credentials except API_HOST +SIGNNOW_API_HOST=https://api.signnow.com +SIGNNOW_API_BASIC_TOKEN=c2lnbk5vdyBBUEkgc2FtcGxlIEFwcCB2MS4wCg== +SIGNNOW_API_USERNAME=user@signnow.com +SIGNNOW_API_PASSWORD=coolest_pazzw0rd + +# Absolute or relative (starts with .) path to the directory +# where the downloaded files will be stored (make sure you have write permissions to this directory) +# +# Default: ./storage/downloads +SIGNNOW_DOWNLOADS_DIR=./storage/downloads diff --git a/.env.test.dist b/.env.test.dist new file mode 100644 index 00000000..b15ed96b --- /dev/null +++ b/.env.test.dist @@ -0,0 +1,9 @@ +## +## signNow API SDK configuration for tests running +## +SIGNNOW_API_HOST=http://0.0.0.0:8086 +SIGNNOW_API_BASIC_TOKEN=c2lnbk5vdyBBUEkgc2FtcGxlIEFwcCB2MS4wCg== +SIGNNOW_API_USERNAME=user@signnow.com +SIGNNOW_API_PASSWORD=coolest_pazzw0rd + +SIGNNOW_DOWNLOADS_DIR=./storage/downloads diff --git a/.esdoc.json b/.esdoc.json deleted file mode 100644 index 82569ac8..00000000 --- a/.esdoc.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "source": "./lib", - "excludes": [ - "webhook", - "enumerations", - "folder", - "common" - ], - "destination": "./docs", - "plugins": [ - { - "name": "esdoc-standard-plugin", - "option": { - "lint": { - "enable": true - }, - "coverage": { - "enable": true - }, - "typeInference": { - "enable": true - }, - "brand": { - "logo": "./docs/image/logo.svg", - "title": "SignNow API client", - "description": "SignNow REST Service Wrapper", - "repository": "https://github.com/signnow/SignNowNodeSDK", - "site": "https://www.signnow.com/", - "author": "SignNow Team" - }, - "test": { - "source": "./test/", - "interfaces": [ - "describe", - "it" - ], - "includes": [ - "test\\.js$" - ] - } - } - }, - { - "name": "esdoc-inject-style-plugin", - "option": { - "enable": true, - "styles": [ - "./docs/css/custom.css" - ] - } - }, - { - "name": "esdoc-node" - }, - { - "name": "esdoc-ecmascript-proposal-plugin", - "option": { - "all": true - } - } - ] -} diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index d8f8d469..00000000 --- a/.eslintignore +++ /dev/null @@ -1 +0,0 @@ -docs diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index 5df527e5..00000000 --- a/.eslintrc.json +++ /dev/null @@ -1,214 +0,0 @@ -{ - "env": { - "commonjs": true, - "es6": true, - "node": true, - "mocha": true - }, - "extends": "eslint:recommended", - "parserOptions": { - "ecmaVersion": 2018 - }, - "rules": { - "array-bracket-newline": [ - "error", - { - "multiline": true, - "minItems": 2 - } - ], - "array-bracket-spacing": [ - "error", - "always", - { - "objectsInArrays": true, - "arraysInArrays": true, - "singleValue": false - } - ], - "array-element-newline": [ - "error", - { - "multiline": true, - "minItems": 2 - } - ], - "arrow-parens": [ - "error", - "as-needed" - ], - "block-spacing": "error", - "callback-return": "error", - "comma-dangle": [ - "error", - "always-multiline" - ], - "computed-property-spacing": "error", - "curly": "error", - "default-case": "error", - "dot-location": [ - "error", - "property" - ], - "dot-notation": "error", - "eol-last": [ - "error", - "always" - ], - "eqeqeq": [ - "error", - "always" - ], - "func-call-spacing": [ - "error", - "never" - ], - "global-require": "error", - "guard-for-in": "error", - "handle-callback-err": [ - "error", - "^(err|error)$" - ], - "indent": [ - "error", - 2 - ], - "key-spacing": [ - "error", - { - "beforeColon": false, - "afterColon": true - } - ], - "keyword-spacing": [ - "error", { - "before": true, - "after": true - } - ], - "linebreak-style": [ - "error", - "unix" - ], - "lines-around-comment": [ - "error", - { - "beforeBlockComment": true, - "afterBlockComment": false, - "beforeLineComment": true, - "afterLineComment": false - } - ], - "no-buffer-constructor": "error", - "no-console": "off", - "no-duplicate-imports": [ - "error", - { - "includeExports": true - } - ], - "no-empty-function": "error", - "no-eval": "error", - "no-multi-spaces": "error", - "no-param-reassign": "error", - "no-shadow": "error", - "no-template-curly-in-string": "error", - "no-trailing-spaces": "error", - "no-unused-expressions": [ - "error", - { - "allowShortCircuit": true - } - ], - "no-use-before-define": [ - "error", - { - "functions": false - } - ], - "no-useless-concat": "error", - "no-var": "error", - "no-whitespace-before-property": "error", - "object-curly-newline": [ - "error", - { - "ObjectExpression": { - "multiline": true, - "minProperties": 2 - }, - "ObjectPattern": { - "multiline": true, - "minProperties": 3 - }, - "ImportDeclaration": { - "multiline": true, - "minProperties": 3 - }, - "ExportDeclaration": "never" - } - ], - "object-curly-spacing": [ - "error", - "always", - { - "arraysInObjects": true, - "objectsInObjects": true - } - ], - "object-property-newline": [ - "error", - { - "allowMultiplePropertiesPerLine": false, - "allowAllPropertiesOnSameLine": false - } - ], - "object-shorthand": [ - "error", - "always" - ], - "prefer-arrow-callback": [ - "error", - { - "allowNamedFunctions": true, - "allowUnboundThis": false - } - ], - "prefer-const": "error", - "prefer-destructuring": "error", - "prefer-template": "error", - "quote-props": [ - "error", - "as-needed" - ], - "quotes": [ - "error", - "single" - ], - "semi": [ - "error", - "always" - ], - "semi-spacing": "error", - "sort-imports": "error", - "space-before-blocks": [ - "error", - { - "functions": "always", - "keywords": "always", - "classes": "always" - } - ], - "space-before-function-paren": [ - "error", - { - "anonymous": "never", - "named": "always", - "asyncArrow": "always" - } - ], - "spaced-comment": "error", - "space-in-parens": "error", - "strict": "error", - "template-curly-spacing": "error" - } -} diff --git a/.github/workflows/secure-build.yml b/.github/workflows/secure-build.yml new file mode 100644 index 00000000..22726fcc --- /dev/null +++ b/.github/workflows/secure-build.yml @@ -0,0 +1,15 @@ +name: Secure Build Workflow + +on: + push: + branches: + - main + pull_request: + types: [ opened, synchronize, reopened ] + +jobs: + secure-build: + # The stable version specified here is intentional. + # Please consult with the Security team before making any changes. + uses: pdffiller/security_checks/.github/workflows/secure-build.yml@stable + secrets: inherit diff --git a/.gitignore b/.gitignore index 3151d8f9..595a77b3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,18 +1,12 @@ -logs -*.log -pids -*.pid -*.seed -lib-cov -coverage -.grunt -build/Release -.lock-wscript -node_modules -test-settings.js -*.DS_Store -launch.json -.vscode -.history -.idea -.npmrc +/.idea +/.fleet +/.vscode +/.netbeans +/node_modules +/target +.env +.env.backup +.env.test +.env.production +.env.development +package-lock.json diff --git a/.huskyrc.json b/.huskyrc.json deleted file mode 100644 index 0baac9d8..00000000 --- a/.huskyrc.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "hooks": { - "pre-commit": "npm run lint" - } -} diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 4480896b..00000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,187 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - -## [v1.8.2] - 2021-04-29 - -### Fixed - -- Fix *freeform invite* in `document.invite` - -## [v1.8.1] - 2021-04-27 - -### Changed - -- Updated [CHANGELOG.md](https://github.com/signnow/SignNowNodeSDK/blob/master/CHANGELOG.md) - -## [v1.8.0] - 2021-04-26 - -### Added - -- Implemented *Create embedded signing invites for a document without sending emails.* feature. See gow to apply it in [Documentation](https://signnow.github.io/SignNowNodeSDK/class/lib/embedded/index.js~Embedded.html#static-method-createInvite), [Short example](https://github.com/signnow/SignNowNodeSDK/blob/master/README.md#embedded-create-invites), [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/embeddedCreateInvites.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/embedded-create-invites.js). -- Implemented *Create a link for the embedded invite.* feature. See gow to apply it in [Documentation](https://signnow.github.io/SignNowNodeSDK/class/lib/embedded/index.js~Embedded.html#static-method-generateInviteLink), [Short example](https://github.com/signnow/SignNowNodeSDK/blob/master/README.md#embedded-generate-invite), [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/embeddedGenerateInviteLink.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/embedded-generate-link.js). -- Implemented *Delete embedded invites for a document.* feature. See gow to apply it in [Documentation](https://signnow.github.io/SignNowNodeSDK/class/lib/embedded/index.js~Embedded.html#static-method-cancelInvites), [Short example](https://github.com/signnow/SignNowNodeSDK/blob/master/README.md#embedded-cancel-invites), [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/embeddedCancelInvites.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/embedded-cancel-invites.js). - -## [v1.7.0] - 2019-12-24 - -### Added - -- Implemented *Document Signers* feature. See gow to apply it in [Documentation](https://signnow.github.io/SignNowNodeSDK/class/lib/document/index.js~Document.html#static-method-signers), [Short example](https://github.com/signnow/SignNowNodeSDK/blob/master/README.md#document-signers), [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/documentSigners.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/document-signers.js). -- Implemented *View Template Routing Details* feature. See how to apply it in [Documentation](https://signnow.github.io/SignNowNodeSDK/class/lib/template/index.js~Template.html#static-method-getRoutingDetails), [Short example](https://github.com/signnow/SignNowNodeSDK/blob/master/README.md#routing-details), [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/getRoutingDetails.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/routing-details.js). -- Implemented *Update Template Routing Details* feature. See how to apply it in [Documentation](https://signnow.github.io/SignNowNodeSDK/class/lib/template/index.js~Template.html#static-method-updateRoutingDetails), [Short example](https://github.com/signnow/SignNowNodeSDK/blob/master/README.md#update-routing-details), [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/updateTemplateRoutingDetails.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/update-routing-details.js). -- Implemented *Download Document Group* feature. See how to apply it in [Documentation](https://signnow.github.io/SignNowNodeSDK/class/lib/document-group/index.js~Template.html#static-method-download), [Short example](https://github.com/signnow/SignNowNodeSDK/blob/master/README.md#download-document-group), [Full example of zipped download](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/downloadMergedDocumentGroup.js), [Full example of merged download](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/downloadZippedDocumentGroup.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/download-document-group.js). -- Implemented *Send Verification Email* feature. See how to utilize it in [README](https://github.com/signnow/SignNowNodeSDK/blob/master/README.md#verify-email) and [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/verify-email.js). -- Implemented *Send Verification Email* feature. See how to apply it in [Documentation](https://signnow.github.io/SignNowNodeSDK/class/lib/template/index.js~Template.html#verify-email), [Short example](https://github.com/signnow/SignNowNodeSDK/blob/master/README.md#verify-email), [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/sendVerificationEmail.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/verify-email.js). -- Implemented *Cancel Document Group Invite* feature. See how to apply it in [Documentation](https://signnow.github.io/SignNowNodeSDK/class/lib/document-group/index.js~DocumentGroup.html#static-method-cancelInvite), [Short example](https://github.com/signnow/SignNowNodeSDK/blob/master/README.md#cancel-document-group-invite), [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/cancelDocumentGroupInvite.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/cancel-documentgroup-invite.js). - -### Changed - -- Added optional abilities to send verification email or start 30 days free trial in *Create User* feature. -- Added ability to set phone number into *Create User* feature. -- Added for *View Template Routing Details* feature a [CLI Applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/duplicate-template.js). -- Added optional ability to download document archived in zip for *Download Document* feature. See how to apply it in [Short example](https://github.com/signnow/SignNowNodeSDK/blob/master/README.md#download-document), [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/downloadDocumentWithAttachments.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/download-document.js). - -## [v1.6.0] - 2019-09-24 - -### Added - -- Implemented *Cancel Free Form Invite* feature with documentation and example in [README](https://github.com/signnow/SignNowNodeSDK/blob/master/README.md#cancel-freeform-invite) -- Created CLI [Applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/cancel-freeform-invite.js) for *Cancel Free Form Invite* feature -- Implemented *Cancel Field Invite* feature with documentation and example in [README](https://github.com/signnow/SignNowNodeSDK/blob/master/README.md#cancel-field-invite) -- Created CLI [Applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/cancel-field-invite.js) for *Cancel Field Invite* feature -- Implemented *View Document Group Template* feature with documentation and example in [README](https://github.com/signnow/SignNowNodeSDK/blob/master/README.md#view-documentgroup-template) -- Created CLI [Applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/view-documentgroup-template.js) for *View Document Group Template* feature -- Implemented *View Document Group* feature with documentation and example in [README](https://github.com/signnow/SignNowNodeSDK/blob/master/README.md#view-document-group) -- Created CLI [Applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/view-document-group.js) for *View Document Group* feature -- Implemented *Create Invite to Sign Document Group Template* feature with documentation and example in [README](https://github.com/signnow/SignNowNodeSDK/blob/master/README.md#invite-documentgroup-template) -- Created CLI [Applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/invite-documentgroup-template.js) for *Create Invite to Sign Document Group Template* feature -- Documented *Share Document* feature in [*Document*](https://signnow.github.io/SignNowNodeSDK/class/lib/document.js~Document.html) class -- Created [Applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/share-document.js) for testing of creation download link with *Share Document* method -- Added *promisify* utility to common utilities with usage [example](https://github.com/signnow/SignNowNodeSDK/blob/master/README.md#promisify) - -### Changed - -- `role_id` parameter in signer configurations of *Create Document Field Invite* feature made optional for easier invite creation -- Added optional ability to download document with history in *Download Document* feature -- Updated documentation of *Download Document* feature -- Updated example of *Download Document* feature utilization in [README](https://github.com/signnow/SignNowNodeSDK/blob/master/README.md#download-document) -- Added handling of specific 404 error response from API -- Removed validation for existing signatures and free from invites of documents intended for Document Group creation -- Changed internal implementation of `cancelInvite` method in *Document* class to use new *Cancel Field Invite* feature under the hood -- Updated the [example](https://github.com/signnow/SignNowNodeSDK/blob/master/README.md#cancel-field-invite) of *Cancel Field Invite* feature usage -- Added optional ability to cancel document invites during deletion in *Remove Document* feature -- Applied *promisify* utility to CLI applets -- Added links to CLI applets and full examples into [README](https://github.com/signnow/SignNowNodeSDK/blob/master/README.md) -- Moved CLI applets from `samples/applets` to `bin` directory - -### Deprecated - -- `cancelInvite` method in *Document* class is about to be replaced with `cancelFieldInvite` to better fit its purpose - -## [v1.5.0] - 2019-08-21 - -### Added - -- Implemented *Refresh Access Token* method with documentation and example in [README](https://github.com/signnow/SignNowNodeSDK/blob/master/README.md#refresh-token) -- Implemented *Remove Template* method with documentation and example in [README](https://github.com/signnow/SignNowNodeSDK/blob/master/README.md#remove-template) -- Updated documentation with *Get Document History* feature description -- Implemented *Create Document Group Template* feature with documentation and example in [README](https://github.com/signnow/SignNowNodeSDK/blob/master/README.md#create-document-group-template) -- Created [Applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/create-document-group-template.js) for testing creating of document group template with *Create Document Group Template* method -- Implemented *Create Document Group Invite* feature with documentation and example in [README](https://github.com/signnow/SignNowNodeSDK/blob/master/README.md#document-group-invite) -- Created [Applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/document-group-invite.js) for testing creating of document group invite with *Create Document Group Invite* method - -### Changed - -- Added validation in *Create Signing Link* method: a document must have at least one role that does not have a fixed e-mail to create an invite link -- Added optional ability to remove original documents after merging documents in *Merge Documents* feature -- Updated example of merging documents in [README](https://github.com/signnow/SignNowNodeSDK/blob/master/README.md#merge-documents) - -## [v1.4.0] - 2019-08-08 - -### Added - -- Implemented *Document Group Create* method with ability to create document group -- Documented [*documentGroup*](https://signnow.github.io/SignNowNodeSDK/class/lib/documentGroup.js~DocumentGroup.html) methods -- Documented [*link*](https://signnow.github.io/SignNowNodeSDK/class/lib/link.js~Link.html) methods -- Added example of *Create Document Group* into [README](https://github.com/signnow/SignNowNodeSDK/blob/master/README.md#create-document-group) -- Added example of *Create Signing Link* usage into [README](https://github.com/signnow/SignNowNodeSDK/blob/master/README.md#create-signing-link) -- Created [Applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/create-document-group.js) for testing creating of document group with *Create Document Group* method -- Created [Applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/create-signing-link.js) for testing creation of url signing link with *Create Signing Link* method -- Created [Applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/verify-access-token.js) for verifying access token with *Verify Access Token* method -- Created [Applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/user-info.js) for testing getting a detailed information about user with *Retrieve User Info* method -- Created [Applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/document-list.js) for testing getting a document list of specific user with *Retrieve User Document List* method - -## [v1.3.1] - 2019-08-01 - -### Changed - -- Updated [README](https://github.com/signnow/SignNowNodeSDK/blob/master/README.md) - -## [v1.3.0] - 2019-08-01 - -### Added - -- Implemented *Remove Document* method -- Added example how to utilize *Remove Document* method into [README](https://github.com/signnow/SignNowNodeSDK/blob/master/README.md#remove-document) -- Implemented *Template Invite* method with ability to send field and freeform invites -- Added examples of *Template Field Invite* and *Template Freeform Invite* into [README](https://github.com/signnow/SignNowNodeSDK/blob/master/README.md#template-field-invite) -- Documented [*template*](https://signnow.github.io/SignNowNodeSDK/class/lib/template.js~Template.html) methods -- Extended the description of update method in [*document*](https://signnow.github.io/SignNowNodeSDK/class/lib/document.js~Document.html) module -- Created [Applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/extract-fields.js) for testing *Upload Document with Field Extraction* method -- Created [Applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/view-document.js) for testing *View Document* method -- Created [Applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/download-document.js) for testing *Download Document* method -- Created [Applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/remove-document.js) for testing *Remove Document* method -- Created [Applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/create-template.js) for testing *Create Template* method -- Created [Applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/template-field-invite.js) for testing field invite with *Template Invite* method -- Created [Applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/template-freeform-invite.js) for testing freeform invite with *Template Invite* method - -### Changed - -- Added optional ability to remove original document after template creation in *Create Template* method - -### Fixed - -- Made fix of download document bug related to encoding of binary data - -## [v1.2.0] - 2019-07-18 - -### Added - -- Added `.odt`, `.rtf`, `.jpg`, `.jpeg`, `.gif`, `.bmp`, `.xml`, `.xls`, `.xlsx`, `.ppt`, `.pptx` to the list of acceptable file formats for document uploading -- Generated and deployed [API Reference](https://signnow.github.io/SignNowNodeSDK/) for API Client -- Added example of Creating Field Invite in [README](https://github.com/signnow/SignNowNodeSDK/blob/master/README.md) -- Documented [*user*](https://signnow.github.io/SignNowNodeSDK/class/lib/user.js~User.html) methods -- Documented [*oauth2*](https://signnow.github.io/SignNowNodeSDK/class/lib/oauth2.js~OAuth2.html) methods -- Partially documented [*document*](https://signnow.github.io/SignNowNodeSDK/class/lib/document.js~Document.html) methods -- Created [Applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/create-user.js) for testing *Create User* method -- Created [Applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/get-access-token.js) for testing *Request Token* method -- Created [Applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/create-document.js) for testing *Create Document* method -- Created [Applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/update-document.js) for testing *Update Document* method -- Created [Applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/create-field-invite.js) for testing *Creation of Field Invite* with *Document Invite* method -- Created [Applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/create-freeform-invite.js) for testing *Creation of Freeform Invite* with *Document Invite* method -- Added [Change Log](https://github.com/signnow/SignNowNodeSDK/blob/master/CHANGELOG.md) -- Added [License](https://github.com/signnow/SignNowNodeSDK/blob/master/LICENSE.md) -- Integrated code linter ([ESLint](https://eslint.org/)) -- Integrated doc generator ([ESDoc](https://esdoc.org/)) - -### Changed - -- Updated examples, links and contact information in [README](https://github.com/signnow/SignNowNodeSDK/blob/master/README.md) -- Created and applied common request options builder -- Created and applied common response handler builder -- Created and applied common error handler builder - -### Fixed - -- Made fix of feature bug related to `Content-Length` header in requests - -[v1.7.0]: https://github.com/signnow/SignNowNodeSDK/compare/v1.6.0...v1.7.0 -[v1.6.0]: https://github.com/signnow/SignNowNodeSDK/compare/v1.5.0...v1.6.0 -[v1.5.0]: https://github.com/signnow/SignNowNodeSDK/compare/v1.4.0...v1.5.0 -[v1.4.0]: https://github.com/signnow/SignNowNodeSDK/compare/v1.3.1...v1.4.0 -[v1.3.1]: https://github.com/signnow/SignNowNodeSDK/compare/v1.3.0...v1.3.1 -[v1.3.0]: https://github.com/signnow/SignNowNodeSDK/compare/v1.2.0...v1.3.0 -[v1.2.0]: https://github.com/signnow/SignNowNodeSDK/compare/v1.1.4...v1.2.0 diff --git a/LICENSE.md b/LICENSE.md index ca1d04e5..1b4a8031 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ # The MIT License -Copyright (c) 2003-2019 airSlate Inc. [LICENSE](https://github.com/signnow/SignNowNodeSDK/blob/master/LICENSE.md) +Copyright (c) 2003-present airSlate Inc. [LICENSE](https://github.com/signnow/SignNowNodeSDK/blob/master/LICENSE.md) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..9b65cb57 --- /dev/null +++ b/Makefile @@ -0,0 +1,39 @@ +.PHONY: install mock-up mock-stop mock-restart tests static + +.SILENT: ; # no need for @ +.ONESHELL: ; # recipes execute in same shell +.EXPORT_ALL_VARIABLES: ; # send all vars to shell + +SHELL := /bin/bash +APP_DIR ?= ${PWD} + +install: + npm install + +test-env: + cp .env.test.dist .env.test + +# Raise WireMock docker container to mock signNow API +mock-up: + . ${APP_DIR}/tests/resources/wiremock-config.env && \ + docker run -d --rm \ + -p $$WIREMOCK_PORT:8080 \ + -v $$WIREMOCK_ROOT_DIR:/home/wiremock/mappings \ + --name wiremock \ + $$WIREMOCK_IMAGE + +# Stop WireMock docker container +mock-stop: + docker stop wiremock + +# Stop/Start WireMock docker container +mock-restart: mock-stop mock-up + docker ps + +# Run all the tests +tests: test-env + npm run test + +#Run eslint +static: + npm run eslint diff --git a/README.md b/README.md index bfd8c2f4..a67141a9 100644 --- a/README.md +++ b/README.md @@ -1,1112 +1,50 @@ -# The Official SignNow API client v1.8.2 +# signNow API NODE.JS SDK +## v3.0.0 -SignNow Node.js REST API Wrapper +[![Node.js Version](https://img.shields.io/badge/supported->=20-blue?logo=node.js)](https://nodejs.org/) -[![License](https://img.shields.io/github/license/signnow/SignNowNodeSDK)](https://github.com/signnow/SignNowNodeSDK/blob/master/LICENSE.md) -[![Node version support](https://img.shields.io/node/v/@signnow/api-client)](#) -[![Snyk vulnerabilities for npm package](https://img.shields.io/snyk/vulnerabilities/npm/@signnow/api-client)](#) -[![NPM package version](https://img.shields.io/npm/v/@signnow/api-client)](https://www.npmjs.com/package/@signnow/api-client) -[![Twitter Follow](https://img.shields.io/twitter/follow/signnow?style=social)](https://twitter.com/signnow?ref_src=https%3A%2F%2Fgithub.com%2Fsignnow%2FSignNowNodeSDK) - -### Table of Contents - -1. [About SignNow](#about-signnow) -2. [API Contact Information](#api-contact-info) -3. [API and Application](#api-and-app) -4. [Installation](#installation) -5. [Documentation](#documentation) -6. [Examples](#examples) - * [User](#user) - * [Create a User](#create-user) - * [Send Verification Email](#verify-email) - * [Retrieve User Information](#get-user) - * [OAuth 2.0](#oauth2) - * [Request Access Token](#get-token) - * [Verify Access Token](#verify-token) - * [Refresh Access Token](#refresh-token) - * [Document](#document) - * [Retrieve a List of the User’s Documents](#list-documents) - * [Retrieve a Document Resource](#get-document) - * [Download a Collapsed Document](#download-document) - * [Upload Document](#upload-document) - * [Upload File & Extract Fields](#extract-fields) - * [Update Document (add fields)](#update-document) - * [Create Invite to Sign a Document](#field-invite) - * [Create Free Form Invite](#freeform-invite) - * [Cancel Field Invite to Sign a Document](#cancel-field-invite) - * [Cancel Free Form Invite](#cancel-freeform-invite) - * [Create a One-time Use Download URL](#share-document) - * [Merge Existing Documents](#merge-documents) - * [Get Document History](#get-history) - * [Remove Document](#remove-document) - * [Links](#links) - * [Create signing link](#create-signing-link) - * [Enumerations](#enumerations) - * [Add Enumeration Field to a Document](#add-enumeration) - * [Add Enumeration Options to the Field](#enumeration-options) - * [Template](#template) - * [Create a Template](#create-template) - * [Create a Document from a Template](#copy-template) - * [Create Invite to Sign a Template](#template-field-invite) - * [Create Free Form Invite from Template](#template-freeform-invite) - * [Remove Template](#remove-template) - * [View Routing Details](#routing-details) - * [Update Routing Details](#update-routing-details) - * [Folder](#folder) - * [Returns a list of folders](#list-folders) - * [Returns a list of documents inside a folder](#list-documents-in-folder) - * [Document Group](#document-group) - * [Create Document Group](#create-document-group) - * [View Document Group](#view-document-group) - * [Create Invite to Sign a Document Group](#document-group-invite) - * [Cancel Invite to Sign a Document Group](#cancel-document-group-invite) - * [Download Document Group](#download-document-group) - * [Document Group Template](#document-group-template) - * [Create Document Group Template](#create-document-group-template) - * [View Document Group Template](#view-documentgroup-template) - * [Create Invite to Sign a Document Group Template](#invite-documentgroup-template) - * [Webhook](#webhook) - * [Returns a list of Webhooks](#list-webhooks) - * [Create a Webhook](#create-webhook) - * [Embedded](#embedded) - * [Create embedded signing invites for a document without sending emails](#embedded-create-invites) - * [Create a link for the embedded invite.](#embedded-generate-invite) - * [Delete embedded invites for a document.](#embedded-cancel-invites) - * [Promisify methods](#promisify) -7. [Unit Tests](#unit-tests) -8. [License](#license) -9. [Additional Contact Information](#contacts) - * [Support](#support) - * [Sales](#sales) - -### About SignNow - -[SignNow](https://www.signnow.com/) is a powerful web-based e-signature solution that streamlines the signing process and overall document flow for businesses of any size. SignNow offers SaaS as well as public and private cloud deployment options using the same underlying API. With SignNow you can easily sign, share and manage documents in compliance with international data laws and industry-specific regulations. SignNow enables you to collect signatures from partners, employees and customers from any device within minutes. - -### API Contact Information - -If you have questions about the SignNow API, please visit [https://docs.signnow.com](https://docs.signnow.com) or email [api@signnow.com](mailto:api@signnow.com). - -See additional contact information at the bottom. - -### API and Application - -Resources | Sandbox | Production -------------- | ------------- | ------------- -API: | **api-eval.signnow.com:443** | **api.signnow.com:443** -Application: | [https://app-eval.signnow.com](https://app-eval.signnow.com) | [https://app.signnow.com](https://app.signnow.com) -Entry page: | [https://eval.signnow.com](https://eval.signnow.com) | - -## Installation - -`@signnow/api-client` supports node.js **v6.4.0** or later. - -To install the latest version of `@signnow/api-client` run: +### Requirements +- Node.js 20 or higher +### Installation +Get SDK code ```bash -npm install @signnow/api-client -``` - -## Documentation - -See API reference in our [Documentation](https://signnow.github.io/SignNowNodeSDK/). - -## Examples - -To run the examples you will need an API key. You can get one here [https://www.signnow.com/api](https://www.signnow.com/api). For a full list of accepted parameters, refer to the SignNow REST Endpoints API guide: [https://docs.signnow.com](https://docs.signnow.com). - -Every resource is accessed via your api client instance: - -```javascript -const api = require('@signnow/api-client')({ - credentials: 'ENCODED_CLIENT_CREDENTIALS', - production: false, // if false uses eval server -}); -``` - -Every resource returns two parameters. The first param contains any errors and the second contains the results. - -### User - -#### Create a User - -By default verification email is not sent. To send it set `verifyEmail` option to `true`. - -```javascript -api.user.create({ - email: 'john@domain.com', - password: 'your password', - first_name: 'John', - last_name: 'Wayne', - number: '123-456-789', - options: { verifyEmail: true } // false by default -}, (err, res) => { - // handle error or process response data -}); -``` - -More: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/createUser.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/create-user.js) - -#### Send Verification Email - -```javascript -api.user.verifyEmail({ - email: 'john@domain.com', -}, (err, res) => { - // handle error or process response data -}); -``` - -More: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/sendVerificationEmail.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/verify-email.js) - -#### Send Verification Email - -```javascript -api.user.verifyEmail({ - email: 'john@domain.com', -}, (err, res) => { - // handle error or process response data -}); -``` - -More: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/sendVerificationEmail.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/verify-email.js) - -#### Retrieve User Information - -```javascript -api.user.retrieve({ - token: 'your auth token', -}, (err, res) => { - // handle error or process response data -}); -``` - -More: [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/user-info.js) - -### OAuth 2.0 - -#### Request Access Token - -```javascript -api.oauth2.requestToken({ - username: 'username', - password: 'password', -}, (err, res) => { - // handle error or process response data -}); -``` - -More: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/requestAccessToken.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/get-access-token.js) - -#### Verify Access Token - -```javascript -api.oauth2.verify({ - token: 'your auth token', -}, (err, res) => { - // handle error or process response data -}); -``` - -More: [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/verify-access-token.js) - -#### Refresh Access Token - -```javascript -api.oauth2.refreshToken({ - refresh_token: 'your refresh token', -}, (err, res) => { - // handle error or process response data -}); -``` - -More: [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/refresh-token.js) - -### Document - -#### Retrieve a List of the User’s Documents - -```javascript -api.document.list({ - token: 'your auth token', -}, (err, res) => { - // handle error or process response data -}); -``` - -More: [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/document-list.js) - -#### Retrieve a Document Resource - -```javascript -api.document.view({ - token: 'your auth token', - id: 'document id', -}, (err, res) => { - // handle error or process response data -}); -``` - -More: [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/view-document.js) - -#### Download a Collapsed Document - -By default document is downloaded without history or attachments. To download it with history set `withHistory` option to `true`. To download it with attachments set `withAttachments` option to `true`. - -```javascript -api.document.download({ - token: 'your auth token', - id: 'document id', - options: { - withAttachments: true, // false by default - withHistory: true, // false by default - }, -}, (err, res) => { - // handle error or process response data -}); -``` - -More: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/downloadDocument.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/download-document.js) - -#### Upload Document - -```javascript -api.document.create({ - token: 'your auth token', - filepath: 'path to file', -}, (err, res) => { - // handle error or process response data -}); -``` - -More: [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/create-document.js) - -#### Upload File & Extract Fields - -```javascript -api.document.fieldextract({ - token: 'your auth token', - filepath: 'path to file', -}, (err, res) => { - // handle error or process response data -}); -``` - -More: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/uploadDocumentWithFieldExtract.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/extract-fields.js) - -#### Update Document (add fields) - -```javascript -const fields = { - texts: [ - { - size: 8, - x: 61, - y: 72, - page_number: 0, - font: 'Arial', - data: 'sample text', - line_height: 9.075, - }, - ], -} - -api.document.update({ - token: 'your auth token', - id: 'document id', - fields, -}, (err, res) => { - // handle error or process response data -}); -``` - -More: [Add signature field example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/addSignatureField.js), [Add text field example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/addTextField.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/update-document.js) - -#### Create Invite to Sign a Document - -```javascript -const fieldInvite = { - from: 'EMAIL_OF_SENDER', - to: [ - { - email: 'EMAIL_OF_SIGNER', - role: 'Signer 1', - order: 1, - reassign: '0', - decline_by_signature: '0', - reminder: 4, - expiration_days: 27, - subject: 'Field invite Signer1', - message: 'Message', - }, - ], -}; - -api.document.invite({ - data: { - ...fieldInvite, - }, - id: 'DOCUMENT_ID_GOES_HERE', - token: 'YOUR_AUTH_TOKEN', -}, (err, res) => { - // handle error or process response data -}); -``` - -More: [Invite to sign example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/sendDocumentSignatureInviteWithOneRole.js), [Invite with payment request example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/requestPayment.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/create-field-invite.js) - -#### Create Free Form Invite - -```javascript -api.document.invite({ - token: 'your auth token', - id: 'document id', - data: { - from: 'email address', - to: 'email address', - }, -}, (err, res) => { - // handle error or process response data -}); -``` - -More: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/sendDocumentFreeformInvite.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/create-freeform-invite.js) - -#### Cancel Field Invite to Sign a Document - -```javascript -api.document.cancelFieldInvite({ - token: 'your auth token', - id: 'document id', -}, (err, res) => { - // handle error or process response data -}); -``` - -#### Cancel Free Form Invite - -```javascript -api.document.cancelFreeFormInvite({ - token: 'your auth token', - id: 'id of invite', -}, (err, res) => { - // handle error or process response data -}); -``` - -#### Create a One-time Use Download URL - -```javascript -api.document.share({ - token: 'your auth token', - id: 'document id', -}, (err, res) => { - // handle error or process response data -}); -``` - -More: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/shareDocument.js) - -#### Merge Existing Documents - -By default original documents are not removed after merging. To remove original documents set `removeOriginalDocuments` option to `true`. - -```javascript -api.document.merge({ - token: 'your auth token', - name: 'the merged doc', - document_ids: [ - '84a18d12bf7473ea3dd0e4dd1cdcded6ba6281aa', - 'a71d963c49f33176e90c5827069c422616b1500c', - ], - options: { - removeOriginalDocuments: true, // false by default - }, -}, (err, res) => { - // handle error or process response data -}); -``` - -More: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/mergeDocuments.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/merge-documents.js) - -#### Get Document History - -```javascript -api.document.history({ - token: 'your auth token', - id: 'document id', -}, (err, res) => { - // handle error or process response data -}); -``` - -More: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/getDocumentHistory.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/document-history.js) - -#### Remove Document - -By default document invites are not cancelled during deletion. To cancel all document invites set `cancelInvites` option to `true`. - -```javascript -api.document.remove({ - token: 'your auth token', - id: 'document id', - options: { - cancelInvites: true, // false by default - }, -}, (err, res) => { - // handle error or process response data -}); -``` - -More: [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/remove-document.js) - -### Links - -#### Create Signing Link - -```javascript -api.link.create({ - token: 'your auth token', - document_id: 'document or template id', -}, (err, res) => { - // handle error or process response data -}); -``` - -More: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/createSigningLink.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/create-signing-link.js) - -### Enumerations - -#### Add Enumeration Field to a Document - -```javascript -api.enumerations.addField({ - token: 'your auth token', - document_id: 'document id', - x: 150, - y: 200, - width: 200, - height: 50, - page_number: 0, - role: 'buyer', - required: true, - label: 'Clothing Brand', -}, (err, res) => { - // handle error or process response data -}); -``` - -#### Add Enumeration Options to the Field - -```javascript -api.enumerations.addOptions({ - token: 'your auth token', - enumeration_options: [ - { - enumeration_id: '8a3501896160b12d4ef7507a81b2f0998b8137b1', - data: 'Active', - }, - { - enumeration_id: '8a3501896160b12d4ef7507a81b2f0998b8137b1', - data: 'Old Navy', - }, - { - enumeration_id: '8a3501896160b12d4ef7507a81b2f0998b8137b1', - data: 'Volcom', - }, - ], -}, (err, res) => { - // handle error or process response data -}); -``` - -### Template - -#### Create a Template - -By default original document is not removed after template creation. To remove original document set `removeOriginalDocument` option to `true`. - -```javascript -api.template.create({ - token: 'your auth token', - document_id: 'document id', - document_name: 'my template', - options: { - removeOriginalDocument: true, // false by default - }, -}, (err, res) => { - // handle error or process response data -}); -``` - -More: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/createTemplate.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/create-template.js) - -#### Create a Document from a Template - -```javascript -api.template.duplicate({ - token: 'your auth token', - id: 'document id', - name: 'my template', -}, (err, res) => { - // handle error or process response data -}); -``` - -More: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/createDocumentFromTemplate.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/duplicate-template.js) - -#### Create Invite to Sign a Template - -```javascript -const fieldInvite = { - from: 'EMAIL_OF_SENDER', - to: [ - { - email: 'EMAIL_OF_SIGNER', - role: 'Signer 1', - order: 1, - reassign: '0', - decline_by_signature: '0', - reminder: 4, - expiration_days: 27, - subject: 'Field invite Signer1', - message: 'Message', - }, - ], -}; - -api.template.invite({ - data: { - ...fieldInvite, - }, - id: 'TEMPLATE_ID_GOES_HERE', - token: 'YOUR_AUTH_TOKEN', -}, (err, res) => { - // handle error or process response data -}); -``` - -More: [Full one role example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/sendTemplateSignatureInviteWithOneRole%20copy.js), [Full two roles example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/sendTemplateSignatureInviteWithMultipleRole.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/template-field-invite.js) - -#### Create Free Form Invite from Template - -```javascript -api.template.invite({ - token: 'YOUR_AUTH_TOKEN', - id: 'TEMPLATE_ID_GOES_HERE', - data: { - from: 'EMAIL_OF_SENDER', - to: 'EMAIL_OF_SIGNER', - }, -}, (err, res) => { - // handle error or process response data -}); -``` - -More: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/sendTemplateFreeformInvite.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/template-freeform-invite.js) - -#### Remove Template - -```javascript -api.template.remove({ - token: 'your auth token', - id: 'template id', -}, (err, res) => { - // handle error or process response data -}); -``` - -More: [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/remove-template.js) - -#### View Routing Details - -```javascript -api.template.getRoutingDetails({ - token: 'your auth token', - id: 'template id', -}, (err, res) => { - // handle error or process response data -}); -``` - -More: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/getRoutingDetails.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/routing-details.js) - -#### Update Routing Details - -```javascript -const routingDetails = { - template_data: [ - { - default_email: '', - inviter_role: false, - name: 'Signer 1', - role_id: 'SIGNER 1 ROLE ID', - signing_order: 1, - decline_by_signature: true, - }, - { - default_email: 'signer2@mail.com', - inviter_role: false, - name: 'Signer 2', - role_id: 'SIGNER 2 ROLE ID', - signing_order: 2, - }, - ], - cc: [ - 'cc1@mail.com', - 'cc2@mail.com', - ], - cc_step: [ - { - email: 'cc1@mail.com', - step: 1, - name: 'CC 1', - }, - { - email: 'cc2@mail.com', - step: 2, - name: 'CC 2', - }, - ], - invite_link_instructions: 'Invite link signing instruction', -}; - -api.template.updateRoutingDetails({ - data: routingDetails, - token: 'your auth token', - id: 'template id', -}, (err, res) => { - // handle error or process response data -}); -``` - -More: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/updateTemplateRoutingDetails.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/update-routing-details.js) - -### Folder - -#### Returns a list of folders - -```javascript -api.folder.list({ - token: 'your auth token', -}, (err, res) => { - // handle error or process response data -}); -``` - -#### Returns a list of documents inside a folder - -Filters | Values -------------- | ------------- -```signing-status``` | ```waiting-for-me```, ```waiting-for-others```, ```signed```, ```pending``` -```document-updated``` | ```new Date()``` -```document-created``` | ```new Date()``` - -Sort | Values -------------- | ------------- -```document-name``` | ```asc```/```desc``` -```updated``` | ```asc```/```desc``` -```created``` | ```asc```/```desc``` - -```javascript -api.folder.documents({ - token: 'your auth token', - id: 'folder id', - filter: [ - { - 'signing-status': 'pending', - }, - ], - sort: { - 'document-name': 'asc', - }, -}, (err, res) => { - // handle error or process response data -}); -``` - -### Document Group - -#### Create Document Group - -```javascript -api.documentGroup.create({ - token: 'your auth token', - group_name: 'my document group name', - ids: [ - // put document or template IDs here - '84a18d12bf7473ea3dd0e4dd1cdcded6ba6281aa', - 'a71d963c49f33176e90c5827069c422616b1500c', - ], -}, (err, res) => { - // handle error or process response data -}); -``` - -More: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/createDocumentGroup.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/create-document-group.js) - -#### View Document Group - -```javascript -api.documentGroup.view({ - token: 'Your auth token', - id: 'Document Group ID', -}, (err, res) => { - // handle error or process response data -}); -``` - -More: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/viewDocumentGroup.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/view-document-group.js) - -#### Create Invite to Sign a Document Group - -```javascript -const data = { - invite_steps: [ - { - order: 1, - invite_emails: [ - { - email: 'Email of Signer 1', - subject: 'Signer 1 Needs Your Signature', - message: 'Signer 1 invited you to sign Document 1', - expiration_days: 30, - reminder: 0, - }, - ], - invite_actions: [ - { - email: 'Email of Signer 1', - role_name: 'Signer 1', - action: 'sign', - document_id: 'Document 1 ID', - allow_reassign: '0', - decline_by_signature: '0', - }, - ], - }, - { - order: 2, - invite_emails: [ - { - email: 'Email of Signer 2', - subject: 'Signer 2 Needs Your Signature', - message: 'Signer 2 invited you to sign Document 2', - expiration_days: 30, - reminder: 0, - }, - ], - invite_actions: [ - { - email: 'Email of Signer 2', - role_name: 'Signer 2', - action: 'sign', - document_id: 'Document 2 ID', - allow_reassign: '0', - decline_by_signature: '0', - }, - ], - }, - ], -}; - -api.documentGroup.invite({ - token: 'your auth token', - id: 'Document Group ID', - data, -}, (err, res) => { - // handle error or process response data -}); -``` - -More: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/createDocumentGroupInvite.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/document-group-invite.js) - -#### Cancel Invite to Sign a Document Group - -```javascript -api.documentGroup.cancelInvite({ - token: 'your auth token', - id: 'Document Group ID', - inviteId: 'Document Group invite ID' -}, (err, res) => { - // handle error or process response data -}); -``` - -More: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/cancelDocumentGroupInvite.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/cancel-documentgroup-invite.js) - -#### Download Document Group - -By default Document Group is downloaded without history as .zip archive with PDF files. To download it as a signle merged PDF set `type` to `merged`. To download document group with history set `with_history` to `after_each_document` or `after_merged_pdf`. - -```javascript -api.documentGroup.download({ - token: 'your auth token', - id: 'document group ID', - type: 'merged', // 'zip' by default - with_history: 'after_each_document', // 'no' by default -}, (err, res) => { - // handle error or process response data -}); -``` - -More: [Zipped Download Example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/downloadZippedDocumentGroup.js), [Merged Download Example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/downloadMergedDocumentGroup.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/download-document-group.js) - -### Document Group Template - -#### Create Document Group Template - -```javascript -const routing_details = { - invite_steps: [ - { - order: 1, - invite_emails: [ - { - email: 'Email of Signer 1', - subject: 'Signer 1 Needs Your Signature', - message: 'Signer 1 invited you to sign Document 1', - expiration_days: 30, - reminder: 0, - hasSignActions: true, - allow_reassign: '0', - }, - ], - invite_actions: [ - { - email: 'Email of Signer 1', - role_name: 'Signer 1', - action: 'sign', - document_id: 'b6f4f61a5662c5c4385b02421397b76dc6d9c8af', - document_name: 'Document 1', - allow_reassign: '0', - decline_by_signature: '0', - }, - ], - }, - { - order: 2, - invite_emails: [ - { - email: 'Email of Signer 2', - subject: 'Signer 2 Needs Your Signature', - message: 'Signer 2 invited you to sign Document 2', - expiration_days: 30, - reminder: 0, - hasSignActions: true, - allow_reassign: '0', - }, - ], - invite_actions: [ - { - email: 'Email of Signer 2', - role_name: 'Signer 2', - action: 'sign', - document_id: '14f02aac643770f22a384fe4e7a6b1ed6d15a9b8', - document_name: 'Document 2', - allow_reassign: '0', - decline_by_signature: '0', - }, - ], - }, - ], - include_email_attachments: 0, -}; - -api.documentGroupTemplate.create({ - token: 'your auth token', - template_ids: [ - '84a18d12bf7473ea3dd0e4dd1cdcded6ba6281aa', - 'a71d963c49f33176e90c5827069c422616b1500c', - ], - template_group_name: 'Document group template name', - routing_details, -}, (err, res) => { - // handle error or process response data -}); -``` - -More: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/createDocumentGroupTemplate.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/create-document-group-template.js) - -#### View Document Group Template - -```javascript -api.documentGroupTemplate.view({ - token: 'Your auth token', - id: 'Document Group Template ID', -}, (err, res) => { - // handle error or process response data -}); -``` - -More: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/viewDocumentGroupTemplate.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/view-documentgroup-template.js) - -#### Create Invite to Sign a Document Group Template - -```javascript -api.documentGroupTemplate.invite({ - token: 'Your auth token', - id: 'Document Group Template ID' -}, (err, res) => { - // handle error or process response data -}); -``` - -More: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/inviteDocumentGroupTemplate.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/invite-documentgroup-template.js) - -### Webhook - -#### Returns a list of Webhooks - -```javascript -signnow.webhook.list({ - token: 'your auth token', -}, (err, res) => { - // handle error or process response data -}); -``` - -#### Create a Webhook - -Events | Description -------------- | ------------- -```document.create``` | Webhook is triggered when a document is uploaded to users account in SignNow -```document.update``` | Webhook is triggered when a document is updated (fields added, text added, signature added, etc.) -```document.delete``` | Webhook is triggered when a document is deleted from -```invite.create``` | Webhook is triggered when an invitation to a SignNow document is created. -```invite.update``` | Webhook is triggered when an invite to SignNow document is updated. Ex. A signer has signed the document. - -```javascript -api.webhook.create({ - token: 'your auth token', - event: 'document.create', - callback_url: 'http://www.domain.com/path', -}, (err, res) => { - // handle error or process response data -}); +git clone git@github.com:signnow/SignNowNodeSDK.git ``` - - -### Embedded - -#### Create embedded signing invites for a document without sending emails - -```javascript -signnow.embedded.createInvite({ - token: 'access token', - document_id: 'document id', - invites: [ - { - email: 'email of signer', - role_id: 'role id', - order: 1, - auth_method: 'password', - }, - ], -}, (err, res) => { - // handle error or process response data -}); -``` - -#### Creates a link for the embedded invite. - -```javascript -signnow.embedded.generateInviteLink({ - token: 'access token', - document_id: 'document id', - field_invite_unique_id: 'field invite unique id', - link_expiration: 15, - auth_method: 'password', -}, (err, res) => { - // handle error or process response data -}); +Install dependencies +```bash +npm install ``` -#### Deletes embedded invites for a document. - -```javascript -signnow.embedded.cancelInvites({ - token: 'access token', - document_id: 'document id', -}, (err, res) => { - // handle error or process response data -}); +### Configuration +Copy `.env.example` to `.env` and fill your credentials in the required values +```bash +cp .env.example .env ``` -### Promisify methods - -If you are using node.js version **8.0.0** or higher you can use built in [*promisify*](https://nodejs.org/api/util.html#util_util_promisify_original) utility: - -```javascript -const { promisify } = require('util'); -const api = require('@signnow/api-client')({ - credentials: 'ENCODED_CLIENT_CREDENTIALS', - production: false, // if false uses eval server -}); -const requestToken = promisify(api.oauth2.requestToken); - -requestToken({ - username: 'username', - password: 'password', -}) - .then(res => { - // process response data - }) - .catch(err => { - // handle error - }); +### Run tests +To run tests you need to have a valid `.env.test` file with credentials for testing. +If you don't have it, you can create it by copying the `.env.test.dist` file and renaming it to `.env.test`. +However, the file will be created automatically if you just run test execution with the following commands: +```bash +npm run test ``` -If you are using node.js version prior to **8.0.0** you can use our own simple *promisify* utility: - -```javascript -const { promisify } = require('@signnow/api-client/utils'); -const api = require('@signnow/api-client')({ - credentials: 'ENCODED_CLIENT_CREDENTIALS', - production: false, // if false uses eval server -}); -const requestToken = promisify(api.oauth2.requestToken); - -requestToken({ - username: 'username', - password: 'password', -}) - .then(res => { - // process response data - }) - .catch(err => { - // handle error - }); -``` +### Usage +To start using the SDK, you need to create a new instance of the SDK API client and authenticate it using the credentials from the `.env` file. +Example of sending a request to get a document by id: +```typescript -## Unit Tests +import { Sdk, DocumentGet } from '@signnow/api-sdk'; +import type { Document } from '@signnow/api-sdk'; -To run the unit test you will need to install "Mocha" and "Chai". You also need to edit a [test.settings.js](https://github.com/signnow/SignNowNodeSDK/blob/master/test/test.settings.js) in the [test](https://github.com/signnow/SignNowNodeSDK/tree/master/test) folder of the api client module. The file need to contain the following: +const sdk = await new Sdk().authenticate(); +const client = sdk.getClient(); -```javascript -exports.settings = { - credentials: '[ENCODED CLIENT CREDENTIALS]', - token: '[ACCESS TOKEN]', - username: '[SIGNNOW USERNAME]', - password: '[SIGNNOW PASSWORD]', - documentid: '[EXISTING DOCUMENT ID]', - templateid: '[EXISTING TEMPLATE ID]', - folderid: '[EXISTING FOLDER ID]', - email: '[FROM EMAIL FOR INVITE]', - testemail: '[TO EMAIL FOR INVITE]', -}; +const documentGet = new DocumentGet('29db9956636d481f9c532ef64951ae78209f7483'); +const responseDocumentGet = await client.send(documentGet); +console.log('response document get', responseDocumentGet); ``` -## License - -This project is released under the MIT [License](https://github.com/signnow/SignNowNodeSDK/blob/master/LICENSE.md). - -## Additional Contact Information - -### Support - -To contact SignNow support, please email [support@signnow.com](mailto:support@signnow.com) or [api@signnow.com](mailto:api@signnow.com). - -### Sales - -For pricing information, please call [(800) 831-2050](tel:8008312050), email [sales@signnow.com](mailto:sales@signnow.com) or visit [https://www.signnow.com/contact](https://www.signnow.com/contact). +### Examples +You can find more examples of API usage in the [`examples`](./examples) directory. \ No newline at end of file diff --git a/bin/bulk-invite.js b/bin/bulk-invite.js deleted file mode 100755 index 3360dc83..00000000 --- a/bin/bulk-invite.js +++ /dev/null @@ -1,58 +0,0 @@ -#!/usr/bin/env node - -/** - * to run bulk-invite applet from the project root folder type in your console: - * > node bin/bulk-invite - * , , , , , , - are required params - * - path to .csv file with roles and their emails. Max file size should be <= 1 Megabyte - * - an ID of folder where signed documents will be saved - * options: - * --dev - request will be sent to developer sandbox API - */ - -'use strict'; - -const args = process.argv.slice(2); -const flags = args.filter(arg => /^--/.test(arg)); -const params = args.filter(arg => !/^--/.test(arg)); - -const [ - clientId, - clientSecret, - username, - password, - templateId, - csvFile, - folderId, -] = params; - -const dev = flags.includes('--dev'); - -const { promisify } = require('../utils'); -const api = require('../lib')({ - credentials: Buffer.from(`${clientId}:${clientSecret}`).toString('base64'), - production: !dev, -}); - -const { - oauth2: { requestToken: getAccessToken }, - template: { bulkInvite: sendBulkInvite }, -} = api; - -const getAccessToken$ = promisify(getAccessToken); -const sendBulkInvite$ = promisify(sendBulkInvite); - -getAccessToken$({ - username, - password, -}) - .then(({ access_token: token }) => sendBulkInvite$({ - data: { - file: csvFile, - folder_id: folderId, - }, - id: templateId, - token, - })) - .then(res => console.log(res)) - .catch(err => console.error(err)); diff --git a/bin/cancel-documentgroup-invite.js b/bin/cancel-documentgroup-invite.js deleted file mode 100644 index c289185d..00000000 --- a/bin/cancel-documentgroup-invite.js +++ /dev/null @@ -1,44 +0,0 @@ -#!/usr/bin/env node - -/** - * to run cancel-documentgroup-invite applet from the project root folder type in your console: - * > node bin/cancel-documentgroup-invite - * , , , , , - are required params - */ - -'use strict'; - -const [ - clientId, - clientSecret, - username, - password, - documentGroupId, - inviteId, -] = process.argv.slice(2); - -const { promisify } = require('../utils'); -const api = require('../lib')({ - credentials: Buffer.from(`${clientId}:${clientSecret}`).toString('base64'), - production: false, -}); - -const { - oauth2: { requestToken: getAccessToken }, - documentGroup: { cancelInvite: cancelDocumentGroupInvite }, -} = api; - -const getAccessToken$ = promisify(getAccessToken); -const cancelDocumentGroupInvite$ = promisify(cancelDocumentGroupInvite); - -getAccessToken$({ - username, - password, -}) - .then(({ access_token: token }) => cancelDocumentGroupInvite$({ - id: documentGroupId, - inviteId, - token, - })) - .then(res => console.log(res)) - .catch(err => console.error(err)); diff --git a/bin/cancel-field-invite.js b/bin/cancel-field-invite.js deleted file mode 100755 index 200612a6..00000000 --- a/bin/cancel-field-invite.js +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env node - -/** - * to run cancel-field-invite applet from the project root folder type in your console: - * > node bin/cancel-field-invite - * - are required params - * options: - * --dev - request will be sent to developer sandbox API - */ - -'use strict'; - -const args = process.argv.slice(2); -const flags = args.filter(arg => /^--/.test(arg)); -const params = args.filter(arg => !/^--/.test(arg)); - -const [ - clientId, - clientSecret, - username, - password, - documentId, -] = params; - -const dev = flags.includes('--dev'); - -const { promisify } = require('../utils'); -const api = require('../lib')({ - credentials: Buffer.from(`${clientId}:${clientSecret}`).toString('base64'), - production: !dev, -}); - -const { - oauth2: { requestToken: getAccessToken }, - document: { cancelFieldInvite: cancelDocumentFieldInvite }, -} = api; - -const getAccessToken$ = promisify(getAccessToken); -const cancelDocumentFieldInvite$ = promisify(cancelDocumentFieldInvite); - -getAccessToken$({ - username, - password, -}) - .then(({ access_token: token }) => cancelDocumentFieldInvite$({ - id: documentId, - token, - })) - .then(res => console.log(res)) - .catch(err => console.error(err)); diff --git a/bin/cancel-freeform-invite.js b/bin/cancel-freeform-invite.js deleted file mode 100755 index 9d668775..00000000 --- a/bin/cancel-freeform-invite.js +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env node - -/** - * to run cancel-freeform-invite applet from the project root folder type in your console: - * > node bin/cancel-freeform-invite - * , , , , - are required params - * options: - * --dev - request will be sent to developer sandbox API - */ - -'use strict'; - -const args = process.argv.slice(2); -const flags = args.filter(arg => /^--/.test(arg)); -const params = args.filter(arg => !/^--/.test(arg)); - -const [ - clientId, - clientSecret, - username, - password, - inviteId, -] = params; - -const dev = flags.includes('--dev'); - -const { promisify } = require('../utils'); -const api = require('../lib')({ - credentials: Buffer.from(`${clientId}:${clientSecret}`).toString('base64'), - production: !dev, -}); - -const { - oauth2: { requestToken: getAccessToken }, - document: { cancelFreeFormInvite: cancelDocumentFreeFormInvite }, -} = api; - -const getAccessToken$ = promisify(getAccessToken); -const cancelDocumentFreeFormInvite$ = promisify(cancelDocumentFreeFormInvite); - -getAccessToken$({ - username, - password, -}) - .then(({ access_token: token }) => cancelDocumentFreeFormInvite$({ - id: inviteId, - token, - })) - .then(res => console.log(res)) - .catch(err => console.error(err)); diff --git a/bin/create-document-group-template.js b/bin/create-document-group-template.js deleted file mode 100755 index 8626866a..00000000 --- a/bin/create-document-group-template.js +++ /dev/null @@ -1,69 +0,0 @@ -#!/usr/bin/env node - -/** - * to run create-document-group-template applet from the project root folder type in your console: - * > node bin/create-document-group-template <...template_ids> - * <...template_ids> - are required params - * <...template_ids> - ID(s) of one or more templates - * options: - * --dev - request will be sent to developer sandbox API - */ - -'use strict'; - -const args = process.argv.slice(2); -const flags = args.filter(arg => /^--/.test(arg)); -const params = args.filter(arg => !/^--/.test(arg)); - -const [ - clientId, - clientSecret, - username, - password, - template_group_name, - ...templateIDsWithRoutingDetails -] = params; - -const dev = flags.includes('--dev'); - -const { promisify } = require('../utils'); -const api = require('../lib')({ - credentials: Buffer.from(`${clientId}:${clientSecret}`).toString('base64'), - production: !dev, -}); - -const { - oauth2: { requestToken: getAccessToken }, - documentGroupTemplate: { create: createDocumentGroupTemplate }, -} = api; - -const getAccessToken$ = promisify(getAccessToken); -const createDocumentGroupTemplate$ = promisify(createDocumentGroupTemplate); - -getAccessToken$({ - username, - password, -}) - .then(({ access_token: token }) => { - const template_ids = templateIDsWithRoutingDetails.slice(0, -1); - const routingDetailsStringified = templateIDsWithRoutingDetails.slice(-1); - const routing_details = JSON.parse(routingDetailsStringified); - - return { - token, - template_ids, - routing_details, - }; - }) - .then(({ - token, - template_ids, - routing_details, - }) => createDocumentGroupTemplate$({ - token, - template_ids, - template_group_name, - routing_details, - })) - .then(res => console.log(res)) - .catch(err => console.error(err)); diff --git a/bin/create-document-group.js b/bin/create-document-group.js deleted file mode 100755 index b5117f41..00000000 --- a/bin/create-document-group.js +++ /dev/null @@ -1,53 +0,0 @@ -#!/usr/bin/env node - -/** - * to run create-document-group applet from the project root folder type in your console: - * > node bin/create-document-group <...document_ids> - * , , , , , <...document_ids> - are required params - * <...document_ids> - ID(s) of one or more documents - * options: - * --dev - request will be sent to developer sandbox API - */ - -'use strict'; - -const args = process.argv.slice(2); -const flags = args.filter(arg => /^--/.test(arg)); -const params = args.filter(arg => !/^--/.test(arg)); - -const [ - clientId, - clientSecret, - username, - password, - group_name, - ...ids -] = params; - -const dev = flags.includes('--dev'); - -const { promisify } = require('../utils'); -const api = require('../lib')({ - credentials: Buffer.from(`${clientId}:${clientSecret}`).toString('base64'), - production: !dev, -}); - -const { - oauth2: { requestToken: getAccessToken }, - documentGroup: { create: createDocumentGroup }, -} = api; - -const getAccessToken$ = promisify(getAccessToken); -const createDocumentGroup$ = promisify(createDocumentGroup); - -getAccessToken$({ - username, - password, -}) - .then(({ access_token: token }) => createDocumentGroup$({ - token, - ids, - group_name, - })) - .then(res => console.log(res)) - .catch(err => console.error(err)); diff --git a/bin/create-document.js b/bin/create-document.js deleted file mode 100755 index 46a384a9..00000000 --- a/bin/create-document.js +++ /dev/null @@ -1,51 +0,0 @@ -#!/usr/bin/env node - -/** - * to run create-document applet from the project root folder type in your console: - * > node bin/create-document - * , , , - are required params - * - is optional param. If empty will be used default value './samples/files/pdf-sample.pdf' - * options: - * --dev - request will be sent to developer sandbox API - */ - -'use strict'; - -const args = process.argv.slice(2); -const flags = args.filter(arg => /^--/.test(arg)); -const params = args.filter(arg => !/^--/.test(arg)); - -const [ - clientId, - clientSecret, - username, - password, - filepath = './samples/files/pdf-sample.pdf', -] = params; - -const dev = flags.includes('--dev'); - -const { promisify } = require('../utils'); -const api = require('../lib')({ - credentials: Buffer.from(`${clientId}:${clientSecret}`).toString('base64'), - production: !dev, -}); - -const { - oauth2: { requestToken: getAccessToken }, - document: { create: uploadDocument }, -} = api; - -const getAccessToken$ = promisify(getAccessToken); -const uploadDocument$ = promisify(uploadDocument); - -getAccessToken$({ - username, - password, -}) - .then(({ access_token: token }) => uploadDocument$({ - filepath, - token, - })) - .then(res => console.log(res)) - .catch(err => console.error(err)); diff --git a/bin/create-field-invite.js b/bin/create-field-invite.js deleted file mode 100755 index e199eb5b..00000000 --- a/bin/create-field-invite.js +++ /dev/null @@ -1,63 +0,0 @@ -#!/usr/bin/env node - -/** - * to run create-field-invite applet from the project root folder type in your console: - * > node bin/create-field-invite '' - * , , , , , - are required params - * options: - * --dev - request will be sent to developer sandbox API - */ - -'use strict'; - -const args = process.argv.slice(2); -const flags = args.filter(arg => /^--/.test(arg)); -const params = args.filter(arg => !/^--/.test(arg)); - -const [ - clientId, - clientSecret, - username, - password, - documentId, - signersStringified, -] = params; - -const dev = flags.includes('--dev'); - -const { promisify } = require('../utils'); -const api = require('../lib')({ - credentials: Buffer.from(`${clientId}:${clientSecret}`).toString('base64'), - production: !dev, -}); - -const { - oauth2: { requestToken: getAccessToken }, - document: { invite: sendFieldInvite }, -} = api; - -const getAccessToken$ = promisify(getAccessToken); -const sendFieldInvite$ = promisify(sendFieldInvite); - -getAccessToken$({ - username, - password, -}) - .then(({ access_token: token }) => { - const signers = JSON.parse(signersStringified); - - return { - token, - signers, - }; - }) - .then(({ token, signers }) => sendFieldInvite$({ - data: { - from: username, - to: signers, - }, - id: documentId, - token, - })) - .then(res => console.log(res)) - .catch(err => console.error(err)); diff --git a/bin/create-freeform-invite.js b/bin/create-freeform-invite.js deleted file mode 100755 index 13ba7069..00000000 --- a/bin/create-freeform-invite.js +++ /dev/null @@ -1,55 +0,0 @@ -#!/usr/bin/env node - -/** - * to run create-freeform-invite applet from the project root folder type in your console: - * > node bin/create-freeform-invite - * , , , , , - are required params - * options: - * --dev - request will be sent to developer sandbox API - */ - -'use strict'; - -const args = process.argv.slice(2); -const flags = args.filter(arg => /^--/.test(arg)); -const params = args.filter(arg => !/^--/.test(arg)); - -const [ - clientId, - clientSecret, - username, - password, - documentId, - signer, -] = params; - -const dev = flags.includes('--dev'); - -const { promisify } = require('../utils'); -const api = require('../lib')({ - credentials: Buffer.from(`${clientId}:${clientSecret}`).toString('base64'), - production: !dev, -}); - -const { - oauth2: { requestToken: getAccessToken }, - document: { invite: sendFreeformInvite }, -} = api; - -const getAccessToken$ = promisify(getAccessToken); -const sendFreeformInvite$ = promisify(sendFreeformInvite); - -getAccessToken$({ - username, - password, -}) - .then(({ access_token: token }) => sendFreeformInvite$({ - data: { - from: username, - to: signer, - }, - id: documentId, - token, - })) - .then(res => console.log(res)) - .catch(err => console.error(err)); diff --git a/bin/create-signing-link.js b/bin/create-signing-link.js deleted file mode 100755 index ccffaf6d..00000000 --- a/bin/create-signing-link.js +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env node - -/** - * to run create-signing-link applet from the project root folder type in your console: - * > node bin/create-signing-link - * , , , , - are required params - * options: - * --dev - request will be sent to developer sandbox API - */ - -'use strict'; - -const args = process.argv.slice(2); -const flags = args.filter(arg => /^--/.test(arg)); -const params = args.filter(arg => !/^--/.test(arg)); - -const [ - clientId, - clientSecret, - username, - password, - document_id, -] = params; - -const dev = flags.includes('--dev'); - -const { promisify } = require('../utils'); -const api = require('../lib')({ - credentials: Buffer.from(`${clientId}:${clientSecret}`).toString('base64'), - production: !dev, -}); - -const { - oauth2: { requestToken: getAccessToken }, - link: { create: createSigningLink }, -} = api; - -const getAccessToken$ = promisify(getAccessToken); -const createSigningLink$ = promisify(createSigningLink); - -getAccessToken$({ - username, - password, -}) - .then(({ access_token: token }) => createSigningLink$({ - document_id, - token, - })) - .then(res => console.log(res)) - .catch(err => console.error(err)); diff --git a/bin/create-template.js b/bin/create-template.js deleted file mode 100755 index c6d20c82..00000000 --- a/bin/create-template.js +++ /dev/null @@ -1,55 +0,0 @@ -#!/usr/bin/env node - -/** - * to run create-template applet from the project root folder type in your console: - * > node bin/create-template - * - are required params - * options: - * --delete-original - original document will be removed after template creation - * --dev - request will be sent to developer sandbox API - */ - -'use strict'; - -const args = process.argv.slice(2); -const flags = args.filter(arg => /^--/.test(arg)); -const params = args.filter(arg => !/^--/.test(arg)); - -const [ - clientId, - clientSecret, - username, - password, - documentId, - templateName, -] = params; - -const removeOriginalDocument = flags.includes('--delete-original'); -const dev = flags.includes('--dev'); - -const { promisify } = require('../utils'); -const api = require('../lib')({ - credentials: Buffer.from(`${clientId}:${clientSecret}`).toString('base64'), - production: !dev, -}); - -const { - oauth2: { requestToken: getAccessToken }, - template: { create: createTemplate }, -} = api; - -const getAccessToken$ = promisify(getAccessToken); -const createTemplate$ = promisify(createTemplate); - -getAccessToken$({ - username, - password, -}) - .then(({ access_token: token }) => createTemplate$({ - document_id: documentId, - document_name: templateName, - options: { removeOriginalDocument }, - token, - })) - .then(res => console.log(res)) - .catch(err => console.error(err)); diff --git a/bin/create-user.js b/bin/create-user.js deleted file mode 100755 index 40f7b7f1..00000000 --- a/bin/create-user.js +++ /dev/null @@ -1,54 +0,0 @@ -#!/usr/bin/env node - -/** - * to run create-user applet from the project root folder type in your console: - * > node bin/create-user - * , , , - are required params - * , , - are optional - * options: - * --verify-email - send verification email - * --start-trial - start 30 day free trial. Defaults to expired subscription - * --dev - request will be sent to developer sandbox API - */ - -'use strict'; - -const args = process.argv.slice(2); -const flags = args.filter(arg => /^--/.test(arg)); -const params = args.filter(arg => !/^--/.test(arg)); - -const [ - clientId, - clientSecret, - email, - password, - first_name, - last_name, - number, -] = params; - -const verifyEmail = flags.includes('--verify-email'); -const startTrial = flags.includes('--start-trial'); -const dev = flags.includes('--dev'); - -const { promisify } = require('../utils'); -const { user: { create: createUser } } = require('../lib')({ - credentials: Buffer.from(`${clientId}:${clientSecret}`).toString('base64'), - production: !dev, -}); - -const createUser$ = promisify(createUser); - -createUser$({ - email, - password, - first_name, - last_name, - number, - options: { - verifyEmail, - startTrial, - }, -}) - .then(res => console.log(res)) - .catch(err => console.error(err)); diff --git a/bin/document-group-invite.js b/bin/document-group-invite.js deleted file mode 100755 index 5ac88a84..00000000 --- a/bin/document-group-invite.js +++ /dev/null @@ -1,60 +0,0 @@ -#!/usr/bin/env node - -/** - * to run document-group-invite applet from the project root folder type in your console: - * > node bin/document-group-invite '' - * - are required params - * options: - * --dev - request will be sent to developer sandbox API - */ - -'use strict'; - -const args = process.argv.slice(2); -const flags = args.filter(arg => /^--/.test(arg)); -const params = args.filter(arg => !/^--/.test(arg)); - -const [ - clientId, - clientSecret, - username, - password, - documentGroupId, - inviteConfigStringified, -] = params; - -const dev = flags.includes('--dev'); - -const { promisify } = require('../utils'); -const api = require('../lib')({ - credentials: Buffer.from(`${clientId}:${clientSecret}`).toString('base64'), - production: !dev, -}); - -const { - oauth2: { requestToken: getAccessToken }, - documentGroup: { invite: createDocumentGroupInvite }, -} = api; - -const getAccessToken$ = promisify(getAccessToken); -const createDocumentGroupInvite$ = promisify(createDocumentGroupInvite); - -getAccessToken$({ - username, - password, -}) - .then(({ access_token: token }) => { - const inviteConfig = JSON.parse(inviteConfigStringified); - - return { - token, - inviteConfig, - }; - }) - .then(({ token, inviteConfig }) => createDocumentGroupInvite$({ - id: documentGroupId, - data: inviteConfig, - token, - })) - .then(res => console.log(res)) - .catch(err => console.error(err)); diff --git a/bin/document-history.js b/bin/document-history.js deleted file mode 100755 index ac705b77..00000000 --- a/bin/document-history.js +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env node - -/** - * to run document-history applet from the project root folder type in your console: - * > node bin/document-history - * , , , , - are required params - * options: - * --dev - request will be sent to developer sandbox API - */ - -'use strict'; - -const args = process.argv.slice(2); -const flags = args.filter(arg => /^--/.test(arg)); -const params = args.filter(arg => !/^--/.test(arg)); - -const [ - clientId, - clientSecret, - username, - password, - documentId, -] = params; - -const dev = flags.includes('--dev'); - -const { promisify } = require('../utils'); -const api = require('../lib')({ - credentials: Buffer.from(`${clientId}:${clientSecret}`).toString('base64'), - production: !dev, -}); - -const { - oauth2: { requestToken: getAccessToken }, - document: { history: getDocumentHistory }, -} = api; - -const getAccessToken$ = promisify(getAccessToken); -const getDocumentHistory$ = promisify(getDocumentHistory); - -getAccessToken$({ - username, - password, -}) - .then(({ access_token: token }) => getDocumentHistory$({ - id: documentId, - token, - })) - .then(res => console.log(res)) - .catch(err => console.error(err)); diff --git a/bin/document-list.js b/bin/document-list.js deleted file mode 100755 index 3c753a55..00000000 --- a/bin/document-list.js +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/env node - -/** - * to run document-list applet from the project root folder type in your console: - * > node bin/document-list - * , , , - are required params - * options: - * --dev - request will be sent to developer sandbox API - */ - -'use strict'; - -const args = process.argv.slice(2); -const flags = args.filter(arg => /^--/.test(arg)); -const params = args.filter(arg => !/^--/.test(arg)); - -const [ - clientId, - clientSecret, - username, - password, -] = params; - -const dev = flags.includes('--dev'); - -const { promisify } = require('../utils'); -const api = require('../lib')({ - credentials: Buffer.from(`${clientId}:${clientSecret}`).toString('base64'), - production: !dev, -}); - -const { - oauth2: { requestToken: getAccessToken }, - document: { list: getUserDocumentList }, -} = api; - -const getAccessToken$ = promisify(getAccessToken); -const getUserDocumentList$ = promisify(getUserDocumentList); - -getAccessToken$({ - username, - password, -}) - .then(({ access_token: token }) => getUserDocumentList$({ token })) - .then(res => console.log(res)) - .catch(err => console.error(err)); diff --git a/bin/document-signers.js b/bin/document-signers.js deleted file mode 100644 index 18ca0e90..00000000 --- a/bin/document-signers.js +++ /dev/null @@ -1,75 +0,0 @@ -#!/usr/bin/env node - -/* - * to run document-signers applet from the project root folder type in your console: - * > node bin/document-signers - * , , , , - are required params - * options: - * --freeform-invites - will return a list of all freeform invite signers - * --field-invite-status (the same as --field-invite-status=all) - will return a list of all field invite signers - * --field-invite-status=pending,declined,fulfilled,created,skipped - will return a list of field invite signers by invite status(es). choose one(s) that you need - * --payment-request-status (the same as --payment-request-status=all) - will return a list of all signers that payment requests are made for - * --payment-request-status=created,pending,skipped,fulfilled - will return a list of signers that payment requests are made for by payment request status(es). choose one(s) that you need - * --dev - request will be sent to developer sandbox API - */ - -'use strict'; -const args = process.argv.slice(2); -const flags = args.filter(arg => /^--/.test(arg)); -const params = args.filter(arg => !/^--/.test(arg)); - -const freeForm = 'freeFormInvites'; -const fieldStatus = 'fieldInviteStatus'; -const payment = 'paymentRequestStatus'; -const allExceptFirst = arr => arr.slice(1).join('').split(','); - -const options = flags - .map(flag => flag.split('=').filter(val => val !== '')) - .reduce((acc, arr) => { - if (arr.includes('--freeform-invites')) { - acc[freeForm] = acc[freeForm] || true; - } - if (arr.includes('--field-invite-status')) { - acc[fieldStatus] = acc[fieldStatus] || allExceptFirst(arr); - } - if (arr.includes('--payment-request-status')) { - acc[payment] = acc[payment] || allExceptFirst(arr); - } - return acc; - }, {}); - -const [ - clientId, - clientSecret, - username, - password, - documentId, -] = params; - -const dev = flags.includes('--dev'); - -const { promisify } = require('../utils'); -const api = require('../lib')({ - credentials: Buffer.from(`${clientId}:${clientSecret}`).toString('base64'), - production: !dev, -}); - -const { - oauth2: { requestToken: getAccessToken }, - document: { signers: getDocumentSigners }, -} = api; - -const getAccessToken$ = promisify(getAccessToken); -const getDocumentSigners$ = promisify(getDocumentSigners); - -getAccessToken$({ - username, - password, -}) - .then(({ access_token: token }) => getDocumentSigners$({ - id: documentId, - token, - options, - })) - .then(res => console.log(res)) - .catch(err => console.error(err)); diff --git a/bin/download-document-group.js b/bin/download-document-group.js deleted file mode 100644 index be4ef954..00000000 --- a/bin/download-document-group.js +++ /dev/null @@ -1,69 +0,0 @@ -#!/usr/bin/env node - -/** - * to run download-document-group applet from the project root folder type in your console: - * > node bin/download-document-group <...document_order> - * , , , , , - are required params - * <...document_order> - is optional param. It stands for one or more document IDs - * options: - * --type - type of download flow, can be `zip` or `merged`. Defaults to `zip` - * --with-history - type of history merging flow, can be `no`, `after-each-document`, or `after-merged-pdf`. Defaults to `no` - */ - -'use strict'; - -const args = process.argv.slice(2); -const options = args.filter(arg => /^--/.test(arg)); -const params = args.filter(arg => !/^--/.test(arg)); - -const [ - clientId, - clientSecret, - username, - password, - documentGroupId, - pathToSaveFile, - ...document_order -] = params; - -const { type, with_history } = options.reduce((acc, cur) => { - const [ - key, - value, - ] = cur.split('='); - acc[key.slice(2).replace(/-/g, '_')] = value; - return acc; -}, {}); - -const fs = require('fs'); -const { promisify } = require('../utils'); -const api = require('../lib')({ - credentials: Buffer.from(`${clientId}:${clientSecret}`).toString('base64'), - production: false, -}); - -const { - oauth2: { requestToken: getAccessToken }, - documentGroup: { download: downloadDocumentGroup }, -} = api; - -const getAccessToken$ = promisify(getAccessToken); -const downloadDocumentGroup$ = promisify(downloadDocumentGroup); - -getAccessToken$({ - username, - password, -}) - .then(({ access_token: token }) => downloadDocumentGroup$({ - id: documentGroupId, - token, - type, - with_history, - document_order, - })) - .then(file => { - const absolutePath = `${pathToSaveFile}/${documentGroupId}.${type === 'merged' ? 'pdf' : 'zip'}`; - fs.writeFileSync(absolutePath, file, { encoding: 'binary' }); - console.log(`Document has been downloaded. Check your ${pathToSaveFile} directory`); - }) - .catch(err => console.error(err)); diff --git a/bin/download-document.js b/bin/download-document.js deleted file mode 100755 index 196b3630..00000000 --- a/bin/download-document.js +++ /dev/null @@ -1,65 +0,0 @@ -#!/usr/bin/env node - -/** - * to run download-document applet from the project root folder type in your console: - * > node bin/download-document - * , , , , , - are required params - * options: - * --with-attachments - document will be downloaded as zip package with its attachments - * --with-history - document will be downloaded with its history - * --dev - request will be sent to developer sandbox API - */ - -'use strict'; - -const args = process.argv.slice(2); -const flags = args.filter(arg => /^--/.test(arg)); -const params = args.filter(arg => !/^--/.test(arg)); - -const [ - clientId, - clientSecret, - username, - password, - documentId, - pathToSaveFile, -] = params; - -const withAttachments = flags.includes('--with-attachments'); -const withHistory = flags.includes('--with-history'); -const dev = flags.includes('--dev'); - -const fs = require('fs'); -const { promisify } = require('../utils'); -const api = require('../lib')({ - credentials: Buffer.from(`${clientId}:${clientSecret}`).toString('base64'), - production: !dev, -}); - -const { - oauth2: { requestToken: getAccessToken }, - document: { download: downloadDocument }, -} = api; - -const getAccessToken$ = promisify(getAccessToken); -const downloadDocument$ = promisify(downloadDocument); - -getAccessToken$({ - username, - password, -}) - .then(({ access_token: token }) => downloadDocument$({ - id: documentId, - options: { - withAttachments, - withHistory, - }, - token, - })) - .then(file => { - const fileExtension = withAttachments ? 'zip' : 'pdf'; - const absolutePath = `${pathToSaveFile}/${documentId}.${fileExtension}`; - fs.writeFileSync(absolutePath, file, { encoding: 'binary' }); - console.log(`Document has been downloaded. Check your '${pathToSaveFile}' directory.`); - }) - .catch(err => console.error(err)); diff --git a/bin/duplicate-template.js b/bin/duplicate-template.js deleted file mode 100644 index 0a61394a..00000000 --- a/bin/duplicate-template.js +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/env node - -/** - * to run duplicate-template applet from the project root folder type in your console: - * > node bin/duplicate-template - * , , , , - are required params - * - optional param - */ - -'use strict'; - -const [ - clientId, - clientSecret, - username, - password, - templateId, - documentName, -] = process.argv.slice(2); - -const { promisify } = require('../utils'); -const api = require('../lib')({ - credentials: Buffer.from(`${clientId}:${clientSecret}`).toString('base64'), - production: false, -}); - -const { - oauth2: { requestToken: getAccessToken }, - template: { duplicate: createDocument }, -} = api; - -const getAccessToken$ = promisify(getAccessToken); -const createDocument$ = promisify(createDocument); - -getAccessToken$({ - username, - password, -}) - .then(({ access_token: token }) => createDocument$({ - id: templateId, - name: documentName, - token, - })) - .then(res => console.log(res)) - .catch(err => console.error(err)); diff --git a/bin/embedded-cancel-invites.js b/bin/embedded-cancel-invites.js deleted file mode 100755 index 3316fa7b..00000000 --- a/bin/embedded-cancel-invites.js +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env node - -/** - * to run embedded-cancel-invites applet from the project root folder type in your console: - * > node bin/embedded-cancel-invites - * , , , , - are required params - * options: - * --dev - request will be sent to developer sandbox API - */ - -'use strict'; - -const args = process.argv.slice(2); -const flags = args.filter(arg => /^--/.test(arg)); -const params = args.filter(arg => !/^--/.test(arg)); - -const [ - clientId, - clientSecret, - username, - password, - documentId, -] = params; - -const dev = flags.includes('--dev'); - -const { promisify } = require('../utils'); -const api = require('../lib')({ - credentials: Buffer.from(`${clientId}:${clientSecret}`).toString('base64'), - production: !dev, -}); - -const { - oauth2: { requestToken: getAccessToken }, - embedded: { cancelInvites }, -} = api; - -const getAccessToken$ = promisify(getAccessToken); -const cancelInvites$ = promisify(cancelInvites); - -getAccessToken$({ - username, - password, -}) - .then(({ access_token: token }) => cancelInvites$({ - token, - document_id: documentId, - })) - .then(res => console.log(res)) - .catch(err => console.error(err)); diff --git a/bin/embedded-create-invites.js b/bin/embedded-create-invites.js deleted file mode 100755 index 71693b22..00000000 --- a/bin/embedded-create-invites.js +++ /dev/null @@ -1,52 +0,0 @@ -#!/usr/bin/env node - -/** - * to run embedded-create-invites applet from the project root folder type in your console: - * > node bin/embedded-create-invites - * , , , , - are required params - * options: - * --dev - request will be sent to developer sandbox API - */ - -'use strict'; - -const args = process.argv.slice(2); -const flags = args.filter(arg => /^--/.test(arg)); -const params = args.filter(arg => !/^--/.test(arg)); - -const [ - clientId, - clientSecret, - username, - password, - documentId, - invitesStringified, -] = params; - -const dev = flags.includes('--dev'); - -const { promisify } = require('../utils'); -const api = require('../lib')({ - credentials: Buffer.from(`${clientId}:${clientSecret}`).toString('base64'), - production: !dev, -}); - -const { - oauth2: { requestToken: getAccessToken }, - embedded: { createInvite }, -} = api; - -const getAccessToken$ = promisify(getAccessToken); -const createInvite$ = promisify(createInvite); - -getAccessToken$({ - username, - password, -}) - .then(({ access_token: token }) => createInvite$({ - token, - document_id: documentId, - invites: JSON.parse(invitesStringified), - })) - .then(res => console.log(res)) - .catch(err => console.error(err)); diff --git a/bin/embedded-generate-link.js b/bin/embedded-generate-link.js deleted file mode 100755 index cfebcc84..00000000 --- a/bin/embedded-generate-link.js +++ /dev/null @@ -1,56 +0,0 @@ -#!/usr/bin/env node - -/** - * to run embedded-generate-link applet from the project root folder type in your console: - * > node bin/embedded-generate-link - * , , , , - are required params - * options: - * --dev - request will be sent to developer sandbox API - */ - -'use strict'; - -const args = process.argv.slice(2); -const flags = args.filter(arg => /^--/.test(arg)); -const params = args.filter(arg => !/^--/.test(arg)); - -const [ - clientId, - clientSecret, - username, - password, - documentId, - fieldInviteUniqueId, - linkExpiration, - authMethod, -] = params; - -const dev = flags.includes('--dev'); - -const { promisify } = require('../utils'); -const api = require('../lib')({ - credentials: Buffer.from(`${clientId}:${clientSecret}`).toString('base64'), - production: !dev, -}); - -const { - oauth2: { requestToken: getAccessToken }, - embedded: { generateInviteLink }, -} = api; - -const getAccessToken$ = promisify(getAccessToken); -const generateInviteLink$ = promisify(generateInviteLink); - -getAccessToken$({ - username, - password, -}) - .then(({ access_token: token }) => generateInviteLink$({ - token, - document_id: documentId, - field_invite_unique_id: fieldInviteUniqueId, - link_expiration: linkExpiration, - auth_method: authMethod, - })) - .then(res => console.log(res)) - .catch(err => console.error(err)); diff --git a/bin/extract-fields.js b/bin/extract-fields.js deleted file mode 100755 index 36ffb4e5..00000000 --- a/bin/extract-fields.js +++ /dev/null @@ -1,51 +0,0 @@ -#!/usr/bin/env node - -/** - * to run extract-fields applet from the project root folder type in your console: - * > node bin/extract-fields - * , , , - are required params - * - optional parameter. default value is './samples/files/text-tags-sample.pdf' - * options: - * --dev - request will be sent to developer sandbox API - */ - -'use strict'; - -const args = process.argv.slice(2); -const flags = args.filter(arg => /^--/.test(arg)); -const params = args.filter(arg => !/^--/.test(arg)); - -const [ - clientId, - clientSecret, - username, - password, - filepath = './samples/files/text-tags-sample.pdf', -] = params; - -const dev = flags.includes('--dev'); - -const { promisify } = require('../utils'); -const api = require('../lib')({ - credentials: Buffer.from(`${clientId}:${clientSecret}`).toString('base64'), - production: !dev, -}); - -const { - oauth2: { requestToken: getAccessToken }, - document: { fieldextract: uploadDocumentAndExtractFieldsFromTextTags }, -} = api; - -const getAccessToken$ = promisify(getAccessToken); -const uploadDocumentAndExtractFieldsFromTextTags$ = promisify(uploadDocumentAndExtractFieldsFromTextTags); - -getAccessToken$({ - username, - password, -}) - .then(({ access_token: token }) => uploadDocumentAndExtractFieldsFromTextTags$({ - filepath, - token, - })) - .then(res => console.log(res)) - .catch(err => console.error(err)); diff --git a/bin/get-access-token.js b/bin/get-access-token.js deleted file mode 100755 index 9884f4a0..00000000 --- a/bin/get-access-token.js +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env node - -/** - * to run get-access-token applet from the project root folder type in your console: - * > node bin/get-access-token - * , , , - are required params - * options: - * --dev - request will be sent to developer sandbox API - */ - -'use strict'; - -const args = process.argv.slice(2); -const flags = args.filter(arg => /^--/.test(arg)); -const params = args.filter(arg => !/^--/.test(arg)); - -const [ - clientId, - clientSecret, - username, - password, -] = params; - -const dev = flags.includes('--dev'); - -const { promisify } = require('../utils'); -const { oauth2: { requestToken: getAccessToken } } = require('../lib')({ - credentials: Buffer.from(`${clientId}:${clientSecret}`).toString('base64'), - production: !dev, -}); - -const getAccessToken$ = promisify(getAccessToken); - -getAccessToken$({ - username, - password, -}) - .then(res => console.log(res)) - .catch(err => console.error(err)); diff --git a/bin/invite-documentgroup-template.js b/bin/invite-documentgroup-template.js deleted file mode 100755 index 825c7f91..00000000 --- a/bin/invite-documentgroup-template.js +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env node - -/** - * to run invite-documentgroup-template applet from the project root folder type in your console: - * > node bin/invite-documentgroup-template - * , , , , - are required params - * options: - * --dev - request will be sent to developer sandbox API - */ - -'use strict'; - -const args = process.argv.slice(2); -const flags = args.filter(arg => /^--/.test(arg)); -const params = args.filter(arg => !/^--/.test(arg)); - -const [ - clientId, - clientSecret, - username, - password, - documentGroupTemplateId, -] = params; - -const dev = flags.includes('--dev'); - -const { promisify } = require('../utils'); -const api = require('../lib')({ - credentials: Buffer.from(`${clientId}:${clientSecret}`).toString('base64'), - production: !dev, -}); - -const { - oauth2: { requestToken: getAccessToken }, - documentGroupTemplate: { invite: inviteDocumentGroupTemplate }, -} = api; - -const getAccessToken$ = promisify(getAccessToken); -const inviteDocumentGroupTemplate$ = promisify(inviteDocumentGroupTemplate); - -getAccessToken$({ - username, - password, -}) - .then(({ access_token: token }) => inviteDocumentGroupTemplate$({ - id: documentGroupTemplateId, - token, - })) - .then(res => console.log(res)) - .catch(err => console.error(err)); diff --git a/bin/merge-documents.js b/bin/merge-documents.js deleted file mode 100755 index 97406a54..00000000 --- a/bin/merge-documents.js +++ /dev/null @@ -1,56 +0,0 @@ -#!/usr/bin/env node - -/** - * to run merge-documents applet from the project root folder type in your console: - * > node bin/merge-documents <...document_ids> - * , , , , , <...document_ids> - are required params - * <...document_ids> - one or more document iDs - * options: - * --remove-originals - original documents will be removed after merging - * --dev - request will be sent to developer sandbox API - */ - -'use strict'; - -const args = process.argv.slice(2); -const flags = args.filter(arg => /^--/.test(arg)); -const params = args.filter(arg => !/^--/.test(arg)); - -const [ - clientId, - clientSecret, - username, - password, - name, - ...document_ids -] = params; - -const removeOriginalDocuments = flags.includes('--remove-originals'); -const dev = flags.includes('--dev'); - -const { promisify } = require('../utils'); -const api = require('../lib')({ - credentials: Buffer.from(`${clientId}:${clientSecret}`).toString('base64'), - production: !dev, -}); - -const { - oauth2: { requestToken: getAccessToken }, - document: { merge: mergeDocuments }, -} = api; - -const getAccessToken$ = promisify(getAccessToken); -const mergeDocuments$ = promisify(mergeDocuments); - -getAccessToken$({ - username, - password, -}) - .then(({ access_token: token }) => mergeDocuments$({ - name, - document_ids, - options: { removeOriginalDocuments }, - token, - })) - .then(res => console.log(res)) - .catch(err => console.error(err)); diff --git a/bin/refresh-token.js b/bin/refresh-token.js deleted file mode 100755 index 581795fc..00000000 --- a/bin/refresh-token.js +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/env node - -/** - * to run refresh-token applet from the project root folder type in your console: - * > node bin/refresh-token - * , , - are required params - * options: - * --dev - request will be sent to developer sandbox API - */ - -'use strict'; - -const args = process.argv.slice(2); -const flags = args.filter(arg => /^--/.test(arg)); -const params = args.filter(arg => !/^--/.test(arg)); - -const [ - clientId, - clientSecret, - refresh_token, -] = params; - -const dev = flags.includes('--dev'); - -const { promisify } = require('../utils'); -const { oauth2: { refreshToken: refreshAccessToken } } = require('../lib')({ - credentials: Buffer.from(`${clientId}:${clientSecret}`).toString('base64'), - production: !dev, -}); - -const refreshAccessToken$ = promisify(refreshAccessToken); - -refreshAccessToken$({ refresh_token }) - .then(res => console.log(res)) - .catch(err => console.error(err)); diff --git a/bin/remove-document.js b/bin/remove-document.js deleted file mode 100755 index ccf4815a..00000000 --- a/bin/remove-document.js +++ /dev/null @@ -1,53 +0,0 @@ -#!/usr/bin/env node - -/** - * to run remove-document applet from the project root folder type in your console: - * > node bin/remove-document - * , , , , - are required params - * options: - * --cancel-invites - invites of document will be cancelled if exist - * --dev - request will be sent to developer sandbox API - */ - -'use strict'; - -const args = process.argv.slice(2); -const flags = args.filter(arg => /^--/.test(arg)); -const params = args.filter(arg => !/^--/.test(arg)); - -const [ - clientId, - clientSecret, - username, - password, - documentId, -] = params; - -const cancelInvites = flags.includes('--cancel-invites'); -const dev = flags.includes('--dev'); - -const { promisify } = require('../utils'); -const api = require('../lib')({ - credentials: Buffer.from(`${clientId}:${clientSecret}`).toString('base64'), - production: !dev, -}); - -const { - oauth2: { requestToken: getAccessToken }, - document: { remove: removeDocument }, -} = api; - -const getAccessToken$ = promisify(getAccessToken); -const removeDocument$ = promisify(removeDocument); - -getAccessToken$({ - username, - password, -}) - .then(({ access_token: token }) => removeDocument$({ - id: documentId, - options: { cancelInvites }, - token, - })) - .then(res => console.log(res)) - .catch(err => console.error(err)); diff --git a/bin/remove-template.js b/bin/remove-template.js deleted file mode 100755 index f1dd2a93..00000000 --- a/bin/remove-template.js +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env node - -/** - * to run remove-template applet from the project root folder type in your console: - * > node bin/remove-template - * , , , , - are required params - * options: - * --dev - request will be sent to developer sandbox API - */ - -'use strict'; - -const args = process.argv.slice(2); -const flags = args.filter(arg => /^--/.test(arg)); -const params = args.filter(arg => !/^--/.test(arg)); - -const [ - clientId, - clientSecret, - username, - password, - templateId, -] = params; - -const dev = flags.includes('--dev'); - -const { promisify } = require('../utils'); -const api = require('../lib')({ - credentials: Buffer.from(`${clientId}:${clientSecret}`).toString('base64'), - production: !dev, -}); - -const { - oauth2: { requestToken: getAccessToken }, - template: { remove: removeTemplate }, -} = api; - -const getAccessToken$ = promisify(getAccessToken); -const removeTemplate$ = promisify(removeTemplate); - -getAccessToken$({ - username, - password, -}) - .then(({ access_token: token }) => removeTemplate$({ - id: templateId, - token, - })) - .then(res => console.log(res)) - .catch(err => console.error(err)); diff --git a/bin/routing-details.js b/bin/routing-details.js deleted file mode 100755 index 35b3bf51..00000000 --- a/bin/routing-details.js +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env node - -/** - * to run routing-details applet from the project root folder type in your console: - * > node bin/routing-details - * , , , , - are required params - * options: - * --dev - request will be sent to developer sandbox API - */ - -'use strict'; - -const args = process.argv.slice(2); -const flags = args.filter(arg => /^--/.test(arg)); -const params = args.filter(arg => !/^--/.test(arg)); - -const [ - clientId, - clientSecret, - username, - password, - templateId, -] = params; - -const dev = flags.includes('--dev'); - -const { promisify } = require('../utils'); -const api = require('../lib')({ - credentials: Buffer.from(`${clientId}:${clientSecret}`).toString('base64'), - production: !dev, -}); - -const { - oauth2: { requestToken: getAccessToken }, - template: { getRoutingDetails }, -} = api; - -const getAccessToken$ = promisify(getAccessToken); -const getRoutingDetails$ = promisify(getRoutingDetails); - -getAccessToken$({ - username, - password, -}) - .then(({ access_token: token }) => getRoutingDetails$({ - id: templateId, - token, - })) - .then(res => console.log(res)) - .catch(err => console.error(err)); diff --git a/bin/share-document.js b/bin/share-document.js deleted file mode 100755 index 4c6396e6..00000000 --- a/bin/share-document.js +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env node - -/* - * to run share document applet from the project root folder type in your console: - * > node bin/share-document - * , , , , - are required params - * options: - * --dev - request will be sent to developer sandbox API - */ - -'use strict'; - -const args = process.argv.slice(2); -const flags = args.filter(arg => /^--/.test(arg)); -const params = args.filter(arg => !/^--/.test(arg)); - -const [ - clientId, - clientSecret, - username, - password, - documentId, -] = params; - -const dev = flags.includes('--dev'); - -const { promisify } = require('../utils'); -const api = require('../lib')({ - credentials: Buffer.from(`${clientId}:${clientSecret}`).toString('base64'), - production: !dev, -}); - -const { - oauth2: { requestToken: getAccessToken }, - document: { share: shareDocument }, -} = api; - -const getAccessToken$ = promisify(getAccessToken); -const shareDocument$ = promisify(shareDocument); - -getAccessToken$({ - username, - password, -}) - .then(({ access_token: token }) => shareDocument$({ - id: documentId, - token, - })) - .then(res => console.log(res)) - .catch(err => console.error(err)); diff --git a/bin/template-field-invite.js b/bin/template-field-invite.js deleted file mode 100755 index 9a4ec1eb..00000000 --- a/bin/template-field-invite.js +++ /dev/null @@ -1,63 +0,0 @@ -#!/usr/bin/env node - -/** - * to run template-field-invite applet from the project root folder type in your console: - * > node bin/template-field-invite '' - * , , , , , - are required params - * options: - * --dev - request will be sent to developer sandbox API - */ - -'use strict'; - -const args = process.argv.slice(2); -const flags = args.filter(arg => /^--/.test(arg)); -const params = args.filter(arg => !/^--/.test(arg)); - -const [ - clientId, - clientSecret, - username, - password, - templateId, - inviteStringified, -] = params; - -const dev = flags.includes('--dev'); - -const { promisify } = require('../utils'); -const api = require('../lib')({ - credentials: Buffer.from(`${clientId}:${clientSecret}`).toString('base64'), - production: !dev, -}); - -const { - oauth2: { requestToken: getAccessToken }, - template: { invite: sendTemplateInvite }, -} = api; - -const getAccessToken$ = promisify(getAccessToken); -const sendTemplateInvite$ = promisify(sendTemplateInvite); - -getAccessToken$({ - username, - password, -}) - .then(({ access_token: token }) => { - const signers = JSON.parse(inviteStringified); - - return { - token, - signers, - }; - }) - .then(({ token, signers }) => sendTemplateInvite$({ - data: { - from: username, - to: signers, - }, - id: templateId, - token, - })) - .then(res => console.log(res)) - .catch(err => console.error(err)); diff --git a/bin/template-freeform-invite.js b/bin/template-freeform-invite.js deleted file mode 100755 index 427977e8..00000000 --- a/bin/template-freeform-invite.js +++ /dev/null @@ -1,55 +0,0 @@ -#!/usr/bin/env node - -/** - * to run template-freeform-invite applet from the project root folder type in your console: - * > node bin/template-freeform-invite - * , , , , - are required params - * options: - * --dev - request will be sent to developer sandbox API - */ - -'use strict'; - -const args = process.argv.slice(2); -const flags = args.filter(arg => /^--/.test(arg)); -const params = args.filter(arg => !/^--/.test(arg)); - -const [ - clientId, - clientSecret, - username, - password, - templateId, - signerEmail, -] = params; - -const dev = flags.includes('--dev'); - -const { promisify } = require('../utils'); -const api = require('../lib')({ - credentials: Buffer.from(`${clientId}:${clientSecret}`).toString('base64'), - production: !dev, -}); - -const { - oauth2: { requestToken: getAccessToken }, - template: { invite: sendFreeformInvite }, -} = api; - -const getAccessToken$ = promisify(getAccessToken); -const sendFreeformInvite$ = promisify(sendFreeformInvite); - -getAccessToken$({ - username, - password, -}) - .then(({ access_token: token }) => sendFreeformInvite$({ - data: { - from: username, - to: signerEmail, - }, - id: templateId, - token, - })) - .then(res => console.log(res)) - .catch(err => console.error(err)); diff --git a/bin/update-document.js b/bin/update-document.js deleted file mode 100755 index 36ddc3e8..00000000 --- a/bin/update-document.js +++ /dev/null @@ -1,69 +0,0 @@ -#!/usr/bin/env node - -/** - * to run update-document applet from the project root folder type in your console: - * > node bin/update-document '' - * , , , , , - are required params - * options: - * --dev - request will be sent to developer sandbox API - */ - -'use strict'; - -const args = process.argv.slice(2); -const flags = args.filter(arg => /^--/.test(arg)); -const params = args.filter(arg => !/^--/.test(arg)); - -const [ - clientId, - clientSecret, - username, - password, - documentId, - fieldsStringified, -] = params; - -const dev = flags.includes('--dev'); - -const { promisify } = require('../utils'); -const api = require('../lib')({ - credentials: Buffer.from(`${clientId}:${clientSecret}`).toString('base64'), - production: !dev, -}); - -const { - oauth2: { requestToken: getAccessToken }, - document: { update: addFields }, -} = api; - -const getAccessToken$ = promisify(getAccessToken); -const addFields$ = promisify(addFields); - -getAccessToken$({ - username, - password, -}) - .then(({ access_token: token }) => { - const client_timestamp = Math.floor(Date.now() / 1000); - const fields = JSON.parse(fieldsStringified); - - return { - token, - client_timestamp, - fields, - }; - }) - .then(({ - token, - client_timestamp, - fields, - }) => addFields$({ - fields: { - client_timestamp, - fields, - }, - id: documentId, - token, - })) - .then(res => console.log(res)) - .catch(err => console.error(err)); diff --git a/bin/update-routing-details.js b/bin/update-routing-details.js deleted file mode 100755 index 7ae78475..00000000 --- a/bin/update-routing-details.js +++ /dev/null @@ -1,60 +0,0 @@ -#!/usr/bin/env node - -/** - * to run update-routing-details applet from the project root folder type in your console: - * > node bin/update-routing-details '' - * , , , , , - are required params - * options: - * --dev - request will be sent to developer sandbox API - */ - -'use strict'; - -const args = process.argv.slice(2); -const flags = args.filter(arg => /^--/.test(arg)); -const params = args.filter(arg => !/^--/.test(arg)); - -const [ - clientId, - clientSecret, - username, - password, - templateId, - routingDetailsStringified, -] = params; - -const dev = flags.includes('--dev'); - -const { promisify } = require('../utils'); -const api = require('../lib')({ - credentials: Buffer.from(`${clientId}:${clientSecret}`).toString('base64'), - production: !dev, -}); - -const { - oauth2: { requestToken: getAccessToken }, - template: { updateRoutingDetails }, -} = api; - -const getAccessToken$ = promisify(getAccessToken); -const updateRoutingDetails$ = promisify(updateRoutingDetails); - -getAccessToken$({ - username, - password, -}) - .then(({ access_token: token }) => { - const routingDetails = JSON.parse(routingDetailsStringified); - - return { - token, - routingDetails, - }; - }) - .then(({ token, routingDetails }) => updateRoutingDetails$({ - data: routingDetails, - id: templateId, - token, - })) - .then(res => console.log(res)) - .catch(err => console.error(err)); diff --git a/bin/user-info.js b/bin/user-info.js deleted file mode 100755 index 9d885703..00000000 --- a/bin/user-info.js +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/env node - -/** - * to run user-info applet from the project root folder type in your console: - * > node bin/user-info - * , , , - are required params - * options: - * --dev - request will be sent to developer sandbox API - */ - -'use strict'; - -const args = process.argv.slice(2); -const flags = args.filter(arg => /^--/.test(arg)); -const params = args.filter(arg => !/^--/.test(arg)); - -const [ - clientId, - clientSecret, - username, - password, -] = params; - -const dev = flags.includes('--dev'); - -const { promisify } = require('../utils'); -const api = require('../lib')({ - credentials: Buffer.from(`${clientId}:${clientSecret}`).toString('base64'), - production: !dev, -}); - -const { - oauth2: { requestToken: getAccessToken }, - user: { retrieve: getUserInfo }, -} = api; - -const getAccessToken$ = promisify(getAccessToken); -const getUserInfo$ = promisify(getUserInfo); - -getAccessToken$({ - username, - password, -}) - .then(({ access_token: token }) => getUserInfo$({ token })) - .then(res => console.log(res)) - .catch(err => console.error(err)); diff --git a/bin/verify-access-token.js b/bin/verify-access-token.js deleted file mode 100755 index c3b57bd3..00000000 --- a/bin/verify-access-token.js +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env node - -/** - * to run verify-access-token applet from the project root folder type in your console: - * > node bin/verify-access-token - * , , - are required params - * options: - * --dev - request will be sent to developer sandbox API - */ - -'use strict'; - -const args = process.argv.slice(2); -const flags = args.filter(arg => /^--/.test(arg)); -const params = args.filter(arg => !/^--/.test(arg)); - -const [ - clientId, - clientSecret, - token, -] = params; - -const dev = flags.includes('--dev'); - -const { promisify } = require('../utils'); -const api = require('../lib')({ - credentials: Buffer.from(`${clientId}:${clientSecret}`).toString('base64'), - production: !dev, -}); - -const { oauth2: { verify: verifyAccessToken } } = api; - -const verifyAccessToken$ = promisify(verifyAccessToken); - -verifyAccessToken$({ token }) - .then(res => console.log(res)) - .catch(err => console.error(err)); diff --git a/bin/verify-email.js b/bin/verify-email.js deleted file mode 100644 index abfce7a6..00000000 --- a/bin/verify-email.js +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env node - -/** - * to run verify-email applet from the project root folder type in your console: - * > node bin/verify-email - * , , - are required params - */ - -'use strict'; - -const [ - clientId, - clientSecret, - email, -] = process.argv.slice(2); - -const { promisify } = require('../utils'); -const api = require('../lib')({ - credentials: Buffer.from(`${clientId}:${clientSecret}`).toString('base64'), - production: false, -}); - -const { user: { verifyEmail } } = api; - -const verifyEmail$ = promisify(verifyEmail); - -verifyEmail$({ email }) - .then(res => console.log(res)) - .catch(err => console.error(err)); diff --git a/bin/view-document-group.js b/bin/view-document-group.js deleted file mode 100755 index 56708bf3..00000000 --- a/bin/view-document-group.js +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env node - -/** - * to run view-document-group applet from the project root folder type in your console: - * > node bin/view-document-group - * , , , , - are required params - * options: - * --dev - request will be sent to developer sandbox API - */ - -'use strict'; - -const args = process.argv.slice(2); -const flags = args.filter(arg => /^--/.test(arg)); -const params = args.filter(arg => !/^--/.test(arg)); - -const [ - clientId, - clientSecret, - username, - password, - documentGroupId, -] = params; - -const dev = flags.includes('--dev'); - -const { promisify } = require('../utils'); -const api = require('../lib')({ - credentials: Buffer.from(`${clientId}:${clientSecret}`).toString('base64'), - production: !dev, -}); - -const { - oauth2: { requestToken: getAccessToken }, - documentGroup: { view: viewDocumentGroup }, -} = api; - -const getAccessToken$ = promisify(getAccessToken); -const viewDocumentGroup$ = promisify(viewDocumentGroup); - -getAccessToken$({ - username, - password, -}) - .then(({ access_token: token }) => viewDocumentGroup$({ - id: documentGroupId, - token, - })) - .then(res => console.log(res)) - .catch(err => console.error(err)); diff --git a/bin/view-document.js b/bin/view-document.js deleted file mode 100755 index d371470f..00000000 --- a/bin/view-document.js +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env node - -/** - * to run view-document applet from the project root folder type in your console: - * > node bin/view-document - * , , , , - are required params - * options: - * --dev - request will be sent to developer sandbox API - */ - -'use strict'; - -const args = process.argv.slice(2); -const flags = args.filter(arg => /^--/.test(arg)); -const params = args.filter(arg => !/^--/.test(arg)); - -const [ - clientId, - clientSecret, - username, - password, - documentId, -] = params; - -const dev = flags.includes('--dev'); - -const { promisify } = require('../utils'); -const api = require('../lib')({ - credentials: Buffer.from(`${clientId}:${clientSecret}`).toString('base64'), - production: !dev, -}); - -const { - oauth2: { requestToken: getAccessToken }, - document: { view: viewDocument }, -} = api; - -const getAccessToken$ = promisify(getAccessToken); -const viewDocument$ = promisify(viewDocument); - -getAccessToken$({ - username, - password, -}) - .then(({ access_token: token }) => viewDocument$({ - id: documentId, - token, - })) - .then(res => console.log(res)) - .catch(err => console.error(err)); diff --git a/bin/view-documentgroup-template.js b/bin/view-documentgroup-template.js deleted file mode 100755 index f29bd583..00000000 --- a/bin/view-documentgroup-template.js +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env node - -/** - * to run view-documentgroup-template applet from the project root folder type in your console: - * > node bin/view-documentgroup-template - * , , , , - are required params - * options: - * --dev - request will be sent to developer sandbox API - */ - -'use strict'; - -const args = process.argv.slice(2); -const flags = args.filter(arg => /^--/.test(arg)); -const params = args.filter(arg => !/^--/.test(arg)); - -const [ - clientId, - clientSecret, - username, - password, - documentGroupTemplateId, -] = params; - -const dev = flags.includes('--dev'); - -const { promisify } = require('../utils'); -const api = require('../lib')({ - credentials: Buffer.from(`${clientId}:${clientSecret}`).toString('base64'), - production: !dev, -}); - -const { - oauth2: { requestToken: getAccessToken }, - documentGroupTemplate: { view: viewDocumentGroupTemplate }, -} = api; - -const getAccessToken$ = promisify(getAccessToken); -const viewDocumentGroupTemplate$ = promisify(viewDocumentGroupTemplate); - -getAccessToken$({ - username, - password, -}) - .then(({ access_token: token }) => viewDocumentGroupTemplate$({ - id: documentGroupTemplateId, - token, - })) - .then(res => console.log(res)) - .catch(err => console.error(err)); diff --git a/config/eval.js b/config/eval.js deleted file mode 100644 index 461b9eeb..00000000 --- a/config/eval.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; - -/** - * @type {EnvConfig} - */ -const config = { - api: { - host: 'api-eval.signnow.com', - port: 443, - }, -}; - -module.exports = config; diff --git a/config/index.js b/config/index.js deleted file mode 100644 index 9e6a60f5..00000000 --- a/config/index.js +++ /dev/null @@ -1,34 +0,0 @@ -/* eslint-disable global-require */ -'use strict'; - -let currentEnvironment = 'prod'; - -/** - * @type {EnvConfig} - */ -const currentConfig = {}; - -/** - * Returns environment config data - * @return {EnvConfig} - */ -const getEnvConfig = () => currentConfig; - -/** - * Sets and returns environment config data - * @param {string} [env] - * @return {EnvConfig} - */ -const setEnvConfig = env => { - if (env) { - currentEnvironment = env; - return Object.assign(currentConfig, require(`./${env}`)); - } - - return Object.assign(currentConfig, require(`./${currentEnvironment}`)); -}; - -module.exports = { - getEnvConfig, - setEnvConfig, -}; diff --git a/config/prod.js b/config/prod.js deleted file mode 100644 index 8d767ef7..00000000 --- a/config/prod.js +++ /dev/null @@ -1,26 +0,0 @@ -'use strict'; - -/** - * API settings - * @typedef {Object} APISettings - * @property {string} host - * @property {string} port - */ - -/** - * Environment configuration - * @typedef {Object} EnvConfig - * @property {APISettings} api - */ - -/** - * @type {EnvConfig} - */ -const config = { - api: { - host: 'api.signnow.com', - port: 443, - }, -}; - -module.exports = config; diff --git a/docs/ast/source/.external-ecmascript.js.json b/docs/ast/source/.external-ecmascript.js.json deleted file mode 100644 index 21893b9c..00000000 --- a/docs/ast/source/.external-ecmascript.js.json +++ /dev/null @@ -1,2802 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 6058, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 193, - "column": 0 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 6058, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 193, - "column": 0 - } - }, - "sourceType": "module", - "body": [], - "directives": [], - "leadingComments": null, - "innerComments": [ - { - "type": "CommentLine", - "value": " https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects", - "start": 0, - "end": 83, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 83 - } - } - }, - { - "type": "CommentLine", - "value": " Value properties", - "start": 85, - "end": 104, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 19 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Infinity} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity\n ", - "start": 105, - "end": 226, - "loc": { - "start": { - "line": 4, - "column": 0 - }, - "end": { - "line": 6, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {NaN} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN\n ", - "start": 228, - "end": 339, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 10, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {undefined} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined\n ", - "start": 341, - "end": 464, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 14, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {null} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null\n ", - "start": 466, - "end": 579, - "loc": { - "start": { - "line": 16, - "column": 0 - }, - "end": { - "line": 18, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Fundamental objects", - "start": 581, - "end": 603, - "loc": { - "start": { - "line": 20, - "column": 0 - }, - "end": { - "line": 20, - "column": 22 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Object} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object\n ", - "start": 604, - "end": 721, - "loc": { - "start": { - "line": 21, - "column": 0 - }, - "end": { - "line": 23, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {object} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object\n ", - "start": 722, - "end": 839, - "loc": { - "start": { - "line": 24, - "column": 0 - }, - "end": { - "line": 26, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Function} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function\n ", - "start": 841, - "end": 962, - "loc": { - "start": { - "line": 28, - "column": 0 - }, - "end": { - "line": 30, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {function} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function\n ", - "start": 963, - "end": 1084, - "loc": { - "start": { - "line": 31, - "column": 0 - }, - "end": { - "line": 33, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Boolean} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean\n ", - "start": 1086, - "end": 1205, - "loc": { - "start": { - "line": 35, - "column": 0 - }, - "end": { - "line": 37, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {boolean} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean\n ", - "start": 1206, - "end": 1325, - "loc": { - "start": { - "line": 38, - "column": 0 - }, - "end": { - "line": 40, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Symbol} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol\n ", - "start": 1327, - "end": 1444, - "loc": { - "start": { - "line": 42, - "column": 0 - }, - "end": { - "line": 44, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Error} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error\n ", - "start": 1446, - "end": 1561, - "loc": { - "start": { - "line": 46, - "column": 0 - }, - "end": { - "line": 48, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {EvalError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError\n ", - "start": 1563, - "end": 1686, - "loc": { - "start": { - "line": 50, - "column": 0 - }, - "end": { - "line": 52, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {InternalError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError\n ", - "start": 1688, - "end": 1819, - "loc": { - "start": { - "line": 54, - "column": 0 - }, - "end": { - "line": 56, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {RangeError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError\n ", - "start": 1821, - "end": 1946, - "loc": { - "start": { - "line": 58, - "column": 0 - }, - "end": { - "line": 60, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {ReferenceError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError\n ", - "start": 1948, - "end": 2081, - "loc": { - "start": { - "line": 62, - "column": 0 - }, - "end": { - "line": 64, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {SyntaxError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError\n ", - "start": 2083, - "end": 2210, - "loc": { - "start": { - "line": 66, - "column": 0 - }, - "end": { - "line": 68, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {TypeError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError\n ", - "start": 2212, - "end": 2335, - "loc": { - "start": { - "line": 70, - "column": 0 - }, - "end": { - "line": 72, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {URIError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError\n ", - "start": 2337, - "end": 2458, - "loc": { - "start": { - "line": 74, - "column": 0 - }, - "end": { - "line": 76, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Numbers and dates", - "start": 2460, - "end": 2480, - "loc": { - "start": { - "line": 78, - "column": 0 - }, - "end": { - "line": 78, - "column": 20 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Number} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number\n ", - "start": 2481, - "end": 2598, - "loc": { - "start": { - "line": 79, - "column": 0 - }, - "end": { - "line": 81, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {number} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number\n ", - "start": 2599, - "end": 2716, - "loc": { - "start": { - "line": 82, - "column": 0 - }, - "end": { - "line": 84, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Date} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date\n ", - "start": 2718, - "end": 2831, - "loc": { - "start": { - "line": 86, - "column": 0 - }, - "end": { - "line": 88, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Text processing", - "start": 2833, - "end": 2851, - "loc": { - "start": { - "line": 90, - "column": 0 - }, - "end": { - "line": 90, - "column": 18 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {String} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String\n ", - "start": 2852, - "end": 2969, - "loc": { - "start": { - "line": 91, - "column": 0 - }, - "end": { - "line": 93, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {string} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String\n ", - "start": 2970, - "end": 3087, - "loc": { - "start": { - "line": 94, - "column": 0 - }, - "end": { - "line": 96, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {RegExp} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp\n ", - "start": 3089, - "end": 3206, - "loc": { - "start": { - "line": 98, - "column": 0 - }, - "end": { - "line": 100, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Indexed collections", - "start": 3208, - "end": 3230, - "loc": { - "start": { - "line": 102, - "column": 0 - }, - "end": { - "line": 102, - "column": 22 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array\n ", - "start": 3231, - "end": 3346, - "loc": { - "start": { - "line": 103, - "column": 0 - }, - "end": { - "line": 105, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Int8Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array\n ", - "start": 3348, - "end": 3471, - "loc": { - "start": { - "line": 107, - "column": 0 - }, - "end": { - "line": 109, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Uint8Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array\n ", - "start": 3472, - "end": 3597, - "loc": { - "start": { - "line": 110, - "column": 0 - }, - "end": { - "line": 112, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Uint8ClampedArray} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray\n ", - "start": 3599, - "end": 3738, - "loc": { - "start": { - "line": 114, - "column": 0 - }, - "end": { - "line": 116, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Int16Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array\n ", - "start": 3740, - "end": 3865, - "loc": { - "start": { - "line": 118, - "column": 0 - }, - "end": { - "line": 120, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Uint16Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array\n ", - "start": 3867, - "end": 3994, - "loc": { - "start": { - "line": 122, - "column": 0 - }, - "end": { - "line": 124, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Int32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array\n ", - "start": 3996, - "end": 4121, - "loc": { - "start": { - "line": 126, - "column": 0 - }, - "end": { - "line": 128, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Uint32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array\n ", - "start": 4123, - "end": 4250, - "loc": { - "start": { - "line": 130, - "column": 0 - }, - "end": { - "line": 132, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Float32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array\n ", - "start": 4252, - "end": 4381, - "loc": { - "start": { - "line": 134, - "column": 0 - }, - "end": { - "line": 136, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Float64Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array\n ", - "start": 4383, - "end": 4512, - "loc": { - "start": { - "line": 138, - "column": 0 - }, - "end": { - "line": 140, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Keyed collections", - "start": 4514, - "end": 4534, - "loc": { - "start": { - "line": 142, - "column": 0 - }, - "end": { - "line": 142, - "column": 20 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Map} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map\n ", - "start": 4535, - "end": 4646, - "loc": { - "start": { - "line": 143, - "column": 0 - }, - "end": { - "line": 145, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Set} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set\n ", - "start": 4648, - "end": 4759, - "loc": { - "start": { - "line": 147, - "column": 0 - }, - "end": { - "line": 149, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {WeakMap} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap\n ", - "start": 4761, - "end": 4880, - "loc": { - "start": { - "line": 151, - "column": 0 - }, - "end": { - "line": 153, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {WeakSet} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet\n ", - "start": 4882, - "end": 5001, - "loc": { - "start": { - "line": 155, - "column": 0 - }, - "end": { - "line": 157, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Structured data", - "start": 5003, - "end": 5021, - "loc": { - "start": { - "line": 159, - "column": 0 - }, - "end": { - "line": 159, - "column": 18 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {ArrayBuffer} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer\n ", - "start": 5022, - "end": 5149, - "loc": { - "start": { - "line": 160, - "column": 0 - }, - "end": { - "line": 162, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {DataView} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView\n ", - "start": 5151, - "end": 5272, - "loc": { - "start": { - "line": 164, - "column": 0 - }, - "end": { - "line": 166, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {JSON} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON\n ", - "start": 5274, - "end": 5387, - "loc": { - "start": { - "line": 168, - "column": 0 - }, - "end": { - "line": 170, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Control abstraction objects", - "start": 5389, - "end": 5419, - "loc": { - "start": { - "line": 172, - "column": 0 - }, - "end": { - "line": 172, - "column": 30 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Promise} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise\n ", - "start": 5420, - "end": 5539, - "loc": { - "start": { - "line": 173, - "column": 0 - }, - "end": { - "line": 175, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Generator} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator\n ", - "start": 5541, - "end": 5664, - "loc": { - "start": { - "line": 177, - "column": 0 - }, - "end": { - "line": 179, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {GeneratorFunction} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction\n ", - "start": 5666, - "end": 5805, - "loc": { - "start": { - "line": 181, - "column": 0 - }, - "end": { - "line": 183, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Reflection", - "start": 5807, - "end": 5820, - "loc": { - "start": { - "line": 185, - "column": 0 - }, - "end": { - "line": 185, - "column": 13 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Reflect} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect\n ", - "start": 5821, - "end": 5940, - "loc": { - "start": { - "line": 186, - "column": 0 - }, - "end": { - "line": 188, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Proxy} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy\n ", - "start": 5942, - "end": 6057, - "loc": { - "start": { - "line": 190, - "column": 0 - }, - "end": { - "line": 192, - "column": 3 - } - } - } - ] - }, - "comments": [ - { - "type": "CommentLine", - "value": " https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects", - "start": 0, - "end": 83, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 83 - } - } - }, - { - "type": "CommentLine", - "value": " Value properties", - "start": 85, - "end": 104, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 19 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Infinity} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity\n ", - "start": 105, - "end": 226, - "loc": { - "start": { - "line": 4, - "column": 0 - }, - "end": { - "line": 6, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {NaN} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN\n ", - "start": 228, - "end": 339, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 10, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {undefined} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined\n ", - "start": 341, - "end": 464, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 14, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {null} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null\n ", - "start": 466, - "end": 579, - "loc": { - "start": { - "line": 16, - "column": 0 - }, - "end": { - "line": 18, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Fundamental objects", - "start": 581, - "end": 603, - "loc": { - "start": { - "line": 20, - "column": 0 - }, - "end": { - "line": 20, - "column": 22 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Object} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object\n ", - "start": 604, - "end": 721, - "loc": { - "start": { - "line": 21, - "column": 0 - }, - "end": { - "line": 23, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {object} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object\n ", - "start": 722, - "end": 839, - "loc": { - "start": { - "line": 24, - "column": 0 - }, - "end": { - "line": 26, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Function} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function\n ", - "start": 841, - "end": 962, - "loc": { - "start": { - "line": 28, - "column": 0 - }, - "end": { - "line": 30, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {function} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function\n ", - "start": 963, - "end": 1084, - "loc": { - "start": { - "line": 31, - "column": 0 - }, - "end": { - "line": 33, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Boolean} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean\n ", - "start": 1086, - "end": 1205, - "loc": { - "start": { - "line": 35, - "column": 0 - }, - "end": { - "line": 37, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {boolean} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean\n ", - "start": 1206, - "end": 1325, - "loc": { - "start": { - "line": 38, - "column": 0 - }, - "end": { - "line": 40, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Symbol} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol\n ", - "start": 1327, - "end": 1444, - "loc": { - "start": { - "line": 42, - "column": 0 - }, - "end": { - "line": 44, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Error} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error\n ", - "start": 1446, - "end": 1561, - "loc": { - "start": { - "line": 46, - "column": 0 - }, - "end": { - "line": 48, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {EvalError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError\n ", - "start": 1563, - "end": 1686, - "loc": { - "start": { - "line": 50, - "column": 0 - }, - "end": { - "line": 52, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {InternalError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError\n ", - "start": 1688, - "end": 1819, - "loc": { - "start": { - "line": 54, - "column": 0 - }, - "end": { - "line": 56, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {RangeError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError\n ", - "start": 1821, - "end": 1946, - "loc": { - "start": { - "line": 58, - "column": 0 - }, - "end": { - "line": 60, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {ReferenceError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError\n ", - "start": 1948, - "end": 2081, - "loc": { - "start": { - "line": 62, - "column": 0 - }, - "end": { - "line": 64, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {SyntaxError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError\n ", - "start": 2083, - "end": 2210, - "loc": { - "start": { - "line": 66, - "column": 0 - }, - "end": { - "line": 68, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {TypeError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError\n ", - "start": 2212, - "end": 2335, - "loc": { - "start": { - "line": 70, - "column": 0 - }, - "end": { - "line": 72, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {URIError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError\n ", - "start": 2337, - "end": 2458, - "loc": { - "start": { - "line": 74, - "column": 0 - }, - "end": { - "line": 76, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Numbers and dates", - "start": 2460, - "end": 2480, - "loc": { - "start": { - "line": 78, - "column": 0 - }, - "end": { - "line": 78, - "column": 20 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Number} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number\n ", - "start": 2481, - "end": 2598, - "loc": { - "start": { - "line": 79, - "column": 0 - }, - "end": { - "line": 81, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {number} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number\n ", - "start": 2599, - "end": 2716, - "loc": { - "start": { - "line": 82, - "column": 0 - }, - "end": { - "line": 84, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Date} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date\n ", - "start": 2718, - "end": 2831, - "loc": { - "start": { - "line": 86, - "column": 0 - }, - "end": { - "line": 88, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Text processing", - "start": 2833, - "end": 2851, - "loc": { - "start": { - "line": 90, - "column": 0 - }, - "end": { - "line": 90, - "column": 18 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {String} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String\n ", - "start": 2852, - "end": 2969, - "loc": { - "start": { - "line": 91, - "column": 0 - }, - "end": { - "line": 93, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {string} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String\n ", - "start": 2970, - "end": 3087, - "loc": { - "start": { - "line": 94, - "column": 0 - }, - "end": { - "line": 96, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {RegExp} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp\n ", - "start": 3089, - "end": 3206, - "loc": { - "start": { - "line": 98, - "column": 0 - }, - "end": { - "line": 100, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Indexed collections", - "start": 3208, - "end": 3230, - "loc": { - "start": { - "line": 102, - "column": 0 - }, - "end": { - "line": 102, - "column": 22 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array\n ", - "start": 3231, - "end": 3346, - "loc": { - "start": { - "line": 103, - "column": 0 - }, - "end": { - "line": 105, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Int8Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array\n ", - "start": 3348, - "end": 3471, - "loc": { - "start": { - "line": 107, - "column": 0 - }, - "end": { - "line": 109, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Uint8Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array\n ", - "start": 3472, - "end": 3597, - "loc": { - "start": { - "line": 110, - "column": 0 - }, - "end": { - "line": 112, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Uint8ClampedArray} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray\n ", - "start": 3599, - "end": 3738, - "loc": { - "start": { - "line": 114, - "column": 0 - }, - "end": { - "line": 116, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Int16Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array\n ", - "start": 3740, - "end": 3865, - "loc": { - "start": { - "line": 118, - "column": 0 - }, - "end": { - "line": 120, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Uint16Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array\n ", - "start": 3867, - "end": 3994, - "loc": { - "start": { - "line": 122, - "column": 0 - }, - "end": { - "line": 124, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Int32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array\n ", - "start": 3996, - "end": 4121, - "loc": { - "start": { - "line": 126, - "column": 0 - }, - "end": { - "line": 128, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Uint32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array\n ", - "start": 4123, - "end": 4250, - "loc": { - "start": { - "line": 130, - "column": 0 - }, - "end": { - "line": 132, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Float32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array\n ", - "start": 4252, - "end": 4381, - "loc": { - "start": { - "line": 134, - "column": 0 - }, - "end": { - "line": 136, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Float64Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array\n ", - "start": 4383, - "end": 4512, - "loc": { - "start": { - "line": 138, - "column": 0 - }, - "end": { - "line": 140, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Keyed collections", - "start": 4514, - "end": 4534, - "loc": { - "start": { - "line": 142, - "column": 0 - }, - "end": { - "line": 142, - "column": 20 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Map} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map\n ", - "start": 4535, - "end": 4646, - "loc": { - "start": { - "line": 143, - "column": 0 - }, - "end": { - "line": 145, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Set} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set\n ", - "start": 4648, - "end": 4759, - "loc": { - "start": { - "line": 147, - "column": 0 - }, - "end": { - "line": 149, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {WeakMap} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap\n ", - "start": 4761, - "end": 4880, - "loc": { - "start": { - "line": 151, - "column": 0 - }, - "end": { - "line": 153, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {WeakSet} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet\n ", - "start": 4882, - "end": 5001, - "loc": { - "start": { - "line": 155, - "column": 0 - }, - "end": { - "line": 157, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Structured data", - "start": 5003, - "end": 5021, - "loc": { - "start": { - "line": 159, - "column": 0 - }, - "end": { - "line": 159, - "column": 18 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {ArrayBuffer} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer\n ", - "start": 5022, - "end": 5149, - "loc": { - "start": { - "line": 160, - "column": 0 - }, - "end": { - "line": 162, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {DataView} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView\n ", - "start": 5151, - "end": 5272, - "loc": { - "start": { - "line": 164, - "column": 0 - }, - "end": { - "line": 166, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {JSON} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON\n ", - "start": 5274, - "end": 5387, - "loc": { - "start": { - "line": 168, - "column": 0 - }, - "end": { - "line": 170, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Control abstraction objects", - "start": 5389, - "end": 5419, - "loc": { - "start": { - "line": 172, - "column": 0 - }, - "end": { - "line": 172, - "column": 30 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Promise} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise\n ", - "start": 5420, - "end": 5539, - "loc": { - "start": { - "line": 173, - "column": 0 - }, - "end": { - "line": 175, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Generator} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator\n ", - "start": 5541, - "end": 5664, - "loc": { - "start": { - "line": 177, - "column": 0 - }, - "end": { - "line": 179, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {GeneratorFunction} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction\n ", - "start": 5666, - "end": 5805, - "loc": { - "start": { - "line": 181, - "column": 0 - }, - "end": { - "line": 183, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Reflection", - "start": 5807, - "end": 5820, - "loc": { - "start": { - "line": 185, - "column": 0 - }, - "end": { - "line": 185, - "column": 13 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Reflect} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect\n ", - "start": 5821, - "end": 5940, - "loc": { - "start": { - "line": 186, - "column": 0 - }, - "end": { - "line": 188, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Proxy} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy\n ", - "start": 5942, - "end": 6057, - "loc": { - "start": { - "line": 190, - "column": 0 - }, - "end": { - "line": 192, - "column": 3 - } - } - } - ], - "tokens": [ - { - "type": "CommentLine", - "value": " https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects", - "start": 0, - "end": 83, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 83 - } - } - }, - { - "type": "CommentLine", - "value": " Value properties", - "start": 85, - "end": 104, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 19 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Infinity} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity\n ", - "start": 105, - "end": 226, - "loc": { - "start": { - "line": 4, - "column": 0 - }, - "end": { - "line": 6, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {NaN} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN\n ", - "start": 228, - "end": 339, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 10, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {undefined} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined\n ", - "start": 341, - "end": 464, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 14, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {null} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null\n ", - "start": 466, - "end": 579, - "loc": { - "start": { - "line": 16, - "column": 0 - }, - "end": { - "line": 18, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Fundamental objects", - "start": 581, - "end": 603, - "loc": { - "start": { - "line": 20, - "column": 0 - }, - "end": { - "line": 20, - "column": 22 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Object} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object\n ", - "start": 604, - "end": 721, - "loc": { - "start": { - "line": 21, - "column": 0 - }, - "end": { - "line": 23, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {object} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object\n ", - "start": 722, - "end": 839, - "loc": { - "start": { - "line": 24, - "column": 0 - }, - "end": { - "line": 26, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Function} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function\n ", - "start": 841, - "end": 962, - "loc": { - "start": { - "line": 28, - "column": 0 - }, - "end": { - "line": 30, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {function} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function\n ", - "start": 963, - "end": 1084, - "loc": { - "start": { - "line": 31, - "column": 0 - }, - "end": { - "line": 33, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Boolean} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean\n ", - "start": 1086, - "end": 1205, - "loc": { - "start": { - "line": 35, - "column": 0 - }, - "end": { - "line": 37, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {boolean} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean\n ", - "start": 1206, - "end": 1325, - "loc": { - "start": { - "line": 38, - "column": 0 - }, - "end": { - "line": 40, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Symbol} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol\n ", - "start": 1327, - "end": 1444, - "loc": { - "start": { - "line": 42, - "column": 0 - }, - "end": { - "line": 44, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Error} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error\n ", - "start": 1446, - "end": 1561, - "loc": { - "start": { - "line": 46, - "column": 0 - }, - "end": { - "line": 48, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {EvalError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError\n ", - "start": 1563, - "end": 1686, - "loc": { - "start": { - "line": 50, - "column": 0 - }, - "end": { - "line": 52, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {InternalError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError\n ", - "start": 1688, - "end": 1819, - "loc": { - "start": { - "line": 54, - "column": 0 - }, - "end": { - "line": 56, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {RangeError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError\n ", - "start": 1821, - "end": 1946, - "loc": { - "start": { - "line": 58, - "column": 0 - }, - "end": { - "line": 60, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {ReferenceError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError\n ", - "start": 1948, - "end": 2081, - "loc": { - "start": { - "line": 62, - "column": 0 - }, - "end": { - "line": 64, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {SyntaxError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError\n ", - "start": 2083, - "end": 2210, - "loc": { - "start": { - "line": 66, - "column": 0 - }, - "end": { - "line": 68, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {TypeError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError\n ", - "start": 2212, - "end": 2335, - "loc": { - "start": { - "line": 70, - "column": 0 - }, - "end": { - "line": 72, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {URIError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError\n ", - "start": 2337, - "end": 2458, - "loc": { - "start": { - "line": 74, - "column": 0 - }, - "end": { - "line": 76, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Numbers and dates", - "start": 2460, - "end": 2480, - "loc": { - "start": { - "line": 78, - "column": 0 - }, - "end": { - "line": 78, - "column": 20 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Number} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number\n ", - "start": 2481, - "end": 2598, - "loc": { - "start": { - "line": 79, - "column": 0 - }, - "end": { - "line": 81, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {number} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number\n ", - "start": 2599, - "end": 2716, - "loc": { - "start": { - "line": 82, - "column": 0 - }, - "end": { - "line": 84, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Date} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date\n ", - "start": 2718, - "end": 2831, - "loc": { - "start": { - "line": 86, - "column": 0 - }, - "end": { - "line": 88, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Text processing", - "start": 2833, - "end": 2851, - "loc": { - "start": { - "line": 90, - "column": 0 - }, - "end": { - "line": 90, - "column": 18 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {String} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String\n ", - "start": 2852, - "end": 2969, - "loc": { - "start": { - "line": 91, - "column": 0 - }, - "end": { - "line": 93, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {string} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String\n ", - "start": 2970, - "end": 3087, - "loc": { - "start": { - "line": 94, - "column": 0 - }, - "end": { - "line": 96, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {RegExp} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp\n ", - "start": 3089, - "end": 3206, - "loc": { - "start": { - "line": 98, - "column": 0 - }, - "end": { - "line": 100, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Indexed collections", - "start": 3208, - "end": 3230, - "loc": { - "start": { - "line": 102, - "column": 0 - }, - "end": { - "line": 102, - "column": 22 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array\n ", - "start": 3231, - "end": 3346, - "loc": { - "start": { - "line": 103, - "column": 0 - }, - "end": { - "line": 105, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Int8Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array\n ", - "start": 3348, - "end": 3471, - "loc": { - "start": { - "line": 107, - "column": 0 - }, - "end": { - "line": 109, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Uint8Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array\n ", - "start": 3472, - "end": 3597, - "loc": { - "start": { - "line": 110, - "column": 0 - }, - "end": { - "line": 112, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Uint8ClampedArray} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray\n ", - "start": 3599, - "end": 3738, - "loc": { - "start": { - "line": 114, - "column": 0 - }, - "end": { - "line": 116, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Int16Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array\n ", - "start": 3740, - "end": 3865, - "loc": { - "start": { - "line": 118, - "column": 0 - }, - "end": { - "line": 120, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Uint16Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array\n ", - "start": 3867, - "end": 3994, - "loc": { - "start": { - "line": 122, - "column": 0 - }, - "end": { - "line": 124, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Int32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array\n ", - "start": 3996, - "end": 4121, - "loc": { - "start": { - "line": 126, - "column": 0 - }, - "end": { - "line": 128, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Uint32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array\n ", - "start": 4123, - "end": 4250, - "loc": { - "start": { - "line": 130, - "column": 0 - }, - "end": { - "line": 132, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Float32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array\n ", - "start": 4252, - "end": 4381, - "loc": { - "start": { - "line": 134, - "column": 0 - }, - "end": { - "line": 136, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Float64Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array\n ", - "start": 4383, - "end": 4512, - "loc": { - "start": { - "line": 138, - "column": 0 - }, - "end": { - "line": 140, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Keyed collections", - "start": 4514, - "end": 4534, - "loc": { - "start": { - "line": 142, - "column": 0 - }, - "end": { - "line": 142, - "column": 20 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Map} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map\n ", - "start": 4535, - "end": 4646, - "loc": { - "start": { - "line": 143, - "column": 0 - }, - "end": { - "line": 145, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Set} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set\n ", - "start": 4648, - "end": 4759, - "loc": { - "start": { - "line": 147, - "column": 0 - }, - "end": { - "line": 149, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {WeakMap} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap\n ", - "start": 4761, - "end": 4880, - "loc": { - "start": { - "line": 151, - "column": 0 - }, - "end": { - "line": 153, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {WeakSet} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet\n ", - "start": 4882, - "end": 5001, - "loc": { - "start": { - "line": 155, - "column": 0 - }, - "end": { - "line": 157, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Structured data", - "start": 5003, - "end": 5021, - "loc": { - "start": { - "line": 159, - "column": 0 - }, - "end": { - "line": 159, - "column": 18 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {ArrayBuffer} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer\n ", - "start": 5022, - "end": 5149, - "loc": { - "start": { - "line": 160, - "column": 0 - }, - "end": { - "line": 162, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {DataView} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView\n ", - "start": 5151, - "end": 5272, - "loc": { - "start": { - "line": 164, - "column": 0 - }, - "end": { - "line": 166, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {JSON} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON\n ", - "start": 5274, - "end": 5387, - "loc": { - "start": { - "line": 168, - "column": 0 - }, - "end": { - "line": 170, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Control abstraction objects", - "start": 5389, - "end": 5419, - "loc": { - "start": { - "line": 172, - "column": 0 - }, - "end": { - "line": 172, - "column": 30 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Promise} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise\n ", - "start": 5420, - "end": 5539, - "loc": { - "start": { - "line": 173, - "column": 0 - }, - "end": { - "line": 175, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Generator} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator\n ", - "start": 5541, - "end": 5664, - "loc": { - "start": { - "line": 177, - "column": 0 - }, - "end": { - "line": 179, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {GeneratorFunction} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction\n ", - "start": 5666, - "end": 5805, - "loc": { - "start": { - "line": 181, - "column": 0 - }, - "end": { - "line": 183, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Reflection", - "start": 5807, - "end": 5820, - "loc": { - "start": { - "line": 185, - "column": 0 - }, - "end": { - "line": 185, - "column": 13 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Reflect} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect\n ", - "start": 5821, - "end": 5940, - "loc": { - "start": { - "line": 186, - "column": 0 - }, - "end": { - "line": 188, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Proxy} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy\n ", - "start": 5942, - "end": 6057, - "loc": { - "start": { - "line": 190, - "column": 0 - }, - "end": { - "line": 192, - "column": 3 - } - } - }, - { - "type": { - "label": "eof", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6058, - "end": 6058, - "loc": { - "start": { - "line": 193, - "column": 0 - }, - "end": { - "line": 193, - "column": 0 - } - } - } - ] -} \ No newline at end of file diff --git a/docs/ast/source/.external-nodejs.js.json b/docs/ast/source/.external-nodejs.js.json deleted file mode 100644 index 98d8aae5..00000000 --- a/docs/ast/source/.external-nodejs.js.json +++ /dev/null @@ -1,210 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 227, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 7, - "column": 0 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 227, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 7, - "column": 0 - } - }, - "sourceType": "module", - "body": [], - "directives": [], - "leadingComments": null, - "innerComments": [ - { - "type": "CommentLine", - "value": " https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects", - "start": 0, - "end": 83, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 83 - } - } - }, - { - "type": "CommentLine", - "value": " Value properties", - "start": 85, - "end": 104, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 19 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {http~ClientRequest} https://nodejs.org/dist/latest/docs/api/http.html#http_class_http_clientrequest\n ", - "start": 105, - "end": 226, - "loc": { - "start": { - "line": 4, - "column": 0 - }, - "end": { - "line": 6, - "column": 3 - } - } - } - ] - }, - "comments": [ - { - "type": "CommentLine", - "value": " https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects", - "start": 0, - "end": 83, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 83 - } - } - }, - { - "type": "CommentLine", - "value": " Value properties", - "start": 85, - "end": 104, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 19 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {http~ClientRequest} https://nodejs.org/dist/latest/docs/api/http.html#http_class_http_clientrequest\n ", - "start": 105, - "end": 226, - "loc": { - "start": { - "line": 4, - "column": 0 - }, - "end": { - "line": 6, - "column": 3 - } - } - } - ], - "tokens": [ - { - "type": "CommentLine", - "value": " https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects", - "start": 0, - "end": 83, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 83 - } - } - }, - { - "type": "CommentLine", - "value": " Value properties", - "start": 85, - "end": 104, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 19 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {http~ClientRequest} https://nodejs.org/dist/latest/docs/api/http.html#http_class_http_clientrequest\n ", - "start": 105, - "end": 226, - "loc": { - "start": { - "line": 4, - "column": 0 - }, - "end": { - "line": 6, - "column": 3 - } - } - }, - { - "type": { - "label": "eof", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 227, - "end": 227, - "loc": { - "start": { - "line": 7, - "column": 0 - }, - "end": { - "line": 7, - "column": 0 - } - } - } - ] -} \ No newline at end of file diff --git a/docs/ast/source/common.js.json b/docs/ast/source/common.js.json deleted file mode 100644 index 4b8e60a1..00000000 --- a/docs/ast/source/common.js.json +++ /dev/null @@ -1,13659 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 1550, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 84, - "column": 0 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 1550, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 84, - "column": 0 - } - }, - "sourceType": "module", - "body": [ - { - "type": "VariableDeclaration", - "start": 56, - "end": 189, - "loc": { - "start": { - "line": 6, - "column": 0 - }, - "end": { - "line": 12, - "column": 2 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 62, - "end": 188, - "loc": { - "start": { - "line": 6, - "column": 6 - }, - "end": { - "line": 12, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 62, - "end": 70, - "loc": { - "start": { - "line": 6, - "column": 6 - }, - "end": { - "line": 6, - "column": 14 - }, - "identifierName": "settings" - }, - "name": "settings", - "leadingComments": null - }, - "init": { - "type": "ObjectExpression", - "start": 73, - "end": 188, - "loc": { - "start": { - "line": 6, - "column": 17 - }, - "end": { - "line": 12, - "column": 1 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 77, - "end": 185, - "loc": { - "start": { - "line": 7, - "column": 2 - }, - "end": { - "line": 11, - "column": 3 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 77, - "end": 80, - "loc": { - "start": { - "line": 7, - "column": 2 - }, - "end": { - "line": 7, - "column": 5 - }, - "identifierName": "api" - }, - "name": "api" - }, - "value": { - "type": "ObjectExpression", - "start": 82, - "end": 185, - "loc": { - "start": { - "line": 7, - "column": 7 - }, - "end": { - "line": 11, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 88, - "end": 116, - "loc": { - "start": { - "line": 8, - "column": 4 - }, - "end": { - "line": 8, - "column": 32 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 88, - "end": 92, - "loc": { - "start": { - "line": 8, - "column": 4 - }, - "end": { - "line": 8, - "column": 8 - }, - "identifierName": "host" - }, - "name": "host" - }, - "value": { - "type": "StringLiteral", - "start": 94, - "end": 116, - "loc": { - "start": { - "line": 8, - "column": 10 - }, - "end": { - "line": 8, - "column": 32 - } - }, - "extra": { - "rawValue": "api-dev1.signnow.com", - "raw": "'api-dev1.signnow.com'" - }, - "value": "api-dev1.signnow.com" - } - }, - { - "type": "ObjectProperty", - "start": 150, - "end": 159, - "loc": { - "start": { - "line": 9, - "column": 4 - }, - "end": { - "line": 9, - "column": 13 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 150, - "end": 154, - "loc": { - "start": { - "line": 9, - "column": 4 - }, - "end": { - "line": 9, - "column": 8 - }, - "identifierName": "port" - }, - "name": "port", - "leadingComments": null - }, - "value": { - "type": "NumericLiteral", - "start": 156, - "end": 159, - "loc": { - "start": { - "line": 9, - "column": 10 - }, - "end": { - "line": 9, - "column": 13 - } - }, - "extra": { - "rawValue": 443, - "raw": "443" - }, - "value": 443 - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " TODO: chage back to eval", - "start": 118, - "end": 145, - "loc": { - "start": { - "line": 8, - "column": 34 - }, - "end": { - "line": 8, - "column": 61 - } - } - } - ] - }, - { - "type": "ObjectProperty", - "start": 165, - "end": 180, - "loc": { - "start": { - "line": 10, - "column": 4 - }, - "end": { - "line": 10, - "column": 19 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 165, - "end": 176, - "loc": { - "start": { - "line": 10, - "column": 4 - }, - "end": { - "line": 10, - "column": 15 - }, - "identifierName": "credentials" - }, - "name": "credentials" - }, - "value": { - "type": "StringLiteral", - "start": 178, - "end": 180, - "loc": { - "start": { - "line": 10, - "column": 17 - }, - "end": { - "line": 10, - "column": 19 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - } - ] - } - } - ] - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Common request setting object\n ", - "start": 15, - "end": 55, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 5, - "column": 3 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 191, - "end": 766, - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 41, - "column": 2 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 197, - "end": 765, - "loc": { - "start": { - "line": 14, - "column": 6 - }, - "end": { - "line": 41, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 197, - "end": 212, - "loc": { - "start": { - "line": 14, - "column": 6 - }, - "end": { - "line": 14, - "column": 21 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 215, - "end": 765, - "loc": { - "start": { - "line": 14, - "column": 24 - }, - "end": { - "line": 41, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 197, - "end": 212, - "loc": { - "start": { - "line": 14, - "column": 6 - }, - "end": { - "line": 14, - "column": 21 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 216, - "end": 224, - "loc": { - "start": { - "line": 14, - "column": 25 - }, - "end": { - "line": 14, - "column": 33 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - { - "type": "AssignmentPattern", - "start": 226, - "end": 247, - "loc": { - "start": { - "line": 14, - "column": 35 - }, - "end": { - "line": 14, - "column": 56 - } - }, - "left": { - "type": "ObjectPattern", - "start": 226, - "end": 242, - "loc": { - "start": { - "line": 14, - "column": 35 - }, - "end": { - "line": 14, - "column": 51 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 228, - "end": 240, - "loc": { - "start": { - "line": 14, - "column": 37 - }, - "end": { - "line": 14, - "column": 49 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 228, - "end": 233, - "loc": { - "start": { - "line": 14, - "column": 37 - }, - "end": { - "line": 14, - "column": 42 - }, - "identifierName": "parse" - }, - "name": "parse" - }, - "value": { - "type": "AssignmentPattern", - "start": 228, - "end": 240, - "loc": { - "start": { - "line": 14, - "column": 37 - }, - "end": { - "line": 14, - "column": 49 - } - }, - "left": { - "type": "Identifier", - "start": 228, - "end": 233, - "loc": { - "start": { - "line": 14, - "column": 37 - }, - "end": { - "line": 14, - "column": 42 - }, - "identifierName": "parse" - }, - "name": "parse" - }, - "right": { - "type": "BooleanLiteral", - "start": 236, - "end": 240, - "loc": { - "start": { - "line": 14, - "column": 45 - }, - "end": { - "line": 14, - "column": 49 - } - }, - "value": true - } - }, - "extra": { - "shorthand": true - } - } - ] - }, - "right": { - "type": "ObjectExpression", - "start": 245, - "end": 247, - "loc": { - "start": { - "line": 14, - "column": 54 - }, - "end": { - "line": 14, - "column": 56 - } - }, - "properties": [] - } - } - ], - "body": { - "type": "ArrowFunctionExpression", - "start": 252, - "end": 765, - "loc": { - "start": { - "line": 14, - "column": 61 - }, - "end": { - "line": 41, - "column": 1 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 252, - "end": 255, - "loc": { - "start": { - "line": 14, - "column": 61 - }, - "end": { - "line": 14, - "column": 64 - }, - "identifierName": "res" - }, - "name": "res" - } - ], - "body": { - "type": "BlockStatement", - "start": 259, - "end": 765, - "loc": { - "start": { - "line": 14, - "column": 68 - }, - "end": { - "line": 41, - "column": 1 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 263, - "end": 280, - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 15, - "column": 19 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 267, - "end": 279, - "loc": { - "start": { - "line": 15, - "column": 6 - }, - "end": { - "line": 15, - "column": 18 - } - }, - "id": { - "type": "Identifier", - "start": 267, - "end": 274, - "loc": { - "start": { - "line": 15, - "column": 6 - }, - "end": { - "line": 15, - "column": 13 - }, - "identifierName": "rawData" - }, - "name": "rawData" - }, - "init": { - "type": "StringLiteral", - "start": 277, - "end": 279, - "loc": { - "start": { - "line": 15, - "column": 16 - }, - "end": { - "line": 15, - "column": 18 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - } - ], - "kind": "let" - }, - { - "type": "ExpressionStatement", - "start": 284, - "end": 308, - "loc": { - "start": { - "line": 17, - "column": 2 - }, - "end": { - "line": 17, - "column": 26 - } - }, - "expression": { - "type": "CallExpression", - "start": 284, - "end": 307, - "loc": { - "start": { - "line": 17, - "column": 2 - }, - "end": { - "line": 17, - "column": 25 - } - }, - "callee": { - "type": "MemberExpression", - "start": 284, - "end": 299, - "loc": { - "start": { - "line": 17, - "column": 2 - }, - "end": { - "line": 17, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 284, - "end": 287, - "loc": { - "start": { - "line": 17, - "column": 2 - }, - "end": { - "line": 17, - "column": 5 - }, - "identifierName": "res" - }, - "name": "res" - }, - "property": { - "type": "Identifier", - "start": 288, - "end": 299, - "loc": { - "start": { - "line": 17, - "column": 6 - }, - "end": { - "line": 17, - "column": 17 - }, - "identifierName": "setEncoding" - }, - "name": "setEncoding" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 300, - "end": 306, - "loc": { - "start": { - "line": 17, - "column": 18 - }, - "end": { - "line": 17, - "column": 24 - } - }, - "extra": { - "rawValue": "utf8", - "raw": "'utf8'" - }, - "value": "utf8" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 312, - "end": 365, - "loc": { - "start": { - "line": 19, - "column": 2 - }, - "end": { - "line": 21, - "column": 5 - } - }, - "expression": { - "type": "CallExpression", - "start": 312, - "end": 364, - "loc": { - "start": { - "line": 19, - "column": 2 - }, - "end": { - "line": 21, - "column": 4 - } - }, - "callee": { - "type": "MemberExpression", - "start": 312, - "end": 318, - "loc": { - "start": { - "line": 19, - "column": 2 - }, - "end": { - "line": 19, - "column": 8 - } - }, - "object": { - "type": "Identifier", - "start": 312, - "end": 315, - "loc": { - "start": { - "line": 19, - "column": 2 - }, - "end": { - "line": 19, - "column": 5 - }, - "identifierName": "res" - }, - "name": "res" - }, - "property": { - "type": "Identifier", - "start": 316, - "end": 318, - "loc": { - "start": { - "line": 19, - "column": 6 - }, - "end": { - "line": 19, - "column": 8 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 319, - "end": 325, - "loc": { - "start": { - "line": 19, - "column": 9 - }, - "end": { - "line": 19, - "column": 15 - } - }, - "extra": { - "rawValue": "data", - "raw": "'data'" - }, - "value": "data" - }, - { - "type": "ArrowFunctionExpression", - "start": 327, - "end": 363, - "loc": { - "start": { - "line": 19, - "column": 17 - }, - "end": { - "line": 21, - "column": 3 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 327, - "end": 332, - "loc": { - "start": { - "line": 19, - "column": 17 - }, - "end": { - "line": 19, - "column": 22 - }, - "identifierName": "chunk" - }, - "name": "chunk" - } - ], - "body": { - "type": "BlockStatement", - "start": 336, - "end": 363, - "loc": { - "start": { - "line": 19, - "column": 26 - }, - "end": { - "line": 21, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 342, - "end": 359, - "loc": { - "start": { - "line": 20, - "column": 4 - }, - "end": { - "line": 20, - "column": 21 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 342, - "end": 358, - "loc": { - "start": { - "line": 20, - "column": 4 - }, - "end": { - "line": 20, - "column": 20 - } - }, - "operator": "+=", - "left": { - "type": "Identifier", - "start": 342, - "end": 349, - "loc": { - "start": { - "line": 20, - "column": 4 - }, - "end": { - "line": 20, - "column": 11 - }, - "identifierName": "rawData" - }, - "name": "rawData" - }, - "right": { - "type": "Identifier", - "start": 353, - "end": 358, - "loc": { - "start": { - "line": 20, - "column": 15 - }, - "end": { - "line": 20, - "column": 20 - }, - "identifierName": "chunk" - }, - "name": "chunk" - } - } - } - ], - "directives": [] - } - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 369, - "end": 763, - "loc": { - "start": { - "line": 23, - "column": 2 - }, - "end": { - "line": 40, - "column": 5 - } - }, - "expression": { - "type": "CallExpression", - "start": 369, - "end": 762, - "loc": { - "start": { - "line": 23, - "column": 2 - }, - "end": { - "line": 40, - "column": 4 - } - }, - "callee": { - "type": "MemberExpression", - "start": 369, - "end": 375, - "loc": { - "start": { - "line": 23, - "column": 2 - }, - "end": { - "line": 23, - "column": 8 - } - }, - "object": { - "type": "Identifier", - "start": 369, - "end": 372, - "loc": { - "start": { - "line": 23, - "column": 2 - }, - "end": { - "line": 23, - "column": 5 - }, - "identifierName": "res" - }, - "name": "res" - }, - "property": { - "type": "Identifier", - "start": 373, - "end": 375, - "loc": { - "start": { - "line": 23, - "column": 6 - }, - "end": { - "line": 23, - "column": 8 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 376, - "end": 381, - "loc": { - "start": { - "line": 23, - "column": 9 - }, - "end": { - "line": 23, - "column": 14 - } - }, - "extra": { - "rawValue": "end", - "raw": "'end'" - }, - "value": "end" - }, - { - "type": "ArrowFunctionExpression", - "start": 383, - "end": 761, - "loc": { - "start": { - "line": 23, - "column": 16 - }, - "end": { - "line": 40, - "column": 3 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 389, - "end": 761, - "loc": { - "start": { - "line": 23, - "column": 22 - }, - "end": { - "line": 40, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 395, - "end": 415, - "loc": { - "start": { - "line": 24, - "column": 4 - }, - "end": { - "line": 24, - "column": 24 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 399, - "end": 414, - "loc": { - "start": { - "line": 24, - "column": 8 - }, - "end": { - "line": 24, - "column": 23 - } - }, - "id": { - "type": "Identifier", - "start": 399, - "end": 409, - "loc": { - "start": { - "line": 24, - "column": 8 - }, - "end": { - "line": 24, - "column": 18 - }, - "identifierName": "parsedData" - }, - "name": "parsedData" - }, - "init": { - "type": "StringLiteral", - "start": 412, - "end": 414, - "loc": { - "start": { - "line": 24, - "column": 21 - }, - "end": { - "line": 24, - "column": 23 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 420, - "end": 436, - "loc": { - "start": { - "line": 25, - "column": 4 - }, - "end": { - "line": 25, - "column": 20 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 424, - "end": 435, - "loc": { - "start": { - "line": 25, - "column": 8 - }, - "end": { - "line": 25, - "column": 19 - } - }, - "id": { - "type": "Identifier", - "start": 424, - "end": 430, - "loc": { - "start": { - "line": 25, - "column": 8 - }, - "end": { - "line": 25, - "column": 14 - }, - "identifierName": "errors" - }, - "name": "errors" - }, - "init": { - "type": "StringLiteral", - "start": 433, - "end": 435, - "loc": { - "start": { - "line": 25, - "column": 17 - }, - "end": { - "line": 25, - "column": 19 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - } - ], - "kind": "let" - }, - { - "type": "TryStatement", - "start": 442, - "end": 669, - "loc": { - "start": { - "line": 27, - "column": 4 - }, - "end": { - "line": 35, - "column": 5 - } - }, - "block": { - "type": "BlockStatement", - "start": 446, - "end": 608, - "loc": { - "start": { - "line": 27, - "column": 8 - }, - "end": { - "line": 32, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 454, - "end": 602, - "loc": { - "start": { - "line": 28, - "column": 6 - }, - "end": { - "line": 31, - "column": 7 - } - }, - "test": { - "type": "Identifier", - "start": 458, - "end": 463, - "loc": { - "start": { - "line": 28, - "column": 10 - }, - "end": { - "line": 28, - "column": 15 - }, - "identifierName": "parse" - }, - "name": "parse" - }, - "consequent": { - "type": "BlockStatement", - "start": 465, - "end": 602, - "loc": { - "start": { - "line": 28, - "column": 17 - }, - "end": { - "line": 31, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 475, - "end": 508, - "loc": { - "start": { - "line": 29, - "column": 8 - }, - "end": { - "line": 29, - "column": 41 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 475, - "end": 507, - "loc": { - "start": { - "line": 29, - "column": 8 - }, - "end": { - "line": 29, - "column": 40 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 475, - "end": 485, - "loc": { - "start": { - "line": 29, - "column": 8 - }, - "end": { - "line": 29, - "column": 18 - }, - "identifierName": "parsedData" - }, - "name": "parsedData" - }, - "right": { - "type": "CallExpression", - "start": 488, - "end": 507, - "loc": { - "start": { - "line": 29, - "column": 21 - }, - "end": { - "line": 29, - "column": 40 - } - }, - "callee": { - "type": "MemberExpression", - "start": 488, - "end": 498, - "loc": { - "start": { - "line": 29, - "column": 21 - }, - "end": { - "line": 29, - "column": 31 - } - }, - "object": { - "type": "Identifier", - "start": 488, - "end": 492, - "loc": { - "start": { - "line": 29, - "column": 21 - }, - "end": { - "line": 29, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 493, - "end": 498, - "loc": { - "start": { - "line": 29, - "column": 26 - }, - "end": { - "line": 29, - "column": 31 - }, - "identifierName": "parse" - }, - "name": "parse" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 499, - "end": 506, - "loc": { - "start": { - "line": 29, - "column": 32 - }, - "end": { - "line": 29, - "column": 39 - }, - "identifierName": "rawData" - }, - "name": "rawData" - } - ] - } - } - }, - { - "type": "ExpressionStatement", - "start": 517, - "end": 594, - "loc": { - "start": { - "line": 30, - "column": 8 - }, - "end": { - "line": 30, - "column": 85 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 517, - "end": 593, - "loc": { - "start": { - "line": 30, - "column": 8 - }, - "end": { - "line": 30, - "column": 84 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 517, - "end": 523, - "loc": { - "start": { - "line": 30, - "column": 8 - }, - "end": { - "line": 30, - "column": 14 - }, - "identifierName": "errors" - }, - "name": "errors" - }, - "right": { - "type": "LogicalExpression", - "start": 526, - "end": 593, - "loc": { - "start": { - "line": 30, - "column": 17 - }, - "end": { - "line": 30, - "column": 84 - } - }, - "left": { - "type": "LogicalExpression", - "start": 526, - "end": 585, - "loc": { - "start": { - "line": 30, - "column": 17 - }, - "end": { - "line": 30, - "column": 76 - } - }, - "left": { - "type": "LogicalExpression", - "start": 526, - "end": 563, - "loc": { - "start": { - "line": 30, - "column": 17 - }, - "end": { - "line": 30, - "column": 54 - } - }, - "left": { - "type": "MemberExpression", - "start": 526, - "end": 543, - "loc": { - "start": { - "line": 30, - "column": 17 - }, - "end": { - "line": 30, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 526, - "end": 536, - "loc": { - "start": { - "line": 30, - "column": 17 - }, - "end": { - "line": 30, - "column": 27 - }, - "identifierName": "parsedData" - }, - "name": "parsedData" - }, - "property": { - "type": "Identifier", - "start": 537, - "end": 543, - "loc": { - "start": { - "line": 30, - "column": 28 - }, - "end": { - "line": 30, - "column": 34 - }, - "identifierName": "errors" - }, - "name": "errors" - }, - "computed": false - }, - "operator": "||", - "right": { - "type": "MemberExpression", - "start": 547, - "end": 563, - "loc": { - "start": { - "line": 30, - "column": 38 - }, - "end": { - "line": 30, - "column": 54 - } - }, - "object": { - "type": "Identifier", - "start": 547, - "end": 557, - "loc": { - "start": { - "line": 30, - "column": 38 - }, - "end": { - "line": 30, - "column": 48 - }, - "identifierName": "parsedData" - }, - "name": "parsedData" - }, - "property": { - "type": "Identifier", - "start": 558, - "end": 563, - "loc": { - "start": { - "line": 30, - "column": 49 - }, - "end": { - "line": 30, - "column": 54 - }, - "identifierName": "error" - }, - "name": "error" - }, - "computed": false - } - }, - "operator": "||", - "right": { - "type": "MemberExpression", - "start": 567, - "end": 585, - "loc": { - "start": { - "line": 30, - "column": 58 - }, - "end": { - "line": 30, - "column": 76 - } - }, - "object": { - "type": "Identifier", - "start": 567, - "end": 577, - "loc": { - "start": { - "line": 30, - "column": 58 - }, - "end": { - "line": 30, - "column": 68 - }, - "identifierName": "parsedData" - }, - "name": "parsedData" - }, - "property": { - "type": "Identifier", - "start": 578, - "end": 585, - "loc": { - "start": { - "line": 30, - "column": 69 - }, - "end": { - "line": 30, - "column": 76 - }, - "identifierName": "message" - }, - "name": "message" - }, - "computed": false - } - }, - "operator": "||", - "right": { - "type": "NullLiteral", - "start": 589, - "end": 593, - "loc": { - "start": { - "line": 30, - "column": 80 - }, - "end": { - "line": 30, - "column": 84 - } - } - } - } - } - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - }, - "handler": { - "type": "CatchClause", - "start": 609, - "end": 669, - "loc": { - "start": { - "line": 32, - "column": 6 - }, - "end": { - "line": 35, - "column": 5 - } - }, - "param": { - "type": "Identifier", - "start": 616, - "end": 617, - "loc": { - "start": { - "line": 32, - "column": 13 - }, - "end": { - "line": 32, - "column": 14 - }, - "identifierName": "e" - }, - "name": "e" - }, - "body": { - "type": "BlockStatement", - "start": 619, - "end": 669, - "loc": { - "start": { - "line": 32, - "column": 16 - }, - "end": { - "line": 35, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 627, - "end": 638, - "loc": { - "start": { - "line": 33, - "column": 6 - }, - "end": { - "line": 33, - "column": 17 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 627, - "end": 637, - "loc": { - "start": { - "line": 33, - "column": 6 - }, - "end": { - "line": 33, - "column": 16 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 627, - "end": 633, - "loc": { - "start": { - "line": 33, - "column": 6 - }, - "end": { - "line": 33, - "column": 12 - }, - "identifierName": "errors" - }, - "name": "errors" - }, - "right": { - "type": "Identifier", - "start": 636, - "end": 637, - "loc": { - "start": { - "line": 33, - "column": 15 - }, - "end": { - "line": 33, - "column": 16 - }, - "identifierName": "e" - }, - "name": "e" - } - } - }, - { - "type": "ExpressionStatement", - "start": 645, - "end": 663, - "loc": { - "start": { - "line": 34, - "column": 6 - }, - "end": { - "line": 34, - "column": 24 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 645, - "end": 662, - "loc": { - "start": { - "line": 34, - "column": 6 - }, - "end": { - "line": 34, - "column": 23 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 645, - "end": 655, - "loc": { - "start": { - "line": 34, - "column": 6 - }, - "end": { - "line": 34, - "column": 16 - }, - "identifierName": "parsedData" - }, - "name": "parsedData" - }, - "right": { - "type": "NullLiteral", - "start": 658, - "end": 662, - "loc": { - "start": { - "line": 34, - "column": 19 - }, - "end": { - "line": 34, - "column": 23 - } - } - } - } - } - ], - "directives": [] - } - }, - "guardedHandlers": [], - "finalizer": null - }, - { - "type": "IfStatement", - "start": 675, - "end": 757, - "loc": { - "start": { - "line": 37, - "column": 4 - }, - "end": { - "line": 39, - "column": 5 - } - }, - "test": { - "type": "Identifier", - "start": 679, - "end": 687, - "loc": { - "start": { - "line": 37, - "column": 8 - }, - "end": { - "line": 37, - "column": 16 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "consequent": { - "type": "BlockStatement", - "start": 689, - "end": 757, - "loc": { - "start": { - "line": 37, - "column": 18 - }, - "end": { - "line": 39, - "column": 5 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 697, - "end": 751, - "loc": { - "start": { - "line": 38, - "column": 6 - }, - "end": { - "line": 38, - "column": 60 - } - }, - "argument": { - "type": "CallExpression", - "start": 704, - "end": 750, - "loc": { - "start": { - "line": 38, - "column": 13 - }, - "end": { - "line": 38, - "column": 59 - } - }, - "callee": { - "type": "Identifier", - "start": 704, - "end": 712, - "loc": { - "start": { - "line": 38, - "column": 13 - }, - "end": { - "line": 38, - "column": 21 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 713, - "end": 719, - "loc": { - "start": { - "line": 38, - "column": 22 - }, - "end": { - "line": 38, - "column": 28 - }, - "identifierName": "errors" - }, - "name": "errors" - }, - { - "type": "ConditionalExpression", - "start": 721, - "end": 749, - "loc": { - "start": { - "line": 38, - "column": 30 - }, - "end": { - "line": 38, - "column": 58 - } - }, - "test": { - "type": "Identifier", - "start": 721, - "end": 726, - "loc": { - "start": { - "line": 38, - "column": 30 - }, - "end": { - "line": 38, - "column": 35 - }, - "identifierName": "parse" - }, - "name": "parse" - }, - "consequent": { - "type": "Identifier", - "start": 729, - "end": 739, - "loc": { - "start": { - "line": 38, - "column": 38 - }, - "end": { - "line": 38, - "column": 48 - }, - "identifierName": "parsedData" - }, - "name": "parsedData" - }, - "alternate": { - "type": "Identifier", - "start": 742, - "end": 749, - "loc": { - "start": { - "line": 38, - "column": 51 - }, - "end": { - "line": 38, - "column": 58 - }, - "identifierName": "rawData" - }, - "name": "rawData" - } - } - ] - } - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - } - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 768, - "end": 890, - "loc": { - "start": { - "line": 43, - "column": 0 - }, - "end": { - "line": 47, - "column": 2 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 774, - "end": 889, - "loc": { - "start": { - "line": 43, - "column": 6 - }, - "end": { - "line": 47, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 774, - "end": 786, - "loc": { - "start": { - "line": 43, - "column": 6 - }, - "end": { - "line": 43, - "column": 18 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 789, - "end": 889, - "loc": { - "start": { - "line": 43, - "column": 21 - }, - "end": { - "line": 47, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 774, - "end": 786, - "loc": { - "start": { - "line": 43, - "column": 6 - }, - "end": { - "line": 43, - "column": 18 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 789, - "end": 797, - "loc": { - "start": { - "line": 43, - "column": 21 - }, - "end": { - "line": 43, - "column": 29 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "ArrowFunctionExpression", - "start": 801, - "end": 889, - "loc": { - "start": { - "line": 43, - "column": 33 - }, - "end": { - "line": 47, - "column": 1 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 801, - "end": 804, - "loc": { - "start": { - "line": 43, - "column": 33 - }, - "end": { - "line": 43, - "column": 36 - }, - "identifierName": "err" - }, - "name": "err" - } - ], - "body": { - "type": "BlockStatement", - "start": 808, - "end": 889, - "loc": { - "start": { - "line": 43, - "column": 40 - }, - "end": { - "line": 47, - "column": 1 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 812, - "end": 887, - "loc": { - "start": { - "line": 44, - "column": 2 - }, - "end": { - "line": 46, - "column": 3 - } - }, - "test": { - "type": "BinaryExpression", - "start": 816, - "end": 846, - "loc": { - "start": { - "line": 44, - "column": 6 - }, - "end": { - "line": 44, - "column": 36 - } - }, - "left": { - "type": "UnaryExpression", - "start": 816, - "end": 831, - "loc": { - "start": { - "line": 44, - "column": 6 - }, - "end": { - "line": 44, - "column": 21 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 823, - "end": 831, - "loc": { - "start": { - "line": 44, - "column": 13 - }, - "end": { - "line": 44, - "column": 21 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 836, - "end": 846, - "loc": { - "start": { - "line": 44, - "column": 26 - }, - "end": { - "line": 44, - "column": 36 - } - }, - "extra": { - "rawValue": "function", - "raw": "'function'" - }, - "value": "function" - } - }, - "consequent": { - "type": "BlockStatement", - "start": 848, - "end": 887, - "loc": { - "start": { - "line": 44, - "column": 38 - }, - "end": { - "line": 46, - "column": 3 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 854, - "end": 883, - "loc": { - "start": { - "line": 45, - "column": 4 - }, - "end": { - "line": 45, - "column": 33 - } - }, - "argument": { - "type": "CallExpression", - "start": 861, - "end": 882, - "loc": { - "start": { - "line": 45, - "column": 11 - }, - "end": { - "line": 45, - "column": 32 - } - }, - "callee": { - "type": "Identifier", - "start": 861, - "end": 869, - "loc": { - "start": { - "line": 45, - "column": 11 - }, - "end": { - "line": 45, - "column": 19 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 870, - "end": 881, - "loc": { - "start": { - "line": 45, - "column": 20 - }, - "end": { - "line": 45, - "column": 31 - } - }, - "object": { - "type": "Identifier", - "start": 870, - "end": 873, - "loc": { - "start": { - "line": 45, - "column": 20 - }, - "end": { - "line": 45, - "column": 23 - }, - "identifierName": "err" - }, - "name": "err" - }, - "property": { - "type": "Identifier", - "start": 874, - "end": 881, - "loc": { - "start": { - "line": 45, - "column": 24 - }, - "end": { - "line": 45, - "column": 31 - }, - "identifierName": "message" - }, - "name": "message" - }, - "computed": false - } - ] - } - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - } - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 892, - "end": 1258, - "loc": { - "start": { - "line": 49, - "column": 0 - }, - "end": { - "line": 67, - "column": 2 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 898, - "end": 1257, - "loc": { - "start": { - "line": 49, - "column": 6 - }, - "end": { - "line": 67, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 898, - "end": 917, - "loc": { - "start": { - "line": 49, - "column": 6 - }, - "end": { - "line": 49, - "column": 25 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 920, - "end": 1257, - "loc": { - "start": { - "line": 49, - "column": 28 - }, - "end": { - "line": 67, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 898, - "end": 917, - "loc": { - "start": { - "line": 49, - "column": 6 - }, - "end": { - "line": 49, - "column": 25 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 921, - "end": 1059, - "loc": { - "start": { - "line": 49, - "column": 29 - }, - "end": { - "line": 57, - "column": 1 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 925, - "end": 939, - "loc": { - "start": { - "line": 50, - "column": 2 - }, - "end": { - "line": 50, - "column": 16 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 925, - "end": 931, - "loc": { - "start": { - "line": 50, - "column": 2 - }, - "end": { - "line": 50, - "column": 8 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "AssignmentPattern", - "start": 925, - "end": 939, - "loc": { - "start": { - "line": 50, - "column": 2 - }, - "end": { - "line": 50, - "column": 16 - } - }, - "left": { - "type": "Identifier", - "start": 925, - "end": 931, - "loc": { - "start": { - "line": 50, - "column": 2 - }, - "end": { - "line": 50, - "column": 8 - }, - "identifierName": "method" - }, - "name": "method" - }, - "right": { - "type": "StringLiteral", - "start": 934, - "end": 939, - "loc": { - "start": { - "line": 50, - "column": 11 - }, - "end": { - "line": 50, - "column": 16 - } - }, - "extra": { - "rawValue": "GET", - "raw": "'GET'" - }, - "value": "GET" - } - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 943, - "end": 953, - "loc": { - "start": { - "line": 51, - "column": 2 - }, - "end": { - "line": 51, - "column": 12 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 943, - "end": 947, - "loc": { - "start": { - "line": 51, - "column": 2 - }, - "end": { - "line": 51, - "column": 6 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "AssignmentPattern", - "start": 943, - "end": 953, - "loc": { - "start": { - "line": 51, - "column": 2 - }, - "end": { - "line": 51, - "column": 12 - } - }, - "left": { - "type": "Identifier", - "start": 943, - "end": 947, - "loc": { - "start": { - "line": 51, - "column": 2 - }, - "end": { - "line": 51, - "column": 6 - }, - "identifierName": "path" - }, - "name": "path" - }, - "right": { - "type": "StringLiteral", - "start": 950, - "end": 953, - "loc": { - "start": { - "line": 51, - "column": 9 - }, - "end": { - "line": 51, - "column": 12 - } - }, - "extra": { - "rawValue": "/", - "raw": "'/'" - }, - "value": "/" - } - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 957, - "end": 1040, - "loc": { - "start": { - "line": 52, - "column": 2 - }, - "end": { - "line": 55, - "column": 8 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 957, - "end": 970, - "loc": { - "start": { - "line": 52, - "column": 2 - }, - "end": { - "line": 52, - "column": 15 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "AssignmentPattern", - "start": 972, - "end": 1040, - "loc": { - "start": { - "line": 52, - "column": 17 - }, - "end": { - "line": 55, - "column": 8 - } - }, - "left": { - "type": "ObjectPattern", - "start": 972, - "end": 1035, - "loc": { - "start": { - "line": 52, - "column": 17 - }, - "end": { - "line": 55, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 978, - "end": 992, - "loc": { - "start": { - "line": 53, - "column": 4 - }, - "end": { - "line": 53, - "column": 18 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 978, - "end": 982, - "loc": { - "start": { - "line": 53, - "column": 4 - }, - "end": { - "line": 53, - "column": 8 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "AssignmentPattern", - "start": 978, - "end": 992, - "loc": { - "start": { - "line": 53, - "column": 4 - }, - "end": { - "line": 53, - "column": 18 - } - }, - "left": { - "type": "Identifier", - "start": 978, - "end": 982, - "loc": { - "start": { - "line": 53, - "column": 4 - }, - "end": { - "line": 53, - "column": 8 - }, - "identifierName": "type" - }, - "name": "type" - }, - "right": { - "type": "StringLiteral", - "start": 985, - "end": 992, - "loc": { - "start": { - "line": 53, - "column": 11 - }, - "end": { - "line": 53, - "column": 18 - } - }, - "extra": { - "rawValue": "Basic", - "raw": "'Basic'" - }, - "value": "Basic" - } - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 998, - "end": 1030, - "loc": { - "start": { - "line": 54, - "column": 4 - }, - "end": { - "line": 54, - "column": 36 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 998, - "end": 1003, - "loc": { - "start": { - "line": 54, - "column": 4 - }, - "end": { - "line": 54, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "AssignmentPattern", - "start": 998, - "end": 1030, - "loc": { - "start": { - "line": 54, - "column": 4 - }, - "end": { - "line": 54, - "column": 36 - } - }, - "left": { - "type": "Identifier", - "start": 998, - "end": 1003, - "loc": { - "start": { - "line": 54, - "column": 4 - }, - "end": { - "line": 54, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "right": { - "type": "MemberExpression", - "start": 1006, - "end": 1030, - "loc": { - "start": { - "line": 54, - "column": 12 - }, - "end": { - "line": 54, - "column": 36 - } - }, - "object": { - "type": "MemberExpression", - "start": 1006, - "end": 1018, - "loc": { - "start": { - "line": 54, - "column": 12 - }, - "end": { - "line": 54, - "column": 24 - } - }, - "object": { - "type": "Identifier", - "start": 1006, - "end": 1014, - "loc": { - "start": { - "line": 54, - "column": 12 - }, - "end": { - "line": 54, - "column": 20 - }, - "identifierName": "settings" - }, - "name": "settings" - }, - "property": { - "type": "Identifier", - "start": 1015, - "end": 1018, - "loc": { - "start": { - "line": 54, - "column": 21 - }, - "end": { - "line": 54, - "column": 24 - }, - "identifierName": "api" - }, - "name": "api" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 1019, - "end": 1030, - "loc": { - "start": { - "line": 54, - "column": 25 - }, - "end": { - "line": 54, - "column": 36 - }, - "identifierName": "credentials" - }, - "name": "credentials" - }, - "computed": false - } - }, - "extra": { - "shorthand": true - } - } - ] - }, - "right": { - "type": "ObjectExpression", - "start": 1038, - "end": 1040, - "loc": { - "start": { - "line": 55, - "column": 6 - }, - "end": { - "line": 55, - "column": 8 - } - }, - "properties": [] - } - } - }, - { - "type": "ObjectProperty", - "start": 1044, - "end": 1056, - "loc": { - "start": { - "line": 56, - "column": 2 - }, - "end": { - "line": 56, - "column": 14 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1044, - "end": 1051, - "loc": { - "start": { - "line": 56, - "column": 2 - }, - "end": { - "line": 56, - "column": 9 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "AssignmentPattern", - "start": 1044, - "end": 1056, - "loc": { - "start": { - "line": 56, - "column": 2 - }, - "end": { - "line": 56, - "column": 14 - } - }, - "left": { - "type": "Identifier", - "start": 1044, - "end": 1051, - "loc": { - "start": { - "line": 56, - "column": 2 - }, - "end": { - "line": 56, - "column": 9 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "right": { - "type": "ObjectExpression", - "start": 1054, - "end": 1056, - "loc": { - "start": { - "line": 56, - "column": 12 - }, - "end": { - "line": 56, - "column": 14 - } - }, - "properties": [] - } - }, - "extra": { - "shorthand": true - } - } - ] - } - ], - "body": { - "type": "BlockStatement", - "start": 1064, - "end": 1257, - "loc": { - "start": { - "line": 57, - "column": 6 - }, - "end": { - "line": 67, - "column": 1 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 1068, - "end": 1183, - "loc": { - "start": { - "line": 58, - "column": 2 - }, - "end": { - "line": 64, - "column": 4 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1074, - "end": 1182, - "loc": { - "start": { - "line": 58, - "column": 8 - }, - "end": { - "line": 64, - "column": 3 - } - }, - "id": { - "type": "Identifier", - "start": 1074, - "end": 1081, - "loc": { - "start": { - "line": 58, - "column": 8 - }, - "end": { - "line": 58, - "column": 15 - }, - "identifierName": "options" - }, - "name": "options" - }, - "init": { - "type": "ObjectExpression", - "start": 1084, - "end": 1182, - "loc": { - "start": { - "line": 58, - "column": 18 - }, - "end": { - "line": 64, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1090, - "end": 1113, - "loc": { - "start": { - "line": 59, - "column": 4 - }, - "end": { - "line": 59, - "column": 27 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1090, - "end": 1094, - "loc": { - "start": { - "line": 59, - "column": 4 - }, - "end": { - "line": 59, - "column": 8 - }, - "identifierName": "host" - }, - "name": "host" - }, - "value": { - "type": "MemberExpression", - "start": 1096, - "end": 1113, - "loc": { - "start": { - "line": 59, - "column": 10 - }, - "end": { - "line": 59, - "column": 27 - } - }, - "object": { - "type": "MemberExpression", - "start": 1096, - "end": 1108, - "loc": { - "start": { - "line": 59, - "column": 10 - }, - "end": { - "line": 59, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 1096, - "end": 1104, - "loc": { - "start": { - "line": 59, - "column": 10 - }, - "end": { - "line": 59, - "column": 18 - }, - "identifierName": "settings" - }, - "name": "settings" - }, - "property": { - "type": "Identifier", - "start": 1105, - "end": 1108, - "loc": { - "start": { - "line": 59, - "column": 19 - }, - "end": { - "line": 59, - "column": 22 - }, - "identifierName": "api" - }, - "name": "api" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 1109, - "end": 1113, - "loc": { - "start": { - "line": 59, - "column": 23 - }, - "end": { - "line": 59, - "column": 27 - }, - "identifierName": "host" - }, - "name": "host" - }, - "computed": false - } - }, - { - "type": "ObjectProperty", - "start": 1119, - "end": 1142, - "loc": { - "start": { - "line": 60, - "column": 4 - }, - "end": { - "line": 60, - "column": 27 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1119, - "end": 1123, - "loc": { - "start": { - "line": 60, - "column": 4 - }, - "end": { - "line": 60, - "column": 8 - }, - "identifierName": "port" - }, - "name": "port" - }, - "value": { - "type": "MemberExpression", - "start": 1125, - "end": 1142, - "loc": { - "start": { - "line": 60, - "column": 10 - }, - "end": { - "line": 60, - "column": 27 - } - }, - "object": { - "type": "MemberExpression", - "start": 1125, - "end": 1137, - "loc": { - "start": { - "line": 60, - "column": 10 - }, - "end": { - "line": 60, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 1125, - "end": 1133, - "loc": { - "start": { - "line": 60, - "column": 10 - }, - "end": { - "line": 60, - "column": 18 - }, - "identifierName": "settings" - }, - "name": "settings" - }, - "property": { - "type": "Identifier", - "start": 1134, - "end": 1137, - "loc": { - "start": { - "line": 60, - "column": 19 - }, - "end": { - "line": 60, - "column": 22 - }, - "identifierName": "api" - }, - "name": "api" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 1138, - "end": 1142, - "loc": { - "start": { - "line": 60, - "column": 23 - }, - "end": { - "line": 60, - "column": 27 - }, - "identifierName": "port" - }, - "name": "port" - }, - "computed": false - } - }, - { - "type": "ObjectProperty", - "start": 1148, - "end": 1154, - "loc": { - "start": { - "line": 61, - "column": 4 - }, - "end": { - "line": 61, - "column": 10 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1148, - "end": 1154, - "loc": { - "start": { - "line": 61, - "column": 4 - }, - "end": { - "line": 61, - "column": 10 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "Identifier", - "start": 1148, - "end": 1154, - "loc": { - "start": { - "line": 61, - "column": 4 - }, - "end": { - "line": 61, - "column": 10 - }, - "identifierName": "method" - }, - "name": "method" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1160, - "end": 1164, - "loc": { - "start": { - "line": 62, - "column": 4 - }, - "end": { - "line": 62, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1160, - "end": 1164, - "loc": { - "start": { - "line": 62, - "column": 4 - }, - "end": { - "line": 62, - "column": 8 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "Identifier", - "start": 1160, - "end": 1164, - "loc": { - "start": { - "line": 62, - "column": 4 - }, - "end": { - "line": 62, - "column": 8 - }, - "identifierName": "path" - }, - "name": "path" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1170, - "end": 1177, - "loc": { - "start": { - "line": 63, - "column": 4 - }, - "end": { - "line": 63, - "column": 11 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1170, - "end": 1177, - "loc": { - "start": { - "line": 63, - "column": 4 - }, - "end": { - "line": 63, - "column": 11 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "Identifier", - "start": 1170, - "end": 1177, - "loc": { - "start": { - "line": 63, - "column": 4 - }, - "end": { - "line": 63, - "column": 11 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 1186, - "end": 1237, - "loc": { - "start": { - "line": 65, - "column": 2 - }, - "end": { - "line": 65, - "column": 53 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 1186, - "end": 1236, - "loc": { - "start": { - "line": 65, - "column": 2 - }, - "end": { - "line": 65, - "column": 52 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 1186, - "end": 1215, - "loc": { - "start": { - "line": 65, - "column": 2 - }, - "end": { - "line": 65, - "column": 31 - } - }, - "object": { - "type": "MemberExpression", - "start": 1186, - "end": 1201, - "loc": { - "start": { - "line": 65, - "column": 2 - }, - "end": { - "line": 65, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 1186, - "end": 1193, - "loc": { - "start": { - "line": 65, - "column": 2 - }, - "end": { - "line": 65, - "column": 9 - }, - "identifierName": "options" - }, - "name": "options" - }, - "property": { - "type": "Identifier", - "start": 1194, - "end": 1201, - "loc": { - "start": { - "line": 65, - "column": 10 - }, - "end": { - "line": 65, - "column": 17 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 1202, - "end": 1215, - "loc": { - "start": { - "line": 65, - "column": 18 - }, - "end": { - "line": 65, - "column": 31 - }, - "identifierName": "Authorization" - }, - "name": "Authorization" - }, - "computed": false - }, - "right": { - "type": "TemplateLiteral", - "start": 1218, - "end": 1236, - "loc": { - "start": { - "line": 65, - "column": 34 - }, - "end": { - "line": 65, - "column": 52 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 1221, - "end": 1225, - "loc": { - "start": { - "line": 65, - "column": 37 - }, - "end": { - "line": 65, - "column": 41 - }, - "identifierName": "type" - }, - "name": "type" - }, - { - "type": "Identifier", - "start": 1229, - "end": 1234, - "loc": { - "start": { - "line": 65, - "column": 45 - }, - "end": { - "line": 65, - "column": 50 - }, - "identifierName": "token" - }, - "name": "token" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 1219, - "end": 1219, - "loc": { - "start": { - "line": 65, - "column": 35 - }, - "end": { - "line": 65, - "column": 35 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 1226, - "end": 1227, - "loc": { - "start": { - "line": 65, - "column": 42 - }, - "end": { - "line": 65, - "column": 43 - } - }, - "value": { - "raw": " ", - "cooked": " " - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 1235, - "end": 1235, - "loc": { - "start": { - "line": 65, - "column": 51 - }, - "end": { - "line": 65, - "column": 51 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - } - }, - { - "type": "ReturnStatement", - "start": 1240, - "end": 1255, - "loc": { - "start": { - "line": 66, - "column": 2 - }, - "end": { - "line": 66, - "column": 17 - } - }, - "argument": { - "type": "Identifier", - "start": 1247, - "end": 1254, - "loc": { - "start": { - "line": 66, - "column": 9 - }, - "end": { - "line": 66, - "column": 16 - }, - "identifierName": "options" - }, - "name": "options" - } - } - ], - "directives": [] - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 1260, - "end": 1340, - "loc": { - "start": { - "line": 69, - "column": 0 - }, - "end": { - "line": 71, - "column": 2 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1266, - "end": 1339, - "loc": { - "start": { - "line": 69, - "column": 6 - }, - "end": { - "line": 71, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 1266, - "end": 1286, - "loc": { - "start": { - "line": 69, - "column": 6 - }, - "end": { - "line": 69, - "column": 26 - }, - "identifierName": "setProductionApiHost" - }, - "name": "setProductionApiHost" - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 1289, - "end": 1339, - "loc": { - "start": { - "line": 69, - "column": 29 - }, - "end": { - "line": 71, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 1266, - "end": 1286, - "loc": { - "start": { - "line": 69, - "column": 6 - }, - "end": { - "line": 69, - "column": 26 - }, - "identifierName": "setProductionApiHost" - }, - "name": "setProductionApiHost" - }, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 1295, - "end": 1339, - "loc": { - "start": { - "line": 69, - "column": 35 - }, - "end": { - "line": 71, - "column": 1 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1299, - "end": 1337, - "loc": { - "start": { - "line": 70, - "column": 2 - }, - "end": { - "line": 70, - "column": 40 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 1299, - "end": 1336, - "loc": { - "start": { - "line": 70, - "column": 2 - }, - "end": { - "line": 70, - "column": 39 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 1299, - "end": 1316, - "loc": { - "start": { - "line": 70, - "column": 2 - }, - "end": { - "line": 70, - "column": 19 - } - }, - "object": { - "type": "MemberExpression", - "start": 1299, - "end": 1311, - "loc": { - "start": { - "line": 70, - "column": 2 - }, - "end": { - "line": 70, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 1299, - "end": 1307, - "loc": { - "start": { - "line": 70, - "column": 2 - }, - "end": { - "line": 70, - "column": 10 - }, - "identifierName": "settings" - }, - "name": "settings" - }, - "property": { - "type": "Identifier", - "start": 1308, - "end": 1311, - "loc": { - "start": { - "line": 70, - "column": 11 - }, - "end": { - "line": 70, - "column": 14 - }, - "identifierName": "api" - }, - "name": "api" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 1312, - "end": 1316, - "loc": { - "start": { - "line": 70, - "column": 15 - }, - "end": { - "line": 70, - "column": 19 - }, - "identifierName": "host" - }, - "name": "host" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 1319, - "end": 1336, - "loc": { - "start": { - "line": 70, - "column": 22 - }, - "end": { - "line": 70, - "column": 39 - } - }, - "extra": { - "rawValue": "api.signnow.com", - "raw": "'api.signnow.com'" - }, - "value": "api.signnow.com" - } - } - } - ], - "directives": [] - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 1342, - "end": 1426, - "loc": { - "start": { - "line": 73, - "column": 0 - }, - "end": { - "line": 75, - "column": 2 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1348, - "end": 1425, - "loc": { - "start": { - "line": 73, - "column": 6 - }, - "end": { - "line": 75, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 1348, - "end": 1362, - "loc": { - "start": { - "line": 73, - "column": 6 - }, - "end": { - "line": 73, - "column": 20 - }, - "identifierName": "setCredentials" - }, - "name": "setCredentials" - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 1365, - "end": 1425, - "loc": { - "start": { - "line": 73, - "column": 23 - }, - "end": { - "line": 75, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 1348, - "end": 1362, - "loc": { - "start": { - "line": 73, - "column": 6 - }, - "end": { - "line": 73, - "column": 20 - }, - "identifierName": "setCredentials" - }, - "name": "setCredentials" - }, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1365, - "end": 1376, - "loc": { - "start": { - "line": 73, - "column": 23 - }, - "end": { - "line": 73, - "column": 34 - }, - "identifierName": "credentials" - }, - "name": "credentials" - } - ], - "body": { - "type": "BlockStatement", - "start": 1380, - "end": 1425, - "loc": { - "start": { - "line": 73, - "column": 38 - }, - "end": { - "line": 75, - "column": 1 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1384, - "end": 1423, - "loc": { - "start": { - "line": 74, - "column": 2 - }, - "end": { - "line": 74, - "column": 41 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 1384, - "end": 1422, - "loc": { - "start": { - "line": 74, - "column": 2 - }, - "end": { - "line": 74, - "column": 40 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 1384, - "end": 1408, - "loc": { - "start": { - "line": 74, - "column": 2 - }, - "end": { - "line": 74, - "column": 26 - } - }, - "object": { - "type": "MemberExpression", - "start": 1384, - "end": 1396, - "loc": { - "start": { - "line": 74, - "column": 2 - }, - "end": { - "line": 74, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 1384, - "end": 1392, - "loc": { - "start": { - "line": 74, - "column": 2 - }, - "end": { - "line": 74, - "column": 10 - }, - "identifierName": "settings" - }, - "name": "settings" - }, - "property": { - "type": "Identifier", - "start": 1393, - "end": 1396, - "loc": { - "start": { - "line": 74, - "column": 11 - }, - "end": { - "line": 74, - "column": 14 - }, - "identifierName": "api" - }, - "name": "api" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 1397, - "end": 1408, - "loc": { - "start": { - "line": 74, - "column": 15 - }, - "end": { - "line": 74, - "column": 26 - }, - "identifierName": "credentials" - }, - "name": "credentials" - }, - "computed": false - }, - "right": { - "type": "Identifier", - "start": 1411, - "end": 1422, - "loc": { - "start": { - "line": 74, - "column": 29 - }, - "end": { - "line": 74, - "column": 40 - }, - "identifierName": "credentials" - }, - "name": "credentials" - } - } - } - ], - "directives": [] - } - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 1428, - "end": 1549, - "loc": { - "start": { - "line": 77, - "column": 0 - }, - "end": { - "line": 83, - "column": 2 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 1428, - "end": 1548, - "loc": { - "start": { - "line": 77, - "column": 0 - }, - "end": { - "line": 83, - "column": 1 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 1428, - "end": 1442, - "loc": { - "start": { - "line": 77, - "column": 0 - }, - "end": { - "line": 77, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 1428, - "end": 1434, - "loc": { - "start": { - "line": 77, - "column": 0 - }, - "end": { - "line": 77, - "column": 6 - }, - "identifierName": "module" - }, - "name": "module" - }, - "property": { - "type": "Identifier", - "start": 1435, - "end": 1442, - "loc": { - "start": { - "line": 77, - "column": 7 - }, - "end": { - "line": 77, - "column": 14 - }, - "identifierName": "exports" - }, - "name": "exports" - }, - "computed": false - }, - "right": { - "type": "ObjectExpression", - "start": 1445, - "end": 1548, - "loc": { - "start": { - "line": 77, - "column": 17 - }, - "end": { - "line": 83, - "column": 1 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1449, - "end": 1464, - "loc": { - "start": { - "line": 78, - "column": 2 - }, - "end": { - "line": 78, - "column": 17 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1449, - "end": 1464, - "loc": { - "start": { - "line": 78, - "column": 2 - }, - "end": { - "line": 78, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "value": { - "type": "Identifier", - "start": 1449, - "end": 1464, - "loc": { - "start": { - "line": 78, - "column": 2 - }, - "end": { - "line": 78, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1468, - "end": 1480, - "loc": { - "start": { - "line": 79, - "column": 2 - }, - "end": { - "line": 79, - "column": 14 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1468, - "end": 1480, - "loc": { - "start": { - "line": 79, - "column": 2 - }, - "end": { - "line": 79, - "column": 14 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "value": { - "type": "Identifier", - "start": 1468, - "end": 1480, - "loc": { - "start": { - "line": 79, - "column": 2 - }, - "end": { - "line": 79, - "column": 14 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1484, - "end": 1503, - "loc": { - "start": { - "line": 80, - "column": 2 - }, - "end": { - "line": 80, - "column": 21 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1484, - "end": 1503, - "loc": { - "start": { - "line": 80, - "column": 2 - }, - "end": { - "line": 80, - "column": 21 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "value": { - "type": "Identifier", - "start": 1484, - "end": 1503, - "loc": { - "start": { - "line": 80, - "column": 2 - }, - "end": { - "line": 80, - "column": 21 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1507, - "end": 1527, - "loc": { - "start": { - "line": 81, - "column": 2 - }, - "end": { - "line": 81, - "column": 22 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1507, - "end": 1527, - "loc": { - "start": { - "line": 81, - "column": 2 - }, - "end": { - "line": 81, - "column": 22 - }, - "identifierName": "setProductionApiHost" - }, - "name": "setProductionApiHost" - }, - "value": { - "type": "Identifier", - "start": 1507, - "end": 1527, - "loc": { - "start": { - "line": 81, - "column": 2 - }, - "end": { - "line": 81, - "column": 22 - }, - "identifierName": "setProductionApiHost" - }, - "name": "setProductionApiHost" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1531, - "end": 1545, - "loc": { - "start": { - "line": 82, - "column": 2 - }, - "end": { - "line": 82, - "column": 16 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1531, - "end": 1545, - "loc": { - "start": { - "line": 82, - "column": 2 - }, - "end": { - "line": 82, - "column": 16 - }, - "identifierName": "setCredentials" - }, - "name": "setCredentials" - }, - "value": { - "type": "Identifier", - "start": 1531, - "end": 1545, - "loc": { - "start": { - "line": 82, - "column": 2 - }, - "end": { - "line": 82, - "column": 16 - }, - "identifierName": "setCredentials" - }, - "name": "setCredentials" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "value": "use strict", - "extra": { - "raw": "'use strict'", - "rawValue": "use strict" - }, - "trailingComments": null - }, - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Common request setting object\n ", - "start": 15, - "end": 55, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 5, - "column": 3 - } - } - } - ] - } - ] - }, - "comments": [ - { - "type": "CommentBlock", - "value": "*\n * Common request setting object\n ", - "start": 15, - "end": 55, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 5, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " TODO: chage back to eval", - "start": 118, - "end": 145, - "loc": { - "start": { - "line": 8, - "column": 34 - }, - "end": { - "line": 8, - "column": 61 - } - } - } - ], - "tokens": [ - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "use strict", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 12 - }, - "end": { - "line": 1, - "column": 13 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Common request setting object\n ", - "start": 15, - "end": 55, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 5, - "column": 3 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 56, - "end": 61, - "loc": { - "start": { - "line": 6, - "column": 0 - }, - "end": { - "line": 6, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "settings", - "start": 62, - "end": 70, - "loc": { - "start": { - "line": 6, - "column": 6 - }, - "end": { - "line": 6, - "column": 14 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 71, - "end": 72, - "loc": { - "start": { - "line": 6, - "column": 15 - }, - "end": { - "line": 6, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 73, - "end": 74, - "loc": { - "start": { - "line": 6, - "column": 17 - }, - "end": { - "line": 6, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "api", - "start": 77, - "end": 80, - "loc": { - "start": { - "line": 7, - "column": 2 - }, - "end": { - "line": 7, - "column": 5 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 80, - "end": 81, - "loc": { - "start": { - "line": 7, - "column": 5 - }, - "end": { - "line": 7, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 82, - "end": 83, - "loc": { - "start": { - "line": 7, - "column": 7 - }, - "end": { - "line": 7, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "host", - "start": 88, - "end": 92, - "loc": { - "start": { - "line": 8, - "column": 4 - }, - "end": { - "line": 8, - "column": 8 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 92, - "end": 93, - "loc": { - "start": { - "line": 8, - "column": 8 - }, - "end": { - "line": 8, - "column": 9 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "api-dev1.signnow.com", - "start": 94, - "end": 116, - "loc": { - "start": { - "line": 8, - "column": 10 - }, - "end": { - "line": 8, - "column": 32 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 116, - "end": 117, - "loc": { - "start": { - "line": 8, - "column": 32 - }, - "end": { - "line": 8, - "column": 33 - } - } - }, - { - "type": "CommentLine", - "value": " TODO: chage back to eval", - "start": 118, - "end": 145, - "loc": { - "start": { - "line": 8, - "column": 34 - }, - "end": { - "line": 8, - "column": 61 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "port", - "start": 150, - "end": 154, - "loc": { - "start": { - "line": 9, - "column": 4 - }, - "end": { - "line": 9, - "column": 8 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 154, - "end": 155, - "loc": { - "start": { - "line": 9, - "column": 8 - }, - "end": { - "line": 9, - "column": 9 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 443, - "start": 156, - "end": 159, - "loc": { - "start": { - "line": 9, - "column": 10 - }, - "end": { - "line": 9, - "column": 13 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 159, - "end": 160, - "loc": { - "start": { - "line": 9, - "column": 13 - }, - "end": { - "line": 9, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "credentials", - "start": 165, - "end": 176, - "loc": { - "start": { - "line": 10, - "column": 4 - }, - "end": { - "line": 10, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 176, - "end": 177, - "loc": { - "start": { - "line": 10, - "column": 15 - }, - "end": { - "line": 10, - "column": 16 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 178, - "end": 180, - "loc": { - "start": { - "line": 10, - "column": 17 - }, - "end": { - "line": 10, - "column": 19 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 180, - "end": 181, - "loc": { - "start": { - "line": 10, - "column": 19 - }, - "end": { - "line": 10, - "column": 20 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 184, - "end": 185, - "loc": { - "start": { - "line": 11, - "column": 2 - }, - "end": { - "line": 11, - "column": 3 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 185, - "end": 186, - "loc": { - "start": { - "line": 11, - "column": 3 - }, - "end": { - "line": 11, - "column": 4 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 187, - "end": 188, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 12, - "column": 1 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 188, - "end": 189, - "loc": { - "start": { - "line": 12, - "column": 1 - }, - "end": { - "line": 12, - "column": 2 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 191, - "end": 196, - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 14, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 197, - "end": 212, - "loc": { - "start": { - "line": 14, - "column": 6 - }, - "end": { - "line": 14, - "column": 21 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 213, - "end": 214, - "loc": { - "start": { - "line": 14, - "column": 22 - }, - "end": { - "line": 14, - "column": 23 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 215, - "end": 216, - "loc": { - "start": { - "line": 14, - "column": 24 - }, - "end": { - "line": 14, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 216, - "end": 224, - "loc": { - "start": { - "line": 14, - "column": 25 - }, - "end": { - "line": 14, - "column": 33 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 224, - "end": 225, - "loc": { - "start": { - "line": 14, - "column": 33 - }, - "end": { - "line": 14, - "column": 34 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 226, - "end": 227, - "loc": { - "start": { - "line": 14, - "column": 35 - }, - "end": { - "line": 14, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parse", - "start": 228, - "end": 233, - "loc": { - "start": { - "line": 14, - "column": 37 - }, - "end": { - "line": 14, - "column": 42 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 234, - "end": 235, - "loc": { - "start": { - "line": 14, - "column": 43 - }, - "end": { - "line": 14, - "column": 44 - } - } - }, - { - "type": { - "label": "true", - "keyword": "true", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "true", - "start": 236, - "end": 240, - "loc": { - "start": { - "line": 14, - "column": 45 - }, - "end": { - "line": 14, - "column": 49 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 241, - "end": 242, - "loc": { - "start": { - "line": 14, - "column": 50 - }, - "end": { - "line": 14, - "column": 51 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 243, - "end": 244, - "loc": { - "start": { - "line": 14, - "column": 52 - }, - "end": { - "line": 14, - "column": 53 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 245, - "end": 246, - "loc": { - "start": { - "line": 14, - "column": 54 - }, - "end": { - "line": 14, - "column": 55 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 246, - "end": 247, - "loc": { - "start": { - "line": 14, - "column": 55 - }, - "end": { - "line": 14, - "column": 56 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 247, - "end": 248, - "loc": { - "start": { - "line": 14, - "column": 56 - }, - "end": { - "line": 14, - "column": 57 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 249, - "end": 251, - "loc": { - "start": { - "line": 14, - "column": 58 - }, - "end": { - "line": 14, - "column": 60 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "res", - "start": 252, - "end": 255, - "loc": { - "start": { - "line": 14, - "column": 61 - }, - "end": { - "line": 14, - "column": 64 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 256, - "end": 258, - "loc": { - "start": { - "line": 14, - "column": 65 - }, - "end": { - "line": 14, - "column": 67 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 259, - "end": 260, - "loc": { - "start": { - "line": 14, - "column": 68 - }, - "end": { - "line": 14, - "column": 69 - } - } - }, - { - "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "let", - "start": 263, - "end": 266, - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 15, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rawData", - "start": 267, - "end": 274, - "loc": { - "start": { - "line": 15, - "column": 6 - }, - "end": { - "line": 15, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 275, - "end": 276, - "loc": { - "start": { - "line": 15, - "column": 14 - }, - "end": { - "line": 15, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 277, - "end": 279, - "loc": { - "start": { - "line": 15, - "column": 16 - }, - "end": { - "line": 15, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 279, - "end": 280, - "loc": { - "start": { - "line": 15, - "column": 18 - }, - "end": { - "line": 15, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "res", - "start": 284, - "end": 287, - "loc": { - "start": { - "line": 17, - "column": 2 - }, - "end": { - "line": 17, - "column": 5 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 287, - "end": 288, - "loc": { - "start": { - "line": 17, - "column": 5 - }, - "end": { - "line": 17, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "setEncoding", - "start": 288, - "end": 299, - "loc": { - "start": { - "line": 17, - "column": 6 - }, - "end": { - "line": 17, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 299, - "end": 300, - "loc": { - "start": { - "line": 17, - "column": 17 - }, - "end": { - "line": 17, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "utf8", - "start": 300, - "end": 306, - "loc": { - "start": { - "line": 17, - "column": 18 - }, - "end": { - "line": 17, - "column": 24 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 306, - "end": 307, - "loc": { - "start": { - "line": 17, - "column": 24 - }, - "end": { - "line": 17, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 307, - "end": 308, - "loc": { - "start": { - "line": 17, - "column": 25 - }, - "end": { - "line": 17, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "res", - "start": 312, - "end": 315, - "loc": { - "start": { - "line": 19, - "column": 2 - }, - "end": { - "line": 19, - "column": 5 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 315, - "end": 316, - "loc": { - "start": { - "line": 19, - "column": 5 - }, - "end": { - "line": 19, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 316, - "end": 318, - "loc": { - "start": { - "line": 19, - "column": 6 - }, - "end": { - "line": 19, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 318, - "end": 319, - "loc": { - "start": { - "line": 19, - "column": 8 - }, - "end": { - "line": 19, - "column": 9 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "data", - "start": 319, - "end": 325, - "loc": { - "start": { - "line": 19, - "column": 9 - }, - "end": { - "line": 19, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 325, - "end": 326, - "loc": { - "start": { - "line": 19, - "column": 15 - }, - "end": { - "line": 19, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "chunk", - "start": 327, - "end": 332, - "loc": { - "start": { - "line": 19, - "column": 17 - }, - "end": { - "line": 19, - "column": 22 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 333, - "end": 335, - "loc": { - "start": { - "line": 19, - "column": 23 - }, - "end": { - "line": 19, - "column": 25 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 336, - "end": 337, - "loc": { - "start": { - "line": 19, - "column": 26 - }, - "end": { - "line": 19, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rawData", - "start": 342, - "end": 349, - "loc": { - "start": { - "line": 20, - "column": 4 - }, - "end": { - "line": 20, - "column": 11 - } - } - }, - { - "type": { - "label": "_=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "+=", - "start": 350, - "end": 352, - "loc": { - "start": { - "line": 20, - "column": 12 - }, - "end": { - "line": 20, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "chunk", - "start": 353, - "end": 358, - "loc": { - "start": { - "line": 20, - "column": 15 - }, - "end": { - "line": 20, - "column": 20 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 358, - "end": 359, - "loc": { - "start": { - "line": 20, - "column": 20 - }, - "end": { - "line": 20, - "column": 21 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 362, - "end": 363, - "loc": { - "start": { - "line": 21, - "column": 2 - }, - "end": { - "line": 21, - "column": 3 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 363, - "end": 364, - "loc": { - "start": { - "line": 21, - "column": 3 - }, - "end": { - "line": 21, - "column": 4 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 364, - "end": 365, - "loc": { - "start": { - "line": 21, - "column": 4 - }, - "end": { - "line": 21, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "res", - "start": 369, - "end": 372, - "loc": { - "start": { - "line": 23, - "column": 2 - }, - "end": { - "line": 23, - "column": 5 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 372, - "end": 373, - "loc": { - "start": { - "line": 23, - "column": 5 - }, - "end": { - "line": 23, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 373, - "end": 375, - "loc": { - "start": { - "line": 23, - "column": 6 - }, - "end": { - "line": 23, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 375, - "end": 376, - "loc": { - "start": { - "line": 23, - "column": 8 - }, - "end": { - "line": 23, - "column": 9 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "end", - "start": 376, - "end": 381, - "loc": { - "start": { - "line": 23, - "column": 9 - }, - "end": { - "line": 23, - "column": 14 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 381, - "end": 382, - "loc": { - "start": { - "line": 23, - "column": 14 - }, - "end": { - "line": 23, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 383, - "end": 384, - "loc": { - "start": { - "line": 23, - "column": 16 - }, - "end": { - "line": 23, - "column": 17 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 384, - "end": 385, - "loc": { - "start": { - "line": 23, - "column": 17 - }, - "end": { - "line": 23, - "column": 18 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 386, - "end": 388, - "loc": { - "start": { - "line": 23, - "column": 19 - }, - "end": { - "line": 23, - "column": 21 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 389, - "end": 390, - "loc": { - "start": { - "line": 23, - "column": 22 - }, - "end": { - "line": 23, - "column": 23 - } - } - }, - { - "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "let", - "start": 395, - "end": 398, - "loc": { - "start": { - "line": 24, - "column": 4 - }, - "end": { - "line": 24, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parsedData", - "start": 399, - "end": 409, - "loc": { - "start": { - "line": 24, - "column": 8 - }, - "end": { - "line": 24, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 410, - "end": 411, - "loc": { - "start": { - "line": 24, - "column": 19 - }, - "end": { - "line": 24, - "column": 20 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 412, - "end": 414, - "loc": { - "start": { - "line": 24, - "column": 21 - }, - "end": { - "line": 24, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 414, - "end": 415, - "loc": { - "start": { - "line": 24, - "column": 23 - }, - "end": { - "line": 24, - "column": 24 - } - } - }, - { - "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "let", - "start": 420, - "end": 423, - "loc": { - "start": { - "line": 25, - "column": 4 - }, - "end": { - "line": 25, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errors", - "start": 424, - "end": 430, - "loc": { - "start": { - "line": 25, - "column": 8 - }, - "end": { - "line": 25, - "column": 14 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 431, - "end": 432, - "loc": { - "start": { - "line": 25, - "column": 15 - }, - "end": { - "line": 25, - "column": 16 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 433, - "end": 435, - "loc": { - "start": { - "line": 25, - "column": 17 - }, - "end": { - "line": 25, - "column": 19 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 435, - "end": 436, - "loc": { - "start": { - "line": 25, - "column": 19 - }, - "end": { - "line": 25, - "column": 20 - } - } - }, - { - "type": { - "label": "try", - "keyword": "try", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "try", - "start": 442, - "end": 445, - "loc": { - "start": { - "line": 27, - "column": 4 - }, - "end": { - "line": 27, - "column": 7 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 446, - "end": 447, - "loc": { - "start": { - "line": 27, - "column": 8 - }, - "end": { - "line": 27, - "column": 9 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 454, - "end": 456, - "loc": { - "start": { - "line": 28, - "column": 6 - }, - "end": { - "line": 28, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 457, - "end": 458, - "loc": { - "start": { - "line": 28, - "column": 9 - }, - "end": { - "line": 28, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parse", - "start": 458, - "end": 463, - "loc": { - "start": { - "line": 28, - "column": 10 - }, - "end": { - "line": 28, - "column": 15 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 463, - "end": 464, - "loc": { - "start": { - "line": 28, - "column": 15 - }, - "end": { - "line": 28, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 465, - "end": 466, - "loc": { - "start": { - "line": 28, - "column": 17 - }, - "end": { - "line": 28, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parsedData", - "start": 475, - "end": 485, - "loc": { - "start": { - "line": 29, - "column": 8 - }, - "end": { - "line": 29, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 486, - "end": 487, - "loc": { - "start": { - "line": 29, - "column": 19 - }, - "end": { - "line": 29, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSON", - "start": 488, - "end": 492, - "loc": { - "start": { - "line": 29, - "column": 21 - }, - "end": { - "line": 29, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 492, - "end": 493, - "loc": { - "start": { - "line": 29, - "column": 25 - }, - "end": { - "line": 29, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parse", - "start": 493, - "end": 498, - "loc": { - "start": { - "line": 29, - "column": 26 - }, - "end": { - "line": 29, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 498, - "end": 499, - "loc": { - "start": { - "line": 29, - "column": 31 - }, - "end": { - "line": 29, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rawData", - "start": 499, - "end": 506, - "loc": { - "start": { - "line": 29, - "column": 32 - }, - "end": { - "line": 29, - "column": 39 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 506, - "end": 507, - "loc": { - "start": { - "line": 29, - "column": 39 - }, - "end": { - "line": 29, - "column": 40 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 507, - "end": 508, - "loc": { - "start": { - "line": 29, - "column": 40 - }, - "end": { - "line": 29, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errors", - "start": 517, - "end": 523, - "loc": { - "start": { - "line": 30, - "column": 8 - }, - "end": { - "line": 30, - "column": 14 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 524, - "end": 525, - "loc": { - "start": { - "line": 30, - "column": 15 - }, - "end": { - "line": 30, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parsedData", - "start": 526, - "end": 536, - "loc": { - "start": { - "line": 30, - "column": 17 - }, - "end": { - "line": 30, - "column": 27 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 536, - "end": 537, - "loc": { - "start": { - "line": 30, - "column": 27 - }, - "end": { - "line": 30, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errors", - "start": 537, - "end": 543, - "loc": { - "start": { - "line": 30, - "column": 28 - }, - "end": { - "line": 30, - "column": 34 - } - } - }, - { - "type": { - "label": "||", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 1, - "updateContext": null - }, - "value": "||", - "start": 544, - "end": 546, - "loc": { - "start": { - "line": 30, - "column": 35 - }, - "end": { - "line": 30, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parsedData", - "start": 547, - "end": 557, - "loc": { - "start": { - "line": 30, - "column": 38 - }, - "end": { - "line": 30, - "column": 48 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 557, - "end": 558, - "loc": { - "start": { - "line": 30, - "column": 48 - }, - "end": { - "line": 30, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "error", - "start": 558, - "end": 563, - "loc": { - "start": { - "line": 30, - "column": 49 - }, - "end": { - "line": 30, - "column": 54 - } - } - }, - { - "type": { - "label": "||", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 1, - "updateContext": null - }, - "value": "||", - "start": 564, - "end": 566, - "loc": { - "start": { - "line": 30, - "column": 55 - }, - "end": { - "line": 30, - "column": 57 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parsedData", - "start": 567, - "end": 577, - "loc": { - "start": { - "line": 30, - "column": 58 - }, - "end": { - "line": 30, - "column": 68 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 577, - "end": 578, - "loc": { - "start": { - "line": 30, - "column": 68 - }, - "end": { - "line": 30, - "column": 69 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "message", - "start": 578, - "end": 585, - "loc": { - "start": { - "line": 30, - "column": 69 - }, - "end": { - "line": 30, - "column": 76 - } - } - }, - { - "type": { - "label": "||", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 1, - "updateContext": null - }, - "value": "||", - "start": 586, - "end": 588, - "loc": { - "start": { - "line": 30, - "column": 77 - }, - "end": { - "line": 30, - "column": 79 - } - } - }, - { - "type": { - "label": "null", - "keyword": "null", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "null", - "start": 589, - "end": 593, - "loc": { - "start": { - "line": 30, - "column": 80 - }, - "end": { - "line": 30, - "column": 84 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 593, - "end": 594, - "loc": { - "start": { - "line": 30, - "column": 84 - }, - "end": { - "line": 30, - "column": 85 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 601, - "end": 602, - "loc": { - "start": { - "line": 31, - "column": 6 - }, - "end": { - "line": 31, - "column": 7 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 607, - "end": 608, - "loc": { - "start": { - "line": 32, - "column": 4 - }, - "end": { - "line": 32, - "column": 5 - } - } - }, - { - "type": { - "label": "catch", - "keyword": "catch", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "catch", - "start": 609, - "end": 614, - "loc": { - "start": { - "line": 32, - "column": 6 - }, - "end": { - "line": 32, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 615, - "end": 616, - "loc": { - "start": { - "line": 32, - "column": 12 - }, - "end": { - "line": 32, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "e", - "start": 616, - "end": 617, - "loc": { - "start": { - "line": 32, - "column": 13 - }, - "end": { - "line": 32, - "column": 14 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 617, - "end": 618, - "loc": { - "start": { - "line": 32, - "column": 14 - }, - "end": { - "line": 32, - "column": 15 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 619, - "end": 620, - "loc": { - "start": { - "line": 32, - "column": 16 - }, - "end": { - "line": 32, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errors", - "start": 627, - "end": 633, - "loc": { - "start": { - "line": 33, - "column": 6 - }, - "end": { - "line": 33, - "column": 12 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 634, - "end": 635, - "loc": { - "start": { - "line": 33, - "column": 13 - }, - "end": { - "line": 33, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "e", - "start": 636, - "end": 637, - "loc": { - "start": { - "line": 33, - "column": 15 - }, - "end": { - "line": 33, - "column": 16 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 637, - "end": 638, - "loc": { - "start": { - "line": 33, - "column": 16 - }, - "end": { - "line": 33, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parsedData", - "start": 645, - "end": 655, - "loc": { - "start": { - "line": 34, - "column": 6 - }, - "end": { - "line": 34, - "column": 16 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 656, - "end": 657, - "loc": { - "start": { - "line": 34, - "column": 17 - }, - "end": { - "line": 34, - "column": 18 - } - } - }, - { - "type": { - "label": "null", - "keyword": "null", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "null", - "start": 658, - "end": 662, - "loc": { - "start": { - "line": 34, - "column": 19 - }, - "end": { - "line": 34, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 662, - "end": 663, - "loc": { - "start": { - "line": 34, - "column": 23 - }, - "end": { - "line": 34, - "column": 24 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 668, - "end": 669, - "loc": { - "start": { - "line": 35, - "column": 4 - }, - "end": { - "line": 35, - "column": 5 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 675, - "end": 677, - "loc": { - "start": { - "line": 37, - "column": 4 - }, - "end": { - "line": 37, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 678, - "end": 679, - "loc": { - "start": { - "line": 37, - "column": 7 - }, - "end": { - "line": 37, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 679, - "end": 687, - "loc": { - "start": { - "line": 37, - "column": 8 - }, - "end": { - "line": 37, - "column": 16 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 687, - "end": 688, - "loc": { - "start": { - "line": 37, - "column": 16 - }, - "end": { - "line": 37, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 689, - "end": 690, - "loc": { - "start": { - "line": 37, - "column": 18 - }, - "end": { - "line": 37, - "column": 19 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 697, - "end": 703, - "loc": { - "start": { - "line": 38, - "column": 6 - }, - "end": { - "line": 38, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 704, - "end": 712, - "loc": { - "start": { - "line": 38, - "column": 13 - }, - "end": { - "line": 38, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 712, - "end": 713, - "loc": { - "start": { - "line": 38, - "column": 21 - }, - "end": { - "line": 38, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errors", - "start": 713, - "end": 719, - "loc": { - "start": { - "line": 38, - "column": 22 - }, - "end": { - "line": 38, - "column": 28 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 719, - "end": 720, - "loc": { - "start": { - "line": 38, - "column": 28 - }, - "end": { - "line": 38, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parse", - "start": 721, - "end": 726, - "loc": { - "start": { - "line": 38, - "column": 30 - }, - "end": { - "line": 38, - "column": 35 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 727, - "end": 728, - "loc": { - "start": { - "line": 38, - "column": 36 - }, - "end": { - "line": 38, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parsedData", - "start": 729, - "end": 739, - "loc": { - "start": { - "line": 38, - "column": 38 - }, - "end": { - "line": 38, - "column": 48 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 740, - "end": 741, - "loc": { - "start": { - "line": 38, - "column": 49 - }, - "end": { - "line": 38, - "column": 50 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rawData", - "start": 742, - "end": 749, - "loc": { - "start": { - "line": 38, - "column": 51 - }, - "end": { - "line": 38, - "column": 58 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 749, - "end": 750, - "loc": { - "start": { - "line": 38, - "column": 58 - }, - "end": { - "line": 38, - "column": 59 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 750, - "end": 751, - "loc": { - "start": { - "line": 38, - "column": 59 - }, - "end": { - "line": 38, - "column": 60 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 756, - "end": 757, - "loc": { - "start": { - "line": 39, - "column": 4 - }, - "end": { - "line": 39, - "column": 5 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 760, - "end": 761, - "loc": { - "start": { - "line": 40, - "column": 2 - }, - "end": { - "line": 40, - "column": 3 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 761, - "end": 762, - "loc": { - "start": { - "line": 40, - "column": 3 - }, - "end": { - "line": 40, - "column": 4 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 762, - "end": 763, - "loc": { - "start": { - "line": 40, - "column": 4 - }, - "end": { - "line": 40, - "column": 5 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 764, - "end": 765, - "loc": { - "start": { - "line": 41, - "column": 0 - }, - "end": { - "line": 41, - "column": 1 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 765, - "end": 766, - "loc": { - "start": { - "line": 41, - "column": 1 - }, - "end": { - "line": 41, - "column": 2 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 768, - "end": 773, - "loc": { - "start": { - "line": 43, - "column": 0 - }, - "end": { - "line": 43, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 774, - "end": 786, - "loc": { - "start": { - "line": 43, - "column": 6 - }, - "end": { - "line": 43, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 787, - "end": 788, - "loc": { - "start": { - "line": 43, - "column": 19 - }, - "end": { - "line": 43, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 789, - "end": 797, - "loc": { - "start": { - "line": 43, - "column": 21 - }, - "end": { - "line": 43, - "column": 29 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 798, - "end": 800, - "loc": { - "start": { - "line": 43, - "column": 30 - }, - "end": { - "line": 43, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 801, - "end": 804, - "loc": { - "start": { - "line": 43, - "column": 33 - }, - "end": { - "line": 43, - "column": 36 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 805, - "end": 807, - "loc": { - "start": { - "line": 43, - "column": 37 - }, - "end": { - "line": 43, - "column": 39 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 808, - "end": 809, - "loc": { - "start": { - "line": 43, - "column": 40 - }, - "end": { - "line": 43, - "column": 41 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 812, - "end": 814, - "loc": { - "start": { - "line": 44, - "column": 2 - }, - "end": { - "line": 44, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 815, - "end": 816, - "loc": { - "start": { - "line": 44, - "column": 5 - }, - "end": { - "line": 44, - "column": 6 - } - } - }, - { - "type": { - "label": "typeof", - "keyword": "typeof", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "typeof", - "start": 816, - "end": 822, - "loc": { - "start": { - "line": 44, - "column": 6 - }, - "end": { - "line": 44, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 823, - "end": 831, - "loc": { - "start": { - "line": 44, - "column": 13 - }, - "end": { - "line": 44, - "column": 21 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 832, - "end": 835, - "loc": { - "start": { - "line": 44, - "column": 22 - }, - "end": { - "line": 44, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "function", - "start": 836, - "end": 846, - "loc": { - "start": { - "line": 44, - "column": 26 - }, - "end": { - "line": 44, - "column": 36 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 846, - "end": 847, - "loc": { - "start": { - "line": 44, - "column": 36 - }, - "end": { - "line": 44, - "column": 37 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 848, - "end": 849, - "loc": { - "start": { - "line": 44, - "column": 38 - }, - "end": { - "line": 44, - "column": 39 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 854, - "end": 860, - "loc": { - "start": { - "line": 45, - "column": 4 - }, - "end": { - "line": 45, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 861, - "end": 869, - "loc": { - "start": { - "line": 45, - "column": 11 - }, - "end": { - "line": 45, - "column": 19 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 869, - "end": 870, - "loc": { - "start": { - "line": 45, - "column": 19 - }, - "end": { - "line": 45, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 870, - "end": 873, - "loc": { - "start": { - "line": 45, - "column": 20 - }, - "end": { - "line": 45, - "column": 23 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 873, - "end": 874, - "loc": { - "start": { - "line": 45, - "column": 23 - }, - "end": { - "line": 45, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "message", - "start": 874, - "end": 881, - "loc": { - "start": { - "line": 45, - "column": 24 - }, - "end": { - "line": 45, - "column": 31 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 881, - "end": 882, - "loc": { - "start": { - "line": 45, - "column": 31 - }, - "end": { - "line": 45, - "column": 32 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 882, - "end": 883, - "loc": { - "start": { - "line": 45, - "column": 32 - }, - "end": { - "line": 45, - "column": 33 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 886, - "end": 887, - "loc": { - "start": { - "line": 46, - "column": 2 - }, - "end": { - "line": 46, - "column": 3 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 888, - "end": 889, - "loc": { - "start": { - "line": 47, - "column": 0 - }, - "end": { - "line": 47, - "column": 1 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 889, - "end": 890, - "loc": { - "start": { - "line": 47, - "column": 1 - }, - "end": { - "line": 47, - "column": 2 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 892, - "end": 897, - "loc": { - "start": { - "line": 49, - "column": 0 - }, - "end": { - "line": 49, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 898, - "end": 917, - "loc": { - "start": { - "line": 49, - "column": 6 - }, - "end": { - "line": 49, - "column": 25 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 918, - "end": 919, - "loc": { - "start": { - "line": 49, - "column": 26 - }, - "end": { - "line": 49, - "column": 27 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 920, - "end": 921, - "loc": { - "start": { - "line": 49, - "column": 28 - }, - "end": { - "line": 49, - "column": 29 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 921, - "end": 922, - "loc": { - "start": { - "line": 49, - "column": 29 - }, - "end": { - "line": 49, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 925, - "end": 931, - "loc": { - "start": { - "line": 50, - "column": 2 - }, - "end": { - "line": 50, - "column": 8 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 932, - "end": 933, - "loc": { - "start": { - "line": 50, - "column": 9 - }, - "end": { - "line": 50, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "GET", - "start": 934, - "end": 939, - "loc": { - "start": { - "line": 50, - "column": 11 - }, - "end": { - "line": 50, - "column": 16 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 939, - "end": 940, - "loc": { - "start": { - "line": 50, - "column": 16 - }, - "end": { - "line": 50, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 943, - "end": 947, - "loc": { - "start": { - "line": 51, - "column": 2 - }, - "end": { - "line": 51, - "column": 6 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 948, - "end": 949, - "loc": { - "start": { - "line": 51, - "column": 7 - }, - "end": { - "line": 51, - "column": 8 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/", - "start": 950, - "end": 953, - "loc": { - "start": { - "line": 51, - "column": 9 - }, - "end": { - "line": 51, - "column": 12 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 953, - "end": 954, - "loc": { - "start": { - "line": 51, - "column": 12 - }, - "end": { - "line": 51, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 957, - "end": 970, - "loc": { - "start": { - "line": 52, - "column": 2 - }, - "end": { - "line": 52, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 970, - "end": 971, - "loc": { - "start": { - "line": 52, - "column": 15 - }, - "end": { - "line": 52, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 972, - "end": 973, - "loc": { - "start": { - "line": 52, - "column": 17 - }, - "end": { - "line": 52, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 978, - "end": 982, - "loc": { - "start": { - "line": 53, - "column": 4 - }, - "end": { - "line": 53, - "column": 8 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 983, - "end": 984, - "loc": { - "start": { - "line": 53, - "column": 9 - }, - "end": { - "line": 53, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Basic", - "start": 985, - "end": 992, - "loc": { - "start": { - "line": 53, - "column": 11 - }, - "end": { - "line": 53, - "column": 18 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 992, - "end": 993, - "loc": { - "start": { - "line": 53, - "column": 18 - }, - "end": { - "line": 53, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 998, - "end": 1003, - "loc": { - "start": { - "line": 54, - "column": 4 - }, - "end": { - "line": 54, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1004, - "end": 1005, - "loc": { - "start": { - "line": 54, - "column": 10 - }, - "end": { - "line": 54, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "settings", - "start": 1006, - "end": 1014, - "loc": { - "start": { - "line": 54, - "column": 12 - }, - "end": { - "line": 54, - "column": 20 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1014, - "end": 1015, - "loc": { - "start": { - "line": 54, - "column": 20 - }, - "end": { - "line": 54, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "api", - "start": 1015, - "end": 1018, - "loc": { - "start": { - "line": 54, - "column": 21 - }, - "end": { - "line": 54, - "column": 24 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1018, - "end": 1019, - "loc": { - "start": { - "line": 54, - "column": 24 - }, - "end": { - "line": 54, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "credentials", - "start": 1019, - "end": 1030, - "loc": { - "start": { - "line": 54, - "column": 25 - }, - "end": { - "line": 54, - "column": 36 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1030, - "end": 1031, - "loc": { - "start": { - "line": 54, - "column": 36 - }, - "end": { - "line": 54, - "column": 37 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1034, - "end": 1035, - "loc": { - "start": { - "line": 55, - "column": 2 - }, - "end": { - "line": 55, - "column": 3 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1036, - "end": 1037, - "loc": { - "start": { - "line": 55, - "column": 4 - }, - "end": { - "line": 55, - "column": 5 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1038, - "end": 1039, - "loc": { - "start": { - "line": 55, - "column": 6 - }, - "end": { - "line": 55, - "column": 7 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1039, - "end": 1040, - "loc": { - "start": { - "line": 55, - "column": 7 - }, - "end": { - "line": 55, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1040, - "end": 1041, - "loc": { - "start": { - "line": 55, - "column": 8 - }, - "end": { - "line": 55, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 1044, - "end": 1051, - "loc": { - "start": { - "line": 56, - "column": 2 - }, - "end": { - "line": 56, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1052, - "end": 1053, - "loc": { - "start": { - "line": 56, - "column": 10 - }, - "end": { - "line": 56, - "column": 11 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1054, - "end": 1055, - "loc": { - "start": { - "line": 56, - "column": 12 - }, - "end": { - "line": 56, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1055, - "end": 1056, - "loc": { - "start": { - "line": 56, - "column": 13 - }, - "end": { - "line": 56, - "column": 14 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1056, - "end": 1057, - "loc": { - "start": { - "line": 56, - "column": 14 - }, - "end": { - "line": 56, - "column": 15 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1058, - "end": 1059, - "loc": { - "start": { - "line": 57, - "column": 0 - }, - "end": { - "line": 57, - "column": 1 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1059, - "end": 1060, - "loc": { - "start": { - "line": 57, - "column": 1 - }, - "end": { - "line": 57, - "column": 2 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1061, - "end": 1063, - "loc": { - "start": { - "line": 57, - "column": 3 - }, - "end": { - "line": 57, - "column": 5 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1064, - "end": 1065, - "loc": { - "start": { - "line": 57, - "column": 6 - }, - "end": { - "line": 57, - "column": 7 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1068, - "end": 1073, - "loc": { - "start": { - "line": 58, - "column": 2 - }, - "end": { - "line": 58, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "options", - "start": 1074, - "end": 1081, - "loc": { - "start": { - "line": 58, - "column": 8 - }, - "end": { - "line": 58, - "column": 15 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1082, - "end": 1083, - "loc": { - "start": { - "line": 58, - "column": 16 - }, - "end": { - "line": 58, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1084, - "end": 1085, - "loc": { - "start": { - "line": 58, - "column": 18 - }, - "end": { - "line": 58, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "host", - "start": 1090, - "end": 1094, - "loc": { - "start": { - "line": 59, - "column": 4 - }, - "end": { - "line": 59, - "column": 8 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1094, - "end": 1095, - "loc": { - "start": { - "line": 59, - "column": 8 - }, - "end": { - "line": 59, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "settings", - "start": 1096, - "end": 1104, - "loc": { - "start": { - "line": 59, - "column": 10 - }, - "end": { - "line": 59, - "column": 18 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1104, - "end": 1105, - "loc": { - "start": { - "line": 59, - "column": 18 - }, - "end": { - "line": 59, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "api", - "start": 1105, - "end": 1108, - "loc": { - "start": { - "line": 59, - "column": 19 - }, - "end": { - "line": 59, - "column": 22 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1108, - "end": 1109, - "loc": { - "start": { - "line": 59, - "column": 22 - }, - "end": { - "line": 59, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "host", - "start": 1109, - "end": 1113, - "loc": { - "start": { - "line": 59, - "column": 23 - }, - "end": { - "line": 59, - "column": 27 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1113, - "end": 1114, - "loc": { - "start": { - "line": 59, - "column": 27 - }, - "end": { - "line": 59, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "port", - "start": 1119, - "end": 1123, - "loc": { - "start": { - "line": 60, - "column": 4 - }, - "end": { - "line": 60, - "column": 8 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1123, - "end": 1124, - "loc": { - "start": { - "line": 60, - "column": 8 - }, - "end": { - "line": 60, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "settings", - "start": 1125, - "end": 1133, - "loc": { - "start": { - "line": 60, - "column": 10 - }, - "end": { - "line": 60, - "column": 18 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1133, - "end": 1134, - "loc": { - "start": { - "line": 60, - "column": 18 - }, - "end": { - "line": 60, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "api", - "start": 1134, - "end": 1137, - "loc": { - "start": { - "line": 60, - "column": 19 - }, - "end": { - "line": 60, - "column": 22 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1137, - "end": 1138, - "loc": { - "start": { - "line": 60, - "column": 22 - }, - "end": { - "line": 60, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "port", - "start": 1138, - "end": 1142, - "loc": { - "start": { - "line": 60, - "column": 23 - }, - "end": { - "line": 60, - "column": 27 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1142, - "end": 1143, - "loc": { - "start": { - "line": 60, - "column": 27 - }, - "end": { - "line": 60, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 1148, - "end": 1154, - "loc": { - "start": { - "line": 61, - "column": 4 - }, - "end": { - "line": 61, - "column": 10 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1154, - "end": 1155, - "loc": { - "start": { - "line": 61, - "column": 10 - }, - "end": { - "line": 61, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 1160, - "end": 1164, - "loc": { - "start": { - "line": 62, - "column": 4 - }, - "end": { - "line": 62, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1164, - "end": 1165, - "loc": { - "start": { - "line": 62, - "column": 8 - }, - "end": { - "line": 62, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 1170, - "end": 1177, - "loc": { - "start": { - "line": 63, - "column": 4 - }, - "end": { - "line": 63, - "column": 11 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1177, - "end": 1178, - "loc": { - "start": { - "line": 63, - "column": 11 - }, - "end": { - "line": 63, - "column": 12 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1181, - "end": 1182, - "loc": { - "start": { - "line": 64, - "column": 2 - }, - "end": { - "line": 64, - "column": 3 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1182, - "end": 1183, - "loc": { - "start": { - "line": 64, - "column": 3 - }, - "end": { - "line": 64, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "options", - "start": 1186, - "end": 1193, - "loc": { - "start": { - "line": 65, - "column": 2 - }, - "end": { - "line": 65, - "column": 9 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1193, - "end": 1194, - "loc": { - "start": { - "line": 65, - "column": 9 - }, - "end": { - "line": 65, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 1194, - "end": 1201, - "loc": { - "start": { - "line": 65, - "column": 10 - }, - "end": { - "line": 65, - "column": 17 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1201, - "end": 1202, - "loc": { - "start": { - "line": 65, - "column": 17 - }, - "end": { - "line": 65, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Authorization", - "start": 1202, - "end": 1215, - "loc": { - "start": { - "line": 65, - "column": 18 - }, - "end": { - "line": 65, - "column": 31 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1216, - "end": 1217, - "loc": { - "start": { - "line": 65, - "column": 32 - }, - "end": { - "line": 65, - "column": 33 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1218, - "end": 1219, - "loc": { - "start": { - "line": 65, - "column": 34 - }, - "end": { - "line": 65, - "column": 35 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 1219, - "end": 1219, - "loc": { - "start": { - "line": 65, - "column": 35 - }, - "end": { - "line": 65, - "column": 35 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1219, - "end": 1221, - "loc": { - "start": { - "line": 65, - "column": 35 - }, - "end": { - "line": 65, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 1221, - "end": 1225, - "loc": { - "start": { - "line": 65, - "column": 37 - }, - "end": { - "line": 65, - "column": 41 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1225, - "end": 1226, - "loc": { - "start": { - "line": 65, - "column": 41 - }, - "end": { - "line": 65, - "column": 42 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": " ", - "start": 1226, - "end": 1227, - "loc": { - "start": { - "line": 65, - "column": 42 - }, - "end": { - "line": 65, - "column": 43 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1227, - "end": 1229, - "loc": { - "start": { - "line": 65, - "column": 43 - }, - "end": { - "line": 65, - "column": 45 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 1229, - "end": 1234, - "loc": { - "start": { - "line": 65, - "column": 45 - }, - "end": { - "line": 65, - "column": 50 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1234, - "end": 1235, - "loc": { - "start": { - "line": 65, - "column": 50 - }, - "end": { - "line": 65, - "column": 51 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 1235, - "end": 1235, - "loc": { - "start": { - "line": 65, - "column": 51 - }, - "end": { - "line": 65, - "column": 51 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1235, - "end": 1236, - "loc": { - "start": { - "line": 65, - "column": 51 - }, - "end": { - "line": 65, - "column": 52 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1236, - "end": 1237, - "loc": { - "start": { - "line": 65, - "column": 52 - }, - "end": { - "line": 65, - "column": 53 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 1240, - "end": 1246, - "loc": { - "start": { - "line": 66, - "column": 2 - }, - "end": { - "line": 66, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "options", - "start": 1247, - "end": 1254, - "loc": { - "start": { - "line": 66, - "column": 9 - }, - "end": { - "line": 66, - "column": 16 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1254, - "end": 1255, - "loc": { - "start": { - "line": 66, - "column": 16 - }, - "end": { - "line": 66, - "column": 17 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1256, - "end": 1257, - "loc": { - "start": { - "line": 67, - "column": 0 - }, - "end": { - "line": 67, - "column": 1 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1257, - "end": 1258, - "loc": { - "start": { - "line": 67, - "column": 1 - }, - "end": { - "line": 67, - "column": 2 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1260, - "end": 1265, - "loc": { - "start": { - "line": 69, - "column": 0 - }, - "end": { - "line": 69, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "setProductionApiHost", - "start": 1266, - "end": 1286, - "loc": { - "start": { - "line": 69, - "column": 6 - }, - "end": { - "line": 69, - "column": 26 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1287, - "end": 1288, - "loc": { - "start": { - "line": 69, - "column": 27 - }, - "end": { - "line": 69, - "column": 28 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1289, - "end": 1290, - "loc": { - "start": { - "line": 69, - "column": 29 - }, - "end": { - "line": 69, - "column": 30 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1290, - "end": 1291, - "loc": { - "start": { - "line": 69, - "column": 30 - }, - "end": { - "line": 69, - "column": 31 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1292, - "end": 1294, - "loc": { - "start": { - "line": 69, - "column": 32 - }, - "end": { - "line": 69, - "column": 34 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1295, - "end": 1296, - "loc": { - "start": { - "line": 69, - "column": 35 - }, - "end": { - "line": 69, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "settings", - "start": 1299, - "end": 1307, - "loc": { - "start": { - "line": 70, - "column": 2 - }, - "end": { - "line": 70, - "column": 10 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1307, - "end": 1308, - "loc": { - "start": { - "line": 70, - "column": 10 - }, - "end": { - "line": 70, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "api", - "start": 1308, - "end": 1311, - "loc": { - "start": { - "line": 70, - "column": 11 - }, - "end": { - "line": 70, - "column": 14 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1311, - "end": 1312, - "loc": { - "start": { - "line": 70, - "column": 14 - }, - "end": { - "line": 70, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "host", - "start": 1312, - "end": 1316, - "loc": { - "start": { - "line": 70, - "column": 15 - }, - "end": { - "line": 70, - "column": 19 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1317, - "end": 1318, - "loc": { - "start": { - "line": 70, - "column": 20 - }, - "end": { - "line": 70, - "column": 21 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "api.signnow.com", - "start": 1319, - "end": 1336, - "loc": { - "start": { - "line": 70, - "column": 22 - }, - "end": { - "line": 70, - "column": 39 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1336, - "end": 1337, - "loc": { - "start": { - "line": 70, - "column": 39 - }, - "end": { - "line": 70, - "column": 40 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1338, - "end": 1339, - "loc": { - "start": { - "line": 71, - "column": 0 - }, - "end": { - "line": 71, - "column": 1 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1339, - "end": 1340, - "loc": { - "start": { - "line": 71, - "column": 1 - }, - "end": { - "line": 71, - "column": 2 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1342, - "end": 1347, - "loc": { - "start": { - "line": 73, - "column": 0 - }, - "end": { - "line": 73, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "setCredentials", - "start": 1348, - "end": 1362, - "loc": { - "start": { - "line": 73, - "column": 6 - }, - "end": { - "line": 73, - "column": 20 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1363, - "end": 1364, - "loc": { - "start": { - "line": 73, - "column": 21 - }, - "end": { - "line": 73, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "credentials", - "start": 1365, - "end": 1376, - "loc": { - "start": { - "line": 73, - "column": 23 - }, - "end": { - "line": 73, - "column": 34 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1377, - "end": 1379, - "loc": { - "start": { - "line": 73, - "column": 35 - }, - "end": { - "line": 73, - "column": 37 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1380, - "end": 1381, - "loc": { - "start": { - "line": 73, - "column": 38 - }, - "end": { - "line": 73, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "settings", - "start": 1384, - "end": 1392, - "loc": { - "start": { - "line": 74, - "column": 2 - }, - "end": { - "line": 74, - "column": 10 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1392, - "end": 1393, - "loc": { - "start": { - "line": 74, - "column": 10 - }, - "end": { - "line": 74, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "api", - "start": 1393, - "end": 1396, - "loc": { - "start": { - "line": 74, - "column": 11 - }, - "end": { - "line": 74, - "column": 14 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1396, - "end": 1397, - "loc": { - "start": { - "line": 74, - "column": 14 - }, - "end": { - "line": 74, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "credentials", - "start": 1397, - "end": 1408, - "loc": { - "start": { - "line": 74, - "column": 15 - }, - "end": { - "line": 74, - "column": 26 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1409, - "end": 1410, - "loc": { - "start": { - "line": 74, - "column": 27 - }, - "end": { - "line": 74, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "credentials", - "start": 1411, - "end": 1422, - "loc": { - "start": { - "line": 74, - "column": 29 - }, - "end": { - "line": 74, - "column": 40 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1422, - "end": 1423, - "loc": { - "start": { - "line": 74, - "column": 40 - }, - "end": { - "line": 74, - "column": 41 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1424, - "end": 1425, - "loc": { - "start": { - "line": 75, - "column": 0 - }, - "end": { - "line": 75, - "column": 1 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1425, - "end": 1426, - "loc": { - "start": { - "line": 75, - "column": 1 - }, - "end": { - "line": 75, - "column": 2 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "module", - "start": 1428, - "end": 1434, - "loc": { - "start": { - "line": 77, - "column": 0 - }, - "end": { - "line": 77, - "column": 6 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1434, - "end": 1435, - "loc": { - "start": { - "line": 77, - "column": 6 - }, - "end": { - "line": 77, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "exports", - "start": 1435, - "end": 1442, - "loc": { - "start": { - "line": 77, - "column": 7 - }, - "end": { - "line": 77, - "column": 14 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1443, - "end": 1444, - "loc": { - "start": { - "line": 77, - "column": 15 - }, - "end": { - "line": 77, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1445, - "end": 1446, - "loc": { - "start": { - "line": 77, - "column": 17 - }, - "end": { - "line": 77, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 1449, - "end": 1464, - "loc": { - "start": { - "line": 78, - "column": 2 - }, - "end": { - "line": 78, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1464, - "end": 1465, - "loc": { - "start": { - "line": 78, - "column": 17 - }, - "end": { - "line": 78, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 1468, - "end": 1480, - "loc": { - "start": { - "line": 79, - "column": 2 - }, - "end": { - "line": 79, - "column": 14 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1480, - "end": 1481, - "loc": { - "start": { - "line": 79, - "column": 14 - }, - "end": { - "line": 79, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 1484, - "end": 1503, - "loc": { - "start": { - "line": 80, - "column": 2 - }, - "end": { - "line": 80, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1503, - "end": 1504, - "loc": { - "start": { - "line": 80, - "column": 21 - }, - "end": { - "line": 80, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "setProductionApiHost", - "start": 1507, - "end": 1527, - "loc": { - "start": { - "line": 81, - "column": 2 - }, - "end": { - "line": 81, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1527, - "end": 1528, - "loc": { - "start": { - "line": 81, - "column": 22 - }, - "end": { - "line": 81, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "setCredentials", - "start": 1531, - "end": 1545, - "loc": { - "start": { - "line": 82, - "column": 2 - }, - "end": { - "line": 82, - "column": 16 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1545, - "end": 1546, - "loc": { - "start": { - "line": 82, - "column": 16 - }, - "end": { - "line": 82, - "column": 17 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1547, - "end": 1548, - "loc": { - "start": { - "line": 83, - "column": 0 - }, - "end": { - "line": 83, - "column": 1 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1548, - "end": 1549, - "loc": { - "start": { - "line": 83, - "column": 1 - }, - "end": { - "line": 83, - "column": 2 - } - } - }, - { - "type": { - "label": "eof", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1550, - "end": 1550, - "loc": { - "start": { - "line": 84, - "column": 0 - }, - "end": { - "line": 84, - "column": 0 - } - } - } - ] -} \ No newline at end of file diff --git a/docs/ast/source/common/index.js.json b/docs/ast/source/common/index.js.json deleted file mode 100644 index 9c00076a..00000000 --- a/docs/ast/source/common/index.js.json +++ /dev/null @@ -1,20323 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 1769, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 94, - "column": 0 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 1769, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 94, - "column": 0 - } - }, - "sourceType": "module", - "body": [ - { - "type": "ImportDeclaration", - "start": 14, - "end": 85, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 6, - "column": 28 - } - }, - "specifiers": [ - { - "type": "ImportSpecifier", - "start": 25, - "end": 29, - "loc": { - "start": { - "line": 3, - "column": 2 - }, - "end": { - "line": 3, - "column": 6 - } - }, - "imported": { - "type": "Identifier", - "start": 25, - "end": 29, - "loc": { - "start": { - "line": 3, - "column": 2 - }, - "end": { - "line": 3, - "column": 6 - }, - "identifierName": "name" - }, - "name": "name" - }, - "local": { - "type": "Identifier", - "start": 25, - "end": 29, - "loc": { - "start": { - "line": 3, - "column": 2 - }, - "end": { - "line": 3, - "column": 6 - }, - "identifierName": "name" - }, - "name": "name" - } - }, - { - "type": "ImportSpecifier", - "start": 33, - "end": 40, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 9 - } - }, - "imported": { - "type": "Identifier", - "start": 33, - "end": 40, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 9 - }, - "identifierName": "version" - }, - "name": "version" - }, - "local": { - "type": "Identifier", - "start": 33, - "end": 40, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 9 - }, - "identifierName": "version" - }, - "name": "version" - } - }, - { - "type": "ImportSpecifier", - "start": 44, - "end": 55, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 13 - } - }, - "imported": { - "type": "Identifier", - "start": 44, - "end": 55, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 13 - }, - "identifierName": "description" - }, - "name": "description" - }, - "local": { - "type": "Identifier", - "start": 44, - "end": 55, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 13 - }, - "identifierName": "description" - }, - "name": "description" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 64, - "end": 84, - "loc": { - "start": { - "line": 6, - "column": 7 - }, - "end": { - "line": 6, - "column": 27 - } - }, - "extra": { - "rawValue": "../../package.json", - "raw": "'../../package.json'" - }, - "value": "../../package.json" - }, - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Common request setting object\n ", - "start": 87, - "end": 127, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 10, - "column": 3 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 128, - "end": 233, - "loc": { - "start": { - "line": 11, - "column": 0 - }, - "end": { - "line": 17, - "column": 2 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 134, - "end": 232, - "loc": { - "start": { - "line": 11, - "column": 6 - }, - "end": { - "line": 17, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 134, - "end": 142, - "loc": { - "start": { - "line": 11, - "column": 6 - }, - "end": { - "line": 11, - "column": 14 - }, - "identifierName": "settings" - }, - "name": "settings", - "leadingComments": null - }, - "init": { - "type": "ObjectExpression", - "start": 145, - "end": 232, - "loc": { - "start": { - "line": 11, - "column": 17 - }, - "end": { - "line": 17, - "column": 1 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 149, - "end": 229, - "loc": { - "start": { - "line": 12, - "column": 2 - }, - "end": { - "line": 16, - "column": 3 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 149, - "end": 152, - "loc": { - "start": { - "line": 12, - "column": 2 - }, - "end": { - "line": 12, - "column": 5 - }, - "identifierName": "api" - }, - "name": "api" - }, - "value": { - "type": "ObjectExpression", - "start": 154, - "end": 229, - "loc": { - "start": { - "line": 12, - "column": 7 - }, - "end": { - "line": 16, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 160, - "end": 188, - "loc": { - "start": { - "line": 13, - "column": 4 - }, - "end": { - "line": 13, - "column": 32 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 160, - "end": 164, - "loc": { - "start": { - "line": 13, - "column": 4 - }, - "end": { - "line": 13, - "column": 8 - }, - "identifierName": "host" - }, - "name": "host" - }, - "value": { - "type": "StringLiteral", - "start": 166, - "end": 188, - "loc": { - "start": { - "line": 13, - "column": 10 - }, - "end": { - "line": 13, - "column": 32 - } - }, - "extra": { - "rawValue": "api-eval.signnow.com", - "raw": "'api-eval.signnow.com'" - }, - "value": "api-eval.signnow.com" - } - }, - { - "type": "ObjectProperty", - "start": 194, - "end": 203, - "loc": { - "start": { - "line": 14, - "column": 4 - }, - "end": { - "line": 14, - "column": 13 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 194, - "end": 198, - "loc": { - "start": { - "line": 14, - "column": 4 - }, - "end": { - "line": 14, - "column": 8 - }, - "identifierName": "port" - }, - "name": "port" - }, - "value": { - "type": "NumericLiteral", - "start": 200, - "end": 203, - "loc": { - "start": { - "line": 14, - "column": 10 - }, - "end": { - "line": 14, - "column": 13 - } - }, - "extra": { - "rawValue": 443, - "raw": "443" - }, - "value": 443 - } - }, - { - "type": "ObjectProperty", - "start": 209, - "end": 224, - "loc": { - "start": { - "line": 15, - "column": 4 - }, - "end": { - "line": 15, - "column": 19 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 209, - "end": 220, - "loc": { - "start": { - "line": 15, - "column": 4 - }, - "end": { - "line": 15, - "column": 15 - }, - "identifierName": "credentials" - }, - "name": "credentials" - }, - "value": { - "type": "StringLiteral", - "start": 222, - "end": 224, - "loc": { - "start": { - "line": 15, - "column": 17 - }, - "end": { - "line": 15, - "column": 19 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - } - ] - } - } - ] - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Common request setting object\n ", - "start": 87, - "end": 127, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 10, - "column": 3 - } - } - } - ] - }, - { - "type": "Identifier", - "start": 235, - "end": 894, - "loc": { - "start": { - "line": 19, - "column": 0 - }, - "end": { - "line": 50, - "column": 2 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 241, - "end": 893, - "loc": { - "start": { - "line": 19, - "column": 6 - }, - "end": { - "line": 50, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 241, - "end": 256, - "loc": { - "start": { - "line": 19, - "column": 6 - }, - "end": { - "line": 19, - "column": 21 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 259, - "end": 893, - "loc": { - "start": { - "line": 19, - "column": 24 - }, - "end": { - "line": 50, - "column": 1 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 260, - "end": 268, - "loc": { - "start": { - "line": 19, - "column": 25 - }, - "end": { - "line": 19, - "column": 33 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - { - "type": "AssignmentPattern", - "start": 270, - "end": 291, - "loc": { - "start": { - "line": 19, - "column": 35 - }, - "end": { - "line": 19, - "column": 56 - } - }, - "left": { - "type": "ObjectPattern", - "start": 270, - "end": 286, - "loc": { - "start": { - "line": 19, - "column": 35 - }, - "end": { - "line": 19, - "column": 51 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 272, - "end": 284, - "loc": { - "start": { - "line": 19, - "column": 37 - }, - "end": { - "line": 19, - "column": 49 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 272, - "end": 277, - "loc": { - "start": { - "line": 19, - "column": 37 - }, - "end": { - "line": 19, - "column": 42 - }, - "identifierName": "parse" - }, - "name": "parse" - }, - "value": { - "type": "AssignmentPattern", - "start": 272, - "end": 284, - "loc": { - "start": { - "line": 19, - "column": 37 - }, - "end": { - "line": 19, - "column": 49 - } - }, - "left": { - "type": "Identifier", - "start": 272, - "end": 277, - "loc": { - "start": { - "line": 19, - "column": 37 - }, - "end": { - "line": 19, - "column": 42 - }, - "identifierName": "parse" - }, - "name": "parse" - }, - "right": { - "type": "BooleanLiteral", - "start": 280, - "end": 284, - "loc": { - "start": { - "line": 19, - "column": 45 - }, - "end": { - "line": 19, - "column": 49 - } - }, - "value": true - } - }, - "extra": { - "shorthand": true - } - } - ] - }, - "right": { - "type": "ObjectExpression", - "start": 289, - "end": 291, - "loc": { - "start": { - "line": 19, - "column": 54 - }, - "end": { - "line": 19, - "column": 56 - } - }, - "properties": [] - } - } - ], - "body": { - "type": "ArrowFunctionExpression", - "start": 296, - "end": 893, - "loc": { - "start": { - "line": 19, - "column": 61 - }, - "end": { - "line": 50, - "column": 1 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 296, - "end": 299, - "loc": { - "start": { - "line": 19, - "column": 61 - }, - "end": { - "line": 19, - "column": 64 - }, - "identifierName": "res" - }, - "name": "res" - } - ], - "body": { - "type": "BlockStatement", - "start": 303, - "end": 893, - "loc": { - "start": { - "line": 19, - "column": 68 - }, - "end": { - "line": 50, - "column": 1 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 307, - "end": 324, - "loc": { - "start": { - "line": 20, - "column": 2 - }, - "end": { - "line": 20, - "column": 19 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 311, - "end": 323, - "loc": { - "start": { - "line": 20, - "column": 6 - }, - "end": { - "line": 20, - "column": 18 - } - }, - "id": { - "type": "Identifier", - "start": 311, - "end": 318, - "loc": { - "start": { - "line": 20, - "column": 6 - }, - "end": { - "line": 20, - "column": 13 - }, - "identifierName": "rawData" - }, - "name": "rawData" - }, - "init": { - "type": "StringLiteral", - "start": 321, - "end": 323, - "loc": { - "start": { - "line": 20, - "column": 16 - }, - "end": { - "line": 20, - "column": 18 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - } - ], - "kind": "let" - }, - { - "type": "IfStatement", - "start": 328, - "end": 415, - "loc": { - "start": { - "line": 22, - "column": 2 - }, - "end": { - "line": 26, - "column": 3 - } - }, - "test": { - "type": "Identifier", - "start": 332, - "end": 337, - "loc": { - "start": { - "line": 22, - "column": 6 - }, - "end": { - "line": 22, - "column": 11 - }, - "identifierName": "parse" - }, - "name": "parse" - }, - "consequent": { - "type": "BlockStatement", - "start": 339, - "end": 373, - "loc": { - "start": { - "line": 22, - "column": 13 - }, - "end": { - "line": 24, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 345, - "end": 369, - "loc": { - "start": { - "line": 23, - "column": 4 - }, - "end": { - "line": 23, - "column": 28 - } - }, - "expression": { - "type": "CallExpression", - "start": 345, - "end": 368, - "loc": { - "start": { - "line": 23, - "column": 4 - }, - "end": { - "line": 23, - "column": 27 - } - }, - "callee": { - "type": "MemberExpression", - "start": 345, - "end": 360, - "loc": { - "start": { - "line": 23, - "column": 4 - }, - "end": { - "line": 23, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 345, - "end": 348, - "loc": { - "start": { - "line": 23, - "column": 4 - }, - "end": { - "line": 23, - "column": 7 - }, - "identifierName": "res" - }, - "name": "res" - }, - "property": { - "type": "Identifier", - "start": 349, - "end": 360, - "loc": { - "start": { - "line": 23, - "column": 8 - }, - "end": { - "line": 23, - "column": 19 - }, - "identifierName": "setEncoding" - }, - "name": "setEncoding" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 361, - "end": 367, - "loc": { - "start": { - "line": 23, - "column": 20 - }, - "end": { - "line": 23, - "column": 26 - } - }, - "extra": { - "rawValue": "utf8", - "raw": "'utf8'" - }, - "value": "utf8" - } - ] - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 379, - "end": 415, - "loc": { - "start": { - "line": 24, - "column": 9 - }, - "end": { - "line": 26, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 385, - "end": 411, - "loc": { - "start": { - "line": 25, - "column": 4 - }, - "end": { - "line": 25, - "column": 30 - } - }, - "expression": { - "type": "CallExpression", - "start": 385, - "end": 410, - "loc": { - "start": { - "line": 25, - "column": 4 - }, - "end": { - "line": 25, - "column": 29 - } - }, - "callee": { - "type": "MemberExpression", - "start": 385, - "end": 400, - "loc": { - "start": { - "line": 25, - "column": 4 - }, - "end": { - "line": 25, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 385, - "end": 388, - "loc": { - "start": { - "line": 25, - "column": 4 - }, - "end": { - "line": 25, - "column": 7 - }, - "identifierName": "res" - }, - "name": "res" - }, - "property": { - "type": "Identifier", - "start": 389, - "end": 400, - "loc": { - "start": { - "line": 25, - "column": 8 - }, - "end": { - "line": 25, - "column": 19 - }, - "identifierName": "setEncoding" - }, - "name": "setEncoding" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 401, - "end": 409, - "loc": { - "start": { - "line": 25, - "column": 20 - }, - "end": { - "line": 25, - "column": 28 - } - }, - "extra": { - "rawValue": "binary", - "raw": "'binary'" - }, - "value": "binary" - } - ] - } - } - ], - "directives": [] - } - }, - { - "type": "ExpressionStatement", - "start": 419, - "end": 472, - "loc": { - "start": { - "line": 28, - "column": 2 - }, - "end": { - "line": 30, - "column": 5 - } - }, - "expression": { - "type": "CallExpression", - "start": 419, - "end": 471, - "loc": { - "start": { - "line": 28, - "column": 2 - }, - "end": { - "line": 30, - "column": 4 - } - }, - "callee": { - "type": "MemberExpression", - "start": 419, - "end": 425, - "loc": { - "start": { - "line": 28, - "column": 2 - }, - "end": { - "line": 28, - "column": 8 - } - }, - "object": { - "type": "Identifier", - "start": 419, - "end": 422, - "loc": { - "start": { - "line": 28, - "column": 2 - }, - "end": { - "line": 28, - "column": 5 - }, - "identifierName": "res" - }, - "name": "res" - }, - "property": { - "type": "Identifier", - "start": 423, - "end": 425, - "loc": { - "start": { - "line": 28, - "column": 6 - }, - "end": { - "line": 28, - "column": 8 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 426, - "end": 432, - "loc": { - "start": { - "line": 28, - "column": 9 - }, - "end": { - "line": 28, - "column": 15 - } - }, - "extra": { - "rawValue": "data", - "raw": "'data'" - }, - "value": "data" - }, - { - "type": "ArrowFunctionExpression", - "start": 434, - "end": 470, - "loc": { - "start": { - "line": 28, - "column": 17 - }, - "end": { - "line": 30, - "column": 3 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 434, - "end": 439, - "loc": { - "start": { - "line": 28, - "column": 17 - }, - "end": { - "line": 28, - "column": 22 - }, - "identifierName": "chunk" - }, - "name": "chunk" - } - ], - "body": { - "type": "BlockStatement", - "start": 443, - "end": 470, - "loc": { - "start": { - "line": 28, - "column": 26 - }, - "end": { - "line": 30, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 449, - "end": 466, - "loc": { - "start": { - "line": 29, - "column": 4 - }, - "end": { - "line": 29, - "column": 21 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 449, - "end": 465, - "loc": { - "start": { - "line": 29, - "column": 4 - }, - "end": { - "line": 29, - "column": 20 - } - }, - "operator": "+=", - "left": { - "type": "Identifier", - "start": 449, - "end": 456, - "loc": { - "start": { - "line": 29, - "column": 4 - }, - "end": { - "line": 29, - "column": 11 - }, - "identifierName": "rawData" - }, - "name": "rawData" - }, - "right": { - "type": "Identifier", - "start": 460, - "end": 465, - "loc": { - "start": { - "line": 29, - "column": 15 - }, - "end": { - "line": 29, - "column": 20 - }, - "identifierName": "chunk" - }, - "name": "chunk" - } - } - } - ], - "directives": [] - } - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 476, - "end": 891, - "loc": { - "start": { - "line": 32, - "column": 2 - }, - "end": { - "line": 49, - "column": 5 - } - }, - "expression": { - "type": "CallExpression", - "start": 476, - "end": 890, - "loc": { - "start": { - "line": 32, - "column": 2 - }, - "end": { - "line": 49, - "column": 4 - } - }, - "callee": { - "type": "MemberExpression", - "start": 476, - "end": 482, - "loc": { - "start": { - "line": 32, - "column": 2 - }, - "end": { - "line": 32, - "column": 8 - } - }, - "object": { - "type": "Identifier", - "start": 476, - "end": 479, - "loc": { - "start": { - "line": 32, - "column": 2 - }, - "end": { - "line": 32, - "column": 5 - }, - "identifierName": "res" - }, - "name": "res" - }, - "property": { - "type": "Identifier", - "start": 480, - "end": 482, - "loc": { - "start": { - "line": 32, - "column": 6 - }, - "end": { - "line": 32, - "column": 8 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 483, - "end": 488, - "loc": { - "start": { - "line": 32, - "column": 9 - }, - "end": { - "line": 32, - "column": 14 - } - }, - "extra": { - "rawValue": "end", - "raw": "'end'" - }, - "value": "end" - }, - { - "type": "ArrowFunctionExpression", - "start": 490, - "end": 889, - "loc": { - "start": { - "line": 32, - "column": 16 - }, - "end": { - "line": 49, - "column": 3 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 496, - "end": 889, - "loc": { - "start": { - "line": 32, - "column": 22 - }, - "end": { - "line": 49, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 502, - "end": 522, - "loc": { - "start": { - "line": 33, - "column": 4 - }, - "end": { - "line": 33, - "column": 24 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 506, - "end": 521, - "loc": { - "start": { - "line": 33, - "column": 8 - }, - "end": { - "line": 33, - "column": 23 - } - }, - "id": { - "type": "Identifier", - "start": 506, - "end": 516, - "loc": { - "start": { - "line": 33, - "column": 8 - }, - "end": { - "line": 33, - "column": 18 - }, - "identifierName": "parsedData" - }, - "name": "parsedData" - }, - "init": { - "type": "StringLiteral", - "start": 519, - "end": 521, - "loc": { - "start": { - "line": 33, - "column": 21 - }, - "end": { - "line": 33, - "column": 23 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 527, - "end": 543, - "loc": { - "start": { - "line": 34, - "column": 4 - }, - "end": { - "line": 34, - "column": 20 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 531, - "end": 542, - "loc": { - "start": { - "line": 34, - "column": 8 - }, - "end": { - "line": 34, - "column": 19 - } - }, - "id": { - "type": "Identifier", - "start": 531, - "end": 537, - "loc": { - "start": { - "line": 34, - "column": 8 - }, - "end": { - "line": 34, - "column": 14 - }, - "identifierName": "errors" - }, - "name": "errors" - }, - "init": { - "type": "StringLiteral", - "start": 540, - "end": 542, - "loc": { - "start": { - "line": 34, - "column": 17 - }, - "end": { - "line": 34, - "column": 19 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - } - ], - "kind": "let" - }, - { - "type": "TryStatement", - "start": 549, - "end": 776, - "loc": { - "start": { - "line": 36, - "column": 4 - }, - "end": { - "line": 44, - "column": 5 - } - }, - "block": { - "type": "BlockStatement", - "start": 553, - "end": 715, - "loc": { - "start": { - "line": 36, - "column": 8 - }, - "end": { - "line": 41, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 561, - "end": 709, - "loc": { - "start": { - "line": 37, - "column": 6 - }, - "end": { - "line": 40, - "column": 7 - } - }, - "test": { - "type": "Identifier", - "start": 565, - "end": 570, - "loc": { - "start": { - "line": 37, - "column": 10 - }, - "end": { - "line": 37, - "column": 15 - }, - "identifierName": "parse" - }, - "name": "parse" - }, - "consequent": { - "type": "BlockStatement", - "start": 572, - "end": 709, - "loc": { - "start": { - "line": 37, - "column": 17 - }, - "end": { - "line": 40, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 582, - "end": 615, - "loc": { - "start": { - "line": 38, - "column": 8 - }, - "end": { - "line": 38, - "column": 41 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 582, - "end": 614, - "loc": { - "start": { - "line": 38, - "column": 8 - }, - "end": { - "line": 38, - "column": 40 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 582, - "end": 592, - "loc": { - "start": { - "line": 38, - "column": 8 - }, - "end": { - "line": 38, - "column": 18 - }, - "identifierName": "parsedData" - }, - "name": "parsedData" - }, - "right": { - "type": "CallExpression", - "start": 595, - "end": 614, - "loc": { - "start": { - "line": 38, - "column": 21 - }, - "end": { - "line": 38, - "column": 40 - } - }, - "callee": { - "type": "MemberExpression", - "start": 595, - "end": 605, - "loc": { - "start": { - "line": 38, - "column": 21 - }, - "end": { - "line": 38, - "column": 31 - } - }, - "object": { - "type": "Identifier", - "start": 595, - "end": 599, - "loc": { - "start": { - "line": 38, - "column": 21 - }, - "end": { - "line": 38, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 600, - "end": 605, - "loc": { - "start": { - "line": 38, - "column": 26 - }, - "end": { - "line": 38, - "column": 31 - }, - "identifierName": "parse" - }, - "name": "parse" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 606, - "end": 613, - "loc": { - "start": { - "line": 38, - "column": 32 - }, - "end": { - "line": 38, - "column": 39 - }, - "identifierName": "rawData" - }, - "name": "rawData" - } - ] - } - } - }, - { - "type": "ExpressionStatement", - "start": 624, - "end": 701, - "loc": { - "start": { - "line": 39, - "column": 8 - }, - "end": { - "line": 39, - "column": 85 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 624, - "end": 700, - "loc": { - "start": { - "line": 39, - "column": 8 - }, - "end": { - "line": 39, - "column": 84 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 624, - "end": 630, - "loc": { - "start": { - "line": 39, - "column": 8 - }, - "end": { - "line": 39, - "column": 14 - }, - "identifierName": "errors" - }, - "name": "errors" - }, - "right": { - "type": "LogicalExpression", - "start": 633, - "end": 700, - "loc": { - "start": { - "line": 39, - "column": 17 - }, - "end": { - "line": 39, - "column": 84 - } - }, - "left": { - "type": "LogicalExpression", - "start": 633, - "end": 692, - "loc": { - "start": { - "line": 39, - "column": 17 - }, - "end": { - "line": 39, - "column": 76 - } - }, - "left": { - "type": "LogicalExpression", - "start": 633, - "end": 670, - "loc": { - "start": { - "line": 39, - "column": 17 - }, - "end": { - "line": 39, - "column": 54 - } - }, - "left": { - "type": "MemberExpression", - "start": 633, - "end": 650, - "loc": { - "start": { - "line": 39, - "column": 17 - }, - "end": { - "line": 39, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 633, - "end": 643, - "loc": { - "start": { - "line": 39, - "column": 17 - }, - "end": { - "line": 39, - "column": 27 - }, - "identifierName": "parsedData" - }, - "name": "parsedData" - }, - "property": { - "type": "Identifier", - "start": 644, - "end": 650, - "loc": { - "start": { - "line": 39, - "column": 28 - }, - "end": { - "line": 39, - "column": 34 - }, - "identifierName": "errors" - }, - "name": "errors" - }, - "computed": false - }, - "operator": "||", - "right": { - "type": "MemberExpression", - "start": 654, - "end": 670, - "loc": { - "start": { - "line": 39, - "column": 38 - }, - "end": { - "line": 39, - "column": 54 - } - }, - "object": { - "type": "Identifier", - "start": 654, - "end": 664, - "loc": { - "start": { - "line": 39, - "column": 38 - }, - "end": { - "line": 39, - "column": 48 - }, - "identifierName": "parsedData" - }, - "name": "parsedData" - }, - "property": { - "type": "Identifier", - "start": 665, - "end": 670, - "loc": { - "start": { - "line": 39, - "column": 49 - }, - "end": { - "line": 39, - "column": 54 - }, - "identifierName": "error" - }, - "name": "error" - }, - "computed": false - } - }, - "operator": "||", - "right": { - "type": "MemberExpression", - "start": 674, - "end": 692, - "loc": { - "start": { - "line": 39, - "column": 58 - }, - "end": { - "line": 39, - "column": 76 - } - }, - "object": { - "type": "Identifier", - "start": 674, - "end": 684, - "loc": { - "start": { - "line": 39, - "column": 58 - }, - "end": { - "line": 39, - "column": 68 - }, - "identifierName": "parsedData" - }, - "name": "parsedData" - }, - "property": { - "type": "Identifier", - "start": 685, - "end": 692, - "loc": { - "start": { - "line": 39, - "column": 69 - }, - "end": { - "line": 39, - "column": 76 - }, - "identifierName": "message" - }, - "name": "message" - }, - "computed": false - } - }, - "operator": "||", - "right": { - "type": "NullLiteral", - "start": 696, - "end": 700, - "loc": { - "start": { - "line": 39, - "column": 80 - }, - "end": { - "line": 39, - "column": 84 - } - } - } - } - } - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - }, - "handler": { - "type": "CatchClause", - "start": 716, - "end": 776, - "loc": { - "start": { - "line": 41, - "column": 6 - }, - "end": { - "line": 44, - "column": 5 - } - }, - "param": { - "type": "Identifier", - "start": 723, - "end": 724, - "loc": { - "start": { - "line": 41, - "column": 13 - }, - "end": { - "line": 41, - "column": 14 - }, - "identifierName": "e" - }, - "name": "e" - }, - "body": { - "type": "BlockStatement", - "start": 726, - "end": 776, - "loc": { - "start": { - "line": 41, - "column": 16 - }, - "end": { - "line": 44, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 734, - "end": 745, - "loc": { - "start": { - "line": 42, - "column": 6 - }, - "end": { - "line": 42, - "column": 17 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 734, - "end": 744, - "loc": { - "start": { - "line": 42, - "column": 6 - }, - "end": { - "line": 42, - "column": 16 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 734, - "end": 740, - "loc": { - "start": { - "line": 42, - "column": 6 - }, - "end": { - "line": 42, - "column": 12 - }, - "identifierName": "errors" - }, - "name": "errors" - }, - "right": { - "type": "Identifier", - "start": 743, - "end": 744, - "loc": { - "start": { - "line": 42, - "column": 15 - }, - "end": { - "line": 42, - "column": 16 - }, - "identifierName": "e" - }, - "name": "e" - } - } - }, - { - "type": "ExpressionStatement", - "start": 752, - "end": 770, - "loc": { - "start": { - "line": 43, - "column": 6 - }, - "end": { - "line": 43, - "column": 24 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 752, - "end": 769, - "loc": { - "start": { - "line": 43, - "column": 6 - }, - "end": { - "line": 43, - "column": 23 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 752, - "end": 762, - "loc": { - "start": { - "line": 43, - "column": 6 - }, - "end": { - "line": 43, - "column": 16 - }, - "identifierName": "parsedData" - }, - "name": "parsedData" - }, - "right": { - "type": "NullLiteral", - "start": 765, - "end": 769, - "loc": { - "start": { - "line": 43, - "column": 19 - }, - "end": { - "line": 43, - "column": 23 - } - } - } - } - } - ], - "directives": [] - } - }, - "guardedHandlers": [], - "finalizer": null - }, - { - "type": "IfStatement", - "start": 782, - "end": 885, - "loc": { - "start": { - "line": 46, - "column": 4 - }, - "end": { - "line": 48, - "column": 5 - } - }, - "test": { - "type": "Identifier", - "start": 786, - "end": 794, - "loc": { - "start": { - "line": 46, - "column": 8 - }, - "end": { - "line": 46, - "column": 16 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "consequent": { - "type": "BlockStatement", - "start": 796, - "end": 885, - "loc": { - "start": { - "line": 46, - "column": 18 - }, - "end": { - "line": 48, - "column": 5 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 804, - "end": 879, - "loc": { - "start": { - "line": 47, - "column": 6 - }, - "end": { - "line": 47, - "column": 81 - } - }, - "argument": { - "type": "CallExpression", - "start": 811, - "end": 878, - "loc": { - "start": { - "line": 47, - "column": 13 - }, - "end": { - "line": 47, - "column": 80 - } - }, - "callee": { - "type": "Identifier", - "start": 811, - "end": 819, - "loc": { - "start": { - "line": 47, - "column": 13 - }, - "end": { - "line": 47, - "column": 21 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 820, - "end": 826, - "loc": { - "start": { - "line": 47, - "column": 22 - }, - "end": { - "line": 47, - "column": 28 - }, - "identifierName": "errors" - }, - "name": "errors" - }, - { - "type": "LogicalExpression", - "start": 828, - "end": 877, - "loc": { - "start": { - "line": 47, - "column": 30 - }, - "end": { - "line": 47, - "column": 79 - } - }, - "left": { - "type": "LogicalExpression", - "start": 828, - "end": 869, - "loc": { - "start": { - "line": 47, - "column": 30 - }, - "end": { - "line": 47, - "column": 71 - } - }, - "left": { - "type": "UnaryExpression", - "start": 828, - "end": 835, - "loc": { - "start": { - "line": 47, - "column": 30 - }, - "end": { - "line": 47, - "column": 37 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 829, - "end": 835, - "loc": { - "start": { - "line": 47, - "column": 31 - }, - "end": { - "line": 47, - "column": 37 - }, - "identifierName": "errors" - }, - "name": "errors" - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "&&", - "right": { - "type": "ConditionalExpression", - "start": 840, - "end": 868, - "loc": { - "start": { - "line": 47, - "column": 42 - }, - "end": { - "line": 47, - "column": 70 - } - }, - "test": { - "type": "Identifier", - "start": 840, - "end": 845, - "loc": { - "start": { - "line": 47, - "column": 42 - }, - "end": { - "line": 47, - "column": 47 - }, - "identifierName": "parse" - }, - "name": "parse" - }, - "consequent": { - "type": "Identifier", - "start": 848, - "end": 858, - "loc": { - "start": { - "line": 47, - "column": 50 - }, - "end": { - "line": 47, - "column": 60 - }, - "identifierName": "parsedData" - }, - "name": "parsedData" - }, - "alternate": { - "type": "Identifier", - "start": 861, - "end": 868, - "loc": { - "start": { - "line": 47, - "column": 63 - }, - "end": { - "line": 47, - "column": 70 - }, - "identifierName": "rawData" - }, - "name": "rawData" - }, - "extra": { - "parenthesized": true, - "parenStart": 839 - } - } - }, - "operator": "||", - "right": { - "type": "NullLiteral", - "start": 873, - "end": 877, - "loc": { - "start": { - "line": 47, - "column": 75 - }, - "end": { - "line": 47, - "column": 79 - } - } - } - } - ] - } - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - } - } - } - } - ], - "kind": "const", - "name": "_", - "leadingComments": [], - "trailingComments": [] - }, - { - "type": "Identifier", - "start": 896, - "end": 1018, - "loc": { - "start": { - "line": 52, - "column": 0 - }, - "end": { - "line": 56, - "column": 2 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 902, - "end": 1017, - "loc": { - "start": { - "line": 52, - "column": 6 - }, - "end": { - "line": 56, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 902, - "end": 914, - "loc": { - "start": { - "line": 52, - "column": 6 - }, - "end": { - "line": 52, - "column": 18 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 917, - "end": 1017, - "loc": { - "start": { - "line": 52, - "column": 21 - }, - "end": { - "line": 56, - "column": 1 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 917, - "end": 925, - "loc": { - "start": { - "line": 52, - "column": 21 - }, - "end": { - "line": 52, - "column": 29 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "ArrowFunctionExpression", - "start": 929, - "end": 1017, - "loc": { - "start": { - "line": 52, - "column": 33 - }, - "end": { - "line": 56, - "column": 1 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 929, - "end": 932, - "loc": { - "start": { - "line": 52, - "column": 33 - }, - "end": { - "line": 52, - "column": 36 - }, - "identifierName": "err" - }, - "name": "err" - } - ], - "body": { - "type": "BlockStatement", - "start": 936, - "end": 1017, - "loc": { - "start": { - "line": 52, - "column": 40 - }, - "end": { - "line": 56, - "column": 1 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 940, - "end": 1015, - "loc": { - "start": { - "line": 53, - "column": 2 - }, - "end": { - "line": 55, - "column": 3 - } - }, - "test": { - "type": "BinaryExpression", - "start": 944, - "end": 974, - "loc": { - "start": { - "line": 53, - "column": 6 - }, - "end": { - "line": 53, - "column": 36 - } - }, - "left": { - "type": "UnaryExpression", - "start": 944, - "end": 959, - "loc": { - "start": { - "line": 53, - "column": 6 - }, - "end": { - "line": 53, - "column": 21 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 951, - "end": 959, - "loc": { - "start": { - "line": 53, - "column": 13 - }, - "end": { - "line": 53, - "column": 21 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 964, - "end": 974, - "loc": { - "start": { - "line": 53, - "column": 26 - }, - "end": { - "line": 53, - "column": 36 - } - }, - "extra": { - "rawValue": "function", - "raw": "'function'" - }, - "value": "function" - } - }, - "consequent": { - "type": "BlockStatement", - "start": 976, - "end": 1015, - "loc": { - "start": { - "line": 53, - "column": 38 - }, - "end": { - "line": 55, - "column": 3 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 982, - "end": 1011, - "loc": { - "start": { - "line": 54, - "column": 4 - }, - "end": { - "line": 54, - "column": 33 - } - }, - "argument": { - "type": "CallExpression", - "start": 989, - "end": 1010, - "loc": { - "start": { - "line": 54, - "column": 11 - }, - "end": { - "line": 54, - "column": 32 - } - }, - "callee": { - "type": "Identifier", - "start": 989, - "end": 997, - "loc": { - "start": { - "line": 54, - "column": 11 - }, - "end": { - "line": 54, - "column": 19 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 998, - "end": 1009, - "loc": { - "start": { - "line": 54, - "column": 20 - }, - "end": { - "line": 54, - "column": 31 - } - }, - "object": { - "type": "Identifier", - "start": 998, - "end": 1001, - "loc": { - "start": { - "line": 54, - "column": 20 - }, - "end": { - "line": 54, - "column": 23 - }, - "identifierName": "err" - }, - "name": "err" - }, - "property": { - "type": "Identifier", - "start": 1002, - "end": 1009, - "loc": { - "start": { - "line": 54, - "column": 24 - }, - "end": { - "line": 54, - "column": 31 - }, - "identifierName": "message" - }, - "name": "message" - }, - "computed": false - } - ] - } - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - } - } - } - } - ], - "kind": "const", - "name": "_", - "leadingComments": [], - "trailingComments": [] - }, - { - "type": "Identifier", - "start": 1020, - "end": 1386, - "loc": { - "start": { - "line": 58, - "column": 0 - }, - "end": { - "line": 76, - "column": 2 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1026, - "end": 1385, - "loc": { - "start": { - "line": 58, - "column": 6 - }, - "end": { - "line": 76, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 1026, - "end": 1045, - "loc": { - "start": { - "line": 58, - "column": 6 - }, - "end": { - "line": 58, - "column": 25 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 1048, - "end": 1385, - "loc": { - "start": { - "line": 58, - "column": 28 - }, - "end": { - "line": 76, - "column": 1 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 1049, - "end": 1187, - "loc": { - "start": { - "line": 58, - "column": 29 - }, - "end": { - "line": 66, - "column": 1 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1053, - "end": 1067, - "loc": { - "start": { - "line": 59, - "column": 2 - }, - "end": { - "line": 59, - "column": 16 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1053, - "end": 1059, - "loc": { - "start": { - "line": 59, - "column": 2 - }, - "end": { - "line": 59, - "column": 8 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "AssignmentPattern", - "start": 1053, - "end": 1067, - "loc": { - "start": { - "line": 59, - "column": 2 - }, - "end": { - "line": 59, - "column": 16 - } - }, - "left": { - "type": "Identifier", - "start": 1053, - "end": 1059, - "loc": { - "start": { - "line": 59, - "column": 2 - }, - "end": { - "line": 59, - "column": 8 - }, - "identifierName": "method" - }, - "name": "method" - }, - "right": { - "type": "StringLiteral", - "start": 1062, - "end": 1067, - "loc": { - "start": { - "line": 59, - "column": 11 - }, - "end": { - "line": 59, - "column": 16 - } - }, - "extra": { - "rawValue": "GET", - "raw": "'GET'" - }, - "value": "GET" - } - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1071, - "end": 1081, - "loc": { - "start": { - "line": 60, - "column": 2 - }, - "end": { - "line": 60, - "column": 12 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1071, - "end": 1075, - "loc": { - "start": { - "line": 60, - "column": 2 - }, - "end": { - "line": 60, - "column": 6 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "AssignmentPattern", - "start": 1071, - "end": 1081, - "loc": { - "start": { - "line": 60, - "column": 2 - }, - "end": { - "line": 60, - "column": 12 - } - }, - "left": { - "type": "Identifier", - "start": 1071, - "end": 1075, - "loc": { - "start": { - "line": 60, - "column": 2 - }, - "end": { - "line": 60, - "column": 6 - }, - "identifierName": "path" - }, - "name": "path" - }, - "right": { - "type": "StringLiteral", - "start": 1078, - "end": 1081, - "loc": { - "start": { - "line": 60, - "column": 9 - }, - "end": { - "line": 60, - "column": 12 - } - }, - "extra": { - "rawValue": "/", - "raw": "'/'" - }, - "value": "/" - } - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1085, - "end": 1168, - "loc": { - "start": { - "line": 61, - "column": 2 - }, - "end": { - "line": 64, - "column": 8 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1085, - "end": 1098, - "loc": { - "start": { - "line": 61, - "column": 2 - }, - "end": { - "line": 61, - "column": 15 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "AssignmentPattern", - "start": 1100, - "end": 1168, - "loc": { - "start": { - "line": 61, - "column": 17 - }, - "end": { - "line": 64, - "column": 8 - } - }, - "left": { - "type": "ObjectPattern", - "start": 1100, - "end": 1163, - "loc": { - "start": { - "line": 61, - "column": 17 - }, - "end": { - "line": 64, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1106, - "end": 1120, - "loc": { - "start": { - "line": 62, - "column": 4 - }, - "end": { - "line": 62, - "column": 18 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1106, - "end": 1110, - "loc": { - "start": { - "line": 62, - "column": 4 - }, - "end": { - "line": 62, - "column": 8 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "AssignmentPattern", - "start": 1106, - "end": 1120, - "loc": { - "start": { - "line": 62, - "column": 4 - }, - "end": { - "line": 62, - "column": 18 - } - }, - "left": { - "type": "Identifier", - "start": 1106, - "end": 1110, - "loc": { - "start": { - "line": 62, - "column": 4 - }, - "end": { - "line": 62, - "column": 8 - }, - "identifierName": "type" - }, - "name": "type" - }, - "right": { - "type": "StringLiteral", - "start": 1113, - "end": 1120, - "loc": { - "start": { - "line": 62, - "column": 11 - }, - "end": { - "line": 62, - "column": 18 - } - }, - "extra": { - "rawValue": "Basic", - "raw": "'Basic'" - }, - "value": "Basic" - } - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1126, - "end": 1158, - "loc": { - "start": { - "line": 63, - "column": 4 - }, - "end": { - "line": 63, - "column": 36 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1126, - "end": 1131, - "loc": { - "start": { - "line": 63, - "column": 4 - }, - "end": { - "line": 63, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "AssignmentPattern", - "start": 1126, - "end": 1158, - "loc": { - "start": { - "line": 63, - "column": 4 - }, - "end": { - "line": 63, - "column": 36 - } - }, - "left": { - "type": "Identifier", - "start": 1126, - "end": 1131, - "loc": { - "start": { - "line": 63, - "column": 4 - }, - "end": { - "line": 63, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "right": { - "type": "MemberExpression", - "start": 1134, - "end": 1158, - "loc": { - "start": { - "line": 63, - "column": 12 - }, - "end": { - "line": 63, - "column": 36 - } - }, - "object": { - "type": "MemberExpression", - "start": 1134, - "end": 1146, - "loc": { - "start": { - "line": 63, - "column": 12 - }, - "end": { - "line": 63, - "column": 24 - } - }, - "object": { - "type": "Identifier", - "start": 1134, - "end": 1142, - "loc": { - "start": { - "line": 63, - "column": 12 - }, - "end": { - "line": 63, - "column": 20 - }, - "identifierName": "settings" - }, - "name": "settings" - }, - "property": { - "type": "Identifier", - "start": 1143, - "end": 1146, - "loc": { - "start": { - "line": 63, - "column": 21 - }, - "end": { - "line": 63, - "column": 24 - }, - "identifierName": "api" - }, - "name": "api" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 1147, - "end": 1158, - "loc": { - "start": { - "line": 63, - "column": 25 - }, - "end": { - "line": 63, - "column": 36 - }, - "identifierName": "credentials" - }, - "name": "credentials" - }, - "computed": false - } - }, - "extra": { - "shorthand": true - } - } - ] - }, - "right": { - "type": "ObjectExpression", - "start": 1166, - "end": 1168, - "loc": { - "start": { - "line": 64, - "column": 6 - }, - "end": { - "line": 64, - "column": 8 - } - }, - "properties": [] - } - } - }, - { - "type": "ObjectProperty", - "start": 1172, - "end": 1184, - "loc": { - "start": { - "line": 65, - "column": 2 - }, - "end": { - "line": 65, - "column": 14 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1172, - "end": 1179, - "loc": { - "start": { - "line": 65, - "column": 2 - }, - "end": { - "line": 65, - "column": 9 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "AssignmentPattern", - "start": 1172, - "end": 1184, - "loc": { - "start": { - "line": 65, - "column": 2 - }, - "end": { - "line": 65, - "column": 14 - } - }, - "left": { - "type": "Identifier", - "start": 1172, - "end": 1179, - "loc": { - "start": { - "line": 65, - "column": 2 - }, - "end": { - "line": 65, - "column": 9 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "right": { - "type": "ObjectExpression", - "start": 1182, - "end": 1184, - "loc": { - "start": { - "line": 65, - "column": 12 - }, - "end": { - "line": 65, - "column": 14 - } - }, - "properties": [] - } - }, - "extra": { - "shorthand": true - } - } - ] - } - ], - "body": { - "type": "BlockStatement", - "start": 1192, - "end": 1385, - "loc": { - "start": { - "line": 66, - "column": 6 - }, - "end": { - "line": 76, - "column": 1 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 1196, - "end": 1311, - "loc": { - "start": { - "line": 67, - "column": 2 - }, - "end": { - "line": 73, - "column": 4 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1202, - "end": 1310, - "loc": { - "start": { - "line": 67, - "column": 8 - }, - "end": { - "line": 73, - "column": 3 - } - }, - "id": { - "type": "Identifier", - "start": 1202, - "end": 1209, - "loc": { - "start": { - "line": 67, - "column": 8 - }, - "end": { - "line": 67, - "column": 15 - }, - "identifierName": "options" - }, - "name": "options" - }, - "init": { - "type": "ObjectExpression", - "start": 1212, - "end": 1310, - "loc": { - "start": { - "line": 67, - "column": 18 - }, - "end": { - "line": 73, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1218, - "end": 1241, - "loc": { - "start": { - "line": 68, - "column": 4 - }, - "end": { - "line": 68, - "column": 27 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1218, - "end": 1222, - "loc": { - "start": { - "line": 68, - "column": 4 - }, - "end": { - "line": 68, - "column": 8 - }, - "identifierName": "host" - }, - "name": "host" - }, - "value": { - "type": "MemberExpression", - "start": 1224, - "end": 1241, - "loc": { - "start": { - "line": 68, - "column": 10 - }, - "end": { - "line": 68, - "column": 27 - } - }, - "object": { - "type": "MemberExpression", - "start": 1224, - "end": 1236, - "loc": { - "start": { - "line": 68, - "column": 10 - }, - "end": { - "line": 68, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 1224, - "end": 1232, - "loc": { - "start": { - "line": 68, - "column": 10 - }, - "end": { - "line": 68, - "column": 18 - }, - "identifierName": "settings" - }, - "name": "settings" - }, - "property": { - "type": "Identifier", - "start": 1233, - "end": 1236, - "loc": { - "start": { - "line": 68, - "column": 19 - }, - "end": { - "line": 68, - "column": 22 - }, - "identifierName": "api" - }, - "name": "api" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 1237, - "end": 1241, - "loc": { - "start": { - "line": 68, - "column": 23 - }, - "end": { - "line": 68, - "column": 27 - }, - "identifierName": "host" - }, - "name": "host" - }, - "computed": false - } - }, - { - "type": "ObjectProperty", - "start": 1247, - "end": 1270, - "loc": { - "start": { - "line": 69, - "column": 4 - }, - "end": { - "line": 69, - "column": 27 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1247, - "end": 1251, - "loc": { - "start": { - "line": 69, - "column": 4 - }, - "end": { - "line": 69, - "column": 8 - }, - "identifierName": "port" - }, - "name": "port" - }, - "value": { - "type": "MemberExpression", - "start": 1253, - "end": 1270, - "loc": { - "start": { - "line": 69, - "column": 10 - }, - "end": { - "line": 69, - "column": 27 - } - }, - "object": { - "type": "MemberExpression", - "start": 1253, - "end": 1265, - "loc": { - "start": { - "line": 69, - "column": 10 - }, - "end": { - "line": 69, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 1253, - "end": 1261, - "loc": { - "start": { - "line": 69, - "column": 10 - }, - "end": { - "line": 69, - "column": 18 - }, - "identifierName": "settings" - }, - "name": "settings" - }, - "property": { - "type": "Identifier", - "start": 1262, - "end": 1265, - "loc": { - "start": { - "line": 69, - "column": 19 - }, - "end": { - "line": 69, - "column": 22 - }, - "identifierName": "api" - }, - "name": "api" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 1266, - "end": 1270, - "loc": { - "start": { - "line": 69, - "column": 23 - }, - "end": { - "line": 69, - "column": 27 - }, - "identifierName": "port" - }, - "name": "port" - }, - "computed": false - } - }, - { - "type": "ObjectProperty", - "start": 1276, - "end": 1282, - "loc": { - "start": { - "line": 70, - "column": 4 - }, - "end": { - "line": 70, - "column": 10 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1276, - "end": 1282, - "loc": { - "start": { - "line": 70, - "column": 4 - }, - "end": { - "line": 70, - "column": 10 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "Identifier", - "start": 1276, - "end": 1282, - "loc": { - "start": { - "line": 70, - "column": 4 - }, - "end": { - "line": 70, - "column": 10 - }, - "identifierName": "method" - }, - "name": "method" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1288, - "end": 1292, - "loc": { - "start": { - "line": 71, - "column": 4 - }, - "end": { - "line": 71, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1288, - "end": 1292, - "loc": { - "start": { - "line": 71, - "column": 4 - }, - "end": { - "line": 71, - "column": 8 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "Identifier", - "start": 1288, - "end": 1292, - "loc": { - "start": { - "line": 71, - "column": 4 - }, - "end": { - "line": 71, - "column": 8 - }, - "identifierName": "path" - }, - "name": "path" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1298, - "end": 1305, - "loc": { - "start": { - "line": 72, - "column": 4 - }, - "end": { - "line": 72, - "column": 11 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1298, - "end": 1305, - "loc": { - "start": { - "line": 72, - "column": 4 - }, - "end": { - "line": 72, - "column": 11 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "Identifier", - "start": 1298, - "end": 1305, - "loc": { - "start": { - "line": 72, - "column": 4 - }, - "end": { - "line": 72, - "column": 11 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 1314, - "end": 1365, - "loc": { - "start": { - "line": 74, - "column": 2 - }, - "end": { - "line": 74, - "column": 53 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 1314, - "end": 1364, - "loc": { - "start": { - "line": 74, - "column": 2 - }, - "end": { - "line": 74, - "column": 52 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 1314, - "end": 1343, - "loc": { - "start": { - "line": 74, - "column": 2 - }, - "end": { - "line": 74, - "column": 31 - } - }, - "object": { - "type": "MemberExpression", - "start": 1314, - "end": 1329, - "loc": { - "start": { - "line": 74, - "column": 2 - }, - "end": { - "line": 74, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 1314, - "end": 1321, - "loc": { - "start": { - "line": 74, - "column": 2 - }, - "end": { - "line": 74, - "column": 9 - }, - "identifierName": "options" - }, - "name": "options" - }, - "property": { - "type": "Identifier", - "start": 1322, - "end": 1329, - "loc": { - "start": { - "line": 74, - "column": 10 - }, - "end": { - "line": 74, - "column": 17 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 1330, - "end": 1343, - "loc": { - "start": { - "line": 74, - "column": 18 - }, - "end": { - "line": 74, - "column": 31 - }, - "identifierName": "Authorization" - }, - "name": "Authorization" - }, - "computed": false - }, - "right": { - "type": "TemplateLiteral", - "start": 1346, - "end": 1364, - "loc": { - "start": { - "line": 74, - "column": 34 - }, - "end": { - "line": 74, - "column": 52 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 1349, - "end": 1353, - "loc": { - "start": { - "line": 74, - "column": 37 - }, - "end": { - "line": 74, - "column": 41 - }, - "identifierName": "type" - }, - "name": "type" - }, - { - "type": "Identifier", - "start": 1357, - "end": 1362, - "loc": { - "start": { - "line": 74, - "column": 45 - }, - "end": { - "line": 74, - "column": 50 - }, - "identifierName": "token" - }, - "name": "token" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 1347, - "end": 1347, - "loc": { - "start": { - "line": 74, - "column": 35 - }, - "end": { - "line": 74, - "column": 35 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 1354, - "end": 1355, - "loc": { - "start": { - "line": 74, - "column": 42 - }, - "end": { - "line": 74, - "column": 43 - } - }, - "value": { - "raw": " ", - "cooked": " " - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 1363, - "end": 1363, - "loc": { - "start": { - "line": 74, - "column": 51 - }, - "end": { - "line": 74, - "column": 51 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - } - }, - { - "type": "ReturnStatement", - "start": 1368, - "end": 1383, - "loc": { - "start": { - "line": 75, - "column": 2 - }, - "end": { - "line": 75, - "column": 17 - } - }, - "argument": { - "type": "Identifier", - "start": 1375, - "end": 1382, - "loc": { - "start": { - "line": 75, - "column": 9 - }, - "end": { - "line": 75, - "column": 16 - }, - "identifierName": "options" - }, - "name": "options" - } - } - ], - "directives": [] - } - } - } - ], - "kind": "const", - "name": "_", - "leadingComments": [], - "trailingComments": [] - }, - { - "type": "Identifier", - "start": 1388, - "end": 1468, - "loc": { - "start": { - "line": 78, - "column": 0 - }, - "end": { - "line": 80, - "column": 2 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1394, - "end": 1467, - "loc": { - "start": { - "line": 78, - "column": 6 - }, - "end": { - "line": 80, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 1394, - "end": 1414, - "loc": { - "start": { - "line": 78, - "column": 6 - }, - "end": { - "line": 78, - "column": 26 - }, - "identifierName": "setProductionApiHost" - }, - "name": "setProductionApiHost" - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 1417, - "end": 1467, - "loc": { - "start": { - "line": 78, - "column": 29 - }, - "end": { - "line": 80, - "column": 1 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 1423, - "end": 1467, - "loc": { - "start": { - "line": 78, - "column": 35 - }, - "end": { - "line": 80, - "column": 1 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1427, - "end": 1465, - "loc": { - "start": { - "line": 79, - "column": 2 - }, - "end": { - "line": 79, - "column": 40 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 1427, - "end": 1464, - "loc": { - "start": { - "line": 79, - "column": 2 - }, - "end": { - "line": 79, - "column": 39 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 1427, - "end": 1444, - "loc": { - "start": { - "line": 79, - "column": 2 - }, - "end": { - "line": 79, - "column": 19 - } - }, - "object": { - "type": "MemberExpression", - "start": 1427, - "end": 1439, - "loc": { - "start": { - "line": 79, - "column": 2 - }, - "end": { - "line": 79, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 1427, - "end": 1435, - "loc": { - "start": { - "line": 79, - "column": 2 - }, - "end": { - "line": 79, - "column": 10 - }, - "identifierName": "settings" - }, - "name": "settings" - }, - "property": { - "type": "Identifier", - "start": 1436, - "end": 1439, - "loc": { - "start": { - "line": 79, - "column": 11 - }, - "end": { - "line": 79, - "column": 14 - }, - "identifierName": "api" - }, - "name": "api" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 1440, - "end": 1444, - "loc": { - "start": { - "line": 79, - "column": 15 - }, - "end": { - "line": 79, - "column": 19 - }, - "identifierName": "host" - }, - "name": "host" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 1447, - "end": 1464, - "loc": { - "start": { - "line": 79, - "column": 22 - }, - "end": { - "line": 79, - "column": 39 - } - }, - "extra": { - "rawValue": "api.signnow.com", - "raw": "'api.signnow.com'" - }, - "value": "api.signnow.com" - } - } - } - ], - "directives": [] - } - } - } - ], - "kind": "const", - "name": "_", - "leadingComments": [], - "trailingComments": [] - }, - { - "type": "Identifier", - "start": 1470, - "end": 1554, - "loc": { - "start": { - "line": 82, - "column": 0 - }, - "end": { - "line": 84, - "column": 2 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1476, - "end": 1553, - "loc": { - "start": { - "line": 82, - "column": 6 - }, - "end": { - "line": 84, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 1476, - "end": 1490, - "loc": { - "start": { - "line": 82, - "column": 6 - }, - "end": { - "line": 82, - "column": 20 - }, - "identifierName": "setCredentials" - }, - "name": "setCredentials" - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 1493, - "end": 1553, - "loc": { - "start": { - "line": 82, - "column": 23 - }, - "end": { - "line": 84, - "column": 1 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1493, - "end": 1504, - "loc": { - "start": { - "line": 82, - "column": 23 - }, - "end": { - "line": 82, - "column": 34 - }, - "identifierName": "credentials" - }, - "name": "credentials" - } - ], - "body": { - "type": "BlockStatement", - "start": 1508, - "end": 1553, - "loc": { - "start": { - "line": 82, - "column": 38 - }, - "end": { - "line": 84, - "column": 1 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1512, - "end": 1551, - "loc": { - "start": { - "line": 83, - "column": 2 - }, - "end": { - "line": 83, - "column": 41 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 1512, - "end": 1550, - "loc": { - "start": { - "line": 83, - "column": 2 - }, - "end": { - "line": 83, - "column": 40 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 1512, - "end": 1536, - "loc": { - "start": { - "line": 83, - "column": 2 - }, - "end": { - "line": 83, - "column": 26 - } - }, - "object": { - "type": "MemberExpression", - "start": 1512, - "end": 1524, - "loc": { - "start": { - "line": 83, - "column": 2 - }, - "end": { - "line": 83, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 1512, - "end": 1520, - "loc": { - "start": { - "line": 83, - "column": 2 - }, - "end": { - "line": 83, - "column": 10 - }, - "identifierName": "settings" - }, - "name": "settings" - }, - "property": { - "type": "Identifier", - "start": 1521, - "end": 1524, - "loc": { - "start": { - "line": 83, - "column": 11 - }, - "end": { - "line": 83, - "column": 14 - }, - "identifierName": "api" - }, - "name": "api" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 1525, - "end": 1536, - "loc": { - "start": { - "line": 83, - "column": 15 - }, - "end": { - "line": 83, - "column": 26 - }, - "identifierName": "credentials" - }, - "name": "credentials" - }, - "computed": false - }, - "right": { - "type": "Identifier", - "start": 1539, - "end": 1550, - "loc": { - "start": { - "line": 83, - "column": 29 - }, - "end": { - "line": 83, - "column": 40 - }, - "identifierName": "credentials" - }, - "name": "credentials" - } - } - } - ], - "directives": [] - } - } - } - ], - "kind": "const", - "name": "_", - "leadingComments": [], - "trailingComments": [] - }, - { - "type": "Identifier", - "start": 1556, - "end": 1641, - "loc": { - "start": { - "line": 86, - "column": 0 - }, - "end": { - "line": 86, - "column": 85 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1562, - "end": 1640, - "loc": { - "start": { - "line": 86, - "column": 6 - }, - "end": { - "line": 86, - "column": 84 - } - }, - "id": { - "type": "Identifier", - "start": 1562, - "end": 1574, - "loc": { - "start": { - "line": 86, - "column": 6 - }, - "end": { - "line": 86, - "column": 18 - }, - "identifierName": "getUserAgent" - }, - "name": "getUserAgent" - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 1577, - "end": 1640, - "loc": { - "start": { - "line": 86, - "column": 21 - }, - "end": { - "line": 86, - "column": 84 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [], - "body": { - "type": "TemplateLiteral", - "start": 1583, - "end": 1640, - "loc": { - "start": { - "line": 86, - "column": 27 - }, - "end": { - "line": 86, - "column": 84 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 1586, - "end": 1590, - "loc": { - "start": { - "line": 86, - "column": 30 - }, - "end": { - "line": 86, - "column": 34 - }, - "identifierName": "name" - }, - "name": "name" - }, - { - "type": "Identifier", - "start": 1597, - "end": 1604, - "loc": { - "start": { - "line": 86, - "column": 41 - }, - "end": { - "line": 86, - "column": 48 - }, - "identifierName": "version" - }, - "name": "version" - }, - { - "type": "Identifier", - "start": 1627, - "end": 1638, - "loc": { - "start": { - "line": 86, - "column": 71 - }, - "end": { - "line": 86, - "column": 82 - }, - "identifierName": "description" - }, - "name": "description" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 1584, - "end": 1584, - "loc": { - "start": { - "line": 86, - "column": 28 - }, - "end": { - "line": 86, - "column": 28 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 1591, - "end": 1595, - "loc": { - "start": { - "line": 86, - "column": 35 - }, - "end": { - "line": 86, - "column": 39 - } - }, - "value": { - "raw": " / v", - "cooked": " / v" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 1605, - "end": 1625, - "loc": { - "start": { - "line": 86, - "column": 49 - }, - "end": { - "line": 86, - "column": 69 - } - }, - "value": { - "raw": ", platform node.js, ", - "cooked": ", platform node.js, " - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 1639, - "end": 1639, - "loc": { - "start": { - "line": 86, - "column": 83 - }, - "end": { - "line": 86, - "column": 83 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - } - } - ], - "kind": "const", - "name": "_", - "leadingComments": [], - "trailingComments": [] - }, - { - "type": "ExportNamedDeclaration", - "start": 1643, - "end": 1768, - "loc": { - "start": { - "line": 88, - "column": 0 - }, - "end": { - "line": 93, - "column": 18 - } - }, - "declaration": null, - "specifiers": [ - { - "type": "ExportSpecifier", - "start": 1652, - "end": 1667, - "loc": { - "start": { - "line": 88, - "column": 9 - }, - "end": { - "line": 88, - "column": 24 - } - }, - "local": { - "type": "Identifier", - "start": 1652, - "end": 1667, - "loc": { - "start": { - "line": 88, - "column": 9 - }, - "end": { - "line": 88, - "column": 24 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "exported": { - "type": "Identifier", - "start": 1652, - "end": 1667, - "loc": { - "start": { - "line": 88, - "column": 9 - }, - "end": { - "line": 88, - "column": 24 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - } - }, - { - "type": "ExportSpecifier", - "start": 1671, - "end": 1683, - "loc": { - "start": { - "line": 89, - "column": 2 - }, - "end": { - "line": 89, - "column": 14 - } - }, - "local": { - "type": "Identifier", - "start": 1671, - "end": 1683, - "loc": { - "start": { - "line": 89, - "column": 2 - }, - "end": { - "line": 89, - "column": 14 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "exported": { - "type": "Identifier", - "start": 1671, - "end": 1683, - "loc": { - "start": { - "line": 89, - "column": 2 - }, - "end": { - "line": 89, - "column": 14 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - } - }, - { - "type": "ExportSpecifier", - "start": 1687, - "end": 1706, - "loc": { - "start": { - "line": 90, - "column": 2 - }, - "end": { - "line": 90, - "column": 21 - } - }, - "local": { - "type": "Identifier", - "start": 1687, - "end": 1706, - "loc": { - "start": { - "line": 90, - "column": 2 - }, - "end": { - "line": 90, - "column": 21 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "exported": { - "type": "Identifier", - "start": 1687, - "end": 1706, - "loc": { - "start": { - "line": 90, - "column": 2 - }, - "end": { - "line": 90, - "column": 21 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - } - }, - { - "type": "ExportSpecifier", - "start": 1710, - "end": 1730, - "loc": { - "start": { - "line": 91, - "column": 2 - }, - "end": { - "line": 91, - "column": 22 - } - }, - "local": { - "type": "Identifier", - "start": 1710, - "end": 1730, - "loc": { - "start": { - "line": 91, - "column": 2 - }, - "end": { - "line": 91, - "column": 22 - }, - "identifierName": "setProductionApiHost" - }, - "name": "setProductionApiHost" - }, - "exported": { - "type": "Identifier", - "start": 1710, - "end": 1730, - "loc": { - "start": { - "line": 91, - "column": 2 - }, - "end": { - "line": 91, - "column": 22 - }, - "identifierName": "setProductionApiHost" - }, - "name": "setProductionApiHost" - } - }, - { - "type": "ExportSpecifier", - "start": 1734, - "end": 1748, - "loc": { - "start": { - "line": 92, - "column": 2 - }, - "end": { - "line": 92, - "column": 16 - } - }, - "local": { - "type": "Identifier", - "start": 1734, - "end": 1748, - "loc": { - "start": { - "line": 92, - "column": 2 - }, - "end": { - "line": 92, - "column": 16 - }, - "identifierName": "setCredentials" - }, - "name": "setCredentials" - }, - "exported": { - "type": "Identifier", - "start": 1734, - "end": 1748, - "loc": { - "start": { - "line": 92, - "column": 2 - }, - "end": { - "line": 92, - "column": 16 - }, - "identifierName": "setCredentials" - }, - "name": "setCredentials" - } - }, - { - "type": "ExportSpecifier", - "start": 1752, - "end": 1764, - "loc": { - "start": { - "line": 93, - "column": 2 - }, - "end": { - "line": 93, - "column": 14 - } - }, - "local": { - "type": "Identifier", - "start": 1752, - "end": 1764, - "loc": { - "start": { - "line": 93, - "column": 2 - }, - "end": { - "line": 93, - "column": 14 - }, - "identifierName": "getUserAgent" - }, - "name": "getUserAgent" - }, - "exported": { - "type": "Identifier", - "start": 1752, - "end": 1764, - "loc": { - "start": { - "line": 93, - "column": 2 - }, - "end": { - "line": 93, - "column": 14 - }, - "identifierName": "getUserAgent" - }, - "name": "getUserAgent" - } - } - ], - "source": null - }, - { - "type": "ExportNamedDeclaration", - "start": 1643, - "end": 1768, - "loc": { - "start": { - "line": 88, - "column": 0 - }, - "end": { - "line": 93, - "column": 18 - } - }, - "declaration": { - "type": "VariableDeclaration", - "start": 235, - "end": 894, - "loc": { - "start": { - "line": 19, - "column": 0 - }, - "end": { - "line": 50, - "column": 2 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 241, - "end": 893, - "loc": { - "start": { - "line": 19, - "column": 6 - }, - "end": { - "line": 50, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 241, - "end": 256, - "loc": { - "start": { - "line": 19, - "column": 6 - }, - "end": { - "line": 19, - "column": 21 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 259, - "end": 893, - "loc": { - "start": { - "line": 19, - "column": 24 - }, - "end": { - "line": 50, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 241, - "end": 256, - "loc": { - "start": { - "line": 19, - "column": 6 - }, - "end": { - "line": 19, - "column": 21 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 260, - "end": 268, - "loc": { - "start": { - "line": 19, - "column": 25 - }, - "end": { - "line": 19, - "column": 33 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - { - "type": "AssignmentPattern", - "start": 270, - "end": 291, - "loc": { - "start": { - "line": 19, - "column": 35 - }, - "end": { - "line": 19, - "column": 56 - } - }, - "left": { - "type": "ObjectPattern", - "start": 270, - "end": 286, - "loc": { - "start": { - "line": 19, - "column": 35 - }, - "end": { - "line": 19, - "column": 51 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 272, - "end": 284, - "loc": { - "start": { - "line": 19, - "column": 37 - }, - "end": { - "line": 19, - "column": 49 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 272, - "end": 277, - "loc": { - "start": { - "line": 19, - "column": 37 - }, - "end": { - "line": 19, - "column": 42 - }, - "identifierName": "parse" - }, - "name": "parse" - }, - "value": { - "type": "AssignmentPattern", - "start": 272, - "end": 284, - "loc": { - "start": { - "line": 19, - "column": 37 - }, - "end": { - "line": 19, - "column": 49 - } - }, - "left": { - "type": "Identifier", - "start": 272, - "end": 277, - "loc": { - "start": { - "line": 19, - "column": 37 - }, - "end": { - "line": 19, - "column": 42 - }, - "identifierName": "parse" - }, - "name": "parse" - }, - "right": { - "type": "BooleanLiteral", - "start": 280, - "end": 284, - "loc": { - "start": { - "line": 19, - "column": 45 - }, - "end": { - "line": 19, - "column": 49 - } - }, - "value": true - } - }, - "extra": { - "shorthand": true - } - } - ] - }, - "right": { - "type": "ObjectExpression", - "start": 289, - "end": 291, - "loc": { - "start": { - "line": 19, - "column": 54 - }, - "end": { - "line": 19, - "column": 56 - } - }, - "properties": [] - } - } - ], - "body": { - "type": "ArrowFunctionExpression", - "start": 296, - "end": 893, - "loc": { - "start": { - "line": 19, - "column": 61 - }, - "end": { - "line": 50, - "column": 1 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 296, - "end": 299, - "loc": { - "start": { - "line": 19, - "column": 61 - }, - "end": { - "line": 19, - "column": 64 - }, - "identifierName": "res" - }, - "name": "res" - } - ], - "body": { - "type": "BlockStatement", - "start": 303, - "end": 893, - "loc": { - "start": { - "line": 19, - "column": 68 - }, - "end": { - "line": 50, - "column": 1 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 307, - "end": 324, - "loc": { - "start": { - "line": 20, - "column": 2 - }, - "end": { - "line": 20, - "column": 19 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 311, - "end": 323, - "loc": { - "start": { - "line": 20, - "column": 6 - }, - "end": { - "line": 20, - "column": 18 - } - }, - "id": { - "type": "Identifier", - "start": 311, - "end": 318, - "loc": { - "start": { - "line": 20, - "column": 6 - }, - "end": { - "line": 20, - "column": 13 - }, - "identifierName": "rawData" - }, - "name": "rawData" - }, - "init": { - "type": "StringLiteral", - "start": 321, - "end": 323, - "loc": { - "start": { - "line": 20, - "column": 16 - }, - "end": { - "line": 20, - "column": 18 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - } - ], - "kind": "let" - }, - { - "type": "IfStatement", - "start": 328, - "end": 415, - "loc": { - "start": { - "line": 22, - "column": 2 - }, - "end": { - "line": 26, - "column": 3 - } - }, - "test": { - "type": "Identifier", - "start": 332, - "end": 337, - "loc": { - "start": { - "line": 22, - "column": 6 - }, - "end": { - "line": 22, - "column": 11 - }, - "identifierName": "parse" - }, - "name": "parse" - }, - "consequent": { - "type": "BlockStatement", - "start": 339, - "end": 373, - "loc": { - "start": { - "line": 22, - "column": 13 - }, - "end": { - "line": 24, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 345, - "end": 369, - "loc": { - "start": { - "line": 23, - "column": 4 - }, - "end": { - "line": 23, - "column": 28 - } - }, - "expression": { - "type": "CallExpression", - "start": 345, - "end": 368, - "loc": { - "start": { - "line": 23, - "column": 4 - }, - "end": { - "line": 23, - "column": 27 - } - }, - "callee": { - "type": "MemberExpression", - "start": 345, - "end": 360, - "loc": { - "start": { - "line": 23, - "column": 4 - }, - "end": { - "line": 23, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 345, - "end": 348, - "loc": { - "start": { - "line": 23, - "column": 4 - }, - "end": { - "line": 23, - "column": 7 - }, - "identifierName": "res" - }, - "name": "res" - }, - "property": { - "type": "Identifier", - "start": 349, - "end": 360, - "loc": { - "start": { - "line": 23, - "column": 8 - }, - "end": { - "line": 23, - "column": 19 - }, - "identifierName": "setEncoding" - }, - "name": "setEncoding" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 361, - "end": 367, - "loc": { - "start": { - "line": 23, - "column": 20 - }, - "end": { - "line": 23, - "column": 26 - } - }, - "extra": { - "rawValue": "utf8", - "raw": "'utf8'" - }, - "value": "utf8" - } - ] - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 379, - "end": 415, - "loc": { - "start": { - "line": 24, - "column": 9 - }, - "end": { - "line": 26, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 385, - "end": 411, - "loc": { - "start": { - "line": 25, - "column": 4 - }, - "end": { - "line": 25, - "column": 30 - } - }, - "expression": { - "type": "CallExpression", - "start": 385, - "end": 410, - "loc": { - "start": { - "line": 25, - "column": 4 - }, - "end": { - "line": 25, - "column": 29 - } - }, - "callee": { - "type": "MemberExpression", - "start": 385, - "end": 400, - "loc": { - "start": { - "line": 25, - "column": 4 - }, - "end": { - "line": 25, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 385, - "end": 388, - "loc": { - "start": { - "line": 25, - "column": 4 - }, - "end": { - "line": 25, - "column": 7 - }, - "identifierName": "res" - }, - "name": "res" - }, - "property": { - "type": "Identifier", - "start": 389, - "end": 400, - "loc": { - "start": { - "line": 25, - "column": 8 - }, - "end": { - "line": 25, - "column": 19 - }, - "identifierName": "setEncoding" - }, - "name": "setEncoding" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 401, - "end": 409, - "loc": { - "start": { - "line": 25, - "column": 20 - }, - "end": { - "line": 25, - "column": 28 - } - }, - "extra": { - "rawValue": "binary", - "raw": "'binary'" - }, - "value": "binary" - } - ] - } - } - ], - "directives": [] - } - }, - { - "type": "ExpressionStatement", - "start": 419, - "end": 472, - "loc": { - "start": { - "line": 28, - "column": 2 - }, - "end": { - "line": 30, - "column": 5 - } - }, - "expression": { - "type": "CallExpression", - "start": 419, - "end": 471, - "loc": { - "start": { - "line": 28, - "column": 2 - }, - "end": { - "line": 30, - "column": 4 - } - }, - "callee": { - "type": "MemberExpression", - "start": 419, - "end": 425, - "loc": { - "start": { - "line": 28, - "column": 2 - }, - "end": { - "line": 28, - "column": 8 - } - }, - "object": { - "type": "Identifier", - "start": 419, - "end": 422, - "loc": { - "start": { - "line": 28, - "column": 2 - }, - "end": { - "line": 28, - "column": 5 - }, - "identifierName": "res" - }, - "name": "res" - }, - "property": { - "type": "Identifier", - "start": 423, - "end": 425, - "loc": { - "start": { - "line": 28, - "column": 6 - }, - "end": { - "line": 28, - "column": 8 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 426, - "end": 432, - "loc": { - "start": { - "line": 28, - "column": 9 - }, - "end": { - "line": 28, - "column": 15 - } - }, - "extra": { - "rawValue": "data", - "raw": "'data'" - }, - "value": "data" - }, - { - "type": "ArrowFunctionExpression", - "start": 434, - "end": 470, - "loc": { - "start": { - "line": 28, - "column": 17 - }, - "end": { - "line": 30, - "column": 3 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 434, - "end": 439, - "loc": { - "start": { - "line": 28, - "column": 17 - }, - "end": { - "line": 28, - "column": 22 - }, - "identifierName": "chunk" - }, - "name": "chunk" - } - ], - "body": { - "type": "BlockStatement", - "start": 443, - "end": 470, - "loc": { - "start": { - "line": 28, - "column": 26 - }, - "end": { - "line": 30, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 449, - "end": 466, - "loc": { - "start": { - "line": 29, - "column": 4 - }, - "end": { - "line": 29, - "column": 21 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 449, - "end": 465, - "loc": { - "start": { - "line": 29, - "column": 4 - }, - "end": { - "line": 29, - "column": 20 - } - }, - "operator": "+=", - "left": { - "type": "Identifier", - "start": 449, - "end": 456, - "loc": { - "start": { - "line": 29, - "column": 4 - }, - "end": { - "line": 29, - "column": 11 - }, - "identifierName": "rawData" - }, - "name": "rawData" - }, - "right": { - "type": "Identifier", - "start": 460, - "end": 465, - "loc": { - "start": { - "line": 29, - "column": 15 - }, - "end": { - "line": 29, - "column": 20 - }, - "identifierName": "chunk" - }, - "name": "chunk" - } - } - } - ], - "directives": [] - } - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 476, - "end": 891, - "loc": { - "start": { - "line": 32, - "column": 2 - }, - "end": { - "line": 49, - "column": 5 - } - }, - "expression": { - "type": "CallExpression", - "start": 476, - "end": 890, - "loc": { - "start": { - "line": 32, - "column": 2 - }, - "end": { - "line": 49, - "column": 4 - } - }, - "callee": { - "type": "MemberExpression", - "start": 476, - "end": 482, - "loc": { - "start": { - "line": 32, - "column": 2 - }, - "end": { - "line": 32, - "column": 8 - } - }, - "object": { - "type": "Identifier", - "start": 476, - "end": 479, - "loc": { - "start": { - "line": 32, - "column": 2 - }, - "end": { - "line": 32, - "column": 5 - }, - "identifierName": "res" - }, - "name": "res" - }, - "property": { - "type": "Identifier", - "start": 480, - "end": 482, - "loc": { - "start": { - "line": 32, - "column": 6 - }, - "end": { - "line": 32, - "column": 8 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 483, - "end": 488, - "loc": { - "start": { - "line": 32, - "column": 9 - }, - "end": { - "line": 32, - "column": 14 - } - }, - "extra": { - "rawValue": "end", - "raw": "'end'" - }, - "value": "end" - }, - { - "type": "ArrowFunctionExpression", - "start": 490, - "end": 889, - "loc": { - "start": { - "line": 32, - "column": 16 - }, - "end": { - "line": 49, - "column": 3 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 496, - "end": 889, - "loc": { - "start": { - "line": 32, - "column": 22 - }, - "end": { - "line": 49, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 502, - "end": 522, - "loc": { - "start": { - "line": 33, - "column": 4 - }, - "end": { - "line": 33, - "column": 24 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 506, - "end": 521, - "loc": { - "start": { - "line": 33, - "column": 8 - }, - "end": { - "line": 33, - "column": 23 - } - }, - "id": { - "type": "Identifier", - "start": 506, - "end": 516, - "loc": { - "start": { - "line": 33, - "column": 8 - }, - "end": { - "line": 33, - "column": 18 - }, - "identifierName": "parsedData" - }, - "name": "parsedData" - }, - "init": { - "type": "StringLiteral", - "start": 519, - "end": 521, - "loc": { - "start": { - "line": 33, - "column": 21 - }, - "end": { - "line": 33, - "column": 23 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 527, - "end": 543, - "loc": { - "start": { - "line": 34, - "column": 4 - }, - "end": { - "line": 34, - "column": 20 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 531, - "end": 542, - "loc": { - "start": { - "line": 34, - "column": 8 - }, - "end": { - "line": 34, - "column": 19 - } - }, - "id": { - "type": "Identifier", - "start": 531, - "end": 537, - "loc": { - "start": { - "line": 34, - "column": 8 - }, - "end": { - "line": 34, - "column": 14 - }, - "identifierName": "errors" - }, - "name": "errors" - }, - "init": { - "type": "StringLiteral", - "start": 540, - "end": 542, - "loc": { - "start": { - "line": 34, - "column": 17 - }, - "end": { - "line": 34, - "column": 19 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - } - ], - "kind": "let" - }, - { - "type": "TryStatement", - "start": 549, - "end": 776, - "loc": { - "start": { - "line": 36, - "column": 4 - }, - "end": { - "line": 44, - "column": 5 - } - }, - "block": { - "type": "BlockStatement", - "start": 553, - "end": 715, - "loc": { - "start": { - "line": 36, - "column": 8 - }, - "end": { - "line": 41, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 561, - "end": 709, - "loc": { - "start": { - "line": 37, - "column": 6 - }, - "end": { - "line": 40, - "column": 7 - } - }, - "test": { - "type": "Identifier", - "start": 565, - "end": 570, - "loc": { - "start": { - "line": 37, - "column": 10 - }, - "end": { - "line": 37, - "column": 15 - }, - "identifierName": "parse" - }, - "name": "parse" - }, - "consequent": { - "type": "BlockStatement", - "start": 572, - "end": 709, - "loc": { - "start": { - "line": 37, - "column": 17 - }, - "end": { - "line": 40, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 582, - "end": 615, - "loc": { - "start": { - "line": 38, - "column": 8 - }, - "end": { - "line": 38, - "column": 41 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 582, - "end": 614, - "loc": { - "start": { - "line": 38, - "column": 8 - }, - "end": { - "line": 38, - "column": 40 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 582, - "end": 592, - "loc": { - "start": { - "line": 38, - "column": 8 - }, - "end": { - "line": 38, - "column": 18 - }, - "identifierName": "parsedData" - }, - "name": "parsedData" - }, - "right": { - "type": "CallExpression", - "start": 595, - "end": 614, - "loc": { - "start": { - "line": 38, - "column": 21 - }, - "end": { - "line": 38, - "column": 40 - } - }, - "callee": { - "type": "MemberExpression", - "start": 595, - "end": 605, - "loc": { - "start": { - "line": 38, - "column": 21 - }, - "end": { - "line": 38, - "column": 31 - } - }, - "object": { - "type": "Identifier", - "start": 595, - "end": 599, - "loc": { - "start": { - "line": 38, - "column": 21 - }, - "end": { - "line": 38, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 600, - "end": 605, - "loc": { - "start": { - "line": 38, - "column": 26 - }, - "end": { - "line": 38, - "column": 31 - }, - "identifierName": "parse" - }, - "name": "parse" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 606, - "end": 613, - "loc": { - "start": { - "line": 38, - "column": 32 - }, - "end": { - "line": 38, - "column": 39 - }, - "identifierName": "rawData" - }, - "name": "rawData" - } - ] - } - } - }, - { - "type": "ExpressionStatement", - "start": 624, - "end": 701, - "loc": { - "start": { - "line": 39, - "column": 8 - }, - "end": { - "line": 39, - "column": 85 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 624, - "end": 700, - "loc": { - "start": { - "line": 39, - "column": 8 - }, - "end": { - "line": 39, - "column": 84 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 624, - "end": 630, - "loc": { - "start": { - "line": 39, - "column": 8 - }, - "end": { - "line": 39, - "column": 14 - }, - "identifierName": "errors" - }, - "name": "errors" - }, - "right": { - "type": "LogicalExpression", - "start": 633, - "end": 700, - "loc": { - "start": { - "line": 39, - "column": 17 - }, - "end": { - "line": 39, - "column": 84 - } - }, - "left": { - "type": "LogicalExpression", - "start": 633, - "end": 692, - "loc": { - "start": { - "line": 39, - "column": 17 - }, - "end": { - "line": 39, - "column": 76 - } - }, - "left": { - "type": "LogicalExpression", - "start": 633, - "end": 670, - "loc": { - "start": { - "line": 39, - "column": 17 - }, - "end": { - "line": 39, - "column": 54 - } - }, - "left": { - "type": "MemberExpression", - "start": 633, - "end": 650, - "loc": { - "start": { - "line": 39, - "column": 17 - }, - "end": { - "line": 39, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 633, - "end": 643, - "loc": { - "start": { - "line": 39, - "column": 17 - }, - "end": { - "line": 39, - "column": 27 - }, - "identifierName": "parsedData" - }, - "name": "parsedData" - }, - "property": { - "type": "Identifier", - "start": 644, - "end": 650, - "loc": { - "start": { - "line": 39, - "column": 28 - }, - "end": { - "line": 39, - "column": 34 - }, - "identifierName": "errors" - }, - "name": "errors" - }, - "computed": false - }, - "operator": "||", - "right": { - "type": "MemberExpression", - "start": 654, - "end": 670, - "loc": { - "start": { - "line": 39, - "column": 38 - }, - "end": { - "line": 39, - "column": 54 - } - }, - "object": { - "type": "Identifier", - "start": 654, - "end": 664, - "loc": { - "start": { - "line": 39, - "column": 38 - }, - "end": { - "line": 39, - "column": 48 - }, - "identifierName": "parsedData" - }, - "name": "parsedData" - }, - "property": { - "type": "Identifier", - "start": 665, - "end": 670, - "loc": { - "start": { - "line": 39, - "column": 49 - }, - "end": { - "line": 39, - "column": 54 - }, - "identifierName": "error" - }, - "name": "error" - }, - "computed": false - } - }, - "operator": "||", - "right": { - "type": "MemberExpression", - "start": 674, - "end": 692, - "loc": { - "start": { - "line": 39, - "column": 58 - }, - "end": { - "line": 39, - "column": 76 - } - }, - "object": { - "type": "Identifier", - "start": 674, - "end": 684, - "loc": { - "start": { - "line": 39, - "column": 58 - }, - "end": { - "line": 39, - "column": 68 - }, - "identifierName": "parsedData" - }, - "name": "parsedData" - }, - "property": { - "type": "Identifier", - "start": 685, - "end": 692, - "loc": { - "start": { - "line": 39, - "column": 69 - }, - "end": { - "line": 39, - "column": 76 - }, - "identifierName": "message" - }, - "name": "message" - }, - "computed": false - } - }, - "operator": "||", - "right": { - "type": "NullLiteral", - "start": 696, - "end": 700, - "loc": { - "start": { - "line": 39, - "column": 80 - }, - "end": { - "line": 39, - "column": 84 - } - } - } - } - } - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - }, - "handler": { - "type": "CatchClause", - "start": 716, - "end": 776, - "loc": { - "start": { - "line": 41, - "column": 6 - }, - "end": { - "line": 44, - "column": 5 - } - }, - "param": { - "type": "Identifier", - "start": 723, - "end": 724, - "loc": { - "start": { - "line": 41, - "column": 13 - }, - "end": { - "line": 41, - "column": 14 - }, - "identifierName": "e" - }, - "name": "e" - }, - "body": { - "type": "BlockStatement", - "start": 726, - "end": 776, - "loc": { - "start": { - "line": 41, - "column": 16 - }, - "end": { - "line": 44, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 734, - "end": 745, - "loc": { - "start": { - "line": 42, - "column": 6 - }, - "end": { - "line": 42, - "column": 17 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 734, - "end": 744, - "loc": { - "start": { - "line": 42, - "column": 6 - }, - "end": { - "line": 42, - "column": 16 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 734, - "end": 740, - "loc": { - "start": { - "line": 42, - "column": 6 - }, - "end": { - "line": 42, - "column": 12 - }, - "identifierName": "errors" - }, - "name": "errors" - }, - "right": { - "type": "Identifier", - "start": 743, - "end": 744, - "loc": { - "start": { - "line": 42, - "column": 15 - }, - "end": { - "line": 42, - "column": 16 - }, - "identifierName": "e" - }, - "name": "e" - } - } - }, - { - "type": "ExpressionStatement", - "start": 752, - "end": 770, - "loc": { - "start": { - "line": 43, - "column": 6 - }, - "end": { - "line": 43, - "column": 24 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 752, - "end": 769, - "loc": { - "start": { - "line": 43, - "column": 6 - }, - "end": { - "line": 43, - "column": 23 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 752, - "end": 762, - "loc": { - "start": { - "line": 43, - "column": 6 - }, - "end": { - "line": 43, - "column": 16 - }, - "identifierName": "parsedData" - }, - "name": "parsedData" - }, - "right": { - "type": "NullLiteral", - "start": 765, - "end": 769, - "loc": { - "start": { - "line": 43, - "column": 19 - }, - "end": { - "line": 43, - "column": 23 - } - } - } - } - } - ], - "directives": [] - } - }, - "guardedHandlers": [], - "finalizer": null - }, - { - "type": "IfStatement", - "start": 782, - "end": 885, - "loc": { - "start": { - "line": 46, - "column": 4 - }, - "end": { - "line": 48, - "column": 5 - } - }, - "test": { - "type": "Identifier", - "start": 786, - "end": 794, - "loc": { - "start": { - "line": 46, - "column": 8 - }, - "end": { - "line": 46, - "column": 16 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "consequent": { - "type": "BlockStatement", - "start": 796, - "end": 885, - "loc": { - "start": { - "line": 46, - "column": 18 - }, - "end": { - "line": 48, - "column": 5 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 804, - "end": 879, - "loc": { - "start": { - "line": 47, - "column": 6 - }, - "end": { - "line": 47, - "column": 81 - } - }, - "argument": { - "type": "CallExpression", - "start": 811, - "end": 878, - "loc": { - "start": { - "line": 47, - "column": 13 - }, - "end": { - "line": 47, - "column": 80 - } - }, - "callee": { - "type": "Identifier", - "start": 811, - "end": 819, - "loc": { - "start": { - "line": 47, - "column": 13 - }, - "end": { - "line": 47, - "column": 21 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 820, - "end": 826, - "loc": { - "start": { - "line": 47, - "column": 22 - }, - "end": { - "line": 47, - "column": 28 - }, - "identifierName": "errors" - }, - "name": "errors" - }, - { - "type": "LogicalExpression", - "start": 828, - "end": 877, - "loc": { - "start": { - "line": 47, - "column": 30 - }, - "end": { - "line": 47, - "column": 79 - } - }, - "left": { - "type": "LogicalExpression", - "start": 828, - "end": 869, - "loc": { - "start": { - "line": 47, - "column": 30 - }, - "end": { - "line": 47, - "column": 71 - } - }, - "left": { - "type": "UnaryExpression", - "start": 828, - "end": 835, - "loc": { - "start": { - "line": 47, - "column": 30 - }, - "end": { - "line": 47, - "column": 37 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 829, - "end": 835, - "loc": { - "start": { - "line": 47, - "column": 31 - }, - "end": { - "line": 47, - "column": 37 - }, - "identifierName": "errors" - }, - "name": "errors" - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "&&", - "right": { - "type": "ConditionalExpression", - "start": 840, - "end": 868, - "loc": { - "start": { - "line": 47, - "column": 42 - }, - "end": { - "line": 47, - "column": 70 - } - }, - "test": { - "type": "Identifier", - "start": 840, - "end": 845, - "loc": { - "start": { - "line": 47, - "column": 42 - }, - "end": { - "line": 47, - "column": 47 - }, - "identifierName": "parse" - }, - "name": "parse" - }, - "consequent": { - "type": "Identifier", - "start": 848, - "end": 858, - "loc": { - "start": { - "line": 47, - "column": 50 - }, - "end": { - "line": 47, - "column": 60 - }, - "identifierName": "parsedData" - }, - "name": "parsedData" - }, - "alternate": { - "type": "Identifier", - "start": 861, - "end": 868, - "loc": { - "start": { - "line": 47, - "column": 63 - }, - "end": { - "line": 47, - "column": 70 - }, - "identifierName": "rawData" - }, - "name": "rawData" - }, - "extra": { - "parenthesized": true, - "parenStart": 839 - } - } - }, - "operator": "||", - "right": { - "type": "NullLiteral", - "start": 873, - "end": 877, - "loc": { - "start": { - "line": 47, - "column": 75 - }, - "end": { - "line": 47, - "column": 79 - } - } - } - } - ] - } - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - } - } - } - } - ], - "kind": "const", - "leadingComments": [], - "trailingComments": [] - }, - "specifiers": null, - "source": null, - "leadingComments": null - }, - { - "type": "ExportNamedDeclaration", - "start": 1643, - "end": 1768, - "loc": { - "start": { - "line": 88, - "column": 0 - }, - "end": { - "line": 93, - "column": 18 - } - }, - "declaration": { - "type": "VariableDeclaration", - "start": 896, - "end": 1018, - "loc": { - "start": { - "line": 52, - "column": 0 - }, - "end": { - "line": 56, - "column": 2 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 902, - "end": 1017, - "loc": { - "start": { - "line": 52, - "column": 6 - }, - "end": { - "line": 56, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 902, - "end": 914, - "loc": { - "start": { - "line": 52, - "column": 6 - }, - "end": { - "line": 52, - "column": 18 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 917, - "end": 1017, - "loc": { - "start": { - "line": 52, - "column": 21 - }, - "end": { - "line": 56, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 902, - "end": 914, - "loc": { - "start": { - "line": 52, - "column": 6 - }, - "end": { - "line": 52, - "column": 18 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 917, - "end": 925, - "loc": { - "start": { - "line": 52, - "column": 21 - }, - "end": { - "line": 52, - "column": 29 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "ArrowFunctionExpression", - "start": 929, - "end": 1017, - "loc": { - "start": { - "line": 52, - "column": 33 - }, - "end": { - "line": 56, - "column": 1 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 929, - "end": 932, - "loc": { - "start": { - "line": 52, - "column": 33 - }, - "end": { - "line": 52, - "column": 36 - }, - "identifierName": "err" - }, - "name": "err" - } - ], - "body": { - "type": "BlockStatement", - "start": 936, - "end": 1017, - "loc": { - "start": { - "line": 52, - "column": 40 - }, - "end": { - "line": 56, - "column": 1 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 940, - "end": 1015, - "loc": { - "start": { - "line": 53, - "column": 2 - }, - "end": { - "line": 55, - "column": 3 - } - }, - "test": { - "type": "BinaryExpression", - "start": 944, - "end": 974, - "loc": { - "start": { - "line": 53, - "column": 6 - }, - "end": { - "line": 53, - "column": 36 - } - }, - "left": { - "type": "UnaryExpression", - "start": 944, - "end": 959, - "loc": { - "start": { - "line": 53, - "column": 6 - }, - "end": { - "line": 53, - "column": 21 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 951, - "end": 959, - "loc": { - "start": { - "line": 53, - "column": 13 - }, - "end": { - "line": 53, - "column": 21 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 964, - "end": 974, - "loc": { - "start": { - "line": 53, - "column": 26 - }, - "end": { - "line": 53, - "column": 36 - } - }, - "extra": { - "rawValue": "function", - "raw": "'function'" - }, - "value": "function" - } - }, - "consequent": { - "type": "BlockStatement", - "start": 976, - "end": 1015, - "loc": { - "start": { - "line": 53, - "column": 38 - }, - "end": { - "line": 55, - "column": 3 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 982, - "end": 1011, - "loc": { - "start": { - "line": 54, - "column": 4 - }, - "end": { - "line": 54, - "column": 33 - } - }, - "argument": { - "type": "CallExpression", - "start": 989, - "end": 1010, - "loc": { - "start": { - "line": 54, - "column": 11 - }, - "end": { - "line": 54, - "column": 32 - } - }, - "callee": { - "type": "Identifier", - "start": 989, - "end": 997, - "loc": { - "start": { - "line": 54, - "column": 11 - }, - "end": { - "line": 54, - "column": 19 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 998, - "end": 1009, - "loc": { - "start": { - "line": 54, - "column": 20 - }, - "end": { - "line": 54, - "column": 31 - } - }, - "object": { - "type": "Identifier", - "start": 998, - "end": 1001, - "loc": { - "start": { - "line": 54, - "column": 20 - }, - "end": { - "line": 54, - "column": 23 - }, - "identifierName": "err" - }, - "name": "err" - }, - "property": { - "type": "Identifier", - "start": 1002, - "end": 1009, - "loc": { - "start": { - "line": 54, - "column": 24 - }, - "end": { - "line": 54, - "column": 31 - }, - "identifierName": "message" - }, - "name": "message" - }, - "computed": false - } - ] - } - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - } - } - } - } - ], - "kind": "const", - "leadingComments": [], - "trailingComments": [] - }, - "specifiers": null, - "source": null, - "leadingComments": null - }, - { - "type": "ExportNamedDeclaration", - "start": 1643, - "end": 1768, - "loc": { - "start": { - "line": 88, - "column": 0 - }, - "end": { - "line": 93, - "column": 18 - } - }, - "declaration": { - "type": "VariableDeclaration", - "start": 1020, - "end": 1386, - "loc": { - "start": { - "line": 58, - "column": 0 - }, - "end": { - "line": 76, - "column": 2 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1026, - "end": 1385, - "loc": { - "start": { - "line": 58, - "column": 6 - }, - "end": { - "line": 76, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 1026, - "end": 1045, - "loc": { - "start": { - "line": 58, - "column": 6 - }, - "end": { - "line": 58, - "column": 25 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 1048, - "end": 1385, - "loc": { - "start": { - "line": 58, - "column": 28 - }, - "end": { - "line": 76, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 1026, - "end": 1045, - "loc": { - "start": { - "line": 58, - "column": 6 - }, - "end": { - "line": 58, - "column": 25 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 1049, - "end": 1187, - "loc": { - "start": { - "line": 58, - "column": 29 - }, - "end": { - "line": 66, - "column": 1 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1053, - "end": 1067, - "loc": { - "start": { - "line": 59, - "column": 2 - }, - "end": { - "line": 59, - "column": 16 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1053, - "end": 1059, - "loc": { - "start": { - "line": 59, - "column": 2 - }, - "end": { - "line": 59, - "column": 8 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "AssignmentPattern", - "start": 1053, - "end": 1067, - "loc": { - "start": { - "line": 59, - "column": 2 - }, - "end": { - "line": 59, - "column": 16 - } - }, - "left": { - "type": "Identifier", - "start": 1053, - "end": 1059, - "loc": { - "start": { - "line": 59, - "column": 2 - }, - "end": { - "line": 59, - "column": 8 - }, - "identifierName": "method" - }, - "name": "method" - }, - "right": { - "type": "StringLiteral", - "start": 1062, - "end": 1067, - "loc": { - "start": { - "line": 59, - "column": 11 - }, - "end": { - "line": 59, - "column": 16 - } - }, - "extra": { - "rawValue": "GET", - "raw": "'GET'" - }, - "value": "GET" - } - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1071, - "end": 1081, - "loc": { - "start": { - "line": 60, - "column": 2 - }, - "end": { - "line": 60, - "column": 12 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1071, - "end": 1075, - "loc": { - "start": { - "line": 60, - "column": 2 - }, - "end": { - "line": 60, - "column": 6 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "AssignmentPattern", - "start": 1071, - "end": 1081, - "loc": { - "start": { - "line": 60, - "column": 2 - }, - "end": { - "line": 60, - "column": 12 - } - }, - "left": { - "type": "Identifier", - "start": 1071, - "end": 1075, - "loc": { - "start": { - "line": 60, - "column": 2 - }, - "end": { - "line": 60, - "column": 6 - }, - "identifierName": "path" - }, - "name": "path" - }, - "right": { - "type": "StringLiteral", - "start": 1078, - "end": 1081, - "loc": { - "start": { - "line": 60, - "column": 9 - }, - "end": { - "line": 60, - "column": 12 - } - }, - "extra": { - "rawValue": "/", - "raw": "'/'" - }, - "value": "/" - } - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1085, - "end": 1168, - "loc": { - "start": { - "line": 61, - "column": 2 - }, - "end": { - "line": 64, - "column": 8 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1085, - "end": 1098, - "loc": { - "start": { - "line": 61, - "column": 2 - }, - "end": { - "line": 61, - "column": 15 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "AssignmentPattern", - "start": 1100, - "end": 1168, - "loc": { - "start": { - "line": 61, - "column": 17 - }, - "end": { - "line": 64, - "column": 8 - } - }, - "left": { - "type": "ObjectPattern", - "start": 1100, - "end": 1163, - "loc": { - "start": { - "line": 61, - "column": 17 - }, - "end": { - "line": 64, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1106, - "end": 1120, - "loc": { - "start": { - "line": 62, - "column": 4 - }, - "end": { - "line": 62, - "column": 18 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1106, - "end": 1110, - "loc": { - "start": { - "line": 62, - "column": 4 - }, - "end": { - "line": 62, - "column": 8 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "AssignmentPattern", - "start": 1106, - "end": 1120, - "loc": { - "start": { - "line": 62, - "column": 4 - }, - "end": { - "line": 62, - "column": 18 - } - }, - "left": { - "type": "Identifier", - "start": 1106, - "end": 1110, - "loc": { - "start": { - "line": 62, - "column": 4 - }, - "end": { - "line": 62, - "column": 8 - }, - "identifierName": "type" - }, - "name": "type" - }, - "right": { - "type": "StringLiteral", - "start": 1113, - "end": 1120, - "loc": { - "start": { - "line": 62, - "column": 11 - }, - "end": { - "line": 62, - "column": 18 - } - }, - "extra": { - "rawValue": "Basic", - "raw": "'Basic'" - }, - "value": "Basic" - } - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1126, - "end": 1158, - "loc": { - "start": { - "line": 63, - "column": 4 - }, - "end": { - "line": 63, - "column": 36 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1126, - "end": 1131, - "loc": { - "start": { - "line": 63, - "column": 4 - }, - "end": { - "line": 63, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "AssignmentPattern", - "start": 1126, - "end": 1158, - "loc": { - "start": { - "line": 63, - "column": 4 - }, - "end": { - "line": 63, - "column": 36 - } - }, - "left": { - "type": "Identifier", - "start": 1126, - "end": 1131, - "loc": { - "start": { - "line": 63, - "column": 4 - }, - "end": { - "line": 63, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "right": { - "type": "MemberExpression", - "start": 1134, - "end": 1158, - "loc": { - "start": { - "line": 63, - "column": 12 - }, - "end": { - "line": 63, - "column": 36 - } - }, - "object": { - "type": "MemberExpression", - "start": 1134, - "end": 1146, - "loc": { - "start": { - "line": 63, - "column": 12 - }, - "end": { - "line": 63, - "column": 24 - } - }, - "object": { - "type": "Identifier", - "start": 1134, - "end": 1142, - "loc": { - "start": { - "line": 63, - "column": 12 - }, - "end": { - "line": 63, - "column": 20 - }, - "identifierName": "settings" - }, - "name": "settings" - }, - "property": { - "type": "Identifier", - "start": 1143, - "end": 1146, - "loc": { - "start": { - "line": 63, - "column": 21 - }, - "end": { - "line": 63, - "column": 24 - }, - "identifierName": "api" - }, - "name": "api" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 1147, - "end": 1158, - "loc": { - "start": { - "line": 63, - "column": 25 - }, - "end": { - "line": 63, - "column": 36 - }, - "identifierName": "credentials" - }, - "name": "credentials" - }, - "computed": false - } - }, - "extra": { - "shorthand": true - } - } - ] - }, - "right": { - "type": "ObjectExpression", - "start": 1166, - "end": 1168, - "loc": { - "start": { - "line": 64, - "column": 6 - }, - "end": { - "line": 64, - "column": 8 - } - }, - "properties": [] - } - } - }, - { - "type": "ObjectProperty", - "start": 1172, - "end": 1184, - "loc": { - "start": { - "line": 65, - "column": 2 - }, - "end": { - "line": 65, - "column": 14 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1172, - "end": 1179, - "loc": { - "start": { - "line": 65, - "column": 2 - }, - "end": { - "line": 65, - "column": 9 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "AssignmentPattern", - "start": 1172, - "end": 1184, - "loc": { - "start": { - "line": 65, - "column": 2 - }, - "end": { - "line": 65, - "column": 14 - } - }, - "left": { - "type": "Identifier", - "start": 1172, - "end": 1179, - "loc": { - "start": { - "line": 65, - "column": 2 - }, - "end": { - "line": 65, - "column": 9 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "right": { - "type": "ObjectExpression", - "start": 1182, - "end": 1184, - "loc": { - "start": { - "line": 65, - "column": 12 - }, - "end": { - "line": 65, - "column": 14 - } - }, - "properties": [] - } - }, - "extra": { - "shorthand": true - } - } - ] - } - ], - "body": { - "type": "BlockStatement", - "start": 1192, - "end": 1385, - "loc": { - "start": { - "line": 66, - "column": 6 - }, - "end": { - "line": 76, - "column": 1 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 1196, - "end": 1311, - "loc": { - "start": { - "line": 67, - "column": 2 - }, - "end": { - "line": 73, - "column": 4 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1202, - "end": 1310, - "loc": { - "start": { - "line": 67, - "column": 8 - }, - "end": { - "line": 73, - "column": 3 - } - }, - "id": { - "type": "Identifier", - "start": 1202, - "end": 1209, - "loc": { - "start": { - "line": 67, - "column": 8 - }, - "end": { - "line": 67, - "column": 15 - }, - "identifierName": "options" - }, - "name": "options" - }, - "init": { - "type": "ObjectExpression", - "start": 1212, - "end": 1310, - "loc": { - "start": { - "line": 67, - "column": 18 - }, - "end": { - "line": 73, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1218, - "end": 1241, - "loc": { - "start": { - "line": 68, - "column": 4 - }, - "end": { - "line": 68, - "column": 27 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1218, - "end": 1222, - "loc": { - "start": { - "line": 68, - "column": 4 - }, - "end": { - "line": 68, - "column": 8 - }, - "identifierName": "host" - }, - "name": "host" - }, - "value": { - "type": "MemberExpression", - "start": 1224, - "end": 1241, - "loc": { - "start": { - "line": 68, - "column": 10 - }, - "end": { - "line": 68, - "column": 27 - } - }, - "object": { - "type": "MemberExpression", - "start": 1224, - "end": 1236, - "loc": { - "start": { - "line": 68, - "column": 10 - }, - "end": { - "line": 68, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 1224, - "end": 1232, - "loc": { - "start": { - "line": 68, - "column": 10 - }, - "end": { - "line": 68, - "column": 18 - }, - "identifierName": "settings" - }, - "name": "settings" - }, - "property": { - "type": "Identifier", - "start": 1233, - "end": 1236, - "loc": { - "start": { - "line": 68, - "column": 19 - }, - "end": { - "line": 68, - "column": 22 - }, - "identifierName": "api" - }, - "name": "api" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 1237, - "end": 1241, - "loc": { - "start": { - "line": 68, - "column": 23 - }, - "end": { - "line": 68, - "column": 27 - }, - "identifierName": "host" - }, - "name": "host" - }, - "computed": false - } - }, - { - "type": "ObjectProperty", - "start": 1247, - "end": 1270, - "loc": { - "start": { - "line": 69, - "column": 4 - }, - "end": { - "line": 69, - "column": 27 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1247, - "end": 1251, - "loc": { - "start": { - "line": 69, - "column": 4 - }, - "end": { - "line": 69, - "column": 8 - }, - "identifierName": "port" - }, - "name": "port" - }, - "value": { - "type": "MemberExpression", - "start": 1253, - "end": 1270, - "loc": { - "start": { - "line": 69, - "column": 10 - }, - "end": { - "line": 69, - "column": 27 - } - }, - "object": { - "type": "MemberExpression", - "start": 1253, - "end": 1265, - "loc": { - "start": { - "line": 69, - "column": 10 - }, - "end": { - "line": 69, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 1253, - "end": 1261, - "loc": { - "start": { - "line": 69, - "column": 10 - }, - "end": { - "line": 69, - "column": 18 - }, - "identifierName": "settings" - }, - "name": "settings" - }, - "property": { - "type": "Identifier", - "start": 1262, - "end": 1265, - "loc": { - "start": { - "line": 69, - "column": 19 - }, - "end": { - "line": 69, - "column": 22 - }, - "identifierName": "api" - }, - "name": "api" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 1266, - "end": 1270, - "loc": { - "start": { - "line": 69, - "column": 23 - }, - "end": { - "line": 69, - "column": 27 - }, - "identifierName": "port" - }, - "name": "port" - }, - "computed": false - } - }, - { - "type": "ObjectProperty", - "start": 1276, - "end": 1282, - "loc": { - "start": { - "line": 70, - "column": 4 - }, - "end": { - "line": 70, - "column": 10 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1276, - "end": 1282, - "loc": { - "start": { - "line": 70, - "column": 4 - }, - "end": { - "line": 70, - "column": 10 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "Identifier", - "start": 1276, - "end": 1282, - "loc": { - "start": { - "line": 70, - "column": 4 - }, - "end": { - "line": 70, - "column": 10 - }, - "identifierName": "method" - }, - "name": "method" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1288, - "end": 1292, - "loc": { - "start": { - "line": 71, - "column": 4 - }, - "end": { - "line": 71, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1288, - "end": 1292, - "loc": { - "start": { - "line": 71, - "column": 4 - }, - "end": { - "line": 71, - "column": 8 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "Identifier", - "start": 1288, - "end": 1292, - "loc": { - "start": { - "line": 71, - "column": 4 - }, - "end": { - "line": 71, - "column": 8 - }, - "identifierName": "path" - }, - "name": "path" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1298, - "end": 1305, - "loc": { - "start": { - "line": 72, - "column": 4 - }, - "end": { - "line": 72, - "column": 11 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1298, - "end": 1305, - "loc": { - "start": { - "line": 72, - "column": 4 - }, - "end": { - "line": 72, - "column": 11 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "Identifier", - "start": 1298, - "end": 1305, - "loc": { - "start": { - "line": 72, - "column": 4 - }, - "end": { - "line": 72, - "column": 11 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 1314, - "end": 1365, - "loc": { - "start": { - "line": 74, - "column": 2 - }, - "end": { - "line": 74, - "column": 53 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 1314, - "end": 1364, - "loc": { - "start": { - "line": 74, - "column": 2 - }, - "end": { - "line": 74, - "column": 52 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 1314, - "end": 1343, - "loc": { - "start": { - "line": 74, - "column": 2 - }, - "end": { - "line": 74, - "column": 31 - } - }, - "object": { - "type": "MemberExpression", - "start": 1314, - "end": 1329, - "loc": { - "start": { - "line": 74, - "column": 2 - }, - "end": { - "line": 74, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 1314, - "end": 1321, - "loc": { - "start": { - "line": 74, - "column": 2 - }, - "end": { - "line": 74, - "column": 9 - }, - "identifierName": "options" - }, - "name": "options" - }, - "property": { - "type": "Identifier", - "start": 1322, - "end": 1329, - "loc": { - "start": { - "line": 74, - "column": 10 - }, - "end": { - "line": 74, - "column": 17 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 1330, - "end": 1343, - "loc": { - "start": { - "line": 74, - "column": 18 - }, - "end": { - "line": 74, - "column": 31 - }, - "identifierName": "Authorization" - }, - "name": "Authorization" - }, - "computed": false - }, - "right": { - "type": "TemplateLiteral", - "start": 1346, - "end": 1364, - "loc": { - "start": { - "line": 74, - "column": 34 - }, - "end": { - "line": 74, - "column": 52 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 1349, - "end": 1353, - "loc": { - "start": { - "line": 74, - "column": 37 - }, - "end": { - "line": 74, - "column": 41 - }, - "identifierName": "type" - }, - "name": "type" - }, - { - "type": "Identifier", - "start": 1357, - "end": 1362, - "loc": { - "start": { - "line": 74, - "column": 45 - }, - "end": { - "line": 74, - "column": 50 - }, - "identifierName": "token" - }, - "name": "token" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 1347, - "end": 1347, - "loc": { - "start": { - "line": 74, - "column": 35 - }, - "end": { - "line": 74, - "column": 35 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 1354, - "end": 1355, - "loc": { - "start": { - "line": 74, - "column": 42 - }, - "end": { - "line": 74, - "column": 43 - } - }, - "value": { - "raw": " ", - "cooked": " " - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 1363, - "end": 1363, - "loc": { - "start": { - "line": 74, - "column": 51 - }, - "end": { - "line": 74, - "column": 51 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - } - }, - { - "type": "ReturnStatement", - "start": 1368, - "end": 1383, - "loc": { - "start": { - "line": 75, - "column": 2 - }, - "end": { - "line": 75, - "column": 17 - } - }, - "argument": { - "type": "Identifier", - "start": 1375, - "end": 1382, - "loc": { - "start": { - "line": 75, - "column": 9 - }, - "end": { - "line": 75, - "column": 16 - }, - "identifierName": "options" - }, - "name": "options" - } - } - ], - "directives": [] - } - } - } - ], - "kind": "const", - "leadingComments": [], - "trailingComments": [] - }, - "specifiers": null, - "source": null, - "leadingComments": null - }, - { - "type": "ExportNamedDeclaration", - "start": 1643, - "end": 1768, - "loc": { - "start": { - "line": 88, - "column": 0 - }, - "end": { - "line": 93, - "column": 18 - } - }, - "declaration": { - "type": "VariableDeclaration", - "start": 1388, - "end": 1468, - "loc": { - "start": { - "line": 78, - "column": 0 - }, - "end": { - "line": 80, - "column": 2 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1394, - "end": 1467, - "loc": { - "start": { - "line": 78, - "column": 6 - }, - "end": { - "line": 80, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 1394, - "end": 1414, - "loc": { - "start": { - "line": 78, - "column": 6 - }, - "end": { - "line": 78, - "column": 26 - }, - "identifierName": "setProductionApiHost" - }, - "name": "setProductionApiHost" - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 1417, - "end": 1467, - "loc": { - "start": { - "line": 78, - "column": 29 - }, - "end": { - "line": 80, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 1394, - "end": 1414, - "loc": { - "start": { - "line": 78, - "column": 6 - }, - "end": { - "line": 78, - "column": 26 - }, - "identifierName": "setProductionApiHost" - }, - "name": "setProductionApiHost" - }, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 1423, - "end": 1467, - "loc": { - "start": { - "line": 78, - "column": 35 - }, - "end": { - "line": 80, - "column": 1 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1427, - "end": 1465, - "loc": { - "start": { - "line": 79, - "column": 2 - }, - "end": { - "line": 79, - "column": 40 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 1427, - "end": 1464, - "loc": { - "start": { - "line": 79, - "column": 2 - }, - "end": { - "line": 79, - "column": 39 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 1427, - "end": 1444, - "loc": { - "start": { - "line": 79, - "column": 2 - }, - "end": { - "line": 79, - "column": 19 - } - }, - "object": { - "type": "MemberExpression", - "start": 1427, - "end": 1439, - "loc": { - "start": { - "line": 79, - "column": 2 - }, - "end": { - "line": 79, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 1427, - "end": 1435, - "loc": { - "start": { - "line": 79, - "column": 2 - }, - "end": { - "line": 79, - "column": 10 - }, - "identifierName": "settings" - }, - "name": "settings" - }, - "property": { - "type": "Identifier", - "start": 1436, - "end": 1439, - "loc": { - "start": { - "line": 79, - "column": 11 - }, - "end": { - "line": 79, - "column": 14 - }, - "identifierName": "api" - }, - "name": "api" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 1440, - "end": 1444, - "loc": { - "start": { - "line": 79, - "column": 15 - }, - "end": { - "line": 79, - "column": 19 - }, - "identifierName": "host" - }, - "name": "host" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 1447, - "end": 1464, - "loc": { - "start": { - "line": 79, - "column": 22 - }, - "end": { - "line": 79, - "column": 39 - } - }, - "extra": { - "rawValue": "api.signnow.com", - "raw": "'api.signnow.com'" - }, - "value": "api.signnow.com" - } - } - } - ], - "directives": [] - } - } - } - ], - "kind": "const", - "leadingComments": [], - "trailingComments": [] - }, - "specifiers": null, - "source": null, - "leadingComments": null - }, - { - "type": "ExportNamedDeclaration", - "start": 1643, - "end": 1768, - "loc": { - "start": { - "line": 88, - "column": 0 - }, - "end": { - "line": 93, - "column": 18 - } - }, - "declaration": { - "type": "VariableDeclaration", - "start": 1470, - "end": 1554, - "loc": { - "start": { - "line": 82, - "column": 0 - }, - "end": { - "line": 84, - "column": 2 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1476, - "end": 1553, - "loc": { - "start": { - "line": 82, - "column": 6 - }, - "end": { - "line": 84, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 1476, - "end": 1490, - "loc": { - "start": { - "line": 82, - "column": 6 - }, - "end": { - "line": 82, - "column": 20 - }, - "identifierName": "setCredentials" - }, - "name": "setCredentials" - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 1493, - "end": 1553, - "loc": { - "start": { - "line": 82, - "column": 23 - }, - "end": { - "line": 84, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 1476, - "end": 1490, - "loc": { - "start": { - "line": 82, - "column": 6 - }, - "end": { - "line": 82, - "column": 20 - }, - "identifierName": "setCredentials" - }, - "name": "setCredentials" - }, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1493, - "end": 1504, - "loc": { - "start": { - "line": 82, - "column": 23 - }, - "end": { - "line": 82, - "column": 34 - }, - "identifierName": "credentials" - }, - "name": "credentials" - } - ], - "body": { - "type": "BlockStatement", - "start": 1508, - "end": 1553, - "loc": { - "start": { - "line": 82, - "column": 38 - }, - "end": { - "line": 84, - "column": 1 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1512, - "end": 1551, - "loc": { - "start": { - "line": 83, - "column": 2 - }, - "end": { - "line": 83, - "column": 41 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 1512, - "end": 1550, - "loc": { - "start": { - "line": 83, - "column": 2 - }, - "end": { - "line": 83, - "column": 40 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 1512, - "end": 1536, - "loc": { - "start": { - "line": 83, - "column": 2 - }, - "end": { - "line": 83, - "column": 26 - } - }, - "object": { - "type": "MemberExpression", - "start": 1512, - "end": 1524, - "loc": { - "start": { - "line": 83, - "column": 2 - }, - "end": { - "line": 83, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 1512, - "end": 1520, - "loc": { - "start": { - "line": 83, - "column": 2 - }, - "end": { - "line": 83, - "column": 10 - }, - "identifierName": "settings" - }, - "name": "settings" - }, - "property": { - "type": "Identifier", - "start": 1521, - "end": 1524, - "loc": { - "start": { - "line": 83, - "column": 11 - }, - "end": { - "line": 83, - "column": 14 - }, - "identifierName": "api" - }, - "name": "api" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 1525, - "end": 1536, - "loc": { - "start": { - "line": 83, - "column": 15 - }, - "end": { - "line": 83, - "column": 26 - }, - "identifierName": "credentials" - }, - "name": "credentials" - }, - "computed": false - }, - "right": { - "type": "Identifier", - "start": 1539, - "end": 1550, - "loc": { - "start": { - "line": 83, - "column": 29 - }, - "end": { - "line": 83, - "column": 40 - }, - "identifierName": "credentials" - }, - "name": "credentials" - } - } - } - ], - "directives": [] - } - } - } - ], - "kind": "const", - "leadingComments": [], - "trailingComments": [] - }, - "specifiers": null, - "source": null, - "leadingComments": null - }, - { - "type": "ExportNamedDeclaration", - "start": 1643, - "end": 1768, - "loc": { - "start": { - "line": 88, - "column": 0 - }, - "end": { - "line": 93, - "column": 18 - } - }, - "declaration": { - "type": "VariableDeclaration", - "start": 1556, - "end": 1641, - "loc": { - "start": { - "line": 86, - "column": 0 - }, - "end": { - "line": 86, - "column": 85 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1562, - "end": 1640, - "loc": { - "start": { - "line": 86, - "column": 6 - }, - "end": { - "line": 86, - "column": 84 - } - }, - "id": { - "type": "Identifier", - "start": 1562, - "end": 1574, - "loc": { - "start": { - "line": 86, - "column": 6 - }, - "end": { - "line": 86, - "column": 18 - }, - "identifierName": "getUserAgent" - }, - "name": "getUserAgent" - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 1577, - "end": 1640, - "loc": { - "start": { - "line": 86, - "column": 21 - }, - "end": { - "line": 86, - "column": 84 - } - }, - "id": { - "type": "Identifier", - "start": 1562, - "end": 1574, - "loc": { - "start": { - "line": 86, - "column": 6 - }, - "end": { - "line": 86, - "column": 18 - }, - "identifierName": "getUserAgent" - }, - "name": "getUserAgent" - }, - "generator": false, - "expression": true, - "async": false, - "params": [], - "body": { - "type": "TemplateLiteral", - "start": 1583, - "end": 1640, - "loc": { - "start": { - "line": 86, - "column": 27 - }, - "end": { - "line": 86, - "column": 84 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 1586, - "end": 1590, - "loc": { - "start": { - "line": 86, - "column": 30 - }, - "end": { - "line": 86, - "column": 34 - }, - "identifierName": "name" - }, - "name": "name" - }, - { - "type": "Identifier", - "start": 1597, - "end": 1604, - "loc": { - "start": { - "line": 86, - "column": 41 - }, - "end": { - "line": 86, - "column": 48 - }, - "identifierName": "version" - }, - "name": "version" - }, - { - "type": "Identifier", - "start": 1627, - "end": 1638, - "loc": { - "start": { - "line": 86, - "column": 71 - }, - "end": { - "line": 86, - "column": 82 - }, - "identifierName": "description" - }, - "name": "description" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 1584, - "end": 1584, - "loc": { - "start": { - "line": 86, - "column": 28 - }, - "end": { - "line": 86, - "column": 28 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 1591, - "end": 1595, - "loc": { - "start": { - "line": 86, - "column": 35 - }, - "end": { - "line": 86, - "column": 39 - } - }, - "value": { - "raw": " / v", - "cooked": " / v" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 1605, - "end": 1625, - "loc": { - "start": { - "line": 86, - "column": 49 - }, - "end": { - "line": 86, - "column": 69 - } - }, - "value": { - "raw": ", platform node.js, ", - "cooked": ", platform node.js, " - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 1639, - "end": 1639, - "loc": { - "start": { - "line": 86, - "column": 83 - }, - "end": { - "line": 86, - "column": 83 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - } - } - ], - "kind": "const", - "leadingComments": [], - "trailingComments": [] - }, - "specifiers": null, - "source": null, - "leadingComments": null - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "value": "use strict", - "extra": { - "raw": "'use strict'", - "rawValue": "use strict" - } - } - } - ] - }, - "comments": [ - { - "type": "CommentBlock", - "value": "*\n * Common request setting object\n ", - "start": 87, - "end": 127, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 10, - "column": 3 - } - } - } - ], - "tokens": [ - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "use strict", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 12 - }, - "end": { - "line": 1, - "column": 13 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 14, - "end": 20, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21, - "end": 22, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "name", - "start": 25, - "end": 29, - "loc": { - "start": { - "line": 3, - "column": 2 - }, - "end": { - "line": 3, - "column": 6 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29, - "end": 30, - "loc": { - "start": { - "line": 3, - "column": 6 - }, - "end": { - "line": 3, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "version", - "start": 33, - "end": 40, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 40, - "end": 41, - "loc": { - "start": { - "line": 4, - "column": 9 - }, - "end": { - "line": 4, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "description", - "start": 44, - "end": 55, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 13 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 55, - "end": 56, - "loc": { - "start": { - "line": 5, - "column": 13 - }, - "end": { - "line": 5, - "column": 14 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 57, - "end": 58, - "loc": { - "start": { - "line": 6, - "column": 0 - }, - "end": { - "line": 6, - "column": 1 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 59, - "end": 63, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 6 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "../../package.json", - "start": 64, - "end": 84, - "loc": { - "start": { - "line": 6, - "column": 7 - }, - "end": { - "line": 6, - "column": 27 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 84, - "end": 85, - "loc": { - "start": { - "line": 6, - "column": 27 - }, - "end": { - "line": 6, - "column": 28 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Common request setting object\n ", - "start": 87, - "end": 127, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 10, - "column": 3 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 128, - "end": 133, - "loc": { - "start": { - "line": 11, - "column": 0 - }, - "end": { - "line": 11, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "settings", - "start": 134, - "end": 142, - "loc": { - "start": { - "line": 11, - "column": 6 - }, - "end": { - "line": 11, - "column": 14 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 143, - "end": 144, - "loc": { - "start": { - "line": 11, - "column": 15 - }, - "end": { - "line": 11, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 145, - "end": 146, - "loc": { - "start": { - "line": 11, - "column": 17 - }, - "end": { - "line": 11, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "api", - "start": 149, - "end": 152, - "loc": { - "start": { - "line": 12, - "column": 2 - }, - "end": { - "line": 12, - "column": 5 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 152, - "end": 153, - "loc": { - "start": { - "line": 12, - "column": 5 - }, - "end": { - "line": 12, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 154, - "end": 155, - "loc": { - "start": { - "line": 12, - "column": 7 - }, - "end": { - "line": 12, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "host", - "start": 160, - "end": 164, - "loc": { - "start": { - "line": 13, - "column": 4 - }, - "end": { - "line": 13, - "column": 8 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 164, - "end": 165, - "loc": { - "start": { - "line": 13, - "column": 8 - }, - "end": { - "line": 13, - "column": 9 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "api-eval.signnow.com", - "start": 166, - "end": 188, - "loc": { - "start": { - "line": 13, - "column": 10 - }, - "end": { - "line": 13, - "column": 32 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 188, - "end": 189, - "loc": { - "start": { - "line": 13, - "column": 32 - }, - "end": { - "line": 13, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "port", - "start": 194, - "end": 198, - "loc": { - "start": { - "line": 14, - "column": 4 - }, - "end": { - "line": 14, - "column": 8 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 198, - "end": 199, - "loc": { - "start": { - "line": 14, - "column": 8 - }, - "end": { - "line": 14, - "column": 9 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 443, - "start": 200, - "end": 203, - "loc": { - "start": { - "line": 14, - "column": 10 - }, - "end": { - "line": 14, - "column": 13 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 203, - "end": 204, - "loc": { - "start": { - "line": 14, - "column": 13 - }, - "end": { - "line": 14, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "credentials", - "start": 209, - "end": 220, - "loc": { - "start": { - "line": 15, - "column": 4 - }, - "end": { - "line": 15, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 220, - "end": 221, - "loc": { - "start": { - "line": 15, - "column": 15 - }, - "end": { - "line": 15, - "column": 16 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 222, - "end": 224, - "loc": { - "start": { - "line": 15, - "column": 17 - }, - "end": { - "line": 15, - "column": 19 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 224, - "end": 225, - "loc": { - "start": { - "line": 15, - "column": 19 - }, - "end": { - "line": 15, - "column": 20 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 228, - "end": 229, - "loc": { - "start": { - "line": 16, - "column": 2 - }, - "end": { - "line": 16, - "column": 3 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 229, - "end": 230, - "loc": { - "start": { - "line": 16, - "column": 3 - }, - "end": { - "line": 16, - "column": 4 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 231, - "end": 232, - "loc": { - "start": { - "line": 17, - "column": 0 - }, - "end": { - "line": 17, - "column": 1 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 232, - "end": 233, - "loc": { - "start": { - "line": 17, - "column": 1 - }, - "end": { - "line": 17, - "column": 2 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 235, - "end": 240, - "loc": { - "start": { - "line": 19, - "column": 0 - }, - "end": { - "line": 19, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 241, - "end": 256, - "loc": { - "start": { - "line": 19, - "column": 6 - }, - "end": { - "line": 19, - "column": 21 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 257, - "end": 258, - "loc": { - "start": { - "line": 19, - "column": 22 - }, - "end": { - "line": 19, - "column": 23 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 259, - "end": 260, - "loc": { - "start": { - "line": 19, - "column": 24 - }, - "end": { - "line": 19, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 260, - "end": 268, - "loc": { - "start": { - "line": 19, - "column": 25 - }, - "end": { - "line": 19, - "column": 33 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 268, - "end": 269, - "loc": { - "start": { - "line": 19, - "column": 33 - }, - "end": { - "line": 19, - "column": 34 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 270, - "end": 271, - "loc": { - "start": { - "line": 19, - "column": 35 - }, - "end": { - "line": 19, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parse", - "start": 272, - "end": 277, - "loc": { - "start": { - "line": 19, - "column": 37 - }, - "end": { - "line": 19, - "column": 42 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 278, - "end": 279, - "loc": { - "start": { - "line": 19, - "column": 43 - }, - "end": { - "line": 19, - "column": 44 - } - } - }, - { - "type": { - "label": "true", - "keyword": "true", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "true", - "start": 280, - "end": 284, - "loc": { - "start": { - "line": 19, - "column": 45 - }, - "end": { - "line": 19, - "column": 49 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 285, - "end": 286, - "loc": { - "start": { - "line": 19, - "column": 50 - }, - "end": { - "line": 19, - "column": 51 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 287, - "end": 288, - "loc": { - "start": { - "line": 19, - "column": 52 - }, - "end": { - "line": 19, - "column": 53 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 289, - "end": 290, - "loc": { - "start": { - "line": 19, - "column": 54 - }, - "end": { - "line": 19, - "column": 55 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 290, - "end": 291, - "loc": { - "start": { - "line": 19, - "column": 55 - }, - "end": { - "line": 19, - "column": 56 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 291, - "end": 292, - "loc": { - "start": { - "line": 19, - "column": 56 - }, - "end": { - "line": 19, - "column": 57 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 293, - "end": 295, - "loc": { - "start": { - "line": 19, - "column": 58 - }, - "end": { - "line": 19, - "column": 60 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "res", - "start": 296, - "end": 299, - "loc": { - "start": { - "line": 19, - "column": 61 - }, - "end": { - "line": 19, - "column": 64 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 300, - "end": 302, - "loc": { - "start": { - "line": 19, - "column": 65 - }, - "end": { - "line": 19, - "column": 67 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 303, - "end": 304, - "loc": { - "start": { - "line": 19, - "column": 68 - }, - "end": { - "line": 19, - "column": 69 - } - } - }, - { - "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "let", - "start": 307, - "end": 310, - "loc": { - "start": { - "line": 20, - "column": 2 - }, - "end": { - "line": 20, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rawData", - "start": 311, - "end": 318, - "loc": { - "start": { - "line": 20, - "column": 6 - }, - "end": { - "line": 20, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 319, - "end": 320, - "loc": { - "start": { - "line": 20, - "column": 14 - }, - "end": { - "line": 20, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 321, - "end": 323, - "loc": { - "start": { - "line": 20, - "column": 16 - }, - "end": { - "line": 20, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 323, - "end": 324, - "loc": { - "start": { - "line": 20, - "column": 18 - }, - "end": { - "line": 20, - "column": 19 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 328, - "end": 330, - "loc": { - "start": { - "line": 22, - "column": 2 - }, - "end": { - "line": 22, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 331, - "end": 332, - "loc": { - "start": { - "line": 22, - "column": 5 - }, - "end": { - "line": 22, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parse", - "start": 332, - "end": 337, - "loc": { - "start": { - "line": 22, - "column": 6 - }, - "end": { - "line": 22, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 337, - "end": 338, - "loc": { - "start": { - "line": 22, - "column": 11 - }, - "end": { - "line": 22, - "column": 12 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 339, - "end": 340, - "loc": { - "start": { - "line": 22, - "column": 13 - }, - "end": { - "line": 22, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "res", - "start": 345, - "end": 348, - "loc": { - "start": { - "line": 23, - "column": 4 - }, - "end": { - "line": 23, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 348, - "end": 349, - "loc": { - "start": { - "line": 23, - "column": 7 - }, - "end": { - "line": 23, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "setEncoding", - "start": 349, - "end": 360, - "loc": { - "start": { - "line": 23, - "column": 8 - }, - "end": { - "line": 23, - "column": 19 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 360, - "end": 361, - "loc": { - "start": { - "line": 23, - "column": 19 - }, - "end": { - "line": 23, - "column": 20 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "utf8", - "start": 361, - "end": 367, - "loc": { - "start": { - "line": 23, - "column": 20 - }, - "end": { - "line": 23, - "column": 26 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 367, - "end": 368, - "loc": { - "start": { - "line": 23, - "column": 26 - }, - "end": { - "line": 23, - "column": 27 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 368, - "end": 369, - "loc": { - "start": { - "line": 23, - "column": 27 - }, - "end": { - "line": 23, - "column": 28 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 372, - "end": 373, - "loc": { - "start": { - "line": 24, - "column": 2 - }, - "end": { - "line": 24, - "column": 3 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 374, - "end": 378, - "loc": { - "start": { - "line": 24, - "column": 4 - }, - "end": { - "line": 24, - "column": 8 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 379, - "end": 380, - "loc": { - "start": { - "line": 24, - "column": 9 - }, - "end": { - "line": 24, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "res", - "start": 385, - "end": 388, - "loc": { - "start": { - "line": 25, - "column": 4 - }, - "end": { - "line": 25, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 388, - "end": 389, - "loc": { - "start": { - "line": 25, - "column": 7 - }, - "end": { - "line": 25, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "setEncoding", - "start": 389, - "end": 400, - "loc": { - "start": { - "line": 25, - "column": 8 - }, - "end": { - "line": 25, - "column": 19 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 400, - "end": 401, - "loc": { - "start": { - "line": 25, - "column": 19 - }, - "end": { - "line": 25, - "column": 20 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "binary", - "start": 401, - "end": 409, - "loc": { - "start": { - "line": 25, - "column": 20 - }, - "end": { - "line": 25, - "column": 28 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 409, - "end": 410, - "loc": { - "start": { - "line": 25, - "column": 28 - }, - "end": { - "line": 25, - "column": 29 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 410, - "end": 411, - "loc": { - "start": { - "line": 25, - "column": 29 - }, - "end": { - "line": 25, - "column": 30 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 414, - "end": 415, - "loc": { - "start": { - "line": 26, - "column": 2 - }, - "end": { - "line": 26, - "column": 3 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "res", - "start": 419, - "end": 422, - "loc": { - "start": { - "line": 28, - "column": 2 - }, - "end": { - "line": 28, - "column": 5 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 422, - "end": 423, - "loc": { - "start": { - "line": 28, - "column": 5 - }, - "end": { - "line": 28, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 423, - "end": 425, - "loc": { - "start": { - "line": 28, - "column": 6 - }, - "end": { - "line": 28, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 425, - "end": 426, - "loc": { - "start": { - "line": 28, - "column": 8 - }, - "end": { - "line": 28, - "column": 9 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "data", - "start": 426, - "end": 432, - "loc": { - "start": { - "line": 28, - "column": 9 - }, - "end": { - "line": 28, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 432, - "end": 433, - "loc": { - "start": { - "line": 28, - "column": 15 - }, - "end": { - "line": 28, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "chunk", - "start": 434, - "end": 439, - "loc": { - "start": { - "line": 28, - "column": 17 - }, - "end": { - "line": 28, - "column": 22 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 440, - "end": 442, - "loc": { - "start": { - "line": 28, - "column": 23 - }, - "end": { - "line": 28, - "column": 25 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 443, - "end": 444, - "loc": { - "start": { - "line": 28, - "column": 26 - }, - "end": { - "line": 28, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rawData", - "start": 449, - "end": 456, - "loc": { - "start": { - "line": 29, - "column": 4 - }, - "end": { - "line": 29, - "column": 11 - } - } - }, - { - "type": { - "label": "_=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "+=", - "start": 457, - "end": 459, - "loc": { - "start": { - "line": 29, - "column": 12 - }, - "end": { - "line": 29, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "chunk", - "start": 460, - "end": 465, - "loc": { - "start": { - "line": 29, - "column": 15 - }, - "end": { - "line": 29, - "column": 20 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 465, - "end": 466, - "loc": { - "start": { - "line": 29, - "column": 20 - }, - "end": { - "line": 29, - "column": 21 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 469, - "end": 470, - "loc": { - "start": { - "line": 30, - "column": 2 - }, - "end": { - "line": 30, - "column": 3 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 470, - "end": 471, - "loc": { - "start": { - "line": 30, - "column": 3 - }, - "end": { - "line": 30, - "column": 4 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 471, - "end": 472, - "loc": { - "start": { - "line": 30, - "column": 4 - }, - "end": { - "line": 30, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "res", - "start": 476, - "end": 479, - "loc": { - "start": { - "line": 32, - "column": 2 - }, - "end": { - "line": 32, - "column": 5 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 479, - "end": 480, - "loc": { - "start": { - "line": 32, - "column": 5 - }, - "end": { - "line": 32, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 480, - "end": 482, - "loc": { - "start": { - "line": 32, - "column": 6 - }, - "end": { - "line": 32, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 482, - "end": 483, - "loc": { - "start": { - "line": 32, - "column": 8 - }, - "end": { - "line": 32, - "column": 9 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "end", - "start": 483, - "end": 488, - "loc": { - "start": { - "line": 32, - "column": 9 - }, - "end": { - "line": 32, - "column": 14 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 488, - "end": 489, - "loc": { - "start": { - "line": 32, - "column": 14 - }, - "end": { - "line": 32, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 490, - "end": 491, - "loc": { - "start": { - "line": 32, - "column": 16 - }, - "end": { - "line": 32, - "column": 17 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 491, - "end": 492, - "loc": { - "start": { - "line": 32, - "column": 17 - }, - "end": { - "line": 32, - "column": 18 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 493, - "end": 495, - "loc": { - "start": { - "line": 32, - "column": 19 - }, - "end": { - "line": 32, - "column": 21 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 496, - "end": 497, - "loc": { - "start": { - "line": 32, - "column": 22 - }, - "end": { - "line": 32, - "column": 23 - } - } - }, - { - "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "let", - "start": 502, - "end": 505, - "loc": { - "start": { - "line": 33, - "column": 4 - }, - "end": { - "line": 33, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parsedData", - "start": 506, - "end": 516, - "loc": { - "start": { - "line": 33, - "column": 8 - }, - "end": { - "line": 33, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 517, - "end": 518, - "loc": { - "start": { - "line": 33, - "column": 19 - }, - "end": { - "line": 33, - "column": 20 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 519, - "end": 521, - "loc": { - "start": { - "line": 33, - "column": 21 - }, - "end": { - "line": 33, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 521, - "end": 522, - "loc": { - "start": { - "line": 33, - "column": 23 - }, - "end": { - "line": 33, - "column": 24 - } - } - }, - { - "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "let", - "start": 527, - "end": 530, - "loc": { - "start": { - "line": 34, - "column": 4 - }, - "end": { - "line": 34, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errors", - "start": 531, - "end": 537, - "loc": { - "start": { - "line": 34, - "column": 8 - }, - "end": { - "line": 34, - "column": 14 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 538, - "end": 539, - "loc": { - "start": { - "line": 34, - "column": 15 - }, - "end": { - "line": 34, - "column": 16 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 540, - "end": 542, - "loc": { - "start": { - "line": 34, - "column": 17 - }, - "end": { - "line": 34, - "column": 19 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 542, - "end": 543, - "loc": { - "start": { - "line": 34, - "column": 19 - }, - "end": { - "line": 34, - "column": 20 - } - } - }, - { - "type": { - "label": "try", - "keyword": "try", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "try", - "start": 549, - "end": 552, - "loc": { - "start": { - "line": 36, - "column": 4 - }, - "end": { - "line": 36, - "column": 7 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 553, - "end": 554, - "loc": { - "start": { - "line": 36, - "column": 8 - }, - "end": { - "line": 36, - "column": 9 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 561, - "end": 563, - "loc": { - "start": { - "line": 37, - "column": 6 - }, - "end": { - "line": 37, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 564, - "end": 565, - "loc": { - "start": { - "line": 37, - "column": 9 - }, - "end": { - "line": 37, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parse", - "start": 565, - "end": 570, - "loc": { - "start": { - "line": 37, - "column": 10 - }, - "end": { - "line": 37, - "column": 15 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 570, - "end": 571, - "loc": { - "start": { - "line": 37, - "column": 15 - }, - "end": { - "line": 37, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 572, - "end": 573, - "loc": { - "start": { - "line": 37, - "column": 17 - }, - "end": { - "line": 37, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parsedData", - "start": 582, - "end": 592, - "loc": { - "start": { - "line": 38, - "column": 8 - }, - "end": { - "line": 38, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 593, - "end": 594, - "loc": { - "start": { - "line": 38, - "column": 19 - }, - "end": { - "line": 38, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSON", - "start": 595, - "end": 599, - "loc": { - "start": { - "line": 38, - "column": 21 - }, - "end": { - "line": 38, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 599, - "end": 600, - "loc": { - "start": { - "line": 38, - "column": 25 - }, - "end": { - "line": 38, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parse", - "start": 600, - "end": 605, - "loc": { - "start": { - "line": 38, - "column": 26 - }, - "end": { - "line": 38, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 605, - "end": 606, - "loc": { - "start": { - "line": 38, - "column": 31 - }, - "end": { - "line": 38, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rawData", - "start": 606, - "end": 613, - "loc": { - "start": { - "line": 38, - "column": 32 - }, - "end": { - "line": 38, - "column": 39 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 613, - "end": 614, - "loc": { - "start": { - "line": 38, - "column": 39 - }, - "end": { - "line": 38, - "column": 40 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 614, - "end": 615, - "loc": { - "start": { - "line": 38, - "column": 40 - }, - "end": { - "line": 38, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errors", - "start": 624, - "end": 630, - "loc": { - "start": { - "line": 39, - "column": 8 - }, - "end": { - "line": 39, - "column": 14 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 631, - "end": 632, - "loc": { - "start": { - "line": 39, - "column": 15 - }, - "end": { - "line": 39, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parsedData", - "start": 633, - "end": 643, - "loc": { - "start": { - "line": 39, - "column": 17 - }, - "end": { - "line": 39, - "column": 27 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 643, - "end": 644, - "loc": { - "start": { - "line": 39, - "column": 27 - }, - "end": { - "line": 39, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errors", - "start": 644, - "end": 650, - "loc": { - "start": { - "line": 39, - "column": 28 - }, - "end": { - "line": 39, - "column": 34 - } - } - }, - { - "type": { - "label": "||", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 1, - "updateContext": null - }, - "value": "||", - "start": 651, - "end": 653, - "loc": { - "start": { - "line": 39, - "column": 35 - }, - "end": { - "line": 39, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parsedData", - "start": 654, - "end": 664, - "loc": { - "start": { - "line": 39, - "column": 38 - }, - "end": { - "line": 39, - "column": 48 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 664, - "end": 665, - "loc": { - "start": { - "line": 39, - "column": 48 - }, - "end": { - "line": 39, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "error", - "start": 665, - "end": 670, - "loc": { - "start": { - "line": 39, - "column": 49 - }, - "end": { - "line": 39, - "column": 54 - } - } - }, - { - "type": { - "label": "||", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 1, - "updateContext": null - }, - "value": "||", - "start": 671, - "end": 673, - "loc": { - "start": { - "line": 39, - "column": 55 - }, - "end": { - "line": 39, - "column": 57 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parsedData", - "start": 674, - "end": 684, - "loc": { - "start": { - "line": 39, - "column": 58 - }, - "end": { - "line": 39, - "column": 68 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 684, - "end": 685, - "loc": { - "start": { - "line": 39, - "column": 68 - }, - "end": { - "line": 39, - "column": 69 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "message", - "start": 685, - "end": 692, - "loc": { - "start": { - "line": 39, - "column": 69 - }, - "end": { - "line": 39, - "column": 76 - } - } - }, - { - "type": { - "label": "||", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 1, - "updateContext": null - }, - "value": "||", - "start": 693, - "end": 695, - "loc": { - "start": { - "line": 39, - "column": 77 - }, - "end": { - "line": 39, - "column": 79 - } - } - }, - { - "type": { - "label": "null", - "keyword": "null", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "null", - "start": 696, - "end": 700, - "loc": { - "start": { - "line": 39, - "column": 80 - }, - "end": { - "line": 39, - "column": 84 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 700, - "end": 701, - "loc": { - "start": { - "line": 39, - "column": 84 - }, - "end": { - "line": 39, - "column": 85 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 708, - "end": 709, - "loc": { - "start": { - "line": 40, - "column": 6 - }, - "end": { - "line": 40, - "column": 7 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 714, - "end": 715, - "loc": { - "start": { - "line": 41, - "column": 4 - }, - "end": { - "line": 41, - "column": 5 - } - } - }, - { - "type": { - "label": "catch", - "keyword": "catch", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "catch", - "start": 716, - "end": 721, - "loc": { - "start": { - "line": 41, - "column": 6 - }, - "end": { - "line": 41, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 722, - "end": 723, - "loc": { - "start": { - "line": 41, - "column": 12 - }, - "end": { - "line": 41, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "e", - "start": 723, - "end": 724, - "loc": { - "start": { - "line": 41, - "column": 13 - }, - "end": { - "line": 41, - "column": 14 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 724, - "end": 725, - "loc": { - "start": { - "line": 41, - "column": 14 - }, - "end": { - "line": 41, - "column": 15 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 726, - "end": 727, - "loc": { - "start": { - "line": 41, - "column": 16 - }, - "end": { - "line": 41, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errors", - "start": 734, - "end": 740, - "loc": { - "start": { - "line": 42, - "column": 6 - }, - "end": { - "line": 42, - "column": 12 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 741, - "end": 742, - "loc": { - "start": { - "line": 42, - "column": 13 - }, - "end": { - "line": 42, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "e", - "start": 743, - "end": 744, - "loc": { - "start": { - "line": 42, - "column": 15 - }, - "end": { - "line": 42, - "column": 16 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 744, - "end": 745, - "loc": { - "start": { - "line": 42, - "column": 16 - }, - "end": { - "line": 42, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parsedData", - "start": 752, - "end": 762, - "loc": { - "start": { - "line": 43, - "column": 6 - }, - "end": { - "line": 43, - "column": 16 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 763, - "end": 764, - "loc": { - "start": { - "line": 43, - "column": 17 - }, - "end": { - "line": 43, - "column": 18 - } - } - }, - { - "type": { - "label": "null", - "keyword": "null", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "null", - "start": 765, - "end": 769, - "loc": { - "start": { - "line": 43, - "column": 19 - }, - "end": { - "line": 43, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 769, - "end": 770, - "loc": { - "start": { - "line": 43, - "column": 23 - }, - "end": { - "line": 43, - "column": 24 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 775, - "end": 776, - "loc": { - "start": { - "line": 44, - "column": 4 - }, - "end": { - "line": 44, - "column": 5 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 782, - "end": 784, - "loc": { - "start": { - "line": 46, - "column": 4 - }, - "end": { - "line": 46, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 785, - "end": 786, - "loc": { - "start": { - "line": 46, - "column": 7 - }, - "end": { - "line": 46, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 786, - "end": 794, - "loc": { - "start": { - "line": 46, - "column": 8 - }, - "end": { - "line": 46, - "column": 16 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 794, - "end": 795, - "loc": { - "start": { - "line": 46, - "column": 16 - }, - "end": { - "line": 46, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 796, - "end": 797, - "loc": { - "start": { - "line": 46, - "column": 18 - }, - "end": { - "line": 46, - "column": 19 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 804, - "end": 810, - "loc": { - "start": { - "line": 47, - "column": 6 - }, - "end": { - "line": 47, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 811, - "end": 819, - "loc": { - "start": { - "line": 47, - "column": 13 - }, - "end": { - "line": 47, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 819, - "end": 820, - "loc": { - "start": { - "line": 47, - "column": 21 - }, - "end": { - "line": 47, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errors", - "start": 820, - "end": 826, - "loc": { - "start": { - "line": 47, - "column": 22 - }, - "end": { - "line": 47, - "column": 28 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 826, - "end": 827, - "loc": { - "start": { - "line": 47, - "column": 28 - }, - "end": { - "line": 47, - "column": 29 - } - } - }, - { - "type": { - "label": "prefix", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "!", - "start": 828, - "end": 829, - "loc": { - "start": { - "line": 47, - "column": 30 - }, - "end": { - "line": 47, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errors", - "start": 829, - "end": 835, - "loc": { - "start": { - "line": 47, - "column": 31 - }, - "end": { - "line": 47, - "column": 37 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 836, - "end": 838, - "loc": { - "start": { - "line": 47, - "column": 38 - }, - "end": { - "line": 47, - "column": 40 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 839, - "end": 840, - "loc": { - "start": { - "line": 47, - "column": 41 - }, - "end": { - "line": 47, - "column": 42 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parse", - "start": 840, - "end": 845, - "loc": { - "start": { - "line": 47, - "column": 42 - }, - "end": { - "line": 47, - "column": 47 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 846, - "end": 847, - "loc": { - "start": { - "line": 47, - "column": 48 - }, - "end": { - "line": 47, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parsedData", - "start": 848, - "end": 858, - "loc": { - "start": { - "line": 47, - "column": 50 - }, - "end": { - "line": 47, - "column": 60 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 859, - "end": 860, - "loc": { - "start": { - "line": 47, - "column": 61 - }, - "end": { - "line": 47, - "column": 62 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rawData", - "start": 861, - "end": 868, - "loc": { - "start": { - "line": 47, - "column": 63 - }, - "end": { - "line": 47, - "column": 70 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 868, - "end": 869, - "loc": { - "start": { - "line": 47, - "column": 70 - }, - "end": { - "line": 47, - "column": 71 - } - } - }, - { - "type": { - "label": "||", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 1, - "updateContext": null - }, - "value": "||", - "start": 870, - "end": 872, - "loc": { - "start": { - "line": 47, - "column": 72 - }, - "end": { - "line": 47, - "column": 74 - } - } - }, - { - "type": { - "label": "null", - "keyword": "null", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "null", - "start": 873, - "end": 877, - "loc": { - "start": { - "line": 47, - "column": 75 - }, - "end": { - "line": 47, - "column": 79 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 877, - "end": 878, - "loc": { - "start": { - "line": 47, - "column": 79 - }, - "end": { - "line": 47, - "column": 80 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 878, - "end": 879, - "loc": { - "start": { - "line": 47, - "column": 80 - }, - "end": { - "line": 47, - "column": 81 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 884, - "end": 885, - "loc": { - "start": { - "line": 48, - "column": 4 - }, - "end": { - "line": 48, - "column": 5 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 888, - "end": 889, - "loc": { - "start": { - "line": 49, - "column": 2 - }, - "end": { - "line": 49, - "column": 3 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 889, - "end": 890, - "loc": { - "start": { - "line": 49, - "column": 3 - }, - "end": { - "line": 49, - "column": 4 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 890, - "end": 891, - "loc": { - "start": { - "line": 49, - "column": 4 - }, - "end": { - "line": 49, - "column": 5 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 892, - "end": 893, - "loc": { - "start": { - "line": 50, - "column": 0 - }, - "end": { - "line": 50, - "column": 1 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 893, - "end": 894, - "loc": { - "start": { - "line": 50, - "column": 1 - }, - "end": { - "line": 50, - "column": 2 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 896, - "end": 901, - "loc": { - "start": { - "line": 52, - "column": 0 - }, - "end": { - "line": 52, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 902, - "end": 914, - "loc": { - "start": { - "line": 52, - "column": 6 - }, - "end": { - "line": 52, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 915, - "end": 916, - "loc": { - "start": { - "line": 52, - "column": 19 - }, - "end": { - "line": 52, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 917, - "end": 925, - "loc": { - "start": { - "line": 52, - "column": 21 - }, - "end": { - "line": 52, - "column": 29 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 926, - "end": 928, - "loc": { - "start": { - "line": 52, - "column": 30 - }, - "end": { - "line": 52, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 929, - "end": 932, - "loc": { - "start": { - "line": 52, - "column": 33 - }, - "end": { - "line": 52, - "column": 36 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 933, - "end": 935, - "loc": { - "start": { - "line": 52, - "column": 37 - }, - "end": { - "line": 52, - "column": 39 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 936, - "end": 937, - "loc": { - "start": { - "line": 52, - "column": 40 - }, - "end": { - "line": 52, - "column": 41 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 940, - "end": 942, - "loc": { - "start": { - "line": 53, - "column": 2 - }, - "end": { - "line": 53, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 943, - "end": 944, - "loc": { - "start": { - "line": 53, - "column": 5 - }, - "end": { - "line": 53, - "column": 6 - } - } - }, - { - "type": { - "label": "typeof", - "keyword": "typeof", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "typeof", - "start": 944, - "end": 950, - "loc": { - "start": { - "line": 53, - "column": 6 - }, - "end": { - "line": 53, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 951, - "end": 959, - "loc": { - "start": { - "line": 53, - "column": 13 - }, - "end": { - "line": 53, - "column": 21 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 960, - "end": 963, - "loc": { - "start": { - "line": 53, - "column": 22 - }, - "end": { - "line": 53, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "function", - "start": 964, - "end": 974, - "loc": { - "start": { - "line": 53, - "column": 26 - }, - "end": { - "line": 53, - "column": 36 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 974, - "end": 975, - "loc": { - "start": { - "line": 53, - "column": 36 - }, - "end": { - "line": 53, - "column": 37 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 976, - "end": 977, - "loc": { - "start": { - "line": 53, - "column": 38 - }, - "end": { - "line": 53, - "column": 39 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 982, - "end": 988, - "loc": { - "start": { - "line": 54, - "column": 4 - }, - "end": { - "line": 54, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 989, - "end": 997, - "loc": { - "start": { - "line": 54, - "column": 11 - }, - "end": { - "line": 54, - "column": 19 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 997, - "end": 998, - "loc": { - "start": { - "line": 54, - "column": 19 - }, - "end": { - "line": 54, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 998, - "end": 1001, - "loc": { - "start": { - "line": 54, - "column": 20 - }, - "end": { - "line": 54, - "column": 23 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1001, - "end": 1002, - "loc": { - "start": { - "line": 54, - "column": 23 - }, - "end": { - "line": 54, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "message", - "start": 1002, - "end": 1009, - "loc": { - "start": { - "line": 54, - "column": 24 - }, - "end": { - "line": 54, - "column": 31 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1009, - "end": 1010, - "loc": { - "start": { - "line": 54, - "column": 31 - }, - "end": { - "line": 54, - "column": 32 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1010, - "end": 1011, - "loc": { - "start": { - "line": 54, - "column": 32 - }, - "end": { - "line": 54, - "column": 33 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1014, - "end": 1015, - "loc": { - "start": { - "line": 55, - "column": 2 - }, - "end": { - "line": 55, - "column": 3 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1016, - "end": 1017, - "loc": { - "start": { - "line": 56, - "column": 0 - }, - "end": { - "line": 56, - "column": 1 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1017, - "end": 1018, - "loc": { - "start": { - "line": 56, - "column": 1 - }, - "end": { - "line": 56, - "column": 2 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1020, - "end": 1025, - "loc": { - "start": { - "line": 58, - "column": 0 - }, - "end": { - "line": 58, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 1026, - "end": 1045, - "loc": { - "start": { - "line": 58, - "column": 6 - }, - "end": { - "line": 58, - "column": 25 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1046, - "end": 1047, - "loc": { - "start": { - "line": 58, - "column": 26 - }, - "end": { - "line": 58, - "column": 27 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1048, - "end": 1049, - "loc": { - "start": { - "line": 58, - "column": 28 - }, - "end": { - "line": 58, - "column": 29 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1049, - "end": 1050, - "loc": { - "start": { - "line": 58, - "column": 29 - }, - "end": { - "line": 58, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 1053, - "end": 1059, - "loc": { - "start": { - "line": 59, - "column": 2 - }, - "end": { - "line": 59, - "column": 8 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1060, - "end": 1061, - "loc": { - "start": { - "line": 59, - "column": 9 - }, - "end": { - "line": 59, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "GET", - "start": 1062, - "end": 1067, - "loc": { - "start": { - "line": 59, - "column": 11 - }, - "end": { - "line": 59, - "column": 16 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1067, - "end": 1068, - "loc": { - "start": { - "line": 59, - "column": 16 - }, - "end": { - "line": 59, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 1071, - "end": 1075, - "loc": { - "start": { - "line": 60, - "column": 2 - }, - "end": { - "line": 60, - "column": 6 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1076, - "end": 1077, - "loc": { - "start": { - "line": 60, - "column": 7 - }, - "end": { - "line": 60, - "column": 8 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/", - "start": 1078, - "end": 1081, - "loc": { - "start": { - "line": 60, - "column": 9 - }, - "end": { - "line": 60, - "column": 12 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1081, - "end": 1082, - "loc": { - "start": { - "line": 60, - "column": 12 - }, - "end": { - "line": 60, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 1085, - "end": 1098, - "loc": { - "start": { - "line": 61, - "column": 2 - }, - "end": { - "line": 61, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1098, - "end": 1099, - "loc": { - "start": { - "line": 61, - "column": 15 - }, - "end": { - "line": 61, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1100, - "end": 1101, - "loc": { - "start": { - "line": 61, - "column": 17 - }, - "end": { - "line": 61, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 1106, - "end": 1110, - "loc": { - "start": { - "line": 62, - "column": 4 - }, - "end": { - "line": 62, - "column": 8 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1111, - "end": 1112, - "loc": { - "start": { - "line": 62, - "column": 9 - }, - "end": { - "line": 62, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Basic", - "start": 1113, - "end": 1120, - "loc": { - "start": { - "line": 62, - "column": 11 - }, - "end": { - "line": 62, - "column": 18 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1120, - "end": 1121, - "loc": { - "start": { - "line": 62, - "column": 18 - }, - "end": { - "line": 62, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 1126, - "end": 1131, - "loc": { - "start": { - "line": 63, - "column": 4 - }, - "end": { - "line": 63, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1132, - "end": 1133, - "loc": { - "start": { - "line": 63, - "column": 10 - }, - "end": { - "line": 63, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "settings", - "start": 1134, - "end": 1142, - "loc": { - "start": { - "line": 63, - "column": 12 - }, - "end": { - "line": 63, - "column": 20 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1142, - "end": 1143, - "loc": { - "start": { - "line": 63, - "column": 20 - }, - "end": { - "line": 63, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "api", - "start": 1143, - "end": 1146, - "loc": { - "start": { - "line": 63, - "column": 21 - }, - "end": { - "line": 63, - "column": 24 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1146, - "end": 1147, - "loc": { - "start": { - "line": 63, - "column": 24 - }, - "end": { - "line": 63, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "credentials", - "start": 1147, - "end": 1158, - "loc": { - "start": { - "line": 63, - "column": 25 - }, - "end": { - "line": 63, - "column": 36 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1158, - "end": 1159, - "loc": { - "start": { - "line": 63, - "column": 36 - }, - "end": { - "line": 63, - "column": 37 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1162, - "end": 1163, - "loc": { - "start": { - "line": 64, - "column": 2 - }, - "end": { - "line": 64, - "column": 3 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1164, - "end": 1165, - "loc": { - "start": { - "line": 64, - "column": 4 - }, - "end": { - "line": 64, - "column": 5 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1166, - "end": 1167, - "loc": { - "start": { - "line": 64, - "column": 6 - }, - "end": { - "line": 64, - "column": 7 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1167, - "end": 1168, - "loc": { - "start": { - "line": 64, - "column": 7 - }, - "end": { - "line": 64, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1168, - "end": 1169, - "loc": { - "start": { - "line": 64, - "column": 8 - }, - "end": { - "line": 64, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 1172, - "end": 1179, - "loc": { - "start": { - "line": 65, - "column": 2 - }, - "end": { - "line": 65, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1180, - "end": 1181, - "loc": { - "start": { - "line": 65, - "column": 10 - }, - "end": { - "line": 65, - "column": 11 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1182, - "end": 1183, - "loc": { - "start": { - "line": 65, - "column": 12 - }, - "end": { - "line": 65, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1183, - "end": 1184, - "loc": { - "start": { - "line": 65, - "column": 13 - }, - "end": { - "line": 65, - "column": 14 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1184, - "end": 1185, - "loc": { - "start": { - "line": 65, - "column": 14 - }, - "end": { - "line": 65, - "column": 15 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1186, - "end": 1187, - "loc": { - "start": { - "line": 66, - "column": 0 - }, - "end": { - "line": 66, - "column": 1 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1187, - "end": 1188, - "loc": { - "start": { - "line": 66, - "column": 1 - }, - "end": { - "line": 66, - "column": 2 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1189, - "end": 1191, - "loc": { - "start": { - "line": 66, - "column": 3 - }, - "end": { - "line": 66, - "column": 5 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1192, - "end": 1193, - "loc": { - "start": { - "line": 66, - "column": 6 - }, - "end": { - "line": 66, - "column": 7 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1196, - "end": 1201, - "loc": { - "start": { - "line": 67, - "column": 2 - }, - "end": { - "line": 67, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "options", - "start": 1202, - "end": 1209, - "loc": { - "start": { - "line": 67, - "column": 8 - }, - "end": { - "line": 67, - "column": 15 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1210, - "end": 1211, - "loc": { - "start": { - "line": 67, - "column": 16 - }, - "end": { - "line": 67, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1212, - "end": 1213, - "loc": { - "start": { - "line": 67, - "column": 18 - }, - "end": { - "line": 67, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "host", - "start": 1218, - "end": 1222, - "loc": { - "start": { - "line": 68, - "column": 4 - }, - "end": { - "line": 68, - "column": 8 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1222, - "end": 1223, - "loc": { - "start": { - "line": 68, - "column": 8 - }, - "end": { - "line": 68, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "settings", - "start": 1224, - "end": 1232, - "loc": { - "start": { - "line": 68, - "column": 10 - }, - "end": { - "line": 68, - "column": 18 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1232, - "end": 1233, - "loc": { - "start": { - "line": 68, - "column": 18 - }, - "end": { - "line": 68, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "api", - "start": 1233, - "end": 1236, - "loc": { - "start": { - "line": 68, - "column": 19 - }, - "end": { - "line": 68, - "column": 22 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1236, - "end": 1237, - "loc": { - "start": { - "line": 68, - "column": 22 - }, - "end": { - "line": 68, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "host", - "start": 1237, - "end": 1241, - "loc": { - "start": { - "line": 68, - "column": 23 - }, - "end": { - "line": 68, - "column": 27 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1241, - "end": 1242, - "loc": { - "start": { - "line": 68, - "column": 27 - }, - "end": { - "line": 68, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "port", - "start": 1247, - "end": 1251, - "loc": { - "start": { - "line": 69, - "column": 4 - }, - "end": { - "line": 69, - "column": 8 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1251, - "end": 1252, - "loc": { - "start": { - "line": 69, - "column": 8 - }, - "end": { - "line": 69, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "settings", - "start": 1253, - "end": 1261, - "loc": { - "start": { - "line": 69, - "column": 10 - }, - "end": { - "line": 69, - "column": 18 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1261, - "end": 1262, - "loc": { - "start": { - "line": 69, - "column": 18 - }, - "end": { - "line": 69, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "api", - "start": 1262, - "end": 1265, - "loc": { - "start": { - "line": 69, - "column": 19 - }, - "end": { - "line": 69, - "column": 22 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1265, - "end": 1266, - "loc": { - "start": { - "line": 69, - "column": 22 - }, - "end": { - "line": 69, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "port", - "start": 1266, - "end": 1270, - "loc": { - "start": { - "line": 69, - "column": 23 - }, - "end": { - "line": 69, - "column": 27 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1270, - "end": 1271, - "loc": { - "start": { - "line": 69, - "column": 27 - }, - "end": { - "line": 69, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 1276, - "end": 1282, - "loc": { - "start": { - "line": 70, - "column": 4 - }, - "end": { - "line": 70, - "column": 10 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1282, - "end": 1283, - "loc": { - "start": { - "line": 70, - "column": 10 - }, - "end": { - "line": 70, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 1288, - "end": 1292, - "loc": { - "start": { - "line": 71, - "column": 4 - }, - "end": { - "line": 71, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1292, - "end": 1293, - "loc": { - "start": { - "line": 71, - "column": 8 - }, - "end": { - "line": 71, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 1298, - "end": 1305, - "loc": { - "start": { - "line": 72, - "column": 4 - }, - "end": { - "line": 72, - "column": 11 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1305, - "end": 1306, - "loc": { - "start": { - "line": 72, - "column": 11 - }, - "end": { - "line": 72, - "column": 12 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1309, - "end": 1310, - "loc": { - "start": { - "line": 73, - "column": 2 - }, - "end": { - "line": 73, - "column": 3 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1310, - "end": 1311, - "loc": { - "start": { - "line": 73, - "column": 3 - }, - "end": { - "line": 73, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "options", - "start": 1314, - "end": 1321, - "loc": { - "start": { - "line": 74, - "column": 2 - }, - "end": { - "line": 74, - "column": 9 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1321, - "end": 1322, - "loc": { - "start": { - "line": 74, - "column": 9 - }, - "end": { - "line": 74, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 1322, - "end": 1329, - "loc": { - "start": { - "line": 74, - "column": 10 - }, - "end": { - "line": 74, - "column": 17 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1329, - "end": 1330, - "loc": { - "start": { - "line": 74, - "column": 17 - }, - "end": { - "line": 74, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Authorization", - "start": 1330, - "end": 1343, - "loc": { - "start": { - "line": 74, - "column": 18 - }, - "end": { - "line": 74, - "column": 31 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1344, - "end": 1345, - "loc": { - "start": { - "line": 74, - "column": 32 - }, - "end": { - "line": 74, - "column": 33 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1346, - "end": 1347, - "loc": { - "start": { - "line": 74, - "column": 34 - }, - "end": { - "line": 74, - "column": 35 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 1347, - "end": 1347, - "loc": { - "start": { - "line": 74, - "column": 35 - }, - "end": { - "line": 74, - "column": 35 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1347, - "end": 1349, - "loc": { - "start": { - "line": 74, - "column": 35 - }, - "end": { - "line": 74, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 1349, - "end": 1353, - "loc": { - "start": { - "line": 74, - "column": 37 - }, - "end": { - "line": 74, - "column": 41 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1353, - "end": 1354, - "loc": { - "start": { - "line": 74, - "column": 41 - }, - "end": { - "line": 74, - "column": 42 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": " ", - "start": 1354, - "end": 1355, - "loc": { - "start": { - "line": 74, - "column": 42 - }, - "end": { - "line": 74, - "column": 43 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1355, - "end": 1357, - "loc": { - "start": { - "line": 74, - "column": 43 - }, - "end": { - "line": 74, - "column": 45 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 1357, - "end": 1362, - "loc": { - "start": { - "line": 74, - "column": 45 - }, - "end": { - "line": 74, - "column": 50 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1362, - "end": 1363, - "loc": { - "start": { - "line": 74, - "column": 50 - }, - "end": { - "line": 74, - "column": 51 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 1363, - "end": 1363, - "loc": { - "start": { - "line": 74, - "column": 51 - }, - "end": { - "line": 74, - "column": 51 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1363, - "end": 1364, - "loc": { - "start": { - "line": 74, - "column": 51 - }, - "end": { - "line": 74, - "column": 52 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1364, - "end": 1365, - "loc": { - "start": { - "line": 74, - "column": 52 - }, - "end": { - "line": 74, - "column": 53 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 1368, - "end": 1374, - "loc": { - "start": { - "line": 75, - "column": 2 - }, - "end": { - "line": 75, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "options", - "start": 1375, - "end": 1382, - "loc": { - "start": { - "line": 75, - "column": 9 - }, - "end": { - "line": 75, - "column": 16 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1382, - "end": 1383, - "loc": { - "start": { - "line": 75, - "column": 16 - }, - "end": { - "line": 75, - "column": 17 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1384, - "end": 1385, - "loc": { - "start": { - "line": 76, - "column": 0 - }, - "end": { - "line": 76, - "column": 1 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1385, - "end": 1386, - "loc": { - "start": { - "line": 76, - "column": 1 - }, - "end": { - "line": 76, - "column": 2 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1388, - "end": 1393, - "loc": { - "start": { - "line": 78, - "column": 0 - }, - "end": { - "line": 78, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "setProductionApiHost", - "start": 1394, - "end": 1414, - "loc": { - "start": { - "line": 78, - "column": 6 - }, - "end": { - "line": 78, - "column": 26 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1415, - "end": 1416, - "loc": { - "start": { - "line": 78, - "column": 27 - }, - "end": { - "line": 78, - "column": 28 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1417, - "end": 1418, - "loc": { - "start": { - "line": 78, - "column": 29 - }, - "end": { - "line": 78, - "column": 30 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1418, - "end": 1419, - "loc": { - "start": { - "line": 78, - "column": 30 - }, - "end": { - "line": 78, - "column": 31 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1420, - "end": 1422, - "loc": { - "start": { - "line": 78, - "column": 32 - }, - "end": { - "line": 78, - "column": 34 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1423, - "end": 1424, - "loc": { - "start": { - "line": 78, - "column": 35 - }, - "end": { - "line": 78, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "settings", - "start": 1427, - "end": 1435, - "loc": { - "start": { - "line": 79, - "column": 2 - }, - "end": { - "line": 79, - "column": 10 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1435, - "end": 1436, - "loc": { - "start": { - "line": 79, - "column": 10 - }, - "end": { - "line": 79, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "api", - "start": 1436, - "end": 1439, - "loc": { - "start": { - "line": 79, - "column": 11 - }, - "end": { - "line": 79, - "column": 14 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1439, - "end": 1440, - "loc": { - "start": { - "line": 79, - "column": 14 - }, - "end": { - "line": 79, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "host", - "start": 1440, - "end": 1444, - "loc": { - "start": { - "line": 79, - "column": 15 - }, - "end": { - "line": 79, - "column": 19 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1445, - "end": 1446, - "loc": { - "start": { - "line": 79, - "column": 20 - }, - "end": { - "line": 79, - "column": 21 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "api.signnow.com", - "start": 1447, - "end": 1464, - "loc": { - "start": { - "line": 79, - "column": 22 - }, - "end": { - "line": 79, - "column": 39 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1464, - "end": 1465, - "loc": { - "start": { - "line": 79, - "column": 39 - }, - "end": { - "line": 79, - "column": 40 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1466, - "end": 1467, - "loc": { - "start": { - "line": 80, - "column": 0 - }, - "end": { - "line": 80, - "column": 1 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1467, - "end": 1468, - "loc": { - "start": { - "line": 80, - "column": 1 - }, - "end": { - "line": 80, - "column": 2 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1470, - "end": 1475, - "loc": { - "start": { - "line": 82, - "column": 0 - }, - "end": { - "line": 82, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "setCredentials", - "start": 1476, - "end": 1490, - "loc": { - "start": { - "line": 82, - "column": 6 - }, - "end": { - "line": 82, - "column": 20 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1491, - "end": 1492, - "loc": { - "start": { - "line": 82, - "column": 21 - }, - "end": { - "line": 82, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "credentials", - "start": 1493, - "end": 1504, - "loc": { - "start": { - "line": 82, - "column": 23 - }, - "end": { - "line": 82, - "column": 34 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1505, - "end": 1507, - "loc": { - "start": { - "line": 82, - "column": 35 - }, - "end": { - "line": 82, - "column": 37 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1508, - "end": 1509, - "loc": { - "start": { - "line": 82, - "column": 38 - }, - "end": { - "line": 82, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "settings", - "start": 1512, - "end": 1520, - "loc": { - "start": { - "line": 83, - "column": 2 - }, - "end": { - "line": 83, - "column": 10 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1520, - "end": 1521, - "loc": { - "start": { - "line": 83, - "column": 10 - }, - "end": { - "line": 83, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "api", - "start": 1521, - "end": 1524, - "loc": { - "start": { - "line": 83, - "column": 11 - }, - "end": { - "line": 83, - "column": 14 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1524, - "end": 1525, - "loc": { - "start": { - "line": 83, - "column": 14 - }, - "end": { - "line": 83, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "credentials", - "start": 1525, - "end": 1536, - "loc": { - "start": { - "line": 83, - "column": 15 - }, - "end": { - "line": 83, - "column": 26 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1537, - "end": 1538, - "loc": { - "start": { - "line": 83, - "column": 27 - }, - "end": { - "line": 83, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "credentials", - "start": 1539, - "end": 1550, - "loc": { - "start": { - "line": 83, - "column": 29 - }, - "end": { - "line": 83, - "column": 40 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1550, - "end": 1551, - "loc": { - "start": { - "line": 83, - "column": 40 - }, - "end": { - "line": 83, - "column": 41 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1552, - "end": 1553, - "loc": { - "start": { - "line": 84, - "column": 0 - }, - "end": { - "line": 84, - "column": 1 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1553, - "end": 1554, - "loc": { - "start": { - "line": 84, - "column": 1 - }, - "end": { - "line": 84, - "column": 2 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1556, - "end": 1561, - "loc": { - "start": { - "line": 86, - "column": 0 - }, - "end": { - "line": 86, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getUserAgent", - "start": 1562, - "end": 1574, - "loc": { - "start": { - "line": 86, - "column": 6 - }, - "end": { - "line": 86, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1575, - "end": 1576, - "loc": { - "start": { - "line": 86, - "column": 19 - }, - "end": { - "line": 86, - "column": 20 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1577, - "end": 1578, - "loc": { - "start": { - "line": 86, - "column": 21 - }, - "end": { - "line": 86, - "column": 22 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1578, - "end": 1579, - "loc": { - "start": { - "line": 86, - "column": 22 - }, - "end": { - "line": 86, - "column": 23 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1580, - "end": 1582, - "loc": { - "start": { - "line": 86, - "column": 24 - }, - "end": { - "line": 86, - "column": 26 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1583, - "end": 1584, - "loc": { - "start": { - "line": 86, - "column": 27 - }, - "end": { - "line": 86, - "column": 28 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 1584, - "end": 1584, - "loc": { - "start": { - "line": 86, - "column": 28 - }, - "end": { - "line": 86, - "column": 28 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1584, - "end": 1586, - "loc": { - "start": { - "line": 86, - "column": 28 - }, - "end": { - "line": 86, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "name", - "start": 1586, - "end": 1590, - "loc": { - "start": { - "line": 86, - "column": 30 - }, - "end": { - "line": 86, - "column": 34 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1590, - "end": 1591, - "loc": { - "start": { - "line": 86, - "column": 34 - }, - "end": { - "line": 86, - "column": 35 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": " / v", - "start": 1591, - "end": 1595, - "loc": { - "start": { - "line": 86, - "column": 35 - }, - "end": { - "line": 86, - "column": 39 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1595, - "end": 1597, - "loc": { - "start": { - "line": 86, - "column": 39 - }, - "end": { - "line": 86, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "version", - "start": 1597, - "end": 1604, - "loc": { - "start": { - "line": 86, - "column": 41 - }, - "end": { - "line": 86, - "column": 48 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1604, - "end": 1605, - "loc": { - "start": { - "line": 86, - "column": 48 - }, - "end": { - "line": 86, - "column": 49 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": ", platform node.js, ", - "start": 1605, - "end": 1625, - "loc": { - "start": { - "line": 86, - "column": 49 - }, - "end": { - "line": 86, - "column": 69 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1625, - "end": 1627, - "loc": { - "start": { - "line": 86, - "column": 69 - }, - "end": { - "line": 86, - "column": 71 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "description", - "start": 1627, - "end": 1638, - "loc": { - "start": { - "line": 86, - "column": 71 - }, - "end": { - "line": 86, - "column": 82 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1638, - "end": 1639, - "loc": { - "start": { - "line": 86, - "column": 82 - }, - "end": { - "line": 86, - "column": 83 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 1639, - "end": 1639, - "loc": { - "start": { - "line": 86, - "column": 83 - }, - "end": { - "line": 86, - "column": 83 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1639, - "end": 1640, - "loc": { - "start": { - "line": 86, - "column": 83 - }, - "end": { - "line": 86, - "column": 84 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1640, - "end": 1641, - "loc": { - "start": { - "line": 86, - "column": 84 - }, - "end": { - "line": 86, - "column": 85 - } - } - }, - { - "type": { - "label": "export", - "keyword": "export", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "export", - "start": 1643, - "end": 1649, - "loc": { - "start": { - "line": 88, - "column": 0 - }, - "end": { - "line": 88, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1650, - "end": 1651, - "loc": { - "start": { - "line": 88, - "column": 7 - }, - "end": { - "line": 88, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 1652, - "end": 1667, - "loc": { - "start": { - "line": 88, - "column": 9 - }, - "end": { - "line": 88, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1667, - "end": 1668, - "loc": { - "start": { - "line": 88, - "column": 24 - }, - "end": { - "line": 88, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 1671, - "end": 1683, - "loc": { - "start": { - "line": 89, - "column": 2 - }, - "end": { - "line": 89, - "column": 14 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1683, - "end": 1684, - "loc": { - "start": { - "line": 89, - "column": 14 - }, - "end": { - "line": 89, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 1687, - "end": 1706, - "loc": { - "start": { - "line": 90, - "column": 2 - }, - "end": { - "line": 90, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1706, - "end": 1707, - "loc": { - "start": { - "line": 90, - "column": 21 - }, - "end": { - "line": 90, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "setProductionApiHost", - "start": 1710, - "end": 1730, - "loc": { - "start": { - "line": 91, - "column": 2 - }, - "end": { - "line": 91, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1730, - "end": 1731, - "loc": { - "start": { - "line": 91, - "column": 22 - }, - "end": { - "line": 91, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "setCredentials", - "start": 1734, - "end": 1748, - "loc": { - "start": { - "line": 92, - "column": 2 - }, - "end": { - "line": 92, - "column": 16 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1748, - "end": 1749, - "loc": { - "start": { - "line": 92, - "column": 16 - }, - "end": { - "line": 92, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getUserAgent", - "start": 1752, - "end": 1764, - "loc": { - "start": { - "line": 93, - "column": 2 - }, - "end": { - "line": 93, - "column": 14 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1764, - "end": 1765, - "loc": { - "start": { - "line": 93, - "column": 14 - }, - "end": { - "line": 93, - "column": 15 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1766, - "end": 1767, - "loc": { - "start": { - "line": 93, - "column": 16 - }, - "end": { - "line": 93, - "column": 17 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1767, - "end": 1768, - "loc": { - "start": { - "line": 93, - "column": 17 - }, - "end": { - "line": 93, - "column": 18 - } - } - }, - { - "type": { - "label": "eof", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1769, - "end": 1769, - "loc": { - "start": { - "line": 94, - "column": 0 - }, - "end": { - "line": 94, - "column": 0 - } - } - } - ] -} \ No newline at end of file diff --git a/docs/ast/source/document-group-template/index.js.json b/docs/ast/source/document-group-template/index.js.json deleted file mode 100644 index 89516690..00000000 --- a/docs/ast/source/document-group-template/index.js.json +++ /dev/null @@ -1,36765 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 10644, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 304, - "column": 0 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 10644, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 304, - "column": 0 - } - }, - "sourceType": "module", - "body": [ - { - "type": "ImportDeclaration", - "start": 14, - "end": 40, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 26 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - } - }, - "local": { - "type": "Identifier", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - }, - "identifierName": "https" - }, - "name": "https" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 18 - }, - "end": { - "line": 2, - "column": 25 - } - }, - "extra": { - "rawValue": "https", - "raw": "'https'" - }, - "value": "https" - } - }, - { - "type": "ImportDeclaration", - "start": 41, - "end": 127, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 7, - "column": 19 - } - }, - "specifiers": [ - { - "type": "ImportSpecifier", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - } - }, - "imported": { - "type": "Identifier", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "local": { - "type": "Identifier", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - } - }, - { - "type": "ImportSpecifier", - "start": 71, - "end": 83, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 14 - } - }, - "imported": { - "type": "Identifier", - "start": 71, - "end": 83, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 14 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "local": { - "type": "Identifier", - "start": 71, - "end": 83, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 14 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - } - }, - { - "type": "ImportSpecifier", - "start": 87, - "end": 106, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 21 - } - }, - "imported": { - "type": "Identifier", - "start": 87, - "end": 106, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 21 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "local": { - "type": "Identifier", - "start": 87, - "end": 106, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 21 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 115, - "end": 126, - "loc": { - "start": { - "line": 7, - "column": 7 - }, - "end": { - "line": 7, - "column": 18 - } - }, - "extra": { - "rawValue": "../common", - "raw": "'../common'" - }, - "value": "../common" - } - }, - { - "type": "ImportDeclaration", - "start": 128, - "end": 174, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 8, - "column": 46 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 135, - "end": 148, - "loc": { - "start": { - "line": 8, - "column": 7 - }, - "end": { - "line": 8, - "column": 20 - } - }, - "local": { - "type": "Identifier", - "start": 135, - "end": 148, - "loc": { - "start": { - "line": 8, - "column": 7 - }, - "end": { - "line": 8, - "column": 20 - }, - "identifierName": "documentGroup" - }, - "name": "documentGroup" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 154, - "end": 173, - "loc": { - "start": { - "line": 8, - "column": 26 - }, - "end": { - "line": 8, - "column": 45 - } - }, - "extra": { - "rawValue": "../document-group", - "raw": "'../document-group'" - }, - "value": "../document-group" - } - }, - { - "type": "VariableDeclaration", - "start": 175, - "end": 224, - "loc": { - "start": { - "line": 9, - "column": 0 - }, - "end": { - "line": 9, - "column": 49 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 181, - "end": 223, - "loc": { - "start": { - "line": 9, - "column": 6 - }, - "end": { - "line": 9, - "column": 48 - } - }, - "id": { - "type": "Identifier", - "start": 181, - "end": 200, - "loc": { - "start": { - "line": 9, - "column": 6 - }, - "end": { - "line": 9, - "column": 25 - }, - "identifierName": "createDocumentGroup" - }, - "name": "createDocumentGroup" - }, - "init": { - "type": "MemberExpression", - "start": 203, - "end": 223, - "loc": { - "start": { - "line": 9, - "column": 28 - }, - "end": { - "line": 9, - "column": 48 - } - }, - "object": { - "type": "Identifier", - "start": 203, - "end": 216, - "loc": { - "start": { - "line": 9, - "column": 28 - }, - "end": { - "line": 9, - "column": 41 - }, - "identifierName": "documentGroup" - }, - "name": "documentGroup" - }, - "property": { - "type": "Identifier", - "start": 217, - "end": 223, - "loc": { - "start": { - "line": 9, - "column": 42 - }, - "end": { - "line": 9, - "column": 48 - }, - "identifierName": "create" - }, - "name": "create" - }, - "computed": false - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 225, - "end": 274, - "loc": { - "start": { - "line": 10, - "column": 0 - }, - "end": { - "line": 10, - "column": 49 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 231, - "end": 273, - "loc": { - "start": { - "line": 10, - "column": 6 - }, - "end": { - "line": 10, - "column": 48 - } - }, - "id": { - "type": "Identifier", - "start": 231, - "end": 250, - "loc": { - "start": { - "line": 10, - "column": 6 - }, - "end": { - "line": 10, - "column": 25 - }, - "identifierName": "inviteDocumentGroup" - }, - "name": "inviteDocumentGroup" - }, - "init": { - "type": "MemberExpression", - "start": 253, - "end": 273, - "loc": { - "start": { - "line": 10, - "column": 28 - }, - "end": { - "line": 10, - "column": 48 - } - }, - "object": { - "type": "Identifier", - "start": 253, - "end": 266, - "loc": { - "start": { - "line": 10, - "column": 28 - }, - "end": { - "line": 10, - "column": 41 - }, - "identifierName": "documentGroup" - }, - "name": "documentGroup" - }, - "property": { - "type": "Identifier", - "start": 267, - "end": 273, - "loc": { - "start": { - "line": 10, - "column": 42 - }, - "end": { - "line": 10, - "column": 48 - }, - "identifierName": "invite" - }, - "name": "invite" - }, - "computed": false - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 275, - "end": 320, - "loc": { - "start": { - "line": 11, - "column": 0 - }, - "end": { - "line": 11, - "column": 45 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 281, - "end": 319, - "loc": { - "start": { - "line": 11, - "column": 6 - }, - "end": { - "line": 11, - "column": 44 - } - }, - "id": { - "type": "Identifier", - "start": 281, - "end": 298, - "loc": { - "start": { - "line": 11, - "column": 6 - }, - "end": { - "line": 11, - "column": 23 - }, - "identifierName": "viewDocumentGroup" - }, - "name": "viewDocumentGroup" - }, - "init": { - "type": "MemberExpression", - "start": 301, - "end": 319, - "loc": { - "start": { - "line": 11, - "column": 26 - }, - "end": { - "line": 11, - "column": 44 - } - }, - "object": { - "type": "Identifier", - "start": 301, - "end": 314, - "loc": { - "start": { - "line": 11, - "column": 26 - }, - "end": { - "line": 11, - "column": 39 - }, - "identifierName": "documentGroup" - }, - "name": "documentGroup" - }, - "property": { - "type": "Identifier", - "start": 315, - "end": 319, - "loc": { - "start": { - "line": 11, - "column": 40 - }, - "end": { - "line": 11, - "column": 44 - }, - "identifierName": "view" - }, - "name": "view" - }, - "computed": false - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document Group Template methods\n ", - "start": 322, - "end": 364, - "loc": { - "start": { - "line": 13, - "column": 0 - }, - "end": { - "line": 15, - "column": 3 - } - } - } - ] - }, - { - "type": "Identifier", - "start": 365, - "end": 10604, - "loc": { - "start": { - "line": 16, - "column": 0 - }, - "end": { - "line": 301, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 371, - "end": 392, - "loc": { - "start": { - "line": 16, - "column": 6 - }, - "end": { - "line": 16, - "column": 27 - }, - "identifierName": "DocumentGroupTemplate" - }, - "name": "DocumentGroupTemplate", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 393, - "end": 10604, - "loc": { - "start": { - "line": 16, - "column": 28 - }, - "end": { - "line": 301, - "column": 1 - } - }, - "body": [ - { - "type": "ClassMethod", - "start": 3231, - "end": 3917, - "loc": { - "start": { - "line": 76, - "column": 2 - }, - "end": { - "line": 104, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3238, - "end": 3244, - "loc": { - "start": { - "line": 76, - "column": 9 - }, - "end": { - "line": 76, - "column": 15 - }, - "identifierName": "create" - }, - "name": "create" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 3246, - "end": 3326, - "loc": { - "start": { - "line": 76, - "column": 17 - }, - "end": { - "line": 81, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3252, - "end": 3257, - "loc": { - "start": { - "line": 77, - "column": 4 - }, - "end": { - "line": 77, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3252, - "end": 3257, - "loc": { - "start": { - "line": 77, - "column": 4 - }, - "end": { - "line": 77, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 3252, - "end": 3257, - "loc": { - "start": { - "line": 77, - "column": 4 - }, - "end": { - "line": 77, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3263, - "end": 3275, - "loc": { - "start": { - "line": 78, - "column": 4 - }, - "end": { - "line": 78, - "column": 16 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3263, - "end": 3275, - "loc": { - "start": { - "line": 78, - "column": 4 - }, - "end": { - "line": 78, - "column": 16 - }, - "identifierName": "template_ids" - }, - "name": "template_ids" - }, - "value": { - "type": "Identifier", - "start": 3263, - "end": 3275, - "loc": { - "start": { - "line": 78, - "column": 4 - }, - "end": { - "line": 78, - "column": 16 - }, - "identifierName": "template_ids" - }, - "name": "template_ids" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3281, - "end": 3300, - "loc": { - "start": { - "line": 79, - "column": 4 - }, - "end": { - "line": 79, - "column": 23 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3281, - "end": 3300, - "loc": { - "start": { - "line": 79, - "column": 4 - }, - "end": { - "line": 79, - "column": 23 - }, - "identifierName": "template_group_name" - }, - "name": "template_group_name" - }, - "value": { - "type": "Identifier", - "start": 3281, - "end": 3300, - "loc": { - "start": { - "line": 79, - "column": 4 - }, - "end": { - "line": 79, - "column": 23 - }, - "identifierName": "template_group_name" - }, - "name": "template_group_name" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3306, - "end": 3321, - "loc": { - "start": { - "line": 80, - "column": 4 - }, - "end": { - "line": 80, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3306, - "end": 3321, - "loc": { - "start": { - "line": 80, - "column": 4 - }, - "end": { - "line": 80, - "column": 19 - }, - "identifierName": "routing_details" - }, - "name": "routing_details" - }, - "value": { - "type": "Identifier", - "start": 3306, - "end": 3321, - "loc": { - "start": { - "line": 80, - "column": 4 - }, - "end": { - "line": 80, - "column": 19 - }, - "identifierName": "routing_details" - }, - "name": "routing_details" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 3328, - "end": 3336, - "loc": { - "start": { - "line": 81, - "column": 5 - }, - "end": { - "line": 81, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 3338, - "end": 3917, - "loc": { - "start": { - "line": 81, - "column": 15 - }, - "end": { - "line": 104, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 3344, - "end": 3455, - "loc": { - "start": { - "line": 82, - "column": 4 - }, - "end": { - "line": 86, - "column": 7 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3350, - "end": 3454, - "loc": { - "start": { - "line": 82, - "column": 10 - }, - "end": { - "line": 86, - "column": 6 - } - }, - "id": { - "type": "Identifier", - "start": 3350, - "end": 3358, - "loc": { - "start": { - "line": 82, - "column": 10 - }, - "end": { - "line": 82, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 3361, - "end": 3454, - "loc": { - "start": { - "line": 82, - "column": 21 - }, - "end": { - "line": 86, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3361, - "end": 3375, - "loc": { - "start": { - "line": 82, - "column": 21 - }, - "end": { - "line": 82, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 3361, - "end": 3365, - "loc": { - "start": { - "line": 82, - "column": 21 - }, - "end": { - "line": 82, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 3366, - "end": 3375, - "loc": { - "start": { - "line": 82, - "column": 26 - }, - "end": { - "line": 82, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 3376, - "end": 3453, - "loc": { - "start": { - "line": 82, - "column": 36 - }, - "end": { - "line": 86, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3384, - "end": 3396, - "loc": { - "start": { - "line": 83, - "column": 6 - }, - "end": { - "line": 83, - "column": 18 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3384, - "end": 3396, - "loc": { - "start": { - "line": 83, - "column": 6 - }, - "end": { - "line": 83, - "column": 18 - }, - "identifierName": "template_ids" - }, - "name": "template_ids" - }, - "value": { - "type": "Identifier", - "start": 3384, - "end": 3396, - "loc": { - "start": { - "line": 83, - "column": 6 - }, - "end": { - "line": 83, - "column": 18 - }, - "identifierName": "template_ids" - }, - "name": "template_ids" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3404, - "end": 3423, - "loc": { - "start": { - "line": 84, - "column": 6 - }, - "end": { - "line": 84, - "column": 25 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3404, - "end": 3423, - "loc": { - "start": { - "line": 84, - "column": 6 - }, - "end": { - "line": 84, - "column": 25 - }, - "identifierName": "template_group_name" - }, - "name": "template_group_name" - }, - "value": { - "type": "Identifier", - "start": 3404, - "end": 3423, - "loc": { - "start": { - "line": 84, - "column": 6 - }, - "end": { - "line": 84, - "column": 25 - }, - "identifierName": "template_group_name" - }, - "name": "template_group_name" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3431, - "end": 3446, - "loc": { - "start": { - "line": 85, - "column": 6 - }, - "end": { - "line": 85, - "column": 21 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3431, - "end": 3446, - "loc": { - "start": { - "line": 85, - "column": 6 - }, - "end": { - "line": 85, - "column": 21 - }, - "identifierName": "routing_details" - }, - "name": "routing_details" - }, - "value": { - "type": "Identifier", - "start": 3431, - "end": 3446, - "loc": { - "start": { - "line": 85, - "column": 6 - }, - "end": { - "line": 85, - "column": 21 - }, - "identifierName": "routing_details" - }, - "name": "routing_details" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 3460, - "end": 3872, - "loc": { - "start": { - "line": 87, - "column": 4 - }, - "end": { - "line": 100, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3466, - "end": 3871, - "loc": { - "start": { - "line": 87, - "column": 10 - }, - "end": { - "line": 100, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 3466, - "end": 3469, - "loc": { - "start": { - "line": 87, - "column": 10 - }, - "end": { - "line": 87, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 3472, - "end": 3871, - "loc": { - "start": { - "line": 87, - "column": 16 - }, - "end": { - "line": 100, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3472, - "end": 3838, - "loc": { - "start": { - "line": 87, - "column": 16 - }, - "end": { - "line": 100, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 3472, - "end": 3828, - "loc": { - "start": { - "line": 87, - "column": 16 - }, - "end": { - "line": 99, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3472, - "end": 3492, - "loc": { - "start": { - "line": 87, - "column": 16 - }, - "end": { - "line": 88, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 3472, - "end": 3477, - "loc": { - "start": { - "line": 87, - "column": 16 - }, - "end": { - "line": 87, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 3485, - "end": 3492, - "loc": { - "start": { - "line": 88, - "column": 7 - }, - "end": { - "line": 88, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 3493, - "end": 3800, - "loc": { - "start": { - "line": 88, - "column": 15 - }, - "end": { - "line": 99, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 3493, - "end": 3512, - "loc": { - "start": { - "line": 88, - "column": 15 - }, - "end": { - "line": 88, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 3513, - "end": 3799, - "loc": { - "start": { - "line": 88, - "column": 35 - }, - "end": { - "line": 99, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3523, - "end": 3537, - "loc": { - "start": { - "line": 89, - "column": 8 - }, - "end": { - "line": 89, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3523, - "end": 3529, - "loc": { - "start": { - "line": 89, - "column": 8 - }, - "end": { - "line": 89, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 3531, - "end": 3537, - "loc": { - "start": { - "line": 89, - "column": 16 - }, - "end": { - "line": 89, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 3547, - "end": 3578, - "loc": { - "start": { - "line": 90, - "column": 8 - }, - "end": { - "line": 90, - "column": 39 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3547, - "end": 3551, - "loc": { - "start": { - "line": 90, - "column": 8 - }, - "end": { - "line": 90, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 3553, - "end": 3578, - "loc": { - "start": { - "line": 90, - "column": 14 - }, - "end": { - "line": 90, - "column": 39 - } - }, - "extra": { - "rawValue": "/documentgroup/template", - "raw": "'/documentgroup/template'" - }, - "value": "/documentgroup/template" - } - }, - { - "type": "ObjectProperty", - "start": 3588, - "end": 3657, - "loc": { - "start": { - "line": 91, - "column": 8 - }, - "end": { - "line": 94, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3588, - "end": 3601, - "loc": { - "start": { - "line": 91, - "column": 8 - }, - "end": { - "line": 91, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 3603, - "end": 3657, - "loc": { - "start": { - "line": 91, - "column": 23 - }, - "end": { - "line": 94, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3615, - "end": 3629, - "loc": { - "start": { - "line": 92, - "column": 10 - }, - "end": { - "line": 92, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3615, - "end": 3619, - "loc": { - "start": { - "line": 92, - "column": 10 - }, - "end": { - "line": 92, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 3621, - "end": 3629, - "loc": { - "start": { - "line": 92, - "column": 16 - }, - "end": { - "line": 92, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 3641, - "end": 3646, - "loc": { - "start": { - "line": 93, - "column": 10 - }, - "end": { - "line": 93, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3641, - "end": 3646, - "loc": { - "start": { - "line": 93, - "column": 10 - }, - "end": { - "line": 93, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 3641, - "end": 3646, - "loc": { - "start": { - "line": 93, - "column": 10 - }, - "end": { - "line": 93, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 3667, - "end": 3790, - "loc": { - "start": { - "line": 95, - "column": 8 - }, - "end": { - "line": 98, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3667, - "end": 3674, - "loc": { - "start": { - "line": 95, - "column": 8 - }, - "end": { - "line": 95, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 3676, - "end": 3790, - "loc": { - "start": { - "line": 95, - "column": 17 - }, - "end": { - "line": 98, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3688, - "end": 3722, - "loc": { - "start": { - "line": 96, - "column": 10 - }, - "end": { - "line": 96, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 3688, - "end": 3702, - "loc": { - "start": { - "line": 96, - "column": 10 - }, - "end": { - "line": 96, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 3704, - "end": 3722, - "loc": { - "start": { - "line": 96, - "column": 26 - }, - "end": { - "line": 96, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 3734, - "end": 3779, - "loc": { - "start": { - "line": 97, - "column": 10 - }, - "end": { - "line": 97, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 3734, - "end": 3750, - "loc": { - "start": { - "line": 97, - "column": 10 - }, - "end": { - "line": 97, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 3752, - "end": 3779, - "loc": { - "start": { - "line": 97, - "column": 28 - }, - "end": { - "line": 97, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3752, - "end": 3769, - "loc": { - "start": { - "line": 97, - "column": 28 - }, - "end": { - "line": 97, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 3752, - "end": 3758, - "loc": { - "start": { - "line": 97, - "column": 28 - }, - "end": { - "line": 97, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 3759, - "end": 3769, - "loc": { - "start": { - "line": 97, - "column": 35 - }, - "end": { - "line": 97, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 3770, - "end": 3778, - "loc": { - "start": { - "line": 97, - "column": 46 - }, - "end": { - "line": 97, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 3802, - "end": 3827, - "loc": { - "start": { - "line": 99, - "column": 10 - }, - "end": { - "line": 99, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 3802, - "end": 3817, - "loc": { - "start": { - "line": 99, - "column": 10 - }, - "end": { - "line": 99, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3818, - "end": 3826, - "loc": { - "start": { - "line": 99, - "column": 26 - }, - "end": { - "line": 99, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 3836, - "end": 3838, - "loc": { - "start": { - "line": 100, - "column": 7 - }, - "end": { - "line": 100, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 3839, - "end": 3846, - "loc": { - "start": { - "line": 100, - "column": 10 - }, - "end": { - "line": 100, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 3848, - "end": 3870, - "loc": { - "start": { - "line": 100, - "column": 19 - }, - "end": { - "line": 100, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 3848, - "end": 3860, - "loc": { - "start": { - "line": 100, - "column": 19 - }, - "end": { - "line": 100, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3861, - "end": 3869, - "loc": { - "start": { - "line": 100, - "column": 32 - }, - "end": { - "line": 100, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 3878, - "end": 3898, - "loc": { - "start": { - "line": 102, - "column": 4 - }, - "end": { - "line": 102, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 3878, - "end": 3897, - "loc": { - "start": { - "line": 102, - "column": 4 - }, - "end": { - "line": 102, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3878, - "end": 3887, - "loc": { - "start": { - "line": 102, - "column": 4 - }, - "end": { - "line": 102, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 3878, - "end": 3881, - "loc": { - "start": { - "line": 102, - "column": 4 - }, - "end": { - "line": 102, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 3882, - "end": 3887, - "loc": { - "start": { - "line": 102, - "column": 8 - }, - "end": { - "line": 102, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 3888, - "end": 3896, - "loc": { - "start": { - "line": 102, - "column": 14 - }, - "end": { - "line": 102, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 3903, - "end": 3913, - "loc": { - "start": { - "line": 103, - "column": 4 - }, - "end": { - "line": 103, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 3903, - "end": 3912, - "loc": { - "start": { - "line": 103, - "column": 4 - }, - "end": { - "line": 103, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3903, - "end": 3910, - "loc": { - "start": { - "line": 103, - "column": 4 - }, - "end": { - "line": 103, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 3903, - "end": 3906, - "loc": { - "start": { - "line": 103, - "column": 4 - }, - "end": { - "line": 103, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 3907, - "end": 3910, - "loc": { - "start": { - "line": 103, - "column": 8 - }, - "end": { - "line": 103, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document Group Template invite email congfigurations\n * @typedef {Object} DocumentGroupTemplateInviteEmail\n * @property {string} [email] - signer's email\n * @property {string} [subject] - subject of invitation email\n * @property {string} [message] - content of invitation email\n * @property {number} [expiration_days] - expiration of invite in days\n * @property {number} [reminder] - number of days in which to remind about invite via email\n * @property {boolean} [hasSignActions] - does signer need to sign documents of document group\n ", - "start": 398, - "end": 962, - "loc": { - "start": { - "line": 18, - "column": 2 - }, - "end": { - "line": 27, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group Template invite action congfigurations\n * @typedef {Object} DocumentGroupTemplateInviteAction\n * @property {string} [email] - signer's email\n * @property {string} [role_name] - signer's role name\n * @property {string} [action] - name of action with document in signing step\n * @property {string} [document_id] - ID of document in specific signing step\n * @property {string} [document_name] - name of document in specific signing step\n * @property {string} [allow_reassign] - allow reassigning of signer\n * @property {string} decline_by_signature - signer can decline invite\n ", - "start": 966, - "end": 1585, - "loc": { - "start": { - "line": 29, - "column": 2 - }, - "end": { - "line": 39, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group Template invite step congfigurations\n * @typedef {Object} DocumentGroupTemplateInviteStep\n * @property {number} [order] - an order number of invitation step\n * @property {DocumentGroupTemplateInviteEmail[]} [invite_emails] - Document Group Template invite emails settings\n * @property {DocumentGroupTemplateInviteAction[]} invite_actions - Document Group Template invite actions settings\n ", - "start": 1589, - "end": 2014, - "loc": { - "start": { - "line": 41, - "column": 2 - }, - "end": { - "line": 47, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group Template invite congfigurations\n * @typedef {Object} DocumentGroupTemplateRoutingDetails\n * @property {DocumentGroupTemplateInviteStep[]} invite_steps - Document Group Template invite steps settings\n * @property {number} [include_email_attachments]\n ", - "start": 2018, - "end": 2302, - "loc": { - "start": { - "line": 49, - "column": 2 - }, - "end": { - "line": 54, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create Document Group Template payload\n * @typedef {Object} DocumentGroupTemplateCreateParams\n * @property {string} token - your auth token\n * @property {string[]} template_ids - array of template ids for Document Group Template creation\n * @property {string} template_group_name - new name of document group\n * @property {DocumentGroupTemplateRoutingDetails} routing_details - invite congfigurations\n ", - "start": 2306, - "end": 2731, - "loc": { - "start": { - "line": 56, - "column": 2 - }, - "end": { - "line": 63, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create Document Group Template response data\n * @typedef {Object} DocumentGroupTemplateCreateResponse\n * @property {string} id - Document Group Template unique id\n ", - "start": 2735, - "end": 2916, - "loc": { - "start": { - "line": 65, - "column": 2 - }, - "end": { - "line": 69, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates Document Group Template with specified templates and settings\n * @param {DocumentGroupTemplateCreateParams} data - create Document Group Template payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupTemplateCreateResponse)} [callback] - error first node.js callback\n ", - "start": 2920, - "end": 3228, - "loc": { - "start": { - "line": 71, - "column": 2 - }, - "end": { - "line": 75, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document Group Template view payload\n * @typedef {Object} DocumentGroupTemplateViewParams\n * @property {string} id - id of specific Document Group Template\n * @property {string} token - your auth token\n ", - "start": 3921, - "end": 4143, - "loc": { - "start": { - "line": 106, - "column": 2 - }, - "end": { - "line": 111, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Details of single template in group\n * @typedef {Object} DocumentGroupTemplateItem\n * @property {string} id - id of template\n * @property {string} template_name - name of template\n * @property {string} owner_email - template owner email\n * @property {?number} readable\n * @property {DocumentThumbnails} thumbnail - thumbnail urls with different sizes (small, medium, large)\n * @property {string[]} roles - list of template signer roles\n ", - "start": 4147, - "end": 4611, - "loc": { - "start": { - "line": 113, - "column": 2 - }, - "end": { - "line": 122, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group Template view response\n * @typedef {Object} DocumentGroupTemplateViewResponse\n * @property {string} id - id of Document Group Template\n * @property {string} group_name - name of Document Group Template\n * @property {string} document_group_template_owner_email - Document Group Template owner email\n * @property {number} shared - is Document Group Template shared or not (values: 0 or 1)\n * @property {?string} shared_team_id - id of team which Document Group Template is shared with\n * @property {DocumentGroupTemplateItem[]} templates - each single template details\n * @property {DocumentGroupTemplateRoutingDetails} routing_details - signing steps configuration\n * @property {Object[]} originator_organization_settings - originator organization settings\n ", - "start": 4615, - "end": 5418, - "loc": { - "start": { - "line": 124, - "column": 2 - }, - "end": { - "line": 135, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves a Document Group Template detailed data\n * @param {DocumentGroupTemplateViewParams} data - view Document Group Template details payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupTemplateViewResponse)} [callback] - error first node.js callback\n ", - "start": 5422, - "end": 5712, - "loc": { - "start": { - "line": 137, - "column": 2 - }, - "end": { - "line": 141, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 5715, - "end": 6048, - "loc": { - "start": { - "line": 142, - "column": 2 - }, - "end": { - "line": 154, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5722, - "end": 5726, - "loc": { - "start": { - "line": 142, - "column": 9 - }, - "end": { - "line": 142, - "column": 13 - }, - "identifierName": "view" - }, - "name": "view" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 5728, - "end": 5741, - "loc": { - "start": { - "line": 142, - "column": 15 - }, - "end": { - "line": 142, - "column": 28 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5730, - "end": 5732, - "loc": { - "start": { - "line": 142, - "column": 17 - }, - "end": { - "line": 142, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5730, - "end": 5732, - "loc": { - "start": { - "line": 142, - "column": 17 - }, - "end": { - "line": 142, - "column": 19 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 5730, - "end": 5732, - "loc": { - "start": { - "line": 142, - "column": 17 - }, - "end": { - "line": 142, - "column": 19 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 5734, - "end": 5739, - "loc": { - "start": { - "line": 142, - "column": 21 - }, - "end": { - "line": 142, - "column": 26 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5734, - "end": 5739, - "loc": { - "start": { - "line": 142, - "column": 21 - }, - "end": { - "line": 142, - "column": 26 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 5734, - "end": 5739, - "loc": { - "start": { - "line": 142, - "column": 21 - }, - "end": { - "line": 142, - "column": 26 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 5743, - "end": 5751, - "loc": { - "start": { - "line": 142, - "column": 30 - }, - "end": { - "line": 142, - "column": 38 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 5753, - "end": 6048, - "loc": { - "start": { - "line": 142, - "column": 40 - }, - "end": { - "line": 154, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 5759, - "end": 6044, - "loc": { - "start": { - "line": 143, - "column": 4 - }, - "end": { - "line": 153, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 5759, - "end": 6043, - "loc": { - "start": { - "line": 143, - "column": 4 - }, - "end": { - "line": 153, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5759, - "end": 6041, - "loc": { - "start": { - "line": 143, - "column": 4 - }, - "end": { - "line": 153, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 5759, - "end": 6030, - "loc": { - "start": { - "line": 143, - "column": 4 - }, - "end": { - "line": 152, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5759, - "end": 5997, - "loc": { - "start": { - "line": 143, - "column": 4 - }, - "end": { - "line": 152, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 5759, - "end": 5987, - "loc": { - "start": { - "line": 143, - "column": 4 - }, - "end": { - "line": 151, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5759, - "end": 5779, - "loc": { - "start": { - "line": 143, - "column": 4 - }, - "end": { - "line": 144, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 5759, - "end": 5764, - "loc": { - "start": { - "line": 143, - "column": 4 - }, - "end": { - "line": 143, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 5772, - "end": 5779, - "loc": { - "start": { - "line": 144, - "column": 7 - }, - "end": { - "line": 144, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 5780, - "end": 5959, - "loc": { - "start": { - "line": 144, - "column": 15 - }, - "end": { - "line": 151, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 5780, - "end": 5799, - "loc": { - "start": { - "line": 144, - "column": 15 - }, - "end": { - "line": 144, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 5800, - "end": 5958, - "loc": { - "start": { - "line": 144, - "column": 35 - }, - "end": { - "line": 151, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5810, - "end": 5823, - "loc": { - "start": { - "line": 145, - "column": 8 - }, - "end": { - "line": 145, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5810, - "end": 5816, - "loc": { - "start": { - "line": 145, - "column": 8 - }, - "end": { - "line": 145, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 5818, - "end": 5823, - "loc": { - "start": { - "line": 145, - "column": 16 - }, - "end": { - "line": 145, - "column": 21 - } - }, - "extra": { - "rawValue": "GET", - "raw": "'GET'" - }, - "value": "GET" - } - }, - { - "type": "ObjectProperty", - "start": 5833, - "end": 5870, - "loc": { - "start": { - "line": 146, - "column": 8 - }, - "end": { - "line": 146, - "column": 45 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5833, - "end": 5837, - "loc": { - "start": { - "line": 146, - "column": 8 - }, - "end": { - "line": 146, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 5839, - "end": 5870, - "loc": { - "start": { - "line": 146, - "column": 14 - }, - "end": { - "line": 146, - "column": 45 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 5866, - "end": 5868, - "loc": { - "start": { - "line": 146, - "column": 41 - }, - "end": { - "line": 146, - "column": 43 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 5840, - "end": 5864, - "loc": { - "start": { - "line": 146, - "column": 15 - }, - "end": { - "line": 146, - "column": 39 - } - }, - "value": { - "raw": "/documentgroup/template/", - "cooked": "/documentgroup/template/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 5869, - "end": 5869, - "loc": { - "start": { - "line": 146, - "column": 44 - }, - "end": { - "line": 146, - "column": 44 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 5880, - "end": 5949, - "loc": { - "start": { - "line": 147, - "column": 8 - }, - "end": { - "line": 150, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5880, - "end": 5893, - "loc": { - "start": { - "line": 147, - "column": 8 - }, - "end": { - "line": 147, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 5895, - "end": 5949, - "loc": { - "start": { - "line": 147, - "column": 23 - }, - "end": { - "line": 150, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5907, - "end": 5921, - "loc": { - "start": { - "line": 148, - "column": 10 - }, - "end": { - "line": 148, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5907, - "end": 5911, - "loc": { - "start": { - "line": 148, - "column": 10 - }, - "end": { - "line": 148, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 5913, - "end": 5921, - "loc": { - "start": { - "line": 148, - "column": 16 - }, - "end": { - "line": 148, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 5933, - "end": 5938, - "loc": { - "start": { - "line": 149, - "column": 10 - }, - "end": { - "line": 149, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5933, - "end": 5938, - "loc": { - "start": { - "line": 149, - "column": 10 - }, - "end": { - "line": 149, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 5933, - "end": 5938, - "loc": { - "start": { - "line": 149, - "column": 10 - }, - "end": { - "line": 149, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 5961, - "end": 5986, - "loc": { - "start": { - "line": 151, - "column": 10 - }, - "end": { - "line": 151, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 5961, - "end": 5976, - "loc": { - "start": { - "line": 151, - "column": 10 - }, - "end": { - "line": 151, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 5977, - "end": 5985, - "loc": { - "start": { - "line": 151, - "column": 26 - }, - "end": { - "line": 151, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 5995, - "end": 5997, - "loc": { - "start": { - "line": 152, - "column": 7 - }, - "end": { - "line": 152, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 5998, - "end": 6005, - "loc": { - "start": { - "line": 152, - "column": 10 - }, - "end": { - "line": 152, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 6007, - "end": 6029, - "loc": { - "start": { - "line": 152, - "column": 19 - }, - "end": { - "line": 152, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 6007, - "end": 6019, - "loc": { - "start": { - "line": 152, - "column": 19 - }, - "end": { - "line": 152, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 6020, - "end": 6028, - "loc": { - "start": { - "line": 152, - "column": 32 - }, - "end": { - "line": 152, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 6038, - "end": 6041, - "loc": { - "start": { - "line": 153, - "column": 7 - }, - "end": { - "line": 153, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document Group Template view payload\n * @typedef {Object} DocumentGroupTemplateViewParams\n * @property {string} id - id of specific Document Group Template\n * @property {string} token - your auth token\n ", - "start": 3921, - "end": 4143, - "loc": { - "start": { - "line": 106, - "column": 2 - }, - "end": { - "line": 111, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Details of single template in group\n * @typedef {Object} DocumentGroupTemplateItem\n * @property {string} id - id of template\n * @property {string} template_name - name of template\n * @property {string} owner_email - template owner email\n * @property {?number} readable\n * @property {DocumentThumbnails} thumbnail - thumbnail urls with different sizes (small, medium, large)\n * @property {string[]} roles - list of template signer roles\n ", - "start": 4147, - "end": 4611, - "loc": { - "start": { - "line": 113, - "column": 2 - }, - "end": { - "line": 122, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group Template view response\n * @typedef {Object} DocumentGroupTemplateViewResponse\n * @property {string} id - id of Document Group Template\n * @property {string} group_name - name of Document Group Template\n * @property {string} document_group_template_owner_email - Document Group Template owner email\n * @property {number} shared - is Document Group Template shared or not (values: 0 or 1)\n * @property {?string} shared_team_id - id of team which Document Group Template is shared with\n * @property {DocumentGroupTemplateItem[]} templates - each single template details\n * @property {DocumentGroupTemplateRoutingDetails} routing_details - signing steps configuration\n * @property {Object[]} originator_organization_settings - originator organization settings\n ", - "start": 4615, - "end": 5418, - "loc": { - "start": { - "line": 124, - "column": 2 - }, - "end": { - "line": 135, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves a Document Group Template detailed data\n * @param {DocumentGroupTemplateViewParams} data - view Document Group Template details payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupTemplateViewResponse)} [callback] - error first node.js callback\n ", - "start": 5422, - "end": 5712, - "loc": { - "start": { - "line": 137, - "column": 2 - }, - "end": { - "line": 141, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Create Document Group Template invite payload\n * @typedef {Object} DocumentGroupTemplateInviteParams\n * @property {string} id - ID of specific Document Group Template\n * @property {DocumentGroupInviteSettings} [data] - Document Group Template invite settings data\n * @property {string} token - your auth token\n ", - "start": 6052, - "end": 6384, - "loc": { - "start": { - "line": 156, - "column": 2 - }, - "end": { - "line": 162, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create Document Group Template invite response data\n * @typedef {DocumentGroupInviteResponse} DocumentGroupTemplateInviteResponse\n * @property {string} id - an ID of created invite\n * @property {?string} pending_invite_link - pending invite link\n ", - "start": 6388, - "end": 6654, - "loc": { - "start": { - "line": 164, - "column": 2 - }, - "end": { - "line": 169, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates an invite to sign a Document Group Template\n * @param {DocumentGroupTemplateInviteParams} data - create Document Group Template invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupTemplateInviteResponse)} [callback] - error first node.js callback\n ", - "start": 6658, - "end": 6955, - "loc": { - "start": { - "line": 171, - "column": 2 - }, - "end": { - "line": 175, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 6958, - "end": 10601, - "loc": { - "start": { - "line": 176, - "column": 2 - }, - "end": { - "line": 299, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 6965, - "end": 6971, - "loc": { - "start": { - "line": 176, - "column": 9 - }, - "end": { - "line": 176, - "column": 15 - }, - "identifierName": "invite" - }, - "name": "invite" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 6973, - "end": 7007, - "loc": { - "start": { - "line": 176, - "column": 17 - }, - "end": { - "line": 180, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 6979, - "end": 6981, - "loc": { - "start": { - "line": 177, - "column": 4 - }, - "end": { - "line": 177, - "column": 6 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 6979, - "end": 6981, - "loc": { - "start": { - "line": 177, - "column": 4 - }, - "end": { - "line": 177, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 6979, - "end": 6981, - "loc": { - "start": { - "line": 177, - "column": 4 - }, - "end": { - "line": 177, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 6987, - "end": 6991, - "loc": { - "start": { - "line": 178, - "column": 4 - }, - "end": { - "line": 178, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 6987, - "end": 6991, - "loc": { - "start": { - "line": 178, - "column": 4 - }, - "end": { - "line": 178, - "column": 8 - }, - "identifierName": "data" - }, - "name": "data" - }, - "value": { - "type": "Identifier", - "start": 6987, - "end": 6991, - "loc": { - "start": { - "line": 178, - "column": 4 - }, - "end": { - "line": 178, - "column": 8 - }, - "identifierName": "data" - }, - "name": "data" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 6997, - "end": 7002, - "loc": { - "start": { - "line": 179, - "column": 4 - }, - "end": { - "line": 179, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 6997, - "end": 7002, - "loc": { - "start": { - "line": 179, - "column": 4 - }, - "end": { - "line": 179, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 6997, - "end": 7002, - "loc": { - "start": { - "line": 179, - "column": 4 - }, - "end": { - "line": 179, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 7009, - "end": 7017, - "loc": { - "start": { - "line": 180, - "column": 5 - }, - "end": { - "line": 180, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 7019, - "end": 10601, - "loc": { - "start": { - "line": 180, - "column": 15 - }, - "end": { - "line": 299, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 7025, - "end": 10597, - "loc": { - "start": { - "line": 181, - "column": 4 - }, - "end": { - "line": 298, - "column": 7 - } - }, - "expression": { - "type": "CallExpression", - "start": 7025, - "end": 10596, - "loc": { - "start": { - "line": 181, - "column": 4 - }, - "end": { - "line": 298, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 7025, - "end": 7051, - "loc": { - "start": { - "line": 181, - "column": 4 - }, - "end": { - "line": 181, - "column": 30 - } - }, - "object": { - "type": "Identifier", - "start": 7025, - "end": 7046, - "loc": { - "start": { - "line": 181, - "column": 4 - }, - "end": { - "line": 181, - "column": 25 - }, - "identifierName": "DocumentGroupTemplate" - }, - "name": "DocumentGroupTemplate" - }, - "property": { - "type": "Identifier", - "start": 7047, - "end": 7051, - "loc": { - "start": { - "line": 181, - "column": 26 - }, - "end": { - "line": 181, - "column": 30 - }, - "identifierName": "view" - }, - "name": "view" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 7052, - "end": 7082, - "loc": { - "start": { - "line": 181, - "column": 31 - }, - "end": { - "line": 184, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 7060, - "end": 7062, - "loc": { - "start": { - "line": 182, - "column": 6 - }, - "end": { - "line": 182, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7060, - "end": 7062, - "loc": { - "start": { - "line": 182, - "column": 6 - }, - "end": { - "line": 182, - "column": 8 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 7060, - "end": 7062, - "loc": { - "start": { - "line": 182, - "column": 6 - }, - "end": { - "line": 182, - "column": 8 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 7070, - "end": 7075, - "loc": { - "start": { - "line": 183, - "column": 6 - }, - "end": { - "line": 183, - "column": 11 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7070, - "end": 7075, - "loc": { - "start": { - "line": 183, - "column": 6 - }, - "end": { - "line": 183, - "column": 11 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 7070, - "end": 7075, - "loc": { - "start": { - "line": 183, - "column": 6 - }, - "end": { - "line": 183, - "column": 11 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "ArrowFunctionExpression", - "start": 7084, - "end": 10595, - "loc": { - "start": { - "line": 184, - "column": 7 - }, - "end": { - "line": 298, - "column": 5 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 7085, - "end": 7100, - "loc": { - "start": { - "line": 184, - "column": 8 - }, - "end": { - "line": 184, - "column": 23 - }, - "identifierName": "viewDocGrTplErr" - }, - "name": "viewDocGrTplErr" - }, - { - "type": "Identifier", - "start": 7102, - "end": 7117, - "loc": { - "start": { - "line": 184, - "column": 25 - }, - "end": { - "line": 184, - "column": 40 - }, - "identifierName": "viewDocGrTplRes" - }, - "name": "viewDocGrTplRes" - } - ], - "body": { - "type": "BlockStatement", - "start": 7122, - "end": 10595, - "loc": { - "start": { - "line": 184, - "column": 45 - }, - "end": { - "line": 298, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 7130, - "end": 10589, - "loc": { - "start": { - "line": 185, - "column": 6 - }, - "end": { - "line": 297, - "column": 7 - } - }, - "test": { - "type": "Identifier", - "start": 7134, - "end": 7149, - "loc": { - "start": { - "line": 185, - "column": 10 - }, - "end": { - "line": 185, - "column": 25 - }, - "identifierName": "viewDocGrTplErr" - }, - "name": "viewDocGrTplErr" - }, - "consequent": { - "type": "BlockStatement", - "start": 7151, - "end": 7211, - "loc": { - "start": { - "line": 185, - "column": 27 - }, - "end": { - "line": 188, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 7161, - "end": 7187, - "loc": { - "start": { - "line": 186, - "column": 8 - }, - "end": { - "line": 186, - "column": 34 - } - }, - "expression": { - "type": "CallExpression", - "start": 7161, - "end": 7186, - "loc": { - "start": { - "line": 186, - "column": 8 - }, - "end": { - "line": 186, - "column": 33 - } - }, - "callee": { - "type": "Identifier", - "start": 7161, - "end": 7169, - "loc": { - "start": { - "line": 186, - "column": 8 - }, - "end": { - "line": 186, - "column": 16 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 7170, - "end": 7185, - "loc": { - "start": { - "line": 186, - "column": 17 - }, - "end": { - "line": 186, - "column": 32 - }, - "identifierName": "viewDocGrTplErr" - }, - "name": "viewDocGrTplErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 7196, - "end": 7203, - "loc": { - "start": { - "line": 187, - "column": 8 - }, - "end": { - "line": 187, - "column": 15 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 7217, - "end": 10589, - "loc": { - "start": { - "line": 188, - "column": 13 - }, - "end": { - "line": 297, - "column": 7 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 7227, - "end": 7338, - "loc": { - "start": { - "line": 189, - "column": 8 - }, - "end": { - "line": 193, - "column": 28 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7233, - "end": 7337, - "loc": { - "start": { - "line": 189, - "column": 14 - }, - "end": { - "line": 193, - "column": 27 - } - }, - "id": { - "type": "ObjectPattern", - "start": 7233, - "end": 7319, - "loc": { - "start": { - "line": 189, - "column": 14 - }, - "end": { - "line": 193, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 7245, - "end": 7254, - "loc": { - "start": { - "line": 190, - "column": 10 - }, - "end": { - "line": 190, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7245, - "end": 7254, - "loc": { - "start": { - "line": 190, - "column": 10 - }, - "end": { - "line": 190, - "column": 19 - }, - "identifierName": "templates" - }, - "name": "templates" - }, - "value": { - "type": "Identifier", - "start": 7245, - "end": 7254, - "loc": { - "start": { - "line": 190, - "column": 10 - }, - "end": { - "line": 190, - "column": 19 - }, - "identifierName": "templates" - }, - "name": "templates" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 7266, - "end": 7276, - "loc": { - "start": { - "line": 191, - "column": 10 - }, - "end": { - "line": 191, - "column": 20 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7266, - "end": 7276, - "loc": { - "start": { - "line": 191, - "column": 10 - }, - "end": { - "line": 191, - "column": 20 - }, - "identifierName": "group_name" - }, - "name": "group_name" - }, - "value": { - "type": "Identifier", - "start": 7266, - "end": 7276, - "loc": { - "start": { - "line": 191, - "column": 10 - }, - "end": { - "line": 191, - "column": 20 - }, - "identifierName": "group_name" - }, - "name": "group_name" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 7288, - "end": 7308, - "loc": { - "start": { - "line": 192, - "column": 10 - }, - "end": { - "line": 192, - "column": 30 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7288, - "end": 7303, - "loc": { - "start": { - "line": 192, - "column": 10 - }, - "end": { - "line": 192, - "column": 25 - }, - "identifierName": "routing_details" - }, - "name": "routing_details" - }, - "value": { - "type": "AssignmentPattern", - "start": 7288, - "end": 7308, - "loc": { - "start": { - "line": 192, - "column": 10 - }, - "end": { - "line": 192, - "column": 30 - } - }, - "left": { - "type": "Identifier", - "start": 7288, - "end": 7303, - "loc": { - "start": { - "line": 192, - "column": 10 - }, - "end": { - "line": 192, - "column": 25 - }, - "identifierName": "routing_details" - }, - "name": "routing_details" - }, - "right": { - "type": "ObjectExpression", - "start": 7306, - "end": 7308, - "loc": { - "start": { - "line": 192, - "column": 28 - }, - "end": { - "line": 192, - "column": 30 - } - }, - "properties": [] - } - }, - "extra": { - "shorthand": true - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 7322, - "end": 7337, - "loc": { - "start": { - "line": 193, - "column": 12 - }, - "end": { - "line": 193, - "column": 27 - }, - "identifierName": "viewDocGrTplRes" - }, - "name": "viewDocGrTplRes" - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 7347, - "end": 7363, - "loc": { - "start": { - "line": 194, - "column": 8 - }, - "end": { - "line": 194, - "column": 24 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7351, - "end": 7362, - "loc": { - "start": { - "line": 194, - "column": 12 - }, - "end": { - "line": 194, - "column": 23 - } - }, - "id": { - "type": "Identifier", - "start": 7351, - "end": 7362, - "loc": { - "start": { - "line": 194, - "column": 12 - }, - "end": { - "line": 194, - "column": 23 - }, - "identifierName": "templateIDs" - }, - "name": "templateIDs" - }, - "init": null - } - ], - "kind": "let" - }, - { - "type": "TryStatement", - "start": 7373, - "end": 7519, - "loc": { - "start": { - "line": 196, - "column": 8 - }, - "end": { - "line": 201, - "column": 9 - } - }, - "block": { - "type": "BlockStatement", - "start": 7377, - "end": 7452, - "loc": { - "start": { - "line": 196, - "column": 12 - }, - "end": { - "line": 198, - "column": 9 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 7389, - "end": 7442, - "loc": { - "start": { - "line": 197, - "column": 10 - }, - "end": { - "line": 197, - "column": 63 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 7389, - "end": 7441, - "loc": { - "start": { - "line": 197, - "column": 10 - }, - "end": { - "line": 197, - "column": 62 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 7389, - "end": 7400, - "loc": { - "start": { - "line": 197, - "column": 10 - }, - "end": { - "line": 197, - "column": 21 - }, - "identifierName": "templateIDs" - }, - "name": "templateIDs" - }, - "right": { - "type": "CallExpression", - "start": 7403, - "end": 7441, - "loc": { - "start": { - "line": 197, - "column": 24 - }, - "end": { - "line": 197, - "column": 62 - } - }, - "callee": { - "type": "MemberExpression", - "start": 7403, - "end": 7416, - "loc": { - "start": { - "line": 197, - "column": 24 - }, - "end": { - "line": 197, - "column": 37 - } - }, - "object": { - "type": "Identifier", - "start": 7403, - "end": 7412, - "loc": { - "start": { - "line": 197, - "column": 24 - }, - "end": { - "line": 197, - "column": 33 - }, - "identifierName": "templates" - }, - "name": "templates" - }, - "property": { - "type": "Identifier", - "start": 7413, - "end": 7416, - "loc": { - "start": { - "line": 197, - "column": 34 - }, - "end": { - "line": 197, - "column": 37 - }, - "identifierName": "map" - }, - "name": "map" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 7417, - "end": 7440, - "loc": { - "start": { - "line": 197, - "column": 38 - }, - "end": { - "line": 197, - "column": 61 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 7417, - "end": 7425, - "loc": { - "start": { - "line": 197, - "column": 38 - }, - "end": { - "line": 197, - "column": 46 - }, - "identifierName": "template" - }, - "name": "template" - } - ], - "body": { - "type": "MemberExpression", - "start": 7429, - "end": 7440, - "loc": { - "start": { - "line": 197, - "column": 50 - }, - "end": { - "line": 197, - "column": 61 - } - }, - "object": { - "type": "Identifier", - "start": 7429, - "end": 7437, - "loc": { - "start": { - "line": 197, - "column": 50 - }, - "end": { - "line": 197, - "column": 58 - }, - "identifierName": "template" - }, - "name": "template" - }, - "property": { - "type": "Identifier", - "start": 7438, - "end": 7440, - "loc": { - "start": { - "line": 197, - "column": 59 - }, - "end": { - "line": 197, - "column": 61 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": false - } - } - ] - } - } - } - ], - "directives": [] - }, - "handler": { - "type": "CatchClause", - "start": 7453, - "end": 7519, - "loc": { - "start": { - "line": 198, - "column": 10 - }, - "end": { - "line": 201, - "column": 9 - } - }, - "param": { - "type": "Identifier", - "start": 7460, - "end": 7463, - "loc": { - "start": { - "line": 198, - "column": 17 - }, - "end": { - "line": 198, - "column": 20 - }, - "identifierName": "err" - }, - "name": "err" - }, - "body": { - "type": "BlockStatement", - "start": 7465, - "end": 7519, - "loc": { - "start": { - "line": 198, - "column": 22 - }, - "end": { - "line": 201, - "column": 9 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 7477, - "end": 7491, - "loc": { - "start": { - "line": 199, - "column": 10 - }, - "end": { - "line": 199, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 7477, - "end": 7490, - "loc": { - "start": { - "line": 199, - "column": 10 - }, - "end": { - "line": 199, - "column": 23 - } - }, - "callee": { - "type": "Identifier", - "start": 7477, - "end": 7485, - "loc": { - "start": { - "line": 199, - "column": 10 - }, - "end": { - "line": 199, - "column": 18 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 7486, - "end": 7489, - "loc": { - "start": { - "line": 199, - "column": 19 - }, - "end": { - "line": 199, - "column": 22 - }, - "identifierName": "err" - }, - "name": "err" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 7502, - "end": 7509, - "loc": { - "start": { - "line": 200, - "column": 10 - }, - "end": { - "line": 200, - "column": 17 - } - }, - "argument": null - } - ], - "directives": [] - } - }, - "guardedHandlers": [], - "finalizer": null - }, - { - "type": "ExpressionStatement", - "start": 7529, - "end": 10581, - "loc": { - "start": { - "line": 203, - "column": 8 - }, - "end": { - "line": 296, - "column": 11 - } - }, - "expression": { - "type": "CallExpression", - "start": 7529, - "end": 10580, - "loc": { - "start": { - "line": 203, - "column": 8 - }, - "end": { - "line": 296, - "column": 10 - } - }, - "callee": { - "type": "Identifier", - "start": 7529, - "end": 7548, - "loc": { - "start": { - "line": 203, - "column": 8 - }, - "end": { - "line": 203, - "column": 27 - }, - "identifierName": "createDocumentGroup" - }, - "name": "createDocumentGroup" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 7549, - "end": 7627, - "loc": { - "start": { - "line": 203, - "column": 28 - }, - "end": { - "line": 207, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 7561, - "end": 7577, - "loc": { - "start": { - "line": 204, - "column": 10 - }, - "end": { - "line": 204, - "column": 26 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7561, - "end": 7564, - "loc": { - "start": { - "line": 204, - "column": 10 - }, - "end": { - "line": 204, - "column": 13 - }, - "identifierName": "ids" - }, - "name": "ids" - }, - "value": { - "type": "Identifier", - "start": 7566, - "end": 7577, - "loc": { - "start": { - "line": 204, - "column": 15 - }, - "end": { - "line": 204, - "column": 26 - }, - "identifierName": "templateIDs" - }, - "name": "templateIDs" - } - }, - { - "type": "ObjectProperty", - "start": 7589, - "end": 7599, - "loc": { - "start": { - "line": 205, - "column": 10 - }, - "end": { - "line": 205, - "column": 20 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7589, - "end": 7599, - "loc": { - "start": { - "line": 205, - "column": 10 - }, - "end": { - "line": 205, - "column": 20 - }, - "identifierName": "group_name" - }, - "name": "group_name" - }, - "value": { - "type": "Identifier", - "start": 7589, - "end": 7599, - "loc": { - "start": { - "line": 205, - "column": 10 - }, - "end": { - "line": 205, - "column": 20 - }, - "identifierName": "group_name" - }, - "name": "group_name" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 7611, - "end": 7616, - "loc": { - "start": { - "line": 206, - "column": 10 - }, - "end": { - "line": 206, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7611, - "end": 7616, - "loc": { - "start": { - "line": 206, - "column": 10 - }, - "end": { - "line": 206, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 7611, - "end": 7616, - "loc": { - "start": { - "line": 206, - "column": 10 - }, - "end": { - "line": 206, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "ArrowFunctionExpression", - "start": 7629, - "end": 10579, - "loc": { - "start": { - "line": 207, - "column": 11 - }, - "end": { - "line": 296, - "column": 9 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 7630, - "end": 7639, - "loc": { - "start": { - "line": 207, - "column": 12 - }, - "end": { - "line": 207, - "column": 21 - }, - "identifierName": "createErr" - }, - "name": "createErr" - }, - { - "type": "Identifier", - "start": 7641, - "end": 7650, - "loc": { - "start": { - "line": 207, - "column": 23 - }, - "end": { - "line": 207, - "column": 32 - }, - "identifierName": "createRes" - }, - "name": "createRes" - } - ], - "body": { - "type": "BlockStatement", - "start": 7655, - "end": 10579, - "loc": { - "start": { - "line": 207, - "column": 37 - }, - "end": { - "line": 296, - "column": 9 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 7667, - "end": 10569, - "loc": { - "start": { - "line": 208, - "column": 10 - }, - "end": { - "line": 295, - "column": 11 - } - }, - "test": { - "type": "Identifier", - "start": 7671, - "end": 7680, - "loc": { - "start": { - "line": 208, - "column": 14 - }, - "end": { - "line": 208, - "column": 23 - }, - "identifierName": "createErr" - }, - "name": "createErr" - }, - "consequent": { - "type": "BlockStatement", - "start": 7682, - "end": 7748, - "loc": { - "start": { - "line": 208, - "column": 25 - }, - "end": { - "line": 211, - "column": 11 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 7696, - "end": 7716, - "loc": { - "start": { - "line": 209, - "column": 12 - }, - "end": { - "line": 209, - "column": 32 - } - }, - "expression": { - "type": "CallExpression", - "start": 7696, - "end": 7715, - "loc": { - "start": { - "line": 209, - "column": 12 - }, - "end": { - "line": 209, - "column": 31 - } - }, - "callee": { - "type": "Identifier", - "start": 7696, - "end": 7704, - "loc": { - "start": { - "line": 209, - "column": 12 - }, - "end": { - "line": 209, - "column": 20 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 7705, - "end": 7714, - "loc": { - "start": { - "line": 209, - "column": 21 - }, - "end": { - "line": 209, - "column": 30 - }, - "identifierName": "createErr" - }, - "name": "createErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 7729, - "end": 7736, - "loc": { - "start": { - "line": 210, - "column": 12 - }, - "end": { - "line": 210, - "column": 19 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 7754, - "end": 10569, - "loc": { - "start": { - "line": 211, - "column": 17 - }, - "end": { - "line": 295, - "column": 11 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 7768, - "end": 7810, - "loc": { - "start": { - "line": 212, - "column": 12 - }, - "end": { - "line": 212, - "column": 54 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7774, - "end": 7809, - "loc": { - "start": { - "line": 212, - "column": 18 - }, - "end": { - "line": 212, - "column": 53 - } - }, - "id": { - "type": "ObjectPattern", - "start": 7774, - "end": 7797, - "loc": { - "start": { - "line": 212, - "column": 18 - }, - "end": { - "line": 212, - "column": 41 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 7776, - "end": 7795, - "loc": { - "start": { - "line": 212, - "column": 20 - }, - "end": { - "line": 212, - "column": 39 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7776, - "end": 7778, - "loc": { - "start": { - "line": 212, - "column": 20 - }, - "end": { - "line": 212, - "column": 22 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 7780, - "end": 7795, - "loc": { - "start": { - "line": 212, - "column": 24 - }, - "end": { - "line": 212, - "column": 39 - }, - "identifierName": "documentGroupId" - }, - "name": "documentGroupId" - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 7800, - "end": 7809, - "loc": { - "start": { - "line": 212, - "column": 44 - }, - "end": { - "line": 212, - "column": 53 - }, - "identifierName": "createRes" - }, - "name": "createRes" - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 7824, - "end": 10557, - "loc": { - "start": { - "line": 214, - "column": 12 - }, - "end": { - "line": 294, - "column": 15 - } - }, - "expression": { - "type": "CallExpression", - "start": 7824, - "end": 10556, - "loc": { - "start": { - "line": 214, - "column": 12 - }, - "end": { - "line": 294, - "column": 14 - } - }, - "callee": { - "type": "Identifier", - "start": 7824, - "end": 7841, - "loc": { - "start": { - "line": 214, - "column": 12 - }, - "end": { - "line": 214, - "column": 29 - }, - "identifierName": "viewDocumentGroup" - }, - "name": "viewDocumentGroup" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 7842, - "end": 7913, - "loc": { - "start": { - "line": 214, - "column": 30 - }, - "end": { - "line": 217, - "column": 13 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 7858, - "end": 7877, - "loc": { - "start": { - "line": 215, - "column": 14 - }, - "end": { - "line": 215, - "column": 33 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7858, - "end": 7860, - "loc": { - "start": { - "line": 215, - "column": 14 - }, - "end": { - "line": 215, - "column": 16 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 7862, - "end": 7877, - "loc": { - "start": { - "line": 215, - "column": 18 - }, - "end": { - "line": 215, - "column": 33 - }, - "identifierName": "documentGroupId" - }, - "name": "documentGroupId" - } - }, - { - "type": "ObjectProperty", - "start": 7893, - "end": 7898, - "loc": { - "start": { - "line": 216, - "column": 14 - }, - "end": { - "line": 216, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7893, - "end": 7898, - "loc": { - "start": { - "line": 216, - "column": 14 - }, - "end": { - "line": 216, - "column": 19 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 7893, - "end": 7898, - "loc": { - "start": { - "line": 216, - "column": 14 - }, - "end": { - "line": 216, - "column": 19 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "ArrowFunctionExpression", - "start": 7915, - "end": 10555, - "loc": { - "start": { - "line": 217, - "column": 15 - }, - "end": { - "line": 294, - "column": 13 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 7916, - "end": 7928, - "loc": { - "start": { - "line": 217, - "column": 16 - }, - "end": { - "line": 217, - "column": 28 - }, - "identifierName": "viewDocGrErr" - }, - "name": "viewDocGrErr" - }, - { - "type": "Identifier", - "start": 7930, - "end": 7942, - "loc": { - "start": { - "line": 217, - "column": 30 - }, - "end": { - "line": 217, - "column": 42 - }, - "identifierName": "viewDocGrRes" - }, - "name": "viewDocGrRes" - } - ], - "body": { - "type": "BlockStatement", - "start": 7947, - "end": 10555, - "loc": { - "start": { - "line": 217, - "column": 47 - }, - "end": { - "line": 294, - "column": 13 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 7963, - "end": 10541, - "loc": { - "start": { - "line": 218, - "column": 14 - }, - "end": { - "line": 293, - "column": 15 - } - }, - "test": { - "type": "Identifier", - "start": 7967, - "end": 7979, - "loc": { - "start": { - "line": 218, - "column": 18 - }, - "end": { - "line": 218, - "column": 30 - }, - "identifierName": "viewDocGrErr" - }, - "name": "viewDocGrErr" - }, - "consequent": { - "type": "BlockStatement", - "start": 7981, - "end": 8062, - "loc": { - "start": { - "line": 218, - "column": 32 - }, - "end": { - "line": 221, - "column": 15 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 7999, - "end": 8022, - "loc": { - "start": { - "line": 219, - "column": 16 - }, - "end": { - "line": 219, - "column": 39 - } - }, - "expression": { - "type": "CallExpression", - "start": 7999, - "end": 8021, - "loc": { - "start": { - "line": 219, - "column": 16 - }, - "end": { - "line": 219, - "column": 38 - } - }, - "callee": { - "type": "Identifier", - "start": 7999, - "end": 8007, - "loc": { - "start": { - "line": 219, - "column": 16 - }, - "end": { - "line": 219, - "column": 24 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 8008, - "end": 8020, - "loc": { - "start": { - "line": 219, - "column": 25 - }, - "end": { - "line": 219, - "column": 37 - }, - "identifierName": "viewDocGrErr" - }, - "name": "viewDocGrErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 8039, - "end": 8046, - "loc": { - "start": { - "line": 220, - "column": 16 - }, - "end": { - "line": 220, - "column": 23 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 8068, - "end": 10541, - "loc": { - "start": { - "line": 221, - "column": 21 - }, - "end": { - "line": 293, - "column": 15 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 8086, - "end": 8121, - "loc": { - "start": { - "line": 222, - "column": 16 - }, - "end": { - "line": 222, - "column": 51 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 8092, - "end": 8120, - "loc": { - "start": { - "line": 222, - "column": 22 - }, - "end": { - "line": 222, - "column": 50 - } - }, - "id": { - "type": "ObjectPattern", - "start": 8092, - "end": 8105, - "loc": { - "start": { - "line": 222, - "column": 22 - }, - "end": { - "line": 222, - "column": 35 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 8094, - "end": 8103, - "loc": { - "start": { - "line": 222, - "column": 24 - }, - "end": { - "line": 222, - "column": 33 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8094, - "end": 8103, - "loc": { - "start": { - "line": 222, - "column": 24 - }, - "end": { - "line": 222, - "column": 33 - }, - "identifierName": "documents" - }, - "name": "documents" - }, - "value": { - "type": "Identifier", - "start": 8094, - "end": 8103, - "loc": { - "start": { - "line": 222, - "column": 24 - }, - "end": { - "line": 222, - "column": 33 - }, - "identifierName": "documents" - }, - "name": "documents" - }, - "extra": { - "shorthand": true - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 8108, - "end": 8120, - "loc": { - "start": { - "line": 222, - "column": 38 - }, - "end": { - "line": 222, - "column": 50 - }, - "identifierName": "viewDocGrRes" - }, - "name": "viewDocGrRes" - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 8138, - "end": 8162, - "loc": { - "start": { - "line": 223, - "column": 16 - }, - "end": { - "line": 223, - "column": 40 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 8142, - "end": 8161, - "loc": { - "start": { - "line": 223, - "column": 20 - }, - "end": { - "line": 223, - "column": 39 - } - }, - "id": { - "type": "Identifier", - "start": 8142, - "end": 8161, - "loc": { - "start": { - "line": 223, - "column": 20 - }, - "end": { - "line": 223, - "column": 39 - }, - "identifierName": "documentToOriginMap" - }, - "name": "documentToOriginMap" - }, - "init": null - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 8179, - "end": 8198, - "loc": { - "start": { - "line": 224, - "column": 16 - }, - "end": { - "line": 224, - "column": 35 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 8183, - "end": 8197, - "loc": { - "start": { - "line": 224, - "column": 20 - }, - "end": { - "line": 224, - "column": 34 - } - }, - "id": { - "type": "Identifier", - "start": 8183, - "end": 8197, - "loc": { - "start": { - "line": 224, - "column": 20 - }, - "end": { - "line": 224, - "column": 34 - }, - "identifierName": "inviteSettings" - }, - "name": "inviteSettings" - }, - "init": null - } - ], - "kind": "let" - }, - { - "type": "TryStatement", - "start": 8216, - "end": 10089, - "loc": { - "start": { - "line": 226, - "column": 16 - }, - "end": { - "line": 278, - "column": 17 - } - }, - "block": { - "type": "BlockStatement", - "start": 8220, - "end": 9998, - "loc": { - "start": { - "line": 226, - "column": 20 - }, - "end": { - "line": 275, - "column": 17 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 8240, - "end": 8410, - "loc": { - "start": { - "line": 227, - "column": 18 - }, - "end": { - "line": 230, - "column": 25 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 8240, - "end": 8409, - "loc": { - "start": { - "line": 227, - "column": 18 - }, - "end": { - "line": 230, - "column": 24 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 8240, - "end": 8259, - "loc": { - "start": { - "line": 227, - "column": 18 - }, - "end": { - "line": 227, - "column": 37 - }, - "identifierName": "documentToOriginMap" - }, - "name": "documentToOriginMap" - }, - "right": { - "type": "CallExpression", - "start": 8262, - "end": 8409, - "loc": { - "start": { - "line": 227, - "column": 40 - }, - "end": { - "line": 230, - "column": 24 - } - }, - "callee": { - "type": "MemberExpression", - "start": 8262, - "end": 8278, - "loc": { - "start": { - "line": 227, - "column": 40 - }, - "end": { - "line": 227, - "column": 56 - } - }, - "object": { - "type": "Identifier", - "start": 8262, - "end": 8271, - "loc": { - "start": { - "line": 227, - "column": 40 - }, - "end": { - "line": 227, - "column": 49 - }, - "identifierName": "documents" - }, - "name": "documents" - }, - "property": { - "type": "Identifier", - "start": 8272, - "end": 8278, - "loc": { - "start": { - "line": 227, - "column": 50 - }, - "end": { - "line": 227, - "column": 56 - }, - "identifierName": "reduce" - }, - "name": "reduce" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 8279, - "end": 8404, - "loc": { - "start": { - "line": 227, - "column": 57 - }, - "end": { - "line": 230, - "column": 19 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 8280, - "end": 8283, - "loc": { - "start": { - "line": 227, - "column": 58 - }, - "end": { - "line": 227, - "column": 61 - }, - "identifierName": "map" - }, - "name": "map" - }, - { - "type": "Identifier", - "start": 8285, - "end": 8288, - "loc": { - "start": { - "line": 227, - "column": 63 - }, - "end": { - "line": 227, - "column": 66 - }, - "identifierName": "doc" - }, - "name": "doc" - } - ], - "body": { - "type": "BlockStatement", - "start": 8293, - "end": 8404, - "loc": { - "start": { - "line": 227, - "column": 71 - }, - "end": { - "line": 230, - "column": 19 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 8315, - "end": 8352, - "loc": { - "start": { - "line": 228, - "column": 20 - }, - "end": { - "line": 228, - "column": 57 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 8315, - "end": 8351, - "loc": { - "start": { - "line": 228, - "column": 20 - }, - "end": { - "line": 228, - "column": 56 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 8315, - "end": 8342, - "loc": { - "start": { - "line": 228, - "column": 20 - }, - "end": { - "line": 228, - "column": 47 - } - }, - "object": { - "type": "Identifier", - "start": 8315, - "end": 8318, - "loc": { - "start": { - "line": 228, - "column": 20 - }, - "end": { - "line": 228, - "column": 23 - }, - "identifierName": "map" - }, - "name": "map" - }, - "property": { - "type": "MemberExpression", - "start": 8319, - "end": 8341, - "loc": { - "start": { - "line": 228, - "column": 24 - }, - "end": { - "line": 228, - "column": 46 - } - }, - "object": { - "type": "Identifier", - "start": 8319, - "end": 8322, - "loc": { - "start": { - "line": 228, - "column": 24 - }, - "end": { - "line": 228, - "column": 27 - }, - "identifierName": "doc" - }, - "name": "doc" - }, - "property": { - "type": "Identifier", - "start": 8323, - "end": 8341, - "loc": { - "start": { - "line": 228, - "column": 28 - }, - "end": { - "line": 228, - "column": 46 - }, - "identifierName": "origin_document_id" - }, - "name": "origin_document_id" - }, - "computed": false - }, - "computed": true - }, - "right": { - "type": "MemberExpression", - "start": 8345, - "end": 8351, - "loc": { - "start": { - "line": 228, - "column": 50 - }, - "end": { - "line": 228, - "column": 56 - } - }, - "object": { - "type": "Identifier", - "start": 8345, - "end": 8348, - "loc": { - "start": { - "line": 228, - "column": 50 - }, - "end": { - "line": 228, - "column": 53 - }, - "identifierName": "doc" - }, - "name": "doc" - }, - "property": { - "type": "Identifier", - "start": 8349, - "end": 8351, - "loc": { - "start": { - "line": 228, - "column": 54 - }, - "end": { - "line": 228, - "column": 56 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": false - } - } - }, - { - "type": "ReturnStatement", - "start": 8373, - "end": 8384, - "loc": { - "start": { - "line": 229, - "column": 20 - }, - "end": { - "line": 229, - "column": 31 - } - }, - "argument": { - "type": "Identifier", - "start": 8380, - "end": 8383, - "loc": { - "start": { - "line": 229, - "column": 27 - }, - "end": { - "line": 229, - "column": 30 - }, - "identifierName": "map" - }, - "name": "map" - } - } - ], - "directives": [] - } - }, - { - "type": "ObjectExpression", - "start": 8406, - "end": 8408, - "loc": { - "start": { - "line": 230, - "column": 21 - }, - "end": { - "line": 230, - "column": 23 - } - }, - "properties": [] - } - ] - } - } - }, - { - "type": "ExpressionStatement", - "start": 8430, - "end": 8526, - "loc": { - "start": { - "line": 232, - "column": 18 - }, - "end": { - "line": 232, - "column": 114 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 8430, - "end": 8525, - "loc": { - "start": { - "line": 232, - "column": 18 - }, - "end": { - "line": 232, - "column": 113 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 8430, - "end": 8444, - "loc": { - "start": { - "line": 232, - "column": 18 - }, - "end": { - "line": 232, - "column": 32 - }, - "identifierName": "inviteSettings" - }, - "name": "inviteSettings" - }, - "right": { - "type": "CallExpression", - "start": 8447, - "end": 8525, - "loc": { - "start": { - "line": 232, - "column": 35 - }, - "end": { - "line": 232, - "column": 113 - } - }, - "callee": { - "type": "MemberExpression", - "start": 8447, - "end": 8460, - "loc": { - "start": { - "line": 232, - "column": 35 - }, - "end": { - "line": 232, - "column": 48 - } - }, - "object": { - "type": "Identifier", - "start": 8447, - "end": 8453, - "loc": { - "start": { - "line": 232, - "column": 35 - }, - "end": { - "line": 232, - "column": 41 - }, - "identifierName": "Object" - }, - "name": "Object" - }, - "property": { - "type": "Identifier", - "start": 8454, - "end": 8460, - "loc": { - "start": { - "line": 232, - "column": 42 - }, - "end": { - "line": 232, - "column": 48 - }, - "identifierName": "assign" - }, - "name": "assign" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 8461, - "end": 8463, - "loc": { - "start": { - "line": 232, - "column": 49 - }, - "end": { - "line": 232, - "column": 51 - } - }, - "properties": [] - }, - { - "type": "ConditionalExpression", - "start": 8466, - "end": 8517, - "loc": { - "start": { - "line": 232, - "column": 54 - }, - "end": { - "line": 232, - "column": 105 - } - }, - "test": { - "type": "MemberExpression", - "start": 8466, - "end": 8494, - "loc": { - "start": { - "line": 232, - "column": 54 - }, - "end": { - "line": 232, - "column": 82 - } - }, - "object": { - "type": "Identifier", - "start": 8466, - "end": 8481, - "loc": { - "start": { - "line": 232, - "column": 54 - }, - "end": { - "line": 232, - "column": 69 - }, - "identifierName": "routing_details" - }, - "name": "routing_details" - }, - "property": { - "type": "Identifier", - "start": 8482, - "end": 8494, - "loc": { - "start": { - "line": 232, - "column": 70 - }, - "end": { - "line": 232, - "column": 82 - }, - "identifierName": "invite_steps" - }, - "name": "invite_steps" - }, - "computed": false - }, - "consequent": { - "type": "Identifier", - "start": 8497, - "end": 8512, - "loc": { - "start": { - "line": 232, - "column": 85 - }, - "end": { - "line": 232, - "column": 100 - }, - "identifierName": "routing_details" - }, - "name": "routing_details" - }, - "alternate": { - "type": "ObjectExpression", - "start": 8515, - "end": 8517, - "loc": { - "start": { - "line": 232, - "column": 103 - }, - "end": { - "line": 232, - "column": 105 - } - }, - "properties": [] - }, - "extra": { - "parenthesized": true, - "parenStart": 8465 - } - }, - { - "type": "Identifier", - "start": 8520, - "end": 8524, - "loc": { - "start": { - "line": 232, - "column": 108 - }, - "end": { - "line": 232, - "column": 112 - }, - "identifierName": "data" - }, - "name": "data" - } - ] - } - } - }, - { - "type": "ExpressionStatement", - "start": 8546, - "end": 9980, - "loc": { - "start": { - "line": 234, - "column": 18 - }, - "end": { - "line": 274, - "column": 21 - } - }, - "expression": { - "type": "CallExpression", - "start": 8546, - "end": 9979, - "loc": { - "start": { - "line": 234, - "column": 18 - }, - "end": { - "line": 274, - "column": 20 - } - }, - "callee": { - "type": "MemberExpression", - "start": 8546, - "end": 8581, - "loc": { - "start": { - "line": 234, - "column": 18 - }, - "end": { - "line": 234, - "column": 53 - } - }, - "object": { - "type": "MemberExpression", - "start": 8546, - "end": 8573, - "loc": { - "start": { - "line": 234, - "column": 18 - }, - "end": { - "line": 234, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 8546, - "end": 8560, - "loc": { - "start": { - "line": 234, - "column": 18 - }, - "end": { - "line": 234, - "column": 32 - }, - "identifierName": "inviteSettings" - }, - "name": "inviteSettings" - }, - "property": { - "type": "Identifier", - "start": 8561, - "end": 8573, - "loc": { - "start": { - "line": 234, - "column": 33 - }, - "end": { - "line": 234, - "column": 45 - }, - "identifierName": "invite_steps" - }, - "name": "invite_steps" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 8574, - "end": 8581, - "loc": { - "start": { - "line": 234, - "column": 46 - }, - "end": { - "line": 234, - "column": 53 - }, - "identifierName": "forEach" - }, - "name": "forEach" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 8582, - "end": 9978, - "loc": { - "start": { - "line": 234, - "column": 54 - }, - "end": { - "line": 274, - "column": 19 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 8582, - "end": 8586, - "loc": { - "start": { - "line": 234, - "column": 54 - }, - "end": { - "line": 234, - "column": 58 - }, - "identifierName": "step" - }, - "name": "step" - } - ], - "body": { - "type": "BlockStatement", - "start": 8590, - "end": 9978, - "loc": { - "start": { - "line": 234, - "column": 62 - }, - "end": { - "line": 274, - "column": 19 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 8612, - "end": 9166, - "loc": { - "start": { - "line": 235, - "column": 20 - }, - "end": { - "line": 251, - "column": 23 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 8612, - "end": 9165, - "loc": { - "start": { - "line": 235, - "column": 20 - }, - "end": { - "line": 251, - "column": 22 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 8612, - "end": 8630, - "loc": { - "start": { - "line": 235, - "column": 20 - }, - "end": { - "line": 235, - "column": 38 - } - }, - "object": { - "type": "Identifier", - "start": 8612, - "end": 8616, - "loc": { - "start": { - "line": 235, - "column": 20 - }, - "end": { - "line": 235, - "column": 24 - }, - "identifierName": "step" - }, - "name": "step" - }, - "property": { - "type": "Identifier", - "start": 8617, - "end": 8630, - "loc": { - "start": { - "line": 235, - "column": 25 - }, - "end": { - "line": 235, - "column": 38 - }, - "identifierName": "invite_emails" - }, - "name": "invite_emails" - }, - "computed": false - }, - "right": { - "type": "CallExpression", - "start": 8633, - "end": 9165, - "loc": { - "start": { - "line": 235, - "column": 41 - }, - "end": { - "line": 251, - "column": 22 - } - }, - "callee": { - "type": "MemberExpression", - "start": 8633, - "end": 8655, - "loc": { - "start": { - "line": 235, - "column": 41 - }, - "end": { - "line": 235, - "column": 63 - } - }, - "object": { - "type": "MemberExpression", - "start": 8633, - "end": 8651, - "loc": { - "start": { - "line": 235, - "column": 41 - }, - "end": { - "line": 235, - "column": 59 - } - }, - "object": { - "type": "Identifier", - "start": 8633, - "end": 8637, - "loc": { - "start": { - "line": 235, - "column": 41 - }, - "end": { - "line": 235, - "column": 45 - }, - "identifierName": "step" - }, - "name": "step" - }, - "property": { - "type": "Identifier", - "start": 8638, - "end": 8651, - "loc": { - "start": { - "line": 235, - "column": 46 - }, - "end": { - "line": 235, - "column": 59 - }, - "identifierName": "invite_emails" - }, - "name": "invite_emails" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 8652, - "end": 8655, - "loc": { - "start": { - "line": 235, - "column": 60 - }, - "end": { - "line": 235, - "column": 63 - }, - "identifierName": "map" - }, - "name": "map" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 8656, - "end": 9164, - "loc": { - "start": { - "line": 235, - "column": 64 - }, - "end": { - "line": 251, - "column": 21 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 8656, - "end": 8667, - "loc": { - "start": { - "line": 235, - "column": 64 - }, - "end": { - "line": 235, - "column": 75 - }, - "identifierName": "inviteEmail" - }, - "name": "inviteEmail" - } - ], - "body": { - "type": "BlockStatement", - "start": 8671, - "end": 9164, - "loc": { - "start": { - "line": 235, - "column": 79 - }, - "end": { - "line": 251, - "column": 21 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 8695, - "end": 8913, - "loc": { - "start": { - "line": 236, - "column": 22 - }, - "end": { - "line": 242, - "column": 38 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 8701, - "end": 8912, - "loc": { - "start": { - "line": 236, - "column": 28 - }, - "end": { - "line": 242, - "column": 37 - } - }, - "id": { - "type": "ObjectPattern", - "start": 8701, - "end": 8898, - "loc": { - "start": { - "line": 236, - "column": 28 - }, - "end": { - "line": 242, - "column": 23 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 8727, - "end": 8732, - "loc": { - "start": { - "line": 237, - "column": 24 - }, - "end": { - "line": 237, - "column": 29 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8727, - "end": 8732, - "loc": { - "start": { - "line": 237, - "column": 24 - }, - "end": { - "line": 237, - "column": 29 - }, - "identifierName": "email" - }, - "name": "email" - }, - "value": { - "type": "Identifier", - "start": 8727, - "end": 8732, - "loc": { - "start": { - "line": 237, - "column": 24 - }, - "end": { - "line": 237, - "column": 29 - }, - "identifierName": "email" - }, - "name": "email" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 8758, - "end": 8765, - "loc": { - "start": { - "line": 238, - "column": 24 - }, - "end": { - "line": 238, - "column": 31 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8758, - "end": 8765, - "loc": { - "start": { - "line": 238, - "column": 24 - }, - "end": { - "line": 238, - "column": 31 - }, - "identifierName": "subject" - }, - "name": "subject" - }, - "value": { - "type": "Identifier", - "start": 8758, - "end": 8765, - "loc": { - "start": { - "line": 238, - "column": 24 - }, - "end": { - "line": 238, - "column": 31 - }, - "identifierName": "subject" - }, - "name": "subject" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 8791, - "end": 8798, - "loc": { - "start": { - "line": 239, - "column": 24 - }, - "end": { - "line": 239, - "column": 31 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8791, - "end": 8798, - "loc": { - "start": { - "line": 239, - "column": 24 - }, - "end": { - "line": 239, - "column": 31 - }, - "identifierName": "message" - }, - "name": "message" - }, - "value": { - "type": "Identifier", - "start": 8791, - "end": 8798, - "loc": { - "start": { - "line": 239, - "column": 24 - }, - "end": { - "line": 239, - "column": 31 - }, - "identifierName": "message" - }, - "name": "message" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 8824, - "end": 8839, - "loc": { - "start": { - "line": 240, - "column": 24 - }, - "end": { - "line": 240, - "column": 39 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8824, - "end": 8839, - "loc": { - "start": { - "line": 240, - "column": 24 - }, - "end": { - "line": 240, - "column": 39 - }, - "identifierName": "expiration_days" - }, - "name": "expiration_days" - }, - "value": { - "type": "Identifier", - "start": 8824, - "end": 8839, - "loc": { - "start": { - "line": 240, - "column": 24 - }, - "end": { - "line": 240, - "column": 39 - }, - "identifierName": "expiration_days" - }, - "name": "expiration_days" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 8865, - "end": 8873, - "loc": { - "start": { - "line": 241, - "column": 24 - }, - "end": { - "line": 241, - "column": 32 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8865, - "end": 8873, - "loc": { - "start": { - "line": 241, - "column": 24 - }, - "end": { - "line": 241, - "column": 32 - }, - "identifierName": "reminder" - }, - "name": "reminder" - }, - "value": { - "type": "Identifier", - "start": 8865, - "end": 8873, - "loc": { - "start": { - "line": 241, - "column": 24 - }, - "end": { - "line": 241, - "column": 32 - }, - "identifierName": "reminder" - }, - "name": "reminder" - }, - "extra": { - "shorthand": true - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 8901, - "end": 8912, - "loc": { - "start": { - "line": 242, - "column": 26 - }, - "end": { - "line": 242, - "column": 37 - }, - "identifierName": "inviteEmail" - }, - "name": "inviteEmail" - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 8937, - "end": 9142, - "loc": { - "start": { - "line": 244, - "column": 22 - }, - "end": { - "line": 250, - "column": 24 - } - }, - "argument": { - "type": "ObjectExpression", - "start": 8944, - "end": 9141, - "loc": { - "start": { - "line": 244, - "column": 29 - }, - "end": { - "line": 250, - "column": 23 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 8970, - "end": 8975, - "loc": { - "start": { - "line": 245, - "column": 24 - }, - "end": { - "line": 245, - "column": 29 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8970, - "end": 8975, - "loc": { - "start": { - "line": 245, - "column": 24 - }, - "end": { - "line": 245, - "column": 29 - }, - "identifierName": "email" - }, - "name": "email" - }, - "value": { - "type": "Identifier", - "start": 8970, - "end": 8975, - "loc": { - "start": { - "line": 245, - "column": 24 - }, - "end": { - "line": 245, - "column": 29 - }, - "identifierName": "email" - }, - "name": "email" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 9001, - "end": 9008, - "loc": { - "start": { - "line": 246, - "column": 24 - }, - "end": { - "line": 246, - "column": 31 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9001, - "end": 9008, - "loc": { - "start": { - "line": 246, - "column": 24 - }, - "end": { - "line": 246, - "column": 31 - }, - "identifierName": "subject" - }, - "name": "subject" - }, - "value": { - "type": "Identifier", - "start": 9001, - "end": 9008, - "loc": { - "start": { - "line": 246, - "column": 24 - }, - "end": { - "line": 246, - "column": 31 - }, - "identifierName": "subject" - }, - "name": "subject" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 9034, - "end": 9041, - "loc": { - "start": { - "line": 247, - "column": 24 - }, - "end": { - "line": 247, - "column": 31 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9034, - "end": 9041, - "loc": { - "start": { - "line": 247, - "column": 24 - }, - "end": { - "line": 247, - "column": 31 - }, - "identifierName": "message" - }, - "name": "message" - }, - "value": { - "type": "Identifier", - "start": 9034, - "end": 9041, - "loc": { - "start": { - "line": 247, - "column": 24 - }, - "end": { - "line": 247, - "column": 31 - }, - "identifierName": "message" - }, - "name": "message" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 9067, - "end": 9082, - "loc": { - "start": { - "line": 248, - "column": 24 - }, - "end": { - "line": 248, - "column": 39 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9067, - "end": 9082, - "loc": { - "start": { - "line": 248, - "column": 24 - }, - "end": { - "line": 248, - "column": 39 - }, - "identifierName": "expiration_days" - }, - "name": "expiration_days" - }, - "value": { - "type": "Identifier", - "start": 9067, - "end": 9082, - "loc": { - "start": { - "line": 248, - "column": 24 - }, - "end": { - "line": 248, - "column": 39 - }, - "identifierName": "expiration_days" - }, - "name": "expiration_days" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 9108, - "end": 9116, - "loc": { - "start": { - "line": 249, - "column": 24 - }, - "end": { - "line": 249, - "column": 32 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9108, - "end": 9116, - "loc": { - "start": { - "line": 249, - "column": 24 - }, - "end": { - "line": 249, - "column": 32 - }, - "identifierName": "reminder" - }, - "name": "reminder" - }, - "value": { - "type": "Identifier", - "start": 9108, - "end": 9116, - "loc": { - "start": { - "line": 249, - "column": 24 - }, - "end": { - "line": 249, - "column": 32 - }, - "identifierName": "reminder" - }, - "name": "reminder" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ], - "directives": [] - } - } - ] - } - } - }, - { - "type": "ExpressionStatement", - "start": 9188, - "end": 9958, - "loc": { - "start": { - "line": 253, - "column": 20 - }, - "end": { - "line": 273, - "column": 23 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 9188, - "end": 9957, - "loc": { - "start": { - "line": 253, - "column": 20 - }, - "end": { - "line": 273, - "column": 22 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 9188, - "end": 9207, - "loc": { - "start": { - "line": 253, - "column": 20 - }, - "end": { - "line": 253, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 9188, - "end": 9192, - "loc": { - "start": { - "line": 253, - "column": 20 - }, - "end": { - "line": 253, - "column": 24 - }, - "identifierName": "step" - }, - "name": "step" - }, - "property": { - "type": "Identifier", - "start": 9193, - "end": 9207, - "loc": { - "start": { - "line": 253, - "column": 25 - }, - "end": { - "line": 253, - "column": 39 - }, - "identifierName": "invite_actions" - }, - "name": "invite_actions" - }, - "computed": false - }, - "right": { - "type": "CallExpression", - "start": 9210, - "end": 9957, - "loc": { - "start": { - "line": 253, - "column": 42 - }, - "end": { - "line": 273, - "column": 22 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9210, - "end": 9233, - "loc": { - "start": { - "line": 253, - "column": 42 - }, - "end": { - "line": 253, - "column": 65 - } - }, - "object": { - "type": "MemberExpression", - "start": 9210, - "end": 9229, - "loc": { - "start": { - "line": 253, - "column": 42 - }, - "end": { - "line": 253, - "column": 61 - } - }, - "object": { - "type": "Identifier", - "start": 9210, - "end": 9214, - "loc": { - "start": { - "line": 253, - "column": 42 - }, - "end": { - "line": 253, - "column": 46 - }, - "identifierName": "step" - }, - "name": "step" - }, - "property": { - "type": "Identifier", - "start": 9215, - "end": 9229, - "loc": { - "start": { - "line": 253, - "column": 47 - }, - "end": { - "line": 253, - "column": 61 - }, - "identifierName": "invite_actions" - }, - "name": "invite_actions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 9230, - "end": 9233, - "loc": { - "start": { - "line": 253, - "column": 62 - }, - "end": { - "line": 253, - "column": 65 - }, - "identifierName": "map" - }, - "name": "map" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 9234, - "end": 9956, - "loc": { - "start": { - "line": 253, - "column": 66 - }, - "end": { - "line": 273, - "column": 21 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 9234, - "end": 9246, - "loc": { - "start": { - "line": 253, - "column": 66 - }, - "end": { - "line": 253, - "column": 78 - }, - "identifierName": "inviteAction" - }, - "name": "inviteAction" - } - ], - "body": { - "type": "BlockStatement", - "start": 9250, - "end": 9956, - "loc": { - "start": { - "line": 253, - "column": 82 - }, - "end": { - "line": 273, - "column": 21 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 9274, - "end": 9582, - "loc": { - "start": { - "line": 254, - "column": 22 - }, - "end": { - "line": 262, - "column": 39 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 9280, - "end": 9581, - "loc": { - "start": { - "line": 254, - "column": 28 - }, - "end": { - "line": 262, - "column": 38 - } - }, - "id": { - "type": "ObjectPattern", - "start": 9280, - "end": 9566, - "loc": { - "start": { - "line": 254, - "column": 28 - }, - "end": { - "line": 262, - "column": 23 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 9306, - "end": 9311, - "loc": { - "start": { - "line": 255, - "column": 24 - }, - "end": { - "line": 255, - "column": 29 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9306, - "end": 9311, - "loc": { - "start": { - "line": 255, - "column": 24 - }, - "end": { - "line": 255, - "column": 29 - }, - "identifierName": "email" - }, - "name": "email" - }, - "value": { - "type": "Identifier", - "start": 9306, - "end": 9311, - "loc": { - "start": { - "line": 255, - "column": 24 - }, - "end": { - "line": 255, - "column": 29 - }, - "identifierName": "email" - }, - "name": "email" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 9337, - "end": 9346, - "loc": { - "start": { - "line": 256, - "column": 24 - }, - "end": { - "line": 256, - "column": 33 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9337, - "end": 9346, - "loc": { - "start": { - "line": 256, - "column": 24 - }, - "end": { - "line": 256, - "column": 33 - }, - "identifierName": "role_name" - }, - "name": "role_name" - }, - "value": { - "type": "Identifier", - "start": 9337, - "end": 9346, - "loc": { - "start": { - "line": 256, - "column": 24 - }, - "end": { - "line": 256, - "column": 33 - }, - "identifierName": "role_name" - }, - "name": "role_name" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 9372, - "end": 9378, - "loc": { - "start": { - "line": 257, - "column": 24 - }, - "end": { - "line": 257, - "column": 30 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9372, - "end": 9378, - "loc": { - "start": { - "line": 257, - "column": 24 - }, - "end": { - "line": 257, - "column": 30 - }, - "identifierName": "action" - }, - "name": "action" - }, - "value": { - "type": "Identifier", - "start": 9372, - "end": 9378, - "loc": { - "start": { - "line": 257, - "column": 24 - }, - "end": { - "line": 257, - "column": 30 - }, - "identifierName": "action" - }, - "name": "action" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 9404, - "end": 9415, - "loc": { - "start": { - "line": 258, - "column": 24 - }, - "end": { - "line": 258, - "column": 35 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9404, - "end": 9415, - "loc": { - "start": { - "line": 258, - "column": 24 - }, - "end": { - "line": 258, - "column": 35 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "value": { - "type": "Identifier", - "start": 9404, - "end": 9415, - "loc": { - "start": { - "line": 258, - "column": 24 - }, - "end": { - "line": 258, - "column": 35 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 9441, - "end": 9455, - "loc": { - "start": { - "line": 259, - "column": 24 - }, - "end": { - "line": 259, - "column": 38 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9441, - "end": 9455, - "loc": { - "start": { - "line": 259, - "column": 24 - }, - "end": { - "line": 259, - "column": 38 - }, - "identifierName": "allow_reassign" - }, - "name": "allow_reassign" - }, - "value": { - "type": "Identifier", - "start": 9441, - "end": 9455, - "loc": { - "start": { - "line": 259, - "column": 24 - }, - "end": { - "line": 259, - "column": 38 - }, - "identifierName": "allow_reassign" - }, - "name": "allow_reassign" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 9481, - "end": 9501, - "loc": { - "start": { - "line": 260, - "column": 24 - }, - "end": { - "line": 260, - "column": 44 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9481, - "end": 9501, - "loc": { - "start": { - "line": 260, - "column": 24 - }, - "end": { - "line": 260, - "column": 44 - }, - "identifierName": "decline_by_signature" - }, - "name": "decline_by_signature" - }, - "value": { - "type": "Identifier", - "start": 9481, - "end": 9501, - "loc": { - "start": { - "line": 260, - "column": 24 - }, - "end": { - "line": 260, - "column": 44 - }, - "identifierName": "decline_by_signature" - }, - "name": "decline_by_signature" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 9527, - "end": 9541, - "loc": { - "start": { - "line": 261, - "column": 24 - }, - "end": { - "line": 261, - "column": 38 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9527, - "end": 9541, - "loc": { - "start": { - "line": 261, - "column": 24 - }, - "end": { - "line": 261, - "column": 38 - }, - "identifierName": "authentication" - }, - "name": "authentication" - }, - "value": { - "type": "Identifier", - "start": 9527, - "end": 9541, - "loc": { - "start": { - "line": 261, - "column": 24 - }, - "end": { - "line": 261, - "column": 38 - }, - "identifierName": "authentication" - }, - "name": "authentication" - }, - "extra": { - "shorthand": true - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 9569, - "end": 9581, - "loc": { - "start": { - "line": 262, - "column": 26 - }, - "end": { - "line": 262, - "column": 38 - }, - "identifierName": "inviteAction" - }, - "name": "inviteAction" - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 9606, - "end": 9934, - "loc": { - "start": { - "line": 264, - "column": 22 - }, - "end": { - "line": 272, - "column": 24 - } - }, - "argument": { - "type": "ObjectExpression", - "start": 9613, - "end": 9933, - "loc": { - "start": { - "line": 264, - "column": 29 - }, - "end": { - "line": 272, - "column": 23 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 9639, - "end": 9684, - "loc": { - "start": { - "line": 265, - "column": 24 - }, - "end": { - "line": 265, - "column": 69 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 9639, - "end": 9650, - "loc": { - "start": { - "line": 265, - "column": 24 - }, - "end": { - "line": 265, - "column": 35 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "value": { - "type": "MemberExpression", - "start": 9652, - "end": 9684, - "loc": { - "start": { - "line": 265, - "column": 37 - }, - "end": { - "line": 265, - "column": 69 - } - }, - "object": { - "type": "Identifier", - "start": 9652, - "end": 9671, - "loc": { - "start": { - "line": 265, - "column": 37 - }, - "end": { - "line": 265, - "column": 56 - }, - "identifierName": "documentToOriginMap" - }, - "name": "documentToOriginMap" - }, - "property": { - "type": "Identifier", - "start": 9672, - "end": 9683, - "loc": { - "start": { - "line": 265, - "column": 57 - }, - "end": { - "line": 265, - "column": 68 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "computed": true - } - }, - { - "type": "ObjectProperty", - "start": 9710, - "end": 9715, - "loc": { - "start": { - "line": 266, - "column": 24 - }, - "end": { - "line": 266, - "column": 29 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9710, - "end": 9715, - "loc": { - "start": { - "line": 266, - "column": 24 - }, - "end": { - "line": 266, - "column": 29 - }, - "identifierName": "email" - }, - "name": "email" - }, - "value": { - "type": "Identifier", - "start": 9710, - "end": 9715, - "loc": { - "start": { - "line": 266, - "column": 24 - }, - "end": { - "line": 266, - "column": 29 - }, - "identifierName": "email" - }, - "name": "email" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 9741, - "end": 9750, - "loc": { - "start": { - "line": 267, - "column": 24 - }, - "end": { - "line": 267, - "column": 33 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9741, - "end": 9750, - "loc": { - "start": { - "line": 267, - "column": 24 - }, - "end": { - "line": 267, - "column": 33 - }, - "identifierName": "role_name" - }, - "name": "role_name" - }, - "value": { - "type": "Identifier", - "start": 9741, - "end": 9750, - "loc": { - "start": { - "line": 267, - "column": 24 - }, - "end": { - "line": 267, - "column": 33 - }, - "identifierName": "role_name" - }, - "name": "role_name" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 9776, - "end": 9782, - "loc": { - "start": { - "line": 268, - "column": 24 - }, - "end": { - "line": 268, - "column": 30 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9776, - "end": 9782, - "loc": { - "start": { - "line": 268, - "column": 24 - }, - "end": { - "line": 268, - "column": 30 - }, - "identifierName": "action" - }, - "name": "action" - }, - "value": { - "type": "Identifier", - "start": 9776, - "end": 9782, - "loc": { - "start": { - "line": 268, - "column": 24 - }, - "end": { - "line": 268, - "column": 30 - }, - "identifierName": "action" - }, - "name": "action" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 9808, - "end": 9822, - "loc": { - "start": { - "line": 269, - "column": 24 - }, - "end": { - "line": 269, - "column": 38 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9808, - "end": 9822, - "loc": { - "start": { - "line": 269, - "column": 24 - }, - "end": { - "line": 269, - "column": 38 - }, - "identifierName": "allow_reassign" - }, - "name": "allow_reassign" - }, - "value": { - "type": "Identifier", - "start": 9808, - "end": 9822, - "loc": { - "start": { - "line": 269, - "column": 24 - }, - "end": { - "line": 269, - "column": 38 - }, - "identifierName": "allow_reassign" - }, - "name": "allow_reassign" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 9848, - "end": 9868, - "loc": { - "start": { - "line": 270, - "column": 24 - }, - "end": { - "line": 270, - "column": 44 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9848, - "end": 9868, - "loc": { - "start": { - "line": 270, - "column": 24 - }, - "end": { - "line": 270, - "column": 44 - }, - "identifierName": "decline_by_signature" - }, - "name": "decline_by_signature" - }, - "value": { - "type": "Identifier", - "start": 9848, - "end": 9868, - "loc": { - "start": { - "line": 270, - "column": 24 - }, - "end": { - "line": 270, - "column": 44 - }, - "identifierName": "decline_by_signature" - }, - "name": "decline_by_signature" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 9894, - "end": 9908, - "loc": { - "start": { - "line": 271, - "column": 24 - }, - "end": { - "line": 271, - "column": 38 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9894, - "end": 9908, - "loc": { - "start": { - "line": 271, - "column": 24 - }, - "end": { - "line": 271, - "column": 38 - }, - "identifierName": "authentication" - }, - "name": "authentication" - }, - "value": { - "type": "Identifier", - "start": 9894, - "end": 9908, - "loc": { - "start": { - "line": 271, - "column": 24 - }, - "end": { - "line": 271, - "column": 38 - }, - "identifierName": "authentication" - }, - "name": "authentication" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ], - "directives": [] - } - } - ] - } - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - }, - "handler": { - "type": "CatchClause", - "start": 9999, - "end": 10089, - "loc": { - "start": { - "line": 275, - "column": 18 - }, - "end": { - "line": 278, - "column": 17 - } - }, - "param": { - "type": "Identifier", - "start": 10006, - "end": 10009, - "loc": { - "start": { - "line": 275, - "column": 25 - }, - "end": { - "line": 275, - "column": 28 - }, - "identifierName": "err" - }, - "name": "err" - }, - "body": { - "type": "BlockStatement", - "start": 10011, - "end": 10089, - "loc": { - "start": { - "line": 275, - "column": 30 - }, - "end": { - "line": 278, - "column": 17 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 10031, - "end": 10045, - "loc": { - "start": { - "line": 276, - "column": 18 - }, - "end": { - "line": 276, - "column": 32 - } - }, - "expression": { - "type": "CallExpression", - "start": 10031, - "end": 10044, - "loc": { - "start": { - "line": 276, - "column": 18 - }, - "end": { - "line": 276, - "column": 31 - } - }, - "callee": { - "type": "Identifier", - "start": 10031, - "end": 10039, - "loc": { - "start": { - "line": 276, - "column": 18 - }, - "end": { - "line": 276, - "column": 26 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 10040, - "end": 10043, - "loc": { - "start": { - "line": 276, - "column": 27 - }, - "end": { - "line": 276, - "column": 30 - }, - "identifierName": "err" - }, - "name": "err" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 10064, - "end": 10071, - "loc": { - "start": { - "line": 277, - "column": 18 - }, - "end": { - "line": 277, - "column": 25 - } - }, - "argument": null - } - ], - "directives": [] - } - }, - "guardedHandlers": [], - "finalizer": null - }, - { - "type": "ExpressionStatement", - "start": 10107, - "end": 10525, - "loc": { - "start": { - "line": 280, - "column": 16 - }, - "end": { - "line": 292, - "column": 19 - } - }, - "expression": { - "type": "CallExpression", - "start": 10107, - "end": 10524, - "loc": { - "start": { - "line": 280, - "column": 16 - }, - "end": { - "line": 292, - "column": 18 - } - }, - "callee": { - "type": "Identifier", - "start": 10107, - "end": 10126, - "loc": { - "start": { - "line": 280, - "column": 16 - }, - "end": { - "line": 280, - "column": 35 - }, - "identifierName": "inviteDocumentGroup" - }, - "name": "inviteDocumentGroup" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 10127, - "end": 10250, - "loc": { - "start": { - "line": 280, - "column": 36 - }, - "end": { - "line": 284, - "column": 17 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 10147, - "end": 10166, - "loc": { - "start": { - "line": 281, - "column": 18 - }, - "end": { - "line": 281, - "column": 37 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 10147, - "end": 10149, - "loc": { - "start": { - "line": 281, - "column": 18 - }, - "end": { - "line": 281, - "column": 20 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 10151, - "end": 10166, - "loc": { - "start": { - "line": 281, - "column": 22 - }, - "end": { - "line": 281, - "column": 37 - }, - "identifierName": "documentGroupId" - }, - "name": "documentGroupId" - } - }, - { - "type": "ObjectProperty", - "start": 10186, - "end": 10206, - "loc": { - "start": { - "line": 282, - "column": 18 - }, - "end": { - "line": 282, - "column": 38 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 10186, - "end": 10190, - "loc": { - "start": { - "line": 282, - "column": 18 - }, - "end": { - "line": 282, - "column": 22 - }, - "identifierName": "data" - }, - "name": "data" - }, - "value": { - "type": "Identifier", - "start": 10192, - "end": 10206, - "loc": { - "start": { - "line": 282, - "column": 24 - }, - "end": { - "line": 282, - "column": 38 - }, - "identifierName": "inviteSettings" - }, - "name": "inviteSettings" - } - }, - { - "type": "ObjectProperty", - "start": 10226, - "end": 10231, - "loc": { - "start": { - "line": 283, - "column": 18 - }, - "end": { - "line": 283, - "column": 23 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 10226, - "end": 10231, - "loc": { - "start": { - "line": 283, - "column": 18 - }, - "end": { - "line": 283, - "column": 23 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 10226, - "end": 10231, - "loc": { - "start": { - "line": 283, - "column": 18 - }, - "end": { - "line": 283, - "column": 23 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "ArrowFunctionExpression", - "start": 10252, - "end": 10523, - "loc": { - "start": { - "line": 284, - "column": 19 - }, - "end": { - "line": 292, - "column": 17 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 10253, - "end": 10262, - "loc": { - "start": { - "line": 284, - "column": 20 - }, - "end": { - "line": 284, - "column": 29 - }, - "identifierName": "inviteErr" - }, - "name": "inviteErr" - }, - { - "type": "Identifier", - "start": 10264, - "end": 10273, - "loc": { - "start": { - "line": 284, - "column": 31 - }, - "end": { - "line": 284, - "column": 40 - }, - "identifierName": "inviteRes" - }, - "name": "inviteRes" - } - ], - "body": { - "type": "BlockStatement", - "start": 10278, - "end": 10523, - "loc": { - "start": { - "line": 284, - "column": 45 - }, - "end": { - "line": 292, - "column": 17 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 10298, - "end": 10505, - "loc": { - "start": { - "line": 285, - "column": 18 - }, - "end": { - "line": 291, - "column": 19 - } - }, - "test": { - "type": "Identifier", - "start": 10302, - "end": 10311, - "loc": { - "start": { - "line": 285, - "column": 22 - }, - "end": { - "line": 285, - "column": 31 - }, - "identifierName": "inviteErr" - }, - "name": "inviteErr" - }, - "consequent": { - "type": "BlockStatement", - "start": 10313, - "end": 10403, - "loc": { - "start": { - "line": 285, - "column": 33 - }, - "end": { - "line": 288, - "column": 19 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 10335, - "end": 10355, - "loc": { - "start": { - "line": 286, - "column": 20 - }, - "end": { - "line": 286, - "column": 40 - } - }, - "expression": { - "type": "CallExpression", - "start": 10335, - "end": 10354, - "loc": { - "start": { - "line": 286, - "column": 20 - }, - "end": { - "line": 286, - "column": 39 - } - }, - "callee": { - "type": "Identifier", - "start": 10335, - "end": 10343, - "loc": { - "start": { - "line": 286, - "column": 20 - }, - "end": { - "line": 286, - "column": 28 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 10344, - "end": 10353, - "loc": { - "start": { - "line": 286, - "column": 29 - }, - "end": { - "line": 286, - "column": 38 - }, - "identifierName": "inviteErr" - }, - "name": "inviteErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 10376, - "end": 10383, - "loc": { - "start": { - "line": 287, - "column": 20 - }, - "end": { - "line": 287, - "column": 27 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 10409, - "end": 10505, - "loc": { - "start": { - "line": 288, - "column": 25 - }, - "end": { - "line": 291, - "column": 19 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 10431, - "end": 10457, - "loc": { - "start": { - "line": 289, - "column": 20 - }, - "end": { - "line": 289, - "column": 46 - } - }, - "expression": { - "type": "CallExpression", - "start": 10431, - "end": 10456, - "loc": { - "start": { - "line": 289, - "column": 20 - }, - "end": { - "line": 289, - "column": 45 - } - }, - "callee": { - "type": "Identifier", - "start": 10431, - "end": 10439, - "loc": { - "start": { - "line": 289, - "column": 20 - }, - "end": { - "line": 289, - "column": 28 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "NullLiteral", - "start": 10440, - "end": 10444, - "loc": { - "start": { - "line": 289, - "column": 29 - }, - "end": { - "line": 289, - "column": 33 - } - } - }, - { - "type": "Identifier", - "start": 10446, - "end": 10455, - "loc": { - "start": { - "line": 289, - "column": 35 - }, - "end": { - "line": 289, - "column": 44 - }, - "identifierName": "inviteRes" - }, - "name": "inviteRes" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 10478, - "end": 10485, - "loc": { - "start": { - "line": 290, - "column": 20 - }, - "end": { - "line": 290, - "column": 27 - } - }, - "argument": null - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Create Document Group Template invite payload\n * @typedef {Object} DocumentGroupTemplateInviteParams\n * @property {string} id - ID of specific Document Group Template\n * @property {DocumentGroupInviteSettings} [data] - Document Group Template invite settings data\n * @property {string} token - your auth token\n ", - "start": 6052, - "end": 6384, - "loc": { - "start": { - "line": 156, - "column": 2 - }, - "end": { - "line": 162, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create Document Group Template invite response data\n * @typedef {DocumentGroupInviteResponse} DocumentGroupTemplateInviteResponse\n * @property {string} id - an ID of created invite\n * @property {?string} pending_invite_link - pending invite link\n ", - "start": 6388, - "end": 6654, - "loc": { - "start": { - "line": 164, - "column": 2 - }, - "end": { - "line": 169, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates an invite to sign a Document Group Template\n * @param {DocumentGroupTemplateInviteParams} data - create Document Group Template invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupTemplateInviteResponse)} [callback] - error first node.js callback\n ", - "start": 6658, - "end": 6955, - "loc": { - "start": { - "line": 171, - "column": 2 - }, - "end": { - "line": 175, - "column": 5 - } - } - } - ] - } - ] - }, - "leadingComments": [], - "name": "_", - "trailingComments": [] - }, - { - "type": "Identifier", - "start": 10606, - "end": 10643, - "loc": { - "start": { - "line": 303, - "column": 0 - }, - "end": { - "line": 303, - "column": 37 - } - }, - "declaration": { - "type": "Identifier", - "start": 10621, - "end": 10642, - "loc": { - "start": { - "line": 303, - "column": 15 - }, - "end": { - "line": 303, - "column": 36 - }, - "identifierName": "DocumentGroupTemplate" - }, - "name": "DocumentGroupTemplate" - }, - "name": "_", - "leadingComments": [], - "trailingComments": [] - }, - { - "type": "ExportDefaultDeclaration", - "start": 10606, - "end": 10643, - "loc": { - "start": { - "line": 303, - "column": 0 - }, - "end": { - "line": 303, - "column": 37 - } - }, - "declaration": { - "type": "ClassDeclaration", - "start": 365, - "end": 10604, - "loc": { - "start": { - "line": 16, - "column": 0 - }, - "end": { - "line": 301, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 371, - "end": 392, - "loc": { - "start": { - "line": 16, - "column": 6 - }, - "end": { - "line": 16, - "column": 27 - }, - "identifierName": "DocumentGroupTemplate" - }, - "name": "DocumentGroupTemplate", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 393, - "end": 10604, - "loc": { - "start": { - "line": 16, - "column": 28 - }, - "end": { - "line": 301, - "column": 1 - } - }, - "body": [ - { - "type": "ClassMethod", - "start": 3231, - "end": 3917, - "loc": { - "start": { - "line": 76, - "column": 2 - }, - "end": { - "line": 104, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3238, - "end": 3244, - "loc": { - "start": { - "line": 76, - "column": 9 - }, - "end": { - "line": 76, - "column": 15 - }, - "identifierName": "create" - }, - "name": "create" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 3246, - "end": 3326, - "loc": { - "start": { - "line": 76, - "column": 17 - }, - "end": { - "line": 81, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3252, - "end": 3257, - "loc": { - "start": { - "line": 77, - "column": 4 - }, - "end": { - "line": 77, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3252, - "end": 3257, - "loc": { - "start": { - "line": 77, - "column": 4 - }, - "end": { - "line": 77, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 3252, - "end": 3257, - "loc": { - "start": { - "line": 77, - "column": 4 - }, - "end": { - "line": 77, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3263, - "end": 3275, - "loc": { - "start": { - "line": 78, - "column": 4 - }, - "end": { - "line": 78, - "column": 16 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3263, - "end": 3275, - "loc": { - "start": { - "line": 78, - "column": 4 - }, - "end": { - "line": 78, - "column": 16 - }, - "identifierName": "template_ids" - }, - "name": "template_ids" - }, - "value": { - "type": "Identifier", - "start": 3263, - "end": 3275, - "loc": { - "start": { - "line": 78, - "column": 4 - }, - "end": { - "line": 78, - "column": 16 - }, - "identifierName": "template_ids" - }, - "name": "template_ids" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3281, - "end": 3300, - "loc": { - "start": { - "line": 79, - "column": 4 - }, - "end": { - "line": 79, - "column": 23 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3281, - "end": 3300, - "loc": { - "start": { - "line": 79, - "column": 4 - }, - "end": { - "line": 79, - "column": 23 - }, - "identifierName": "template_group_name" - }, - "name": "template_group_name" - }, - "value": { - "type": "Identifier", - "start": 3281, - "end": 3300, - "loc": { - "start": { - "line": 79, - "column": 4 - }, - "end": { - "line": 79, - "column": 23 - }, - "identifierName": "template_group_name" - }, - "name": "template_group_name" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3306, - "end": 3321, - "loc": { - "start": { - "line": 80, - "column": 4 - }, - "end": { - "line": 80, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3306, - "end": 3321, - "loc": { - "start": { - "line": 80, - "column": 4 - }, - "end": { - "line": 80, - "column": 19 - }, - "identifierName": "routing_details" - }, - "name": "routing_details" - }, - "value": { - "type": "Identifier", - "start": 3306, - "end": 3321, - "loc": { - "start": { - "line": 80, - "column": 4 - }, - "end": { - "line": 80, - "column": 19 - }, - "identifierName": "routing_details" - }, - "name": "routing_details" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 3328, - "end": 3336, - "loc": { - "start": { - "line": 81, - "column": 5 - }, - "end": { - "line": 81, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 3338, - "end": 3917, - "loc": { - "start": { - "line": 81, - "column": 15 - }, - "end": { - "line": 104, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 3344, - "end": 3455, - "loc": { - "start": { - "line": 82, - "column": 4 - }, - "end": { - "line": 86, - "column": 7 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3350, - "end": 3454, - "loc": { - "start": { - "line": 82, - "column": 10 - }, - "end": { - "line": 86, - "column": 6 - } - }, - "id": { - "type": "Identifier", - "start": 3350, - "end": 3358, - "loc": { - "start": { - "line": 82, - "column": 10 - }, - "end": { - "line": 82, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 3361, - "end": 3454, - "loc": { - "start": { - "line": 82, - "column": 21 - }, - "end": { - "line": 86, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3361, - "end": 3375, - "loc": { - "start": { - "line": 82, - "column": 21 - }, - "end": { - "line": 82, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 3361, - "end": 3365, - "loc": { - "start": { - "line": 82, - "column": 21 - }, - "end": { - "line": 82, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 3366, - "end": 3375, - "loc": { - "start": { - "line": 82, - "column": 26 - }, - "end": { - "line": 82, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 3376, - "end": 3453, - "loc": { - "start": { - "line": 82, - "column": 36 - }, - "end": { - "line": 86, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3384, - "end": 3396, - "loc": { - "start": { - "line": 83, - "column": 6 - }, - "end": { - "line": 83, - "column": 18 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3384, - "end": 3396, - "loc": { - "start": { - "line": 83, - "column": 6 - }, - "end": { - "line": 83, - "column": 18 - }, - "identifierName": "template_ids" - }, - "name": "template_ids" - }, - "value": { - "type": "Identifier", - "start": 3384, - "end": 3396, - "loc": { - "start": { - "line": 83, - "column": 6 - }, - "end": { - "line": 83, - "column": 18 - }, - "identifierName": "template_ids" - }, - "name": "template_ids" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3404, - "end": 3423, - "loc": { - "start": { - "line": 84, - "column": 6 - }, - "end": { - "line": 84, - "column": 25 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3404, - "end": 3423, - "loc": { - "start": { - "line": 84, - "column": 6 - }, - "end": { - "line": 84, - "column": 25 - }, - "identifierName": "template_group_name" - }, - "name": "template_group_name" - }, - "value": { - "type": "Identifier", - "start": 3404, - "end": 3423, - "loc": { - "start": { - "line": 84, - "column": 6 - }, - "end": { - "line": 84, - "column": 25 - }, - "identifierName": "template_group_name" - }, - "name": "template_group_name" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3431, - "end": 3446, - "loc": { - "start": { - "line": 85, - "column": 6 - }, - "end": { - "line": 85, - "column": 21 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3431, - "end": 3446, - "loc": { - "start": { - "line": 85, - "column": 6 - }, - "end": { - "line": 85, - "column": 21 - }, - "identifierName": "routing_details" - }, - "name": "routing_details" - }, - "value": { - "type": "Identifier", - "start": 3431, - "end": 3446, - "loc": { - "start": { - "line": 85, - "column": 6 - }, - "end": { - "line": 85, - "column": 21 - }, - "identifierName": "routing_details" - }, - "name": "routing_details" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 3460, - "end": 3872, - "loc": { - "start": { - "line": 87, - "column": 4 - }, - "end": { - "line": 100, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3466, - "end": 3871, - "loc": { - "start": { - "line": 87, - "column": 10 - }, - "end": { - "line": 100, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 3466, - "end": 3469, - "loc": { - "start": { - "line": 87, - "column": 10 - }, - "end": { - "line": 87, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 3472, - "end": 3871, - "loc": { - "start": { - "line": 87, - "column": 16 - }, - "end": { - "line": 100, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3472, - "end": 3838, - "loc": { - "start": { - "line": 87, - "column": 16 - }, - "end": { - "line": 100, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 3472, - "end": 3828, - "loc": { - "start": { - "line": 87, - "column": 16 - }, - "end": { - "line": 99, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3472, - "end": 3492, - "loc": { - "start": { - "line": 87, - "column": 16 - }, - "end": { - "line": 88, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 3472, - "end": 3477, - "loc": { - "start": { - "line": 87, - "column": 16 - }, - "end": { - "line": 87, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 3485, - "end": 3492, - "loc": { - "start": { - "line": 88, - "column": 7 - }, - "end": { - "line": 88, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 3493, - "end": 3800, - "loc": { - "start": { - "line": 88, - "column": 15 - }, - "end": { - "line": 99, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 3493, - "end": 3512, - "loc": { - "start": { - "line": 88, - "column": 15 - }, - "end": { - "line": 88, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 3513, - "end": 3799, - "loc": { - "start": { - "line": 88, - "column": 35 - }, - "end": { - "line": 99, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3523, - "end": 3537, - "loc": { - "start": { - "line": 89, - "column": 8 - }, - "end": { - "line": 89, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3523, - "end": 3529, - "loc": { - "start": { - "line": 89, - "column": 8 - }, - "end": { - "line": 89, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 3531, - "end": 3537, - "loc": { - "start": { - "line": 89, - "column": 16 - }, - "end": { - "line": 89, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 3547, - "end": 3578, - "loc": { - "start": { - "line": 90, - "column": 8 - }, - "end": { - "line": 90, - "column": 39 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3547, - "end": 3551, - "loc": { - "start": { - "line": 90, - "column": 8 - }, - "end": { - "line": 90, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 3553, - "end": 3578, - "loc": { - "start": { - "line": 90, - "column": 14 - }, - "end": { - "line": 90, - "column": 39 - } - }, - "extra": { - "rawValue": "/documentgroup/template", - "raw": "'/documentgroup/template'" - }, - "value": "/documentgroup/template" - } - }, - { - "type": "ObjectProperty", - "start": 3588, - "end": 3657, - "loc": { - "start": { - "line": 91, - "column": 8 - }, - "end": { - "line": 94, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3588, - "end": 3601, - "loc": { - "start": { - "line": 91, - "column": 8 - }, - "end": { - "line": 91, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 3603, - "end": 3657, - "loc": { - "start": { - "line": 91, - "column": 23 - }, - "end": { - "line": 94, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3615, - "end": 3629, - "loc": { - "start": { - "line": 92, - "column": 10 - }, - "end": { - "line": 92, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3615, - "end": 3619, - "loc": { - "start": { - "line": 92, - "column": 10 - }, - "end": { - "line": 92, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 3621, - "end": 3629, - "loc": { - "start": { - "line": 92, - "column": 16 - }, - "end": { - "line": 92, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 3641, - "end": 3646, - "loc": { - "start": { - "line": 93, - "column": 10 - }, - "end": { - "line": 93, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3641, - "end": 3646, - "loc": { - "start": { - "line": 93, - "column": 10 - }, - "end": { - "line": 93, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 3641, - "end": 3646, - "loc": { - "start": { - "line": 93, - "column": 10 - }, - "end": { - "line": 93, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 3667, - "end": 3790, - "loc": { - "start": { - "line": 95, - "column": 8 - }, - "end": { - "line": 98, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3667, - "end": 3674, - "loc": { - "start": { - "line": 95, - "column": 8 - }, - "end": { - "line": 95, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 3676, - "end": 3790, - "loc": { - "start": { - "line": 95, - "column": 17 - }, - "end": { - "line": 98, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3688, - "end": 3722, - "loc": { - "start": { - "line": 96, - "column": 10 - }, - "end": { - "line": 96, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 3688, - "end": 3702, - "loc": { - "start": { - "line": 96, - "column": 10 - }, - "end": { - "line": 96, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 3704, - "end": 3722, - "loc": { - "start": { - "line": 96, - "column": 26 - }, - "end": { - "line": 96, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 3734, - "end": 3779, - "loc": { - "start": { - "line": 97, - "column": 10 - }, - "end": { - "line": 97, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 3734, - "end": 3750, - "loc": { - "start": { - "line": 97, - "column": 10 - }, - "end": { - "line": 97, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 3752, - "end": 3779, - "loc": { - "start": { - "line": 97, - "column": 28 - }, - "end": { - "line": 97, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3752, - "end": 3769, - "loc": { - "start": { - "line": 97, - "column": 28 - }, - "end": { - "line": 97, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 3752, - "end": 3758, - "loc": { - "start": { - "line": 97, - "column": 28 - }, - "end": { - "line": 97, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 3759, - "end": 3769, - "loc": { - "start": { - "line": 97, - "column": 35 - }, - "end": { - "line": 97, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 3770, - "end": 3778, - "loc": { - "start": { - "line": 97, - "column": 46 - }, - "end": { - "line": 97, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 3802, - "end": 3827, - "loc": { - "start": { - "line": 99, - "column": 10 - }, - "end": { - "line": 99, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 3802, - "end": 3817, - "loc": { - "start": { - "line": 99, - "column": 10 - }, - "end": { - "line": 99, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3818, - "end": 3826, - "loc": { - "start": { - "line": 99, - "column": 26 - }, - "end": { - "line": 99, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 3836, - "end": 3838, - "loc": { - "start": { - "line": 100, - "column": 7 - }, - "end": { - "line": 100, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 3839, - "end": 3846, - "loc": { - "start": { - "line": 100, - "column": 10 - }, - "end": { - "line": 100, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 3848, - "end": 3870, - "loc": { - "start": { - "line": 100, - "column": 19 - }, - "end": { - "line": 100, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 3848, - "end": 3860, - "loc": { - "start": { - "line": 100, - "column": 19 - }, - "end": { - "line": 100, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3861, - "end": 3869, - "loc": { - "start": { - "line": 100, - "column": 32 - }, - "end": { - "line": 100, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 3878, - "end": 3898, - "loc": { - "start": { - "line": 102, - "column": 4 - }, - "end": { - "line": 102, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 3878, - "end": 3897, - "loc": { - "start": { - "line": 102, - "column": 4 - }, - "end": { - "line": 102, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3878, - "end": 3887, - "loc": { - "start": { - "line": 102, - "column": 4 - }, - "end": { - "line": 102, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 3878, - "end": 3881, - "loc": { - "start": { - "line": 102, - "column": 4 - }, - "end": { - "line": 102, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 3882, - "end": 3887, - "loc": { - "start": { - "line": 102, - "column": 8 - }, - "end": { - "line": 102, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 3888, - "end": 3896, - "loc": { - "start": { - "line": 102, - "column": 14 - }, - "end": { - "line": 102, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 3903, - "end": 3913, - "loc": { - "start": { - "line": 103, - "column": 4 - }, - "end": { - "line": 103, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 3903, - "end": 3912, - "loc": { - "start": { - "line": 103, - "column": 4 - }, - "end": { - "line": 103, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3903, - "end": 3910, - "loc": { - "start": { - "line": 103, - "column": 4 - }, - "end": { - "line": 103, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 3903, - "end": 3906, - "loc": { - "start": { - "line": 103, - "column": 4 - }, - "end": { - "line": 103, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 3907, - "end": 3910, - "loc": { - "start": { - "line": 103, - "column": 8 - }, - "end": { - "line": 103, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document Group Template invite email congfigurations\n * @typedef {Object} DocumentGroupTemplateInviteEmail\n * @property {string} [email] - signer's email\n * @property {string} [subject] - subject of invitation email\n * @property {string} [message] - content of invitation email\n * @property {number} [expiration_days] - expiration of invite in days\n * @property {number} [reminder] - number of days in which to remind about invite via email\n * @property {boolean} [hasSignActions] - does signer need to sign documents of document group\n ", - "start": 398, - "end": 962, - "loc": { - "start": { - "line": 18, - "column": 2 - }, - "end": { - "line": 27, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group Template invite action congfigurations\n * @typedef {Object} DocumentGroupTemplateInviteAction\n * @property {string} [email] - signer's email\n * @property {string} [role_name] - signer's role name\n * @property {string} [action] - name of action with document in signing step\n * @property {string} [document_id] - ID of document in specific signing step\n * @property {string} [document_name] - name of document in specific signing step\n * @property {string} [allow_reassign] - allow reassigning of signer\n * @property {string} decline_by_signature - signer can decline invite\n ", - "start": 966, - "end": 1585, - "loc": { - "start": { - "line": 29, - "column": 2 - }, - "end": { - "line": 39, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group Template invite step congfigurations\n * @typedef {Object} DocumentGroupTemplateInviteStep\n * @property {number} [order] - an order number of invitation step\n * @property {DocumentGroupTemplateInviteEmail[]} [invite_emails] - Document Group Template invite emails settings\n * @property {DocumentGroupTemplateInviteAction[]} invite_actions - Document Group Template invite actions settings\n ", - "start": 1589, - "end": 2014, - "loc": { - "start": { - "line": 41, - "column": 2 - }, - "end": { - "line": 47, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group Template invite congfigurations\n * @typedef {Object} DocumentGroupTemplateRoutingDetails\n * @property {DocumentGroupTemplateInviteStep[]} invite_steps - Document Group Template invite steps settings\n * @property {number} [include_email_attachments]\n ", - "start": 2018, - "end": 2302, - "loc": { - "start": { - "line": 49, - "column": 2 - }, - "end": { - "line": 54, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create Document Group Template payload\n * @typedef {Object} DocumentGroupTemplateCreateParams\n * @property {string} token - your auth token\n * @property {string[]} template_ids - array of template ids for Document Group Template creation\n * @property {string} template_group_name - new name of document group\n * @property {DocumentGroupTemplateRoutingDetails} routing_details - invite congfigurations\n ", - "start": 2306, - "end": 2731, - "loc": { - "start": { - "line": 56, - "column": 2 - }, - "end": { - "line": 63, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create Document Group Template response data\n * @typedef {Object} DocumentGroupTemplateCreateResponse\n * @property {string} id - Document Group Template unique id\n ", - "start": 2735, - "end": 2916, - "loc": { - "start": { - "line": 65, - "column": 2 - }, - "end": { - "line": 69, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates Document Group Template with specified templates and settings\n * @param {DocumentGroupTemplateCreateParams} data - create Document Group Template payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupTemplateCreateResponse)} [callback] - error first node.js callback\n ", - "start": 2920, - "end": 3228, - "loc": { - "start": { - "line": 71, - "column": 2 - }, - "end": { - "line": 75, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document Group Template view payload\n * @typedef {Object} DocumentGroupTemplateViewParams\n * @property {string} id - id of specific Document Group Template\n * @property {string} token - your auth token\n ", - "start": 3921, - "end": 4143, - "loc": { - "start": { - "line": 106, - "column": 2 - }, - "end": { - "line": 111, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Details of single template in group\n * @typedef {Object} DocumentGroupTemplateItem\n * @property {string} id - id of template\n * @property {string} template_name - name of template\n * @property {string} owner_email - template owner email\n * @property {?number} readable\n * @property {DocumentThumbnails} thumbnail - thumbnail urls with different sizes (small, medium, large)\n * @property {string[]} roles - list of template signer roles\n ", - "start": 4147, - "end": 4611, - "loc": { - "start": { - "line": 113, - "column": 2 - }, - "end": { - "line": 122, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group Template view response\n * @typedef {Object} DocumentGroupTemplateViewResponse\n * @property {string} id - id of Document Group Template\n * @property {string} group_name - name of Document Group Template\n * @property {string} document_group_template_owner_email - Document Group Template owner email\n * @property {number} shared - is Document Group Template shared or not (values: 0 or 1)\n * @property {?string} shared_team_id - id of team which Document Group Template is shared with\n * @property {DocumentGroupTemplateItem[]} templates - each single template details\n * @property {DocumentGroupTemplateRoutingDetails} routing_details - signing steps configuration\n * @property {Object[]} originator_organization_settings - originator organization settings\n ", - "start": 4615, - "end": 5418, - "loc": { - "start": { - "line": 124, - "column": 2 - }, - "end": { - "line": 135, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves a Document Group Template detailed data\n * @param {DocumentGroupTemplateViewParams} data - view Document Group Template details payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupTemplateViewResponse)} [callback] - error first node.js callback\n ", - "start": 5422, - "end": 5712, - "loc": { - "start": { - "line": 137, - "column": 2 - }, - "end": { - "line": 141, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 5715, - "end": 6048, - "loc": { - "start": { - "line": 142, - "column": 2 - }, - "end": { - "line": 154, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5722, - "end": 5726, - "loc": { - "start": { - "line": 142, - "column": 9 - }, - "end": { - "line": 142, - "column": 13 - }, - "identifierName": "view" - }, - "name": "view" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 5728, - "end": 5741, - "loc": { - "start": { - "line": 142, - "column": 15 - }, - "end": { - "line": 142, - "column": 28 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5730, - "end": 5732, - "loc": { - "start": { - "line": 142, - "column": 17 - }, - "end": { - "line": 142, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5730, - "end": 5732, - "loc": { - "start": { - "line": 142, - "column": 17 - }, - "end": { - "line": 142, - "column": 19 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 5730, - "end": 5732, - "loc": { - "start": { - "line": 142, - "column": 17 - }, - "end": { - "line": 142, - "column": 19 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 5734, - "end": 5739, - "loc": { - "start": { - "line": 142, - "column": 21 - }, - "end": { - "line": 142, - "column": 26 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5734, - "end": 5739, - "loc": { - "start": { - "line": 142, - "column": 21 - }, - "end": { - "line": 142, - "column": 26 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 5734, - "end": 5739, - "loc": { - "start": { - "line": 142, - "column": 21 - }, - "end": { - "line": 142, - "column": 26 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 5743, - "end": 5751, - "loc": { - "start": { - "line": 142, - "column": 30 - }, - "end": { - "line": 142, - "column": 38 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 5753, - "end": 6048, - "loc": { - "start": { - "line": 142, - "column": 40 - }, - "end": { - "line": 154, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 5759, - "end": 6044, - "loc": { - "start": { - "line": 143, - "column": 4 - }, - "end": { - "line": 153, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 5759, - "end": 6043, - "loc": { - "start": { - "line": 143, - "column": 4 - }, - "end": { - "line": 153, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5759, - "end": 6041, - "loc": { - "start": { - "line": 143, - "column": 4 - }, - "end": { - "line": 153, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 5759, - "end": 6030, - "loc": { - "start": { - "line": 143, - "column": 4 - }, - "end": { - "line": 152, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5759, - "end": 5997, - "loc": { - "start": { - "line": 143, - "column": 4 - }, - "end": { - "line": 152, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 5759, - "end": 5987, - "loc": { - "start": { - "line": 143, - "column": 4 - }, - "end": { - "line": 151, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5759, - "end": 5779, - "loc": { - "start": { - "line": 143, - "column": 4 - }, - "end": { - "line": 144, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 5759, - "end": 5764, - "loc": { - "start": { - "line": 143, - "column": 4 - }, - "end": { - "line": 143, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 5772, - "end": 5779, - "loc": { - "start": { - "line": 144, - "column": 7 - }, - "end": { - "line": 144, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 5780, - "end": 5959, - "loc": { - "start": { - "line": 144, - "column": 15 - }, - "end": { - "line": 151, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 5780, - "end": 5799, - "loc": { - "start": { - "line": 144, - "column": 15 - }, - "end": { - "line": 144, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 5800, - "end": 5958, - "loc": { - "start": { - "line": 144, - "column": 35 - }, - "end": { - "line": 151, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5810, - "end": 5823, - "loc": { - "start": { - "line": 145, - "column": 8 - }, - "end": { - "line": 145, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5810, - "end": 5816, - "loc": { - "start": { - "line": 145, - "column": 8 - }, - "end": { - "line": 145, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 5818, - "end": 5823, - "loc": { - "start": { - "line": 145, - "column": 16 - }, - "end": { - "line": 145, - "column": 21 - } - }, - "extra": { - "rawValue": "GET", - "raw": "'GET'" - }, - "value": "GET" - } - }, - { - "type": "ObjectProperty", - "start": 5833, - "end": 5870, - "loc": { - "start": { - "line": 146, - "column": 8 - }, - "end": { - "line": 146, - "column": 45 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5833, - "end": 5837, - "loc": { - "start": { - "line": 146, - "column": 8 - }, - "end": { - "line": 146, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 5839, - "end": 5870, - "loc": { - "start": { - "line": 146, - "column": 14 - }, - "end": { - "line": 146, - "column": 45 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 5866, - "end": 5868, - "loc": { - "start": { - "line": 146, - "column": 41 - }, - "end": { - "line": 146, - "column": 43 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 5840, - "end": 5864, - "loc": { - "start": { - "line": 146, - "column": 15 - }, - "end": { - "line": 146, - "column": 39 - } - }, - "value": { - "raw": "/documentgroup/template/", - "cooked": "/documentgroup/template/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 5869, - "end": 5869, - "loc": { - "start": { - "line": 146, - "column": 44 - }, - "end": { - "line": 146, - "column": 44 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 5880, - "end": 5949, - "loc": { - "start": { - "line": 147, - "column": 8 - }, - "end": { - "line": 150, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5880, - "end": 5893, - "loc": { - "start": { - "line": 147, - "column": 8 - }, - "end": { - "line": 147, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 5895, - "end": 5949, - "loc": { - "start": { - "line": 147, - "column": 23 - }, - "end": { - "line": 150, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5907, - "end": 5921, - "loc": { - "start": { - "line": 148, - "column": 10 - }, - "end": { - "line": 148, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5907, - "end": 5911, - "loc": { - "start": { - "line": 148, - "column": 10 - }, - "end": { - "line": 148, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 5913, - "end": 5921, - "loc": { - "start": { - "line": 148, - "column": 16 - }, - "end": { - "line": 148, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 5933, - "end": 5938, - "loc": { - "start": { - "line": 149, - "column": 10 - }, - "end": { - "line": 149, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5933, - "end": 5938, - "loc": { - "start": { - "line": 149, - "column": 10 - }, - "end": { - "line": 149, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 5933, - "end": 5938, - "loc": { - "start": { - "line": 149, - "column": 10 - }, - "end": { - "line": 149, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 5961, - "end": 5986, - "loc": { - "start": { - "line": 151, - "column": 10 - }, - "end": { - "line": 151, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 5961, - "end": 5976, - "loc": { - "start": { - "line": 151, - "column": 10 - }, - "end": { - "line": 151, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 5977, - "end": 5985, - "loc": { - "start": { - "line": 151, - "column": 26 - }, - "end": { - "line": 151, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 5995, - "end": 5997, - "loc": { - "start": { - "line": 152, - "column": 7 - }, - "end": { - "line": 152, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 5998, - "end": 6005, - "loc": { - "start": { - "line": 152, - "column": 10 - }, - "end": { - "line": 152, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 6007, - "end": 6029, - "loc": { - "start": { - "line": 152, - "column": 19 - }, - "end": { - "line": 152, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 6007, - "end": 6019, - "loc": { - "start": { - "line": 152, - "column": 19 - }, - "end": { - "line": 152, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 6020, - "end": 6028, - "loc": { - "start": { - "line": 152, - "column": 32 - }, - "end": { - "line": 152, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 6038, - "end": 6041, - "loc": { - "start": { - "line": 153, - "column": 7 - }, - "end": { - "line": 153, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document Group Template view payload\n * @typedef {Object} DocumentGroupTemplateViewParams\n * @property {string} id - id of specific Document Group Template\n * @property {string} token - your auth token\n ", - "start": 3921, - "end": 4143, - "loc": { - "start": { - "line": 106, - "column": 2 - }, - "end": { - "line": 111, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Details of single template in group\n * @typedef {Object} DocumentGroupTemplateItem\n * @property {string} id - id of template\n * @property {string} template_name - name of template\n * @property {string} owner_email - template owner email\n * @property {?number} readable\n * @property {DocumentThumbnails} thumbnail - thumbnail urls with different sizes (small, medium, large)\n * @property {string[]} roles - list of template signer roles\n ", - "start": 4147, - "end": 4611, - "loc": { - "start": { - "line": 113, - "column": 2 - }, - "end": { - "line": 122, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group Template view response\n * @typedef {Object} DocumentGroupTemplateViewResponse\n * @property {string} id - id of Document Group Template\n * @property {string} group_name - name of Document Group Template\n * @property {string} document_group_template_owner_email - Document Group Template owner email\n * @property {number} shared - is Document Group Template shared or not (values: 0 or 1)\n * @property {?string} shared_team_id - id of team which Document Group Template is shared with\n * @property {DocumentGroupTemplateItem[]} templates - each single template details\n * @property {DocumentGroupTemplateRoutingDetails} routing_details - signing steps configuration\n * @property {Object[]} originator_organization_settings - originator organization settings\n ", - "start": 4615, - "end": 5418, - "loc": { - "start": { - "line": 124, - "column": 2 - }, - "end": { - "line": 135, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves a Document Group Template detailed data\n * @param {DocumentGroupTemplateViewParams} data - view Document Group Template details payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupTemplateViewResponse)} [callback] - error first node.js callback\n ", - "start": 5422, - "end": 5712, - "loc": { - "start": { - "line": 137, - "column": 2 - }, - "end": { - "line": 141, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Create Document Group Template invite payload\n * @typedef {Object} DocumentGroupTemplateInviteParams\n * @property {string} id - ID of specific Document Group Template\n * @property {DocumentGroupInviteSettings} [data] - Document Group Template invite settings data\n * @property {string} token - your auth token\n ", - "start": 6052, - "end": 6384, - "loc": { - "start": { - "line": 156, - "column": 2 - }, - "end": { - "line": 162, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create Document Group Template invite response data\n * @typedef {DocumentGroupInviteResponse} DocumentGroupTemplateInviteResponse\n * @property {string} id - an ID of created invite\n * @property {?string} pending_invite_link - pending invite link\n ", - "start": 6388, - "end": 6654, - "loc": { - "start": { - "line": 164, - "column": 2 - }, - "end": { - "line": 169, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates an invite to sign a Document Group Template\n * @param {DocumentGroupTemplateInviteParams} data - create Document Group Template invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupTemplateInviteResponse)} [callback] - error first node.js callback\n ", - "start": 6658, - "end": 6955, - "loc": { - "start": { - "line": 171, - "column": 2 - }, - "end": { - "line": 175, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 6958, - "end": 10601, - "loc": { - "start": { - "line": 176, - "column": 2 - }, - "end": { - "line": 299, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 6965, - "end": 6971, - "loc": { - "start": { - "line": 176, - "column": 9 - }, - "end": { - "line": 176, - "column": 15 - }, - "identifierName": "invite" - }, - "name": "invite" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 6973, - "end": 7007, - "loc": { - "start": { - "line": 176, - "column": 17 - }, - "end": { - "line": 180, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 6979, - "end": 6981, - "loc": { - "start": { - "line": 177, - "column": 4 - }, - "end": { - "line": 177, - "column": 6 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 6979, - "end": 6981, - "loc": { - "start": { - "line": 177, - "column": 4 - }, - "end": { - "line": 177, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 6979, - "end": 6981, - "loc": { - "start": { - "line": 177, - "column": 4 - }, - "end": { - "line": 177, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 6987, - "end": 6991, - "loc": { - "start": { - "line": 178, - "column": 4 - }, - "end": { - "line": 178, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 6987, - "end": 6991, - "loc": { - "start": { - "line": 178, - "column": 4 - }, - "end": { - "line": 178, - "column": 8 - }, - "identifierName": "data" - }, - "name": "data" - }, - "value": { - "type": "Identifier", - "start": 6987, - "end": 6991, - "loc": { - "start": { - "line": 178, - "column": 4 - }, - "end": { - "line": 178, - "column": 8 - }, - "identifierName": "data" - }, - "name": "data" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 6997, - "end": 7002, - "loc": { - "start": { - "line": 179, - "column": 4 - }, - "end": { - "line": 179, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 6997, - "end": 7002, - "loc": { - "start": { - "line": 179, - "column": 4 - }, - "end": { - "line": 179, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 6997, - "end": 7002, - "loc": { - "start": { - "line": 179, - "column": 4 - }, - "end": { - "line": 179, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 7009, - "end": 7017, - "loc": { - "start": { - "line": 180, - "column": 5 - }, - "end": { - "line": 180, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 7019, - "end": 10601, - "loc": { - "start": { - "line": 180, - "column": 15 - }, - "end": { - "line": 299, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 7025, - "end": 10597, - "loc": { - "start": { - "line": 181, - "column": 4 - }, - "end": { - "line": 298, - "column": 7 - } - }, - "expression": { - "type": "CallExpression", - "start": 7025, - "end": 10596, - "loc": { - "start": { - "line": 181, - "column": 4 - }, - "end": { - "line": 298, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 7025, - "end": 7051, - "loc": { - "start": { - "line": 181, - "column": 4 - }, - "end": { - "line": 181, - "column": 30 - } - }, - "object": { - "type": "Identifier", - "start": 7025, - "end": 7046, - "loc": { - "start": { - "line": 181, - "column": 4 - }, - "end": { - "line": 181, - "column": 25 - }, - "identifierName": "DocumentGroupTemplate" - }, - "name": "DocumentGroupTemplate" - }, - "property": { - "type": "Identifier", - "start": 7047, - "end": 7051, - "loc": { - "start": { - "line": 181, - "column": 26 - }, - "end": { - "line": 181, - "column": 30 - }, - "identifierName": "view" - }, - "name": "view" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 7052, - "end": 7082, - "loc": { - "start": { - "line": 181, - "column": 31 - }, - "end": { - "line": 184, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 7060, - "end": 7062, - "loc": { - "start": { - "line": 182, - "column": 6 - }, - "end": { - "line": 182, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7060, - "end": 7062, - "loc": { - "start": { - "line": 182, - "column": 6 - }, - "end": { - "line": 182, - "column": 8 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 7060, - "end": 7062, - "loc": { - "start": { - "line": 182, - "column": 6 - }, - "end": { - "line": 182, - "column": 8 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 7070, - "end": 7075, - "loc": { - "start": { - "line": 183, - "column": 6 - }, - "end": { - "line": 183, - "column": 11 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7070, - "end": 7075, - "loc": { - "start": { - "line": 183, - "column": 6 - }, - "end": { - "line": 183, - "column": 11 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 7070, - "end": 7075, - "loc": { - "start": { - "line": 183, - "column": 6 - }, - "end": { - "line": 183, - "column": 11 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "ArrowFunctionExpression", - "start": 7084, - "end": 10595, - "loc": { - "start": { - "line": 184, - "column": 7 - }, - "end": { - "line": 298, - "column": 5 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 7085, - "end": 7100, - "loc": { - "start": { - "line": 184, - "column": 8 - }, - "end": { - "line": 184, - "column": 23 - }, - "identifierName": "viewDocGrTplErr" - }, - "name": "viewDocGrTplErr" - }, - { - "type": "Identifier", - "start": 7102, - "end": 7117, - "loc": { - "start": { - "line": 184, - "column": 25 - }, - "end": { - "line": 184, - "column": 40 - }, - "identifierName": "viewDocGrTplRes" - }, - "name": "viewDocGrTplRes" - } - ], - "body": { - "type": "BlockStatement", - "start": 7122, - "end": 10595, - "loc": { - "start": { - "line": 184, - "column": 45 - }, - "end": { - "line": 298, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 7130, - "end": 10589, - "loc": { - "start": { - "line": 185, - "column": 6 - }, - "end": { - "line": 297, - "column": 7 - } - }, - "test": { - "type": "Identifier", - "start": 7134, - "end": 7149, - "loc": { - "start": { - "line": 185, - "column": 10 - }, - "end": { - "line": 185, - "column": 25 - }, - "identifierName": "viewDocGrTplErr" - }, - "name": "viewDocGrTplErr" - }, - "consequent": { - "type": "BlockStatement", - "start": 7151, - "end": 7211, - "loc": { - "start": { - "line": 185, - "column": 27 - }, - "end": { - "line": 188, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 7161, - "end": 7187, - "loc": { - "start": { - "line": 186, - "column": 8 - }, - "end": { - "line": 186, - "column": 34 - } - }, - "expression": { - "type": "CallExpression", - "start": 7161, - "end": 7186, - "loc": { - "start": { - "line": 186, - "column": 8 - }, - "end": { - "line": 186, - "column": 33 - } - }, - "callee": { - "type": "Identifier", - "start": 7161, - "end": 7169, - "loc": { - "start": { - "line": 186, - "column": 8 - }, - "end": { - "line": 186, - "column": 16 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 7170, - "end": 7185, - "loc": { - "start": { - "line": 186, - "column": 17 - }, - "end": { - "line": 186, - "column": 32 - }, - "identifierName": "viewDocGrTplErr" - }, - "name": "viewDocGrTplErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 7196, - "end": 7203, - "loc": { - "start": { - "line": 187, - "column": 8 - }, - "end": { - "line": 187, - "column": 15 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 7217, - "end": 10589, - "loc": { - "start": { - "line": 188, - "column": 13 - }, - "end": { - "line": 297, - "column": 7 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 7227, - "end": 7338, - "loc": { - "start": { - "line": 189, - "column": 8 - }, - "end": { - "line": 193, - "column": 28 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7233, - "end": 7337, - "loc": { - "start": { - "line": 189, - "column": 14 - }, - "end": { - "line": 193, - "column": 27 - } - }, - "id": { - "type": "ObjectPattern", - "start": 7233, - "end": 7319, - "loc": { - "start": { - "line": 189, - "column": 14 - }, - "end": { - "line": 193, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 7245, - "end": 7254, - "loc": { - "start": { - "line": 190, - "column": 10 - }, - "end": { - "line": 190, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7245, - "end": 7254, - "loc": { - "start": { - "line": 190, - "column": 10 - }, - "end": { - "line": 190, - "column": 19 - }, - "identifierName": "templates" - }, - "name": "templates" - }, - "value": { - "type": "Identifier", - "start": 7245, - "end": 7254, - "loc": { - "start": { - "line": 190, - "column": 10 - }, - "end": { - "line": 190, - "column": 19 - }, - "identifierName": "templates" - }, - "name": "templates" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 7266, - "end": 7276, - "loc": { - "start": { - "line": 191, - "column": 10 - }, - "end": { - "line": 191, - "column": 20 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7266, - "end": 7276, - "loc": { - "start": { - "line": 191, - "column": 10 - }, - "end": { - "line": 191, - "column": 20 - }, - "identifierName": "group_name" - }, - "name": "group_name" - }, - "value": { - "type": "Identifier", - "start": 7266, - "end": 7276, - "loc": { - "start": { - "line": 191, - "column": 10 - }, - "end": { - "line": 191, - "column": 20 - }, - "identifierName": "group_name" - }, - "name": "group_name" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 7288, - "end": 7308, - "loc": { - "start": { - "line": 192, - "column": 10 - }, - "end": { - "line": 192, - "column": 30 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7288, - "end": 7303, - "loc": { - "start": { - "line": 192, - "column": 10 - }, - "end": { - "line": 192, - "column": 25 - }, - "identifierName": "routing_details" - }, - "name": "routing_details" - }, - "value": { - "type": "AssignmentPattern", - "start": 7288, - "end": 7308, - "loc": { - "start": { - "line": 192, - "column": 10 - }, - "end": { - "line": 192, - "column": 30 - } - }, - "left": { - "type": "Identifier", - "start": 7288, - "end": 7303, - "loc": { - "start": { - "line": 192, - "column": 10 - }, - "end": { - "line": 192, - "column": 25 - }, - "identifierName": "routing_details" - }, - "name": "routing_details" - }, - "right": { - "type": "ObjectExpression", - "start": 7306, - "end": 7308, - "loc": { - "start": { - "line": 192, - "column": 28 - }, - "end": { - "line": 192, - "column": 30 - } - }, - "properties": [] - } - }, - "extra": { - "shorthand": true - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 7322, - "end": 7337, - "loc": { - "start": { - "line": 193, - "column": 12 - }, - "end": { - "line": 193, - "column": 27 - }, - "identifierName": "viewDocGrTplRes" - }, - "name": "viewDocGrTplRes" - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 7347, - "end": 7363, - "loc": { - "start": { - "line": 194, - "column": 8 - }, - "end": { - "line": 194, - "column": 24 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7351, - "end": 7362, - "loc": { - "start": { - "line": 194, - "column": 12 - }, - "end": { - "line": 194, - "column": 23 - } - }, - "id": { - "type": "Identifier", - "start": 7351, - "end": 7362, - "loc": { - "start": { - "line": 194, - "column": 12 - }, - "end": { - "line": 194, - "column": 23 - }, - "identifierName": "templateIDs" - }, - "name": "templateIDs" - }, - "init": null - } - ], - "kind": "let" - }, - { - "type": "TryStatement", - "start": 7373, - "end": 7519, - "loc": { - "start": { - "line": 196, - "column": 8 - }, - "end": { - "line": 201, - "column": 9 - } - }, - "block": { - "type": "BlockStatement", - "start": 7377, - "end": 7452, - "loc": { - "start": { - "line": 196, - "column": 12 - }, - "end": { - "line": 198, - "column": 9 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 7389, - "end": 7442, - "loc": { - "start": { - "line": 197, - "column": 10 - }, - "end": { - "line": 197, - "column": 63 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 7389, - "end": 7441, - "loc": { - "start": { - "line": 197, - "column": 10 - }, - "end": { - "line": 197, - "column": 62 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 7389, - "end": 7400, - "loc": { - "start": { - "line": 197, - "column": 10 - }, - "end": { - "line": 197, - "column": 21 - }, - "identifierName": "templateIDs" - }, - "name": "templateIDs" - }, - "right": { - "type": "CallExpression", - "start": 7403, - "end": 7441, - "loc": { - "start": { - "line": 197, - "column": 24 - }, - "end": { - "line": 197, - "column": 62 - } - }, - "callee": { - "type": "MemberExpression", - "start": 7403, - "end": 7416, - "loc": { - "start": { - "line": 197, - "column": 24 - }, - "end": { - "line": 197, - "column": 37 - } - }, - "object": { - "type": "Identifier", - "start": 7403, - "end": 7412, - "loc": { - "start": { - "line": 197, - "column": 24 - }, - "end": { - "line": 197, - "column": 33 - }, - "identifierName": "templates" - }, - "name": "templates" - }, - "property": { - "type": "Identifier", - "start": 7413, - "end": 7416, - "loc": { - "start": { - "line": 197, - "column": 34 - }, - "end": { - "line": 197, - "column": 37 - }, - "identifierName": "map" - }, - "name": "map" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 7417, - "end": 7440, - "loc": { - "start": { - "line": 197, - "column": 38 - }, - "end": { - "line": 197, - "column": 61 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 7417, - "end": 7425, - "loc": { - "start": { - "line": 197, - "column": 38 - }, - "end": { - "line": 197, - "column": 46 - }, - "identifierName": "template" - }, - "name": "template" - } - ], - "body": { - "type": "MemberExpression", - "start": 7429, - "end": 7440, - "loc": { - "start": { - "line": 197, - "column": 50 - }, - "end": { - "line": 197, - "column": 61 - } - }, - "object": { - "type": "Identifier", - "start": 7429, - "end": 7437, - "loc": { - "start": { - "line": 197, - "column": 50 - }, - "end": { - "line": 197, - "column": 58 - }, - "identifierName": "template" - }, - "name": "template" - }, - "property": { - "type": "Identifier", - "start": 7438, - "end": 7440, - "loc": { - "start": { - "line": 197, - "column": 59 - }, - "end": { - "line": 197, - "column": 61 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": false - } - } - ] - } - } - } - ], - "directives": [] - }, - "handler": { - "type": "CatchClause", - "start": 7453, - "end": 7519, - "loc": { - "start": { - "line": 198, - "column": 10 - }, - "end": { - "line": 201, - "column": 9 - } - }, - "param": { - "type": "Identifier", - "start": 7460, - "end": 7463, - "loc": { - "start": { - "line": 198, - "column": 17 - }, - "end": { - "line": 198, - "column": 20 - }, - "identifierName": "err" - }, - "name": "err" - }, - "body": { - "type": "BlockStatement", - "start": 7465, - "end": 7519, - "loc": { - "start": { - "line": 198, - "column": 22 - }, - "end": { - "line": 201, - "column": 9 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 7477, - "end": 7491, - "loc": { - "start": { - "line": 199, - "column": 10 - }, - "end": { - "line": 199, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 7477, - "end": 7490, - "loc": { - "start": { - "line": 199, - "column": 10 - }, - "end": { - "line": 199, - "column": 23 - } - }, - "callee": { - "type": "Identifier", - "start": 7477, - "end": 7485, - "loc": { - "start": { - "line": 199, - "column": 10 - }, - "end": { - "line": 199, - "column": 18 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 7486, - "end": 7489, - "loc": { - "start": { - "line": 199, - "column": 19 - }, - "end": { - "line": 199, - "column": 22 - }, - "identifierName": "err" - }, - "name": "err" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 7502, - "end": 7509, - "loc": { - "start": { - "line": 200, - "column": 10 - }, - "end": { - "line": 200, - "column": 17 - } - }, - "argument": null - } - ], - "directives": [] - } - }, - "guardedHandlers": [], - "finalizer": null - }, - { - "type": "ExpressionStatement", - "start": 7529, - "end": 10581, - "loc": { - "start": { - "line": 203, - "column": 8 - }, - "end": { - "line": 296, - "column": 11 - } - }, - "expression": { - "type": "CallExpression", - "start": 7529, - "end": 10580, - "loc": { - "start": { - "line": 203, - "column": 8 - }, - "end": { - "line": 296, - "column": 10 - } - }, - "callee": { - "type": "Identifier", - "start": 7529, - "end": 7548, - "loc": { - "start": { - "line": 203, - "column": 8 - }, - "end": { - "line": 203, - "column": 27 - }, - "identifierName": "createDocumentGroup" - }, - "name": "createDocumentGroup" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 7549, - "end": 7627, - "loc": { - "start": { - "line": 203, - "column": 28 - }, - "end": { - "line": 207, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 7561, - "end": 7577, - "loc": { - "start": { - "line": 204, - "column": 10 - }, - "end": { - "line": 204, - "column": 26 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7561, - "end": 7564, - "loc": { - "start": { - "line": 204, - "column": 10 - }, - "end": { - "line": 204, - "column": 13 - }, - "identifierName": "ids" - }, - "name": "ids" - }, - "value": { - "type": "Identifier", - "start": 7566, - "end": 7577, - "loc": { - "start": { - "line": 204, - "column": 15 - }, - "end": { - "line": 204, - "column": 26 - }, - "identifierName": "templateIDs" - }, - "name": "templateIDs" - } - }, - { - "type": "ObjectProperty", - "start": 7589, - "end": 7599, - "loc": { - "start": { - "line": 205, - "column": 10 - }, - "end": { - "line": 205, - "column": 20 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7589, - "end": 7599, - "loc": { - "start": { - "line": 205, - "column": 10 - }, - "end": { - "line": 205, - "column": 20 - }, - "identifierName": "group_name" - }, - "name": "group_name" - }, - "value": { - "type": "Identifier", - "start": 7589, - "end": 7599, - "loc": { - "start": { - "line": 205, - "column": 10 - }, - "end": { - "line": 205, - "column": 20 - }, - "identifierName": "group_name" - }, - "name": "group_name" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 7611, - "end": 7616, - "loc": { - "start": { - "line": 206, - "column": 10 - }, - "end": { - "line": 206, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7611, - "end": 7616, - "loc": { - "start": { - "line": 206, - "column": 10 - }, - "end": { - "line": 206, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 7611, - "end": 7616, - "loc": { - "start": { - "line": 206, - "column": 10 - }, - "end": { - "line": 206, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "ArrowFunctionExpression", - "start": 7629, - "end": 10579, - "loc": { - "start": { - "line": 207, - "column": 11 - }, - "end": { - "line": 296, - "column": 9 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 7630, - "end": 7639, - "loc": { - "start": { - "line": 207, - "column": 12 - }, - "end": { - "line": 207, - "column": 21 - }, - "identifierName": "createErr" - }, - "name": "createErr" - }, - { - "type": "Identifier", - "start": 7641, - "end": 7650, - "loc": { - "start": { - "line": 207, - "column": 23 - }, - "end": { - "line": 207, - "column": 32 - }, - "identifierName": "createRes" - }, - "name": "createRes" - } - ], - "body": { - "type": "BlockStatement", - "start": 7655, - "end": 10579, - "loc": { - "start": { - "line": 207, - "column": 37 - }, - "end": { - "line": 296, - "column": 9 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 7667, - "end": 10569, - "loc": { - "start": { - "line": 208, - "column": 10 - }, - "end": { - "line": 295, - "column": 11 - } - }, - "test": { - "type": "Identifier", - "start": 7671, - "end": 7680, - "loc": { - "start": { - "line": 208, - "column": 14 - }, - "end": { - "line": 208, - "column": 23 - }, - "identifierName": "createErr" - }, - "name": "createErr" - }, - "consequent": { - "type": "BlockStatement", - "start": 7682, - "end": 7748, - "loc": { - "start": { - "line": 208, - "column": 25 - }, - "end": { - "line": 211, - "column": 11 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 7696, - "end": 7716, - "loc": { - "start": { - "line": 209, - "column": 12 - }, - "end": { - "line": 209, - "column": 32 - } - }, - "expression": { - "type": "CallExpression", - "start": 7696, - "end": 7715, - "loc": { - "start": { - "line": 209, - "column": 12 - }, - "end": { - "line": 209, - "column": 31 - } - }, - "callee": { - "type": "Identifier", - "start": 7696, - "end": 7704, - "loc": { - "start": { - "line": 209, - "column": 12 - }, - "end": { - "line": 209, - "column": 20 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 7705, - "end": 7714, - "loc": { - "start": { - "line": 209, - "column": 21 - }, - "end": { - "line": 209, - "column": 30 - }, - "identifierName": "createErr" - }, - "name": "createErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 7729, - "end": 7736, - "loc": { - "start": { - "line": 210, - "column": 12 - }, - "end": { - "line": 210, - "column": 19 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 7754, - "end": 10569, - "loc": { - "start": { - "line": 211, - "column": 17 - }, - "end": { - "line": 295, - "column": 11 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 7768, - "end": 7810, - "loc": { - "start": { - "line": 212, - "column": 12 - }, - "end": { - "line": 212, - "column": 54 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7774, - "end": 7809, - "loc": { - "start": { - "line": 212, - "column": 18 - }, - "end": { - "line": 212, - "column": 53 - } - }, - "id": { - "type": "ObjectPattern", - "start": 7774, - "end": 7797, - "loc": { - "start": { - "line": 212, - "column": 18 - }, - "end": { - "line": 212, - "column": 41 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 7776, - "end": 7795, - "loc": { - "start": { - "line": 212, - "column": 20 - }, - "end": { - "line": 212, - "column": 39 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7776, - "end": 7778, - "loc": { - "start": { - "line": 212, - "column": 20 - }, - "end": { - "line": 212, - "column": 22 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 7780, - "end": 7795, - "loc": { - "start": { - "line": 212, - "column": 24 - }, - "end": { - "line": 212, - "column": 39 - }, - "identifierName": "documentGroupId" - }, - "name": "documentGroupId" - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 7800, - "end": 7809, - "loc": { - "start": { - "line": 212, - "column": 44 - }, - "end": { - "line": 212, - "column": 53 - }, - "identifierName": "createRes" - }, - "name": "createRes" - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 7824, - "end": 10557, - "loc": { - "start": { - "line": 214, - "column": 12 - }, - "end": { - "line": 294, - "column": 15 - } - }, - "expression": { - "type": "CallExpression", - "start": 7824, - "end": 10556, - "loc": { - "start": { - "line": 214, - "column": 12 - }, - "end": { - "line": 294, - "column": 14 - } - }, - "callee": { - "type": "Identifier", - "start": 7824, - "end": 7841, - "loc": { - "start": { - "line": 214, - "column": 12 - }, - "end": { - "line": 214, - "column": 29 - }, - "identifierName": "viewDocumentGroup" - }, - "name": "viewDocumentGroup" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 7842, - "end": 7913, - "loc": { - "start": { - "line": 214, - "column": 30 - }, - "end": { - "line": 217, - "column": 13 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 7858, - "end": 7877, - "loc": { - "start": { - "line": 215, - "column": 14 - }, - "end": { - "line": 215, - "column": 33 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7858, - "end": 7860, - "loc": { - "start": { - "line": 215, - "column": 14 - }, - "end": { - "line": 215, - "column": 16 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 7862, - "end": 7877, - "loc": { - "start": { - "line": 215, - "column": 18 - }, - "end": { - "line": 215, - "column": 33 - }, - "identifierName": "documentGroupId" - }, - "name": "documentGroupId" - } - }, - { - "type": "ObjectProperty", - "start": 7893, - "end": 7898, - "loc": { - "start": { - "line": 216, - "column": 14 - }, - "end": { - "line": 216, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7893, - "end": 7898, - "loc": { - "start": { - "line": 216, - "column": 14 - }, - "end": { - "line": 216, - "column": 19 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 7893, - "end": 7898, - "loc": { - "start": { - "line": 216, - "column": 14 - }, - "end": { - "line": 216, - "column": 19 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "ArrowFunctionExpression", - "start": 7915, - "end": 10555, - "loc": { - "start": { - "line": 217, - "column": 15 - }, - "end": { - "line": 294, - "column": 13 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 7916, - "end": 7928, - "loc": { - "start": { - "line": 217, - "column": 16 - }, - "end": { - "line": 217, - "column": 28 - }, - "identifierName": "viewDocGrErr" - }, - "name": "viewDocGrErr" - }, - { - "type": "Identifier", - "start": 7930, - "end": 7942, - "loc": { - "start": { - "line": 217, - "column": 30 - }, - "end": { - "line": 217, - "column": 42 - }, - "identifierName": "viewDocGrRes" - }, - "name": "viewDocGrRes" - } - ], - "body": { - "type": "BlockStatement", - "start": 7947, - "end": 10555, - "loc": { - "start": { - "line": 217, - "column": 47 - }, - "end": { - "line": 294, - "column": 13 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 7963, - "end": 10541, - "loc": { - "start": { - "line": 218, - "column": 14 - }, - "end": { - "line": 293, - "column": 15 - } - }, - "test": { - "type": "Identifier", - "start": 7967, - "end": 7979, - "loc": { - "start": { - "line": 218, - "column": 18 - }, - "end": { - "line": 218, - "column": 30 - }, - "identifierName": "viewDocGrErr" - }, - "name": "viewDocGrErr" - }, - "consequent": { - "type": "BlockStatement", - "start": 7981, - "end": 8062, - "loc": { - "start": { - "line": 218, - "column": 32 - }, - "end": { - "line": 221, - "column": 15 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 7999, - "end": 8022, - "loc": { - "start": { - "line": 219, - "column": 16 - }, - "end": { - "line": 219, - "column": 39 - } - }, - "expression": { - "type": "CallExpression", - "start": 7999, - "end": 8021, - "loc": { - "start": { - "line": 219, - "column": 16 - }, - "end": { - "line": 219, - "column": 38 - } - }, - "callee": { - "type": "Identifier", - "start": 7999, - "end": 8007, - "loc": { - "start": { - "line": 219, - "column": 16 - }, - "end": { - "line": 219, - "column": 24 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 8008, - "end": 8020, - "loc": { - "start": { - "line": 219, - "column": 25 - }, - "end": { - "line": 219, - "column": 37 - }, - "identifierName": "viewDocGrErr" - }, - "name": "viewDocGrErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 8039, - "end": 8046, - "loc": { - "start": { - "line": 220, - "column": 16 - }, - "end": { - "line": 220, - "column": 23 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 8068, - "end": 10541, - "loc": { - "start": { - "line": 221, - "column": 21 - }, - "end": { - "line": 293, - "column": 15 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 8086, - "end": 8121, - "loc": { - "start": { - "line": 222, - "column": 16 - }, - "end": { - "line": 222, - "column": 51 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 8092, - "end": 8120, - "loc": { - "start": { - "line": 222, - "column": 22 - }, - "end": { - "line": 222, - "column": 50 - } - }, - "id": { - "type": "ObjectPattern", - "start": 8092, - "end": 8105, - "loc": { - "start": { - "line": 222, - "column": 22 - }, - "end": { - "line": 222, - "column": 35 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 8094, - "end": 8103, - "loc": { - "start": { - "line": 222, - "column": 24 - }, - "end": { - "line": 222, - "column": 33 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8094, - "end": 8103, - "loc": { - "start": { - "line": 222, - "column": 24 - }, - "end": { - "line": 222, - "column": 33 - }, - "identifierName": "documents" - }, - "name": "documents" - }, - "value": { - "type": "Identifier", - "start": 8094, - "end": 8103, - "loc": { - "start": { - "line": 222, - "column": 24 - }, - "end": { - "line": 222, - "column": 33 - }, - "identifierName": "documents" - }, - "name": "documents" - }, - "extra": { - "shorthand": true - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 8108, - "end": 8120, - "loc": { - "start": { - "line": 222, - "column": 38 - }, - "end": { - "line": 222, - "column": 50 - }, - "identifierName": "viewDocGrRes" - }, - "name": "viewDocGrRes" - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 8138, - "end": 8162, - "loc": { - "start": { - "line": 223, - "column": 16 - }, - "end": { - "line": 223, - "column": 40 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 8142, - "end": 8161, - "loc": { - "start": { - "line": 223, - "column": 20 - }, - "end": { - "line": 223, - "column": 39 - } - }, - "id": { - "type": "Identifier", - "start": 8142, - "end": 8161, - "loc": { - "start": { - "line": 223, - "column": 20 - }, - "end": { - "line": 223, - "column": 39 - }, - "identifierName": "documentToOriginMap" - }, - "name": "documentToOriginMap" - }, - "init": null - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 8179, - "end": 8198, - "loc": { - "start": { - "line": 224, - "column": 16 - }, - "end": { - "line": 224, - "column": 35 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 8183, - "end": 8197, - "loc": { - "start": { - "line": 224, - "column": 20 - }, - "end": { - "line": 224, - "column": 34 - } - }, - "id": { - "type": "Identifier", - "start": 8183, - "end": 8197, - "loc": { - "start": { - "line": 224, - "column": 20 - }, - "end": { - "line": 224, - "column": 34 - }, - "identifierName": "inviteSettings" - }, - "name": "inviteSettings" - }, - "init": null - } - ], - "kind": "let" - }, - { - "type": "TryStatement", - "start": 8216, - "end": 10089, - "loc": { - "start": { - "line": 226, - "column": 16 - }, - "end": { - "line": 278, - "column": 17 - } - }, - "block": { - "type": "BlockStatement", - "start": 8220, - "end": 9998, - "loc": { - "start": { - "line": 226, - "column": 20 - }, - "end": { - "line": 275, - "column": 17 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 8240, - "end": 8410, - "loc": { - "start": { - "line": 227, - "column": 18 - }, - "end": { - "line": 230, - "column": 25 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 8240, - "end": 8409, - "loc": { - "start": { - "line": 227, - "column": 18 - }, - "end": { - "line": 230, - "column": 24 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 8240, - "end": 8259, - "loc": { - "start": { - "line": 227, - "column": 18 - }, - "end": { - "line": 227, - "column": 37 - }, - "identifierName": "documentToOriginMap" - }, - "name": "documentToOriginMap" - }, - "right": { - "type": "CallExpression", - "start": 8262, - "end": 8409, - "loc": { - "start": { - "line": 227, - "column": 40 - }, - "end": { - "line": 230, - "column": 24 - } - }, - "callee": { - "type": "MemberExpression", - "start": 8262, - "end": 8278, - "loc": { - "start": { - "line": 227, - "column": 40 - }, - "end": { - "line": 227, - "column": 56 - } - }, - "object": { - "type": "Identifier", - "start": 8262, - "end": 8271, - "loc": { - "start": { - "line": 227, - "column": 40 - }, - "end": { - "line": 227, - "column": 49 - }, - "identifierName": "documents" - }, - "name": "documents" - }, - "property": { - "type": "Identifier", - "start": 8272, - "end": 8278, - "loc": { - "start": { - "line": 227, - "column": 50 - }, - "end": { - "line": 227, - "column": 56 - }, - "identifierName": "reduce" - }, - "name": "reduce" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 8279, - "end": 8404, - "loc": { - "start": { - "line": 227, - "column": 57 - }, - "end": { - "line": 230, - "column": 19 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 8280, - "end": 8283, - "loc": { - "start": { - "line": 227, - "column": 58 - }, - "end": { - "line": 227, - "column": 61 - }, - "identifierName": "map" - }, - "name": "map" - }, - { - "type": "Identifier", - "start": 8285, - "end": 8288, - "loc": { - "start": { - "line": 227, - "column": 63 - }, - "end": { - "line": 227, - "column": 66 - }, - "identifierName": "doc" - }, - "name": "doc" - } - ], - "body": { - "type": "BlockStatement", - "start": 8293, - "end": 8404, - "loc": { - "start": { - "line": 227, - "column": 71 - }, - "end": { - "line": 230, - "column": 19 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 8315, - "end": 8352, - "loc": { - "start": { - "line": 228, - "column": 20 - }, - "end": { - "line": 228, - "column": 57 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 8315, - "end": 8351, - "loc": { - "start": { - "line": 228, - "column": 20 - }, - "end": { - "line": 228, - "column": 56 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 8315, - "end": 8342, - "loc": { - "start": { - "line": 228, - "column": 20 - }, - "end": { - "line": 228, - "column": 47 - } - }, - "object": { - "type": "Identifier", - "start": 8315, - "end": 8318, - "loc": { - "start": { - "line": 228, - "column": 20 - }, - "end": { - "line": 228, - "column": 23 - }, - "identifierName": "map" - }, - "name": "map" - }, - "property": { - "type": "MemberExpression", - "start": 8319, - "end": 8341, - "loc": { - "start": { - "line": 228, - "column": 24 - }, - "end": { - "line": 228, - "column": 46 - } - }, - "object": { - "type": "Identifier", - "start": 8319, - "end": 8322, - "loc": { - "start": { - "line": 228, - "column": 24 - }, - "end": { - "line": 228, - "column": 27 - }, - "identifierName": "doc" - }, - "name": "doc" - }, - "property": { - "type": "Identifier", - "start": 8323, - "end": 8341, - "loc": { - "start": { - "line": 228, - "column": 28 - }, - "end": { - "line": 228, - "column": 46 - }, - "identifierName": "origin_document_id" - }, - "name": "origin_document_id" - }, - "computed": false - }, - "computed": true - }, - "right": { - "type": "MemberExpression", - "start": 8345, - "end": 8351, - "loc": { - "start": { - "line": 228, - "column": 50 - }, - "end": { - "line": 228, - "column": 56 - } - }, - "object": { - "type": "Identifier", - "start": 8345, - "end": 8348, - "loc": { - "start": { - "line": 228, - "column": 50 - }, - "end": { - "line": 228, - "column": 53 - }, - "identifierName": "doc" - }, - "name": "doc" - }, - "property": { - "type": "Identifier", - "start": 8349, - "end": 8351, - "loc": { - "start": { - "line": 228, - "column": 54 - }, - "end": { - "line": 228, - "column": 56 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": false - } - } - }, - { - "type": "ReturnStatement", - "start": 8373, - "end": 8384, - "loc": { - "start": { - "line": 229, - "column": 20 - }, - "end": { - "line": 229, - "column": 31 - } - }, - "argument": { - "type": "Identifier", - "start": 8380, - "end": 8383, - "loc": { - "start": { - "line": 229, - "column": 27 - }, - "end": { - "line": 229, - "column": 30 - }, - "identifierName": "map" - }, - "name": "map" - } - } - ], - "directives": [] - } - }, - { - "type": "ObjectExpression", - "start": 8406, - "end": 8408, - "loc": { - "start": { - "line": 230, - "column": 21 - }, - "end": { - "line": 230, - "column": 23 - } - }, - "properties": [] - } - ] - } - } - }, - { - "type": "ExpressionStatement", - "start": 8430, - "end": 8526, - "loc": { - "start": { - "line": 232, - "column": 18 - }, - "end": { - "line": 232, - "column": 114 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 8430, - "end": 8525, - "loc": { - "start": { - "line": 232, - "column": 18 - }, - "end": { - "line": 232, - "column": 113 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 8430, - "end": 8444, - "loc": { - "start": { - "line": 232, - "column": 18 - }, - "end": { - "line": 232, - "column": 32 - }, - "identifierName": "inviteSettings" - }, - "name": "inviteSettings" - }, - "right": { - "type": "CallExpression", - "start": 8447, - "end": 8525, - "loc": { - "start": { - "line": 232, - "column": 35 - }, - "end": { - "line": 232, - "column": 113 - } - }, - "callee": { - "type": "MemberExpression", - "start": 8447, - "end": 8460, - "loc": { - "start": { - "line": 232, - "column": 35 - }, - "end": { - "line": 232, - "column": 48 - } - }, - "object": { - "type": "Identifier", - "start": 8447, - "end": 8453, - "loc": { - "start": { - "line": 232, - "column": 35 - }, - "end": { - "line": 232, - "column": 41 - }, - "identifierName": "Object" - }, - "name": "Object" - }, - "property": { - "type": "Identifier", - "start": 8454, - "end": 8460, - "loc": { - "start": { - "line": 232, - "column": 42 - }, - "end": { - "line": 232, - "column": 48 - }, - "identifierName": "assign" - }, - "name": "assign" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 8461, - "end": 8463, - "loc": { - "start": { - "line": 232, - "column": 49 - }, - "end": { - "line": 232, - "column": 51 - } - }, - "properties": [] - }, - { - "type": "ConditionalExpression", - "start": 8466, - "end": 8517, - "loc": { - "start": { - "line": 232, - "column": 54 - }, - "end": { - "line": 232, - "column": 105 - } - }, - "test": { - "type": "MemberExpression", - "start": 8466, - "end": 8494, - "loc": { - "start": { - "line": 232, - "column": 54 - }, - "end": { - "line": 232, - "column": 82 - } - }, - "object": { - "type": "Identifier", - "start": 8466, - "end": 8481, - "loc": { - "start": { - "line": 232, - "column": 54 - }, - "end": { - "line": 232, - "column": 69 - }, - "identifierName": "routing_details" - }, - "name": "routing_details" - }, - "property": { - "type": "Identifier", - "start": 8482, - "end": 8494, - "loc": { - "start": { - "line": 232, - "column": 70 - }, - "end": { - "line": 232, - "column": 82 - }, - "identifierName": "invite_steps" - }, - "name": "invite_steps" - }, - "computed": false - }, - "consequent": { - "type": "Identifier", - "start": 8497, - "end": 8512, - "loc": { - "start": { - "line": 232, - "column": 85 - }, - "end": { - "line": 232, - "column": 100 - }, - "identifierName": "routing_details" - }, - "name": "routing_details" - }, - "alternate": { - "type": "ObjectExpression", - "start": 8515, - "end": 8517, - "loc": { - "start": { - "line": 232, - "column": 103 - }, - "end": { - "line": 232, - "column": 105 - } - }, - "properties": [] - }, - "extra": { - "parenthesized": true, - "parenStart": 8465 - } - }, - { - "type": "Identifier", - "start": 8520, - "end": 8524, - "loc": { - "start": { - "line": 232, - "column": 108 - }, - "end": { - "line": 232, - "column": 112 - }, - "identifierName": "data" - }, - "name": "data" - } - ] - } - } - }, - { - "type": "ExpressionStatement", - "start": 8546, - "end": 9980, - "loc": { - "start": { - "line": 234, - "column": 18 - }, - "end": { - "line": 274, - "column": 21 - } - }, - "expression": { - "type": "CallExpression", - "start": 8546, - "end": 9979, - "loc": { - "start": { - "line": 234, - "column": 18 - }, - "end": { - "line": 274, - "column": 20 - } - }, - "callee": { - "type": "MemberExpression", - "start": 8546, - "end": 8581, - "loc": { - "start": { - "line": 234, - "column": 18 - }, - "end": { - "line": 234, - "column": 53 - } - }, - "object": { - "type": "MemberExpression", - "start": 8546, - "end": 8573, - "loc": { - "start": { - "line": 234, - "column": 18 - }, - "end": { - "line": 234, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 8546, - "end": 8560, - "loc": { - "start": { - "line": 234, - "column": 18 - }, - "end": { - "line": 234, - "column": 32 - }, - "identifierName": "inviteSettings" - }, - "name": "inviteSettings" - }, - "property": { - "type": "Identifier", - "start": 8561, - "end": 8573, - "loc": { - "start": { - "line": 234, - "column": 33 - }, - "end": { - "line": 234, - "column": 45 - }, - "identifierName": "invite_steps" - }, - "name": "invite_steps" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 8574, - "end": 8581, - "loc": { - "start": { - "line": 234, - "column": 46 - }, - "end": { - "line": 234, - "column": 53 - }, - "identifierName": "forEach" - }, - "name": "forEach" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 8582, - "end": 9978, - "loc": { - "start": { - "line": 234, - "column": 54 - }, - "end": { - "line": 274, - "column": 19 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 8582, - "end": 8586, - "loc": { - "start": { - "line": 234, - "column": 54 - }, - "end": { - "line": 234, - "column": 58 - }, - "identifierName": "step" - }, - "name": "step" - } - ], - "body": { - "type": "BlockStatement", - "start": 8590, - "end": 9978, - "loc": { - "start": { - "line": 234, - "column": 62 - }, - "end": { - "line": 274, - "column": 19 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 8612, - "end": 9166, - "loc": { - "start": { - "line": 235, - "column": 20 - }, - "end": { - "line": 251, - "column": 23 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 8612, - "end": 9165, - "loc": { - "start": { - "line": 235, - "column": 20 - }, - "end": { - "line": 251, - "column": 22 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 8612, - "end": 8630, - "loc": { - "start": { - "line": 235, - "column": 20 - }, - "end": { - "line": 235, - "column": 38 - } - }, - "object": { - "type": "Identifier", - "start": 8612, - "end": 8616, - "loc": { - "start": { - "line": 235, - "column": 20 - }, - "end": { - "line": 235, - "column": 24 - }, - "identifierName": "step" - }, - "name": "step" - }, - "property": { - "type": "Identifier", - "start": 8617, - "end": 8630, - "loc": { - "start": { - "line": 235, - "column": 25 - }, - "end": { - "line": 235, - "column": 38 - }, - "identifierName": "invite_emails" - }, - "name": "invite_emails" - }, - "computed": false - }, - "right": { - "type": "CallExpression", - "start": 8633, - "end": 9165, - "loc": { - "start": { - "line": 235, - "column": 41 - }, - "end": { - "line": 251, - "column": 22 - } - }, - "callee": { - "type": "MemberExpression", - "start": 8633, - "end": 8655, - "loc": { - "start": { - "line": 235, - "column": 41 - }, - "end": { - "line": 235, - "column": 63 - } - }, - "object": { - "type": "MemberExpression", - "start": 8633, - "end": 8651, - "loc": { - "start": { - "line": 235, - "column": 41 - }, - "end": { - "line": 235, - "column": 59 - } - }, - "object": { - "type": "Identifier", - "start": 8633, - "end": 8637, - "loc": { - "start": { - "line": 235, - "column": 41 - }, - "end": { - "line": 235, - "column": 45 - }, - "identifierName": "step" - }, - "name": "step" - }, - "property": { - "type": "Identifier", - "start": 8638, - "end": 8651, - "loc": { - "start": { - "line": 235, - "column": 46 - }, - "end": { - "line": 235, - "column": 59 - }, - "identifierName": "invite_emails" - }, - "name": "invite_emails" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 8652, - "end": 8655, - "loc": { - "start": { - "line": 235, - "column": 60 - }, - "end": { - "line": 235, - "column": 63 - }, - "identifierName": "map" - }, - "name": "map" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 8656, - "end": 9164, - "loc": { - "start": { - "line": 235, - "column": 64 - }, - "end": { - "line": 251, - "column": 21 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 8656, - "end": 8667, - "loc": { - "start": { - "line": 235, - "column": 64 - }, - "end": { - "line": 235, - "column": 75 - }, - "identifierName": "inviteEmail" - }, - "name": "inviteEmail" - } - ], - "body": { - "type": "BlockStatement", - "start": 8671, - "end": 9164, - "loc": { - "start": { - "line": 235, - "column": 79 - }, - "end": { - "line": 251, - "column": 21 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 8695, - "end": 8913, - "loc": { - "start": { - "line": 236, - "column": 22 - }, - "end": { - "line": 242, - "column": 38 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 8701, - "end": 8912, - "loc": { - "start": { - "line": 236, - "column": 28 - }, - "end": { - "line": 242, - "column": 37 - } - }, - "id": { - "type": "ObjectPattern", - "start": 8701, - "end": 8898, - "loc": { - "start": { - "line": 236, - "column": 28 - }, - "end": { - "line": 242, - "column": 23 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 8727, - "end": 8732, - "loc": { - "start": { - "line": 237, - "column": 24 - }, - "end": { - "line": 237, - "column": 29 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8727, - "end": 8732, - "loc": { - "start": { - "line": 237, - "column": 24 - }, - "end": { - "line": 237, - "column": 29 - }, - "identifierName": "email" - }, - "name": "email" - }, - "value": { - "type": "Identifier", - "start": 8727, - "end": 8732, - "loc": { - "start": { - "line": 237, - "column": 24 - }, - "end": { - "line": 237, - "column": 29 - }, - "identifierName": "email" - }, - "name": "email" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 8758, - "end": 8765, - "loc": { - "start": { - "line": 238, - "column": 24 - }, - "end": { - "line": 238, - "column": 31 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8758, - "end": 8765, - "loc": { - "start": { - "line": 238, - "column": 24 - }, - "end": { - "line": 238, - "column": 31 - }, - "identifierName": "subject" - }, - "name": "subject" - }, - "value": { - "type": "Identifier", - "start": 8758, - "end": 8765, - "loc": { - "start": { - "line": 238, - "column": 24 - }, - "end": { - "line": 238, - "column": 31 - }, - "identifierName": "subject" - }, - "name": "subject" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 8791, - "end": 8798, - "loc": { - "start": { - "line": 239, - "column": 24 - }, - "end": { - "line": 239, - "column": 31 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8791, - "end": 8798, - "loc": { - "start": { - "line": 239, - "column": 24 - }, - "end": { - "line": 239, - "column": 31 - }, - "identifierName": "message" - }, - "name": "message" - }, - "value": { - "type": "Identifier", - "start": 8791, - "end": 8798, - "loc": { - "start": { - "line": 239, - "column": 24 - }, - "end": { - "line": 239, - "column": 31 - }, - "identifierName": "message" - }, - "name": "message" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 8824, - "end": 8839, - "loc": { - "start": { - "line": 240, - "column": 24 - }, - "end": { - "line": 240, - "column": 39 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8824, - "end": 8839, - "loc": { - "start": { - "line": 240, - "column": 24 - }, - "end": { - "line": 240, - "column": 39 - }, - "identifierName": "expiration_days" - }, - "name": "expiration_days" - }, - "value": { - "type": "Identifier", - "start": 8824, - "end": 8839, - "loc": { - "start": { - "line": 240, - "column": 24 - }, - "end": { - "line": 240, - "column": 39 - }, - "identifierName": "expiration_days" - }, - "name": "expiration_days" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 8865, - "end": 8873, - "loc": { - "start": { - "line": 241, - "column": 24 - }, - "end": { - "line": 241, - "column": 32 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8865, - "end": 8873, - "loc": { - "start": { - "line": 241, - "column": 24 - }, - "end": { - "line": 241, - "column": 32 - }, - "identifierName": "reminder" - }, - "name": "reminder" - }, - "value": { - "type": "Identifier", - "start": 8865, - "end": 8873, - "loc": { - "start": { - "line": 241, - "column": 24 - }, - "end": { - "line": 241, - "column": 32 - }, - "identifierName": "reminder" - }, - "name": "reminder" - }, - "extra": { - "shorthand": true - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 8901, - "end": 8912, - "loc": { - "start": { - "line": 242, - "column": 26 - }, - "end": { - "line": 242, - "column": 37 - }, - "identifierName": "inviteEmail" - }, - "name": "inviteEmail" - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 8937, - "end": 9142, - "loc": { - "start": { - "line": 244, - "column": 22 - }, - "end": { - "line": 250, - "column": 24 - } - }, - "argument": { - "type": "ObjectExpression", - "start": 8944, - "end": 9141, - "loc": { - "start": { - "line": 244, - "column": 29 - }, - "end": { - "line": 250, - "column": 23 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 8970, - "end": 8975, - "loc": { - "start": { - "line": 245, - "column": 24 - }, - "end": { - "line": 245, - "column": 29 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8970, - "end": 8975, - "loc": { - "start": { - "line": 245, - "column": 24 - }, - "end": { - "line": 245, - "column": 29 - }, - "identifierName": "email" - }, - "name": "email" - }, - "value": { - "type": "Identifier", - "start": 8970, - "end": 8975, - "loc": { - "start": { - "line": 245, - "column": 24 - }, - "end": { - "line": 245, - "column": 29 - }, - "identifierName": "email" - }, - "name": "email" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 9001, - "end": 9008, - "loc": { - "start": { - "line": 246, - "column": 24 - }, - "end": { - "line": 246, - "column": 31 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9001, - "end": 9008, - "loc": { - "start": { - "line": 246, - "column": 24 - }, - "end": { - "line": 246, - "column": 31 - }, - "identifierName": "subject" - }, - "name": "subject" - }, - "value": { - "type": "Identifier", - "start": 9001, - "end": 9008, - "loc": { - "start": { - "line": 246, - "column": 24 - }, - "end": { - "line": 246, - "column": 31 - }, - "identifierName": "subject" - }, - "name": "subject" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 9034, - "end": 9041, - "loc": { - "start": { - "line": 247, - "column": 24 - }, - "end": { - "line": 247, - "column": 31 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9034, - "end": 9041, - "loc": { - "start": { - "line": 247, - "column": 24 - }, - "end": { - "line": 247, - "column": 31 - }, - "identifierName": "message" - }, - "name": "message" - }, - "value": { - "type": "Identifier", - "start": 9034, - "end": 9041, - "loc": { - "start": { - "line": 247, - "column": 24 - }, - "end": { - "line": 247, - "column": 31 - }, - "identifierName": "message" - }, - "name": "message" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 9067, - "end": 9082, - "loc": { - "start": { - "line": 248, - "column": 24 - }, - "end": { - "line": 248, - "column": 39 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9067, - "end": 9082, - "loc": { - "start": { - "line": 248, - "column": 24 - }, - "end": { - "line": 248, - "column": 39 - }, - "identifierName": "expiration_days" - }, - "name": "expiration_days" - }, - "value": { - "type": "Identifier", - "start": 9067, - "end": 9082, - "loc": { - "start": { - "line": 248, - "column": 24 - }, - "end": { - "line": 248, - "column": 39 - }, - "identifierName": "expiration_days" - }, - "name": "expiration_days" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 9108, - "end": 9116, - "loc": { - "start": { - "line": 249, - "column": 24 - }, - "end": { - "line": 249, - "column": 32 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9108, - "end": 9116, - "loc": { - "start": { - "line": 249, - "column": 24 - }, - "end": { - "line": 249, - "column": 32 - }, - "identifierName": "reminder" - }, - "name": "reminder" - }, - "value": { - "type": "Identifier", - "start": 9108, - "end": 9116, - "loc": { - "start": { - "line": 249, - "column": 24 - }, - "end": { - "line": 249, - "column": 32 - }, - "identifierName": "reminder" - }, - "name": "reminder" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ], - "directives": [] - } - } - ] - } - } - }, - { - "type": "ExpressionStatement", - "start": 9188, - "end": 9958, - "loc": { - "start": { - "line": 253, - "column": 20 - }, - "end": { - "line": 273, - "column": 23 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 9188, - "end": 9957, - "loc": { - "start": { - "line": 253, - "column": 20 - }, - "end": { - "line": 273, - "column": 22 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 9188, - "end": 9207, - "loc": { - "start": { - "line": 253, - "column": 20 - }, - "end": { - "line": 253, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 9188, - "end": 9192, - "loc": { - "start": { - "line": 253, - "column": 20 - }, - "end": { - "line": 253, - "column": 24 - }, - "identifierName": "step" - }, - "name": "step" - }, - "property": { - "type": "Identifier", - "start": 9193, - "end": 9207, - "loc": { - "start": { - "line": 253, - "column": 25 - }, - "end": { - "line": 253, - "column": 39 - }, - "identifierName": "invite_actions" - }, - "name": "invite_actions" - }, - "computed": false - }, - "right": { - "type": "CallExpression", - "start": 9210, - "end": 9957, - "loc": { - "start": { - "line": 253, - "column": 42 - }, - "end": { - "line": 273, - "column": 22 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9210, - "end": 9233, - "loc": { - "start": { - "line": 253, - "column": 42 - }, - "end": { - "line": 253, - "column": 65 - } - }, - "object": { - "type": "MemberExpression", - "start": 9210, - "end": 9229, - "loc": { - "start": { - "line": 253, - "column": 42 - }, - "end": { - "line": 253, - "column": 61 - } - }, - "object": { - "type": "Identifier", - "start": 9210, - "end": 9214, - "loc": { - "start": { - "line": 253, - "column": 42 - }, - "end": { - "line": 253, - "column": 46 - }, - "identifierName": "step" - }, - "name": "step" - }, - "property": { - "type": "Identifier", - "start": 9215, - "end": 9229, - "loc": { - "start": { - "line": 253, - "column": 47 - }, - "end": { - "line": 253, - "column": 61 - }, - "identifierName": "invite_actions" - }, - "name": "invite_actions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 9230, - "end": 9233, - "loc": { - "start": { - "line": 253, - "column": 62 - }, - "end": { - "line": 253, - "column": 65 - }, - "identifierName": "map" - }, - "name": "map" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 9234, - "end": 9956, - "loc": { - "start": { - "line": 253, - "column": 66 - }, - "end": { - "line": 273, - "column": 21 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 9234, - "end": 9246, - "loc": { - "start": { - "line": 253, - "column": 66 - }, - "end": { - "line": 253, - "column": 78 - }, - "identifierName": "inviteAction" - }, - "name": "inviteAction" - } - ], - "body": { - "type": "BlockStatement", - "start": 9250, - "end": 9956, - "loc": { - "start": { - "line": 253, - "column": 82 - }, - "end": { - "line": 273, - "column": 21 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 9274, - "end": 9582, - "loc": { - "start": { - "line": 254, - "column": 22 - }, - "end": { - "line": 262, - "column": 39 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 9280, - "end": 9581, - "loc": { - "start": { - "line": 254, - "column": 28 - }, - "end": { - "line": 262, - "column": 38 - } - }, - "id": { - "type": "ObjectPattern", - "start": 9280, - "end": 9566, - "loc": { - "start": { - "line": 254, - "column": 28 - }, - "end": { - "line": 262, - "column": 23 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 9306, - "end": 9311, - "loc": { - "start": { - "line": 255, - "column": 24 - }, - "end": { - "line": 255, - "column": 29 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9306, - "end": 9311, - "loc": { - "start": { - "line": 255, - "column": 24 - }, - "end": { - "line": 255, - "column": 29 - }, - "identifierName": "email" - }, - "name": "email" - }, - "value": { - "type": "Identifier", - "start": 9306, - "end": 9311, - "loc": { - "start": { - "line": 255, - "column": 24 - }, - "end": { - "line": 255, - "column": 29 - }, - "identifierName": "email" - }, - "name": "email" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 9337, - "end": 9346, - "loc": { - "start": { - "line": 256, - "column": 24 - }, - "end": { - "line": 256, - "column": 33 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9337, - "end": 9346, - "loc": { - "start": { - "line": 256, - "column": 24 - }, - "end": { - "line": 256, - "column": 33 - }, - "identifierName": "role_name" - }, - "name": "role_name" - }, - "value": { - "type": "Identifier", - "start": 9337, - "end": 9346, - "loc": { - "start": { - "line": 256, - "column": 24 - }, - "end": { - "line": 256, - "column": 33 - }, - "identifierName": "role_name" - }, - "name": "role_name" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 9372, - "end": 9378, - "loc": { - "start": { - "line": 257, - "column": 24 - }, - "end": { - "line": 257, - "column": 30 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9372, - "end": 9378, - "loc": { - "start": { - "line": 257, - "column": 24 - }, - "end": { - "line": 257, - "column": 30 - }, - "identifierName": "action" - }, - "name": "action" - }, - "value": { - "type": "Identifier", - "start": 9372, - "end": 9378, - "loc": { - "start": { - "line": 257, - "column": 24 - }, - "end": { - "line": 257, - "column": 30 - }, - "identifierName": "action" - }, - "name": "action" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 9404, - "end": 9415, - "loc": { - "start": { - "line": 258, - "column": 24 - }, - "end": { - "line": 258, - "column": 35 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9404, - "end": 9415, - "loc": { - "start": { - "line": 258, - "column": 24 - }, - "end": { - "line": 258, - "column": 35 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "value": { - "type": "Identifier", - "start": 9404, - "end": 9415, - "loc": { - "start": { - "line": 258, - "column": 24 - }, - "end": { - "line": 258, - "column": 35 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 9441, - "end": 9455, - "loc": { - "start": { - "line": 259, - "column": 24 - }, - "end": { - "line": 259, - "column": 38 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9441, - "end": 9455, - "loc": { - "start": { - "line": 259, - "column": 24 - }, - "end": { - "line": 259, - "column": 38 - }, - "identifierName": "allow_reassign" - }, - "name": "allow_reassign" - }, - "value": { - "type": "Identifier", - "start": 9441, - "end": 9455, - "loc": { - "start": { - "line": 259, - "column": 24 - }, - "end": { - "line": 259, - "column": 38 - }, - "identifierName": "allow_reassign" - }, - "name": "allow_reassign" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 9481, - "end": 9501, - "loc": { - "start": { - "line": 260, - "column": 24 - }, - "end": { - "line": 260, - "column": 44 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9481, - "end": 9501, - "loc": { - "start": { - "line": 260, - "column": 24 - }, - "end": { - "line": 260, - "column": 44 - }, - "identifierName": "decline_by_signature" - }, - "name": "decline_by_signature" - }, - "value": { - "type": "Identifier", - "start": 9481, - "end": 9501, - "loc": { - "start": { - "line": 260, - "column": 24 - }, - "end": { - "line": 260, - "column": 44 - }, - "identifierName": "decline_by_signature" - }, - "name": "decline_by_signature" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 9527, - "end": 9541, - "loc": { - "start": { - "line": 261, - "column": 24 - }, - "end": { - "line": 261, - "column": 38 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9527, - "end": 9541, - "loc": { - "start": { - "line": 261, - "column": 24 - }, - "end": { - "line": 261, - "column": 38 - }, - "identifierName": "authentication" - }, - "name": "authentication" - }, - "value": { - "type": "Identifier", - "start": 9527, - "end": 9541, - "loc": { - "start": { - "line": 261, - "column": 24 - }, - "end": { - "line": 261, - "column": 38 - }, - "identifierName": "authentication" - }, - "name": "authentication" - }, - "extra": { - "shorthand": true - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 9569, - "end": 9581, - "loc": { - "start": { - "line": 262, - "column": 26 - }, - "end": { - "line": 262, - "column": 38 - }, - "identifierName": "inviteAction" - }, - "name": "inviteAction" - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 9606, - "end": 9934, - "loc": { - "start": { - "line": 264, - "column": 22 - }, - "end": { - "line": 272, - "column": 24 - } - }, - "argument": { - "type": "ObjectExpression", - "start": 9613, - "end": 9933, - "loc": { - "start": { - "line": 264, - "column": 29 - }, - "end": { - "line": 272, - "column": 23 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 9639, - "end": 9684, - "loc": { - "start": { - "line": 265, - "column": 24 - }, - "end": { - "line": 265, - "column": 69 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 9639, - "end": 9650, - "loc": { - "start": { - "line": 265, - "column": 24 - }, - "end": { - "line": 265, - "column": 35 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "value": { - "type": "MemberExpression", - "start": 9652, - "end": 9684, - "loc": { - "start": { - "line": 265, - "column": 37 - }, - "end": { - "line": 265, - "column": 69 - } - }, - "object": { - "type": "Identifier", - "start": 9652, - "end": 9671, - "loc": { - "start": { - "line": 265, - "column": 37 - }, - "end": { - "line": 265, - "column": 56 - }, - "identifierName": "documentToOriginMap" - }, - "name": "documentToOriginMap" - }, - "property": { - "type": "Identifier", - "start": 9672, - "end": 9683, - "loc": { - "start": { - "line": 265, - "column": 57 - }, - "end": { - "line": 265, - "column": 68 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "computed": true - } - }, - { - "type": "ObjectProperty", - "start": 9710, - "end": 9715, - "loc": { - "start": { - "line": 266, - "column": 24 - }, - "end": { - "line": 266, - "column": 29 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9710, - "end": 9715, - "loc": { - "start": { - "line": 266, - "column": 24 - }, - "end": { - "line": 266, - "column": 29 - }, - "identifierName": "email" - }, - "name": "email" - }, - "value": { - "type": "Identifier", - "start": 9710, - "end": 9715, - "loc": { - "start": { - "line": 266, - "column": 24 - }, - "end": { - "line": 266, - "column": 29 - }, - "identifierName": "email" - }, - "name": "email" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 9741, - "end": 9750, - "loc": { - "start": { - "line": 267, - "column": 24 - }, - "end": { - "line": 267, - "column": 33 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9741, - "end": 9750, - "loc": { - "start": { - "line": 267, - "column": 24 - }, - "end": { - "line": 267, - "column": 33 - }, - "identifierName": "role_name" - }, - "name": "role_name" - }, - "value": { - "type": "Identifier", - "start": 9741, - "end": 9750, - "loc": { - "start": { - "line": 267, - "column": 24 - }, - "end": { - "line": 267, - "column": 33 - }, - "identifierName": "role_name" - }, - "name": "role_name" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 9776, - "end": 9782, - "loc": { - "start": { - "line": 268, - "column": 24 - }, - "end": { - "line": 268, - "column": 30 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9776, - "end": 9782, - "loc": { - "start": { - "line": 268, - "column": 24 - }, - "end": { - "line": 268, - "column": 30 - }, - "identifierName": "action" - }, - "name": "action" - }, - "value": { - "type": "Identifier", - "start": 9776, - "end": 9782, - "loc": { - "start": { - "line": 268, - "column": 24 - }, - "end": { - "line": 268, - "column": 30 - }, - "identifierName": "action" - }, - "name": "action" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 9808, - "end": 9822, - "loc": { - "start": { - "line": 269, - "column": 24 - }, - "end": { - "line": 269, - "column": 38 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9808, - "end": 9822, - "loc": { - "start": { - "line": 269, - "column": 24 - }, - "end": { - "line": 269, - "column": 38 - }, - "identifierName": "allow_reassign" - }, - "name": "allow_reassign" - }, - "value": { - "type": "Identifier", - "start": 9808, - "end": 9822, - "loc": { - "start": { - "line": 269, - "column": 24 - }, - "end": { - "line": 269, - "column": 38 - }, - "identifierName": "allow_reassign" - }, - "name": "allow_reassign" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 9848, - "end": 9868, - "loc": { - "start": { - "line": 270, - "column": 24 - }, - "end": { - "line": 270, - "column": 44 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9848, - "end": 9868, - "loc": { - "start": { - "line": 270, - "column": 24 - }, - "end": { - "line": 270, - "column": 44 - }, - "identifierName": "decline_by_signature" - }, - "name": "decline_by_signature" - }, - "value": { - "type": "Identifier", - "start": 9848, - "end": 9868, - "loc": { - "start": { - "line": 270, - "column": 24 - }, - "end": { - "line": 270, - "column": 44 - }, - "identifierName": "decline_by_signature" - }, - "name": "decline_by_signature" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 9894, - "end": 9908, - "loc": { - "start": { - "line": 271, - "column": 24 - }, - "end": { - "line": 271, - "column": 38 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9894, - "end": 9908, - "loc": { - "start": { - "line": 271, - "column": 24 - }, - "end": { - "line": 271, - "column": 38 - }, - "identifierName": "authentication" - }, - "name": "authentication" - }, - "value": { - "type": "Identifier", - "start": 9894, - "end": 9908, - "loc": { - "start": { - "line": 271, - "column": 24 - }, - "end": { - "line": 271, - "column": 38 - }, - "identifierName": "authentication" - }, - "name": "authentication" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ], - "directives": [] - } - } - ] - } - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - }, - "handler": { - "type": "CatchClause", - "start": 9999, - "end": 10089, - "loc": { - "start": { - "line": 275, - "column": 18 - }, - "end": { - "line": 278, - "column": 17 - } - }, - "param": { - "type": "Identifier", - "start": 10006, - "end": 10009, - "loc": { - "start": { - "line": 275, - "column": 25 - }, - "end": { - "line": 275, - "column": 28 - }, - "identifierName": "err" - }, - "name": "err" - }, - "body": { - "type": "BlockStatement", - "start": 10011, - "end": 10089, - "loc": { - "start": { - "line": 275, - "column": 30 - }, - "end": { - "line": 278, - "column": 17 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 10031, - "end": 10045, - "loc": { - "start": { - "line": 276, - "column": 18 - }, - "end": { - "line": 276, - "column": 32 - } - }, - "expression": { - "type": "CallExpression", - "start": 10031, - "end": 10044, - "loc": { - "start": { - "line": 276, - "column": 18 - }, - "end": { - "line": 276, - "column": 31 - } - }, - "callee": { - "type": "Identifier", - "start": 10031, - "end": 10039, - "loc": { - "start": { - "line": 276, - "column": 18 - }, - "end": { - "line": 276, - "column": 26 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 10040, - "end": 10043, - "loc": { - "start": { - "line": 276, - "column": 27 - }, - "end": { - "line": 276, - "column": 30 - }, - "identifierName": "err" - }, - "name": "err" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 10064, - "end": 10071, - "loc": { - "start": { - "line": 277, - "column": 18 - }, - "end": { - "line": 277, - "column": 25 - } - }, - "argument": null - } - ], - "directives": [] - } - }, - "guardedHandlers": [], - "finalizer": null - }, - { - "type": "ExpressionStatement", - "start": 10107, - "end": 10525, - "loc": { - "start": { - "line": 280, - "column": 16 - }, - "end": { - "line": 292, - "column": 19 - } - }, - "expression": { - "type": "CallExpression", - "start": 10107, - "end": 10524, - "loc": { - "start": { - "line": 280, - "column": 16 - }, - "end": { - "line": 292, - "column": 18 - } - }, - "callee": { - "type": "Identifier", - "start": 10107, - "end": 10126, - "loc": { - "start": { - "line": 280, - "column": 16 - }, - "end": { - "line": 280, - "column": 35 - }, - "identifierName": "inviteDocumentGroup" - }, - "name": "inviteDocumentGroup" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 10127, - "end": 10250, - "loc": { - "start": { - "line": 280, - "column": 36 - }, - "end": { - "line": 284, - "column": 17 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 10147, - "end": 10166, - "loc": { - "start": { - "line": 281, - "column": 18 - }, - "end": { - "line": 281, - "column": 37 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 10147, - "end": 10149, - "loc": { - "start": { - "line": 281, - "column": 18 - }, - "end": { - "line": 281, - "column": 20 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 10151, - "end": 10166, - "loc": { - "start": { - "line": 281, - "column": 22 - }, - "end": { - "line": 281, - "column": 37 - }, - "identifierName": "documentGroupId" - }, - "name": "documentGroupId" - } - }, - { - "type": "ObjectProperty", - "start": 10186, - "end": 10206, - "loc": { - "start": { - "line": 282, - "column": 18 - }, - "end": { - "line": 282, - "column": 38 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 10186, - "end": 10190, - "loc": { - "start": { - "line": 282, - "column": 18 - }, - "end": { - "line": 282, - "column": 22 - }, - "identifierName": "data" - }, - "name": "data" - }, - "value": { - "type": "Identifier", - "start": 10192, - "end": 10206, - "loc": { - "start": { - "line": 282, - "column": 24 - }, - "end": { - "line": 282, - "column": 38 - }, - "identifierName": "inviteSettings" - }, - "name": "inviteSettings" - } - }, - { - "type": "ObjectProperty", - "start": 10226, - "end": 10231, - "loc": { - "start": { - "line": 283, - "column": 18 - }, - "end": { - "line": 283, - "column": 23 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 10226, - "end": 10231, - "loc": { - "start": { - "line": 283, - "column": 18 - }, - "end": { - "line": 283, - "column": 23 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 10226, - "end": 10231, - "loc": { - "start": { - "line": 283, - "column": 18 - }, - "end": { - "line": 283, - "column": 23 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "ArrowFunctionExpression", - "start": 10252, - "end": 10523, - "loc": { - "start": { - "line": 284, - "column": 19 - }, - "end": { - "line": 292, - "column": 17 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 10253, - "end": 10262, - "loc": { - "start": { - "line": 284, - "column": 20 - }, - "end": { - "line": 284, - "column": 29 - }, - "identifierName": "inviteErr" - }, - "name": "inviteErr" - }, - { - "type": "Identifier", - "start": 10264, - "end": 10273, - "loc": { - "start": { - "line": 284, - "column": 31 - }, - "end": { - "line": 284, - "column": 40 - }, - "identifierName": "inviteRes" - }, - "name": "inviteRes" - } - ], - "body": { - "type": "BlockStatement", - "start": 10278, - "end": 10523, - "loc": { - "start": { - "line": 284, - "column": 45 - }, - "end": { - "line": 292, - "column": 17 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 10298, - "end": 10505, - "loc": { - "start": { - "line": 285, - "column": 18 - }, - "end": { - "line": 291, - "column": 19 - } - }, - "test": { - "type": "Identifier", - "start": 10302, - "end": 10311, - "loc": { - "start": { - "line": 285, - "column": 22 - }, - "end": { - "line": 285, - "column": 31 - }, - "identifierName": "inviteErr" - }, - "name": "inviteErr" - }, - "consequent": { - "type": "BlockStatement", - "start": 10313, - "end": 10403, - "loc": { - "start": { - "line": 285, - "column": 33 - }, - "end": { - "line": 288, - "column": 19 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 10335, - "end": 10355, - "loc": { - "start": { - "line": 286, - "column": 20 - }, - "end": { - "line": 286, - "column": 40 - } - }, - "expression": { - "type": "CallExpression", - "start": 10335, - "end": 10354, - "loc": { - "start": { - "line": 286, - "column": 20 - }, - "end": { - "line": 286, - "column": 39 - } - }, - "callee": { - "type": "Identifier", - "start": 10335, - "end": 10343, - "loc": { - "start": { - "line": 286, - "column": 20 - }, - "end": { - "line": 286, - "column": 28 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 10344, - "end": 10353, - "loc": { - "start": { - "line": 286, - "column": 29 - }, - "end": { - "line": 286, - "column": 38 - }, - "identifierName": "inviteErr" - }, - "name": "inviteErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 10376, - "end": 10383, - "loc": { - "start": { - "line": 287, - "column": 20 - }, - "end": { - "line": 287, - "column": 27 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 10409, - "end": 10505, - "loc": { - "start": { - "line": 288, - "column": 25 - }, - "end": { - "line": 291, - "column": 19 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 10431, - "end": 10457, - "loc": { - "start": { - "line": 289, - "column": 20 - }, - "end": { - "line": 289, - "column": 46 - } - }, - "expression": { - "type": "CallExpression", - "start": 10431, - "end": 10456, - "loc": { - "start": { - "line": 289, - "column": 20 - }, - "end": { - "line": 289, - "column": 45 - } - }, - "callee": { - "type": "Identifier", - "start": 10431, - "end": 10439, - "loc": { - "start": { - "line": 289, - "column": 20 - }, - "end": { - "line": 289, - "column": 28 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "NullLiteral", - "start": 10440, - "end": 10444, - "loc": { - "start": { - "line": 289, - "column": 29 - }, - "end": { - "line": 289, - "column": 33 - } - } - }, - { - "type": "Identifier", - "start": 10446, - "end": 10455, - "loc": { - "start": { - "line": 289, - "column": 35 - }, - "end": { - "line": 289, - "column": 44 - }, - "identifierName": "inviteRes" - }, - "name": "inviteRes" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 10478, - "end": 10485, - "loc": { - "start": { - "line": 290, - "column": 20 - }, - "end": { - "line": 290, - "column": 27 - } - }, - "argument": null - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Create Document Group Template invite payload\n * @typedef {Object} DocumentGroupTemplateInviteParams\n * @property {string} id - ID of specific Document Group Template\n * @property {DocumentGroupInviteSettings} [data] - Document Group Template invite settings data\n * @property {string} token - your auth token\n ", - "start": 6052, - "end": 6384, - "loc": { - "start": { - "line": 156, - "column": 2 - }, - "end": { - "line": 162, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create Document Group Template invite response data\n * @typedef {DocumentGroupInviteResponse} DocumentGroupTemplateInviteResponse\n * @property {string} id - an ID of created invite\n * @property {?string} pending_invite_link - pending invite link\n ", - "start": 6388, - "end": 6654, - "loc": { - "start": { - "line": 164, - "column": 2 - }, - "end": { - "line": 169, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates an invite to sign a Document Group Template\n * @param {DocumentGroupTemplateInviteParams} data - create Document Group Template invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupTemplateInviteResponse)} [callback] - error first node.js callback\n ", - "start": 6658, - "end": 6955, - "loc": { - "start": { - "line": 171, - "column": 2 - }, - "end": { - "line": 175, - "column": 5 - } - } - } - ] - } - ] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document Group Template methods\n ", - "start": 322, - "end": 364, - "loc": { - "start": { - "line": 13, - "column": 0 - }, - "end": { - "line": 15, - "column": 3 - } - } - } - ], - "__PseudoExport__": false, - "trailingComments": [] - }, - "leadingComments": null - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "value": "use strict", - "extra": { - "raw": "'use strict'", - "rawValue": "use strict" - } - } - } - ] - }, - "comments": [ - { - "type": "CommentBlock", - "value": "*\n * Document Group Template methods\n ", - "start": 322, - "end": 364, - "loc": { - "start": { - "line": 13, - "column": 0 - }, - "end": { - "line": 15, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group Template invite email congfigurations\n * @typedef {Object} DocumentGroupTemplateInviteEmail\n * @property {string} [email] - signer's email\n * @property {string} [subject] - subject of invitation email\n * @property {string} [message] - content of invitation email\n * @property {number} [expiration_days] - expiration of invite in days\n * @property {number} [reminder] - number of days in which to remind about invite via email\n * @property {boolean} [hasSignActions] - does signer need to sign documents of document group\n ", - "start": 398, - "end": 962, - "loc": { - "start": { - "line": 18, - "column": 2 - }, - "end": { - "line": 27, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group Template invite action congfigurations\n * @typedef {Object} DocumentGroupTemplateInviteAction\n * @property {string} [email] - signer's email\n * @property {string} [role_name] - signer's role name\n * @property {string} [action] - name of action with document in signing step\n * @property {string} [document_id] - ID of document in specific signing step\n * @property {string} [document_name] - name of document in specific signing step\n * @property {string} [allow_reassign] - allow reassigning of signer\n * @property {string} decline_by_signature - signer can decline invite\n ", - "start": 966, - "end": 1585, - "loc": { - "start": { - "line": 29, - "column": 2 - }, - "end": { - "line": 39, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group Template invite step congfigurations\n * @typedef {Object} DocumentGroupTemplateInviteStep\n * @property {number} [order] - an order number of invitation step\n * @property {DocumentGroupTemplateInviteEmail[]} [invite_emails] - Document Group Template invite emails settings\n * @property {DocumentGroupTemplateInviteAction[]} invite_actions - Document Group Template invite actions settings\n ", - "start": 1589, - "end": 2014, - "loc": { - "start": { - "line": 41, - "column": 2 - }, - "end": { - "line": 47, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group Template invite congfigurations\n * @typedef {Object} DocumentGroupTemplateRoutingDetails\n * @property {DocumentGroupTemplateInviteStep[]} invite_steps - Document Group Template invite steps settings\n * @property {number} [include_email_attachments]\n ", - "start": 2018, - "end": 2302, - "loc": { - "start": { - "line": 49, - "column": 2 - }, - "end": { - "line": 54, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create Document Group Template payload\n * @typedef {Object} DocumentGroupTemplateCreateParams\n * @property {string} token - your auth token\n * @property {string[]} template_ids - array of template ids for Document Group Template creation\n * @property {string} template_group_name - new name of document group\n * @property {DocumentGroupTemplateRoutingDetails} routing_details - invite congfigurations\n ", - "start": 2306, - "end": 2731, - "loc": { - "start": { - "line": 56, - "column": 2 - }, - "end": { - "line": 63, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create Document Group Template response data\n * @typedef {Object} DocumentGroupTemplateCreateResponse\n * @property {string} id - Document Group Template unique id\n ", - "start": 2735, - "end": 2916, - "loc": { - "start": { - "line": 65, - "column": 2 - }, - "end": { - "line": 69, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates Document Group Template with specified templates and settings\n * @param {DocumentGroupTemplateCreateParams} data - create Document Group Template payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupTemplateCreateResponse)} [callback] - error first node.js callback\n ", - "start": 2920, - "end": 3228, - "loc": { - "start": { - "line": 71, - "column": 2 - }, - "end": { - "line": 75, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group Template view payload\n * @typedef {Object} DocumentGroupTemplateViewParams\n * @property {string} id - id of specific Document Group Template\n * @property {string} token - your auth token\n ", - "start": 3921, - "end": 4143, - "loc": { - "start": { - "line": 106, - "column": 2 - }, - "end": { - "line": 111, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Details of single template in group\n * @typedef {Object} DocumentGroupTemplateItem\n * @property {string} id - id of template\n * @property {string} template_name - name of template\n * @property {string} owner_email - template owner email\n * @property {?number} readable\n * @property {DocumentThumbnails} thumbnail - thumbnail urls with different sizes (small, medium, large)\n * @property {string[]} roles - list of template signer roles\n ", - "start": 4147, - "end": 4611, - "loc": { - "start": { - "line": 113, - "column": 2 - }, - "end": { - "line": 122, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group Template view response\n * @typedef {Object} DocumentGroupTemplateViewResponse\n * @property {string} id - id of Document Group Template\n * @property {string} group_name - name of Document Group Template\n * @property {string} document_group_template_owner_email - Document Group Template owner email\n * @property {number} shared - is Document Group Template shared or not (values: 0 or 1)\n * @property {?string} shared_team_id - id of team which Document Group Template is shared with\n * @property {DocumentGroupTemplateItem[]} templates - each single template details\n * @property {DocumentGroupTemplateRoutingDetails} routing_details - signing steps configuration\n * @property {Object[]} originator_organization_settings - originator organization settings\n ", - "start": 4615, - "end": 5418, - "loc": { - "start": { - "line": 124, - "column": 2 - }, - "end": { - "line": 135, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves a Document Group Template detailed data\n * @param {DocumentGroupTemplateViewParams} data - view Document Group Template details payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupTemplateViewResponse)} [callback] - error first node.js callback\n ", - "start": 5422, - "end": 5712, - "loc": { - "start": { - "line": 137, - "column": 2 - }, - "end": { - "line": 141, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create Document Group Template invite payload\n * @typedef {Object} DocumentGroupTemplateInviteParams\n * @property {string} id - ID of specific Document Group Template\n * @property {DocumentGroupInviteSettings} [data] - Document Group Template invite settings data\n * @property {string} token - your auth token\n ", - "start": 6052, - "end": 6384, - "loc": { - "start": { - "line": 156, - "column": 2 - }, - "end": { - "line": 162, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create Document Group Template invite response data\n * @typedef {DocumentGroupInviteResponse} DocumentGroupTemplateInviteResponse\n * @property {string} id - an ID of created invite\n * @property {?string} pending_invite_link - pending invite link\n ", - "start": 6388, - "end": 6654, - "loc": { - "start": { - "line": 164, - "column": 2 - }, - "end": { - "line": 169, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates an invite to sign a Document Group Template\n * @param {DocumentGroupTemplateInviteParams} data - create Document Group Template invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupTemplateInviteResponse)} [callback] - error first node.js callback\n ", - "start": 6658, - "end": 6955, - "loc": { - "start": { - "line": 171, - "column": 2 - }, - "end": { - "line": 175, - "column": 5 - } - } - } - ], - "tokens": [ - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "use strict", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 12 - }, - "end": { - "line": 1, - "column": 13 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 14, - "end": 20, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 27, - "end": 31, - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 17 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "https", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 18 - }, - "end": { - "line": 2, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39, - "end": 40, - "loc": { - "start": { - "line": 2, - "column": 25 - }, - "end": { - "line": 2, - "column": 26 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 41, - "end": 47, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 48, - "end": 49, - "loc": { - "start": { - "line": 3, - "column": 7 - }, - "end": { - "line": 3, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 67, - "end": 68, - "loc": { - "start": { - "line": 4, - "column": 17 - }, - "end": { - "line": 4, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 71, - "end": 83, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 14 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 83, - "end": 84, - "loc": { - "start": { - "line": 5, - "column": 14 - }, - "end": { - "line": 5, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 87, - "end": 106, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 106, - "end": 107, - "loc": { - "start": { - "line": 6, - "column": 21 - }, - "end": { - "line": 6, - "column": 22 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 108, - "end": 109, - "loc": { - "start": { - "line": 7, - "column": 0 - }, - "end": { - "line": 7, - "column": 1 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 110, - "end": 114, - "loc": { - "start": { - "line": 7, - "column": 2 - }, - "end": { - "line": 7, - "column": 6 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "../common", - "start": 115, - "end": 126, - "loc": { - "start": { - "line": 7, - "column": 7 - }, - "end": { - "line": 7, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 126, - "end": 127, - "loc": { - "start": { - "line": 7, - "column": 18 - }, - "end": { - "line": 7, - "column": 19 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 128, - "end": 134, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 8, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documentGroup", - "start": 135, - "end": 148, - "loc": { - "start": { - "line": 8, - "column": 7 - }, - "end": { - "line": 8, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 149, - "end": 153, - "loc": { - "start": { - "line": 8, - "column": 21 - }, - "end": { - "line": 8, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "../document-group", - "start": 154, - "end": 173, - "loc": { - "start": { - "line": 8, - "column": 26 - }, - "end": { - "line": 8, - "column": 45 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 173, - "end": 174, - "loc": { - "start": { - "line": 8, - "column": 45 - }, - "end": { - "line": 8, - "column": 46 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 175, - "end": 180, - "loc": { - "start": { - "line": 9, - "column": 0 - }, - "end": { - "line": 9, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "createDocumentGroup", - "start": 181, - "end": 200, - "loc": { - "start": { - "line": 9, - "column": 6 - }, - "end": { - "line": 9, - "column": 25 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 201, - "end": 202, - "loc": { - "start": { - "line": 9, - "column": 26 - }, - "end": { - "line": 9, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documentGroup", - "start": 203, - "end": 216, - "loc": { - "start": { - "line": 9, - "column": 28 - }, - "end": { - "line": 9, - "column": 41 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 216, - "end": 217, - "loc": { - "start": { - "line": 9, - "column": 41 - }, - "end": { - "line": 9, - "column": 42 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "create", - "start": 217, - "end": 223, - "loc": { - "start": { - "line": 9, - "column": 42 - }, - "end": { - "line": 9, - "column": 48 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 223, - "end": 224, - "loc": { - "start": { - "line": 9, - "column": 48 - }, - "end": { - "line": 9, - "column": 49 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 225, - "end": 230, - "loc": { - "start": { - "line": 10, - "column": 0 - }, - "end": { - "line": 10, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "inviteDocumentGroup", - "start": 231, - "end": 250, - "loc": { - "start": { - "line": 10, - "column": 6 - }, - "end": { - "line": 10, - "column": 25 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 251, - "end": 252, - "loc": { - "start": { - "line": 10, - "column": 26 - }, - "end": { - "line": 10, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documentGroup", - "start": 253, - "end": 266, - "loc": { - "start": { - "line": 10, - "column": 28 - }, - "end": { - "line": 10, - "column": 41 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 266, - "end": 267, - "loc": { - "start": { - "line": 10, - "column": 41 - }, - "end": { - "line": 10, - "column": 42 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "invite", - "start": 267, - "end": 273, - "loc": { - "start": { - "line": 10, - "column": 42 - }, - "end": { - "line": 10, - "column": 48 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 273, - "end": 274, - "loc": { - "start": { - "line": 10, - "column": 48 - }, - "end": { - "line": 10, - "column": 49 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 275, - "end": 280, - "loc": { - "start": { - "line": 11, - "column": 0 - }, - "end": { - "line": 11, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "viewDocumentGroup", - "start": 281, - "end": 298, - "loc": { - "start": { - "line": 11, - "column": 6 - }, - "end": { - "line": 11, - "column": 23 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 299, - "end": 300, - "loc": { - "start": { - "line": 11, - "column": 24 - }, - "end": { - "line": 11, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documentGroup", - "start": 301, - "end": 314, - "loc": { - "start": { - "line": 11, - "column": 26 - }, - "end": { - "line": 11, - "column": 39 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 314, - "end": 315, - "loc": { - "start": { - "line": 11, - "column": 39 - }, - "end": { - "line": 11, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "view", - "start": 315, - "end": 319, - "loc": { - "start": { - "line": 11, - "column": 40 - }, - "end": { - "line": 11, - "column": 44 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 319, - "end": 320, - "loc": { - "start": { - "line": 11, - "column": 44 - }, - "end": { - "line": 11, - "column": 45 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group Template methods\n ", - "start": 322, - "end": 364, - "loc": { - "start": { - "line": 13, - "column": 0 - }, - "end": { - "line": 15, - "column": 3 - } - } - }, - { - "type": { - "label": "class", - "keyword": "class", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "class", - "start": 365, - "end": 370, - "loc": { - "start": { - "line": 16, - "column": 0 - }, - "end": { - "line": 16, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "DocumentGroupTemplate", - "start": 371, - "end": 392, - "loc": { - "start": { - "line": 16, - "column": 6 - }, - "end": { - "line": 16, - "column": 27 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 393, - "end": 394, - "loc": { - "start": { - "line": 16, - "column": 28 - }, - "end": { - "line": 16, - "column": 29 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group Template invite email congfigurations\n * @typedef {Object} DocumentGroupTemplateInviteEmail\n * @property {string} [email] - signer's email\n * @property {string} [subject] - subject of invitation email\n * @property {string} [message] - content of invitation email\n * @property {number} [expiration_days] - expiration of invite in days\n * @property {number} [reminder] - number of days in which to remind about invite via email\n * @property {boolean} [hasSignActions] - does signer need to sign documents of document group\n ", - "start": 398, - "end": 962, - "loc": { - "start": { - "line": 18, - "column": 2 - }, - "end": { - "line": 27, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group Template invite action congfigurations\n * @typedef {Object} DocumentGroupTemplateInviteAction\n * @property {string} [email] - signer's email\n * @property {string} [role_name] - signer's role name\n * @property {string} [action] - name of action with document in signing step\n * @property {string} [document_id] - ID of document in specific signing step\n * @property {string} [document_name] - name of document in specific signing step\n * @property {string} [allow_reassign] - allow reassigning of signer\n * @property {string} decline_by_signature - signer can decline invite\n ", - "start": 966, - "end": 1585, - "loc": { - "start": { - "line": 29, - "column": 2 - }, - "end": { - "line": 39, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group Template invite step congfigurations\n * @typedef {Object} DocumentGroupTemplateInviteStep\n * @property {number} [order] - an order number of invitation step\n * @property {DocumentGroupTemplateInviteEmail[]} [invite_emails] - Document Group Template invite emails settings\n * @property {DocumentGroupTemplateInviteAction[]} invite_actions - Document Group Template invite actions settings\n ", - "start": 1589, - "end": 2014, - "loc": { - "start": { - "line": 41, - "column": 2 - }, - "end": { - "line": 47, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group Template invite congfigurations\n * @typedef {Object} DocumentGroupTemplateRoutingDetails\n * @property {DocumentGroupTemplateInviteStep[]} invite_steps - Document Group Template invite steps settings\n * @property {number} [include_email_attachments]\n ", - "start": 2018, - "end": 2302, - "loc": { - "start": { - "line": 49, - "column": 2 - }, - "end": { - "line": 54, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create Document Group Template payload\n * @typedef {Object} DocumentGroupTemplateCreateParams\n * @property {string} token - your auth token\n * @property {string[]} template_ids - array of template ids for Document Group Template creation\n * @property {string} template_group_name - new name of document group\n * @property {DocumentGroupTemplateRoutingDetails} routing_details - invite congfigurations\n ", - "start": 2306, - "end": 2731, - "loc": { - "start": { - "line": 56, - "column": 2 - }, - "end": { - "line": 63, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create Document Group Template response data\n * @typedef {Object} DocumentGroupTemplateCreateResponse\n * @property {string} id - Document Group Template unique id\n ", - "start": 2735, - "end": 2916, - "loc": { - "start": { - "line": 65, - "column": 2 - }, - "end": { - "line": 69, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates Document Group Template with specified templates and settings\n * @param {DocumentGroupTemplateCreateParams} data - create Document Group Template payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupTemplateCreateResponse)} [callback] - error first node.js callback\n ", - "start": 2920, - "end": 3228, - "loc": { - "start": { - "line": 71, - "column": 2 - }, - "end": { - "line": 75, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 3231, - "end": 3237, - "loc": { - "start": { - "line": 76, - "column": 2 - }, - "end": { - "line": 76, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "create", - "start": 3238, - "end": 3244, - "loc": { - "start": { - "line": 76, - "column": 9 - }, - "end": { - "line": 76, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3245, - "end": 3246, - "loc": { - "start": { - "line": 76, - "column": 16 - }, - "end": { - "line": 76, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3246, - "end": 3247, - "loc": { - "start": { - "line": 76, - "column": 17 - }, - "end": { - "line": 76, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 3252, - "end": 3257, - "loc": { - "start": { - "line": 77, - "column": 4 - }, - "end": { - "line": 77, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3257, - "end": 3258, - "loc": { - "start": { - "line": 77, - "column": 9 - }, - "end": { - "line": 77, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "template_ids", - "start": 3263, - "end": 3275, - "loc": { - "start": { - "line": 78, - "column": 4 - }, - "end": { - "line": 78, - "column": 16 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3275, - "end": 3276, - "loc": { - "start": { - "line": 78, - "column": 16 - }, - "end": { - "line": 78, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "template_group_name", - "start": 3281, - "end": 3300, - "loc": { - "start": { - "line": 79, - "column": 4 - }, - "end": { - "line": 79, - "column": 23 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3300, - "end": 3301, - "loc": { - "start": { - "line": 79, - "column": 23 - }, - "end": { - "line": 79, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "routing_details", - "start": 3306, - "end": 3321, - "loc": { - "start": { - "line": 80, - "column": 4 - }, - "end": { - "line": 80, - "column": 19 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3321, - "end": 3322, - "loc": { - "start": { - "line": 80, - "column": 19 - }, - "end": { - "line": 80, - "column": 20 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3325, - "end": 3326, - "loc": { - "start": { - "line": 81, - "column": 2 - }, - "end": { - "line": 81, - "column": 3 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3326, - "end": 3327, - "loc": { - "start": { - "line": 81, - "column": 3 - }, - "end": { - "line": 81, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 3328, - "end": 3336, - "loc": { - "start": { - "line": 81, - "column": 5 - }, - "end": { - "line": 81, - "column": 13 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3336, - "end": 3337, - "loc": { - "start": { - "line": 81, - "column": 13 - }, - "end": { - "line": 81, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3338, - "end": 3339, - "loc": { - "start": { - "line": 81, - "column": 15 - }, - "end": { - "line": 81, - "column": 16 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 3344, - "end": 3349, - "loc": { - "start": { - "line": 82, - "column": 4 - }, - "end": { - "line": 82, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 3350, - "end": 3358, - "loc": { - "start": { - "line": 82, - "column": 10 - }, - "end": { - "line": 82, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 3359, - "end": 3360, - "loc": { - "start": { - "line": 82, - "column": 19 - }, - "end": { - "line": 82, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSON", - "start": 3361, - "end": 3365, - "loc": { - "start": { - "line": 82, - "column": 21 - }, - "end": { - "line": 82, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3365, - "end": 3366, - "loc": { - "start": { - "line": 82, - "column": 25 - }, - "end": { - "line": 82, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "stringify", - "start": 3366, - "end": 3375, - "loc": { - "start": { - "line": 82, - "column": 26 - }, - "end": { - "line": 82, - "column": 35 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3375, - "end": 3376, - "loc": { - "start": { - "line": 82, - "column": 35 - }, - "end": { - "line": 82, - "column": 36 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3376, - "end": 3377, - "loc": { - "start": { - "line": 82, - "column": 36 - }, - "end": { - "line": 82, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "template_ids", - "start": 3384, - "end": 3396, - "loc": { - "start": { - "line": 83, - "column": 6 - }, - "end": { - "line": 83, - "column": 18 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3396, - "end": 3397, - "loc": { - "start": { - "line": 83, - "column": 18 - }, - "end": { - "line": 83, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "template_group_name", - "start": 3404, - "end": 3423, - "loc": { - "start": { - "line": 84, - "column": 6 - }, - "end": { - "line": 84, - "column": 25 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3423, - "end": 3424, - "loc": { - "start": { - "line": 84, - "column": 25 - }, - "end": { - "line": 84, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "routing_details", - "start": 3431, - "end": 3446, - "loc": { - "start": { - "line": 85, - "column": 6 - }, - "end": { - "line": 85, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3446, - "end": 3447, - "loc": { - "start": { - "line": 85, - "column": 21 - }, - "end": { - "line": 85, - "column": 22 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3452, - "end": 3453, - "loc": { - "start": { - "line": 86, - "column": 4 - }, - "end": { - "line": 86, - "column": 5 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3453, - "end": 3454, - "loc": { - "start": { - "line": 86, - "column": 5 - }, - "end": { - "line": 86, - "column": 6 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3454, - "end": 3455, - "loc": { - "start": { - "line": 86, - "column": 6 - }, - "end": { - "line": 86, - "column": 7 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 3460, - "end": 3465, - "loc": { - "start": { - "line": 87, - "column": 4 - }, - "end": { - "line": 87, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 3466, - "end": 3469, - "loc": { - "start": { - "line": 87, - "column": 10 - }, - "end": { - "line": 87, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 3470, - "end": 3471, - "loc": { - "start": { - "line": 87, - "column": 14 - }, - "end": { - "line": 87, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 3472, - "end": 3477, - "loc": { - "start": { - "line": 87, - "column": 16 - }, - "end": { - "line": 87, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3484, - "end": 3485, - "loc": { - "start": { - "line": 88, - "column": 6 - }, - "end": { - "line": 88, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 3485, - "end": 3492, - "loc": { - "start": { - "line": 88, - "column": 7 - }, - "end": { - "line": 88, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3492, - "end": 3493, - "loc": { - "start": { - "line": 88, - "column": 14 - }, - "end": { - "line": 88, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 3493, - "end": 3512, - "loc": { - "start": { - "line": 88, - "column": 15 - }, - "end": { - "line": 88, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3512, - "end": 3513, - "loc": { - "start": { - "line": 88, - "column": 34 - }, - "end": { - "line": 88, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3513, - "end": 3514, - "loc": { - "start": { - "line": 88, - "column": 35 - }, - "end": { - "line": 88, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 3523, - "end": 3529, - "loc": { - "start": { - "line": 89, - "column": 8 - }, - "end": { - "line": 89, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3529, - "end": 3530, - "loc": { - "start": { - "line": 89, - "column": 14 - }, - "end": { - "line": 89, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "POST", - "start": 3531, - "end": 3537, - "loc": { - "start": { - "line": 89, - "column": 16 - }, - "end": { - "line": 89, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3537, - "end": 3538, - "loc": { - "start": { - "line": 89, - "column": 22 - }, - "end": { - "line": 89, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 3547, - "end": 3551, - "loc": { - "start": { - "line": 90, - "column": 8 - }, - "end": { - "line": 90, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3551, - "end": 3552, - "loc": { - "start": { - "line": 90, - "column": 12 - }, - "end": { - "line": 90, - "column": 13 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/documentgroup/template", - "start": 3553, - "end": 3578, - "loc": { - "start": { - "line": 90, - "column": 14 - }, - "end": { - "line": 90, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3578, - "end": 3579, - "loc": { - "start": { - "line": 90, - "column": 39 - }, - "end": { - "line": 90, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 3588, - "end": 3601, - "loc": { - "start": { - "line": 91, - "column": 8 - }, - "end": { - "line": 91, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3601, - "end": 3602, - "loc": { - "start": { - "line": 91, - "column": 21 - }, - "end": { - "line": 91, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3603, - "end": 3604, - "loc": { - "start": { - "line": 91, - "column": 23 - }, - "end": { - "line": 91, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 3615, - "end": 3619, - "loc": { - "start": { - "line": 92, - "column": 10 - }, - "end": { - "line": 92, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3619, - "end": 3620, - "loc": { - "start": { - "line": 92, - "column": 14 - }, - "end": { - "line": 92, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 3621, - "end": 3629, - "loc": { - "start": { - "line": 92, - "column": 16 - }, - "end": { - "line": 92, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3629, - "end": 3630, - "loc": { - "start": { - "line": 92, - "column": 24 - }, - "end": { - "line": 92, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 3641, - "end": 3646, - "loc": { - "start": { - "line": 93, - "column": 10 - }, - "end": { - "line": 93, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3646, - "end": 3647, - "loc": { - "start": { - "line": 93, - "column": 15 - }, - "end": { - "line": 93, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3656, - "end": 3657, - "loc": { - "start": { - "line": 94, - "column": 8 - }, - "end": { - "line": 94, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3657, - "end": 3658, - "loc": { - "start": { - "line": 94, - "column": 9 - }, - "end": { - "line": 94, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 3667, - "end": 3674, - "loc": { - "start": { - "line": 95, - "column": 8 - }, - "end": { - "line": 95, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3674, - "end": 3675, - "loc": { - "start": { - "line": 95, - "column": 15 - }, - "end": { - "line": 95, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3676, - "end": 3677, - "loc": { - "start": { - "line": 95, - "column": 17 - }, - "end": { - "line": 95, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type", - "start": 3688, - "end": 3702, - "loc": { - "start": { - "line": 96, - "column": 10 - }, - "end": { - "line": 96, - "column": 24 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3702, - "end": 3703, - "loc": { - "start": { - "line": 96, - "column": 24 - }, - "end": { - "line": 96, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/json", - "start": 3704, - "end": 3722, - "loc": { - "start": { - "line": 96, - "column": 26 - }, - "end": { - "line": 96, - "column": 44 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3722, - "end": 3723, - "loc": { - "start": { - "line": 96, - "column": 44 - }, - "end": { - "line": 96, - "column": 45 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Length", - "start": 3734, - "end": 3750, - "loc": { - "start": { - "line": 97, - "column": 10 - }, - "end": { - "line": 97, - "column": 26 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3750, - "end": 3751, - "loc": { - "start": { - "line": 97, - "column": 26 - }, - "end": { - "line": 97, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 3752, - "end": 3758, - "loc": { - "start": { - "line": 97, - "column": 28 - }, - "end": { - "line": 97, - "column": 34 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3758, - "end": 3759, - "loc": { - "start": { - "line": 97, - "column": 34 - }, - "end": { - "line": 97, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "byteLength", - "start": 3759, - "end": 3769, - "loc": { - "start": { - "line": 97, - "column": 35 - }, - "end": { - "line": 97, - "column": 45 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3769, - "end": 3770, - "loc": { - "start": { - "line": 97, - "column": 45 - }, - "end": { - "line": 97, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 3770, - "end": 3778, - "loc": { - "start": { - "line": 97, - "column": 46 - }, - "end": { - "line": 97, - "column": 54 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3778, - "end": 3779, - "loc": { - "start": { - "line": 97, - "column": 54 - }, - "end": { - "line": 97, - "column": 55 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3779, - "end": 3780, - "loc": { - "start": { - "line": 97, - "column": 55 - }, - "end": { - "line": 97, - "column": 56 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3789, - "end": 3790, - "loc": { - "start": { - "line": 98, - "column": 8 - }, - "end": { - "line": 98, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3790, - "end": 3791, - "loc": { - "start": { - "line": 98, - "column": 9 - }, - "end": { - "line": 98, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3798, - "end": 3799, - "loc": { - "start": { - "line": 99, - "column": 6 - }, - "end": { - "line": 99, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3799, - "end": 3800, - "loc": { - "start": { - "line": 99, - "column": 7 - }, - "end": { - "line": 99, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3800, - "end": 3801, - "loc": { - "start": { - "line": 99, - "column": 8 - }, - "end": { - "line": 99, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 3802, - "end": 3817, - "loc": { - "start": { - "line": 99, - "column": 10 - }, - "end": { - "line": 99, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3817, - "end": 3818, - "loc": { - "start": { - "line": 99, - "column": 25 - }, - "end": { - "line": 99, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 3818, - "end": 3826, - "loc": { - "start": { - "line": 99, - "column": 26 - }, - "end": { - "line": 99, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3826, - "end": 3827, - "loc": { - "start": { - "line": 99, - "column": 34 - }, - "end": { - "line": 99, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3827, - "end": 3828, - "loc": { - "start": { - "line": 99, - "column": 35 - }, - "end": { - "line": 99, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3835, - "end": 3836, - "loc": { - "start": { - "line": 100, - "column": 6 - }, - "end": { - "line": 100, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 3836, - "end": 3838, - "loc": { - "start": { - "line": 100, - "column": 7 - }, - "end": { - "line": 100, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3838, - "end": 3839, - "loc": { - "start": { - "line": 100, - "column": 9 - }, - "end": { - "line": 100, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 3839, - "end": 3846, - "loc": { - "start": { - "line": 100, - "column": 10 - }, - "end": { - "line": 100, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3846, - "end": 3847, - "loc": { - "start": { - "line": 100, - "column": 17 - }, - "end": { - "line": 100, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 3848, - "end": 3860, - "loc": { - "start": { - "line": 100, - "column": 19 - }, - "end": { - "line": 100, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3860, - "end": 3861, - "loc": { - "start": { - "line": 100, - "column": 31 - }, - "end": { - "line": 100, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 3861, - "end": 3869, - "loc": { - "start": { - "line": 100, - "column": 32 - }, - "end": { - "line": 100, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3869, - "end": 3870, - "loc": { - "start": { - "line": 100, - "column": 40 - }, - "end": { - "line": 100, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3870, - "end": 3871, - "loc": { - "start": { - "line": 100, - "column": 41 - }, - "end": { - "line": 100, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3871, - "end": 3872, - "loc": { - "start": { - "line": 100, - "column": 42 - }, - "end": { - "line": 100, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 3878, - "end": 3881, - "loc": { - "start": { - "line": 102, - "column": 4 - }, - "end": { - "line": 102, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3881, - "end": 3882, - "loc": { - "start": { - "line": 102, - "column": 7 - }, - "end": { - "line": 102, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "write", - "start": 3882, - "end": 3887, - "loc": { - "start": { - "line": 102, - "column": 8 - }, - "end": { - "line": 102, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3887, - "end": 3888, - "loc": { - "start": { - "line": 102, - "column": 13 - }, - "end": { - "line": 102, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 3888, - "end": 3896, - "loc": { - "start": { - "line": 102, - "column": 14 - }, - "end": { - "line": 102, - "column": 22 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3896, - "end": 3897, - "loc": { - "start": { - "line": 102, - "column": 22 - }, - "end": { - "line": 102, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3897, - "end": 3898, - "loc": { - "start": { - "line": 102, - "column": 23 - }, - "end": { - "line": 102, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 3903, - "end": 3906, - "loc": { - "start": { - "line": 103, - "column": 4 - }, - "end": { - "line": 103, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3906, - "end": 3907, - "loc": { - "start": { - "line": 103, - "column": 7 - }, - "end": { - "line": 103, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 3907, - "end": 3910, - "loc": { - "start": { - "line": 103, - "column": 8 - }, - "end": { - "line": 103, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3910, - "end": 3911, - "loc": { - "start": { - "line": 103, - "column": 11 - }, - "end": { - "line": 103, - "column": 12 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3911, - "end": 3912, - "loc": { - "start": { - "line": 103, - "column": 12 - }, - "end": { - "line": 103, - "column": 13 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3912, - "end": 3913, - "loc": { - "start": { - "line": 103, - "column": 13 - }, - "end": { - "line": 103, - "column": 14 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3916, - "end": 3917, - "loc": { - "start": { - "line": 104, - "column": 2 - }, - "end": { - "line": 104, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group Template view payload\n * @typedef {Object} DocumentGroupTemplateViewParams\n * @property {string} id - id of specific Document Group Template\n * @property {string} token - your auth token\n ", - "start": 3921, - "end": 4143, - "loc": { - "start": { - "line": 106, - "column": 2 - }, - "end": { - "line": 111, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Details of single template in group\n * @typedef {Object} DocumentGroupTemplateItem\n * @property {string} id - id of template\n * @property {string} template_name - name of template\n * @property {string} owner_email - template owner email\n * @property {?number} readable\n * @property {DocumentThumbnails} thumbnail - thumbnail urls with different sizes (small, medium, large)\n * @property {string[]} roles - list of template signer roles\n ", - "start": 4147, - "end": 4611, - "loc": { - "start": { - "line": 113, - "column": 2 - }, - "end": { - "line": 122, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group Template view response\n * @typedef {Object} DocumentGroupTemplateViewResponse\n * @property {string} id - id of Document Group Template\n * @property {string} group_name - name of Document Group Template\n * @property {string} document_group_template_owner_email - Document Group Template owner email\n * @property {number} shared - is Document Group Template shared or not (values: 0 or 1)\n * @property {?string} shared_team_id - id of team which Document Group Template is shared with\n * @property {DocumentGroupTemplateItem[]} templates - each single template details\n * @property {DocumentGroupTemplateRoutingDetails} routing_details - signing steps configuration\n * @property {Object[]} originator_organization_settings - originator organization settings\n ", - "start": 4615, - "end": 5418, - "loc": { - "start": { - "line": 124, - "column": 2 - }, - "end": { - "line": 135, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves a Document Group Template detailed data\n * @param {DocumentGroupTemplateViewParams} data - view Document Group Template details payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupTemplateViewResponse)} [callback] - error first node.js callback\n ", - "start": 5422, - "end": 5712, - "loc": { - "start": { - "line": 137, - "column": 2 - }, - "end": { - "line": 141, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 5715, - "end": 5721, - "loc": { - "start": { - "line": 142, - "column": 2 - }, - "end": { - "line": 142, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "view", - "start": 5722, - "end": 5726, - "loc": { - "start": { - "line": 142, - "column": 9 - }, - "end": { - "line": 142, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5727, - "end": 5728, - "loc": { - "start": { - "line": 142, - "column": 14 - }, - "end": { - "line": 142, - "column": 15 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5728, - "end": 5729, - "loc": { - "start": { - "line": 142, - "column": 15 - }, - "end": { - "line": 142, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 5730, - "end": 5732, - "loc": { - "start": { - "line": 142, - "column": 17 - }, - "end": { - "line": 142, - "column": 19 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5732, - "end": 5733, - "loc": { - "start": { - "line": 142, - "column": 19 - }, - "end": { - "line": 142, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 5734, - "end": 5739, - "loc": { - "start": { - "line": 142, - "column": 21 - }, - "end": { - "line": 142, - "column": 26 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5740, - "end": 5741, - "loc": { - "start": { - "line": 142, - "column": 27 - }, - "end": { - "line": 142, - "column": 28 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5741, - "end": 5742, - "loc": { - "start": { - "line": 142, - "column": 28 - }, - "end": { - "line": 142, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 5743, - "end": 5751, - "loc": { - "start": { - "line": 142, - "column": 30 - }, - "end": { - "line": 142, - "column": 38 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5751, - "end": 5752, - "loc": { - "start": { - "line": 142, - "column": 38 - }, - "end": { - "line": 142, - "column": 39 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5753, - "end": 5754, - "loc": { - "start": { - "line": 142, - "column": 40 - }, - "end": { - "line": 142, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 5759, - "end": 5764, - "loc": { - "start": { - "line": 143, - "column": 4 - }, - "end": { - "line": 143, - "column": 9 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5771, - "end": 5772, - "loc": { - "start": { - "line": 144, - "column": 6 - }, - "end": { - "line": 144, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 5772, - "end": 5779, - "loc": { - "start": { - "line": 144, - "column": 7 - }, - "end": { - "line": 144, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5779, - "end": 5780, - "loc": { - "start": { - "line": 144, - "column": 14 - }, - "end": { - "line": 144, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 5780, - "end": 5799, - "loc": { - "start": { - "line": 144, - "column": 15 - }, - "end": { - "line": 144, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5799, - "end": 5800, - "loc": { - "start": { - "line": 144, - "column": 34 - }, - "end": { - "line": 144, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5800, - "end": 5801, - "loc": { - "start": { - "line": 144, - "column": 35 - }, - "end": { - "line": 144, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 5810, - "end": 5816, - "loc": { - "start": { - "line": 145, - "column": 8 - }, - "end": { - "line": 145, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5816, - "end": 5817, - "loc": { - "start": { - "line": 145, - "column": 14 - }, - "end": { - "line": 145, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "GET", - "start": 5818, - "end": 5823, - "loc": { - "start": { - "line": 145, - "column": 16 - }, - "end": { - "line": 145, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5823, - "end": 5824, - "loc": { - "start": { - "line": 145, - "column": 21 - }, - "end": { - "line": 145, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 5833, - "end": 5837, - "loc": { - "start": { - "line": 146, - "column": 8 - }, - "end": { - "line": 146, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5837, - "end": 5838, - "loc": { - "start": { - "line": 146, - "column": 12 - }, - "end": { - "line": 146, - "column": 13 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5839, - "end": 5840, - "loc": { - "start": { - "line": 146, - "column": 14 - }, - "end": { - "line": 146, - "column": 15 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/documentgroup/template/", - "start": 5840, - "end": 5864, - "loc": { - "start": { - "line": 146, - "column": 15 - }, - "end": { - "line": 146, - "column": 39 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5864, - "end": 5866, - "loc": { - "start": { - "line": 146, - "column": 39 - }, - "end": { - "line": 146, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 5866, - "end": 5868, - "loc": { - "start": { - "line": 146, - "column": 41 - }, - "end": { - "line": 146, - "column": 43 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5868, - "end": 5869, - "loc": { - "start": { - "line": 146, - "column": 43 - }, - "end": { - "line": 146, - "column": 44 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 5869, - "end": 5869, - "loc": { - "start": { - "line": 146, - "column": 44 - }, - "end": { - "line": 146, - "column": 44 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5869, - "end": 5870, - "loc": { - "start": { - "line": 146, - "column": 44 - }, - "end": { - "line": 146, - "column": 45 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5870, - "end": 5871, - "loc": { - "start": { - "line": 146, - "column": 45 - }, - "end": { - "line": 146, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 5880, - "end": 5893, - "loc": { - "start": { - "line": 147, - "column": 8 - }, - "end": { - "line": 147, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5893, - "end": 5894, - "loc": { - "start": { - "line": 147, - "column": 21 - }, - "end": { - "line": 147, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5895, - "end": 5896, - "loc": { - "start": { - "line": 147, - "column": 23 - }, - "end": { - "line": 147, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 5907, - "end": 5911, - "loc": { - "start": { - "line": 148, - "column": 10 - }, - "end": { - "line": 148, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5911, - "end": 5912, - "loc": { - "start": { - "line": 148, - "column": 14 - }, - "end": { - "line": 148, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 5913, - "end": 5921, - "loc": { - "start": { - "line": 148, - "column": 16 - }, - "end": { - "line": 148, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5921, - "end": 5922, - "loc": { - "start": { - "line": 148, - "column": 24 - }, - "end": { - "line": 148, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 5933, - "end": 5938, - "loc": { - "start": { - "line": 149, - "column": 10 - }, - "end": { - "line": 149, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5938, - "end": 5939, - "loc": { - "start": { - "line": 149, - "column": 15 - }, - "end": { - "line": 149, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5948, - "end": 5949, - "loc": { - "start": { - "line": 150, - "column": 8 - }, - "end": { - "line": 150, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5949, - "end": 5950, - "loc": { - "start": { - "line": 150, - "column": 9 - }, - "end": { - "line": 150, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5957, - "end": 5958, - "loc": { - "start": { - "line": 151, - "column": 6 - }, - "end": { - "line": 151, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5958, - "end": 5959, - "loc": { - "start": { - "line": 151, - "column": 7 - }, - "end": { - "line": 151, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5959, - "end": 5960, - "loc": { - "start": { - "line": 151, - "column": 8 - }, - "end": { - "line": 151, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 5961, - "end": 5976, - "loc": { - "start": { - "line": 151, - "column": 10 - }, - "end": { - "line": 151, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5976, - "end": 5977, - "loc": { - "start": { - "line": 151, - "column": 25 - }, - "end": { - "line": 151, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 5977, - "end": 5985, - "loc": { - "start": { - "line": 151, - "column": 26 - }, - "end": { - "line": 151, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5985, - "end": 5986, - "loc": { - "start": { - "line": 151, - "column": 34 - }, - "end": { - "line": 151, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5986, - "end": 5987, - "loc": { - "start": { - "line": 151, - "column": 35 - }, - "end": { - "line": 151, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5994, - "end": 5995, - "loc": { - "start": { - "line": 152, - "column": 6 - }, - "end": { - "line": 152, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 5995, - "end": 5997, - "loc": { - "start": { - "line": 152, - "column": 7 - }, - "end": { - "line": 152, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5997, - "end": 5998, - "loc": { - "start": { - "line": 152, - "column": 9 - }, - "end": { - "line": 152, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 5998, - "end": 6005, - "loc": { - "start": { - "line": 152, - "column": 10 - }, - "end": { - "line": 152, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6005, - "end": 6006, - "loc": { - "start": { - "line": 152, - "column": 17 - }, - "end": { - "line": 152, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 6007, - "end": 6019, - "loc": { - "start": { - "line": 152, - "column": 19 - }, - "end": { - "line": 152, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6019, - "end": 6020, - "loc": { - "start": { - "line": 152, - "column": 31 - }, - "end": { - "line": 152, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 6020, - "end": 6028, - "loc": { - "start": { - "line": 152, - "column": 32 - }, - "end": { - "line": 152, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6028, - "end": 6029, - "loc": { - "start": { - "line": 152, - "column": 40 - }, - "end": { - "line": 152, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6029, - "end": 6030, - "loc": { - "start": { - "line": 152, - "column": 41 - }, - "end": { - "line": 152, - "column": 42 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6037, - "end": 6038, - "loc": { - "start": { - "line": 153, - "column": 6 - }, - "end": { - "line": 153, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 6038, - "end": 6041, - "loc": { - "start": { - "line": 153, - "column": 7 - }, - "end": { - "line": 153, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6041, - "end": 6042, - "loc": { - "start": { - "line": 153, - "column": 10 - }, - "end": { - "line": 153, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6042, - "end": 6043, - "loc": { - "start": { - "line": 153, - "column": 11 - }, - "end": { - "line": 153, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6043, - "end": 6044, - "loc": { - "start": { - "line": 153, - "column": 12 - }, - "end": { - "line": 153, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6047, - "end": 6048, - "loc": { - "start": { - "line": 154, - "column": 2 - }, - "end": { - "line": 154, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create Document Group Template invite payload\n * @typedef {Object} DocumentGroupTemplateInviteParams\n * @property {string} id - ID of specific Document Group Template\n * @property {DocumentGroupInviteSettings} [data] - Document Group Template invite settings data\n * @property {string} token - your auth token\n ", - "start": 6052, - "end": 6384, - "loc": { - "start": { - "line": 156, - "column": 2 - }, - "end": { - "line": 162, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create Document Group Template invite response data\n * @typedef {DocumentGroupInviteResponse} DocumentGroupTemplateInviteResponse\n * @property {string} id - an ID of created invite\n * @property {?string} pending_invite_link - pending invite link\n ", - "start": 6388, - "end": 6654, - "loc": { - "start": { - "line": 164, - "column": 2 - }, - "end": { - "line": 169, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates an invite to sign a Document Group Template\n * @param {DocumentGroupTemplateInviteParams} data - create Document Group Template invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupTemplateInviteResponse)} [callback] - error first node.js callback\n ", - "start": 6658, - "end": 6955, - "loc": { - "start": { - "line": 171, - "column": 2 - }, - "end": { - "line": 175, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 6958, - "end": 6964, - "loc": { - "start": { - "line": 176, - "column": 2 - }, - "end": { - "line": 176, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "invite", - "start": 6965, - "end": 6971, - "loc": { - "start": { - "line": 176, - "column": 9 - }, - "end": { - "line": 176, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6972, - "end": 6973, - "loc": { - "start": { - "line": 176, - "column": 16 - }, - "end": { - "line": 176, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6973, - "end": 6974, - "loc": { - "start": { - "line": 176, - "column": 17 - }, - "end": { - "line": 176, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 6979, - "end": 6981, - "loc": { - "start": { - "line": 177, - "column": 4 - }, - "end": { - "line": 177, - "column": 6 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6981, - "end": 6982, - "loc": { - "start": { - "line": 177, - "column": 6 - }, - "end": { - "line": 177, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 6987, - "end": 6991, - "loc": { - "start": { - "line": 178, - "column": 4 - }, - "end": { - "line": 178, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6991, - "end": 6992, - "loc": { - "start": { - "line": 178, - "column": 8 - }, - "end": { - "line": 178, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 6997, - "end": 7002, - "loc": { - "start": { - "line": 179, - "column": 4 - }, - "end": { - "line": 179, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7002, - "end": 7003, - "loc": { - "start": { - "line": 179, - "column": 9 - }, - "end": { - "line": 179, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7006, - "end": 7007, - "loc": { - "start": { - "line": 180, - "column": 2 - }, - "end": { - "line": 180, - "column": 3 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7007, - "end": 7008, - "loc": { - "start": { - "line": 180, - "column": 3 - }, - "end": { - "line": 180, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 7009, - "end": 7017, - "loc": { - "start": { - "line": 180, - "column": 5 - }, - "end": { - "line": 180, - "column": 13 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7017, - "end": 7018, - "loc": { - "start": { - "line": 180, - "column": 13 - }, - "end": { - "line": 180, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7019, - "end": 7020, - "loc": { - "start": { - "line": 180, - "column": 15 - }, - "end": { - "line": 180, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "DocumentGroupTemplate", - "start": 7025, - "end": 7046, - "loc": { - "start": { - "line": 181, - "column": 4 - }, - "end": { - "line": 181, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7046, - "end": 7047, - "loc": { - "start": { - "line": 181, - "column": 25 - }, - "end": { - "line": 181, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "view", - "start": 7047, - "end": 7051, - "loc": { - "start": { - "line": 181, - "column": 26 - }, - "end": { - "line": 181, - "column": 30 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7051, - "end": 7052, - "loc": { - "start": { - "line": 181, - "column": 30 - }, - "end": { - "line": 181, - "column": 31 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7052, - "end": 7053, - "loc": { - "start": { - "line": 181, - "column": 31 - }, - "end": { - "line": 181, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 7060, - "end": 7062, - "loc": { - "start": { - "line": 182, - "column": 6 - }, - "end": { - "line": 182, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7062, - "end": 7063, - "loc": { - "start": { - "line": 182, - "column": 8 - }, - "end": { - "line": 182, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 7070, - "end": 7075, - "loc": { - "start": { - "line": 183, - "column": 6 - }, - "end": { - "line": 183, - "column": 11 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7075, - "end": 7076, - "loc": { - "start": { - "line": 183, - "column": 11 - }, - "end": { - "line": 183, - "column": 12 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7081, - "end": 7082, - "loc": { - "start": { - "line": 184, - "column": 4 - }, - "end": { - "line": 184, - "column": 5 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7082, - "end": 7083, - "loc": { - "start": { - "line": 184, - "column": 5 - }, - "end": { - "line": 184, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7084, - "end": 7085, - "loc": { - "start": { - "line": 184, - "column": 7 - }, - "end": { - "line": 184, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "viewDocGrTplErr", - "start": 7085, - "end": 7100, - "loc": { - "start": { - "line": 184, - "column": 8 - }, - "end": { - "line": 184, - "column": 23 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7100, - "end": 7101, - "loc": { - "start": { - "line": 184, - "column": 23 - }, - "end": { - "line": 184, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "viewDocGrTplRes", - "start": 7102, - "end": 7117, - "loc": { - "start": { - "line": 184, - "column": 25 - }, - "end": { - "line": 184, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7117, - "end": 7118, - "loc": { - "start": { - "line": 184, - "column": 40 - }, - "end": { - "line": 184, - "column": 41 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7119, - "end": 7121, - "loc": { - "start": { - "line": 184, - "column": 42 - }, - "end": { - "line": 184, - "column": 44 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7122, - "end": 7123, - "loc": { - "start": { - "line": 184, - "column": 45 - }, - "end": { - "line": 184, - "column": 46 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 7130, - "end": 7132, - "loc": { - "start": { - "line": 185, - "column": 6 - }, - "end": { - "line": 185, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7133, - "end": 7134, - "loc": { - "start": { - "line": 185, - "column": 9 - }, - "end": { - "line": 185, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "viewDocGrTplErr", - "start": 7134, - "end": 7149, - "loc": { - "start": { - "line": 185, - "column": 10 - }, - "end": { - "line": 185, - "column": 25 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7149, - "end": 7150, - "loc": { - "start": { - "line": 185, - "column": 25 - }, - "end": { - "line": 185, - "column": 26 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7151, - "end": 7152, - "loc": { - "start": { - "line": 185, - "column": 27 - }, - "end": { - "line": 185, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 7161, - "end": 7169, - "loc": { - "start": { - "line": 186, - "column": 8 - }, - "end": { - "line": 186, - "column": 16 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7169, - "end": 7170, - "loc": { - "start": { - "line": 186, - "column": 16 - }, - "end": { - "line": 186, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "viewDocGrTplErr", - "start": 7170, - "end": 7185, - "loc": { - "start": { - "line": 186, - "column": 17 - }, - "end": { - "line": 186, - "column": 32 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7185, - "end": 7186, - "loc": { - "start": { - "line": 186, - "column": 32 - }, - "end": { - "line": 186, - "column": 33 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7186, - "end": 7187, - "loc": { - "start": { - "line": 186, - "column": 33 - }, - "end": { - "line": 186, - "column": 34 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 7196, - "end": 7202, - "loc": { - "start": { - "line": 187, - "column": 8 - }, - "end": { - "line": 187, - "column": 14 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7202, - "end": 7203, - "loc": { - "start": { - "line": 187, - "column": 14 - }, - "end": { - "line": 187, - "column": 15 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7210, - "end": 7211, - "loc": { - "start": { - "line": 188, - "column": 6 - }, - "end": { - "line": 188, - "column": 7 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 7212, - "end": 7216, - "loc": { - "start": { - "line": 188, - "column": 8 - }, - "end": { - "line": 188, - "column": 12 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7217, - "end": 7218, - "loc": { - "start": { - "line": 188, - "column": 13 - }, - "end": { - "line": 188, - "column": 14 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 7227, - "end": 7232, - "loc": { - "start": { - "line": 189, - "column": 8 - }, - "end": { - "line": 189, - "column": 13 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7233, - "end": 7234, - "loc": { - "start": { - "line": 189, - "column": 14 - }, - "end": { - "line": 189, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "templates", - "start": 7245, - "end": 7254, - "loc": { - "start": { - "line": 190, - "column": 10 - }, - "end": { - "line": 190, - "column": 19 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7254, - "end": 7255, - "loc": { - "start": { - "line": 190, - "column": 19 - }, - "end": { - "line": 190, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "group_name", - "start": 7266, - "end": 7276, - "loc": { - "start": { - "line": 191, - "column": 10 - }, - "end": { - "line": 191, - "column": 20 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7276, - "end": 7277, - "loc": { - "start": { - "line": 191, - "column": 20 - }, - "end": { - "line": 191, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "routing_details", - "start": 7288, - "end": 7303, - "loc": { - "start": { - "line": 192, - "column": 10 - }, - "end": { - "line": 192, - "column": 25 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 7304, - "end": 7305, - "loc": { - "start": { - "line": 192, - "column": 26 - }, - "end": { - "line": 192, - "column": 27 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7306, - "end": 7307, - "loc": { - "start": { - "line": 192, - "column": 28 - }, - "end": { - "line": 192, - "column": 29 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7307, - "end": 7308, - "loc": { - "start": { - "line": 192, - "column": 29 - }, - "end": { - "line": 192, - "column": 30 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7308, - "end": 7309, - "loc": { - "start": { - "line": 192, - "column": 30 - }, - "end": { - "line": 192, - "column": 31 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7318, - "end": 7319, - "loc": { - "start": { - "line": 193, - "column": 8 - }, - "end": { - "line": 193, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 7320, - "end": 7321, - "loc": { - "start": { - "line": 193, - "column": 10 - }, - "end": { - "line": 193, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "viewDocGrTplRes", - "start": 7322, - "end": 7337, - "loc": { - "start": { - "line": 193, - "column": 12 - }, - "end": { - "line": 193, - "column": 27 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7337, - "end": 7338, - "loc": { - "start": { - "line": 193, - "column": 27 - }, - "end": { - "line": 193, - "column": 28 - } - } - }, - { - "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "let", - "start": 7347, - "end": 7350, - "loc": { - "start": { - "line": 194, - "column": 8 - }, - "end": { - "line": 194, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "templateIDs", - "start": 7351, - "end": 7362, - "loc": { - "start": { - "line": 194, - "column": 12 - }, - "end": { - "line": 194, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7362, - "end": 7363, - "loc": { - "start": { - "line": 194, - "column": 23 - }, - "end": { - "line": 194, - "column": 24 - } - } - }, - { - "type": { - "label": "try", - "keyword": "try", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "try", - "start": 7373, - "end": 7376, - "loc": { - "start": { - "line": 196, - "column": 8 - }, - "end": { - "line": 196, - "column": 11 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7377, - "end": 7378, - "loc": { - "start": { - "line": 196, - "column": 12 - }, - "end": { - "line": 196, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "templateIDs", - "start": 7389, - "end": 7400, - "loc": { - "start": { - "line": 197, - "column": 10 - }, - "end": { - "line": 197, - "column": 21 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 7401, - "end": 7402, - "loc": { - "start": { - "line": 197, - "column": 22 - }, - "end": { - "line": 197, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "templates", - "start": 7403, - "end": 7412, - "loc": { - "start": { - "line": 197, - "column": 24 - }, - "end": { - "line": 197, - "column": 33 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7412, - "end": 7413, - "loc": { - "start": { - "line": 197, - "column": 33 - }, - "end": { - "line": 197, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "map", - "start": 7413, - "end": 7416, - "loc": { - "start": { - "line": 197, - "column": 34 - }, - "end": { - "line": 197, - "column": 37 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7416, - "end": 7417, - "loc": { - "start": { - "line": 197, - "column": 37 - }, - "end": { - "line": 197, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "template", - "start": 7417, - "end": 7425, - "loc": { - "start": { - "line": 197, - "column": 38 - }, - "end": { - "line": 197, - "column": 46 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7426, - "end": 7428, - "loc": { - "start": { - "line": 197, - "column": 47 - }, - "end": { - "line": 197, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "template", - "start": 7429, - "end": 7437, - "loc": { - "start": { - "line": 197, - "column": 50 - }, - "end": { - "line": 197, - "column": 58 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7437, - "end": 7438, - "loc": { - "start": { - "line": 197, - "column": 58 - }, - "end": { - "line": 197, - "column": 59 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 7438, - "end": 7440, - "loc": { - "start": { - "line": 197, - "column": 59 - }, - "end": { - "line": 197, - "column": 61 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7440, - "end": 7441, - "loc": { - "start": { - "line": 197, - "column": 61 - }, - "end": { - "line": 197, - "column": 62 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7441, - "end": 7442, - "loc": { - "start": { - "line": 197, - "column": 62 - }, - "end": { - "line": 197, - "column": 63 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7451, - "end": 7452, - "loc": { - "start": { - "line": 198, - "column": 8 - }, - "end": { - "line": 198, - "column": 9 - } - } - }, - { - "type": { - "label": "catch", - "keyword": "catch", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "catch", - "start": 7453, - "end": 7458, - "loc": { - "start": { - "line": 198, - "column": 10 - }, - "end": { - "line": 198, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7459, - "end": 7460, - "loc": { - "start": { - "line": 198, - "column": 16 - }, - "end": { - "line": 198, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 7460, - "end": 7463, - "loc": { - "start": { - "line": 198, - "column": 17 - }, - "end": { - "line": 198, - "column": 20 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7463, - "end": 7464, - "loc": { - "start": { - "line": 198, - "column": 20 - }, - "end": { - "line": 198, - "column": 21 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7465, - "end": 7466, - "loc": { - "start": { - "line": 198, - "column": 22 - }, - "end": { - "line": 198, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 7477, - "end": 7485, - "loc": { - "start": { - "line": 199, - "column": 10 - }, - "end": { - "line": 199, - "column": 18 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7485, - "end": 7486, - "loc": { - "start": { - "line": 199, - "column": 18 - }, - "end": { - "line": 199, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 7486, - "end": 7489, - "loc": { - "start": { - "line": 199, - "column": 19 - }, - "end": { - "line": 199, - "column": 22 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7489, - "end": 7490, - "loc": { - "start": { - "line": 199, - "column": 22 - }, - "end": { - "line": 199, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7490, - "end": 7491, - "loc": { - "start": { - "line": 199, - "column": 23 - }, - "end": { - "line": 199, - "column": 24 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 7502, - "end": 7508, - "loc": { - "start": { - "line": 200, - "column": 10 - }, - "end": { - "line": 200, - "column": 16 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7508, - "end": 7509, - "loc": { - "start": { - "line": 200, - "column": 16 - }, - "end": { - "line": 200, - "column": 17 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7518, - "end": 7519, - "loc": { - "start": { - "line": 201, - "column": 8 - }, - "end": { - "line": 201, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "createDocumentGroup", - "start": 7529, - "end": 7548, - "loc": { - "start": { - "line": 203, - "column": 8 - }, - "end": { - "line": 203, - "column": 27 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7548, - "end": 7549, - "loc": { - "start": { - "line": 203, - "column": 27 - }, - "end": { - "line": 203, - "column": 28 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7549, - "end": 7550, - "loc": { - "start": { - "line": 203, - "column": 28 - }, - "end": { - "line": 203, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "ids", - "start": 7561, - "end": 7564, - "loc": { - "start": { - "line": 204, - "column": 10 - }, - "end": { - "line": 204, - "column": 13 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7564, - "end": 7565, - "loc": { - "start": { - "line": 204, - "column": 13 - }, - "end": { - "line": 204, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "templateIDs", - "start": 7566, - "end": 7577, - "loc": { - "start": { - "line": 204, - "column": 15 - }, - "end": { - "line": 204, - "column": 26 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7577, - "end": 7578, - "loc": { - "start": { - "line": 204, - "column": 26 - }, - "end": { - "line": 204, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "group_name", - "start": 7589, - "end": 7599, - "loc": { - "start": { - "line": 205, - "column": 10 - }, - "end": { - "line": 205, - "column": 20 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7599, - "end": 7600, - "loc": { - "start": { - "line": 205, - "column": 20 - }, - "end": { - "line": 205, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 7611, - "end": 7616, - "loc": { - "start": { - "line": 206, - "column": 10 - }, - "end": { - "line": 206, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7616, - "end": 7617, - "loc": { - "start": { - "line": 206, - "column": 15 - }, - "end": { - "line": 206, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7626, - "end": 7627, - "loc": { - "start": { - "line": 207, - "column": 8 - }, - "end": { - "line": 207, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7627, - "end": 7628, - "loc": { - "start": { - "line": 207, - "column": 9 - }, - "end": { - "line": 207, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7629, - "end": 7630, - "loc": { - "start": { - "line": 207, - "column": 11 - }, - "end": { - "line": 207, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "createErr", - "start": 7630, - "end": 7639, - "loc": { - "start": { - "line": 207, - "column": 12 - }, - "end": { - "line": 207, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7639, - "end": 7640, - "loc": { - "start": { - "line": 207, - "column": 21 - }, - "end": { - "line": 207, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "createRes", - "start": 7641, - "end": 7650, - "loc": { - "start": { - "line": 207, - "column": 23 - }, - "end": { - "line": 207, - "column": 32 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7650, - "end": 7651, - "loc": { - "start": { - "line": 207, - "column": 32 - }, - "end": { - "line": 207, - "column": 33 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7652, - "end": 7654, - "loc": { - "start": { - "line": 207, - "column": 34 - }, - "end": { - "line": 207, - "column": 36 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7655, - "end": 7656, - "loc": { - "start": { - "line": 207, - "column": 37 - }, - "end": { - "line": 207, - "column": 38 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 7667, - "end": 7669, - "loc": { - "start": { - "line": 208, - "column": 10 - }, - "end": { - "line": 208, - "column": 12 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7670, - "end": 7671, - "loc": { - "start": { - "line": 208, - "column": 13 - }, - "end": { - "line": 208, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "createErr", - "start": 7671, - "end": 7680, - "loc": { - "start": { - "line": 208, - "column": 14 - }, - "end": { - "line": 208, - "column": 23 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7680, - "end": 7681, - "loc": { - "start": { - "line": 208, - "column": 23 - }, - "end": { - "line": 208, - "column": 24 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7682, - "end": 7683, - "loc": { - "start": { - "line": 208, - "column": 25 - }, - "end": { - "line": 208, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 7696, - "end": 7704, - "loc": { - "start": { - "line": 209, - "column": 12 - }, - "end": { - "line": 209, - "column": 20 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7704, - "end": 7705, - "loc": { - "start": { - "line": 209, - "column": 20 - }, - "end": { - "line": 209, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "createErr", - "start": 7705, - "end": 7714, - "loc": { - "start": { - "line": 209, - "column": 21 - }, - "end": { - "line": 209, - "column": 30 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7714, - "end": 7715, - "loc": { - "start": { - "line": 209, - "column": 30 - }, - "end": { - "line": 209, - "column": 31 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7715, - "end": 7716, - "loc": { - "start": { - "line": 209, - "column": 31 - }, - "end": { - "line": 209, - "column": 32 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 7729, - "end": 7735, - "loc": { - "start": { - "line": 210, - "column": 12 - }, - "end": { - "line": 210, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7735, - "end": 7736, - "loc": { - "start": { - "line": 210, - "column": 18 - }, - "end": { - "line": 210, - "column": 19 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7747, - "end": 7748, - "loc": { - "start": { - "line": 211, - "column": 10 - }, - "end": { - "line": 211, - "column": 11 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 7749, - "end": 7753, - "loc": { - "start": { - "line": 211, - "column": 12 - }, - "end": { - "line": 211, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7754, - "end": 7755, - "loc": { - "start": { - "line": 211, - "column": 17 - }, - "end": { - "line": 211, - "column": 18 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 7768, - "end": 7773, - "loc": { - "start": { - "line": 212, - "column": 12 - }, - "end": { - "line": 212, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7774, - "end": 7775, - "loc": { - "start": { - "line": 212, - "column": 18 - }, - "end": { - "line": 212, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 7776, - "end": 7778, - "loc": { - "start": { - "line": 212, - "column": 20 - }, - "end": { - "line": 212, - "column": 22 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7778, - "end": 7779, - "loc": { - "start": { - "line": 212, - "column": 22 - }, - "end": { - "line": 212, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documentGroupId", - "start": 7780, - "end": 7795, - "loc": { - "start": { - "line": 212, - "column": 24 - }, - "end": { - "line": 212, - "column": 39 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7796, - "end": 7797, - "loc": { - "start": { - "line": 212, - "column": 40 - }, - "end": { - "line": 212, - "column": 41 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 7798, - "end": 7799, - "loc": { - "start": { - "line": 212, - "column": 42 - }, - "end": { - "line": 212, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "createRes", - "start": 7800, - "end": 7809, - "loc": { - "start": { - "line": 212, - "column": 44 - }, - "end": { - "line": 212, - "column": 53 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7809, - "end": 7810, - "loc": { - "start": { - "line": 212, - "column": 53 - }, - "end": { - "line": 212, - "column": 54 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "viewDocumentGroup", - "start": 7824, - "end": 7841, - "loc": { - "start": { - "line": 214, - "column": 12 - }, - "end": { - "line": 214, - "column": 29 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7841, - "end": 7842, - "loc": { - "start": { - "line": 214, - "column": 29 - }, - "end": { - "line": 214, - "column": 30 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7842, - "end": 7843, - "loc": { - "start": { - "line": 214, - "column": 30 - }, - "end": { - "line": 214, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 7858, - "end": 7860, - "loc": { - "start": { - "line": 215, - "column": 14 - }, - "end": { - "line": 215, - "column": 16 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7860, - "end": 7861, - "loc": { - "start": { - "line": 215, - "column": 16 - }, - "end": { - "line": 215, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documentGroupId", - "start": 7862, - "end": 7877, - "loc": { - "start": { - "line": 215, - "column": 18 - }, - "end": { - "line": 215, - "column": 33 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7877, - "end": 7878, - "loc": { - "start": { - "line": 215, - "column": 33 - }, - "end": { - "line": 215, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 7893, - "end": 7898, - "loc": { - "start": { - "line": 216, - "column": 14 - }, - "end": { - "line": 216, - "column": 19 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7898, - "end": 7899, - "loc": { - "start": { - "line": 216, - "column": 19 - }, - "end": { - "line": 216, - "column": 20 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7912, - "end": 7913, - "loc": { - "start": { - "line": 217, - "column": 12 - }, - "end": { - "line": 217, - "column": 13 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7913, - "end": 7914, - "loc": { - "start": { - "line": 217, - "column": 13 - }, - "end": { - "line": 217, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7915, - "end": 7916, - "loc": { - "start": { - "line": 217, - "column": 15 - }, - "end": { - "line": 217, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "viewDocGrErr", - "start": 7916, - "end": 7928, - "loc": { - "start": { - "line": 217, - "column": 16 - }, - "end": { - "line": 217, - "column": 28 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7928, - "end": 7929, - "loc": { - "start": { - "line": 217, - "column": 28 - }, - "end": { - "line": 217, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "viewDocGrRes", - "start": 7930, - "end": 7942, - "loc": { - "start": { - "line": 217, - "column": 30 - }, - "end": { - "line": 217, - "column": 42 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7942, - "end": 7943, - "loc": { - "start": { - "line": 217, - "column": 42 - }, - "end": { - "line": 217, - "column": 43 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7944, - "end": 7946, - "loc": { - "start": { - "line": 217, - "column": 44 - }, - "end": { - "line": 217, - "column": 46 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7947, - "end": 7948, - "loc": { - "start": { - "line": 217, - "column": 47 - }, - "end": { - "line": 217, - "column": 48 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 7963, - "end": 7965, - "loc": { - "start": { - "line": 218, - "column": 14 - }, - "end": { - "line": 218, - "column": 16 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7966, - "end": 7967, - "loc": { - "start": { - "line": 218, - "column": 17 - }, - "end": { - "line": 218, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "viewDocGrErr", - "start": 7967, - "end": 7979, - "loc": { - "start": { - "line": 218, - "column": 18 - }, - "end": { - "line": 218, - "column": 30 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7979, - "end": 7980, - "loc": { - "start": { - "line": 218, - "column": 30 - }, - "end": { - "line": 218, - "column": 31 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7981, - "end": 7982, - "loc": { - "start": { - "line": 218, - "column": 32 - }, - "end": { - "line": 218, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 7999, - "end": 8007, - "loc": { - "start": { - "line": 219, - "column": 16 - }, - "end": { - "line": 219, - "column": 24 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8007, - "end": 8008, - "loc": { - "start": { - "line": 219, - "column": 24 - }, - "end": { - "line": 219, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "viewDocGrErr", - "start": 8008, - "end": 8020, - "loc": { - "start": { - "line": 219, - "column": 25 - }, - "end": { - "line": 219, - "column": 37 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8020, - "end": 8021, - "loc": { - "start": { - "line": 219, - "column": 37 - }, - "end": { - "line": 219, - "column": 38 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8021, - "end": 8022, - "loc": { - "start": { - "line": 219, - "column": 38 - }, - "end": { - "line": 219, - "column": 39 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 8039, - "end": 8045, - "loc": { - "start": { - "line": 220, - "column": 16 - }, - "end": { - "line": 220, - "column": 22 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8045, - "end": 8046, - "loc": { - "start": { - "line": 220, - "column": 22 - }, - "end": { - "line": 220, - "column": 23 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8061, - "end": 8062, - "loc": { - "start": { - "line": 221, - "column": 14 - }, - "end": { - "line": 221, - "column": 15 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 8063, - "end": 8067, - "loc": { - "start": { - "line": 221, - "column": 16 - }, - "end": { - "line": 221, - "column": 20 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8068, - "end": 8069, - "loc": { - "start": { - "line": 221, - "column": 21 - }, - "end": { - "line": 221, - "column": 22 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 8086, - "end": 8091, - "loc": { - "start": { - "line": 222, - "column": 16 - }, - "end": { - "line": 222, - "column": 21 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8092, - "end": 8093, - "loc": { - "start": { - "line": 222, - "column": 22 - }, - "end": { - "line": 222, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documents", - "start": 8094, - "end": 8103, - "loc": { - "start": { - "line": 222, - "column": 24 - }, - "end": { - "line": 222, - "column": 33 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8104, - "end": 8105, - "loc": { - "start": { - "line": 222, - "column": 34 - }, - "end": { - "line": 222, - "column": 35 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 8106, - "end": 8107, - "loc": { - "start": { - "line": 222, - "column": 36 - }, - "end": { - "line": 222, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "viewDocGrRes", - "start": 8108, - "end": 8120, - "loc": { - "start": { - "line": 222, - "column": 38 - }, - "end": { - "line": 222, - "column": 50 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8120, - "end": 8121, - "loc": { - "start": { - "line": 222, - "column": 50 - }, - "end": { - "line": 222, - "column": 51 - } - } - }, - { - "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "let", - "start": 8138, - "end": 8141, - "loc": { - "start": { - "line": 223, - "column": 16 - }, - "end": { - "line": 223, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documentToOriginMap", - "start": 8142, - "end": 8161, - "loc": { - "start": { - "line": 223, - "column": 20 - }, - "end": { - "line": 223, - "column": 39 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8161, - "end": 8162, - "loc": { - "start": { - "line": 223, - "column": 39 - }, - "end": { - "line": 223, - "column": 40 - } - } - }, - { - "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "let", - "start": 8179, - "end": 8182, - "loc": { - "start": { - "line": 224, - "column": 16 - }, - "end": { - "line": 224, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "inviteSettings", - "start": 8183, - "end": 8197, - "loc": { - "start": { - "line": 224, - "column": 20 - }, - "end": { - "line": 224, - "column": 34 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8197, - "end": 8198, - "loc": { - "start": { - "line": 224, - "column": 34 - }, - "end": { - "line": 224, - "column": 35 - } - } - }, - { - "type": { - "label": "try", - "keyword": "try", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "try", - "start": 8216, - "end": 8219, - "loc": { - "start": { - "line": 226, - "column": 16 - }, - "end": { - "line": 226, - "column": 19 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8220, - "end": 8221, - "loc": { - "start": { - "line": 226, - "column": 20 - }, - "end": { - "line": 226, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documentToOriginMap", - "start": 8240, - "end": 8259, - "loc": { - "start": { - "line": 227, - "column": 18 - }, - "end": { - "line": 227, - "column": 37 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 8260, - "end": 8261, - "loc": { - "start": { - "line": 227, - "column": 38 - }, - "end": { - "line": 227, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documents", - "start": 8262, - "end": 8271, - "loc": { - "start": { - "line": 227, - "column": 40 - }, - "end": { - "line": 227, - "column": 49 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8271, - "end": 8272, - "loc": { - "start": { - "line": 227, - "column": 49 - }, - "end": { - "line": 227, - "column": 50 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "reduce", - "start": 8272, - "end": 8278, - "loc": { - "start": { - "line": 227, - "column": 50 - }, - "end": { - "line": 227, - "column": 56 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8278, - "end": 8279, - "loc": { - "start": { - "line": 227, - "column": 56 - }, - "end": { - "line": 227, - "column": 57 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8279, - "end": 8280, - "loc": { - "start": { - "line": 227, - "column": 57 - }, - "end": { - "line": 227, - "column": 58 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "map", - "start": 8280, - "end": 8283, - "loc": { - "start": { - "line": 227, - "column": 58 - }, - "end": { - "line": 227, - "column": 61 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8283, - "end": 8284, - "loc": { - "start": { - "line": 227, - "column": 61 - }, - "end": { - "line": 227, - "column": 62 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "doc", - "start": 8285, - "end": 8288, - "loc": { - "start": { - "line": 227, - "column": 63 - }, - "end": { - "line": 227, - "column": 66 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8288, - "end": 8289, - "loc": { - "start": { - "line": 227, - "column": 66 - }, - "end": { - "line": 227, - "column": 67 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8290, - "end": 8292, - "loc": { - "start": { - "line": 227, - "column": 68 - }, - "end": { - "line": 227, - "column": 70 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8293, - "end": 8294, - "loc": { - "start": { - "line": 227, - "column": 71 - }, - "end": { - "line": 227, - "column": 72 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "map", - "start": 8315, - "end": 8318, - "loc": { - "start": { - "line": 228, - "column": 20 - }, - "end": { - "line": 228, - "column": 23 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8318, - "end": 8319, - "loc": { - "start": { - "line": 228, - "column": 23 - }, - "end": { - "line": 228, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "doc", - "start": 8319, - "end": 8322, - "loc": { - "start": { - "line": 228, - "column": 24 - }, - "end": { - "line": 228, - "column": 27 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8322, - "end": 8323, - "loc": { - "start": { - "line": 228, - "column": 27 - }, - "end": { - "line": 228, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "origin_document_id", - "start": 8323, - "end": 8341, - "loc": { - "start": { - "line": 228, - "column": 28 - }, - "end": { - "line": 228, - "column": 46 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8341, - "end": 8342, - "loc": { - "start": { - "line": 228, - "column": 46 - }, - "end": { - "line": 228, - "column": 47 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 8343, - "end": 8344, - "loc": { - "start": { - "line": 228, - "column": 48 - }, - "end": { - "line": 228, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "doc", - "start": 8345, - "end": 8348, - "loc": { - "start": { - "line": 228, - "column": 50 - }, - "end": { - "line": 228, - "column": 53 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8348, - "end": 8349, - "loc": { - "start": { - "line": 228, - "column": 53 - }, - "end": { - "line": 228, - "column": 54 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 8349, - "end": 8351, - "loc": { - "start": { - "line": 228, - "column": 54 - }, - "end": { - "line": 228, - "column": 56 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8351, - "end": 8352, - "loc": { - "start": { - "line": 228, - "column": 56 - }, - "end": { - "line": 228, - "column": 57 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 8373, - "end": 8379, - "loc": { - "start": { - "line": 229, - "column": 20 - }, - "end": { - "line": 229, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "map", - "start": 8380, - "end": 8383, - "loc": { - "start": { - "line": 229, - "column": 27 - }, - "end": { - "line": 229, - "column": 30 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8383, - "end": 8384, - "loc": { - "start": { - "line": 229, - "column": 30 - }, - "end": { - "line": 229, - "column": 31 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8403, - "end": 8404, - "loc": { - "start": { - "line": 230, - "column": 18 - }, - "end": { - "line": 230, - "column": 19 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8404, - "end": 8405, - "loc": { - "start": { - "line": 230, - "column": 19 - }, - "end": { - "line": 230, - "column": 20 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8406, - "end": 8407, - "loc": { - "start": { - "line": 230, - "column": 21 - }, - "end": { - "line": 230, - "column": 22 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8407, - "end": 8408, - "loc": { - "start": { - "line": 230, - "column": 22 - }, - "end": { - "line": 230, - "column": 23 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8408, - "end": 8409, - "loc": { - "start": { - "line": 230, - "column": 23 - }, - "end": { - "line": 230, - "column": 24 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8409, - "end": 8410, - "loc": { - "start": { - "line": 230, - "column": 24 - }, - "end": { - "line": 230, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "inviteSettings", - "start": 8430, - "end": 8444, - "loc": { - "start": { - "line": 232, - "column": 18 - }, - "end": { - "line": 232, - "column": 32 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 8445, - "end": 8446, - "loc": { - "start": { - "line": 232, - "column": 33 - }, - "end": { - "line": 232, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Object", - "start": 8447, - "end": 8453, - "loc": { - "start": { - "line": 232, - "column": 35 - }, - "end": { - "line": 232, - "column": 41 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8453, - "end": 8454, - "loc": { - "start": { - "line": 232, - "column": 41 - }, - "end": { - "line": 232, - "column": 42 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "assign", - "start": 8454, - "end": 8460, - "loc": { - "start": { - "line": 232, - "column": 42 - }, - "end": { - "line": 232, - "column": 48 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8460, - "end": 8461, - "loc": { - "start": { - "line": 232, - "column": 48 - }, - "end": { - "line": 232, - "column": 49 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8461, - "end": 8462, - "loc": { - "start": { - "line": 232, - "column": 49 - }, - "end": { - "line": 232, - "column": 50 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8462, - "end": 8463, - "loc": { - "start": { - "line": 232, - "column": 50 - }, - "end": { - "line": 232, - "column": 51 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8463, - "end": 8464, - "loc": { - "start": { - "line": 232, - "column": 51 - }, - "end": { - "line": 232, - "column": 52 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8465, - "end": 8466, - "loc": { - "start": { - "line": 232, - "column": 53 - }, - "end": { - "line": 232, - "column": 54 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "routing_details", - "start": 8466, - "end": 8481, - "loc": { - "start": { - "line": 232, - "column": 54 - }, - "end": { - "line": 232, - "column": 69 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8481, - "end": 8482, - "loc": { - "start": { - "line": 232, - "column": 69 - }, - "end": { - "line": 232, - "column": 70 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "invite_steps", - "start": 8482, - "end": 8494, - "loc": { - "start": { - "line": 232, - "column": 70 - }, - "end": { - "line": 232, - "column": 82 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8495, - "end": 8496, - "loc": { - "start": { - "line": 232, - "column": 83 - }, - "end": { - "line": 232, - "column": 84 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "routing_details", - "start": 8497, - "end": 8512, - "loc": { - "start": { - "line": 232, - "column": 85 - }, - "end": { - "line": 232, - "column": 100 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8513, - "end": 8514, - "loc": { - "start": { - "line": 232, - "column": 101 - }, - "end": { - "line": 232, - "column": 102 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8515, - "end": 8516, - "loc": { - "start": { - "line": 232, - "column": 103 - }, - "end": { - "line": 232, - "column": 104 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8516, - "end": 8517, - "loc": { - "start": { - "line": 232, - "column": 104 - }, - "end": { - "line": 232, - "column": 105 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8517, - "end": 8518, - "loc": { - "start": { - "line": 232, - "column": 105 - }, - "end": { - "line": 232, - "column": 106 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8518, - "end": 8519, - "loc": { - "start": { - "line": 232, - "column": 106 - }, - "end": { - "line": 232, - "column": 107 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 8520, - "end": 8524, - "loc": { - "start": { - "line": 232, - "column": 108 - }, - "end": { - "line": 232, - "column": 112 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8524, - "end": 8525, - "loc": { - "start": { - "line": 232, - "column": 112 - }, - "end": { - "line": 232, - "column": 113 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8525, - "end": 8526, - "loc": { - "start": { - "line": 232, - "column": 113 - }, - "end": { - "line": 232, - "column": 114 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "inviteSettings", - "start": 8546, - "end": 8560, - "loc": { - "start": { - "line": 234, - "column": 18 - }, - "end": { - "line": 234, - "column": 32 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8560, - "end": 8561, - "loc": { - "start": { - "line": 234, - "column": 32 - }, - "end": { - "line": 234, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "invite_steps", - "start": 8561, - "end": 8573, - "loc": { - "start": { - "line": 234, - "column": 33 - }, - "end": { - "line": 234, - "column": 45 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8573, - "end": 8574, - "loc": { - "start": { - "line": 234, - "column": 45 - }, - "end": { - "line": 234, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "forEach", - "start": 8574, - "end": 8581, - "loc": { - "start": { - "line": 234, - "column": 46 - }, - "end": { - "line": 234, - "column": 53 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8581, - "end": 8582, - "loc": { - "start": { - "line": 234, - "column": 53 - }, - "end": { - "line": 234, - "column": 54 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "step", - "start": 8582, - "end": 8586, - "loc": { - "start": { - "line": 234, - "column": 54 - }, - "end": { - "line": 234, - "column": 58 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8587, - "end": 8589, - "loc": { - "start": { - "line": 234, - "column": 59 - }, - "end": { - "line": 234, - "column": 61 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8590, - "end": 8591, - "loc": { - "start": { - "line": 234, - "column": 62 - }, - "end": { - "line": 234, - "column": 63 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "step", - "start": 8612, - "end": 8616, - "loc": { - "start": { - "line": 235, - "column": 20 - }, - "end": { - "line": 235, - "column": 24 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8616, - "end": 8617, - "loc": { - "start": { - "line": 235, - "column": 24 - }, - "end": { - "line": 235, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "invite_emails", - "start": 8617, - "end": 8630, - "loc": { - "start": { - "line": 235, - "column": 25 - }, - "end": { - "line": 235, - "column": 38 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 8631, - "end": 8632, - "loc": { - "start": { - "line": 235, - "column": 39 - }, - "end": { - "line": 235, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "step", - "start": 8633, - "end": 8637, - "loc": { - "start": { - "line": 235, - "column": 41 - }, - "end": { - "line": 235, - "column": 45 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8637, - "end": 8638, - "loc": { - "start": { - "line": 235, - "column": 45 - }, - "end": { - "line": 235, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "invite_emails", - "start": 8638, - "end": 8651, - "loc": { - "start": { - "line": 235, - "column": 46 - }, - "end": { - "line": 235, - "column": 59 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8651, - "end": 8652, - "loc": { - "start": { - "line": 235, - "column": 59 - }, - "end": { - "line": 235, - "column": 60 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "map", - "start": 8652, - "end": 8655, - "loc": { - "start": { - "line": 235, - "column": 60 - }, - "end": { - "line": 235, - "column": 63 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8655, - "end": 8656, - "loc": { - "start": { - "line": 235, - "column": 63 - }, - "end": { - "line": 235, - "column": 64 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "inviteEmail", - "start": 8656, - "end": 8667, - "loc": { - "start": { - "line": 235, - "column": 64 - }, - "end": { - "line": 235, - "column": 75 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8668, - "end": 8670, - "loc": { - "start": { - "line": 235, - "column": 76 - }, - "end": { - "line": 235, - "column": 78 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8671, - "end": 8672, - "loc": { - "start": { - "line": 235, - "column": 79 - }, - "end": { - "line": 235, - "column": 80 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 8695, - "end": 8700, - "loc": { - "start": { - "line": 236, - "column": 22 - }, - "end": { - "line": 236, - "column": 27 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8701, - "end": 8702, - "loc": { - "start": { - "line": 236, - "column": 28 - }, - "end": { - "line": 236, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "email", - "start": 8727, - "end": 8732, - "loc": { - "start": { - "line": 237, - "column": 24 - }, - "end": { - "line": 237, - "column": 29 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8732, - "end": 8733, - "loc": { - "start": { - "line": 237, - "column": 29 - }, - "end": { - "line": 237, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "subject", - "start": 8758, - "end": 8765, - "loc": { - "start": { - "line": 238, - "column": 24 - }, - "end": { - "line": 238, - "column": 31 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8765, - "end": 8766, - "loc": { - "start": { - "line": 238, - "column": 31 - }, - "end": { - "line": 238, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "message", - "start": 8791, - "end": 8798, - "loc": { - "start": { - "line": 239, - "column": 24 - }, - "end": { - "line": 239, - "column": 31 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8798, - "end": 8799, - "loc": { - "start": { - "line": 239, - "column": 31 - }, - "end": { - "line": 239, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "expiration_days", - "start": 8824, - "end": 8839, - "loc": { - "start": { - "line": 240, - "column": 24 - }, - "end": { - "line": 240, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8839, - "end": 8840, - "loc": { - "start": { - "line": 240, - "column": 39 - }, - "end": { - "line": 240, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "reminder", - "start": 8865, - "end": 8873, - "loc": { - "start": { - "line": 241, - "column": 24 - }, - "end": { - "line": 241, - "column": 32 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8873, - "end": 8874, - "loc": { - "start": { - "line": 241, - "column": 32 - }, - "end": { - "line": 241, - "column": 33 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8897, - "end": 8898, - "loc": { - "start": { - "line": 242, - "column": 22 - }, - "end": { - "line": 242, - "column": 23 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 8899, - "end": 8900, - "loc": { - "start": { - "line": 242, - "column": 24 - }, - "end": { - "line": 242, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "inviteEmail", - "start": 8901, - "end": 8912, - "loc": { - "start": { - "line": 242, - "column": 26 - }, - "end": { - "line": 242, - "column": 37 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8912, - "end": 8913, - "loc": { - "start": { - "line": 242, - "column": 37 - }, - "end": { - "line": 242, - "column": 38 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 8937, - "end": 8943, - "loc": { - "start": { - "line": 244, - "column": 22 - }, - "end": { - "line": 244, - "column": 28 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8944, - "end": 8945, - "loc": { - "start": { - "line": 244, - "column": 29 - }, - "end": { - "line": 244, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "email", - "start": 8970, - "end": 8975, - "loc": { - "start": { - "line": 245, - "column": 24 - }, - "end": { - "line": 245, - "column": 29 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8975, - "end": 8976, - "loc": { - "start": { - "line": 245, - "column": 29 - }, - "end": { - "line": 245, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "subject", - "start": 9001, - "end": 9008, - "loc": { - "start": { - "line": 246, - "column": 24 - }, - "end": { - "line": 246, - "column": 31 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9008, - "end": 9009, - "loc": { - "start": { - "line": 246, - "column": 31 - }, - "end": { - "line": 246, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "message", - "start": 9034, - "end": 9041, - "loc": { - "start": { - "line": 247, - "column": 24 - }, - "end": { - "line": 247, - "column": 31 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9041, - "end": 9042, - "loc": { - "start": { - "line": 247, - "column": 31 - }, - "end": { - "line": 247, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "expiration_days", - "start": 9067, - "end": 9082, - "loc": { - "start": { - "line": 248, - "column": 24 - }, - "end": { - "line": 248, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9082, - "end": 9083, - "loc": { - "start": { - "line": 248, - "column": 39 - }, - "end": { - "line": 248, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "reminder", - "start": 9108, - "end": 9116, - "loc": { - "start": { - "line": 249, - "column": 24 - }, - "end": { - "line": 249, - "column": 32 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9116, - "end": 9117, - "loc": { - "start": { - "line": 249, - "column": 32 - }, - "end": { - "line": 249, - "column": 33 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9140, - "end": 9141, - "loc": { - "start": { - "line": 250, - "column": 22 - }, - "end": { - "line": 250, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9141, - "end": 9142, - "loc": { - "start": { - "line": 250, - "column": 23 - }, - "end": { - "line": 250, - "column": 24 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9163, - "end": 9164, - "loc": { - "start": { - "line": 251, - "column": 20 - }, - "end": { - "line": 251, - "column": 21 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9164, - "end": 9165, - "loc": { - "start": { - "line": 251, - "column": 21 - }, - "end": { - "line": 251, - "column": 22 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9165, - "end": 9166, - "loc": { - "start": { - "line": 251, - "column": 22 - }, - "end": { - "line": 251, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "step", - "start": 9188, - "end": 9192, - "loc": { - "start": { - "line": 253, - "column": 20 - }, - "end": { - "line": 253, - "column": 24 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9192, - "end": 9193, - "loc": { - "start": { - "line": 253, - "column": 24 - }, - "end": { - "line": 253, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "invite_actions", - "start": 9193, - "end": 9207, - "loc": { - "start": { - "line": 253, - "column": 25 - }, - "end": { - "line": 253, - "column": 39 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 9208, - "end": 9209, - "loc": { - "start": { - "line": 253, - "column": 40 - }, - "end": { - "line": 253, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "step", - "start": 9210, - "end": 9214, - "loc": { - "start": { - "line": 253, - "column": 42 - }, - "end": { - "line": 253, - "column": 46 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9214, - "end": 9215, - "loc": { - "start": { - "line": 253, - "column": 46 - }, - "end": { - "line": 253, - "column": 47 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "invite_actions", - "start": 9215, - "end": 9229, - "loc": { - "start": { - "line": 253, - "column": 47 - }, - "end": { - "line": 253, - "column": 61 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9229, - "end": 9230, - "loc": { - "start": { - "line": 253, - "column": 61 - }, - "end": { - "line": 253, - "column": 62 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "map", - "start": 9230, - "end": 9233, - "loc": { - "start": { - "line": 253, - "column": 62 - }, - "end": { - "line": 253, - "column": 65 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9233, - "end": 9234, - "loc": { - "start": { - "line": 253, - "column": 65 - }, - "end": { - "line": 253, - "column": 66 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "inviteAction", - "start": 9234, - "end": 9246, - "loc": { - "start": { - "line": 253, - "column": 66 - }, - "end": { - "line": 253, - "column": 78 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9247, - "end": 9249, - "loc": { - "start": { - "line": 253, - "column": 79 - }, - "end": { - "line": 253, - "column": 81 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9250, - "end": 9251, - "loc": { - "start": { - "line": 253, - "column": 82 - }, - "end": { - "line": 253, - "column": 83 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 9274, - "end": 9279, - "loc": { - "start": { - "line": 254, - "column": 22 - }, - "end": { - "line": 254, - "column": 27 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9280, - "end": 9281, - "loc": { - "start": { - "line": 254, - "column": 28 - }, - "end": { - "line": 254, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "email", - "start": 9306, - "end": 9311, - "loc": { - "start": { - "line": 255, - "column": 24 - }, - "end": { - "line": 255, - "column": 29 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9311, - "end": 9312, - "loc": { - "start": { - "line": 255, - "column": 29 - }, - "end": { - "line": 255, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "role_name", - "start": 9337, - "end": 9346, - "loc": { - "start": { - "line": 256, - "column": 24 - }, - "end": { - "line": 256, - "column": 33 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9346, - "end": 9347, - "loc": { - "start": { - "line": 256, - "column": 33 - }, - "end": { - "line": 256, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "action", - "start": 9372, - "end": 9378, - "loc": { - "start": { - "line": 257, - "column": 24 - }, - "end": { - "line": 257, - "column": 30 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9378, - "end": 9379, - "loc": { - "start": { - "line": 257, - "column": 30 - }, - "end": { - "line": 257, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_id", - "start": 9404, - "end": 9415, - "loc": { - "start": { - "line": 258, - "column": 24 - }, - "end": { - "line": 258, - "column": 35 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9415, - "end": 9416, - "loc": { - "start": { - "line": 258, - "column": 35 - }, - "end": { - "line": 258, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "allow_reassign", - "start": 9441, - "end": 9455, - "loc": { - "start": { - "line": 259, - "column": 24 - }, - "end": { - "line": 259, - "column": 38 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9455, - "end": 9456, - "loc": { - "start": { - "line": 259, - "column": 38 - }, - "end": { - "line": 259, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "decline_by_signature", - "start": 9481, - "end": 9501, - "loc": { - "start": { - "line": 260, - "column": 24 - }, - "end": { - "line": 260, - "column": 44 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9501, - "end": 9502, - "loc": { - "start": { - "line": 260, - "column": 44 - }, - "end": { - "line": 260, - "column": 45 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authentication", - "start": 9527, - "end": 9541, - "loc": { - "start": { - "line": 261, - "column": 24 - }, - "end": { - "line": 261, - "column": 38 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9541, - "end": 9542, - "loc": { - "start": { - "line": 261, - "column": 38 - }, - "end": { - "line": 261, - "column": 39 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9565, - "end": 9566, - "loc": { - "start": { - "line": 262, - "column": 22 - }, - "end": { - "line": 262, - "column": 23 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 9567, - "end": 9568, - "loc": { - "start": { - "line": 262, - "column": 24 - }, - "end": { - "line": 262, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "inviteAction", - "start": 9569, - "end": 9581, - "loc": { - "start": { - "line": 262, - "column": 26 - }, - "end": { - "line": 262, - "column": 38 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9581, - "end": 9582, - "loc": { - "start": { - "line": 262, - "column": 38 - }, - "end": { - "line": 262, - "column": 39 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 9606, - "end": 9612, - "loc": { - "start": { - "line": 264, - "column": 22 - }, - "end": { - "line": 264, - "column": 28 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9613, - "end": 9614, - "loc": { - "start": { - "line": 264, - "column": 29 - }, - "end": { - "line": 264, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_id", - "start": 9639, - "end": 9650, - "loc": { - "start": { - "line": 265, - "column": 24 - }, - "end": { - "line": 265, - "column": 35 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9650, - "end": 9651, - "loc": { - "start": { - "line": 265, - "column": 35 - }, - "end": { - "line": 265, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documentToOriginMap", - "start": 9652, - "end": 9671, - "loc": { - "start": { - "line": 265, - "column": 37 - }, - "end": { - "line": 265, - "column": 56 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9671, - "end": 9672, - "loc": { - "start": { - "line": 265, - "column": 56 - }, - "end": { - "line": 265, - "column": 57 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_id", - "start": 9672, - "end": 9683, - "loc": { - "start": { - "line": 265, - "column": 57 - }, - "end": { - "line": 265, - "column": 68 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9683, - "end": 9684, - "loc": { - "start": { - "line": 265, - "column": 68 - }, - "end": { - "line": 265, - "column": 69 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9684, - "end": 9685, - "loc": { - "start": { - "line": 265, - "column": 69 - }, - "end": { - "line": 265, - "column": 70 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "email", - "start": 9710, - "end": 9715, - "loc": { - "start": { - "line": 266, - "column": 24 - }, - "end": { - "line": 266, - "column": 29 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9715, - "end": 9716, - "loc": { - "start": { - "line": 266, - "column": 29 - }, - "end": { - "line": 266, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "role_name", - "start": 9741, - "end": 9750, - "loc": { - "start": { - "line": 267, - "column": 24 - }, - "end": { - "line": 267, - "column": 33 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9750, - "end": 9751, - "loc": { - "start": { - "line": 267, - "column": 33 - }, - "end": { - "line": 267, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "action", - "start": 9776, - "end": 9782, - "loc": { - "start": { - "line": 268, - "column": 24 - }, - "end": { - "line": 268, - "column": 30 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9782, - "end": 9783, - "loc": { - "start": { - "line": 268, - "column": 30 - }, - "end": { - "line": 268, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "allow_reassign", - "start": 9808, - "end": 9822, - "loc": { - "start": { - "line": 269, - "column": 24 - }, - "end": { - "line": 269, - "column": 38 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9822, - "end": 9823, - "loc": { - "start": { - "line": 269, - "column": 38 - }, - "end": { - "line": 269, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "decline_by_signature", - "start": 9848, - "end": 9868, - "loc": { - "start": { - "line": 270, - "column": 24 - }, - "end": { - "line": 270, - "column": 44 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9868, - "end": 9869, - "loc": { - "start": { - "line": 270, - "column": 44 - }, - "end": { - "line": 270, - "column": 45 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authentication", - "start": 9894, - "end": 9908, - "loc": { - "start": { - "line": 271, - "column": 24 - }, - "end": { - "line": 271, - "column": 38 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9908, - "end": 9909, - "loc": { - "start": { - "line": 271, - "column": 38 - }, - "end": { - "line": 271, - "column": 39 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9932, - "end": 9933, - "loc": { - "start": { - "line": 272, - "column": 22 - }, - "end": { - "line": 272, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9933, - "end": 9934, - "loc": { - "start": { - "line": 272, - "column": 23 - }, - "end": { - "line": 272, - "column": 24 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9955, - "end": 9956, - "loc": { - "start": { - "line": 273, - "column": 20 - }, - "end": { - "line": 273, - "column": 21 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9956, - "end": 9957, - "loc": { - "start": { - "line": 273, - "column": 21 - }, - "end": { - "line": 273, - "column": 22 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9957, - "end": 9958, - "loc": { - "start": { - "line": 273, - "column": 22 - }, - "end": { - "line": 273, - "column": 23 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9977, - "end": 9978, - "loc": { - "start": { - "line": 274, - "column": 18 - }, - "end": { - "line": 274, - "column": 19 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9978, - "end": 9979, - "loc": { - "start": { - "line": 274, - "column": 19 - }, - "end": { - "line": 274, - "column": 20 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9979, - "end": 9980, - "loc": { - "start": { - "line": 274, - "column": 20 - }, - "end": { - "line": 274, - "column": 21 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9997, - "end": 9998, - "loc": { - "start": { - "line": 275, - "column": 16 - }, - "end": { - "line": 275, - "column": 17 - } - } - }, - { - "type": { - "label": "catch", - "keyword": "catch", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "catch", - "start": 9999, - "end": 10004, - "loc": { - "start": { - "line": 275, - "column": 18 - }, - "end": { - "line": 275, - "column": 23 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10005, - "end": 10006, - "loc": { - "start": { - "line": 275, - "column": 24 - }, - "end": { - "line": 275, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 10006, - "end": 10009, - "loc": { - "start": { - "line": 275, - "column": 25 - }, - "end": { - "line": 275, - "column": 28 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10009, - "end": 10010, - "loc": { - "start": { - "line": 275, - "column": 28 - }, - "end": { - "line": 275, - "column": 29 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10011, - "end": 10012, - "loc": { - "start": { - "line": 275, - "column": 30 - }, - "end": { - "line": 275, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 10031, - "end": 10039, - "loc": { - "start": { - "line": 276, - "column": 18 - }, - "end": { - "line": 276, - "column": 26 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10039, - "end": 10040, - "loc": { - "start": { - "line": 276, - "column": 26 - }, - "end": { - "line": 276, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 10040, - "end": 10043, - "loc": { - "start": { - "line": 276, - "column": 27 - }, - "end": { - "line": 276, - "column": 30 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10043, - "end": 10044, - "loc": { - "start": { - "line": 276, - "column": 30 - }, - "end": { - "line": 276, - "column": 31 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10044, - "end": 10045, - "loc": { - "start": { - "line": 276, - "column": 31 - }, - "end": { - "line": 276, - "column": 32 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 10064, - "end": 10070, - "loc": { - "start": { - "line": 277, - "column": 18 - }, - "end": { - "line": 277, - "column": 24 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10070, - "end": 10071, - "loc": { - "start": { - "line": 277, - "column": 24 - }, - "end": { - "line": 277, - "column": 25 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10088, - "end": 10089, - "loc": { - "start": { - "line": 278, - "column": 16 - }, - "end": { - "line": 278, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "inviteDocumentGroup", - "start": 10107, - "end": 10126, - "loc": { - "start": { - "line": 280, - "column": 16 - }, - "end": { - "line": 280, - "column": 35 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10126, - "end": 10127, - "loc": { - "start": { - "line": 280, - "column": 35 - }, - "end": { - "line": 280, - "column": 36 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10127, - "end": 10128, - "loc": { - "start": { - "line": 280, - "column": 36 - }, - "end": { - "line": 280, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 10147, - "end": 10149, - "loc": { - "start": { - "line": 281, - "column": 18 - }, - "end": { - "line": 281, - "column": 20 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10149, - "end": 10150, - "loc": { - "start": { - "line": 281, - "column": 20 - }, - "end": { - "line": 281, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documentGroupId", - "start": 10151, - "end": 10166, - "loc": { - "start": { - "line": 281, - "column": 22 - }, - "end": { - "line": 281, - "column": 37 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10166, - "end": 10167, - "loc": { - "start": { - "line": 281, - "column": 37 - }, - "end": { - "line": 281, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 10186, - "end": 10190, - "loc": { - "start": { - "line": 282, - "column": 18 - }, - "end": { - "line": 282, - "column": 22 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10190, - "end": 10191, - "loc": { - "start": { - "line": 282, - "column": 22 - }, - "end": { - "line": 282, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "inviteSettings", - "start": 10192, - "end": 10206, - "loc": { - "start": { - "line": 282, - "column": 24 - }, - "end": { - "line": 282, - "column": 38 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10206, - "end": 10207, - "loc": { - "start": { - "line": 282, - "column": 38 - }, - "end": { - "line": 282, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 10226, - "end": 10231, - "loc": { - "start": { - "line": 283, - "column": 18 - }, - "end": { - "line": 283, - "column": 23 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10231, - "end": 10232, - "loc": { - "start": { - "line": 283, - "column": 23 - }, - "end": { - "line": 283, - "column": 24 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10249, - "end": 10250, - "loc": { - "start": { - "line": 284, - "column": 16 - }, - "end": { - "line": 284, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10250, - "end": 10251, - "loc": { - "start": { - "line": 284, - "column": 17 - }, - "end": { - "line": 284, - "column": 18 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10252, - "end": 10253, - "loc": { - "start": { - "line": 284, - "column": 19 - }, - "end": { - "line": 284, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "inviteErr", - "start": 10253, - "end": 10262, - "loc": { - "start": { - "line": 284, - "column": 20 - }, - "end": { - "line": 284, - "column": 29 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10262, - "end": 10263, - "loc": { - "start": { - "line": 284, - "column": 29 - }, - "end": { - "line": 284, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "inviteRes", - "start": 10264, - "end": 10273, - "loc": { - "start": { - "line": 284, - "column": 31 - }, - "end": { - "line": 284, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10273, - "end": 10274, - "loc": { - "start": { - "line": 284, - "column": 40 - }, - "end": { - "line": 284, - "column": 41 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10275, - "end": 10277, - "loc": { - "start": { - "line": 284, - "column": 42 - }, - "end": { - "line": 284, - "column": 44 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10278, - "end": 10279, - "loc": { - "start": { - "line": 284, - "column": 45 - }, - "end": { - "line": 284, - "column": 46 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 10298, - "end": 10300, - "loc": { - "start": { - "line": 285, - "column": 18 - }, - "end": { - "line": 285, - "column": 20 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10301, - "end": 10302, - "loc": { - "start": { - "line": 285, - "column": 21 - }, - "end": { - "line": 285, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "inviteErr", - "start": 10302, - "end": 10311, - "loc": { - "start": { - "line": 285, - "column": 22 - }, - "end": { - "line": 285, - "column": 31 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10311, - "end": 10312, - "loc": { - "start": { - "line": 285, - "column": 31 - }, - "end": { - "line": 285, - "column": 32 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10313, - "end": 10314, - "loc": { - "start": { - "line": 285, - "column": 33 - }, - "end": { - "line": 285, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 10335, - "end": 10343, - "loc": { - "start": { - "line": 286, - "column": 20 - }, - "end": { - "line": 286, - "column": 28 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10343, - "end": 10344, - "loc": { - "start": { - "line": 286, - "column": 28 - }, - "end": { - "line": 286, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "inviteErr", - "start": 10344, - "end": 10353, - "loc": { - "start": { - "line": 286, - "column": 29 - }, - "end": { - "line": 286, - "column": 38 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10353, - "end": 10354, - "loc": { - "start": { - "line": 286, - "column": 38 - }, - "end": { - "line": 286, - "column": 39 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10354, - "end": 10355, - "loc": { - "start": { - "line": 286, - "column": 39 - }, - "end": { - "line": 286, - "column": 40 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 10376, - "end": 10382, - "loc": { - "start": { - "line": 287, - "column": 20 - }, - "end": { - "line": 287, - "column": 26 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10382, - "end": 10383, - "loc": { - "start": { - "line": 287, - "column": 26 - }, - "end": { - "line": 287, - "column": 27 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10402, - "end": 10403, - "loc": { - "start": { - "line": 288, - "column": 18 - }, - "end": { - "line": 288, - "column": 19 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 10404, - "end": 10408, - "loc": { - "start": { - "line": 288, - "column": 20 - }, - "end": { - "line": 288, - "column": 24 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10409, - "end": 10410, - "loc": { - "start": { - "line": 288, - "column": 25 - }, - "end": { - "line": 288, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 10431, - "end": 10439, - "loc": { - "start": { - "line": 289, - "column": 20 - }, - "end": { - "line": 289, - "column": 28 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10439, - "end": 10440, - "loc": { - "start": { - "line": 289, - "column": 28 - }, - "end": { - "line": 289, - "column": 29 - } - } - }, - { - "type": { - "label": "null", - "keyword": "null", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "null", - "start": 10440, - "end": 10444, - "loc": { - "start": { - "line": 289, - "column": 29 - }, - "end": { - "line": 289, - "column": 33 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10444, - "end": 10445, - "loc": { - "start": { - "line": 289, - "column": 33 - }, - "end": { - "line": 289, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "inviteRes", - "start": 10446, - "end": 10455, - "loc": { - "start": { - "line": 289, - "column": 35 - }, - "end": { - "line": 289, - "column": 44 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10455, - "end": 10456, - "loc": { - "start": { - "line": 289, - "column": 44 - }, - "end": { - "line": 289, - "column": 45 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10456, - "end": 10457, - "loc": { - "start": { - "line": 289, - "column": 45 - }, - "end": { - "line": 289, - "column": 46 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 10478, - "end": 10484, - "loc": { - "start": { - "line": 290, - "column": 20 - }, - "end": { - "line": 290, - "column": 26 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10484, - "end": 10485, - "loc": { - "start": { - "line": 290, - "column": 26 - }, - "end": { - "line": 290, - "column": 27 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10504, - "end": 10505, - "loc": { - "start": { - "line": 291, - "column": 18 - }, - "end": { - "line": 291, - "column": 19 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10522, - "end": 10523, - "loc": { - "start": { - "line": 292, - "column": 16 - }, - "end": { - "line": 292, - "column": 17 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10523, - "end": 10524, - "loc": { - "start": { - "line": 292, - "column": 17 - }, - "end": { - "line": 292, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10524, - "end": 10525, - "loc": { - "start": { - "line": 292, - "column": 18 - }, - "end": { - "line": 292, - "column": 19 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10540, - "end": 10541, - "loc": { - "start": { - "line": 293, - "column": 14 - }, - "end": { - "line": 293, - "column": 15 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10554, - "end": 10555, - "loc": { - "start": { - "line": 294, - "column": 12 - }, - "end": { - "line": 294, - "column": 13 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10555, - "end": 10556, - "loc": { - "start": { - "line": 294, - "column": 13 - }, - "end": { - "line": 294, - "column": 14 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10556, - "end": 10557, - "loc": { - "start": { - "line": 294, - "column": 14 - }, - "end": { - "line": 294, - "column": 15 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10568, - "end": 10569, - "loc": { - "start": { - "line": 295, - "column": 10 - }, - "end": { - "line": 295, - "column": 11 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10578, - "end": 10579, - "loc": { - "start": { - "line": 296, - "column": 8 - }, - "end": { - "line": 296, - "column": 9 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10579, - "end": 10580, - "loc": { - "start": { - "line": 296, - "column": 9 - }, - "end": { - "line": 296, - "column": 10 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10580, - "end": 10581, - "loc": { - "start": { - "line": 296, - "column": 10 - }, - "end": { - "line": 296, - "column": 11 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10588, - "end": 10589, - "loc": { - "start": { - "line": 297, - "column": 6 - }, - "end": { - "line": 297, - "column": 7 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10594, - "end": 10595, - "loc": { - "start": { - "line": 298, - "column": 4 - }, - "end": { - "line": 298, - "column": 5 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10595, - "end": 10596, - "loc": { - "start": { - "line": 298, - "column": 5 - }, - "end": { - "line": 298, - "column": 6 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10596, - "end": 10597, - "loc": { - "start": { - "line": 298, - "column": 6 - }, - "end": { - "line": 298, - "column": 7 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10600, - "end": 10601, - "loc": { - "start": { - "line": 299, - "column": 2 - }, - "end": { - "line": 299, - "column": 3 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10603, - "end": 10604, - "loc": { - "start": { - "line": 301, - "column": 0 - }, - "end": { - "line": 301, - "column": 1 - } - } - }, - { - "type": { - "label": "export", - "keyword": "export", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "export", - "start": 10606, - "end": 10612, - "loc": { - "start": { - "line": 303, - "column": 0 - }, - "end": { - "line": 303, - "column": 6 - } - } - }, - { - "type": { - "label": "default", - "keyword": "default", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "default", - "start": 10613, - "end": 10620, - "loc": { - "start": { - "line": 303, - "column": 7 - }, - "end": { - "line": 303, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "DocumentGroupTemplate", - "start": 10621, - "end": 10642, - "loc": { - "start": { - "line": 303, - "column": 15 - }, - "end": { - "line": 303, - "column": 36 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10642, - "end": 10643, - "loc": { - "start": { - "line": 303, - "column": 36 - }, - "end": { - "line": 303, - "column": 37 - } - } - }, - { - "type": { - "label": "eof", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10644, - "end": 10644, - "loc": { - "start": { - "line": 304, - "column": 0 - }, - "end": { - "line": 304, - "column": 0 - } - } - } - ] -} \ No newline at end of file diff --git a/docs/ast/source/document-group/index.js.json b/docs/ast/source/document-group/index.js.json deleted file mode 100644 index 925ddf1c..00000000 --- a/docs/ast/source/document-group/index.js.json +++ /dev/null @@ -1,42769 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 13297, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 409, - "column": 0 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 13297, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 409, - "column": 0 - } - }, - "sourceType": "module", - "body": [ - { - "type": "ImportDeclaration", - "start": 15, - "end": 41, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 26 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 22, - "end": 27, - "loc": { - "start": { - "line": 3, - "column": 7 - }, - "end": { - "line": 3, - "column": 12 - } - }, - "local": { - "type": "Identifier", - "start": 22, - "end": 27, - "loc": { - "start": { - "line": 3, - "column": 7 - }, - "end": { - "line": 3, - "column": 12 - }, - "identifierName": "https" - }, - "name": "https" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 33, - "end": 40, - "loc": { - "start": { - "line": 3, - "column": 18 - }, - "end": { - "line": 3, - "column": 25 - } - }, - "extra": { - "rawValue": "https", - "raw": "'https'" - }, - "value": "https" - } - }, - { - "type": "ImportDeclaration", - "start": 42, - "end": 128, - "loc": { - "start": { - "line": 4, - "column": 0 - }, - "end": { - "line": 8, - "column": 19 - } - }, - "specifiers": [ - { - "type": "ImportSpecifier", - "start": 53, - "end": 68, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 17 - } - }, - "imported": { - "type": "Identifier", - "start": 53, - "end": 68, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "local": { - "type": "Identifier", - "start": 53, - "end": 68, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - } - }, - { - "type": "ImportSpecifier", - "start": 72, - "end": 84, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 14 - } - }, - "imported": { - "type": "Identifier", - "start": 72, - "end": 84, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 14 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "local": { - "type": "Identifier", - "start": 72, - "end": 84, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 14 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - } - }, - { - "type": "ImportSpecifier", - "start": 88, - "end": 107, - "loc": { - "start": { - "line": 7, - "column": 2 - }, - "end": { - "line": 7, - "column": 21 - } - }, - "imported": { - "type": "Identifier", - "start": 88, - "end": 107, - "loc": { - "start": { - "line": 7, - "column": 2 - }, - "end": { - "line": 7, - "column": 21 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "local": { - "type": "Identifier", - "start": 88, - "end": 107, - "loc": { - "start": { - "line": 7, - "column": 2 - }, - "end": { - "line": 7, - "column": 21 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 116, - "end": 127, - "loc": { - "start": { - "line": 8, - "column": 7 - }, - "end": { - "line": 8, - "column": 18 - } - }, - "extra": { - "rawValue": "../common", - "raw": "'../common'" - }, - "value": "../common" - } - }, - { - "type": "ImportDeclaration", - "start": 129, - "end": 164, - "loc": { - "start": { - "line": 9, - "column": 0 - }, - "end": { - "line": 9, - "column": 35 - } - }, - "specifiers": [ - { - "type": "ImportSpecifier", - "start": 138, - "end": 142, - "loc": { - "start": { - "line": 9, - "column": 9 - }, - "end": { - "line": 9, - "column": 13 - } - }, - "imported": { - "type": "Identifier", - "start": 138, - "end": 142, - "loc": { - "start": { - "line": 9, - "column": 9 - }, - "end": { - "line": 9, - "column": 13 - }, - "identifierName": "view" - }, - "name": "view" - }, - "local": { - "type": "Identifier", - "start": 138, - "end": 142, - "loc": { - "start": { - "line": 9, - "column": 9 - }, - "end": { - "line": 9, - "column": 13 - }, - "identifierName": "view" - }, - "name": "view" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 150, - "end": 163, - "loc": { - "start": { - "line": 9, - "column": 21 - }, - "end": { - "line": 9, - "column": 34 - } - }, - "extra": { - "rawValue": "../document", - "raw": "'../document'" - }, - "value": "../document" - } - }, - { - "type": "ImportDeclaration", - "start": 165, - "end": 205, - "loc": { - "start": { - "line": 10, - "column": 0 - }, - "end": { - "line": 10, - "column": 40 - } - }, - "specifiers": [ - { - "type": "ImportSpecifier", - "start": 174, - "end": 183, - "loc": { - "start": { - "line": 10, - "column": 9 - }, - "end": { - "line": 10, - "column": 18 - } - }, - "imported": { - "type": "Identifier", - "start": 174, - "end": 183, - "loc": { - "start": { - "line": 10, - "column": 9 - }, - "end": { - "line": 10, - "column": 18 - }, - "identifierName": "duplicate" - }, - "name": "duplicate" - }, - "local": { - "type": "Identifier", - "start": 174, - "end": 183, - "loc": { - "start": { - "line": 10, - "column": 9 - }, - "end": { - "line": 10, - "column": 18 - }, - "identifierName": "duplicate" - }, - "name": "duplicate" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 191, - "end": 204, - "loc": { - "start": { - "line": 10, - "column": 26 - }, - "end": { - "line": 10, - "column": 39 - } - }, - "extra": { - "rawValue": "../template", - "raw": "'../template'" - }, - "value": "../template" - }, - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewParams} data - view document with field extract payload\n * @return {Promise}\n ", - "start": 207, - "end": 374, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 16, - "column": 3 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 375, - "end": 587, - "loc": { - "start": { - "line": 17, - "column": 0 - }, - "end": { - "line": 28, - "column": 3 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 381, - "end": 586, - "loc": { - "start": { - "line": 17, - "column": 6 - }, - "end": { - "line": 28, - "column": 2 - } - }, - "id": { - "type": "Identifier", - "start": 381, - "end": 399, - "loc": { - "start": { - "line": 17, - "column": 6 - }, - "end": { - "line": 17, - "column": 24 - }, - "identifierName": "getDocumentDetails" - }, - "name": "getDocumentDetails", - "leadingComments": null - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 402, - "end": 586, - "loc": { - "start": { - "line": 17, - "column": 27 - }, - "end": { - "line": 28, - "column": 2 - } - }, - "id": { - "type": "Identifier", - "start": 381, - "end": 399, - "loc": { - "start": { - "line": 17, - "column": 6 - }, - "end": { - "line": 17, - "column": 24 - }, - "identifierName": "getDocumentDetails" - }, - "name": "getDocumentDetails", - "leadingComments": null - }, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 403, - "end": 416, - "loc": { - "start": { - "line": 17, - "column": 28 - }, - "end": { - "line": 17, - "column": 41 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 405, - "end": 407, - "loc": { - "start": { - "line": 17, - "column": 30 - }, - "end": { - "line": 17, - "column": 32 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 405, - "end": 407, - "loc": { - "start": { - "line": 17, - "column": 30 - }, - "end": { - "line": 17, - "column": 32 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 405, - "end": 407, - "loc": { - "start": { - "line": 17, - "column": 30 - }, - "end": { - "line": 17, - "column": 32 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 409, - "end": 414, - "loc": { - "start": { - "line": 17, - "column": 34 - }, - "end": { - "line": 17, - "column": 39 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 409, - "end": 414, - "loc": { - "start": { - "line": 17, - "column": 34 - }, - "end": { - "line": 17, - "column": 39 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 409, - "end": 414, - "loc": { - "start": { - "line": 17, - "column": 34 - }, - "end": { - "line": 17, - "column": 39 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - ], - "body": { - "type": "NewExpression", - "start": 421, - "end": 586, - "loc": { - "start": { - "line": 17, - "column": 46 - }, - "end": { - "line": 28, - "column": 2 - } - }, - "callee": { - "type": "Identifier", - "start": 425, - "end": 432, - "loc": { - "start": { - "line": 17, - "column": 50 - }, - "end": { - "line": 17, - "column": 57 - }, - "identifierName": "Promise" - }, - "name": "Promise" - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 433, - "end": 585, - "loc": { - "start": { - "line": 17, - "column": 58 - }, - "end": { - "line": 28, - "column": 1 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 434, - "end": 441, - "loc": { - "start": { - "line": 17, - "column": 59 - }, - "end": { - "line": 17, - "column": 66 - }, - "identifierName": "resolve" - }, - "name": "resolve" - }, - { - "type": "Identifier", - "start": 443, - "end": 449, - "loc": { - "start": { - "line": 17, - "column": 68 - }, - "end": { - "line": 17, - "column": 74 - }, - "identifierName": "reject" - }, - "name": "reject" - } - ], - "body": { - "type": "BlockStatement", - "start": 454, - "end": 585, - "loc": { - "start": { - "line": 17, - "column": 79 - }, - "end": { - "line": 28, - "column": 1 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 458, - "end": 583, - "loc": { - "start": { - "line": 18, - "column": 2 - }, - "end": { - "line": 27, - "column": 5 - } - }, - "expression": { - "type": "CallExpression", - "start": 458, - "end": 582, - "loc": { - "start": { - "line": 18, - "column": 2 - }, - "end": { - "line": 27, - "column": 4 - } - }, - "callee": { - "type": "Identifier", - "start": 458, - "end": 462, - "loc": { - "start": { - "line": 18, - "column": 2 - }, - "end": { - "line": 18, - "column": 6 - }, - "identifierName": "view" - }, - "name": "view" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 463, - "end": 487, - "loc": { - "start": { - "line": 18, - "column": 7 - }, - "end": { - "line": 21, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 469, - "end": 471, - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 19, - "column": 6 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 469, - "end": 471, - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 19, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 469, - "end": 471, - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 19, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 477, - "end": 482, - "loc": { - "start": { - "line": 20, - "column": 4 - }, - "end": { - "line": 20, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 477, - "end": 482, - "loc": { - "start": { - "line": 20, - "column": 4 - }, - "end": { - "line": 20, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 477, - "end": 482, - "loc": { - "start": { - "line": 20, - "column": 4 - }, - "end": { - "line": 20, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "ArrowFunctionExpression", - "start": 489, - "end": 581, - "loc": { - "start": { - "line": 21, - "column": 5 - }, - "end": { - "line": 27, - "column": 3 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 490, - "end": 493, - "loc": { - "start": { - "line": 21, - "column": 6 - }, - "end": { - "line": 21, - "column": 9 - }, - "identifierName": "err" - }, - "name": "err" - }, - { - "type": "Identifier", - "start": 495, - "end": 498, - "loc": { - "start": { - "line": 21, - "column": 11 - }, - "end": { - "line": 21, - "column": 14 - }, - "identifierName": "res" - }, - "name": "res" - } - ], - "body": { - "type": "BlockStatement", - "start": 503, - "end": 581, - "loc": { - "start": { - "line": 21, - "column": 19 - }, - "end": { - "line": 27, - "column": 3 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 509, - "end": 577, - "loc": { - "start": { - "line": 22, - "column": 4 - }, - "end": { - "line": 26, - "column": 5 - } - }, - "test": { - "type": "Identifier", - "start": 513, - "end": 516, - "loc": { - "start": { - "line": 22, - "column": 8 - }, - "end": { - "line": 22, - "column": 11 - }, - "identifierName": "err" - }, - "name": "err" - }, - "consequent": { - "type": "BlockStatement", - "start": 518, - "end": 544, - "loc": { - "start": { - "line": 22, - "column": 13 - }, - "end": { - "line": 24, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 526, - "end": 538, - "loc": { - "start": { - "line": 23, - "column": 6 - }, - "end": { - "line": 23, - "column": 18 - } - }, - "expression": { - "type": "CallExpression", - "start": 526, - "end": 537, - "loc": { - "start": { - "line": 23, - "column": 6 - }, - "end": { - "line": 23, - "column": 17 - } - }, - "callee": { - "type": "Identifier", - "start": 526, - "end": 532, - "loc": { - "start": { - "line": 23, - "column": 6 - }, - "end": { - "line": 23, - "column": 12 - }, - "identifierName": "reject" - }, - "name": "reject" - }, - "arguments": [ - { - "type": "Identifier", - "start": 533, - "end": 536, - "loc": { - "start": { - "line": 23, - "column": 13 - }, - "end": { - "line": 23, - "column": 16 - }, - "identifierName": "err" - }, - "name": "err" - } - ] - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 550, - "end": 577, - "loc": { - "start": { - "line": 24, - "column": 11 - }, - "end": { - "line": 26, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 558, - "end": 571, - "loc": { - "start": { - "line": 25, - "column": 6 - }, - "end": { - "line": 25, - "column": 19 - } - }, - "expression": { - "type": "CallExpression", - "start": 558, - "end": 570, - "loc": { - "start": { - "line": 25, - "column": 6 - }, - "end": { - "line": 25, - "column": 18 - } - }, - "callee": { - "type": "Identifier", - "start": 558, - "end": 565, - "loc": { - "start": { - "line": 25, - "column": 6 - }, - "end": { - "line": 25, - "column": 13 - }, - "identifierName": "resolve" - }, - "name": "resolve" - }, - "arguments": [ - { - "type": "Identifier", - "start": 566, - "end": 569, - "loc": { - "start": { - "line": 25, - "column": 14 - }, - "end": { - "line": 25, - "column": 17 - }, - "identifierName": "res" - }, - "name": "res" - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - } - } - ] - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewParams} data - view document with field extract payload\n * @return {Promise}\n ", - "start": 207, - "end": 374, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 16, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewResponse} document\n * @return {boolean} is there any field invite in given document\n ", - "start": 589, - "end": 723, - "loc": { - "start": { - "line": 30, - "column": 0 - }, - "end": { - "line": 34, - "column": 3 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 724, - "end": 794, - "loc": { - "start": { - "line": 35, - "column": 0 - }, - "end": { - "line": 35, - "column": 70 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 730, - "end": 793, - "loc": { - "start": { - "line": 35, - "column": 6 - }, - "end": { - "line": 35, - "column": 69 - } - }, - "id": { - "type": "Identifier", - "start": 730, - "end": 745, - "loc": { - "start": { - "line": 35, - "column": 6 - }, - "end": { - "line": 35, - "column": 21 - }, - "identifierName": "hasFieldInvites" - }, - "name": "hasFieldInvites", - "leadingComments": null - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 748, - "end": 793, - "loc": { - "start": { - "line": 35, - "column": 24 - }, - "end": { - "line": 35, - "column": 69 - } - }, - "id": { - "type": "Identifier", - "start": 730, - "end": 745, - "loc": { - "start": { - "line": 35, - "column": 6 - }, - "end": { - "line": 35, - "column": 21 - }, - "identifierName": "hasFieldInvites" - }, - "name": "hasFieldInvites", - "leadingComments": null - }, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 748, - "end": 756, - "loc": { - "start": { - "line": 35, - "column": 24 - }, - "end": { - "line": 35, - "column": 32 - }, - "identifierName": "document" - }, - "name": "document" - } - ], - "body": { - "type": "BinaryExpression", - "start": 760, - "end": 793, - "loc": { - "start": { - "line": 35, - "column": 36 - }, - "end": { - "line": 35, - "column": 69 - } - }, - "left": { - "type": "MemberExpression", - "start": 760, - "end": 789, - "loc": { - "start": { - "line": 35, - "column": 36 - }, - "end": { - "line": 35, - "column": 65 - } - }, - "object": { - "type": "MemberExpression", - "start": 760, - "end": 782, - "loc": { - "start": { - "line": 35, - "column": 36 - }, - "end": { - "line": 35, - "column": 58 - } - }, - "object": { - "type": "Identifier", - "start": 760, - "end": 768, - "loc": { - "start": { - "line": 35, - "column": 36 - }, - "end": { - "line": 35, - "column": 44 - }, - "identifierName": "document" - }, - "name": "document" - }, - "property": { - "type": "Identifier", - "start": 769, - "end": 782, - "loc": { - "start": { - "line": 35, - "column": 45 - }, - "end": { - "line": 35, - "column": 58 - }, - "identifierName": "field_invites" - }, - "name": "field_invites" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 783, - "end": 789, - "loc": { - "start": { - "line": 35, - "column": 59 - }, - "end": { - "line": 35, - "column": 65 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - }, - "operator": ">", - "right": { - "type": "NumericLiteral", - "start": 792, - "end": 793, - "loc": { - "start": { - "line": 35, - "column": 68 - }, - "end": { - "line": 35, - "column": 69 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewResponse} document\n * @return {boolean} is there any field invite in given document\n ", - "start": 589, - "end": 723, - "loc": { - "start": { - "line": 30, - "column": 0 - }, - "end": { - "line": 34, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewResponse} document\n * @return {boolean} is document a template or not\n ", - "start": 796, - "end": 916, - "loc": { - "start": { - "line": 37, - "column": 0 - }, - "end": { - "line": 41, - "column": 3 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 917, - "end": 975, - "loc": { - "start": { - "line": 42, - "column": 0 - }, - "end": { - "line": 42, - "column": 58 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 923, - "end": 974, - "loc": { - "start": { - "line": 42, - "column": 6 - }, - "end": { - "line": 42, - "column": 57 - } - }, - "id": { - "type": "Identifier", - "start": 923, - "end": 933, - "loc": { - "start": { - "line": 42, - "column": 6 - }, - "end": { - "line": 42, - "column": 16 - }, - "identifierName": "isTemplate" - }, - "name": "isTemplate", - "leadingComments": null - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 936, - "end": 974, - "loc": { - "start": { - "line": 42, - "column": 19 - }, - "end": { - "line": 42, - "column": 57 - } - }, - "id": { - "type": "Identifier", - "start": 923, - "end": 933, - "loc": { - "start": { - "line": 42, - "column": 6 - }, - "end": { - "line": 42, - "column": 16 - }, - "identifierName": "isTemplate" - }, - "name": "isTemplate", - "leadingComments": null - }, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 936, - "end": 944, - "loc": { - "start": { - "line": 42, - "column": 19 - }, - "end": { - "line": 42, - "column": 27 - }, - "identifierName": "document" - }, - "name": "document" - } - ], - "body": { - "type": "BinaryExpression", - "start": 948, - "end": 974, - "loc": { - "start": { - "line": 42, - "column": 31 - }, - "end": { - "line": 42, - "column": 57 - } - }, - "left": { - "type": "MemberExpression", - "start": 948, - "end": 965, - "loc": { - "start": { - "line": 42, - "column": 31 - }, - "end": { - "line": 42, - "column": 48 - } - }, - "object": { - "type": "Identifier", - "start": 948, - "end": 956, - "loc": { - "start": { - "line": 42, - "column": 31 - }, - "end": { - "line": 42, - "column": 39 - }, - "identifierName": "document" - }, - "name": "document" - }, - "property": { - "type": "Identifier", - "start": 957, - "end": 965, - "loc": { - "start": { - "line": 42, - "column": 40 - }, - "end": { - "line": 42, - "column": 48 - }, - "identifierName": "template" - }, - "name": "template" - }, - "computed": false - }, - "operator": "===", - "right": { - "type": "BooleanLiteral", - "start": 970, - "end": 974, - "loc": { - "start": { - "line": 42, - "column": 53 - }, - "end": { - "line": 42, - "column": 57 - } - }, - "value": true - } - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewResponse} document\n * @return {boolean} is document a template or not\n ", - "start": 796, - "end": 916, - "loc": { - "start": { - "line": 37, - "column": 0 - }, - "end": { - "line": 41, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {TemplateDuplicateParams} data - duplicate template payload\n * @return {Promise} resolves with id of new document\n ", - "start": 977, - "end": 1154, - "loc": { - "start": { - "line": 44, - "column": 0 - }, - "end": { - "line": 48, - "column": 3 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 1155, - "end": 1381, - "loc": { - "start": { - "line": 49, - "column": 0 - }, - "end": { - "line": 60, - "column": 3 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1161, - "end": 1380, - "loc": { - "start": { - "line": 49, - "column": 6 - }, - "end": { - "line": 60, - "column": 2 - } - }, - "id": { - "type": "Identifier", - "start": 1161, - "end": 1185, - "loc": { - "start": { - "line": 49, - "column": 6 - }, - "end": { - "line": 49, - "column": 30 - }, - "identifierName": "makeDocumentFromTemplate" - }, - "name": "makeDocumentFromTemplate", - "leadingComments": null - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 1188, - "end": 1380, - "loc": { - "start": { - "line": 49, - "column": 33 - }, - "end": { - "line": 60, - "column": 2 - } - }, - "id": { - "type": "Identifier", - "start": 1161, - "end": 1185, - "loc": { - "start": { - "line": 49, - "column": 6 - }, - "end": { - "line": 49, - "column": 30 - }, - "identifierName": "makeDocumentFromTemplate" - }, - "name": "makeDocumentFromTemplate", - "leadingComments": null - }, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 1189, - "end": 1202, - "loc": { - "start": { - "line": 49, - "column": 34 - }, - "end": { - "line": 49, - "column": 47 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1191, - "end": 1193, - "loc": { - "start": { - "line": 49, - "column": 36 - }, - "end": { - "line": 49, - "column": 38 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1191, - "end": 1193, - "loc": { - "start": { - "line": 49, - "column": 36 - }, - "end": { - "line": 49, - "column": 38 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 1191, - "end": 1193, - "loc": { - "start": { - "line": 49, - "column": 36 - }, - "end": { - "line": 49, - "column": 38 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1195, - "end": 1200, - "loc": { - "start": { - "line": 49, - "column": 40 - }, - "end": { - "line": 49, - "column": 45 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1195, - "end": 1200, - "loc": { - "start": { - "line": 49, - "column": 40 - }, - "end": { - "line": 49, - "column": 45 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 1195, - "end": 1200, - "loc": { - "start": { - "line": 49, - "column": 40 - }, - "end": { - "line": 49, - "column": 45 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - ], - "body": { - "type": "NewExpression", - "start": 1207, - "end": 1380, - "loc": { - "start": { - "line": 49, - "column": 52 - }, - "end": { - "line": 60, - "column": 2 - } - }, - "callee": { - "type": "Identifier", - "start": 1211, - "end": 1218, - "loc": { - "start": { - "line": 49, - "column": 56 - }, - "end": { - "line": 49, - "column": 63 - }, - "identifierName": "Promise" - }, - "name": "Promise" - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 1219, - "end": 1379, - "loc": { - "start": { - "line": 49, - "column": 64 - }, - "end": { - "line": 60, - "column": 1 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1220, - "end": 1227, - "loc": { - "start": { - "line": 49, - "column": 65 - }, - "end": { - "line": 49, - "column": 72 - }, - "identifierName": "resolve" - }, - "name": "resolve" - }, - { - "type": "Identifier", - "start": 1229, - "end": 1235, - "loc": { - "start": { - "line": 49, - "column": 74 - }, - "end": { - "line": 49, - "column": 80 - }, - "identifierName": "reject" - }, - "name": "reject" - } - ], - "body": { - "type": "BlockStatement", - "start": 1240, - "end": 1379, - "loc": { - "start": { - "line": 49, - "column": 85 - }, - "end": { - "line": 60, - "column": 1 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1244, - "end": 1377, - "loc": { - "start": { - "line": 50, - "column": 2 - }, - "end": { - "line": 59, - "column": 5 - } - }, - "expression": { - "type": "CallExpression", - "start": 1244, - "end": 1376, - "loc": { - "start": { - "line": 50, - "column": 2 - }, - "end": { - "line": 59, - "column": 4 - } - }, - "callee": { - "type": "Identifier", - "start": 1244, - "end": 1253, - "loc": { - "start": { - "line": 50, - "column": 2 - }, - "end": { - "line": 50, - "column": 11 - }, - "identifierName": "duplicate" - }, - "name": "duplicate" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 1254, - "end": 1278, - "loc": { - "start": { - "line": 50, - "column": 12 - }, - "end": { - "line": 53, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1260, - "end": 1262, - "loc": { - "start": { - "line": 51, - "column": 4 - }, - "end": { - "line": 51, - "column": 6 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1260, - "end": 1262, - "loc": { - "start": { - "line": 51, - "column": 4 - }, - "end": { - "line": 51, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 1260, - "end": 1262, - "loc": { - "start": { - "line": 51, - "column": 4 - }, - "end": { - "line": 51, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1268, - "end": 1273, - "loc": { - "start": { - "line": 52, - "column": 4 - }, - "end": { - "line": 52, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1268, - "end": 1273, - "loc": { - "start": { - "line": 52, - "column": 4 - }, - "end": { - "line": 52, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 1268, - "end": 1273, - "loc": { - "start": { - "line": 52, - "column": 4 - }, - "end": { - "line": 52, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "ArrowFunctionExpression", - "start": 1280, - "end": 1375, - "loc": { - "start": { - "line": 53, - "column": 5 - }, - "end": { - "line": 59, - "column": 3 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1281, - "end": 1284, - "loc": { - "start": { - "line": 53, - "column": 6 - }, - "end": { - "line": 53, - "column": 9 - }, - "identifierName": "err" - }, - "name": "err" - }, - { - "type": "Identifier", - "start": 1286, - "end": 1289, - "loc": { - "start": { - "line": 53, - "column": 11 - }, - "end": { - "line": 53, - "column": 14 - }, - "identifierName": "res" - }, - "name": "res" - } - ], - "body": { - "type": "BlockStatement", - "start": 1294, - "end": 1375, - "loc": { - "start": { - "line": 53, - "column": 19 - }, - "end": { - "line": 59, - "column": 3 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 1300, - "end": 1371, - "loc": { - "start": { - "line": 54, - "column": 4 - }, - "end": { - "line": 58, - "column": 5 - } - }, - "test": { - "type": "Identifier", - "start": 1304, - "end": 1307, - "loc": { - "start": { - "line": 54, - "column": 8 - }, - "end": { - "line": 54, - "column": 11 - }, - "identifierName": "err" - }, - "name": "err" - }, - "consequent": { - "type": "BlockStatement", - "start": 1309, - "end": 1335, - "loc": { - "start": { - "line": 54, - "column": 13 - }, - "end": { - "line": 56, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1317, - "end": 1329, - "loc": { - "start": { - "line": 55, - "column": 6 - }, - "end": { - "line": 55, - "column": 18 - } - }, - "expression": { - "type": "CallExpression", - "start": 1317, - "end": 1328, - "loc": { - "start": { - "line": 55, - "column": 6 - }, - "end": { - "line": 55, - "column": 17 - } - }, - "callee": { - "type": "Identifier", - "start": 1317, - "end": 1323, - "loc": { - "start": { - "line": 55, - "column": 6 - }, - "end": { - "line": 55, - "column": 12 - }, - "identifierName": "reject" - }, - "name": "reject" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1324, - "end": 1327, - "loc": { - "start": { - "line": 55, - "column": 13 - }, - "end": { - "line": 55, - "column": 16 - }, - "identifierName": "err" - }, - "name": "err" - } - ] - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 1341, - "end": 1371, - "loc": { - "start": { - "line": 56, - "column": 11 - }, - "end": { - "line": 58, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1349, - "end": 1365, - "loc": { - "start": { - "line": 57, - "column": 6 - }, - "end": { - "line": 57, - "column": 22 - } - }, - "expression": { - "type": "CallExpression", - "start": 1349, - "end": 1364, - "loc": { - "start": { - "line": 57, - "column": 6 - }, - "end": { - "line": 57, - "column": 21 - } - }, - "callee": { - "type": "Identifier", - "start": 1349, - "end": 1356, - "loc": { - "start": { - "line": 57, - "column": 6 - }, - "end": { - "line": 57, - "column": 13 - }, - "identifierName": "resolve" - }, - "name": "resolve" - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 1357, - "end": 1363, - "loc": { - "start": { - "line": 57, - "column": 14 - }, - "end": { - "line": 57, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 1357, - "end": 1360, - "loc": { - "start": { - "line": 57, - "column": 14 - }, - "end": { - "line": 57, - "column": 17 - }, - "identifierName": "res" - }, - "name": "res" - }, - "property": { - "type": "Identifier", - "start": 1361, - "end": 1363, - "loc": { - "start": { - "line": 57, - "column": 18 - }, - "end": { - "line": 57, - "column": 20 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": false - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - } - } - ] - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {TemplateDuplicateParams} data - duplicate template payload\n * @return {Promise} resolves with id of new document\n ", - "start": 977, - "end": 1154, - "loc": { - "start": { - "line": 44, - "column": 0 - }, - "end": { - "line": 48, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document Group methods\n ", - "start": 1384, - "end": 1417, - "loc": { - "start": { - "line": 63, - "column": 0 - }, - "end": { - "line": 65, - "column": 3 - } - } - } - ] - }, - { - "type": "Identifier", - "start": 1418, - "end": 13265, - "loc": { - "start": { - "line": 66, - "column": 0 - }, - "end": { - "line": 406, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 1424, - "end": 1437, - "loc": { - "start": { - "line": 66, - "column": 6 - }, - "end": { - "line": 66, - "column": 19 - }, - "identifierName": "DocumentGroup" - }, - "name": "DocumentGroup", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 1438, - "end": 13265, - "loc": { - "start": { - "line": 66, - "column": 20 - }, - "end": { - "line": 406, - "column": 1 - } - }, - "body": [ - { - "type": "ClassMethod", - "start": 2289, - "end": 3657, - "loc": { - "start": { - "line": 88, - "column": 2 - }, - "end": { - "line": 142, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2296, - "end": 2302, - "loc": { - "start": { - "line": 88, - "column": 9 - }, - "end": { - "line": 88, - "column": 15 - }, - "identifierName": "create" - }, - "name": "create" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 2304, - "end": 2345, - "loc": { - "start": { - "line": 88, - "column": 17 - }, - "end": { - "line": 92, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2310, - "end": 2315, - "loc": { - "start": { - "line": 89, - "column": 4 - }, - "end": { - "line": 89, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2310, - "end": 2315, - "loc": { - "start": { - "line": 89, - "column": 4 - }, - "end": { - "line": 89, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 2310, - "end": 2315, - "loc": { - "start": { - "line": 89, - "column": 4 - }, - "end": { - "line": 89, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 2321, - "end": 2324, - "loc": { - "start": { - "line": 90, - "column": 4 - }, - "end": { - "line": 90, - "column": 7 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2321, - "end": 2324, - "loc": { - "start": { - "line": 90, - "column": 4 - }, - "end": { - "line": 90, - "column": 7 - }, - "identifierName": "ids" - }, - "name": "ids" - }, - "value": { - "type": "Identifier", - "start": 2321, - "end": 2324, - "loc": { - "start": { - "line": 90, - "column": 4 - }, - "end": { - "line": 90, - "column": 7 - }, - "identifierName": "ids" - }, - "name": "ids" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 2330, - "end": 2340, - "loc": { - "start": { - "line": 91, - "column": 4 - }, - "end": { - "line": 91, - "column": 14 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2330, - "end": 2340, - "loc": { - "start": { - "line": 91, - "column": 4 - }, - "end": { - "line": 91, - "column": 14 - }, - "identifierName": "group_name" - }, - "name": "group_name" - }, - "value": { - "type": "Identifier", - "start": 2330, - "end": 2340, - "loc": { - "start": { - "line": 91, - "column": 4 - }, - "end": { - "line": 91, - "column": 14 - }, - "identifierName": "group_name" - }, - "name": "group_name" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 2347, - "end": 2355, - "loc": { - "start": { - "line": 92, - "column": 5 - }, - "end": { - "line": 92, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 2357, - "end": 3657, - "loc": { - "start": { - "line": 92, - "column": 15 - }, - "end": { - "line": 142, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 2363, - "end": 2887, - "loc": { - "start": { - "line": 93, - "column": 4 - }, - "end": { - "line": 111, - "column": 9 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2369, - "end": 2886, - "loc": { - "start": { - "line": 93, - "column": 10 - }, - "end": { - "line": 111, - "column": 8 - } - }, - "id": { - "type": "Identifier", - "start": 2369, - "end": 2384, - "loc": { - "start": { - "line": 93, - "column": 10 - }, - "end": { - "line": 93, - "column": 25 - }, - "identifierName": "realDocumentIDs" - }, - "name": "realDocumentIDs" - }, - "init": { - "type": "CallExpression", - "start": 2387, - "end": 2886, - "loc": { - "start": { - "line": 93, - "column": 28 - }, - "end": { - "line": 111, - "column": 8 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2387, - "end": 2401, - "loc": { - "start": { - "line": 93, - "column": 28 - }, - "end": { - "line": 94, - "column": 10 - } - }, - "object": { - "type": "Identifier", - "start": 2387, - "end": 2390, - "loc": { - "start": { - "line": 93, - "column": 28 - }, - "end": { - "line": 93, - "column": 31 - }, - "identifierName": "ids" - }, - "name": "ids" - }, - "property": { - "type": "Identifier", - "start": 2398, - "end": 2401, - "loc": { - "start": { - "line": 94, - "column": 7 - }, - "end": { - "line": 94, - "column": 10 - }, - "identifierName": "map" - }, - "name": "map" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 2402, - "end": 2885, - "loc": { - "start": { - "line": 94, - "column": 11 - }, - "end": { - "line": 111, - "column": 7 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 2402, - "end": 2404, - "loc": { - "start": { - "line": 94, - "column": 11 - }, - "end": { - "line": 94, - "column": 13 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "body": { - "type": "BlockStatement", - "start": 2408, - "end": 2885, - "loc": { - "start": { - "line": 94, - "column": 17 - }, - "end": { - "line": 111, - "column": 7 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 2418, - "end": 2877, - "loc": { - "start": { - "line": 95, - "column": 8 - }, - "end": { - "line": 110, - "column": 13 - } - }, - "argument": { - "type": "CallExpression", - "start": 2425, - "end": 2876, - "loc": { - "start": { - "line": 95, - "column": 15 - }, - "end": { - "line": 110, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2425, - "end": 2503, - "loc": { - "start": { - "line": 95, - "column": 15 - }, - "end": { - "line": 99, - "column": 15 - } - }, - "object": { - "type": "CallExpression", - "start": 2425, - "end": 2487, - "loc": { - "start": { - "line": 95, - "column": 15 - }, - "end": { - "line": 98, - "column": 10 - } - }, - "callee": { - "type": "Identifier", - "start": 2425, - "end": 2443, - "loc": { - "start": { - "line": 95, - "column": 15 - }, - "end": { - "line": 95, - "column": 33 - }, - "identifierName": "getDocumentDetails" - }, - "name": "getDocumentDetails" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 2444, - "end": 2486, - "loc": { - "start": { - "line": 95, - "column": 34 - }, - "end": { - "line": 98, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2456, - "end": 2458, - "loc": { - "start": { - "line": 96, - "column": 10 - }, - "end": { - "line": 96, - "column": 12 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2456, - "end": 2458, - "loc": { - "start": { - "line": 96, - "column": 10 - }, - "end": { - "line": 96, - "column": 12 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 2456, - "end": 2458, - "loc": { - "start": { - "line": 96, - "column": 10 - }, - "end": { - "line": 96, - "column": 12 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 2470, - "end": 2475, - "loc": { - "start": { - "line": 97, - "column": 10 - }, - "end": { - "line": 97, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2470, - "end": 2475, - "loc": { - "start": { - "line": 97, - "column": 10 - }, - "end": { - "line": 97, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 2470, - "end": 2475, - "loc": { - "start": { - "line": 97, - "column": 10 - }, - "end": { - "line": 97, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 2499, - "end": 2503, - "loc": { - "start": { - "line": 99, - "column": 11 - }, - "end": { - "line": 99, - "column": 15 - }, - "identifierName": "then" - }, - "name": "then" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 2504, - "end": 2875, - "loc": { - "start": { - "line": 99, - "column": 16 - }, - "end": { - "line": 110, - "column": 11 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 2504, - "end": 2512, - "loc": { - "start": { - "line": 99, - "column": 16 - }, - "end": { - "line": 99, - "column": 24 - }, - "identifierName": "document" - }, - "name": "document" - } - ], - "body": { - "type": "BlockStatement", - "start": 2516, - "end": 2875, - "loc": { - "start": { - "line": 99, - "column": 28 - }, - "end": { - "line": 110, - "column": 11 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 2530, - "end": 2863, - "loc": { - "start": { - "line": 100, - "column": 12 - }, - "end": { - "line": 109, - "column": 13 - } - }, - "test": { - "type": "CallExpression", - "start": 2534, - "end": 2554, - "loc": { - "start": { - "line": 100, - "column": 16 - }, - "end": { - "line": 100, - "column": 36 - } - }, - "callee": { - "type": "Identifier", - "start": 2534, - "end": 2544, - "loc": { - "start": { - "line": 100, - "column": 16 - }, - "end": { - "line": 100, - "column": 26 - }, - "identifierName": "isTemplate" - }, - "name": "isTemplate" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2545, - "end": 2553, - "loc": { - "start": { - "line": 100, - "column": 27 - }, - "end": { - "line": 100, - "column": 35 - }, - "identifierName": "document" - }, - "name": "document" - } - ] - }, - "consequent": { - "type": "BlockStatement", - "start": 2556, - "end": 2680, - "loc": { - "start": { - "line": 100, - "column": 38 - }, - "end": { - "line": 105, - "column": 13 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 2572, - "end": 2666, - "loc": { - "start": { - "line": 101, - "column": 14 - }, - "end": { - "line": 104, - "column": 17 - } - }, - "argument": { - "type": "CallExpression", - "start": 2579, - "end": 2665, - "loc": { - "start": { - "line": 101, - "column": 21 - }, - "end": { - "line": 104, - "column": 16 - } - }, - "callee": { - "type": "Identifier", - "start": 2579, - "end": 2603, - "loc": { - "start": { - "line": 101, - "column": 21 - }, - "end": { - "line": 101, - "column": 45 - }, - "identifierName": "makeDocumentFromTemplate" - }, - "name": "makeDocumentFromTemplate" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 2604, - "end": 2664, - "loc": { - "start": { - "line": 101, - "column": 46 - }, - "end": { - "line": 104, - "column": 15 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2622, - "end": 2624, - "loc": { - "start": { - "line": 102, - "column": 16 - }, - "end": { - "line": 102, - "column": 18 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2622, - "end": 2624, - "loc": { - "start": { - "line": 102, - "column": 16 - }, - "end": { - "line": 102, - "column": 18 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 2622, - "end": 2624, - "loc": { - "start": { - "line": 102, - "column": 16 - }, - "end": { - "line": 102, - "column": 18 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 2642, - "end": 2647, - "loc": { - "start": { - "line": 103, - "column": 16 - }, - "end": { - "line": 103, - "column": 21 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2642, - "end": 2647, - "loc": { - "start": { - "line": 103, - "column": 16 - }, - "end": { - "line": 103, - "column": 21 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 2642, - "end": 2647, - "loc": { - "start": { - "line": 103, - "column": 16 - }, - "end": { - "line": 103, - "column": 21 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "directives": [] - }, - "alternate": { - "type": "IfStatement", - "start": 2686, - "end": 2863, - "loc": { - "start": { - "line": 105, - "column": 19 - }, - "end": { - "line": 109, - "column": 13 - } - }, - "test": { - "type": "CallExpression", - "start": 2690, - "end": 2715, - "loc": { - "start": { - "line": 105, - "column": 23 - }, - "end": { - "line": 105, - "column": 48 - } - }, - "callee": { - "type": "Identifier", - "start": 2690, - "end": 2705, - "loc": { - "start": { - "line": 105, - "column": 23 - }, - "end": { - "line": 105, - "column": 38 - }, - "identifierName": "hasFieldInvites" - }, - "name": "hasFieldInvites" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2706, - "end": 2714, - "loc": { - "start": { - "line": 105, - "column": 39 - }, - "end": { - "line": 105, - "column": 47 - }, - "identifierName": "document" - }, - "name": "document" - } - ] - }, - "consequent": { - "type": "BlockStatement", - "start": 2717, - "end": 2817, - "loc": { - "start": { - "line": 105, - "column": 50 - }, - "end": { - "line": 107, - "column": 13 - } - }, - "body": [ - { - "type": "ThrowStatement", - "start": 2733, - "end": 2803, - "loc": { - "start": { - "line": 106, - "column": 14 - }, - "end": { - "line": 106, - "column": 84 - } - }, - "argument": { - "type": "NewExpression", - "start": 2739, - "end": 2802, - "loc": { - "start": { - "line": 106, - "column": 20 - }, - "end": { - "line": 106, - "column": 83 - } - }, - "callee": { - "type": "Identifier", - "start": 2743, - "end": 2748, - "loc": { - "start": { - "line": 106, - "column": 24 - }, - "end": { - "line": 106, - "column": 29 - }, - "identifierName": "Error" - }, - "name": "Error" - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2749, - "end": 2801, - "loc": { - "start": { - "line": 106, - "column": 30 - }, - "end": { - "line": 106, - "column": 82 - } - }, - "extra": { - "rawValue": "Document in the group must have no pending invites", - "raw": "'Document in the group must have no pending invites'" - }, - "value": "Document in the group must have no pending invites" - } - ] - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 2823, - "end": 2863, - "loc": { - "start": { - "line": 107, - "column": 19 - }, - "end": { - "line": 109, - "column": 13 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 2839, - "end": 2849, - "loc": { - "start": { - "line": 108, - "column": 14 - }, - "end": { - "line": 108, - "column": 24 - } - }, - "argument": { - "type": "Identifier", - "start": 2846, - "end": 2848, - "loc": { - "start": { - "line": 108, - "column": 21 - }, - "end": { - "line": 108, - "column": 23 - }, - "identifierName": "id" - }, - "name": "id" - } - } - ], - "directives": [] - } - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 2893, - "end": 3653, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 141, - "column": 9 - } - }, - "expression": { - "type": "CallExpression", - "start": 2893, - "end": 3652, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 141, - "column": 8 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2893, - "end": 3587, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 138, - "column": 12 - } - }, - "object": { - "type": "CallExpression", - "start": 2893, - "end": 3574, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 137, - "column": 8 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2893, - "end": 2933, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 114, - "column": 11 - } - }, - "object": { - "type": "CallExpression", - "start": 2893, - "end": 2921, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 113, - "column": 32 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2893, - "end": 2904, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 113, - "column": 15 - } - }, - "object": { - "type": "Identifier", - "start": 2893, - "end": 2900, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 113, - "column": 11 - }, - "identifierName": "Promise" - }, - "name": "Promise" - }, - "property": { - "type": "Identifier", - "start": 2901, - "end": 2904, - "loc": { - "start": { - "line": 113, - "column": 12 - }, - "end": { - "line": 113, - "column": 15 - }, - "identifierName": "all" - }, - "name": "all" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2905, - "end": 2920, - "loc": { - "start": { - "line": 113, - "column": 16 - }, - "end": { - "line": 113, - "column": 31 - }, - "identifierName": "realDocumentIDs" - }, - "name": "realDocumentIDs" - } - ] - }, - "property": { - "type": "Identifier", - "start": 2929, - "end": 2933, - "loc": { - "start": { - "line": 114, - "column": 7 - }, - "end": { - "line": 114, - "column": 11 - }, - "identifierName": "then" - }, - "name": "then" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 2934, - "end": 3573, - "loc": { - "start": { - "line": 114, - "column": 12 - }, - "end": { - "line": 137, - "column": 7 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 2934, - "end": 2946, - "loc": { - "start": { - "line": 114, - "column": 12 - }, - "end": { - "line": 114, - "column": 24 - }, - "identifierName": "document_ids" - }, - "name": "document_ids" - } - ], - "body": { - "type": "BlockStatement", - "start": 2950, - "end": 3573, - "loc": { - "start": { - "line": 114, - "column": 28 - }, - "end": { - "line": 137, - "column": 7 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 2960, - "end": 3051, - "loc": { - "start": { - "line": 115, - "column": 8 - }, - "end": { - "line": 118, - "column": 11 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2966, - "end": 3050, - "loc": { - "start": { - "line": 115, - "column": 14 - }, - "end": { - "line": 118, - "column": 10 - } - }, - "id": { - "type": "Identifier", - "start": 2966, - "end": 2974, - "loc": { - "start": { - "line": 115, - "column": 14 - }, - "end": { - "line": 115, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 2977, - "end": 3050, - "loc": { - "start": { - "line": 115, - "column": 25 - }, - "end": { - "line": 118, - "column": 10 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2977, - "end": 2991, - "loc": { - "start": { - "line": 115, - "column": 25 - }, - "end": { - "line": 115, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 2977, - "end": 2981, - "loc": { - "start": { - "line": 115, - "column": 25 - }, - "end": { - "line": 115, - "column": 29 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 2982, - "end": 2991, - "loc": { - "start": { - "line": 115, - "column": 30 - }, - "end": { - "line": 115, - "column": 39 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 2992, - "end": 3049, - "loc": { - "start": { - "line": 115, - "column": 40 - }, - "end": { - "line": 118, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3004, - "end": 3016, - "loc": { - "start": { - "line": 116, - "column": 10 - }, - "end": { - "line": 116, - "column": 22 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3004, - "end": 3016, - "loc": { - "start": { - "line": 116, - "column": 10 - }, - "end": { - "line": 116, - "column": 22 - }, - "identifierName": "document_ids" - }, - "name": "document_ids" - }, - "value": { - "type": "Identifier", - "start": 3004, - "end": 3016, - "loc": { - "start": { - "line": 116, - "column": 10 - }, - "end": { - "line": 116, - "column": 22 - }, - "identifierName": "document_ids" - }, - "name": "document_ids" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3028, - "end": 3038, - "loc": { - "start": { - "line": 117, - "column": 10 - }, - "end": { - "line": 117, - "column": 20 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3028, - "end": 3038, - "loc": { - "start": { - "line": 117, - "column": 10 - }, - "end": { - "line": 117, - "column": 20 - }, - "identifierName": "group_name" - }, - "name": "group_name" - }, - "value": { - "type": "Identifier", - "start": 3028, - "end": 3038, - "loc": { - "start": { - "line": 117, - "column": 10 - }, - "end": { - "line": 117, - "column": 20 - }, - "identifierName": "group_name" - }, - "name": "group_name" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 3061, - "end": 3516, - "loc": { - "start": { - "line": 120, - "column": 8 - }, - "end": { - "line": 133, - "column": 47 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3067, - "end": 3515, - "loc": { - "start": { - "line": 120, - "column": 14 - }, - "end": { - "line": 133, - "column": 46 - } - }, - "id": { - "type": "Identifier", - "start": 3067, - "end": 3070, - "loc": { - "start": { - "line": 120, - "column": 14 - }, - "end": { - "line": 120, - "column": 17 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 3073, - "end": 3515, - "loc": { - "start": { - "line": 120, - "column": 20 - }, - "end": { - "line": 133, - "column": 46 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3073, - "end": 3482, - "loc": { - "start": { - "line": 120, - "column": 20 - }, - "end": { - "line": 133, - "column": 13 - } - }, - "object": { - "type": "CallExpression", - "start": 3073, - "end": 3468, - "loc": { - "start": { - "line": 120, - "column": 20 - }, - "end": { - "line": 132, - "column": 40 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3073, - "end": 3097, - "loc": { - "start": { - "line": 120, - "column": 20 - }, - "end": { - "line": 121, - "column": 18 - } - }, - "object": { - "type": "Identifier", - "start": 3073, - "end": 3078, - "loc": { - "start": { - "line": 120, - "column": 20 - }, - "end": { - "line": 120, - "column": 25 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 3090, - "end": 3097, - "loc": { - "start": { - "line": 121, - "column": 11 - }, - "end": { - "line": 121, - "column": 18 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 3098, - "end": 3440, - "loc": { - "start": { - "line": 121, - "column": 19 - }, - "end": { - "line": 132, - "column": 12 - } - }, - "callee": { - "type": "Identifier", - "start": 3098, - "end": 3117, - "loc": { - "start": { - "line": 121, - "column": 19 - }, - "end": { - "line": 121, - "column": 38 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 3118, - "end": 3439, - "loc": { - "start": { - "line": 121, - "column": 39 - }, - "end": { - "line": 132, - "column": 11 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3132, - "end": 3146, - "loc": { - "start": { - "line": 122, - "column": 12 - }, - "end": { - "line": 122, - "column": 26 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3132, - "end": 3138, - "loc": { - "start": { - "line": 122, - "column": 12 - }, - "end": { - "line": 122, - "column": 18 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 3140, - "end": 3146, - "loc": { - "start": { - "line": 122, - "column": 20 - }, - "end": { - "line": 122, - "column": 26 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 3160, - "end": 3182, - "loc": { - "start": { - "line": 123, - "column": 12 - }, - "end": { - "line": 123, - "column": 34 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3160, - "end": 3164, - "loc": { - "start": { - "line": 123, - "column": 12 - }, - "end": { - "line": 123, - "column": 16 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 3166, - "end": 3182, - "loc": { - "start": { - "line": 123, - "column": 18 - }, - "end": { - "line": 123, - "column": 34 - } - }, - "extra": { - "rawValue": "/documentgroup", - "raw": "'/documentgroup'" - }, - "value": "/documentgroup" - } - }, - { - "type": "ObjectProperty", - "start": 3196, - "end": 3277, - "loc": { - "start": { - "line": 124, - "column": 12 - }, - "end": { - "line": 127, - "column": 13 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3196, - "end": 3209, - "loc": { - "start": { - "line": 124, - "column": 12 - }, - "end": { - "line": 124, - "column": 25 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 3211, - "end": 3277, - "loc": { - "start": { - "line": 124, - "column": 27 - }, - "end": { - "line": 127, - "column": 13 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3227, - "end": 3241, - "loc": { - "start": { - "line": 125, - "column": 14 - }, - "end": { - "line": 125, - "column": 28 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3227, - "end": 3231, - "loc": { - "start": { - "line": 125, - "column": 14 - }, - "end": { - "line": 125, - "column": 18 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 3233, - "end": 3241, - "loc": { - "start": { - "line": 125, - "column": 20 - }, - "end": { - "line": 125, - "column": 28 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 3257, - "end": 3262, - "loc": { - "start": { - "line": 126, - "column": 14 - }, - "end": { - "line": 126, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3257, - "end": 3262, - "loc": { - "start": { - "line": 126, - "column": 14 - }, - "end": { - "line": 126, - "column": 19 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 3257, - "end": 3262, - "loc": { - "start": { - "line": 126, - "column": 14 - }, - "end": { - "line": 126, - "column": 19 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 3291, - "end": 3426, - "loc": { - "start": { - "line": 128, - "column": 12 - }, - "end": { - "line": 131, - "column": 13 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3291, - "end": 3298, - "loc": { - "start": { - "line": 128, - "column": 12 - }, - "end": { - "line": 128, - "column": 19 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 3300, - "end": 3426, - "loc": { - "start": { - "line": 128, - "column": 21 - }, - "end": { - "line": 131, - "column": 13 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3316, - "end": 3350, - "loc": { - "start": { - "line": 129, - "column": 14 - }, - "end": { - "line": 129, - "column": 48 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 3316, - "end": 3330, - "loc": { - "start": { - "line": 129, - "column": 14 - }, - "end": { - "line": 129, - "column": 28 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 3332, - "end": 3350, - "loc": { - "start": { - "line": 129, - "column": 30 - }, - "end": { - "line": 129, - "column": 48 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 3366, - "end": 3411, - "loc": { - "start": { - "line": 130, - "column": 14 - }, - "end": { - "line": 130, - "column": 59 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 3366, - "end": 3382, - "loc": { - "start": { - "line": 130, - "column": 14 - }, - "end": { - "line": 130, - "column": 30 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 3384, - "end": 3411, - "loc": { - "start": { - "line": 130, - "column": 32 - }, - "end": { - "line": 130, - "column": 59 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3384, - "end": 3401, - "loc": { - "start": { - "line": 130, - "column": 32 - }, - "end": { - "line": 130, - "column": 49 - } - }, - "object": { - "type": "Identifier", - "start": 3384, - "end": 3390, - "loc": { - "start": { - "line": 130, - "column": 32 - }, - "end": { - "line": 130, - "column": 38 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 3391, - "end": 3401, - "loc": { - "start": { - "line": 130, - "column": 39 - }, - "end": { - "line": 130, - "column": 49 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 3402, - "end": 3410, - "loc": { - "start": { - "line": 130, - "column": 50 - }, - "end": { - "line": 130, - "column": 58 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 3442, - "end": 3467, - "loc": { - "start": { - "line": 132, - "column": 14 - }, - "end": { - "line": 132, - "column": 39 - } - }, - "callee": { - "type": "Identifier", - "start": 3442, - "end": 3457, - "loc": { - "start": { - "line": 132, - "column": 14 - }, - "end": { - "line": 132, - "column": 29 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3458, - "end": 3466, - "loc": { - "start": { - "line": 132, - "column": 30 - }, - "end": { - "line": 132, - "column": 38 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 3480, - "end": 3482, - "loc": { - "start": { - "line": 133, - "column": 11 - }, - "end": { - "line": 133, - "column": 13 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 3483, - "end": 3490, - "loc": { - "start": { - "line": 133, - "column": 14 - }, - "end": { - "line": 133, - "column": 21 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 3492, - "end": 3514, - "loc": { - "start": { - "line": 133, - "column": 23 - }, - "end": { - "line": 133, - "column": 45 - } - }, - "callee": { - "type": "Identifier", - "start": 3492, - "end": 3504, - "loc": { - "start": { - "line": 133, - "column": 23 - }, - "end": { - "line": 133, - "column": 35 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3505, - "end": 3513, - "loc": { - "start": { - "line": 133, - "column": 36 - }, - "end": { - "line": 133, - "column": 44 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 3526, - "end": 3546, - "loc": { - "start": { - "line": 135, - "column": 8 - }, - "end": { - "line": 135, - "column": 28 - } - }, - "expression": { - "type": "CallExpression", - "start": 3526, - "end": 3545, - "loc": { - "start": { - "line": 135, - "column": 8 - }, - "end": { - "line": 135, - "column": 27 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3526, - "end": 3535, - "loc": { - "start": { - "line": 135, - "column": 8 - }, - "end": { - "line": 135, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 3526, - "end": 3529, - "loc": { - "start": { - "line": 135, - "column": 8 - }, - "end": { - "line": 135, - "column": 11 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 3530, - "end": 3535, - "loc": { - "start": { - "line": 135, - "column": 12 - }, - "end": { - "line": 135, - "column": 17 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 3536, - "end": 3544, - "loc": { - "start": { - "line": 135, - "column": 18 - }, - "end": { - "line": 135, - "column": 26 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 3555, - "end": 3565, - "loc": { - "start": { - "line": 136, - "column": 8 - }, - "end": { - "line": 136, - "column": 18 - } - }, - "expression": { - "type": "CallExpression", - "start": 3555, - "end": 3564, - "loc": { - "start": { - "line": 136, - "column": 8 - }, - "end": { - "line": 136, - "column": 17 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3555, - "end": 3562, - "loc": { - "start": { - "line": 136, - "column": 8 - }, - "end": { - "line": 136, - "column": 15 - } - }, - "object": { - "type": "Identifier", - "start": 3555, - "end": 3558, - "loc": { - "start": { - "line": 136, - "column": 8 - }, - "end": { - "line": 136, - "column": 11 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 3559, - "end": 3562, - "loc": { - "start": { - "line": 136, - "column": 12 - }, - "end": { - "line": 136, - "column": 15 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - } - } - ] - }, - "property": { - "type": "Identifier", - "start": 3582, - "end": 3587, - "loc": { - "start": { - "line": 138, - "column": 7 - }, - "end": { - "line": 138, - "column": 12 - }, - "identifierName": "catch" - }, - "name": "catch" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 3588, - "end": 3651, - "loc": { - "start": { - "line": 138, - "column": 13 - }, - "end": { - "line": 141, - "column": 7 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 3588, - "end": 3591, - "loc": { - "start": { - "line": 138, - "column": 13 - }, - "end": { - "line": 138, - "column": 16 - }, - "identifierName": "err" - }, - "name": "err" - } - ], - "body": { - "type": "BlockStatement", - "start": 3595, - "end": 3651, - "loc": { - "start": { - "line": 138, - "column": 20 - }, - "end": { - "line": 141, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 3605, - "end": 3627, - "loc": { - "start": { - "line": 139, - "column": 8 - }, - "end": { - "line": 139, - "column": 30 - } - }, - "expression": { - "type": "CallExpression", - "start": 3605, - "end": 3626, - "loc": { - "start": { - "line": 139, - "column": 8 - }, - "end": { - "line": 139, - "column": 29 - } - }, - "callee": { - "type": "Identifier", - "start": 3605, - "end": 3613, - "loc": { - "start": { - "line": 139, - "column": 8 - }, - "end": { - "line": 139, - "column": 16 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 3614, - "end": 3625, - "loc": { - "start": { - "line": 139, - "column": 17 - }, - "end": { - "line": 139, - "column": 28 - } - }, - "object": { - "type": "Identifier", - "start": 3614, - "end": 3617, - "loc": { - "start": { - "line": 139, - "column": 17 - }, - "end": { - "line": 139, - "column": 20 - }, - "identifierName": "err" - }, - "name": "err" - }, - "property": { - "type": "Identifier", - "start": 3618, - "end": 3625, - "loc": { - "start": { - "line": 139, - "column": 21 - }, - "end": { - "line": 139, - "column": 28 - }, - "identifierName": "message" - }, - "name": "message" - }, - "computed": false - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 3636, - "end": 3643, - "loc": { - "start": { - "line": 140, - "column": 8 - }, - "end": { - "line": 140, - "column": 15 - } - }, - "argument": null - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Create document group payload\n * @typedef {Object} DocumentGroupCreateParams\n * @property {string} token - your auth token\n * @property {string[]} ids - array of document or template ids for document group creation\n * @property {string} group_name - new name of document group\n ", - "start": 1443, - "end": 1742, - "loc": { - "start": { - "line": 68, - "column": 2 - }, - "end": { - "line": 74, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document group response data\n * @typedef {Object} DocumentGroupCreateResponse\n * @property {string} id - document group unique id\n ", - "start": 1746, - "end": 1901, - "loc": { - "start": { - "line": 76, - "column": 2 - }, - "end": { - "line": 80, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates document group with specified documents or templates.\n * At least one document or template must contain fields. Documents should not contain pending invites.\n * @param {DocumentGroupCreateParams} data - create document group payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupCreateResponse)} [callback] - error first node.js callback\n ", - "start": 1905, - "end": 2286, - "loc": { - "start": { - "line": 82, - "column": 2 - }, - "end": { - "line": 87, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document Group view payload\n * @typedef {Object} DocumentGroupViewParams\n * @property {string} id - id of specific Document Group\n * @property {string} token - your auth token\n ", - "start": 3661, - "end": 3857, - "loc": { - "start": { - "line": 144, - "column": 2 - }, - "end": { - "line": 149, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Details of single Document in group\n * @typedef {Object} DocumentGroupItem\n * @property {string} id - an ID of Document\n * @property {string} document_name - a name of Document\n * @property {string} origin_document_id - an ID of Document origin\n * @property {boolean} has_credit_card_number - Document has Credit Card number attached\n * @property {boolean} has_unassigned_field - Document has unassigned field(s)\n * @property {DocumentThumbnails} thumbnail - thumbnail urls with different sizes (small, medium, large)\n * @property {string[]} roles - list of template signer roles\n ", - "start": 3861, - "end": 4471, - "loc": { - "start": { - "line": 151, - "column": 2 - }, - "end": { - "line": 161, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group view response data\n * @typedef {Object} DocumentGroupViewResponse\n * @property {string} id - an ID of Document Group\n * @property {string} group_name - a name of Document Group\n * @property {DocumentGroupItem[]} documents - each single document details\n * @property {?string} invite_id - an ID of active invite\n * @property {Object[]} originator_organization_settings - originator organization settings\n ", - "start": 4475, - "end": 4919, - "loc": { - "start": { - "line": 163, - "column": 2 - }, - "end": { - "line": 171, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves a Document Group detailed data\n * @param {DocumentGroupViewParams} data - view Document Group details payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupViewResponse)} [callback] - error first node.js callback\n ", - "start": 4923, - "end": 5179, - "loc": { - "start": { - "line": 173, - "column": 2 - }, - "end": { - "line": 177, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 5182, - "end": 5506, - "loc": { - "start": { - "line": 178, - "column": 2 - }, - "end": { - "line": 190, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5189, - "end": 5193, - "loc": { - "start": { - "line": 178, - "column": 9 - }, - "end": { - "line": 178, - "column": 13 - }, - "identifierName": "view" - }, - "name": "view" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 5195, - "end": 5208, - "loc": { - "start": { - "line": 178, - "column": 15 - }, - "end": { - "line": 178, - "column": 28 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5197, - "end": 5199, - "loc": { - "start": { - "line": 178, - "column": 17 - }, - "end": { - "line": 178, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5197, - "end": 5199, - "loc": { - "start": { - "line": 178, - "column": 17 - }, - "end": { - "line": 178, - "column": 19 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 5197, - "end": 5199, - "loc": { - "start": { - "line": 178, - "column": 17 - }, - "end": { - "line": 178, - "column": 19 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 5201, - "end": 5206, - "loc": { - "start": { - "line": 178, - "column": 21 - }, - "end": { - "line": 178, - "column": 26 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5201, - "end": 5206, - "loc": { - "start": { - "line": 178, - "column": 21 - }, - "end": { - "line": 178, - "column": 26 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 5201, - "end": 5206, - "loc": { - "start": { - "line": 178, - "column": 21 - }, - "end": { - "line": 178, - "column": 26 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 5210, - "end": 5218, - "loc": { - "start": { - "line": 178, - "column": 30 - }, - "end": { - "line": 178, - "column": 38 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 5220, - "end": 5506, - "loc": { - "start": { - "line": 178, - "column": 40 - }, - "end": { - "line": 190, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 5226, - "end": 5502, - "loc": { - "start": { - "line": 179, - "column": 4 - }, - "end": { - "line": 189, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 5226, - "end": 5501, - "loc": { - "start": { - "line": 179, - "column": 4 - }, - "end": { - "line": 189, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5226, - "end": 5499, - "loc": { - "start": { - "line": 179, - "column": 4 - }, - "end": { - "line": 189, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 5226, - "end": 5488, - "loc": { - "start": { - "line": 179, - "column": 4 - }, - "end": { - "line": 188, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5226, - "end": 5455, - "loc": { - "start": { - "line": 179, - "column": 4 - }, - "end": { - "line": 188, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 5226, - "end": 5445, - "loc": { - "start": { - "line": 179, - "column": 4 - }, - "end": { - "line": 187, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5226, - "end": 5246, - "loc": { - "start": { - "line": 179, - "column": 4 - }, - "end": { - "line": 180, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 5226, - "end": 5231, - "loc": { - "start": { - "line": 179, - "column": 4 - }, - "end": { - "line": 179, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 5239, - "end": 5246, - "loc": { - "start": { - "line": 180, - "column": 7 - }, - "end": { - "line": 180, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 5247, - "end": 5417, - "loc": { - "start": { - "line": 180, - "column": 15 - }, - "end": { - "line": 187, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 5247, - "end": 5266, - "loc": { - "start": { - "line": 180, - "column": 15 - }, - "end": { - "line": 180, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 5267, - "end": 5416, - "loc": { - "start": { - "line": 180, - "column": 35 - }, - "end": { - "line": 187, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5277, - "end": 5290, - "loc": { - "start": { - "line": 181, - "column": 8 - }, - "end": { - "line": 181, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5277, - "end": 5283, - "loc": { - "start": { - "line": 181, - "column": 8 - }, - "end": { - "line": 181, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 5285, - "end": 5290, - "loc": { - "start": { - "line": 181, - "column": 16 - }, - "end": { - "line": 181, - "column": 21 - } - }, - "extra": { - "rawValue": "GET", - "raw": "'GET'" - }, - "value": "GET" - } - }, - { - "type": "ObjectProperty", - "start": 5300, - "end": 5328, - "loc": { - "start": { - "line": 182, - "column": 8 - }, - "end": { - "line": 182, - "column": 36 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5300, - "end": 5304, - "loc": { - "start": { - "line": 182, - "column": 8 - }, - "end": { - "line": 182, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 5306, - "end": 5328, - "loc": { - "start": { - "line": 182, - "column": 14 - }, - "end": { - "line": 182, - "column": 36 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 5324, - "end": 5326, - "loc": { - "start": { - "line": 182, - "column": 32 - }, - "end": { - "line": 182, - "column": 34 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 5307, - "end": 5322, - "loc": { - "start": { - "line": 182, - "column": 15 - }, - "end": { - "line": 182, - "column": 30 - } - }, - "value": { - "raw": "/documentgroup/", - "cooked": "/documentgroup/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 5327, - "end": 5327, - "loc": { - "start": { - "line": 182, - "column": 35 - }, - "end": { - "line": 182, - "column": 35 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 5338, - "end": 5407, - "loc": { - "start": { - "line": 183, - "column": 8 - }, - "end": { - "line": 186, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5338, - "end": 5351, - "loc": { - "start": { - "line": 183, - "column": 8 - }, - "end": { - "line": 183, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 5353, - "end": 5407, - "loc": { - "start": { - "line": 183, - "column": 23 - }, - "end": { - "line": 186, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5365, - "end": 5379, - "loc": { - "start": { - "line": 184, - "column": 10 - }, - "end": { - "line": 184, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5365, - "end": 5369, - "loc": { - "start": { - "line": 184, - "column": 10 - }, - "end": { - "line": 184, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 5371, - "end": 5379, - "loc": { - "start": { - "line": 184, - "column": 16 - }, - "end": { - "line": 184, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 5391, - "end": 5396, - "loc": { - "start": { - "line": 185, - "column": 10 - }, - "end": { - "line": 185, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5391, - "end": 5396, - "loc": { - "start": { - "line": 185, - "column": 10 - }, - "end": { - "line": 185, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 5391, - "end": 5396, - "loc": { - "start": { - "line": 185, - "column": 10 - }, - "end": { - "line": 185, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 5419, - "end": 5444, - "loc": { - "start": { - "line": 187, - "column": 10 - }, - "end": { - "line": 187, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 5419, - "end": 5434, - "loc": { - "start": { - "line": 187, - "column": 10 - }, - "end": { - "line": 187, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 5435, - "end": 5443, - "loc": { - "start": { - "line": 187, - "column": 26 - }, - "end": { - "line": 187, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 5453, - "end": 5455, - "loc": { - "start": { - "line": 188, - "column": 7 - }, - "end": { - "line": 188, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 5456, - "end": 5463, - "loc": { - "start": { - "line": 188, - "column": 10 - }, - "end": { - "line": 188, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 5465, - "end": 5487, - "loc": { - "start": { - "line": 188, - "column": 19 - }, - "end": { - "line": 188, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 5465, - "end": 5477, - "loc": { - "start": { - "line": 188, - "column": 19 - }, - "end": { - "line": 188, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 5478, - "end": 5486, - "loc": { - "start": { - "line": 188, - "column": 32 - }, - "end": { - "line": 188, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 5496, - "end": 5499, - "loc": { - "start": { - "line": 189, - "column": 7 - }, - "end": { - "line": 189, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document Group view payload\n * @typedef {Object} DocumentGroupViewParams\n * @property {string} id - id of specific Document Group\n * @property {string} token - your auth token\n ", - "start": 3661, - "end": 3857, - "loc": { - "start": { - "line": 144, - "column": 2 - }, - "end": { - "line": 149, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Details of single Document in group\n * @typedef {Object} DocumentGroupItem\n * @property {string} id - an ID of Document\n * @property {string} document_name - a name of Document\n * @property {string} origin_document_id - an ID of Document origin\n * @property {boolean} has_credit_card_number - Document has Credit Card number attached\n * @property {boolean} has_unassigned_field - Document has unassigned field(s)\n * @property {DocumentThumbnails} thumbnail - thumbnail urls with different sizes (small, medium, large)\n * @property {string[]} roles - list of template signer roles\n ", - "start": 3861, - "end": 4471, - "loc": { - "start": { - "line": 151, - "column": 2 - }, - "end": { - "line": 161, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group view response data\n * @typedef {Object} DocumentGroupViewResponse\n * @property {string} id - an ID of Document Group\n * @property {string} group_name - a name of Document Group\n * @property {DocumentGroupItem[]} documents - each single document details\n * @property {?string} invite_id - an ID of active invite\n * @property {Object[]} originator_organization_settings - originator organization settings\n ", - "start": 4475, - "end": 4919, - "loc": { - "start": { - "line": 163, - "column": 2 - }, - "end": { - "line": 171, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves a Document Group detailed data\n * @param {DocumentGroupViewParams} data - view Document Group details payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupViewResponse)} [callback] - error first node.js callback\n ", - "start": 4923, - "end": 5179, - "loc": { - "start": { - "line": 173, - "column": 2 - }, - "end": { - "line": 177, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document Group invite email configurations\n * @typedef {Object} DocumentGroupInviteEmail\n * @property {string} email - signer's email\n * @property {string} [subject] - subject of invitation email\n * @property {string} [message] - content of invitation email\n * @property {number} [expiration_days] - expiration of invite in days\n * @property {number} [reminder] - number of days in which to remind about invitation via email\n ", - "start": 5510, - "end": 5961, - "loc": { - "start": { - "line": 192, - "column": 2 - }, - "end": { - "line": 200, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group signer's authentication with password config\n * @typedef {Object} DocumentGroupInviteAuthenticationPassword\n * @property {string} type - set `password` to authenticate signer with password\n * @property {string} value - authentication password value\n ", - "start": 5965, - "end": 6249, - "loc": { - "start": { - "line": 202, - "column": 2 - }, - "end": { - "line": 207, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group signer's authentication with phone call config\n * @typedef {Object} DocumentGroupInviteAuthenticationPhoneCall\n * @property {string} type - set `phone` to authenticate signer with phone call\n * @property {string} method - set `phone_call` to authenticate signer with phone call\n * @property {string} phone - phone number\n ", - "start": 6253, - "end": 6611, - "loc": { - "start": { - "line": 209, - "column": 2 - }, - "end": { - "line": 215, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group signer's authentication with phone SMS config\n * @typedef {Object} DocumentGroupInviteAuthenticationPhoneSMS\n * @property {string} type - set `phone` to authenticate signer with phone SMS\n * @property {string} method - set `sms` to authenticate signer with phone SMS\n * @property {string} phone - phone number\n ", - "start": 6615, - "end": 6962, - "loc": { - "start": { - "line": 217, - "column": 2 - }, - "end": { - "line": 223, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite action configurations\n * @typedef {Object} DocumentGroupInviteAction\n * @property {string} email - signer's email\n * @property {string} role_name - signer's role name\n * @property {string} action - name of action with document in signing step\n * @property {string} document_id - ID of document in specific signing step\n * @property {string} [allow_reassign] - allow reassigning of signer\n * @property {string} [decline_by_signature] - signer can decline invite\n * @property {DocumentGroupInviteAuthenticationPassword|DocumentGroupInviteAuthenticationPhoneCall|DocumentGroupInviteAuthenticationPhoneSMS} [authentication] - signer's authentication configuration\n ", - "start": 6966, - "end": 7678, - "loc": { - "start": { - "line": 225, - "column": 2 - }, - "end": { - "line": 235, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite step configurations\n * @typedef {Object} DocumentGroupInviteStep\n * @property {number} order - an order number of invitation step\n * @property {DocumentGroupInviteEmail[]} [invite_emails] - Document Group invite emails settings\n * @property {DocumentGroupInviteAction[]} invite_actions - Document Group invite actions settings\n ", - "start": 7682, - "end": 8053, - "loc": { - "start": { - "line": 237, - "column": 2 - }, - "end": { - "line": 243, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite completion email configuration\n * @typedef {Object} DocumentGroupInviteCompletionEmailConfig\n * @property {string} email - email for completion (only from the signers and document owner emails)\n * @property {number} disable_document_attachment - disable attachment of signed document group to completion email (values: 0|1)\n ", - "start": 8057, - "end": 8423, - "loc": { - "start": { - "line": 245, - "column": 2 - }, - "end": { - "line": 250, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite settings\n * @typedef {Object} DocumentGroupInviteSettings\n * @property {DocumentGroupInviteStep[]} invite_steps - Document Group invite steps settings\n * @property {DocumentGroupInviteCompletionEmailConfig[]} [completion_emails] - set of completion email configutrations\n ", - "start": 8427, - "end": 8740, - "loc": { - "start": { - "line": 252, - "column": 2 - }, - "end": { - "line": 257, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create Document Group invite payload\n * @typedef {Object} DocumentGroupInviteParams\n * @property {string} id - ID of specific Document Group\n * @property {DocumentGroupInviteSettings} data - Document Group invite settings data\n * @property {string} token - your auth token\n ", - "start": 8744, - "end": 9039, - "loc": { - "start": { - "line": 259, - "column": 2 - }, - "end": { - "line": 265, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create Document Group invite response data\n * @typedef {Object} DocumentGroupInviteResponse\n * @property {string} id - ID of created Document Group invitation\n * @property {?string} pending_invite_link - pending invite link\n ", - "start": 9043, - "end": 9287, - "loc": { - "start": { - "line": 267, - "column": 2 - }, - "end": { - "line": 272, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates an invite to sign a Document Group\n * @param {DocumentGroupInviteParams} data - create Document Group invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupInviteResponse)} [callback] - error first node.js callback\n ", - "start": 9291, - "end": 9554, - "loc": { - "start": { - "line": 274, - "column": 2 - }, - "end": { - "line": 278, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 9557, - "end": 10254, - "loc": { - "start": { - "line": 279, - "column": 2 - }, - "end": { - "line": 311, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9564, - "end": 9570, - "loc": { - "start": { - "line": 279, - "column": 9 - }, - "end": { - "line": 279, - "column": 15 - }, - "identifierName": "invite" - }, - "name": "invite" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 9572, - "end": 9606, - "loc": { - "start": { - "line": 279, - "column": 17 - }, - "end": { - "line": 283, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 9578, - "end": 9580, - "loc": { - "start": { - "line": 280, - "column": 4 - }, - "end": { - "line": 280, - "column": 6 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9578, - "end": 9580, - "loc": { - "start": { - "line": 280, - "column": 4 - }, - "end": { - "line": 280, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 9578, - "end": 9580, - "loc": { - "start": { - "line": 280, - "column": 4 - }, - "end": { - "line": 280, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 9586, - "end": 9590, - "loc": { - "start": { - "line": 281, - "column": 4 - }, - "end": { - "line": 281, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9586, - "end": 9590, - "loc": { - "start": { - "line": 281, - "column": 4 - }, - "end": { - "line": 281, - "column": 8 - }, - "identifierName": "data" - }, - "name": "data" - }, - "value": { - "type": "Identifier", - "start": 9586, - "end": 9590, - "loc": { - "start": { - "line": 281, - "column": 4 - }, - "end": { - "line": 281, - "column": 8 - }, - "identifierName": "data" - }, - "name": "data" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 9596, - "end": 9601, - "loc": { - "start": { - "line": 282, - "column": 4 - }, - "end": { - "line": 282, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9596, - "end": 9601, - "loc": { - "start": { - "line": 282, - "column": 4 - }, - "end": { - "line": 282, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 9596, - "end": 9601, - "loc": { - "start": { - "line": 282, - "column": 4 - }, - "end": { - "line": 282, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 9608, - "end": 9616, - "loc": { - "start": { - "line": 283, - "column": 5 - }, - "end": { - "line": 283, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 9618, - "end": 10254, - "loc": { - "start": { - "line": 283, - "column": 15 - }, - "end": { - "line": 311, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 9624, - "end": 9690, - "loc": { - "start": { - "line": 284, - "column": 4 - }, - "end": { - "line": 287, - "column": 13 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 9630, - "end": 9689, - "loc": { - "start": { - "line": 284, - "column": 10 - }, - "end": { - "line": 287, - "column": 12 - } - }, - "id": { - "type": "ObjectPattern", - "start": 9630, - "end": 9682, - "loc": { - "start": { - "line": 284, - "column": 10 - }, - "end": { - "line": 287, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 9638, - "end": 9650, - "loc": { - "start": { - "line": 285, - "column": 6 - }, - "end": { - "line": 285, - "column": 18 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9638, - "end": 9650, - "loc": { - "start": { - "line": 285, - "column": 6 - }, - "end": { - "line": 285, - "column": 18 - }, - "identifierName": "invite_steps" - }, - "name": "invite_steps" - }, - "value": { - "type": "Identifier", - "start": 9638, - "end": 9650, - "loc": { - "start": { - "line": 285, - "column": 6 - }, - "end": { - "line": 285, - "column": 18 - }, - "identifierName": "invite_steps" - }, - "name": "invite_steps" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 9658, - "end": 9675, - "loc": { - "start": { - "line": 286, - "column": 6 - }, - "end": { - "line": 286, - "column": 23 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9658, - "end": 9675, - "loc": { - "start": { - "line": 286, - "column": 6 - }, - "end": { - "line": 286, - "column": 23 - }, - "identifierName": "completion_emails" - }, - "name": "completion_emails" - }, - "value": { - "type": "Identifier", - "start": 9658, - "end": 9675, - "loc": { - "start": { - "line": 286, - "column": 6 - }, - "end": { - "line": 286, - "column": 23 - }, - "identifierName": "completion_emails" - }, - "name": "completion_emails" - }, - "extra": { - "shorthand": true - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 9685, - "end": 9689, - "loc": { - "start": { - "line": 287, - "column": 8 - }, - "end": { - "line": 287, - "column": 12 - }, - "identifierName": "data" - }, - "name": "data" - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 9696, - "end": 9782, - "loc": { - "start": { - "line": 289, - "column": 4 - }, - "end": { - "line": 292, - "column": 7 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 9702, - "end": 9781, - "loc": { - "start": { - "line": 289, - "column": 10 - }, - "end": { - "line": 292, - "column": 6 - } - }, - "id": { - "type": "Identifier", - "start": 9702, - "end": 9710, - "loc": { - "start": { - "line": 289, - "column": 10 - }, - "end": { - "line": 289, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 9713, - "end": 9781, - "loc": { - "start": { - "line": 289, - "column": 21 - }, - "end": { - "line": 292, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9713, - "end": 9727, - "loc": { - "start": { - "line": 289, - "column": 21 - }, - "end": { - "line": 289, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 9713, - "end": 9717, - "loc": { - "start": { - "line": 289, - "column": 21 - }, - "end": { - "line": 289, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 9718, - "end": 9727, - "loc": { - "start": { - "line": 289, - "column": 26 - }, - "end": { - "line": 289, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 9728, - "end": 9780, - "loc": { - "start": { - "line": 289, - "column": 36 - }, - "end": { - "line": 292, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 9736, - "end": 9748, - "loc": { - "start": { - "line": 290, - "column": 6 - }, - "end": { - "line": 290, - "column": 18 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9736, - "end": 9748, - "loc": { - "start": { - "line": 290, - "column": 6 - }, - "end": { - "line": 290, - "column": 18 - }, - "identifierName": "invite_steps" - }, - "name": "invite_steps" - }, - "value": { - "type": "Identifier", - "start": 9736, - "end": 9748, - "loc": { - "start": { - "line": 290, - "column": 6 - }, - "end": { - "line": 290, - "column": 18 - }, - "identifierName": "invite_steps" - }, - "name": "invite_steps" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 9756, - "end": 9773, - "loc": { - "start": { - "line": 291, - "column": 6 - }, - "end": { - "line": 291, - "column": 23 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9756, - "end": 9773, - "loc": { - "start": { - "line": 291, - "column": 6 - }, - "end": { - "line": 291, - "column": 23 - }, - "identifierName": "completion_emails" - }, - "name": "completion_emails" - }, - "value": { - "type": "Identifier", - "start": 9756, - "end": 9773, - "loc": { - "start": { - "line": 291, - "column": 6 - }, - "end": { - "line": 291, - "column": 23 - }, - "identifierName": "completion_emails" - }, - "name": "completion_emails" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 9788, - "end": 10209, - "loc": { - "start": { - "line": 294, - "column": 4 - }, - "end": { - "line": 307, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 9794, - "end": 10208, - "loc": { - "start": { - "line": 294, - "column": 10 - }, - "end": { - "line": 307, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 9794, - "end": 9797, - "loc": { - "start": { - "line": 294, - "column": 10 - }, - "end": { - "line": 294, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 9800, - "end": 10208, - "loc": { - "start": { - "line": 294, - "column": 16 - }, - "end": { - "line": 307, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9800, - "end": 10175, - "loc": { - "start": { - "line": 294, - "column": 16 - }, - "end": { - "line": 307, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 9800, - "end": 10165, - "loc": { - "start": { - "line": 294, - "column": 16 - }, - "end": { - "line": 306, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9800, - "end": 9820, - "loc": { - "start": { - "line": 294, - "column": 16 - }, - "end": { - "line": 295, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 9800, - "end": 9805, - "loc": { - "start": { - "line": 294, - "column": 16 - }, - "end": { - "line": 294, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 9813, - "end": 9820, - "loc": { - "start": { - "line": 295, - "column": 7 - }, - "end": { - "line": 295, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 9821, - "end": 10137, - "loc": { - "start": { - "line": 295, - "column": 15 - }, - "end": { - "line": 306, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 9821, - "end": 9840, - "loc": { - "start": { - "line": 295, - "column": 15 - }, - "end": { - "line": 295, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 9841, - "end": 10136, - "loc": { - "start": { - "line": 295, - "column": 35 - }, - "end": { - "line": 306, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 9851, - "end": 9865, - "loc": { - "start": { - "line": 296, - "column": 8 - }, - "end": { - "line": 296, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 9851, - "end": 9857, - "loc": { - "start": { - "line": 296, - "column": 8 - }, - "end": { - "line": 296, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 9859, - "end": 9865, - "loc": { - "start": { - "line": 296, - "column": 16 - }, - "end": { - "line": 296, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 9875, - "end": 9915, - "loc": { - "start": { - "line": 297, - "column": 8 - }, - "end": { - "line": 297, - "column": 48 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 9875, - "end": 9879, - "loc": { - "start": { - "line": 297, - "column": 8 - }, - "end": { - "line": 297, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 9881, - "end": 9915, - "loc": { - "start": { - "line": 297, - "column": 14 - }, - "end": { - "line": 297, - "column": 48 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 9899, - "end": 9901, - "loc": { - "start": { - "line": 297, - "column": 32 - }, - "end": { - "line": 297, - "column": 34 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 9882, - "end": 9897, - "loc": { - "start": { - "line": 297, - "column": 15 - }, - "end": { - "line": 297, - "column": 30 - } - }, - "value": { - "raw": "/documentgroup/", - "cooked": "/documentgroup/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 9902, - "end": 9914, - "loc": { - "start": { - "line": 297, - "column": 35 - }, - "end": { - "line": 297, - "column": 47 - } - }, - "value": { - "raw": "/groupinvite", - "cooked": "/groupinvite" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 9925, - "end": 9994, - "loc": { - "start": { - "line": 298, - "column": 8 - }, - "end": { - "line": 301, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 9925, - "end": 9938, - "loc": { - "start": { - "line": 298, - "column": 8 - }, - "end": { - "line": 298, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 9940, - "end": 9994, - "loc": { - "start": { - "line": 298, - "column": 23 - }, - "end": { - "line": 301, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 9952, - "end": 9966, - "loc": { - "start": { - "line": 299, - "column": 10 - }, - "end": { - "line": 299, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 9952, - "end": 9956, - "loc": { - "start": { - "line": 299, - "column": 10 - }, - "end": { - "line": 299, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 9958, - "end": 9966, - "loc": { - "start": { - "line": 299, - "column": 16 - }, - "end": { - "line": 299, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 9978, - "end": 9983, - "loc": { - "start": { - "line": 300, - "column": 10 - }, - "end": { - "line": 300, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9978, - "end": 9983, - "loc": { - "start": { - "line": 300, - "column": 10 - }, - "end": { - "line": 300, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 9978, - "end": 9983, - "loc": { - "start": { - "line": 300, - "column": 10 - }, - "end": { - "line": 300, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 10004, - "end": 10127, - "loc": { - "start": { - "line": 302, - "column": 8 - }, - "end": { - "line": 305, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 10004, - "end": 10011, - "loc": { - "start": { - "line": 302, - "column": 8 - }, - "end": { - "line": 302, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 10013, - "end": 10127, - "loc": { - "start": { - "line": 302, - "column": 17 - }, - "end": { - "line": 305, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 10025, - "end": 10059, - "loc": { - "start": { - "line": 303, - "column": 10 - }, - "end": { - "line": 303, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 10025, - "end": 10039, - "loc": { - "start": { - "line": 303, - "column": 10 - }, - "end": { - "line": 303, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 10041, - "end": 10059, - "loc": { - "start": { - "line": 303, - "column": 26 - }, - "end": { - "line": 303, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 10071, - "end": 10116, - "loc": { - "start": { - "line": 304, - "column": 10 - }, - "end": { - "line": 304, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 10071, - "end": 10087, - "loc": { - "start": { - "line": 304, - "column": 10 - }, - "end": { - "line": 304, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 10089, - "end": 10116, - "loc": { - "start": { - "line": 304, - "column": 28 - }, - "end": { - "line": 304, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10089, - "end": 10106, - "loc": { - "start": { - "line": 304, - "column": 28 - }, - "end": { - "line": 304, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 10089, - "end": 10095, - "loc": { - "start": { - "line": 304, - "column": 28 - }, - "end": { - "line": 304, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 10096, - "end": 10106, - "loc": { - "start": { - "line": 304, - "column": 35 - }, - "end": { - "line": 304, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 10107, - "end": 10115, - "loc": { - "start": { - "line": 304, - "column": 46 - }, - "end": { - "line": 304, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 10139, - "end": 10164, - "loc": { - "start": { - "line": 306, - "column": 10 - }, - "end": { - "line": 306, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 10139, - "end": 10154, - "loc": { - "start": { - "line": 306, - "column": 10 - }, - "end": { - "line": 306, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 10155, - "end": 10163, - "loc": { - "start": { - "line": 306, - "column": 26 - }, - "end": { - "line": 306, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 10173, - "end": 10175, - "loc": { - "start": { - "line": 307, - "column": 7 - }, - "end": { - "line": 307, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 10176, - "end": 10183, - "loc": { - "start": { - "line": 307, - "column": 10 - }, - "end": { - "line": 307, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 10185, - "end": 10207, - "loc": { - "start": { - "line": 307, - "column": 19 - }, - "end": { - "line": 307, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 10185, - "end": 10197, - "loc": { - "start": { - "line": 307, - "column": 19 - }, - "end": { - "line": 307, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 10198, - "end": 10206, - "loc": { - "start": { - "line": 307, - "column": 32 - }, - "end": { - "line": 307, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 10215, - "end": 10235, - "loc": { - "start": { - "line": 309, - "column": 4 - }, - "end": { - "line": 309, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 10215, - "end": 10234, - "loc": { - "start": { - "line": 309, - "column": 4 - }, - "end": { - "line": 309, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10215, - "end": 10224, - "loc": { - "start": { - "line": 309, - "column": 4 - }, - "end": { - "line": 309, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 10215, - "end": 10218, - "loc": { - "start": { - "line": 309, - "column": 4 - }, - "end": { - "line": 309, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 10219, - "end": 10224, - "loc": { - "start": { - "line": 309, - "column": 8 - }, - "end": { - "line": 309, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 10225, - "end": 10233, - "loc": { - "start": { - "line": 309, - "column": 14 - }, - "end": { - "line": 309, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 10240, - "end": 10250, - "loc": { - "start": { - "line": 310, - "column": 4 - }, - "end": { - "line": 310, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 10240, - "end": 10249, - "loc": { - "start": { - "line": 310, - "column": 4 - }, - "end": { - "line": 310, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10240, - "end": 10247, - "loc": { - "start": { - "line": 310, - "column": 4 - }, - "end": { - "line": 310, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 10240, - "end": 10243, - "loc": { - "start": { - "line": 310, - "column": 4 - }, - "end": { - "line": 310, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 10244, - "end": 10247, - "loc": { - "start": { - "line": 310, - "column": 8 - }, - "end": { - "line": 310, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document Group invite email configurations\n * @typedef {Object} DocumentGroupInviteEmail\n * @property {string} email - signer's email\n * @property {string} [subject] - subject of invitation email\n * @property {string} [message] - content of invitation email\n * @property {number} [expiration_days] - expiration of invite in days\n * @property {number} [reminder] - number of days in which to remind about invitation via email\n ", - "start": 5510, - "end": 5961, - "loc": { - "start": { - "line": 192, - "column": 2 - }, - "end": { - "line": 200, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group signer's authentication with password config\n * @typedef {Object} DocumentGroupInviteAuthenticationPassword\n * @property {string} type - set `password` to authenticate signer with password\n * @property {string} value - authentication password value\n ", - "start": 5965, - "end": 6249, - "loc": { - "start": { - "line": 202, - "column": 2 - }, - "end": { - "line": 207, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group signer's authentication with phone call config\n * @typedef {Object} DocumentGroupInviteAuthenticationPhoneCall\n * @property {string} type - set `phone` to authenticate signer with phone call\n * @property {string} method - set `phone_call` to authenticate signer with phone call\n * @property {string} phone - phone number\n ", - "start": 6253, - "end": 6611, - "loc": { - "start": { - "line": 209, - "column": 2 - }, - "end": { - "line": 215, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group signer's authentication with phone SMS config\n * @typedef {Object} DocumentGroupInviteAuthenticationPhoneSMS\n * @property {string} type - set `phone` to authenticate signer with phone SMS\n * @property {string} method - set `sms` to authenticate signer with phone SMS\n * @property {string} phone - phone number\n ", - "start": 6615, - "end": 6962, - "loc": { - "start": { - "line": 217, - "column": 2 - }, - "end": { - "line": 223, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite action configurations\n * @typedef {Object} DocumentGroupInviteAction\n * @property {string} email - signer's email\n * @property {string} role_name - signer's role name\n * @property {string} action - name of action with document in signing step\n * @property {string} document_id - ID of document in specific signing step\n * @property {string} [allow_reassign] - allow reassigning of signer\n * @property {string} [decline_by_signature] - signer can decline invite\n * @property {DocumentGroupInviteAuthenticationPassword|DocumentGroupInviteAuthenticationPhoneCall|DocumentGroupInviteAuthenticationPhoneSMS} [authentication] - signer's authentication configuration\n ", - "start": 6966, - "end": 7678, - "loc": { - "start": { - "line": 225, - "column": 2 - }, - "end": { - "line": 235, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite step configurations\n * @typedef {Object} DocumentGroupInviteStep\n * @property {number} order - an order number of invitation step\n * @property {DocumentGroupInviteEmail[]} [invite_emails] - Document Group invite emails settings\n * @property {DocumentGroupInviteAction[]} invite_actions - Document Group invite actions settings\n ", - "start": 7682, - "end": 8053, - "loc": { - "start": { - "line": 237, - "column": 2 - }, - "end": { - "line": 243, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite completion email configuration\n * @typedef {Object} DocumentGroupInviteCompletionEmailConfig\n * @property {string} email - email for completion (only from the signers and document owner emails)\n * @property {number} disable_document_attachment - disable attachment of signed document group to completion email (values: 0|1)\n ", - "start": 8057, - "end": 8423, - "loc": { - "start": { - "line": 245, - "column": 2 - }, - "end": { - "line": 250, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite settings\n * @typedef {Object} DocumentGroupInviteSettings\n * @property {DocumentGroupInviteStep[]} invite_steps - Document Group invite steps settings\n * @property {DocumentGroupInviteCompletionEmailConfig[]} [completion_emails] - set of completion email configutrations\n ", - "start": 8427, - "end": 8740, - "loc": { - "start": { - "line": 252, - "column": 2 - }, - "end": { - "line": 257, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create Document Group invite payload\n * @typedef {Object} DocumentGroupInviteParams\n * @property {string} id - ID of specific Document Group\n * @property {DocumentGroupInviteSettings} data - Document Group invite settings data\n * @property {string} token - your auth token\n ", - "start": 8744, - "end": 9039, - "loc": { - "start": { - "line": 259, - "column": 2 - }, - "end": { - "line": 265, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create Document Group invite response data\n * @typedef {Object} DocumentGroupInviteResponse\n * @property {string} id - ID of created Document Group invitation\n * @property {?string} pending_invite_link - pending invite link\n ", - "start": 9043, - "end": 9287, - "loc": { - "start": { - "line": 267, - "column": 2 - }, - "end": { - "line": 272, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates an invite to sign a Document Group\n * @param {DocumentGroupInviteParams} data - create Document Group invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupInviteResponse)} [callback] - error first node.js callback\n ", - "start": 9291, - "end": 9554, - "loc": { - "start": { - "line": 274, - "column": 2 - }, - "end": { - "line": 278, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document Group download payload\n * @typedef {Object} DocumentGroupDownloadParams\n * @property {string} id - an ID of a Document Group\n * @property {string} token - your auth token\n * @property {string} [type='zip'] - type of download flow, can be either `zip` or `merged`\n * @property {string} [with_history='no'] - type of history merging flow, can be `no`, `after_each_document`, or `after_merged_pdf`\n * @property {string[]} [document_order] - document order for merging flow\n ", - "start": 10258, - "end": 10763, - "loc": { - "start": { - "line": 313, - "column": 2 - }, - "end": { - "line": 321, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group binary data\n * @typedef {Buffer} DocumentGroupDownloadResponse\n ", - "start": 10767, - "end": 10861, - "loc": { - "start": { - "line": 323, - "column": 2 - }, - "end": { - "line": 326, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Downloads a document group.\n * By default document group will be downloaded as a zip archive and without history.\n * To download document group as a single merged PDF set `type` to `merged`.\n * To download document group with history set `with_history` to `after_each_document` or `after_merged_pdf`.\n * @param {DocumentGroupDownloadParams} data - download Document Group request payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupDownloadResponse)} [callback] - error first node.js callback\n ", - "start": 10865, - "end": 11399, - "loc": { - "start": { - "line": 328, - "column": 2 - }, - "end": { - "line": 335, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 11402, - "end": 12096, - "loc": { - "start": { - "line": 336, - "column": 2 - }, - "end": { - "line": 366, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 11409, - "end": 11417, - "loc": { - "start": { - "line": 336, - "column": 9 - }, - "end": { - "line": 336, - "column": 17 - }, - "identifierName": "download" - }, - "name": "download" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 11419, - "end": 11511, - "loc": { - "start": { - "line": 336, - "column": 19 - }, - "end": { - "line": 342, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 11425, - "end": 11427, - "loc": { - "start": { - "line": 337, - "column": 4 - }, - "end": { - "line": 337, - "column": 6 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 11425, - "end": 11427, - "loc": { - "start": { - "line": 337, - "column": 4 - }, - "end": { - "line": 337, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 11425, - "end": 11427, - "loc": { - "start": { - "line": 337, - "column": 4 - }, - "end": { - "line": 337, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 11433, - "end": 11438, - "loc": { - "start": { - "line": 338, - "column": 4 - }, - "end": { - "line": 338, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 11433, - "end": 11438, - "loc": { - "start": { - "line": 338, - "column": 4 - }, - "end": { - "line": 338, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 11433, - "end": 11438, - "loc": { - "start": { - "line": 338, - "column": 4 - }, - "end": { - "line": 338, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 11444, - "end": 11456, - "loc": { - "start": { - "line": 339, - "column": 4 - }, - "end": { - "line": 339, - "column": 16 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 11444, - "end": 11448, - "loc": { - "start": { - "line": 339, - "column": 4 - }, - "end": { - "line": 339, - "column": 8 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "AssignmentPattern", - "start": 11444, - "end": 11456, - "loc": { - "start": { - "line": 339, - "column": 4 - }, - "end": { - "line": 339, - "column": 16 - } - }, - "left": { - "type": "Identifier", - "start": 11444, - "end": 11448, - "loc": { - "start": { - "line": 339, - "column": 4 - }, - "end": { - "line": 339, - "column": 8 - }, - "identifierName": "type" - }, - "name": "type" - }, - "right": { - "type": "StringLiteral", - "start": 11451, - "end": 11456, - "loc": { - "start": { - "line": 339, - "column": 11 - }, - "end": { - "line": 339, - "column": 16 - } - }, - "extra": { - "rawValue": "zip", - "raw": "'zip'" - }, - "value": "zip" - } - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 11462, - "end": 11481, - "loc": { - "start": { - "line": 340, - "column": 4 - }, - "end": { - "line": 340, - "column": 23 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 11462, - "end": 11474, - "loc": { - "start": { - "line": 340, - "column": 4 - }, - "end": { - "line": 340, - "column": 16 - }, - "identifierName": "with_history" - }, - "name": "with_history" - }, - "value": { - "type": "AssignmentPattern", - "start": 11462, - "end": 11481, - "loc": { - "start": { - "line": 340, - "column": 4 - }, - "end": { - "line": 340, - "column": 23 - } - }, - "left": { - "type": "Identifier", - "start": 11462, - "end": 11474, - "loc": { - "start": { - "line": 340, - "column": 4 - }, - "end": { - "line": 340, - "column": 16 - }, - "identifierName": "with_history" - }, - "name": "with_history" - }, - "right": { - "type": "StringLiteral", - "start": 11477, - "end": 11481, - "loc": { - "start": { - "line": 340, - "column": 19 - }, - "end": { - "line": 340, - "column": 23 - } - }, - "extra": { - "rawValue": "no", - "raw": "'no'" - }, - "value": "no" - } - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 11487, - "end": 11506, - "loc": { - "start": { - "line": 341, - "column": 4 - }, - "end": { - "line": 341, - "column": 23 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 11487, - "end": 11501, - "loc": { - "start": { - "line": 341, - "column": 4 - }, - "end": { - "line": 341, - "column": 18 - }, - "identifierName": "document_order" - }, - "name": "document_order" - }, - "value": { - "type": "AssignmentPattern", - "start": 11487, - "end": 11506, - "loc": { - "start": { - "line": 341, - "column": 4 - }, - "end": { - "line": 341, - "column": 23 - } - }, - "left": { - "type": "Identifier", - "start": 11487, - "end": 11501, - "loc": { - "start": { - "line": 341, - "column": 4 - }, - "end": { - "line": 341, - "column": 18 - }, - "identifierName": "document_order" - }, - "name": "document_order" - }, - "right": { - "type": "ArrayExpression", - "start": 11504, - "end": 11506, - "loc": { - "start": { - "line": 341, - "column": 21 - }, - "end": { - "line": 341, - "column": 23 - } - }, - "elements": [] - } - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 11513, - "end": 11521, - "loc": { - "start": { - "line": 342, - "column": 5 - }, - "end": { - "line": 342, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 11523, - "end": 12096, - "loc": { - "start": { - "line": 342, - "column": 15 - }, - "end": { - "line": 366, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 11529, - "end": 11624, - "loc": { - "start": { - "line": 343, - "column": 4 - }, - "end": { - "line": 347, - "column": 7 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 11535, - "end": 11623, - "loc": { - "start": { - "line": 343, - "column": 10 - }, - "end": { - "line": 347, - "column": 6 - } - }, - "id": { - "type": "Identifier", - "start": 11535, - "end": 11543, - "loc": { - "start": { - "line": 343, - "column": 10 - }, - "end": { - "line": 343, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 11546, - "end": 11623, - "loc": { - "start": { - "line": 343, - "column": 21 - }, - "end": { - "line": 347, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11546, - "end": 11560, - "loc": { - "start": { - "line": 343, - "column": 21 - }, - "end": { - "line": 343, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 11546, - "end": 11550, - "loc": { - "start": { - "line": 343, - "column": 21 - }, - "end": { - "line": 343, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 11551, - "end": 11560, - "loc": { - "start": { - "line": 343, - "column": 26 - }, - "end": { - "line": 343, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 11561, - "end": 11622, - "loc": { - "start": { - "line": 343, - "column": 36 - }, - "end": { - "line": 347, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 11569, - "end": 11573, - "loc": { - "start": { - "line": 344, - "column": 6 - }, - "end": { - "line": 344, - "column": 10 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 11569, - "end": 11573, - "loc": { - "start": { - "line": 344, - "column": 6 - }, - "end": { - "line": 344, - "column": 10 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "Identifier", - "start": 11569, - "end": 11573, - "loc": { - "start": { - "line": 344, - "column": 6 - }, - "end": { - "line": 344, - "column": 10 - }, - "identifierName": "type" - }, - "name": "type" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 11581, - "end": 11593, - "loc": { - "start": { - "line": 345, - "column": 6 - }, - "end": { - "line": 345, - "column": 18 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 11581, - "end": 11593, - "loc": { - "start": { - "line": 345, - "column": 6 - }, - "end": { - "line": 345, - "column": 18 - }, - "identifierName": "with_history" - }, - "name": "with_history" - }, - "value": { - "type": "Identifier", - "start": 11581, - "end": 11593, - "loc": { - "start": { - "line": 345, - "column": 6 - }, - "end": { - "line": 345, - "column": 18 - }, - "identifierName": "with_history" - }, - "name": "with_history" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 11601, - "end": 11615, - "loc": { - "start": { - "line": 346, - "column": 6 - }, - "end": { - "line": 346, - "column": 20 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 11601, - "end": 11615, - "loc": { - "start": { - "line": 346, - "column": 6 - }, - "end": { - "line": 346, - "column": 20 - }, - "identifierName": "document_order" - }, - "name": "document_order" - }, - "value": { - "type": "Identifier", - "start": 11601, - "end": 11615, - "loc": { - "start": { - "line": 346, - "column": 6 - }, - "end": { - "line": 346, - "column": 20 - }, - "identifierName": "document_order" - }, - "name": "document_order" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 11630, - "end": 12051, - "loc": { - "start": { - "line": 349, - "column": 4 - }, - "end": { - "line": 362, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 11636, - "end": 12050, - "loc": { - "start": { - "line": 349, - "column": 10 - }, - "end": { - "line": 362, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 11636, - "end": 11639, - "loc": { - "start": { - "line": 349, - "column": 10 - }, - "end": { - "line": 349, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 11642, - "end": 12050, - "loc": { - "start": { - "line": 349, - "column": 16 - }, - "end": { - "line": 362, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11642, - "end": 12017, - "loc": { - "start": { - "line": 349, - "column": 16 - }, - "end": { - "line": 362, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 11642, - "end": 12007, - "loc": { - "start": { - "line": 349, - "column": 16 - }, - "end": { - "line": 361, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11642, - "end": 11662, - "loc": { - "start": { - "line": 349, - "column": 16 - }, - "end": { - "line": 350, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 11642, - "end": 11647, - "loc": { - "start": { - "line": 349, - "column": 16 - }, - "end": { - "line": 349, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 11655, - "end": 11662, - "loc": { - "start": { - "line": 350, - "column": 7 - }, - "end": { - "line": 350, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 11663, - "end": 11979, - "loc": { - "start": { - "line": 350, - "column": 15 - }, - "end": { - "line": 361, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 11663, - "end": 11682, - "loc": { - "start": { - "line": 350, - "column": 15 - }, - "end": { - "line": 350, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 11683, - "end": 11978, - "loc": { - "start": { - "line": 350, - "column": 35 - }, - "end": { - "line": 361, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 11693, - "end": 11707, - "loc": { - "start": { - "line": 351, - "column": 8 - }, - "end": { - "line": 351, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 11693, - "end": 11699, - "loc": { - "start": { - "line": 351, - "column": 8 - }, - "end": { - "line": 351, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 11701, - "end": 11707, - "loc": { - "start": { - "line": 351, - "column": 16 - }, - "end": { - "line": 351, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 11717, - "end": 11757, - "loc": { - "start": { - "line": 352, - "column": 8 - }, - "end": { - "line": 352, - "column": 48 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 11717, - "end": 11721, - "loc": { - "start": { - "line": 352, - "column": 8 - }, - "end": { - "line": 352, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 11723, - "end": 11757, - "loc": { - "start": { - "line": 352, - "column": 14 - }, - "end": { - "line": 352, - "column": 48 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 11741, - "end": 11743, - "loc": { - "start": { - "line": 352, - "column": 32 - }, - "end": { - "line": 352, - "column": 34 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 11724, - "end": 11739, - "loc": { - "start": { - "line": 352, - "column": 15 - }, - "end": { - "line": 352, - "column": 30 - } - }, - "value": { - "raw": "/documentgroup/", - "cooked": "/documentgroup/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 11744, - "end": 11756, - "loc": { - "start": { - "line": 352, - "column": 35 - }, - "end": { - "line": 352, - "column": 47 - } - }, - "value": { - "raw": "/downloadall", - "cooked": "/downloadall" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 11767, - "end": 11836, - "loc": { - "start": { - "line": 353, - "column": 8 - }, - "end": { - "line": 356, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 11767, - "end": 11780, - "loc": { - "start": { - "line": 353, - "column": 8 - }, - "end": { - "line": 353, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 11782, - "end": 11836, - "loc": { - "start": { - "line": 353, - "column": 23 - }, - "end": { - "line": 356, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 11794, - "end": 11808, - "loc": { - "start": { - "line": 354, - "column": 10 - }, - "end": { - "line": 354, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 11794, - "end": 11798, - "loc": { - "start": { - "line": 354, - "column": 10 - }, - "end": { - "line": 354, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 11800, - "end": 11808, - "loc": { - "start": { - "line": 354, - "column": 16 - }, - "end": { - "line": 354, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 11820, - "end": 11825, - "loc": { - "start": { - "line": 355, - "column": 10 - }, - "end": { - "line": 355, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 11820, - "end": 11825, - "loc": { - "start": { - "line": 355, - "column": 10 - }, - "end": { - "line": 355, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 11820, - "end": 11825, - "loc": { - "start": { - "line": 355, - "column": 10 - }, - "end": { - "line": 355, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 11846, - "end": 11969, - "loc": { - "start": { - "line": 357, - "column": 8 - }, - "end": { - "line": 360, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 11846, - "end": 11853, - "loc": { - "start": { - "line": 357, - "column": 8 - }, - "end": { - "line": 357, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 11855, - "end": 11969, - "loc": { - "start": { - "line": 357, - "column": 17 - }, - "end": { - "line": 360, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 11867, - "end": 11901, - "loc": { - "start": { - "line": 358, - "column": 10 - }, - "end": { - "line": 358, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 11867, - "end": 11881, - "loc": { - "start": { - "line": 358, - "column": 10 - }, - "end": { - "line": 358, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 11883, - "end": 11901, - "loc": { - "start": { - "line": 358, - "column": 26 - }, - "end": { - "line": 358, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 11913, - "end": 11958, - "loc": { - "start": { - "line": 359, - "column": 10 - }, - "end": { - "line": 359, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 11913, - "end": 11929, - "loc": { - "start": { - "line": 359, - "column": 10 - }, - "end": { - "line": 359, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 11931, - "end": 11958, - "loc": { - "start": { - "line": 359, - "column": 28 - }, - "end": { - "line": 359, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11931, - "end": 11948, - "loc": { - "start": { - "line": 359, - "column": 28 - }, - "end": { - "line": 359, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 11931, - "end": 11937, - "loc": { - "start": { - "line": 359, - "column": 28 - }, - "end": { - "line": 359, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 11938, - "end": 11948, - "loc": { - "start": { - "line": 359, - "column": 35 - }, - "end": { - "line": 359, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 11949, - "end": 11957, - "loc": { - "start": { - "line": 359, - "column": 46 - }, - "end": { - "line": 359, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 11981, - "end": 12006, - "loc": { - "start": { - "line": 361, - "column": 10 - }, - "end": { - "line": 361, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 11981, - "end": 11996, - "loc": { - "start": { - "line": 361, - "column": 10 - }, - "end": { - "line": 361, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 11997, - "end": 12005, - "loc": { - "start": { - "line": 361, - "column": 26 - }, - "end": { - "line": 361, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 12015, - "end": 12017, - "loc": { - "start": { - "line": 362, - "column": 7 - }, - "end": { - "line": 362, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 12018, - "end": 12025, - "loc": { - "start": { - "line": 362, - "column": 10 - }, - "end": { - "line": 362, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 12027, - "end": 12049, - "loc": { - "start": { - "line": 362, - "column": 19 - }, - "end": { - "line": 362, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 12027, - "end": 12039, - "loc": { - "start": { - "line": 362, - "column": 19 - }, - "end": { - "line": 362, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 12040, - "end": 12048, - "loc": { - "start": { - "line": 362, - "column": 32 - }, - "end": { - "line": 362, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 12057, - "end": 12077, - "loc": { - "start": { - "line": 364, - "column": 4 - }, - "end": { - "line": 364, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 12057, - "end": 12076, - "loc": { - "start": { - "line": 364, - "column": 4 - }, - "end": { - "line": 364, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 12057, - "end": 12066, - "loc": { - "start": { - "line": 364, - "column": 4 - }, - "end": { - "line": 364, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 12057, - "end": 12060, - "loc": { - "start": { - "line": 364, - "column": 4 - }, - "end": { - "line": 364, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 12061, - "end": 12066, - "loc": { - "start": { - "line": 364, - "column": 8 - }, - "end": { - "line": 364, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 12067, - "end": 12075, - "loc": { - "start": { - "line": 364, - "column": 14 - }, - "end": { - "line": 364, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 12082, - "end": 12092, - "loc": { - "start": { - "line": 365, - "column": 4 - }, - "end": { - "line": 365, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 12082, - "end": 12091, - "loc": { - "start": { - "line": 365, - "column": 4 - }, - "end": { - "line": 365, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 12082, - "end": 12089, - "loc": { - "start": { - "line": 365, - "column": 4 - }, - "end": { - "line": 365, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 12082, - "end": 12085, - "loc": { - "start": { - "line": 365, - "column": 4 - }, - "end": { - "line": 365, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 12086, - "end": 12089, - "loc": { - "start": { - "line": 365, - "column": 8 - }, - "end": { - "line": 365, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document Group download payload\n * @typedef {Object} DocumentGroupDownloadParams\n * @property {string} id - an ID of a Document Group\n * @property {string} token - your auth token\n * @property {string} [type='zip'] - type of download flow, can be either `zip` or `merged`\n * @property {string} [with_history='no'] - type of history merging flow, can be `no`, `after_each_document`, or `after_merged_pdf`\n * @property {string[]} [document_order] - document order for merging flow\n ", - "start": 10258, - "end": 10763, - "loc": { - "start": { - "line": 313, - "column": 2 - }, - "end": { - "line": 321, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group binary data\n * @typedef {Buffer} DocumentGroupDownloadResponse\n ", - "start": 10767, - "end": 10861, - "loc": { - "start": { - "line": 323, - "column": 2 - }, - "end": { - "line": 326, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Downloads a document group.\n * By default document group will be downloaded as a zip archive and without history.\n * To download document group as a single merged PDF set `type` to `merged`.\n * To download document group with history set `with_history` to `after_each_document` or `after_merged_pdf`.\n * @param {DocumentGroupDownloadParams} data - download Document Group request payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupDownloadResponse)} [callback] - error first node.js callback\n ", - "start": 10865, - "end": 11399, - "loc": { - "start": { - "line": 328, - "column": 2 - }, - "end": { - "line": 335, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Cancel Document Group Invite payload\n * @typedef {Object} DocumentGroupCancelInviteParams\n * @property {string} id - ID of specific Document Group\n * @property {string} invite_id - ID of Document Group Invite\n * @property {string} token - your auth token\n ", - "start": 12100, - "end": 12377, - "loc": { - "start": { - "line": 368, - "column": 2 - }, - "end": { - "line": 374, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancel Document Group Invite response data\n * @typedef {Object} DocumentGroupCancelInviteResponse\n * @property {string} status - status of invite cancellation (e.g. \"success\")\n ", - "start": 12381, - "end": 12575, - "loc": { - "start": { - "line": 376, - "column": 2 - }, - "end": { - "line": 380, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancels an Invite to sign a specific Document Group\n * @param {DocumentGroupCancelInviteParams} data - cancel Document Group Invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupCancelInviteResponse)} [callback] - error first node.js callback\n ", - "start": 12579, - "end": 12863, - "loc": { - "start": { - "line": 382, - "column": 2 - }, - "end": { - "line": 386, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 12866, - "end": 13262, - "loc": { - "start": { - "line": 387, - "column": 2 - }, - "end": { - "line": 404, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 12873, - "end": 12885, - "loc": { - "start": { - "line": 387, - "column": 9 - }, - "end": { - "line": 387, - "column": 21 - }, - "identifierName": "cancelInvite" - }, - "name": "cancelInvite" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 12887, - "end": 12925, - "loc": { - "start": { - "line": 387, - "column": 23 - }, - "end": { - "line": 391, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 12893, - "end": 12898, - "loc": { - "start": { - "line": 388, - "column": 4 - }, - "end": { - "line": 388, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 12893, - "end": 12898, - "loc": { - "start": { - "line": 388, - "column": 4 - }, - "end": { - "line": 388, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 12893, - "end": 12898, - "loc": { - "start": { - "line": 388, - "column": 4 - }, - "end": { - "line": 388, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 12904, - "end": 12906, - "loc": { - "start": { - "line": 389, - "column": 4 - }, - "end": { - "line": 389, - "column": 6 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 12904, - "end": 12906, - "loc": { - "start": { - "line": 389, - "column": 4 - }, - "end": { - "line": 389, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 12904, - "end": 12906, - "loc": { - "start": { - "line": 389, - "column": 4 - }, - "end": { - "line": 389, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 12912, - "end": 12920, - "loc": { - "start": { - "line": 390, - "column": 4 - }, - "end": { - "line": 390, - "column": 12 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 12912, - "end": 12920, - "loc": { - "start": { - "line": 390, - "column": 4 - }, - "end": { - "line": 390, - "column": 12 - }, - "identifierName": "inviteId" - }, - "name": "inviteId" - }, - "value": { - "type": "Identifier", - "start": 12912, - "end": 12920, - "loc": { - "start": { - "line": 390, - "column": 4 - }, - "end": { - "line": 390, - "column": 12 - }, - "identifierName": "inviteId" - }, - "name": "inviteId" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 12927, - "end": 12935, - "loc": { - "start": { - "line": 391, - "column": 5 - }, - "end": { - "line": 391, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 12937, - "end": 13262, - "loc": { - "start": { - "line": 391, - "column": 15 - }, - "end": { - "line": 404, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 12944, - "end": 13258, - "loc": { - "start": { - "line": 393, - "column": 4 - }, - "end": { - "line": 403, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 12944, - "end": 13257, - "loc": { - "start": { - "line": 393, - "column": 4 - }, - "end": { - "line": 403, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 12944, - "end": 13255, - "loc": { - "start": { - "line": 393, - "column": 4 - }, - "end": { - "line": 403, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 12944, - "end": 13244, - "loc": { - "start": { - "line": 393, - "column": 4 - }, - "end": { - "line": 402, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 12944, - "end": 13211, - "loc": { - "start": { - "line": 393, - "column": 4 - }, - "end": { - "line": 402, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 12944, - "end": 13201, - "loc": { - "start": { - "line": 393, - "column": 4 - }, - "end": { - "line": 401, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 12944, - "end": 12964, - "loc": { - "start": { - "line": 393, - "column": 4 - }, - "end": { - "line": 394, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 12944, - "end": 12949, - "loc": { - "start": { - "line": 393, - "column": 4 - }, - "end": { - "line": 393, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 12957, - "end": 12964, - "loc": { - "start": { - "line": 394, - "column": 7 - }, - "end": { - "line": 394, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 12965, - "end": 13173, - "loc": { - "start": { - "line": 394, - "column": 15 - }, - "end": { - "line": 401, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 12965, - "end": 12984, - "loc": { - "start": { - "line": 394, - "column": 15 - }, - "end": { - "line": 394, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 12985, - "end": 13172, - "loc": { - "start": { - "line": 394, - "column": 35 - }, - "end": { - "line": 401, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 12995, - "end": 13009, - "loc": { - "start": { - "line": 395, - "column": 8 - }, - "end": { - "line": 395, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 12995, - "end": 13001, - "loc": { - "start": { - "line": 395, - "column": 8 - }, - "end": { - "line": 395, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 13003, - "end": 13009, - "loc": { - "start": { - "line": 395, - "column": 16 - }, - "end": { - "line": 395, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 13019, - "end": 13084, - "loc": { - "start": { - "line": 396, - "column": 8 - }, - "end": { - "line": 396, - "column": 73 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 13019, - "end": 13023, - "loc": { - "start": { - "line": 396, - "column": 8 - }, - "end": { - "line": 396, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 13025, - "end": 13084, - "loc": { - "start": { - "line": 396, - "column": 14 - }, - "end": { - "line": 396, - "column": 73 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 13043, - "end": 13045, - "loc": { - "start": { - "line": 396, - "column": 32 - }, - "end": { - "line": 396, - "column": 34 - }, - "identifierName": "id" - }, - "name": "id" - }, - { - "type": "Identifier", - "start": 13061, - "end": 13069, - "loc": { - "start": { - "line": 396, - "column": 50 - }, - "end": { - "line": 396, - "column": 58 - }, - "identifierName": "inviteId" - }, - "name": "inviteId" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 13026, - "end": 13041, - "loc": { - "start": { - "line": 396, - "column": 15 - }, - "end": { - "line": 396, - "column": 30 - } - }, - "value": { - "raw": "/documentgroup/", - "cooked": "/documentgroup/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 13046, - "end": 13059, - "loc": { - "start": { - "line": 396, - "column": 35 - }, - "end": { - "line": 396, - "column": 48 - } - }, - "value": { - "raw": "/groupinvite/", - "cooked": "/groupinvite/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 13070, - "end": 13083, - "loc": { - "start": { - "line": 396, - "column": 59 - }, - "end": { - "line": 396, - "column": 72 - } - }, - "value": { - "raw": "/cancelinvite", - "cooked": "/cancelinvite" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 13094, - "end": 13163, - "loc": { - "start": { - "line": 397, - "column": 8 - }, - "end": { - "line": 400, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 13094, - "end": 13107, - "loc": { - "start": { - "line": 397, - "column": 8 - }, - "end": { - "line": 397, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 13109, - "end": 13163, - "loc": { - "start": { - "line": 397, - "column": 23 - }, - "end": { - "line": 400, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 13121, - "end": 13135, - "loc": { - "start": { - "line": 398, - "column": 10 - }, - "end": { - "line": 398, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 13121, - "end": 13125, - "loc": { - "start": { - "line": 398, - "column": 10 - }, - "end": { - "line": 398, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 13127, - "end": 13135, - "loc": { - "start": { - "line": 398, - "column": 16 - }, - "end": { - "line": 398, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 13147, - "end": 13152, - "loc": { - "start": { - "line": 399, - "column": 10 - }, - "end": { - "line": 399, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 13147, - "end": 13152, - "loc": { - "start": { - "line": 399, - "column": 10 - }, - "end": { - "line": 399, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 13147, - "end": 13152, - "loc": { - "start": { - "line": 399, - "column": 10 - }, - "end": { - "line": 399, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 13175, - "end": 13200, - "loc": { - "start": { - "line": 401, - "column": 10 - }, - "end": { - "line": 401, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 13175, - "end": 13190, - "loc": { - "start": { - "line": 401, - "column": 10 - }, - "end": { - "line": 401, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 13191, - "end": 13199, - "loc": { - "start": { - "line": 401, - "column": 26 - }, - "end": { - "line": 401, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 13209, - "end": 13211, - "loc": { - "start": { - "line": 402, - "column": 7 - }, - "end": { - "line": 402, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 13212, - "end": 13219, - "loc": { - "start": { - "line": 402, - "column": 10 - }, - "end": { - "line": 402, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 13221, - "end": 13243, - "loc": { - "start": { - "line": 402, - "column": 19 - }, - "end": { - "line": 402, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 13221, - "end": 13233, - "loc": { - "start": { - "line": 402, - "column": 19 - }, - "end": { - "line": 402, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 13234, - "end": 13242, - "loc": { - "start": { - "line": 402, - "column": 32 - }, - "end": { - "line": 402, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 13252, - "end": 13255, - "loc": { - "start": { - "line": 403, - "column": 7 - }, - "end": { - "line": 403, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Cancel Document Group Invite payload\n * @typedef {Object} DocumentGroupCancelInviteParams\n * @property {string} id - ID of specific Document Group\n * @property {string} invite_id - ID of Document Group Invite\n * @property {string} token - your auth token\n ", - "start": 12100, - "end": 12377, - "loc": { - "start": { - "line": 368, - "column": 2 - }, - "end": { - "line": 374, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancel Document Group Invite response data\n * @typedef {Object} DocumentGroupCancelInviteResponse\n * @property {string} status - status of invite cancellation (e.g. \"success\")\n ", - "start": 12381, - "end": 12575, - "loc": { - "start": { - "line": 376, - "column": 2 - }, - "end": { - "line": 380, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancels an Invite to sign a specific Document Group\n * @param {DocumentGroupCancelInviteParams} data - cancel Document Group Invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupCancelInviteResponse)} [callback] - error first node.js callback\n ", - "start": 12579, - "end": 12863, - "loc": { - "start": { - "line": 382, - "column": 2 - }, - "end": { - "line": 386, - "column": 5 - } - } - } - ] - } - ] - }, - "leadingComments": [], - "name": "_", - "trailingComments": [] - }, - { - "type": "Identifier", - "start": 13267, - "end": 13296, - "loc": { - "start": { - "line": 408, - "column": 0 - }, - "end": { - "line": 408, - "column": 29 - } - }, - "declaration": { - "type": "Identifier", - "start": 13282, - "end": 13295, - "loc": { - "start": { - "line": 408, - "column": 15 - }, - "end": { - "line": 408, - "column": 28 - }, - "identifierName": "DocumentGroup" - }, - "name": "DocumentGroup" - }, - "name": "_", - "leadingComments": [], - "trailingComments": [] - }, - { - "type": "ExportDefaultDeclaration", - "start": 13267, - "end": 13296, - "loc": { - "start": { - "line": 408, - "column": 0 - }, - "end": { - "line": 408, - "column": 29 - } - }, - "declaration": { - "type": "ClassDeclaration", - "start": 1418, - "end": 13265, - "loc": { - "start": { - "line": 66, - "column": 0 - }, - "end": { - "line": 406, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 1424, - "end": 1437, - "loc": { - "start": { - "line": 66, - "column": 6 - }, - "end": { - "line": 66, - "column": 19 - }, - "identifierName": "DocumentGroup" - }, - "name": "DocumentGroup", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 1438, - "end": 13265, - "loc": { - "start": { - "line": 66, - "column": 20 - }, - "end": { - "line": 406, - "column": 1 - } - }, - "body": [ - { - "type": "ClassMethod", - "start": 2289, - "end": 3657, - "loc": { - "start": { - "line": 88, - "column": 2 - }, - "end": { - "line": 142, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2296, - "end": 2302, - "loc": { - "start": { - "line": 88, - "column": 9 - }, - "end": { - "line": 88, - "column": 15 - }, - "identifierName": "create" - }, - "name": "create" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 2304, - "end": 2345, - "loc": { - "start": { - "line": 88, - "column": 17 - }, - "end": { - "line": 92, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2310, - "end": 2315, - "loc": { - "start": { - "line": 89, - "column": 4 - }, - "end": { - "line": 89, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2310, - "end": 2315, - "loc": { - "start": { - "line": 89, - "column": 4 - }, - "end": { - "line": 89, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 2310, - "end": 2315, - "loc": { - "start": { - "line": 89, - "column": 4 - }, - "end": { - "line": 89, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 2321, - "end": 2324, - "loc": { - "start": { - "line": 90, - "column": 4 - }, - "end": { - "line": 90, - "column": 7 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2321, - "end": 2324, - "loc": { - "start": { - "line": 90, - "column": 4 - }, - "end": { - "line": 90, - "column": 7 - }, - "identifierName": "ids" - }, - "name": "ids" - }, - "value": { - "type": "Identifier", - "start": 2321, - "end": 2324, - "loc": { - "start": { - "line": 90, - "column": 4 - }, - "end": { - "line": 90, - "column": 7 - }, - "identifierName": "ids" - }, - "name": "ids" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 2330, - "end": 2340, - "loc": { - "start": { - "line": 91, - "column": 4 - }, - "end": { - "line": 91, - "column": 14 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2330, - "end": 2340, - "loc": { - "start": { - "line": 91, - "column": 4 - }, - "end": { - "line": 91, - "column": 14 - }, - "identifierName": "group_name" - }, - "name": "group_name" - }, - "value": { - "type": "Identifier", - "start": 2330, - "end": 2340, - "loc": { - "start": { - "line": 91, - "column": 4 - }, - "end": { - "line": 91, - "column": 14 - }, - "identifierName": "group_name" - }, - "name": "group_name" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 2347, - "end": 2355, - "loc": { - "start": { - "line": 92, - "column": 5 - }, - "end": { - "line": 92, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 2357, - "end": 3657, - "loc": { - "start": { - "line": 92, - "column": 15 - }, - "end": { - "line": 142, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 2363, - "end": 2887, - "loc": { - "start": { - "line": 93, - "column": 4 - }, - "end": { - "line": 111, - "column": 9 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2369, - "end": 2886, - "loc": { - "start": { - "line": 93, - "column": 10 - }, - "end": { - "line": 111, - "column": 8 - } - }, - "id": { - "type": "Identifier", - "start": 2369, - "end": 2384, - "loc": { - "start": { - "line": 93, - "column": 10 - }, - "end": { - "line": 93, - "column": 25 - }, - "identifierName": "realDocumentIDs" - }, - "name": "realDocumentIDs" - }, - "init": { - "type": "CallExpression", - "start": 2387, - "end": 2886, - "loc": { - "start": { - "line": 93, - "column": 28 - }, - "end": { - "line": 111, - "column": 8 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2387, - "end": 2401, - "loc": { - "start": { - "line": 93, - "column": 28 - }, - "end": { - "line": 94, - "column": 10 - } - }, - "object": { - "type": "Identifier", - "start": 2387, - "end": 2390, - "loc": { - "start": { - "line": 93, - "column": 28 - }, - "end": { - "line": 93, - "column": 31 - }, - "identifierName": "ids" - }, - "name": "ids" - }, - "property": { - "type": "Identifier", - "start": 2398, - "end": 2401, - "loc": { - "start": { - "line": 94, - "column": 7 - }, - "end": { - "line": 94, - "column": 10 - }, - "identifierName": "map" - }, - "name": "map" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 2402, - "end": 2885, - "loc": { - "start": { - "line": 94, - "column": 11 - }, - "end": { - "line": 111, - "column": 7 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 2402, - "end": 2404, - "loc": { - "start": { - "line": 94, - "column": 11 - }, - "end": { - "line": 94, - "column": 13 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "body": { - "type": "BlockStatement", - "start": 2408, - "end": 2885, - "loc": { - "start": { - "line": 94, - "column": 17 - }, - "end": { - "line": 111, - "column": 7 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 2418, - "end": 2877, - "loc": { - "start": { - "line": 95, - "column": 8 - }, - "end": { - "line": 110, - "column": 13 - } - }, - "argument": { - "type": "CallExpression", - "start": 2425, - "end": 2876, - "loc": { - "start": { - "line": 95, - "column": 15 - }, - "end": { - "line": 110, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2425, - "end": 2503, - "loc": { - "start": { - "line": 95, - "column": 15 - }, - "end": { - "line": 99, - "column": 15 - } - }, - "object": { - "type": "CallExpression", - "start": 2425, - "end": 2487, - "loc": { - "start": { - "line": 95, - "column": 15 - }, - "end": { - "line": 98, - "column": 10 - } - }, - "callee": { - "type": "Identifier", - "start": 2425, - "end": 2443, - "loc": { - "start": { - "line": 95, - "column": 15 - }, - "end": { - "line": 95, - "column": 33 - }, - "identifierName": "getDocumentDetails" - }, - "name": "getDocumentDetails" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 2444, - "end": 2486, - "loc": { - "start": { - "line": 95, - "column": 34 - }, - "end": { - "line": 98, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2456, - "end": 2458, - "loc": { - "start": { - "line": 96, - "column": 10 - }, - "end": { - "line": 96, - "column": 12 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2456, - "end": 2458, - "loc": { - "start": { - "line": 96, - "column": 10 - }, - "end": { - "line": 96, - "column": 12 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 2456, - "end": 2458, - "loc": { - "start": { - "line": 96, - "column": 10 - }, - "end": { - "line": 96, - "column": 12 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 2470, - "end": 2475, - "loc": { - "start": { - "line": 97, - "column": 10 - }, - "end": { - "line": 97, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2470, - "end": 2475, - "loc": { - "start": { - "line": 97, - "column": 10 - }, - "end": { - "line": 97, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 2470, - "end": 2475, - "loc": { - "start": { - "line": 97, - "column": 10 - }, - "end": { - "line": 97, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 2499, - "end": 2503, - "loc": { - "start": { - "line": 99, - "column": 11 - }, - "end": { - "line": 99, - "column": 15 - }, - "identifierName": "then" - }, - "name": "then" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 2504, - "end": 2875, - "loc": { - "start": { - "line": 99, - "column": 16 - }, - "end": { - "line": 110, - "column": 11 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 2504, - "end": 2512, - "loc": { - "start": { - "line": 99, - "column": 16 - }, - "end": { - "line": 99, - "column": 24 - }, - "identifierName": "document" - }, - "name": "document" - } - ], - "body": { - "type": "BlockStatement", - "start": 2516, - "end": 2875, - "loc": { - "start": { - "line": 99, - "column": 28 - }, - "end": { - "line": 110, - "column": 11 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 2530, - "end": 2863, - "loc": { - "start": { - "line": 100, - "column": 12 - }, - "end": { - "line": 109, - "column": 13 - } - }, - "test": { - "type": "CallExpression", - "start": 2534, - "end": 2554, - "loc": { - "start": { - "line": 100, - "column": 16 - }, - "end": { - "line": 100, - "column": 36 - } - }, - "callee": { - "type": "Identifier", - "start": 2534, - "end": 2544, - "loc": { - "start": { - "line": 100, - "column": 16 - }, - "end": { - "line": 100, - "column": 26 - }, - "identifierName": "isTemplate" - }, - "name": "isTemplate" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2545, - "end": 2553, - "loc": { - "start": { - "line": 100, - "column": 27 - }, - "end": { - "line": 100, - "column": 35 - }, - "identifierName": "document" - }, - "name": "document" - } - ] - }, - "consequent": { - "type": "BlockStatement", - "start": 2556, - "end": 2680, - "loc": { - "start": { - "line": 100, - "column": 38 - }, - "end": { - "line": 105, - "column": 13 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 2572, - "end": 2666, - "loc": { - "start": { - "line": 101, - "column": 14 - }, - "end": { - "line": 104, - "column": 17 - } - }, - "argument": { - "type": "CallExpression", - "start": 2579, - "end": 2665, - "loc": { - "start": { - "line": 101, - "column": 21 - }, - "end": { - "line": 104, - "column": 16 - } - }, - "callee": { - "type": "Identifier", - "start": 2579, - "end": 2603, - "loc": { - "start": { - "line": 101, - "column": 21 - }, - "end": { - "line": 101, - "column": 45 - }, - "identifierName": "makeDocumentFromTemplate" - }, - "name": "makeDocumentFromTemplate" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 2604, - "end": 2664, - "loc": { - "start": { - "line": 101, - "column": 46 - }, - "end": { - "line": 104, - "column": 15 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2622, - "end": 2624, - "loc": { - "start": { - "line": 102, - "column": 16 - }, - "end": { - "line": 102, - "column": 18 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2622, - "end": 2624, - "loc": { - "start": { - "line": 102, - "column": 16 - }, - "end": { - "line": 102, - "column": 18 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 2622, - "end": 2624, - "loc": { - "start": { - "line": 102, - "column": 16 - }, - "end": { - "line": 102, - "column": 18 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 2642, - "end": 2647, - "loc": { - "start": { - "line": 103, - "column": 16 - }, - "end": { - "line": 103, - "column": 21 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2642, - "end": 2647, - "loc": { - "start": { - "line": 103, - "column": 16 - }, - "end": { - "line": 103, - "column": 21 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 2642, - "end": 2647, - "loc": { - "start": { - "line": 103, - "column": 16 - }, - "end": { - "line": 103, - "column": 21 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "directives": [] - }, - "alternate": { - "type": "IfStatement", - "start": 2686, - "end": 2863, - "loc": { - "start": { - "line": 105, - "column": 19 - }, - "end": { - "line": 109, - "column": 13 - } - }, - "test": { - "type": "CallExpression", - "start": 2690, - "end": 2715, - "loc": { - "start": { - "line": 105, - "column": 23 - }, - "end": { - "line": 105, - "column": 48 - } - }, - "callee": { - "type": "Identifier", - "start": 2690, - "end": 2705, - "loc": { - "start": { - "line": 105, - "column": 23 - }, - "end": { - "line": 105, - "column": 38 - }, - "identifierName": "hasFieldInvites" - }, - "name": "hasFieldInvites" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2706, - "end": 2714, - "loc": { - "start": { - "line": 105, - "column": 39 - }, - "end": { - "line": 105, - "column": 47 - }, - "identifierName": "document" - }, - "name": "document" - } - ] - }, - "consequent": { - "type": "BlockStatement", - "start": 2717, - "end": 2817, - "loc": { - "start": { - "line": 105, - "column": 50 - }, - "end": { - "line": 107, - "column": 13 - } - }, - "body": [ - { - "type": "ThrowStatement", - "start": 2733, - "end": 2803, - "loc": { - "start": { - "line": 106, - "column": 14 - }, - "end": { - "line": 106, - "column": 84 - } - }, - "argument": { - "type": "NewExpression", - "start": 2739, - "end": 2802, - "loc": { - "start": { - "line": 106, - "column": 20 - }, - "end": { - "line": 106, - "column": 83 - } - }, - "callee": { - "type": "Identifier", - "start": 2743, - "end": 2748, - "loc": { - "start": { - "line": 106, - "column": 24 - }, - "end": { - "line": 106, - "column": 29 - }, - "identifierName": "Error" - }, - "name": "Error" - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2749, - "end": 2801, - "loc": { - "start": { - "line": 106, - "column": 30 - }, - "end": { - "line": 106, - "column": 82 - } - }, - "extra": { - "rawValue": "Document in the group must have no pending invites", - "raw": "'Document in the group must have no pending invites'" - }, - "value": "Document in the group must have no pending invites" - } - ] - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 2823, - "end": 2863, - "loc": { - "start": { - "line": 107, - "column": 19 - }, - "end": { - "line": 109, - "column": 13 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 2839, - "end": 2849, - "loc": { - "start": { - "line": 108, - "column": 14 - }, - "end": { - "line": 108, - "column": 24 - } - }, - "argument": { - "type": "Identifier", - "start": 2846, - "end": 2848, - "loc": { - "start": { - "line": 108, - "column": 21 - }, - "end": { - "line": 108, - "column": 23 - }, - "identifierName": "id" - }, - "name": "id" - } - } - ], - "directives": [] - } - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 2893, - "end": 3653, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 141, - "column": 9 - } - }, - "expression": { - "type": "CallExpression", - "start": 2893, - "end": 3652, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 141, - "column": 8 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2893, - "end": 3587, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 138, - "column": 12 - } - }, - "object": { - "type": "CallExpression", - "start": 2893, - "end": 3574, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 137, - "column": 8 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2893, - "end": 2933, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 114, - "column": 11 - } - }, - "object": { - "type": "CallExpression", - "start": 2893, - "end": 2921, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 113, - "column": 32 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2893, - "end": 2904, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 113, - "column": 15 - } - }, - "object": { - "type": "Identifier", - "start": 2893, - "end": 2900, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 113, - "column": 11 - }, - "identifierName": "Promise" - }, - "name": "Promise" - }, - "property": { - "type": "Identifier", - "start": 2901, - "end": 2904, - "loc": { - "start": { - "line": 113, - "column": 12 - }, - "end": { - "line": 113, - "column": 15 - }, - "identifierName": "all" - }, - "name": "all" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2905, - "end": 2920, - "loc": { - "start": { - "line": 113, - "column": 16 - }, - "end": { - "line": 113, - "column": 31 - }, - "identifierName": "realDocumentIDs" - }, - "name": "realDocumentIDs" - } - ] - }, - "property": { - "type": "Identifier", - "start": 2929, - "end": 2933, - "loc": { - "start": { - "line": 114, - "column": 7 - }, - "end": { - "line": 114, - "column": 11 - }, - "identifierName": "then" - }, - "name": "then" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 2934, - "end": 3573, - "loc": { - "start": { - "line": 114, - "column": 12 - }, - "end": { - "line": 137, - "column": 7 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 2934, - "end": 2946, - "loc": { - "start": { - "line": 114, - "column": 12 - }, - "end": { - "line": 114, - "column": 24 - }, - "identifierName": "document_ids" - }, - "name": "document_ids" - } - ], - "body": { - "type": "BlockStatement", - "start": 2950, - "end": 3573, - "loc": { - "start": { - "line": 114, - "column": 28 - }, - "end": { - "line": 137, - "column": 7 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 2960, - "end": 3051, - "loc": { - "start": { - "line": 115, - "column": 8 - }, - "end": { - "line": 118, - "column": 11 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2966, - "end": 3050, - "loc": { - "start": { - "line": 115, - "column": 14 - }, - "end": { - "line": 118, - "column": 10 - } - }, - "id": { - "type": "Identifier", - "start": 2966, - "end": 2974, - "loc": { - "start": { - "line": 115, - "column": 14 - }, - "end": { - "line": 115, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 2977, - "end": 3050, - "loc": { - "start": { - "line": 115, - "column": 25 - }, - "end": { - "line": 118, - "column": 10 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2977, - "end": 2991, - "loc": { - "start": { - "line": 115, - "column": 25 - }, - "end": { - "line": 115, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 2977, - "end": 2981, - "loc": { - "start": { - "line": 115, - "column": 25 - }, - "end": { - "line": 115, - "column": 29 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 2982, - "end": 2991, - "loc": { - "start": { - "line": 115, - "column": 30 - }, - "end": { - "line": 115, - "column": 39 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 2992, - "end": 3049, - "loc": { - "start": { - "line": 115, - "column": 40 - }, - "end": { - "line": 118, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3004, - "end": 3016, - "loc": { - "start": { - "line": 116, - "column": 10 - }, - "end": { - "line": 116, - "column": 22 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3004, - "end": 3016, - "loc": { - "start": { - "line": 116, - "column": 10 - }, - "end": { - "line": 116, - "column": 22 - }, - "identifierName": "document_ids" - }, - "name": "document_ids" - }, - "value": { - "type": "Identifier", - "start": 3004, - "end": 3016, - "loc": { - "start": { - "line": 116, - "column": 10 - }, - "end": { - "line": 116, - "column": 22 - }, - "identifierName": "document_ids" - }, - "name": "document_ids" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3028, - "end": 3038, - "loc": { - "start": { - "line": 117, - "column": 10 - }, - "end": { - "line": 117, - "column": 20 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3028, - "end": 3038, - "loc": { - "start": { - "line": 117, - "column": 10 - }, - "end": { - "line": 117, - "column": 20 - }, - "identifierName": "group_name" - }, - "name": "group_name" - }, - "value": { - "type": "Identifier", - "start": 3028, - "end": 3038, - "loc": { - "start": { - "line": 117, - "column": 10 - }, - "end": { - "line": 117, - "column": 20 - }, - "identifierName": "group_name" - }, - "name": "group_name" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 3061, - "end": 3516, - "loc": { - "start": { - "line": 120, - "column": 8 - }, - "end": { - "line": 133, - "column": 47 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3067, - "end": 3515, - "loc": { - "start": { - "line": 120, - "column": 14 - }, - "end": { - "line": 133, - "column": 46 - } - }, - "id": { - "type": "Identifier", - "start": 3067, - "end": 3070, - "loc": { - "start": { - "line": 120, - "column": 14 - }, - "end": { - "line": 120, - "column": 17 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 3073, - "end": 3515, - "loc": { - "start": { - "line": 120, - "column": 20 - }, - "end": { - "line": 133, - "column": 46 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3073, - "end": 3482, - "loc": { - "start": { - "line": 120, - "column": 20 - }, - "end": { - "line": 133, - "column": 13 - } - }, - "object": { - "type": "CallExpression", - "start": 3073, - "end": 3468, - "loc": { - "start": { - "line": 120, - "column": 20 - }, - "end": { - "line": 132, - "column": 40 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3073, - "end": 3097, - "loc": { - "start": { - "line": 120, - "column": 20 - }, - "end": { - "line": 121, - "column": 18 - } - }, - "object": { - "type": "Identifier", - "start": 3073, - "end": 3078, - "loc": { - "start": { - "line": 120, - "column": 20 - }, - "end": { - "line": 120, - "column": 25 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 3090, - "end": 3097, - "loc": { - "start": { - "line": 121, - "column": 11 - }, - "end": { - "line": 121, - "column": 18 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 3098, - "end": 3440, - "loc": { - "start": { - "line": 121, - "column": 19 - }, - "end": { - "line": 132, - "column": 12 - } - }, - "callee": { - "type": "Identifier", - "start": 3098, - "end": 3117, - "loc": { - "start": { - "line": 121, - "column": 19 - }, - "end": { - "line": 121, - "column": 38 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 3118, - "end": 3439, - "loc": { - "start": { - "line": 121, - "column": 39 - }, - "end": { - "line": 132, - "column": 11 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3132, - "end": 3146, - "loc": { - "start": { - "line": 122, - "column": 12 - }, - "end": { - "line": 122, - "column": 26 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3132, - "end": 3138, - "loc": { - "start": { - "line": 122, - "column": 12 - }, - "end": { - "line": 122, - "column": 18 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 3140, - "end": 3146, - "loc": { - "start": { - "line": 122, - "column": 20 - }, - "end": { - "line": 122, - "column": 26 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 3160, - "end": 3182, - "loc": { - "start": { - "line": 123, - "column": 12 - }, - "end": { - "line": 123, - "column": 34 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3160, - "end": 3164, - "loc": { - "start": { - "line": 123, - "column": 12 - }, - "end": { - "line": 123, - "column": 16 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 3166, - "end": 3182, - "loc": { - "start": { - "line": 123, - "column": 18 - }, - "end": { - "line": 123, - "column": 34 - } - }, - "extra": { - "rawValue": "/documentgroup", - "raw": "'/documentgroup'" - }, - "value": "/documentgroup" - } - }, - { - "type": "ObjectProperty", - "start": 3196, - "end": 3277, - "loc": { - "start": { - "line": 124, - "column": 12 - }, - "end": { - "line": 127, - "column": 13 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3196, - "end": 3209, - "loc": { - "start": { - "line": 124, - "column": 12 - }, - "end": { - "line": 124, - "column": 25 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 3211, - "end": 3277, - "loc": { - "start": { - "line": 124, - "column": 27 - }, - "end": { - "line": 127, - "column": 13 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3227, - "end": 3241, - "loc": { - "start": { - "line": 125, - "column": 14 - }, - "end": { - "line": 125, - "column": 28 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3227, - "end": 3231, - "loc": { - "start": { - "line": 125, - "column": 14 - }, - "end": { - "line": 125, - "column": 18 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 3233, - "end": 3241, - "loc": { - "start": { - "line": 125, - "column": 20 - }, - "end": { - "line": 125, - "column": 28 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 3257, - "end": 3262, - "loc": { - "start": { - "line": 126, - "column": 14 - }, - "end": { - "line": 126, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3257, - "end": 3262, - "loc": { - "start": { - "line": 126, - "column": 14 - }, - "end": { - "line": 126, - "column": 19 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 3257, - "end": 3262, - "loc": { - "start": { - "line": 126, - "column": 14 - }, - "end": { - "line": 126, - "column": 19 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 3291, - "end": 3426, - "loc": { - "start": { - "line": 128, - "column": 12 - }, - "end": { - "line": 131, - "column": 13 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3291, - "end": 3298, - "loc": { - "start": { - "line": 128, - "column": 12 - }, - "end": { - "line": 128, - "column": 19 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 3300, - "end": 3426, - "loc": { - "start": { - "line": 128, - "column": 21 - }, - "end": { - "line": 131, - "column": 13 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3316, - "end": 3350, - "loc": { - "start": { - "line": 129, - "column": 14 - }, - "end": { - "line": 129, - "column": 48 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 3316, - "end": 3330, - "loc": { - "start": { - "line": 129, - "column": 14 - }, - "end": { - "line": 129, - "column": 28 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 3332, - "end": 3350, - "loc": { - "start": { - "line": 129, - "column": 30 - }, - "end": { - "line": 129, - "column": 48 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 3366, - "end": 3411, - "loc": { - "start": { - "line": 130, - "column": 14 - }, - "end": { - "line": 130, - "column": 59 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 3366, - "end": 3382, - "loc": { - "start": { - "line": 130, - "column": 14 - }, - "end": { - "line": 130, - "column": 30 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 3384, - "end": 3411, - "loc": { - "start": { - "line": 130, - "column": 32 - }, - "end": { - "line": 130, - "column": 59 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3384, - "end": 3401, - "loc": { - "start": { - "line": 130, - "column": 32 - }, - "end": { - "line": 130, - "column": 49 - } - }, - "object": { - "type": "Identifier", - "start": 3384, - "end": 3390, - "loc": { - "start": { - "line": 130, - "column": 32 - }, - "end": { - "line": 130, - "column": 38 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 3391, - "end": 3401, - "loc": { - "start": { - "line": 130, - "column": 39 - }, - "end": { - "line": 130, - "column": 49 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 3402, - "end": 3410, - "loc": { - "start": { - "line": 130, - "column": 50 - }, - "end": { - "line": 130, - "column": 58 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 3442, - "end": 3467, - "loc": { - "start": { - "line": 132, - "column": 14 - }, - "end": { - "line": 132, - "column": 39 - } - }, - "callee": { - "type": "Identifier", - "start": 3442, - "end": 3457, - "loc": { - "start": { - "line": 132, - "column": 14 - }, - "end": { - "line": 132, - "column": 29 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3458, - "end": 3466, - "loc": { - "start": { - "line": 132, - "column": 30 - }, - "end": { - "line": 132, - "column": 38 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 3480, - "end": 3482, - "loc": { - "start": { - "line": 133, - "column": 11 - }, - "end": { - "line": 133, - "column": 13 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 3483, - "end": 3490, - "loc": { - "start": { - "line": 133, - "column": 14 - }, - "end": { - "line": 133, - "column": 21 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 3492, - "end": 3514, - "loc": { - "start": { - "line": 133, - "column": 23 - }, - "end": { - "line": 133, - "column": 45 - } - }, - "callee": { - "type": "Identifier", - "start": 3492, - "end": 3504, - "loc": { - "start": { - "line": 133, - "column": 23 - }, - "end": { - "line": 133, - "column": 35 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3505, - "end": 3513, - "loc": { - "start": { - "line": 133, - "column": 36 - }, - "end": { - "line": 133, - "column": 44 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 3526, - "end": 3546, - "loc": { - "start": { - "line": 135, - "column": 8 - }, - "end": { - "line": 135, - "column": 28 - } - }, - "expression": { - "type": "CallExpression", - "start": 3526, - "end": 3545, - "loc": { - "start": { - "line": 135, - "column": 8 - }, - "end": { - "line": 135, - "column": 27 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3526, - "end": 3535, - "loc": { - "start": { - "line": 135, - "column": 8 - }, - "end": { - "line": 135, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 3526, - "end": 3529, - "loc": { - "start": { - "line": 135, - "column": 8 - }, - "end": { - "line": 135, - "column": 11 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 3530, - "end": 3535, - "loc": { - "start": { - "line": 135, - "column": 12 - }, - "end": { - "line": 135, - "column": 17 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 3536, - "end": 3544, - "loc": { - "start": { - "line": 135, - "column": 18 - }, - "end": { - "line": 135, - "column": 26 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 3555, - "end": 3565, - "loc": { - "start": { - "line": 136, - "column": 8 - }, - "end": { - "line": 136, - "column": 18 - } - }, - "expression": { - "type": "CallExpression", - "start": 3555, - "end": 3564, - "loc": { - "start": { - "line": 136, - "column": 8 - }, - "end": { - "line": 136, - "column": 17 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3555, - "end": 3562, - "loc": { - "start": { - "line": 136, - "column": 8 - }, - "end": { - "line": 136, - "column": 15 - } - }, - "object": { - "type": "Identifier", - "start": 3555, - "end": 3558, - "loc": { - "start": { - "line": 136, - "column": 8 - }, - "end": { - "line": 136, - "column": 11 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 3559, - "end": 3562, - "loc": { - "start": { - "line": 136, - "column": 12 - }, - "end": { - "line": 136, - "column": 15 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - } - } - ] - }, - "property": { - "type": "Identifier", - "start": 3582, - "end": 3587, - "loc": { - "start": { - "line": 138, - "column": 7 - }, - "end": { - "line": 138, - "column": 12 - }, - "identifierName": "catch" - }, - "name": "catch" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 3588, - "end": 3651, - "loc": { - "start": { - "line": 138, - "column": 13 - }, - "end": { - "line": 141, - "column": 7 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 3588, - "end": 3591, - "loc": { - "start": { - "line": 138, - "column": 13 - }, - "end": { - "line": 138, - "column": 16 - }, - "identifierName": "err" - }, - "name": "err" - } - ], - "body": { - "type": "BlockStatement", - "start": 3595, - "end": 3651, - "loc": { - "start": { - "line": 138, - "column": 20 - }, - "end": { - "line": 141, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 3605, - "end": 3627, - "loc": { - "start": { - "line": 139, - "column": 8 - }, - "end": { - "line": 139, - "column": 30 - } - }, - "expression": { - "type": "CallExpression", - "start": 3605, - "end": 3626, - "loc": { - "start": { - "line": 139, - "column": 8 - }, - "end": { - "line": 139, - "column": 29 - } - }, - "callee": { - "type": "Identifier", - "start": 3605, - "end": 3613, - "loc": { - "start": { - "line": 139, - "column": 8 - }, - "end": { - "line": 139, - "column": 16 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 3614, - "end": 3625, - "loc": { - "start": { - "line": 139, - "column": 17 - }, - "end": { - "line": 139, - "column": 28 - } - }, - "object": { - "type": "Identifier", - "start": 3614, - "end": 3617, - "loc": { - "start": { - "line": 139, - "column": 17 - }, - "end": { - "line": 139, - "column": 20 - }, - "identifierName": "err" - }, - "name": "err" - }, - "property": { - "type": "Identifier", - "start": 3618, - "end": 3625, - "loc": { - "start": { - "line": 139, - "column": 21 - }, - "end": { - "line": 139, - "column": 28 - }, - "identifierName": "message" - }, - "name": "message" - }, - "computed": false - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 3636, - "end": 3643, - "loc": { - "start": { - "line": 140, - "column": 8 - }, - "end": { - "line": 140, - "column": 15 - } - }, - "argument": null - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Create document group payload\n * @typedef {Object} DocumentGroupCreateParams\n * @property {string} token - your auth token\n * @property {string[]} ids - array of document or template ids for document group creation\n * @property {string} group_name - new name of document group\n ", - "start": 1443, - "end": 1742, - "loc": { - "start": { - "line": 68, - "column": 2 - }, - "end": { - "line": 74, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document group response data\n * @typedef {Object} DocumentGroupCreateResponse\n * @property {string} id - document group unique id\n ", - "start": 1746, - "end": 1901, - "loc": { - "start": { - "line": 76, - "column": 2 - }, - "end": { - "line": 80, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates document group with specified documents or templates.\n * At least one document or template must contain fields. Documents should not contain pending invites.\n * @param {DocumentGroupCreateParams} data - create document group payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupCreateResponse)} [callback] - error first node.js callback\n ", - "start": 1905, - "end": 2286, - "loc": { - "start": { - "line": 82, - "column": 2 - }, - "end": { - "line": 87, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document Group view payload\n * @typedef {Object} DocumentGroupViewParams\n * @property {string} id - id of specific Document Group\n * @property {string} token - your auth token\n ", - "start": 3661, - "end": 3857, - "loc": { - "start": { - "line": 144, - "column": 2 - }, - "end": { - "line": 149, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Details of single Document in group\n * @typedef {Object} DocumentGroupItem\n * @property {string} id - an ID of Document\n * @property {string} document_name - a name of Document\n * @property {string} origin_document_id - an ID of Document origin\n * @property {boolean} has_credit_card_number - Document has Credit Card number attached\n * @property {boolean} has_unassigned_field - Document has unassigned field(s)\n * @property {DocumentThumbnails} thumbnail - thumbnail urls with different sizes (small, medium, large)\n * @property {string[]} roles - list of template signer roles\n ", - "start": 3861, - "end": 4471, - "loc": { - "start": { - "line": 151, - "column": 2 - }, - "end": { - "line": 161, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group view response data\n * @typedef {Object} DocumentGroupViewResponse\n * @property {string} id - an ID of Document Group\n * @property {string} group_name - a name of Document Group\n * @property {DocumentGroupItem[]} documents - each single document details\n * @property {?string} invite_id - an ID of active invite\n * @property {Object[]} originator_organization_settings - originator organization settings\n ", - "start": 4475, - "end": 4919, - "loc": { - "start": { - "line": 163, - "column": 2 - }, - "end": { - "line": 171, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves a Document Group detailed data\n * @param {DocumentGroupViewParams} data - view Document Group details payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupViewResponse)} [callback] - error first node.js callback\n ", - "start": 4923, - "end": 5179, - "loc": { - "start": { - "line": 173, - "column": 2 - }, - "end": { - "line": 177, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 5182, - "end": 5506, - "loc": { - "start": { - "line": 178, - "column": 2 - }, - "end": { - "line": 190, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5189, - "end": 5193, - "loc": { - "start": { - "line": 178, - "column": 9 - }, - "end": { - "line": 178, - "column": 13 - }, - "identifierName": "view" - }, - "name": "view" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 5195, - "end": 5208, - "loc": { - "start": { - "line": 178, - "column": 15 - }, - "end": { - "line": 178, - "column": 28 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5197, - "end": 5199, - "loc": { - "start": { - "line": 178, - "column": 17 - }, - "end": { - "line": 178, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5197, - "end": 5199, - "loc": { - "start": { - "line": 178, - "column": 17 - }, - "end": { - "line": 178, - "column": 19 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 5197, - "end": 5199, - "loc": { - "start": { - "line": 178, - "column": 17 - }, - "end": { - "line": 178, - "column": 19 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 5201, - "end": 5206, - "loc": { - "start": { - "line": 178, - "column": 21 - }, - "end": { - "line": 178, - "column": 26 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5201, - "end": 5206, - "loc": { - "start": { - "line": 178, - "column": 21 - }, - "end": { - "line": 178, - "column": 26 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 5201, - "end": 5206, - "loc": { - "start": { - "line": 178, - "column": 21 - }, - "end": { - "line": 178, - "column": 26 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 5210, - "end": 5218, - "loc": { - "start": { - "line": 178, - "column": 30 - }, - "end": { - "line": 178, - "column": 38 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 5220, - "end": 5506, - "loc": { - "start": { - "line": 178, - "column": 40 - }, - "end": { - "line": 190, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 5226, - "end": 5502, - "loc": { - "start": { - "line": 179, - "column": 4 - }, - "end": { - "line": 189, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 5226, - "end": 5501, - "loc": { - "start": { - "line": 179, - "column": 4 - }, - "end": { - "line": 189, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5226, - "end": 5499, - "loc": { - "start": { - "line": 179, - "column": 4 - }, - "end": { - "line": 189, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 5226, - "end": 5488, - "loc": { - "start": { - "line": 179, - "column": 4 - }, - "end": { - "line": 188, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5226, - "end": 5455, - "loc": { - "start": { - "line": 179, - "column": 4 - }, - "end": { - "line": 188, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 5226, - "end": 5445, - "loc": { - "start": { - "line": 179, - "column": 4 - }, - "end": { - "line": 187, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5226, - "end": 5246, - "loc": { - "start": { - "line": 179, - "column": 4 - }, - "end": { - "line": 180, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 5226, - "end": 5231, - "loc": { - "start": { - "line": 179, - "column": 4 - }, - "end": { - "line": 179, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 5239, - "end": 5246, - "loc": { - "start": { - "line": 180, - "column": 7 - }, - "end": { - "line": 180, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 5247, - "end": 5417, - "loc": { - "start": { - "line": 180, - "column": 15 - }, - "end": { - "line": 187, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 5247, - "end": 5266, - "loc": { - "start": { - "line": 180, - "column": 15 - }, - "end": { - "line": 180, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 5267, - "end": 5416, - "loc": { - "start": { - "line": 180, - "column": 35 - }, - "end": { - "line": 187, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5277, - "end": 5290, - "loc": { - "start": { - "line": 181, - "column": 8 - }, - "end": { - "line": 181, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5277, - "end": 5283, - "loc": { - "start": { - "line": 181, - "column": 8 - }, - "end": { - "line": 181, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 5285, - "end": 5290, - "loc": { - "start": { - "line": 181, - "column": 16 - }, - "end": { - "line": 181, - "column": 21 - } - }, - "extra": { - "rawValue": "GET", - "raw": "'GET'" - }, - "value": "GET" - } - }, - { - "type": "ObjectProperty", - "start": 5300, - "end": 5328, - "loc": { - "start": { - "line": 182, - "column": 8 - }, - "end": { - "line": 182, - "column": 36 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5300, - "end": 5304, - "loc": { - "start": { - "line": 182, - "column": 8 - }, - "end": { - "line": 182, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 5306, - "end": 5328, - "loc": { - "start": { - "line": 182, - "column": 14 - }, - "end": { - "line": 182, - "column": 36 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 5324, - "end": 5326, - "loc": { - "start": { - "line": 182, - "column": 32 - }, - "end": { - "line": 182, - "column": 34 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 5307, - "end": 5322, - "loc": { - "start": { - "line": 182, - "column": 15 - }, - "end": { - "line": 182, - "column": 30 - } - }, - "value": { - "raw": "/documentgroup/", - "cooked": "/documentgroup/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 5327, - "end": 5327, - "loc": { - "start": { - "line": 182, - "column": 35 - }, - "end": { - "line": 182, - "column": 35 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 5338, - "end": 5407, - "loc": { - "start": { - "line": 183, - "column": 8 - }, - "end": { - "line": 186, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5338, - "end": 5351, - "loc": { - "start": { - "line": 183, - "column": 8 - }, - "end": { - "line": 183, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 5353, - "end": 5407, - "loc": { - "start": { - "line": 183, - "column": 23 - }, - "end": { - "line": 186, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5365, - "end": 5379, - "loc": { - "start": { - "line": 184, - "column": 10 - }, - "end": { - "line": 184, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5365, - "end": 5369, - "loc": { - "start": { - "line": 184, - "column": 10 - }, - "end": { - "line": 184, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 5371, - "end": 5379, - "loc": { - "start": { - "line": 184, - "column": 16 - }, - "end": { - "line": 184, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 5391, - "end": 5396, - "loc": { - "start": { - "line": 185, - "column": 10 - }, - "end": { - "line": 185, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5391, - "end": 5396, - "loc": { - "start": { - "line": 185, - "column": 10 - }, - "end": { - "line": 185, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 5391, - "end": 5396, - "loc": { - "start": { - "line": 185, - "column": 10 - }, - "end": { - "line": 185, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 5419, - "end": 5444, - "loc": { - "start": { - "line": 187, - "column": 10 - }, - "end": { - "line": 187, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 5419, - "end": 5434, - "loc": { - "start": { - "line": 187, - "column": 10 - }, - "end": { - "line": 187, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 5435, - "end": 5443, - "loc": { - "start": { - "line": 187, - "column": 26 - }, - "end": { - "line": 187, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 5453, - "end": 5455, - "loc": { - "start": { - "line": 188, - "column": 7 - }, - "end": { - "line": 188, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 5456, - "end": 5463, - "loc": { - "start": { - "line": 188, - "column": 10 - }, - "end": { - "line": 188, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 5465, - "end": 5487, - "loc": { - "start": { - "line": 188, - "column": 19 - }, - "end": { - "line": 188, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 5465, - "end": 5477, - "loc": { - "start": { - "line": 188, - "column": 19 - }, - "end": { - "line": 188, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 5478, - "end": 5486, - "loc": { - "start": { - "line": 188, - "column": 32 - }, - "end": { - "line": 188, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 5496, - "end": 5499, - "loc": { - "start": { - "line": 189, - "column": 7 - }, - "end": { - "line": 189, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document Group view payload\n * @typedef {Object} DocumentGroupViewParams\n * @property {string} id - id of specific Document Group\n * @property {string} token - your auth token\n ", - "start": 3661, - "end": 3857, - "loc": { - "start": { - "line": 144, - "column": 2 - }, - "end": { - "line": 149, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Details of single Document in group\n * @typedef {Object} DocumentGroupItem\n * @property {string} id - an ID of Document\n * @property {string} document_name - a name of Document\n * @property {string} origin_document_id - an ID of Document origin\n * @property {boolean} has_credit_card_number - Document has Credit Card number attached\n * @property {boolean} has_unassigned_field - Document has unassigned field(s)\n * @property {DocumentThumbnails} thumbnail - thumbnail urls with different sizes (small, medium, large)\n * @property {string[]} roles - list of template signer roles\n ", - "start": 3861, - "end": 4471, - "loc": { - "start": { - "line": 151, - "column": 2 - }, - "end": { - "line": 161, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group view response data\n * @typedef {Object} DocumentGroupViewResponse\n * @property {string} id - an ID of Document Group\n * @property {string} group_name - a name of Document Group\n * @property {DocumentGroupItem[]} documents - each single document details\n * @property {?string} invite_id - an ID of active invite\n * @property {Object[]} originator_organization_settings - originator organization settings\n ", - "start": 4475, - "end": 4919, - "loc": { - "start": { - "line": 163, - "column": 2 - }, - "end": { - "line": 171, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves a Document Group detailed data\n * @param {DocumentGroupViewParams} data - view Document Group details payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupViewResponse)} [callback] - error first node.js callback\n ", - "start": 4923, - "end": 5179, - "loc": { - "start": { - "line": 173, - "column": 2 - }, - "end": { - "line": 177, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document Group invite email configurations\n * @typedef {Object} DocumentGroupInviteEmail\n * @property {string} email - signer's email\n * @property {string} [subject] - subject of invitation email\n * @property {string} [message] - content of invitation email\n * @property {number} [expiration_days] - expiration of invite in days\n * @property {number} [reminder] - number of days in which to remind about invitation via email\n ", - "start": 5510, - "end": 5961, - "loc": { - "start": { - "line": 192, - "column": 2 - }, - "end": { - "line": 200, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group signer's authentication with password config\n * @typedef {Object} DocumentGroupInviteAuthenticationPassword\n * @property {string} type - set `password` to authenticate signer with password\n * @property {string} value - authentication password value\n ", - "start": 5965, - "end": 6249, - "loc": { - "start": { - "line": 202, - "column": 2 - }, - "end": { - "line": 207, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group signer's authentication with phone call config\n * @typedef {Object} DocumentGroupInviteAuthenticationPhoneCall\n * @property {string} type - set `phone` to authenticate signer with phone call\n * @property {string} method - set `phone_call` to authenticate signer with phone call\n * @property {string} phone - phone number\n ", - "start": 6253, - "end": 6611, - "loc": { - "start": { - "line": 209, - "column": 2 - }, - "end": { - "line": 215, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group signer's authentication with phone SMS config\n * @typedef {Object} DocumentGroupInviteAuthenticationPhoneSMS\n * @property {string} type - set `phone` to authenticate signer with phone SMS\n * @property {string} method - set `sms` to authenticate signer with phone SMS\n * @property {string} phone - phone number\n ", - "start": 6615, - "end": 6962, - "loc": { - "start": { - "line": 217, - "column": 2 - }, - "end": { - "line": 223, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite action configurations\n * @typedef {Object} DocumentGroupInviteAction\n * @property {string} email - signer's email\n * @property {string} role_name - signer's role name\n * @property {string} action - name of action with document in signing step\n * @property {string} document_id - ID of document in specific signing step\n * @property {string} [allow_reassign] - allow reassigning of signer\n * @property {string} [decline_by_signature] - signer can decline invite\n * @property {DocumentGroupInviteAuthenticationPassword|DocumentGroupInviteAuthenticationPhoneCall|DocumentGroupInviteAuthenticationPhoneSMS} [authentication] - signer's authentication configuration\n ", - "start": 6966, - "end": 7678, - "loc": { - "start": { - "line": 225, - "column": 2 - }, - "end": { - "line": 235, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite step configurations\n * @typedef {Object} DocumentGroupInviteStep\n * @property {number} order - an order number of invitation step\n * @property {DocumentGroupInviteEmail[]} [invite_emails] - Document Group invite emails settings\n * @property {DocumentGroupInviteAction[]} invite_actions - Document Group invite actions settings\n ", - "start": 7682, - "end": 8053, - "loc": { - "start": { - "line": 237, - "column": 2 - }, - "end": { - "line": 243, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite completion email configuration\n * @typedef {Object} DocumentGroupInviteCompletionEmailConfig\n * @property {string} email - email for completion (only from the signers and document owner emails)\n * @property {number} disable_document_attachment - disable attachment of signed document group to completion email (values: 0|1)\n ", - "start": 8057, - "end": 8423, - "loc": { - "start": { - "line": 245, - "column": 2 - }, - "end": { - "line": 250, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite settings\n * @typedef {Object} DocumentGroupInviteSettings\n * @property {DocumentGroupInviteStep[]} invite_steps - Document Group invite steps settings\n * @property {DocumentGroupInviteCompletionEmailConfig[]} [completion_emails] - set of completion email configutrations\n ", - "start": 8427, - "end": 8740, - "loc": { - "start": { - "line": 252, - "column": 2 - }, - "end": { - "line": 257, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create Document Group invite payload\n * @typedef {Object} DocumentGroupInviteParams\n * @property {string} id - ID of specific Document Group\n * @property {DocumentGroupInviteSettings} data - Document Group invite settings data\n * @property {string} token - your auth token\n ", - "start": 8744, - "end": 9039, - "loc": { - "start": { - "line": 259, - "column": 2 - }, - "end": { - "line": 265, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create Document Group invite response data\n * @typedef {Object} DocumentGroupInviteResponse\n * @property {string} id - ID of created Document Group invitation\n * @property {?string} pending_invite_link - pending invite link\n ", - "start": 9043, - "end": 9287, - "loc": { - "start": { - "line": 267, - "column": 2 - }, - "end": { - "line": 272, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates an invite to sign a Document Group\n * @param {DocumentGroupInviteParams} data - create Document Group invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupInviteResponse)} [callback] - error first node.js callback\n ", - "start": 9291, - "end": 9554, - "loc": { - "start": { - "line": 274, - "column": 2 - }, - "end": { - "line": 278, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 9557, - "end": 10254, - "loc": { - "start": { - "line": 279, - "column": 2 - }, - "end": { - "line": 311, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9564, - "end": 9570, - "loc": { - "start": { - "line": 279, - "column": 9 - }, - "end": { - "line": 279, - "column": 15 - }, - "identifierName": "invite" - }, - "name": "invite" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 9572, - "end": 9606, - "loc": { - "start": { - "line": 279, - "column": 17 - }, - "end": { - "line": 283, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 9578, - "end": 9580, - "loc": { - "start": { - "line": 280, - "column": 4 - }, - "end": { - "line": 280, - "column": 6 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9578, - "end": 9580, - "loc": { - "start": { - "line": 280, - "column": 4 - }, - "end": { - "line": 280, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 9578, - "end": 9580, - "loc": { - "start": { - "line": 280, - "column": 4 - }, - "end": { - "line": 280, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 9586, - "end": 9590, - "loc": { - "start": { - "line": 281, - "column": 4 - }, - "end": { - "line": 281, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9586, - "end": 9590, - "loc": { - "start": { - "line": 281, - "column": 4 - }, - "end": { - "line": 281, - "column": 8 - }, - "identifierName": "data" - }, - "name": "data" - }, - "value": { - "type": "Identifier", - "start": 9586, - "end": 9590, - "loc": { - "start": { - "line": 281, - "column": 4 - }, - "end": { - "line": 281, - "column": 8 - }, - "identifierName": "data" - }, - "name": "data" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 9596, - "end": 9601, - "loc": { - "start": { - "line": 282, - "column": 4 - }, - "end": { - "line": 282, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9596, - "end": 9601, - "loc": { - "start": { - "line": 282, - "column": 4 - }, - "end": { - "line": 282, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 9596, - "end": 9601, - "loc": { - "start": { - "line": 282, - "column": 4 - }, - "end": { - "line": 282, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 9608, - "end": 9616, - "loc": { - "start": { - "line": 283, - "column": 5 - }, - "end": { - "line": 283, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 9618, - "end": 10254, - "loc": { - "start": { - "line": 283, - "column": 15 - }, - "end": { - "line": 311, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 9624, - "end": 9690, - "loc": { - "start": { - "line": 284, - "column": 4 - }, - "end": { - "line": 287, - "column": 13 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 9630, - "end": 9689, - "loc": { - "start": { - "line": 284, - "column": 10 - }, - "end": { - "line": 287, - "column": 12 - } - }, - "id": { - "type": "ObjectPattern", - "start": 9630, - "end": 9682, - "loc": { - "start": { - "line": 284, - "column": 10 - }, - "end": { - "line": 287, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 9638, - "end": 9650, - "loc": { - "start": { - "line": 285, - "column": 6 - }, - "end": { - "line": 285, - "column": 18 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9638, - "end": 9650, - "loc": { - "start": { - "line": 285, - "column": 6 - }, - "end": { - "line": 285, - "column": 18 - }, - "identifierName": "invite_steps" - }, - "name": "invite_steps" - }, - "value": { - "type": "Identifier", - "start": 9638, - "end": 9650, - "loc": { - "start": { - "line": 285, - "column": 6 - }, - "end": { - "line": 285, - "column": 18 - }, - "identifierName": "invite_steps" - }, - "name": "invite_steps" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 9658, - "end": 9675, - "loc": { - "start": { - "line": 286, - "column": 6 - }, - "end": { - "line": 286, - "column": 23 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9658, - "end": 9675, - "loc": { - "start": { - "line": 286, - "column": 6 - }, - "end": { - "line": 286, - "column": 23 - }, - "identifierName": "completion_emails" - }, - "name": "completion_emails" - }, - "value": { - "type": "Identifier", - "start": 9658, - "end": 9675, - "loc": { - "start": { - "line": 286, - "column": 6 - }, - "end": { - "line": 286, - "column": 23 - }, - "identifierName": "completion_emails" - }, - "name": "completion_emails" - }, - "extra": { - "shorthand": true - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 9685, - "end": 9689, - "loc": { - "start": { - "line": 287, - "column": 8 - }, - "end": { - "line": 287, - "column": 12 - }, - "identifierName": "data" - }, - "name": "data" - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 9696, - "end": 9782, - "loc": { - "start": { - "line": 289, - "column": 4 - }, - "end": { - "line": 292, - "column": 7 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 9702, - "end": 9781, - "loc": { - "start": { - "line": 289, - "column": 10 - }, - "end": { - "line": 292, - "column": 6 - } - }, - "id": { - "type": "Identifier", - "start": 9702, - "end": 9710, - "loc": { - "start": { - "line": 289, - "column": 10 - }, - "end": { - "line": 289, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 9713, - "end": 9781, - "loc": { - "start": { - "line": 289, - "column": 21 - }, - "end": { - "line": 292, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9713, - "end": 9727, - "loc": { - "start": { - "line": 289, - "column": 21 - }, - "end": { - "line": 289, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 9713, - "end": 9717, - "loc": { - "start": { - "line": 289, - "column": 21 - }, - "end": { - "line": 289, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 9718, - "end": 9727, - "loc": { - "start": { - "line": 289, - "column": 26 - }, - "end": { - "line": 289, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 9728, - "end": 9780, - "loc": { - "start": { - "line": 289, - "column": 36 - }, - "end": { - "line": 292, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 9736, - "end": 9748, - "loc": { - "start": { - "line": 290, - "column": 6 - }, - "end": { - "line": 290, - "column": 18 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9736, - "end": 9748, - "loc": { - "start": { - "line": 290, - "column": 6 - }, - "end": { - "line": 290, - "column": 18 - }, - "identifierName": "invite_steps" - }, - "name": "invite_steps" - }, - "value": { - "type": "Identifier", - "start": 9736, - "end": 9748, - "loc": { - "start": { - "line": 290, - "column": 6 - }, - "end": { - "line": 290, - "column": 18 - }, - "identifierName": "invite_steps" - }, - "name": "invite_steps" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 9756, - "end": 9773, - "loc": { - "start": { - "line": 291, - "column": 6 - }, - "end": { - "line": 291, - "column": 23 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9756, - "end": 9773, - "loc": { - "start": { - "line": 291, - "column": 6 - }, - "end": { - "line": 291, - "column": 23 - }, - "identifierName": "completion_emails" - }, - "name": "completion_emails" - }, - "value": { - "type": "Identifier", - "start": 9756, - "end": 9773, - "loc": { - "start": { - "line": 291, - "column": 6 - }, - "end": { - "line": 291, - "column": 23 - }, - "identifierName": "completion_emails" - }, - "name": "completion_emails" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 9788, - "end": 10209, - "loc": { - "start": { - "line": 294, - "column": 4 - }, - "end": { - "line": 307, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 9794, - "end": 10208, - "loc": { - "start": { - "line": 294, - "column": 10 - }, - "end": { - "line": 307, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 9794, - "end": 9797, - "loc": { - "start": { - "line": 294, - "column": 10 - }, - "end": { - "line": 294, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 9800, - "end": 10208, - "loc": { - "start": { - "line": 294, - "column": 16 - }, - "end": { - "line": 307, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9800, - "end": 10175, - "loc": { - "start": { - "line": 294, - "column": 16 - }, - "end": { - "line": 307, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 9800, - "end": 10165, - "loc": { - "start": { - "line": 294, - "column": 16 - }, - "end": { - "line": 306, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9800, - "end": 9820, - "loc": { - "start": { - "line": 294, - "column": 16 - }, - "end": { - "line": 295, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 9800, - "end": 9805, - "loc": { - "start": { - "line": 294, - "column": 16 - }, - "end": { - "line": 294, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 9813, - "end": 9820, - "loc": { - "start": { - "line": 295, - "column": 7 - }, - "end": { - "line": 295, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 9821, - "end": 10137, - "loc": { - "start": { - "line": 295, - "column": 15 - }, - "end": { - "line": 306, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 9821, - "end": 9840, - "loc": { - "start": { - "line": 295, - "column": 15 - }, - "end": { - "line": 295, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 9841, - "end": 10136, - "loc": { - "start": { - "line": 295, - "column": 35 - }, - "end": { - "line": 306, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 9851, - "end": 9865, - "loc": { - "start": { - "line": 296, - "column": 8 - }, - "end": { - "line": 296, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 9851, - "end": 9857, - "loc": { - "start": { - "line": 296, - "column": 8 - }, - "end": { - "line": 296, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 9859, - "end": 9865, - "loc": { - "start": { - "line": 296, - "column": 16 - }, - "end": { - "line": 296, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 9875, - "end": 9915, - "loc": { - "start": { - "line": 297, - "column": 8 - }, - "end": { - "line": 297, - "column": 48 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 9875, - "end": 9879, - "loc": { - "start": { - "line": 297, - "column": 8 - }, - "end": { - "line": 297, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 9881, - "end": 9915, - "loc": { - "start": { - "line": 297, - "column": 14 - }, - "end": { - "line": 297, - "column": 48 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 9899, - "end": 9901, - "loc": { - "start": { - "line": 297, - "column": 32 - }, - "end": { - "line": 297, - "column": 34 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 9882, - "end": 9897, - "loc": { - "start": { - "line": 297, - "column": 15 - }, - "end": { - "line": 297, - "column": 30 - } - }, - "value": { - "raw": "/documentgroup/", - "cooked": "/documentgroup/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 9902, - "end": 9914, - "loc": { - "start": { - "line": 297, - "column": 35 - }, - "end": { - "line": 297, - "column": 47 - } - }, - "value": { - "raw": "/groupinvite", - "cooked": "/groupinvite" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 9925, - "end": 9994, - "loc": { - "start": { - "line": 298, - "column": 8 - }, - "end": { - "line": 301, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 9925, - "end": 9938, - "loc": { - "start": { - "line": 298, - "column": 8 - }, - "end": { - "line": 298, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 9940, - "end": 9994, - "loc": { - "start": { - "line": 298, - "column": 23 - }, - "end": { - "line": 301, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 9952, - "end": 9966, - "loc": { - "start": { - "line": 299, - "column": 10 - }, - "end": { - "line": 299, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 9952, - "end": 9956, - "loc": { - "start": { - "line": 299, - "column": 10 - }, - "end": { - "line": 299, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 9958, - "end": 9966, - "loc": { - "start": { - "line": 299, - "column": 16 - }, - "end": { - "line": 299, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 9978, - "end": 9983, - "loc": { - "start": { - "line": 300, - "column": 10 - }, - "end": { - "line": 300, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 9978, - "end": 9983, - "loc": { - "start": { - "line": 300, - "column": 10 - }, - "end": { - "line": 300, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 9978, - "end": 9983, - "loc": { - "start": { - "line": 300, - "column": 10 - }, - "end": { - "line": 300, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 10004, - "end": 10127, - "loc": { - "start": { - "line": 302, - "column": 8 - }, - "end": { - "line": 305, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 10004, - "end": 10011, - "loc": { - "start": { - "line": 302, - "column": 8 - }, - "end": { - "line": 302, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 10013, - "end": 10127, - "loc": { - "start": { - "line": 302, - "column": 17 - }, - "end": { - "line": 305, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 10025, - "end": 10059, - "loc": { - "start": { - "line": 303, - "column": 10 - }, - "end": { - "line": 303, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 10025, - "end": 10039, - "loc": { - "start": { - "line": 303, - "column": 10 - }, - "end": { - "line": 303, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 10041, - "end": 10059, - "loc": { - "start": { - "line": 303, - "column": 26 - }, - "end": { - "line": 303, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 10071, - "end": 10116, - "loc": { - "start": { - "line": 304, - "column": 10 - }, - "end": { - "line": 304, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 10071, - "end": 10087, - "loc": { - "start": { - "line": 304, - "column": 10 - }, - "end": { - "line": 304, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 10089, - "end": 10116, - "loc": { - "start": { - "line": 304, - "column": 28 - }, - "end": { - "line": 304, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10089, - "end": 10106, - "loc": { - "start": { - "line": 304, - "column": 28 - }, - "end": { - "line": 304, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 10089, - "end": 10095, - "loc": { - "start": { - "line": 304, - "column": 28 - }, - "end": { - "line": 304, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 10096, - "end": 10106, - "loc": { - "start": { - "line": 304, - "column": 35 - }, - "end": { - "line": 304, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 10107, - "end": 10115, - "loc": { - "start": { - "line": 304, - "column": 46 - }, - "end": { - "line": 304, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 10139, - "end": 10164, - "loc": { - "start": { - "line": 306, - "column": 10 - }, - "end": { - "line": 306, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 10139, - "end": 10154, - "loc": { - "start": { - "line": 306, - "column": 10 - }, - "end": { - "line": 306, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 10155, - "end": 10163, - "loc": { - "start": { - "line": 306, - "column": 26 - }, - "end": { - "line": 306, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 10173, - "end": 10175, - "loc": { - "start": { - "line": 307, - "column": 7 - }, - "end": { - "line": 307, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 10176, - "end": 10183, - "loc": { - "start": { - "line": 307, - "column": 10 - }, - "end": { - "line": 307, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 10185, - "end": 10207, - "loc": { - "start": { - "line": 307, - "column": 19 - }, - "end": { - "line": 307, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 10185, - "end": 10197, - "loc": { - "start": { - "line": 307, - "column": 19 - }, - "end": { - "line": 307, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 10198, - "end": 10206, - "loc": { - "start": { - "line": 307, - "column": 32 - }, - "end": { - "line": 307, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 10215, - "end": 10235, - "loc": { - "start": { - "line": 309, - "column": 4 - }, - "end": { - "line": 309, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 10215, - "end": 10234, - "loc": { - "start": { - "line": 309, - "column": 4 - }, - "end": { - "line": 309, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10215, - "end": 10224, - "loc": { - "start": { - "line": 309, - "column": 4 - }, - "end": { - "line": 309, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 10215, - "end": 10218, - "loc": { - "start": { - "line": 309, - "column": 4 - }, - "end": { - "line": 309, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 10219, - "end": 10224, - "loc": { - "start": { - "line": 309, - "column": 8 - }, - "end": { - "line": 309, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 10225, - "end": 10233, - "loc": { - "start": { - "line": 309, - "column": 14 - }, - "end": { - "line": 309, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 10240, - "end": 10250, - "loc": { - "start": { - "line": 310, - "column": 4 - }, - "end": { - "line": 310, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 10240, - "end": 10249, - "loc": { - "start": { - "line": 310, - "column": 4 - }, - "end": { - "line": 310, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10240, - "end": 10247, - "loc": { - "start": { - "line": 310, - "column": 4 - }, - "end": { - "line": 310, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 10240, - "end": 10243, - "loc": { - "start": { - "line": 310, - "column": 4 - }, - "end": { - "line": 310, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 10244, - "end": 10247, - "loc": { - "start": { - "line": 310, - "column": 8 - }, - "end": { - "line": 310, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document Group invite email configurations\n * @typedef {Object} DocumentGroupInviteEmail\n * @property {string} email - signer's email\n * @property {string} [subject] - subject of invitation email\n * @property {string} [message] - content of invitation email\n * @property {number} [expiration_days] - expiration of invite in days\n * @property {number} [reminder] - number of days in which to remind about invitation via email\n ", - "start": 5510, - "end": 5961, - "loc": { - "start": { - "line": 192, - "column": 2 - }, - "end": { - "line": 200, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group signer's authentication with password config\n * @typedef {Object} DocumentGroupInviteAuthenticationPassword\n * @property {string} type - set `password` to authenticate signer with password\n * @property {string} value - authentication password value\n ", - "start": 5965, - "end": 6249, - "loc": { - "start": { - "line": 202, - "column": 2 - }, - "end": { - "line": 207, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group signer's authentication with phone call config\n * @typedef {Object} DocumentGroupInviteAuthenticationPhoneCall\n * @property {string} type - set `phone` to authenticate signer with phone call\n * @property {string} method - set `phone_call` to authenticate signer with phone call\n * @property {string} phone - phone number\n ", - "start": 6253, - "end": 6611, - "loc": { - "start": { - "line": 209, - "column": 2 - }, - "end": { - "line": 215, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group signer's authentication with phone SMS config\n * @typedef {Object} DocumentGroupInviteAuthenticationPhoneSMS\n * @property {string} type - set `phone` to authenticate signer with phone SMS\n * @property {string} method - set `sms` to authenticate signer with phone SMS\n * @property {string} phone - phone number\n ", - "start": 6615, - "end": 6962, - "loc": { - "start": { - "line": 217, - "column": 2 - }, - "end": { - "line": 223, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite action configurations\n * @typedef {Object} DocumentGroupInviteAction\n * @property {string} email - signer's email\n * @property {string} role_name - signer's role name\n * @property {string} action - name of action with document in signing step\n * @property {string} document_id - ID of document in specific signing step\n * @property {string} [allow_reassign] - allow reassigning of signer\n * @property {string} [decline_by_signature] - signer can decline invite\n * @property {DocumentGroupInviteAuthenticationPassword|DocumentGroupInviteAuthenticationPhoneCall|DocumentGroupInviteAuthenticationPhoneSMS} [authentication] - signer's authentication configuration\n ", - "start": 6966, - "end": 7678, - "loc": { - "start": { - "line": 225, - "column": 2 - }, - "end": { - "line": 235, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite step configurations\n * @typedef {Object} DocumentGroupInviteStep\n * @property {number} order - an order number of invitation step\n * @property {DocumentGroupInviteEmail[]} [invite_emails] - Document Group invite emails settings\n * @property {DocumentGroupInviteAction[]} invite_actions - Document Group invite actions settings\n ", - "start": 7682, - "end": 8053, - "loc": { - "start": { - "line": 237, - "column": 2 - }, - "end": { - "line": 243, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite completion email configuration\n * @typedef {Object} DocumentGroupInviteCompletionEmailConfig\n * @property {string} email - email for completion (only from the signers and document owner emails)\n * @property {number} disable_document_attachment - disable attachment of signed document group to completion email (values: 0|1)\n ", - "start": 8057, - "end": 8423, - "loc": { - "start": { - "line": 245, - "column": 2 - }, - "end": { - "line": 250, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite settings\n * @typedef {Object} DocumentGroupInviteSettings\n * @property {DocumentGroupInviteStep[]} invite_steps - Document Group invite steps settings\n * @property {DocumentGroupInviteCompletionEmailConfig[]} [completion_emails] - set of completion email configutrations\n ", - "start": 8427, - "end": 8740, - "loc": { - "start": { - "line": 252, - "column": 2 - }, - "end": { - "line": 257, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create Document Group invite payload\n * @typedef {Object} DocumentGroupInviteParams\n * @property {string} id - ID of specific Document Group\n * @property {DocumentGroupInviteSettings} data - Document Group invite settings data\n * @property {string} token - your auth token\n ", - "start": 8744, - "end": 9039, - "loc": { - "start": { - "line": 259, - "column": 2 - }, - "end": { - "line": 265, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create Document Group invite response data\n * @typedef {Object} DocumentGroupInviteResponse\n * @property {string} id - ID of created Document Group invitation\n * @property {?string} pending_invite_link - pending invite link\n ", - "start": 9043, - "end": 9287, - "loc": { - "start": { - "line": 267, - "column": 2 - }, - "end": { - "line": 272, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates an invite to sign a Document Group\n * @param {DocumentGroupInviteParams} data - create Document Group invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupInviteResponse)} [callback] - error first node.js callback\n ", - "start": 9291, - "end": 9554, - "loc": { - "start": { - "line": 274, - "column": 2 - }, - "end": { - "line": 278, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document Group download payload\n * @typedef {Object} DocumentGroupDownloadParams\n * @property {string} id - an ID of a Document Group\n * @property {string} token - your auth token\n * @property {string} [type='zip'] - type of download flow, can be either `zip` or `merged`\n * @property {string} [with_history='no'] - type of history merging flow, can be `no`, `after_each_document`, or `after_merged_pdf`\n * @property {string[]} [document_order] - document order for merging flow\n ", - "start": 10258, - "end": 10763, - "loc": { - "start": { - "line": 313, - "column": 2 - }, - "end": { - "line": 321, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group binary data\n * @typedef {Buffer} DocumentGroupDownloadResponse\n ", - "start": 10767, - "end": 10861, - "loc": { - "start": { - "line": 323, - "column": 2 - }, - "end": { - "line": 326, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Downloads a document group.\n * By default document group will be downloaded as a zip archive and without history.\n * To download document group as a single merged PDF set `type` to `merged`.\n * To download document group with history set `with_history` to `after_each_document` or `after_merged_pdf`.\n * @param {DocumentGroupDownloadParams} data - download Document Group request payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupDownloadResponse)} [callback] - error first node.js callback\n ", - "start": 10865, - "end": 11399, - "loc": { - "start": { - "line": 328, - "column": 2 - }, - "end": { - "line": 335, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 11402, - "end": 12096, - "loc": { - "start": { - "line": 336, - "column": 2 - }, - "end": { - "line": 366, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 11409, - "end": 11417, - "loc": { - "start": { - "line": 336, - "column": 9 - }, - "end": { - "line": 336, - "column": 17 - }, - "identifierName": "download" - }, - "name": "download" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 11419, - "end": 11511, - "loc": { - "start": { - "line": 336, - "column": 19 - }, - "end": { - "line": 342, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 11425, - "end": 11427, - "loc": { - "start": { - "line": 337, - "column": 4 - }, - "end": { - "line": 337, - "column": 6 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 11425, - "end": 11427, - "loc": { - "start": { - "line": 337, - "column": 4 - }, - "end": { - "line": 337, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 11425, - "end": 11427, - "loc": { - "start": { - "line": 337, - "column": 4 - }, - "end": { - "line": 337, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 11433, - "end": 11438, - "loc": { - "start": { - "line": 338, - "column": 4 - }, - "end": { - "line": 338, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 11433, - "end": 11438, - "loc": { - "start": { - "line": 338, - "column": 4 - }, - "end": { - "line": 338, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 11433, - "end": 11438, - "loc": { - "start": { - "line": 338, - "column": 4 - }, - "end": { - "line": 338, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 11444, - "end": 11456, - "loc": { - "start": { - "line": 339, - "column": 4 - }, - "end": { - "line": 339, - "column": 16 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 11444, - "end": 11448, - "loc": { - "start": { - "line": 339, - "column": 4 - }, - "end": { - "line": 339, - "column": 8 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "AssignmentPattern", - "start": 11444, - "end": 11456, - "loc": { - "start": { - "line": 339, - "column": 4 - }, - "end": { - "line": 339, - "column": 16 - } - }, - "left": { - "type": "Identifier", - "start": 11444, - "end": 11448, - "loc": { - "start": { - "line": 339, - "column": 4 - }, - "end": { - "line": 339, - "column": 8 - }, - "identifierName": "type" - }, - "name": "type" - }, - "right": { - "type": "StringLiteral", - "start": 11451, - "end": 11456, - "loc": { - "start": { - "line": 339, - "column": 11 - }, - "end": { - "line": 339, - "column": 16 - } - }, - "extra": { - "rawValue": "zip", - "raw": "'zip'" - }, - "value": "zip" - } - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 11462, - "end": 11481, - "loc": { - "start": { - "line": 340, - "column": 4 - }, - "end": { - "line": 340, - "column": 23 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 11462, - "end": 11474, - "loc": { - "start": { - "line": 340, - "column": 4 - }, - "end": { - "line": 340, - "column": 16 - }, - "identifierName": "with_history" - }, - "name": "with_history" - }, - "value": { - "type": "AssignmentPattern", - "start": 11462, - "end": 11481, - "loc": { - "start": { - "line": 340, - "column": 4 - }, - "end": { - "line": 340, - "column": 23 - } - }, - "left": { - "type": "Identifier", - "start": 11462, - "end": 11474, - "loc": { - "start": { - "line": 340, - "column": 4 - }, - "end": { - "line": 340, - "column": 16 - }, - "identifierName": "with_history" - }, - "name": "with_history" - }, - "right": { - "type": "StringLiteral", - "start": 11477, - "end": 11481, - "loc": { - "start": { - "line": 340, - "column": 19 - }, - "end": { - "line": 340, - "column": 23 - } - }, - "extra": { - "rawValue": "no", - "raw": "'no'" - }, - "value": "no" - } - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 11487, - "end": 11506, - "loc": { - "start": { - "line": 341, - "column": 4 - }, - "end": { - "line": 341, - "column": 23 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 11487, - "end": 11501, - "loc": { - "start": { - "line": 341, - "column": 4 - }, - "end": { - "line": 341, - "column": 18 - }, - "identifierName": "document_order" - }, - "name": "document_order" - }, - "value": { - "type": "AssignmentPattern", - "start": 11487, - "end": 11506, - "loc": { - "start": { - "line": 341, - "column": 4 - }, - "end": { - "line": 341, - "column": 23 - } - }, - "left": { - "type": "Identifier", - "start": 11487, - "end": 11501, - "loc": { - "start": { - "line": 341, - "column": 4 - }, - "end": { - "line": 341, - "column": 18 - }, - "identifierName": "document_order" - }, - "name": "document_order" - }, - "right": { - "type": "ArrayExpression", - "start": 11504, - "end": 11506, - "loc": { - "start": { - "line": 341, - "column": 21 - }, - "end": { - "line": 341, - "column": 23 - } - }, - "elements": [] - } - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 11513, - "end": 11521, - "loc": { - "start": { - "line": 342, - "column": 5 - }, - "end": { - "line": 342, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 11523, - "end": 12096, - "loc": { - "start": { - "line": 342, - "column": 15 - }, - "end": { - "line": 366, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 11529, - "end": 11624, - "loc": { - "start": { - "line": 343, - "column": 4 - }, - "end": { - "line": 347, - "column": 7 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 11535, - "end": 11623, - "loc": { - "start": { - "line": 343, - "column": 10 - }, - "end": { - "line": 347, - "column": 6 - } - }, - "id": { - "type": "Identifier", - "start": 11535, - "end": 11543, - "loc": { - "start": { - "line": 343, - "column": 10 - }, - "end": { - "line": 343, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 11546, - "end": 11623, - "loc": { - "start": { - "line": 343, - "column": 21 - }, - "end": { - "line": 347, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11546, - "end": 11560, - "loc": { - "start": { - "line": 343, - "column": 21 - }, - "end": { - "line": 343, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 11546, - "end": 11550, - "loc": { - "start": { - "line": 343, - "column": 21 - }, - "end": { - "line": 343, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 11551, - "end": 11560, - "loc": { - "start": { - "line": 343, - "column": 26 - }, - "end": { - "line": 343, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 11561, - "end": 11622, - "loc": { - "start": { - "line": 343, - "column": 36 - }, - "end": { - "line": 347, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 11569, - "end": 11573, - "loc": { - "start": { - "line": 344, - "column": 6 - }, - "end": { - "line": 344, - "column": 10 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 11569, - "end": 11573, - "loc": { - "start": { - "line": 344, - "column": 6 - }, - "end": { - "line": 344, - "column": 10 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "Identifier", - "start": 11569, - "end": 11573, - "loc": { - "start": { - "line": 344, - "column": 6 - }, - "end": { - "line": 344, - "column": 10 - }, - "identifierName": "type" - }, - "name": "type" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 11581, - "end": 11593, - "loc": { - "start": { - "line": 345, - "column": 6 - }, - "end": { - "line": 345, - "column": 18 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 11581, - "end": 11593, - "loc": { - "start": { - "line": 345, - "column": 6 - }, - "end": { - "line": 345, - "column": 18 - }, - "identifierName": "with_history" - }, - "name": "with_history" - }, - "value": { - "type": "Identifier", - "start": 11581, - "end": 11593, - "loc": { - "start": { - "line": 345, - "column": 6 - }, - "end": { - "line": 345, - "column": 18 - }, - "identifierName": "with_history" - }, - "name": "with_history" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 11601, - "end": 11615, - "loc": { - "start": { - "line": 346, - "column": 6 - }, - "end": { - "line": 346, - "column": 20 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 11601, - "end": 11615, - "loc": { - "start": { - "line": 346, - "column": 6 - }, - "end": { - "line": 346, - "column": 20 - }, - "identifierName": "document_order" - }, - "name": "document_order" - }, - "value": { - "type": "Identifier", - "start": 11601, - "end": 11615, - "loc": { - "start": { - "line": 346, - "column": 6 - }, - "end": { - "line": 346, - "column": 20 - }, - "identifierName": "document_order" - }, - "name": "document_order" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 11630, - "end": 12051, - "loc": { - "start": { - "line": 349, - "column": 4 - }, - "end": { - "line": 362, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 11636, - "end": 12050, - "loc": { - "start": { - "line": 349, - "column": 10 - }, - "end": { - "line": 362, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 11636, - "end": 11639, - "loc": { - "start": { - "line": 349, - "column": 10 - }, - "end": { - "line": 349, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 11642, - "end": 12050, - "loc": { - "start": { - "line": 349, - "column": 16 - }, - "end": { - "line": 362, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11642, - "end": 12017, - "loc": { - "start": { - "line": 349, - "column": 16 - }, - "end": { - "line": 362, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 11642, - "end": 12007, - "loc": { - "start": { - "line": 349, - "column": 16 - }, - "end": { - "line": 361, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11642, - "end": 11662, - "loc": { - "start": { - "line": 349, - "column": 16 - }, - "end": { - "line": 350, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 11642, - "end": 11647, - "loc": { - "start": { - "line": 349, - "column": 16 - }, - "end": { - "line": 349, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 11655, - "end": 11662, - "loc": { - "start": { - "line": 350, - "column": 7 - }, - "end": { - "line": 350, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 11663, - "end": 11979, - "loc": { - "start": { - "line": 350, - "column": 15 - }, - "end": { - "line": 361, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 11663, - "end": 11682, - "loc": { - "start": { - "line": 350, - "column": 15 - }, - "end": { - "line": 350, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 11683, - "end": 11978, - "loc": { - "start": { - "line": 350, - "column": 35 - }, - "end": { - "line": 361, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 11693, - "end": 11707, - "loc": { - "start": { - "line": 351, - "column": 8 - }, - "end": { - "line": 351, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 11693, - "end": 11699, - "loc": { - "start": { - "line": 351, - "column": 8 - }, - "end": { - "line": 351, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 11701, - "end": 11707, - "loc": { - "start": { - "line": 351, - "column": 16 - }, - "end": { - "line": 351, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 11717, - "end": 11757, - "loc": { - "start": { - "line": 352, - "column": 8 - }, - "end": { - "line": 352, - "column": 48 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 11717, - "end": 11721, - "loc": { - "start": { - "line": 352, - "column": 8 - }, - "end": { - "line": 352, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 11723, - "end": 11757, - "loc": { - "start": { - "line": 352, - "column": 14 - }, - "end": { - "line": 352, - "column": 48 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 11741, - "end": 11743, - "loc": { - "start": { - "line": 352, - "column": 32 - }, - "end": { - "line": 352, - "column": 34 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 11724, - "end": 11739, - "loc": { - "start": { - "line": 352, - "column": 15 - }, - "end": { - "line": 352, - "column": 30 - } - }, - "value": { - "raw": "/documentgroup/", - "cooked": "/documentgroup/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 11744, - "end": 11756, - "loc": { - "start": { - "line": 352, - "column": 35 - }, - "end": { - "line": 352, - "column": 47 - } - }, - "value": { - "raw": "/downloadall", - "cooked": "/downloadall" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 11767, - "end": 11836, - "loc": { - "start": { - "line": 353, - "column": 8 - }, - "end": { - "line": 356, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 11767, - "end": 11780, - "loc": { - "start": { - "line": 353, - "column": 8 - }, - "end": { - "line": 353, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 11782, - "end": 11836, - "loc": { - "start": { - "line": 353, - "column": 23 - }, - "end": { - "line": 356, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 11794, - "end": 11808, - "loc": { - "start": { - "line": 354, - "column": 10 - }, - "end": { - "line": 354, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 11794, - "end": 11798, - "loc": { - "start": { - "line": 354, - "column": 10 - }, - "end": { - "line": 354, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 11800, - "end": 11808, - "loc": { - "start": { - "line": 354, - "column": 16 - }, - "end": { - "line": 354, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 11820, - "end": 11825, - "loc": { - "start": { - "line": 355, - "column": 10 - }, - "end": { - "line": 355, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 11820, - "end": 11825, - "loc": { - "start": { - "line": 355, - "column": 10 - }, - "end": { - "line": 355, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 11820, - "end": 11825, - "loc": { - "start": { - "line": 355, - "column": 10 - }, - "end": { - "line": 355, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 11846, - "end": 11969, - "loc": { - "start": { - "line": 357, - "column": 8 - }, - "end": { - "line": 360, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 11846, - "end": 11853, - "loc": { - "start": { - "line": 357, - "column": 8 - }, - "end": { - "line": 357, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 11855, - "end": 11969, - "loc": { - "start": { - "line": 357, - "column": 17 - }, - "end": { - "line": 360, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 11867, - "end": 11901, - "loc": { - "start": { - "line": 358, - "column": 10 - }, - "end": { - "line": 358, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 11867, - "end": 11881, - "loc": { - "start": { - "line": 358, - "column": 10 - }, - "end": { - "line": 358, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 11883, - "end": 11901, - "loc": { - "start": { - "line": 358, - "column": 26 - }, - "end": { - "line": 358, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 11913, - "end": 11958, - "loc": { - "start": { - "line": 359, - "column": 10 - }, - "end": { - "line": 359, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 11913, - "end": 11929, - "loc": { - "start": { - "line": 359, - "column": 10 - }, - "end": { - "line": 359, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 11931, - "end": 11958, - "loc": { - "start": { - "line": 359, - "column": 28 - }, - "end": { - "line": 359, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11931, - "end": 11948, - "loc": { - "start": { - "line": 359, - "column": 28 - }, - "end": { - "line": 359, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 11931, - "end": 11937, - "loc": { - "start": { - "line": 359, - "column": 28 - }, - "end": { - "line": 359, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 11938, - "end": 11948, - "loc": { - "start": { - "line": 359, - "column": 35 - }, - "end": { - "line": 359, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 11949, - "end": 11957, - "loc": { - "start": { - "line": 359, - "column": 46 - }, - "end": { - "line": 359, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 11981, - "end": 12006, - "loc": { - "start": { - "line": 361, - "column": 10 - }, - "end": { - "line": 361, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 11981, - "end": 11996, - "loc": { - "start": { - "line": 361, - "column": 10 - }, - "end": { - "line": 361, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 11997, - "end": 12005, - "loc": { - "start": { - "line": 361, - "column": 26 - }, - "end": { - "line": 361, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 12015, - "end": 12017, - "loc": { - "start": { - "line": 362, - "column": 7 - }, - "end": { - "line": 362, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 12018, - "end": 12025, - "loc": { - "start": { - "line": 362, - "column": 10 - }, - "end": { - "line": 362, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 12027, - "end": 12049, - "loc": { - "start": { - "line": 362, - "column": 19 - }, - "end": { - "line": 362, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 12027, - "end": 12039, - "loc": { - "start": { - "line": 362, - "column": 19 - }, - "end": { - "line": 362, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 12040, - "end": 12048, - "loc": { - "start": { - "line": 362, - "column": 32 - }, - "end": { - "line": 362, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 12057, - "end": 12077, - "loc": { - "start": { - "line": 364, - "column": 4 - }, - "end": { - "line": 364, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 12057, - "end": 12076, - "loc": { - "start": { - "line": 364, - "column": 4 - }, - "end": { - "line": 364, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 12057, - "end": 12066, - "loc": { - "start": { - "line": 364, - "column": 4 - }, - "end": { - "line": 364, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 12057, - "end": 12060, - "loc": { - "start": { - "line": 364, - "column": 4 - }, - "end": { - "line": 364, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 12061, - "end": 12066, - "loc": { - "start": { - "line": 364, - "column": 8 - }, - "end": { - "line": 364, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 12067, - "end": 12075, - "loc": { - "start": { - "line": 364, - "column": 14 - }, - "end": { - "line": 364, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 12082, - "end": 12092, - "loc": { - "start": { - "line": 365, - "column": 4 - }, - "end": { - "line": 365, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 12082, - "end": 12091, - "loc": { - "start": { - "line": 365, - "column": 4 - }, - "end": { - "line": 365, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 12082, - "end": 12089, - "loc": { - "start": { - "line": 365, - "column": 4 - }, - "end": { - "line": 365, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 12082, - "end": 12085, - "loc": { - "start": { - "line": 365, - "column": 4 - }, - "end": { - "line": 365, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 12086, - "end": 12089, - "loc": { - "start": { - "line": 365, - "column": 8 - }, - "end": { - "line": 365, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document Group download payload\n * @typedef {Object} DocumentGroupDownloadParams\n * @property {string} id - an ID of a Document Group\n * @property {string} token - your auth token\n * @property {string} [type='zip'] - type of download flow, can be either `zip` or `merged`\n * @property {string} [with_history='no'] - type of history merging flow, can be `no`, `after_each_document`, or `after_merged_pdf`\n * @property {string[]} [document_order] - document order for merging flow\n ", - "start": 10258, - "end": 10763, - "loc": { - "start": { - "line": 313, - "column": 2 - }, - "end": { - "line": 321, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group binary data\n * @typedef {Buffer} DocumentGroupDownloadResponse\n ", - "start": 10767, - "end": 10861, - "loc": { - "start": { - "line": 323, - "column": 2 - }, - "end": { - "line": 326, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Downloads a document group.\n * By default document group will be downloaded as a zip archive and without history.\n * To download document group as a single merged PDF set `type` to `merged`.\n * To download document group with history set `with_history` to `after_each_document` or `after_merged_pdf`.\n * @param {DocumentGroupDownloadParams} data - download Document Group request payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupDownloadResponse)} [callback] - error first node.js callback\n ", - "start": 10865, - "end": 11399, - "loc": { - "start": { - "line": 328, - "column": 2 - }, - "end": { - "line": 335, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Cancel Document Group Invite payload\n * @typedef {Object} DocumentGroupCancelInviteParams\n * @property {string} id - ID of specific Document Group\n * @property {string} invite_id - ID of Document Group Invite\n * @property {string} token - your auth token\n ", - "start": 12100, - "end": 12377, - "loc": { - "start": { - "line": 368, - "column": 2 - }, - "end": { - "line": 374, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancel Document Group Invite response data\n * @typedef {Object} DocumentGroupCancelInviteResponse\n * @property {string} status - status of invite cancellation (e.g. \"success\")\n ", - "start": 12381, - "end": 12575, - "loc": { - "start": { - "line": 376, - "column": 2 - }, - "end": { - "line": 380, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancels an Invite to sign a specific Document Group\n * @param {DocumentGroupCancelInviteParams} data - cancel Document Group Invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupCancelInviteResponse)} [callback] - error first node.js callback\n ", - "start": 12579, - "end": 12863, - "loc": { - "start": { - "line": 382, - "column": 2 - }, - "end": { - "line": 386, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 12866, - "end": 13262, - "loc": { - "start": { - "line": 387, - "column": 2 - }, - "end": { - "line": 404, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 12873, - "end": 12885, - "loc": { - "start": { - "line": 387, - "column": 9 - }, - "end": { - "line": 387, - "column": 21 - }, - "identifierName": "cancelInvite" - }, - "name": "cancelInvite" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 12887, - "end": 12925, - "loc": { - "start": { - "line": 387, - "column": 23 - }, - "end": { - "line": 391, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 12893, - "end": 12898, - "loc": { - "start": { - "line": 388, - "column": 4 - }, - "end": { - "line": 388, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 12893, - "end": 12898, - "loc": { - "start": { - "line": 388, - "column": 4 - }, - "end": { - "line": 388, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 12893, - "end": 12898, - "loc": { - "start": { - "line": 388, - "column": 4 - }, - "end": { - "line": 388, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 12904, - "end": 12906, - "loc": { - "start": { - "line": 389, - "column": 4 - }, - "end": { - "line": 389, - "column": 6 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 12904, - "end": 12906, - "loc": { - "start": { - "line": 389, - "column": 4 - }, - "end": { - "line": 389, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 12904, - "end": 12906, - "loc": { - "start": { - "line": 389, - "column": 4 - }, - "end": { - "line": 389, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 12912, - "end": 12920, - "loc": { - "start": { - "line": 390, - "column": 4 - }, - "end": { - "line": 390, - "column": 12 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 12912, - "end": 12920, - "loc": { - "start": { - "line": 390, - "column": 4 - }, - "end": { - "line": 390, - "column": 12 - }, - "identifierName": "inviteId" - }, - "name": "inviteId" - }, - "value": { - "type": "Identifier", - "start": 12912, - "end": 12920, - "loc": { - "start": { - "line": 390, - "column": 4 - }, - "end": { - "line": 390, - "column": 12 - }, - "identifierName": "inviteId" - }, - "name": "inviteId" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 12927, - "end": 12935, - "loc": { - "start": { - "line": 391, - "column": 5 - }, - "end": { - "line": 391, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 12937, - "end": 13262, - "loc": { - "start": { - "line": 391, - "column": 15 - }, - "end": { - "line": 404, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 12944, - "end": 13258, - "loc": { - "start": { - "line": 393, - "column": 4 - }, - "end": { - "line": 403, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 12944, - "end": 13257, - "loc": { - "start": { - "line": 393, - "column": 4 - }, - "end": { - "line": 403, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 12944, - "end": 13255, - "loc": { - "start": { - "line": 393, - "column": 4 - }, - "end": { - "line": 403, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 12944, - "end": 13244, - "loc": { - "start": { - "line": 393, - "column": 4 - }, - "end": { - "line": 402, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 12944, - "end": 13211, - "loc": { - "start": { - "line": 393, - "column": 4 - }, - "end": { - "line": 402, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 12944, - "end": 13201, - "loc": { - "start": { - "line": 393, - "column": 4 - }, - "end": { - "line": 401, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 12944, - "end": 12964, - "loc": { - "start": { - "line": 393, - "column": 4 - }, - "end": { - "line": 394, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 12944, - "end": 12949, - "loc": { - "start": { - "line": 393, - "column": 4 - }, - "end": { - "line": 393, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 12957, - "end": 12964, - "loc": { - "start": { - "line": 394, - "column": 7 - }, - "end": { - "line": 394, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 12965, - "end": 13173, - "loc": { - "start": { - "line": 394, - "column": 15 - }, - "end": { - "line": 401, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 12965, - "end": 12984, - "loc": { - "start": { - "line": 394, - "column": 15 - }, - "end": { - "line": 394, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 12985, - "end": 13172, - "loc": { - "start": { - "line": 394, - "column": 35 - }, - "end": { - "line": 401, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 12995, - "end": 13009, - "loc": { - "start": { - "line": 395, - "column": 8 - }, - "end": { - "line": 395, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 12995, - "end": 13001, - "loc": { - "start": { - "line": 395, - "column": 8 - }, - "end": { - "line": 395, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 13003, - "end": 13009, - "loc": { - "start": { - "line": 395, - "column": 16 - }, - "end": { - "line": 395, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 13019, - "end": 13084, - "loc": { - "start": { - "line": 396, - "column": 8 - }, - "end": { - "line": 396, - "column": 73 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 13019, - "end": 13023, - "loc": { - "start": { - "line": 396, - "column": 8 - }, - "end": { - "line": 396, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 13025, - "end": 13084, - "loc": { - "start": { - "line": 396, - "column": 14 - }, - "end": { - "line": 396, - "column": 73 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 13043, - "end": 13045, - "loc": { - "start": { - "line": 396, - "column": 32 - }, - "end": { - "line": 396, - "column": 34 - }, - "identifierName": "id" - }, - "name": "id" - }, - { - "type": "Identifier", - "start": 13061, - "end": 13069, - "loc": { - "start": { - "line": 396, - "column": 50 - }, - "end": { - "line": 396, - "column": 58 - }, - "identifierName": "inviteId" - }, - "name": "inviteId" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 13026, - "end": 13041, - "loc": { - "start": { - "line": 396, - "column": 15 - }, - "end": { - "line": 396, - "column": 30 - } - }, - "value": { - "raw": "/documentgroup/", - "cooked": "/documentgroup/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 13046, - "end": 13059, - "loc": { - "start": { - "line": 396, - "column": 35 - }, - "end": { - "line": 396, - "column": 48 - } - }, - "value": { - "raw": "/groupinvite/", - "cooked": "/groupinvite/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 13070, - "end": 13083, - "loc": { - "start": { - "line": 396, - "column": 59 - }, - "end": { - "line": 396, - "column": 72 - } - }, - "value": { - "raw": "/cancelinvite", - "cooked": "/cancelinvite" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 13094, - "end": 13163, - "loc": { - "start": { - "line": 397, - "column": 8 - }, - "end": { - "line": 400, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 13094, - "end": 13107, - "loc": { - "start": { - "line": 397, - "column": 8 - }, - "end": { - "line": 397, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 13109, - "end": 13163, - "loc": { - "start": { - "line": 397, - "column": 23 - }, - "end": { - "line": 400, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 13121, - "end": 13135, - "loc": { - "start": { - "line": 398, - "column": 10 - }, - "end": { - "line": 398, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 13121, - "end": 13125, - "loc": { - "start": { - "line": 398, - "column": 10 - }, - "end": { - "line": 398, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 13127, - "end": 13135, - "loc": { - "start": { - "line": 398, - "column": 16 - }, - "end": { - "line": 398, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 13147, - "end": 13152, - "loc": { - "start": { - "line": 399, - "column": 10 - }, - "end": { - "line": 399, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 13147, - "end": 13152, - "loc": { - "start": { - "line": 399, - "column": 10 - }, - "end": { - "line": 399, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 13147, - "end": 13152, - "loc": { - "start": { - "line": 399, - "column": 10 - }, - "end": { - "line": 399, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 13175, - "end": 13200, - "loc": { - "start": { - "line": 401, - "column": 10 - }, - "end": { - "line": 401, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 13175, - "end": 13190, - "loc": { - "start": { - "line": 401, - "column": 10 - }, - "end": { - "line": 401, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 13191, - "end": 13199, - "loc": { - "start": { - "line": 401, - "column": 26 - }, - "end": { - "line": 401, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 13209, - "end": 13211, - "loc": { - "start": { - "line": 402, - "column": 7 - }, - "end": { - "line": 402, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 13212, - "end": 13219, - "loc": { - "start": { - "line": 402, - "column": 10 - }, - "end": { - "line": 402, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 13221, - "end": 13243, - "loc": { - "start": { - "line": 402, - "column": 19 - }, - "end": { - "line": 402, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 13221, - "end": 13233, - "loc": { - "start": { - "line": 402, - "column": 19 - }, - "end": { - "line": 402, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 13234, - "end": 13242, - "loc": { - "start": { - "line": 402, - "column": 32 - }, - "end": { - "line": 402, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 13252, - "end": 13255, - "loc": { - "start": { - "line": 403, - "column": 7 - }, - "end": { - "line": 403, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Cancel Document Group Invite payload\n * @typedef {Object} DocumentGroupCancelInviteParams\n * @property {string} id - ID of specific Document Group\n * @property {string} invite_id - ID of Document Group Invite\n * @property {string} token - your auth token\n ", - "start": 12100, - "end": 12377, - "loc": { - "start": { - "line": 368, - "column": 2 - }, - "end": { - "line": 374, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancel Document Group Invite response data\n * @typedef {Object} DocumentGroupCancelInviteResponse\n * @property {string} status - status of invite cancellation (e.g. \"success\")\n ", - "start": 12381, - "end": 12575, - "loc": { - "start": { - "line": 376, - "column": 2 - }, - "end": { - "line": 380, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancels an Invite to sign a specific Document Group\n * @param {DocumentGroupCancelInviteParams} data - cancel Document Group Invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupCancelInviteResponse)} [callback] - error first node.js callback\n ", - "start": 12579, - "end": 12863, - "loc": { - "start": { - "line": 382, - "column": 2 - }, - "end": { - "line": 386, - "column": 5 - } - } - } - ] - } - ] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document Group methods\n ", - "start": 1384, - "end": 1417, - "loc": { - "start": { - "line": 63, - "column": 0 - }, - "end": { - "line": 65, - "column": 3 - } - } - } - ], - "__PseudoExport__": false, - "trailingComments": [] - }, - "leadingComments": null - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "value": "use strict", - "extra": { - "raw": "'use strict'", - "rawValue": "use strict" - } - } - } - ] - }, - "comments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewParams} data - view document with field extract payload\n * @return {Promise}\n ", - "start": 207, - "end": 374, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 16, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewResponse} document\n * @return {boolean} is there any field invite in given document\n ", - "start": 589, - "end": 723, - "loc": { - "start": { - "line": 30, - "column": 0 - }, - "end": { - "line": 34, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewResponse} document\n * @return {boolean} is document a template or not\n ", - "start": 796, - "end": 916, - "loc": { - "start": { - "line": 37, - "column": 0 - }, - "end": { - "line": 41, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {TemplateDuplicateParams} data - duplicate template payload\n * @return {Promise} resolves with id of new document\n ", - "start": 977, - "end": 1154, - "loc": { - "start": { - "line": 44, - "column": 0 - }, - "end": { - "line": 48, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group methods\n ", - "start": 1384, - "end": 1417, - "loc": { - "start": { - "line": 63, - "column": 0 - }, - "end": { - "line": 65, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document group payload\n * @typedef {Object} DocumentGroupCreateParams\n * @property {string} token - your auth token\n * @property {string[]} ids - array of document or template ids for document group creation\n * @property {string} group_name - new name of document group\n ", - "start": 1443, - "end": 1742, - "loc": { - "start": { - "line": 68, - "column": 2 - }, - "end": { - "line": 74, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document group response data\n * @typedef {Object} DocumentGroupCreateResponse\n * @property {string} id - document group unique id\n ", - "start": 1746, - "end": 1901, - "loc": { - "start": { - "line": 76, - "column": 2 - }, - "end": { - "line": 80, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates document group with specified documents or templates.\n * At least one document or template must contain fields. Documents should not contain pending invites.\n * @param {DocumentGroupCreateParams} data - create document group payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupCreateResponse)} [callback] - error first node.js callback\n ", - "start": 1905, - "end": 2286, - "loc": { - "start": { - "line": 82, - "column": 2 - }, - "end": { - "line": 87, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group view payload\n * @typedef {Object} DocumentGroupViewParams\n * @property {string} id - id of specific Document Group\n * @property {string} token - your auth token\n ", - "start": 3661, - "end": 3857, - "loc": { - "start": { - "line": 144, - "column": 2 - }, - "end": { - "line": 149, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Details of single Document in group\n * @typedef {Object} DocumentGroupItem\n * @property {string} id - an ID of Document\n * @property {string} document_name - a name of Document\n * @property {string} origin_document_id - an ID of Document origin\n * @property {boolean} has_credit_card_number - Document has Credit Card number attached\n * @property {boolean} has_unassigned_field - Document has unassigned field(s)\n * @property {DocumentThumbnails} thumbnail - thumbnail urls with different sizes (small, medium, large)\n * @property {string[]} roles - list of template signer roles\n ", - "start": 3861, - "end": 4471, - "loc": { - "start": { - "line": 151, - "column": 2 - }, - "end": { - "line": 161, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group view response data\n * @typedef {Object} DocumentGroupViewResponse\n * @property {string} id - an ID of Document Group\n * @property {string} group_name - a name of Document Group\n * @property {DocumentGroupItem[]} documents - each single document details\n * @property {?string} invite_id - an ID of active invite\n * @property {Object[]} originator_organization_settings - originator organization settings\n ", - "start": 4475, - "end": 4919, - "loc": { - "start": { - "line": 163, - "column": 2 - }, - "end": { - "line": 171, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves a Document Group detailed data\n * @param {DocumentGroupViewParams} data - view Document Group details payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupViewResponse)} [callback] - error first node.js callback\n ", - "start": 4923, - "end": 5179, - "loc": { - "start": { - "line": 173, - "column": 2 - }, - "end": { - "line": 177, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite email configurations\n * @typedef {Object} DocumentGroupInviteEmail\n * @property {string} email - signer's email\n * @property {string} [subject] - subject of invitation email\n * @property {string} [message] - content of invitation email\n * @property {number} [expiration_days] - expiration of invite in days\n * @property {number} [reminder] - number of days in which to remind about invitation via email\n ", - "start": 5510, - "end": 5961, - "loc": { - "start": { - "line": 192, - "column": 2 - }, - "end": { - "line": 200, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group signer's authentication with password config\n * @typedef {Object} DocumentGroupInviteAuthenticationPassword\n * @property {string} type - set `password` to authenticate signer with password\n * @property {string} value - authentication password value\n ", - "start": 5965, - "end": 6249, - "loc": { - "start": { - "line": 202, - "column": 2 - }, - "end": { - "line": 207, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group signer's authentication with phone call config\n * @typedef {Object} DocumentGroupInviteAuthenticationPhoneCall\n * @property {string} type - set `phone` to authenticate signer with phone call\n * @property {string} method - set `phone_call` to authenticate signer with phone call\n * @property {string} phone - phone number\n ", - "start": 6253, - "end": 6611, - "loc": { - "start": { - "line": 209, - "column": 2 - }, - "end": { - "line": 215, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group signer's authentication with phone SMS config\n * @typedef {Object} DocumentGroupInviteAuthenticationPhoneSMS\n * @property {string} type - set `phone` to authenticate signer with phone SMS\n * @property {string} method - set `sms` to authenticate signer with phone SMS\n * @property {string} phone - phone number\n ", - "start": 6615, - "end": 6962, - "loc": { - "start": { - "line": 217, - "column": 2 - }, - "end": { - "line": 223, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite action configurations\n * @typedef {Object} DocumentGroupInviteAction\n * @property {string} email - signer's email\n * @property {string} role_name - signer's role name\n * @property {string} action - name of action with document in signing step\n * @property {string} document_id - ID of document in specific signing step\n * @property {string} [allow_reassign] - allow reassigning of signer\n * @property {string} [decline_by_signature] - signer can decline invite\n * @property {DocumentGroupInviteAuthenticationPassword|DocumentGroupInviteAuthenticationPhoneCall|DocumentGroupInviteAuthenticationPhoneSMS} [authentication] - signer's authentication configuration\n ", - "start": 6966, - "end": 7678, - "loc": { - "start": { - "line": 225, - "column": 2 - }, - "end": { - "line": 235, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite step configurations\n * @typedef {Object} DocumentGroupInviteStep\n * @property {number} order - an order number of invitation step\n * @property {DocumentGroupInviteEmail[]} [invite_emails] - Document Group invite emails settings\n * @property {DocumentGroupInviteAction[]} invite_actions - Document Group invite actions settings\n ", - "start": 7682, - "end": 8053, - "loc": { - "start": { - "line": 237, - "column": 2 - }, - "end": { - "line": 243, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite completion email configuration\n * @typedef {Object} DocumentGroupInviteCompletionEmailConfig\n * @property {string} email - email for completion (only from the signers and document owner emails)\n * @property {number} disable_document_attachment - disable attachment of signed document group to completion email (values: 0|1)\n ", - "start": 8057, - "end": 8423, - "loc": { - "start": { - "line": 245, - "column": 2 - }, - "end": { - "line": 250, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite settings\n * @typedef {Object} DocumentGroupInviteSettings\n * @property {DocumentGroupInviteStep[]} invite_steps - Document Group invite steps settings\n * @property {DocumentGroupInviteCompletionEmailConfig[]} [completion_emails] - set of completion email configutrations\n ", - "start": 8427, - "end": 8740, - "loc": { - "start": { - "line": 252, - "column": 2 - }, - "end": { - "line": 257, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create Document Group invite payload\n * @typedef {Object} DocumentGroupInviteParams\n * @property {string} id - ID of specific Document Group\n * @property {DocumentGroupInviteSettings} data - Document Group invite settings data\n * @property {string} token - your auth token\n ", - "start": 8744, - "end": 9039, - "loc": { - "start": { - "line": 259, - "column": 2 - }, - "end": { - "line": 265, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create Document Group invite response data\n * @typedef {Object} DocumentGroupInviteResponse\n * @property {string} id - ID of created Document Group invitation\n * @property {?string} pending_invite_link - pending invite link\n ", - "start": 9043, - "end": 9287, - "loc": { - "start": { - "line": 267, - "column": 2 - }, - "end": { - "line": 272, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates an invite to sign a Document Group\n * @param {DocumentGroupInviteParams} data - create Document Group invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupInviteResponse)} [callback] - error first node.js callback\n ", - "start": 9291, - "end": 9554, - "loc": { - "start": { - "line": 274, - "column": 2 - }, - "end": { - "line": 278, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group download payload\n * @typedef {Object} DocumentGroupDownloadParams\n * @property {string} id - an ID of a Document Group\n * @property {string} token - your auth token\n * @property {string} [type='zip'] - type of download flow, can be either `zip` or `merged`\n * @property {string} [with_history='no'] - type of history merging flow, can be `no`, `after_each_document`, or `after_merged_pdf`\n * @property {string[]} [document_order] - document order for merging flow\n ", - "start": 10258, - "end": 10763, - "loc": { - "start": { - "line": 313, - "column": 2 - }, - "end": { - "line": 321, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group binary data\n * @typedef {Buffer} DocumentGroupDownloadResponse\n ", - "start": 10767, - "end": 10861, - "loc": { - "start": { - "line": 323, - "column": 2 - }, - "end": { - "line": 326, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Downloads a document group.\n * By default document group will be downloaded as a zip archive and without history.\n * To download document group as a single merged PDF set `type` to `merged`.\n * To download document group with history set `with_history` to `after_each_document` or `after_merged_pdf`.\n * @param {DocumentGroupDownloadParams} data - download Document Group request payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupDownloadResponse)} [callback] - error first node.js callback\n ", - "start": 10865, - "end": 11399, - "loc": { - "start": { - "line": 328, - "column": 2 - }, - "end": { - "line": 335, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancel Document Group Invite payload\n * @typedef {Object} DocumentGroupCancelInviteParams\n * @property {string} id - ID of specific Document Group\n * @property {string} invite_id - ID of Document Group Invite\n * @property {string} token - your auth token\n ", - "start": 12100, - "end": 12377, - "loc": { - "start": { - "line": 368, - "column": 2 - }, - "end": { - "line": 374, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancel Document Group Invite response data\n * @typedef {Object} DocumentGroupCancelInviteResponse\n * @property {string} status - status of invite cancellation (e.g. \"success\")\n ", - "start": 12381, - "end": 12575, - "loc": { - "start": { - "line": 376, - "column": 2 - }, - "end": { - "line": 380, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancels an Invite to sign a specific Document Group\n * @param {DocumentGroupCancelInviteParams} data - cancel Document Group Invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupCancelInviteResponse)} [callback] - error first node.js callback\n ", - "start": 12579, - "end": 12863, - "loc": { - "start": { - "line": 382, - "column": 2 - }, - "end": { - "line": 386, - "column": 5 - } - } - } - ], - "tokens": [ - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "use strict", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 12 - }, - "end": { - "line": 1, - "column": 13 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 15, - "end": 21, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 22, - "end": 27, - "loc": { - "start": { - "line": 3, - "column": 7 - }, - "end": { - "line": 3, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 28, - "end": 32, - "loc": { - "start": { - "line": 3, - "column": 13 - }, - "end": { - "line": 3, - "column": 17 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "https", - "start": 33, - "end": 40, - "loc": { - "start": { - "line": 3, - "column": 18 - }, - "end": { - "line": 3, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 40, - "end": 41, - "loc": { - "start": { - "line": 3, - "column": 25 - }, - "end": { - "line": 3, - "column": 26 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 42, - "end": 48, - "loc": { - "start": { - "line": 4, - "column": 0 - }, - "end": { - "line": 4, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 49, - "end": 50, - "loc": { - "start": { - "line": 4, - "column": 7 - }, - "end": { - "line": 4, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 53, - "end": 68, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 68, - "end": 69, - "loc": { - "start": { - "line": 5, - "column": 17 - }, - "end": { - "line": 5, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 72, - "end": 84, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 14 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 84, - "end": 85, - "loc": { - "start": { - "line": 6, - "column": 14 - }, - "end": { - "line": 6, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 88, - "end": 107, - "loc": { - "start": { - "line": 7, - "column": 2 - }, - "end": { - "line": 7, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 107, - "end": 108, - "loc": { - "start": { - "line": 7, - "column": 21 - }, - "end": { - "line": 7, - "column": 22 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 109, - "end": 110, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 8, - "column": 1 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 111, - "end": 115, - "loc": { - "start": { - "line": 8, - "column": 2 - }, - "end": { - "line": 8, - "column": 6 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "../common", - "start": 116, - "end": 127, - "loc": { - "start": { - "line": 8, - "column": 7 - }, - "end": { - "line": 8, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 127, - "end": 128, - "loc": { - "start": { - "line": 8, - "column": 18 - }, - "end": { - "line": 8, - "column": 19 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 129, - "end": 135, - "loc": { - "start": { - "line": 9, - "column": 0 - }, - "end": { - "line": 9, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 136, - "end": 137, - "loc": { - "start": { - "line": 9, - "column": 7 - }, - "end": { - "line": 9, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "view", - "start": 138, - "end": 142, - "loc": { - "start": { - "line": 9, - "column": 9 - }, - "end": { - "line": 9, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 143, - "end": 144, - "loc": { - "start": { - "line": 9, - "column": 14 - }, - "end": { - "line": 9, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 145, - "end": 149, - "loc": { - "start": { - "line": 9, - "column": 16 - }, - "end": { - "line": 9, - "column": 20 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "../document", - "start": 150, - "end": 163, - "loc": { - "start": { - "line": 9, - "column": 21 - }, - "end": { - "line": 9, - "column": 34 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 163, - "end": 164, - "loc": { - "start": { - "line": 9, - "column": 34 - }, - "end": { - "line": 9, - "column": 35 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 165, - "end": 171, - "loc": { - "start": { - "line": 10, - "column": 0 - }, - "end": { - "line": 10, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 172, - "end": 173, - "loc": { - "start": { - "line": 10, - "column": 7 - }, - "end": { - "line": 10, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "duplicate", - "start": 174, - "end": 183, - "loc": { - "start": { - "line": 10, - "column": 9 - }, - "end": { - "line": 10, - "column": 18 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 184, - "end": 185, - "loc": { - "start": { - "line": 10, - "column": 19 - }, - "end": { - "line": 10, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 186, - "end": 190, - "loc": { - "start": { - "line": 10, - "column": 21 - }, - "end": { - "line": 10, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "../template", - "start": 191, - "end": 204, - "loc": { - "start": { - "line": 10, - "column": 26 - }, - "end": { - "line": 10, - "column": 39 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 204, - "end": 205, - "loc": { - "start": { - "line": 10, - "column": 39 - }, - "end": { - "line": 10, - "column": 40 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewParams} data - view document with field extract payload\n * @return {Promise}\n ", - "start": 207, - "end": 374, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 16, - "column": 3 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 375, - "end": 380, - "loc": { - "start": { - "line": 17, - "column": 0 - }, - "end": { - "line": 17, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getDocumentDetails", - "start": 381, - "end": 399, - "loc": { - "start": { - "line": 17, - "column": 6 - }, - "end": { - "line": 17, - "column": 24 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 400, - "end": 401, - "loc": { - "start": { - "line": 17, - "column": 25 - }, - "end": { - "line": 17, - "column": 26 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 402, - "end": 403, - "loc": { - "start": { - "line": 17, - "column": 27 - }, - "end": { - "line": 17, - "column": 28 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 403, - "end": 404, - "loc": { - "start": { - "line": 17, - "column": 28 - }, - "end": { - "line": 17, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 405, - "end": 407, - "loc": { - "start": { - "line": 17, - "column": 30 - }, - "end": { - "line": 17, - "column": 32 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 407, - "end": 408, - "loc": { - "start": { - "line": 17, - "column": 32 - }, - "end": { - "line": 17, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 409, - "end": 414, - "loc": { - "start": { - "line": 17, - "column": 34 - }, - "end": { - "line": 17, - "column": 39 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 415, - "end": 416, - "loc": { - "start": { - "line": 17, - "column": 40 - }, - "end": { - "line": 17, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 416, - "end": 417, - "loc": { - "start": { - "line": 17, - "column": 41 - }, - "end": { - "line": 17, - "column": 42 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 418, - "end": 420, - "loc": { - "start": { - "line": 17, - "column": 43 - }, - "end": { - "line": 17, - "column": 45 - } - } - }, - { - "type": { - "label": "new", - "keyword": "new", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "new", - "start": 421, - "end": 424, - "loc": { - "start": { - "line": 17, - "column": 46 - }, - "end": { - "line": 17, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Promise", - "start": 425, - "end": 432, - "loc": { - "start": { - "line": 17, - "column": 50 - }, - "end": { - "line": 17, - "column": 57 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 432, - "end": 433, - "loc": { - "start": { - "line": 17, - "column": 57 - }, - "end": { - "line": 17, - "column": 58 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 433, - "end": 434, - "loc": { - "start": { - "line": 17, - "column": 58 - }, - "end": { - "line": 17, - "column": 59 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "resolve", - "start": 434, - "end": 441, - "loc": { - "start": { - "line": 17, - "column": 59 - }, - "end": { - "line": 17, - "column": 66 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 441, - "end": 442, - "loc": { - "start": { - "line": 17, - "column": 66 - }, - "end": { - "line": 17, - "column": 67 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "reject", - "start": 443, - "end": 449, - "loc": { - "start": { - "line": 17, - "column": 68 - }, - "end": { - "line": 17, - "column": 74 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 449, - "end": 450, - "loc": { - "start": { - "line": 17, - "column": 74 - }, - "end": { - "line": 17, - "column": 75 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 451, - "end": 453, - "loc": { - "start": { - "line": 17, - "column": 76 - }, - "end": { - "line": 17, - "column": 78 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 454, - "end": 455, - "loc": { - "start": { - "line": 17, - "column": 79 - }, - "end": { - "line": 17, - "column": 80 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "view", - "start": 458, - "end": 462, - "loc": { - "start": { - "line": 18, - "column": 2 - }, - "end": { - "line": 18, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 462, - "end": 463, - "loc": { - "start": { - "line": 18, - "column": 6 - }, - "end": { - "line": 18, - "column": 7 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 463, - "end": 464, - "loc": { - "start": { - "line": 18, - "column": 7 - }, - "end": { - "line": 18, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 469, - "end": 471, - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 19, - "column": 6 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 471, - "end": 472, - "loc": { - "start": { - "line": 19, - "column": 6 - }, - "end": { - "line": 19, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 477, - "end": 482, - "loc": { - "start": { - "line": 20, - "column": 4 - }, - "end": { - "line": 20, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 482, - "end": 483, - "loc": { - "start": { - "line": 20, - "column": 9 - }, - "end": { - "line": 20, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 486, - "end": 487, - "loc": { - "start": { - "line": 21, - "column": 2 - }, - "end": { - "line": 21, - "column": 3 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 487, - "end": 488, - "loc": { - "start": { - "line": 21, - "column": 3 - }, - "end": { - "line": 21, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 489, - "end": 490, - "loc": { - "start": { - "line": 21, - "column": 5 - }, - "end": { - "line": 21, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 490, - "end": 493, - "loc": { - "start": { - "line": 21, - "column": 6 - }, - "end": { - "line": 21, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 493, - "end": 494, - "loc": { - "start": { - "line": 21, - "column": 9 - }, - "end": { - "line": 21, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "res", - "start": 495, - "end": 498, - "loc": { - "start": { - "line": 21, - "column": 11 - }, - "end": { - "line": 21, - "column": 14 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 498, - "end": 499, - "loc": { - "start": { - "line": 21, - "column": 14 - }, - "end": { - "line": 21, - "column": 15 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 500, - "end": 502, - "loc": { - "start": { - "line": 21, - "column": 16 - }, - "end": { - "line": 21, - "column": 18 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 503, - "end": 504, - "loc": { - "start": { - "line": 21, - "column": 19 - }, - "end": { - "line": 21, - "column": 20 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 509, - "end": 511, - "loc": { - "start": { - "line": 22, - "column": 4 - }, - "end": { - "line": 22, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 512, - "end": 513, - "loc": { - "start": { - "line": 22, - "column": 7 - }, - "end": { - "line": 22, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 513, - "end": 516, - "loc": { - "start": { - "line": 22, - "column": 8 - }, - "end": { - "line": 22, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 516, - "end": 517, - "loc": { - "start": { - "line": 22, - "column": 11 - }, - "end": { - "line": 22, - "column": 12 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 518, - "end": 519, - "loc": { - "start": { - "line": 22, - "column": 13 - }, - "end": { - "line": 22, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "reject", - "start": 526, - "end": 532, - "loc": { - "start": { - "line": 23, - "column": 6 - }, - "end": { - "line": 23, - "column": 12 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 532, - "end": 533, - "loc": { - "start": { - "line": 23, - "column": 12 - }, - "end": { - "line": 23, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 533, - "end": 536, - "loc": { - "start": { - "line": 23, - "column": 13 - }, - "end": { - "line": 23, - "column": 16 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 536, - "end": 537, - "loc": { - "start": { - "line": 23, - "column": 16 - }, - "end": { - "line": 23, - "column": 17 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 537, - "end": 538, - "loc": { - "start": { - "line": 23, - "column": 17 - }, - "end": { - "line": 23, - "column": 18 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 543, - "end": 544, - "loc": { - "start": { - "line": 24, - "column": 4 - }, - "end": { - "line": 24, - "column": 5 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 545, - "end": 549, - "loc": { - "start": { - "line": 24, - "column": 6 - }, - "end": { - "line": 24, - "column": 10 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 550, - "end": 551, - "loc": { - "start": { - "line": 24, - "column": 11 - }, - "end": { - "line": 24, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "resolve", - "start": 558, - "end": 565, - "loc": { - "start": { - "line": 25, - "column": 6 - }, - "end": { - "line": 25, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 565, - "end": 566, - "loc": { - "start": { - "line": 25, - "column": 13 - }, - "end": { - "line": 25, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "res", - "start": 566, - "end": 569, - "loc": { - "start": { - "line": 25, - "column": 14 - }, - "end": { - "line": 25, - "column": 17 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 569, - "end": 570, - "loc": { - "start": { - "line": 25, - "column": 17 - }, - "end": { - "line": 25, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 570, - "end": 571, - "loc": { - "start": { - "line": 25, - "column": 18 - }, - "end": { - "line": 25, - "column": 19 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 576, - "end": 577, - "loc": { - "start": { - "line": 26, - "column": 4 - }, - "end": { - "line": 26, - "column": 5 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 580, - "end": 581, - "loc": { - "start": { - "line": 27, - "column": 2 - }, - "end": { - "line": 27, - "column": 3 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 581, - "end": 582, - "loc": { - "start": { - "line": 27, - "column": 3 - }, - "end": { - "line": 27, - "column": 4 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 582, - "end": 583, - "loc": { - "start": { - "line": 27, - "column": 4 - }, - "end": { - "line": 27, - "column": 5 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 584, - "end": 585, - "loc": { - "start": { - "line": 28, - "column": 0 - }, - "end": { - "line": 28, - "column": 1 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 585, - "end": 586, - "loc": { - "start": { - "line": 28, - "column": 1 - }, - "end": { - "line": 28, - "column": 2 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 586, - "end": 587, - "loc": { - "start": { - "line": 28, - "column": 2 - }, - "end": { - "line": 28, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewResponse} document\n * @return {boolean} is there any field invite in given document\n ", - "start": 589, - "end": 723, - "loc": { - "start": { - "line": 30, - "column": 0 - }, - "end": { - "line": 34, - "column": 3 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 724, - "end": 729, - "loc": { - "start": { - "line": 35, - "column": 0 - }, - "end": { - "line": 35, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hasFieldInvites", - "start": 730, - "end": 745, - "loc": { - "start": { - "line": 35, - "column": 6 - }, - "end": { - "line": 35, - "column": 21 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 746, - "end": 747, - "loc": { - "start": { - "line": 35, - "column": 22 - }, - "end": { - "line": 35, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document", - "start": 748, - "end": 756, - "loc": { - "start": { - "line": 35, - "column": 24 - }, - "end": { - "line": 35, - "column": 32 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 757, - "end": 759, - "loc": { - "start": { - "line": 35, - "column": 33 - }, - "end": { - "line": 35, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document", - "start": 760, - "end": 768, - "loc": { - "start": { - "line": 35, - "column": 36 - }, - "end": { - "line": 35, - "column": 44 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 768, - "end": 769, - "loc": { - "start": { - "line": 35, - "column": 44 - }, - "end": { - "line": 35, - "column": 45 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "field_invites", - "start": 769, - "end": 782, - "loc": { - "start": { - "line": 35, - "column": 45 - }, - "end": { - "line": 35, - "column": 58 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 782, - "end": 783, - "loc": { - "start": { - "line": 35, - "column": 58 - }, - "end": { - "line": 35, - "column": 59 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "length", - "start": 783, - "end": 789, - "loc": { - "start": { - "line": 35, - "column": 59 - }, - "end": { - "line": 35, - "column": 65 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": ">", - "start": 790, - "end": 791, - "loc": { - "start": { - "line": 35, - "column": 66 - }, - "end": { - "line": 35, - "column": 67 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 792, - "end": 793, - "loc": { - "start": { - "line": 35, - "column": 68 - }, - "end": { - "line": 35, - "column": 69 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 793, - "end": 794, - "loc": { - "start": { - "line": 35, - "column": 69 - }, - "end": { - "line": 35, - "column": 70 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewResponse} document\n * @return {boolean} is document a template or not\n ", - "start": 796, - "end": 916, - "loc": { - "start": { - "line": 37, - "column": 0 - }, - "end": { - "line": 41, - "column": 3 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 917, - "end": 922, - "loc": { - "start": { - "line": 42, - "column": 0 - }, - "end": { - "line": 42, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "isTemplate", - "start": 923, - "end": 933, - "loc": { - "start": { - "line": 42, - "column": 6 - }, - "end": { - "line": 42, - "column": 16 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 934, - "end": 935, - "loc": { - "start": { - "line": 42, - "column": 17 - }, - "end": { - "line": 42, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document", - "start": 936, - "end": 944, - "loc": { - "start": { - "line": 42, - "column": 19 - }, - "end": { - "line": 42, - "column": 27 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 945, - "end": 947, - "loc": { - "start": { - "line": 42, - "column": 28 - }, - "end": { - "line": 42, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document", - "start": 948, - "end": 956, - "loc": { - "start": { - "line": 42, - "column": 31 - }, - "end": { - "line": 42, - "column": 39 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 956, - "end": 957, - "loc": { - "start": { - "line": 42, - "column": 39 - }, - "end": { - "line": 42, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "template", - "start": 957, - "end": 965, - "loc": { - "start": { - "line": 42, - "column": 40 - }, - "end": { - "line": 42, - "column": 48 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 966, - "end": 969, - "loc": { - "start": { - "line": 42, - "column": 49 - }, - "end": { - "line": 42, - "column": 52 - } - } - }, - { - "type": { - "label": "true", - "keyword": "true", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "true", - "start": 970, - "end": 974, - "loc": { - "start": { - "line": 42, - "column": 53 - }, - "end": { - "line": 42, - "column": 57 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 974, - "end": 975, - "loc": { - "start": { - "line": 42, - "column": 57 - }, - "end": { - "line": 42, - "column": 58 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {TemplateDuplicateParams} data - duplicate template payload\n * @return {Promise} resolves with id of new document\n ", - "start": 977, - "end": 1154, - "loc": { - "start": { - "line": 44, - "column": 0 - }, - "end": { - "line": 48, - "column": 3 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1155, - "end": 1160, - "loc": { - "start": { - "line": 49, - "column": 0 - }, - "end": { - "line": 49, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "makeDocumentFromTemplate", - "start": 1161, - "end": 1185, - "loc": { - "start": { - "line": 49, - "column": 6 - }, - "end": { - "line": 49, - "column": 30 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1186, - "end": 1187, - "loc": { - "start": { - "line": 49, - "column": 31 - }, - "end": { - "line": 49, - "column": 32 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1188, - "end": 1189, - "loc": { - "start": { - "line": 49, - "column": 33 - }, - "end": { - "line": 49, - "column": 34 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1189, - "end": 1190, - "loc": { - "start": { - "line": 49, - "column": 34 - }, - "end": { - "line": 49, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 1191, - "end": 1193, - "loc": { - "start": { - "line": 49, - "column": 36 - }, - "end": { - "line": 49, - "column": 38 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1193, - "end": 1194, - "loc": { - "start": { - "line": 49, - "column": 38 - }, - "end": { - "line": 49, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 1195, - "end": 1200, - "loc": { - "start": { - "line": 49, - "column": 40 - }, - "end": { - "line": 49, - "column": 45 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1201, - "end": 1202, - "loc": { - "start": { - "line": 49, - "column": 46 - }, - "end": { - "line": 49, - "column": 47 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1202, - "end": 1203, - "loc": { - "start": { - "line": 49, - "column": 47 - }, - "end": { - "line": 49, - "column": 48 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1204, - "end": 1206, - "loc": { - "start": { - "line": 49, - "column": 49 - }, - "end": { - "line": 49, - "column": 51 - } - } - }, - { - "type": { - "label": "new", - "keyword": "new", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "new", - "start": 1207, - "end": 1210, - "loc": { - "start": { - "line": 49, - "column": 52 - }, - "end": { - "line": 49, - "column": 55 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Promise", - "start": 1211, - "end": 1218, - "loc": { - "start": { - "line": 49, - "column": 56 - }, - "end": { - "line": 49, - "column": 63 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1218, - "end": 1219, - "loc": { - "start": { - "line": 49, - "column": 63 - }, - "end": { - "line": 49, - "column": 64 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1219, - "end": 1220, - "loc": { - "start": { - "line": 49, - "column": 64 - }, - "end": { - "line": 49, - "column": 65 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "resolve", - "start": 1220, - "end": 1227, - "loc": { - "start": { - "line": 49, - "column": 65 - }, - "end": { - "line": 49, - "column": 72 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1227, - "end": 1228, - "loc": { - "start": { - "line": 49, - "column": 72 - }, - "end": { - "line": 49, - "column": 73 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "reject", - "start": 1229, - "end": 1235, - "loc": { - "start": { - "line": 49, - "column": 74 - }, - "end": { - "line": 49, - "column": 80 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1235, - "end": 1236, - "loc": { - "start": { - "line": 49, - "column": 80 - }, - "end": { - "line": 49, - "column": 81 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1237, - "end": 1239, - "loc": { - "start": { - "line": 49, - "column": 82 - }, - "end": { - "line": 49, - "column": 84 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1240, - "end": 1241, - "loc": { - "start": { - "line": 49, - "column": 85 - }, - "end": { - "line": 49, - "column": 86 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "duplicate", - "start": 1244, - "end": 1253, - "loc": { - "start": { - "line": 50, - "column": 2 - }, - "end": { - "line": 50, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1253, - "end": 1254, - "loc": { - "start": { - "line": 50, - "column": 11 - }, - "end": { - "line": 50, - "column": 12 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1254, - "end": 1255, - "loc": { - "start": { - "line": 50, - "column": 12 - }, - "end": { - "line": 50, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 1260, - "end": 1262, - "loc": { - "start": { - "line": 51, - "column": 4 - }, - "end": { - "line": 51, - "column": 6 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1262, - "end": 1263, - "loc": { - "start": { - "line": 51, - "column": 6 - }, - "end": { - "line": 51, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 1268, - "end": 1273, - "loc": { - "start": { - "line": 52, - "column": 4 - }, - "end": { - "line": 52, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1273, - "end": 1274, - "loc": { - "start": { - "line": 52, - "column": 9 - }, - "end": { - "line": 52, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1277, - "end": 1278, - "loc": { - "start": { - "line": 53, - "column": 2 - }, - "end": { - "line": 53, - "column": 3 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1278, - "end": 1279, - "loc": { - "start": { - "line": 53, - "column": 3 - }, - "end": { - "line": 53, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1280, - "end": 1281, - "loc": { - "start": { - "line": 53, - "column": 5 - }, - "end": { - "line": 53, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 1281, - "end": 1284, - "loc": { - "start": { - "line": 53, - "column": 6 - }, - "end": { - "line": 53, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1284, - "end": 1285, - "loc": { - "start": { - "line": 53, - "column": 9 - }, - "end": { - "line": 53, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "res", - "start": 1286, - "end": 1289, - "loc": { - "start": { - "line": 53, - "column": 11 - }, - "end": { - "line": 53, - "column": 14 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1289, - "end": 1290, - "loc": { - "start": { - "line": 53, - "column": 14 - }, - "end": { - "line": 53, - "column": 15 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1291, - "end": 1293, - "loc": { - "start": { - "line": 53, - "column": 16 - }, - "end": { - "line": 53, - "column": 18 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1294, - "end": 1295, - "loc": { - "start": { - "line": 53, - "column": 19 - }, - "end": { - "line": 53, - "column": 20 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 1300, - "end": 1302, - "loc": { - "start": { - "line": 54, - "column": 4 - }, - "end": { - "line": 54, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1303, - "end": 1304, - "loc": { - "start": { - "line": 54, - "column": 7 - }, - "end": { - "line": 54, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 1304, - "end": 1307, - "loc": { - "start": { - "line": 54, - "column": 8 - }, - "end": { - "line": 54, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1307, - "end": 1308, - "loc": { - "start": { - "line": 54, - "column": 11 - }, - "end": { - "line": 54, - "column": 12 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1309, - "end": 1310, - "loc": { - "start": { - "line": 54, - "column": 13 - }, - "end": { - "line": 54, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "reject", - "start": 1317, - "end": 1323, - "loc": { - "start": { - "line": 55, - "column": 6 - }, - "end": { - "line": 55, - "column": 12 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1323, - "end": 1324, - "loc": { - "start": { - "line": 55, - "column": 12 - }, - "end": { - "line": 55, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 1324, - "end": 1327, - "loc": { - "start": { - "line": 55, - "column": 13 - }, - "end": { - "line": 55, - "column": 16 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1327, - "end": 1328, - "loc": { - "start": { - "line": 55, - "column": 16 - }, - "end": { - "line": 55, - "column": 17 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1328, - "end": 1329, - "loc": { - "start": { - "line": 55, - "column": 17 - }, - "end": { - "line": 55, - "column": 18 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1334, - "end": 1335, - "loc": { - "start": { - "line": 56, - "column": 4 - }, - "end": { - "line": 56, - "column": 5 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 1336, - "end": 1340, - "loc": { - "start": { - "line": 56, - "column": 6 - }, - "end": { - "line": 56, - "column": 10 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1341, - "end": 1342, - "loc": { - "start": { - "line": 56, - "column": 11 - }, - "end": { - "line": 56, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "resolve", - "start": 1349, - "end": 1356, - "loc": { - "start": { - "line": 57, - "column": 6 - }, - "end": { - "line": 57, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1356, - "end": 1357, - "loc": { - "start": { - "line": 57, - "column": 13 - }, - "end": { - "line": 57, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "res", - "start": 1357, - "end": 1360, - "loc": { - "start": { - "line": 57, - "column": 14 - }, - "end": { - "line": 57, - "column": 17 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1360, - "end": 1361, - "loc": { - "start": { - "line": 57, - "column": 17 - }, - "end": { - "line": 57, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 1361, - "end": 1363, - "loc": { - "start": { - "line": 57, - "column": 18 - }, - "end": { - "line": 57, - "column": 20 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1363, - "end": 1364, - "loc": { - "start": { - "line": 57, - "column": 20 - }, - "end": { - "line": 57, - "column": 21 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1364, - "end": 1365, - "loc": { - "start": { - "line": 57, - "column": 21 - }, - "end": { - "line": 57, - "column": 22 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1370, - "end": 1371, - "loc": { - "start": { - "line": 58, - "column": 4 - }, - "end": { - "line": 58, - "column": 5 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1374, - "end": 1375, - "loc": { - "start": { - "line": 59, - "column": 2 - }, - "end": { - "line": 59, - "column": 3 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1375, - "end": 1376, - "loc": { - "start": { - "line": 59, - "column": 3 - }, - "end": { - "line": 59, - "column": 4 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1376, - "end": 1377, - "loc": { - "start": { - "line": 59, - "column": 4 - }, - "end": { - "line": 59, - "column": 5 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1378, - "end": 1379, - "loc": { - "start": { - "line": 60, - "column": 0 - }, - "end": { - "line": 60, - "column": 1 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1379, - "end": 1380, - "loc": { - "start": { - "line": 60, - "column": 1 - }, - "end": { - "line": 60, - "column": 2 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1380, - "end": 1381, - "loc": { - "start": { - "line": 60, - "column": 2 - }, - "end": { - "line": 60, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group methods\n ", - "start": 1384, - "end": 1417, - "loc": { - "start": { - "line": 63, - "column": 0 - }, - "end": { - "line": 65, - "column": 3 - } - } - }, - { - "type": { - "label": "class", - "keyword": "class", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "class", - "start": 1418, - "end": 1423, - "loc": { - "start": { - "line": 66, - "column": 0 - }, - "end": { - "line": 66, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "DocumentGroup", - "start": 1424, - "end": 1437, - "loc": { - "start": { - "line": 66, - "column": 6 - }, - "end": { - "line": 66, - "column": 19 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1438, - "end": 1439, - "loc": { - "start": { - "line": 66, - "column": 20 - }, - "end": { - "line": 66, - "column": 21 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document group payload\n * @typedef {Object} DocumentGroupCreateParams\n * @property {string} token - your auth token\n * @property {string[]} ids - array of document or template ids for document group creation\n * @property {string} group_name - new name of document group\n ", - "start": 1443, - "end": 1742, - "loc": { - "start": { - "line": 68, - "column": 2 - }, - "end": { - "line": 74, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document group response data\n * @typedef {Object} DocumentGroupCreateResponse\n * @property {string} id - document group unique id\n ", - "start": 1746, - "end": 1901, - "loc": { - "start": { - "line": 76, - "column": 2 - }, - "end": { - "line": 80, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates document group with specified documents or templates.\n * At least one document or template must contain fields. Documents should not contain pending invites.\n * @param {DocumentGroupCreateParams} data - create document group payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupCreateResponse)} [callback] - error first node.js callback\n ", - "start": 1905, - "end": 2286, - "loc": { - "start": { - "line": 82, - "column": 2 - }, - "end": { - "line": 87, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 2289, - "end": 2295, - "loc": { - "start": { - "line": 88, - "column": 2 - }, - "end": { - "line": 88, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "create", - "start": 2296, - "end": 2302, - "loc": { - "start": { - "line": 88, - "column": 9 - }, - "end": { - "line": 88, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2303, - "end": 2304, - "loc": { - "start": { - "line": 88, - "column": 16 - }, - "end": { - "line": 88, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2304, - "end": 2305, - "loc": { - "start": { - "line": 88, - "column": 17 - }, - "end": { - "line": 88, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 2310, - "end": 2315, - "loc": { - "start": { - "line": 89, - "column": 4 - }, - "end": { - "line": 89, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2315, - "end": 2316, - "loc": { - "start": { - "line": 89, - "column": 9 - }, - "end": { - "line": 89, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "ids", - "start": 2321, - "end": 2324, - "loc": { - "start": { - "line": 90, - "column": 4 - }, - "end": { - "line": 90, - "column": 7 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2324, - "end": 2325, - "loc": { - "start": { - "line": 90, - "column": 7 - }, - "end": { - "line": 90, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "group_name", - "start": 2330, - "end": 2340, - "loc": { - "start": { - "line": 91, - "column": 4 - }, - "end": { - "line": 91, - "column": 14 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2340, - "end": 2341, - "loc": { - "start": { - "line": 91, - "column": 14 - }, - "end": { - "line": 91, - "column": 15 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2344, - "end": 2345, - "loc": { - "start": { - "line": 92, - "column": 2 - }, - "end": { - "line": 92, - "column": 3 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2345, - "end": 2346, - "loc": { - "start": { - "line": 92, - "column": 3 - }, - "end": { - "line": 92, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 2347, - "end": 2355, - "loc": { - "start": { - "line": 92, - "column": 5 - }, - "end": { - "line": 92, - "column": 13 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2355, - "end": 2356, - "loc": { - "start": { - "line": 92, - "column": 13 - }, - "end": { - "line": 92, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2357, - "end": 2358, - "loc": { - "start": { - "line": 92, - "column": 15 - }, - "end": { - "line": 92, - "column": 16 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 2363, - "end": 2368, - "loc": { - "start": { - "line": 93, - "column": 4 - }, - "end": { - "line": 93, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "realDocumentIDs", - "start": 2369, - "end": 2384, - "loc": { - "start": { - "line": 93, - "column": 10 - }, - "end": { - "line": 93, - "column": 25 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 2385, - "end": 2386, - "loc": { - "start": { - "line": 93, - "column": 26 - }, - "end": { - "line": 93, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "ids", - "start": 2387, - "end": 2390, - "loc": { - "start": { - "line": 93, - "column": 28 - }, - "end": { - "line": 93, - "column": 31 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2397, - "end": 2398, - "loc": { - "start": { - "line": 94, - "column": 6 - }, - "end": { - "line": 94, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "map", - "start": 2398, - "end": 2401, - "loc": { - "start": { - "line": 94, - "column": 7 - }, - "end": { - "line": 94, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2401, - "end": 2402, - "loc": { - "start": { - "line": 94, - "column": 10 - }, - "end": { - "line": 94, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 2402, - "end": 2404, - "loc": { - "start": { - "line": 94, - "column": 11 - }, - "end": { - "line": 94, - "column": 13 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2405, - "end": 2407, - "loc": { - "start": { - "line": 94, - "column": 14 - }, - "end": { - "line": 94, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2408, - "end": 2409, - "loc": { - "start": { - "line": 94, - "column": 17 - }, - "end": { - "line": 94, - "column": 18 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 2418, - "end": 2424, - "loc": { - "start": { - "line": 95, - "column": 8 - }, - "end": { - "line": 95, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getDocumentDetails", - "start": 2425, - "end": 2443, - "loc": { - "start": { - "line": 95, - "column": 15 - }, - "end": { - "line": 95, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2443, - "end": 2444, - "loc": { - "start": { - "line": 95, - "column": 33 - }, - "end": { - "line": 95, - "column": 34 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2444, - "end": 2445, - "loc": { - "start": { - "line": 95, - "column": 34 - }, - "end": { - "line": 95, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 2456, - "end": 2458, - "loc": { - "start": { - "line": 96, - "column": 10 - }, - "end": { - "line": 96, - "column": 12 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2458, - "end": 2459, - "loc": { - "start": { - "line": 96, - "column": 12 - }, - "end": { - "line": 96, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 2470, - "end": 2475, - "loc": { - "start": { - "line": 97, - "column": 10 - }, - "end": { - "line": 97, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2475, - "end": 2476, - "loc": { - "start": { - "line": 97, - "column": 15 - }, - "end": { - "line": 97, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2485, - "end": 2486, - "loc": { - "start": { - "line": 98, - "column": 8 - }, - "end": { - "line": 98, - "column": 9 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2486, - "end": 2487, - "loc": { - "start": { - "line": 98, - "column": 9 - }, - "end": { - "line": 98, - "column": 10 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2498, - "end": 2499, - "loc": { - "start": { - "line": 99, - "column": 10 - }, - "end": { - "line": 99, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "then", - "start": 2499, - "end": 2503, - "loc": { - "start": { - "line": 99, - "column": 11 - }, - "end": { - "line": 99, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2503, - "end": 2504, - "loc": { - "start": { - "line": 99, - "column": 15 - }, - "end": { - "line": 99, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document", - "start": 2504, - "end": 2512, - "loc": { - "start": { - "line": 99, - "column": 16 - }, - "end": { - "line": 99, - "column": 24 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2513, - "end": 2515, - "loc": { - "start": { - "line": 99, - "column": 25 - }, - "end": { - "line": 99, - "column": 27 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2516, - "end": 2517, - "loc": { - "start": { - "line": 99, - "column": 28 - }, - "end": { - "line": 99, - "column": 29 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 2530, - "end": 2532, - "loc": { - "start": { - "line": 100, - "column": 12 - }, - "end": { - "line": 100, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2533, - "end": 2534, - "loc": { - "start": { - "line": 100, - "column": 15 - }, - "end": { - "line": 100, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "isTemplate", - "start": 2534, - "end": 2544, - "loc": { - "start": { - "line": 100, - "column": 16 - }, - "end": { - "line": 100, - "column": 26 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2544, - "end": 2545, - "loc": { - "start": { - "line": 100, - "column": 26 - }, - "end": { - "line": 100, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document", - "start": 2545, - "end": 2553, - "loc": { - "start": { - "line": 100, - "column": 27 - }, - "end": { - "line": 100, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2553, - "end": 2554, - "loc": { - "start": { - "line": 100, - "column": 35 - }, - "end": { - "line": 100, - "column": 36 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2554, - "end": 2555, - "loc": { - "start": { - "line": 100, - "column": 36 - }, - "end": { - "line": 100, - "column": 37 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2556, - "end": 2557, - "loc": { - "start": { - "line": 100, - "column": 38 - }, - "end": { - "line": 100, - "column": 39 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 2572, - "end": 2578, - "loc": { - "start": { - "line": 101, - "column": 14 - }, - "end": { - "line": 101, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "makeDocumentFromTemplate", - "start": 2579, - "end": 2603, - "loc": { - "start": { - "line": 101, - "column": 21 - }, - "end": { - "line": 101, - "column": 45 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2603, - "end": 2604, - "loc": { - "start": { - "line": 101, - "column": 45 - }, - "end": { - "line": 101, - "column": 46 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2604, - "end": 2605, - "loc": { - "start": { - "line": 101, - "column": 46 - }, - "end": { - "line": 101, - "column": 47 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 2622, - "end": 2624, - "loc": { - "start": { - "line": 102, - "column": 16 - }, - "end": { - "line": 102, - "column": 18 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2624, - "end": 2625, - "loc": { - "start": { - "line": 102, - "column": 18 - }, - "end": { - "line": 102, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 2642, - "end": 2647, - "loc": { - "start": { - "line": 103, - "column": 16 - }, - "end": { - "line": 103, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2647, - "end": 2648, - "loc": { - "start": { - "line": 103, - "column": 21 - }, - "end": { - "line": 103, - "column": 22 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2663, - "end": 2664, - "loc": { - "start": { - "line": 104, - "column": 14 - }, - "end": { - "line": 104, - "column": 15 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2664, - "end": 2665, - "loc": { - "start": { - "line": 104, - "column": 15 - }, - "end": { - "line": 104, - "column": 16 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2665, - "end": 2666, - "loc": { - "start": { - "line": 104, - "column": 16 - }, - "end": { - "line": 104, - "column": 17 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2679, - "end": 2680, - "loc": { - "start": { - "line": 105, - "column": 12 - }, - "end": { - "line": 105, - "column": 13 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 2681, - "end": 2685, - "loc": { - "start": { - "line": 105, - "column": 14 - }, - "end": { - "line": 105, - "column": 18 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 2686, - "end": 2688, - "loc": { - "start": { - "line": 105, - "column": 19 - }, - "end": { - "line": 105, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2689, - "end": 2690, - "loc": { - "start": { - "line": 105, - "column": 22 - }, - "end": { - "line": 105, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hasFieldInvites", - "start": 2690, - "end": 2705, - "loc": { - "start": { - "line": 105, - "column": 23 - }, - "end": { - "line": 105, - "column": 38 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2705, - "end": 2706, - "loc": { - "start": { - "line": 105, - "column": 38 - }, - "end": { - "line": 105, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document", - "start": 2706, - "end": 2714, - "loc": { - "start": { - "line": 105, - "column": 39 - }, - "end": { - "line": 105, - "column": 47 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2714, - "end": 2715, - "loc": { - "start": { - "line": 105, - "column": 47 - }, - "end": { - "line": 105, - "column": 48 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2715, - "end": 2716, - "loc": { - "start": { - "line": 105, - "column": 48 - }, - "end": { - "line": 105, - "column": 49 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2717, - "end": 2718, - "loc": { - "start": { - "line": 105, - "column": 50 - }, - "end": { - "line": 105, - "column": 51 - } - } - }, - { - "type": { - "label": "throw", - "keyword": "throw", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "throw", - "start": 2733, - "end": 2738, - "loc": { - "start": { - "line": 106, - "column": 14 - }, - "end": { - "line": 106, - "column": 19 - } - } - }, - { - "type": { - "label": "new", - "keyword": "new", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "new", - "start": 2739, - "end": 2742, - "loc": { - "start": { - "line": 106, - "column": 20 - }, - "end": { - "line": 106, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Error", - "start": 2743, - "end": 2748, - "loc": { - "start": { - "line": 106, - "column": 24 - }, - "end": { - "line": 106, - "column": 29 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2748, - "end": 2749, - "loc": { - "start": { - "line": 106, - "column": 29 - }, - "end": { - "line": 106, - "column": 30 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Document in the group must have no pending invites", - "start": 2749, - "end": 2801, - "loc": { - "start": { - "line": 106, - "column": 30 - }, - "end": { - "line": 106, - "column": 82 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2801, - "end": 2802, - "loc": { - "start": { - "line": 106, - "column": 82 - }, - "end": { - "line": 106, - "column": 83 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2802, - "end": 2803, - "loc": { - "start": { - "line": 106, - "column": 83 - }, - "end": { - "line": 106, - "column": 84 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2816, - "end": 2817, - "loc": { - "start": { - "line": 107, - "column": 12 - }, - "end": { - "line": 107, - "column": 13 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 2818, - "end": 2822, - "loc": { - "start": { - "line": 107, - "column": 14 - }, - "end": { - "line": 107, - "column": 18 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2823, - "end": 2824, - "loc": { - "start": { - "line": 107, - "column": 19 - }, - "end": { - "line": 107, - "column": 20 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 2839, - "end": 2845, - "loc": { - "start": { - "line": 108, - "column": 14 - }, - "end": { - "line": 108, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 2846, - "end": 2848, - "loc": { - "start": { - "line": 108, - "column": 21 - }, - "end": { - "line": 108, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2848, - "end": 2849, - "loc": { - "start": { - "line": 108, - "column": 23 - }, - "end": { - "line": 108, - "column": 24 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2862, - "end": 2863, - "loc": { - "start": { - "line": 109, - "column": 12 - }, - "end": { - "line": 109, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2874, - "end": 2875, - "loc": { - "start": { - "line": 110, - "column": 10 - }, - "end": { - "line": 110, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2875, - "end": 2876, - "loc": { - "start": { - "line": 110, - "column": 11 - }, - "end": { - "line": 110, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2876, - "end": 2877, - "loc": { - "start": { - "line": 110, - "column": 12 - }, - "end": { - "line": 110, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2884, - "end": 2885, - "loc": { - "start": { - "line": 111, - "column": 6 - }, - "end": { - "line": 111, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2885, - "end": 2886, - "loc": { - "start": { - "line": 111, - "column": 7 - }, - "end": { - "line": 111, - "column": 8 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2886, - "end": 2887, - "loc": { - "start": { - "line": 111, - "column": 8 - }, - "end": { - "line": 111, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Promise", - "start": 2893, - "end": 2900, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 113, - "column": 11 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2900, - "end": 2901, - "loc": { - "start": { - "line": 113, - "column": 11 - }, - "end": { - "line": 113, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "all", - "start": 2901, - "end": 2904, - "loc": { - "start": { - "line": 113, - "column": 12 - }, - "end": { - "line": 113, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2904, - "end": 2905, - "loc": { - "start": { - "line": 113, - "column": 15 - }, - "end": { - "line": 113, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "realDocumentIDs", - "start": 2905, - "end": 2920, - "loc": { - "start": { - "line": 113, - "column": 16 - }, - "end": { - "line": 113, - "column": 31 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2920, - "end": 2921, - "loc": { - "start": { - "line": 113, - "column": 31 - }, - "end": { - "line": 113, - "column": 32 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2928, - "end": 2929, - "loc": { - "start": { - "line": 114, - "column": 6 - }, - "end": { - "line": 114, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "then", - "start": 2929, - "end": 2933, - "loc": { - "start": { - "line": 114, - "column": 7 - }, - "end": { - "line": 114, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2933, - "end": 2934, - "loc": { - "start": { - "line": 114, - "column": 11 - }, - "end": { - "line": 114, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_ids", - "start": 2934, - "end": 2946, - "loc": { - "start": { - "line": 114, - "column": 12 - }, - "end": { - "line": 114, - "column": 24 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2947, - "end": 2949, - "loc": { - "start": { - "line": 114, - "column": 25 - }, - "end": { - "line": 114, - "column": 27 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2950, - "end": 2951, - "loc": { - "start": { - "line": 114, - "column": 28 - }, - "end": { - "line": 114, - "column": 29 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 2960, - "end": 2965, - "loc": { - "start": { - "line": 115, - "column": 8 - }, - "end": { - "line": 115, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 2966, - "end": 2974, - "loc": { - "start": { - "line": 115, - "column": 14 - }, - "end": { - "line": 115, - "column": 22 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 2975, - "end": 2976, - "loc": { - "start": { - "line": 115, - "column": 23 - }, - "end": { - "line": 115, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSON", - "start": 2977, - "end": 2981, - "loc": { - "start": { - "line": 115, - "column": 25 - }, - "end": { - "line": 115, - "column": 29 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2981, - "end": 2982, - "loc": { - "start": { - "line": 115, - "column": 29 - }, - "end": { - "line": 115, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "stringify", - "start": 2982, - "end": 2991, - "loc": { - "start": { - "line": 115, - "column": 30 - }, - "end": { - "line": 115, - "column": 39 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2991, - "end": 2992, - "loc": { - "start": { - "line": 115, - "column": 39 - }, - "end": { - "line": 115, - "column": 40 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2992, - "end": 2993, - "loc": { - "start": { - "line": 115, - "column": 40 - }, - "end": { - "line": 115, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_ids", - "start": 3004, - "end": 3016, - "loc": { - "start": { - "line": 116, - "column": 10 - }, - "end": { - "line": 116, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3016, - "end": 3017, - "loc": { - "start": { - "line": 116, - "column": 22 - }, - "end": { - "line": 116, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "group_name", - "start": 3028, - "end": 3038, - "loc": { - "start": { - "line": 117, - "column": 10 - }, - "end": { - "line": 117, - "column": 20 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3038, - "end": 3039, - "loc": { - "start": { - "line": 117, - "column": 20 - }, - "end": { - "line": 117, - "column": 21 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3048, - "end": 3049, - "loc": { - "start": { - "line": 118, - "column": 8 - }, - "end": { - "line": 118, - "column": 9 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3049, - "end": 3050, - "loc": { - "start": { - "line": 118, - "column": 9 - }, - "end": { - "line": 118, - "column": 10 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3050, - "end": 3051, - "loc": { - "start": { - "line": 118, - "column": 10 - }, - "end": { - "line": 118, - "column": 11 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 3061, - "end": 3066, - "loc": { - "start": { - "line": 120, - "column": 8 - }, - "end": { - "line": 120, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 3067, - "end": 3070, - "loc": { - "start": { - "line": 120, - "column": 14 - }, - "end": { - "line": 120, - "column": 17 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 3071, - "end": 3072, - "loc": { - "start": { - "line": 120, - "column": 18 - }, - "end": { - "line": 120, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 3073, - "end": 3078, - "loc": { - "start": { - "line": 120, - "column": 20 - }, - "end": { - "line": 120, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3089, - "end": 3090, - "loc": { - "start": { - "line": 121, - "column": 10 - }, - "end": { - "line": 121, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 3090, - "end": 3097, - "loc": { - "start": { - "line": 121, - "column": 11 - }, - "end": { - "line": 121, - "column": 18 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3097, - "end": 3098, - "loc": { - "start": { - "line": 121, - "column": 18 - }, - "end": { - "line": 121, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 3098, - "end": 3117, - "loc": { - "start": { - "line": 121, - "column": 19 - }, - "end": { - "line": 121, - "column": 38 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3117, - "end": 3118, - "loc": { - "start": { - "line": 121, - "column": 38 - }, - "end": { - "line": 121, - "column": 39 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3118, - "end": 3119, - "loc": { - "start": { - "line": 121, - "column": 39 - }, - "end": { - "line": 121, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 3132, - "end": 3138, - "loc": { - "start": { - "line": 122, - "column": 12 - }, - "end": { - "line": 122, - "column": 18 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3138, - "end": 3139, - "loc": { - "start": { - "line": 122, - "column": 18 - }, - "end": { - "line": 122, - "column": 19 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "POST", - "start": 3140, - "end": 3146, - "loc": { - "start": { - "line": 122, - "column": 20 - }, - "end": { - "line": 122, - "column": 26 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3146, - "end": 3147, - "loc": { - "start": { - "line": 122, - "column": 26 - }, - "end": { - "line": 122, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 3160, - "end": 3164, - "loc": { - "start": { - "line": 123, - "column": 12 - }, - "end": { - "line": 123, - "column": 16 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3164, - "end": 3165, - "loc": { - "start": { - "line": 123, - "column": 16 - }, - "end": { - "line": 123, - "column": 17 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/documentgroup", - "start": 3166, - "end": 3182, - "loc": { - "start": { - "line": 123, - "column": 18 - }, - "end": { - "line": 123, - "column": 34 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3182, - "end": 3183, - "loc": { - "start": { - "line": 123, - "column": 34 - }, - "end": { - "line": 123, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 3196, - "end": 3209, - "loc": { - "start": { - "line": 124, - "column": 12 - }, - "end": { - "line": 124, - "column": 25 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3209, - "end": 3210, - "loc": { - "start": { - "line": 124, - "column": 25 - }, - "end": { - "line": 124, - "column": 26 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3211, - "end": 3212, - "loc": { - "start": { - "line": 124, - "column": 27 - }, - "end": { - "line": 124, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 3227, - "end": 3231, - "loc": { - "start": { - "line": 125, - "column": 14 - }, - "end": { - "line": 125, - "column": 18 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3231, - "end": 3232, - "loc": { - "start": { - "line": 125, - "column": 18 - }, - "end": { - "line": 125, - "column": 19 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 3233, - "end": 3241, - "loc": { - "start": { - "line": 125, - "column": 20 - }, - "end": { - "line": 125, - "column": 28 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3241, - "end": 3242, - "loc": { - "start": { - "line": 125, - "column": 28 - }, - "end": { - "line": 125, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 3257, - "end": 3262, - "loc": { - "start": { - "line": 126, - "column": 14 - }, - "end": { - "line": 126, - "column": 19 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3262, - "end": 3263, - "loc": { - "start": { - "line": 126, - "column": 19 - }, - "end": { - "line": 126, - "column": 20 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3276, - "end": 3277, - "loc": { - "start": { - "line": 127, - "column": 12 - }, - "end": { - "line": 127, - "column": 13 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3277, - "end": 3278, - "loc": { - "start": { - "line": 127, - "column": 13 - }, - "end": { - "line": 127, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 3291, - "end": 3298, - "loc": { - "start": { - "line": 128, - "column": 12 - }, - "end": { - "line": 128, - "column": 19 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3298, - "end": 3299, - "loc": { - "start": { - "line": 128, - "column": 19 - }, - "end": { - "line": 128, - "column": 20 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3300, - "end": 3301, - "loc": { - "start": { - "line": 128, - "column": 21 - }, - "end": { - "line": 128, - "column": 22 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type", - "start": 3316, - "end": 3330, - "loc": { - "start": { - "line": 129, - "column": 14 - }, - "end": { - "line": 129, - "column": 28 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3330, - "end": 3331, - "loc": { - "start": { - "line": 129, - "column": 28 - }, - "end": { - "line": 129, - "column": 29 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/json", - "start": 3332, - "end": 3350, - "loc": { - "start": { - "line": 129, - "column": 30 - }, - "end": { - "line": 129, - "column": 48 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3350, - "end": 3351, - "loc": { - "start": { - "line": 129, - "column": 48 - }, - "end": { - "line": 129, - "column": 49 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Length", - "start": 3366, - "end": 3382, - "loc": { - "start": { - "line": 130, - "column": 14 - }, - "end": { - "line": 130, - "column": 30 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3382, - "end": 3383, - "loc": { - "start": { - "line": 130, - "column": 30 - }, - "end": { - "line": 130, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 3384, - "end": 3390, - "loc": { - "start": { - "line": 130, - "column": 32 - }, - "end": { - "line": 130, - "column": 38 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3390, - "end": 3391, - "loc": { - "start": { - "line": 130, - "column": 38 - }, - "end": { - "line": 130, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "byteLength", - "start": 3391, - "end": 3401, - "loc": { - "start": { - "line": 130, - "column": 39 - }, - "end": { - "line": 130, - "column": 49 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3401, - "end": 3402, - "loc": { - "start": { - "line": 130, - "column": 49 - }, - "end": { - "line": 130, - "column": 50 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 3402, - "end": 3410, - "loc": { - "start": { - "line": 130, - "column": 50 - }, - "end": { - "line": 130, - "column": 58 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3410, - "end": 3411, - "loc": { - "start": { - "line": 130, - "column": 58 - }, - "end": { - "line": 130, - "column": 59 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3411, - "end": 3412, - "loc": { - "start": { - "line": 130, - "column": 59 - }, - "end": { - "line": 130, - "column": 60 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3425, - "end": 3426, - "loc": { - "start": { - "line": 131, - "column": 12 - }, - "end": { - "line": 131, - "column": 13 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3426, - "end": 3427, - "loc": { - "start": { - "line": 131, - "column": 13 - }, - "end": { - "line": 131, - "column": 14 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3438, - "end": 3439, - "loc": { - "start": { - "line": 132, - "column": 10 - }, - "end": { - "line": 132, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3439, - "end": 3440, - "loc": { - "start": { - "line": 132, - "column": 11 - }, - "end": { - "line": 132, - "column": 12 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3440, - "end": 3441, - "loc": { - "start": { - "line": 132, - "column": 12 - }, - "end": { - "line": 132, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 3442, - "end": 3457, - "loc": { - "start": { - "line": 132, - "column": 14 - }, - "end": { - "line": 132, - "column": 29 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3457, - "end": 3458, - "loc": { - "start": { - "line": 132, - "column": 29 - }, - "end": { - "line": 132, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 3458, - "end": 3466, - "loc": { - "start": { - "line": 132, - "column": 30 - }, - "end": { - "line": 132, - "column": 38 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3466, - "end": 3467, - "loc": { - "start": { - "line": 132, - "column": 38 - }, - "end": { - "line": 132, - "column": 39 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3467, - "end": 3468, - "loc": { - "start": { - "line": 132, - "column": 39 - }, - "end": { - "line": 132, - "column": 40 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3479, - "end": 3480, - "loc": { - "start": { - "line": 133, - "column": 10 - }, - "end": { - "line": 133, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 3480, - "end": 3482, - "loc": { - "start": { - "line": 133, - "column": 11 - }, - "end": { - "line": 133, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3482, - "end": 3483, - "loc": { - "start": { - "line": 133, - "column": 13 - }, - "end": { - "line": 133, - "column": 14 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 3483, - "end": 3490, - "loc": { - "start": { - "line": 133, - "column": 14 - }, - "end": { - "line": 133, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3490, - "end": 3491, - "loc": { - "start": { - "line": 133, - "column": 21 - }, - "end": { - "line": 133, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 3492, - "end": 3504, - "loc": { - "start": { - "line": 133, - "column": 23 - }, - "end": { - "line": 133, - "column": 35 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3504, - "end": 3505, - "loc": { - "start": { - "line": 133, - "column": 35 - }, - "end": { - "line": 133, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 3505, - "end": 3513, - "loc": { - "start": { - "line": 133, - "column": 36 - }, - "end": { - "line": 133, - "column": 44 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3513, - "end": 3514, - "loc": { - "start": { - "line": 133, - "column": 44 - }, - "end": { - "line": 133, - "column": 45 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3514, - "end": 3515, - "loc": { - "start": { - "line": 133, - "column": 45 - }, - "end": { - "line": 133, - "column": 46 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3515, - "end": 3516, - "loc": { - "start": { - "line": 133, - "column": 46 - }, - "end": { - "line": 133, - "column": 47 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 3526, - "end": 3529, - "loc": { - "start": { - "line": 135, - "column": 8 - }, - "end": { - "line": 135, - "column": 11 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3529, - "end": 3530, - "loc": { - "start": { - "line": 135, - "column": 11 - }, - "end": { - "line": 135, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "write", - "start": 3530, - "end": 3535, - "loc": { - "start": { - "line": 135, - "column": 12 - }, - "end": { - "line": 135, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3535, - "end": 3536, - "loc": { - "start": { - "line": 135, - "column": 17 - }, - "end": { - "line": 135, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 3536, - "end": 3544, - "loc": { - "start": { - "line": 135, - "column": 18 - }, - "end": { - "line": 135, - "column": 26 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3544, - "end": 3545, - "loc": { - "start": { - "line": 135, - "column": 26 - }, - "end": { - "line": 135, - "column": 27 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3545, - "end": 3546, - "loc": { - "start": { - "line": 135, - "column": 27 - }, - "end": { - "line": 135, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 3555, - "end": 3558, - "loc": { - "start": { - "line": 136, - "column": 8 - }, - "end": { - "line": 136, - "column": 11 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3558, - "end": 3559, - "loc": { - "start": { - "line": 136, - "column": 11 - }, - "end": { - "line": 136, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 3559, - "end": 3562, - "loc": { - "start": { - "line": 136, - "column": 12 - }, - "end": { - "line": 136, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3562, - "end": 3563, - "loc": { - "start": { - "line": 136, - "column": 15 - }, - "end": { - "line": 136, - "column": 16 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3563, - "end": 3564, - "loc": { - "start": { - "line": 136, - "column": 16 - }, - "end": { - "line": 136, - "column": 17 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3564, - "end": 3565, - "loc": { - "start": { - "line": 136, - "column": 17 - }, - "end": { - "line": 136, - "column": 18 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3572, - "end": 3573, - "loc": { - "start": { - "line": 137, - "column": 6 - }, - "end": { - "line": 137, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3573, - "end": 3574, - "loc": { - "start": { - "line": 137, - "column": 7 - }, - "end": { - "line": 137, - "column": 8 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3581, - "end": 3582, - "loc": { - "start": { - "line": 138, - "column": 6 - }, - "end": { - "line": 138, - "column": 7 - } - } - }, - { - "type": { - "label": "catch", - "keyword": "catch", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "catch", - "start": 3582, - "end": 3587, - "loc": { - "start": { - "line": 138, - "column": 7 - }, - "end": { - "line": 138, - "column": 12 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3587, - "end": 3588, - "loc": { - "start": { - "line": 138, - "column": 12 - }, - "end": { - "line": 138, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 3588, - "end": 3591, - "loc": { - "start": { - "line": 138, - "column": 13 - }, - "end": { - "line": 138, - "column": 16 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3592, - "end": 3594, - "loc": { - "start": { - "line": 138, - "column": 17 - }, - "end": { - "line": 138, - "column": 19 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3595, - "end": 3596, - "loc": { - "start": { - "line": 138, - "column": 20 - }, - "end": { - "line": 138, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 3605, - "end": 3613, - "loc": { - "start": { - "line": 139, - "column": 8 - }, - "end": { - "line": 139, - "column": 16 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3613, - "end": 3614, - "loc": { - "start": { - "line": 139, - "column": 16 - }, - "end": { - "line": 139, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 3614, - "end": 3617, - "loc": { - "start": { - "line": 139, - "column": 17 - }, - "end": { - "line": 139, - "column": 20 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3617, - "end": 3618, - "loc": { - "start": { - "line": 139, - "column": 20 - }, - "end": { - "line": 139, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "message", - "start": 3618, - "end": 3625, - "loc": { - "start": { - "line": 139, - "column": 21 - }, - "end": { - "line": 139, - "column": 28 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3625, - "end": 3626, - "loc": { - "start": { - "line": 139, - "column": 28 - }, - "end": { - "line": 139, - "column": 29 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3626, - "end": 3627, - "loc": { - "start": { - "line": 139, - "column": 29 - }, - "end": { - "line": 139, - "column": 30 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 3636, - "end": 3642, - "loc": { - "start": { - "line": 140, - "column": 8 - }, - "end": { - "line": 140, - "column": 14 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3642, - "end": 3643, - "loc": { - "start": { - "line": 140, - "column": 14 - }, - "end": { - "line": 140, - "column": 15 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3650, - "end": 3651, - "loc": { - "start": { - "line": 141, - "column": 6 - }, - "end": { - "line": 141, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3651, - "end": 3652, - "loc": { - "start": { - "line": 141, - "column": 7 - }, - "end": { - "line": 141, - "column": 8 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3652, - "end": 3653, - "loc": { - "start": { - "line": 141, - "column": 8 - }, - "end": { - "line": 141, - "column": 9 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3656, - "end": 3657, - "loc": { - "start": { - "line": 142, - "column": 2 - }, - "end": { - "line": 142, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group view payload\n * @typedef {Object} DocumentGroupViewParams\n * @property {string} id - id of specific Document Group\n * @property {string} token - your auth token\n ", - "start": 3661, - "end": 3857, - "loc": { - "start": { - "line": 144, - "column": 2 - }, - "end": { - "line": 149, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Details of single Document in group\n * @typedef {Object} DocumentGroupItem\n * @property {string} id - an ID of Document\n * @property {string} document_name - a name of Document\n * @property {string} origin_document_id - an ID of Document origin\n * @property {boolean} has_credit_card_number - Document has Credit Card number attached\n * @property {boolean} has_unassigned_field - Document has unassigned field(s)\n * @property {DocumentThumbnails} thumbnail - thumbnail urls with different sizes (small, medium, large)\n * @property {string[]} roles - list of template signer roles\n ", - "start": 3861, - "end": 4471, - "loc": { - "start": { - "line": 151, - "column": 2 - }, - "end": { - "line": 161, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group view response data\n * @typedef {Object} DocumentGroupViewResponse\n * @property {string} id - an ID of Document Group\n * @property {string} group_name - a name of Document Group\n * @property {DocumentGroupItem[]} documents - each single document details\n * @property {?string} invite_id - an ID of active invite\n * @property {Object[]} originator_organization_settings - originator organization settings\n ", - "start": 4475, - "end": 4919, - "loc": { - "start": { - "line": 163, - "column": 2 - }, - "end": { - "line": 171, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves a Document Group detailed data\n * @param {DocumentGroupViewParams} data - view Document Group details payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupViewResponse)} [callback] - error first node.js callback\n ", - "start": 4923, - "end": 5179, - "loc": { - "start": { - "line": 173, - "column": 2 - }, - "end": { - "line": 177, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 5182, - "end": 5188, - "loc": { - "start": { - "line": 178, - "column": 2 - }, - "end": { - "line": 178, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "view", - "start": 5189, - "end": 5193, - "loc": { - "start": { - "line": 178, - "column": 9 - }, - "end": { - "line": 178, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5194, - "end": 5195, - "loc": { - "start": { - "line": 178, - "column": 14 - }, - "end": { - "line": 178, - "column": 15 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5195, - "end": 5196, - "loc": { - "start": { - "line": 178, - "column": 15 - }, - "end": { - "line": 178, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 5197, - "end": 5199, - "loc": { - "start": { - "line": 178, - "column": 17 - }, - "end": { - "line": 178, - "column": 19 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5199, - "end": 5200, - "loc": { - "start": { - "line": 178, - "column": 19 - }, - "end": { - "line": 178, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 5201, - "end": 5206, - "loc": { - "start": { - "line": 178, - "column": 21 - }, - "end": { - "line": 178, - "column": 26 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5207, - "end": 5208, - "loc": { - "start": { - "line": 178, - "column": 27 - }, - "end": { - "line": 178, - "column": 28 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5208, - "end": 5209, - "loc": { - "start": { - "line": 178, - "column": 28 - }, - "end": { - "line": 178, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 5210, - "end": 5218, - "loc": { - "start": { - "line": 178, - "column": 30 - }, - "end": { - "line": 178, - "column": 38 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5218, - "end": 5219, - "loc": { - "start": { - "line": 178, - "column": 38 - }, - "end": { - "line": 178, - "column": 39 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5220, - "end": 5221, - "loc": { - "start": { - "line": 178, - "column": 40 - }, - "end": { - "line": 178, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 5226, - "end": 5231, - "loc": { - "start": { - "line": 179, - "column": 4 - }, - "end": { - "line": 179, - "column": 9 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5238, - "end": 5239, - "loc": { - "start": { - "line": 180, - "column": 6 - }, - "end": { - "line": 180, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 5239, - "end": 5246, - "loc": { - "start": { - "line": 180, - "column": 7 - }, - "end": { - "line": 180, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5246, - "end": 5247, - "loc": { - "start": { - "line": 180, - "column": 14 - }, - "end": { - "line": 180, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 5247, - "end": 5266, - "loc": { - "start": { - "line": 180, - "column": 15 - }, - "end": { - "line": 180, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5266, - "end": 5267, - "loc": { - "start": { - "line": 180, - "column": 34 - }, - "end": { - "line": 180, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5267, - "end": 5268, - "loc": { - "start": { - "line": 180, - "column": 35 - }, - "end": { - "line": 180, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 5277, - "end": 5283, - "loc": { - "start": { - "line": 181, - "column": 8 - }, - "end": { - "line": 181, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5283, - "end": 5284, - "loc": { - "start": { - "line": 181, - "column": 14 - }, - "end": { - "line": 181, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "GET", - "start": 5285, - "end": 5290, - "loc": { - "start": { - "line": 181, - "column": 16 - }, - "end": { - "line": 181, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5290, - "end": 5291, - "loc": { - "start": { - "line": 181, - "column": 21 - }, - "end": { - "line": 181, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 5300, - "end": 5304, - "loc": { - "start": { - "line": 182, - "column": 8 - }, - "end": { - "line": 182, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5304, - "end": 5305, - "loc": { - "start": { - "line": 182, - "column": 12 - }, - "end": { - "line": 182, - "column": 13 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5306, - "end": 5307, - "loc": { - "start": { - "line": 182, - "column": 14 - }, - "end": { - "line": 182, - "column": 15 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/documentgroup/", - "start": 5307, - "end": 5322, - "loc": { - "start": { - "line": 182, - "column": 15 - }, - "end": { - "line": 182, - "column": 30 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5322, - "end": 5324, - "loc": { - "start": { - "line": 182, - "column": 30 - }, - "end": { - "line": 182, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 5324, - "end": 5326, - "loc": { - "start": { - "line": 182, - "column": 32 - }, - "end": { - "line": 182, - "column": 34 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5326, - "end": 5327, - "loc": { - "start": { - "line": 182, - "column": 34 - }, - "end": { - "line": 182, - "column": 35 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 5327, - "end": 5327, - "loc": { - "start": { - "line": 182, - "column": 35 - }, - "end": { - "line": 182, - "column": 35 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5327, - "end": 5328, - "loc": { - "start": { - "line": 182, - "column": 35 - }, - "end": { - "line": 182, - "column": 36 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5328, - "end": 5329, - "loc": { - "start": { - "line": 182, - "column": 36 - }, - "end": { - "line": 182, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 5338, - "end": 5351, - "loc": { - "start": { - "line": 183, - "column": 8 - }, - "end": { - "line": 183, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5351, - "end": 5352, - "loc": { - "start": { - "line": 183, - "column": 21 - }, - "end": { - "line": 183, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5353, - "end": 5354, - "loc": { - "start": { - "line": 183, - "column": 23 - }, - "end": { - "line": 183, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 5365, - "end": 5369, - "loc": { - "start": { - "line": 184, - "column": 10 - }, - "end": { - "line": 184, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5369, - "end": 5370, - "loc": { - "start": { - "line": 184, - "column": 14 - }, - "end": { - "line": 184, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 5371, - "end": 5379, - "loc": { - "start": { - "line": 184, - "column": 16 - }, - "end": { - "line": 184, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5379, - "end": 5380, - "loc": { - "start": { - "line": 184, - "column": 24 - }, - "end": { - "line": 184, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 5391, - "end": 5396, - "loc": { - "start": { - "line": 185, - "column": 10 - }, - "end": { - "line": 185, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5396, - "end": 5397, - "loc": { - "start": { - "line": 185, - "column": 15 - }, - "end": { - "line": 185, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5406, - "end": 5407, - "loc": { - "start": { - "line": 186, - "column": 8 - }, - "end": { - "line": 186, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5407, - "end": 5408, - "loc": { - "start": { - "line": 186, - "column": 9 - }, - "end": { - "line": 186, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5415, - "end": 5416, - "loc": { - "start": { - "line": 187, - "column": 6 - }, - "end": { - "line": 187, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5416, - "end": 5417, - "loc": { - "start": { - "line": 187, - "column": 7 - }, - "end": { - "line": 187, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5417, - "end": 5418, - "loc": { - "start": { - "line": 187, - "column": 8 - }, - "end": { - "line": 187, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 5419, - "end": 5434, - "loc": { - "start": { - "line": 187, - "column": 10 - }, - "end": { - "line": 187, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5434, - "end": 5435, - "loc": { - "start": { - "line": 187, - "column": 25 - }, - "end": { - "line": 187, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 5435, - "end": 5443, - "loc": { - "start": { - "line": 187, - "column": 26 - }, - "end": { - "line": 187, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5443, - "end": 5444, - "loc": { - "start": { - "line": 187, - "column": 34 - }, - "end": { - "line": 187, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5444, - "end": 5445, - "loc": { - "start": { - "line": 187, - "column": 35 - }, - "end": { - "line": 187, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5452, - "end": 5453, - "loc": { - "start": { - "line": 188, - "column": 6 - }, - "end": { - "line": 188, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 5453, - "end": 5455, - "loc": { - "start": { - "line": 188, - "column": 7 - }, - "end": { - "line": 188, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5455, - "end": 5456, - "loc": { - "start": { - "line": 188, - "column": 9 - }, - "end": { - "line": 188, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 5456, - "end": 5463, - "loc": { - "start": { - "line": 188, - "column": 10 - }, - "end": { - "line": 188, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5463, - "end": 5464, - "loc": { - "start": { - "line": 188, - "column": 17 - }, - "end": { - "line": 188, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 5465, - "end": 5477, - "loc": { - "start": { - "line": 188, - "column": 19 - }, - "end": { - "line": 188, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5477, - "end": 5478, - "loc": { - "start": { - "line": 188, - "column": 31 - }, - "end": { - "line": 188, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 5478, - "end": 5486, - "loc": { - "start": { - "line": 188, - "column": 32 - }, - "end": { - "line": 188, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5486, - "end": 5487, - "loc": { - "start": { - "line": 188, - "column": 40 - }, - "end": { - "line": 188, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5487, - "end": 5488, - "loc": { - "start": { - "line": 188, - "column": 41 - }, - "end": { - "line": 188, - "column": 42 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5495, - "end": 5496, - "loc": { - "start": { - "line": 189, - "column": 6 - }, - "end": { - "line": 189, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 5496, - "end": 5499, - "loc": { - "start": { - "line": 189, - "column": 7 - }, - "end": { - "line": 189, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5499, - "end": 5500, - "loc": { - "start": { - "line": 189, - "column": 10 - }, - "end": { - "line": 189, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5500, - "end": 5501, - "loc": { - "start": { - "line": 189, - "column": 11 - }, - "end": { - "line": 189, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5501, - "end": 5502, - "loc": { - "start": { - "line": 189, - "column": 12 - }, - "end": { - "line": 189, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5505, - "end": 5506, - "loc": { - "start": { - "line": 190, - "column": 2 - }, - "end": { - "line": 190, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite email configurations\n * @typedef {Object} DocumentGroupInviteEmail\n * @property {string} email - signer's email\n * @property {string} [subject] - subject of invitation email\n * @property {string} [message] - content of invitation email\n * @property {number} [expiration_days] - expiration of invite in days\n * @property {number} [reminder] - number of days in which to remind about invitation via email\n ", - "start": 5510, - "end": 5961, - "loc": { - "start": { - "line": 192, - "column": 2 - }, - "end": { - "line": 200, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group signer's authentication with password config\n * @typedef {Object} DocumentGroupInviteAuthenticationPassword\n * @property {string} type - set `password` to authenticate signer with password\n * @property {string} value - authentication password value\n ", - "start": 5965, - "end": 6249, - "loc": { - "start": { - "line": 202, - "column": 2 - }, - "end": { - "line": 207, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group signer's authentication with phone call config\n * @typedef {Object} DocumentGroupInviteAuthenticationPhoneCall\n * @property {string} type - set `phone` to authenticate signer with phone call\n * @property {string} method - set `phone_call` to authenticate signer with phone call\n * @property {string} phone - phone number\n ", - "start": 6253, - "end": 6611, - "loc": { - "start": { - "line": 209, - "column": 2 - }, - "end": { - "line": 215, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group signer's authentication with phone SMS config\n * @typedef {Object} DocumentGroupInviteAuthenticationPhoneSMS\n * @property {string} type - set `phone` to authenticate signer with phone SMS\n * @property {string} method - set `sms` to authenticate signer with phone SMS\n * @property {string} phone - phone number\n ", - "start": 6615, - "end": 6962, - "loc": { - "start": { - "line": 217, - "column": 2 - }, - "end": { - "line": 223, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite action configurations\n * @typedef {Object} DocumentGroupInviteAction\n * @property {string} email - signer's email\n * @property {string} role_name - signer's role name\n * @property {string} action - name of action with document in signing step\n * @property {string} document_id - ID of document in specific signing step\n * @property {string} [allow_reassign] - allow reassigning of signer\n * @property {string} [decline_by_signature] - signer can decline invite\n * @property {DocumentGroupInviteAuthenticationPassword|DocumentGroupInviteAuthenticationPhoneCall|DocumentGroupInviteAuthenticationPhoneSMS} [authentication] - signer's authentication configuration\n ", - "start": 6966, - "end": 7678, - "loc": { - "start": { - "line": 225, - "column": 2 - }, - "end": { - "line": 235, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite step configurations\n * @typedef {Object} DocumentGroupInviteStep\n * @property {number} order - an order number of invitation step\n * @property {DocumentGroupInviteEmail[]} [invite_emails] - Document Group invite emails settings\n * @property {DocumentGroupInviteAction[]} invite_actions - Document Group invite actions settings\n ", - "start": 7682, - "end": 8053, - "loc": { - "start": { - "line": 237, - "column": 2 - }, - "end": { - "line": 243, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite completion email configuration\n * @typedef {Object} DocumentGroupInviteCompletionEmailConfig\n * @property {string} email - email for completion (only from the signers and document owner emails)\n * @property {number} disable_document_attachment - disable attachment of signed document group to completion email (values: 0|1)\n ", - "start": 8057, - "end": 8423, - "loc": { - "start": { - "line": 245, - "column": 2 - }, - "end": { - "line": 250, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite settings\n * @typedef {Object} DocumentGroupInviteSettings\n * @property {DocumentGroupInviteStep[]} invite_steps - Document Group invite steps settings\n * @property {DocumentGroupInviteCompletionEmailConfig[]} [completion_emails] - set of completion email configutrations\n ", - "start": 8427, - "end": 8740, - "loc": { - "start": { - "line": 252, - "column": 2 - }, - "end": { - "line": 257, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create Document Group invite payload\n * @typedef {Object} DocumentGroupInviteParams\n * @property {string} id - ID of specific Document Group\n * @property {DocumentGroupInviteSettings} data - Document Group invite settings data\n * @property {string} token - your auth token\n ", - "start": 8744, - "end": 9039, - "loc": { - "start": { - "line": 259, - "column": 2 - }, - "end": { - "line": 265, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create Document Group invite response data\n * @typedef {Object} DocumentGroupInviteResponse\n * @property {string} id - ID of created Document Group invitation\n * @property {?string} pending_invite_link - pending invite link\n ", - "start": 9043, - "end": 9287, - "loc": { - "start": { - "line": 267, - "column": 2 - }, - "end": { - "line": 272, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates an invite to sign a Document Group\n * @param {DocumentGroupInviteParams} data - create Document Group invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupInviteResponse)} [callback] - error first node.js callback\n ", - "start": 9291, - "end": 9554, - "loc": { - "start": { - "line": 274, - "column": 2 - }, - "end": { - "line": 278, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 9557, - "end": 9563, - "loc": { - "start": { - "line": 279, - "column": 2 - }, - "end": { - "line": 279, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "invite", - "start": 9564, - "end": 9570, - "loc": { - "start": { - "line": 279, - "column": 9 - }, - "end": { - "line": 279, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9571, - "end": 9572, - "loc": { - "start": { - "line": 279, - "column": 16 - }, - "end": { - "line": 279, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9572, - "end": 9573, - "loc": { - "start": { - "line": 279, - "column": 17 - }, - "end": { - "line": 279, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 9578, - "end": 9580, - "loc": { - "start": { - "line": 280, - "column": 4 - }, - "end": { - "line": 280, - "column": 6 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9580, - "end": 9581, - "loc": { - "start": { - "line": 280, - "column": 6 - }, - "end": { - "line": 280, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 9586, - "end": 9590, - "loc": { - "start": { - "line": 281, - "column": 4 - }, - "end": { - "line": 281, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9590, - "end": 9591, - "loc": { - "start": { - "line": 281, - "column": 8 - }, - "end": { - "line": 281, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 9596, - "end": 9601, - "loc": { - "start": { - "line": 282, - "column": 4 - }, - "end": { - "line": 282, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9601, - "end": 9602, - "loc": { - "start": { - "line": 282, - "column": 9 - }, - "end": { - "line": 282, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9605, - "end": 9606, - "loc": { - "start": { - "line": 283, - "column": 2 - }, - "end": { - "line": 283, - "column": 3 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9606, - "end": 9607, - "loc": { - "start": { - "line": 283, - "column": 3 - }, - "end": { - "line": 283, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 9608, - "end": 9616, - "loc": { - "start": { - "line": 283, - "column": 5 - }, - "end": { - "line": 283, - "column": 13 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9616, - "end": 9617, - "loc": { - "start": { - "line": 283, - "column": 13 - }, - "end": { - "line": 283, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9618, - "end": 9619, - "loc": { - "start": { - "line": 283, - "column": 15 - }, - "end": { - "line": 283, - "column": 16 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 9624, - "end": 9629, - "loc": { - "start": { - "line": 284, - "column": 4 - }, - "end": { - "line": 284, - "column": 9 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9630, - "end": 9631, - "loc": { - "start": { - "line": 284, - "column": 10 - }, - "end": { - "line": 284, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "invite_steps", - "start": 9638, - "end": 9650, - "loc": { - "start": { - "line": 285, - "column": 6 - }, - "end": { - "line": 285, - "column": 18 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9650, - "end": 9651, - "loc": { - "start": { - "line": 285, - "column": 18 - }, - "end": { - "line": 285, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "completion_emails", - "start": 9658, - "end": 9675, - "loc": { - "start": { - "line": 286, - "column": 6 - }, - "end": { - "line": 286, - "column": 23 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9675, - "end": 9676, - "loc": { - "start": { - "line": 286, - "column": 23 - }, - "end": { - "line": 286, - "column": 24 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9681, - "end": 9682, - "loc": { - "start": { - "line": 287, - "column": 4 - }, - "end": { - "line": 287, - "column": 5 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 9683, - "end": 9684, - "loc": { - "start": { - "line": 287, - "column": 6 - }, - "end": { - "line": 287, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 9685, - "end": 9689, - "loc": { - "start": { - "line": 287, - "column": 8 - }, - "end": { - "line": 287, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9689, - "end": 9690, - "loc": { - "start": { - "line": 287, - "column": 12 - }, - "end": { - "line": 287, - "column": 13 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 9696, - "end": 9701, - "loc": { - "start": { - "line": 289, - "column": 4 - }, - "end": { - "line": 289, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 9702, - "end": 9710, - "loc": { - "start": { - "line": 289, - "column": 10 - }, - "end": { - "line": 289, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 9711, - "end": 9712, - "loc": { - "start": { - "line": 289, - "column": 19 - }, - "end": { - "line": 289, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSON", - "start": 9713, - "end": 9717, - "loc": { - "start": { - "line": 289, - "column": 21 - }, - "end": { - "line": 289, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9717, - "end": 9718, - "loc": { - "start": { - "line": 289, - "column": 25 - }, - "end": { - "line": 289, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "stringify", - "start": 9718, - "end": 9727, - "loc": { - "start": { - "line": 289, - "column": 26 - }, - "end": { - "line": 289, - "column": 35 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9727, - "end": 9728, - "loc": { - "start": { - "line": 289, - "column": 35 - }, - "end": { - "line": 289, - "column": 36 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9728, - "end": 9729, - "loc": { - "start": { - "line": 289, - "column": 36 - }, - "end": { - "line": 289, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "invite_steps", - "start": 9736, - "end": 9748, - "loc": { - "start": { - "line": 290, - "column": 6 - }, - "end": { - "line": 290, - "column": 18 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9748, - "end": 9749, - "loc": { - "start": { - "line": 290, - "column": 18 - }, - "end": { - "line": 290, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "completion_emails", - "start": 9756, - "end": 9773, - "loc": { - "start": { - "line": 291, - "column": 6 - }, - "end": { - "line": 291, - "column": 23 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9773, - "end": 9774, - "loc": { - "start": { - "line": 291, - "column": 23 - }, - "end": { - "line": 291, - "column": 24 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9779, - "end": 9780, - "loc": { - "start": { - "line": 292, - "column": 4 - }, - "end": { - "line": 292, - "column": 5 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9780, - "end": 9781, - "loc": { - "start": { - "line": 292, - "column": 5 - }, - "end": { - "line": 292, - "column": 6 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9781, - "end": 9782, - "loc": { - "start": { - "line": 292, - "column": 6 - }, - "end": { - "line": 292, - "column": 7 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 9788, - "end": 9793, - "loc": { - "start": { - "line": 294, - "column": 4 - }, - "end": { - "line": 294, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 9794, - "end": 9797, - "loc": { - "start": { - "line": 294, - "column": 10 - }, - "end": { - "line": 294, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 9798, - "end": 9799, - "loc": { - "start": { - "line": 294, - "column": 14 - }, - "end": { - "line": 294, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 9800, - "end": 9805, - "loc": { - "start": { - "line": 294, - "column": 16 - }, - "end": { - "line": 294, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9812, - "end": 9813, - "loc": { - "start": { - "line": 295, - "column": 6 - }, - "end": { - "line": 295, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 9813, - "end": 9820, - "loc": { - "start": { - "line": 295, - "column": 7 - }, - "end": { - "line": 295, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9820, - "end": 9821, - "loc": { - "start": { - "line": 295, - "column": 14 - }, - "end": { - "line": 295, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 9821, - "end": 9840, - "loc": { - "start": { - "line": 295, - "column": 15 - }, - "end": { - "line": 295, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9840, - "end": 9841, - "loc": { - "start": { - "line": 295, - "column": 34 - }, - "end": { - "line": 295, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9841, - "end": 9842, - "loc": { - "start": { - "line": 295, - "column": 35 - }, - "end": { - "line": 295, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 9851, - "end": 9857, - "loc": { - "start": { - "line": 296, - "column": 8 - }, - "end": { - "line": 296, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9857, - "end": 9858, - "loc": { - "start": { - "line": 296, - "column": 14 - }, - "end": { - "line": 296, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "POST", - "start": 9859, - "end": 9865, - "loc": { - "start": { - "line": 296, - "column": 16 - }, - "end": { - "line": 296, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9865, - "end": 9866, - "loc": { - "start": { - "line": 296, - "column": 22 - }, - "end": { - "line": 296, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 9875, - "end": 9879, - "loc": { - "start": { - "line": 297, - "column": 8 - }, - "end": { - "line": 297, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9879, - "end": 9880, - "loc": { - "start": { - "line": 297, - "column": 12 - }, - "end": { - "line": 297, - "column": 13 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9881, - "end": 9882, - "loc": { - "start": { - "line": 297, - "column": 14 - }, - "end": { - "line": 297, - "column": 15 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/documentgroup/", - "start": 9882, - "end": 9897, - "loc": { - "start": { - "line": 297, - "column": 15 - }, - "end": { - "line": 297, - "column": 30 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9897, - "end": 9899, - "loc": { - "start": { - "line": 297, - "column": 30 - }, - "end": { - "line": 297, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 9899, - "end": 9901, - "loc": { - "start": { - "line": 297, - "column": 32 - }, - "end": { - "line": 297, - "column": 34 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9901, - "end": 9902, - "loc": { - "start": { - "line": 297, - "column": 34 - }, - "end": { - "line": 297, - "column": 35 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/groupinvite", - "start": 9902, - "end": 9914, - "loc": { - "start": { - "line": 297, - "column": 35 - }, - "end": { - "line": 297, - "column": 47 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9914, - "end": 9915, - "loc": { - "start": { - "line": 297, - "column": 47 - }, - "end": { - "line": 297, - "column": 48 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9915, - "end": 9916, - "loc": { - "start": { - "line": 297, - "column": 48 - }, - "end": { - "line": 297, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 9925, - "end": 9938, - "loc": { - "start": { - "line": 298, - "column": 8 - }, - "end": { - "line": 298, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9938, - "end": 9939, - "loc": { - "start": { - "line": 298, - "column": 21 - }, - "end": { - "line": 298, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9940, - "end": 9941, - "loc": { - "start": { - "line": 298, - "column": 23 - }, - "end": { - "line": 298, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 9952, - "end": 9956, - "loc": { - "start": { - "line": 299, - "column": 10 - }, - "end": { - "line": 299, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9956, - "end": 9957, - "loc": { - "start": { - "line": 299, - "column": 14 - }, - "end": { - "line": 299, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 9958, - "end": 9966, - "loc": { - "start": { - "line": 299, - "column": 16 - }, - "end": { - "line": 299, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9966, - "end": 9967, - "loc": { - "start": { - "line": 299, - "column": 24 - }, - "end": { - "line": 299, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 9978, - "end": 9983, - "loc": { - "start": { - "line": 300, - "column": 10 - }, - "end": { - "line": 300, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9983, - "end": 9984, - "loc": { - "start": { - "line": 300, - "column": 15 - }, - "end": { - "line": 300, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9993, - "end": 9994, - "loc": { - "start": { - "line": 301, - "column": 8 - }, - "end": { - "line": 301, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9994, - "end": 9995, - "loc": { - "start": { - "line": 301, - "column": 9 - }, - "end": { - "line": 301, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 10004, - "end": 10011, - "loc": { - "start": { - "line": 302, - "column": 8 - }, - "end": { - "line": 302, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10011, - "end": 10012, - "loc": { - "start": { - "line": 302, - "column": 15 - }, - "end": { - "line": 302, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10013, - "end": 10014, - "loc": { - "start": { - "line": 302, - "column": 17 - }, - "end": { - "line": 302, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type", - "start": 10025, - "end": 10039, - "loc": { - "start": { - "line": 303, - "column": 10 - }, - "end": { - "line": 303, - "column": 24 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10039, - "end": 10040, - "loc": { - "start": { - "line": 303, - "column": 24 - }, - "end": { - "line": 303, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/json", - "start": 10041, - "end": 10059, - "loc": { - "start": { - "line": 303, - "column": 26 - }, - "end": { - "line": 303, - "column": 44 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10059, - "end": 10060, - "loc": { - "start": { - "line": 303, - "column": 44 - }, - "end": { - "line": 303, - "column": 45 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Length", - "start": 10071, - "end": 10087, - "loc": { - "start": { - "line": 304, - "column": 10 - }, - "end": { - "line": 304, - "column": 26 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10087, - "end": 10088, - "loc": { - "start": { - "line": 304, - "column": 26 - }, - "end": { - "line": 304, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 10089, - "end": 10095, - "loc": { - "start": { - "line": 304, - "column": 28 - }, - "end": { - "line": 304, - "column": 34 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10095, - "end": 10096, - "loc": { - "start": { - "line": 304, - "column": 34 - }, - "end": { - "line": 304, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "byteLength", - "start": 10096, - "end": 10106, - "loc": { - "start": { - "line": 304, - "column": 35 - }, - "end": { - "line": 304, - "column": 45 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10106, - "end": 10107, - "loc": { - "start": { - "line": 304, - "column": 45 - }, - "end": { - "line": 304, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 10107, - "end": 10115, - "loc": { - "start": { - "line": 304, - "column": 46 - }, - "end": { - "line": 304, - "column": 54 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10115, - "end": 10116, - "loc": { - "start": { - "line": 304, - "column": 54 - }, - "end": { - "line": 304, - "column": 55 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10116, - "end": 10117, - "loc": { - "start": { - "line": 304, - "column": 55 - }, - "end": { - "line": 304, - "column": 56 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10126, - "end": 10127, - "loc": { - "start": { - "line": 305, - "column": 8 - }, - "end": { - "line": 305, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10127, - "end": 10128, - "loc": { - "start": { - "line": 305, - "column": 9 - }, - "end": { - "line": 305, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10135, - "end": 10136, - "loc": { - "start": { - "line": 306, - "column": 6 - }, - "end": { - "line": 306, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10136, - "end": 10137, - "loc": { - "start": { - "line": 306, - "column": 7 - }, - "end": { - "line": 306, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10137, - "end": 10138, - "loc": { - "start": { - "line": 306, - "column": 8 - }, - "end": { - "line": 306, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 10139, - "end": 10154, - "loc": { - "start": { - "line": 306, - "column": 10 - }, - "end": { - "line": 306, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10154, - "end": 10155, - "loc": { - "start": { - "line": 306, - "column": 25 - }, - "end": { - "line": 306, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 10155, - "end": 10163, - "loc": { - "start": { - "line": 306, - "column": 26 - }, - "end": { - "line": 306, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10163, - "end": 10164, - "loc": { - "start": { - "line": 306, - "column": 34 - }, - "end": { - "line": 306, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10164, - "end": 10165, - "loc": { - "start": { - "line": 306, - "column": 35 - }, - "end": { - "line": 306, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10172, - "end": 10173, - "loc": { - "start": { - "line": 307, - "column": 6 - }, - "end": { - "line": 307, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 10173, - "end": 10175, - "loc": { - "start": { - "line": 307, - "column": 7 - }, - "end": { - "line": 307, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10175, - "end": 10176, - "loc": { - "start": { - "line": 307, - "column": 9 - }, - "end": { - "line": 307, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 10176, - "end": 10183, - "loc": { - "start": { - "line": 307, - "column": 10 - }, - "end": { - "line": 307, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10183, - "end": 10184, - "loc": { - "start": { - "line": 307, - "column": 17 - }, - "end": { - "line": 307, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 10185, - "end": 10197, - "loc": { - "start": { - "line": 307, - "column": 19 - }, - "end": { - "line": 307, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10197, - "end": 10198, - "loc": { - "start": { - "line": 307, - "column": 31 - }, - "end": { - "line": 307, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 10198, - "end": 10206, - "loc": { - "start": { - "line": 307, - "column": 32 - }, - "end": { - "line": 307, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10206, - "end": 10207, - "loc": { - "start": { - "line": 307, - "column": 40 - }, - "end": { - "line": 307, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10207, - "end": 10208, - "loc": { - "start": { - "line": 307, - "column": 41 - }, - "end": { - "line": 307, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10208, - "end": 10209, - "loc": { - "start": { - "line": 307, - "column": 42 - }, - "end": { - "line": 307, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 10215, - "end": 10218, - "loc": { - "start": { - "line": 309, - "column": 4 - }, - "end": { - "line": 309, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10218, - "end": 10219, - "loc": { - "start": { - "line": 309, - "column": 7 - }, - "end": { - "line": 309, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "write", - "start": 10219, - "end": 10224, - "loc": { - "start": { - "line": 309, - "column": 8 - }, - "end": { - "line": 309, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10224, - "end": 10225, - "loc": { - "start": { - "line": 309, - "column": 13 - }, - "end": { - "line": 309, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 10225, - "end": 10233, - "loc": { - "start": { - "line": 309, - "column": 14 - }, - "end": { - "line": 309, - "column": 22 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10233, - "end": 10234, - "loc": { - "start": { - "line": 309, - "column": 22 - }, - "end": { - "line": 309, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10234, - "end": 10235, - "loc": { - "start": { - "line": 309, - "column": 23 - }, - "end": { - "line": 309, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 10240, - "end": 10243, - "loc": { - "start": { - "line": 310, - "column": 4 - }, - "end": { - "line": 310, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10243, - "end": 10244, - "loc": { - "start": { - "line": 310, - "column": 7 - }, - "end": { - "line": 310, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 10244, - "end": 10247, - "loc": { - "start": { - "line": 310, - "column": 8 - }, - "end": { - "line": 310, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10247, - "end": 10248, - "loc": { - "start": { - "line": 310, - "column": 11 - }, - "end": { - "line": 310, - "column": 12 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10248, - "end": 10249, - "loc": { - "start": { - "line": 310, - "column": 12 - }, - "end": { - "line": 310, - "column": 13 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10249, - "end": 10250, - "loc": { - "start": { - "line": 310, - "column": 13 - }, - "end": { - "line": 310, - "column": 14 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10253, - "end": 10254, - "loc": { - "start": { - "line": 311, - "column": 2 - }, - "end": { - "line": 311, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group download payload\n * @typedef {Object} DocumentGroupDownloadParams\n * @property {string} id - an ID of a Document Group\n * @property {string} token - your auth token\n * @property {string} [type='zip'] - type of download flow, can be either `zip` or `merged`\n * @property {string} [with_history='no'] - type of history merging flow, can be `no`, `after_each_document`, or `after_merged_pdf`\n * @property {string[]} [document_order] - document order for merging flow\n ", - "start": 10258, - "end": 10763, - "loc": { - "start": { - "line": 313, - "column": 2 - }, - "end": { - "line": 321, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group binary data\n * @typedef {Buffer} DocumentGroupDownloadResponse\n ", - "start": 10767, - "end": 10861, - "loc": { - "start": { - "line": 323, - "column": 2 - }, - "end": { - "line": 326, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Downloads a document group.\n * By default document group will be downloaded as a zip archive and without history.\n * To download document group as a single merged PDF set `type` to `merged`.\n * To download document group with history set `with_history` to `after_each_document` or `after_merged_pdf`.\n * @param {DocumentGroupDownloadParams} data - download Document Group request payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupDownloadResponse)} [callback] - error first node.js callback\n ", - "start": 10865, - "end": 11399, - "loc": { - "start": { - "line": 328, - "column": 2 - }, - "end": { - "line": 335, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 11402, - "end": 11408, - "loc": { - "start": { - "line": 336, - "column": 2 - }, - "end": { - "line": 336, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "download", - "start": 11409, - "end": 11417, - "loc": { - "start": { - "line": 336, - "column": 9 - }, - "end": { - "line": 336, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11418, - "end": 11419, - "loc": { - "start": { - "line": 336, - "column": 18 - }, - "end": { - "line": 336, - "column": 19 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11419, - "end": 11420, - "loc": { - "start": { - "line": 336, - "column": 19 - }, - "end": { - "line": 336, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 11425, - "end": 11427, - "loc": { - "start": { - "line": 337, - "column": 4 - }, - "end": { - "line": 337, - "column": 6 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11427, - "end": 11428, - "loc": { - "start": { - "line": 337, - "column": 6 - }, - "end": { - "line": 337, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 11433, - "end": 11438, - "loc": { - "start": { - "line": 338, - "column": 4 - }, - "end": { - "line": 338, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11438, - "end": 11439, - "loc": { - "start": { - "line": 338, - "column": 9 - }, - "end": { - "line": 338, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 11444, - "end": 11448, - "loc": { - "start": { - "line": 339, - "column": 4 - }, - "end": { - "line": 339, - "column": 8 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 11449, - "end": 11450, - "loc": { - "start": { - "line": 339, - "column": 9 - }, - "end": { - "line": 339, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "zip", - "start": 11451, - "end": 11456, - "loc": { - "start": { - "line": 339, - "column": 11 - }, - "end": { - "line": 339, - "column": 16 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11456, - "end": 11457, - "loc": { - "start": { - "line": 339, - "column": 16 - }, - "end": { - "line": 339, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "with_history", - "start": 11462, - "end": 11474, - "loc": { - "start": { - "line": 340, - "column": 4 - }, - "end": { - "line": 340, - "column": 16 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 11475, - "end": 11476, - "loc": { - "start": { - "line": 340, - "column": 17 - }, - "end": { - "line": 340, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "no", - "start": 11477, - "end": 11481, - "loc": { - "start": { - "line": 340, - "column": 19 - }, - "end": { - "line": 340, - "column": 23 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11481, - "end": 11482, - "loc": { - "start": { - "line": 340, - "column": 23 - }, - "end": { - "line": 340, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_order", - "start": 11487, - "end": 11501, - "loc": { - "start": { - "line": 341, - "column": 4 - }, - "end": { - "line": 341, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 11502, - "end": 11503, - "loc": { - "start": { - "line": 341, - "column": 19 - }, - "end": { - "line": 341, - "column": 20 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11504, - "end": 11505, - "loc": { - "start": { - "line": 341, - "column": 21 - }, - "end": { - "line": 341, - "column": 22 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11505, - "end": 11506, - "loc": { - "start": { - "line": 341, - "column": 22 - }, - "end": { - "line": 341, - "column": 23 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11506, - "end": 11507, - "loc": { - "start": { - "line": 341, - "column": 23 - }, - "end": { - "line": 341, - "column": 24 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11510, - "end": 11511, - "loc": { - "start": { - "line": 342, - "column": 2 - }, - "end": { - "line": 342, - "column": 3 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11511, - "end": 11512, - "loc": { - "start": { - "line": 342, - "column": 3 - }, - "end": { - "line": 342, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 11513, - "end": 11521, - "loc": { - "start": { - "line": 342, - "column": 5 - }, - "end": { - "line": 342, - "column": 13 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11521, - "end": 11522, - "loc": { - "start": { - "line": 342, - "column": 13 - }, - "end": { - "line": 342, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11523, - "end": 11524, - "loc": { - "start": { - "line": 342, - "column": 15 - }, - "end": { - "line": 342, - "column": 16 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 11529, - "end": 11534, - "loc": { - "start": { - "line": 343, - "column": 4 - }, - "end": { - "line": 343, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 11535, - "end": 11543, - "loc": { - "start": { - "line": 343, - "column": 10 - }, - "end": { - "line": 343, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 11544, - "end": 11545, - "loc": { - "start": { - "line": 343, - "column": 19 - }, - "end": { - "line": 343, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSON", - "start": 11546, - "end": 11550, - "loc": { - "start": { - "line": 343, - "column": 21 - }, - "end": { - "line": 343, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11550, - "end": 11551, - "loc": { - "start": { - "line": 343, - "column": 25 - }, - "end": { - "line": 343, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "stringify", - "start": 11551, - "end": 11560, - "loc": { - "start": { - "line": 343, - "column": 26 - }, - "end": { - "line": 343, - "column": 35 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11560, - "end": 11561, - "loc": { - "start": { - "line": 343, - "column": 35 - }, - "end": { - "line": 343, - "column": 36 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11561, - "end": 11562, - "loc": { - "start": { - "line": 343, - "column": 36 - }, - "end": { - "line": 343, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 11569, - "end": 11573, - "loc": { - "start": { - "line": 344, - "column": 6 - }, - "end": { - "line": 344, - "column": 10 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11573, - "end": 11574, - "loc": { - "start": { - "line": 344, - "column": 10 - }, - "end": { - "line": 344, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "with_history", - "start": 11581, - "end": 11593, - "loc": { - "start": { - "line": 345, - "column": 6 - }, - "end": { - "line": 345, - "column": 18 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11593, - "end": 11594, - "loc": { - "start": { - "line": 345, - "column": 18 - }, - "end": { - "line": 345, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_order", - "start": 11601, - "end": 11615, - "loc": { - "start": { - "line": 346, - "column": 6 - }, - "end": { - "line": 346, - "column": 20 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11615, - "end": 11616, - "loc": { - "start": { - "line": 346, - "column": 20 - }, - "end": { - "line": 346, - "column": 21 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11621, - "end": 11622, - "loc": { - "start": { - "line": 347, - "column": 4 - }, - "end": { - "line": 347, - "column": 5 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11622, - "end": 11623, - "loc": { - "start": { - "line": 347, - "column": 5 - }, - "end": { - "line": 347, - "column": 6 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11623, - "end": 11624, - "loc": { - "start": { - "line": 347, - "column": 6 - }, - "end": { - "line": 347, - "column": 7 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 11630, - "end": 11635, - "loc": { - "start": { - "line": 349, - "column": 4 - }, - "end": { - "line": 349, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 11636, - "end": 11639, - "loc": { - "start": { - "line": 349, - "column": 10 - }, - "end": { - "line": 349, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 11640, - "end": 11641, - "loc": { - "start": { - "line": 349, - "column": 14 - }, - "end": { - "line": 349, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 11642, - "end": 11647, - "loc": { - "start": { - "line": 349, - "column": 16 - }, - "end": { - "line": 349, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11654, - "end": 11655, - "loc": { - "start": { - "line": 350, - "column": 6 - }, - "end": { - "line": 350, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 11655, - "end": 11662, - "loc": { - "start": { - "line": 350, - "column": 7 - }, - "end": { - "line": 350, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11662, - "end": 11663, - "loc": { - "start": { - "line": 350, - "column": 14 - }, - "end": { - "line": 350, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 11663, - "end": 11682, - "loc": { - "start": { - "line": 350, - "column": 15 - }, - "end": { - "line": 350, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11682, - "end": 11683, - "loc": { - "start": { - "line": 350, - "column": 34 - }, - "end": { - "line": 350, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11683, - "end": 11684, - "loc": { - "start": { - "line": 350, - "column": 35 - }, - "end": { - "line": 350, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 11693, - "end": 11699, - "loc": { - "start": { - "line": 351, - "column": 8 - }, - "end": { - "line": 351, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11699, - "end": 11700, - "loc": { - "start": { - "line": 351, - "column": 14 - }, - "end": { - "line": 351, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "POST", - "start": 11701, - "end": 11707, - "loc": { - "start": { - "line": 351, - "column": 16 - }, - "end": { - "line": 351, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11707, - "end": 11708, - "loc": { - "start": { - "line": 351, - "column": 22 - }, - "end": { - "line": 351, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 11717, - "end": 11721, - "loc": { - "start": { - "line": 352, - "column": 8 - }, - "end": { - "line": 352, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11721, - "end": 11722, - "loc": { - "start": { - "line": 352, - "column": 12 - }, - "end": { - "line": 352, - "column": 13 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11723, - "end": 11724, - "loc": { - "start": { - "line": 352, - "column": 14 - }, - "end": { - "line": 352, - "column": 15 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/documentgroup/", - "start": 11724, - "end": 11739, - "loc": { - "start": { - "line": 352, - "column": 15 - }, - "end": { - "line": 352, - "column": 30 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11739, - "end": 11741, - "loc": { - "start": { - "line": 352, - "column": 30 - }, - "end": { - "line": 352, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 11741, - "end": 11743, - "loc": { - "start": { - "line": 352, - "column": 32 - }, - "end": { - "line": 352, - "column": 34 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11743, - "end": 11744, - "loc": { - "start": { - "line": 352, - "column": 34 - }, - "end": { - "line": 352, - "column": 35 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/downloadall", - "start": 11744, - "end": 11756, - "loc": { - "start": { - "line": 352, - "column": 35 - }, - "end": { - "line": 352, - "column": 47 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11756, - "end": 11757, - "loc": { - "start": { - "line": 352, - "column": 47 - }, - "end": { - "line": 352, - "column": 48 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11757, - "end": 11758, - "loc": { - "start": { - "line": 352, - "column": 48 - }, - "end": { - "line": 352, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 11767, - "end": 11780, - "loc": { - "start": { - "line": 353, - "column": 8 - }, - "end": { - "line": 353, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11780, - "end": 11781, - "loc": { - "start": { - "line": 353, - "column": 21 - }, - "end": { - "line": 353, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11782, - "end": 11783, - "loc": { - "start": { - "line": 353, - "column": 23 - }, - "end": { - "line": 353, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 11794, - "end": 11798, - "loc": { - "start": { - "line": 354, - "column": 10 - }, - "end": { - "line": 354, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11798, - "end": 11799, - "loc": { - "start": { - "line": 354, - "column": 14 - }, - "end": { - "line": 354, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 11800, - "end": 11808, - "loc": { - "start": { - "line": 354, - "column": 16 - }, - "end": { - "line": 354, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11808, - "end": 11809, - "loc": { - "start": { - "line": 354, - "column": 24 - }, - "end": { - "line": 354, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 11820, - "end": 11825, - "loc": { - "start": { - "line": 355, - "column": 10 - }, - "end": { - "line": 355, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11825, - "end": 11826, - "loc": { - "start": { - "line": 355, - "column": 15 - }, - "end": { - "line": 355, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11835, - "end": 11836, - "loc": { - "start": { - "line": 356, - "column": 8 - }, - "end": { - "line": 356, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11836, - "end": 11837, - "loc": { - "start": { - "line": 356, - "column": 9 - }, - "end": { - "line": 356, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 11846, - "end": 11853, - "loc": { - "start": { - "line": 357, - "column": 8 - }, - "end": { - "line": 357, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11853, - "end": 11854, - "loc": { - "start": { - "line": 357, - "column": 15 - }, - "end": { - "line": 357, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11855, - "end": 11856, - "loc": { - "start": { - "line": 357, - "column": 17 - }, - "end": { - "line": 357, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type", - "start": 11867, - "end": 11881, - "loc": { - "start": { - "line": 358, - "column": 10 - }, - "end": { - "line": 358, - "column": 24 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11881, - "end": 11882, - "loc": { - "start": { - "line": 358, - "column": 24 - }, - "end": { - "line": 358, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/json", - "start": 11883, - "end": 11901, - "loc": { - "start": { - "line": 358, - "column": 26 - }, - "end": { - "line": 358, - "column": 44 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11901, - "end": 11902, - "loc": { - "start": { - "line": 358, - "column": 44 - }, - "end": { - "line": 358, - "column": 45 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Length", - "start": 11913, - "end": 11929, - "loc": { - "start": { - "line": 359, - "column": 10 - }, - "end": { - "line": 359, - "column": 26 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11929, - "end": 11930, - "loc": { - "start": { - "line": 359, - "column": 26 - }, - "end": { - "line": 359, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 11931, - "end": 11937, - "loc": { - "start": { - "line": 359, - "column": 28 - }, - "end": { - "line": 359, - "column": 34 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11937, - "end": 11938, - "loc": { - "start": { - "line": 359, - "column": 34 - }, - "end": { - "line": 359, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "byteLength", - "start": 11938, - "end": 11948, - "loc": { - "start": { - "line": 359, - "column": 35 - }, - "end": { - "line": 359, - "column": 45 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11948, - "end": 11949, - "loc": { - "start": { - "line": 359, - "column": 45 - }, - "end": { - "line": 359, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 11949, - "end": 11957, - "loc": { - "start": { - "line": 359, - "column": 46 - }, - "end": { - "line": 359, - "column": 54 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11957, - "end": 11958, - "loc": { - "start": { - "line": 359, - "column": 54 - }, - "end": { - "line": 359, - "column": 55 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11958, - "end": 11959, - "loc": { - "start": { - "line": 359, - "column": 55 - }, - "end": { - "line": 359, - "column": 56 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11968, - "end": 11969, - "loc": { - "start": { - "line": 360, - "column": 8 - }, - "end": { - "line": 360, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11969, - "end": 11970, - "loc": { - "start": { - "line": 360, - "column": 9 - }, - "end": { - "line": 360, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11977, - "end": 11978, - "loc": { - "start": { - "line": 361, - "column": 6 - }, - "end": { - "line": 361, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11978, - "end": 11979, - "loc": { - "start": { - "line": 361, - "column": 7 - }, - "end": { - "line": 361, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11979, - "end": 11980, - "loc": { - "start": { - "line": 361, - "column": 8 - }, - "end": { - "line": 361, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 11981, - "end": 11996, - "loc": { - "start": { - "line": 361, - "column": 10 - }, - "end": { - "line": 361, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11996, - "end": 11997, - "loc": { - "start": { - "line": 361, - "column": 25 - }, - "end": { - "line": 361, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 11997, - "end": 12005, - "loc": { - "start": { - "line": 361, - "column": 26 - }, - "end": { - "line": 361, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12005, - "end": 12006, - "loc": { - "start": { - "line": 361, - "column": 34 - }, - "end": { - "line": 361, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12006, - "end": 12007, - "loc": { - "start": { - "line": 361, - "column": 35 - }, - "end": { - "line": 361, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12014, - "end": 12015, - "loc": { - "start": { - "line": 362, - "column": 6 - }, - "end": { - "line": 362, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 12015, - "end": 12017, - "loc": { - "start": { - "line": 362, - "column": 7 - }, - "end": { - "line": 362, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12017, - "end": 12018, - "loc": { - "start": { - "line": 362, - "column": 9 - }, - "end": { - "line": 362, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 12018, - "end": 12025, - "loc": { - "start": { - "line": 362, - "column": 10 - }, - "end": { - "line": 362, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12025, - "end": 12026, - "loc": { - "start": { - "line": 362, - "column": 17 - }, - "end": { - "line": 362, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 12027, - "end": 12039, - "loc": { - "start": { - "line": 362, - "column": 19 - }, - "end": { - "line": 362, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12039, - "end": 12040, - "loc": { - "start": { - "line": 362, - "column": 31 - }, - "end": { - "line": 362, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 12040, - "end": 12048, - "loc": { - "start": { - "line": 362, - "column": 32 - }, - "end": { - "line": 362, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12048, - "end": 12049, - "loc": { - "start": { - "line": 362, - "column": 40 - }, - "end": { - "line": 362, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12049, - "end": 12050, - "loc": { - "start": { - "line": 362, - "column": 41 - }, - "end": { - "line": 362, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12050, - "end": 12051, - "loc": { - "start": { - "line": 362, - "column": 42 - }, - "end": { - "line": 362, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 12057, - "end": 12060, - "loc": { - "start": { - "line": 364, - "column": 4 - }, - "end": { - "line": 364, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12060, - "end": 12061, - "loc": { - "start": { - "line": 364, - "column": 7 - }, - "end": { - "line": 364, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "write", - "start": 12061, - "end": 12066, - "loc": { - "start": { - "line": 364, - "column": 8 - }, - "end": { - "line": 364, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12066, - "end": 12067, - "loc": { - "start": { - "line": 364, - "column": 13 - }, - "end": { - "line": 364, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 12067, - "end": 12075, - "loc": { - "start": { - "line": 364, - "column": 14 - }, - "end": { - "line": 364, - "column": 22 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12075, - "end": 12076, - "loc": { - "start": { - "line": 364, - "column": 22 - }, - "end": { - "line": 364, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12076, - "end": 12077, - "loc": { - "start": { - "line": 364, - "column": 23 - }, - "end": { - "line": 364, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 12082, - "end": 12085, - "loc": { - "start": { - "line": 365, - "column": 4 - }, - "end": { - "line": 365, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12085, - "end": 12086, - "loc": { - "start": { - "line": 365, - "column": 7 - }, - "end": { - "line": 365, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 12086, - "end": 12089, - "loc": { - "start": { - "line": 365, - "column": 8 - }, - "end": { - "line": 365, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12089, - "end": 12090, - "loc": { - "start": { - "line": 365, - "column": 11 - }, - "end": { - "line": 365, - "column": 12 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12090, - "end": 12091, - "loc": { - "start": { - "line": 365, - "column": 12 - }, - "end": { - "line": 365, - "column": 13 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12091, - "end": 12092, - "loc": { - "start": { - "line": 365, - "column": 13 - }, - "end": { - "line": 365, - "column": 14 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12095, - "end": 12096, - "loc": { - "start": { - "line": 366, - "column": 2 - }, - "end": { - "line": 366, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancel Document Group Invite payload\n * @typedef {Object} DocumentGroupCancelInviteParams\n * @property {string} id - ID of specific Document Group\n * @property {string} invite_id - ID of Document Group Invite\n * @property {string} token - your auth token\n ", - "start": 12100, - "end": 12377, - "loc": { - "start": { - "line": 368, - "column": 2 - }, - "end": { - "line": 374, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancel Document Group Invite response data\n * @typedef {Object} DocumentGroupCancelInviteResponse\n * @property {string} status - status of invite cancellation (e.g. \"success\")\n ", - "start": 12381, - "end": 12575, - "loc": { - "start": { - "line": 376, - "column": 2 - }, - "end": { - "line": 380, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancels an Invite to sign a specific Document Group\n * @param {DocumentGroupCancelInviteParams} data - cancel Document Group Invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupCancelInviteResponse)} [callback] - error first node.js callback\n ", - "start": 12579, - "end": 12863, - "loc": { - "start": { - "line": 382, - "column": 2 - }, - "end": { - "line": 386, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 12866, - "end": 12872, - "loc": { - "start": { - "line": 387, - "column": 2 - }, - "end": { - "line": 387, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cancelInvite", - "start": 12873, - "end": 12885, - "loc": { - "start": { - "line": 387, - "column": 9 - }, - "end": { - "line": 387, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12886, - "end": 12887, - "loc": { - "start": { - "line": 387, - "column": 22 - }, - "end": { - "line": 387, - "column": 23 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12887, - "end": 12888, - "loc": { - "start": { - "line": 387, - "column": 23 - }, - "end": { - "line": 387, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 12893, - "end": 12898, - "loc": { - "start": { - "line": 388, - "column": 4 - }, - "end": { - "line": 388, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12898, - "end": 12899, - "loc": { - "start": { - "line": 388, - "column": 9 - }, - "end": { - "line": 388, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 12904, - "end": 12906, - "loc": { - "start": { - "line": 389, - "column": 4 - }, - "end": { - "line": 389, - "column": 6 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12906, - "end": 12907, - "loc": { - "start": { - "line": 389, - "column": 6 - }, - "end": { - "line": 389, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "inviteId", - "start": 12912, - "end": 12920, - "loc": { - "start": { - "line": 390, - "column": 4 - }, - "end": { - "line": 390, - "column": 12 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12920, - "end": 12921, - "loc": { - "start": { - "line": 390, - "column": 12 - }, - "end": { - "line": 390, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12924, - "end": 12925, - "loc": { - "start": { - "line": 391, - "column": 2 - }, - "end": { - "line": 391, - "column": 3 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12925, - "end": 12926, - "loc": { - "start": { - "line": 391, - "column": 3 - }, - "end": { - "line": 391, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 12927, - "end": 12935, - "loc": { - "start": { - "line": 391, - "column": 5 - }, - "end": { - "line": 391, - "column": 13 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12935, - "end": 12936, - "loc": { - "start": { - "line": 391, - "column": 13 - }, - "end": { - "line": 391, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12937, - "end": 12938, - "loc": { - "start": { - "line": 391, - "column": 15 - }, - "end": { - "line": 391, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 12944, - "end": 12949, - "loc": { - "start": { - "line": 393, - "column": 4 - }, - "end": { - "line": 393, - "column": 9 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12956, - "end": 12957, - "loc": { - "start": { - "line": 394, - "column": 6 - }, - "end": { - "line": 394, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 12957, - "end": 12964, - "loc": { - "start": { - "line": 394, - "column": 7 - }, - "end": { - "line": 394, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12964, - "end": 12965, - "loc": { - "start": { - "line": 394, - "column": 14 - }, - "end": { - "line": 394, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 12965, - "end": 12984, - "loc": { - "start": { - "line": 394, - "column": 15 - }, - "end": { - "line": 394, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12984, - "end": 12985, - "loc": { - "start": { - "line": 394, - "column": 34 - }, - "end": { - "line": 394, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12985, - "end": 12986, - "loc": { - "start": { - "line": 394, - "column": 35 - }, - "end": { - "line": 394, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 12995, - "end": 13001, - "loc": { - "start": { - "line": 395, - "column": 8 - }, - "end": { - "line": 395, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13001, - "end": 13002, - "loc": { - "start": { - "line": 395, - "column": 14 - }, - "end": { - "line": 395, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "POST", - "start": 13003, - "end": 13009, - "loc": { - "start": { - "line": 395, - "column": 16 - }, - "end": { - "line": 395, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13009, - "end": 13010, - "loc": { - "start": { - "line": 395, - "column": 22 - }, - "end": { - "line": 395, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 13019, - "end": 13023, - "loc": { - "start": { - "line": 396, - "column": 8 - }, - "end": { - "line": 396, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13023, - "end": 13024, - "loc": { - "start": { - "line": 396, - "column": 12 - }, - "end": { - "line": 396, - "column": 13 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13025, - "end": 13026, - "loc": { - "start": { - "line": 396, - "column": 14 - }, - "end": { - "line": 396, - "column": 15 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/documentgroup/", - "start": 13026, - "end": 13041, - "loc": { - "start": { - "line": 396, - "column": 15 - }, - "end": { - "line": 396, - "column": 30 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13041, - "end": 13043, - "loc": { - "start": { - "line": 396, - "column": 30 - }, - "end": { - "line": 396, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 13043, - "end": 13045, - "loc": { - "start": { - "line": 396, - "column": 32 - }, - "end": { - "line": 396, - "column": 34 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13045, - "end": 13046, - "loc": { - "start": { - "line": 396, - "column": 34 - }, - "end": { - "line": 396, - "column": 35 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/groupinvite/", - "start": 13046, - "end": 13059, - "loc": { - "start": { - "line": 396, - "column": 35 - }, - "end": { - "line": 396, - "column": 48 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13059, - "end": 13061, - "loc": { - "start": { - "line": 396, - "column": 48 - }, - "end": { - "line": 396, - "column": 50 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "inviteId", - "start": 13061, - "end": 13069, - "loc": { - "start": { - "line": 396, - "column": 50 - }, - "end": { - "line": 396, - "column": 58 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13069, - "end": 13070, - "loc": { - "start": { - "line": 396, - "column": 58 - }, - "end": { - "line": 396, - "column": 59 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/cancelinvite", - "start": 13070, - "end": 13083, - "loc": { - "start": { - "line": 396, - "column": 59 - }, - "end": { - "line": 396, - "column": 72 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13083, - "end": 13084, - "loc": { - "start": { - "line": 396, - "column": 72 - }, - "end": { - "line": 396, - "column": 73 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13084, - "end": 13085, - "loc": { - "start": { - "line": 396, - "column": 73 - }, - "end": { - "line": 396, - "column": 74 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 13094, - "end": 13107, - "loc": { - "start": { - "line": 397, - "column": 8 - }, - "end": { - "line": 397, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13107, - "end": 13108, - "loc": { - "start": { - "line": 397, - "column": 21 - }, - "end": { - "line": 397, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13109, - "end": 13110, - "loc": { - "start": { - "line": 397, - "column": 23 - }, - "end": { - "line": 397, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 13121, - "end": 13125, - "loc": { - "start": { - "line": 398, - "column": 10 - }, - "end": { - "line": 398, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13125, - "end": 13126, - "loc": { - "start": { - "line": 398, - "column": 14 - }, - "end": { - "line": 398, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 13127, - "end": 13135, - "loc": { - "start": { - "line": 398, - "column": 16 - }, - "end": { - "line": 398, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13135, - "end": 13136, - "loc": { - "start": { - "line": 398, - "column": 24 - }, - "end": { - "line": 398, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 13147, - "end": 13152, - "loc": { - "start": { - "line": 399, - "column": 10 - }, - "end": { - "line": 399, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13152, - "end": 13153, - "loc": { - "start": { - "line": 399, - "column": 15 - }, - "end": { - "line": 399, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13162, - "end": 13163, - "loc": { - "start": { - "line": 400, - "column": 8 - }, - "end": { - "line": 400, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13163, - "end": 13164, - "loc": { - "start": { - "line": 400, - "column": 9 - }, - "end": { - "line": 400, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13171, - "end": 13172, - "loc": { - "start": { - "line": 401, - "column": 6 - }, - "end": { - "line": 401, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13172, - "end": 13173, - "loc": { - "start": { - "line": 401, - "column": 7 - }, - "end": { - "line": 401, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13173, - "end": 13174, - "loc": { - "start": { - "line": 401, - "column": 8 - }, - "end": { - "line": 401, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 13175, - "end": 13190, - "loc": { - "start": { - "line": 401, - "column": 10 - }, - "end": { - "line": 401, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13190, - "end": 13191, - "loc": { - "start": { - "line": 401, - "column": 25 - }, - "end": { - "line": 401, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 13191, - "end": 13199, - "loc": { - "start": { - "line": 401, - "column": 26 - }, - "end": { - "line": 401, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13199, - "end": 13200, - "loc": { - "start": { - "line": 401, - "column": 34 - }, - "end": { - "line": 401, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13200, - "end": 13201, - "loc": { - "start": { - "line": 401, - "column": 35 - }, - "end": { - "line": 401, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13208, - "end": 13209, - "loc": { - "start": { - "line": 402, - "column": 6 - }, - "end": { - "line": 402, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 13209, - "end": 13211, - "loc": { - "start": { - "line": 402, - "column": 7 - }, - "end": { - "line": 402, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13211, - "end": 13212, - "loc": { - "start": { - "line": 402, - "column": 9 - }, - "end": { - "line": 402, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 13212, - "end": 13219, - "loc": { - "start": { - "line": 402, - "column": 10 - }, - "end": { - "line": 402, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13219, - "end": 13220, - "loc": { - "start": { - "line": 402, - "column": 17 - }, - "end": { - "line": 402, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 13221, - "end": 13233, - "loc": { - "start": { - "line": 402, - "column": 19 - }, - "end": { - "line": 402, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13233, - "end": 13234, - "loc": { - "start": { - "line": 402, - "column": 31 - }, - "end": { - "line": 402, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 13234, - "end": 13242, - "loc": { - "start": { - "line": 402, - "column": 32 - }, - "end": { - "line": 402, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13242, - "end": 13243, - "loc": { - "start": { - "line": 402, - "column": 40 - }, - "end": { - "line": 402, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13243, - "end": 13244, - "loc": { - "start": { - "line": 402, - "column": 41 - }, - "end": { - "line": 402, - "column": 42 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13251, - "end": 13252, - "loc": { - "start": { - "line": 403, - "column": 6 - }, - "end": { - "line": 403, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 13252, - "end": 13255, - "loc": { - "start": { - "line": 403, - "column": 7 - }, - "end": { - "line": 403, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13255, - "end": 13256, - "loc": { - "start": { - "line": 403, - "column": 10 - }, - "end": { - "line": 403, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13256, - "end": 13257, - "loc": { - "start": { - "line": 403, - "column": 11 - }, - "end": { - "line": 403, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13257, - "end": 13258, - "loc": { - "start": { - "line": 403, - "column": 12 - }, - "end": { - "line": 403, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13261, - "end": 13262, - "loc": { - "start": { - "line": 404, - "column": 2 - }, - "end": { - "line": 404, - "column": 3 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13264, - "end": 13265, - "loc": { - "start": { - "line": 406, - "column": 0 - }, - "end": { - "line": 406, - "column": 1 - } - } - }, - { - "type": { - "label": "export", - "keyword": "export", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "export", - "start": 13267, - "end": 13273, - "loc": { - "start": { - "line": 408, - "column": 0 - }, - "end": { - "line": 408, - "column": 6 - } - } - }, - { - "type": { - "label": "default", - "keyword": "default", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "default", - "start": 13274, - "end": 13281, - "loc": { - "start": { - "line": 408, - "column": 7 - }, - "end": { - "line": 408, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "DocumentGroup", - "start": 13282, - "end": 13295, - "loc": { - "start": { - "line": 408, - "column": 15 - }, - "end": { - "line": 408, - "column": 28 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13295, - "end": 13296, - "loc": { - "start": { - "line": 408, - "column": 28 - }, - "end": { - "line": 408, - "column": 29 - } - } - }, - { - "type": { - "label": "eof", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13297, - "end": 13297, - "loc": { - "start": { - "line": 409, - "column": 0 - }, - "end": { - "line": 409, - "column": 0 - } - } - } - ] -} \ No newline at end of file diff --git a/docs/ast/source/document.js.json b/docs/ast/source/document.js.json deleted file mode 100644 index 23d42a94..00000000 --- a/docs/ast/source/document.js.json +++ /dev/null @@ -1,96478 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 31949, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 884, - "column": 0 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 31949, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 884, - "column": 0 - } - }, - "sourceType": "module", - "body": [ - { - "type": "ImportDeclaration", - "start": 14, - "end": 40, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 26 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - } - }, - "local": { - "type": "Identifier", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - }, - "identifierName": "https" - }, - "name": "https" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 18 - }, - "end": { - "line": 2, - "column": 25 - } - }, - "extra": { - "rawValue": "https", - "raw": "'https'" - }, - "value": "https" - } - }, - { - "type": "ImportDeclaration", - "start": 41, - "end": 61, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 20 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 48, - "end": 50, - "loc": { - "start": { - "line": 3, - "column": 7 - }, - "end": { - "line": 3, - "column": 9 - } - }, - "local": { - "type": "Identifier", - "start": 48, - "end": 50, - "loc": { - "start": { - "line": 3, - "column": 7 - }, - "end": { - "line": 3, - "column": 9 - }, - "identifierName": "fs" - }, - "name": "fs" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 56, - "end": 60, - "loc": { - "start": { - "line": 3, - "column": 15 - }, - "end": { - "line": 3, - "column": 19 - } - }, - "extra": { - "rawValue": "fs", - "raw": "'fs'" - }, - "value": "fs" - } - }, - { - "type": "ImportDeclaration", - "start": 62, - "end": 143, - "loc": { - "start": { - "line": 4, - "column": 0 - }, - "end": { - "line": 6, - "column": 18 - } - }, - "specifiers": [ - { - "type": "ImportSpecifier", - "start": 73, - "end": 88, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 17 - } - }, - "imported": { - "type": "Identifier", - "start": 73, - "end": 88, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "local": { - "type": "Identifier", - "start": 73, - "end": 88, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - } - }, - { - "type": "ImportSpecifier", - "start": 90, - "end": 102, - "loc": { - "start": { - "line": 5, - "column": 19 - }, - "end": { - "line": 5, - "column": 31 - } - }, - "imported": { - "type": "Identifier", - "start": 90, - "end": 102, - "loc": { - "start": { - "line": 5, - "column": 19 - }, - "end": { - "line": 5, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "local": { - "type": "Identifier", - "start": 90, - "end": 102, - "loc": { - "start": { - "line": 5, - "column": 19 - }, - "end": { - "line": 5, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - } - }, - { - "type": "ImportSpecifier", - "start": 104, - "end": 123, - "loc": { - "start": { - "line": 5, - "column": 33 - }, - "end": { - "line": 5, - "column": 52 - } - }, - "imported": { - "type": "Identifier", - "start": 104, - "end": 123, - "loc": { - "start": { - "line": 5, - "column": 33 - }, - "end": { - "line": 5, - "column": 52 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "local": { - "type": "Identifier", - "start": 104, - "end": 123, - "loc": { - "start": { - "line": 5, - "column": 33 - }, - "end": { - "line": 5, - "column": 52 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 132, - "end": 142, - "loc": { - "start": { - "line": 6, - "column": 7 - }, - "end": { - "line": 6, - "column": 17 - } - }, - "extra": { - "rawValue": "./common", - "raw": "'./common'" - }, - "value": "./common" - }, - "trailingComments": [ - { - "type": "CommentLine", - "value": " build file multipart/form-data request", - "start": 145, - "end": 186, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 8, - "column": 41 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 187, - "end": 449, - "loc": { - "start": { - "line": 9, - "column": 0 - }, - "end": { - "line": 14, - "column": 2 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 193, - "end": 448, - "loc": { - "start": { - "line": 9, - "column": 6 - }, - "end": { - "line": 14, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 193, - "end": 209, - "loc": { - "start": { - "line": 9, - "column": 6 - }, - "end": { - "line": 9, - "column": 22 - }, - "identifierName": "buildFileRequest" - }, - "name": "buildFileRequest", - "leadingComments": null - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 212, - "end": 448, - "loc": { - "start": { - "line": 9, - "column": 25 - }, - "end": { - "line": 14, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 193, - "end": 209, - "loc": { - "start": { - "line": 9, - "column": 6 - }, - "end": { - "line": 9, - "column": 22 - }, - "identifierName": "buildFileRequest" - }, - "name": "buildFileRequest", - "leadingComments": null - }, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 213, - "end": 224, - "loc": { - "start": { - "line": 9, - "column": 26 - }, - "end": { - "line": 9, - "column": 37 - }, - "identifierName": "boundaryKey" - }, - "name": "boundaryKey" - }, - { - "type": "Identifier", - "start": 226, - "end": 234, - "loc": { - "start": { - "line": 9, - "column": 39 - }, - "end": { - "line": 9, - "column": 47 - }, - "identifierName": "mimeType" - }, - "name": "mimeType" - }, - { - "type": "Identifier", - "start": 236, - "end": 244, - "loc": { - "start": { - "line": 9, - "column": 49 - }, - "end": { - "line": 9, - "column": 57 - }, - "identifierName": "filename" - }, - "name": "filename" - } - ], - "body": { - "type": "BlockStatement", - "start": 249, - "end": 448, - "loc": { - "start": { - "line": 9, - "column": 62 - }, - "end": { - "line": 14, - "column": 1 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 253, - "end": 302, - "loc": { - "start": { - "line": 10, - "column": 2 - }, - "end": { - "line": 10, - "column": 51 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 257, - "end": 301, - "loc": { - "start": { - "line": 10, - "column": 6 - }, - "end": { - "line": 10, - "column": 50 - } - }, - "id": { - "type": "Identifier", - "start": 257, - "end": 260, - "loc": { - "start": { - "line": 10, - "column": 6 - }, - "end": { - "line": 10, - "column": 9 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "TemplateLiteral", - "start": 263, - "end": 301, - "loc": { - "start": { - "line": 10, - "column": 12 - }, - "end": { - "line": 10, - "column": 50 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 284, - "end": 295, - "loc": { - "start": { - "line": 10, - "column": 33 - }, - "end": { - "line": 10, - "column": 44 - }, - "identifierName": "boundaryKey" - }, - "name": "boundaryKey" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 264, - "end": 282, - "loc": { - "start": { - "line": 10, - "column": 13 - }, - "end": { - "line": 10, - "column": 31 - } - }, - "value": { - "raw": "------FormBoundary", - "cooked": "------FormBoundary" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 296, - "end": 300, - "loc": { - "start": { - "line": 10, - "column": 45 - }, - "end": { - "line": 10, - "column": 49 - } - }, - "value": { - "raw": "\\r\\n", - "cooked": "\r\n" - }, - "tail": true - } - ] - } - } - ], - "kind": "let" - }, - { - "type": "ExpressionStatement", - "start": 305, - "end": 386, - "loc": { - "start": { - "line": 11, - "column": 2 - }, - "end": { - "line": 11, - "column": 83 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 305, - "end": 385, - "loc": { - "start": { - "line": 11, - "column": 2 - }, - "end": { - "line": 11, - "column": 82 - } - }, - "operator": "+=", - "left": { - "type": "Identifier", - "start": 305, - "end": 308, - "loc": { - "start": { - "line": 11, - "column": 2 - }, - "end": { - "line": 11, - "column": 5 - }, - "identifierName": "req" - }, - "name": "req" - }, - "right": { - "type": "TemplateLiteral", - "start": 312, - "end": 385, - "loc": { - "start": { - "line": 11, - "column": 9 - }, - "end": { - "line": 11, - "column": 82 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 370, - "end": 378, - "loc": { - "start": { - "line": 11, - "column": 67 - }, - "end": { - "line": 11, - "column": 75 - }, - "identifierName": "filename" - }, - "name": "filename" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 313, - "end": 368, - "loc": { - "start": { - "line": 11, - "column": 10 - }, - "end": { - "line": 11, - "column": 65 - } - }, - "value": { - "raw": "Content-Disposition: form-data; name=\"file\"; filename=\"", - "cooked": "Content-Disposition: form-data; name=\"file\"; filename=\"" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 379, - "end": 384, - "loc": { - "start": { - "line": 11, - "column": 76 - }, - "end": { - "line": 11, - "column": 81 - } - }, - "value": { - "raw": "\"\\r\\n", - "cooked": "\"\r\n" - }, - "tail": true - } - ] - } - } - }, - { - "type": "ExpressionStatement", - "start": 389, - "end": 432, - "loc": { - "start": { - "line": 12, - "column": 2 - }, - "end": { - "line": 12, - "column": 45 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 389, - "end": 431, - "loc": { - "start": { - "line": 12, - "column": 2 - }, - "end": { - "line": 12, - "column": 44 - } - }, - "operator": "+=", - "left": { - "type": "Identifier", - "start": 389, - "end": 392, - "loc": { - "start": { - "line": 12, - "column": 2 - }, - "end": { - "line": 12, - "column": 5 - }, - "identifierName": "req" - }, - "name": "req" - }, - "right": { - "type": "TemplateLiteral", - "start": 396, - "end": 431, - "loc": { - "start": { - "line": 12, - "column": 9 - }, - "end": { - "line": 12, - "column": 44 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 413, - "end": 421, - "loc": { - "start": { - "line": 12, - "column": 26 - }, - "end": { - "line": 12, - "column": 34 - }, - "identifierName": "mimeType" - }, - "name": "mimeType" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 397, - "end": 411, - "loc": { - "start": { - "line": 12, - "column": 10 - }, - "end": { - "line": 12, - "column": 24 - } - }, - "value": { - "raw": "Content-Type: ", - "cooked": "Content-Type: " - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 422, - "end": 430, - "loc": { - "start": { - "line": 12, - "column": 35 - }, - "end": { - "line": 12, - "column": 43 - } - }, - "value": { - "raw": "\\r\\n\\r\\n", - "cooked": "\r\n\r\n" - }, - "tail": true - } - ] - } - } - }, - { - "type": "ReturnStatement", - "start": 435, - "end": 446, - "loc": { - "start": { - "line": 13, - "column": 2 - }, - "end": { - "line": 13, - "column": 13 - } - }, - "argument": { - "type": "Identifier", - "start": 442, - "end": 445, - "loc": { - "start": { - "line": 13, - "column": 9 - }, - "end": { - "line": 13, - "column": 12 - }, - "identifierName": "req" - }, - "name": "req" - } - } - ], - "directives": [] - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " build file multipart/form-data request", - "start": 145, - "end": 186, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 8, - "column": 41 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " get file mime type", - "start": 451, - "end": 472, - "loc": { - "start": { - "line": 16, - "column": 0 - }, - "end": { - "line": 16, - "column": 21 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 473, - "end": 1274, - "loc": { - "start": { - "line": 17, - "column": 0 - }, - "end": { - "line": 37, - "column": 2 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 479, - "end": 1273, - "loc": { - "start": { - "line": 17, - "column": 6 - }, - "end": { - "line": 37, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 479, - "end": 490, - "loc": { - "start": { - "line": 17, - "column": 6 - }, - "end": { - "line": 17, - "column": 17 - }, - "identifierName": "getMimeType" - }, - "name": "getMimeType", - "leadingComments": null - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 493, - "end": 1273, - "loc": { - "start": { - "line": 17, - "column": 20 - }, - "end": { - "line": 37, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 479, - "end": 490, - "loc": { - "start": { - "line": 17, - "column": 6 - }, - "end": { - "line": 17, - "column": 17 - }, - "identifierName": "getMimeType" - }, - "name": "getMimeType", - "leadingComments": null - }, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 493, - "end": 497, - "loc": { - "start": { - "line": 17, - "column": 20 - }, - "end": { - "line": 17, - "column": 24 - }, - "identifierName": "path" - }, - "name": "path" - } - ], - "body": { - "type": "BlockStatement", - "start": 501, - "end": 1273, - "loc": { - "start": { - "line": 17, - "column": 28 - }, - "end": { - "line": 37, - "column": 1 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 505, - "end": 1138, - "loc": { - "start": { - "line": 18, - "column": 2 - }, - "end": { - "line": 34, - "column": 4 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 511, - "end": 1137, - "loc": { - "start": { - "line": 18, - "column": 8 - }, - "end": { - "line": 34, - "column": 3 - } - }, - "id": { - "type": "Identifier", - "start": 511, - "end": 519, - "loc": { - "start": { - "line": 18, - "column": 8 - }, - "end": { - "line": 18, - "column": 16 - }, - "identifierName": "extTypes" - }, - "name": "extTypes" - }, - "init": { - "type": "ObjectExpression", - "start": 522, - "end": 1137, - "loc": { - "start": { - "line": 18, - "column": 19 - }, - "end": { - "line": 34, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 528, - "end": 553, - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 19, - "column": 29 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 528, - "end": 531, - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 19, - "column": 7 - }, - "identifierName": "doc" - }, - "name": "doc" - }, - "value": { - "type": "StringLiteral", - "start": 533, - "end": 553, - "loc": { - "start": { - "line": 19, - "column": 9 - }, - "end": { - "line": 19, - "column": 29 - } - }, - "extra": { - "rawValue": "application/msword", - "raw": "'application/msword'" - }, - "value": "application/msword" - } - }, - { - "type": "ObjectProperty", - "start": 559, - "end": 638, - "loc": { - "start": { - "line": 20, - "column": 4 - }, - "end": { - "line": 20, - "column": 83 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 559, - "end": 563, - "loc": { - "start": { - "line": 20, - "column": 4 - }, - "end": { - "line": 20, - "column": 8 - }, - "identifierName": "docx" - }, - "name": "docx" - }, - "value": { - "type": "StringLiteral", - "start": 565, - "end": 638, - "loc": { - "start": { - "line": 20, - "column": 10 - }, - "end": { - "line": 20, - "column": 83 - } - }, - "extra": { - "rawValue": "application/vnd.openxmlformats-officedocument.wordprocessingml.document", - "raw": "'application/vnd.openxmlformats-officedocument.wordprocessingml.document'" - }, - "value": "application/vnd.openxmlformats-officedocument.wordprocessingml.document" - } - }, - { - "type": "ObjectProperty", - "start": 644, - "end": 666, - "loc": { - "start": { - "line": 21, - "column": 4 - }, - "end": { - "line": 21, - "column": 26 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 644, - "end": 647, - "loc": { - "start": { - "line": 21, - "column": 4 - }, - "end": { - "line": 21, - "column": 7 - }, - "identifierName": "pdf" - }, - "name": "pdf" - }, - "value": { - "type": "StringLiteral", - "start": 649, - "end": 666, - "loc": { - "start": { - "line": 21, - "column": 9 - }, - "end": { - "line": 21, - "column": 26 - } - }, - "extra": { - "rawValue": "application/pdf", - "raw": "'application/pdf'" - }, - "value": "application/pdf" - } - }, - { - "type": "ObjectProperty", - "start": 672, - "end": 718, - "loc": { - "start": { - "line": 22, - "column": 4 - }, - "end": { - "line": 22, - "column": 50 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 672, - "end": 675, - "loc": { - "start": { - "line": 22, - "column": 4 - }, - "end": { - "line": 22, - "column": 7 - }, - "identifierName": "odt" - }, - "name": "odt" - }, - "value": { - "type": "StringLiteral", - "start": 677, - "end": 718, - "loc": { - "start": { - "line": 22, - "column": 9 - }, - "end": { - "line": 22, - "column": 50 - } - }, - "extra": { - "rawValue": "application/vnd.oasis.opendocument.text", - "raw": "'application/vnd.oasis.opendocument.text'" - }, - "value": "application/vnd.oasis.opendocument.text" - } - }, - { - "type": "ObjectProperty", - "start": 724, - "end": 746, - "loc": { - "start": { - "line": 23, - "column": 4 - }, - "end": { - "line": 23, - "column": 26 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 724, - "end": 727, - "loc": { - "start": { - "line": 23, - "column": 4 - }, - "end": { - "line": 23, - "column": 7 - }, - "identifierName": "rtf" - }, - "name": "rtf" - }, - "value": { - "type": "StringLiteral", - "start": 729, - "end": 746, - "loc": { - "start": { - "line": 23, - "column": 9 - }, - "end": { - "line": 23, - "column": 26 - } - }, - "extra": { - "rawValue": "application/rtf", - "raw": "'application/rtf'" - }, - "value": "application/rtf" - } - }, - { - "type": "ObjectProperty", - "start": 752, - "end": 774, - "loc": { - "start": { - "line": 24, - "column": 4 - }, - "end": { - "line": 24, - "column": 26 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 752, - "end": 755, - "loc": { - "start": { - "line": 24, - "column": 4 - }, - "end": { - "line": 24, - "column": 7 - }, - "identifierName": "xml" - }, - "name": "xml" - }, - "value": { - "type": "StringLiteral", - "start": 757, - "end": 774, - "loc": { - "start": { - "line": 24, - "column": 9 - }, - "end": { - "line": 24, - "column": 26 - } - }, - "extra": { - "rawValue": "application/xml", - "raw": "'application/xml'" - }, - "value": "application/xml" - } - }, - { - "type": "ObjectProperty", - "start": 780, - "end": 811, - "loc": { - "start": { - "line": 25, - "column": 4 - }, - "end": { - "line": 25, - "column": 35 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 780, - "end": 783, - "loc": { - "start": { - "line": 25, - "column": 4 - }, - "end": { - "line": 25, - "column": 7 - }, - "identifierName": "xls" - }, - "name": "xls" - }, - "value": { - "type": "StringLiteral", - "start": 785, - "end": 811, - "loc": { - "start": { - "line": 25, - "column": 9 - }, - "end": { - "line": 25, - "column": 35 - } - }, - "extra": { - "rawValue": "application/vnd.ms-excel", - "raw": "'application/vnd.ms-excel'" - }, - "value": "application/vnd.ms-excel" - } - }, - { - "type": "ObjectProperty", - "start": 817, - "end": 890, - "loc": { - "start": { - "line": 26, - "column": 4 - }, - "end": { - "line": 26, - "column": 77 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 817, - "end": 821, - "loc": { - "start": { - "line": 26, - "column": 4 - }, - "end": { - "line": 26, - "column": 8 - }, - "identifierName": "xlsx" - }, - "name": "xlsx" - }, - "value": { - "type": "StringLiteral", - "start": 823, - "end": 890, - "loc": { - "start": { - "line": 26, - "column": 10 - }, - "end": { - "line": 26, - "column": 77 - } - }, - "extra": { - "rawValue": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", - "raw": "'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'" - }, - "value": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" - } - }, - { - "type": "ObjectProperty", - "start": 896, - "end": 932, - "loc": { - "start": { - "line": 27, - "column": 4 - }, - "end": { - "line": 27, - "column": 40 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 896, - "end": 899, - "loc": { - "start": { - "line": 27, - "column": 4 - }, - "end": { - "line": 27, - "column": 7 - }, - "identifierName": "ppt" - }, - "name": "ppt" - }, - "value": { - "type": "StringLiteral", - "start": 901, - "end": 932, - "loc": { - "start": { - "line": 27, - "column": 9 - }, - "end": { - "line": 27, - "column": 40 - } - }, - "extra": { - "rawValue": "application/vnd.ms-powerpoint", - "raw": "'application/vnd.ms-powerpoint'" - }, - "value": "application/vnd.ms-powerpoint" - } - }, - { - "type": "ObjectProperty", - "start": 938, - "end": 1019, - "loc": { - "start": { - "line": 28, - "column": 4 - }, - "end": { - "line": 28, - "column": 85 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 938, - "end": 942, - "loc": { - "start": { - "line": 28, - "column": 4 - }, - "end": { - "line": 28, - "column": 8 - }, - "identifierName": "pptx" - }, - "name": "pptx" - }, - "value": { - "type": "StringLiteral", - "start": 944, - "end": 1019, - "loc": { - "start": { - "line": 28, - "column": 10 - }, - "end": { - "line": 28, - "column": 85 - } - }, - "extra": { - "rawValue": "application/vnd.openxmlformats-officedocument.presentationml.presentation", - "raw": "'application/vnd.openxmlformats-officedocument.presentationml.presentation'" - }, - "value": "application/vnd.openxmlformats-officedocument.presentationml.presentation" - } - }, - { - "type": "ObjectProperty", - "start": 1025, - "end": 1041, - "loc": { - "start": { - "line": 29, - "column": 4 - }, - "end": { - "line": 29, - "column": 20 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1025, - "end": 1028, - "loc": { - "start": { - "line": 29, - "column": 4 - }, - "end": { - "line": 29, - "column": 7 - }, - "identifierName": "png" - }, - "name": "png" - }, - "value": { - "type": "StringLiteral", - "start": 1030, - "end": 1041, - "loc": { - "start": { - "line": 29, - "column": 9 - }, - "end": { - "line": 29, - "column": 20 - } - }, - "extra": { - "rawValue": "image/png", - "raw": "'image/png'" - }, - "value": "image/png" - } - }, - { - "type": "ObjectProperty", - "start": 1047, - "end": 1064, - "loc": { - "start": { - "line": 30, - "column": 4 - }, - "end": { - "line": 30, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1047, - "end": 1050, - "loc": { - "start": { - "line": 30, - "column": 4 - }, - "end": { - "line": 30, - "column": 7 - }, - "identifierName": "jpg" - }, - "name": "jpg" - }, - "value": { - "type": "StringLiteral", - "start": 1052, - "end": 1064, - "loc": { - "start": { - "line": 30, - "column": 9 - }, - "end": { - "line": 30, - "column": 21 - } - }, - "extra": { - "rawValue": "image/jpeg", - "raw": "'image/jpeg'" - }, - "value": "image/jpeg" - } - }, - { - "type": "ObjectProperty", - "start": 1070, - "end": 1088, - "loc": { - "start": { - "line": 31, - "column": 4 - }, - "end": { - "line": 31, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1070, - "end": 1074, - "loc": { - "start": { - "line": 31, - "column": 4 - }, - "end": { - "line": 31, - "column": 8 - }, - "identifierName": "jpeg" - }, - "name": "jpeg" - }, - "value": { - "type": "StringLiteral", - "start": 1076, - "end": 1088, - "loc": { - "start": { - "line": 31, - "column": 10 - }, - "end": { - "line": 31, - "column": 22 - } - }, - "extra": { - "rawValue": "image/jpeg", - "raw": "'image/jpeg'" - }, - "value": "image/jpeg" - } - }, - { - "type": "ObjectProperty", - "start": 1094, - "end": 1110, - "loc": { - "start": { - "line": 32, - "column": 4 - }, - "end": { - "line": 32, - "column": 20 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1094, - "end": 1097, - "loc": { - "start": { - "line": 32, - "column": 4 - }, - "end": { - "line": 32, - "column": 7 - }, - "identifierName": "gif" - }, - "name": "gif" - }, - "value": { - "type": "StringLiteral", - "start": 1099, - "end": 1110, - "loc": { - "start": { - "line": 32, - "column": 9 - }, - "end": { - "line": 32, - "column": 20 - } - }, - "extra": { - "rawValue": "image/gif", - "raw": "'image/gif'" - }, - "value": "image/gif" - } - }, - { - "type": "ObjectProperty", - "start": 1116, - "end": 1132, - "loc": { - "start": { - "line": 33, - "column": 4 - }, - "end": { - "line": 33, - "column": 20 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1116, - "end": 1119, - "loc": { - "start": { - "line": 33, - "column": 4 - }, - "end": { - "line": 33, - "column": 7 - }, - "identifierName": "bmp" - }, - "name": "bmp" - }, - "value": { - "type": "StringLiteral", - "start": 1121, - "end": 1132, - "loc": { - "start": { - "line": 33, - "column": 9 - }, - "end": { - "line": 33, - "column": 20 - } - }, - "extra": { - "rawValue": "image/bmp", - "raw": "'image/bmp'" - }, - "value": "image/bmp" - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 1141, - "end": 1215, - "loc": { - "start": { - "line": 35, - "column": 2 - }, - "end": { - "line": 35, - "column": 76 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1147, - "end": 1214, - "loc": { - "start": { - "line": 35, - "column": 8 - }, - "end": { - "line": 35, - "column": 75 - } - }, - "id": { - "type": "Identifier", - "start": 1147, - "end": 1160, - "loc": { - "start": { - "line": 35, - "column": 8 - }, - "end": { - "line": 35, - "column": 21 - }, - "identifierName": "pathExtension" - }, - "name": "pathExtension" - }, - "init": { - "type": "CallExpression", - "start": 1163, - "end": 1214, - "loc": { - "start": { - "line": 35, - "column": 24 - }, - "end": { - "line": 35, - "column": 75 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1163, - "end": 1205, - "loc": { - "start": { - "line": 35, - "column": 24 - }, - "end": { - "line": 35, - "column": 66 - } - }, - "object": { - "type": "CallExpression", - "start": 1163, - "end": 1197, - "loc": { - "start": { - "line": 35, - "column": 24 - }, - "end": { - "line": 35, - "column": 58 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1163, - "end": 1174, - "loc": { - "start": { - "line": 35, - "column": 24 - }, - "end": { - "line": 35, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 1163, - "end": 1167, - "loc": { - "start": { - "line": 35, - "column": 24 - }, - "end": { - "line": 35, - "column": 28 - }, - "identifierName": "path" - }, - "name": "path" - }, - "property": { - "type": "Identifier", - "start": 1168, - "end": 1174, - "loc": { - "start": { - "line": 35, - "column": 29 - }, - "end": { - "line": 35, - "column": 35 - }, - "identifierName": "substr" - }, - "name": "substr" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 1175, - "end": 1196, - "loc": { - "start": { - "line": 35, - "column": 36 - }, - "end": { - "line": 35, - "column": 57 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1175, - "end": 1191, - "loc": { - "start": { - "line": 35, - "column": 36 - }, - "end": { - "line": 35, - "column": 52 - } - }, - "object": { - "type": "Identifier", - "start": 1175, - "end": 1179, - "loc": { - "start": { - "line": 35, - "column": 36 - }, - "end": { - "line": 35, - "column": 40 - }, - "identifierName": "path" - }, - "name": "path" - }, - "property": { - "type": "Identifier", - "start": 1180, - "end": 1191, - "loc": { - "start": { - "line": 35, - "column": 41 - }, - "end": { - "line": 35, - "column": 52 - }, - "identifierName": "lastIndexOf" - }, - "name": "lastIndexOf" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 1192, - "end": 1195, - "loc": { - "start": { - "line": 35, - "column": 53 - }, - "end": { - "line": 35, - "column": 56 - } - }, - "extra": { - "rawValue": ".", - "raw": "'.'" - }, - "value": "." - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 1198, - "end": 1205, - "loc": { - "start": { - "line": 35, - "column": 59 - }, - "end": { - "line": 35, - "column": 66 - }, - "identifierName": "replace" - }, - "name": "replace" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 1206, - "end": 1209, - "loc": { - "start": { - "line": 35, - "column": 67 - }, - "end": { - "line": 35, - "column": 70 - } - }, - "extra": { - "rawValue": ".", - "raw": "'.'" - }, - "value": "." - }, - { - "type": "StringLiteral", - "start": 1211, - "end": 1213, - "loc": { - "start": { - "line": 35, - "column": 72 - }, - "end": { - "line": 35, - "column": 74 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 1218, - "end": 1271, - "loc": { - "start": { - "line": 36, - "column": 2 - }, - "end": { - "line": 36, - "column": 55 - } - }, - "argument": { - "type": "LogicalExpression", - "start": 1225, - "end": 1270, - "loc": { - "start": { - "line": 36, - "column": 9 - }, - "end": { - "line": 36, - "column": 54 - } - }, - "left": { - "type": "MemberExpression", - "start": 1225, - "end": 1262, - "loc": { - "start": { - "line": 36, - "column": 9 - }, - "end": { - "line": 36, - "column": 46 - } - }, - "object": { - "type": "Identifier", - "start": 1225, - "end": 1233, - "loc": { - "start": { - "line": 36, - "column": 9 - }, - "end": { - "line": 36, - "column": 17 - }, - "identifierName": "extTypes" - }, - "name": "extTypes" - }, - "property": { - "type": "CallExpression", - "start": 1234, - "end": 1261, - "loc": { - "start": { - "line": 36, - "column": 18 - }, - "end": { - "line": 36, - "column": 45 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1234, - "end": 1259, - "loc": { - "start": { - "line": 36, - "column": 18 - }, - "end": { - "line": 36, - "column": 43 - } - }, - "object": { - "type": "Identifier", - "start": 1234, - "end": 1247, - "loc": { - "start": { - "line": 36, - "column": 18 - }, - "end": { - "line": 36, - "column": 31 - }, - "identifierName": "pathExtension" - }, - "name": "pathExtension" - }, - "property": { - "type": "Identifier", - "start": 1248, - "end": 1259, - "loc": { - "start": { - "line": 36, - "column": 32 - }, - "end": { - "line": 36, - "column": 43 - }, - "identifierName": "toLowerCase" - }, - "name": "toLowerCase" - }, - "computed": false - }, - "arguments": [] - }, - "computed": true - }, - "operator": "||", - "right": { - "type": "NullLiteral", - "start": 1266, - "end": 1270, - "loc": { - "start": { - "line": 36, - "column": 50 - }, - "end": { - "line": 36, - "column": 54 - } - } - } - } - } - ], - "directives": [] - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " get file mime type", - "start": 451, - "end": 472, - "loc": { - "start": { - "line": 16, - "column": 0 - }, - "end": { - "line": 16, - "column": 21 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " get filename from path", - "start": 1276, - "end": 1301, - "loc": { - "start": { - "line": 39, - "column": 0 - }, - "end": { - "line": 39, - "column": 25 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 1302, - "end": 1468, - "loc": { - "start": { - "line": 40, - "column": 0 - }, - "end": { - "line": 46, - "column": 2 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1308, - "end": 1467, - "loc": { - "start": { - "line": 40, - "column": 6 - }, - "end": { - "line": 46, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 1308, - "end": 1319, - "loc": { - "start": { - "line": 40, - "column": 6 - }, - "end": { - "line": 40, - "column": 17 - }, - "identifierName": "getFileName" - }, - "name": "getFileName", - "leadingComments": null - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 1322, - "end": 1467, - "loc": { - "start": { - "line": 40, - "column": 20 - }, - "end": { - "line": 46, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 1308, - "end": 1319, - "loc": { - "start": { - "line": 40, - "column": 6 - }, - "end": { - "line": 40, - "column": 17 - }, - "identifierName": "getFileName" - }, - "name": "getFileName", - "leadingComments": null - }, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1322, - "end": 1326, - "loc": { - "start": { - "line": 40, - "column": 20 - }, - "end": { - "line": 40, - "column": 24 - }, - "identifierName": "path" - }, - "name": "path" - } - ], - "body": { - "type": "BlockStatement", - "start": 1330, - "end": 1467, - "loc": { - "start": { - "line": 40, - "column": 28 - }, - "end": { - "line": 46, - "column": 1 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 1334, - "end": 1465, - "loc": { - "start": { - "line": 41, - "column": 2 - }, - "end": { - "line": 45, - "column": 3 - } - }, - "test": { - "type": "BinaryExpression", - "start": 1338, - "end": 1366, - "loc": { - "start": { - "line": 41, - "column": 6 - }, - "end": { - "line": 41, - "column": 34 - } - }, - "left": { - "type": "CallExpression", - "start": 1338, - "end": 1359, - "loc": { - "start": { - "line": 41, - "column": 6 - }, - "end": { - "line": 41, - "column": 27 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1338, - "end": 1354, - "loc": { - "start": { - "line": 41, - "column": 6 - }, - "end": { - "line": 41, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 1338, - "end": 1342, - "loc": { - "start": { - "line": 41, - "column": 6 - }, - "end": { - "line": 41, - "column": 10 - }, - "identifierName": "path" - }, - "name": "path" - }, - "property": { - "type": "Identifier", - "start": 1343, - "end": 1354, - "loc": { - "start": { - "line": 41, - "column": 11 - }, - "end": { - "line": 41, - "column": 22 - }, - "identifierName": "lastIndexOf" - }, - "name": "lastIndexOf" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 1355, - "end": 1358, - "loc": { - "start": { - "line": 41, - "column": 23 - }, - "end": { - "line": 41, - "column": 26 - } - }, - "extra": { - "rawValue": "/", - "raw": "'/'" - }, - "value": "/" - } - ] - }, - "operator": "!==", - "right": { - "type": "UnaryExpression", - "start": 1364, - "end": 1366, - "loc": { - "start": { - "line": 41, - "column": 32 - }, - "end": { - "line": 41, - "column": 34 - } - }, - "operator": "-", - "prefix": true, - "argument": { - "type": "NumericLiteral", - "start": 1365, - "end": 1366, - "loc": { - "start": { - "line": 41, - "column": 33 - }, - "end": { - "line": 41, - "column": 34 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "extra": { - "parenthesizedArgument": false - } - } - }, - "consequent": { - "type": "BlockStatement", - "start": 1368, - "end": 1437, - "loc": { - "start": { - "line": 41, - "column": 36 - }, - "end": { - "line": 43, - "column": 3 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 1374, - "end": 1433, - "loc": { - "start": { - "line": 42, - "column": 4 - }, - "end": { - "line": 42, - "column": 63 - } - }, - "argument": { - "type": "CallExpression", - "start": 1381, - "end": 1432, - "loc": { - "start": { - "line": 42, - "column": 11 - }, - "end": { - "line": 42, - "column": 62 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1381, - "end": 1423, - "loc": { - "start": { - "line": 42, - "column": 11 - }, - "end": { - "line": 42, - "column": 53 - } - }, - "object": { - "type": "CallExpression", - "start": 1381, - "end": 1415, - "loc": { - "start": { - "line": 42, - "column": 11 - }, - "end": { - "line": 42, - "column": 45 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1381, - "end": 1392, - "loc": { - "start": { - "line": 42, - "column": 11 - }, - "end": { - "line": 42, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 1381, - "end": 1385, - "loc": { - "start": { - "line": 42, - "column": 11 - }, - "end": { - "line": 42, - "column": 15 - }, - "identifierName": "path" - }, - "name": "path" - }, - "property": { - "type": "Identifier", - "start": 1386, - "end": 1392, - "loc": { - "start": { - "line": 42, - "column": 16 - }, - "end": { - "line": 42, - "column": 22 - }, - "identifierName": "substr" - }, - "name": "substr" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 1393, - "end": 1414, - "loc": { - "start": { - "line": 42, - "column": 23 - }, - "end": { - "line": 42, - "column": 44 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1393, - "end": 1409, - "loc": { - "start": { - "line": 42, - "column": 23 - }, - "end": { - "line": 42, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 1393, - "end": 1397, - "loc": { - "start": { - "line": 42, - "column": 23 - }, - "end": { - "line": 42, - "column": 27 - }, - "identifierName": "path" - }, - "name": "path" - }, - "property": { - "type": "Identifier", - "start": 1398, - "end": 1409, - "loc": { - "start": { - "line": 42, - "column": 28 - }, - "end": { - "line": 42, - "column": 39 - }, - "identifierName": "lastIndexOf" - }, - "name": "lastIndexOf" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 1410, - "end": 1413, - "loc": { - "start": { - "line": 42, - "column": 40 - }, - "end": { - "line": 42, - "column": 43 - } - }, - "extra": { - "rawValue": "/", - "raw": "'/'" - }, - "value": "/" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 1416, - "end": 1423, - "loc": { - "start": { - "line": 42, - "column": 46 - }, - "end": { - "line": 42, - "column": 53 - }, - "identifierName": "replace" - }, - "name": "replace" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 1424, - "end": 1427, - "loc": { - "start": { - "line": 42, - "column": 54 - }, - "end": { - "line": 42, - "column": 57 - } - }, - "extra": { - "rawValue": "/", - "raw": "'/'" - }, - "value": "/" - }, - { - "type": "StringLiteral", - "start": 1429, - "end": 1431, - "loc": { - "start": { - "line": 42, - "column": 59 - }, - "end": { - "line": 42, - "column": 61 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - ] - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 1443, - "end": 1465, - "loc": { - "start": { - "line": 43, - "column": 9 - }, - "end": { - "line": 45, - "column": 3 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 1449, - "end": 1461, - "loc": { - "start": { - "line": 44, - "column": 4 - }, - "end": { - "line": 44, - "column": 16 - } - }, - "argument": { - "type": "Identifier", - "start": 1456, - "end": 1460, - "loc": { - "start": { - "line": 44, - "column": 11 - }, - "end": { - "line": 44, - "column": 15 - }, - "identifierName": "path" - }, - "name": "path" - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " get filename from path", - "start": 1276, - "end": 1301, - "loc": { - "start": { - "line": 39, - "column": 0 - }, - "end": { - "line": 39, - "column": 25 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " generate randon string", - "start": 1470, - "end": 1495, - "loc": { - "start": { - "line": 48, - "column": 0 - }, - "end": { - "line": 48, - "column": 25 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 1496, - "end": 1723, - "loc": { - "start": { - "line": 49, - "column": 0 - }, - "end": { - "line": 56, - "column": 2 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1502, - "end": 1722, - "loc": { - "start": { - "line": 49, - "column": 6 - }, - "end": { - "line": 56, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 1502, - "end": 1512, - "loc": { - "start": { - "line": 49, - "column": 6 - }, - "end": { - "line": 49, - "column": 16 - }, - "identifierName": "randString" - }, - "name": "randString", - "leadingComments": null - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 1515, - "end": 1722, - "loc": { - "start": { - "line": 49, - "column": 19 - }, - "end": { - "line": 56, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 1502, - "end": 1512, - "loc": { - "start": { - "line": 49, - "column": 6 - }, - "end": { - "line": 49, - "column": 16 - }, - "identifierName": "randString" - }, - "name": "randString", - "leadingComments": null - }, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1515, - "end": 1516, - "loc": { - "start": { - "line": 49, - "column": 19 - }, - "end": { - "line": 49, - "column": 20 - }, - "identifierName": "x" - }, - "name": "x" - } - ], - "body": { - "type": "BlockStatement", - "start": 1520, - "end": 1722, - "loc": { - "start": { - "line": 49, - "column": 24 - }, - "end": { - "line": 56, - "column": 1 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 1524, - "end": 1535, - "loc": { - "start": { - "line": 50, - "column": 2 - }, - "end": { - "line": 50, - "column": 13 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1528, - "end": 1534, - "loc": { - "start": { - "line": 50, - "column": 6 - }, - "end": { - "line": 50, - "column": 12 - } - }, - "id": { - "type": "Identifier", - "start": 1528, - "end": 1529, - "loc": { - "start": { - "line": 50, - "column": 6 - }, - "end": { - "line": 50, - "column": 7 - }, - "identifierName": "s" - }, - "name": "s" - }, - "init": { - "type": "StringLiteral", - "start": 1532, - "end": 1534, - "loc": { - "start": { - "line": 50, - "column": 10 - }, - "end": { - "line": 50, - "column": 12 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - } - ], - "kind": "let" - }, - { - "type": "WhileStatement", - "start": 1538, - "end": 1708, - "loc": { - "start": { - "line": 51, - "column": 2 - }, - "end": { - "line": 54, - "column": 3 - } - }, - "test": { - "type": "LogicalExpression", - "start": 1545, - "end": 1566, - "loc": { - "start": { - "line": 51, - "column": 9 - }, - "end": { - "line": 51, - "column": 30 - } - }, - "left": { - "type": "BinaryExpression", - "start": 1545, - "end": 1557, - "loc": { - "start": { - "line": 51, - "column": 9 - }, - "end": { - "line": 51, - "column": 21 - } - }, - "left": { - "type": "MemberExpression", - "start": 1545, - "end": 1553, - "loc": { - "start": { - "line": 51, - "column": 9 - }, - "end": { - "line": 51, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 1545, - "end": 1546, - "loc": { - "start": { - "line": 51, - "column": 9 - }, - "end": { - "line": 51, - "column": 10 - }, - "identifierName": "s" - }, - "name": "s" - }, - "property": { - "type": "Identifier", - "start": 1547, - "end": 1553, - "loc": { - "start": { - "line": 51, - "column": 11 - }, - "end": { - "line": 51, - "column": 17 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - }, - "operator": "<", - "right": { - "type": "Identifier", - "start": 1556, - "end": 1557, - "loc": { - "start": { - "line": 51, - "column": 20 - }, - "end": { - "line": 51, - "column": 21 - }, - "identifierName": "x" - }, - "name": "x" - } - }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 1561, - "end": 1566, - "loc": { - "start": { - "line": 51, - "column": 25 - }, - "end": { - "line": 51, - "column": 30 - } - }, - "left": { - "type": "Identifier", - "start": 1561, - "end": 1562, - "loc": { - "start": { - "line": 51, - "column": 25 - }, - "end": { - "line": 51, - "column": 26 - }, - "identifierName": "x" - }, - "name": "x" - }, - "operator": ">", - "right": { - "type": "NumericLiteral", - "start": 1565, - "end": 1566, - "loc": { - "start": { - "line": 51, - "column": 29 - }, - "end": { - "line": 51, - "column": 30 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - }, - "body": { - "type": "BlockStatement", - "start": 1568, - "end": 1708, - "loc": { - "start": { - "line": 51, - "column": 32 - }, - "end": { - "line": 54, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 1574, - "end": 1598, - "loc": { - "start": { - "line": 52, - "column": 4 - }, - "end": { - "line": 52, - "column": 28 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1580, - "end": 1597, - "loc": { - "start": { - "line": 52, - "column": 10 - }, - "end": { - "line": 52, - "column": 27 - } - }, - "id": { - "type": "Identifier", - "start": 1580, - "end": 1581, - "loc": { - "start": { - "line": 52, - "column": 10 - }, - "end": { - "line": 52, - "column": 11 - }, - "identifierName": "r" - }, - "name": "r" - }, - "init": { - "type": "CallExpression", - "start": 1584, - "end": 1597, - "loc": { - "start": { - "line": 52, - "column": 14 - }, - "end": { - "line": 52, - "column": 27 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1584, - "end": 1595, - "loc": { - "start": { - "line": 52, - "column": 14 - }, - "end": { - "line": 52, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 1584, - "end": 1588, - "loc": { - "start": { - "line": 52, - "column": 14 - }, - "end": { - "line": 52, - "column": 18 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 1589, - "end": 1595, - "loc": { - "start": { - "line": 52, - "column": 19 - }, - "end": { - "line": 52, - "column": 25 - }, - "identifierName": "random" - }, - "name": "random" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 1603, - "end": 1704, - "loc": { - "start": { - "line": 53, - "column": 4 - }, - "end": { - "line": 53, - "column": 105 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 1603, - "end": 1703, - "loc": { - "start": { - "line": 53, - "column": 4 - }, - "end": { - "line": 53, - "column": 104 - } - }, - "operator": "+=", - "left": { - "type": "Identifier", - "start": 1603, - "end": 1604, - "loc": { - "start": { - "line": 53, - "column": 4 - }, - "end": { - "line": 53, - "column": 5 - }, - "identifierName": "s" - }, - "name": "s" - }, - "right": { - "type": "ConditionalExpression", - "start": 1609, - "end": 1702, - "loc": { - "start": { - "line": 53, - "column": 10 - }, - "end": { - "line": 53, - "column": 103 - } - }, - "test": { - "type": "BinaryExpression", - "start": 1609, - "end": 1616, - "loc": { - "start": { - "line": 53, - "column": 10 - }, - "end": { - "line": 53, - "column": 17 - } - }, - "left": { - "type": "Identifier", - "start": 1609, - "end": 1610, - "loc": { - "start": { - "line": 53, - "column": 10 - }, - "end": { - "line": 53, - "column": 11 - }, - "identifierName": "r" - }, - "name": "r" - }, - "operator": "<", - "right": { - "type": "NumericLiteral", - "start": 1613, - "end": 1616, - "loc": { - "start": { - "line": 53, - "column": 14 - }, - "end": { - "line": 53, - "column": 17 - } - }, - "extra": { - "rawValue": 0.1, - "raw": "0.1" - }, - "value": 0.1 - } - }, - "consequent": { - "type": "CallExpression", - "start": 1619, - "end": 1638, - "loc": { - "start": { - "line": 53, - "column": 20 - }, - "end": { - "line": 53, - "column": 39 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1619, - "end": 1629, - "loc": { - "start": { - "line": 53, - "column": 20 - }, - "end": { - "line": 53, - "column": 30 - } - }, - "object": { - "type": "Identifier", - "start": 1619, - "end": 1623, - "loc": { - "start": { - "line": 53, - "column": 20 - }, - "end": { - "line": 53, - "column": 24 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 1624, - "end": 1629, - "loc": { - "start": { - "line": 53, - "column": 25 - }, - "end": { - "line": 53, - "column": 30 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 1630, - "end": 1637, - "loc": { - "start": { - "line": 53, - "column": 31 - }, - "end": { - "line": 53, - "column": 38 - } - }, - "left": { - "type": "Identifier", - "start": 1630, - "end": 1631, - "loc": { - "start": { - "line": 53, - "column": 31 - }, - "end": { - "line": 53, - "column": 32 - }, - "identifierName": "r" - }, - "name": "r" - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 1634, - "end": 1637, - "loc": { - "start": { - "line": 53, - "column": 35 - }, - "end": { - "line": 53, - "column": 38 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - }, - "alternate": { - "type": "CallExpression", - "start": 1641, - "end": 1702, - "loc": { - "start": { - "line": 53, - "column": 42 - }, - "end": { - "line": 53, - "column": 103 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1641, - "end": 1660, - "loc": { - "start": { - "line": 53, - "column": 42 - }, - "end": { - "line": 53, - "column": 61 - } - }, - "object": { - "type": "Identifier", - "start": 1641, - "end": 1647, - "loc": { - "start": { - "line": 53, - "column": 42 - }, - "end": { - "line": 53, - "column": 48 - }, - "identifierName": "String" - }, - "name": "String" - }, - "property": { - "type": "Identifier", - "start": 1648, - "end": 1660, - "loc": { - "start": { - "line": 53, - "column": 49 - }, - "end": { - "line": 53, - "column": 61 - }, - "identifierName": "fromCharCode" - }, - "name": "fromCharCode" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 1661, - "end": 1701, - "loc": { - "start": { - "line": 53, - "column": 62 - }, - "end": { - "line": 53, - "column": 102 - } - }, - "left": { - "type": "CallExpression", - "start": 1661, - "end": 1679, - "loc": { - "start": { - "line": 53, - "column": 62 - }, - "end": { - "line": 53, - "column": 80 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1661, - "end": 1671, - "loc": { - "start": { - "line": 53, - "column": 62 - }, - "end": { - "line": 53, - "column": 72 - } - }, - "object": { - "type": "Identifier", - "start": 1661, - "end": 1665, - "loc": { - "start": { - "line": 53, - "column": 62 - }, - "end": { - "line": 53, - "column": 66 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 1666, - "end": 1671, - "loc": { - "start": { - "line": 53, - "column": 67 - }, - "end": { - "line": 53, - "column": 72 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 1672, - "end": 1678, - "loc": { - "start": { - "line": 53, - "column": 73 - }, - "end": { - "line": 53, - "column": 79 - } - }, - "left": { - "type": "Identifier", - "start": 1672, - "end": 1673, - "loc": { - "start": { - "line": 53, - "column": 73 - }, - "end": { - "line": 53, - "column": 74 - }, - "identifierName": "r" - }, - "name": "r" - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 1676, - "end": 1678, - "loc": { - "start": { - "line": 53, - "column": 77 - }, - "end": { - "line": 53, - "column": 79 - } - }, - "extra": { - "rawValue": 26, - "raw": "26" - }, - "value": 26 - } - } - ] - }, - "operator": "+", - "right": { - "type": "ConditionalExpression", - "start": 1683, - "end": 1700, - "loc": { - "start": { - "line": 53, - "column": 84 - }, - "end": { - "line": 53, - "column": 101 - } - }, - "test": { - "type": "BinaryExpression", - "start": 1683, - "end": 1690, - "loc": { - "start": { - "line": 53, - "column": 84 - }, - "end": { - "line": 53, - "column": 91 - } - }, - "left": { - "type": "Identifier", - "start": 1683, - "end": 1684, - "loc": { - "start": { - "line": 53, - "column": 84 - }, - "end": { - "line": 53, - "column": 85 - }, - "identifierName": "r" - }, - "name": "r" - }, - "operator": ">", - "right": { - "type": "NumericLiteral", - "start": 1687, - "end": 1690, - "loc": { - "start": { - "line": 53, - "column": 88 - }, - "end": { - "line": 53, - "column": 91 - } - }, - "extra": { - "rawValue": 0.5, - "raw": "0.5" - }, - "value": 0.5 - } - }, - "consequent": { - "type": "NumericLiteral", - "start": 1693, - "end": 1695, - "loc": { - "start": { - "line": 53, - "column": 94 - }, - "end": { - "line": 53, - "column": 96 - } - }, - "extra": { - "rawValue": 97, - "raw": "97" - }, - "value": 97 - }, - "alternate": { - "type": "NumericLiteral", - "start": 1698, - "end": 1700, - "loc": { - "start": { - "line": 53, - "column": 99 - }, - "end": { - "line": 53, - "column": 101 - } - }, - "extra": { - "rawValue": 65, - "raw": "65" - }, - "value": 65 - }, - "extra": { - "parenthesized": true, - "parenStart": 1682 - } - } - } - ] - }, - "extra": { - "parenthesized": true, - "parenStart": 1608 - } - } - } - } - ], - "directives": [] - } - }, - { - "type": "ReturnStatement", - "start": 1711, - "end": 1720, - "loc": { - "start": { - "line": 55, - "column": 2 - }, - "end": { - "line": 55, - "column": 11 - } - }, - "argument": { - "type": "Identifier", - "start": 1718, - "end": 1719, - "loc": { - "start": { - "line": 55, - "column": 9 - }, - "end": { - "line": 55, - "column": 10 - }, - "identifierName": "s" - }, - "name": "s" - } - } - ], - "directives": [] - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " generate randon string", - "start": 1470, - "end": 1495, - "loc": { - "start": { - "line": 48, - "column": 0 - }, - "end": { - "line": 48, - "column": 25 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document methods\n ", - "start": 1725, - "end": 1752, - "loc": { - "start": { - "line": 58, - "column": 0 - }, - "end": { - "line": 60, - "column": 3 - } - } - } - ] - }, - { - "type": "Identifier", - "start": 1753, - "end": 31922, - "loc": { - "start": { - "line": 61, - "column": 0 - }, - "end": { - "line": 881, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 1759, - "end": 1767, - "loc": { - "start": { - "line": 61, - "column": 6 - }, - "end": { - "line": 61, - "column": 14 - }, - "identifierName": "Document" - }, - "name": "Document", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 1768, - "end": 31922, - "loc": { - "start": { - "line": 61, - "column": 15 - }, - "end": { - "line": 881, - "column": 1 - } - }, - "body": [ - { - "type": "ClassMethod", - "start": 2489, - "end": 3706, - "loc": { - "start": { - "line": 82, - "column": 2 - }, - "end": { - "line": 121, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2496, - "end": 2502, - "loc": { - "start": { - "line": 82, - "column": 9 - }, - "end": { - "line": 82, - "column": 15 - }, - "identifierName": "create" - }, - "name": "create" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 2504, - "end": 2523, - "loc": { - "start": { - "line": 82, - "column": 17 - }, - "end": { - "line": 82, - "column": 36 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2506, - "end": 2514, - "loc": { - "start": { - "line": 82, - "column": 19 - }, - "end": { - "line": 82, - "column": 27 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2506, - "end": 2514, - "loc": { - "start": { - "line": 82, - "column": 19 - }, - "end": { - "line": 82, - "column": 27 - }, - "identifierName": "filepath" - }, - "name": "filepath" - }, - "value": { - "type": "Identifier", - "start": 2506, - "end": 2514, - "loc": { - "start": { - "line": 82, - "column": 19 - }, - "end": { - "line": 82, - "column": 27 - }, - "identifierName": "filepath" - }, - "name": "filepath" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 2516, - "end": 2521, - "loc": { - "start": { - "line": 82, - "column": 29 - }, - "end": { - "line": 82, - "column": 34 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2516, - "end": 2521, - "loc": { - "start": { - "line": 82, - "column": 29 - }, - "end": { - "line": 82, - "column": 34 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 2516, - "end": 2521, - "loc": { - "start": { - "line": 82, - "column": 29 - }, - "end": { - "line": 82, - "column": 34 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 2525, - "end": 2533, - "loc": { - "start": { - "line": 82, - "column": 38 - }, - "end": { - "line": 82, - "column": 46 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 2535, - "end": 3706, - "loc": { - "start": { - "line": 82, - "column": 48 - }, - "end": { - "line": 121, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 2541, - "end": 2576, - "loc": { - "start": { - "line": 83, - "column": 4 - }, - "end": { - "line": 83, - "column": 39 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2547, - "end": 2575, - "loc": { - "start": { - "line": 83, - "column": 10 - }, - "end": { - "line": 83, - "column": 38 - } - }, - "id": { - "type": "Identifier", - "start": 2547, - "end": 2558, - "loc": { - "start": { - "line": 83, - "column": 10 - }, - "end": { - "line": 83, - "column": 21 - }, - "identifierName": "boundaryKey" - }, - "name": "boundaryKey" - }, - "init": { - "type": "CallExpression", - "start": 2561, - "end": 2575, - "loc": { - "start": { - "line": 83, - "column": 24 - }, - "end": { - "line": 83, - "column": 38 - } - }, - "callee": { - "type": "Identifier", - "start": 2561, - "end": 2571, - "loc": { - "start": { - "line": 83, - "column": 24 - }, - "end": { - "line": 83, - "column": 34 - }, - "identifierName": "randString" - }, - "name": "randString" - }, - "arguments": [ - { - "type": "NumericLiteral", - "start": 2572, - "end": 2574, - "loc": { - "start": { - "line": 83, - "column": 35 - }, - "end": { - "line": 83, - "column": 37 - } - }, - "extra": { - "rawValue": 30, - "raw": "30" - }, - "value": 30 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 2581, - "end": 2620, - "loc": { - "start": { - "line": 84, - "column": 4 - }, - "end": { - "line": 84, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2587, - "end": 2619, - "loc": { - "start": { - "line": 84, - "column": 10 - }, - "end": { - "line": 84, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 2587, - "end": 2595, - "loc": { - "start": { - "line": 84, - "column": 10 - }, - "end": { - "line": 84, - "column": 18 - }, - "identifierName": "filename" - }, - "name": "filename" - }, - "init": { - "type": "CallExpression", - "start": 2598, - "end": 2619, - "loc": { - "start": { - "line": 84, - "column": 21 - }, - "end": { - "line": 84, - "column": 42 - } - }, - "callee": { - "type": "Identifier", - "start": 2598, - "end": 2609, - "loc": { - "start": { - "line": 84, - "column": 21 - }, - "end": { - "line": 84, - "column": 32 - }, - "identifierName": "getFileName" - }, - "name": "getFileName" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2610, - "end": 2618, - "loc": { - "start": { - "line": 84, - "column": 33 - }, - "end": { - "line": 84, - "column": 41 - }, - "identifierName": "filepath" - }, - "name": "filepath" - } - ] - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " check mimetype", - "start": 2626, - "end": 2643, - "loc": { - "start": { - "line": 86, - "column": 4 - }, - "end": { - "line": 86, - "column": 21 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 2648, - "end": 2687, - "loc": { - "start": { - "line": 87, - "column": 4 - }, - "end": { - "line": 87, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2654, - "end": 2686, - "loc": { - "start": { - "line": 87, - "column": 10 - }, - "end": { - "line": 87, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 2654, - "end": 2662, - "loc": { - "start": { - "line": 87, - "column": 10 - }, - "end": { - "line": 87, - "column": 18 - }, - "identifierName": "mimeType" - }, - "name": "mimeType", - "leadingComments": null - }, - "init": { - "type": "CallExpression", - "start": 2665, - "end": 2686, - "loc": { - "start": { - "line": 87, - "column": 21 - }, - "end": { - "line": 87, - "column": 42 - } - }, - "callee": { - "type": "Identifier", - "start": 2665, - "end": 2676, - "loc": { - "start": { - "line": 87, - "column": 21 - }, - "end": { - "line": 87, - "column": 32 - }, - "identifierName": "getMimeType" - }, - "name": "getMimeType" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2677, - "end": 2685, - "loc": { - "start": { - "line": 87, - "column": 33 - }, - "end": { - "line": 87, - "column": 41 - }, - "identifierName": "filepath" - }, - "name": "filepath" - } - ] - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " check mimetype", - "start": 2626, - "end": 2643, - "loc": { - "start": { - "line": 86, - "column": 4 - }, - "end": { - "line": 86, - "column": 21 - } - } - } - ] - }, - { - "type": "IfStatement", - "start": 2693, - "end": 2776, - "loc": { - "start": { - "line": 89, - "column": 4 - }, - "end": { - "line": 92, - "column": 5 - } - }, - "test": { - "type": "UnaryExpression", - "start": 2697, - "end": 2706, - "loc": { - "start": { - "line": 89, - "column": 8 - }, - "end": { - "line": 89, - "column": 17 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 2698, - "end": 2706, - "loc": { - "start": { - "line": 89, - "column": 9 - }, - "end": { - "line": 89, - "column": 17 - }, - "identifierName": "mimeType" - }, - "name": "mimeType" - }, - "extra": { - "parenthesizedArgument": false - } - }, - "consequent": { - "type": "BlockStatement", - "start": 2708, - "end": 2776, - "loc": { - "start": { - "line": 89, - "column": 19 - }, - "end": { - "line": 92, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2716, - "end": 2756, - "loc": { - "start": { - "line": 90, - "column": 6 - }, - "end": { - "line": 90, - "column": 46 - } - }, - "expression": { - "type": "CallExpression", - "start": 2716, - "end": 2755, - "loc": { - "start": { - "line": 90, - "column": 6 - }, - "end": { - "line": 90, - "column": 45 - } - }, - "callee": { - "type": "Identifier", - "start": 2716, - "end": 2724, - "loc": { - "start": { - "line": 90, - "column": 6 - }, - "end": { - "line": 90, - "column": 14 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2725, - "end": 2754, - "loc": { - "start": { - "line": 90, - "column": 15 - }, - "end": { - "line": 90, - "column": 44 - } - }, - "extra": { - "rawValue": "File type isn't supported.", - "raw": "'File type isn\\'t supported.'" - }, - "value": "File type isn't supported." - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 2763, - "end": 2770, - "loc": { - "start": { - "line": 91, - "column": 6 - }, - "end": { - "line": 91, - "column": 13 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "VariableDeclaration", - "start": 2782, - "end": 2845, - "loc": { - "start": { - "line": 94, - "column": 4 - }, - "end": { - "line": 94, - "column": 67 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2788, - "end": 2844, - "loc": { - "start": { - "line": 94, - "column": 10 - }, - "end": { - "line": 94, - "column": 66 - } - }, - "id": { - "type": "Identifier", - "start": 2788, - "end": 2792, - "loc": { - "start": { - "line": 94, - "column": 10 - }, - "end": { - "line": 94, - "column": 14 - }, - "identifierName": "file" - }, - "name": "file" - }, - "init": { - "type": "CallExpression", - "start": 2795, - "end": 2844, - "loc": { - "start": { - "line": 94, - "column": 17 - }, - "end": { - "line": 94, - "column": 66 - } - }, - "callee": { - "type": "Identifier", - "start": 2795, - "end": 2811, - "loc": { - "start": { - "line": 94, - "column": 17 - }, - "end": { - "line": 94, - "column": 33 - }, - "identifierName": "buildFileRequest" - }, - "name": "buildFileRequest" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2812, - "end": 2823, - "loc": { - "start": { - "line": 94, - "column": 34 - }, - "end": { - "line": 94, - "column": 45 - }, - "identifierName": "boundaryKey" - }, - "name": "boundaryKey" - }, - { - "type": "Identifier", - "start": 2825, - "end": 2833, - "loc": { - "start": { - "line": 94, - "column": 47 - }, - "end": { - "line": 94, - "column": 55 - }, - "identifierName": "mimeType" - }, - "name": "mimeType" - }, - { - "type": "Identifier", - "start": 2835, - "end": 2843, - "loc": { - "start": { - "line": 94, - "column": 57 - }, - "end": { - "line": 94, - "column": 65 - }, - "identifierName": "filename" - }, - "name": "filename" - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 2850, - "end": 2885, - "loc": { - "start": { - "line": 95, - "column": 4 - }, - "end": { - "line": 95, - "column": 39 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2856, - "end": 2884, - "loc": { - "start": { - "line": 95, - "column": 10 - }, - "end": { - "line": 95, - "column": 38 - } - }, - "id": { - "type": "Identifier", - "start": 2856, - "end": 2860, - "loc": { - "start": { - "line": 95, - "column": 10 - }, - "end": { - "line": 95, - "column": 14 - }, - "identifierName": "stat" - }, - "name": "stat" - }, - "init": { - "type": "CallExpression", - "start": 2863, - "end": 2884, - "loc": { - "start": { - "line": 95, - "column": 17 - }, - "end": { - "line": 95, - "column": 38 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2863, - "end": 2874, - "loc": { - "start": { - "line": 95, - "column": 17 - }, - "end": { - "line": 95, - "column": 28 - } - }, - "object": { - "type": "Identifier", - "start": 2863, - "end": 2865, - "loc": { - "start": { - "line": 95, - "column": 17 - }, - "end": { - "line": 95, - "column": 19 - }, - "identifierName": "fs" - }, - "name": "fs" - }, - "property": { - "type": "Identifier", - "start": 2866, - "end": 2874, - "loc": { - "start": { - "line": 95, - "column": 20 - }, - "end": { - "line": 95, - "column": 28 - }, - "identifierName": "statSync" - }, - "name": "statSync" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2875, - "end": 2883, - "loc": { - "start": { - "line": 95, - "column": 29 - }, - "end": { - "line": 95, - "column": 37 - }, - "identifierName": "filepath" - }, - "name": "filepath" - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 2890, - "end": 2962, - "loc": { - "start": { - "line": 96, - "column": 4 - }, - "end": { - "line": 96, - "column": 76 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2896, - "end": 2961, - "loc": { - "start": { - "line": 96, - "column": 10 - }, - "end": { - "line": 96, - "column": 75 - } - }, - "id": { - "type": "Identifier", - "start": 2896, - "end": 2902, - "loc": { - "start": { - "line": 96, - "column": 10 - }, - "end": { - "line": 96, - "column": 16 - }, - "identifierName": "reader" - }, - "name": "reader" - }, - "init": { - "type": "CallExpression", - "start": 2905, - "end": 2961, - "loc": { - "start": { - "line": 96, - "column": 19 - }, - "end": { - "line": 96, - "column": 75 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2905, - "end": 2924, - "loc": { - "start": { - "line": 96, - "column": 19 - }, - "end": { - "line": 96, - "column": 38 - } - }, - "object": { - "type": "Identifier", - "start": 2905, - "end": 2907, - "loc": { - "start": { - "line": 96, - "column": 19 - }, - "end": { - "line": 96, - "column": 21 - }, - "identifierName": "fs" - }, - "name": "fs" - }, - "property": { - "type": "Identifier", - "start": 2908, - "end": 2924, - "loc": { - "start": { - "line": 96, - "column": 22 - }, - "end": { - "line": 96, - "column": 38 - }, - "identifierName": "createReadStream" - }, - "name": "createReadStream" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2925, - "end": 2933, - "loc": { - "start": { - "line": 96, - "column": 39 - }, - "end": { - "line": 96, - "column": 47 - }, - "identifierName": "filepath" - }, - "name": "filepath" - }, - { - "type": "ObjectExpression", - "start": 2935, - "end": 2960, - "loc": { - "start": { - "line": 96, - "column": 49 - }, - "end": { - "line": 96, - "column": 74 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2937, - "end": 2958, - "loc": { - "start": { - "line": 96, - "column": 51 - }, - "end": { - "line": 96, - "column": 72 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2937, - "end": 2947, - "loc": { - "start": { - "line": 96, - "column": 51 - }, - "end": { - "line": 96, - "column": 61 - }, - "identifierName": "bufferSize" - }, - "name": "bufferSize" - }, - "value": { - "type": "BinaryExpression", - "start": 2949, - "end": 2958, - "loc": { - "start": { - "line": 96, - "column": 63 - }, - "end": { - "line": 96, - "column": 72 - } - }, - "left": { - "type": "NumericLiteral", - "start": 2949, - "end": 2951, - "loc": { - "start": { - "line": 96, - "column": 63 - }, - "end": { - "line": 96, - "column": 65 - } - }, - "extra": { - "rawValue": 64, - "raw": "64" - }, - "value": 64 - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 2954, - "end": 2958, - "loc": { - "start": { - "line": 96, - "column": 68 - }, - "end": { - "line": 96, - "column": 72 - } - }, - "extra": { - "rawValue": 1024, - "raw": "1024" - }, - "value": 1024 - } - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 2967, - "end": 3028, - "loc": { - "start": { - "line": 97, - "column": 4 - }, - "end": { - "line": 97, - "column": 65 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2973, - "end": 3027, - "loc": { - "start": { - "line": 97, - "column": 10 - }, - "end": { - "line": 97, - "column": 64 - } - }, - "id": { - "type": "Identifier", - "start": 2973, - "end": 2984, - "loc": { - "start": { - "line": 97, - "column": 10 - }, - "end": { - "line": 97, - "column": 21 - }, - "identifierName": "closingLine" - }, - "name": "closingLine" - }, - "init": { - "type": "TemplateLiteral", - "start": 2987, - "end": 3027, - "loc": { - "start": { - "line": 97, - "column": 24 - }, - "end": { - "line": 97, - "column": 64 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 3012, - "end": 3023, - "loc": { - "start": { - "line": 97, - "column": 49 - }, - "end": { - "line": 97, - "column": 60 - }, - "identifierName": "boundaryKey" - }, - "name": "boundaryKey" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 2988, - "end": 3010, - "loc": { - "start": { - "line": 97, - "column": 25 - }, - "end": { - "line": 97, - "column": 47 - } - }, - "value": { - "raw": "\\r\\n------FormBoundary", - "cooked": "\r\n------FormBoundary" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 3024, - "end": 3026, - "loc": { - "start": { - "line": 97, - "column": 61 - }, - "end": { - "line": 97, - "column": 63 - } - }, - "value": { - "raw": "--", - "cooked": "--" - }, - "tail": true - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 3033, - "end": 3503, - "loc": { - "start": { - "line": 98, - "column": 4 - }, - "end": { - "line": 111, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3039, - "end": 3502, - "loc": { - "start": { - "line": 98, - "column": 10 - }, - "end": { - "line": 111, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 3039, - "end": 3042, - "loc": { - "start": { - "line": 98, - "column": 10 - }, - "end": { - "line": 98, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 3045, - "end": 3502, - "loc": { - "start": { - "line": 98, - "column": 16 - }, - "end": { - "line": 111, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3045, - "end": 3469, - "loc": { - "start": { - "line": 98, - "column": 16 - }, - "end": { - "line": 111, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 3045, - "end": 3459, - "loc": { - "start": { - "line": 98, - "column": 16 - }, - "end": { - "line": 110, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3045, - "end": 3065, - "loc": { - "start": { - "line": 98, - "column": 16 - }, - "end": { - "line": 99, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 3045, - "end": 3050, - "loc": { - "start": { - "line": 98, - "column": 16 - }, - "end": { - "line": 98, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 3058, - "end": 3065, - "loc": { - "start": { - "line": 99, - "column": 7 - }, - "end": { - "line": 99, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 3066, - "end": 3431, - "loc": { - "start": { - "line": 99, - "column": 15 - }, - "end": { - "line": 110, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 3066, - "end": 3085, - "loc": { - "start": { - "line": 99, - "column": 15 - }, - "end": { - "line": 99, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 3086, - "end": 3430, - "loc": { - "start": { - "line": 99, - "column": 35 - }, - "end": { - "line": 110, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3096, - "end": 3110, - "loc": { - "start": { - "line": 100, - "column": 8 - }, - "end": { - "line": 100, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3096, - "end": 3102, - "loc": { - "start": { - "line": 100, - "column": 8 - }, - "end": { - "line": 100, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 3104, - "end": 3110, - "loc": { - "start": { - "line": 100, - "column": 16 - }, - "end": { - "line": 100, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 3120, - "end": 3137, - "loc": { - "start": { - "line": 101, - "column": 8 - }, - "end": { - "line": 101, - "column": 25 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3120, - "end": 3124, - "loc": { - "start": { - "line": 101, - "column": 8 - }, - "end": { - "line": 101, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 3126, - "end": 3137, - "loc": { - "start": { - "line": 101, - "column": 14 - }, - "end": { - "line": 101, - "column": 25 - } - }, - "extra": { - "rawValue": "/document", - "raw": "'/document'" - }, - "value": "/document" - } - }, - { - "type": "ObjectProperty", - "start": 3147, - "end": 3216, - "loc": { - "start": { - "line": 102, - "column": 8 - }, - "end": { - "line": 105, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3147, - "end": 3160, - "loc": { - "start": { - "line": 102, - "column": 8 - }, - "end": { - "line": 102, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 3162, - "end": 3216, - "loc": { - "start": { - "line": 102, - "column": 23 - }, - "end": { - "line": 105, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3174, - "end": 3188, - "loc": { - "start": { - "line": 103, - "column": 10 - }, - "end": { - "line": 103, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3174, - "end": 3178, - "loc": { - "start": { - "line": 103, - "column": 10 - }, - "end": { - "line": 103, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 3180, - "end": 3188, - "loc": { - "start": { - "line": 103, - "column": 16 - }, - "end": { - "line": 103, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 3200, - "end": 3205, - "loc": { - "start": { - "line": 104, - "column": 10 - }, - "end": { - "line": 104, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3200, - "end": 3205, - "loc": { - "start": { - "line": 104, - "column": 10 - }, - "end": { - "line": 104, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 3200, - "end": 3205, - "loc": { - "start": { - "line": 104, - "column": 10 - }, - "end": { - "line": 104, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 3226, - "end": 3421, - "loc": { - "start": { - "line": 106, - "column": 8 - }, - "end": { - "line": 109, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3226, - "end": 3233, - "loc": { - "start": { - "line": 106, - "column": 8 - }, - "end": { - "line": 106, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 3235, - "end": 3421, - "loc": { - "start": { - "line": 106, - "column": 17 - }, - "end": { - "line": 109, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3247, - "end": 3325, - "loc": { - "start": { - "line": 107, - "column": 10 - }, - "end": { - "line": 107, - "column": 88 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 3247, - "end": 3261, - "loc": { - "start": { - "line": 107, - "column": 10 - }, - "end": { - "line": 107, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "TemplateLiteral", - "start": 3263, - "end": 3325, - "loc": { - "start": { - "line": 107, - "column": 26 - }, - "end": { - "line": 107, - "column": 88 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 3312, - "end": 3323, - "loc": { - "start": { - "line": 107, - "column": 75 - }, - "end": { - "line": 107, - "column": 86 - }, - "identifierName": "boundaryKey" - }, - "name": "boundaryKey" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 3264, - "end": 3310, - "loc": { - "start": { - "line": 107, - "column": 27 - }, - "end": { - "line": 107, - "column": 73 - } - }, - "value": { - "raw": "multipart/form-data; boundary=----FormBoundary", - "cooked": "multipart/form-data; boundary=----FormBoundary" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 3324, - "end": 3324, - "loc": { - "start": { - "line": 107, - "column": 87 - }, - "end": { - "line": 107, - "column": 87 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 3337, - "end": 3410, - "loc": { - "start": { - "line": 108, - "column": 10 - }, - "end": { - "line": 108, - "column": 83 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 3337, - "end": 3353, - "loc": { - "start": { - "line": 108, - "column": 10 - }, - "end": { - "line": 108, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "BinaryExpression", - "start": 3355, - "end": 3410, - "loc": { - "start": { - "line": 108, - "column": 28 - }, - "end": { - "line": 108, - "column": 83 - } - }, - "left": { - "type": "BinaryExpression", - "start": 3355, - "end": 3389, - "loc": { - "start": { - "line": 108, - "column": 28 - }, - "end": { - "line": 108, - "column": 62 - } - }, - "left": { - "type": "MemberExpression", - "start": 3355, - "end": 3364, - "loc": { - "start": { - "line": 108, - "column": 28 - }, - "end": { - "line": 108, - "column": 37 - } - }, - "object": { - "type": "Identifier", - "start": 3355, - "end": 3359, - "loc": { - "start": { - "line": 108, - "column": 28 - }, - "end": { - "line": 108, - "column": 32 - }, - "identifierName": "stat" - }, - "name": "stat" - }, - "property": { - "type": "Identifier", - "start": 3360, - "end": 3364, - "loc": { - "start": { - "line": 108, - "column": 33 - }, - "end": { - "line": 108, - "column": 37 - }, - "identifierName": "size" - }, - "name": "size" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 3367, - "end": 3389, - "loc": { - "start": { - "line": 108, - "column": 40 - }, - "end": { - "line": 108, - "column": 62 - } - }, - "object": { - "type": "CallExpression", - "start": 3367, - "end": 3382, - "loc": { - "start": { - "line": 108, - "column": 40 - }, - "end": { - "line": 108, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3367, - "end": 3380, - "loc": { - "start": { - "line": 108, - "column": 40 - }, - "end": { - "line": 108, - "column": 53 - } - }, - "object": { - "type": "Identifier", - "start": 3367, - "end": 3371, - "loc": { - "start": { - "line": 108, - "column": 40 - }, - "end": { - "line": 108, - "column": 44 - }, - "identifierName": "file" - }, - "name": "file" - }, - "property": { - "type": "Identifier", - "start": 3372, - "end": 3380, - "loc": { - "start": { - "line": 108, - "column": 45 - }, - "end": { - "line": 108, - "column": 53 - }, - "identifierName": "toString" - }, - "name": "toString" - }, - "computed": false - }, - "arguments": [] - }, - "property": { - "type": "Identifier", - "start": 3383, - "end": 3389, - "loc": { - "start": { - "line": 108, - "column": 56 - }, - "end": { - "line": 108, - "column": 62 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - } - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 3392, - "end": 3410, - "loc": { - "start": { - "line": 108, - "column": 65 - }, - "end": { - "line": 108, - "column": 83 - } - }, - "object": { - "type": "Identifier", - "start": 3392, - "end": 3403, - "loc": { - "start": { - "line": 108, - "column": 65 - }, - "end": { - "line": 108, - "column": 76 - }, - "identifierName": "closingLine" - }, - "name": "closingLine" - }, - "property": { - "type": "Identifier", - "start": 3404, - "end": 3410, - "loc": { - "start": { - "line": 108, - "column": 77 - }, - "end": { - "line": 108, - "column": 83 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - } - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 3433, - "end": 3458, - "loc": { - "start": { - "line": 110, - "column": 10 - }, - "end": { - "line": 110, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 3433, - "end": 3448, - "loc": { - "start": { - "line": 110, - "column": 10 - }, - "end": { - "line": 110, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3449, - "end": 3457, - "loc": { - "start": { - "line": 110, - "column": 26 - }, - "end": { - "line": 110, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 3467, - "end": 3469, - "loc": { - "start": { - "line": 111, - "column": 7 - }, - "end": { - "line": 111, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 3470, - "end": 3477, - "loc": { - "start": { - "line": 111, - "column": 10 - }, - "end": { - "line": 111, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 3479, - "end": 3501, - "loc": { - "start": { - "line": 111, - "column": 19 - }, - "end": { - "line": 111, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 3479, - "end": 3491, - "loc": { - "start": { - "line": 111, - "column": 19 - }, - "end": { - "line": 111, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3492, - "end": 3500, - "loc": { - "start": { - "line": 111, - "column": 32 - }, - "end": { - "line": 111, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 3509, - "end": 3525, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 113, - "column": 20 - } - }, - "expression": { - "type": "CallExpression", - "start": 3509, - "end": 3524, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 113, - "column": 19 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3509, - "end": 3518, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 113, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 3509, - "end": 3512, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 113, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 3513, - "end": 3518, - "loc": { - "start": { - "line": 113, - "column": 8 - }, - "end": { - "line": 113, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 3519, - "end": 3523, - "loc": { - "start": { - "line": 113, - "column": 14 - }, - "end": { - "line": 113, - "column": 18 - }, - "identifierName": "file" - }, - "name": "file" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 3530, - "end": 3616, - "loc": { - "start": { - "line": 114, - "column": 4 - }, - "end": { - "line": 117, - "column": 7 - } - }, - "expression": { - "type": "CallExpression", - "start": 3530, - "end": 3615, - "loc": { - "start": { - "line": 114, - "column": 4 - }, - "end": { - "line": 117, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3530, - "end": 3539, - "loc": { - "start": { - "line": 114, - "column": 4 - }, - "end": { - "line": 114, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 3530, - "end": 3536, - "loc": { - "start": { - "line": 114, - "column": 4 - }, - "end": { - "line": 114, - "column": 10 - }, - "identifierName": "reader" - }, - "name": "reader" - }, - "property": { - "type": "Identifier", - "start": 3537, - "end": 3539, - "loc": { - "start": { - "line": 114, - "column": 11 - }, - "end": { - "line": 114, - "column": 13 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 3540, - "end": 3545, - "loc": { - "start": { - "line": 114, - "column": 14 - }, - "end": { - "line": 114, - "column": 19 - } - }, - "extra": { - "rawValue": "end", - "raw": "'end'" - }, - "value": "end" - }, - { - "type": "ArrowFunctionExpression", - "start": 3547, - "end": 3614, - "loc": { - "start": { - "line": 114, - "column": 21 - }, - "end": { - "line": 117, - "column": 5 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 3553, - "end": 3614, - "loc": { - "start": { - "line": 114, - "column": 27 - }, - "end": { - "line": 117, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 3561, - "end": 3580, - "loc": { - "start": { - "line": 115, - "column": 6 - }, - "end": { - "line": 115, - "column": 25 - } - }, - "expression": { - "type": "CallExpression", - "start": 3561, - "end": 3579, - "loc": { - "start": { - "line": 115, - "column": 6 - }, - "end": { - "line": 115, - "column": 24 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3561, - "end": 3574, - "loc": { - "start": { - "line": 115, - "column": 6 - }, - "end": { - "line": 115, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 3561, - "end": 3567, - "loc": { - "start": { - "line": 115, - "column": 6 - }, - "end": { - "line": 115, - "column": 12 - }, - "identifierName": "reader" - }, - "name": "reader" - }, - "property": { - "type": "Identifier", - "start": 3568, - "end": 3574, - "loc": { - "start": { - "line": 115, - "column": 13 - }, - "end": { - "line": 115, - "column": 19 - }, - "identifierName": "unpipe" - }, - "name": "unpipe" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 3575, - "end": 3578, - "loc": { - "start": { - "line": 115, - "column": 20 - }, - "end": { - "line": 115, - "column": 23 - }, - "identifierName": "req" - }, - "name": "req" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 3587, - "end": 3608, - "loc": { - "start": { - "line": 116, - "column": 6 - }, - "end": { - "line": 116, - "column": 27 - } - }, - "expression": { - "type": "CallExpression", - "start": 3587, - "end": 3607, - "loc": { - "start": { - "line": 116, - "column": 6 - }, - "end": { - "line": 116, - "column": 26 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3587, - "end": 3594, - "loc": { - "start": { - "line": 116, - "column": 6 - }, - "end": { - "line": 116, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 3587, - "end": 3590, - "loc": { - "start": { - "line": 116, - "column": 6 - }, - "end": { - "line": 116, - "column": 9 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 3591, - "end": 3594, - "loc": { - "start": { - "line": 116, - "column": 10 - }, - "end": { - "line": 116, - "column": 13 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 3595, - "end": 3606, - "loc": { - "start": { - "line": 116, - "column": 14 - }, - "end": { - "line": 116, - "column": 25 - }, - "identifierName": "closingLine" - }, - "name": "closingLine" - } - ] - } - } - ], - "directives": [] - } - } - ] - }, - "trailingComments": [ - { - "type": "CommentLine", - "value": " pipe the file and append a closing line", - "start": 3622, - "end": 3664, - "loc": { - "start": { - "line": 119, - "column": 4 - }, - "end": { - "line": 119, - "column": 46 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 3669, - "end": 3702, - "loc": { - "start": { - "line": 120, - "column": 4 - }, - "end": { - "line": 120, - "column": 37 - } - }, - "expression": { - "type": "CallExpression", - "start": 3669, - "end": 3701, - "loc": { - "start": { - "line": 120, - "column": 4 - }, - "end": { - "line": 120, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3669, - "end": 3680, - "loc": { - "start": { - "line": 120, - "column": 4 - }, - "end": { - "line": 120, - "column": 15 - } - }, - "object": { - "type": "Identifier", - "start": 3669, - "end": 3675, - "loc": { - "start": { - "line": 120, - "column": 4 - }, - "end": { - "line": 120, - "column": 10 - }, - "identifierName": "reader" - }, - "name": "reader", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 3676, - "end": 3680, - "loc": { - "start": { - "line": 120, - "column": 11 - }, - "end": { - "line": 120, - "column": 15 - }, - "identifierName": "pipe" - }, - "name": "pipe" - }, - "computed": false, - "leadingComments": null - }, - "arguments": [ - { - "type": "Identifier", - "start": 3681, - "end": 3684, - "loc": { - "start": { - "line": 120, - "column": 16 - }, - "end": { - "line": 120, - "column": 19 - }, - "identifierName": "req" - }, - "name": "req" - }, - { - "type": "ObjectExpression", - "start": 3686, - "end": 3700, - "loc": { - "start": { - "line": 120, - "column": 21 - }, - "end": { - "line": 120, - "column": 35 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3688, - "end": 3698, - "loc": { - "start": { - "line": 120, - "column": 23 - }, - "end": { - "line": 120, - "column": 33 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3688, - "end": 3691, - "loc": { - "start": { - "line": 120, - "column": 23 - }, - "end": { - "line": 120, - "column": 26 - }, - "identifierName": "end" - }, - "name": "end" - }, - "value": { - "type": "BooleanLiteral", - "start": 3693, - "end": 3698, - "loc": { - "start": { - "line": 120, - "column": 28 - }, - "end": { - "line": 120, - "column": 33 - } - }, - "value": false - } - } - ] - } - ], - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " pipe the file and append a closing line", - "start": 3622, - "end": 3664, - "loc": { - "start": { - "line": 119, - "column": 4 - }, - "end": { - "line": 119, - "column": 46 - } - } - } - ] - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Create document payload\n * @typedef {Object} DocumentCreateParams\n * @property {string} filepath - path to file to be uploaded\n * @property {string} token - your auth token\n ", - "start": 1773, - "end": 1966, - "loc": { - "start": { - "line": 63, - "column": 2 - }, - "end": { - "line": 68, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document response data\n * @typedef {Object} DocumentCreateResponse\n * @property {string} id - an id of created document\n ", - "start": 1970, - "end": 2115, - "loc": { - "start": { - "line": 70, - "column": 2 - }, - "end": { - "line": 74, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Uploads a file and creates a document.\n * This endpoint accepts .pdf, .doc, .docx, .odt, .rtf, .png, .jpg, .jpeg, .gif, .bmp, .xml, .xls, .xlsx, .ppt, .pptx file types\n * @param {DocumentCreateParams} data - create document payload\n * @param {function(err: ApiErrorResponse, res: DocumentCreateResponse)} [callback] - error first node.js callback\n ", - "start": 2119, - "end": 2486, - "loc": { - "start": { - "line": 76, - "column": 2 - }, - "end": { - "line": 81, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Upload document with field extract payload\n * @typedef {Object} DocumentFieldExtractParams\n * @property {string} filepath - path to file to be uploaded\n * @property {string} token - your auth token\n ", - "start": 3710, - "end": 3928, - "loc": { - "start": { - "line": 123, - "column": 2 - }, - "end": { - "line": 128, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Upload document with field extract response data\n * @typedef {Object} DocumentFieldExtractResponse\n * @property {string} id - an id of created document\n ", - "start": 3932, - "end": 4102, - "loc": { - "start": { - "line": 130, - "column": 2 - }, - "end": { - "line": 134, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Uploads a file that contains SignNow Document Field Tags.\n * This endpoint only accepts .pdf (you may convert the document from .doc or .docx to .pdf)\n * @param {DocumentFieldExtractParams} data - upload document with field extract payload\n * @param {function(err: ApiErrorResponse, res: DocumentFieldExtractResponse)} [callback] - error first node.js callback\n ", - "start": 4106, - "end": 4487, - "loc": { - "start": { - "line": 136, - "column": 2 - }, - "end": { - "line": 141, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 4490, - "end": 5727, - "loc": { - "start": { - "line": 142, - "column": 2 - }, - "end": { - "line": 182, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 4497, - "end": 4509, - "loc": { - "start": { - "line": 142, - "column": 9 - }, - "end": { - "line": 142, - "column": 21 - }, - "identifierName": "fieldextract" - }, - "name": "fieldextract" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 4511, - "end": 4530, - "loc": { - "start": { - "line": 142, - "column": 23 - }, - "end": { - "line": 142, - "column": 42 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4513, - "end": 4521, - "loc": { - "start": { - "line": 142, - "column": 25 - }, - "end": { - "line": 142, - "column": 33 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 4513, - "end": 4521, - "loc": { - "start": { - "line": 142, - "column": 25 - }, - "end": { - "line": 142, - "column": 33 - }, - "identifierName": "filepath" - }, - "name": "filepath" - }, - "value": { - "type": "Identifier", - "start": 4513, - "end": 4521, - "loc": { - "start": { - "line": 142, - "column": 25 - }, - "end": { - "line": 142, - "column": 33 - }, - "identifierName": "filepath" - }, - "name": "filepath" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 4523, - "end": 4528, - "loc": { - "start": { - "line": 142, - "column": 35 - }, - "end": { - "line": 142, - "column": 40 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 4523, - "end": 4528, - "loc": { - "start": { - "line": 142, - "column": 35 - }, - "end": { - "line": 142, - "column": 40 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 4523, - "end": 4528, - "loc": { - "start": { - "line": 142, - "column": 35 - }, - "end": { - "line": 142, - "column": 40 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 4532, - "end": 4540, - "loc": { - "start": { - "line": 142, - "column": 44 - }, - "end": { - "line": 142, - "column": 52 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 4542, - "end": 5727, - "loc": { - "start": { - "line": 142, - "column": 54 - }, - "end": { - "line": 182, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 4548, - "end": 4583, - "loc": { - "start": { - "line": 143, - "column": 4 - }, - "end": { - "line": 143, - "column": 39 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 4554, - "end": 4582, - "loc": { - "start": { - "line": 143, - "column": 10 - }, - "end": { - "line": 143, - "column": 38 - } - }, - "id": { - "type": "Identifier", - "start": 4554, - "end": 4565, - "loc": { - "start": { - "line": 143, - "column": 10 - }, - "end": { - "line": 143, - "column": 21 - }, - "identifierName": "boundaryKey" - }, - "name": "boundaryKey" - }, - "init": { - "type": "CallExpression", - "start": 4568, - "end": 4582, - "loc": { - "start": { - "line": 143, - "column": 24 - }, - "end": { - "line": 143, - "column": 38 - } - }, - "callee": { - "type": "Identifier", - "start": 4568, - "end": 4578, - "loc": { - "start": { - "line": 143, - "column": 24 - }, - "end": { - "line": 143, - "column": 34 - }, - "identifierName": "randString" - }, - "name": "randString" - }, - "arguments": [ - { - "type": "NumericLiteral", - "start": 4579, - "end": 4581, - "loc": { - "start": { - "line": 143, - "column": 35 - }, - "end": { - "line": 143, - "column": 37 - } - }, - "extra": { - "rawValue": 30, - "raw": "30" - }, - "value": 30 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 4588, - "end": 4627, - "loc": { - "start": { - "line": 144, - "column": 4 - }, - "end": { - "line": 144, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 4594, - "end": 4626, - "loc": { - "start": { - "line": 144, - "column": 10 - }, - "end": { - "line": 144, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 4594, - "end": 4602, - "loc": { - "start": { - "line": 144, - "column": 10 - }, - "end": { - "line": 144, - "column": 18 - }, - "identifierName": "filename" - }, - "name": "filename" - }, - "init": { - "type": "CallExpression", - "start": 4605, - "end": 4626, - "loc": { - "start": { - "line": 144, - "column": 21 - }, - "end": { - "line": 144, - "column": 42 - } - }, - "callee": { - "type": "Identifier", - "start": 4605, - "end": 4616, - "loc": { - "start": { - "line": 144, - "column": 21 - }, - "end": { - "line": 144, - "column": 32 - }, - "identifierName": "getFileName" - }, - "name": "getFileName" - }, - "arguments": [ - { - "type": "Identifier", - "start": 4617, - "end": 4625, - "loc": { - "start": { - "line": 144, - "column": 33 - }, - "end": { - "line": 144, - "column": 41 - }, - "identifierName": "filepath" - }, - "name": "filepath" - } - ] - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " check mimetype", - "start": 4633, - "end": 4650, - "loc": { - "start": { - "line": 146, - "column": 4 - }, - "end": { - "line": 146, - "column": 21 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 4655, - "end": 4694, - "loc": { - "start": { - "line": 147, - "column": 4 - }, - "end": { - "line": 147, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 4661, - "end": 4693, - "loc": { - "start": { - "line": 147, - "column": 10 - }, - "end": { - "line": 147, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 4661, - "end": 4669, - "loc": { - "start": { - "line": 147, - "column": 10 - }, - "end": { - "line": 147, - "column": 18 - }, - "identifierName": "mimeType" - }, - "name": "mimeType", - "leadingComments": null - }, - "init": { - "type": "CallExpression", - "start": 4672, - "end": 4693, - "loc": { - "start": { - "line": 147, - "column": 21 - }, - "end": { - "line": 147, - "column": 42 - } - }, - "callee": { - "type": "Identifier", - "start": 4672, - "end": 4683, - "loc": { - "start": { - "line": 147, - "column": 21 - }, - "end": { - "line": 147, - "column": 32 - }, - "identifierName": "getMimeType" - }, - "name": "getMimeType" - }, - "arguments": [ - { - "type": "Identifier", - "start": 4684, - "end": 4692, - "loc": { - "start": { - "line": 147, - "column": 33 - }, - "end": { - "line": 147, - "column": 41 - }, - "identifierName": "filepath" - }, - "name": "filepath" - } - ] - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " check mimetype", - "start": 4633, - "end": 4650, - "loc": { - "start": { - "line": 146, - "column": 4 - }, - "end": { - "line": 146, - "column": 21 - } - } - } - ] - }, - { - "type": "IfStatement", - "start": 4700, - "end": 4783, - "loc": { - "start": { - "line": 149, - "column": 4 - }, - "end": { - "line": 152, - "column": 5 - } - }, - "test": { - "type": "UnaryExpression", - "start": 4704, - "end": 4713, - "loc": { - "start": { - "line": 149, - "column": 8 - }, - "end": { - "line": 149, - "column": 17 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 4705, - "end": 4713, - "loc": { - "start": { - "line": 149, - "column": 9 - }, - "end": { - "line": 149, - "column": 17 - }, - "identifierName": "mimeType" - }, - "name": "mimeType" - }, - "extra": { - "parenthesizedArgument": false - } - }, - "consequent": { - "type": "BlockStatement", - "start": 4715, - "end": 4783, - "loc": { - "start": { - "line": 149, - "column": 19 - }, - "end": { - "line": 152, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 4723, - "end": 4763, - "loc": { - "start": { - "line": 150, - "column": 6 - }, - "end": { - "line": 150, - "column": 46 - } - }, - "expression": { - "type": "CallExpression", - "start": 4723, - "end": 4762, - "loc": { - "start": { - "line": 150, - "column": 6 - }, - "end": { - "line": 150, - "column": 45 - } - }, - "callee": { - "type": "Identifier", - "start": 4723, - "end": 4731, - "loc": { - "start": { - "line": 150, - "column": 6 - }, - "end": { - "line": 150, - "column": 14 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 4732, - "end": 4761, - "loc": { - "start": { - "line": 150, - "column": 15 - }, - "end": { - "line": 150, - "column": 44 - } - }, - "extra": { - "rawValue": "File type isn't supported.", - "raw": "'File type isn\\'t supported.'" - }, - "value": "File type isn't supported." - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 4770, - "end": 4777, - "loc": { - "start": { - "line": 151, - "column": 6 - }, - "end": { - "line": 151, - "column": 13 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "VariableDeclaration", - "start": 4789, - "end": 4852, - "loc": { - "start": { - "line": 154, - "column": 4 - }, - "end": { - "line": 154, - "column": 67 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 4795, - "end": 4851, - "loc": { - "start": { - "line": 154, - "column": 10 - }, - "end": { - "line": 154, - "column": 66 - } - }, - "id": { - "type": "Identifier", - "start": 4795, - "end": 4799, - "loc": { - "start": { - "line": 154, - "column": 10 - }, - "end": { - "line": 154, - "column": 14 - }, - "identifierName": "file" - }, - "name": "file" - }, - "init": { - "type": "CallExpression", - "start": 4802, - "end": 4851, - "loc": { - "start": { - "line": 154, - "column": 17 - }, - "end": { - "line": 154, - "column": 66 - } - }, - "callee": { - "type": "Identifier", - "start": 4802, - "end": 4818, - "loc": { - "start": { - "line": 154, - "column": 17 - }, - "end": { - "line": 154, - "column": 33 - }, - "identifierName": "buildFileRequest" - }, - "name": "buildFileRequest" - }, - "arguments": [ - { - "type": "Identifier", - "start": 4819, - "end": 4830, - "loc": { - "start": { - "line": 154, - "column": 34 - }, - "end": { - "line": 154, - "column": 45 - }, - "identifierName": "boundaryKey" - }, - "name": "boundaryKey" - }, - { - "type": "Identifier", - "start": 4832, - "end": 4840, - "loc": { - "start": { - "line": 154, - "column": 47 - }, - "end": { - "line": 154, - "column": 55 - }, - "identifierName": "mimeType" - }, - "name": "mimeType" - }, - { - "type": "Identifier", - "start": 4842, - "end": 4850, - "loc": { - "start": { - "line": 154, - "column": 57 - }, - "end": { - "line": 154, - "column": 65 - }, - "identifierName": "filename" - }, - "name": "filename" - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 4857, - "end": 4892, - "loc": { - "start": { - "line": 155, - "column": 4 - }, - "end": { - "line": 155, - "column": 39 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 4863, - "end": 4891, - "loc": { - "start": { - "line": 155, - "column": 10 - }, - "end": { - "line": 155, - "column": 38 - } - }, - "id": { - "type": "Identifier", - "start": 4863, - "end": 4867, - "loc": { - "start": { - "line": 155, - "column": 10 - }, - "end": { - "line": 155, - "column": 14 - }, - "identifierName": "stat" - }, - "name": "stat" - }, - "init": { - "type": "CallExpression", - "start": 4870, - "end": 4891, - "loc": { - "start": { - "line": 155, - "column": 17 - }, - "end": { - "line": 155, - "column": 38 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4870, - "end": 4881, - "loc": { - "start": { - "line": 155, - "column": 17 - }, - "end": { - "line": 155, - "column": 28 - } - }, - "object": { - "type": "Identifier", - "start": 4870, - "end": 4872, - "loc": { - "start": { - "line": 155, - "column": 17 - }, - "end": { - "line": 155, - "column": 19 - }, - "identifierName": "fs" - }, - "name": "fs" - }, - "property": { - "type": "Identifier", - "start": 4873, - "end": 4881, - "loc": { - "start": { - "line": 155, - "column": 20 - }, - "end": { - "line": 155, - "column": 28 - }, - "identifierName": "statSync" - }, - "name": "statSync" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 4882, - "end": 4890, - "loc": { - "start": { - "line": 155, - "column": 29 - }, - "end": { - "line": 155, - "column": 37 - }, - "identifierName": "filepath" - }, - "name": "filepath" - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 4897, - "end": 4969, - "loc": { - "start": { - "line": 156, - "column": 4 - }, - "end": { - "line": 156, - "column": 76 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 4903, - "end": 4968, - "loc": { - "start": { - "line": 156, - "column": 10 - }, - "end": { - "line": 156, - "column": 75 - } - }, - "id": { - "type": "Identifier", - "start": 4903, - "end": 4909, - "loc": { - "start": { - "line": 156, - "column": 10 - }, - "end": { - "line": 156, - "column": 16 - }, - "identifierName": "reader" - }, - "name": "reader" - }, - "init": { - "type": "CallExpression", - "start": 4912, - "end": 4968, - "loc": { - "start": { - "line": 156, - "column": 19 - }, - "end": { - "line": 156, - "column": 75 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4912, - "end": 4931, - "loc": { - "start": { - "line": 156, - "column": 19 - }, - "end": { - "line": 156, - "column": 38 - } - }, - "object": { - "type": "Identifier", - "start": 4912, - "end": 4914, - "loc": { - "start": { - "line": 156, - "column": 19 - }, - "end": { - "line": 156, - "column": 21 - }, - "identifierName": "fs" - }, - "name": "fs" - }, - "property": { - "type": "Identifier", - "start": 4915, - "end": 4931, - "loc": { - "start": { - "line": 156, - "column": 22 - }, - "end": { - "line": 156, - "column": 38 - }, - "identifierName": "createReadStream" - }, - "name": "createReadStream" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 4932, - "end": 4940, - "loc": { - "start": { - "line": 156, - "column": 39 - }, - "end": { - "line": 156, - "column": 47 - }, - "identifierName": "filepath" - }, - "name": "filepath" - }, - { - "type": "ObjectExpression", - "start": 4942, - "end": 4967, - "loc": { - "start": { - "line": 156, - "column": 49 - }, - "end": { - "line": 156, - "column": 74 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4944, - "end": 4965, - "loc": { - "start": { - "line": 156, - "column": 51 - }, - "end": { - "line": 156, - "column": 72 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4944, - "end": 4954, - "loc": { - "start": { - "line": 156, - "column": 51 - }, - "end": { - "line": 156, - "column": 61 - }, - "identifierName": "bufferSize" - }, - "name": "bufferSize" - }, - "value": { - "type": "BinaryExpression", - "start": 4956, - "end": 4965, - "loc": { - "start": { - "line": 156, - "column": 63 - }, - "end": { - "line": 156, - "column": 72 - } - }, - "left": { - "type": "NumericLiteral", - "start": 4956, - "end": 4958, - "loc": { - "start": { - "line": 156, - "column": 63 - }, - "end": { - "line": 156, - "column": 65 - } - }, - "extra": { - "rawValue": 64, - "raw": "64" - }, - "value": 64 - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 4961, - "end": 4965, - "loc": { - "start": { - "line": 156, - "column": 68 - }, - "end": { - "line": 156, - "column": 72 - } - }, - "extra": { - "rawValue": 1024, - "raw": "1024" - }, - "value": 1024 - } - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 4974, - "end": 5035, - "loc": { - "start": { - "line": 157, - "column": 4 - }, - "end": { - "line": 157, - "column": 65 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 4980, - "end": 5034, - "loc": { - "start": { - "line": 157, - "column": 10 - }, - "end": { - "line": 157, - "column": 64 - } - }, - "id": { - "type": "Identifier", - "start": 4980, - "end": 4991, - "loc": { - "start": { - "line": 157, - "column": 10 - }, - "end": { - "line": 157, - "column": 21 - }, - "identifierName": "closingLine" - }, - "name": "closingLine" - }, - "init": { - "type": "TemplateLiteral", - "start": 4994, - "end": 5034, - "loc": { - "start": { - "line": 157, - "column": 24 - }, - "end": { - "line": 157, - "column": 64 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 5019, - "end": 5030, - "loc": { - "start": { - "line": 157, - "column": 49 - }, - "end": { - "line": 157, - "column": 60 - }, - "identifierName": "boundaryKey" - }, - "name": "boundaryKey" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 4995, - "end": 5017, - "loc": { - "start": { - "line": 157, - "column": 25 - }, - "end": { - "line": 157, - "column": 47 - } - }, - "value": { - "raw": "\\r\\n------FormBoundary", - "cooked": "\r\n------FormBoundary" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 5031, - "end": 5033, - "loc": { - "start": { - "line": 157, - "column": 61 - }, - "end": { - "line": 157, - "column": 63 - } - }, - "value": { - "raw": "--", - "cooked": "--" - }, - "tail": true - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 5041, - "end": 5524, - "loc": { - "start": { - "line": 159, - "column": 4 - }, - "end": { - "line": 172, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 5047, - "end": 5523, - "loc": { - "start": { - "line": 159, - "column": 10 - }, - "end": { - "line": 172, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 5047, - "end": 5050, - "loc": { - "start": { - "line": 159, - "column": 10 - }, - "end": { - "line": 159, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 5053, - "end": 5523, - "loc": { - "start": { - "line": 159, - "column": 16 - }, - "end": { - "line": 172, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5053, - "end": 5490, - "loc": { - "start": { - "line": 159, - "column": 16 - }, - "end": { - "line": 172, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 5053, - "end": 5480, - "loc": { - "start": { - "line": 159, - "column": 16 - }, - "end": { - "line": 171, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5053, - "end": 5073, - "loc": { - "start": { - "line": 159, - "column": 16 - }, - "end": { - "line": 160, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 5053, - "end": 5058, - "loc": { - "start": { - "line": 159, - "column": 16 - }, - "end": { - "line": 159, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 5066, - "end": 5073, - "loc": { - "start": { - "line": 160, - "column": 7 - }, - "end": { - "line": 160, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 5074, - "end": 5452, - "loc": { - "start": { - "line": 160, - "column": 15 - }, - "end": { - "line": 171, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 5074, - "end": 5093, - "loc": { - "start": { - "line": 160, - "column": 15 - }, - "end": { - "line": 160, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 5094, - "end": 5451, - "loc": { - "start": { - "line": 160, - "column": 35 - }, - "end": { - "line": 171, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5104, - "end": 5118, - "loc": { - "start": { - "line": 161, - "column": 8 - }, - "end": { - "line": 161, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5104, - "end": 5110, - "loc": { - "start": { - "line": 161, - "column": 8 - }, - "end": { - "line": 161, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 5112, - "end": 5118, - "loc": { - "start": { - "line": 161, - "column": 16 - }, - "end": { - "line": 161, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 5128, - "end": 5158, - "loc": { - "start": { - "line": 162, - "column": 8 - }, - "end": { - "line": 162, - "column": 38 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5128, - "end": 5132, - "loc": { - "start": { - "line": 162, - "column": 8 - }, - "end": { - "line": 162, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 5134, - "end": 5158, - "loc": { - "start": { - "line": 162, - "column": 14 - }, - "end": { - "line": 162, - "column": 38 - } - }, - "extra": { - "rawValue": "/document/fieldextract", - "raw": "'/document/fieldextract'" - }, - "value": "/document/fieldextract" - } - }, - { - "type": "ObjectProperty", - "start": 5168, - "end": 5237, - "loc": { - "start": { - "line": 163, - "column": 8 - }, - "end": { - "line": 166, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5168, - "end": 5181, - "loc": { - "start": { - "line": 163, - "column": 8 - }, - "end": { - "line": 163, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 5183, - "end": 5237, - "loc": { - "start": { - "line": 163, - "column": 23 - }, - "end": { - "line": 166, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5195, - "end": 5209, - "loc": { - "start": { - "line": 164, - "column": 10 - }, - "end": { - "line": 164, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5195, - "end": 5199, - "loc": { - "start": { - "line": 164, - "column": 10 - }, - "end": { - "line": 164, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 5201, - "end": 5209, - "loc": { - "start": { - "line": 164, - "column": 16 - }, - "end": { - "line": 164, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 5221, - "end": 5226, - "loc": { - "start": { - "line": 165, - "column": 10 - }, - "end": { - "line": 165, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5221, - "end": 5226, - "loc": { - "start": { - "line": 165, - "column": 10 - }, - "end": { - "line": 165, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 5221, - "end": 5226, - "loc": { - "start": { - "line": 165, - "column": 10 - }, - "end": { - "line": 165, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 5247, - "end": 5442, - "loc": { - "start": { - "line": 167, - "column": 8 - }, - "end": { - "line": 170, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5247, - "end": 5254, - "loc": { - "start": { - "line": 167, - "column": 8 - }, - "end": { - "line": 167, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 5256, - "end": 5442, - "loc": { - "start": { - "line": 167, - "column": 17 - }, - "end": { - "line": 170, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5268, - "end": 5346, - "loc": { - "start": { - "line": 168, - "column": 10 - }, - "end": { - "line": 168, - "column": 88 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 5268, - "end": 5282, - "loc": { - "start": { - "line": 168, - "column": 10 - }, - "end": { - "line": 168, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "TemplateLiteral", - "start": 5284, - "end": 5346, - "loc": { - "start": { - "line": 168, - "column": 26 - }, - "end": { - "line": 168, - "column": 88 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 5333, - "end": 5344, - "loc": { - "start": { - "line": 168, - "column": 75 - }, - "end": { - "line": 168, - "column": 86 - }, - "identifierName": "boundaryKey" - }, - "name": "boundaryKey" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 5285, - "end": 5331, - "loc": { - "start": { - "line": 168, - "column": 27 - }, - "end": { - "line": 168, - "column": 73 - } - }, - "value": { - "raw": "multipart/form-data; boundary=----FormBoundary", - "cooked": "multipart/form-data; boundary=----FormBoundary" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 5345, - "end": 5345, - "loc": { - "start": { - "line": 168, - "column": 87 - }, - "end": { - "line": 168, - "column": 87 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 5358, - "end": 5431, - "loc": { - "start": { - "line": 169, - "column": 10 - }, - "end": { - "line": 169, - "column": 83 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 5358, - "end": 5374, - "loc": { - "start": { - "line": 169, - "column": 10 - }, - "end": { - "line": 169, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "BinaryExpression", - "start": 5376, - "end": 5431, - "loc": { - "start": { - "line": 169, - "column": 28 - }, - "end": { - "line": 169, - "column": 83 - } - }, - "left": { - "type": "BinaryExpression", - "start": 5376, - "end": 5410, - "loc": { - "start": { - "line": 169, - "column": 28 - }, - "end": { - "line": 169, - "column": 62 - } - }, - "left": { - "type": "MemberExpression", - "start": 5376, - "end": 5385, - "loc": { - "start": { - "line": 169, - "column": 28 - }, - "end": { - "line": 169, - "column": 37 - } - }, - "object": { - "type": "Identifier", - "start": 5376, - "end": 5380, - "loc": { - "start": { - "line": 169, - "column": 28 - }, - "end": { - "line": 169, - "column": 32 - }, - "identifierName": "stat" - }, - "name": "stat" - }, - "property": { - "type": "Identifier", - "start": 5381, - "end": 5385, - "loc": { - "start": { - "line": 169, - "column": 33 - }, - "end": { - "line": 169, - "column": 37 - }, - "identifierName": "size" - }, - "name": "size" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 5388, - "end": 5410, - "loc": { - "start": { - "line": 169, - "column": 40 - }, - "end": { - "line": 169, - "column": 62 - } - }, - "object": { - "type": "CallExpression", - "start": 5388, - "end": 5403, - "loc": { - "start": { - "line": 169, - "column": 40 - }, - "end": { - "line": 169, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5388, - "end": 5401, - "loc": { - "start": { - "line": 169, - "column": 40 - }, - "end": { - "line": 169, - "column": 53 - } - }, - "object": { - "type": "Identifier", - "start": 5388, - "end": 5392, - "loc": { - "start": { - "line": 169, - "column": 40 - }, - "end": { - "line": 169, - "column": 44 - }, - "identifierName": "file" - }, - "name": "file" - }, - "property": { - "type": "Identifier", - "start": 5393, - "end": 5401, - "loc": { - "start": { - "line": 169, - "column": 45 - }, - "end": { - "line": 169, - "column": 53 - }, - "identifierName": "toString" - }, - "name": "toString" - }, - "computed": false - }, - "arguments": [] - }, - "property": { - "type": "Identifier", - "start": 5404, - "end": 5410, - "loc": { - "start": { - "line": 169, - "column": 56 - }, - "end": { - "line": 169, - "column": 62 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - } - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 5413, - "end": 5431, - "loc": { - "start": { - "line": 169, - "column": 65 - }, - "end": { - "line": 169, - "column": 83 - } - }, - "object": { - "type": "Identifier", - "start": 5413, - "end": 5424, - "loc": { - "start": { - "line": 169, - "column": 65 - }, - "end": { - "line": 169, - "column": 76 - }, - "identifierName": "closingLine" - }, - "name": "closingLine" - }, - "property": { - "type": "Identifier", - "start": 5425, - "end": 5431, - "loc": { - "start": { - "line": 169, - "column": 77 - }, - "end": { - "line": 169, - "column": 83 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - } - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 5454, - "end": 5479, - "loc": { - "start": { - "line": 171, - "column": 10 - }, - "end": { - "line": 171, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 5454, - "end": 5469, - "loc": { - "start": { - "line": 171, - "column": 10 - }, - "end": { - "line": 171, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 5470, - "end": 5478, - "loc": { - "start": { - "line": 171, - "column": 26 - }, - "end": { - "line": 171, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 5488, - "end": 5490, - "loc": { - "start": { - "line": 172, - "column": 7 - }, - "end": { - "line": 172, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 5491, - "end": 5498, - "loc": { - "start": { - "line": 172, - "column": 10 - }, - "end": { - "line": 172, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 5500, - "end": 5522, - "loc": { - "start": { - "line": 172, - "column": 19 - }, - "end": { - "line": 172, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 5500, - "end": 5512, - "loc": { - "start": { - "line": 172, - "column": 19 - }, - "end": { - "line": 172, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 5513, - "end": 5521, - "loc": { - "start": { - "line": 172, - "column": 32 - }, - "end": { - "line": 172, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 5530, - "end": 5546, - "loc": { - "start": { - "line": 174, - "column": 4 - }, - "end": { - "line": 174, - "column": 20 - } - }, - "expression": { - "type": "CallExpression", - "start": 5530, - "end": 5545, - "loc": { - "start": { - "line": 174, - "column": 4 - }, - "end": { - "line": 174, - "column": 19 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5530, - "end": 5539, - "loc": { - "start": { - "line": 174, - "column": 4 - }, - "end": { - "line": 174, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 5530, - "end": 5533, - "loc": { - "start": { - "line": 174, - "column": 4 - }, - "end": { - "line": 174, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 5534, - "end": 5539, - "loc": { - "start": { - "line": 174, - "column": 8 - }, - "end": { - "line": 174, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 5540, - "end": 5544, - "loc": { - "start": { - "line": 174, - "column": 14 - }, - "end": { - "line": 174, - "column": 18 - }, - "identifierName": "file" - }, - "name": "file" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 5551, - "end": 5637, - "loc": { - "start": { - "line": 175, - "column": 4 - }, - "end": { - "line": 178, - "column": 7 - } - }, - "expression": { - "type": "CallExpression", - "start": 5551, - "end": 5636, - "loc": { - "start": { - "line": 175, - "column": 4 - }, - "end": { - "line": 178, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5551, - "end": 5560, - "loc": { - "start": { - "line": 175, - "column": 4 - }, - "end": { - "line": 175, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 5551, - "end": 5557, - "loc": { - "start": { - "line": 175, - "column": 4 - }, - "end": { - "line": 175, - "column": 10 - }, - "identifierName": "reader" - }, - "name": "reader" - }, - "property": { - "type": "Identifier", - "start": 5558, - "end": 5560, - "loc": { - "start": { - "line": 175, - "column": 11 - }, - "end": { - "line": 175, - "column": 13 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 5561, - "end": 5566, - "loc": { - "start": { - "line": 175, - "column": 14 - }, - "end": { - "line": 175, - "column": 19 - } - }, - "extra": { - "rawValue": "end", - "raw": "'end'" - }, - "value": "end" - }, - { - "type": "ArrowFunctionExpression", - "start": 5568, - "end": 5635, - "loc": { - "start": { - "line": 175, - "column": 21 - }, - "end": { - "line": 178, - "column": 5 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 5574, - "end": 5635, - "loc": { - "start": { - "line": 175, - "column": 27 - }, - "end": { - "line": 178, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 5582, - "end": 5601, - "loc": { - "start": { - "line": 176, - "column": 6 - }, - "end": { - "line": 176, - "column": 25 - } - }, - "expression": { - "type": "CallExpression", - "start": 5582, - "end": 5600, - "loc": { - "start": { - "line": 176, - "column": 6 - }, - "end": { - "line": 176, - "column": 24 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5582, - "end": 5595, - "loc": { - "start": { - "line": 176, - "column": 6 - }, - "end": { - "line": 176, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 5582, - "end": 5588, - "loc": { - "start": { - "line": 176, - "column": 6 - }, - "end": { - "line": 176, - "column": 12 - }, - "identifierName": "reader" - }, - "name": "reader" - }, - "property": { - "type": "Identifier", - "start": 5589, - "end": 5595, - "loc": { - "start": { - "line": 176, - "column": 13 - }, - "end": { - "line": 176, - "column": 19 - }, - "identifierName": "unpipe" - }, - "name": "unpipe" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 5596, - "end": 5599, - "loc": { - "start": { - "line": 176, - "column": 20 - }, - "end": { - "line": 176, - "column": 23 - }, - "identifierName": "req" - }, - "name": "req" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 5608, - "end": 5629, - "loc": { - "start": { - "line": 177, - "column": 6 - }, - "end": { - "line": 177, - "column": 27 - } - }, - "expression": { - "type": "CallExpression", - "start": 5608, - "end": 5628, - "loc": { - "start": { - "line": 177, - "column": 6 - }, - "end": { - "line": 177, - "column": 26 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5608, - "end": 5615, - "loc": { - "start": { - "line": 177, - "column": 6 - }, - "end": { - "line": 177, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 5608, - "end": 5611, - "loc": { - "start": { - "line": 177, - "column": 6 - }, - "end": { - "line": 177, - "column": 9 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 5612, - "end": 5615, - "loc": { - "start": { - "line": 177, - "column": 10 - }, - "end": { - "line": 177, - "column": 13 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 5616, - "end": 5627, - "loc": { - "start": { - "line": 177, - "column": 14 - }, - "end": { - "line": 177, - "column": 25 - }, - "identifierName": "closingLine" - }, - "name": "closingLine" - } - ] - } - } - ], - "directives": [] - } - } - ] - }, - "trailingComments": [ - { - "type": "CommentLine", - "value": " pipe the file and append a closing line", - "start": 5643, - "end": 5685, - "loc": { - "start": { - "line": 180, - "column": 4 - }, - "end": { - "line": 180, - "column": 46 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 5690, - "end": 5723, - "loc": { - "start": { - "line": 181, - "column": 4 - }, - "end": { - "line": 181, - "column": 37 - } - }, - "expression": { - "type": "CallExpression", - "start": 5690, - "end": 5722, - "loc": { - "start": { - "line": 181, - "column": 4 - }, - "end": { - "line": 181, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5690, - "end": 5701, - "loc": { - "start": { - "line": 181, - "column": 4 - }, - "end": { - "line": 181, - "column": 15 - } - }, - "object": { - "type": "Identifier", - "start": 5690, - "end": 5696, - "loc": { - "start": { - "line": 181, - "column": 4 - }, - "end": { - "line": 181, - "column": 10 - }, - "identifierName": "reader" - }, - "name": "reader", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 5697, - "end": 5701, - "loc": { - "start": { - "line": 181, - "column": 11 - }, - "end": { - "line": 181, - "column": 15 - }, - "identifierName": "pipe" - }, - "name": "pipe" - }, - "computed": false, - "leadingComments": null - }, - "arguments": [ - { - "type": "Identifier", - "start": 5702, - "end": 5705, - "loc": { - "start": { - "line": 181, - "column": 16 - }, - "end": { - "line": 181, - "column": 19 - }, - "identifierName": "req" - }, - "name": "req" - }, - { - "type": "ObjectExpression", - "start": 5707, - "end": 5721, - "loc": { - "start": { - "line": 181, - "column": 21 - }, - "end": { - "line": 181, - "column": 35 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5709, - "end": 5719, - "loc": { - "start": { - "line": 181, - "column": 23 - }, - "end": { - "line": 181, - "column": 33 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5709, - "end": 5712, - "loc": { - "start": { - "line": 181, - "column": 23 - }, - "end": { - "line": 181, - "column": 26 - }, - "identifierName": "end" - }, - "name": "end" - }, - "value": { - "type": "BooleanLiteral", - "start": 5714, - "end": 5719, - "loc": { - "start": { - "line": 181, - "column": 28 - }, - "end": { - "line": 181, - "column": 33 - } - }, - "value": false - } - } - ] - } - ], - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " pipe the file and append a closing line", - "start": 5643, - "end": 5685, - "loc": { - "start": { - "line": 180, - "column": 4 - }, - "end": { - "line": 180, - "column": 46 - } - } - } - ] - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Upload document with field extract payload\n * @typedef {Object} DocumentFieldExtractParams\n * @property {string} filepath - path to file to be uploaded\n * @property {string} token - your auth token\n ", - "start": 3710, - "end": 3928, - "loc": { - "start": { - "line": 123, - "column": 2 - }, - "end": { - "line": 128, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Upload document with field extract response data\n * @typedef {Object} DocumentFieldExtractResponse\n * @property {string} id - an id of created document\n ", - "start": 3932, - "end": 4102, - "loc": { - "start": { - "line": 130, - "column": 2 - }, - "end": { - "line": 134, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Uploads a file that contains SignNow Document Field Tags.\n * This endpoint only accepts .pdf (you may convert the document from .doc or .docx to .pdf)\n * @param {DocumentFieldExtractParams} data - upload document with field extract payload\n * @param {function(err: ApiErrorResponse, res: DocumentFieldExtractResponse)} [callback] - error first node.js callback\n ", - "start": 4106, - "end": 4487, - "loc": { - "start": { - "line": 136, - "column": 2 - }, - "end": { - "line": 141, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Payload to receive user's document list\n * @typedef {Object} DocumentListParams\n * @property {string} token - your auth token\n ", - "start": 5732, - "end": 5876, - "loc": { - "start": { - "line": 185, - "column": 2 - }, - "end": { - "line": 189, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document list response item\n * @typedef {Object} DocumentListItem\n * @property {string} id - id of specific document\n * @property {string} user_id - id of user that uploaded document\n * @property {string} document_name - name of document\n * @property {string} page_count - amount of pages in the document\n * @property {string} created - timestamp document was created\n * @property {string} updated - timestamp document was updated\n * @property {string} original_filename - original filename with document format (.pdf, .doc, etc...)\n * @property {?string} origin_document_id - an id of original document (if document is a copy)\n * @property {string} owner - email of document owner\n * @property {boolean} template - is document a template or not\n * @property {?string} origin_user_id - id of user who created document\n * @property {Object} thumbnail - thumbnail urls with different sizes (small, medium, large)\n * @property {Object[]} signatures - signature signed elements\n * @property {Object[]} texts - text and enumeration filled elements\n * @property {Object[]} checks - checkbox checked elements\n * @property {Object[]} tags - field types document contains\n * @property {Object[]} fields - all document fillable fields\n * @property {Object[]} requests - requests for signing document\n * @property {Object[]} roles - document signer roles\n * @property {Object[]} field_invites - sent invites data\n * @property {number} version_time - document updated timestamp\n * @property {Object[]} enumeration_options - dropdown options\n * @property {Object[]} attachments - attachments in document\n * @property {Object[]} routing_details - signing steps routing details\n * @property {Object[]} integrations - document integrations\n * @property {Object[]} hyperlinks - document hyperlinks\n * @property {Object[]} radiobuttons - checked radiobuttons after document was signed\n * @property {Object[]} document_group_template_info - document group templates data\n * @property {Object[]} document_group_info - document group template's data\n * @property {Object[]} originator_organization_settings - specific organization settings for document\n * @property {Object[]} field_validators - validation rules for fields (date fields, payment fields etc.)\n * @property {Object} settings - specific document settings\n ", - "start": 5880, - "end": 8258, - "loc": { - "start": { - "line": 191, - "column": 2 - }, - "end": { - "line": 226, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * User's Document list response\n * @typedef {DocumentListItem[]} DocumentListResponse\n ", - "start": 8262, - "end": 8362, - "loc": { - "start": { - "line": 228, - "column": 2 - }, - "end": { - "line": 231, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieve user's document list\n * @param {DocumentListParams} data - payload to receive user's document list\n * @param {function(err: ApiErrorResponse, res: DocumentListItem)} [callback] - error first node.js callback\n ", - "start": 8366, - "end": 8601, - "loc": { - "start": { - "line": 233, - "column": 2 - }, - "end": { - "line": 237, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 8604, - "end": 8921, - "loc": { - "start": { - "line": 238, - "column": 2 - }, - "end": { - "line": 250, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8611, - "end": 8615, - "loc": { - "start": { - "line": 238, - "column": 9 - }, - "end": { - "line": 238, - "column": 13 - }, - "identifierName": "list" - }, - "name": "list" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 8617, - "end": 8626, - "loc": { - "start": { - "line": 238, - "column": 15 - }, - "end": { - "line": 238, - "column": 24 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 8619, - "end": 8624, - "loc": { - "start": { - "line": 238, - "column": 17 - }, - "end": { - "line": 238, - "column": 22 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8619, - "end": 8624, - "loc": { - "start": { - "line": 238, - "column": 17 - }, - "end": { - "line": 238, - "column": 22 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 8619, - "end": 8624, - "loc": { - "start": { - "line": 238, - "column": 17 - }, - "end": { - "line": 238, - "column": 22 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 8628, - "end": 8636, - "loc": { - "start": { - "line": 238, - "column": 26 - }, - "end": { - "line": 238, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 8638, - "end": 8921, - "loc": { - "start": { - "line": 238, - "column": 36 - }, - "end": { - "line": 250, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 8644, - "end": 8917, - "loc": { - "start": { - "line": 239, - "column": 4 - }, - "end": { - "line": 249, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 8644, - "end": 8916, - "loc": { - "start": { - "line": 239, - "column": 4 - }, - "end": { - "line": 249, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 8644, - "end": 8914, - "loc": { - "start": { - "line": 239, - "column": 4 - }, - "end": { - "line": 249, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 8644, - "end": 8903, - "loc": { - "start": { - "line": 239, - "column": 4 - }, - "end": { - "line": 248, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 8644, - "end": 8870, - "loc": { - "start": { - "line": 239, - "column": 4 - }, - "end": { - "line": 248, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 8644, - "end": 8860, - "loc": { - "start": { - "line": 239, - "column": 4 - }, - "end": { - "line": 247, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 8644, - "end": 8664, - "loc": { - "start": { - "line": 239, - "column": 4 - }, - "end": { - "line": 240, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 8644, - "end": 8649, - "loc": { - "start": { - "line": 239, - "column": 4 - }, - "end": { - "line": 239, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 8657, - "end": 8664, - "loc": { - "start": { - "line": 240, - "column": 7 - }, - "end": { - "line": 240, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 8665, - "end": 8832, - "loc": { - "start": { - "line": 240, - "column": 15 - }, - "end": { - "line": 247, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 8665, - "end": 8684, - "loc": { - "start": { - "line": 240, - "column": 15 - }, - "end": { - "line": 240, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 8685, - "end": 8831, - "loc": { - "start": { - "line": 240, - "column": 35 - }, - "end": { - "line": 247, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 8695, - "end": 8708, - "loc": { - "start": { - "line": 241, - "column": 8 - }, - "end": { - "line": 241, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 8695, - "end": 8701, - "loc": { - "start": { - "line": 241, - "column": 8 - }, - "end": { - "line": 241, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 8703, - "end": 8708, - "loc": { - "start": { - "line": 241, - "column": 16 - }, - "end": { - "line": 241, - "column": 21 - } - }, - "extra": { - "rawValue": "GET", - "raw": "'GET'" - }, - "value": "GET" - } - }, - { - "type": "ObjectProperty", - "start": 8718, - "end": 8743, - "loc": { - "start": { - "line": 242, - "column": 8 - }, - "end": { - "line": 242, - "column": 33 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 8718, - "end": 8722, - "loc": { - "start": { - "line": 242, - "column": 8 - }, - "end": { - "line": 242, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 8724, - "end": 8743, - "loc": { - "start": { - "line": 242, - "column": 14 - }, - "end": { - "line": 242, - "column": 33 - } - }, - "extra": { - "rawValue": "/user/documentsv2", - "raw": "'/user/documentsv2'" - }, - "value": "/user/documentsv2" - } - }, - { - "type": "ObjectProperty", - "start": 8753, - "end": 8822, - "loc": { - "start": { - "line": 243, - "column": 8 - }, - "end": { - "line": 246, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 8753, - "end": 8766, - "loc": { - "start": { - "line": 243, - "column": 8 - }, - "end": { - "line": 243, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 8768, - "end": 8822, - "loc": { - "start": { - "line": 243, - "column": 23 - }, - "end": { - "line": 246, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 8780, - "end": 8794, - "loc": { - "start": { - "line": 244, - "column": 10 - }, - "end": { - "line": 244, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 8780, - "end": 8784, - "loc": { - "start": { - "line": 244, - "column": 10 - }, - "end": { - "line": 244, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 8786, - "end": 8794, - "loc": { - "start": { - "line": 244, - "column": 16 - }, - "end": { - "line": 244, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 8806, - "end": 8811, - "loc": { - "start": { - "line": 245, - "column": 10 - }, - "end": { - "line": 245, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8806, - "end": 8811, - "loc": { - "start": { - "line": 245, - "column": 10 - }, - "end": { - "line": 245, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 8806, - "end": 8811, - "loc": { - "start": { - "line": 245, - "column": 10 - }, - "end": { - "line": 245, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 8834, - "end": 8859, - "loc": { - "start": { - "line": 247, - "column": 10 - }, - "end": { - "line": 247, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 8834, - "end": 8849, - "loc": { - "start": { - "line": 247, - "column": 10 - }, - "end": { - "line": 247, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 8850, - "end": 8858, - "loc": { - "start": { - "line": 247, - "column": 26 - }, - "end": { - "line": 247, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 8868, - "end": 8870, - "loc": { - "start": { - "line": 248, - "column": 7 - }, - "end": { - "line": 248, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 8871, - "end": 8878, - "loc": { - "start": { - "line": 248, - "column": 10 - }, - "end": { - "line": 248, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 8880, - "end": 8902, - "loc": { - "start": { - "line": 248, - "column": 19 - }, - "end": { - "line": 248, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 8880, - "end": 8892, - "loc": { - "start": { - "line": 248, - "column": 19 - }, - "end": { - "line": 248, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 8893, - "end": 8901, - "loc": { - "start": { - "line": 248, - "column": 32 - }, - "end": { - "line": 248, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 8911, - "end": 8914, - "loc": { - "start": { - "line": 249, - "column": 7 - }, - "end": { - "line": 249, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Payload to receive user's document list\n * @typedef {Object} DocumentListParams\n * @property {string} token - your auth token\n ", - "start": 5732, - "end": 5876, - "loc": { - "start": { - "line": 185, - "column": 2 - }, - "end": { - "line": 189, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document list response item\n * @typedef {Object} DocumentListItem\n * @property {string} id - id of specific document\n * @property {string} user_id - id of user that uploaded document\n * @property {string} document_name - name of document\n * @property {string} page_count - amount of pages in the document\n * @property {string} created - timestamp document was created\n * @property {string} updated - timestamp document was updated\n * @property {string} original_filename - original filename with document format (.pdf, .doc, etc...)\n * @property {?string} origin_document_id - an id of original document (if document is a copy)\n * @property {string} owner - email of document owner\n * @property {boolean} template - is document a template or not\n * @property {?string} origin_user_id - id of user who created document\n * @property {Object} thumbnail - thumbnail urls with different sizes (small, medium, large)\n * @property {Object[]} signatures - signature signed elements\n * @property {Object[]} texts - text and enumeration filled elements\n * @property {Object[]} checks - checkbox checked elements\n * @property {Object[]} tags - field types document contains\n * @property {Object[]} fields - all document fillable fields\n * @property {Object[]} requests - requests for signing document\n * @property {Object[]} roles - document signer roles\n * @property {Object[]} field_invites - sent invites data\n * @property {number} version_time - document updated timestamp\n * @property {Object[]} enumeration_options - dropdown options\n * @property {Object[]} attachments - attachments in document\n * @property {Object[]} routing_details - signing steps routing details\n * @property {Object[]} integrations - document integrations\n * @property {Object[]} hyperlinks - document hyperlinks\n * @property {Object[]} radiobuttons - checked radiobuttons after document was signed\n * @property {Object[]} document_group_template_info - document group templates data\n * @property {Object[]} document_group_info - document group template's data\n * @property {Object[]} originator_organization_settings - specific organization settings for document\n * @property {Object[]} field_validators - validation rules for fields (date fields, payment fields etc.)\n * @property {Object} settings - specific document settings\n ", - "start": 5880, - "end": 8258, - "loc": { - "start": { - "line": 191, - "column": 2 - }, - "end": { - "line": 226, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * User's Document list response\n * @typedef {DocumentListItem[]} DocumentListResponse\n ", - "start": 8262, - "end": 8362, - "loc": { - "start": { - "line": 228, - "column": 2 - }, - "end": { - "line": 231, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieve user's document list\n * @param {DocumentListParams} data - payload to receive user's document list\n * @param {function(err: ApiErrorResponse, res: DocumentListItem)} [callback] - error first node.js callback\n ", - "start": 8366, - "end": 8601, - "loc": { - "start": { - "line": 233, - "column": 2 - }, - "end": { - "line": 237, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document view payload\n * @typedef {Object} DocumentViewParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 8925, - "end": 9104, - "loc": { - "start": { - "line": 252, - "column": 2 - }, - "end": { - "line": 257, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document view response of specific document\n * @typedef {Object} DocumentViewResponse\n * @property {string} id - id of specific document\n * @property {string} user_id - id of user that uploaded document\n * @property {string} document_name - name of document\n * @property {string} page_count - amount of pages in the document\n * @property {string} created - timestamp document was created\n * @property {string} updated - timestamp document was updated\n * @property {string} original_filename - original filename with document format (.pdf, .doc, etc...)\n * @property {?string} origin_document_id - an id of original document (if document is a copy)\n * @property {string} owner - email of document owner\n * @property {boolean} template - is document a template or not\n * @property {Object} thumbnail - thumbnail urls with different sizes (small, medium, large)\n * @property {Object[]} signatures - signature signed elements\n * @property {Object[]} texts - text and enumeration filled elements\n * @property {Object[]} checks - checkbox checked elements\n * @property {Object[]} tags - field types document contains\n * @property {Object[]} fields - all document fillable fields\n * @property {Object[]} requests - requests for signing document\n * @property {Object[]} roles - document signer roles\n * @property {Object[]} field_invites - sent invites data\n * @property {number} version_time - document updated timestamp\n * @property {Object[]} enumeration_options - dropdown options\n * @property {Object[]} attachments - attachments in document\n * @property {Object[]} routing_details - signing steps routing details\n * @property {Object[]} integrations - document integrations\n * @property {Object[]} hyperlinks - document hyperlinks\n * @property {Object[]} radiobuttons - checked radiobuttons after document was signed\n * @property {Object[]} document_group_template_info - document group template's data\n * @property {Object[]} document_group_info - document group's data\n * @property {Object[]} originator_organization_settings - specific organization settings for document\n * @property {Object[]} field_validators - validation rules for fields (date fields, payment fields etc.)\n * @property {Object} settings - specific document settings\n * @property {string} parent_id - id of document folder\n * @property {string} originator_logo - logo url\n * @property {Object[]} pages - list of document pages with page sources and page size.\n ", - "start": 9108, - "end": 11623, - "loc": { - "start": { - "line": 259, - "column": 2 - }, - "end": { - "line": 296, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves a document detailed data\n * @param {DocumentViewParams} data - view document details payload\n * @param {function(err: ApiErrorResponse, res: DocumentViewResponse)} [callback] - error first node.js callback\n ", - "start": 11627, - "end": 11861, - "loc": { - "start": { - "line": 298, - "column": 2 - }, - "end": { - "line": 302, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 11864, - "end": 12183, - "loc": { - "start": { - "line": 303, - "column": 2 - }, - "end": { - "line": 315, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 11871, - "end": 11875, - "loc": { - "start": { - "line": 303, - "column": 9 - }, - "end": { - "line": 303, - "column": 13 - }, - "identifierName": "view" - }, - "name": "view" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 11877, - "end": 11890, - "loc": { - "start": { - "line": 303, - "column": 15 - }, - "end": { - "line": 303, - "column": 28 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 11879, - "end": 11881, - "loc": { - "start": { - "line": 303, - "column": 17 - }, - "end": { - "line": 303, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 11879, - "end": 11881, - "loc": { - "start": { - "line": 303, - "column": 17 - }, - "end": { - "line": 303, - "column": 19 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 11879, - "end": 11881, - "loc": { - "start": { - "line": 303, - "column": 17 - }, - "end": { - "line": 303, - "column": 19 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 11883, - "end": 11888, - "loc": { - "start": { - "line": 303, - "column": 21 - }, - "end": { - "line": 303, - "column": 26 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 11883, - "end": 11888, - "loc": { - "start": { - "line": 303, - "column": 21 - }, - "end": { - "line": 303, - "column": 26 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 11883, - "end": 11888, - "loc": { - "start": { - "line": 303, - "column": 21 - }, - "end": { - "line": 303, - "column": 26 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 11892, - "end": 11900, - "loc": { - "start": { - "line": 303, - "column": 30 - }, - "end": { - "line": 303, - "column": 38 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 11902, - "end": 12183, - "loc": { - "start": { - "line": 303, - "column": 40 - }, - "end": { - "line": 315, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 11908, - "end": 12179, - "loc": { - "start": { - "line": 304, - "column": 4 - }, - "end": { - "line": 314, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 11908, - "end": 12178, - "loc": { - "start": { - "line": 304, - "column": 4 - }, - "end": { - "line": 314, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11908, - "end": 12176, - "loc": { - "start": { - "line": 304, - "column": 4 - }, - "end": { - "line": 314, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 11908, - "end": 12165, - "loc": { - "start": { - "line": 304, - "column": 4 - }, - "end": { - "line": 313, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11908, - "end": 12132, - "loc": { - "start": { - "line": 304, - "column": 4 - }, - "end": { - "line": 313, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 11908, - "end": 12122, - "loc": { - "start": { - "line": 304, - "column": 4 - }, - "end": { - "line": 312, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11908, - "end": 11928, - "loc": { - "start": { - "line": 304, - "column": 4 - }, - "end": { - "line": 305, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 11908, - "end": 11913, - "loc": { - "start": { - "line": 304, - "column": 4 - }, - "end": { - "line": 304, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 11921, - "end": 11928, - "loc": { - "start": { - "line": 305, - "column": 7 - }, - "end": { - "line": 305, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 11929, - "end": 12094, - "loc": { - "start": { - "line": 305, - "column": 15 - }, - "end": { - "line": 312, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 11929, - "end": 11948, - "loc": { - "start": { - "line": 305, - "column": 15 - }, - "end": { - "line": 305, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 11949, - "end": 12093, - "loc": { - "start": { - "line": 305, - "column": 35 - }, - "end": { - "line": 312, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 11959, - "end": 11972, - "loc": { - "start": { - "line": 306, - "column": 8 - }, - "end": { - "line": 306, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 11959, - "end": 11965, - "loc": { - "start": { - "line": 306, - "column": 8 - }, - "end": { - "line": 306, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 11967, - "end": 11972, - "loc": { - "start": { - "line": 306, - "column": 16 - }, - "end": { - "line": 306, - "column": 21 - } - }, - "extra": { - "rawValue": "GET", - "raw": "'GET'" - }, - "value": "GET" - } - }, - { - "type": "ObjectProperty", - "start": 11982, - "end": 12005, - "loc": { - "start": { - "line": 307, - "column": 8 - }, - "end": { - "line": 307, - "column": 31 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 11982, - "end": 11986, - "loc": { - "start": { - "line": 307, - "column": 8 - }, - "end": { - "line": 307, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 11988, - "end": 12005, - "loc": { - "start": { - "line": 307, - "column": 14 - }, - "end": { - "line": 307, - "column": 31 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 12001, - "end": 12003, - "loc": { - "start": { - "line": 307, - "column": 27 - }, - "end": { - "line": 307, - "column": 29 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 11989, - "end": 11999, - "loc": { - "start": { - "line": 307, - "column": 15 - }, - "end": { - "line": 307, - "column": 25 - } - }, - "value": { - "raw": "/document/", - "cooked": "/document/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 12004, - "end": 12004, - "loc": { - "start": { - "line": 307, - "column": 30 - }, - "end": { - "line": 307, - "column": 30 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 12015, - "end": 12084, - "loc": { - "start": { - "line": 308, - "column": 8 - }, - "end": { - "line": 311, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 12015, - "end": 12028, - "loc": { - "start": { - "line": 308, - "column": 8 - }, - "end": { - "line": 308, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 12030, - "end": 12084, - "loc": { - "start": { - "line": 308, - "column": 23 - }, - "end": { - "line": 311, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 12042, - "end": 12056, - "loc": { - "start": { - "line": 309, - "column": 10 - }, - "end": { - "line": 309, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 12042, - "end": 12046, - "loc": { - "start": { - "line": 309, - "column": 10 - }, - "end": { - "line": 309, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 12048, - "end": 12056, - "loc": { - "start": { - "line": 309, - "column": 16 - }, - "end": { - "line": 309, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 12068, - "end": 12073, - "loc": { - "start": { - "line": 310, - "column": 10 - }, - "end": { - "line": 310, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 12068, - "end": 12073, - "loc": { - "start": { - "line": 310, - "column": 10 - }, - "end": { - "line": 310, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 12068, - "end": 12073, - "loc": { - "start": { - "line": 310, - "column": 10 - }, - "end": { - "line": 310, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 12096, - "end": 12121, - "loc": { - "start": { - "line": 312, - "column": 10 - }, - "end": { - "line": 312, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 12096, - "end": 12111, - "loc": { - "start": { - "line": 312, - "column": 10 - }, - "end": { - "line": 312, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 12112, - "end": 12120, - "loc": { - "start": { - "line": 312, - "column": 26 - }, - "end": { - "line": 312, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 12130, - "end": 12132, - "loc": { - "start": { - "line": 313, - "column": 7 - }, - "end": { - "line": 313, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 12133, - "end": 12140, - "loc": { - "start": { - "line": 313, - "column": 10 - }, - "end": { - "line": 313, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 12142, - "end": 12164, - "loc": { - "start": { - "line": 313, - "column": 19 - }, - "end": { - "line": 313, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 12142, - "end": 12154, - "loc": { - "start": { - "line": 313, - "column": 19 - }, - "end": { - "line": 313, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 12155, - "end": 12163, - "loc": { - "start": { - "line": 313, - "column": 32 - }, - "end": { - "line": 313, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 12173, - "end": 12176, - "loc": { - "start": { - "line": 314, - "column": 7 - }, - "end": { - "line": 314, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document view payload\n * @typedef {Object} DocumentViewParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 8925, - "end": 9104, - "loc": { - "start": { - "line": 252, - "column": 2 - }, - "end": { - "line": 257, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document view response of specific document\n * @typedef {Object} DocumentViewResponse\n * @property {string} id - id of specific document\n * @property {string} user_id - id of user that uploaded document\n * @property {string} document_name - name of document\n * @property {string} page_count - amount of pages in the document\n * @property {string} created - timestamp document was created\n * @property {string} updated - timestamp document was updated\n * @property {string} original_filename - original filename with document format (.pdf, .doc, etc...)\n * @property {?string} origin_document_id - an id of original document (if document is a copy)\n * @property {string} owner - email of document owner\n * @property {boolean} template - is document a template or not\n * @property {Object} thumbnail - thumbnail urls with different sizes (small, medium, large)\n * @property {Object[]} signatures - signature signed elements\n * @property {Object[]} texts - text and enumeration filled elements\n * @property {Object[]} checks - checkbox checked elements\n * @property {Object[]} tags - field types document contains\n * @property {Object[]} fields - all document fillable fields\n * @property {Object[]} requests - requests for signing document\n * @property {Object[]} roles - document signer roles\n * @property {Object[]} field_invites - sent invites data\n * @property {number} version_time - document updated timestamp\n * @property {Object[]} enumeration_options - dropdown options\n * @property {Object[]} attachments - attachments in document\n * @property {Object[]} routing_details - signing steps routing details\n * @property {Object[]} integrations - document integrations\n * @property {Object[]} hyperlinks - document hyperlinks\n * @property {Object[]} radiobuttons - checked radiobuttons after document was signed\n * @property {Object[]} document_group_template_info - document group template's data\n * @property {Object[]} document_group_info - document group's data\n * @property {Object[]} originator_organization_settings - specific organization settings for document\n * @property {Object[]} field_validators - validation rules for fields (date fields, payment fields etc.)\n * @property {Object} settings - specific document settings\n * @property {string} parent_id - id of document folder\n * @property {string} originator_logo - logo url\n * @property {Object[]} pages - list of document pages with page sources and page size.\n ", - "start": 9108, - "end": 11623, - "loc": { - "start": { - "line": 259, - "column": 2 - }, - "end": { - "line": 296, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves a document detailed data\n * @param {DocumentViewParams} data - view document details payload\n * @param {function(err: ApiErrorResponse, res: DocumentViewResponse)} [callback] - error first node.js callback\n ", - "start": 11627, - "end": 11861, - "loc": { - "start": { - "line": 298, - "column": 2 - }, - "end": { - "line": 302, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} SignatureField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (signature)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} [label] - field label\n ", - "start": 12187, - "end": 12759, - "loc": { - "start": { - "line": 317, - "column": 2 - }, - "end": { - "line": 329, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} InitialsField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (initials)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} [label] - field label\n ", - "start": 12763, - "end": 13333, - "loc": { - "start": { - "line": 331, - "column": 2 - }, - "end": { - "line": 343, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} TextField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (text)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string|number} [prefilled_text] - prefilled field value\n * @property {string} [validator_id] - field value validator ID\n * @property {string} [label] - field label\n ", - "start": 13337, - "end": 14037, - "loc": { - "start": { - "line": 345, - "column": 2 - }, - "end": { - "line": 359, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} CheckField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (checkbox)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {boolean} [prefilled_text] - prefilled field value\n * @property {string} [label] - field label\n ", - "start": 14041, - "end": 14674, - "loc": { - "start": { - "line": 361, - "column": 2 - }, - "end": { - "line": 374, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} EnumerationField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (enumeration)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {Array} enumeration_options - choice options of enumerable field\n * @property {string|number} [prefilled_text] - prefilled field value\n * @property {string} [label] - field label\n * @property {boolean} [custom_defined_option=false] - if 'true' user can change values, if 'false' user can only read\n ", - "start": 14678, - "end": 15542, - "loc": { - "start": { - "line": 376, - "column": 2 - }, - "end": { - "line": 391, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} RadioButton\n * @property {number} page_number - page number of document\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} value - value of radio button\n * @property {string} checked - radio button check status\n * @property {number} created - redio button creation timestamp\n ", - "start": 15546, - "end": 16044, - "loc": { - "start": { - "line": 393, - "column": 2 - }, - "end": { - "line": 403, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} RadioButtonField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (radiobutton)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {RadioButton[]} radio - array of radio buttons\n * @property {string|number} [prefilled_text] - prefilled field value\n * @property {string} [label] - field label\n ", - "start": 16048, - "end": 16758, - "loc": { - "start": { - "line": 405, - "column": 2 - }, - "end": { - "line": 419, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} FormulaTreeBranchTerminator\n * @property {string} term - name of field which will participate in calculation formula\n ", - "start": 16762, - "end": 16913, - "loc": { - "start": { - "line": 421, - "column": 2 - }, - "end": { - "line": 424, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} FormulaTreeBranch\n * @property {FormulaTree} term - a part of formula parsed into tree\n ", - "start": 16917, - "end": 17038, - "loc": { - "start": { - "line": 426, - "column": 2 - }, - "end": { - "line": 429, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} FormulaTree\n * @property {string} operator - arithmetic operator's token\n * @property {FormulaTreeBranch|FormulaTreeBranchTerminator} left - left branch of formula tree\n * @property {FormulaTreeBranch|FormulaTreeBranchTerminator} right - right branch of formula tree\n ", - "start": 17042, - "end": 17347, - "loc": { - "start": { - "line": 431, - "column": 2 - }, - "end": { - "line": 436, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} CalculatedField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (text)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} formula - arithmetic formula, e.g. 'TextName+EnumerationName'\n * @property {FormulaTree} calculation_formula - formula parsed into tree\n * @property {number} calculation_precision - calculation precision\n * @property {string} [label] - field label\n * @property {boolean} [custom_defined_option=false] - if 'true' user can change values, if 'false' user can only read\n ", - "start": 17351, - "end": 18272, - "loc": { - "start": { - "line": 438, - "column": 2 - }, - "end": { - "line": 454, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} AttachmentField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (attachment)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} [label] - field label\n ", - "start": 18276, - "end": 18850, - "loc": { - "start": { - "line": 456, - "column": 2 - }, - "end": { - "line": 468, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} DocumentFields\n * @property {number} client_timestamp - local time of user\n * @property {Array} fields - all types of fields\n ", - "start": 18854, - "end": 19132, - "loc": { - "start": { - "line": 470, - "column": 2 - }, - "end": { - "line": 474, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update document payload\n * @typedef {Object} DocumentUpdateParams\n * @property {string} id - id of specific document\n * @property {DocumentFields} fields - set of fields\n * @property {string} token - your auth token\n ", - "start": 19136, - "end": 19374, - "loc": { - "start": { - "line": 476, - "column": 2 - }, - "end": { - "line": 482, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update document response data\n * @typedef {Object} DocumentUpdateResponse\n * @property {string} id - an id of document\n * @property {Object[]} signatures - signature and initial elements\n * @property {Object[]} texts - text and enumeration elements\n * @property {Object[]} checks - checkbox elements\n * @property {Object[]} attachments - attachment elements\n * @property {Object[]} radiobuttons - radiobutton elements\n ", - "start": 19378, - "end": 19824, - "loc": { - "start": { - "line": 484, - "column": 2 - }, - "end": { - "line": 493, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Updates an existing document.\n * Adds fields (signature, text, initials, checkbox, radiobutton group, calculated) and elements (signature, text, check).\n * Every call of this method will add only specified fields into document.\n * Old fields will be removed\n * @param {DocumentUpdateParams} data - update document request payload\n * @param {function(err: ApiErrorResponse, res: DocumentUpdateResponse)} [callback] - error first node.js callback\n ", - "start": 19828, - "end": 20297, - "loc": { - "start": { - "line": 495, - "column": 2 - }, - "end": { - "line": 502, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 20300, - "end": 20862, - "loc": { - "start": { - "line": 503, - "column": 2 - }, - "end": { - "line": 526, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 20307, - "end": 20313, - "loc": { - "start": { - "line": 503, - "column": 9 - }, - "end": { - "line": 503, - "column": 15 - }, - "identifierName": "update" - }, - "name": "update" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 20315, - "end": 20351, - "loc": { - "start": { - "line": 503, - "column": 17 - }, - "end": { - "line": 507, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 20321, - "end": 20323, - "loc": { - "start": { - "line": 504, - "column": 4 - }, - "end": { - "line": 504, - "column": 6 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 20321, - "end": 20323, - "loc": { - "start": { - "line": 504, - "column": 4 - }, - "end": { - "line": 504, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 20321, - "end": 20323, - "loc": { - "start": { - "line": 504, - "column": 4 - }, - "end": { - "line": 504, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 20329, - "end": 20335, - "loc": { - "start": { - "line": 505, - "column": 4 - }, - "end": { - "line": 505, - "column": 10 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 20329, - "end": 20335, - "loc": { - "start": { - "line": 505, - "column": 4 - }, - "end": { - "line": 505, - "column": 10 - }, - "identifierName": "fields" - }, - "name": "fields" - }, - "value": { - "type": "Identifier", - "start": 20329, - "end": 20335, - "loc": { - "start": { - "line": 505, - "column": 4 - }, - "end": { - "line": 505, - "column": 10 - }, - "identifierName": "fields" - }, - "name": "fields" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 20341, - "end": 20346, - "loc": { - "start": { - "line": 506, - "column": 4 - }, - "end": { - "line": 506, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 20341, - "end": 20346, - "loc": { - "start": { - "line": 506, - "column": 4 - }, - "end": { - "line": 506, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 20341, - "end": 20346, - "loc": { - "start": { - "line": 506, - "column": 4 - }, - "end": { - "line": 506, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 20353, - "end": 20361, - "loc": { - "start": { - "line": 507, - "column": 5 - }, - "end": { - "line": 507, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 20363, - "end": 20862, - "loc": { - "start": { - "line": 507, - "column": 15 - }, - "end": { - "line": 526, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 20369, - "end": 20409, - "loc": { - "start": { - "line": 508, - "column": 4 - }, - "end": { - "line": 508, - "column": 44 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20375, - "end": 20408, - "loc": { - "start": { - "line": 508, - "column": 10 - }, - "end": { - "line": 508, - "column": 43 - } - }, - "id": { - "type": "Identifier", - "start": 20375, - "end": 20383, - "loc": { - "start": { - "line": 508, - "column": 10 - }, - "end": { - "line": 508, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 20386, - "end": 20408, - "loc": { - "start": { - "line": 508, - "column": 21 - }, - "end": { - "line": 508, - "column": 43 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20386, - "end": 20400, - "loc": { - "start": { - "line": 508, - "column": 21 - }, - "end": { - "line": 508, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 20386, - "end": 20390, - "loc": { - "start": { - "line": 508, - "column": 21 - }, - "end": { - "line": 508, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 20391, - "end": 20400, - "loc": { - "start": { - "line": 508, - "column": 26 - }, - "end": { - "line": 508, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 20401, - "end": 20407, - "loc": { - "start": { - "line": 508, - "column": 36 - }, - "end": { - "line": 508, - "column": 42 - }, - "identifierName": "fields" - }, - "name": "fields" - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 20414, - "end": 20817, - "loc": { - "start": { - "line": 509, - "column": 4 - }, - "end": { - "line": 522, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20420, - "end": 20816, - "loc": { - "start": { - "line": 509, - "column": 10 - }, - "end": { - "line": 522, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 20420, - "end": 20423, - "loc": { - "start": { - "line": 509, - "column": 10 - }, - "end": { - "line": 509, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 20426, - "end": 20816, - "loc": { - "start": { - "line": 509, - "column": 16 - }, - "end": { - "line": 522, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20426, - "end": 20783, - "loc": { - "start": { - "line": 509, - "column": 16 - }, - "end": { - "line": 522, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 20426, - "end": 20773, - "loc": { - "start": { - "line": 509, - "column": 16 - }, - "end": { - "line": 521, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20426, - "end": 20446, - "loc": { - "start": { - "line": 509, - "column": 16 - }, - "end": { - "line": 510, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 20426, - "end": 20431, - "loc": { - "start": { - "line": 509, - "column": 16 - }, - "end": { - "line": 509, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 20439, - "end": 20446, - "loc": { - "start": { - "line": 510, - "column": 7 - }, - "end": { - "line": 510, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 20447, - "end": 20745, - "loc": { - "start": { - "line": 510, - "column": 15 - }, - "end": { - "line": 521, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 20447, - "end": 20466, - "loc": { - "start": { - "line": 510, - "column": 15 - }, - "end": { - "line": 510, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 20467, - "end": 20744, - "loc": { - "start": { - "line": 510, - "column": 35 - }, - "end": { - "line": 521, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 20477, - "end": 20490, - "loc": { - "start": { - "line": 511, - "column": 8 - }, - "end": { - "line": 511, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 20477, - "end": 20483, - "loc": { - "start": { - "line": 511, - "column": 8 - }, - "end": { - "line": 511, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 20485, - "end": 20490, - "loc": { - "start": { - "line": 511, - "column": 16 - }, - "end": { - "line": 511, - "column": 21 - } - }, - "extra": { - "rawValue": "PUT", - "raw": "'PUT'" - }, - "value": "PUT" - } - }, - { - "type": "ObjectProperty", - "start": 20500, - "end": 20523, - "loc": { - "start": { - "line": 512, - "column": 8 - }, - "end": { - "line": 512, - "column": 31 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 20500, - "end": 20504, - "loc": { - "start": { - "line": 512, - "column": 8 - }, - "end": { - "line": 512, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 20506, - "end": 20523, - "loc": { - "start": { - "line": 512, - "column": 14 - }, - "end": { - "line": 512, - "column": 31 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 20519, - "end": 20521, - "loc": { - "start": { - "line": 512, - "column": 27 - }, - "end": { - "line": 512, - "column": 29 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 20507, - "end": 20517, - "loc": { - "start": { - "line": 512, - "column": 15 - }, - "end": { - "line": 512, - "column": 25 - } - }, - "value": { - "raw": "/document/", - "cooked": "/document/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 20522, - "end": 20522, - "loc": { - "start": { - "line": 512, - "column": 30 - }, - "end": { - "line": 512, - "column": 30 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 20533, - "end": 20602, - "loc": { - "start": { - "line": 513, - "column": 8 - }, - "end": { - "line": 516, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 20533, - "end": 20546, - "loc": { - "start": { - "line": 513, - "column": 8 - }, - "end": { - "line": 513, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 20548, - "end": 20602, - "loc": { - "start": { - "line": 513, - "column": 23 - }, - "end": { - "line": 516, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 20560, - "end": 20574, - "loc": { - "start": { - "line": 514, - "column": 10 - }, - "end": { - "line": 514, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 20560, - "end": 20564, - "loc": { - "start": { - "line": 514, - "column": 10 - }, - "end": { - "line": 514, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 20566, - "end": 20574, - "loc": { - "start": { - "line": 514, - "column": 16 - }, - "end": { - "line": 514, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 20586, - "end": 20591, - "loc": { - "start": { - "line": 515, - "column": 10 - }, - "end": { - "line": 515, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 20586, - "end": 20591, - "loc": { - "start": { - "line": 515, - "column": 10 - }, - "end": { - "line": 515, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 20586, - "end": 20591, - "loc": { - "start": { - "line": 515, - "column": 10 - }, - "end": { - "line": 515, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 20612, - "end": 20735, - "loc": { - "start": { - "line": 517, - "column": 8 - }, - "end": { - "line": 520, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 20612, - "end": 20619, - "loc": { - "start": { - "line": 517, - "column": 8 - }, - "end": { - "line": 517, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 20621, - "end": 20735, - "loc": { - "start": { - "line": 517, - "column": 17 - }, - "end": { - "line": 520, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 20633, - "end": 20667, - "loc": { - "start": { - "line": 518, - "column": 10 - }, - "end": { - "line": 518, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 20633, - "end": 20647, - "loc": { - "start": { - "line": 518, - "column": 10 - }, - "end": { - "line": 518, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 20649, - "end": 20667, - "loc": { - "start": { - "line": 518, - "column": 26 - }, - "end": { - "line": 518, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 20679, - "end": 20724, - "loc": { - "start": { - "line": 519, - "column": 10 - }, - "end": { - "line": 519, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 20679, - "end": 20695, - "loc": { - "start": { - "line": 519, - "column": 10 - }, - "end": { - "line": 519, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 20697, - "end": 20724, - "loc": { - "start": { - "line": 519, - "column": 28 - }, - "end": { - "line": 519, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20697, - "end": 20714, - "loc": { - "start": { - "line": 519, - "column": 28 - }, - "end": { - "line": 519, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 20697, - "end": 20703, - "loc": { - "start": { - "line": 519, - "column": 28 - }, - "end": { - "line": 519, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 20704, - "end": 20714, - "loc": { - "start": { - "line": 519, - "column": 35 - }, - "end": { - "line": 519, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 20715, - "end": 20723, - "loc": { - "start": { - "line": 519, - "column": 46 - }, - "end": { - "line": 519, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 20747, - "end": 20772, - "loc": { - "start": { - "line": 521, - "column": 10 - }, - "end": { - "line": 521, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 20747, - "end": 20762, - "loc": { - "start": { - "line": 521, - "column": 10 - }, - "end": { - "line": 521, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 20763, - "end": 20771, - "loc": { - "start": { - "line": 521, - "column": 26 - }, - "end": { - "line": 521, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 20781, - "end": 20783, - "loc": { - "start": { - "line": 522, - "column": 7 - }, - "end": { - "line": 522, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 20784, - "end": 20791, - "loc": { - "start": { - "line": 522, - "column": 10 - }, - "end": { - "line": 522, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 20793, - "end": 20815, - "loc": { - "start": { - "line": 522, - "column": 19 - }, - "end": { - "line": 522, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 20793, - "end": 20805, - "loc": { - "start": { - "line": 522, - "column": 19 - }, - "end": { - "line": 522, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 20806, - "end": 20814, - "loc": { - "start": { - "line": 522, - "column": 32 - }, - "end": { - "line": 522, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 20823, - "end": 20843, - "loc": { - "start": { - "line": 524, - "column": 4 - }, - "end": { - "line": 524, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 20823, - "end": 20842, - "loc": { - "start": { - "line": 524, - "column": 4 - }, - "end": { - "line": 524, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20823, - "end": 20832, - "loc": { - "start": { - "line": 524, - "column": 4 - }, - "end": { - "line": 524, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 20823, - "end": 20826, - "loc": { - "start": { - "line": 524, - "column": 4 - }, - "end": { - "line": 524, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 20827, - "end": 20832, - "loc": { - "start": { - "line": 524, - "column": 8 - }, - "end": { - "line": 524, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 20833, - "end": 20841, - "loc": { - "start": { - "line": 524, - "column": 14 - }, - "end": { - "line": 524, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 20848, - "end": 20858, - "loc": { - "start": { - "line": 525, - "column": 4 - }, - "end": { - "line": 525, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 20848, - "end": 20857, - "loc": { - "start": { - "line": 525, - "column": 4 - }, - "end": { - "line": 525, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20848, - "end": 20855, - "loc": { - "start": { - "line": 525, - "column": 4 - }, - "end": { - "line": 525, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 20848, - "end": 20851, - "loc": { - "start": { - "line": 525, - "column": 4 - }, - "end": { - "line": 525, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 20852, - "end": 20855, - "loc": { - "start": { - "line": 525, - "column": 8 - }, - "end": { - "line": 525, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} SignatureField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (signature)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} [label] - field label\n ", - "start": 12187, - "end": 12759, - "loc": { - "start": { - "line": 317, - "column": 2 - }, - "end": { - "line": 329, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} InitialsField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (initials)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} [label] - field label\n ", - "start": 12763, - "end": 13333, - "loc": { - "start": { - "line": 331, - "column": 2 - }, - "end": { - "line": 343, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} TextField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (text)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string|number} [prefilled_text] - prefilled field value\n * @property {string} [validator_id] - field value validator ID\n * @property {string} [label] - field label\n ", - "start": 13337, - "end": 14037, - "loc": { - "start": { - "line": 345, - "column": 2 - }, - "end": { - "line": 359, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} CheckField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (checkbox)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {boolean} [prefilled_text] - prefilled field value\n * @property {string} [label] - field label\n ", - "start": 14041, - "end": 14674, - "loc": { - "start": { - "line": 361, - "column": 2 - }, - "end": { - "line": 374, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} EnumerationField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (enumeration)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {Array} enumeration_options - choice options of enumerable field\n * @property {string|number} [prefilled_text] - prefilled field value\n * @property {string} [label] - field label\n * @property {boolean} [custom_defined_option=false] - if 'true' user can change values, if 'false' user can only read\n ", - "start": 14678, - "end": 15542, - "loc": { - "start": { - "line": 376, - "column": 2 - }, - "end": { - "line": 391, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} RadioButton\n * @property {number} page_number - page number of document\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} value - value of radio button\n * @property {string} checked - radio button check status\n * @property {number} created - redio button creation timestamp\n ", - "start": 15546, - "end": 16044, - "loc": { - "start": { - "line": 393, - "column": 2 - }, - "end": { - "line": 403, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} RadioButtonField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (radiobutton)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {RadioButton[]} radio - array of radio buttons\n * @property {string|number} [prefilled_text] - prefilled field value\n * @property {string} [label] - field label\n ", - "start": 16048, - "end": 16758, - "loc": { - "start": { - "line": 405, - "column": 2 - }, - "end": { - "line": 419, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} FormulaTreeBranchTerminator\n * @property {string} term - name of field which will participate in calculation formula\n ", - "start": 16762, - "end": 16913, - "loc": { - "start": { - "line": 421, - "column": 2 - }, - "end": { - "line": 424, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} FormulaTreeBranch\n * @property {FormulaTree} term - a part of formula parsed into tree\n ", - "start": 16917, - "end": 17038, - "loc": { - "start": { - "line": 426, - "column": 2 - }, - "end": { - "line": 429, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} FormulaTree\n * @property {string} operator - arithmetic operator's token\n * @property {FormulaTreeBranch|FormulaTreeBranchTerminator} left - left branch of formula tree\n * @property {FormulaTreeBranch|FormulaTreeBranchTerminator} right - right branch of formula tree\n ", - "start": 17042, - "end": 17347, - "loc": { - "start": { - "line": 431, - "column": 2 - }, - "end": { - "line": 436, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} CalculatedField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (text)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} formula - arithmetic formula, e.g. 'TextName+EnumerationName'\n * @property {FormulaTree} calculation_formula - formula parsed into tree\n * @property {number} calculation_precision - calculation precision\n * @property {string} [label] - field label\n * @property {boolean} [custom_defined_option=false] - if 'true' user can change values, if 'false' user can only read\n ", - "start": 17351, - "end": 18272, - "loc": { - "start": { - "line": 438, - "column": 2 - }, - "end": { - "line": 454, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} AttachmentField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (attachment)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} [label] - field label\n ", - "start": 18276, - "end": 18850, - "loc": { - "start": { - "line": 456, - "column": 2 - }, - "end": { - "line": 468, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} DocumentFields\n * @property {number} client_timestamp - local time of user\n * @property {Array} fields - all types of fields\n ", - "start": 18854, - "end": 19132, - "loc": { - "start": { - "line": 470, - "column": 2 - }, - "end": { - "line": 474, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update document payload\n * @typedef {Object} DocumentUpdateParams\n * @property {string} id - id of specific document\n * @property {DocumentFields} fields - set of fields\n * @property {string} token - your auth token\n ", - "start": 19136, - "end": 19374, - "loc": { - "start": { - "line": 476, - "column": 2 - }, - "end": { - "line": 482, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update document response data\n * @typedef {Object} DocumentUpdateResponse\n * @property {string} id - an id of document\n * @property {Object[]} signatures - signature and initial elements\n * @property {Object[]} texts - text and enumeration elements\n * @property {Object[]} checks - checkbox elements\n * @property {Object[]} attachments - attachment elements\n * @property {Object[]} radiobuttons - radiobutton elements\n ", - "start": 19378, - "end": 19824, - "loc": { - "start": { - "line": 484, - "column": 2 - }, - "end": { - "line": 493, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Updates an existing document.\n * Adds fields (signature, text, initials, checkbox, radiobutton group, calculated) and elements (signature, text, check).\n * Every call of this method will add only specified fields into document.\n * Old fields will be removed\n * @param {DocumentUpdateParams} data - update document request payload\n * @param {function(err: ApiErrorResponse, res: DocumentUpdateResponse)} [callback] - error first node.js callback\n ", - "start": 19828, - "end": 20297, - "loc": { - "start": { - "line": 495, - "column": 2 - }, - "end": { - "line": 502, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document download payload\n * @typedef {Object} DocumentDownloadParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 20866, - "end": 21053, - "loc": { - "start": { - "line": 528, - "column": 2 - }, - "end": { - "line": 533, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document binary data\n * @typedef {Buffer} DocumentDownloadResponse\n ", - "start": 21057, - "end": 21140, - "loc": { - "start": { - "line": 535, - "column": 2 - }, - "end": { - "line": 538, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Downloads document with embedded fields and elements\n * @param {DocumentDownloadParams} data - download document request payload\n * @param {function(err: ApiErrorResponse, res: DocumentDownloadResponse)} [callback] - error first node.js callback\n ", - "start": 21144, - "end": 21408, - "loc": { - "start": { - "line": 540, - "column": 2 - }, - "end": { - "line": 544, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 21412, - "end": 21777, - "loc": { - "start": { - "line": 546, - "column": 2 - }, - "end": { - "line": 558, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 21419, - "end": 21427, - "loc": { - "start": { - "line": 546, - "column": 9 - }, - "end": { - "line": 546, - "column": 17 - }, - "identifierName": "download" - }, - "name": "download" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 21429, - "end": 21442, - "loc": { - "start": { - "line": 546, - "column": 19 - }, - "end": { - "line": 546, - "column": 32 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21431, - "end": 21433, - "loc": { - "start": { - "line": 546, - "column": 21 - }, - "end": { - "line": 546, - "column": 23 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 21431, - "end": 21433, - "loc": { - "start": { - "line": 546, - "column": 21 - }, - "end": { - "line": 546, - "column": 23 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 21431, - "end": 21433, - "loc": { - "start": { - "line": 546, - "column": 21 - }, - "end": { - "line": 546, - "column": 23 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 21435, - "end": 21440, - "loc": { - "start": { - "line": 546, - "column": 25 - }, - "end": { - "line": 546, - "column": 30 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 21435, - "end": 21440, - "loc": { - "start": { - "line": 546, - "column": 25 - }, - "end": { - "line": 546, - "column": 30 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 21435, - "end": 21440, - "loc": { - "start": { - "line": 546, - "column": 25 - }, - "end": { - "line": 546, - "column": 30 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 21444, - "end": 21452, - "loc": { - "start": { - "line": 546, - "column": 34 - }, - "end": { - "line": 546, - "column": 42 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 21454, - "end": 21777, - "loc": { - "start": { - "line": 546, - "column": 44 - }, - "end": { - "line": 558, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 21460, - "end": 21773, - "loc": { - "start": { - "line": 547, - "column": 4 - }, - "end": { - "line": 557, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 21460, - "end": 21772, - "loc": { - "start": { - "line": 547, - "column": 4 - }, - "end": { - "line": 557, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21460, - "end": 21770, - "loc": { - "start": { - "line": 547, - "column": 4 - }, - "end": { - "line": 557, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 21460, - "end": 21759, - "loc": { - "start": { - "line": 547, - "column": 4 - }, - "end": { - "line": 556, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21460, - "end": 21726, - "loc": { - "start": { - "line": 547, - "column": 4 - }, - "end": { - "line": 556, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 21460, - "end": 21716, - "loc": { - "start": { - "line": 547, - "column": 4 - }, - "end": { - "line": 555, - "column": 54 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21460, - "end": 21480, - "loc": { - "start": { - "line": 547, - "column": 4 - }, - "end": { - "line": 548, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 21460, - "end": 21465, - "loc": { - "start": { - "line": 547, - "column": 4 - }, - "end": { - "line": 547, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 21473, - "end": 21480, - "loc": { - "start": { - "line": 548, - "column": 7 - }, - "end": { - "line": 548, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 21481, - "end": 21670, - "loc": { - "start": { - "line": 548, - "column": 15 - }, - "end": { - "line": 555, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 21481, - "end": 21500, - "loc": { - "start": { - "line": 548, - "column": 15 - }, - "end": { - "line": 548, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 21501, - "end": 21669, - "loc": { - "start": { - "line": 548, - "column": 35 - }, - "end": { - "line": 555, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21511, - "end": 21524, - "loc": { - "start": { - "line": 549, - "column": 8 - }, - "end": { - "line": 549, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 21511, - "end": 21517, - "loc": { - "start": { - "line": 549, - "column": 8 - }, - "end": { - "line": 549, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 21519, - "end": 21524, - "loc": { - "start": { - "line": 549, - "column": 16 - }, - "end": { - "line": 549, - "column": 21 - } - }, - "extra": { - "rawValue": "GET", - "raw": "'GET'" - }, - "value": "GET" - } - }, - { - "type": "ObjectProperty", - "start": 21534, - "end": 21581, - "loc": { - "start": { - "line": 550, - "column": 8 - }, - "end": { - "line": 550, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 21534, - "end": 21538, - "loc": { - "start": { - "line": 550, - "column": 8 - }, - "end": { - "line": 550, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 21540, - "end": 21581, - "loc": { - "start": { - "line": 550, - "column": 14 - }, - "end": { - "line": 550, - "column": 55 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 21553, - "end": 21555, - "loc": { - "start": { - "line": 550, - "column": 27 - }, - "end": { - "line": 550, - "column": 29 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 21541, - "end": 21551, - "loc": { - "start": { - "line": 550, - "column": 15 - }, - "end": { - "line": 550, - "column": 25 - } - }, - "value": { - "raw": "/document/", - "cooked": "/document/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 21556, - "end": 21580, - "loc": { - "start": { - "line": 550, - "column": 30 - }, - "end": { - "line": 550, - "column": 54 - } - }, - "value": { - "raw": "/download?type=collapsed", - "cooked": "/download?type=collapsed" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 21591, - "end": 21660, - "loc": { - "start": { - "line": 551, - "column": 8 - }, - "end": { - "line": 554, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 21591, - "end": 21604, - "loc": { - "start": { - "line": 551, - "column": 8 - }, - "end": { - "line": 551, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 21606, - "end": 21660, - "loc": { - "start": { - "line": 551, - "column": 23 - }, - "end": { - "line": 554, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21618, - "end": 21632, - "loc": { - "start": { - "line": 552, - "column": 10 - }, - "end": { - "line": 552, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 21618, - "end": 21622, - "loc": { - "start": { - "line": 552, - "column": 10 - }, - "end": { - "line": 552, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 21624, - "end": 21632, - "loc": { - "start": { - "line": 552, - "column": 16 - }, - "end": { - "line": 552, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 21644, - "end": 21649, - "loc": { - "start": { - "line": 553, - "column": 10 - }, - "end": { - "line": 553, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 21644, - "end": 21649, - "loc": { - "start": { - "line": 553, - "column": 10 - }, - "end": { - "line": 553, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 21644, - "end": 21649, - "loc": { - "start": { - "line": 553, - "column": 10 - }, - "end": { - "line": 553, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 21672, - "end": 21715, - "loc": { - "start": { - "line": 555, - "column": 10 - }, - "end": { - "line": 555, - "column": 53 - } - }, - "callee": { - "type": "Identifier", - "start": 21672, - "end": 21687, - "loc": { - "start": { - "line": 555, - "column": 10 - }, - "end": { - "line": 555, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 21688, - "end": 21696, - "loc": { - "start": { - "line": 555, - "column": 26 - }, - "end": { - "line": 555, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - { - "type": "ObjectExpression", - "start": 21698, - "end": 21714, - "loc": { - "start": { - "line": 555, - "column": 36 - }, - "end": { - "line": 555, - "column": 52 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21700, - "end": 21712, - "loc": { - "start": { - "line": 555, - "column": 38 - }, - "end": { - "line": 555, - "column": 50 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 21700, - "end": 21705, - "loc": { - "start": { - "line": 555, - "column": 38 - }, - "end": { - "line": 555, - "column": 43 - }, - "identifierName": "parse" - }, - "name": "parse" - }, - "value": { - "type": "BooleanLiteral", - "start": 21707, - "end": 21712, - "loc": { - "start": { - "line": 555, - "column": 45 - }, - "end": { - "line": 555, - "column": 50 - } - }, - "value": false - } - } - ] - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 21724, - "end": 21726, - "loc": { - "start": { - "line": 556, - "column": 7 - }, - "end": { - "line": 556, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 21727, - "end": 21734, - "loc": { - "start": { - "line": 556, - "column": 10 - }, - "end": { - "line": 556, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 21736, - "end": 21758, - "loc": { - "start": { - "line": 556, - "column": 19 - }, - "end": { - "line": 556, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 21736, - "end": 21748, - "loc": { - "start": { - "line": 556, - "column": 19 - }, - "end": { - "line": 556, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 21749, - "end": 21757, - "loc": { - "start": { - "line": 556, - "column": 32 - }, - "end": { - "line": 556, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 21767, - "end": 21770, - "loc": { - "start": { - "line": 557, - "column": 7 - }, - "end": { - "line": 557, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document download payload\n * @typedef {Object} DocumentDownloadParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 20866, - "end": 21053, - "loc": { - "start": { - "line": 528, - "column": 2 - }, - "end": { - "line": 533, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document binary data\n * @typedef {Buffer} DocumentDownloadResponse\n ", - "start": 21057, - "end": 21140, - "loc": { - "start": { - "line": 535, - "column": 2 - }, - "end": { - "line": 538, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Downloads document with embedded fields and elements\n * @param {DocumentDownloadParams} data - download document request payload\n * @param {function(err: ApiErrorResponse, res: DocumentDownloadResponse)} [callback] - error first node.js callback\n ", - "start": 21144, - "end": 21408, - "loc": { - "start": { - "line": 540, - "column": 2 - }, - "end": { - "line": 544, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " creates a one-time use URL for anyone to download the document as a PDF.", - "start": 21781, - "end": 21856, - "loc": { - "start": { - "line": 560, - "column": 2 - }, - "end": { - "line": 560, - "column": 77 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 21859, - "end": 22194, - "loc": { - "start": { - "line": 561, - "column": 2 - }, - "end": { - "line": 573, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 21866, - "end": 21871, - "loc": { - "start": { - "line": 561, - "column": 9 - }, - "end": { - "line": 561, - "column": 14 - }, - "identifierName": "share" - }, - "name": "share" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 21873, - "end": 21886, - "loc": { - "start": { - "line": 561, - "column": 16 - }, - "end": { - "line": 561, - "column": 29 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21875, - "end": 21877, - "loc": { - "start": { - "line": 561, - "column": 18 - }, - "end": { - "line": 561, - "column": 20 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 21875, - "end": 21877, - "loc": { - "start": { - "line": 561, - "column": 18 - }, - "end": { - "line": 561, - "column": 20 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 21875, - "end": 21877, - "loc": { - "start": { - "line": 561, - "column": 18 - }, - "end": { - "line": 561, - "column": 20 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 21879, - "end": 21884, - "loc": { - "start": { - "line": 561, - "column": 22 - }, - "end": { - "line": 561, - "column": 27 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 21879, - "end": 21884, - "loc": { - "start": { - "line": 561, - "column": 22 - }, - "end": { - "line": 561, - "column": 27 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 21879, - "end": 21884, - "loc": { - "start": { - "line": 561, - "column": 22 - }, - "end": { - "line": 561, - "column": 27 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 21888, - "end": 21896, - "loc": { - "start": { - "line": 561, - "column": 31 - }, - "end": { - "line": 561, - "column": 39 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 21898, - "end": 22194, - "loc": { - "start": { - "line": 561, - "column": 41 - }, - "end": { - "line": 573, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 21904, - "end": 22190, - "loc": { - "start": { - "line": 562, - "column": 4 - }, - "end": { - "line": 572, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 21904, - "end": 22189, - "loc": { - "start": { - "line": 562, - "column": 4 - }, - "end": { - "line": 572, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21904, - "end": 22187, - "loc": { - "start": { - "line": 562, - "column": 4 - }, - "end": { - "line": 572, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 21904, - "end": 22176, - "loc": { - "start": { - "line": 562, - "column": 4 - }, - "end": { - "line": 571, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21904, - "end": 22143, - "loc": { - "start": { - "line": 562, - "column": 4 - }, - "end": { - "line": 571, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 21904, - "end": 22133, - "loc": { - "start": { - "line": 562, - "column": 4 - }, - "end": { - "line": 570, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21904, - "end": 21924, - "loc": { - "start": { - "line": 562, - "column": 4 - }, - "end": { - "line": 563, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 21904, - "end": 21909, - "loc": { - "start": { - "line": 562, - "column": 4 - }, - "end": { - "line": 562, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 21917, - "end": 21924, - "loc": { - "start": { - "line": 563, - "column": 7 - }, - "end": { - "line": 563, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 21925, - "end": 22105, - "loc": { - "start": { - "line": 563, - "column": 15 - }, - "end": { - "line": 570, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 21925, - "end": 21944, - "loc": { - "start": { - "line": 563, - "column": 15 - }, - "end": { - "line": 563, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 21945, - "end": 22104, - "loc": { - "start": { - "line": 563, - "column": 35 - }, - "end": { - "line": 570, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21955, - "end": 21969, - "loc": { - "start": { - "line": 564, - "column": 8 - }, - "end": { - "line": 564, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 21955, - "end": 21961, - "loc": { - "start": { - "line": 564, - "column": 8 - }, - "end": { - "line": 564, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 21963, - "end": 21969, - "loc": { - "start": { - "line": 564, - "column": 16 - }, - "end": { - "line": 564, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 21979, - "end": 22016, - "loc": { - "start": { - "line": 565, - "column": 8 - }, - "end": { - "line": 565, - "column": 45 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 21979, - "end": 21983, - "loc": { - "start": { - "line": 565, - "column": 8 - }, - "end": { - "line": 565, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 21985, - "end": 22016, - "loc": { - "start": { - "line": 565, - "column": 14 - }, - "end": { - "line": 565, - "column": 45 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 21998, - "end": 22000, - "loc": { - "start": { - "line": 565, - "column": 27 - }, - "end": { - "line": 565, - "column": 29 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 21986, - "end": 21996, - "loc": { - "start": { - "line": 565, - "column": 15 - }, - "end": { - "line": 565, - "column": 25 - } - }, - "value": { - "raw": "/document/", - "cooked": "/document/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 22001, - "end": 22015, - "loc": { - "start": { - "line": 565, - "column": 30 - }, - "end": { - "line": 565, - "column": 44 - } - }, - "value": { - "raw": "/download/link", - "cooked": "/download/link" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 22026, - "end": 22095, - "loc": { - "start": { - "line": 566, - "column": 8 - }, - "end": { - "line": 569, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 22026, - "end": 22039, - "loc": { - "start": { - "line": 566, - "column": 8 - }, - "end": { - "line": 566, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 22041, - "end": 22095, - "loc": { - "start": { - "line": 566, - "column": 23 - }, - "end": { - "line": 569, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 22053, - "end": 22067, - "loc": { - "start": { - "line": 567, - "column": 10 - }, - "end": { - "line": 567, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 22053, - "end": 22057, - "loc": { - "start": { - "line": 567, - "column": 10 - }, - "end": { - "line": 567, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 22059, - "end": 22067, - "loc": { - "start": { - "line": 567, - "column": 16 - }, - "end": { - "line": 567, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 22079, - "end": 22084, - "loc": { - "start": { - "line": 568, - "column": 10 - }, - "end": { - "line": 568, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 22079, - "end": 22084, - "loc": { - "start": { - "line": 568, - "column": 10 - }, - "end": { - "line": 568, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 22079, - "end": 22084, - "loc": { - "start": { - "line": 568, - "column": 10 - }, - "end": { - "line": 568, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 22107, - "end": 22132, - "loc": { - "start": { - "line": 570, - "column": 10 - }, - "end": { - "line": 570, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 22107, - "end": 22122, - "loc": { - "start": { - "line": 570, - "column": 10 - }, - "end": { - "line": 570, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 22123, - "end": 22131, - "loc": { - "start": { - "line": 570, - "column": 26 - }, - "end": { - "line": 570, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 22141, - "end": 22143, - "loc": { - "start": { - "line": 571, - "column": 7 - }, - "end": { - "line": 571, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 22144, - "end": 22151, - "loc": { - "start": { - "line": 571, - "column": 10 - }, - "end": { - "line": 571, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 22153, - "end": 22175, - "loc": { - "start": { - "line": 571, - "column": 19 - }, - "end": { - "line": 571, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 22153, - "end": 22165, - "loc": { - "start": { - "line": 571, - "column": 19 - }, - "end": { - "line": 571, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 22166, - "end": 22174, - "loc": { - "start": { - "line": 571, - "column": 32 - }, - "end": { - "line": 571, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 22184, - "end": 22187, - "loc": { - "start": { - "line": 572, - "column": 7 - }, - "end": { - "line": 572, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " creates a one-time use URL for anyone to download the document as a PDF.", - "start": 21781, - "end": 21856, - "loc": { - "start": { - "line": 560, - "column": 2 - }, - "end": { - "line": 560, - "column": 77 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document invite signer settings\n * @typedef {Object} SignerSettings\n * @property {string} email - signer's email\n * @property {string} role - role name\n * @property {string} role_id - role unique id (can be discovered in document details)\n * @property {number} order - role signing order\n * @property {string} reassign - allow reassign signer\n * @property {string} decline_by_signature - signer can decline invite\n * @property {number} reminder - remind via email in days\n * @property {number} expiration_days - expiration of invite in days\n * @property {string} [subject] - specify subject of email\n * @property {string} [message] - specify body of email\n ", - "start": 22198, - "end": 22890, - "loc": { - "start": { - "line": 575, - "column": 2 - }, - "end": { - "line": 588, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document invite settings\n * @typedef {Object} DocumentInviteSettings\n * @property {string} from - email of sender\n * @property {SignerSettings[]|string} to - array of signers or email of single signer\n * @property {string} [document_id] - an id of document\n * @property {string[]} [cc] - array with emails of copy receivers\n * @property {string} [subject] - specify subject of email\n * @property {string} [message] - specify body of email\n * @property {string} [on_complete] - on signing complete action\n ", - "start": 22894, - "end": 23428, - "loc": { - "start": { - "line": 590, - "column": 2 - }, - "end": { - "line": 600, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document invite optional settings\n * @typedef {Object} DocumentInviteOptions\n * @property {string} [email] - ability to disable invitation by email. to disabale email assign value 'disable'\n ", - "start": 23432, - "end": 23640, - "loc": { - "start": { - "line": 602, - "column": 2 - }, - "end": { - "line": 606, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document invite payload\n * @typedef {Object} DocumentInviteParams\n * @property {string} id - an id of document\n * @property {DocumentInviteSettings} data - document invite settings\n * @property {DocumentInviteOptions} [options] - document invite optional settings\n * @property {string} token - your auth token\n ", - "start": 23644, - "end": 23985, - "loc": { - "start": { - "line": 608, - "column": 2 - }, - "end": { - "line": 615, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document field invite response data\n * @typedef {Object} DocumentFieldInviteResponse\n * @property {string} status - status of invitation, e.g. 'success'\n ", - "start": 23989, - "end": 24167, - "loc": { - "start": { - "line": 617, - "column": 2 - }, - "end": { - "line": 621, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document free form invite response data\n * @typedef {Object} DocumentFreeformInviteResponse\n * @property {string} result - free form invitation result, e.g. 'success'\n * @property {string} id - unique id of invite\n * @property {string} callback_url - url for front-end redirect or 'none'\n ", - "start": 24171, - "end": 24488, - "loc": { - "start": { - "line": 623, - "column": 2 - }, - "end": { - "line": 629, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document invite response data\n * @typedef {DocumentFieldInviteResponse|DocumentFreeformInviteResponse} DocumentInviteResponse\n ", - "start": 24492, - "end": 24641, - "loc": { - "start": { - "line": 631, - "column": 2 - }, - "end": { - "line": 634, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates an invite to sign a document.\n * You can create a simple free form invite(s) or a role-based invite(s).\n * @param {DocumentInviteParams} data - create document invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentInviteResponse)} [callback] - error first node.js callback\n ", - "start": 24645, - "end": 24963, - "loc": { - "start": { - "line": 636, - "column": 2 - }, - "end": { - "line": 641, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 24966, - "end": 25653, - "loc": { - "start": { - "line": 642, - "column": 2 - }, - "end": { - "line": 672, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 24973, - "end": 24979, - "loc": { - "start": { - "line": 642, - "column": 9 - }, - "end": { - "line": 642, - "column": 15 - }, - "identifierName": "invite" - }, - "name": "invite" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 24981, - "end": 25044, - "loc": { - "start": { - "line": 642, - "column": 17 - }, - "end": { - "line": 647, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 24987, - "end": 24989, - "loc": { - "start": { - "line": 643, - "column": 4 - }, - "end": { - "line": 643, - "column": 6 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 24987, - "end": 24989, - "loc": { - "start": { - "line": 643, - "column": 4 - }, - "end": { - "line": 643, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 24987, - "end": 24989, - "loc": { - "start": { - "line": 643, - "column": 4 - }, - "end": { - "line": 643, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 24995, - "end": 24999, - "loc": { - "start": { - "line": 644, - "column": 4 - }, - "end": { - "line": 644, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 24995, - "end": 24999, - "loc": { - "start": { - "line": 644, - "column": 4 - }, - "end": { - "line": 644, - "column": 8 - }, - "identifierName": "data" - }, - "name": "data" - }, - "value": { - "type": "Identifier", - "start": 24995, - "end": 24999, - "loc": { - "start": { - "line": 644, - "column": 4 - }, - "end": { - "line": 644, - "column": 8 - }, - "identifierName": "data" - }, - "name": "data" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 25005, - "end": 25028, - "loc": { - "start": { - "line": 645, - "column": 4 - }, - "end": { - "line": 645, - "column": 27 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 25005, - "end": 25012, - "loc": { - "start": { - "line": 645, - "column": 4 - }, - "end": { - "line": 645, - "column": 11 - }, - "identifierName": "options" - }, - "name": "options" - }, - "value": { - "type": "AssignmentPattern", - "start": 25014, - "end": 25028, - "loc": { - "start": { - "line": 645, - "column": 13 - }, - "end": { - "line": 645, - "column": 27 - } - }, - "left": { - "type": "ObjectPattern", - "start": 25014, - "end": 25023, - "loc": { - "start": { - "line": 645, - "column": 13 - }, - "end": { - "line": 645, - "column": 22 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 25016, - "end": 25021, - "loc": { - "start": { - "line": 645, - "column": 15 - }, - "end": { - "line": 645, - "column": 20 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 25016, - "end": 25021, - "loc": { - "start": { - "line": 645, - "column": 15 - }, - "end": { - "line": 645, - "column": 20 - }, - "identifierName": "email" - }, - "name": "email" - }, - "value": { - "type": "Identifier", - "start": 25016, - "end": 25021, - "loc": { - "start": { - "line": 645, - "column": 15 - }, - "end": { - "line": 645, - "column": 20 - }, - "identifierName": "email" - }, - "name": "email" - }, - "extra": { - "shorthand": true - } - } - ] - }, - "right": { - "type": "ObjectExpression", - "start": 25026, - "end": 25028, - "loc": { - "start": { - "line": 645, - "column": 25 - }, - "end": { - "line": 645, - "column": 27 - } - }, - "properties": [] - } - } - }, - { - "type": "ObjectProperty", - "start": 25034, - "end": 25039, - "loc": { - "start": { - "line": 646, - "column": 4 - }, - "end": { - "line": 646, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 25034, - "end": 25039, - "loc": { - "start": { - "line": 646, - "column": 4 - }, - "end": { - "line": 646, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 25034, - "end": 25039, - "loc": { - "start": { - "line": 646, - "column": 4 - }, - "end": { - "line": 646, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 25046, - "end": 25054, - "loc": { - "start": { - "line": 647, - "column": 5 - }, - "end": { - "line": 647, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 25056, - "end": 25653, - "loc": { - "start": { - "line": 647, - "column": 15 - }, - "end": { - "line": 672, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 25062, - "end": 25100, - "loc": { - "start": { - "line": 648, - "column": 4 - }, - "end": { - "line": 648, - "column": 42 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 25068, - "end": 25099, - "loc": { - "start": { - "line": 648, - "column": 10 - }, - "end": { - "line": 648, - "column": 41 - } - }, - "id": { - "type": "Identifier", - "start": 25068, - "end": 25076, - "loc": { - "start": { - "line": 648, - "column": 10 - }, - "end": { - "line": 648, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 25079, - "end": 25099, - "loc": { - "start": { - "line": 648, - "column": 21 - }, - "end": { - "line": 648, - "column": 41 - } - }, - "callee": { - "type": "MemberExpression", - "start": 25079, - "end": 25093, - "loc": { - "start": { - "line": 648, - "column": 21 - }, - "end": { - "line": 648, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 25079, - "end": 25083, - "loc": { - "start": { - "line": 648, - "column": 21 - }, - "end": { - "line": 648, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 25084, - "end": 25093, - "loc": { - "start": { - "line": 648, - "column": 26 - }, - "end": { - "line": 648, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 25094, - "end": 25098, - "loc": { - "start": { - "line": 648, - "column": 36 - }, - "end": { - "line": 648, - "column": 40 - }, - "identifierName": "data" - }, - "name": "data" - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 25105, - "end": 25141, - "loc": { - "start": { - "line": 649, - "column": 4 - }, - "end": { - "line": 649, - "column": 40 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 25109, - "end": 25140, - "loc": { - "start": { - "line": 649, - "column": 8 - }, - "end": { - "line": 649, - "column": 39 - } - }, - "id": { - "type": "Identifier", - "start": 25109, - "end": 25113, - "loc": { - "start": { - "line": 649, - "column": 8 - }, - "end": { - "line": 649, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "init": { - "type": "TemplateLiteral", - "start": 25116, - "end": 25140, - "loc": { - "start": { - "line": 649, - "column": 15 - }, - "end": { - "line": 649, - "column": 39 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 25129, - "end": 25131, - "loc": { - "start": { - "line": 649, - "column": 28 - }, - "end": { - "line": 649, - "column": 30 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 25117, - "end": 25127, - "loc": { - "start": { - "line": 649, - "column": 16 - }, - "end": { - "line": 649, - "column": 26 - } - }, - "value": { - "raw": "/document/", - "cooked": "/document/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 25132, - "end": 25139, - "loc": { - "start": { - "line": 649, - "column": 31 - }, - "end": { - "line": 649, - "column": 38 - } - }, - "value": { - "raw": "/invite", - "cooked": "/invite" - }, - "tail": true - } - ] - } - } - ], - "kind": "let" - }, - { - "type": "IfStatement", - "start": 25147, - "end": 25217, - "loc": { - "start": { - "line": 651, - "column": 4 - }, - "end": { - "line": 653, - "column": 5 - } - }, - "test": { - "type": "BinaryExpression", - "start": 25151, - "end": 25170, - "loc": { - "start": { - "line": 651, - "column": 8 - }, - "end": { - "line": 651, - "column": 27 - } - }, - "left": { - "type": "Identifier", - "start": 25151, - "end": 25156, - "loc": { - "start": { - "line": 651, - "column": 8 - }, - "end": { - "line": 651, - "column": 13 - }, - "identifierName": "email" - }, - "name": "email" - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 25161, - "end": 25170, - "loc": { - "start": { - "line": 651, - "column": 18 - }, - "end": { - "line": 651, - "column": 27 - } - }, - "extra": { - "rawValue": "disable", - "raw": "'disable'" - }, - "value": "disable" - } - }, - "consequent": { - "type": "BlockStatement", - "start": 25172, - "end": 25217, - "loc": { - "start": { - "line": 651, - "column": 29 - }, - "end": { - "line": 653, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 25180, - "end": 25211, - "loc": { - "start": { - "line": 652, - "column": 6 - }, - "end": { - "line": 652, - "column": 37 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 25180, - "end": 25210, - "loc": { - "start": { - "line": 652, - "column": 6 - }, - "end": { - "line": 652, - "column": 36 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 25180, - "end": 25184, - "loc": { - "start": { - "line": 652, - "column": 6 - }, - "end": { - "line": 652, - "column": 10 - }, - "identifierName": "path" - }, - "name": "path" - }, - "right": { - "type": "TemplateLiteral", - "start": 25187, - "end": 25210, - "loc": { - "start": { - "line": 652, - "column": 13 - }, - "end": { - "line": 652, - "column": 36 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 25190, - "end": 25194, - "loc": { - "start": { - "line": 652, - "column": 16 - }, - "end": { - "line": 652, - "column": 20 - }, - "identifierName": "path" - }, - "name": "path" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 25188, - "end": 25188, - "loc": { - "start": { - "line": 652, - "column": 14 - }, - "end": { - "line": 652, - "column": 14 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 25195, - "end": 25209, - "loc": { - "start": { - "line": 652, - "column": 21 - }, - "end": { - "line": 652, - "column": 35 - } - }, - "value": { - "raw": "?email=disable", - "cooked": "?email=disable" - }, - "tail": true - } - ] - } - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "VariableDeclaration", - "start": 25223, - "end": 25608, - "loc": { - "start": { - "line": 655, - "column": 4 - }, - "end": { - "line": 668, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 25229, - "end": 25607, - "loc": { - "start": { - "line": 655, - "column": 10 - }, - "end": { - "line": 668, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 25229, - "end": 25232, - "loc": { - "start": { - "line": 655, - "column": 10 - }, - "end": { - "line": 655, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 25235, - "end": 25607, - "loc": { - "start": { - "line": 655, - "column": 16 - }, - "end": { - "line": 668, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 25235, - "end": 25574, - "loc": { - "start": { - "line": 655, - "column": 16 - }, - "end": { - "line": 668, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 25235, - "end": 25564, - "loc": { - "start": { - "line": 655, - "column": 16 - }, - "end": { - "line": 667, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 25235, - "end": 25255, - "loc": { - "start": { - "line": 655, - "column": 16 - }, - "end": { - "line": 656, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 25235, - "end": 25240, - "loc": { - "start": { - "line": 655, - "column": 16 - }, - "end": { - "line": 655, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 25248, - "end": 25255, - "loc": { - "start": { - "line": 656, - "column": 7 - }, - "end": { - "line": 656, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 25256, - "end": 25536, - "loc": { - "start": { - "line": 656, - "column": 15 - }, - "end": { - "line": 667, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 25256, - "end": 25275, - "loc": { - "start": { - "line": 656, - "column": 15 - }, - "end": { - "line": 656, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 25276, - "end": 25535, - "loc": { - "start": { - "line": 656, - "column": 35 - }, - "end": { - "line": 667, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 25286, - "end": 25300, - "loc": { - "start": { - "line": 657, - "column": 8 - }, - "end": { - "line": 657, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 25286, - "end": 25292, - "loc": { - "start": { - "line": 657, - "column": 8 - }, - "end": { - "line": 657, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 25294, - "end": 25300, - "loc": { - "start": { - "line": 657, - "column": 16 - }, - "end": { - "line": 657, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 25310, - "end": 25379, - "loc": { - "start": { - "line": 658, - "column": 8 - }, - "end": { - "line": 661, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 25310, - "end": 25323, - "loc": { - "start": { - "line": 658, - "column": 8 - }, - "end": { - "line": 658, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 25325, - "end": 25379, - "loc": { - "start": { - "line": 658, - "column": 23 - }, - "end": { - "line": 661, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 25337, - "end": 25351, - "loc": { - "start": { - "line": 659, - "column": 10 - }, - "end": { - "line": 659, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 25337, - "end": 25341, - "loc": { - "start": { - "line": 659, - "column": 10 - }, - "end": { - "line": 659, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 25343, - "end": 25351, - "loc": { - "start": { - "line": 659, - "column": 16 - }, - "end": { - "line": 659, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 25363, - "end": 25368, - "loc": { - "start": { - "line": 660, - "column": 10 - }, - "end": { - "line": 660, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 25363, - "end": 25368, - "loc": { - "start": { - "line": 660, - "column": 10 - }, - "end": { - "line": 660, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 25363, - "end": 25368, - "loc": { - "start": { - "line": 660, - "column": 10 - }, - "end": { - "line": 660, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 25389, - "end": 25512, - "loc": { - "start": { - "line": 662, - "column": 8 - }, - "end": { - "line": 665, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 25389, - "end": 25396, - "loc": { - "start": { - "line": 662, - "column": 8 - }, - "end": { - "line": 662, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 25398, - "end": 25512, - "loc": { - "start": { - "line": 662, - "column": 17 - }, - "end": { - "line": 665, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 25410, - "end": 25444, - "loc": { - "start": { - "line": 663, - "column": 10 - }, - "end": { - "line": 663, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 25410, - "end": 25424, - "loc": { - "start": { - "line": 663, - "column": 10 - }, - "end": { - "line": 663, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 25426, - "end": 25444, - "loc": { - "start": { - "line": 663, - "column": 26 - }, - "end": { - "line": 663, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 25456, - "end": 25501, - "loc": { - "start": { - "line": 664, - "column": 10 - }, - "end": { - "line": 664, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 25456, - "end": 25472, - "loc": { - "start": { - "line": 664, - "column": 10 - }, - "end": { - "line": 664, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 25474, - "end": 25501, - "loc": { - "start": { - "line": 664, - "column": 28 - }, - "end": { - "line": 664, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 25474, - "end": 25491, - "loc": { - "start": { - "line": 664, - "column": 28 - }, - "end": { - "line": 664, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 25474, - "end": 25480, - "loc": { - "start": { - "line": 664, - "column": 28 - }, - "end": { - "line": 664, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 25481, - "end": 25491, - "loc": { - "start": { - "line": 664, - "column": 35 - }, - "end": { - "line": 664, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 25492, - "end": 25500, - "loc": { - "start": { - "line": 664, - "column": 46 - }, - "end": { - "line": 664, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 25522, - "end": 25526, - "loc": { - "start": { - "line": 666, - "column": 8 - }, - "end": { - "line": 666, - "column": 12 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 25522, - "end": 25526, - "loc": { - "start": { - "line": 666, - "column": 8 - }, - "end": { - "line": 666, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "Identifier", - "start": 25522, - "end": 25526, - "loc": { - "start": { - "line": 666, - "column": 8 - }, - "end": { - "line": 666, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 25538, - "end": 25563, - "loc": { - "start": { - "line": 667, - "column": 10 - }, - "end": { - "line": 667, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 25538, - "end": 25553, - "loc": { - "start": { - "line": 667, - "column": 10 - }, - "end": { - "line": 667, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 25554, - "end": 25562, - "loc": { - "start": { - "line": 667, - "column": 26 - }, - "end": { - "line": 667, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 25572, - "end": 25574, - "loc": { - "start": { - "line": 668, - "column": 7 - }, - "end": { - "line": 668, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 25575, - "end": 25582, - "loc": { - "start": { - "line": 668, - "column": 10 - }, - "end": { - "line": 668, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 25584, - "end": 25606, - "loc": { - "start": { - "line": 668, - "column": 19 - }, - "end": { - "line": 668, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 25584, - "end": 25596, - "loc": { - "start": { - "line": 668, - "column": 19 - }, - "end": { - "line": 668, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 25597, - "end": 25605, - "loc": { - "start": { - "line": 668, - "column": 32 - }, - "end": { - "line": 668, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 25614, - "end": 25634, - "loc": { - "start": { - "line": 670, - "column": 4 - }, - "end": { - "line": 670, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 25614, - "end": 25633, - "loc": { - "start": { - "line": 670, - "column": 4 - }, - "end": { - "line": 670, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 25614, - "end": 25623, - "loc": { - "start": { - "line": 670, - "column": 4 - }, - "end": { - "line": 670, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 25614, - "end": 25617, - "loc": { - "start": { - "line": 670, - "column": 4 - }, - "end": { - "line": 670, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 25618, - "end": 25623, - "loc": { - "start": { - "line": 670, - "column": 8 - }, - "end": { - "line": 670, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 25624, - "end": 25632, - "loc": { - "start": { - "line": 670, - "column": 14 - }, - "end": { - "line": 670, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 25639, - "end": 25649, - "loc": { - "start": { - "line": 671, - "column": 4 - }, - "end": { - "line": 671, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 25639, - "end": 25648, - "loc": { - "start": { - "line": 671, - "column": 4 - }, - "end": { - "line": 671, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 25639, - "end": 25646, - "loc": { - "start": { - "line": 671, - "column": 4 - }, - "end": { - "line": 671, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 25639, - "end": 25642, - "loc": { - "start": { - "line": 671, - "column": 4 - }, - "end": { - "line": 671, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 25643, - "end": 25646, - "loc": { - "start": { - "line": 671, - "column": 8 - }, - "end": { - "line": 671, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document invite signer settings\n * @typedef {Object} SignerSettings\n * @property {string} email - signer's email\n * @property {string} role - role name\n * @property {string} role_id - role unique id (can be discovered in document details)\n * @property {number} order - role signing order\n * @property {string} reassign - allow reassign signer\n * @property {string} decline_by_signature - signer can decline invite\n * @property {number} reminder - remind via email in days\n * @property {number} expiration_days - expiration of invite in days\n * @property {string} [subject] - specify subject of email\n * @property {string} [message] - specify body of email\n ", - "start": 22198, - "end": 22890, - "loc": { - "start": { - "line": 575, - "column": 2 - }, - "end": { - "line": 588, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document invite settings\n * @typedef {Object} DocumentInviteSettings\n * @property {string} from - email of sender\n * @property {SignerSettings[]|string} to - array of signers or email of single signer\n * @property {string} [document_id] - an id of document\n * @property {string[]} [cc] - array with emails of copy receivers\n * @property {string} [subject] - specify subject of email\n * @property {string} [message] - specify body of email\n * @property {string} [on_complete] - on signing complete action\n ", - "start": 22894, - "end": 23428, - "loc": { - "start": { - "line": 590, - "column": 2 - }, - "end": { - "line": 600, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document invite optional settings\n * @typedef {Object} DocumentInviteOptions\n * @property {string} [email] - ability to disable invitation by email. to disabale email assign value 'disable'\n ", - "start": 23432, - "end": 23640, - "loc": { - "start": { - "line": 602, - "column": 2 - }, - "end": { - "line": 606, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document invite payload\n * @typedef {Object} DocumentInviteParams\n * @property {string} id - an id of document\n * @property {DocumentInviteSettings} data - document invite settings\n * @property {DocumentInviteOptions} [options] - document invite optional settings\n * @property {string} token - your auth token\n ", - "start": 23644, - "end": 23985, - "loc": { - "start": { - "line": 608, - "column": 2 - }, - "end": { - "line": 615, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document field invite response data\n * @typedef {Object} DocumentFieldInviteResponse\n * @property {string} status - status of invitation, e.g. 'success'\n ", - "start": 23989, - "end": 24167, - "loc": { - "start": { - "line": 617, - "column": 2 - }, - "end": { - "line": 621, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document free form invite response data\n * @typedef {Object} DocumentFreeformInviteResponse\n * @property {string} result - free form invitation result, e.g. 'success'\n * @property {string} id - unique id of invite\n * @property {string} callback_url - url for front-end redirect or 'none'\n ", - "start": 24171, - "end": 24488, - "loc": { - "start": { - "line": 623, - "column": 2 - }, - "end": { - "line": 629, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document invite response data\n * @typedef {DocumentFieldInviteResponse|DocumentFreeformInviteResponse} DocumentInviteResponse\n ", - "start": 24492, - "end": 24641, - "loc": { - "start": { - "line": 631, - "column": 2 - }, - "end": { - "line": 634, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates an invite to sign a document.\n * You can create a simple free form invite(s) or a role-based invite(s).\n * @param {DocumentInviteParams} data - create document invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentInviteResponse)} [callback] - error first node.js callback\n ", - "start": 24645, - "end": 24963, - "loc": { - "start": { - "line": 636, - "column": 2 - }, - "end": { - "line": 641, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " cancel an invite to a document.", - "start": 25657, - "end": 25691, - "loc": { - "start": { - "line": 674, - "column": 2 - }, - "end": { - "line": 674, - "column": 36 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 25694, - "end": 26039, - "loc": { - "start": { - "line": 675, - "column": 2 - }, - "end": { - "line": 687, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 25701, - "end": 25713, - "loc": { - "start": { - "line": 675, - "column": 9 - }, - "end": { - "line": 675, - "column": 21 - }, - "identifierName": "cancelInvite" - }, - "name": "cancelInvite" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 25715, - "end": 25728, - "loc": { - "start": { - "line": 675, - "column": 23 - }, - "end": { - "line": 675, - "column": 36 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 25717, - "end": 25719, - "loc": { - "start": { - "line": 675, - "column": 25 - }, - "end": { - "line": 675, - "column": 27 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 25717, - "end": 25719, - "loc": { - "start": { - "line": 675, - "column": 25 - }, - "end": { - "line": 675, - "column": 27 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 25717, - "end": 25719, - "loc": { - "start": { - "line": 675, - "column": 25 - }, - "end": { - "line": 675, - "column": 27 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 25721, - "end": 25726, - "loc": { - "start": { - "line": 675, - "column": 29 - }, - "end": { - "line": 675, - "column": 34 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 25721, - "end": 25726, - "loc": { - "start": { - "line": 675, - "column": 29 - }, - "end": { - "line": 675, - "column": 34 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 25721, - "end": 25726, - "loc": { - "start": { - "line": 675, - "column": 29 - }, - "end": { - "line": 675, - "column": 34 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 25730, - "end": 25738, - "loc": { - "start": { - "line": 675, - "column": 38 - }, - "end": { - "line": 675, - "column": 46 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 25740, - "end": 26039, - "loc": { - "start": { - "line": 675, - "column": 48 - }, - "end": { - "line": 687, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 25746, - "end": 26035, - "loc": { - "start": { - "line": 676, - "column": 4 - }, - "end": { - "line": 686, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 25746, - "end": 26034, - "loc": { - "start": { - "line": 676, - "column": 4 - }, - "end": { - "line": 686, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 25746, - "end": 26032, - "loc": { - "start": { - "line": 676, - "column": 4 - }, - "end": { - "line": 686, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 25746, - "end": 26021, - "loc": { - "start": { - "line": 676, - "column": 4 - }, - "end": { - "line": 685, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 25746, - "end": 25988, - "loc": { - "start": { - "line": 676, - "column": 4 - }, - "end": { - "line": 685, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 25746, - "end": 25978, - "loc": { - "start": { - "line": 676, - "column": 4 - }, - "end": { - "line": 684, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 25746, - "end": 25766, - "loc": { - "start": { - "line": 676, - "column": 4 - }, - "end": { - "line": 677, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 25746, - "end": 25751, - "loc": { - "start": { - "line": 676, - "column": 4 - }, - "end": { - "line": 676, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 25759, - "end": 25766, - "loc": { - "start": { - "line": 677, - "column": 7 - }, - "end": { - "line": 677, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 25767, - "end": 25950, - "loc": { - "start": { - "line": 677, - "column": 15 - }, - "end": { - "line": 684, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 25767, - "end": 25786, - "loc": { - "start": { - "line": 677, - "column": 15 - }, - "end": { - "line": 677, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 25787, - "end": 25949, - "loc": { - "start": { - "line": 677, - "column": 35 - }, - "end": { - "line": 684, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 25797, - "end": 25810, - "loc": { - "start": { - "line": 678, - "column": 8 - }, - "end": { - "line": 678, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 25797, - "end": 25803, - "loc": { - "start": { - "line": 678, - "column": 8 - }, - "end": { - "line": 678, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 25805, - "end": 25810, - "loc": { - "start": { - "line": 678, - "column": 16 - }, - "end": { - "line": 678, - "column": 21 - } - }, - "extra": { - "rawValue": "PUT", - "raw": "'PUT'" - }, - "value": "PUT" - } - }, - { - "type": "ObjectProperty", - "start": 25820, - "end": 25861, - "loc": { - "start": { - "line": 679, - "column": 8 - }, - "end": { - "line": 679, - "column": 49 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 25820, - "end": 25824, - "loc": { - "start": { - "line": 679, - "column": 8 - }, - "end": { - "line": 679, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 25826, - "end": 25861, - "loc": { - "start": { - "line": 679, - "column": 14 - }, - "end": { - "line": 679, - "column": 49 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 25839, - "end": 25841, - "loc": { - "start": { - "line": 679, - "column": 27 - }, - "end": { - "line": 679, - "column": 29 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 25827, - "end": 25837, - "loc": { - "start": { - "line": 679, - "column": 15 - }, - "end": { - "line": 679, - "column": 25 - } - }, - "value": { - "raw": "/document/", - "cooked": "/document/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 25842, - "end": 25860, - "loc": { - "start": { - "line": 679, - "column": 30 - }, - "end": { - "line": 679, - "column": 48 - } - }, - "value": { - "raw": "/fieldinvitecancel", - "cooked": "/fieldinvitecancel" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 25871, - "end": 25940, - "loc": { - "start": { - "line": 680, - "column": 8 - }, - "end": { - "line": 683, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 25871, - "end": 25884, - "loc": { - "start": { - "line": 680, - "column": 8 - }, - "end": { - "line": 680, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 25886, - "end": 25940, - "loc": { - "start": { - "line": 680, - "column": 23 - }, - "end": { - "line": 683, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 25898, - "end": 25912, - "loc": { - "start": { - "line": 681, - "column": 10 - }, - "end": { - "line": 681, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 25898, - "end": 25902, - "loc": { - "start": { - "line": 681, - "column": 10 - }, - "end": { - "line": 681, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 25904, - "end": 25912, - "loc": { - "start": { - "line": 681, - "column": 16 - }, - "end": { - "line": 681, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 25924, - "end": 25929, - "loc": { - "start": { - "line": 682, - "column": 10 - }, - "end": { - "line": 682, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 25924, - "end": 25929, - "loc": { - "start": { - "line": 682, - "column": 10 - }, - "end": { - "line": 682, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 25924, - "end": 25929, - "loc": { - "start": { - "line": 682, - "column": 10 - }, - "end": { - "line": 682, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 25952, - "end": 25977, - "loc": { - "start": { - "line": 684, - "column": 10 - }, - "end": { - "line": 684, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 25952, - "end": 25967, - "loc": { - "start": { - "line": 684, - "column": 10 - }, - "end": { - "line": 684, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 25968, - "end": 25976, - "loc": { - "start": { - "line": 684, - "column": 26 - }, - "end": { - "line": 684, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 25986, - "end": 25988, - "loc": { - "start": { - "line": 685, - "column": 7 - }, - "end": { - "line": 685, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 25989, - "end": 25996, - "loc": { - "start": { - "line": 685, - "column": 10 - }, - "end": { - "line": 685, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 25998, - "end": 26020, - "loc": { - "start": { - "line": 685, - "column": 19 - }, - "end": { - "line": 685, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 25998, - "end": 26010, - "loc": { - "start": { - "line": 685, - "column": 19 - }, - "end": { - "line": 685, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 26011, - "end": 26019, - "loc": { - "start": { - "line": 685, - "column": 32 - }, - "end": { - "line": 685, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 26029, - "end": 26032, - "loc": { - "start": { - "line": 686, - "column": 7 - }, - "end": { - "line": 686, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " cancel an invite to a document.", - "start": 25657, - "end": 25691, - "loc": { - "start": { - "line": 674, - "column": 2 - }, - "end": { - "line": 674, - "column": 36 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Merge documents optional settings\n * @typedef {Object} DocumentMergeOptions\n * @property {boolean} [removeOriginalDocuments=false] - if true original documents will be removed\n ", - "start": 26043, - "end": 26237, - "loc": { - "start": { - "line": 689, - "column": 2 - }, - "end": { - "line": 693, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Merge documents payload\n * @typedef {Object} DocumentMergeParams\n * @property {string} token - your auth token\n * @property {string} name - new name for merged document\n * @property {string[]} document_ids - an array of document IDs\n * @property {DocumentMergeOptions} options - merge documents optional settings\n ", - "start": 26241, - "end": 26578, - "loc": { - "start": { - "line": 695, - "column": 2 - }, - "end": { - "line": 702, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Merge documents response data\n * @typedef {Object} DocumentMergeResponse\n * @property {string} document_id - an ID of merged document\n ", - "start": 26582, - "end": 26734, - "loc": { - "start": { - "line": 704, - "column": 2 - }, - "end": { - "line": 708, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Merges existing documents into one.\n * By default original documents are not removed after merging. To remove original documents set `removeOriginalDocuments` option to `true`.\n * @param {DocumentMergeParams} data - merge documents payload\n * @param {function(err: ApiErrorResponse, res: DocumentMergeResponse)} [originalCallback] - error first node.js callback\n ", - "start": 26738, - "end": 27120, - "loc": { - "start": { - "line": 710, - "column": 2 - }, - "end": { - "line": 715, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 27123, - "end": 29094, - "loc": { - "start": { - "line": 716, - "column": 2 - }, - "end": { - "line": 789, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 27130, - "end": 27135, - "loc": { - "start": { - "line": 716, - "column": 9 - }, - "end": { - "line": 716, - "column": 14 - }, - "identifierName": "merge" - }, - "name": "merge" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 27137, - "end": 27236, - "loc": { - "start": { - "line": 716, - "column": 16 - }, - "end": { - "line": 721, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 27143, - "end": 27147, - "loc": { - "start": { - "line": 717, - "column": 4 - }, - "end": { - "line": 717, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 27143, - "end": 27147, - "loc": { - "start": { - "line": 717, - "column": 4 - }, - "end": { - "line": 717, - "column": 8 - }, - "identifierName": "name" - }, - "name": "name" - }, - "value": { - "type": "Identifier", - "start": 27143, - "end": 27147, - "loc": { - "start": { - "line": 717, - "column": 4 - }, - "end": { - "line": 717, - "column": 8 - }, - "identifierName": "name" - }, - "name": "name" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 27153, - "end": 27165, - "loc": { - "start": { - "line": 718, - "column": 4 - }, - "end": { - "line": 718, - "column": 16 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 27153, - "end": 27165, - "loc": { - "start": { - "line": 718, - "column": 4 - }, - "end": { - "line": 718, - "column": 16 - }, - "identifierName": "document_ids" - }, - "name": "document_ids" - }, - "value": { - "type": "Identifier", - "start": 27153, - "end": 27165, - "loc": { - "start": { - "line": 718, - "column": 4 - }, - "end": { - "line": 718, - "column": 16 - }, - "identifierName": "document_ids" - }, - "name": "document_ids" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 27171, - "end": 27220, - "loc": { - "start": { - "line": 719, - "column": 4 - }, - "end": { - "line": 719, - "column": 53 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 27171, - "end": 27178, - "loc": { - "start": { - "line": 719, - "column": 4 - }, - "end": { - "line": 719, - "column": 11 - }, - "identifierName": "options" - }, - "name": "options" - }, - "value": { - "type": "AssignmentPattern", - "start": 27180, - "end": 27220, - "loc": { - "start": { - "line": 719, - "column": 13 - }, - "end": { - "line": 719, - "column": 53 - } - }, - "left": { - "type": "ObjectPattern", - "start": 27180, - "end": 27215, - "loc": { - "start": { - "line": 719, - "column": 13 - }, - "end": { - "line": 719, - "column": 48 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 27182, - "end": 27213, - "loc": { - "start": { - "line": 719, - "column": 15 - }, - "end": { - "line": 719, - "column": 46 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 27182, - "end": 27205, - "loc": { - "start": { - "line": 719, - "column": 15 - }, - "end": { - "line": 719, - "column": 38 - }, - "identifierName": "removeOriginalDocuments" - }, - "name": "removeOriginalDocuments" - }, - "value": { - "type": "AssignmentPattern", - "start": 27182, - "end": 27213, - "loc": { - "start": { - "line": 719, - "column": 15 - }, - "end": { - "line": 719, - "column": 46 - } - }, - "left": { - "type": "Identifier", - "start": 27182, - "end": 27205, - "loc": { - "start": { - "line": 719, - "column": 15 - }, - "end": { - "line": 719, - "column": 38 - }, - "identifierName": "removeOriginalDocuments" - }, - "name": "removeOriginalDocuments" - }, - "right": { - "type": "BooleanLiteral", - "start": 27208, - "end": 27213, - "loc": { - "start": { - "line": 719, - "column": 41 - }, - "end": { - "line": 719, - "column": 46 - } - }, - "value": false - } - }, - "extra": { - "shorthand": true - } - } - ] - }, - "right": { - "type": "ObjectExpression", - "start": 27218, - "end": 27220, - "loc": { - "start": { - "line": 719, - "column": 51 - }, - "end": { - "line": 719, - "column": 53 - } - }, - "properties": [] - } - } - }, - { - "type": "ObjectProperty", - "start": 27226, - "end": 27231, - "loc": { - "start": { - "line": 720, - "column": 4 - }, - "end": { - "line": 720, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 27226, - "end": 27231, - "loc": { - "start": { - "line": 720, - "column": 4 - }, - "end": { - "line": 720, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 27226, - "end": 27231, - "loc": { - "start": { - "line": 720, - "column": 4 - }, - "end": { - "line": 720, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 27238, - "end": 27254, - "loc": { - "start": { - "line": 721, - "column": 5 - }, - "end": { - "line": 721, - "column": 21 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - } - ], - "body": { - "type": "BlockStatement", - "start": 27256, - "end": 29094, - "loc": { - "start": { - "line": 721, - "column": 23 - }, - "end": { - "line": 789, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 27262, - "end": 27364, - "loc": { - "start": { - "line": 722, - "column": 4 - }, - "end": { - "line": 726, - "column": 7 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 27268, - "end": 27363, - "loc": { - "start": { - "line": 722, - "column": 10 - }, - "end": { - "line": 726, - "column": 6 - } - }, - "id": { - "type": "Identifier", - "start": 27268, - "end": 27276, - "loc": { - "start": { - "line": 722, - "column": 10 - }, - "end": { - "line": 722, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 27279, - "end": 27363, - "loc": { - "start": { - "line": 722, - "column": 21 - }, - "end": { - "line": 726, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 27279, - "end": 27293, - "loc": { - "start": { - "line": 722, - "column": 21 - }, - "end": { - "line": 722, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 27279, - "end": 27283, - "loc": { - "start": { - "line": 722, - "column": 21 - }, - "end": { - "line": 722, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 27284, - "end": 27293, - "loc": { - "start": { - "line": 722, - "column": 26 - }, - "end": { - "line": 722, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 27294, - "end": 27362, - "loc": { - "start": { - "line": 722, - "column": 36 - }, - "end": { - "line": 726, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 27302, - "end": 27323, - "loc": { - "start": { - "line": 723, - "column": 6 - }, - "end": { - "line": 723, - "column": 27 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 27302, - "end": 27317, - "loc": { - "start": { - "line": 723, - "column": 6 - }, - "end": { - "line": 723, - "column": 21 - }, - "identifierName": "upload_document" - }, - "name": "upload_document" - }, - "value": { - "type": "BooleanLiteral", - "start": 27319, - "end": 27323, - "loc": { - "start": { - "line": 723, - "column": 23 - }, - "end": { - "line": 723, - "column": 27 - } - }, - "value": true - } - }, - { - "type": "ObjectProperty", - "start": 27331, - "end": 27343, - "loc": { - "start": { - "line": 724, - "column": 6 - }, - "end": { - "line": 724, - "column": 18 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 27331, - "end": 27343, - "loc": { - "start": { - "line": 724, - "column": 6 - }, - "end": { - "line": 724, - "column": 18 - }, - "identifierName": "document_ids" - }, - "name": "document_ids" - }, - "value": { - "type": "Identifier", - "start": 27331, - "end": 27343, - "loc": { - "start": { - "line": 724, - "column": 6 - }, - "end": { - "line": 724, - "column": 18 - }, - "identifierName": "document_ids" - }, - "name": "document_ids" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 27351, - "end": 27355, - "loc": { - "start": { - "line": 725, - "column": 6 - }, - "end": { - "line": 725, - "column": 10 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 27351, - "end": 27355, - "loc": { - "start": { - "line": 725, - "column": 6 - }, - "end": { - "line": 725, - "column": 10 - }, - "identifierName": "name" - }, - "name": "name" - }, - "value": { - "type": "Identifier", - "start": 27351, - "end": 27355, - "loc": { - "start": { - "line": 725, - "column": 6 - }, - "end": { - "line": 725, - "column": 10 - }, - "identifierName": "name" - }, - "name": "name" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 27370, - "end": 28522, - "loc": { - "start": { - "line": 728, - "column": 4 - }, - "end": { - "line": 766, - "column": 6 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 27376, - "end": 28521, - "loc": { - "start": { - "line": 728, - "column": 10 - }, - "end": { - "line": 766, - "column": 5 - } - }, - "id": { - "type": "Identifier", - "start": 27376, - "end": 27404, - "loc": { - "start": { - "line": 728, - "column": 10 - }, - "end": { - "line": 728, - "column": 38 - }, - "identifierName": "callbackWithDocumentDeletion" - }, - "name": "callbackWithDocumentDeletion" - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 27407, - "end": 28521, - "loc": { - "start": { - "line": 728, - "column": 41 - }, - "end": { - "line": 766, - "column": 5 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 27408, - "end": 27416, - "loc": { - "start": { - "line": 728, - "column": 42 - }, - "end": { - "line": 728, - "column": 50 - }, - "identifierName": "mergeErr" - }, - "name": "mergeErr" - }, - { - "type": "Identifier", - "start": 27418, - "end": 27426, - "loc": { - "start": { - "line": 728, - "column": 52 - }, - "end": { - "line": 728, - "column": 60 - }, - "identifierName": "mergeRes" - }, - "name": "mergeRes" - } - ], - "body": { - "type": "BlockStatement", - "start": 27431, - "end": 28521, - "loc": { - "start": { - "line": 728, - "column": 65 - }, - "end": { - "line": 766, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 27439, - "end": 28515, - "loc": { - "start": { - "line": 729, - "column": 6 - }, - "end": { - "line": 765, - "column": 7 - } - }, - "test": { - "type": "Identifier", - "start": 27443, - "end": 27451, - "loc": { - "start": { - "line": 729, - "column": 10 - }, - "end": { - "line": 729, - "column": 18 - }, - "identifierName": "mergeErr" - }, - "name": "mergeErr" - }, - "consequent": { - "type": "BlockStatement", - "start": 27453, - "end": 27514, - "loc": { - "start": { - "line": 729, - "column": 20 - }, - "end": { - "line": 732, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 27463, - "end": 27490, - "loc": { - "start": { - "line": 730, - "column": 8 - }, - "end": { - "line": 730, - "column": 35 - } - }, - "expression": { - "type": "CallExpression", - "start": 27463, - "end": 27489, - "loc": { - "start": { - "line": 730, - "column": 8 - }, - "end": { - "line": 730, - "column": 34 - } - }, - "callee": { - "type": "Identifier", - "start": 27463, - "end": 27479, - "loc": { - "start": { - "line": 730, - "column": 8 - }, - "end": { - "line": 730, - "column": 24 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 27480, - "end": 27488, - "loc": { - "start": { - "line": 730, - "column": 25 - }, - "end": { - "line": 730, - "column": 33 - }, - "identifierName": "mergeErr" - }, - "name": "mergeErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 27499, - "end": 27506, - "loc": { - "start": { - "line": 731, - "column": 8 - }, - "end": { - "line": 731, - "column": 15 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 27520, - "end": 28515, - "loc": { - "start": { - "line": 732, - "column": 13 - }, - "end": { - "line": 765, - "column": 7 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 27531, - "end": 27852, - "loc": { - "start": { - "line": 734, - "column": 8 - }, - "end": { - "line": 745, - "column": 11 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 27537, - "end": 27851, - "loc": { - "start": { - "line": 734, - "column": 14 - }, - "end": { - "line": 745, - "column": 10 - } - }, - "id": { - "type": "Identifier", - "start": 27537, - "end": 27551, - "loc": { - "start": { - "line": 734, - "column": 14 - }, - "end": { - "line": 734, - "column": 28 - }, - "identifierName": "removeDocument" - }, - "name": "removeDocument" - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 27554, - "end": 27851, - "loc": { - "start": { - "line": 734, - "column": 31 - }, - "end": { - "line": 745, - "column": 10 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 27555, - "end": 27561, - "loc": { - "start": { - "line": 734, - "column": 32 - }, - "end": { - "line": 734, - "column": 38 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 27557, - "end": 27559, - "loc": { - "start": { - "line": 734, - "column": 34 - }, - "end": { - "line": 734, - "column": 36 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 27557, - "end": 27559, - "loc": { - "start": { - "line": 734, - "column": 34 - }, - "end": { - "line": 734, - "column": 36 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 27557, - "end": 27559, - "loc": { - "start": { - "line": 734, - "column": 34 - }, - "end": { - "line": 734, - "column": 36 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - } - ] - } - ], - "body": { - "type": "NewExpression", - "start": 27566, - "end": 27851, - "loc": { - "start": { - "line": 734, - "column": 43 - }, - "end": { - "line": 745, - "column": 10 - } - }, - "callee": { - "type": "Identifier", - "start": 27570, - "end": 27577, - "loc": { - "start": { - "line": 734, - "column": 47 - }, - "end": { - "line": 734, - "column": 54 - }, - "identifierName": "Promise" - }, - "name": "Promise" - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 27578, - "end": 27850, - "loc": { - "start": { - "line": 734, - "column": 55 - }, - "end": { - "line": 745, - "column": 9 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 27579, - "end": 27586, - "loc": { - "start": { - "line": 734, - "column": 56 - }, - "end": { - "line": 734, - "column": 63 - }, - "identifierName": "resolve" - }, - "name": "resolve" - }, - { - "type": "Identifier", - "start": 27588, - "end": 27594, - "loc": { - "start": { - "line": 734, - "column": 65 - }, - "end": { - "line": 734, - "column": 71 - }, - "identifierName": "reject" - }, - "name": "reject" - } - ], - "body": { - "type": "BlockStatement", - "start": 27599, - "end": 27850, - "loc": { - "start": { - "line": 734, - "column": 76 - }, - "end": { - "line": 745, - "column": 9 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 27611, - "end": 27840, - "loc": { - "start": { - "line": 735, - "column": 10 - }, - "end": { - "line": 744, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 27611, - "end": 27839, - "loc": { - "start": { - "line": 735, - "column": 10 - }, - "end": { - "line": 744, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 27611, - "end": 27626, - "loc": { - "start": { - "line": 735, - "column": 10 - }, - "end": { - "line": 735, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 27611, - "end": 27619, - "loc": { - "start": { - "line": 735, - "column": 10 - }, - "end": { - "line": 735, - "column": 18 - }, - "identifierName": "Document" - }, - "name": "Document" - }, - "property": { - "type": "Identifier", - "start": 27620, - "end": 27626, - "loc": { - "start": { - "line": 735, - "column": 19 - }, - "end": { - "line": 735, - "column": 25 - }, - "identifierName": "remove" - }, - "name": "remove" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 27627, - "end": 27675, - "loc": { - "start": { - "line": 735, - "column": 26 - }, - "end": { - "line": 738, - "column": 11 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 27641, - "end": 27643, - "loc": { - "start": { - "line": 736, - "column": 12 - }, - "end": { - "line": 736, - "column": 14 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 27641, - "end": 27643, - "loc": { - "start": { - "line": 736, - "column": 12 - }, - "end": { - "line": 736, - "column": 14 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 27641, - "end": 27643, - "loc": { - "start": { - "line": 736, - "column": 12 - }, - "end": { - "line": 736, - "column": 14 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 27657, - "end": 27662, - "loc": { - "start": { - "line": 737, - "column": 12 - }, - "end": { - "line": 737, - "column": 17 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 27657, - "end": 27662, - "loc": { - "start": { - "line": 737, - "column": 12 - }, - "end": { - "line": 737, - "column": 17 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 27657, - "end": 27662, - "loc": { - "start": { - "line": 737, - "column": 12 - }, - "end": { - "line": 737, - "column": 17 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "ArrowFunctionExpression", - "start": 27677, - "end": 27838, - "loc": { - "start": { - "line": 738, - "column": 13 - }, - "end": { - "line": 744, - "column": 11 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 27678, - "end": 27681, - "loc": { - "start": { - "line": 738, - "column": 14 - }, - "end": { - "line": 738, - "column": 17 - }, - "identifierName": "err" - }, - "name": "err" - }, - { - "type": "Identifier", - "start": 27683, - "end": 27686, - "loc": { - "start": { - "line": 738, - "column": 19 - }, - "end": { - "line": 738, - "column": 22 - }, - "identifierName": "res" - }, - "name": "res" - } - ], - "body": { - "type": "BlockStatement", - "start": 27691, - "end": 27838, - "loc": { - "start": { - "line": 738, - "column": 27 - }, - "end": { - "line": 744, - "column": 11 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 27705, - "end": 27826, - "loc": { - "start": { - "line": 739, - "column": 12 - }, - "end": { - "line": 743, - "column": 13 - } - }, - "test": { - "type": "Identifier", - "start": 27709, - "end": 27712, - "loc": { - "start": { - "line": 739, - "column": 16 - }, - "end": { - "line": 739, - "column": 19 - }, - "identifierName": "err" - }, - "name": "err" - }, - "consequent": { - "type": "BlockStatement", - "start": 27714, - "end": 27756, - "loc": { - "start": { - "line": 739, - "column": 21 - }, - "end": { - "line": 741, - "column": 13 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 27730, - "end": 27742, - "loc": { - "start": { - "line": 740, - "column": 14 - }, - "end": { - "line": 740, - "column": 26 - } - }, - "expression": { - "type": "CallExpression", - "start": 27730, - "end": 27741, - "loc": { - "start": { - "line": 740, - "column": 14 - }, - "end": { - "line": 740, - "column": 25 - } - }, - "callee": { - "type": "Identifier", - "start": 27730, - "end": 27736, - "loc": { - "start": { - "line": 740, - "column": 14 - }, - "end": { - "line": 740, - "column": 20 - }, - "identifierName": "reject" - }, - "name": "reject" - }, - "arguments": [ - { - "type": "Identifier", - "start": 27737, - "end": 27740, - "loc": { - "start": { - "line": 740, - "column": 21 - }, - "end": { - "line": 740, - "column": 24 - }, - "identifierName": "err" - }, - "name": "err" - } - ] - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 27762, - "end": 27826, - "loc": { - "start": { - "line": 741, - "column": 19 - }, - "end": { - "line": 743, - "column": 13 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 27778, - "end": 27812, - "loc": { - "start": { - "line": 742, - "column": 14 - }, - "end": { - "line": 742, - "column": 48 - } - }, - "expression": { - "type": "CallExpression", - "start": 27778, - "end": 27811, - "loc": { - "start": { - "line": 742, - "column": 14 - }, - "end": { - "line": 742, - "column": 47 - } - }, - "callee": { - "type": "Identifier", - "start": 27778, - "end": 27785, - "loc": { - "start": { - "line": 742, - "column": 14 - }, - "end": { - "line": 742, - "column": 21 - }, - "identifierName": "resolve" - }, - "name": "resolve" - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 27786, - "end": 27810, - "loc": { - "start": { - "line": 742, - "column": 22 - }, - "end": { - "line": 742, - "column": 46 - } - }, - "left": { - "type": "MemberExpression", - "start": 27786, - "end": 27796, - "loc": { - "start": { - "line": 742, - "column": 22 - }, - "end": { - "line": 742, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 27786, - "end": 27789, - "loc": { - "start": { - "line": 742, - "column": 22 - }, - "end": { - "line": 742, - "column": 25 - }, - "identifierName": "res" - }, - "name": "res" - }, - "property": { - "type": "Identifier", - "start": 27790, - "end": 27796, - "loc": { - "start": { - "line": 742, - "column": 26 - }, - "end": { - "line": 742, - "column": 32 - }, - "identifierName": "status" - }, - "name": "status" - }, - "computed": false - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 27801, - "end": 27810, - "loc": { - "start": { - "line": 742, - "column": 37 - }, - "end": { - "line": 742, - "column": 46 - } - }, - "extra": { - "rawValue": "success", - "raw": "'success'" - }, - "value": "success" - } - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - } - } - ] - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 27862, - "end": 27945, - "loc": { - "start": { - "line": 747, - "column": 8 - }, - "end": { - "line": 748, - "column": 45 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 27868, - "end": 27944, - "loc": { - "start": { - "line": 747, - "column": 14 - }, - "end": { - "line": 748, - "column": 44 - } - }, - "id": { - "type": "Identifier", - "start": 27868, - "end": 27884, - "loc": { - "start": { - "line": 747, - "column": 14 - }, - "end": { - "line": 747, - "column": 30 - }, - "identifierName": "documentsDeleted" - }, - "name": "documentsDeleted" - }, - "init": { - "type": "CallExpression", - "start": 27887, - "end": 27944, - "loc": { - "start": { - "line": 747, - "column": 33 - }, - "end": { - "line": 748, - "column": 44 - } - }, - "callee": { - "type": "MemberExpression", - "start": 27887, - "end": 27914, - "loc": { - "start": { - "line": 747, - "column": 33 - }, - "end": { - "line": 748, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 27887, - "end": 27899, - "loc": { - "start": { - "line": 747, - "column": 33 - }, - "end": { - "line": 747, - "column": 45 - }, - "identifierName": "document_ids" - }, - "name": "document_ids" - }, - "property": { - "type": "Identifier", - "start": 27911, - "end": 27914, - "loc": { - "start": { - "line": 748, - "column": 11 - }, - "end": { - "line": 748, - "column": 14 - }, - "identifierName": "map" - }, - "name": "map" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 27915, - "end": 27943, - "loc": { - "start": { - "line": 748, - "column": 15 - }, - "end": { - "line": 748, - "column": 43 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 27915, - "end": 27917, - "loc": { - "start": { - "line": 748, - "column": 15 - }, - "end": { - "line": 748, - "column": 17 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "body": { - "type": "CallExpression", - "start": 27921, - "end": 27943, - "loc": { - "start": { - "line": 748, - "column": 21 - }, - "end": { - "line": 748, - "column": 43 - } - }, - "callee": { - "type": "Identifier", - "start": 27921, - "end": 27935, - "loc": { - "start": { - "line": 748, - "column": 21 - }, - "end": { - "line": 748, - "column": 35 - }, - "identifierName": "removeDocument" - }, - "name": "removeDocument" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 27936, - "end": 27942, - "loc": { - "start": { - "line": 748, - "column": 36 - }, - "end": { - "line": 748, - "column": 42 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 27938, - "end": 27940, - "loc": { - "start": { - "line": 748, - "column": 38 - }, - "end": { - "line": 748, - "column": 40 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 27938, - "end": 27940, - "loc": { - "start": { - "line": 748, - "column": 38 - }, - "end": { - "line": 748, - "column": 40 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 27938, - "end": 27940, - "loc": { - "start": { - "line": 748, - "column": 38 - }, - "end": { - "line": 748, - "column": 40 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 27955, - "end": 28506, - "loc": { - "start": { - "line": 750, - "column": 8 - }, - "end": { - "line": 763, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 27955, - "end": 28505, - "loc": { - "start": { - "line": 750, - "column": 8 - }, - "end": { - "line": 763, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 27955, - "end": 28416, - "loc": { - "start": { - "line": 750, - "column": 8 - }, - "end": { - "line": 760, - "column": 16 - } - }, - "object": { - "type": "CallExpression", - "start": 27955, - "end": 28399, - "loc": { - "start": { - "line": 750, - "column": 8 - }, - "end": { - "line": 759, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 27955, - "end": 28135, - "loc": { - "start": { - "line": 750, - "column": 8 - }, - "end": { - "line": 752, - "column": 15 - } - }, - "object": { - "type": "CallExpression", - "start": 27955, - "end": 28119, - "loc": { - "start": { - "line": 750, - "column": 8 - }, - "end": { - "line": 751, - "column": 134 - } - }, - "callee": { - "type": "MemberExpression", - "start": 27955, - "end": 28000, - "loc": { - "start": { - "line": 750, - "column": 8 - }, - "end": { - "line": 751, - "column": 15 - } - }, - "object": { - "type": "CallExpression", - "start": 27955, - "end": 27984, - "loc": { - "start": { - "line": 750, - "column": 8 - }, - "end": { - "line": 750, - "column": 37 - } - }, - "callee": { - "type": "MemberExpression", - "start": 27955, - "end": 27966, - "loc": { - "start": { - "line": 750, - "column": 8 - }, - "end": { - "line": 750, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 27955, - "end": 27962, - "loc": { - "start": { - "line": 750, - "column": 8 - }, - "end": { - "line": 750, - "column": 15 - }, - "identifierName": "Promise" - }, - "name": "Promise" - }, - "property": { - "type": "Identifier", - "start": 27963, - "end": 27966, - "loc": { - "start": { - "line": 750, - "column": 16 - }, - "end": { - "line": 750, - "column": 19 - }, - "identifierName": "all" - }, - "name": "all" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 27967, - "end": 27983, - "loc": { - "start": { - "line": 750, - "column": 20 - }, - "end": { - "line": 750, - "column": 36 - }, - "identifierName": "documentsDeleted" - }, - "name": "documentsDeleted" - } - ] - }, - "property": { - "type": "Identifier", - "start": 27996, - "end": 28000, - "loc": { - "start": { - "line": 751, - "column": 11 - }, - "end": { - "line": 751, - "column": 15 - }, - "identifierName": "then" - }, - "name": "then" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 28001, - "end": 28118, - "loc": { - "start": { - "line": 751, - "column": 16 - }, - "end": { - "line": 751, - "column": 133 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 28001, - "end": 28017, - "loc": { - "start": { - "line": 751, - "column": 16 - }, - "end": { - "line": 751, - "column": 32 - }, - "identifierName": "deletionStatuses" - }, - "name": "deletionStatuses" - } - ], - "body": { - "type": "CallExpression", - "start": 28021, - "end": 28118, - "loc": { - "start": { - "line": 751, - "column": 36 - }, - "end": { - "line": 751, - "column": 133 - } - }, - "callee": { - "type": "MemberExpression", - "start": 28021, - "end": 28044, - "loc": { - "start": { - "line": 751, - "column": 36 - }, - "end": { - "line": 751, - "column": 59 - } - }, - "object": { - "type": "Identifier", - "start": 28021, - "end": 28037, - "loc": { - "start": { - "line": 751, - "column": 36 - }, - "end": { - "line": 751, - "column": 52 - }, - "identifierName": "deletionStatuses" - }, - "name": "deletionStatuses" - }, - "property": { - "type": "Identifier", - "start": 28038, - "end": 28044, - "loc": { - "start": { - "line": 751, - "column": 53 - }, - "end": { - "line": 751, - "column": 59 - }, - "identifierName": "reduce" - }, - "name": "reduce" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 28045, - "end": 28111, - "loc": { - "start": { - "line": 751, - "column": 60 - }, - "end": { - "line": 751, - "column": 126 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 28046, - "end": 28059, - "loc": { - "start": { - "line": 751, - "column": 61 - }, - "end": { - "line": 751, - "column": 74 - }, - "identifierName": "generalStatus" - }, - "name": "generalStatus" - }, - { - "type": "Identifier", - "start": 28061, - "end": 28074, - "loc": { - "start": { - "line": 751, - "column": 76 - }, - "end": { - "line": 751, - "column": 89 - }, - "identifierName": "currentStatus" - }, - "name": "currentStatus" - } - ], - "body": { - "type": "LogicalExpression", - "start": 28080, - "end": 28110, - "loc": { - "start": { - "line": 751, - "column": 95 - }, - "end": { - "line": 751, - "column": 125 - } - }, - "left": { - "type": "Identifier", - "start": 28080, - "end": 28093, - "loc": { - "start": { - "line": 751, - "column": 95 - }, - "end": { - "line": 751, - "column": 108 - }, - "identifierName": "generalStatus" - }, - "name": "generalStatus" - }, - "operator": "&&", - "right": { - "type": "Identifier", - "start": 28097, - "end": 28110, - "loc": { - "start": { - "line": 751, - "column": 112 - }, - "end": { - "line": 751, - "column": 125 - }, - "identifierName": "currentStatus" - }, - "name": "currentStatus" - }, - "extra": { - "parenthesized": true, - "parenStart": 28079 - } - } - }, - { - "type": "BooleanLiteral", - "start": 28113, - "end": 28117, - "loc": { - "start": { - "line": 751, - "column": 128 - }, - "end": { - "line": 751, - "column": 132 - } - }, - "value": true - } - ] - } - } - ] - }, - "property": { - "type": "Identifier", - "start": 28131, - "end": 28135, - "loc": { - "start": { - "line": 752, - "column": 11 - }, - "end": { - "line": 752, - "column": 15 - }, - "identifierName": "then" - }, - "name": "then" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 28136, - "end": 28398, - "loc": { - "start": { - "line": 752, - "column": 16 - }, - "end": { - "line": 759, - "column": 11 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 28136, - "end": 28155, - "loc": { - "start": { - "line": 752, - "column": 16 - }, - "end": { - "line": 752, - "column": 35 - }, - "identifierName": "allDocumentsDeleted" - }, - "name": "allDocumentsDeleted" - } - ], - "body": { - "type": "BlockStatement", - "start": 28159, - "end": 28398, - "loc": { - "start": { - "line": 752, - "column": 39 - }, - "end": { - "line": 759, - "column": 11 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 28173, - "end": 28386, - "loc": { - "start": { - "line": 753, - "column": 12 - }, - "end": { - "line": 758, - "column": 13 - } - }, - "test": { - "type": "Identifier", - "start": 28177, - "end": 28196, - "loc": { - "start": { - "line": 753, - "column": 16 - }, - "end": { - "line": 753, - "column": 35 - }, - "identifierName": "allDocumentsDeleted" - }, - "name": "allDocumentsDeleted" - }, - "consequent": { - "type": "BlockStatement", - "start": 28198, - "end": 28283, - "loc": { - "start": { - "line": 753, - "column": 37 - }, - "end": { - "line": 756, - "column": 13 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 28214, - "end": 28247, - "loc": { - "start": { - "line": 754, - "column": 14 - }, - "end": { - "line": 754, - "column": 47 - } - }, - "expression": { - "type": "CallExpression", - "start": 28214, - "end": 28246, - "loc": { - "start": { - "line": 754, - "column": 14 - }, - "end": { - "line": 754, - "column": 46 - } - }, - "callee": { - "type": "Identifier", - "start": 28214, - "end": 28230, - "loc": { - "start": { - "line": 754, - "column": 14 - }, - "end": { - "line": 754, - "column": 30 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - }, - "arguments": [ - { - "type": "NullLiteral", - "start": 28231, - "end": 28235, - "loc": { - "start": { - "line": 754, - "column": 31 - }, - "end": { - "line": 754, - "column": 35 - } - } - }, - { - "type": "Identifier", - "start": 28237, - "end": 28245, - "loc": { - "start": { - "line": 754, - "column": 37 - }, - "end": { - "line": 754, - "column": 45 - }, - "identifierName": "mergeRes" - }, - "name": "mergeRes" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 28262, - "end": 28269, - "loc": { - "start": { - "line": 755, - "column": 14 - }, - "end": { - "line": 755, - "column": 21 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 28289, - "end": 28386, - "loc": { - "start": { - "line": 756, - "column": 19 - }, - "end": { - "line": 758, - "column": 13 - } - }, - "body": [ - { - "type": "ThrowStatement", - "start": 28305, - "end": 28372, - "loc": { - "start": { - "line": 757, - "column": 14 - }, - "end": { - "line": 757, - "column": 81 - } - }, - "argument": { - "type": "NewExpression", - "start": 28311, - "end": 28371, - "loc": { - "start": { - "line": 757, - "column": 20 - }, - "end": { - "line": 757, - "column": 80 - } - }, - "callee": { - "type": "Identifier", - "start": 28315, - "end": 28320, - "loc": { - "start": { - "line": 757, - "column": 24 - }, - "end": { - "line": 757, - "column": 29 - }, - "identifierName": "Error" - }, - "name": "Error" - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 28321, - "end": 28370, - "loc": { - "start": { - "line": 757, - "column": 30 - }, - "end": { - "line": 757, - "column": 79 - } - }, - "extra": { - "rawValue": "Some of the original documents were not removed", - "raw": "'Some of the original documents were not removed'" - }, - "value": "Some of the original documents were not removed" - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ] - }, - "property": { - "type": "Identifier", - "start": 28411, - "end": 28416, - "loc": { - "start": { - "line": 760, - "column": 11 - }, - "end": { - "line": 760, - "column": 16 - }, - "identifierName": "catch" - }, - "name": "catch" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 28417, - "end": 28504, - "loc": { - "start": { - "line": 760, - "column": 17 - }, - "end": { - "line": 763, - "column": 11 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 28417, - "end": 28426, - "loc": { - "start": { - "line": 760, - "column": 17 - }, - "end": { - "line": 760, - "column": 26 - }, - "identifierName": "removeErr" - }, - "name": "removeErr" - } - ], - "body": { - "type": "BlockStatement", - "start": 28430, - "end": 28504, - "loc": { - "start": { - "line": 760, - "column": 30 - }, - "end": { - "line": 763, - "column": 11 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 28444, - "end": 28472, - "loc": { - "start": { - "line": 761, - "column": 12 - }, - "end": { - "line": 761, - "column": 40 - } - }, - "expression": { - "type": "CallExpression", - "start": 28444, - "end": 28471, - "loc": { - "start": { - "line": 761, - "column": 12 - }, - "end": { - "line": 761, - "column": 39 - } - }, - "callee": { - "type": "Identifier", - "start": 28444, - "end": 28460, - "loc": { - "start": { - "line": 761, - "column": 12 - }, - "end": { - "line": 761, - "column": 28 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 28461, - "end": 28470, - "loc": { - "start": { - "line": 761, - "column": 29 - }, - "end": { - "line": 761, - "column": 38 - }, - "identifierName": "removeErr" - }, - "name": "removeErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 28485, - "end": 28492, - "loc": { - "start": { - "line": 762, - "column": 12 - }, - "end": { - "line": 762, - "column": 19 - } - }, - "argument": null - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 28528, - "end": 28631, - "loc": { - "start": { - "line": 768, - "column": 4 - }, - "end": { - "line": 770, - "column": 25 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 28534, - "end": 28630, - "loc": { - "start": { - "line": 768, - "column": 10 - }, - "end": { - "line": 770, - "column": 24 - } - }, - "id": { - "type": "Identifier", - "start": 28534, - "end": 28542, - "loc": { - "start": { - "line": 768, - "column": 10 - }, - "end": { - "line": 768, - "column": 18 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "init": { - "type": "ConditionalExpression", - "start": 28545, - "end": 28630, - "loc": { - "start": { - "line": 768, - "column": 21 - }, - "end": { - "line": 770, - "column": 24 - } - }, - "test": { - "type": "Identifier", - "start": 28545, - "end": 28568, - "loc": { - "start": { - "line": 768, - "column": 21 - }, - "end": { - "line": 768, - "column": 44 - }, - "identifierName": "removeOriginalDocuments" - }, - "name": "removeOriginalDocuments" - }, - "consequent": { - "type": "Identifier", - "start": 28577, - "end": 28605, - "loc": { - "start": { - "line": 769, - "column": 8 - }, - "end": { - "line": 769, - "column": 36 - }, - "identifierName": "callbackWithDocumentDeletion" - }, - "name": "callbackWithDocumentDeletion" - }, - "alternate": { - "type": "Identifier", - "start": 28614, - "end": 28630, - "loc": { - "start": { - "line": 770, - "column": 8 - }, - "end": { - "line": 770, - "column": 24 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 28637, - "end": 29049, - "loc": { - "start": { - "line": 772, - "column": 4 - }, - "end": { - "line": 785, - "column": 51 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 28643, - "end": 29048, - "loc": { - "start": { - "line": 772, - "column": 10 - }, - "end": { - "line": 785, - "column": 50 - } - }, - "id": { - "type": "Identifier", - "start": 28643, - "end": 28646, - "loc": { - "start": { - "line": 772, - "column": 10 - }, - "end": { - "line": 772, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 28649, - "end": 29048, - "loc": { - "start": { - "line": 772, - "column": 16 - }, - "end": { - "line": 785, - "column": 50 - } - }, - "callee": { - "type": "MemberExpression", - "start": 28649, - "end": 29007, - "loc": { - "start": { - "line": 772, - "column": 16 - }, - "end": { - "line": 785, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 28649, - "end": 28997, - "loc": { - "start": { - "line": 772, - "column": 16 - }, - "end": { - "line": 784, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 28649, - "end": 28669, - "loc": { - "start": { - "line": 772, - "column": 16 - }, - "end": { - "line": 773, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 28649, - "end": 28654, - "loc": { - "start": { - "line": 772, - "column": 16 - }, - "end": { - "line": 772, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 28662, - "end": 28669, - "loc": { - "start": { - "line": 773, - "column": 7 - }, - "end": { - "line": 773, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 28670, - "end": 28969, - "loc": { - "start": { - "line": 773, - "column": 15 - }, - "end": { - "line": 784, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 28670, - "end": 28689, - "loc": { - "start": { - "line": 773, - "column": 15 - }, - "end": { - "line": 773, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 28690, - "end": 28968, - "loc": { - "start": { - "line": 773, - "column": 35 - }, - "end": { - "line": 784, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 28700, - "end": 28714, - "loc": { - "start": { - "line": 774, - "column": 8 - }, - "end": { - "line": 774, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 28700, - "end": 28706, - "loc": { - "start": { - "line": 774, - "column": 8 - }, - "end": { - "line": 774, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 28708, - "end": 28714, - "loc": { - "start": { - "line": 774, - "column": 16 - }, - "end": { - "line": 774, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 28724, - "end": 28747, - "loc": { - "start": { - "line": 775, - "column": 8 - }, - "end": { - "line": 775, - "column": 31 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 28724, - "end": 28728, - "loc": { - "start": { - "line": 775, - "column": 8 - }, - "end": { - "line": 775, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 28730, - "end": 28747, - "loc": { - "start": { - "line": 775, - "column": 14 - }, - "end": { - "line": 775, - "column": 31 - } - }, - "extra": { - "rawValue": "/document/merge", - "raw": "'/document/merge'" - }, - "value": "/document/merge" - } - }, - { - "type": "ObjectProperty", - "start": 28757, - "end": 28826, - "loc": { - "start": { - "line": 776, - "column": 8 - }, - "end": { - "line": 779, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 28757, - "end": 28770, - "loc": { - "start": { - "line": 776, - "column": 8 - }, - "end": { - "line": 776, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 28772, - "end": 28826, - "loc": { - "start": { - "line": 776, - "column": 23 - }, - "end": { - "line": 779, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 28784, - "end": 28798, - "loc": { - "start": { - "line": 777, - "column": 10 - }, - "end": { - "line": 777, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 28784, - "end": 28788, - "loc": { - "start": { - "line": 777, - "column": 10 - }, - "end": { - "line": 777, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 28790, - "end": 28798, - "loc": { - "start": { - "line": 777, - "column": 16 - }, - "end": { - "line": 777, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 28810, - "end": 28815, - "loc": { - "start": { - "line": 778, - "column": 10 - }, - "end": { - "line": 778, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 28810, - "end": 28815, - "loc": { - "start": { - "line": 778, - "column": 10 - }, - "end": { - "line": 778, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 28810, - "end": 28815, - "loc": { - "start": { - "line": 778, - "column": 10 - }, - "end": { - "line": 778, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 28836, - "end": 28959, - "loc": { - "start": { - "line": 780, - "column": 8 - }, - "end": { - "line": 783, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 28836, - "end": 28843, - "loc": { - "start": { - "line": 780, - "column": 8 - }, - "end": { - "line": 780, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 28845, - "end": 28959, - "loc": { - "start": { - "line": 780, - "column": 17 - }, - "end": { - "line": 783, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 28857, - "end": 28891, - "loc": { - "start": { - "line": 781, - "column": 10 - }, - "end": { - "line": 781, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 28857, - "end": 28871, - "loc": { - "start": { - "line": 781, - "column": 10 - }, - "end": { - "line": 781, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 28873, - "end": 28891, - "loc": { - "start": { - "line": 781, - "column": 26 - }, - "end": { - "line": 781, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 28903, - "end": 28948, - "loc": { - "start": { - "line": 782, - "column": 10 - }, - "end": { - "line": 782, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 28903, - "end": 28919, - "loc": { - "start": { - "line": 782, - "column": 10 - }, - "end": { - "line": 782, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 28921, - "end": 28948, - "loc": { - "start": { - "line": 782, - "column": 28 - }, - "end": { - "line": 782, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 28921, - "end": 28938, - "loc": { - "start": { - "line": 782, - "column": 28 - }, - "end": { - "line": 782, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 28921, - "end": 28927, - "loc": { - "start": { - "line": 782, - "column": 28 - }, - "end": { - "line": 782, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 28928, - "end": 28938, - "loc": { - "start": { - "line": 782, - "column": 35 - }, - "end": { - "line": 782, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 28939, - "end": 28947, - "loc": { - "start": { - "line": 782, - "column": 46 - }, - "end": { - "line": 782, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 28971, - "end": 28996, - "loc": { - "start": { - "line": 784, - "column": 10 - }, - "end": { - "line": 784, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 28971, - "end": 28986, - "loc": { - "start": { - "line": 784, - "column": 10 - }, - "end": { - "line": 784, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 28987, - "end": 28995, - "loc": { - "start": { - "line": 784, - "column": 26 - }, - "end": { - "line": 784, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 29005, - "end": 29007, - "loc": { - "start": { - "line": 785, - "column": 7 - }, - "end": { - "line": 785, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 29008, - "end": 29015, - "loc": { - "start": { - "line": 785, - "column": 10 - }, - "end": { - "line": 785, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 29017, - "end": 29047, - "loc": { - "start": { - "line": 785, - "column": 19 - }, - "end": { - "line": 785, - "column": 49 - } - }, - "callee": { - "type": "Identifier", - "start": 29017, - "end": 29029, - "loc": { - "start": { - "line": 785, - "column": 19 - }, - "end": { - "line": 785, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 29030, - "end": 29046, - "loc": { - "start": { - "line": 785, - "column": 32 - }, - "end": { - "line": 785, - "column": 48 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 29055, - "end": 29075, - "loc": { - "start": { - "line": 787, - "column": 4 - }, - "end": { - "line": 787, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 29055, - "end": 29074, - "loc": { - "start": { - "line": 787, - "column": 4 - }, - "end": { - "line": 787, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 29055, - "end": 29064, - "loc": { - "start": { - "line": 787, - "column": 4 - }, - "end": { - "line": 787, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 29055, - "end": 29058, - "loc": { - "start": { - "line": 787, - "column": 4 - }, - "end": { - "line": 787, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 29059, - "end": 29064, - "loc": { - "start": { - "line": 787, - "column": 8 - }, - "end": { - "line": 787, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 29065, - "end": 29073, - "loc": { - "start": { - "line": 787, - "column": 14 - }, - "end": { - "line": 787, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 29080, - "end": 29090, - "loc": { - "start": { - "line": 788, - "column": 4 - }, - "end": { - "line": 788, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 29080, - "end": 29089, - "loc": { - "start": { - "line": 788, - "column": 4 - }, - "end": { - "line": 788, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 29080, - "end": 29087, - "loc": { - "start": { - "line": 788, - "column": 4 - }, - "end": { - "line": 788, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 29080, - "end": 29083, - "loc": { - "start": { - "line": 788, - "column": 4 - }, - "end": { - "line": 788, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 29084, - "end": 29087, - "loc": { - "start": { - "line": 788, - "column": 8 - }, - "end": { - "line": 788, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Merge documents optional settings\n * @typedef {Object} DocumentMergeOptions\n * @property {boolean} [removeOriginalDocuments=false] - if true original documents will be removed\n ", - "start": 26043, - "end": 26237, - "loc": { - "start": { - "line": 689, - "column": 2 - }, - "end": { - "line": 693, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Merge documents payload\n * @typedef {Object} DocumentMergeParams\n * @property {string} token - your auth token\n * @property {string} name - new name for merged document\n * @property {string[]} document_ids - an array of document IDs\n * @property {DocumentMergeOptions} options - merge documents optional settings\n ", - "start": 26241, - "end": 26578, - "loc": { - "start": { - "line": 695, - "column": 2 - }, - "end": { - "line": 702, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Merge documents response data\n * @typedef {Object} DocumentMergeResponse\n * @property {string} document_id - an ID of merged document\n ", - "start": 26582, - "end": 26734, - "loc": { - "start": { - "line": 704, - "column": 2 - }, - "end": { - "line": 708, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Merges existing documents into one.\n * By default original documents are not removed after merging. To remove original documents set `removeOriginalDocuments` option to `true`.\n * @param {DocumentMergeParams} data - merge documents payload\n * @param {function(err: ApiErrorResponse, res: DocumentMergeResponse)} [originalCallback] - error first node.js callback\n ", - "start": 26738, - "end": 27120, - "loc": { - "start": { - "line": 710, - "column": 2 - }, - "end": { - "line": 715, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document history payload\n * @typedef {Object} DocumentHistoryParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 29105, - "end": 29290, - "loc": { - "start": { - "line": 798, - "column": 2 - }, - "end": { - "line": 803, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document action log item\n * @typedef {Object} DocumentEvent\n * @property {string} client_app_name - name of a client application\n * @property {?string} client_timestamp - client application timestamp\n * @property {string} created - timestamp of action creation\n * @property {string} email - email of an actor\n * @property {string} event - name of event\n * @property {string} ip_address - actor's IP address\n * @property {?string} element_id - an ID of specific element\n * @property {?string} field_id - an ID of specific field\n * @property {?string} json_attributes - field attributes (e.g. font, style, size etc.)\n * @property {string} [document_id] - an ID of specific document\n * @property {string} [origin] - an origin of document\n * @property {string} [unique_id] - an ID of event\n * @property {string} [user_agent] - user agent\n * @property {string} [user_id] - id of an actor\n * @property {string} [version] - version of signed document (incremented after each signature addition)\n ", - "start": 29294, - "end": 30328, - "loc": { - "start": { - "line": 805, - "column": 2 - }, - "end": { - "line": 823, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document history response data\n * @typedef {DocumentEvent[]} DocumentHistoryResponse\n ", - "start": 30332, - "end": 30433, - "loc": { - "start": { - "line": 825, - "column": 2 - }, - "end": { - "line": 828, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves a document action log (history) data\n * @param {DocumentHistoryParams} data - payload\n * @param {function(err: ApiErrorResponse, res: DocumentHistoryResponse)} [callback] - error first node.js callback\n ", - "start": 30437, - "end": 30668, - "loc": { - "start": { - "line": 830, - "column": 2 - }, - "end": { - "line": 834, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 30671, - "end": 31001, - "loc": { - "start": { - "line": 835, - "column": 2 - }, - "end": { - "line": 847, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 30678, - "end": 30685, - "loc": { - "start": { - "line": 835, - "column": 9 - }, - "end": { - "line": 835, - "column": 16 - }, - "identifierName": "history" - }, - "name": "history" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 30687, - "end": 30700, - "loc": { - "start": { - "line": 835, - "column": 18 - }, - "end": { - "line": 835, - "column": 31 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 30689, - "end": 30691, - "loc": { - "start": { - "line": 835, - "column": 20 - }, - "end": { - "line": 835, - "column": 22 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 30689, - "end": 30691, - "loc": { - "start": { - "line": 835, - "column": 20 - }, - "end": { - "line": 835, - "column": 22 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 30689, - "end": 30691, - "loc": { - "start": { - "line": 835, - "column": 20 - }, - "end": { - "line": 835, - "column": 22 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 30693, - "end": 30698, - "loc": { - "start": { - "line": 835, - "column": 24 - }, - "end": { - "line": 835, - "column": 29 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 30693, - "end": 30698, - "loc": { - "start": { - "line": 835, - "column": 24 - }, - "end": { - "line": 835, - "column": 29 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 30693, - "end": 30698, - "loc": { - "start": { - "line": 835, - "column": 24 - }, - "end": { - "line": 835, - "column": 29 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 30702, - "end": 30710, - "loc": { - "start": { - "line": 835, - "column": 33 - }, - "end": { - "line": 835, - "column": 41 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 30712, - "end": 31001, - "loc": { - "start": { - "line": 835, - "column": 43 - }, - "end": { - "line": 847, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 30718, - "end": 30997, - "loc": { - "start": { - "line": 836, - "column": 4 - }, - "end": { - "line": 846, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 30718, - "end": 30996, - "loc": { - "start": { - "line": 836, - "column": 4 - }, - "end": { - "line": 846, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 30718, - "end": 30994, - "loc": { - "start": { - "line": 836, - "column": 4 - }, - "end": { - "line": 846, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 30718, - "end": 30983, - "loc": { - "start": { - "line": 836, - "column": 4 - }, - "end": { - "line": 845, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 30718, - "end": 30950, - "loc": { - "start": { - "line": 836, - "column": 4 - }, - "end": { - "line": 845, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 30718, - "end": 30940, - "loc": { - "start": { - "line": 836, - "column": 4 - }, - "end": { - "line": 844, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 30718, - "end": 30738, - "loc": { - "start": { - "line": 836, - "column": 4 - }, - "end": { - "line": 837, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 30718, - "end": 30723, - "loc": { - "start": { - "line": 836, - "column": 4 - }, - "end": { - "line": 836, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 30731, - "end": 30738, - "loc": { - "start": { - "line": 837, - "column": 7 - }, - "end": { - "line": 837, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 30739, - "end": 30912, - "loc": { - "start": { - "line": 837, - "column": 15 - }, - "end": { - "line": 844, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 30739, - "end": 30758, - "loc": { - "start": { - "line": 837, - "column": 15 - }, - "end": { - "line": 837, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 30759, - "end": 30911, - "loc": { - "start": { - "line": 837, - "column": 35 - }, - "end": { - "line": 844, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 30769, - "end": 30782, - "loc": { - "start": { - "line": 838, - "column": 8 - }, - "end": { - "line": 838, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 30769, - "end": 30775, - "loc": { - "start": { - "line": 838, - "column": 8 - }, - "end": { - "line": 838, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 30777, - "end": 30782, - "loc": { - "start": { - "line": 838, - "column": 16 - }, - "end": { - "line": 838, - "column": 21 - } - }, - "extra": { - "rawValue": "GET", - "raw": "'GET'" - }, - "value": "GET" - } - }, - { - "type": "ObjectProperty", - "start": 30792, - "end": 30823, - "loc": { - "start": { - "line": 839, - "column": 8 - }, - "end": { - "line": 839, - "column": 39 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 30792, - "end": 30796, - "loc": { - "start": { - "line": 839, - "column": 8 - }, - "end": { - "line": 839, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 30798, - "end": 30823, - "loc": { - "start": { - "line": 839, - "column": 14 - }, - "end": { - "line": 839, - "column": 39 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 30811, - "end": 30813, - "loc": { - "start": { - "line": 839, - "column": 27 - }, - "end": { - "line": 839, - "column": 29 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 30799, - "end": 30809, - "loc": { - "start": { - "line": 839, - "column": 15 - }, - "end": { - "line": 839, - "column": 25 - } - }, - "value": { - "raw": "/document/", - "cooked": "/document/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 30814, - "end": 30822, - "loc": { - "start": { - "line": 839, - "column": 30 - }, - "end": { - "line": 839, - "column": 38 - } - }, - "value": { - "raw": "/history", - "cooked": "/history" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 30833, - "end": 30902, - "loc": { - "start": { - "line": 840, - "column": 8 - }, - "end": { - "line": 843, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 30833, - "end": 30846, - "loc": { - "start": { - "line": 840, - "column": 8 - }, - "end": { - "line": 840, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 30848, - "end": 30902, - "loc": { - "start": { - "line": 840, - "column": 23 - }, - "end": { - "line": 843, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 30860, - "end": 30874, - "loc": { - "start": { - "line": 841, - "column": 10 - }, - "end": { - "line": 841, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 30860, - "end": 30864, - "loc": { - "start": { - "line": 841, - "column": 10 - }, - "end": { - "line": 841, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 30866, - "end": 30874, - "loc": { - "start": { - "line": 841, - "column": 16 - }, - "end": { - "line": 841, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 30886, - "end": 30891, - "loc": { - "start": { - "line": 842, - "column": 10 - }, - "end": { - "line": 842, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 30886, - "end": 30891, - "loc": { - "start": { - "line": 842, - "column": 10 - }, - "end": { - "line": 842, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 30886, - "end": 30891, - "loc": { - "start": { - "line": 842, - "column": 10 - }, - "end": { - "line": 842, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 30914, - "end": 30939, - "loc": { - "start": { - "line": 844, - "column": 10 - }, - "end": { - "line": 844, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 30914, - "end": 30929, - "loc": { - "start": { - "line": 844, - "column": 10 - }, - "end": { - "line": 844, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 30930, - "end": 30938, - "loc": { - "start": { - "line": 844, - "column": 26 - }, - "end": { - "line": 844, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 30948, - "end": 30950, - "loc": { - "start": { - "line": 845, - "column": 7 - }, - "end": { - "line": 845, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 30951, - "end": 30958, - "loc": { - "start": { - "line": 845, - "column": 10 - }, - "end": { - "line": 845, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 30960, - "end": 30982, - "loc": { - "start": { - "line": 845, - "column": 19 - }, - "end": { - "line": 845, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 30960, - "end": 30972, - "loc": { - "start": { - "line": 845, - "column": 19 - }, - "end": { - "line": 845, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 30973, - "end": 30981, - "loc": { - "start": { - "line": 845, - "column": 32 - }, - "end": { - "line": 845, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 30991, - "end": 30994, - "loc": { - "start": { - "line": 846, - "column": 7 - }, - "end": { - "line": 846, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document history payload\n * @typedef {Object} DocumentHistoryParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 29105, - "end": 29290, - "loc": { - "start": { - "line": 798, - "column": 2 - }, - "end": { - "line": 803, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document action log item\n * @typedef {Object} DocumentEvent\n * @property {string} client_app_name - name of a client application\n * @property {?string} client_timestamp - client application timestamp\n * @property {string} created - timestamp of action creation\n * @property {string} email - email of an actor\n * @property {string} event - name of event\n * @property {string} ip_address - actor's IP address\n * @property {?string} element_id - an ID of specific element\n * @property {?string} field_id - an ID of specific field\n * @property {?string} json_attributes - field attributes (e.g. font, style, size etc.)\n * @property {string} [document_id] - an ID of specific document\n * @property {string} [origin] - an origin of document\n * @property {string} [unique_id] - an ID of event\n * @property {string} [user_agent] - user agent\n * @property {string} [user_id] - id of an actor\n * @property {string} [version] - version of signed document (incremented after each signature addition)\n ", - "start": 29294, - "end": 30328, - "loc": { - "start": { - "line": 805, - "column": 2 - }, - "end": { - "line": 823, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document history response data\n * @typedef {DocumentEvent[]} DocumentHistoryResponse\n ", - "start": 30332, - "end": 30433, - "loc": { - "start": { - "line": 825, - "column": 2 - }, - "end": { - "line": 828, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves a document action log (history) data\n * @param {DocumentHistoryParams} data - payload\n * @param {function(err: ApiErrorResponse, res: DocumentHistoryResponse)} [callback] - error first node.js callback\n ", - "start": 30437, - "end": 30668, - "loc": { - "start": { - "line": 830, - "column": 2 - }, - "end": { - "line": 834, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Remove document payload\n * @typedef {Object} DocumentRemoveParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 31005, - "end": 31188, - "loc": { - "start": { - "line": 849, - "column": 2 - }, - "end": { - "line": 854, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Remove document response data\n * @typedef {Object} DocumentRemoveResponse\n * @property {string} status - status of deletion, e.g. 'success'\n ", - "start": 31192, - "end": 31350, - "loc": { - "start": { - "line": 856, - "column": 2 - }, - "end": { - "line": 860, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Removes a specified document from folder\n * @param {DocumentRemoveParams} data - remove document payload\n * @param {function(err: ApiErrorResponse, res: DocumentRemoveResponse)} [callback] - error first node.js callback\n ", - "start": 31354, - "end": 31592, - "loc": { - "start": { - "line": 862, - "column": 2 - }, - "end": { - "line": 866, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 31595, - "end": 31919, - "loc": { - "start": { - "line": 867, - "column": 2 - }, - "end": { - "line": 879, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 31602, - "end": 31608, - "loc": { - "start": { - "line": 867, - "column": 9 - }, - "end": { - "line": 867, - "column": 15 - }, - "identifierName": "remove" - }, - "name": "remove" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 31610, - "end": 31623, - "loc": { - "start": { - "line": 867, - "column": 17 - }, - "end": { - "line": 867, - "column": 30 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 31612, - "end": 31614, - "loc": { - "start": { - "line": 867, - "column": 19 - }, - "end": { - "line": 867, - "column": 21 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 31612, - "end": 31614, - "loc": { - "start": { - "line": 867, - "column": 19 - }, - "end": { - "line": 867, - "column": 21 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 31612, - "end": 31614, - "loc": { - "start": { - "line": 867, - "column": 19 - }, - "end": { - "line": 867, - "column": 21 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 31616, - "end": 31621, - "loc": { - "start": { - "line": 867, - "column": 23 - }, - "end": { - "line": 867, - "column": 28 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 31616, - "end": 31621, - "loc": { - "start": { - "line": 867, - "column": 23 - }, - "end": { - "line": 867, - "column": 28 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 31616, - "end": 31621, - "loc": { - "start": { - "line": 867, - "column": 23 - }, - "end": { - "line": 867, - "column": 28 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 31625, - "end": 31633, - "loc": { - "start": { - "line": 867, - "column": 32 - }, - "end": { - "line": 867, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 31635, - "end": 31919, - "loc": { - "start": { - "line": 867, - "column": 42 - }, - "end": { - "line": 879, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 31641, - "end": 31915, - "loc": { - "start": { - "line": 868, - "column": 4 - }, - "end": { - "line": 878, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 31641, - "end": 31914, - "loc": { - "start": { - "line": 868, - "column": 4 - }, - "end": { - "line": 878, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 31641, - "end": 31912, - "loc": { - "start": { - "line": 868, - "column": 4 - }, - "end": { - "line": 878, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 31641, - "end": 31901, - "loc": { - "start": { - "line": 868, - "column": 4 - }, - "end": { - "line": 877, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 31641, - "end": 31868, - "loc": { - "start": { - "line": 868, - "column": 4 - }, - "end": { - "line": 877, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 31641, - "end": 31858, - "loc": { - "start": { - "line": 868, - "column": 4 - }, - "end": { - "line": 876, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 31641, - "end": 31661, - "loc": { - "start": { - "line": 868, - "column": 4 - }, - "end": { - "line": 869, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 31641, - "end": 31646, - "loc": { - "start": { - "line": 868, - "column": 4 - }, - "end": { - "line": 868, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 31654, - "end": 31661, - "loc": { - "start": { - "line": 869, - "column": 7 - }, - "end": { - "line": 869, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 31662, - "end": 31830, - "loc": { - "start": { - "line": 869, - "column": 15 - }, - "end": { - "line": 876, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 31662, - "end": 31681, - "loc": { - "start": { - "line": 869, - "column": 15 - }, - "end": { - "line": 869, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 31682, - "end": 31829, - "loc": { - "start": { - "line": 869, - "column": 35 - }, - "end": { - "line": 876, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 31692, - "end": 31708, - "loc": { - "start": { - "line": 870, - "column": 8 - }, - "end": { - "line": 870, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31692, - "end": 31698, - "loc": { - "start": { - "line": 870, - "column": 8 - }, - "end": { - "line": 870, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 31700, - "end": 31708, - "loc": { - "start": { - "line": 870, - "column": 16 - }, - "end": { - "line": 870, - "column": 24 - } - }, - "extra": { - "rawValue": "DELETE", - "raw": "'DELETE'" - }, - "value": "DELETE" - } - }, - { - "type": "ObjectProperty", - "start": 31718, - "end": 31741, - "loc": { - "start": { - "line": 871, - "column": 8 - }, - "end": { - "line": 871, - "column": 31 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31718, - "end": 31722, - "loc": { - "start": { - "line": 871, - "column": 8 - }, - "end": { - "line": 871, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 31724, - "end": 31741, - "loc": { - "start": { - "line": 871, - "column": 14 - }, - "end": { - "line": 871, - "column": 31 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 31737, - "end": 31739, - "loc": { - "start": { - "line": 871, - "column": 27 - }, - "end": { - "line": 871, - "column": 29 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 31725, - "end": 31735, - "loc": { - "start": { - "line": 871, - "column": 15 - }, - "end": { - "line": 871, - "column": 25 - } - }, - "value": { - "raw": "/document/", - "cooked": "/document/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 31740, - "end": 31740, - "loc": { - "start": { - "line": 871, - "column": 30 - }, - "end": { - "line": 871, - "column": 30 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 31751, - "end": 31820, - "loc": { - "start": { - "line": 872, - "column": 8 - }, - "end": { - "line": 875, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31751, - "end": 31764, - "loc": { - "start": { - "line": 872, - "column": 8 - }, - "end": { - "line": 872, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 31766, - "end": 31820, - "loc": { - "start": { - "line": 872, - "column": 23 - }, - "end": { - "line": 875, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 31778, - "end": 31792, - "loc": { - "start": { - "line": 873, - "column": 10 - }, - "end": { - "line": 873, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31778, - "end": 31782, - "loc": { - "start": { - "line": 873, - "column": 10 - }, - "end": { - "line": 873, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 31784, - "end": 31792, - "loc": { - "start": { - "line": 873, - "column": 16 - }, - "end": { - "line": 873, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 31804, - "end": 31809, - "loc": { - "start": { - "line": 874, - "column": 10 - }, - "end": { - "line": 874, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 31804, - "end": 31809, - "loc": { - "start": { - "line": 874, - "column": 10 - }, - "end": { - "line": 874, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 31804, - "end": 31809, - "loc": { - "start": { - "line": 874, - "column": 10 - }, - "end": { - "line": 874, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 31832, - "end": 31857, - "loc": { - "start": { - "line": 876, - "column": 10 - }, - "end": { - "line": 876, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 31832, - "end": 31847, - "loc": { - "start": { - "line": 876, - "column": 10 - }, - "end": { - "line": 876, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 31848, - "end": 31856, - "loc": { - "start": { - "line": 876, - "column": 26 - }, - "end": { - "line": 876, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 31866, - "end": 31868, - "loc": { - "start": { - "line": 877, - "column": 7 - }, - "end": { - "line": 877, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 31869, - "end": 31876, - "loc": { - "start": { - "line": 877, - "column": 10 - }, - "end": { - "line": 877, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 31878, - "end": 31900, - "loc": { - "start": { - "line": 877, - "column": 19 - }, - "end": { - "line": 877, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 31878, - "end": 31890, - "loc": { - "start": { - "line": 877, - "column": 19 - }, - "end": { - "line": 877, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 31891, - "end": 31899, - "loc": { - "start": { - "line": 877, - "column": 32 - }, - "end": { - "line": 877, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 31909, - "end": 31912, - "loc": { - "start": { - "line": 878, - "column": 7 - }, - "end": { - "line": 878, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Remove document payload\n * @typedef {Object} DocumentRemoveParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 31005, - "end": 31188, - "loc": { - "start": { - "line": 849, - "column": 2 - }, - "end": { - "line": 854, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Remove document response data\n * @typedef {Object} DocumentRemoveResponse\n * @property {string} status - status of deletion, e.g. 'success'\n ", - "start": 31192, - "end": 31350, - "loc": { - "start": { - "line": 856, - "column": 2 - }, - "end": { - "line": 860, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Removes a specified document from folder\n * @param {DocumentRemoveParams} data - remove document payload\n * @param {function(err: ApiErrorResponse, res: DocumentRemoveResponse)} [callback] - error first node.js callback\n ", - "start": 31354, - "end": 31592, - "loc": { - "start": { - "line": 862, - "column": 2 - }, - "end": { - "line": 866, - "column": 5 - } - } - } - ] - } - ] - }, - "leadingComments": [], - "name": "_", - "trailingComments": [] - }, - { - "type": "Identifier", - "start": 31924, - "end": 31948, - "loc": { - "start": { - "line": 883, - "column": 0 - }, - "end": { - "line": 883, - "column": 24 - } - }, - "declaration": { - "type": "Identifier", - "start": 31939, - "end": 31947, - "loc": { - "start": { - "line": 883, - "column": 15 - }, - "end": { - "line": 883, - "column": 23 - }, - "identifierName": "Document" - }, - "name": "Document" - }, - "name": "_", - "leadingComments": [], - "trailingComments": [] - }, - { - "type": "ExportDefaultDeclaration", - "start": 31924, - "end": 31948, - "loc": { - "start": { - "line": 883, - "column": 0 - }, - "end": { - "line": 883, - "column": 24 - } - }, - "declaration": { - "type": "ClassDeclaration", - "start": 1753, - "end": 31922, - "loc": { - "start": { - "line": 61, - "column": 0 - }, - "end": { - "line": 881, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 1759, - "end": 1767, - "loc": { - "start": { - "line": 61, - "column": 6 - }, - "end": { - "line": 61, - "column": 14 - }, - "identifierName": "Document" - }, - "name": "Document", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 1768, - "end": 31922, - "loc": { - "start": { - "line": 61, - "column": 15 - }, - "end": { - "line": 881, - "column": 1 - } - }, - "body": [ - { - "type": "ClassMethod", - "start": 2489, - "end": 3706, - "loc": { - "start": { - "line": 82, - "column": 2 - }, - "end": { - "line": 121, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2496, - "end": 2502, - "loc": { - "start": { - "line": 82, - "column": 9 - }, - "end": { - "line": 82, - "column": 15 - }, - "identifierName": "create" - }, - "name": "create" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 2504, - "end": 2523, - "loc": { - "start": { - "line": 82, - "column": 17 - }, - "end": { - "line": 82, - "column": 36 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2506, - "end": 2514, - "loc": { - "start": { - "line": 82, - "column": 19 - }, - "end": { - "line": 82, - "column": 27 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2506, - "end": 2514, - "loc": { - "start": { - "line": 82, - "column": 19 - }, - "end": { - "line": 82, - "column": 27 - }, - "identifierName": "filepath" - }, - "name": "filepath" - }, - "value": { - "type": "Identifier", - "start": 2506, - "end": 2514, - "loc": { - "start": { - "line": 82, - "column": 19 - }, - "end": { - "line": 82, - "column": 27 - }, - "identifierName": "filepath" - }, - "name": "filepath" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 2516, - "end": 2521, - "loc": { - "start": { - "line": 82, - "column": 29 - }, - "end": { - "line": 82, - "column": 34 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2516, - "end": 2521, - "loc": { - "start": { - "line": 82, - "column": 29 - }, - "end": { - "line": 82, - "column": 34 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 2516, - "end": 2521, - "loc": { - "start": { - "line": 82, - "column": 29 - }, - "end": { - "line": 82, - "column": 34 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 2525, - "end": 2533, - "loc": { - "start": { - "line": 82, - "column": 38 - }, - "end": { - "line": 82, - "column": 46 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 2535, - "end": 3706, - "loc": { - "start": { - "line": 82, - "column": 48 - }, - "end": { - "line": 121, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 2541, - "end": 2576, - "loc": { - "start": { - "line": 83, - "column": 4 - }, - "end": { - "line": 83, - "column": 39 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2547, - "end": 2575, - "loc": { - "start": { - "line": 83, - "column": 10 - }, - "end": { - "line": 83, - "column": 38 - } - }, - "id": { - "type": "Identifier", - "start": 2547, - "end": 2558, - "loc": { - "start": { - "line": 83, - "column": 10 - }, - "end": { - "line": 83, - "column": 21 - }, - "identifierName": "boundaryKey" - }, - "name": "boundaryKey" - }, - "init": { - "type": "CallExpression", - "start": 2561, - "end": 2575, - "loc": { - "start": { - "line": 83, - "column": 24 - }, - "end": { - "line": 83, - "column": 38 - } - }, - "callee": { - "type": "Identifier", - "start": 2561, - "end": 2571, - "loc": { - "start": { - "line": 83, - "column": 24 - }, - "end": { - "line": 83, - "column": 34 - }, - "identifierName": "randString" - }, - "name": "randString" - }, - "arguments": [ - { - "type": "NumericLiteral", - "start": 2572, - "end": 2574, - "loc": { - "start": { - "line": 83, - "column": 35 - }, - "end": { - "line": 83, - "column": 37 - } - }, - "extra": { - "rawValue": 30, - "raw": "30" - }, - "value": 30 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 2581, - "end": 2620, - "loc": { - "start": { - "line": 84, - "column": 4 - }, - "end": { - "line": 84, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2587, - "end": 2619, - "loc": { - "start": { - "line": 84, - "column": 10 - }, - "end": { - "line": 84, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 2587, - "end": 2595, - "loc": { - "start": { - "line": 84, - "column": 10 - }, - "end": { - "line": 84, - "column": 18 - }, - "identifierName": "filename" - }, - "name": "filename" - }, - "init": { - "type": "CallExpression", - "start": 2598, - "end": 2619, - "loc": { - "start": { - "line": 84, - "column": 21 - }, - "end": { - "line": 84, - "column": 42 - } - }, - "callee": { - "type": "Identifier", - "start": 2598, - "end": 2609, - "loc": { - "start": { - "line": 84, - "column": 21 - }, - "end": { - "line": 84, - "column": 32 - }, - "identifierName": "getFileName" - }, - "name": "getFileName" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2610, - "end": 2618, - "loc": { - "start": { - "line": 84, - "column": 33 - }, - "end": { - "line": 84, - "column": 41 - }, - "identifierName": "filepath" - }, - "name": "filepath" - } - ] - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " check mimetype", - "start": 2626, - "end": 2643, - "loc": { - "start": { - "line": 86, - "column": 4 - }, - "end": { - "line": 86, - "column": 21 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 2648, - "end": 2687, - "loc": { - "start": { - "line": 87, - "column": 4 - }, - "end": { - "line": 87, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2654, - "end": 2686, - "loc": { - "start": { - "line": 87, - "column": 10 - }, - "end": { - "line": 87, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 2654, - "end": 2662, - "loc": { - "start": { - "line": 87, - "column": 10 - }, - "end": { - "line": 87, - "column": 18 - }, - "identifierName": "mimeType" - }, - "name": "mimeType", - "leadingComments": null - }, - "init": { - "type": "CallExpression", - "start": 2665, - "end": 2686, - "loc": { - "start": { - "line": 87, - "column": 21 - }, - "end": { - "line": 87, - "column": 42 - } - }, - "callee": { - "type": "Identifier", - "start": 2665, - "end": 2676, - "loc": { - "start": { - "line": 87, - "column": 21 - }, - "end": { - "line": 87, - "column": 32 - }, - "identifierName": "getMimeType" - }, - "name": "getMimeType" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2677, - "end": 2685, - "loc": { - "start": { - "line": 87, - "column": 33 - }, - "end": { - "line": 87, - "column": 41 - }, - "identifierName": "filepath" - }, - "name": "filepath" - } - ] - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " check mimetype", - "start": 2626, - "end": 2643, - "loc": { - "start": { - "line": 86, - "column": 4 - }, - "end": { - "line": 86, - "column": 21 - } - } - } - ] - }, - { - "type": "IfStatement", - "start": 2693, - "end": 2776, - "loc": { - "start": { - "line": 89, - "column": 4 - }, - "end": { - "line": 92, - "column": 5 - } - }, - "test": { - "type": "UnaryExpression", - "start": 2697, - "end": 2706, - "loc": { - "start": { - "line": 89, - "column": 8 - }, - "end": { - "line": 89, - "column": 17 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 2698, - "end": 2706, - "loc": { - "start": { - "line": 89, - "column": 9 - }, - "end": { - "line": 89, - "column": 17 - }, - "identifierName": "mimeType" - }, - "name": "mimeType" - }, - "extra": { - "parenthesizedArgument": false - } - }, - "consequent": { - "type": "BlockStatement", - "start": 2708, - "end": 2776, - "loc": { - "start": { - "line": 89, - "column": 19 - }, - "end": { - "line": 92, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2716, - "end": 2756, - "loc": { - "start": { - "line": 90, - "column": 6 - }, - "end": { - "line": 90, - "column": 46 - } - }, - "expression": { - "type": "CallExpression", - "start": 2716, - "end": 2755, - "loc": { - "start": { - "line": 90, - "column": 6 - }, - "end": { - "line": 90, - "column": 45 - } - }, - "callee": { - "type": "Identifier", - "start": 2716, - "end": 2724, - "loc": { - "start": { - "line": 90, - "column": 6 - }, - "end": { - "line": 90, - "column": 14 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2725, - "end": 2754, - "loc": { - "start": { - "line": 90, - "column": 15 - }, - "end": { - "line": 90, - "column": 44 - } - }, - "extra": { - "rawValue": "File type isn't supported.", - "raw": "'File type isn\\'t supported.'" - }, - "value": "File type isn't supported." - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 2763, - "end": 2770, - "loc": { - "start": { - "line": 91, - "column": 6 - }, - "end": { - "line": 91, - "column": 13 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "VariableDeclaration", - "start": 2782, - "end": 2845, - "loc": { - "start": { - "line": 94, - "column": 4 - }, - "end": { - "line": 94, - "column": 67 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2788, - "end": 2844, - "loc": { - "start": { - "line": 94, - "column": 10 - }, - "end": { - "line": 94, - "column": 66 - } - }, - "id": { - "type": "Identifier", - "start": 2788, - "end": 2792, - "loc": { - "start": { - "line": 94, - "column": 10 - }, - "end": { - "line": 94, - "column": 14 - }, - "identifierName": "file" - }, - "name": "file" - }, - "init": { - "type": "CallExpression", - "start": 2795, - "end": 2844, - "loc": { - "start": { - "line": 94, - "column": 17 - }, - "end": { - "line": 94, - "column": 66 - } - }, - "callee": { - "type": "Identifier", - "start": 2795, - "end": 2811, - "loc": { - "start": { - "line": 94, - "column": 17 - }, - "end": { - "line": 94, - "column": 33 - }, - "identifierName": "buildFileRequest" - }, - "name": "buildFileRequest" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2812, - "end": 2823, - "loc": { - "start": { - "line": 94, - "column": 34 - }, - "end": { - "line": 94, - "column": 45 - }, - "identifierName": "boundaryKey" - }, - "name": "boundaryKey" - }, - { - "type": "Identifier", - "start": 2825, - "end": 2833, - "loc": { - "start": { - "line": 94, - "column": 47 - }, - "end": { - "line": 94, - "column": 55 - }, - "identifierName": "mimeType" - }, - "name": "mimeType" - }, - { - "type": "Identifier", - "start": 2835, - "end": 2843, - "loc": { - "start": { - "line": 94, - "column": 57 - }, - "end": { - "line": 94, - "column": 65 - }, - "identifierName": "filename" - }, - "name": "filename" - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 2850, - "end": 2885, - "loc": { - "start": { - "line": 95, - "column": 4 - }, - "end": { - "line": 95, - "column": 39 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2856, - "end": 2884, - "loc": { - "start": { - "line": 95, - "column": 10 - }, - "end": { - "line": 95, - "column": 38 - } - }, - "id": { - "type": "Identifier", - "start": 2856, - "end": 2860, - "loc": { - "start": { - "line": 95, - "column": 10 - }, - "end": { - "line": 95, - "column": 14 - }, - "identifierName": "stat" - }, - "name": "stat" - }, - "init": { - "type": "CallExpression", - "start": 2863, - "end": 2884, - "loc": { - "start": { - "line": 95, - "column": 17 - }, - "end": { - "line": 95, - "column": 38 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2863, - "end": 2874, - "loc": { - "start": { - "line": 95, - "column": 17 - }, - "end": { - "line": 95, - "column": 28 - } - }, - "object": { - "type": "Identifier", - "start": 2863, - "end": 2865, - "loc": { - "start": { - "line": 95, - "column": 17 - }, - "end": { - "line": 95, - "column": 19 - }, - "identifierName": "fs" - }, - "name": "fs" - }, - "property": { - "type": "Identifier", - "start": 2866, - "end": 2874, - "loc": { - "start": { - "line": 95, - "column": 20 - }, - "end": { - "line": 95, - "column": 28 - }, - "identifierName": "statSync" - }, - "name": "statSync" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2875, - "end": 2883, - "loc": { - "start": { - "line": 95, - "column": 29 - }, - "end": { - "line": 95, - "column": 37 - }, - "identifierName": "filepath" - }, - "name": "filepath" - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 2890, - "end": 2962, - "loc": { - "start": { - "line": 96, - "column": 4 - }, - "end": { - "line": 96, - "column": 76 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2896, - "end": 2961, - "loc": { - "start": { - "line": 96, - "column": 10 - }, - "end": { - "line": 96, - "column": 75 - } - }, - "id": { - "type": "Identifier", - "start": 2896, - "end": 2902, - "loc": { - "start": { - "line": 96, - "column": 10 - }, - "end": { - "line": 96, - "column": 16 - }, - "identifierName": "reader" - }, - "name": "reader" - }, - "init": { - "type": "CallExpression", - "start": 2905, - "end": 2961, - "loc": { - "start": { - "line": 96, - "column": 19 - }, - "end": { - "line": 96, - "column": 75 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2905, - "end": 2924, - "loc": { - "start": { - "line": 96, - "column": 19 - }, - "end": { - "line": 96, - "column": 38 - } - }, - "object": { - "type": "Identifier", - "start": 2905, - "end": 2907, - "loc": { - "start": { - "line": 96, - "column": 19 - }, - "end": { - "line": 96, - "column": 21 - }, - "identifierName": "fs" - }, - "name": "fs" - }, - "property": { - "type": "Identifier", - "start": 2908, - "end": 2924, - "loc": { - "start": { - "line": 96, - "column": 22 - }, - "end": { - "line": 96, - "column": 38 - }, - "identifierName": "createReadStream" - }, - "name": "createReadStream" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2925, - "end": 2933, - "loc": { - "start": { - "line": 96, - "column": 39 - }, - "end": { - "line": 96, - "column": 47 - }, - "identifierName": "filepath" - }, - "name": "filepath" - }, - { - "type": "ObjectExpression", - "start": 2935, - "end": 2960, - "loc": { - "start": { - "line": 96, - "column": 49 - }, - "end": { - "line": 96, - "column": 74 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2937, - "end": 2958, - "loc": { - "start": { - "line": 96, - "column": 51 - }, - "end": { - "line": 96, - "column": 72 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2937, - "end": 2947, - "loc": { - "start": { - "line": 96, - "column": 51 - }, - "end": { - "line": 96, - "column": 61 - }, - "identifierName": "bufferSize" - }, - "name": "bufferSize" - }, - "value": { - "type": "BinaryExpression", - "start": 2949, - "end": 2958, - "loc": { - "start": { - "line": 96, - "column": 63 - }, - "end": { - "line": 96, - "column": 72 - } - }, - "left": { - "type": "NumericLiteral", - "start": 2949, - "end": 2951, - "loc": { - "start": { - "line": 96, - "column": 63 - }, - "end": { - "line": 96, - "column": 65 - } - }, - "extra": { - "rawValue": 64, - "raw": "64" - }, - "value": 64 - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 2954, - "end": 2958, - "loc": { - "start": { - "line": 96, - "column": 68 - }, - "end": { - "line": 96, - "column": 72 - } - }, - "extra": { - "rawValue": 1024, - "raw": "1024" - }, - "value": 1024 - } - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 2967, - "end": 3028, - "loc": { - "start": { - "line": 97, - "column": 4 - }, - "end": { - "line": 97, - "column": 65 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2973, - "end": 3027, - "loc": { - "start": { - "line": 97, - "column": 10 - }, - "end": { - "line": 97, - "column": 64 - } - }, - "id": { - "type": "Identifier", - "start": 2973, - "end": 2984, - "loc": { - "start": { - "line": 97, - "column": 10 - }, - "end": { - "line": 97, - "column": 21 - }, - "identifierName": "closingLine" - }, - "name": "closingLine" - }, - "init": { - "type": "TemplateLiteral", - "start": 2987, - "end": 3027, - "loc": { - "start": { - "line": 97, - "column": 24 - }, - "end": { - "line": 97, - "column": 64 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 3012, - "end": 3023, - "loc": { - "start": { - "line": 97, - "column": 49 - }, - "end": { - "line": 97, - "column": 60 - }, - "identifierName": "boundaryKey" - }, - "name": "boundaryKey" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 2988, - "end": 3010, - "loc": { - "start": { - "line": 97, - "column": 25 - }, - "end": { - "line": 97, - "column": 47 - } - }, - "value": { - "raw": "\\r\\n------FormBoundary", - "cooked": "\r\n------FormBoundary" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 3024, - "end": 3026, - "loc": { - "start": { - "line": 97, - "column": 61 - }, - "end": { - "line": 97, - "column": 63 - } - }, - "value": { - "raw": "--", - "cooked": "--" - }, - "tail": true - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 3033, - "end": 3503, - "loc": { - "start": { - "line": 98, - "column": 4 - }, - "end": { - "line": 111, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3039, - "end": 3502, - "loc": { - "start": { - "line": 98, - "column": 10 - }, - "end": { - "line": 111, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 3039, - "end": 3042, - "loc": { - "start": { - "line": 98, - "column": 10 - }, - "end": { - "line": 98, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 3045, - "end": 3502, - "loc": { - "start": { - "line": 98, - "column": 16 - }, - "end": { - "line": 111, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3045, - "end": 3469, - "loc": { - "start": { - "line": 98, - "column": 16 - }, - "end": { - "line": 111, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 3045, - "end": 3459, - "loc": { - "start": { - "line": 98, - "column": 16 - }, - "end": { - "line": 110, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3045, - "end": 3065, - "loc": { - "start": { - "line": 98, - "column": 16 - }, - "end": { - "line": 99, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 3045, - "end": 3050, - "loc": { - "start": { - "line": 98, - "column": 16 - }, - "end": { - "line": 98, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 3058, - "end": 3065, - "loc": { - "start": { - "line": 99, - "column": 7 - }, - "end": { - "line": 99, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 3066, - "end": 3431, - "loc": { - "start": { - "line": 99, - "column": 15 - }, - "end": { - "line": 110, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 3066, - "end": 3085, - "loc": { - "start": { - "line": 99, - "column": 15 - }, - "end": { - "line": 99, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 3086, - "end": 3430, - "loc": { - "start": { - "line": 99, - "column": 35 - }, - "end": { - "line": 110, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3096, - "end": 3110, - "loc": { - "start": { - "line": 100, - "column": 8 - }, - "end": { - "line": 100, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3096, - "end": 3102, - "loc": { - "start": { - "line": 100, - "column": 8 - }, - "end": { - "line": 100, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 3104, - "end": 3110, - "loc": { - "start": { - "line": 100, - "column": 16 - }, - "end": { - "line": 100, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 3120, - "end": 3137, - "loc": { - "start": { - "line": 101, - "column": 8 - }, - "end": { - "line": 101, - "column": 25 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3120, - "end": 3124, - "loc": { - "start": { - "line": 101, - "column": 8 - }, - "end": { - "line": 101, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 3126, - "end": 3137, - "loc": { - "start": { - "line": 101, - "column": 14 - }, - "end": { - "line": 101, - "column": 25 - } - }, - "extra": { - "rawValue": "/document", - "raw": "'/document'" - }, - "value": "/document" - } - }, - { - "type": "ObjectProperty", - "start": 3147, - "end": 3216, - "loc": { - "start": { - "line": 102, - "column": 8 - }, - "end": { - "line": 105, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3147, - "end": 3160, - "loc": { - "start": { - "line": 102, - "column": 8 - }, - "end": { - "line": 102, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 3162, - "end": 3216, - "loc": { - "start": { - "line": 102, - "column": 23 - }, - "end": { - "line": 105, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3174, - "end": 3188, - "loc": { - "start": { - "line": 103, - "column": 10 - }, - "end": { - "line": 103, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3174, - "end": 3178, - "loc": { - "start": { - "line": 103, - "column": 10 - }, - "end": { - "line": 103, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 3180, - "end": 3188, - "loc": { - "start": { - "line": 103, - "column": 16 - }, - "end": { - "line": 103, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 3200, - "end": 3205, - "loc": { - "start": { - "line": 104, - "column": 10 - }, - "end": { - "line": 104, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3200, - "end": 3205, - "loc": { - "start": { - "line": 104, - "column": 10 - }, - "end": { - "line": 104, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 3200, - "end": 3205, - "loc": { - "start": { - "line": 104, - "column": 10 - }, - "end": { - "line": 104, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 3226, - "end": 3421, - "loc": { - "start": { - "line": 106, - "column": 8 - }, - "end": { - "line": 109, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3226, - "end": 3233, - "loc": { - "start": { - "line": 106, - "column": 8 - }, - "end": { - "line": 106, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 3235, - "end": 3421, - "loc": { - "start": { - "line": 106, - "column": 17 - }, - "end": { - "line": 109, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3247, - "end": 3325, - "loc": { - "start": { - "line": 107, - "column": 10 - }, - "end": { - "line": 107, - "column": 88 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 3247, - "end": 3261, - "loc": { - "start": { - "line": 107, - "column": 10 - }, - "end": { - "line": 107, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "TemplateLiteral", - "start": 3263, - "end": 3325, - "loc": { - "start": { - "line": 107, - "column": 26 - }, - "end": { - "line": 107, - "column": 88 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 3312, - "end": 3323, - "loc": { - "start": { - "line": 107, - "column": 75 - }, - "end": { - "line": 107, - "column": 86 - }, - "identifierName": "boundaryKey" - }, - "name": "boundaryKey" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 3264, - "end": 3310, - "loc": { - "start": { - "line": 107, - "column": 27 - }, - "end": { - "line": 107, - "column": 73 - } - }, - "value": { - "raw": "multipart/form-data; boundary=----FormBoundary", - "cooked": "multipart/form-data; boundary=----FormBoundary" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 3324, - "end": 3324, - "loc": { - "start": { - "line": 107, - "column": 87 - }, - "end": { - "line": 107, - "column": 87 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 3337, - "end": 3410, - "loc": { - "start": { - "line": 108, - "column": 10 - }, - "end": { - "line": 108, - "column": 83 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 3337, - "end": 3353, - "loc": { - "start": { - "line": 108, - "column": 10 - }, - "end": { - "line": 108, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "BinaryExpression", - "start": 3355, - "end": 3410, - "loc": { - "start": { - "line": 108, - "column": 28 - }, - "end": { - "line": 108, - "column": 83 - } - }, - "left": { - "type": "BinaryExpression", - "start": 3355, - "end": 3389, - "loc": { - "start": { - "line": 108, - "column": 28 - }, - "end": { - "line": 108, - "column": 62 - } - }, - "left": { - "type": "MemberExpression", - "start": 3355, - "end": 3364, - "loc": { - "start": { - "line": 108, - "column": 28 - }, - "end": { - "line": 108, - "column": 37 - } - }, - "object": { - "type": "Identifier", - "start": 3355, - "end": 3359, - "loc": { - "start": { - "line": 108, - "column": 28 - }, - "end": { - "line": 108, - "column": 32 - }, - "identifierName": "stat" - }, - "name": "stat" - }, - "property": { - "type": "Identifier", - "start": 3360, - "end": 3364, - "loc": { - "start": { - "line": 108, - "column": 33 - }, - "end": { - "line": 108, - "column": 37 - }, - "identifierName": "size" - }, - "name": "size" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 3367, - "end": 3389, - "loc": { - "start": { - "line": 108, - "column": 40 - }, - "end": { - "line": 108, - "column": 62 - } - }, - "object": { - "type": "CallExpression", - "start": 3367, - "end": 3382, - "loc": { - "start": { - "line": 108, - "column": 40 - }, - "end": { - "line": 108, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3367, - "end": 3380, - "loc": { - "start": { - "line": 108, - "column": 40 - }, - "end": { - "line": 108, - "column": 53 - } - }, - "object": { - "type": "Identifier", - "start": 3367, - "end": 3371, - "loc": { - "start": { - "line": 108, - "column": 40 - }, - "end": { - "line": 108, - "column": 44 - }, - "identifierName": "file" - }, - "name": "file" - }, - "property": { - "type": "Identifier", - "start": 3372, - "end": 3380, - "loc": { - "start": { - "line": 108, - "column": 45 - }, - "end": { - "line": 108, - "column": 53 - }, - "identifierName": "toString" - }, - "name": "toString" - }, - "computed": false - }, - "arguments": [] - }, - "property": { - "type": "Identifier", - "start": 3383, - "end": 3389, - "loc": { - "start": { - "line": 108, - "column": 56 - }, - "end": { - "line": 108, - "column": 62 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - } - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 3392, - "end": 3410, - "loc": { - "start": { - "line": 108, - "column": 65 - }, - "end": { - "line": 108, - "column": 83 - } - }, - "object": { - "type": "Identifier", - "start": 3392, - "end": 3403, - "loc": { - "start": { - "line": 108, - "column": 65 - }, - "end": { - "line": 108, - "column": 76 - }, - "identifierName": "closingLine" - }, - "name": "closingLine" - }, - "property": { - "type": "Identifier", - "start": 3404, - "end": 3410, - "loc": { - "start": { - "line": 108, - "column": 77 - }, - "end": { - "line": 108, - "column": 83 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - } - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 3433, - "end": 3458, - "loc": { - "start": { - "line": 110, - "column": 10 - }, - "end": { - "line": 110, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 3433, - "end": 3448, - "loc": { - "start": { - "line": 110, - "column": 10 - }, - "end": { - "line": 110, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3449, - "end": 3457, - "loc": { - "start": { - "line": 110, - "column": 26 - }, - "end": { - "line": 110, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 3467, - "end": 3469, - "loc": { - "start": { - "line": 111, - "column": 7 - }, - "end": { - "line": 111, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 3470, - "end": 3477, - "loc": { - "start": { - "line": 111, - "column": 10 - }, - "end": { - "line": 111, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 3479, - "end": 3501, - "loc": { - "start": { - "line": 111, - "column": 19 - }, - "end": { - "line": 111, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 3479, - "end": 3491, - "loc": { - "start": { - "line": 111, - "column": 19 - }, - "end": { - "line": 111, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3492, - "end": 3500, - "loc": { - "start": { - "line": 111, - "column": 32 - }, - "end": { - "line": 111, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 3509, - "end": 3525, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 113, - "column": 20 - } - }, - "expression": { - "type": "CallExpression", - "start": 3509, - "end": 3524, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 113, - "column": 19 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3509, - "end": 3518, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 113, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 3509, - "end": 3512, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 113, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 3513, - "end": 3518, - "loc": { - "start": { - "line": 113, - "column": 8 - }, - "end": { - "line": 113, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 3519, - "end": 3523, - "loc": { - "start": { - "line": 113, - "column": 14 - }, - "end": { - "line": 113, - "column": 18 - }, - "identifierName": "file" - }, - "name": "file" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 3530, - "end": 3616, - "loc": { - "start": { - "line": 114, - "column": 4 - }, - "end": { - "line": 117, - "column": 7 - } - }, - "expression": { - "type": "CallExpression", - "start": 3530, - "end": 3615, - "loc": { - "start": { - "line": 114, - "column": 4 - }, - "end": { - "line": 117, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3530, - "end": 3539, - "loc": { - "start": { - "line": 114, - "column": 4 - }, - "end": { - "line": 114, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 3530, - "end": 3536, - "loc": { - "start": { - "line": 114, - "column": 4 - }, - "end": { - "line": 114, - "column": 10 - }, - "identifierName": "reader" - }, - "name": "reader" - }, - "property": { - "type": "Identifier", - "start": 3537, - "end": 3539, - "loc": { - "start": { - "line": 114, - "column": 11 - }, - "end": { - "line": 114, - "column": 13 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 3540, - "end": 3545, - "loc": { - "start": { - "line": 114, - "column": 14 - }, - "end": { - "line": 114, - "column": 19 - } - }, - "extra": { - "rawValue": "end", - "raw": "'end'" - }, - "value": "end" - }, - { - "type": "ArrowFunctionExpression", - "start": 3547, - "end": 3614, - "loc": { - "start": { - "line": 114, - "column": 21 - }, - "end": { - "line": 117, - "column": 5 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 3553, - "end": 3614, - "loc": { - "start": { - "line": 114, - "column": 27 - }, - "end": { - "line": 117, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 3561, - "end": 3580, - "loc": { - "start": { - "line": 115, - "column": 6 - }, - "end": { - "line": 115, - "column": 25 - } - }, - "expression": { - "type": "CallExpression", - "start": 3561, - "end": 3579, - "loc": { - "start": { - "line": 115, - "column": 6 - }, - "end": { - "line": 115, - "column": 24 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3561, - "end": 3574, - "loc": { - "start": { - "line": 115, - "column": 6 - }, - "end": { - "line": 115, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 3561, - "end": 3567, - "loc": { - "start": { - "line": 115, - "column": 6 - }, - "end": { - "line": 115, - "column": 12 - }, - "identifierName": "reader" - }, - "name": "reader" - }, - "property": { - "type": "Identifier", - "start": 3568, - "end": 3574, - "loc": { - "start": { - "line": 115, - "column": 13 - }, - "end": { - "line": 115, - "column": 19 - }, - "identifierName": "unpipe" - }, - "name": "unpipe" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 3575, - "end": 3578, - "loc": { - "start": { - "line": 115, - "column": 20 - }, - "end": { - "line": 115, - "column": 23 - }, - "identifierName": "req" - }, - "name": "req" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 3587, - "end": 3608, - "loc": { - "start": { - "line": 116, - "column": 6 - }, - "end": { - "line": 116, - "column": 27 - } - }, - "expression": { - "type": "CallExpression", - "start": 3587, - "end": 3607, - "loc": { - "start": { - "line": 116, - "column": 6 - }, - "end": { - "line": 116, - "column": 26 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3587, - "end": 3594, - "loc": { - "start": { - "line": 116, - "column": 6 - }, - "end": { - "line": 116, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 3587, - "end": 3590, - "loc": { - "start": { - "line": 116, - "column": 6 - }, - "end": { - "line": 116, - "column": 9 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 3591, - "end": 3594, - "loc": { - "start": { - "line": 116, - "column": 10 - }, - "end": { - "line": 116, - "column": 13 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 3595, - "end": 3606, - "loc": { - "start": { - "line": 116, - "column": 14 - }, - "end": { - "line": 116, - "column": 25 - }, - "identifierName": "closingLine" - }, - "name": "closingLine" - } - ] - } - } - ], - "directives": [] - } - } - ] - }, - "trailingComments": [ - { - "type": "CommentLine", - "value": " pipe the file and append a closing line", - "start": 3622, - "end": 3664, - "loc": { - "start": { - "line": 119, - "column": 4 - }, - "end": { - "line": 119, - "column": 46 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 3669, - "end": 3702, - "loc": { - "start": { - "line": 120, - "column": 4 - }, - "end": { - "line": 120, - "column": 37 - } - }, - "expression": { - "type": "CallExpression", - "start": 3669, - "end": 3701, - "loc": { - "start": { - "line": 120, - "column": 4 - }, - "end": { - "line": 120, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3669, - "end": 3680, - "loc": { - "start": { - "line": 120, - "column": 4 - }, - "end": { - "line": 120, - "column": 15 - } - }, - "object": { - "type": "Identifier", - "start": 3669, - "end": 3675, - "loc": { - "start": { - "line": 120, - "column": 4 - }, - "end": { - "line": 120, - "column": 10 - }, - "identifierName": "reader" - }, - "name": "reader", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 3676, - "end": 3680, - "loc": { - "start": { - "line": 120, - "column": 11 - }, - "end": { - "line": 120, - "column": 15 - }, - "identifierName": "pipe" - }, - "name": "pipe" - }, - "computed": false, - "leadingComments": null - }, - "arguments": [ - { - "type": "Identifier", - "start": 3681, - "end": 3684, - "loc": { - "start": { - "line": 120, - "column": 16 - }, - "end": { - "line": 120, - "column": 19 - }, - "identifierName": "req" - }, - "name": "req" - }, - { - "type": "ObjectExpression", - "start": 3686, - "end": 3700, - "loc": { - "start": { - "line": 120, - "column": 21 - }, - "end": { - "line": 120, - "column": 35 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3688, - "end": 3698, - "loc": { - "start": { - "line": 120, - "column": 23 - }, - "end": { - "line": 120, - "column": 33 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3688, - "end": 3691, - "loc": { - "start": { - "line": 120, - "column": 23 - }, - "end": { - "line": 120, - "column": 26 - }, - "identifierName": "end" - }, - "name": "end" - }, - "value": { - "type": "BooleanLiteral", - "start": 3693, - "end": 3698, - "loc": { - "start": { - "line": 120, - "column": 28 - }, - "end": { - "line": 120, - "column": 33 - } - }, - "value": false - } - } - ] - } - ], - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " pipe the file and append a closing line", - "start": 3622, - "end": 3664, - "loc": { - "start": { - "line": 119, - "column": 4 - }, - "end": { - "line": 119, - "column": 46 - } - } - } - ] - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Create document payload\n * @typedef {Object} DocumentCreateParams\n * @property {string} filepath - path to file to be uploaded\n * @property {string} token - your auth token\n ", - "start": 1773, - "end": 1966, - "loc": { - "start": { - "line": 63, - "column": 2 - }, - "end": { - "line": 68, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document response data\n * @typedef {Object} DocumentCreateResponse\n * @property {string} id - an id of created document\n ", - "start": 1970, - "end": 2115, - "loc": { - "start": { - "line": 70, - "column": 2 - }, - "end": { - "line": 74, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Uploads a file and creates a document.\n * This endpoint accepts .pdf, .doc, .docx, .odt, .rtf, .png, .jpg, .jpeg, .gif, .bmp, .xml, .xls, .xlsx, .ppt, .pptx file types\n * @param {DocumentCreateParams} data - create document payload\n * @param {function(err: ApiErrorResponse, res: DocumentCreateResponse)} [callback] - error first node.js callback\n ", - "start": 2119, - "end": 2486, - "loc": { - "start": { - "line": 76, - "column": 2 - }, - "end": { - "line": 81, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Upload document with field extract payload\n * @typedef {Object} DocumentFieldExtractParams\n * @property {string} filepath - path to file to be uploaded\n * @property {string} token - your auth token\n ", - "start": 3710, - "end": 3928, - "loc": { - "start": { - "line": 123, - "column": 2 - }, - "end": { - "line": 128, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Upload document with field extract response data\n * @typedef {Object} DocumentFieldExtractResponse\n * @property {string} id - an id of created document\n ", - "start": 3932, - "end": 4102, - "loc": { - "start": { - "line": 130, - "column": 2 - }, - "end": { - "line": 134, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Uploads a file that contains SignNow Document Field Tags.\n * This endpoint only accepts .pdf (you may convert the document from .doc or .docx to .pdf)\n * @param {DocumentFieldExtractParams} data - upload document with field extract payload\n * @param {function(err: ApiErrorResponse, res: DocumentFieldExtractResponse)} [callback] - error first node.js callback\n ", - "start": 4106, - "end": 4487, - "loc": { - "start": { - "line": 136, - "column": 2 - }, - "end": { - "line": 141, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 4490, - "end": 5727, - "loc": { - "start": { - "line": 142, - "column": 2 - }, - "end": { - "line": 182, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 4497, - "end": 4509, - "loc": { - "start": { - "line": 142, - "column": 9 - }, - "end": { - "line": 142, - "column": 21 - }, - "identifierName": "fieldextract" - }, - "name": "fieldextract" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 4511, - "end": 4530, - "loc": { - "start": { - "line": 142, - "column": 23 - }, - "end": { - "line": 142, - "column": 42 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4513, - "end": 4521, - "loc": { - "start": { - "line": 142, - "column": 25 - }, - "end": { - "line": 142, - "column": 33 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 4513, - "end": 4521, - "loc": { - "start": { - "line": 142, - "column": 25 - }, - "end": { - "line": 142, - "column": 33 - }, - "identifierName": "filepath" - }, - "name": "filepath" - }, - "value": { - "type": "Identifier", - "start": 4513, - "end": 4521, - "loc": { - "start": { - "line": 142, - "column": 25 - }, - "end": { - "line": 142, - "column": 33 - }, - "identifierName": "filepath" - }, - "name": "filepath" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 4523, - "end": 4528, - "loc": { - "start": { - "line": 142, - "column": 35 - }, - "end": { - "line": 142, - "column": 40 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 4523, - "end": 4528, - "loc": { - "start": { - "line": 142, - "column": 35 - }, - "end": { - "line": 142, - "column": 40 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 4523, - "end": 4528, - "loc": { - "start": { - "line": 142, - "column": 35 - }, - "end": { - "line": 142, - "column": 40 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 4532, - "end": 4540, - "loc": { - "start": { - "line": 142, - "column": 44 - }, - "end": { - "line": 142, - "column": 52 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 4542, - "end": 5727, - "loc": { - "start": { - "line": 142, - "column": 54 - }, - "end": { - "line": 182, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 4548, - "end": 4583, - "loc": { - "start": { - "line": 143, - "column": 4 - }, - "end": { - "line": 143, - "column": 39 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 4554, - "end": 4582, - "loc": { - "start": { - "line": 143, - "column": 10 - }, - "end": { - "line": 143, - "column": 38 - } - }, - "id": { - "type": "Identifier", - "start": 4554, - "end": 4565, - "loc": { - "start": { - "line": 143, - "column": 10 - }, - "end": { - "line": 143, - "column": 21 - }, - "identifierName": "boundaryKey" - }, - "name": "boundaryKey" - }, - "init": { - "type": "CallExpression", - "start": 4568, - "end": 4582, - "loc": { - "start": { - "line": 143, - "column": 24 - }, - "end": { - "line": 143, - "column": 38 - } - }, - "callee": { - "type": "Identifier", - "start": 4568, - "end": 4578, - "loc": { - "start": { - "line": 143, - "column": 24 - }, - "end": { - "line": 143, - "column": 34 - }, - "identifierName": "randString" - }, - "name": "randString" - }, - "arguments": [ - { - "type": "NumericLiteral", - "start": 4579, - "end": 4581, - "loc": { - "start": { - "line": 143, - "column": 35 - }, - "end": { - "line": 143, - "column": 37 - } - }, - "extra": { - "rawValue": 30, - "raw": "30" - }, - "value": 30 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 4588, - "end": 4627, - "loc": { - "start": { - "line": 144, - "column": 4 - }, - "end": { - "line": 144, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 4594, - "end": 4626, - "loc": { - "start": { - "line": 144, - "column": 10 - }, - "end": { - "line": 144, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 4594, - "end": 4602, - "loc": { - "start": { - "line": 144, - "column": 10 - }, - "end": { - "line": 144, - "column": 18 - }, - "identifierName": "filename" - }, - "name": "filename" - }, - "init": { - "type": "CallExpression", - "start": 4605, - "end": 4626, - "loc": { - "start": { - "line": 144, - "column": 21 - }, - "end": { - "line": 144, - "column": 42 - } - }, - "callee": { - "type": "Identifier", - "start": 4605, - "end": 4616, - "loc": { - "start": { - "line": 144, - "column": 21 - }, - "end": { - "line": 144, - "column": 32 - }, - "identifierName": "getFileName" - }, - "name": "getFileName" - }, - "arguments": [ - { - "type": "Identifier", - "start": 4617, - "end": 4625, - "loc": { - "start": { - "line": 144, - "column": 33 - }, - "end": { - "line": 144, - "column": 41 - }, - "identifierName": "filepath" - }, - "name": "filepath" - } - ] - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " check mimetype", - "start": 4633, - "end": 4650, - "loc": { - "start": { - "line": 146, - "column": 4 - }, - "end": { - "line": 146, - "column": 21 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 4655, - "end": 4694, - "loc": { - "start": { - "line": 147, - "column": 4 - }, - "end": { - "line": 147, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 4661, - "end": 4693, - "loc": { - "start": { - "line": 147, - "column": 10 - }, - "end": { - "line": 147, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 4661, - "end": 4669, - "loc": { - "start": { - "line": 147, - "column": 10 - }, - "end": { - "line": 147, - "column": 18 - }, - "identifierName": "mimeType" - }, - "name": "mimeType", - "leadingComments": null - }, - "init": { - "type": "CallExpression", - "start": 4672, - "end": 4693, - "loc": { - "start": { - "line": 147, - "column": 21 - }, - "end": { - "line": 147, - "column": 42 - } - }, - "callee": { - "type": "Identifier", - "start": 4672, - "end": 4683, - "loc": { - "start": { - "line": 147, - "column": 21 - }, - "end": { - "line": 147, - "column": 32 - }, - "identifierName": "getMimeType" - }, - "name": "getMimeType" - }, - "arguments": [ - { - "type": "Identifier", - "start": 4684, - "end": 4692, - "loc": { - "start": { - "line": 147, - "column": 33 - }, - "end": { - "line": 147, - "column": 41 - }, - "identifierName": "filepath" - }, - "name": "filepath" - } - ] - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " check mimetype", - "start": 4633, - "end": 4650, - "loc": { - "start": { - "line": 146, - "column": 4 - }, - "end": { - "line": 146, - "column": 21 - } - } - } - ] - }, - { - "type": "IfStatement", - "start": 4700, - "end": 4783, - "loc": { - "start": { - "line": 149, - "column": 4 - }, - "end": { - "line": 152, - "column": 5 - } - }, - "test": { - "type": "UnaryExpression", - "start": 4704, - "end": 4713, - "loc": { - "start": { - "line": 149, - "column": 8 - }, - "end": { - "line": 149, - "column": 17 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 4705, - "end": 4713, - "loc": { - "start": { - "line": 149, - "column": 9 - }, - "end": { - "line": 149, - "column": 17 - }, - "identifierName": "mimeType" - }, - "name": "mimeType" - }, - "extra": { - "parenthesizedArgument": false - } - }, - "consequent": { - "type": "BlockStatement", - "start": 4715, - "end": 4783, - "loc": { - "start": { - "line": 149, - "column": 19 - }, - "end": { - "line": 152, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 4723, - "end": 4763, - "loc": { - "start": { - "line": 150, - "column": 6 - }, - "end": { - "line": 150, - "column": 46 - } - }, - "expression": { - "type": "CallExpression", - "start": 4723, - "end": 4762, - "loc": { - "start": { - "line": 150, - "column": 6 - }, - "end": { - "line": 150, - "column": 45 - } - }, - "callee": { - "type": "Identifier", - "start": 4723, - "end": 4731, - "loc": { - "start": { - "line": 150, - "column": 6 - }, - "end": { - "line": 150, - "column": 14 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 4732, - "end": 4761, - "loc": { - "start": { - "line": 150, - "column": 15 - }, - "end": { - "line": 150, - "column": 44 - } - }, - "extra": { - "rawValue": "File type isn't supported.", - "raw": "'File type isn\\'t supported.'" - }, - "value": "File type isn't supported." - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 4770, - "end": 4777, - "loc": { - "start": { - "line": 151, - "column": 6 - }, - "end": { - "line": 151, - "column": 13 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "VariableDeclaration", - "start": 4789, - "end": 4852, - "loc": { - "start": { - "line": 154, - "column": 4 - }, - "end": { - "line": 154, - "column": 67 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 4795, - "end": 4851, - "loc": { - "start": { - "line": 154, - "column": 10 - }, - "end": { - "line": 154, - "column": 66 - } - }, - "id": { - "type": "Identifier", - "start": 4795, - "end": 4799, - "loc": { - "start": { - "line": 154, - "column": 10 - }, - "end": { - "line": 154, - "column": 14 - }, - "identifierName": "file" - }, - "name": "file" - }, - "init": { - "type": "CallExpression", - "start": 4802, - "end": 4851, - "loc": { - "start": { - "line": 154, - "column": 17 - }, - "end": { - "line": 154, - "column": 66 - } - }, - "callee": { - "type": "Identifier", - "start": 4802, - "end": 4818, - "loc": { - "start": { - "line": 154, - "column": 17 - }, - "end": { - "line": 154, - "column": 33 - }, - "identifierName": "buildFileRequest" - }, - "name": "buildFileRequest" - }, - "arguments": [ - { - "type": "Identifier", - "start": 4819, - "end": 4830, - "loc": { - "start": { - "line": 154, - "column": 34 - }, - "end": { - "line": 154, - "column": 45 - }, - "identifierName": "boundaryKey" - }, - "name": "boundaryKey" - }, - { - "type": "Identifier", - "start": 4832, - "end": 4840, - "loc": { - "start": { - "line": 154, - "column": 47 - }, - "end": { - "line": 154, - "column": 55 - }, - "identifierName": "mimeType" - }, - "name": "mimeType" - }, - { - "type": "Identifier", - "start": 4842, - "end": 4850, - "loc": { - "start": { - "line": 154, - "column": 57 - }, - "end": { - "line": 154, - "column": 65 - }, - "identifierName": "filename" - }, - "name": "filename" - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 4857, - "end": 4892, - "loc": { - "start": { - "line": 155, - "column": 4 - }, - "end": { - "line": 155, - "column": 39 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 4863, - "end": 4891, - "loc": { - "start": { - "line": 155, - "column": 10 - }, - "end": { - "line": 155, - "column": 38 - } - }, - "id": { - "type": "Identifier", - "start": 4863, - "end": 4867, - "loc": { - "start": { - "line": 155, - "column": 10 - }, - "end": { - "line": 155, - "column": 14 - }, - "identifierName": "stat" - }, - "name": "stat" - }, - "init": { - "type": "CallExpression", - "start": 4870, - "end": 4891, - "loc": { - "start": { - "line": 155, - "column": 17 - }, - "end": { - "line": 155, - "column": 38 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4870, - "end": 4881, - "loc": { - "start": { - "line": 155, - "column": 17 - }, - "end": { - "line": 155, - "column": 28 - } - }, - "object": { - "type": "Identifier", - "start": 4870, - "end": 4872, - "loc": { - "start": { - "line": 155, - "column": 17 - }, - "end": { - "line": 155, - "column": 19 - }, - "identifierName": "fs" - }, - "name": "fs" - }, - "property": { - "type": "Identifier", - "start": 4873, - "end": 4881, - "loc": { - "start": { - "line": 155, - "column": 20 - }, - "end": { - "line": 155, - "column": 28 - }, - "identifierName": "statSync" - }, - "name": "statSync" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 4882, - "end": 4890, - "loc": { - "start": { - "line": 155, - "column": 29 - }, - "end": { - "line": 155, - "column": 37 - }, - "identifierName": "filepath" - }, - "name": "filepath" - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 4897, - "end": 4969, - "loc": { - "start": { - "line": 156, - "column": 4 - }, - "end": { - "line": 156, - "column": 76 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 4903, - "end": 4968, - "loc": { - "start": { - "line": 156, - "column": 10 - }, - "end": { - "line": 156, - "column": 75 - } - }, - "id": { - "type": "Identifier", - "start": 4903, - "end": 4909, - "loc": { - "start": { - "line": 156, - "column": 10 - }, - "end": { - "line": 156, - "column": 16 - }, - "identifierName": "reader" - }, - "name": "reader" - }, - "init": { - "type": "CallExpression", - "start": 4912, - "end": 4968, - "loc": { - "start": { - "line": 156, - "column": 19 - }, - "end": { - "line": 156, - "column": 75 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4912, - "end": 4931, - "loc": { - "start": { - "line": 156, - "column": 19 - }, - "end": { - "line": 156, - "column": 38 - } - }, - "object": { - "type": "Identifier", - "start": 4912, - "end": 4914, - "loc": { - "start": { - "line": 156, - "column": 19 - }, - "end": { - "line": 156, - "column": 21 - }, - "identifierName": "fs" - }, - "name": "fs" - }, - "property": { - "type": "Identifier", - "start": 4915, - "end": 4931, - "loc": { - "start": { - "line": 156, - "column": 22 - }, - "end": { - "line": 156, - "column": 38 - }, - "identifierName": "createReadStream" - }, - "name": "createReadStream" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 4932, - "end": 4940, - "loc": { - "start": { - "line": 156, - "column": 39 - }, - "end": { - "line": 156, - "column": 47 - }, - "identifierName": "filepath" - }, - "name": "filepath" - }, - { - "type": "ObjectExpression", - "start": 4942, - "end": 4967, - "loc": { - "start": { - "line": 156, - "column": 49 - }, - "end": { - "line": 156, - "column": 74 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4944, - "end": 4965, - "loc": { - "start": { - "line": 156, - "column": 51 - }, - "end": { - "line": 156, - "column": 72 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4944, - "end": 4954, - "loc": { - "start": { - "line": 156, - "column": 51 - }, - "end": { - "line": 156, - "column": 61 - }, - "identifierName": "bufferSize" - }, - "name": "bufferSize" - }, - "value": { - "type": "BinaryExpression", - "start": 4956, - "end": 4965, - "loc": { - "start": { - "line": 156, - "column": 63 - }, - "end": { - "line": 156, - "column": 72 - } - }, - "left": { - "type": "NumericLiteral", - "start": 4956, - "end": 4958, - "loc": { - "start": { - "line": 156, - "column": 63 - }, - "end": { - "line": 156, - "column": 65 - } - }, - "extra": { - "rawValue": 64, - "raw": "64" - }, - "value": 64 - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 4961, - "end": 4965, - "loc": { - "start": { - "line": 156, - "column": 68 - }, - "end": { - "line": 156, - "column": 72 - } - }, - "extra": { - "rawValue": 1024, - "raw": "1024" - }, - "value": 1024 - } - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 4974, - "end": 5035, - "loc": { - "start": { - "line": 157, - "column": 4 - }, - "end": { - "line": 157, - "column": 65 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 4980, - "end": 5034, - "loc": { - "start": { - "line": 157, - "column": 10 - }, - "end": { - "line": 157, - "column": 64 - } - }, - "id": { - "type": "Identifier", - "start": 4980, - "end": 4991, - "loc": { - "start": { - "line": 157, - "column": 10 - }, - "end": { - "line": 157, - "column": 21 - }, - "identifierName": "closingLine" - }, - "name": "closingLine" - }, - "init": { - "type": "TemplateLiteral", - "start": 4994, - "end": 5034, - "loc": { - "start": { - "line": 157, - "column": 24 - }, - "end": { - "line": 157, - "column": 64 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 5019, - "end": 5030, - "loc": { - "start": { - "line": 157, - "column": 49 - }, - "end": { - "line": 157, - "column": 60 - }, - "identifierName": "boundaryKey" - }, - "name": "boundaryKey" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 4995, - "end": 5017, - "loc": { - "start": { - "line": 157, - "column": 25 - }, - "end": { - "line": 157, - "column": 47 - } - }, - "value": { - "raw": "\\r\\n------FormBoundary", - "cooked": "\r\n------FormBoundary" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 5031, - "end": 5033, - "loc": { - "start": { - "line": 157, - "column": 61 - }, - "end": { - "line": 157, - "column": 63 - } - }, - "value": { - "raw": "--", - "cooked": "--" - }, - "tail": true - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 5041, - "end": 5524, - "loc": { - "start": { - "line": 159, - "column": 4 - }, - "end": { - "line": 172, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 5047, - "end": 5523, - "loc": { - "start": { - "line": 159, - "column": 10 - }, - "end": { - "line": 172, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 5047, - "end": 5050, - "loc": { - "start": { - "line": 159, - "column": 10 - }, - "end": { - "line": 159, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 5053, - "end": 5523, - "loc": { - "start": { - "line": 159, - "column": 16 - }, - "end": { - "line": 172, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5053, - "end": 5490, - "loc": { - "start": { - "line": 159, - "column": 16 - }, - "end": { - "line": 172, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 5053, - "end": 5480, - "loc": { - "start": { - "line": 159, - "column": 16 - }, - "end": { - "line": 171, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5053, - "end": 5073, - "loc": { - "start": { - "line": 159, - "column": 16 - }, - "end": { - "line": 160, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 5053, - "end": 5058, - "loc": { - "start": { - "line": 159, - "column": 16 - }, - "end": { - "line": 159, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 5066, - "end": 5073, - "loc": { - "start": { - "line": 160, - "column": 7 - }, - "end": { - "line": 160, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 5074, - "end": 5452, - "loc": { - "start": { - "line": 160, - "column": 15 - }, - "end": { - "line": 171, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 5074, - "end": 5093, - "loc": { - "start": { - "line": 160, - "column": 15 - }, - "end": { - "line": 160, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 5094, - "end": 5451, - "loc": { - "start": { - "line": 160, - "column": 35 - }, - "end": { - "line": 171, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5104, - "end": 5118, - "loc": { - "start": { - "line": 161, - "column": 8 - }, - "end": { - "line": 161, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5104, - "end": 5110, - "loc": { - "start": { - "line": 161, - "column": 8 - }, - "end": { - "line": 161, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 5112, - "end": 5118, - "loc": { - "start": { - "line": 161, - "column": 16 - }, - "end": { - "line": 161, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 5128, - "end": 5158, - "loc": { - "start": { - "line": 162, - "column": 8 - }, - "end": { - "line": 162, - "column": 38 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5128, - "end": 5132, - "loc": { - "start": { - "line": 162, - "column": 8 - }, - "end": { - "line": 162, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 5134, - "end": 5158, - "loc": { - "start": { - "line": 162, - "column": 14 - }, - "end": { - "line": 162, - "column": 38 - } - }, - "extra": { - "rawValue": "/document/fieldextract", - "raw": "'/document/fieldextract'" - }, - "value": "/document/fieldextract" - } - }, - { - "type": "ObjectProperty", - "start": 5168, - "end": 5237, - "loc": { - "start": { - "line": 163, - "column": 8 - }, - "end": { - "line": 166, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5168, - "end": 5181, - "loc": { - "start": { - "line": 163, - "column": 8 - }, - "end": { - "line": 163, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 5183, - "end": 5237, - "loc": { - "start": { - "line": 163, - "column": 23 - }, - "end": { - "line": 166, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5195, - "end": 5209, - "loc": { - "start": { - "line": 164, - "column": 10 - }, - "end": { - "line": 164, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5195, - "end": 5199, - "loc": { - "start": { - "line": 164, - "column": 10 - }, - "end": { - "line": 164, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 5201, - "end": 5209, - "loc": { - "start": { - "line": 164, - "column": 16 - }, - "end": { - "line": 164, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 5221, - "end": 5226, - "loc": { - "start": { - "line": 165, - "column": 10 - }, - "end": { - "line": 165, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5221, - "end": 5226, - "loc": { - "start": { - "line": 165, - "column": 10 - }, - "end": { - "line": 165, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 5221, - "end": 5226, - "loc": { - "start": { - "line": 165, - "column": 10 - }, - "end": { - "line": 165, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 5247, - "end": 5442, - "loc": { - "start": { - "line": 167, - "column": 8 - }, - "end": { - "line": 170, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5247, - "end": 5254, - "loc": { - "start": { - "line": 167, - "column": 8 - }, - "end": { - "line": 167, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 5256, - "end": 5442, - "loc": { - "start": { - "line": 167, - "column": 17 - }, - "end": { - "line": 170, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5268, - "end": 5346, - "loc": { - "start": { - "line": 168, - "column": 10 - }, - "end": { - "line": 168, - "column": 88 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 5268, - "end": 5282, - "loc": { - "start": { - "line": 168, - "column": 10 - }, - "end": { - "line": 168, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "TemplateLiteral", - "start": 5284, - "end": 5346, - "loc": { - "start": { - "line": 168, - "column": 26 - }, - "end": { - "line": 168, - "column": 88 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 5333, - "end": 5344, - "loc": { - "start": { - "line": 168, - "column": 75 - }, - "end": { - "line": 168, - "column": 86 - }, - "identifierName": "boundaryKey" - }, - "name": "boundaryKey" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 5285, - "end": 5331, - "loc": { - "start": { - "line": 168, - "column": 27 - }, - "end": { - "line": 168, - "column": 73 - } - }, - "value": { - "raw": "multipart/form-data; boundary=----FormBoundary", - "cooked": "multipart/form-data; boundary=----FormBoundary" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 5345, - "end": 5345, - "loc": { - "start": { - "line": 168, - "column": 87 - }, - "end": { - "line": 168, - "column": 87 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 5358, - "end": 5431, - "loc": { - "start": { - "line": 169, - "column": 10 - }, - "end": { - "line": 169, - "column": 83 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 5358, - "end": 5374, - "loc": { - "start": { - "line": 169, - "column": 10 - }, - "end": { - "line": 169, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "BinaryExpression", - "start": 5376, - "end": 5431, - "loc": { - "start": { - "line": 169, - "column": 28 - }, - "end": { - "line": 169, - "column": 83 - } - }, - "left": { - "type": "BinaryExpression", - "start": 5376, - "end": 5410, - "loc": { - "start": { - "line": 169, - "column": 28 - }, - "end": { - "line": 169, - "column": 62 - } - }, - "left": { - "type": "MemberExpression", - "start": 5376, - "end": 5385, - "loc": { - "start": { - "line": 169, - "column": 28 - }, - "end": { - "line": 169, - "column": 37 - } - }, - "object": { - "type": "Identifier", - "start": 5376, - "end": 5380, - "loc": { - "start": { - "line": 169, - "column": 28 - }, - "end": { - "line": 169, - "column": 32 - }, - "identifierName": "stat" - }, - "name": "stat" - }, - "property": { - "type": "Identifier", - "start": 5381, - "end": 5385, - "loc": { - "start": { - "line": 169, - "column": 33 - }, - "end": { - "line": 169, - "column": 37 - }, - "identifierName": "size" - }, - "name": "size" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 5388, - "end": 5410, - "loc": { - "start": { - "line": 169, - "column": 40 - }, - "end": { - "line": 169, - "column": 62 - } - }, - "object": { - "type": "CallExpression", - "start": 5388, - "end": 5403, - "loc": { - "start": { - "line": 169, - "column": 40 - }, - "end": { - "line": 169, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5388, - "end": 5401, - "loc": { - "start": { - "line": 169, - "column": 40 - }, - "end": { - "line": 169, - "column": 53 - } - }, - "object": { - "type": "Identifier", - "start": 5388, - "end": 5392, - "loc": { - "start": { - "line": 169, - "column": 40 - }, - "end": { - "line": 169, - "column": 44 - }, - "identifierName": "file" - }, - "name": "file" - }, - "property": { - "type": "Identifier", - "start": 5393, - "end": 5401, - "loc": { - "start": { - "line": 169, - "column": 45 - }, - "end": { - "line": 169, - "column": 53 - }, - "identifierName": "toString" - }, - "name": "toString" - }, - "computed": false - }, - "arguments": [] - }, - "property": { - "type": "Identifier", - "start": 5404, - "end": 5410, - "loc": { - "start": { - "line": 169, - "column": 56 - }, - "end": { - "line": 169, - "column": 62 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - } - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 5413, - "end": 5431, - "loc": { - "start": { - "line": 169, - "column": 65 - }, - "end": { - "line": 169, - "column": 83 - } - }, - "object": { - "type": "Identifier", - "start": 5413, - "end": 5424, - "loc": { - "start": { - "line": 169, - "column": 65 - }, - "end": { - "line": 169, - "column": 76 - }, - "identifierName": "closingLine" - }, - "name": "closingLine" - }, - "property": { - "type": "Identifier", - "start": 5425, - "end": 5431, - "loc": { - "start": { - "line": 169, - "column": 77 - }, - "end": { - "line": 169, - "column": 83 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - } - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 5454, - "end": 5479, - "loc": { - "start": { - "line": 171, - "column": 10 - }, - "end": { - "line": 171, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 5454, - "end": 5469, - "loc": { - "start": { - "line": 171, - "column": 10 - }, - "end": { - "line": 171, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 5470, - "end": 5478, - "loc": { - "start": { - "line": 171, - "column": 26 - }, - "end": { - "line": 171, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 5488, - "end": 5490, - "loc": { - "start": { - "line": 172, - "column": 7 - }, - "end": { - "line": 172, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 5491, - "end": 5498, - "loc": { - "start": { - "line": 172, - "column": 10 - }, - "end": { - "line": 172, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 5500, - "end": 5522, - "loc": { - "start": { - "line": 172, - "column": 19 - }, - "end": { - "line": 172, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 5500, - "end": 5512, - "loc": { - "start": { - "line": 172, - "column": 19 - }, - "end": { - "line": 172, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 5513, - "end": 5521, - "loc": { - "start": { - "line": 172, - "column": 32 - }, - "end": { - "line": 172, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 5530, - "end": 5546, - "loc": { - "start": { - "line": 174, - "column": 4 - }, - "end": { - "line": 174, - "column": 20 - } - }, - "expression": { - "type": "CallExpression", - "start": 5530, - "end": 5545, - "loc": { - "start": { - "line": 174, - "column": 4 - }, - "end": { - "line": 174, - "column": 19 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5530, - "end": 5539, - "loc": { - "start": { - "line": 174, - "column": 4 - }, - "end": { - "line": 174, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 5530, - "end": 5533, - "loc": { - "start": { - "line": 174, - "column": 4 - }, - "end": { - "line": 174, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 5534, - "end": 5539, - "loc": { - "start": { - "line": 174, - "column": 8 - }, - "end": { - "line": 174, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 5540, - "end": 5544, - "loc": { - "start": { - "line": 174, - "column": 14 - }, - "end": { - "line": 174, - "column": 18 - }, - "identifierName": "file" - }, - "name": "file" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 5551, - "end": 5637, - "loc": { - "start": { - "line": 175, - "column": 4 - }, - "end": { - "line": 178, - "column": 7 - } - }, - "expression": { - "type": "CallExpression", - "start": 5551, - "end": 5636, - "loc": { - "start": { - "line": 175, - "column": 4 - }, - "end": { - "line": 178, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5551, - "end": 5560, - "loc": { - "start": { - "line": 175, - "column": 4 - }, - "end": { - "line": 175, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 5551, - "end": 5557, - "loc": { - "start": { - "line": 175, - "column": 4 - }, - "end": { - "line": 175, - "column": 10 - }, - "identifierName": "reader" - }, - "name": "reader" - }, - "property": { - "type": "Identifier", - "start": 5558, - "end": 5560, - "loc": { - "start": { - "line": 175, - "column": 11 - }, - "end": { - "line": 175, - "column": 13 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 5561, - "end": 5566, - "loc": { - "start": { - "line": 175, - "column": 14 - }, - "end": { - "line": 175, - "column": 19 - } - }, - "extra": { - "rawValue": "end", - "raw": "'end'" - }, - "value": "end" - }, - { - "type": "ArrowFunctionExpression", - "start": 5568, - "end": 5635, - "loc": { - "start": { - "line": 175, - "column": 21 - }, - "end": { - "line": 178, - "column": 5 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 5574, - "end": 5635, - "loc": { - "start": { - "line": 175, - "column": 27 - }, - "end": { - "line": 178, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 5582, - "end": 5601, - "loc": { - "start": { - "line": 176, - "column": 6 - }, - "end": { - "line": 176, - "column": 25 - } - }, - "expression": { - "type": "CallExpression", - "start": 5582, - "end": 5600, - "loc": { - "start": { - "line": 176, - "column": 6 - }, - "end": { - "line": 176, - "column": 24 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5582, - "end": 5595, - "loc": { - "start": { - "line": 176, - "column": 6 - }, - "end": { - "line": 176, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 5582, - "end": 5588, - "loc": { - "start": { - "line": 176, - "column": 6 - }, - "end": { - "line": 176, - "column": 12 - }, - "identifierName": "reader" - }, - "name": "reader" - }, - "property": { - "type": "Identifier", - "start": 5589, - "end": 5595, - "loc": { - "start": { - "line": 176, - "column": 13 - }, - "end": { - "line": 176, - "column": 19 - }, - "identifierName": "unpipe" - }, - "name": "unpipe" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 5596, - "end": 5599, - "loc": { - "start": { - "line": 176, - "column": 20 - }, - "end": { - "line": 176, - "column": 23 - }, - "identifierName": "req" - }, - "name": "req" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 5608, - "end": 5629, - "loc": { - "start": { - "line": 177, - "column": 6 - }, - "end": { - "line": 177, - "column": 27 - } - }, - "expression": { - "type": "CallExpression", - "start": 5608, - "end": 5628, - "loc": { - "start": { - "line": 177, - "column": 6 - }, - "end": { - "line": 177, - "column": 26 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5608, - "end": 5615, - "loc": { - "start": { - "line": 177, - "column": 6 - }, - "end": { - "line": 177, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 5608, - "end": 5611, - "loc": { - "start": { - "line": 177, - "column": 6 - }, - "end": { - "line": 177, - "column": 9 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 5612, - "end": 5615, - "loc": { - "start": { - "line": 177, - "column": 10 - }, - "end": { - "line": 177, - "column": 13 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 5616, - "end": 5627, - "loc": { - "start": { - "line": 177, - "column": 14 - }, - "end": { - "line": 177, - "column": 25 - }, - "identifierName": "closingLine" - }, - "name": "closingLine" - } - ] - } - } - ], - "directives": [] - } - } - ] - }, - "trailingComments": [ - { - "type": "CommentLine", - "value": " pipe the file and append a closing line", - "start": 5643, - "end": 5685, - "loc": { - "start": { - "line": 180, - "column": 4 - }, - "end": { - "line": 180, - "column": 46 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 5690, - "end": 5723, - "loc": { - "start": { - "line": 181, - "column": 4 - }, - "end": { - "line": 181, - "column": 37 - } - }, - "expression": { - "type": "CallExpression", - "start": 5690, - "end": 5722, - "loc": { - "start": { - "line": 181, - "column": 4 - }, - "end": { - "line": 181, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5690, - "end": 5701, - "loc": { - "start": { - "line": 181, - "column": 4 - }, - "end": { - "line": 181, - "column": 15 - } - }, - "object": { - "type": "Identifier", - "start": 5690, - "end": 5696, - "loc": { - "start": { - "line": 181, - "column": 4 - }, - "end": { - "line": 181, - "column": 10 - }, - "identifierName": "reader" - }, - "name": "reader", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 5697, - "end": 5701, - "loc": { - "start": { - "line": 181, - "column": 11 - }, - "end": { - "line": 181, - "column": 15 - }, - "identifierName": "pipe" - }, - "name": "pipe" - }, - "computed": false, - "leadingComments": null - }, - "arguments": [ - { - "type": "Identifier", - "start": 5702, - "end": 5705, - "loc": { - "start": { - "line": 181, - "column": 16 - }, - "end": { - "line": 181, - "column": 19 - }, - "identifierName": "req" - }, - "name": "req" - }, - { - "type": "ObjectExpression", - "start": 5707, - "end": 5721, - "loc": { - "start": { - "line": 181, - "column": 21 - }, - "end": { - "line": 181, - "column": 35 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5709, - "end": 5719, - "loc": { - "start": { - "line": 181, - "column": 23 - }, - "end": { - "line": 181, - "column": 33 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5709, - "end": 5712, - "loc": { - "start": { - "line": 181, - "column": 23 - }, - "end": { - "line": 181, - "column": 26 - }, - "identifierName": "end" - }, - "name": "end" - }, - "value": { - "type": "BooleanLiteral", - "start": 5714, - "end": 5719, - "loc": { - "start": { - "line": 181, - "column": 28 - }, - "end": { - "line": 181, - "column": 33 - } - }, - "value": false - } - } - ] - } - ], - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " pipe the file and append a closing line", - "start": 5643, - "end": 5685, - "loc": { - "start": { - "line": 180, - "column": 4 - }, - "end": { - "line": 180, - "column": 46 - } - } - } - ] - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Upload document with field extract payload\n * @typedef {Object} DocumentFieldExtractParams\n * @property {string} filepath - path to file to be uploaded\n * @property {string} token - your auth token\n ", - "start": 3710, - "end": 3928, - "loc": { - "start": { - "line": 123, - "column": 2 - }, - "end": { - "line": 128, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Upload document with field extract response data\n * @typedef {Object} DocumentFieldExtractResponse\n * @property {string} id - an id of created document\n ", - "start": 3932, - "end": 4102, - "loc": { - "start": { - "line": 130, - "column": 2 - }, - "end": { - "line": 134, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Uploads a file that contains SignNow Document Field Tags.\n * This endpoint only accepts .pdf (you may convert the document from .doc or .docx to .pdf)\n * @param {DocumentFieldExtractParams} data - upload document with field extract payload\n * @param {function(err: ApiErrorResponse, res: DocumentFieldExtractResponse)} [callback] - error first node.js callback\n ", - "start": 4106, - "end": 4487, - "loc": { - "start": { - "line": 136, - "column": 2 - }, - "end": { - "line": 141, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Payload to receive user's document list\n * @typedef {Object} DocumentListParams\n * @property {string} token - your auth token\n ", - "start": 5732, - "end": 5876, - "loc": { - "start": { - "line": 185, - "column": 2 - }, - "end": { - "line": 189, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document list response item\n * @typedef {Object} DocumentListItem\n * @property {string} id - id of specific document\n * @property {string} user_id - id of user that uploaded document\n * @property {string} document_name - name of document\n * @property {string} page_count - amount of pages in the document\n * @property {string} created - timestamp document was created\n * @property {string} updated - timestamp document was updated\n * @property {string} original_filename - original filename with document format (.pdf, .doc, etc...)\n * @property {?string} origin_document_id - an id of original document (if document is a copy)\n * @property {string} owner - email of document owner\n * @property {boolean} template - is document a template or not\n * @property {?string} origin_user_id - id of user who created document\n * @property {Object} thumbnail - thumbnail urls with different sizes (small, medium, large)\n * @property {Object[]} signatures - signature signed elements\n * @property {Object[]} texts - text and enumeration filled elements\n * @property {Object[]} checks - checkbox checked elements\n * @property {Object[]} tags - field types document contains\n * @property {Object[]} fields - all document fillable fields\n * @property {Object[]} requests - requests for signing document\n * @property {Object[]} roles - document signer roles\n * @property {Object[]} field_invites - sent invites data\n * @property {number} version_time - document updated timestamp\n * @property {Object[]} enumeration_options - dropdown options\n * @property {Object[]} attachments - attachments in document\n * @property {Object[]} routing_details - signing steps routing details\n * @property {Object[]} integrations - document integrations\n * @property {Object[]} hyperlinks - document hyperlinks\n * @property {Object[]} radiobuttons - checked radiobuttons after document was signed\n * @property {Object[]} document_group_template_info - document group templates data\n * @property {Object[]} document_group_info - document group template's data\n * @property {Object[]} originator_organization_settings - specific organization settings for document\n * @property {Object[]} field_validators - validation rules for fields (date fields, payment fields etc.)\n * @property {Object} settings - specific document settings\n ", - "start": 5880, - "end": 8258, - "loc": { - "start": { - "line": 191, - "column": 2 - }, - "end": { - "line": 226, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * User's Document list response\n * @typedef {DocumentListItem[]} DocumentListResponse\n ", - "start": 8262, - "end": 8362, - "loc": { - "start": { - "line": 228, - "column": 2 - }, - "end": { - "line": 231, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieve user's document list\n * @param {DocumentListParams} data - payload to receive user's document list\n * @param {function(err: ApiErrorResponse, res: DocumentListItem)} [callback] - error first node.js callback\n ", - "start": 8366, - "end": 8601, - "loc": { - "start": { - "line": 233, - "column": 2 - }, - "end": { - "line": 237, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 8604, - "end": 8921, - "loc": { - "start": { - "line": 238, - "column": 2 - }, - "end": { - "line": 250, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8611, - "end": 8615, - "loc": { - "start": { - "line": 238, - "column": 9 - }, - "end": { - "line": 238, - "column": 13 - }, - "identifierName": "list" - }, - "name": "list" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 8617, - "end": 8626, - "loc": { - "start": { - "line": 238, - "column": 15 - }, - "end": { - "line": 238, - "column": 24 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 8619, - "end": 8624, - "loc": { - "start": { - "line": 238, - "column": 17 - }, - "end": { - "line": 238, - "column": 22 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8619, - "end": 8624, - "loc": { - "start": { - "line": 238, - "column": 17 - }, - "end": { - "line": 238, - "column": 22 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 8619, - "end": 8624, - "loc": { - "start": { - "line": 238, - "column": 17 - }, - "end": { - "line": 238, - "column": 22 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 8628, - "end": 8636, - "loc": { - "start": { - "line": 238, - "column": 26 - }, - "end": { - "line": 238, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 8638, - "end": 8921, - "loc": { - "start": { - "line": 238, - "column": 36 - }, - "end": { - "line": 250, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 8644, - "end": 8917, - "loc": { - "start": { - "line": 239, - "column": 4 - }, - "end": { - "line": 249, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 8644, - "end": 8916, - "loc": { - "start": { - "line": 239, - "column": 4 - }, - "end": { - "line": 249, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 8644, - "end": 8914, - "loc": { - "start": { - "line": 239, - "column": 4 - }, - "end": { - "line": 249, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 8644, - "end": 8903, - "loc": { - "start": { - "line": 239, - "column": 4 - }, - "end": { - "line": 248, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 8644, - "end": 8870, - "loc": { - "start": { - "line": 239, - "column": 4 - }, - "end": { - "line": 248, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 8644, - "end": 8860, - "loc": { - "start": { - "line": 239, - "column": 4 - }, - "end": { - "line": 247, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 8644, - "end": 8664, - "loc": { - "start": { - "line": 239, - "column": 4 - }, - "end": { - "line": 240, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 8644, - "end": 8649, - "loc": { - "start": { - "line": 239, - "column": 4 - }, - "end": { - "line": 239, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 8657, - "end": 8664, - "loc": { - "start": { - "line": 240, - "column": 7 - }, - "end": { - "line": 240, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 8665, - "end": 8832, - "loc": { - "start": { - "line": 240, - "column": 15 - }, - "end": { - "line": 247, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 8665, - "end": 8684, - "loc": { - "start": { - "line": 240, - "column": 15 - }, - "end": { - "line": 240, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 8685, - "end": 8831, - "loc": { - "start": { - "line": 240, - "column": 35 - }, - "end": { - "line": 247, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 8695, - "end": 8708, - "loc": { - "start": { - "line": 241, - "column": 8 - }, - "end": { - "line": 241, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 8695, - "end": 8701, - "loc": { - "start": { - "line": 241, - "column": 8 - }, - "end": { - "line": 241, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 8703, - "end": 8708, - "loc": { - "start": { - "line": 241, - "column": 16 - }, - "end": { - "line": 241, - "column": 21 - } - }, - "extra": { - "rawValue": "GET", - "raw": "'GET'" - }, - "value": "GET" - } - }, - { - "type": "ObjectProperty", - "start": 8718, - "end": 8743, - "loc": { - "start": { - "line": 242, - "column": 8 - }, - "end": { - "line": 242, - "column": 33 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 8718, - "end": 8722, - "loc": { - "start": { - "line": 242, - "column": 8 - }, - "end": { - "line": 242, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 8724, - "end": 8743, - "loc": { - "start": { - "line": 242, - "column": 14 - }, - "end": { - "line": 242, - "column": 33 - } - }, - "extra": { - "rawValue": "/user/documentsv2", - "raw": "'/user/documentsv2'" - }, - "value": "/user/documentsv2" - } - }, - { - "type": "ObjectProperty", - "start": 8753, - "end": 8822, - "loc": { - "start": { - "line": 243, - "column": 8 - }, - "end": { - "line": 246, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 8753, - "end": 8766, - "loc": { - "start": { - "line": 243, - "column": 8 - }, - "end": { - "line": 243, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 8768, - "end": 8822, - "loc": { - "start": { - "line": 243, - "column": 23 - }, - "end": { - "line": 246, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 8780, - "end": 8794, - "loc": { - "start": { - "line": 244, - "column": 10 - }, - "end": { - "line": 244, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 8780, - "end": 8784, - "loc": { - "start": { - "line": 244, - "column": 10 - }, - "end": { - "line": 244, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 8786, - "end": 8794, - "loc": { - "start": { - "line": 244, - "column": 16 - }, - "end": { - "line": 244, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 8806, - "end": 8811, - "loc": { - "start": { - "line": 245, - "column": 10 - }, - "end": { - "line": 245, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8806, - "end": 8811, - "loc": { - "start": { - "line": 245, - "column": 10 - }, - "end": { - "line": 245, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 8806, - "end": 8811, - "loc": { - "start": { - "line": 245, - "column": 10 - }, - "end": { - "line": 245, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 8834, - "end": 8859, - "loc": { - "start": { - "line": 247, - "column": 10 - }, - "end": { - "line": 247, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 8834, - "end": 8849, - "loc": { - "start": { - "line": 247, - "column": 10 - }, - "end": { - "line": 247, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 8850, - "end": 8858, - "loc": { - "start": { - "line": 247, - "column": 26 - }, - "end": { - "line": 247, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 8868, - "end": 8870, - "loc": { - "start": { - "line": 248, - "column": 7 - }, - "end": { - "line": 248, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 8871, - "end": 8878, - "loc": { - "start": { - "line": 248, - "column": 10 - }, - "end": { - "line": 248, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 8880, - "end": 8902, - "loc": { - "start": { - "line": 248, - "column": 19 - }, - "end": { - "line": 248, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 8880, - "end": 8892, - "loc": { - "start": { - "line": 248, - "column": 19 - }, - "end": { - "line": 248, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 8893, - "end": 8901, - "loc": { - "start": { - "line": 248, - "column": 32 - }, - "end": { - "line": 248, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 8911, - "end": 8914, - "loc": { - "start": { - "line": 249, - "column": 7 - }, - "end": { - "line": 249, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Payload to receive user's document list\n * @typedef {Object} DocumentListParams\n * @property {string} token - your auth token\n ", - "start": 5732, - "end": 5876, - "loc": { - "start": { - "line": 185, - "column": 2 - }, - "end": { - "line": 189, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document list response item\n * @typedef {Object} DocumentListItem\n * @property {string} id - id of specific document\n * @property {string} user_id - id of user that uploaded document\n * @property {string} document_name - name of document\n * @property {string} page_count - amount of pages in the document\n * @property {string} created - timestamp document was created\n * @property {string} updated - timestamp document was updated\n * @property {string} original_filename - original filename with document format (.pdf, .doc, etc...)\n * @property {?string} origin_document_id - an id of original document (if document is a copy)\n * @property {string} owner - email of document owner\n * @property {boolean} template - is document a template or not\n * @property {?string} origin_user_id - id of user who created document\n * @property {Object} thumbnail - thumbnail urls with different sizes (small, medium, large)\n * @property {Object[]} signatures - signature signed elements\n * @property {Object[]} texts - text and enumeration filled elements\n * @property {Object[]} checks - checkbox checked elements\n * @property {Object[]} tags - field types document contains\n * @property {Object[]} fields - all document fillable fields\n * @property {Object[]} requests - requests for signing document\n * @property {Object[]} roles - document signer roles\n * @property {Object[]} field_invites - sent invites data\n * @property {number} version_time - document updated timestamp\n * @property {Object[]} enumeration_options - dropdown options\n * @property {Object[]} attachments - attachments in document\n * @property {Object[]} routing_details - signing steps routing details\n * @property {Object[]} integrations - document integrations\n * @property {Object[]} hyperlinks - document hyperlinks\n * @property {Object[]} radiobuttons - checked radiobuttons after document was signed\n * @property {Object[]} document_group_template_info - document group templates data\n * @property {Object[]} document_group_info - document group template's data\n * @property {Object[]} originator_organization_settings - specific organization settings for document\n * @property {Object[]} field_validators - validation rules for fields (date fields, payment fields etc.)\n * @property {Object} settings - specific document settings\n ", - "start": 5880, - "end": 8258, - "loc": { - "start": { - "line": 191, - "column": 2 - }, - "end": { - "line": 226, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * User's Document list response\n * @typedef {DocumentListItem[]} DocumentListResponse\n ", - "start": 8262, - "end": 8362, - "loc": { - "start": { - "line": 228, - "column": 2 - }, - "end": { - "line": 231, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieve user's document list\n * @param {DocumentListParams} data - payload to receive user's document list\n * @param {function(err: ApiErrorResponse, res: DocumentListItem)} [callback] - error first node.js callback\n ", - "start": 8366, - "end": 8601, - "loc": { - "start": { - "line": 233, - "column": 2 - }, - "end": { - "line": 237, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document view payload\n * @typedef {Object} DocumentViewParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 8925, - "end": 9104, - "loc": { - "start": { - "line": 252, - "column": 2 - }, - "end": { - "line": 257, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document view response of specific document\n * @typedef {Object} DocumentViewResponse\n * @property {string} id - id of specific document\n * @property {string} user_id - id of user that uploaded document\n * @property {string} document_name - name of document\n * @property {string} page_count - amount of pages in the document\n * @property {string} created - timestamp document was created\n * @property {string} updated - timestamp document was updated\n * @property {string} original_filename - original filename with document format (.pdf, .doc, etc...)\n * @property {?string} origin_document_id - an id of original document (if document is a copy)\n * @property {string} owner - email of document owner\n * @property {boolean} template - is document a template or not\n * @property {Object} thumbnail - thumbnail urls with different sizes (small, medium, large)\n * @property {Object[]} signatures - signature signed elements\n * @property {Object[]} texts - text and enumeration filled elements\n * @property {Object[]} checks - checkbox checked elements\n * @property {Object[]} tags - field types document contains\n * @property {Object[]} fields - all document fillable fields\n * @property {Object[]} requests - requests for signing document\n * @property {Object[]} roles - document signer roles\n * @property {Object[]} field_invites - sent invites data\n * @property {number} version_time - document updated timestamp\n * @property {Object[]} enumeration_options - dropdown options\n * @property {Object[]} attachments - attachments in document\n * @property {Object[]} routing_details - signing steps routing details\n * @property {Object[]} integrations - document integrations\n * @property {Object[]} hyperlinks - document hyperlinks\n * @property {Object[]} radiobuttons - checked radiobuttons after document was signed\n * @property {Object[]} document_group_template_info - document group template's data\n * @property {Object[]} document_group_info - document group's data\n * @property {Object[]} originator_organization_settings - specific organization settings for document\n * @property {Object[]} field_validators - validation rules for fields (date fields, payment fields etc.)\n * @property {Object} settings - specific document settings\n * @property {string} parent_id - id of document folder\n * @property {string} originator_logo - logo url\n * @property {Object[]} pages - list of document pages with page sources and page size.\n ", - "start": 9108, - "end": 11623, - "loc": { - "start": { - "line": 259, - "column": 2 - }, - "end": { - "line": 296, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves a document detailed data\n * @param {DocumentViewParams} data - view document details payload\n * @param {function(err: ApiErrorResponse, res: DocumentViewResponse)} [callback] - error first node.js callback\n ", - "start": 11627, - "end": 11861, - "loc": { - "start": { - "line": 298, - "column": 2 - }, - "end": { - "line": 302, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 11864, - "end": 12183, - "loc": { - "start": { - "line": 303, - "column": 2 - }, - "end": { - "line": 315, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 11871, - "end": 11875, - "loc": { - "start": { - "line": 303, - "column": 9 - }, - "end": { - "line": 303, - "column": 13 - }, - "identifierName": "view" - }, - "name": "view" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 11877, - "end": 11890, - "loc": { - "start": { - "line": 303, - "column": 15 - }, - "end": { - "line": 303, - "column": 28 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 11879, - "end": 11881, - "loc": { - "start": { - "line": 303, - "column": 17 - }, - "end": { - "line": 303, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 11879, - "end": 11881, - "loc": { - "start": { - "line": 303, - "column": 17 - }, - "end": { - "line": 303, - "column": 19 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 11879, - "end": 11881, - "loc": { - "start": { - "line": 303, - "column": 17 - }, - "end": { - "line": 303, - "column": 19 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 11883, - "end": 11888, - "loc": { - "start": { - "line": 303, - "column": 21 - }, - "end": { - "line": 303, - "column": 26 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 11883, - "end": 11888, - "loc": { - "start": { - "line": 303, - "column": 21 - }, - "end": { - "line": 303, - "column": 26 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 11883, - "end": 11888, - "loc": { - "start": { - "line": 303, - "column": 21 - }, - "end": { - "line": 303, - "column": 26 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 11892, - "end": 11900, - "loc": { - "start": { - "line": 303, - "column": 30 - }, - "end": { - "line": 303, - "column": 38 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 11902, - "end": 12183, - "loc": { - "start": { - "line": 303, - "column": 40 - }, - "end": { - "line": 315, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 11908, - "end": 12179, - "loc": { - "start": { - "line": 304, - "column": 4 - }, - "end": { - "line": 314, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 11908, - "end": 12178, - "loc": { - "start": { - "line": 304, - "column": 4 - }, - "end": { - "line": 314, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11908, - "end": 12176, - "loc": { - "start": { - "line": 304, - "column": 4 - }, - "end": { - "line": 314, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 11908, - "end": 12165, - "loc": { - "start": { - "line": 304, - "column": 4 - }, - "end": { - "line": 313, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11908, - "end": 12132, - "loc": { - "start": { - "line": 304, - "column": 4 - }, - "end": { - "line": 313, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 11908, - "end": 12122, - "loc": { - "start": { - "line": 304, - "column": 4 - }, - "end": { - "line": 312, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11908, - "end": 11928, - "loc": { - "start": { - "line": 304, - "column": 4 - }, - "end": { - "line": 305, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 11908, - "end": 11913, - "loc": { - "start": { - "line": 304, - "column": 4 - }, - "end": { - "line": 304, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 11921, - "end": 11928, - "loc": { - "start": { - "line": 305, - "column": 7 - }, - "end": { - "line": 305, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 11929, - "end": 12094, - "loc": { - "start": { - "line": 305, - "column": 15 - }, - "end": { - "line": 312, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 11929, - "end": 11948, - "loc": { - "start": { - "line": 305, - "column": 15 - }, - "end": { - "line": 305, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 11949, - "end": 12093, - "loc": { - "start": { - "line": 305, - "column": 35 - }, - "end": { - "line": 312, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 11959, - "end": 11972, - "loc": { - "start": { - "line": 306, - "column": 8 - }, - "end": { - "line": 306, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 11959, - "end": 11965, - "loc": { - "start": { - "line": 306, - "column": 8 - }, - "end": { - "line": 306, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 11967, - "end": 11972, - "loc": { - "start": { - "line": 306, - "column": 16 - }, - "end": { - "line": 306, - "column": 21 - } - }, - "extra": { - "rawValue": "GET", - "raw": "'GET'" - }, - "value": "GET" - } - }, - { - "type": "ObjectProperty", - "start": 11982, - "end": 12005, - "loc": { - "start": { - "line": 307, - "column": 8 - }, - "end": { - "line": 307, - "column": 31 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 11982, - "end": 11986, - "loc": { - "start": { - "line": 307, - "column": 8 - }, - "end": { - "line": 307, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 11988, - "end": 12005, - "loc": { - "start": { - "line": 307, - "column": 14 - }, - "end": { - "line": 307, - "column": 31 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 12001, - "end": 12003, - "loc": { - "start": { - "line": 307, - "column": 27 - }, - "end": { - "line": 307, - "column": 29 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 11989, - "end": 11999, - "loc": { - "start": { - "line": 307, - "column": 15 - }, - "end": { - "line": 307, - "column": 25 - } - }, - "value": { - "raw": "/document/", - "cooked": "/document/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 12004, - "end": 12004, - "loc": { - "start": { - "line": 307, - "column": 30 - }, - "end": { - "line": 307, - "column": 30 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 12015, - "end": 12084, - "loc": { - "start": { - "line": 308, - "column": 8 - }, - "end": { - "line": 311, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 12015, - "end": 12028, - "loc": { - "start": { - "line": 308, - "column": 8 - }, - "end": { - "line": 308, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 12030, - "end": 12084, - "loc": { - "start": { - "line": 308, - "column": 23 - }, - "end": { - "line": 311, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 12042, - "end": 12056, - "loc": { - "start": { - "line": 309, - "column": 10 - }, - "end": { - "line": 309, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 12042, - "end": 12046, - "loc": { - "start": { - "line": 309, - "column": 10 - }, - "end": { - "line": 309, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 12048, - "end": 12056, - "loc": { - "start": { - "line": 309, - "column": 16 - }, - "end": { - "line": 309, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 12068, - "end": 12073, - "loc": { - "start": { - "line": 310, - "column": 10 - }, - "end": { - "line": 310, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 12068, - "end": 12073, - "loc": { - "start": { - "line": 310, - "column": 10 - }, - "end": { - "line": 310, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 12068, - "end": 12073, - "loc": { - "start": { - "line": 310, - "column": 10 - }, - "end": { - "line": 310, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 12096, - "end": 12121, - "loc": { - "start": { - "line": 312, - "column": 10 - }, - "end": { - "line": 312, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 12096, - "end": 12111, - "loc": { - "start": { - "line": 312, - "column": 10 - }, - "end": { - "line": 312, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 12112, - "end": 12120, - "loc": { - "start": { - "line": 312, - "column": 26 - }, - "end": { - "line": 312, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 12130, - "end": 12132, - "loc": { - "start": { - "line": 313, - "column": 7 - }, - "end": { - "line": 313, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 12133, - "end": 12140, - "loc": { - "start": { - "line": 313, - "column": 10 - }, - "end": { - "line": 313, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 12142, - "end": 12164, - "loc": { - "start": { - "line": 313, - "column": 19 - }, - "end": { - "line": 313, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 12142, - "end": 12154, - "loc": { - "start": { - "line": 313, - "column": 19 - }, - "end": { - "line": 313, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 12155, - "end": 12163, - "loc": { - "start": { - "line": 313, - "column": 32 - }, - "end": { - "line": 313, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 12173, - "end": 12176, - "loc": { - "start": { - "line": 314, - "column": 7 - }, - "end": { - "line": 314, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document view payload\n * @typedef {Object} DocumentViewParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 8925, - "end": 9104, - "loc": { - "start": { - "line": 252, - "column": 2 - }, - "end": { - "line": 257, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document view response of specific document\n * @typedef {Object} DocumentViewResponse\n * @property {string} id - id of specific document\n * @property {string} user_id - id of user that uploaded document\n * @property {string} document_name - name of document\n * @property {string} page_count - amount of pages in the document\n * @property {string} created - timestamp document was created\n * @property {string} updated - timestamp document was updated\n * @property {string} original_filename - original filename with document format (.pdf, .doc, etc...)\n * @property {?string} origin_document_id - an id of original document (if document is a copy)\n * @property {string} owner - email of document owner\n * @property {boolean} template - is document a template or not\n * @property {Object} thumbnail - thumbnail urls with different sizes (small, medium, large)\n * @property {Object[]} signatures - signature signed elements\n * @property {Object[]} texts - text and enumeration filled elements\n * @property {Object[]} checks - checkbox checked elements\n * @property {Object[]} tags - field types document contains\n * @property {Object[]} fields - all document fillable fields\n * @property {Object[]} requests - requests for signing document\n * @property {Object[]} roles - document signer roles\n * @property {Object[]} field_invites - sent invites data\n * @property {number} version_time - document updated timestamp\n * @property {Object[]} enumeration_options - dropdown options\n * @property {Object[]} attachments - attachments in document\n * @property {Object[]} routing_details - signing steps routing details\n * @property {Object[]} integrations - document integrations\n * @property {Object[]} hyperlinks - document hyperlinks\n * @property {Object[]} radiobuttons - checked radiobuttons after document was signed\n * @property {Object[]} document_group_template_info - document group template's data\n * @property {Object[]} document_group_info - document group's data\n * @property {Object[]} originator_organization_settings - specific organization settings for document\n * @property {Object[]} field_validators - validation rules for fields (date fields, payment fields etc.)\n * @property {Object} settings - specific document settings\n * @property {string} parent_id - id of document folder\n * @property {string} originator_logo - logo url\n * @property {Object[]} pages - list of document pages with page sources and page size.\n ", - "start": 9108, - "end": 11623, - "loc": { - "start": { - "line": 259, - "column": 2 - }, - "end": { - "line": 296, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves a document detailed data\n * @param {DocumentViewParams} data - view document details payload\n * @param {function(err: ApiErrorResponse, res: DocumentViewResponse)} [callback] - error first node.js callback\n ", - "start": 11627, - "end": 11861, - "loc": { - "start": { - "line": 298, - "column": 2 - }, - "end": { - "line": 302, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} SignatureField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (signature)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} [label] - field label\n ", - "start": 12187, - "end": 12759, - "loc": { - "start": { - "line": 317, - "column": 2 - }, - "end": { - "line": 329, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} InitialsField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (initials)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} [label] - field label\n ", - "start": 12763, - "end": 13333, - "loc": { - "start": { - "line": 331, - "column": 2 - }, - "end": { - "line": 343, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} TextField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (text)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string|number} [prefilled_text] - prefilled field value\n * @property {string} [validator_id] - field value validator ID\n * @property {string} [label] - field label\n ", - "start": 13337, - "end": 14037, - "loc": { - "start": { - "line": 345, - "column": 2 - }, - "end": { - "line": 359, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} CheckField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (checkbox)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {boolean} [prefilled_text] - prefilled field value\n * @property {string} [label] - field label\n ", - "start": 14041, - "end": 14674, - "loc": { - "start": { - "line": 361, - "column": 2 - }, - "end": { - "line": 374, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} EnumerationField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (enumeration)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {Array} enumeration_options - choice options of enumerable field\n * @property {string|number} [prefilled_text] - prefilled field value\n * @property {string} [label] - field label\n * @property {boolean} [custom_defined_option=false] - if 'true' user can change values, if 'false' user can only read\n ", - "start": 14678, - "end": 15542, - "loc": { - "start": { - "line": 376, - "column": 2 - }, - "end": { - "line": 391, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} RadioButton\n * @property {number} page_number - page number of document\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} value - value of radio button\n * @property {string} checked - radio button check status\n * @property {number} created - redio button creation timestamp\n ", - "start": 15546, - "end": 16044, - "loc": { - "start": { - "line": 393, - "column": 2 - }, - "end": { - "line": 403, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} RadioButtonField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (radiobutton)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {RadioButton[]} radio - array of radio buttons\n * @property {string|number} [prefilled_text] - prefilled field value\n * @property {string} [label] - field label\n ", - "start": 16048, - "end": 16758, - "loc": { - "start": { - "line": 405, - "column": 2 - }, - "end": { - "line": 419, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} FormulaTreeBranchTerminator\n * @property {string} term - name of field which will participate in calculation formula\n ", - "start": 16762, - "end": 16913, - "loc": { - "start": { - "line": 421, - "column": 2 - }, - "end": { - "line": 424, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} FormulaTreeBranch\n * @property {FormulaTree} term - a part of formula parsed into tree\n ", - "start": 16917, - "end": 17038, - "loc": { - "start": { - "line": 426, - "column": 2 - }, - "end": { - "line": 429, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} FormulaTree\n * @property {string} operator - arithmetic operator's token\n * @property {FormulaTreeBranch|FormulaTreeBranchTerminator} left - left branch of formula tree\n * @property {FormulaTreeBranch|FormulaTreeBranchTerminator} right - right branch of formula tree\n ", - "start": 17042, - "end": 17347, - "loc": { - "start": { - "line": 431, - "column": 2 - }, - "end": { - "line": 436, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} CalculatedField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (text)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} formula - arithmetic formula, e.g. 'TextName+EnumerationName'\n * @property {FormulaTree} calculation_formula - formula parsed into tree\n * @property {number} calculation_precision - calculation precision\n * @property {string} [label] - field label\n * @property {boolean} [custom_defined_option=false] - if 'true' user can change values, if 'false' user can only read\n ", - "start": 17351, - "end": 18272, - "loc": { - "start": { - "line": 438, - "column": 2 - }, - "end": { - "line": 454, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} AttachmentField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (attachment)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} [label] - field label\n ", - "start": 18276, - "end": 18850, - "loc": { - "start": { - "line": 456, - "column": 2 - }, - "end": { - "line": 468, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} DocumentFields\n * @property {number} client_timestamp - local time of user\n * @property {Array} fields - all types of fields\n ", - "start": 18854, - "end": 19132, - "loc": { - "start": { - "line": 470, - "column": 2 - }, - "end": { - "line": 474, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update document payload\n * @typedef {Object} DocumentUpdateParams\n * @property {string} id - id of specific document\n * @property {DocumentFields} fields - set of fields\n * @property {string} token - your auth token\n ", - "start": 19136, - "end": 19374, - "loc": { - "start": { - "line": 476, - "column": 2 - }, - "end": { - "line": 482, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update document response data\n * @typedef {Object} DocumentUpdateResponse\n * @property {string} id - an id of document\n * @property {Object[]} signatures - signature and initial elements\n * @property {Object[]} texts - text and enumeration elements\n * @property {Object[]} checks - checkbox elements\n * @property {Object[]} attachments - attachment elements\n * @property {Object[]} radiobuttons - radiobutton elements\n ", - "start": 19378, - "end": 19824, - "loc": { - "start": { - "line": 484, - "column": 2 - }, - "end": { - "line": 493, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Updates an existing document.\n * Adds fields (signature, text, initials, checkbox, radiobutton group, calculated) and elements (signature, text, check).\n * Every call of this method will add only specified fields into document.\n * Old fields will be removed\n * @param {DocumentUpdateParams} data - update document request payload\n * @param {function(err: ApiErrorResponse, res: DocumentUpdateResponse)} [callback] - error first node.js callback\n ", - "start": 19828, - "end": 20297, - "loc": { - "start": { - "line": 495, - "column": 2 - }, - "end": { - "line": 502, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 20300, - "end": 20862, - "loc": { - "start": { - "line": 503, - "column": 2 - }, - "end": { - "line": 526, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 20307, - "end": 20313, - "loc": { - "start": { - "line": 503, - "column": 9 - }, - "end": { - "line": 503, - "column": 15 - }, - "identifierName": "update" - }, - "name": "update" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 20315, - "end": 20351, - "loc": { - "start": { - "line": 503, - "column": 17 - }, - "end": { - "line": 507, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 20321, - "end": 20323, - "loc": { - "start": { - "line": 504, - "column": 4 - }, - "end": { - "line": 504, - "column": 6 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 20321, - "end": 20323, - "loc": { - "start": { - "line": 504, - "column": 4 - }, - "end": { - "line": 504, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 20321, - "end": 20323, - "loc": { - "start": { - "line": 504, - "column": 4 - }, - "end": { - "line": 504, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 20329, - "end": 20335, - "loc": { - "start": { - "line": 505, - "column": 4 - }, - "end": { - "line": 505, - "column": 10 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 20329, - "end": 20335, - "loc": { - "start": { - "line": 505, - "column": 4 - }, - "end": { - "line": 505, - "column": 10 - }, - "identifierName": "fields" - }, - "name": "fields" - }, - "value": { - "type": "Identifier", - "start": 20329, - "end": 20335, - "loc": { - "start": { - "line": 505, - "column": 4 - }, - "end": { - "line": 505, - "column": 10 - }, - "identifierName": "fields" - }, - "name": "fields" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 20341, - "end": 20346, - "loc": { - "start": { - "line": 506, - "column": 4 - }, - "end": { - "line": 506, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 20341, - "end": 20346, - "loc": { - "start": { - "line": 506, - "column": 4 - }, - "end": { - "line": 506, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 20341, - "end": 20346, - "loc": { - "start": { - "line": 506, - "column": 4 - }, - "end": { - "line": 506, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 20353, - "end": 20361, - "loc": { - "start": { - "line": 507, - "column": 5 - }, - "end": { - "line": 507, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 20363, - "end": 20862, - "loc": { - "start": { - "line": 507, - "column": 15 - }, - "end": { - "line": 526, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 20369, - "end": 20409, - "loc": { - "start": { - "line": 508, - "column": 4 - }, - "end": { - "line": 508, - "column": 44 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20375, - "end": 20408, - "loc": { - "start": { - "line": 508, - "column": 10 - }, - "end": { - "line": 508, - "column": 43 - } - }, - "id": { - "type": "Identifier", - "start": 20375, - "end": 20383, - "loc": { - "start": { - "line": 508, - "column": 10 - }, - "end": { - "line": 508, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 20386, - "end": 20408, - "loc": { - "start": { - "line": 508, - "column": 21 - }, - "end": { - "line": 508, - "column": 43 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20386, - "end": 20400, - "loc": { - "start": { - "line": 508, - "column": 21 - }, - "end": { - "line": 508, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 20386, - "end": 20390, - "loc": { - "start": { - "line": 508, - "column": 21 - }, - "end": { - "line": 508, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 20391, - "end": 20400, - "loc": { - "start": { - "line": 508, - "column": 26 - }, - "end": { - "line": 508, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 20401, - "end": 20407, - "loc": { - "start": { - "line": 508, - "column": 36 - }, - "end": { - "line": 508, - "column": 42 - }, - "identifierName": "fields" - }, - "name": "fields" - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 20414, - "end": 20817, - "loc": { - "start": { - "line": 509, - "column": 4 - }, - "end": { - "line": 522, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20420, - "end": 20816, - "loc": { - "start": { - "line": 509, - "column": 10 - }, - "end": { - "line": 522, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 20420, - "end": 20423, - "loc": { - "start": { - "line": 509, - "column": 10 - }, - "end": { - "line": 509, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 20426, - "end": 20816, - "loc": { - "start": { - "line": 509, - "column": 16 - }, - "end": { - "line": 522, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20426, - "end": 20783, - "loc": { - "start": { - "line": 509, - "column": 16 - }, - "end": { - "line": 522, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 20426, - "end": 20773, - "loc": { - "start": { - "line": 509, - "column": 16 - }, - "end": { - "line": 521, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20426, - "end": 20446, - "loc": { - "start": { - "line": 509, - "column": 16 - }, - "end": { - "line": 510, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 20426, - "end": 20431, - "loc": { - "start": { - "line": 509, - "column": 16 - }, - "end": { - "line": 509, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 20439, - "end": 20446, - "loc": { - "start": { - "line": 510, - "column": 7 - }, - "end": { - "line": 510, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 20447, - "end": 20745, - "loc": { - "start": { - "line": 510, - "column": 15 - }, - "end": { - "line": 521, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 20447, - "end": 20466, - "loc": { - "start": { - "line": 510, - "column": 15 - }, - "end": { - "line": 510, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 20467, - "end": 20744, - "loc": { - "start": { - "line": 510, - "column": 35 - }, - "end": { - "line": 521, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 20477, - "end": 20490, - "loc": { - "start": { - "line": 511, - "column": 8 - }, - "end": { - "line": 511, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 20477, - "end": 20483, - "loc": { - "start": { - "line": 511, - "column": 8 - }, - "end": { - "line": 511, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 20485, - "end": 20490, - "loc": { - "start": { - "line": 511, - "column": 16 - }, - "end": { - "line": 511, - "column": 21 - } - }, - "extra": { - "rawValue": "PUT", - "raw": "'PUT'" - }, - "value": "PUT" - } - }, - { - "type": "ObjectProperty", - "start": 20500, - "end": 20523, - "loc": { - "start": { - "line": 512, - "column": 8 - }, - "end": { - "line": 512, - "column": 31 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 20500, - "end": 20504, - "loc": { - "start": { - "line": 512, - "column": 8 - }, - "end": { - "line": 512, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 20506, - "end": 20523, - "loc": { - "start": { - "line": 512, - "column": 14 - }, - "end": { - "line": 512, - "column": 31 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 20519, - "end": 20521, - "loc": { - "start": { - "line": 512, - "column": 27 - }, - "end": { - "line": 512, - "column": 29 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 20507, - "end": 20517, - "loc": { - "start": { - "line": 512, - "column": 15 - }, - "end": { - "line": 512, - "column": 25 - } - }, - "value": { - "raw": "/document/", - "cooked": "/document/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 20522, - "end": 20522, - "loc": { - "start": { - "line": 512, - "column": 30 - }, - "end": { - "line": 512, - "column": 30 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 20533, - "end": 20602, - "loc": { - "start": { - "line": 513, - "column": 8 - }, - "end": { - "line": 516, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 20533, - "end": 20546, - "loc": { - "start": { - "line": 513, - "column": 8 - }, - "end": { - "line": 513, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 20548, - "end": 20602, - "loc": { - "start": { - "line": 513, - "column": 23 - }, - "end": { - "line": 516, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 20560, - "end": 20574, - "loc": { - "start": { - "line": 514, - "column": 10 - }, - "end": { - "line": 514, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 20560, - "end": 20564, - "loc": { - "start": { - "line": 514, - "column": 10 - }, - "end": { - "line": 514, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 20566, - "end": 20574, - "loc": { - "start": { - "line": 514, - "column": 16 - }, - "end": { - "line": 514, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 20586, - "end": 20591, - "loc": { - "start": { - "line": 515, - "column": 10 - }, - "end": { - "line": 515, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 20586, - "end": 20591, - "loc": { - "start": { - "line": 515, - "column": 10 - }, - "end": { - "line": 515, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 20586, - "end": 20591, - "loc": { - "start": { - "line": 515, - "column": 10 - }, - "end": { - "line": 515, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 20612, - "end": 20735, - "loc": { - "start": { - "line": 517, - "column": 8 - }, - "end": { - "line": 520, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 20612, - "end": 20619, - "loc": { - "start": { - "line": 517, - "column": 8 - }, - "end": { - "line": 517, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 20621, - "end": 20735, - "loc": { - "start": { - "line": 517, - "column": 17 - }, - "end": { - "line": 520, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 20633, - "end": 20667, - "loc": { - "start": { - "line": 518, - "column": 10 - }, - "end": { - "line": 518, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 20633, - "end": 20647, - "loc": { - "start": { - "line": 518, - "column": 10 - }, - "end": { - "line": 518, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 20649, - "end": 20667, - "loc": { - "start": { - "line": 518, - "column": 26 - }, - "end": { - "line": 518, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 20679, - "end": 20724, - "loc": { - "start": { - "line": 519, - "column": 10 - }, - "end": { - "line": 519, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 20679, - "end": 20695, - "loc": { - "start": { - "line": 519, - "column": 10 - }, - "end": { - "line": 519, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 20697, - "end": 20724, - "loc": { - "start": { - "line": 519, - "column": 28 - }, - "end": { - "line": 519, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20697, - "end": 20714, - "loc": { - "start": { - "line": 519, - "column": 28 - }, - "end": { - "line": 519, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 20697, - "end": 20703, - "loc": { - "start": { - "line": 519, - "column": 28 - }, - "end": { - "line": 519, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 20704, - "end": 20714, - "loc": { - "start": { - "line": 519, - "column": 35 - }, - "end": { - "line": 519, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 20715, - "end": 20723, - "loc": { - "start": { - "line": 519, - "column": 46 - }, - "end": { - "line": 519, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 20747, - "end": 20772, - "loc": { - "start": { - "line": 521, - "column": 10 - }, - "end": { - "line": 521, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 20747, - "end": 20762, - "loc": { - "start": { - "line": 521, - "column": 10 - }, - "end": { - "line": 521, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 20763, - "end": 20771, - "loc": { - "start": { - "line": 521, - "column": 26 - }, - "end": { - "line": 521, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 20781, - "end": 20783, - "loc": { - "start": { - "line": 522, - "column": 7 - }, - "end": { - "line": 522, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 20784, - "end": 20791, - "loc": { - "start": { - "line": 522, - "column": 10 - }, - "end": { - "line": 522, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 20793, - "end": 20815, - "loc": { - "start": { - "line": 522, - "column": 19 - }, - "end": { - "line": 522, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 20793, - "end": 20805, - "loc": { - "start": { - "line": 522, - "column": 19 - }, - "end": { - "line": 522, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 20806, - "end": 20814, - "loc": { - "start": { - "line": 522, - "column": 32 - }, - "end": { - "line": 522, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 20823, - "end": 20843, - "loc": { - "start": { - "line": 524, - "column": 4 - }, - "end": { - "line": 524, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 20823, - "end": 20842, - "loc": { - "start": { - "line": 524, - "column": 4 - }, - "end": { - "line": 524, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20823, - "end": 20832, - "loc": { - "start": { - "line": 524, - "column": 4 - }, - "end": { - "line": 524, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 20823, - "end": 20826, - "loc": { - "start": { - "line": 524, - "column": 4 - }, - "end": { - "line": 524, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 20827, - "end": 20832, - "loc": { - "start": { - "line": 524, - "column": 8 - }, - "end": { - "line": 524, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 20833, - "end": 20841, - "loc": { - "start": { - "line": 524, - "column": 14 - }, - "end": { - "line": 524, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 20848, - "end": 20858, - "loc": { - "start": { - "line": 525, - "column": 4 - }, - "end": { - "line": 525, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 20848, - "end": 20857, - "loc": { - "start": { - "line": 525, - "column": 4 - }, - "end": { - "line": 525, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20848, - "end": 20855, - "loc": { - "start": { - "line": 525, - "column": 4 - }, - "end": { - "line": 525, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 20848, - "end": 20851, - "loc": { - "start": { - "line": 525, - "column": 4 - }, - "end": { - "line": 525, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 20852, - "end": 20855, - "loc": { - "start": { - "line": 525, - "column": 8 - }, - "end": { - "line": 525, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} SignatureField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (signature)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} [label] - field label\n ", - "start": 12187, - "end": 12759, - "loc": { - "start": { - "line": 317, - "column": 2 - }, - "end": { - "line": 329, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} InitialsField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (initials)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} [label] - field label\n ", - "start": 12763, - "end": 13333, - "loc": { - "start": { - "line": 331, - "column": 2 - }, - "end": { - "line": 343, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} TextField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (text)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string|number} [prefilled_text] - prefilled field value\n * @property {string} [validator_id] - field value validator ID\n * @property {string} [label] - field label\n ", - "start": 13337, - "end": 14037, - "loc": { - "start": { - "line": 345, - "column": 2 - }, - "end": { - "line": 359, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} CheckField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (checkbox)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {boolean} [prefilled_text] - prefilled field value\n * @property {string} [label] - field label\n ", - "start": 14041, - "end": 14674, - "loc": { - "start": { - "line": 361, - "column": 2 - }, - "end": { - "line": 374, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} EnumerationField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (enumeration)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {Array} enumeration_options - choice options of enumerable field\n * @property {string|number} [prefilled_text] - prefilled field value\n * @property {string} [label] - field label\n * @property {boolean} [custom_defined_option=false] - if 'true' user can change values, if 'false' user can only read\n ", - "start": 14678, - "end": 15542, - "loc": { - "start": { - "line": 376, - "column": 2 - }, - "end": { - "line": 391, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} RadioButton\n * @property {number} page_number - page number of document\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} value - value of radio button\n * @property {string} checked - radio button check status\n * @property {number} created - redio button creation timestamp\n ", - "start": 15546, - "end": 16044, - "loc": { - "start": { - "line": 393, - "column": 2 - }, - "end": { - "line": 403, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} RadioButtonField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (radiobutton)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {RadioButton[]} radio - array of radio buttons\n * @property {string|number} [prefilled_text] - prefilled field value\n * @property {string} [label] - field label\n ", - "start": 16048, - "end": 16758, - "loc": { - "start": { - "line": 405, - "column": 2 - }, - "end": { - "line": 419, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} FormulaTreeBranchTerminator\n * @property {string} term - name of field which will participate in calculation formula\n ", - "start": 16762, - "end": 16913, - "loc": { - "start": { - "line": 421, - "column": 2 - }, - "end": { - "line": 424, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} FormulaTreeBranch\n * @property {FormulaTree} term - a part of formula parsed into tree\n ", - "start": 16917, - "end": 17038, - "loc": { - "start": { - "line": 426, - "column": 2 - }, - "end": { - "line": 429, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} FormulaTree\n * @property {string} operator - arithmetic operator's token\n * @property {FormulaTreeBranch|FormulaTreeBranchTerminator} left - left branch of formula tree\n * @property {FormulaTreeBranch|FormulaTreeBranchTerminator} right - right branch of formula tree\n ", - "start": 17042, - "end": 17347, - "loc": { - "start": { - "line": 431, - "column": 2 - }, - "end": { - "line": 436, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} CalculatedField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (text)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} formula - arithmetic formula, e.g. 'TextName+EnumerationName'\n * @property {FormulaTree} calculation_formula - formula parsed into tree\n * @property {number} calculation_precision - calculation precision\n * @property {string} [label] - field label\n * @property {boolean} [custom_defined_option=false] - if 'true' user can change values, if 'false' user can only read\n ", - "start": 17351, - "end": 18272, - "loc": { - "start": { - "line": 438, - "column": 2 - }, - "end": { - "line": 454, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} AttachmentField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (attachment)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} [label] - field label\n ", - "start": 18276, - "end": 18850, - "loc": { - "start": { - "line": 456, - "column": 2 - }, - "end": { - "line": 468, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} DocumentFields\n * @property {number} client_timestamp - local time of user\n * @property {Array} fields - all types of fields\n ", - "start": 18854, - "end": 19132, - "loc": { - "start": { - "line": 470, - "column": 2 - }, - "end": { - "line": 474, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update document payload\n * @typedef {Object} DocumentUpdateParams\n * @property {string} id - id of specific document\n * @property {DocumentFields} fields - set of fields\n * @property {string} token - your auth token\n ", - "start": 19136, - "end": 19374, - "loc": { - "start": { - "line": 476, - "column": 2 - }, - "end": { - "line": 482, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update document response data\n * @typedef {Object} DocumentUpdateResponse\n * @property {string} id - an id of document\n * @property {Object[]} signatures - signature and initial elements\n * @property {Object[]} texts - text and enumeration elements\n * @property {Object[]} checks - checkbox elements\n * @property {Object[]} attachments - attachment elements\n * @property {Object[]} radiobuttons - radiobutton elements\n ", - "start": 19378, - "end": 19824, - "loc": { - "start": { - "line": 484, - "column": 2 - }, - "end": { - "line": 493, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Updates an existing document.\n * Adds fields (signature, text, initials, checkbox, radiobutton group, calculated) and elements (signature, text, check).\n * Every call of this method will add only specified fields into document.\n * Old fields will be removed\n * @param {DocumentUpdateParams} data - update document request payload\n * @param {function(err: ApiErrorResponse, res: DocumentUpdateResponse)} [callback] - error first node.js callback\n ", - "start": 19828, - "end": 20297, - "loc": { - "start": { - "line": 495, - "column": 2 - }, - "end": { - "line": 502, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document download payload\n * @typedef {Object} DocumentDownloadParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 20866, - "end": 21053, - "loc": { - "start": { - "line": 528, - "column": 2 - }, - "end": { - "line": 533, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document binary data\n * @typedef {Buffer} DocumentDownloadResponse\n ", - "start": 21057, - "end": 21140, - "loc": { - "start": { - "line": 535, - "column": 2 - }, - "end": { - "line": 538, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Downloads document with embedded fields and elements\n * @param {DocumentDownloadParams} data - download document request payload\n * @param {function(err: ApiErrorResponse, res: DocumentDownloadResponse)} [callback] - error first node.js callback\n ", - "start": 21144, - "end": 21408, - "loc": { - "start": { - "line": 540, - "column": 2 - }, - "end": { - "line": 544, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 21412, - "end": 21777, - "loc": { - "start": { - "line": 546, - "column": 2 - }, - "end": { - "line": 558, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 21419, - "end": 21427, - "loc": { - "start": { - "line": 546, - "column": 9 - }, - "end": { - "line": 546, - "column": 17 - }, - "identifierName": "download" - }, - "name": "download" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 21429, - "end": 21442, - "loc": { - "start": { - "line": 546, - "column": 19 - }, - "end": { - "line": 546, - "column": 32 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21431, - "end": 21433, - "loc": { - "start": { - "line": 546, - "column": 21 - }, - "end": { - "line": 546, - "column": 23 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 21431, - "end": 21433, - "loc": { - "start": { - "line": 546, - "column": 21 - }, - "end": { - "line": 546, - "column": 23 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 21431, - "end": 21433, - "loc": { - "start": { - "line": 546, - "column": 21 - }, - "end": { - "line": 546, - "column": 23 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 21435, - "end": 21440, - "loc": { - "start": { - "line": 546, - "column": 25 - }, - "end": { - "line": 546, - "column": 30 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 21435, - "end": 21440, - "loc": { - "start": { - "line": 546, - "column": 25 - }, - "end": { - "line": 546, - "column": 30 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 21435, - "end": 21440, - "loc": { - "start": { - "line": 546, - "column": 25 - }, - "end": { - "line": 546, - "column": 30 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 21444, - "end": 21452, - "loc": { - "start": { - "line": 546, - "column": 34 - }, - "end": { - "line": 546, - "column": 42 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 21454, - "end": 21777, - "loc": { - "start": { - "line": 546, - "column": 44 - }, - "end": { - "line": 558, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 21460, - "end": 21773, - "loc": { - "start": { - "line": 547, - "column": 4 - }, - "end": { - "line": 557, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 21460, - "end": 21772, - "loc": { - "start": { - "line": 547, - "column": 4 - }, - "end": { - "line": 557, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21460, - "end": 21770, - "loc": { - "start": { - "line": 547, - "column": 4 - }, - "end": { - "line": 557, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 21460, - "end": 21759, - "loc": { - "start": { - "line": 547, - "column": 4 - }, - "end": { - "line": 556, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21460, - "end": 21726, - "loc": { - "start": { - "line": 547, - "column": 4 - }, - "end": { - "line": 556, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 21460, - "end": 21716, - "loc": { - "start": { - "line": 547, - "column": 4 - }, - "end": { - "line": 555, - "column": 54 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21460, - "end": 21480, - "loc": { - "start": { - "line": 547, - "column": 4 - }, - "end": { - "line": 548, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 21460, - "end": 21465, - "loc": { - "start": { - "line": 547, - "column": 4 - }, - "end": { - "line": 547, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 21473, - "end": 21480, - "loc": { - "start": { - "line": 548, - "column": 7 - }, - "end": { - "line": 548, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 21481, - "end": 21670, - "loc": { - "start": { - "line": 548, - "column": 15 - }, - "end": { - "line": 555, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 21481, - "end": 21500, - "loc": { - "start": { - "line": 548, - "column": 15 - }, - "end": { - "line": 548, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 21501, - "end": 21669, - "loc": { - "start": { - "line": 548, - "column": 35 - }, - "end": { - "line": 555, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21511, - "end": 21524, - "loc": { - "start": { - "line": 549, - "column": 8 - }, - "end": { - "line": 549, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 21511, - "end": 21517, - "loc": { - "start": { - "line": 549, - "column": 8 - }, - "end": { - "line": 549, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 21519, - "end": 21524, - "loc": { - "start": { - "line": 549, - "column": 16 - }, - "end": { - "line": 549, - "column": 21 - } - }, - "extra": { - "rawValue": "GET", - "raw": "'GET'" - }, - "value": "GET" - } - }, - { - "type": "ObjectProperty", - "start": 21534, - "end": 21581, - "loc": { - "start": { - "line": 550, - "column": 8 - }, - "end": { - "line": 550, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 21534, - "end": 21538, - "loc": { - "start": { - "line": 550, - "column": 8 - }, - "end": { - "line": 550, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 21540, - "end": 21581, - "loc": { - "start": { - "line": 550, - "column": 14 - }, - "end": { - "line": 550, - "column": 55 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 21553, - "end": 21555, - "loc": { - "start": { - "line": 550, - "column": 27 - }, - "end": { - "line": 550, - "column": 29 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 21541, - "end": 21551, - "loc": { - "start": { - "line": 550, - "column": 15 - }, - "end": { - "line": 550, - "column": 25 - } - }, - "value": { - "raw": "/document/", - "cooked": "/document/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 21556, - "end": 21580, - "loc": { - "start": { - "line": 550, - "column": 30 - }, - "end": { - "line": 550, - "column": 54 - } - }, - "value": { - "raw": "/download?type=collapsed", - "cooked": "/download?type=collapsed" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 21591, - "end": 21660, - "loc": { - "start": { - "line": 551, - "column": 8 - }, - "end": { - "line": 554, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 21591, - "end": 21604, - "loc": { - "start": { - "line": 551, - "column": 8 - }, - "end": { - "line": 551, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 21606, - "end": 21660, - "loc": { - "start": { - "line": 551, - "column": 23 - }, - "end": { - "line": 554, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21618, - "end": 21632, - "loc": { - "start": { - "line": 552, - "column": 10 - }, - "end": { - "line": 552, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 21618, - "end": 21622, - "loc": { - "start": { - "line": 552, - "column": 10 - }, - "end": { - "line": 552, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 21624, - "end": 21632, - "loc": { - "start": { - "line": 552, - "column": 16 - }, - "end": { - "line": 552, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 21644, - "end": 21649, - "loc": { - "start": { - "line": 553, - "column": 10 - }, - "end": { - "line": 553, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 21644, - "end": 21649, - "loc": { - "start": { - "line": 553, - "column": 10 - }, - "end": { - "line": 553, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 21644, - "end": 21649, - "loc": { - "start": { - "line": 553, - "column": 10 - }, - "end": { - "line": 553, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 21672, - "end": 21715, - "loc": { - "start": { - "line": 555, - "column": 10 - }, - "end": { - "line": 555, - "column": 53 - } - }, - "callee": { - "type": "Identifier", - "start": 21672, - "end": 21687, - "loc": { - "start": { - "line": 555, - "column": 10 - }, - "end": { - "line": 555, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 21688, - "end": 21696, - "loc": { - "start": { - "line": 555, - "column": 26 - }, - "end": { - "line": 555, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - { - "type": "ObjectExpression", - "start": 21698, - "end": 21714, - "loc": { - "start": { - "line": 555, - "column": 36 - }, - "end": { - "line": 555, - "column": 52 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21700, - "end": 21712, - "loc": { - "start": { - "line": 555, - "column": 38 - }, - "end": { - "line": 555, - "column": 50 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 21700, - "end": 21705, - "loc": { - "start": { - "line": 555, - "column": 38 - }, - "end": { - "line": 555, - "column": 43 - }, - "identifierName": "parse" - }, - "name": "parse" - }, - "value": { - "type": "BooleanLiteral", - "start": 21707, - "end": 21712, - "loc": { - "start": { - "line": 555, - "column": 45 - }, - "end": { - "line": 555, - "column": 50 - } - }, - "value": false - } - } - ] - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 21724, - "end": 21726, - "loc": { - "start": { - "line": 556, - "column": 7 - }, - "end": { - "line": 556, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 21727, - "end": 21734, - "loc": { - "start": { - "line": 556, - "column": 10 - }, - "end": { - "line": 556, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 21736, - "end": 21758, - "loc": { - "start": { - "line": 556, - "column": 19 - }, - "end": { - "line": 556, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 21736, - "end": 21748, - "loc": { - "start": { - "line": 556, - "column": 19 - }, - "end": { - "line": 556, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 21749, - "end": 21757, - "loc": { - "start": { - "line": 556, - "column": 32 - }, - "end": { - "line": 556, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 21767, - "end": 21770, - "loc": { - "start": { - "line": 557, - "column": 7 - }, - "end": { - "line": 557, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document download payload\n * @typedef {Object} DocumentDownloadParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 20866, - "end": 21053, - "loc": { - "start": { - "line": 528, - "column": 2 - }, - "end": { - "line": 533, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document binary data\n * @typedef {Buffer} DocumentDownloadResponse\n ", - "start": 21057, - "end": 21140, - "loc": { - "start": { - "line": 535, - "column": 2 - }, - "end": { - "line": 538, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Downloads document with embedded fields and elements\n * @param {DocumentDownloadParams} data - download document request payload\n * @param {function(err: ApiErrorResponse, res: DocumentDownloadResponse)} [callback] - error first node.js callback\n ", - "start": 21144, - "end": 21408, - "loc": { - "start": { - "line": 540, - "column": 2 - }, - "end": { - "line": 544, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " creates a one-time use URL for anyone to download the document as a PDF.", - "start": 21781, - "end": 21856, - "loc": { - "start": { - "line": 560, - "column": 2 - }, - "end": { - "line": 560, - "column": 77 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 21859, - "end": 22194, - "loc": { - "start": { - "line": 561, - "column": 2 - }, - "end": { - "line": 573, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 21866, - "end": 21871, - "loc": { - "start": { - "line": 561, - "column": 9 - }, - "end": { - "line": 561, - "column": 14 - }, - "identifierName": "share" - }, - "name": "share" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 21873, - "end": 21886, - "loc": { - "start": { - "line": 561, - "column": 16 - }, - "end": { - "line": 561, - "column": 29 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21875, - "end": 21877, - "loc": { - "start": { - "line": 561, - "column": 18 - }, - "end": { - "line": 561, - "column": 20 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 21875, - "end": 21877, - "loc": { - "start": { - "line": 561, - "column": 18 - }, - "end": { - "line": 561, - "column": 20 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 21875, - "end": 21877, - "loc": { - "start": { - "line": 561, - "column": 18 - }, - "end": { - "line": 561, - "column": 20 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 21879, - "end": 21884, - "loc": { - "start": { - "line": 561, - "column": 22 - }, - "end": { - "line": 561, - "column": 27 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 21879, - "end": 21884, - "loc": { - "start": { - "line": 561, - "column": 22 - }, - "end": { - "line": 561, - "column": 27 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 21879, - "end": 21884, - "loc": { - "start": { - "line": 561, - "column": 22 - }, - "end": { - "line": 561, - "column": 27 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 21888, - "end": 21896, - "loc": { - "start": { - "line": 561, - "column": 31 - }, - "end": { - "line": 561, - "column": 39 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 21898, - "end": 22194, - "loc": { - "start": { - "line": 561, - "column": 41 - }, - "end": { - "line": 573, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 21904, - "end": 22190, - "loc": { - "start": { - "line": 562, - "column": 4 - }, - "end": { - "line": 572, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 21904, - "end": 22189, - "loc": { - "start": { - "line": 562, - "column": 4 - }, - "end": { - "line": 572, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21904, - "end": 22187, - "loc": { - "start": { - "line": 562, - "column": 4 - }, - "end": { - "line": 572, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 21904, - "end": 22176, - "loc": { - "start": { - "line": 562, - "column": 4 - }, - "end": { - "line": 571, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21904, - "end": 22143, - "loc": { - "start": { - "line": 562, - "column": 4 - }, - "end": { - "line": 571, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 21904, - "end": 22133, - "loc": { - "start": { - "line": 562, - "column": 4 - }, - "end": { - "line": 570, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21904, - "end": 21924, - "loc": { - "start": { - "line": 562, - "column": 4 - }, - "end": { - "line": 563, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 21904, - "end": 21909, - "loc": { - "start": { - "line": 562, - "column": 4 - }, - "end": { - "line": 562, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 21917, - "end": 21924, - "loc": { - "start": { - "line": 563, - "column": 7 - }, - "end": { - "line": 563, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 21925, - "end": 22105, - "loc": { - "start": { - "line": 563, - "column": 15 - }, - "end": { - "line": 570, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 21925, - "end": 21944, - "loc": { - "start": { - "line": 563, - "column": 15 - }, - "end": { - "line": 563, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 21945, - "end": 22104, - "loc": { - "start": { - "line": 563, - "column": 35 - }, - "end": { - "line": 570, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21955, - "end": 21969, - "loc": { - "start": { - "line": 564, - "column": 8 - }, - "end": { - "line": 564, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 21955, - "end": 21961, - "loc": { - "start": { - "line": 564, - "column": 8 - }, - "end": { - "line": 564, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 21963, - "end": 21969, - "loc": { - "start": { - "line": 564, - "column": 16 - }, - "end": { - "line": 564, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 21979, - "end": 22016, - "loc": { - "start": { - "line": 565, - "column": 8 - }, - "end": { - "line": 565, - "column": 45 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 21979, - "end": 21983, - "loc": { - "start": { - "line": 565, - "column": 8 - }, - "end": { - "line": 565, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 21985, - "end": 22016, - "loc": { - "start": { - "line": 565, - "column": 14 - }, - "end": { - "line": 565, - "column": 45 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 21998, - "end": 22000, - "loc": { - "start": { - "line": 565, - "column": 27 - }, - "end": { - "line": 565, - "column": 29 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 21986, - "end": 21996, - "loc": { - "start": { - "line": 565, - "column": 15 - }, - "end": { - "line": 565, - "column": 25 - } - }, - "value": { - "raw": "/document/", - "cooked": "/document/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 22001, - "end": 22015, - "loc": { - "start": { - "line": 565, - "column": 30 - }, - "end": { - "line": 565, - "column": 44 - } - }, - "value": { - "raw": "/download/link", - "cooked": "/download/link" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 22026, - "end": 22095, - "loc": { - "start": { - "line": 566, - "column": 8 - }, - "end": { - "line": 569, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 22026, - "end": 22039, - "loc": { - "start": { - "line": 566, - "column": 8 - }, - "end": { - "line": 566, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 22041, - "end": 22095, - "loc": { - "start": { - "line": 566, - "column": 23 - }, - "end": { - "line": 569, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 22053, - "end": 22067, - "loc": { - "start": { - "line": 567, - "column": 10 - }, - "end": { - "line": 567, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 22053, - "end": 22057, - "loc": { - "start": { - "line": 567, - "column": 10 - }, - "end": { - "line": 567, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 22059, - "end": 22067, - "loc": { - "start": { - "line": 567, - "column": 16 - }, - "end": { - "line": 567, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 22079, - "end": 22084, - "loc": { - "start": { - "line": 568, - "column": 10 - }, - "end": { - "line": 568, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 22079, - "end": 22084, - "loc": { - "start": { - "line": 568, - "column": 10 - }, - "end": { - "line": 568, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 22079, - "end": 22084, - "loc": { - "start": { - "line": 568, - "column": 10 - }, - "end": { - "line": 568, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 22107, - "end": 22132, - "loc": { - "start": { - "line": 570, - "column": 10 - }, - "end": { - "line": 570, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 22107, - "end": 22122, - "loc": { - "start": { - "line": 570, - "column": 10 - }, - "end": { - "line": 570, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 22123, - "end": 22131, - "loc": { - "start": { - "line": 570, - "column": 26 - }, - "end": { - "line": 570, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 22141, - "end": 22143, - "loc": { - "start": { - "line": 571, - "column": 7 - }, - "end": { - "line": 571, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 22144, - "end": 22151, - "loc": { - "start": { - "line": 571, - "column": 10 - }, - "end": { - "line": 571, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 22153, - "end": 22175, - "loc": { - "start": { - "line": 571, - "column": 19 - }, - "end": { - "line": 571, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 22153, - "end": 22165, - "loc": { - "start": { - "line": 571, - "column": 19 - }, - "end": { - "line": 571, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 22166, - "end": 22174, - "loc": { - "start": { - "line": 571, - "column": 32 - }, - "end": { - "line": 571, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 22184, - "end": 22187, - "loc": { - "start": { - "line": 572, - "column": 7 - }, - "end": { - "line": 572, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " creates a one-time use URL for anyone to download the document as a PDF.", - "start": 21781, - "end": 21856, - "loc": { - "start": { - "line": 560, - "column": 2 - }, - "end": { - "line": 560, - "column": 77 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document invite signer settings\n * @typedef {Object} SignerSettings\n * @property {string} email - signer's email\n * @property {string} role - role name\n * @property {string} role_id - role unique id (can be discovered in document details)\n * @property {number} order - role signing order\n * @property {string} reassign - allow reassign signer\n * @property {string} decline_by_signature - signer can decline invite\n * @property {number} reminder - remind via email in days\n * @property {number} expiration_days - expiration of invite in days\n * @property {string} [subject] - specify subject of email\n * @property {string} [message] - specify body of email\n ", - "start": 22198, - "end": 22890, - "loc": { - "start": { - "line": 575, - "column": 2 - }, - "end": { - "line": 588, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document invite settings\n * @typedef {Object} DocumentInviteSettings\n * @property {string} from - email of sender\n * @property {SignerSettings[]|string} to - array of signers or email of single signer\n * @property {string} [document_id] - an id of document\n * @property {string[]} [cc] - array with emails of copy receivers\n * @property {string} [subject] - specify subject of email\n * @property {string} [message] - specify body of email\n * @property {string} [on_complete] - on signing complete action\n ", - "start": 22894, - "end": 23428, - "loc": { - "start": { - "line": 590, - "column": 2 - }, - "end": { - "line": 600, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document invite optional settings\n * @typedef {Object} DocumentInviteOptions\n * @property {string} [email] - ability to disable invitation by email. to disabale email assign value 'disable'\n ", - "start": 23432, - "end": 23640, - "loc": { - "start": { - "line": 602, - "column": 2 - }, - "end": { - "line": 606, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document invite payload\n * @typedef {Object} DocumentInviteParams\n * @property {string} id - an id of document\n * @property {DocumentInviteSettings} data - document invite settings\n * @property {DocumentInviteOptions} [options] - document invite optional settings\n * @property {string} token - your auth token\n ", - "start": 23644, - "end": 23985, - "loc": { - "start": { - "line": 608, - "column": 2 - }, - "end": { - "line": 615, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document field invite response data\n * @typedef {Object} DocumentFieldInviteResponse\n * @property {string} status - status of invitation, e.g. 'success'\n ", - "start": 23989, - "end": 24167, - "loc": { - "start": { - "line": 617, - "column": 2 - }, - "end": { - "line": 621, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document free form invite response data\n * @typedef {Object} DocumentFreeformInviteResponse\n * @property {string} result - free form invitation result, e.g. 'success'\n * @property {string} id - unique id of invite\n * @property {string} callback_url - url for front-end redirect or 'none'\n ", - "start": 24171, - "end": 24488, - "loc": { - "start": { - "line": 623, - "column": 2 - }, - "end": { - "line": 629, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document invite response data\n * @typedef {DocumentFieldInviteResponse|DocumentFreeformInviteResponse} DocumentInviteResponse\n ", - "start": 24492, - "end": 24641, - "loc": { - "start": { - "line": 631, - "column": 2 - }, - "end": { - "line": 634, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates an invite to sign a document.\n * You can create a simple free form invite(s) or a role-based invite(s).\n * @param {DocumentInviteParams} data - create document invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentInviteResponse)} [callback] - error first node.js callback\n ", - "start": 24645, - "end": 24963, - "loc": { - "start": { - "line": 636, - "column": 2 - }, - "end": { - "line": 641, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 24966, - "end": 25653, - "loc": { - "start": { - "line": 642, - "column": 2 - }, - "end": { - "line": 672, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 24973, - "end": 24979, - "loc": { - "start": { - "line": 642, - "column": 9 - }, - "end": { - "line": 642, - "column": 15 - }, - "identifierName": "invite" - }, - "name": "invite" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 24981, - "end": 25044, - "loc": { - "start": { - "line": 642, - "column": 17 - }, - "end": { - "line": 647, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 24987, - "end": 24989, - "loc": { - "start": { - "line": 643, - "column": 4 - }, - "end": { - "line": 643, - "column": 6 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 24987, - "end": 24989, - "loc": { - "start": { - "line": 643, - "column": 4 - }, - "end": { - "line": 643, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 24987, - "end": 24989, - "loc": { - "start": { - "line": 643, - "column": 4 - }, - "end": { - "line": 643, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 24995, - "end": 24999, - "loc": { - "start": { - "line": 644, - "column": 4 - }, - "end": { - "line": 644, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 24995, - "end": 24999, - "loc": { - "start": { - "line": 644, - "column": 4 - }, - "end": { - "line": 644, - "column": 8 - }, - "identifierName": "data" - }, - "name": "data" - }, - "value": { - "type": "Identifier", - "start": 24995, - "end": 24999, - "loc": { - "start": { - "line": 644, - "column": 4 - }, - "end": { - "line": 644, - "column": 8 - }, - "identifierName": "data" - }, - "name": "data" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 25005, - "end": 25028, - "loc": { - "start": { - "line": 645, - "column": 4 - }, - "end": { - "line": 645, - "column": 27 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 25005, - "end": 25012, - "loc": { - "start": { - "line": 645, - "column": 4 - }, - "end": { - "line": 645, - "column": 11 - }, - "identifierName": "options" - }, - "name": "options" - }, - "value": { - "type": "AssignmentPattern", - "start": 25014, - "end": 25028, - "loc": { - "start": { - "line": 645, - "column": 13 - }, - "end": { - "line": 645, - "column": 27 - } - }, - "left": { - "type": "ObjectPattern", - "start": 25014, - "end": 25023, - "loc": { - "start": { - "line": 645, - "column": 13 - }, - "end": { - "line": 645, - "column": 22 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 25016, - "end": 25021, - "loc": { - "start": { - "line": 645, - "column": 15 - }, - "end": { - "line": 645, - "column": 20 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 25016, - "end": 25021, - "loc": { - "start": { - "line": 645, - "column": 15 - }, - "end": { - "line": 645, - "column": 20 - }, - "identifierName": "email" - }, - "name": "email" - }, - "value": { - "type": "Identifier", - "start": 25016, - "end": 25021, - "loc": { - "start": { - "line": 645, - "column": 15 - }, - "end": { - "line": 645, - "column": 20 - }, - "identifierName": "email" - }, - "name": "email" - }, - "extra": { - "shorthand": true - } - } - ] - }, - "right": { - "type": "ObjectExpression", - "start": 25026, - "end": 25028, - "loc": { - "start": { - "line": 645, - "column": 25 - }, - "end": { - "line": 645, - "column": 27 - } - }, - "properties": [] - } - } - }, - { - "type": "ObjectProperty", - "start": 25034, - "end": 25039, - "loc": { - "start": { - "line": 646, - "column": 4 - }, - "end": { - "line": 646, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 25034, - "end": 25039, - "loc": { - "start": { - "line": 646, - "column": 4 - }, - "end": { - "line": 646, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 25034, - "end": 25039, - "loc": { - "start": { - "line": 646, - "column": 4 - }, - "end": { - "line": 646, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 25046, - "end": 25054, - "loc": { - "start": { - "line": 647, - "column": 5 - }, - "end": { - "line": 647, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 25056, - "end": 25653, - "loc": { - "start": { - "line": 647, - "column": 15 - }, - "end": { - "line": 672, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 25062, - "end": 25100, - "loc": { - "start": { - "line": 648, - "column": 4 - }, - "end": { - "line": 648, - "column": 42 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 25068, - "end": 25099, - "loc": { - "start": { - "line": 648, - "column": 10 - }, - "end": { - "line": 648, - "column": 41 - } - }, - "id": { - "type": "Identifier", - "start": 25068, - "end": 25076, - "loc": { - "start": { - "line": 648, - "column": 10 - }, - "end": { - "line": 648, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 25079, - "end": 25099, - "loc": { - "start": { - "line": 648, - "column": 21 - }, - "end": { - "line": 648, - "column": 41 - } - }, - "callee": { - "type": "MemberExpression", - "start": 25079, - "end": 25093, - "loc": { - "start": { - "line": 648, - "column": 21 - }, - "end": { - "line": 648, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 25079, - "end": 25083, - "loc": { - "start": { - "line": 648, - "column": 21 - }, - "end": { - "line": 648, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 25084, - "end": 25093, - "loc": { - "start": { - "line": 648, - "column": 26 - }, - "end": { - "line": 648, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 25094, - "end": 25098, - "loc": { - "start": { - "line": 648, - "column": 36 - }, - "end": { - "line": 648, - "column": 40 - }, - "identifierName": "data" - }, - "name": "data" - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 25105, - "end": 25141, - "loc": { - "start": { - "line": 649, - "column": 4 - }, - "end": { - "line": 649, - "column": 40 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 25109, - "end": 25140, - "loc": { - "start": { - "line": 649, - "column": 8 - }, - "end": { - "line": 649, - "column": 39 - } - }, - "id": { - "type": "Identifier", - "start": 25109, - "end": 25113, - "loc": { - "start": { - "line": 649, - "column": 8 - }, - "end": { - "line": 649, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "init": { - "type": "TemplateLiteral", - "start": 25116, - "end": 25140, - "loc": { - "start": { - "line": 649, - "column": 15 - }, - "end": { - "line": 649, - "column": 39 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 25129, - "end": 25131, - "loc": { - "start": { - "line": 649, - "column": 28 - }, - "end": { - "line": 649, - "column": 30 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 25117, - "end": 25127, - "loc": { - "start": { - "line": 649, - "column": 16 - }, - "end": { - "line": 649, - "column": 26 - } - }, - "value": { - "raw": "/document/", - "cooked": "/document/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 25132, - "end": 25139, - "loc": { - "start": { - "line": 649, - "column": 31 - }, - "end": { - "line": 649, - "column": 38 - } - }, - "value": { - "raw": "/invite", - "cooked": "/invite" - }, - "tail": true - } - ] - } - } - ], - "kind": "let" - }, - { - "type": "IfStatement", - "start": 25147, - "end": 25217, - "loc": { - "start": { - "line": 651, - "column": 4 - }, - "end": { - "line": 653, - "column": 5 - } - }, - "test": { - "type": "BinaryExpression", - "start": 25151, - "end": 25170, - "loc": { - "start": { - "line": 651, - "column": 8 - }, - "end": { - "line": 651, - "column": 27 - } - }, - "left": { - "type": "Identifier", - "start": 25151, - "end": 25156, - "loc": { - "start": { - "line": 651, - "column": 8 - }, - "end": { - "line": 651, - "column": 13 - }, - "identifierName": "email" - }, - "name": "email" - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 25161, - "end": 25170, - "loc": { - "start": { - "line": 651, - "column": 18 - }, - "end": { - "line": 651, - "column": 27 - } - }, - "extra": { - "rawValue": "disable", - "raw": "'disable'" - }, - "value": "disable" - } - }, - "consequent": { - "type": "BlockStatement", - "start": 25172, - "end": 25217, - "loc": { - "start": { - "line": 651, - "column": 29 - }, - "end": { - "line": 653, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 25180, - "end": 25211, - "loc": { - "start": { - "line": 652, - "column": 6 - }, - "end": { - "line": 652, - "column": 37 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 25180, - "end": 25210, - "loc": { - "start": { - "line": 652, - "column": 6 - }, - "end": { - "line": 652, - "column": 36 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 25180, - "end": 25184, - "loc": { - "start": { - "line": 652, - "column": 6 - }, - "end": { - "line": 652, - "column": 10 - }, - "identifierName": "path" - }, - "name": "path" - }, - "right": { - "type": "TemplateLiteral", - "start": 25187, - "end": 25210, - "loc": { - "start": { - "line": 652, - "column": 13 - }, - "end": { - "line": 652, - "column": 36 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 25190, - "end": 25194, - "loc": { - "start": { - "line": 652, - "column": 16 - }, - "end": { - "line": 652, - "column": 20 - }, - "identifierName": "path" - }, - "name": "path" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 25188, - "end": 25188, - "loc": { - "start": { - "line": 652, - "column": 14 - }, - "end": { - "line": 652, - "column": 14 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 25195, - "end": 25209, - "loc": { - "start": { - "line": 652, - "column": 21 - }, - "end": { - "line": 652, - "column": 35 - } - }, - "value": { - "raw": "?email=disable", - "cooked": "?email=disable" - }, - "tail": true - } - ] - } - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "VariableDeclaration", - "start": 25223, - "end": 25608, - "loc": { - "start": { - "line": 655, - "column": 4 - }, - "end": { - "line": 668, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 25229, - "end": 25607, - "loc": { - "start": { - "line": 655, - "column": 10 - }, - "end": { - "line": 668, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 25229, - "end": 25232, - "loc": { - "start": { - "line": 655, - "column": 10 - }, - "end": { - "line": 655, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 25235, - "end": 25607, - "loc": { - "start": { - "line": 655, - "column": 16 - }, - "end": { - "line": 668, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 25235, - "end": 25574, - "loc": { - "start": { - "line": 655, - "column": 16 - }, - "end": { - "line": 668, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 25235, - "end": 25564, - "loc": { - "start": { - "line": 655, - "column": 16 - }, - "end": { - "line": 667, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 25235, - "end": 25255, - "loc": { - "start": { - "line": 655, - "column": 16 - }, - "end": { - "line": 656, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 25235, - "end": 25240, - "loc": { - "start": { - "line": 655, - "column": 16 - }, - "end": { - "line": 655, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 25248, - "end": 25255, - "loc": { - "start": { - "line": 656, - "column": 7 - }, - "end": { - "line": 656, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 25256, - "end": 25536, - "loc": { - "start": { - "line": 656, - "column": 15 - }, - "end": { - "line": 667, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 25256, - "end": 25275, - "loc": { - "start": { - "line": 656, - "column": 15 - }, - "end": { - "line": 656, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 25276, - "end": 25535, - "loc": { - "start": { - "line": 656, - "column": 35 - }, - "end": { - "line": 667, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 25286, - "end": 25300, - "loc": { - "start": { - "line": 657, - "column": 8 - }, - "end": { - "line": 657, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 25286, - "end": 25292, - "loc": { - "start": { - "line": 657, - "column": 8 - }, - "end": { - "line": 657, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 25294, - "end": 25300, - "loc": { - "start": { - "line": 657, - "column": 16 - }, - "end": { - "line": 657, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 25310, - "end": 25379, - "loc": { - "start": { - "line": 658, - "column": 8 - }, - "end": { - "line": 661, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 25310, - "end": 25323, - "loc": { - "start": { - "line": 658, - "column": 8 - }, - "end": { - "line": 658, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 25325, - "end": 25379, - "loc": { - "start": { - "line": 658, - "column": 23 - }, - "end": { - "line": 661, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 25337, - "end": 25351, - "loc": { - "start": { - "line": 659, - "column": 10 - }, - "end": { - "line": 659, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 25337, - "end": 25341, - "loc": { - "start": { - "line": 659, - "column": 10 - }, - "end": { - "line": 659, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 25343, - "end": 25351, - "loc": { - "start": { - "line": 659, - "column": 16 - }, - "end": { - "line": 659, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 25363, - "end": 25368, - "loc": { - "start": { - "line": 660, - "column": 10 - }, - "end": { - "line": 660, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 25363, - "end": 25368, - "loc": { - "start": { - "line": 660, - "column": 10 - }, - "end": { - "line": 660, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 25363, - "end": 25368, - "loc": { - "start": { - "line": 660, - "column": 10 - }, - "end": { - "line": 660, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 25389, - "end": 25512, - "loc": { - "start": { - "line": 662, - "column": 8 - }, - "end": { - "line": 665, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 25389, - "end": 25396, - "loc": { - "start": { - "line": 662, - "column": 8 - }, - "end": { - "line": 662, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 25398, - "end": 25512, - "loc": { - "start": { - "line": 662, - "column": 17 - }, - "end": { - "line": 665, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 25410, - "end": 25444, - "loc": { - "start": { - "line": 663, - "column": 10 - }, - "end": { - "line": 663, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 25410, - "end": 25424, - "loc": { - "start": { - "line": 663, - "column": 10 - }, - "end": { - "line": 663, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 25426, - "end": 25444, - "loc": { - "start": { - "line": 663, - "column": 26 - }, - "end": { - "line": 663, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 25456, - "end": 25501, - "loc": { - "start": { - "line": 664, - "column": 10 - }, - "end": { - "line": 664, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 25456, - "end": 25472, - "loc": { - "start": { - "line": 664, - "column": 10 - }, - "end": { - "line": 664, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 25474, - "end": 25501, - "loc": { - "start": { - "line": 664, - "column": 28 - }, - "end": { - "line": 664, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 25474, - "end": 25491, - "loc": { - "start": { - "line": 664, - "column": 28 - }, - "end": { - "line": 664, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 25474, - "end": 25480, - "loc": { - "start": { - "line": 664, - "column": 28 - }, - "end": { - "line": 664, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 25481, - "end": 25491, - "loc": { - "start": { - "line": 664, - "column": 35 - }, - "end": { - "line": 664, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 25492, - "end": 25500, - "loc": { - "start": { - "line": 664, - "column": 46 - }, - "end": { - "line": 664, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 25522, - "end": 25526, - "loc": { - "start": { - "line": 666, - "column": 8 - }, - "end": { - "line": 666, - "column": 12 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 25522, - "end": 25526, - "loc": { - "start": { - "line": 666, - "column": 8 - }, - "end": { - "line": 666, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "Identifier", - "start": 25522, - "end": 25526, - "loc": { - "start": { - "line": 666, - "column": 8 - }, - "end": { - "line": 666, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 25538, - "end": 25563, - "loc": { - "start": { - "line": 667, - "column": 10 - }, - "end": { - "line": 667, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 25538, - "end": 25553, - "loc": { - "start": { - "line": 667, - "column": 10 - }, - "end": { - "line": 667, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 25554, - "end": 25562, - "loc": { - "start": { - "line": 667, - "column": 26 - }, - "end": { - "line": 667, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 25572, - "end": 25574, - "loc": { - "start": { - "line": 668, - "column": 7 - }, - "end": { - "line": 668, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 25575, - "end": 25582, - "loc": { - "start": { - "line": 668, - "column": 10 - }, - "end": { - "line": 668, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 25584, - "end": 25606, - "loc": { - "start": { - "line": 668, - "column": 19 - }, - "end": { - "line": 668, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 25584, - "end": 25596, - "loc": { - "start": { - "line": 668, - "column": 19 - }, - "end": { - "line": 668, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 25597, - "end": 25605, - "loc": { - "start": { - "line": 668, - "column": 32 - }, - "end": { - "line": 668, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 25614, - "end": 25634, - "loc": { - "start": { - "line": 670, - "column": 4 - }, - "end": { - "line": 670, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 25614, - "end": 25633, - "loc": { - "start": { - "line": 670, - "column": 4 - }, - "end": { - "line": 670, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 25614, - "end": 25623, - "loc": { - "start": { - "line": 670, - "column": 4 - }, - "end": { - "line": 670, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 25614, - "end": 25617, - "loc": { - "start": { - "line": 670, - "column": 4 - }, - "end": { - "line": 670, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 25618, - "end": 25623, - "loc": { - "start": { - "line": 670, - "column": 8 - }, - "end": { - "line": 670, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 25624, - "end": 25632, - "loc": { - "start": { - "line": 670, - "column": 14 - }, - "end": { - "line": 670, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 25639, - "end": 25649, - "loc": { - "start": { - "line": 671, - "column": 4 - }, - "end": { - "line": 671, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 25639, - "end": 25648, - "loc": { - "start": { - "line": 671, - "column": 4 - }, - "end": { - "line": 671, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 25639, - "end": 25646, - "loc": { - "start": { - "line": 671, - "column": 4 - }, - "end": { - "line": 671, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 25639, - "end": 25642, - "loc": { - "start": { - "line": 671, - "column": 4 - }, - "end": { - "line": 671, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 25643, - "end": 25646, - "loc": { - "start": { - "line": 671, - "column": 8 - }, - "end": { - "line": 671, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document invite signer settings\n * @typedef {Object} SignerSettings\n * @property {string} email - signer's email\n * @property {string} role - role name\n * @property {string} role_id - role unique id (can be discovered in document details)\n * @property {number} order - role signing order\n * @property {string} reassign - allow reassign signer\n * @property {string} decline_by_signature - signer can decline invite\n * @property {number} reminder - remind via email in days\n * @property {number} expiration_days - expiration of invite in days\n * @property {string} [subject] - specify subject of email\n * @property {string} [message] - specify body of email\n ", - "start": 22198, - "end": 22890, - "loc": { - "start": { - "line": 575, - "column": 2 - }, - "end": { - "line": 588, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document invite settings\n * @typedef {Object} DocumentInviteSettings\n * @property {string} from - email of sender\n * @property {SignerSettings[]|string} to - array of signers or email of single signer\n * @property {string} [document_id] - an id of document\n * @property {string[]} [cc] - array with emails of copy receivers\n * @property {string} [subject] - specify subject of email\n * @property {string} [message] - specify body of email\n * @property {string} [on_complete] - on signing complete action\n ", - "start": 22894, - "end": 23428, - "loc": { - "start": { - "line": 590, - "column": 2 - }, - "end": { - "line": 600, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document invite optional settings\n * @typedef {Object} DocumentInviteOptions\n * @property {string} [email] - ability to disable invitation by email. to disabale email assign value 'disable'\n ", - "start": 23432, - "end": 23640, - "loc": { - "start": { - "line": 602, - "column": 2 - }, - "end": { - "line": 606, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document invite payload\n * @typedef {Object} DocumentInviteParams\n * @property {string} id - an id of document\n * @property {DocumentInviteSettings} data - document invite settings\n * @property {DocumentInviteOptions} [options] - document invite optional settings\n * @property {string} token - your auth token\n ", - "start": 23644, - "end": 23985, - "loc": { - "start": { - "line": 608, - "column": 2 - }, - "end": { - "line": 615, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document field invite response data\n * @typedef {Object} DocumentFieldInviteResponse\n * @property {string} status - status of invitation, e.g. 'success'\n ", - "start": 23989, - "end": 24167, - "loc": { - "start": { - "line": 617, - "column": 2 - }, - "end": { - "line": 621, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document free form invite response data\n * @typedef {Object} DocumentFreeformInviteResponse\n * @property {string} result - free form invitation result, e.g. 'success'\n * @property {string} id - unique id of invite\n * @property {string} callback_url - url for front-end redirect or 'none'\n ", - "start": 24171, - "end": 24488, - "loc": { - "start": { - "line": 623, - "column": 2 - }, - "end": { - "line": 629, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document invite response data\n * @typedef {DocumentFieldInviteResponse|DocumentFreeformInviteResponse} DocumentInviteResponse\n ", - "start": 24492, - "end": 24641, - "loc": { - "start": { - "line": 631, - "column": 2 - }, - "end": { - "line": 634, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates an invite to sign a document.\n * You can create a simple free form invite(s) or a role-based invite(s).\n * @param {DocumentInviteParams} data - create document invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentInviteResponse)} [callback] - error first node.js callback\n ", - "start": 24645, - "end": 24963, - "loc": { - "start": { - "line": 636, - "column": 2 - }, - "end": { - "line": 641, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " cancel an invite to a document.", - "start": 25657, - "end": 25691, - "loc": { - "start": { - "line": 674, - "column": 2 - }, - "end": { - "line": 674, - "column": 36 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 25694, - "end": 26039, - "loc": { - "start": { - "line": 675, - "column": 2 - }, - "end": { - "line": 687, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 25701, - "end": 25713, - "loc": { - "start": { - "line": 675, - "column": 9 - }, - "end": { - "line": 675, - "column": 21 - }, - "identifierName": "cancelInvite" - }, - "name": "cancelInvite" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 25715, - "end": 25728, - "loc": { - "start": { - "line": 675, - "column": 23 - }, - "end": { - "line": 675, - "column": 36 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 25717, - "end": 25719, - "loc": { - "start": { - "line": 675, - "column": 25 - }, - "end": { - "line": 675, - "column": 27 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 25717, - "end": 25719, - "loc": { - "start": { - "line": 675, - "column": 25 - }, - "end": { - "line": 675, - "column": 27 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 25717, - "end": 25719, - "loc": { - "start": { - "line": 675, - "column": 25 - }, - "end": { - "line": 675, - "column": 27 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 25721, - "end": 25726, - "loc": { - "start": { - "line": 675, - "column": 29 - }, - "end": { - "line": 675, - "column": 34 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 25721, - "end": 25726, - "loc": { - "start": { - "line": 675, - "column": 29 - }, - "end": { - "line": 675, - "column": 34 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 25721, - "end": 25726, - "loc": { - "start": { - "line": 675, - "column": 29 - }, - "end": { - "line": 675, - "column": 34 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 25730, - "end": 25738, - "loc": { - "start": { - "line": 675, - "column": 38 - }, - "end": { - "line": 675, - "column": 46 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 25740, - "end": 26039, - "loc": { - "start": { - "line": 675, - "column": 48 - }, - "end": { - "line": 687, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 25746, - "end": 26035, - "loc": { - "start": { - "line": 676, - "column": 4 - }, - "end": { - "line": 686, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 25746, - "end": 26034, - "loc": { - "start": { - "line": 676, - "column": 4 - }, - "end": { - "line": 686, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 25746, - "end": 26032, - "loc": { - "start": { - "line": 676, - "column": 4 - }, - "end": { - "line": 686, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 25746, - "end": 26021, - "loc": { - "start": { - "line": 676, - "column": 4 - }, - "end": { - "line": 685, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 25746, - "end": 25988, - "loc": { - "start": { - "line": 676, - "column": 4 - }, - "end": { - "line": 685, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 25746, - "end": 25978, - "loc": { - "start": { - "line": 676, - "column": 4 - }, - "end": { - "line": 684, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 25746, - "end": 25766, - "loc": { - "start": { - "line": 676, - "column": 4 - }, - "end": { - "line": 677, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 25746, - "end": 25751, - "loc": { - "start": { - "line": 676, - "column": 4 - }, - "end": { - "line": 676, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 25759, - "end": 25766, - "loc": { - "start": { - "line": 677, - "column": 7 - }, - "end": { - "line": 677, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 25767, - "end": 25950, - "loc": { - "start": { - "line": 677, - "column": 15 - }, - "end": { - "line": 684, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 25767, - "end": 25786, - "loc": { - "start": { - "line": 677, - "column": 15 - }, - "end": { - "line": 677, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 25787, - "end": 25949, - "loc": { - "start": { - "line": 677, - "column": 35 - }, - "end": { - "line": 684, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 25797, - "end": 25810, - "loc": { - "start": { - "line": 678, - "column": 8 - }, - "end": { - "line": 678, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 25797, - "end": 25803, - "loc": { - "start": { - "line": 678, - "column": 8 - }, - "end": { - "line": 678, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 25805, - "end": 25810, - "loc": { - "start": { - "line": 678, - "column": 16 - }, - "end": { - "line": 678, - "column": 21 - } - }, - "extra": { - "rawValue": "PUT", - "raw": "'PUT'" - }, - "value": "PUT" - } - }, - { - "type": "ObjectProperty", - "start": 25820, - "end": 25861, - "loc": { - "start": { - "line": 679, - "column": 8 - }, - "end": { - "line": 679, - "column": 49 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 25820, - "end": 25824, - "loc": { - "start": { - "line": 679, - "column": 8 - }, - "end": { - "line": 679, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 25826, - "end": 25861, - "loc": { - "start": { - "line": 679, - "column": 14 - }, - "end": { - "line": 679, - "column": 49 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 25839, - "end": 25841, - "loc": { - "start": { - "line": 679, - "column": 27 - }, - "end": { - "line": 679, - "column": 29 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 25827, - "end": 25837, - "loc": { - "start": { - "line": 679, - "column": 15 - }, - "end": { - "line": 679, - "column": 25 - } - }, - "value": { - "raw": "/document/", - "cooked": "/document/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 25842, - "end": 25860, - "loc": { - "start": { - "line": 679, - "column": 30 - }, - "end": { - "line": 679, - "column": 48 - } - }, - "value": { - "raw": "/fieldinvitecancel", - "cooked": "/fieldinvitecancel" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 25871, - "end": 25940, - "loc": { - "start": { - "line": 680, - "column": 8 - }, - "end": { - "line": 683, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 25871, - "end": 25884, - "loc": { - "start": { - "line": 680, - "column": 8 - }, - "end": { - "line": 680, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 25886, - "end": 25940, - "loc": { - "start": { - "line": 680, - "column": 23 - }, - "end": { - "line": 683, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 25898, - "end": 25912, - "loc": { - "start": { - "line": 681, - "column": 10 - }, - "end": { - "line": 681, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 25898, - "end": 25902, - "loc": { - "start": { - "line": 681, - "column": 10 - }, - "end": { - "line": 681, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 25904, - "end": 25912, - "loc": { - "start": { - "line": 681, - "column": 16 - }, - "end": { - "line": 681, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 25924, - "end": 25929, - "loc": { - "start": { - "line": 682, - "column": 10 - }, - "end": { - "line": 682, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 25924, - "end": 25929, - "loc": { - "start": { - "line": 682, - "column": 10 - }, - "end": { - "line": 682, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 25924, - "end": 25929, - "loc": { - "start": { - "line": 682, - "column": 10 - }, - "end": { - "line": 682, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 25952, - "end": 25977, - "loc": { - "start": { - "line": 684, - "column": 10 - }, - "end": { - "line": 684, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 25952, - "end": 25967, - "loc": { - "start": { - "line": 684, - "column": 10 - }, - "end": { - "line": 684, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 25968, - "end": 25976, - "loc": { - "start": { - "line": 684, - "column": 26 - }, - "end": { - "line": 684, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 25986, - "end": 25988, - "loc": { - "start": { - "line": 685, - "column": 7 - }, - "end": { - "line": 685, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 25989, - "end": 25996, - "loc": { - "start": { - "line": 685, - "column": 10 - }, - "end": { - "line": 685, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 25998, - "end": 26020, - "loc": { - "start": { - "line": 685, - "column": 19 - }, - "end": { - "line": 685, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 25998, - "end": 26010, - "loc": { - "start": { - "line": 685, - "column": 19 - }, - "end": { - "line": 685, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 26011, - "end": 26019, - "loc": { - "start": { - "line": 685, - "column": 32 - }, - "end": { - "line": 685, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 26029, - "end": 26032, - "loc": { - "start": { - "line": 686, - "column": 7 - }, - "end": { - "line": 686, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " cancel an invite to a document.", - "start": 25657, - "end": 25691, - "loc": { - "start": { - "line": 674, - "column": 2 - }, - "end": { - "line": 674, - "column": 36 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Merge documents optional settings\n * @typedef {Object} DocumentMergeOptions\n * @property {boolean} [removeOriginalDocuments=false] - if true original documents will be removed\n ", - "start": 26043, - "end": 26237, - "loc": { - "start": { - "line": 689, - "column": 2 - }, - "end": { - "line": 693, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Merge documents payload\n * @typedef {Object} DocumentMergeParams\n * @property {string} token - your auth token\n * @property {string} name - new name for merged document\n * @property {string[]} document_ids - an array of document IDs\n * @property {DocumentMergeOptions} options - merge documents optional settings\n ", - "start": 26241, - "end": 26578, - "loc": { - "start": { - "line": 695, - "column": 2 - }, - "end": { - "line": 702, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Merge documents response data\n * @typedef {Object} DocumentMergeResponse\n * @property {string} document_id - an ID of merged document\n ", - "start": 26582, - "end": 26734, - "loc": { - "start": { - "line": 704, - "column": 2 - }, - "end": { - "line": 708, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Merges existing documents into one.\n * By default original documents are not removed after merging. To remove original documents set `removeOriginalDocuments` option to `true`.\n * @param {DocumentMergeParams} data - merge documents payload\n * @param {function(err: ApiErrorResponse, res: DocumentMergeResponse)} [originalCallback] - error first node.js callback\n ", - "start": 26738, - "end": 27120, - "loc": { - "start": { - "line": 710, - "column": 2 - }, - "end": { - "line": 715, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 27123, - "end": 29094, - "loc": { - "start": { - "line": 716, - "column": 2 - }, - "end": { - "line": 789, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 27130, - "end": 27135, - "loc": { - "start": { - "line": 716, - "column": 9 - }, - "end": { - "line": 716, - "column": 14 - }, - "identifierName": "merge" - }, - "name": "merge" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 27137, - "end": 27236, - "loc": { - "start": { - "line": 716, - "column": 16 - }, - "end": { - "line": 721, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 27143, - "end": 27147, - "loc": { - "start": { - "line": 717, - "column": 4 - }, - "end": { - "line": 717, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 27143, - "end": 27147, - "loc": { - "start": { - "line": 717, - "column": 4 - }, - "end": { - "line": 717, - "column": 8 - }, - "identifierName": "name" - }, - "name": "name" - }, - "value": { - "type": "Identifier", - "start": 27143, - "end": 27147, - "loc": { - "start": { - "line": 717, - "column": 4 - }, - "end": { - "line": 717, - "column": 8 - }, - "identifierName": "name" - }, - "name": "name" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 27153, - "end": 27165, - "loc": { - "start": { - "line": 718, - "column": 4 - }, - "end": { - "line": 718, - "column": 16 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 27153, - "end": 27165, - "loc": { - "start": { - "line": 718, - "column": 4 - }, - "end": { - "line": 718, - "column": 16 - }, - "identifierName": "document_ids" - }, - "name": "document_ids" - }, - "value": { - "type": "Identifier", - "start": 27153, - "end": 27165, - "loc": { - "start": { - "line": 718, - "column": 4 - }, - "end": { - "line": 718, - "column": 16 - }, - "identifierName": "document_ids" - }, - "name": "document_ids" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 27171, - "end": 27220, - "loc": { - "start": { - "line": 719, - "column": 4 - }, - "end": { - "line": 719, - "column": 53 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 27171, - "end": 27178, - "loc": { - "start": { - "line": 719, - "column": 4 - }, - "end": { - "line": 719, - "column": 11 - }, - "identifierName": "options" - }, - "name": "options" - }, - "value": { - "type": "AssignmentPattern", - "start": 27180, - "end": 27220, - "loc": { - "start": { - "line": 719, - "column": 13 - }, - "end": { - "line": 719, - "column": 53 - } - }, - "left": { - "type": "ObjectPattern", - "start": 27180, - "end": 27215, - "loc": { - "start": { - "line": 719, - "column": 13 - }, - "end": { - "line": 719, - "column": 48 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 27182, - "end": 27213, - "loc": { - "start": { - "line": 719, - "column": 15 - }, - "end": { - "line": 719, - "column": 46 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 27182, - "end": 27205, - "loc": { - "start": { - "line": 719, - "column": 15 - }, - "end": { - "line": 719, - "column": 38 - }, - "identifierName": "removeOriginalDocuments" - }, - "name": "removeOriginalDocuments" - }, - "value": { - "type": "AssignmentPattern", - "start": 27182, - "end": 27213, - "loc": { - "start": { - "line": 719, - "column": 15 - }, - "end": { - "line": 719, - "column": 46 - } - }, - "left": { - "type": "Identifier", - "start": 27182, - "end": 27205, - "loc": { - "start": { - "line": 719, - "column": 15 - }, - "end": { - "line": 719, - "column": 38 - }, - "identifierName": "removeOriginalDocuments" - }, - "name": "removeOriginalDocuments" - }, - "right": { - "type": "BooleanLiteral", - "start": 27208, - "end": 27213, - "loc": { - "start": { - "line": 719, - "column": 41 - }, - "end": { - "line": 719, - "column": 46 - } - }, - "value": false - } - }, - "extra": { - "shorthand": true - } - } - ] - }, - "right": { - "type": "ObjectExpression", - "start": 27218, - "end": 27220, - "loc": { - "start": { - "line": 719, - "column": 51 - }, - "end": { - "line": 719, - "column": 53 - } - }, - "properties": [] - } - } - }, - { - "type": "ObjectProperty", - "start": 27226, - "end": 27231, - "loc": { - "start": { - "line": 720, - "column": 4 - }, - "end": { - "line": 720, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 27226, - "end": 27231, - "loc": { - "start": { - "line": 720, - "column": 4 - }, - "end": { - "line": 720, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 27226, - "end": 27231, - "loc": { - "start": { - "line": 720, - "column": 4 - }, - "end": { - "line": 720, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 27238, - "end": 27254, - "loc": { - "start": { - "line": 721, - "column": 5 - }, - "end": { - "line": 721, - "column": 21 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - } - ], - "body": { - "type": "BlockStatement", - "start": 27256, - "end": 29094, - "loc": { - "start": { - "line": 721, - "column": 23 - }, - "end": { - "line": 789, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 27262, - "end": 27364, - "loc": { - "start": { - "line": 722, - "column": 4 - }, - "end": { - "line": 726, - "column": 7 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 27268, - "end": 27363, - "loc": { - "start": { - "line": 722, - "column": 10 - }, - "end": { - "line": 726, - "column": 6 - } - }, - "id": { - "type": "Identifier", - "start": 27268, - "end": 27276, - "loc": { - "start": { - "line": 722, - "column": 10 - }, - "end": { - "line": 722, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 27279, - "end": 27363, - "loc": { - "start": { - "line": 722, - "column": 21 - }, - "end": { - "line": 726, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 27279, - "end": 27293, - "loc": { - "start": { - "line": 722, - "column": 21 - }, - "end": { - "line": 722, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 27279, - "end": 27283, - "loc": { - "start": { - "line": 722, - "column": 21 - }, - "end": { - "line": 722, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 27284, - "end": 27293, - "loc": { - "start": { - "line": 722, - "column": 26 - }, - "end": { - "line": 722, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 27294, - "end": 27362, - "loc": { - "start": { - "line": 722, - "column": 36 - }, - "end": { - "line": 726, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 27302, - "end": 27323, - "loc": { - "start": { - "line": 723, - "column": 6 - }, - "end": { - "line": 723, - "column": 27 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 27302, - "end": 27317, - "loc": { - "start": { - "line": 723, - "column": 6 - }, - "end": { - "line": 723, - "column": 21 - }, - "identifierName": "upload_document" - }, - "name": "upload_document" - }, - "value": { - "type": "BooleanLiteral", - "start": 27319, - "end": 27323, - "loc": { - "start": { - "line": 723, - "column": 23 - }, - "end": { - "line": 723, - "column": 27 - } - }, - "value": true - } - }, - { - "type": "ObjectProperty", - "start": 27331, - "end": 27343, - "loc": { - "start": { - "line": 724, - "column": 6 - }, - "end": { - "line": 724, - "column": 18 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 27331, - "end": 27343, - "loc": { - "start": { - "line": 724, - "column": 6 - }, - "end": { - "line": 724, - "column": 18 - }, - "identifierName": "document_ids" - }, - "name": "document_ids" - }, - "value": { - "type": "Identifier", - "start": 27331, - "end": 27343, - "loc": { - "start": { - "line": 724, - "column": 6 - }, - "end": { - "line": 724, - "column": 18 - }, - "identifierName": "document_ids" - }, - "name": "document_ids" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 27351, - "end": 27355, - "loc": { - "start": { - "line": 725, - "column": 6 - }, - "end": { - "line": 725, - "column": 10 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 27351, - "end": 27355, - "loc": { - "start": { - "line": 725, - "column": 6 - }, - "end": { - "line": 725, - "column": 10 - }, - "identifierName": "name" - }, - "name": "name" - }, - "value": { - "type": "Identifier", - "start": 27351, - "end": 27355, - "loc": { - "start": { - "line": 725, - "column": 6 - }, - "end": { - "line": 725, - "column": 10 - }, - "identifierName": "name" - }, - "name": "name" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 27370, - "end": 28522, - "loc": { - "start": { - "line": 728, - "column": 4 - }, - "end": { - "line": 766, - "column": 6 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 27376, - "end": 28521, - "loc": { - "start": { - "line": 728, - "column": 10 - }, - "end": { - "line": 766, - "column": 5 - } - }, - "id": { - "type": "Identifier", - "start": 27376, - "end": 27404, - "loc": { - "start": { - "line": 728, - "column": 10 - }, - "end": { - "line": 728, - "column": 38 - }, - "identifierName": "callbackWithDocumentDeletion" - }, - "name": "callbackWithDocumentDeletion" - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 27407, - "end": 28521, - "loc": { - "start": { - "line": 728, - "column": 41 - }, - "end": { - "line": 766, - "column": 5 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 27408, - "end": 27416, - "loc": { - "start": { - "line": 728, - "column": 42 - }, - "end": { - "line": 728, - "column": 50 - }, - "identifierName": "mergeErr" - }, - "name": "mergeErr" - }, - { - "type": "Identifier", - "start": 27418, - "end": 27426, - "loc": { - "start": { - "line": 728, - "column": 52 - }, - "end": { - "line": 728, - "column": 60 - }, - "identifierName": "mergeRes" - }, - "name": "mergeRes" - } - ], - "body": { - "type": "BlockStatement", - "start": 27431, - "end": 28521, - "loc": { - "start": { - "line": 728, - "column": 65 - }, - "end": { - "line": 766, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 27439, - "end": 28515, - "loc": { - "start": { - "line": 729, - "column": 6 - }, - "end": { - "line": 765, - "column": 7 - } - }, - "test": { - "type": "Identifier", - "start": 27443, - "end": 27451, - "loc": { - "start": { - "line": 729, - "column": 10 - }, - "end": { - "line": 729, - "column": 18 - }, - "identifierName": "mergeErr" - }, - "name": "mergeErr" - }, - "consequent": { - "type": "BlockStatement", - "start": 27453, - "end": 27514, - "loc": { - "start": { - "line": 729, - "column": 20 - }, - "end": { - "line": 732, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 27463, - "end": 27490, - "loc": { - "start": { - "line": 730, - "column": 8 - }, - "end": { - "line": 730, - "column": 35 - } - }, - "expression": { - "type": "CallExpression", - "start": 27463, - "end": 27489, - "loc": { - "start": { - "line": 730, - "column": 8 - }, - "end": { - "line": 730, - "column": 34 - } - }, - "callee": { - "type": "Identifier", - "start": 27463, - "end": 27479, - "loc": { - "start": { - "line": 730, - "column": 8 - }, - "end": { - "line": 730, - "column": 24 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 27480, - "end": 27488, - "loc": { - "start": { - "line": 730, - "column": 25 - }, - "end": { - "line": 730, - "column": 33 - }, - "identifierName": "mergeErr" - }, - "name": "mergeErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 27499, - "end": 27506, - "loc": { - "start": { - "line": 731, - "column": 8 - }, - "end": { - "line": 731, - "column": 15 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 27520, - "end": 28515, - "loc": { - "start": { - "line": 732, - "column": 13 - }, - "end": { - "line": 765, - "column": 7 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 27531, - "end": 27852, - "loc": { - "start": { - "line": 734, - "column": 8 - }, - "end": { - "line": 745, - "column": 11 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 27537, - "end": 27851, - "loc": { - "start": { - "line": 734, - "column": 14 - }, - "end": { - "line": 745, - "column": 10 - } - }, - "id": { - "type": "Identifier", - "start": 27537, - "end": 27551, - "loc": { - "start": { - "line": 734, - "column": 14 - }, - "end": { - "line": 734, - "column": 28 - }, - "identifierName": "removeDocument" - }, - "name": "removeDocument" - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 27554, - "end": 27851, - "loc": { - "start": { - "line": 734, - "column": 31 - }, - "end": { - "line": 745, - "column": 10 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 27555, - "end": 27561, - "loc": { - "start": { - "line": 734, - "column": 32 - }, - "end": { - "line": 734, - "column": 38 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 27557, - "end": 27559, - "loc": { - "start": { - "line": 734, - "column": 34 - }, - "end": { - "line": 734, - "column": 36 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 27557, - "end": 27559, - "loc": { - "start": { - "line": 734, - "column": 34 - }, - "end": { - "line": 734, - "column": 36 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 27557, - "end": 27559, - "loc": { - "start": { - "line": 734, - "column": 34 - }, - "end": { - "line": 734, - "column": 36 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - } - ] - } - ], - "body": { - "type": "NewExpression", - "start": 27566, - "end": 27851, - "loc": { - "start": { - "line": 734, - "column": 43 - }, - "end": { - "line": 745, - "column": 10 - } - }, - "callee": { - "type": "Identifier", - "start": 27570, - "end": 27577, - "loc": { - "start": { - "line": 734, - "column": 47 - }, - "end": { - "line": 734, - "column": 54 - }, - "identifierName": "Promise" - }, - "name": "Promise" - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 27578, - "end": 27850, - "loc": { - "start": { - "line": 734, - "column": 55 - }, - "end": { - "line": 745, - "column": 9 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 27579, - "end": 27586, - "loc": { - "start": { - "line": 734, - "column": 56 - }, - "end": { - "line": 734, - "column": 63 - }, - "identifierName": "resolve" - }, - "name": "resolve" - }, - { - "type": "Identifier", - "start": 27588, - "end": 27594, - "loc": { - "start": { - "line": 734, - "column": 65 - }, - "end": { - "line": 734, - "column": 71 - }, - "identifierName": "reject" - }, - "name": "reject" - } - ], - "body": { - "type": "BlockStatement", - "start": 27599, - "end": 27850, - "loc": { - "start": { - "line": 734, - "column": 76 - }, - "end": { - "line": 745, - "column": 9 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 27611, - "end": 27840, - "loc": { - "start": { - "line": 735, - "column": 10 - }, - "end": { - "line": 744, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 27611, - "end": 27839, - "loc": { - "start": { - "line": 735, - "column": 10 - }, - "end": { - "line": 744, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 27611, - "end": 27626, - "loc": { - "start": { - "line": 735, - "column": 10 - }, - "end": { - "line": 735, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 27611, - "end": 27619, - "loc": { - "start": { - "line": 735, - "column": 10 - }, - "end": { - "line": 735, - "column": 18 - }, - "identifierName": "Document" - }, - "name": "Document" - }, - "property": { - "type": "Identifier", - "start": 27620, - "end": 27626, - "loc": { - "start": { - "line": 735, - "column": 19 - }, - "end": { - "line": 735, - "column": 25 - }, - "identifierName": "remove" - }, - "name": "remove" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 27627, - "end": 27675, - "loc": { - "start": { - "line": 735, - "column": 26 - }, - "end": { - "line": 738, - "column": 11 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 27641, - "end": 27643, - "loc": { - "start": { - "line": 736, - "column": 12 - }, - "end": { - "line": 736, - "column": 14 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 27641, - "end": 27643, - "loc": { - "start": { - "line": 736, - "column": 12 - }, - "end": { - "line": 736, - "column": 14 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 27641, - "end": 27643, - "loc": { - "start": { - "line": 736, - "column": 12 - }, - "end": { - "line": 736, - "column": 14 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 27657, - "end": 27662, - "loc": { - "start": { - "line": 737, - "column": 12 - }, - "end": { - "line": 737, - "column": 17 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 27657, - "end": 27662, - "loc": { - "start": { - "line": 737, - "column": 12 - }, - "end": { - "line": 737, - "column": 17 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 27657, - "end": 27662, - "loc": { - "start": { - "line": 737, - "column": 12 - }, - "end": { - "line": 737, - "column": 17 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "ArrowFunctionExpression", - "start": 27677, - "end": 27838, - "loc": { - "start": { - "line": 738, - "column": 13 - }, - "end": { - "line": 744, - "column": 11 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 27678, - "end": 27681, - "loc": { - "start": { - "line": 738, - "column": 14 - }, - "end": { - "line": 738, - "column": 17 - }, - "identifierName": "err" - }, - "name": "err" - }, - { - "type": "Identifier", - "start": 27683, - "end": 27686, - "loc": { - "start": { - "line": 738, - "column": 19 - }, - "end": { - "line": 738, - "column": 22 - }, - "identifierName": "res" - }, - "name": "res" - } - ], - "body": { - "type": "BlockStatement", - "start": 27691, - "end": 27838, - "loc": { - "start": { - "line": 738, - "column": 27 - }, - "end": { - "line": 744, - "column": 11 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 27705, - "end": 27826, - "loc": { - "start": { - "line": 739, - "column": 12 - }, - "end": { - "line": 743, - "column": 13 - } - }, - "test": { - "type": "Identifier", - "start": 27709, - "end": 27712, - "loc": { - "start": { - "line": 739, - "column": 16 - }, - "end": { - "line": 739, - "column": 19 - }, - "identifierName": "err" - }, - "name": "err" - }, - "consequent": { - "type": "BlockStatement", - "start": 27714, - "end": 27756, - "loc": { - "start": { - "line": 739, - "column": 21 - }, - "end": { - "line": 741, - "column": 13 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 27730, - "end": 27742, - "loc": { - "start": { - "line": 740, - "column": 14 - }, - "end": { - "line": 740, - "column": 26 - } - }, - "expression": { - "type": "CallExpression", - "start": 27730, - "end": 27741, - "loc": { - "start": { - "line": 740, - "column": 14 - }, - "end": { - "line": 740, - "column": 25 - } - }, - "callee": { - "type": "Identifier", - "start": 27730, - "end": 27736, - "loc": { - "start": { - "line": 740, - "column": 14 - }, - "end": { - "line": 740, - "column": 20 - }, - "identifierName": "reject" - }, - "name": "reject" - }, - "arguments": [ - { - "type": "Identifier", - "start": 27737, - "end": 27740, - "loc": { - "start": { - "line": 740, - "column": 21 - }, - "end": { - "line": 740, - "column": 24 - }, - "identifierName": "err" - }, - "name": "err" - } - ] - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 27762, - "end": 27826, - "loc": { - "start": { - "line": 741, - "column": 19 - }, - "end": { - "line": 743, - "column": 13 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 27778, - "end": 27812, - "loc": { - "start": { - "line": 742, - "column": 14 - }, - "end": { - "line": 742, - "column": 48 - } - }, - "expression": { - "type": "CallExpression", - "start": 27778, - "end": 27811, - "loc": { - "start": { - "line": 742, - "column": 14 - }, - "end": { - "line": 742, - "column": 47 - } - }, - "callee": { - "type": "Identifier", - "start": 27778, - "end": 27785, - "loc": { - "start": { - "line": 742, - "column": 14 - }, - "end": { - "line": 742, - "column": 21 - }, - "identifierName": "resolve" - }, - "name": "resolve" - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 27786, - "end": 27810, - "loc": { - "start": { - "line": 742, - "column": 22 - }, - "end": { - "line": 742, - "column": 46 - } - }, - "left": { - "type": "MemberExpression", - "start": 27786, - "end": 27796, - "loc": { - "start": { - "line": 742, - "column": 22 - }, - "end": { - "line": 742, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 27786, - "end": 27789, - "loc": { - "start": { - "line": 742, - "column": 22 - }, - "end": { - "line": 742, - "column": 25 - }, - "identifierName": "res" - }, - "name": "res" - }, - "property": { - "type": "Identifier", - "start": 27790, - "end": 27796, - "loc": { - "start": { - "line": 742, - "column": 26 - }, - "end": { - "line": 742, - "column": 32 - }, - "identifierName": "status" - }, - "name": "status" - }, - "computed": false - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 27801, - "end": 27810, - "loc": { - "start": { - "line": 742, - "column": 37 - }, - "end": { - "line": 742, - "column": 46 - } - }, - "extra": { - "rawValue": "success", - "raw": "'success'" - }, - "value": "success" - } - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - } - } - ] - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 27862, - "end": 27945, - "loc": { - "start": { - "line": 747, - "column": 8 - }, - "end": { - "line": 748, - "column": 45 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 27868, - "end": 27944, - "loc": { - "start": { - "line": 747, - "column": 14 - }, - "end": { - "line": 748, - "column": 44 - } - }, - "id": { - "type": "Identifier", - "start": 27868, - "end": 27884, - "loc": { - "start": { - "line": 747, - "column": 14 - }, - "end": { - "line": 747, - "column": 30 - }, - "identifierName": "documentsDeleted" - }, - "name": "documentsDeleted" - }, - "init": { - "type": "CallExpression", - "start": 27887, - "end": 27944, - "loc": { - "start": { - "line": 747, - "column": 33 - }, - "end": { - "line": 748, - "column": 44 - } - }, - "callee": { - "type": "MemberExpression", - "start": 27887, - "end": 27914, - "loc": { - "start": { - "line": 747, - "column": 33 - }, - "end": { - "line": 748, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 27887, - "end": 27899, - "loc": { - "start": { - "line": 747, - "column": 33 - }, - "end": { - "line": 747, - "column": 45 - }, - "identifierName": "document_ids" - }, - "name": "document_ids" - }, - "property": { - "type": "Identifier", - "start": 27911, - "end": 27914, - "loc": { - "start": { - "line": 748, - "column": 11 - }, - "end": { - "line": 748, - "column": 14 - }, - "identifierName": "map" - }, - "name": "map" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 27915, - "end": 27943, - "loc": { - "start": { - "line": 748, - "column": 15 - }, - "end": { - "line": 748, - "column": 43 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 27915, - "end": 27917, - "loc": { - "start": { - "line": 748, - "column": 15 - }, - "end": { - "line": 748, - "column": 17 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "body": { - "type": "CallExpression", - "start": 27921, - "end": 27943, - "loc": { - "start": { - "line": 748, - "column": 21 - }, - "end": { - "line": 748, - "column": 43 - } - }, - "callee": { - "type": "Identifier", - "start": 27921, - "end": 27935, - "loc": { - "start": { - "line": 748, - "column": 21 - }, - "end": { - "line": 748, - "column": 35 - }, - "identifierName": "removeDocument" - }, - "name": "removeDocument" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 27936, - "end": 27942, - "loc": { - "start": { - "line": 748, - "column": 36 - }, - "end": { - "line": 748, - "column": 42 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 27938, - "end": 27940, - "loc": { - "start": { - "line": 748, - "column": 38 - }, - "end": { - "line": 748, - "column": 40 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 27938, - "end": 27940, - "loc": { - "start": { - "line": 748, - "column": 38 - }, - "end": { - "line": 748, - "column": 40 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 27938, - "end": 27940, - "loc": { - "start": { - "line": 748, - "column": 38 - }, - "end": { - "line": 748, - "column": 40 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 27955, - "end": 28506, - "loc": { - "start": { - "line": 750, - "column": 8 - }, - "end": { - "line": 763, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 27955, - "end": 28505, - "loc": { - "start": { - "line": 750, - "column": 8 - }, - "end": { - "line": 763, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 27955, - "end": 28416, - "loc": { - "start": { - "line": 750, - "column": 8 - }, - "end": { - "line": 760, - "column": 16 - } - }, - "object": { - "type": "CallExpression", - "start": 27955, - "end": 28399, - "loc": { - "start": { - "line": 750, - "column": 8 - }, - "end": { - "line": 759, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 27955, - "end": 28135, - "loc": { - "start": { - "line": 750, - "column": 8 - }, - "end": { - "line": 752, - "column": 15 - } - }, - "object": { - "type": "CallExpression", - "start": 27955, - "end": 28119, - "loc": { - "start": { - "line": 750, - "column": 8 - }, - "end": { - "line": 751, - "column": 134 - } - }, - "callee": { - "type": "MemberExpression", - "start": 27955, - "end": 28000, - "loc": { - "start": { - "line": 750, - "column": 8 - }, - "end": { - "line": 751, - "column": 15 - } - }, - "object": { - "type": "CallExpression", - "start": 27955, - "end": 27984, - "loc": { - "start": { - "line": 750, - "column": 8 - }, - "end": { - "line": 750, - "column": 37 - } - }, - "callee": { - "type": "MemberExpression", - "start": 27955, - "end": 27966, - "loc": { - "start": { - "line": 750, - "column": 8 - }, - "end": { - "line": 750, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 27955, - "end": 27962, - "loc": { - "start": { - "line": 750, - "column": 8 - }, - "end": { - "line": 750, - "column": 15 - }, - "identifierName": "Promise" - }, - "name": "Promise" - }, - "property": { - "type": "Identifier", - "start": 27963, - "end": 27966, - "loc": { - "start": { - "line": 750, - "column": 16 - }, - "end": { - "line": 750, - "column": 19 - }, - "identifierName": "all" - }, - "name": "all" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 27967, - "end": 27983, - "loc": { - "start": { - "line": 750, - "column": 20 - }, - "end": { - "line": 750, - "column": 36 - }, - "identifierName": "documentsDeleted" - }, - "name": "documentsDeleted" - } - ] - }, - "property": { - "type": "Identifier", - "start": 27996, - "end": 28000, - "loc": { - "start": { - "line": 751, - "column": 11 - }, - "end": { - "line": 751, - "column": 15 - }, - "identifierName": "then" - }, - "name": "then" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 28001, - "end": 28118, - "loc": { - "start": { - "line": 751, - "column": 16 - }, - "end": { - "line": 751, - "column": 133 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 28001, - "end": 28017, - "loc": { - "start": { - "line": 751, - "column": 16 - }, - "end": { - "line": 751, - "column": 32 - }, - "identifierName": "deletionStatuses" - }, - "name": "deletionStatuses" - } - ], - "body": { - "type": "CallExpression", - "start": 28021, - "end": 28118, - "loc": { - "start": { - "line": 751, - "column": 36 - }, - "end": { - "line": 751, - "column": 133 - } - }, - "callee": { - "type": "MemberExpression", - "start": 28021, - "end": 28044, - "loc": { - "start": { - "line": 751, - "column": 36 - }, - "end": { - "line": 751, - "column": 59 - } - }, - "object": { - "type": "Identifier", - "start": 28021, - "end": 28037, - "loc": { - "start": { - "line": 751, - "column": 36 - }, - "end": { - "line": 751, - "column": 52 - }, - "identifierName": "deletionStatuses" - }, - "name": "deletionStatuses" - }, - "property": { - "type": "Identifier", - "start": 28038, - "end": 28044, - "loc": { - "start": { - "line": 751, - "column": 53 - }, - "end": { - "line": 751, - "column": 59 - }, - "identifierName": "reduce" - }, - "name": "reduce" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 28045, - "end": 28111, - "loc": { - "start": { - "line": 751, - "column": 60 - }, - "end": { - "line": 751, - "column": 126 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 28046, - "end": 28059, - "loc": { - "start": { - "line": 751, - "column": 61 - }, - "end": { - "line": 751, - "column": 74 - }, - "identifierName": "generalStatus" - }, - "name": "generalStatus" - }, - { - "type": "Identifier", - "start": 28061, - "end": 28074, - "loc": { - "start": { - "line": 751, - "column": 76 - }, - "end": { - "line": 751, - "column": 89 - }, - "identifierName": "currentStatus" - }, - "name": "currentStatus" - } - ], - "body": { - "type": "LogicalExpression", - "start": 28080, - "end": 28110, - "loc": { - "start": { - "line": 751, - "column": 95 - }, - "end": { - "line": 751, - "column": 125 - } - }, - "left": { - "type": "Identifier", - "start": 28080, - "end": 28093, - "loc": { - "start": { - "line": 751, - "column": 95 - }, - "end": { - "line": 751, - "column": 108 - }, - "identifierName": "generalStatus" - }, - "name": "generalStatus" - }, - "operator": "&&", - "right": { - "type": "Identifier", - "start": 28097, - "end": 28110, - "loc": { - "start": { - "line": 751, - "column": 112 - }, - "end": { - "line": 751, - "column": 125 - }, - "identifierName": "currentStatus" - }, - "name": "currentStatus" - }, - "extra": { - "parenthesized": true, - "parenStart": 28079 - } - } - }, - { - "type": "BooleanLiteral", - "start": 28113, - "end": 28117, - "loc": { - "start": { - "line": 751, - "column": 128 - }, - "end": { - "line": 751, - "column": 132 - } - }, - "value": true - } - ] - } - } - ] - }, - "property": { - "type": "Identifier", - "start": 28131, - "end": 28135, - "loc": { - "start": { - "line": 752, - "column": 11 - }, - "end": { - "line": 752, - "column": 15 - }, - "identifierName": "then" - }, - "name": "then" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 28136, - "end": 28398, - "loc": { - "start": { - "line": 752, - "column": 16 - }, - "end": { - "line": 759, - "column": 11 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 28136, - "end": 28155, - "loc": { - "start": { - "line": 752, - "column": 16 - }, - "end": { - "line": 752, - "column": 35 - }, - "identifierName": "allDocumentsDeleted" - }, - "name": "allDocumentsDeleted" - } - ], - "body": { - "type": "BlockStatement", - "start": 28159, - "end": 28398, - "loc": { - "start": { - "line": 752, - "column": 39 - }, - "end": { - "line": 759, - "column": 11 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 28173, - "end": 28386, - "loc": { - "start": { - "line": 753, - "column": 12 - }, - "end": { - "line": 758, - "column": 13 - } - }, - "test": { - "type": "Identifier", - "start": 28177, - "end": 28196, - "loc": { - "start": { - "line": 753, - "column": 16 - }, - "end": { - "line": 753, - "column": 35 - }, - "identifierName": "allDocumentsDeleted" - }, - "name": "allDocumentsDeleted" - }, - "consequent": { - "type": "BlockStatement", - "start": 28198, - "end": 28283, - "loc": { - "start": { - "line": 753, - "column": 37 - }, - "end": { - "line": 756, - "column": 13 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 28214, - "end": 28247, - "loc": { - "start": { - "line": 754, - "column": 14 - }, - "end": { - "line": 754, - "column": 47 - } - }, - "expression": { - "type": "CallExpression", - "start": 28214, - "end": 28246, - "loc": { - "start": { - "line": 754, - "column": 14 - }, - "end": { - "line": 754, - "column": 46 - } - }, - "callee": { - "type": "Identifier", - "start": 28214, - "end": 28230, - "loc": { - "start": { - "line": 754, - "column": 14 - }, - "end": { - "line": 754, - "column": 30 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - }, - "arguments": [ - { - "type": "NullLiteral", - "start": 28231, - "end": 28235, - "loc": { - "start": { - "line": 754, - "column": 31 - }, - "end": { - "line": 754, - "column": 35 - } - } - }, - { - "type": "Identifier", - "start": 28237, - "end": 28245, - "loc": { - "start": { - "line": 754, - "column": 37 - }, - "end": { - "line": 754, - "column": 45 - }, - "identifierName": "mergeRes" - }, - "name": "mergeRes" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 28262, - "end": 28269, - "loc": { - "start": { - "line": 755, - "column": 14 - }, - "end": { - "line": 755, - "column": 21 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 28289, - "end": 28386, - "loc": { - "start": { - "line": 756, - "column": 19 - }, - "end": { - "line": 758, - "column": 13 - } - }, - "body": [ - { - "type": "ThrowStatement", - "start": 28305, - "end": 28372, - "loc": { - "start": { - "line": 757, - "column": 14 - }, - "end": { - "line": 757, - "column": 81 - } - }, - "argument": { - "type": "NewExpression", - "start": 28311, - "end": 28371, - "loc": { - "start": { - "line": 757, - "column": 20 - }, - "end": { - "line": 757, - "column": 80 - } - }, - "callee": { - "type": "Identifier", - "start": 28315, - "end": 28320, - "loc": { - "start": { - "line": 757, - "column": 24 - }, - "end": { - "line": 757, - "column": 29 - }, - "identifierName": "Error" - }, - "name": "Error" - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 28321, - "end": 28370, - "loc": { - "start": { - "line": 757, - "column": 30 - }, - "end": { - "line": 757, - "column": 79 - } - }, - "extra": { - "rawValue": "Some of the original documents were not removed", - "raw": "'Some of the original documents were not removed'" - }, - "value": "Some of the original documents were not removed" - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ] - }, - "property": { - "type": "Identifier", - "start": 28411, - "end": 28416, - "loc": { - "start": { - "line": 760, - "column": 11 - }, - "end": { - "line": 760, - "column": 16 - }, - "identifierName": "catch" - }, - "name": "catch" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 28417, - "end": 28504, - "loc": { - "start": { - "line": 760, - "column": 17 - }, - "end": { - "line": 763, - "column": 11 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 28417, - "end": 28426, - "loc": { - "start": { - "line": 760, - "column": 17 - }, - "end": { - "line": 760, - "column": 26 - }, - "identifierName": "removeErr" - }, - "name": "removeErr" - } - ], - "body": { - "type": "BlockStatement", - "start": 28430, - "end": 28504, - "loc": { - "start": { - "line": 760, - "column": 30 - }, - "end": { - "line": 763, - "column": 11 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 28444, - "end": 28472, - "loc": { - "start": { - "line": 761, - "column": 12 - }, - "end": { - "line": 761, - "column": 40 - } - }, - "expression": { - "type": "CallExpression", - "start": 28444, - "end": 28471, - "loc": { - "start": { - "line": 761, - "column": 12 - }, - "end": { - "line": 761, - "column": 39 - } - }, - "callee": { - "type": "Identifier", - "start": 28444, - "end": 28460, - "loc": { - "start": { - "line": 761, - "column": 12 - }, - "end": { - "line": 761, - "column": 28 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 28461, - "end": 28470, - "loc": { - "start": { - "line": 761, - "column": 29 - }, - "end": { - "line": 761, - "column": 38 - }, - "identifierName": "removeErr" - }, - "name": "removeErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 28485, - "end": 28492, - "loc": { - "start": { - "line": 762, - "column": 12 - }, - "end": { - "line": 762, - "column": 19 - } - }, - "argument": null - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 28528, - "end": 28631, - "loc": { - "start": { - "line": 768, - "column": 4 - }, - "end": { - "line": 770, - "column": 25 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 28534, - "end": 28630, - "loc": { - "start": { - "line": 768, - "column": 10 - }, - "end": { - "line": 770, - "column": 24 - } - }, - "id": { - "type": "Identifier", - "start": 28534, - "end": 28542, - "loc": { - "start": { - "line": 768, - "column": 10 - }, - "end": { - "line": 768, - "column": 18 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "init": { - "type": "ConditionalExpression", - "start": 28545, - "end": 28630, - "loc": { - "start": { - "line": 768, - "column": 21 - }, - "end": { - "line": 770, - "column": 24 - } - }, - "test": { - "type": "Identifier", - "start": 28545, - "end": 28568, - "loc": { - "start": { - "line": 768, - "column": 21 - }, - "end": { - "line": 768, - "column": 44 - }, - "identifierName": "removeOriginalDocuments" - }, - "name": "removeOriginalDocuments" - }, - "consequent": { - "type": "Identifier", - "start": 28577, - "end": 28605, - "loc": { - "start": { - "line": 769, - "column": 8 - }, - "end": { - "line": 769, - "column": 36 - }, - "identifierName": "callbackWithDocumentDeletion" - }, - "name": "callbackWithDocumentDeletion" - }, - "alternate": { - "type": "Identifier", - "start": 28614, - "end": 28630, - "loc": { - "start": { - "line": 770, - "column": 8 - }, - "end": { - "line": 770, - "column": 24 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 28637, - "end": 29049, - "loc": { - "start": { - "line": 772, - "column": 4 - }, - "end": { - "line": 785, - "column": 51 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 28643, - "end": 29048, - "loc": { - "start": { - "line": 772, - "column": 10 - }, - "end": { - "line": 785, - "column": 50 - } - }, - "id": { - "type": "Identifier", - "start": 28643, - "end": 28646, - "loc": { - "start": { - "line": 772, - "column": 10 - }, - "end": { - "line": 772, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 28649, - "end": 29048, - "loc": { - "start": { - "line": 772, - "column": 16 - }, - "end": { - "line": 785, - "column": 50 - } - }, - "callee": { - "type": "MemberExpression", - "start": 28649, - "end": 29007, - "loc": { - "start": { - "line": 772, - "column": 16 - }, - "end": { - "line": 785, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 28649, - "end": 28997, - "loc": { - "start": { - "line": 772, - "column": 16 - }, - "end": { - "line": 784, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 28649, - "end": 28669, - "loc": { - "start": { - "line": 772, - "column": 16 - }, - "end": { - "line": 773, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 28649, - "end": 28654, - "loc": { - "start": { - "line": 772, - "column": 16 - }, - "end": { - "line": 772, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 28662, - "end": 28669, - "loc": { - "start": { - "line": 773, - "column": 7 - }, - "end": { - "line": 773, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 28670, - "end": 28969, - "loc": { - "start": { - "line": 773, - "column": 15 - }, - "end": { - "line": 784, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 28670, - "end": 28689, - "loc": { - "start": { - "line": 773, - "column": 15 - }, - "end": { - "line": 773, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 28690, - "end": 28968, - "loc": { - "start": { - "line": 773, - "column": 35 - }, - "end": { - "line": 784, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 28700, - "end": 28714, - "loc": { - "start": { - "line": 774, - "column": 8 - }, - "end": { - "line": 774, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 28700, - "end": 28706, - "loc": { - "start": { - "line": 774, - "column": 8 - }, - "end": { - "line": 774, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 28708, - "end": 28714, - "loc": { - "start": { - "line": 774, - "column": 16 - }, - "end": { - "line": 774, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 28724, - "end": 28747, - "loc": { - "start": { - "line": 775, - "column": 8 - }, - "end": { - "line": 775, - "column": 31 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 28724, - "end": 28728, - "loc": { - "start": { - "line": 775, - "column": 8 - }, - "end": { - "line": 775, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 28730, - "end": 28747, - "loc": { - "start": { - "line": 775, - "column": 14 - }, - "end": { - "line": 775, - "column": 31 - } - }, - "extra": { - "rawValue": "/document/merge", - "raw": "'/document/merge'" - }, - "value": "/document/merge" - } - }, - { - "type": "ObjectProperty", - "start": 28757, - "end": 28826, - "loc": { - "start": { - "line": 776, - "column": 8 - }, - "end": { - "line": 779, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 28757, - "end": 28770, - "loc": { - "start": { - "line": 776, - "column": 8 - }, - "end": { - "line": 776, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 28772, - "end": 28826, - "loc": { - "start": { - "line": 776, - "column": 23 - }, - "end": { - "line": 779, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 28784, - "end": 28798, - "loc": { - "start": { - "line": 777, - "column": 10 - }, - "end": { - "line": 777, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 28784, - "end": 28788, - "loc": { - "start": { - "line": 777, - "column": 10 - }, - "end": { - "line": 777, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 28790, - "end": 28798, - "loc": { - "start": { - "line": 777, - "column": 16 - }, - "end": { - "line": 777, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 28810, - "end": 28815, - "loc": { - "start": { - "line": 778, - "column": 10 - }, - "end": { - "line": 778, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 28810, - "end": 28815, - "loc": { - "start": { - "line": 778, - "column": 10 - }, - "end": { - "line": 778, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 28810, - "end": 28815, - "loc": { - "start": { - "line": 778, - "column": 10 - }, - "end": { - "line": 778, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 28836, - "end": 28959, - "loc": { - "start": { - "line": 780, - "column": 8 - }, - "end": { - "line": 783, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 28836, - "end": 28843, - "loc": { - "start": { - "line": 780, - "column": 8 - }, - "end": { - "line": 780, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 28845, - "end": 28959, - "loc": { - "start": { - "line": 780, - "column": 17 - }, - "end": { - "line": 783, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 28857, - "end": 28891, - "loc": { - "start": { - "line": 781, - "column": 10 - }, - "end": { - "line": 781, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 28857, - "end": 28871, - "loc": { - "start": { - "line": 781, - "column": 10 - }, - "end": { - "line": 781, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 28873, - "end": 28891, - "loc": { - "start": { - "line": 781, - "column": 26 - }, - "end": { - "line": 781, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 28903, - "end": 28948, - "loc": { - "start": { - "line": 782, - "column": 10 - }, - "end": { - "line": 782, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 28903, - "end": 28919, - "loc": { - "start": { - "line": 782, - "column": 10 - }, - "end": { - "line": 782, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 28921, - "end": 28948, - "loc": { - "start": { - "line": 782, - "column": 28 - }, - "end": { - "line": 782, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 28921, - "end": 28938, - "loc": { - "start": { - "line": 782, - "column": 28 - }, - "end": { - "line": 782, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 28921, - "end": 28927, - "loc": { - "start": { - "line": 782, - "column": 28 - }, - "end": { - "line": 782, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 28928, - "end": 28938, - "loc": { - "start": { - "line": 782, - "column": 35 - }, - "end": { - "line": 782, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 28939, - "end": 28947, - "loc": { - "start": { - "line": 782, - "column": 46 - }, - "end": { - "line": 782, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 28971, - "end": 28996, - "loc": { - "start": { - "line": 784, - "column": 10 - }, - "end": { - "line": 784, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 28971, - "end": 28986, - "loc": { - "start": { - "line": 784, - "column": 10 - }, - "end": { - "line": 784, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 28987, - "end": 28995, - "loc": { - "start": { - "line": 784, - "column": 26 - }, - "end": { - "line": 784, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 29005, - "end": 29007, - "loc": { - "start": { - "line": 785, - "column": 7 - }, - "end": { - "line": 785, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 29008, - "end": 29015, - "loc": { - "start": { - "line": 785, - "column": 10 - }, - "end": { - "line": 785, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 29017, - "end": 29047, - "loc": { - "start": { - "line": 785, - "column": 19 - }, - "end": { - "line": 785, - "column": 49 - } - }, - "callee": { - "type": "Identifier", - "start": 29017, - "end": 29029, - "loc": { - "start": { - "line": 785, - "column": 19 - }, - "end": { - "line": 785, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 29030, - "end": 29046, - "loc": { - "start": { - "line": 785, - "column": 32 - }, - "end": { - "line": 785, - "column": 48 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 29055, - "end": 29075, - "loc": { - "start": { - "line": 787, - "column": 4 - }, - "end": { - "line": 787, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 29055, - "end": 29074, - "loc": { - "start": { - "line": 787, - "column": 4 - }, - "end": { - "line": 787, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 29055, - "end": 29064, - "loc": { - "start": { - "line": 787, - "column": 4 - }, - "end": { - "line": 787, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 29055, - "end": 29058, - "loc": { - "start": { - "line": 787, - "column": 4 - }, - "end": { - "line": 787, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 29059, - "end": 29064, - "loc": { - "start": { - "line": 787, - "column": 8 - }, - "end": { - "line": 787, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 29065, - "end": 29073, - "loc": { - "start": { - "line": 787, - "column": 14 - }, - "end": { - "line": 787, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 29080, - "end": 29090, - "loc": { - "start": { - "line": 788, - "column": 4 - }, - "end": { - "line": 788, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 29080, - "end": 29089, - "loc": { - "start": { - "line": 788, - "column": 4 - }, - "end": { - "line": 788, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 29080, - "end": 29087, - "loc": { - "start": { - "line": 788, - "column": 4 - }, - "end": { - "line": 788, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 29080, - "end": 29083, - "loc": { - "start": { - "line": 788, - "column": 4 - }, - "end": { - "line": 788, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 29084, - "end": 29087, - "loc": { - "start": { - "line": 788, - "column": 8 - }, - "end": { - "line": 788, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Merge documents optional settings\n * @typedef {Object} DocumentMergeOptions\n * @property {boolean} [removeOriginalDocuments=false] - if true original documents will be removed\n ", - "start": 26043, - "end": 26237, - "loc": { - "start": { - "line": 689, - "column": 2 - }, - "end": { - "line": 693, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Merge documents payload\n * @typedef {Object} DocumentMergeParams\n * @property {string} token - your auth token\n * @property {string} name - new name for merged document\n * @property {string[]} document_ids - an array of document IDs\n * @property {DocumentMergeOptions} options - merge documents optional settings\n ", - "start": 26241, - "end": 26578, - "loc": { - "start": { - "line": 695, - "column": 2 - }, - "end": { - "line": 702, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Merge documents response data\n * @typedef {Object} DocumentMergeResponse\n * @property {string} document_id - an ID of merged document\n ", - "start": 26582, - "end": 26734, - "loc": { - "start": { - "line": 704, - "column": 2 - }, - "end": { - "line": 708, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Merges existing documents into one.\n * By default original documents are not removed after merging. To remove original documents set `removeOriginalDocuments` option to `true`.\n * @param {DocumentMergeParams} data - merge documents payload\n * @param {function(err: ApiErrorResponse, res: DocumentMergeResponse)} [originalCallback] - error first node.js callback\n ", - "start": 26738, - "end": 27120, - "loc": { - "start": { - "line": 710, - "column": 2 - }, - "end": { - "line": 715, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document history payload\n * @typedef {Object} DocumentHistoryParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 29105, - "end": 29290, - "loc": { - "start": { - "line": 798, - "column": 2 - }, - "end": { - "line": 803, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document action log item\n * @typedef {Object} DocumentEvent\n * @property {string} client_app_name - name of a client application\n * @property {?string} client_timestamp - client application timestamp\n * @property {string} created - timestamp of action creation\n * @property {string} email - email of an actor\n * @property {string} event - name of event\n * @property {string} ip_address - actor's IP address\n * @property {?string} element_id - an ID of specific element\n * @property {?string} field_id - an ID of specific field\n * @property {?string} json_attributes - field attributes (e.g. font, style, size etc.)\n * @property {string} [document_id] - an ID of specific document\n * @property {string} [origin] - an origin of document\n * @property {string} [unique_id] - an ID of event\n * @property {string} [user_agent] - user agent\n * @property {string} [user_id] - id of an actor\n * @property {string} [version] - version of signed document (incremented after each signature addition)\n ", - "start": 29294, - "end": 30328, - "loc": { - "start": { - "line": 805, - "column": 2 - }, - "end": { - "line": 823, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document history response data\n * @typedef {DocumentEvent[]} DocumentHistoryResponse\n ", - "start": 30332, - "end": 30433, - "loc": { - "start": { - "line": 825, - "column": 2 - }, - "end": { - "line": 828, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves a document action log (history) data\n * @param {DocumentHistoryParams} data - payload\n * @param {function(err: ApiErrorResponse, res: DocumentHistoryResponse)} [callback] - error first node.js callback\n ", - "start": 30437, - "end": 30668, - "loc": { - "start": { - "line": 830, - "column": 2 - }, - "end": { - "line": 834, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 30671, - "end": 31001, - "loc": { - "start": { - "line": 835, - "column": 2 - }, - "end": { - "line": 847, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 30678, - "end": 30685, - "loc": { - "start": { - "line": 835, - "column": 9 - }, - "end": { - "line": 835, - "column": 16 - }, - "identifierName": "history" - }, - "name": "history" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 30687, - "end": 30700, - "loc": { - "start": { - "line": 835, - "column": 18 - }, - "end": { - "line": 835, - "column": 31 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 30689, - "end": 30691, - "loc": { - "start": { - "line": 835, - "column": 20 - }, - "end": { - "line": 835, - "column": 22 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 30689, - "end": 30691, - "loc": { - "start": { - "line": 835, - "column": 20 - }, - "end": { - "line": 835, - "column": 22 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 30689, - "end": 30691, - "loc": { - "start": { - "line": 835, - "column": 20 - }, - "end": { - "line": 835, - "column": 22 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 30693, - "end": 30698, - "loc": { - "start": { - "line": 835, - "column": 24 - }, - "end": { - "line": 835, - "column": 29 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 30693, - "end": 30698, - "loc": { - "start": { - "line": 835, - "column": 24 - }, - "end": { - "line": 835, - "column": 29 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 30693, - "end": 30698, - "loc": { - "start": { - "line": 835, - "column": 24 - }, - "end": { - "line": 835, - "column": 29 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 30702, - "end": 30710, - "loc": { - "start": { - "line": 835, - "column": 33 - }, - "end": { - "line": 835, - "column": 41 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 30712, - "end": 31001, - "loc": { - "start": { - "line": 835, - "column": 43 - }, - "end": { - "line": 847, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 30718, - "end": 30997, - "loc": { - "start": { - "line": 836, - "column": 4 - }, - "end": { - "line": 846, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 30718, - "end": 30996, - "loc": { - "start": { - "line": 836, - "column": 4 - }, - "end": { - "line": 846, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 30718, - "end": 30994, - "loc": { - "start": { - "line": 836, - "column": 4 - }, - "end": { - "line": 846, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 30718, - "end": 30983, - "loc": { - "start": { - "line": 836, - "column": 4 - }, - "end": { - "line": 845, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 30718, - "end": 30950, - "loc": { - "start": { - "line": 836, - "column": 4 - }, - "end": { - "line": 845, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 30718, - "end": 30940, - "loc": { - "start": { - "line": 836, - "column": 4 - }, - "end": { - "line": 844, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 30718, - "end": 30738, - "loc": { - "start": { - "line": 836, - "column": 4 - }, - "end": { - "line": 837, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 30718, - "end": 30723, - "loc": { - "start": { - "line": 836, - "column": 4 - }, - "end": { - "line": 836, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 30731, - "end": 30738, - "loc": { - "start": { - "line": 837, - "column": 7 - }, - "end": { - "line": 837, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 30739, - "end": 30912, - "loc": { - "start": { - "line": 837, - "column": 15 - }, - "end": { - "line": 844, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 30739, - "end": 30758, - "loc": { - "start": { - "line": 837, - "column": 15 - }, - "end": { - "line": 837, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 30759, - "end": 30911, - "loc": { - "start": { - "line": 837, - "column": 35 - }, - "end": { - "line": 844, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 30769, - "end": 30782, - "loc": { - "start": { - "line": 838, - "column": 8 - }, - "end": { - "line": 838, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 30769, - "end": 30775, - "loc": { - "start": { - "line": 838, - "column": 8 - }, - "end": { - "line": 838, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 30777, - "end": 30782, - "loc": { - "start": { - "line": 838, - "column": 16 - }, - "end": { - "line": 838, - "column": 21 - } - }, - "extra": { - "rawValue": "GET", - "raw": "'GET'" - }, - "value": "GET" - } - }, - { - "type": "ObjectProperty", - "start": 30792, - "end": 30823, - "loc": { - "start": { - "line": 839, - "column": 8 - }, - "end": { - "line": 839, - "column": 39 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 30792, - "end": 30796, - "loc": { - "start": { - "line": 839, - "column": 8 - }, - "end": { - "line": 839, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 30798, - "end": 30823, - "loc": { - "start": { - "line": 839, - "column": 14 - }, - "end": { - "line": 839, - "column": 39 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 30811, - "end": 30813, - "loc": { - "start": { - "line": 839, - "column": 27 - }, - "end": { - "line": 839, - "column": 29 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 30799, - "end": 30809, - "loc": { - "start": { - "line": 839, - "column": 15 - }, - "end": { - "line": 839, - "column": 25 - } - }, - "value": { - "raw": "/document/", - "cooked": "/document/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 30814, - "end": 30822, - "loc": { - "start": { - "line": 839, - "column": 30 - }, - "end": { - "line": 839, - "column": 38 - } - }, - "value": { - "raw": "/history", - "cooked": "/history" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 30833, - "end": 30902, - "loc": { - "start": { - "line": 840, - "column": 8 - }, - "end": { - "line": 843, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 30833, - "end": 30846, - "loc": { - "start": { - "line": 840, - "column": 8 - }, - "end": { - "line": 840, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 30848, - "end": 30902, - "loc": { - "start": { - "line": 840, - "column": 23 - }, - "end": { - "line": 843, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 30860, - "end": 30874, - "loc": { - "start": { - "line": 841, - "column": 10 - }, - "end": { - "line": 841, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 30860, - "end": 30864, - "loc": { - "start": { - "line": 841, - "column": 10 - }, - "end": { - "line": 841, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 30866, - "end": 30874, - "loc": { - "start": { - "line": 841, - "column": 16 - }, - "end": { - "line": 841, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 30886, - "end": 30891, - "loc": { - "start": { - "line": 842, - "column": 10 - }, - "end": { - "line": 842, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 30886, - "end": 30891, - "loc": { - "start": { - "line": 842, - "column": 10 - }, - "end": { - "line": 842, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 30886, - "end": 30891, - "loc": { - "start": { - "line": 842, - "column": 10 - }, - "end": { - "line": 842, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 30914, - "end": 30939, - "loc": { - "start": { - "line": 844, - "column": 10 - }, - "end": { - "line": 844, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 30914, - "end": 30929, - "loc": { - "start": { - "line": 844, - "column": 10 - }, - "end": { - "line": 844, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 30930, - "end": 30938, - "loc": { - "start": { - "line": 844, - "column": 26 - }, - "end": { - "line": 844, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 30948, - "end": 30950, - "loc": { - "start": { - "line": 845, - "column": 7 - }, - "end": { - "line": 845, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 30951, - "end": 30958, - "loc": { - "start": { - "line": 845, - "column": 10 - }, - "end": { - "line": 845, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 30960, - "end": 30982, - "loc": { - "start": { - "line": 845, - "column": 19 - }, - "end": { - "line": 845, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 30960, - "end": 30972, - "loc": { - "start": { - "line": 845, - "column": 19 - }, - "end": { - "line": 845, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 30973, - "end": 30981, - "loc": { - "start": { - "line": 845, - "column": 32 - }, - "end": { - "line": 845, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 30991, - "end": 30994, - "loc": { - "start": { - "line": 846, - "column": 7 - }, - "end": { - "line": 846, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document history payload\n * @typedef {Object} DocumentHistoryParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 29105, - "end": 29290, - "loc": { - "start": { - "line": 798, - "column": 2 - }, - "end": { - "line": 803, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document action log item\n * @typedef {Object} DocumentEvent\n * @property {string} client_app_name - name of a client application\n * @property {?string} client_timestamp - client application timestamp\n * @property {string} created - timestamp of action creation\n * @property {string} email - email of an actor\n * @property {string} event - name of event\n * @property {string} ip_address - actor's IP address\n * @property {?string} element_id - an ID of specific element\n * @property {?string} field_id - an ID of specific field\n * @property {?string} json_attributes - field attributes (e.g. font, style, size etc.)\n * @property {string} [document_id] - an ID of specific document\n * @property {string} [origin] - an origin of document\n * @property {string} [unique_id] - an ID of event\n * @property {string} [user_agent] - user agent\n * @property {string} [user_id] - id of an actor\n * @property {string} [version] - version of signed document (incremented after each signature addition)\n ", - "start": 29294, - "end": 30328, - "loc": { - "start": { - "line": 805, - "column": 2 - }, - "end": { - "line": 823, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document history response data\n * @typedef {DocumentEvent[]} DocumentHistoryResponse\n ", - "start": 30332, - "end": 30433, - "loc": { - "start": { - "line": 825, - "column": 2 - }, - "end": { - "line": 828, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves a document action log (history) data\n * @param {DocumentHistoryParams} data - payload\n * @param {function(err: ApiErrorResponse, res: DocumentHistoryResponse)} [callback] - error first node.js callback\n ", - "start": 30437, - "end": 30668, - "loc": { - "start": { - "line": 830, - "column": 2 - }, - "end": { - "line": 834, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Remove document payload\n * @typedef {Object} DocumentRemoveParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 31005, - "end": 31188, - "loc": { - "start": { - "line": 849, - "column": 2 - }, - "end": { - "line": 854, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Remove document response data\n * @typedef {Object} DocumentRemoveResponse\n * @property {string} status - status of deletion, e.g. 'success'\n ", - "start": 31192, - "end": 31350, - "loc": { - "start": { - "line": 856, - "column": 2 - }, - "end": { - "line": 860, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Removes a specified document from folder\n * @param {DocumentRemoveParams} data - remove document payload\n * @param {function(err: ApiErrorResponse, res: DocumentRemoveResponse)} [callback] - error first node.js callback\n ", - "start": 31354, - "end": 31592, - "loc": { - "start": { - "line": 862, - "column": 2 - }, - "end": { - "line": 866, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 31595, - "end": 31919, - "loc": { - "start": { - "line": 867, - "column": 2 - }, - "end": { - "line": 879, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 31602, - "end": 31608, - "loc": { - "start": { - "line": 867, - "column": 9 - }, - "end": { - "line": 867, - "column": 15 - }, - "identifierName": "remove" - }, - "name": "remove" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 31610, - "end": 31623, - "loc": { - "start": { - "line": 867, - "column": 17 - }, - "end": { - "line": 867, - "column": 30 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 31612, - "end": 31614, - "loc": { - "start": { - "line": 867, - "column": 19 - }, - "end": { - "line": 867, - "column": 21 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 31612, - "end": 31614, - "loc": { - "start": { - "line": 867, - "column": 19 - }, - "end": { - "line": 867, - "column": 21 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 31612, - "end": 31614, - "loc": { - "start": { - "line": 867, - "column": 19 - }, - "end": { - "line": 867, - "column": 21 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 31616, - "end": 31621, - "loc": { - "start": { - "line": 867, - "column": 23 - }, - "end": { - "line": 867, - "column": 28 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 31616, - "end": 31621, - "loc": { - "start": { - "line": 867, - "column": 23 - }, - "end": { - "line": 867, - "column": 28 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 31616, - "end": 31621, - "loc": { - "start": { - "line": 867, - "column": 23 - }, - "end": { - "line": 867, - "column": 28 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 31625, - "end": 31633, - "loc": { - "start": { - "line": 867, - "column": 32 - }, - "end": { - "line": 867, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 31635, - "end": 31919, - "loc": { - "start": { - "line": 867, - "column": 42 - }, - "end": { - "line": 879, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 31641, - "end": 31915, - "loc": { - "start": { - "line": 868, - "column": 4 - }, - "end": { - "line": 878, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 31641, - "end": 31914, - "loc": { - "start": { - "line": 868, - "column": 4 - }, - "end": { - "line": 878, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 31641, - "end": 31912, - "loc": { - "start": { - "line": 868, - "column": 4 - }, - "end": { - "line": 878, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 31641, - "end": 31901, - "loc": { - "start": { - "line": 868, - "column": 4 - }, - "end": { - "line": 877, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 31641, - "end": 31868, - "loc": { - "start": { - "line": 868, - "column": 4 - }, - "end": { - "line": 877, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 31641, - "end": 31858, - "loc": { - "start": { - "line": 868, - "column": 4 - }, - "end": { - "line": 876, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 31641, - "end": 31661, - "loc": { - "start": { - "line": 868, - "column": 4 - }, - "end": { - "line": 869, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 31641, - "end": 31646, - "loc": { - "start": { - "line": 868, - "column": 4 - }, - "end": { - "line": 868, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 31654, - "end": 31661, - "loc": { - "start": { - "line": 869, - "column": 7 - }, - "end": { - "line": 869, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 31662, - "end": 31830, - "loc": { - "start": { - "line": 869, - "column": 15 - }, - "end": { - "line": 876, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 31662, - "end": 31681, - "loc": { - "start": { - "line": 869, - "column": 15 - }, - "end": { - "line": 869, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 31682, - "end": 31829, - "loc": { - "start": { - "line": 869, - "column": 35 - }, - "end": { - "line": 876, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 31692, - "end": 31708, - "loc": { - "start": { - "line": 870, - "column": 8 - }, - "end": { - "line": 870, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31692, - "end": 31698, - "loc": { - "start": { - "line": 870, - "column": 8 - }, - "end": { - "line": 870, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 31700, - "end": 31708, - "loc": { - "start": { - "line": 870, - "column": 16 - }, - "end": { - "line": 870, - "column": 24 - } - }, - "extra": { - "rawValue": "DELETE", - "raw": "'DELETE'" - }, - "value": "DELETE" - } - }, - { - "type": "ObjectProperty", - "start": 31718, - "end": 31741, - "loc": { - "start": { - "line": 871, - "column": 8 - }, - "end": { - "line": 871, - "column": 31 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31718, - "end": 31722, - "loc": { - "start": { - "line": 871, - "column": 8 - }, - "end": { - "line": 871, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 31724, - "end": 31741, - "loc": { - "start": { - "line": 871, - "column": 14 - }, - "end": { - "line": 871, - "column": 31 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 31737, - "end": 31739, - "loc": { - "start": { - "line": 871, - "column": 27 - }, - "end": { - "line": 871, - "column": 29 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 31725, - "end": 31735, - "loc": { - "start": { - "line": 871, - "column": 15 - }, - "end": { - "line": 871, - "column": 25 - } - }, - "value": { - "raw": "/document/", - "cooked": "/document/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 31740, - "end": 31740, - "loc": { - "start": { - "line": 871, - "column": 30 - }, - "end": { - "line": 871, - "column": 30 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 31751, - "end": 31820, - "loc": { - "start": { - "line": 872, - "column": 8 - }, - "end": { - "line": 875, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31751, - "end": 31764, - "loc": { - "start": { - "line": 872, - "column": 8 - }, - "end": { - "line": 872, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 31766, - "end": 31820, - "loc": { - "start": { - "line": 872, - "column": 23 - }, - "end": { - "line": 875, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 31778, - "end": 31792, - "loc": { - "start": { - "line": 873, - "column": 10 - }, - "end": { - "line": 873, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31778, - "end": 31782, - "loc": { - "start": { - "line": 873, - "column": 10 - }, - "end": { - "line": 873, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 31784, - "end": 31792, - "loc": { - "start": { - "line": 873, - "column": 16 - }, - "end": { - "line": 873, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 31804, - "end": 31809, - "loc": { - "start": { - "line": 874, - "column": 10 - }, - "end": { - "line": 874, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 31804, - "end": 31809, - "loc": { - "start": { - "line": 874, - "column": 10 - }, - "end": { - "line": 874, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 31804, - "end": 31809, - "loc": { - "start": { - "line": 874, - "column": 10 - }, - "end": { - "line": 874, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 31832, - "end": 31857, - "loc": { - "start": { - "line": 876, - "column": 10 - }, - "end": { - "line": 876, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 31832, - "end": 31847, - "loc": { - "start": { - "line": 876, - "column": 10 - }, - "end": { - "line": 876, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 31848, - "end": 31856, - "loc": { - "start": { - "line": 876, - "column": 26 - }, - "end": { - "line": 876, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 31866, - "end": 31868, - "loc": { - "start": { - "line": 877, - "column": 7 - }, - "end": { - "line": 877, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 31869, - "end": 31876, - "loc": { - "start": { - "line": 877, - "column": 10 - }, - "end": { - "line": 877, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 31878, - "end": 31900, - "loc": { - "start": { - "line": 877, - "column": 19 - }, - "end": { - "line": 877, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 31878, - "end": 31890, - "loc": { - "start": { - "line": 877, - "column": 19 - }, - "end": { - "line": 877, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 31891, - "end": 31899, - "loc": { - "start": { - "line": 877, - "column": 32 - }, - "end": { - "line": 877, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 31909, - "end": 31912, - "loc": { - "start": { - "line": 878, - "column": 7 - }, - "end": { - "line": 878, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Remove document payload\n * @typedef {Object} DocumentRemoveParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 31005, - "end": 31188, - "loc": { - "start": { - "line": 849, - "column": 2 - }, - "end": { - "line": 854, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Remove document response data\n * @typedef {Object} DocumentRemoveResponse\n * @property {string} status - status of deletion, e.g. 'success'\n ", - "start": 31192, - "end": 31350, - "loc": { - "start": { - "line": 856, - "column": 2 - }, - "end": { - "line": 860, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Removes a specified document from folder\n * @param {DocumentRemoveParams} data - remove document payload\n * @param {function(err: ApiErrorResponse, res: DocumentRemoveResponse)} [callback] - error first node.js callback\n ", - "start": 31354, - "end": 31592, - "loc": { - "start": { - "line": 862, - "column": 2 - }, - "end": { - "line": 866, - "column": 5 - } - } - } - ] - } - ] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document methods\n ", - "start": 1725, - "end": 1752, - "loc": { - "start": { - "line": 58, - "column": 0 - }, - "end": { - "line": 60, - "column": 3 - } - } - } - ], - "__PseudoExport__": false, - "trailingComments": [] - }, - "leadingComments": null - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "value": "use strict", - "extra": { - "raw": "'use strict'", - "rawValue": "use strict" - } - } - } - ] - }, - "comments": [ - { - "type": "CommentLine", - "value": " build file multipart/form-data request", - "start": 145, - "end": 186, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 8, - "column": 41 - } - } - }, - { - "type": "CommentLine", - "value": " get file mime type", - "start": 451, - "end": 472, - "loc": { - "start": { - "line": 16, - "column": 0 - }, - "end": { - "line": 16, - "column": 21 - } - } - }, - { - "type": "CommentLine", - "value": " get filename from path", - "start": 1276, - "end": 1301, - "loc": { - "start": { - "line": 39, - "column": 0 - }, - "end": { - "line": 39, - "column": 25 - } - } - }, - { - "type": "CommentLine", - "value": " generate randon string", - "start": 1470, - "end": 1495, - "loc": { - "start": { - "line": 48, - "column": 0 - }, - "end": { - "line": 48, - "column": 25 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document methods\n ", - "start": 1725, - "end": 1752, - "loc": { - "start": { - "line": 58, - "column": 0 - }, - "end": { - "line": 60, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document payload\n * @typedef {Object} DocumentCreateParams\n * @property {string} filepath - path to file to be uploaded\n * @property {string} token - your auth token\n ", - "start": 1773, - "end": 1966, - "loc": { - "start": { - "line": 63, - "column": 2 - }, - "end": { - "line": 68, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document response data\n * @typedef {Object} DocumentCreateResponse\n * @property {string} id - an id of created document\n ", - "start": 1970, - "end": 2115, - "loc": { - "start": { - "line": 70, - "column": 2 - }, - "end": { - "line": 74, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Uploads a file and creates a document.\n * This endpoint accepts .pdf, .doc, .docx, .odt, .rtf, .png, .jpg, .jpeg, .gif, .bmp, .xml, .xls, .xlsx, .ppt, .pptx file types\n * @param {DocumentCreateParams} data - create document payload\n * @param {function(err: ApiErrorResponse, res: DocumentCreateResponse)} [callback] - error first node.js callback\n ", - "start": 2119, - "end": 2486, - "loc": { - "start": { - "line": 76, - "column": 2 - }, - "end": { - "line": 81, - "column": 5 - } - } - }, - { - "type": "CommentLine", - "value": " check mimetype", - "start": 2626, - "end": 2643, - "loc": { - "start": { - "line": 86, - "column": 4 - }, - "end": { - "line": 86, - "column": 21 - } - } - }, - { - "type": "CommentLine", - "value": " pipe the file and append a closing line", - "start": 3622, - "end": 3664, - "loc": { - "start": { - "line": 119, - "column": 4 - }, - "end": { - "line": 119, - "column": 46 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Upload document with field extract payload\n * @typedef {Object} DocumentFieldExtractParams\n * @property {string} filepath - path to file to be uploaded\n * @property {string} token - your auth token\n ", - "start": 3710, - "end": 3928, - "loc": { - "start": { - "line": 123, - "column": 2 - }, - "end": { - "line": 128, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Upload document with field extract response data\n * @typedef {Object} DocumentFieldExtractResponse\n * @property {string} id - an id of created document\n ", - "start": 3932, - "end": 4102, - "loc": { - "start": { - "line": 130, - "column": 2 - }, - "end": { - "line": 134, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Uploads a file that contains SignNow Document Field Tags.\n * This endpoint only accepts .pdf (you may convert the document from .doc or .docx to .pdf)\n * @param {DocumentFieldExtractParams} data - upload document with field extract payload\n * @param {function(err: ApiErrorResponse, res: DocumentFieldExtractResponse)} [callback] - error first node.js callback\n ", - "start": 4106, - "end": 4487, - "loc": { - "start": { - "line": 136, - "column": 2 - }, - "end": { - "line": 141, - "column": 5 - } - } - }, - { - "type": "CommentLine", - "value": " check mimetype", - "start": 4633, - "end": 4650, - "loc": { - "start": { - "line": 146, - "column": 4 - }, - "end": { - "line": 146, - "column": 21 - } - } - }, - { - "type": "CommentLine", - "value": " pipe the file and append a closing line", - "start": 5643, - "end": 5685, - "loc": { - "start": { - "line": 180, - "column": 4 - }, - "end": { - "line": 180, - "column": 46 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Payload to receive user's document list\n * @typedef {Object} DocumentListParams\n * @property {string} token - your auth token\n ", - "start": 5732, - "end": 5876, - "loc": { - "start": { - "line": 185, - "column": 2 - }, - "end": { - "line": 189, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document list response item\n * @typedef {Object} DocumentListItem\n * @property {string} id - id of specific document\n * @property {string} user_id - id of user that uploaded document\n * @property {string} document_name - name of document\n * @property {string} page_count - amount of pages in the document\n * @property {string} created - timestamp document was created\n * @property {string} updated - timestamp document was updated\n * @property {string} original_filename - original filename with document format (.pdf, .doc, etc...)\n * @property {?string} origin_document_id - an id of original document (if document is a copy)\n * @property {string} owner - email of document owner\n * @property {boolean} template - is document a template or not\n * @property {?string} origin_user_id - id of user who created document\n * @property {Object} thumbnail - thumbnail urls with different sizes (small, medium, large)\n * @property {Object[]} signatures - signature signed elements\n * @property {Object[]} texts - text and enumeration filled elements\n * @property {Object[]} checks - checkbox checked elements\n * @property {Object[]} tags - field types document contains\n * @property {Object[]} fields - all document fillable fields\n * @property {Object[]} requests - requests for signing document\n * @property {Object[]} roles - document signer roles\n * @property {Object[]} field_invites - sent invites data\n * @property {number} version_time - document updated timestamp\n * @property {Object[]} enumeration_options - dropdown options\n * @property {Object[]} attachments - attachments in document\n * @property {Object[]} routing_details - signing steps routing details\n * @property {Object[]} integrations - document integrations\n * @property {Object[]} hyperlinks - document hyperlinks\n * @property {Object[]} radiobuttons - checked radiobuttons after document was signed\n * @property {Object[]} document_group_template_info - document group templates data\n * @property {Object[]} document_group_info - document group template's data\n * @property {Object[]} originator_organization_settings - specific organization settings for document\n * @property {Object[]} field_validators - validation rules for fields (date fields, payment fields etc.)\n * @property {Object} settings - specific document settings\n ", - "start": 5880, - "end": 8258, - "loc": { - "start": { - "line": 191, - "column": 2 - }, - "end": { - "line": 226, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * User's Document list response\n * @typedef {DocumentListItem[]} DocumentListResponse\n ", - "start": 8262, - "end": 8362, - "loc": { - "start": { - "line": 228, - "column": 2 - }, - "end": { - "line": 231, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieve user's document list\n * @param {DocumentListParams} data - payload to receive user's document list\n * @param {function(err: ApiErrorResponse, res: DocumentListItem)} [callback] - error first node.js callback\n ", - "start": 8366, - "end": 8601, - "loc": { - "start": { - "line": 233, - "column": 2 - }, - "end": { - "line": 237, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document view payload\n * @typedef {Object} DocumentViewParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 8925, - "end": 9104, - "loc": { - "start": { - "line": 252, - "column": 2 - }, - "end": { - "line": 257, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document view response of specific document\n * @typedef {Object} DocumentViewResponse\n * @property {string} id - id of specific document\n * @property {string} user_id - id of user that uploaded document\n * @property {string} document_name - name of document\n * @property {string} page_count - amount of pages in the document\n * @property {string} created - timestamp document was created\n * @property {string} updated - timestamp document was updated\n * @property {string} original_filename - original filename with document format (.pdf, .doc, etc...)\n * @property {?string} origin_document_id - an id of original document (if document is a copy)\n * @property {string} owner - email of document owner\n * @property {boolean} template - is document a template or not\n * @property {Object} thumbnail - thumbnail urls with different sizes (small, medium, large)\n * @property {Object[]} signatures - signature signed elements\n * @property {Object[]} texts - text and enumeration filled elements\n * @property {Object[]} checks - checkbox checked elements\n * @property {Object[]} tags - field types document contains\n * @property {Object[]} fields - all document fillable fields\n * @property {Object[]} requests - requests for signing document\n * @property {Object[]} roles - document signer roles\n * @property {Object[]} field_invites - sent invites data\n * @property {number} version_time - document updated timestamp\n * @property {Object[]} enumeration_options - dropdown options\n * @property {Object[]} attachments - attachments in document\n * @property {Object[]} routing_details - signing steps routing details\n * @property {Object[]} integrations - document integrations\n * @property {Object[]} hyperlinks - document hyperlinks\n * @property {Object[]} radiobuttons - checked radiobuttons after document was signed\n * @property {Object[]} document_group_template_info - document group template's data\n * @property {Object[]} document_group_info - document group's data\n * @property {Object[]} originator_organization_settings - specific organization settings for document\n * @property {Object[]} field_validators - validation rules for fields (date fields, payment fields etc.)\n * @property {Object} settings - specific document settings\n * @property {string} parent_id - id of document folder\n * @property {string} originator_logo - logo url\n * @property {Object[]} pages - list of document pages with page sources and page size.\n ", - "start": 9108, - "end": 11623, - "loc": { - "start": { - "line": 259, - "column": 2 - }, - "end": { - "line": 296, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves a document detailed data\n * @param {DocumentViewParams} data - view document details payload\n * @param {function(err: ApiErrorResponse, res: DocumentViewResponse)} [callback] - error first node.js callback\n ", - "start": 11627, - "end": 11861, - "loc": { - "start": { - "line": 298, - "column": 2 - }, - "end": { - "line": 302, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} SignatureField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (signature)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} [label] - field label\n ", - "start": 12187, - "end": 12759, - "loc": { - "start": { - "line": 317, - "column": 2 - }, - "end": { - "line": 329, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} InitialsField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (initials)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} [label] - field label\n ", - "start": 12763, - "end": 13333, - "loc": { - "start": { - "line": 331, - "column": 2 - }, - "end": { - "line": 343, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} TextField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (text)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string|number} [prefilled_text] - prefilled field value\n * @property {string} [validator_id] - field value validator ID\n * @property {string} [label] - field label\n ", - "start": 13337, - "end": 14037, - "loc": { - "start": { - "line": 345, - "column": 2 - }, - "end": { - "line": 359, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} CheckField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (checkbox)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {boolean} [prefilled_text] - prefilled field value\n * @property {string} [label] - field label\n ", - "start": 14041, - "end": 14674, - "loc": { - "start": { - "line": 361, - "column": 2 - }, - "end": { - "line": 374, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} EnumerationField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (enumeration)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {Array} enumeration_options - choice options of enumerable field\n * @property {string|number} [prefilled_text] - prefilled field value\n * @property {string} [label] - field label\n * @property {boolean} [custom_defined_option=false] - if 'true' user can change values, if 'false' user can only read\n ", - "start": 14678, - "end": 15542, - "loc": { - "start": { - "line": 376, - "column": 2 - }, - "end": { - "line": 391, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} RadioButton\n * @property {number} page_number - page number of document\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} value - value of radio button\n * @property {string} checked - radio button check status\n * @property {number} created - redio button creation timestamp\n ", - "start": 15546, - "end": 16044, - "loc": { - "start": { - "line": 393, - "column": 2 - }, - "end": { - "line": 403, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} RadioButtonField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (radiobutton)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {RadioButton[]} radio - array of radio buttons\n * @property {string|number} [prefilled_text] - prefilled field value\n * @property {string} [label] - field label\n ", - "start": 16048, - "end": 16758, - "loc": { - "start": { - "line": 405, - "column": 2 - }, - "end": { - "line": 419, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} FormulaTreeBranchTerminator\n * @property {string} term - name of field which will participate in calculation formula\n ", - "start": 16762, - "end": 16913, - "loc": { - "start": { - "line": 421, - "column": 2 - }, - "end": { - "line": 424, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} FormulaTreeBranch\n * @property {FormulaTree} term - a part of formula parsed into tree\n ", - "start": 16917, - "end": 17038, - "loc": { - "start": { - "line": 426, - "column": 2 - }, - "end": { - "line": 429, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} FormulaTree\n * @property {string} operator - arithmetic operator's token\n * @property {FormulaTreeBranch|FormulaTreeBranchTerminator} left - left branch of formula tree\n * @property {FormulaTreeBranch|FormulaTreeBranchTerminator} right - right branch of formula tree\n ", - "start": 17042, - "end": 17347, - "loc": { - "start": { - "line": 431, - "column": 2 - }, - "end": { - "line": 436, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} CalculatedField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (text)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} formula - arithmetic formula, e.g. 'TextName+EnumerationName'\n * @property {FormulaTree} calculation_formula - formula parsed into tree\n * @property {number} calculation_precision - calculation precision\n * @property {string} [label] - field label\n * @property {boolean} [custom_defined_option=false] - if 'true' user can change values, if 'false' user can only read\n ", - "start": 17351, - "end": 18272, - "loc": { - "start": { - "line": 438, - "column": 2 - }, - "end": { - "line": 454, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} AttachmentField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (attachment)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} [label] - field label\n ", - "start": 18276, - "end": 18850, - "loc": { - "start": { - "line": 456, - "column": 2 - }, - "end": { - "line": 468, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} DocumentFields\n * @property {number} client_timestamp - local time of user\n * @property {Array} fields - all types of fields\n ", - "start": 18854, - "end": 19132, - "loc": { - "start": { - "line": 470, - "column": 2 - }, - "end": { - "line": 474, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update document payload\n * @typedef {Object} DocumentUpdateParams\n * @property {string} id - id of specific document\n * @property {DocumentFields} fields - set of fields\n * @property {string} token - your auth token\n ", - "start": 19136, - "end": 19374, - "loc": { - "start": { - "line": 476, - "column": 2 - }, - "end": { - "line": 482, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update document response data\n * @typedef {Object} DocumentUpdateResponse\n * @property {string} id - an id of document\n * @property {Object[]} signatures - signature and initial elements\n * @property {Object[]} texts - text and enumeration elements\n * @property {Object[]} checks - checkbox elements\n * @property {Object[]} attachments - attachment elements\n * @property {Object[]} radiobuttons - radiobutton elements\n ", - "start": 19378, - "end": 19824, - "loc": { - "start": { - "line": 484, - "column": 2 - }, - "end": { - "line": 493, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Updates an existing document.\n * Adds fields (signature, text, initials, checkbox, radiobutton group, calculated) and elements (signature, text, check).\n * Every call of this method will add only specified fields into document.\n * Old fields will be removed\n * @param {DocumentUpdateParams} data - update document request payload\n * @param {function(err: ApiErrorResponse, res: DocumentUpdateResponse)} [callback] - error first node.js callback\n ", - "start": 19828, - "end": 20297, - "loc": { - "start": { - "line": 495, - "column": 2 - }, - "end": { - "line": 502, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document download payload\n * @typedef {Object} DocumentDownloadParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 20866, - "end": 21053, - "loc": { - "start": { - "line": 528, - "column": 2 - }, - "end": { - "line": 533, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document binary data\n * @typedef {Buffer} DocumentDownloadResponse\n ", - "start": 21057, - "end": 21140, - "loc": { - "start": { - "line": 535, - "column": 2 - }, - "end": { - "line": 538, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Downloads document with embedded fields and elements\n * @param {DocumentDownloadParams} data - download document request payload\n * @param {function(err: ApiErrorResponse, res: DocumentDownloadResponse)} [callback] - error first node.js callback\n ", - "start": 21144, - "end": 21408, - "loc": { - "start": { - "line": 540, - "column": 2 - }, - "end": { - "line": 544, - "column": 5 - } - } - }, - { - "type": "CommentLine", - "value": " creates a one-time use URL for anyone to download the document as a PDF.", - "start": 21781, - "end": 21856, - "loc": { - "start": { - "line": 560, - "column": 2 - }, - "end": { - "line": 560, - "column": 77 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document invite signer settings\n * @typedef {Object} SignerSettings\n * @property {string} email - signer's email\n * @property {string} role - role name\n * @property {string} role_id - role unique id (can be discovered in document details)\n * @property {number} order - role signing order\n * @property {string} reassign - allow reassign signer\n * @property {string} decline_by_signature - signer can decline invite\n * @property {number} reminder - remind via email in days\n * @property {number} expiration_days - expiration of invite in days\n * @property {string} [subject] - specify subject of email\n * @property {string} [message] - specify body of email\n ", - "start": 22198, - "end": 22890, - "loc": { - "start": { - "line": 575, - "column": 2 - }, - "end": { - "line": 588, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document invite settings\n * @typedef {Object} DocumentInviteSettings\n * @property {string} from - email of sender\n * @property {SignerSettings[]|string} to - array of signers or email of single signer\n * @property {string} [document_id] - an id of document\n * @property {string[]} [cc] - array with emails of copy receivers\n * @property {string} [subject] - specify subject of email\n * @property {string} [message] - specify body of email\n * @property {string} [on_complete] - on signing complete action\n ", - "start": 22894, - "end": 23428, - "loc": { - "start": { - "line": 590, - "column": 2 - }, - "end": { - "line": 600, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document invite optional settings\n * @typedef {Object} DocumentInviteOptions\n * @property {string} [email] - ability to disable invitation by email. to disabale email assign value 'disable'\n ", - "start": 23432, - "end": 23640, - "loc": { - "start": { - "line": 602, - "column": 2 - }, - "end": { - "line": 606, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document invite payload\n * @typedef {Object} DocumentInviteParams\n * @property {string} id - an id of document\n * @property {DocumentInviteSettings} data - document invite settings\n * @property {DocumentInviteOptions} [options] - document invite optional settings\n * @property {string} token - your auth token\n ", - "start": 23644, - "end": 23985, - "loc": { - "start": { - "line": 608, - "column": 2 - }, - "end": { - "line": 615, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document field invite response data\n * @typedef {Object} DocumentFieldInviteResponse\n * @property {string} status - status of invitation, e.g. 'success'\n ", - "start": 23989, - "end": 24167, - "loc": { - "start": { - "line": 617, - "column": 2 - }, - "end": { - "line": 621, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document free form invite response data\n * @typedef {Object} DocumentFreeformInviteResponse\n * @property {string} result - free form invitation result, e.g. 'success'\n * @property {string} id - unique id of invite\n * @property {string} callback_url - url for front-end redirect or 'none'\n ", - "start": 24171, - "end": 24488, - "loc": { - "start": { - "line": 623, - "column": 2 - }, - "end": { - "line": 629, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document invite response data\n * @typedef {DocumentFieldInviteResponse|DocumentFreeformInviteResponse} DocumentInviteResponse\n ", - "start": 24492, - "end": 24641, - "loc": { - "start": { - "line": 631, - "column": 2 - }, - "end": { - "line": 634, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates an invite to sign a document.\n * You can create a simple free form invite(s) or a role-based invite(s).\n * @param {DocumentInviteParams} data - create document invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentInviteResponse)} [callback] - error first node.js callback\n ", - "start": 24645, - "end": 24963, - "loc": { - "start": { - "line": 636, - "column": 2 - }, - "end": { - "line": 641, - "column": 5 - } - } - }, - { - "type": "CommentLine", - "value": " cancel an invite to a document.", - "start": 25657, - "end": 25691, - "loc": { - "start": { - "line": 674, - "column": 2 - }, - "end": { - "line": 674, - "column": 36 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Merge documents optional settings\n * @typedef {Object} DocumentMergeOptions\n * @property {boolean} [removeOriginalDocuments=false] - if true original documents will be removed\n ", - "start": 26043, - "end": 26237, - "loc": { - "start": { - "line": 689, - "column": 2 - }, - "end": { - "line": 693, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Merge documents payload\n * @typedef {Object} DocumentMergeParams\n * @property {string} token - your auth token\n * @property {string} name - new name for merged document\n * @property {string[]} document_ids - an array of document IDs\n * @property {DocumentMergeOptions} options - merge documents optional settings\n ", - "start": 26241, - "end": 26578, - "loc": { - "start": { - "line": 695, - "column": 2 - }, - "end": { - "line": 702, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Merge documents response data\n * @typedef {Object} DocumentMergeResponse\n * @property {string} document_id - an ID of merged document\n ", - "start": 26582, - "end": 26734, - "loc": { - "start": { - "line": 704, - "column": 2 - }, - "end": { - "line": 708, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Merges existing documents into one.\n * By default original documents are not removed after merging. To remove original documents set `removeOriginalDocuments` option to `true`.\n * @param {DocumentMergeParams} data - merge documents payload\n * @param {function(err: ApiErrorResponse, res: DocumentMergeResponse)} [originalCallback] - error first node.js callback\n ", - "start": 26738, - "end": 27120, - "loc": { - "start": { - "line": 710, - "column": 2 - }, - "end": { - "line": 715, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document history payload\n * @typedef {Object} DocumentHistoryParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 29105, - "end": 29290, - "loc": { - "start": { - "line": 798, - "column": 2 - }, - "end": { - "line": 803, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document action log item\n * @typedef {Object} DocumentEvent\n * @property {string} client_app_name - name of a client application\n * @property {?string} client_timestamp - client application timestamp\n * @property {string} created - timestamp of action creation\n * @property {string} email - email of an actor\n * @property {string} event - name of event\n * @property {string} ip_address - actor's IP address\n * @property {?string} element_id - an ID of specific element\n * @property {?string} field_id - an ID of specific field\n * @property {?string} json_attributes - field attributes (e.g. font, style, size etc.)\n * @property {string} [document_id] - an ID of specific document\n * @property {string} [origin] - an origin of document\n * @property {string} [unique_id] - an ID of event\n * @property {string} [user_agent] - user agent\n * @property {string} [user_id] - id of an actor\n * @property {string} [version] - version of signed document (incremented after each signature addition)\n ", - "start": 29294, - "end": 30328, - "loc": { - "start": { - "line": 805, - "column": 2 - }, - "end": { - "line": 823, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document history response data\n * @typedef {DocumentEvent[]} DocumentHistoryResponse\n ", - "start": 30332, - "end": 30433, - "loc": { - "start": { - "line": 825, - "column": 2 - }, - "end": { - "line": 828, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves a document action log (history) data\n * @param {DocumentHistoryParams} data - payload\n * @param {function(err: ApiErrorResponse, res: DocumentHistoryResponse)} [callback] - error first node.js callback\n ", - "start": 30437, - "end": 30668, - "loc": { - "start": { - "line": 830, - "column": 2 - }, - "end": { - "line": 834, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Remove document payload\n * @typedef {Object} DocumentRemoveParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 31005, - "end": 31188, - "loc": { - "start": { - "line": 849, - "column": 2 - }, - "end": { - "line": 854, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Remove document response data\n * @typedef {Object} DocumentRemoveResponse\n * @property {string} status - status of deletion, e.g. 'success'\n ", - "start": 31192, - "end": 31350, - "loc": { - "start": { - "line": 856, - "column": 2 - }, - "end": { - "line": 860, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Removes a specified document from folder\n * @param {DocumentRemoveParams} data - remove document payload\n * @param {function(err: ApiErrorResponse, res: DocumentRemoveResponse)} [callback] - error first node.js callback\n ", - "start": 31354, - "end": 31592, - "loc": { - "start": { - "line": 862, - "column": 2 - }, - "end": { - "line": 866, - "column": 5 - } - } - } - ], - "tokens": [ - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "use strict", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 12 - }, - "end": { - "line": 1, - "column": 13 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 14, - "end": 20, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 27, - "end": 31, - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 17 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "https", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 18 - }, - "end": { - "line": 2, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39, - "end": 40, - "loc": { - "start": { - "line": 2, - "column": 25 - }, - "end": { - "line": 2, - "column": 26 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 41, - "end": 47, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fs", - "start": 48, - "end": 50, - "loc": { - "start": { - "line": 3, - "column": 7 - }, - "end": { - "line": 3, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 51, - "end": 55, - "loc": { - "start": { - "line": 3, - "column": 10 - }, - "end": { - "line": 3, - "column": 14 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "fs", - "start": 56, - "end": 60, - "loc": { - "start": { - "line": 3, - "column": 15 - }, - "end": { - "line": 3, - "column": 19 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 60, - "end": 61, - "loc": { - "start": { - "line": 3, - "column": 19 - }, - "end": { - "line": 3, - "column": 20 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 62, - "end": 68, - "loc": { - "start": { - "line": 4, - "column": 0 - }, - "end": { - "line": 4, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 69, - "end": 70, - "loc": { - "start": { - "line": 4, - "column": 7 - }, - "end": { - "line": 4, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 73, - "end": 88, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 88, - "end": 89, - "loc": { - "start": { - "line": 5, - "column": 17 - }, - "end": { - "line": 5, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 90, - "end": 102, - "loc": { - "start": { - "line": 5, - "column": 19 - }, - "end": { - "line": 5, - "column": 31 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 102, - "end": 103, - "loc": { - "start": { - "line": 5, - "column": 31 - }, - "end": { - "line": 5, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 104, - "end": 123, - "loc": { - "start": { - "line": 5, - "column": 33 - }, - "end": { - "line": 5, - "column": 52 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 123, - "end": 124, - "loc": { - "start": { - "line": 5, - "column": 52 - }, - "end": { - "line": 5, - "column": 53 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 125, - "end": 126, - "loc": { - "start": { - "line": 6, - "column": 0 - }, - "end": { - "line": 6, - "column": 1 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 127, - "end": 131, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 6 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "./common", - "start": 132, - "end": 142, - "loc": { - "start": { - "line": 6, - "column": 7 - }, - "end": { - "line": 6, - "column": 17 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 142, - "end": 143, - "loc": { - "start": { - "line": 6, - "column": 17 - }, - "end": { - "line": 6, - "column": 18 - } - } - }, - { - "type": "CommentLine", - "value": " build file multipart/form-data request", - "start": 145, - "end": 186, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 8, - "column": 41 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 187, - "end": 192, - "loc": { - "start": { - "line": 9, - "column": 0 - }, - "end": { - "line": 9, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildFileRequest", - "start": 193, - "end": 209, - "loc": { - "start": { - "line": 9, - "column": 6 - }, - "end": { - "line": 9, - "column": 22 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 210, - "end": 211, - "loc": { - "start": { - "line": 9, - "column": 23 - }, - "end": { - "line": 9, - "column": 24 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 212, - "end": 213, - "loc": { - "start": { - "line": 9, - "column": 25 - }, - "end": { - "line": 9, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "boundaryKey", - "start": 213, - "end": 224, - "loc": { - "start": { - "line": 9, - "column": 26 - }, - "end": { - "line": 9, - "column": 37 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 224, - "end": 225, - "loc": { - "start": { - "line": 9, - "column": 37 - }, - "end": { - "line": 9, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "mimeType", - "start": 226, - "end": 234, - "loc": { - "start": { - "line": 9, - "column": 39 - }, - "end": { - "line": 9, - "column": 47 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 234, - "end": 235, - "loc": { - "start": { - "line": 9, - "column": 47 - }, - "end": { - "line": 9, - "column": 48 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "filename", - "start": 236, - "end": 244, - "loc": { - "start": { - "line": 9, - "column": 49 - }, - "end": { - "line": 9, - "column": 57 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 244, - "end": 245, - "loc": { - "start": { - "line": 9, - "column": 57 - }, - "end": { - "line": 9, - "column": 58 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 246, - "end": 248, - "loc": { - "start": { - "line": 9, - "column": 59 - }, - "end": { - "line": 9, - "column": 61 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 249, - "end": 250, - "loc": { - "start": { - "line": 9, - "column": 62 - }, - "end": { - "line": 9, - "column": 63 - } - } - }, - { - "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "let", - "start": 253, - "end": 256, - "loc": { - "start": { - "line": 10, - "column": 2 - }, - "end": { - "line": 10, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 257, - "end": 260, - "loc": { - "start": { - "line": 10, - "column": 6 - }, - "end": { - "line": 10, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 261, - "end": 262, - "loc": { - "start": { - "line": 10, - "column": 10 - }, - "end": { - "line": 10, - "column": 11 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 263, - "end": 264, - "loc": { - "start": { - "line": 10, - "column": 12 - }, - "end": { - "line": 10, - "column": 13 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "------FormBoundary", - "start": 264, - "end": 282, - "loc": { - "start": { - "line": 10, - "column": 13 - }, - "end": { - "line": 10, - "column": 31 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 282, - "end": 284, - "loc": { - "start": { - "line": 10, - "column": 31 - }, - "end": { - "line": 10, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "boundaryKey", - "start": 284, - "end": 295, - "loc": { - "start": { - "line": 10, - "column": 33 - }, - "end": { - "line": 10, - "column": 44 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 295, - "end": 296, - "loc": { - "start": { - "line": 10, - "column": 44 - }, - "end": { - "line": 10, - "column": 45 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\r\n", - "start": 296, - "end": 300, - "loc": { - "start": { - "line": 10, - "column": 45 - }, - "end": { - "line": 10, - "column": 49 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 300, - "end": 301, - "loc": { - "start": { - "line": 10, - "column": 49 - }, - "end": { - "line": 10, - "column": 50 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 301, - "end": 302, - "loc": { - "start": { - "line": 10, - "column": 50 - }, - "end": { - "line": 10, - "column": 51 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 305, - "end": 308, - "loc": { - "start": { - "line": 11, - "column": 2 - }, - "end": { - "line": 11, - "column": 5 - } - } - }, - { - "type": { - "label": "_=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "+=", - "start": 309, - "end": 311, - "loc": { - "start": { - "line": 11, - "column": 6 - }, - "end": { - "line": 11, - "column": 8 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 312, - "end": 313, - "loc": { - "start": { - "line": 11, - "column": 9 - }, - "end": { - "line": 11, - "column": 10 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Disposition: form-data; name=\"file\"; filename=\"", - "start": 313, - "end": 368, - "loc": { - "start": { - "line": 11, - "column": 10 - }, - "end": { - "line": 11, - "column": 65 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 368, - "end": 370, - "loc": { - "start": { - "line": 11, - "column": 65 - }, - "end": { - "line": 11, - "column": 67 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "filename", - "start": 370, - "end": 378, - "loc": { - "start": { - "line": 11, - "column": 67 - }, - "end": { - "line": 11, - "column": 75 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 378, - "end": 379, - "loc": { - "start": { - "line": 11, - "column": 75 - }, - "end": { - "line": 11, - "column": 76 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\"\r\n", - "start": 379, - "end": 384, - "loc": { - "start": { - "line": 11, - "column": 76 - }, - "end": { - "line": 11, - "column": 81 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 384, - "end": 385, - "loc": { - "start": { - "line": 11, - "column": 81 - }, - "end": { - "line": 11, - "column": 82 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 385, - "end": 386, - "loc": { - "start": { - "line": 11, - "column": 82 - }, - "end": { - "line": 11, - "column": 83 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 389, - "end": 392, - "loc": { - "start": { - "line": 12, - "column": 2 - }, - "end": { - "line": 12, - "column": 5 - } - } - }, - { - "type": { - "label": "_=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "+=", - "start": 393, - "end": 395, - "loc": { - "start": { - "line": 12, - "column": 6 - }, - "end": { - "line": 12, - "column": 8 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 396, - "end": 397, - "loc": { - "start": { - "line": 12, - "column": 9 - }, - "end": { - "line": 12, - "column": 10 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type: ", - "start": 397, - "end": 411, - "loc": { - "start": { - "line": 12, - "column": 10 - }, - "end": { - "line": 12, - "column": 24 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 411, - "end": 413, - "loc": { - "start": { - "line": 12, - "column": 24 - }, - "end": { - "line": 12, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "mimeType", - "start": 413, - "end": 421, - "loc": { - "start": { - "line": 12, - "column": 26 - }, - "end": { - "line": 12, - "column": 34 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 421, - "end": 422, - "loc": { - "start": { - "line": 12, - "column": 34 - }, - "end": { - "line": 12, - "column": 35 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\r\n\r\n", - "start": 422, - "end": 430, - "loc": { - "start": { - "line": 12, - "column": 35 - }, - "end": { - "line": 12, - "column": 43 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 430, - "end": 431, - "loc": { - "start": { - "line": 12, - "column": 43 - }, - "end": { - "line": 12, - "column": 44 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 431, - "end": 432, - "loc": { - "start": { - "line": 12, - "column": 44 - }, - "end": { - "line": 12, - "column": 45 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 435, - "end": 441, - "loc": { - "start": { - "line": 13, - "column": 2 - }, - "end": { - "line": 13, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 442, - "end": 445, - "loc": { - "start": { - "line": 13, - "column": 9 - }, - "end": { - "line": 13, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 445, - "end": 446, - "loc": { - "start": { - "line": 13, - "column": 12 - }, - "end": { - "line": 13, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 447, - "end": 448, - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 14, - "column": 1 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 448, - "end": 449, - "loc": { - "start": { - "line": 14, - "column": 1 - }, - "end": { - "line": 14, - "column": 2 - } - } - }, - { - "type": "CommentLine", - "value": " get file mime type", - "start": 451, - "end": 472, - "loc": { - "start": { - "line": 16, - "column": 0 - }, - "end": { - "line": 16, - "column": 21 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 473, - "end": 478, - "loc": { - "start": { - "line": 17, - "column": 0 - }, - "end": { - "line": 17, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getMimeType", - "start": 479, - "end": 490, - "loc": { - "start": { - "line": 17, - "column": 6 - }, - "end": { - "line": 17, - "column": 17 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 491, - "end": 492, - "loc": { - "start": { - "line": 17, - "column": 18 - }, - "end": { - "line": 17, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 493, - "end": 497, - "loc": { - "start": { - "line": 17, - "column": 20 - }, - "end": { - "line": 17, - "column": 24 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 498, - "end": 500, - "loc": { - "start": { - "line": 17, - "column": 25 - }, - "end": { - "line": 17, - "column": 27 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 501, - "end": 502, - "loc": { - "start": { - "line": 17, - "column": 28 - }, - "end": { - "line": 17, - "column": 29 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 505, - "end": 510, - "loc": { - "start": { - "line": 18, - "column": 2 - }, - "end": { - "line": 18, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "extTypes", - "start": 511, - "end": 519, - "loc": { - "start": { - "line": 18, - "column": 8 - }, - "end": { - "line": 18, - "column": 16 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 520, - "end": 521, - "loc": { - "start": { - "line": 18, - "column": 17 - }, - "end": { - "line": 18, - "column": 18 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 522, - "end": 523, - "loc": { - "start": { - "line": 18, - "column": 19 - }, - "end": { - "line": 18, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "doc", - "start": 528, - "end": 531, - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 19, - "column": 7 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 531, - "end": 532, - "loc": { - "start": { - "line": 19, - "column": 7 - }, - "end": { - "line": 19, - "column": 8 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/msword", - "start": 533, - "end": 553, - "loc": { - "start": { - "line": 19, - "column": 9 - }, - "end": { - "line": 19, - "column": 29 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 553, - "end": 554, - "loc": { - "start": { - "line": 19, - "column": 29 - }, - "end": { - "line": 19, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "docx", - "start": 559, - "end": 563, - "loc": { - "start": { - "line": 20, - "column": 4 - }, - "end": { - "line": 20, - "column": 8 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 563, - "end": 564, - "loc": { - "start": { - "line": 20, - "column": 8 - }, - "end": { - "line": 20, - "column": 9 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/vnd.openxmlformats-officedocument.wordprocessingml.document", - "start": 565, - "end": 638, - "loc": { - "start": { - "line": 20, - "column": 10 - }, - "end": { - "line": 20, - "column": 83 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 638, - "end": 639, - "loc": { - "start": { - "line": 20, - "column": 83 - }, - "end": { - "line": 20, - "column": 84 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pdf", - "start": 644, - "end": 647, - "loc": { - "start": { - "line": 21, - "column": 4 - }, - "end": { - "line": 21, - "column": 7 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 647, - "end": 648, - "loc": { - "start": { - "line": 21, - "column": 7 - }, - "end": { - "line": 21, - "column": 8 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/pdf", - "start": 649, - "end": 666, - "loc": { - "start": { - "line": 21, - "column": 9 - }, - "end": { - "line": 21, - "column": 26 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 666, - "end": 667, - "loc": { - "start": { - "line": 21, - "column": 26 - }, - "end": { - "line": 21, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "odt", - "start": 672, - "end": 675, - "loc": { - "start": { - "line": 22, - "column": 4 - }, - "end": { - "line": 22, - "column": 7 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 675, - "end": 676, - "loc": { - "start": { - "line": 22, - "column": 7 - }, - "end": { - "line": 22, - "column": 8 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/vnd.oasis.opendocument.text", - "start": 677, - "end": 718, - "loc": { - "start": { - "line": 22, - "column": 9 - }, - "end": { - "line": 22, - "column": 50 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 718, - "end": 719, - "loc": { - "start": { - "line": 22, - "column": 50 - }, - "end": { - "line": 22, - "column": 51 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rtf", - "start": 724, - "end": 727, - "loc": { - "start": { - "line": 23, - "column": 4 - }, - "end": { - "line": 23, - "column": 7 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 727, - "end": 728, - "loc": { - "start": { - "line": 23, - "column": 7 - }, - "end": { - "line": 23, - "column": 8 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/rtf", - "start": 729, - "end": 746, - "loc": { - "start": { - "line": 23, - "column": 9 - }, - "end": { - "line": 23, - "column": 26 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 746, - "end": 747, - "loc": { - "start": { - "line": 23, - "column": 26 - }, - "end": { - "line": 23, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "xml", - "start": 752, - "end": 755, - "loc": { - "start": { - "line": 24, - "column": 4 - }, - "end": { - "line": 24, - "column": 7 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 755, - "end": 756, - "loc": { - "start": { - "line": 24, - "column": 7 - }, - "end": { - "line": 24, - "column": 8 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/xml", - "start": 757, - "end": 774, - "loc": { - "start": { - "line": 24, - "column": 9 - }, - "end": { - "line": 24, - "column": 26 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 774, - "end": 775, - "loc": { - "start": { - "line": 24, - "column": 26 - }, - "end": { - "line": 24, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "xls", - "start": 780, - "end": 783, - "loc": { - "start": { - "line": 25, - "column": 4 - }, - "end": { - "line": 25, - "column": 7 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 783, - "end": 784, - "loc": { - "start": { - "line": 25, - "column": 7 - }, - "end": { - "line": 25, - "column": 8 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/vnd.ms-excel", - "start": 785, - "end": 811, - "loc": { - "start": { - "line": 25, - "column": 9 - }, - "end": { - "line": 25, - "column": 35 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 811, - "end": 812, - "loc": { - "start": { - "line": 25, - "column": 35 - }, - "end": { - "line": 25, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "xlsx", - "start": 817, - "end": 821, - "loc": { - "start": { - "line": 26, - "column": 4 - }, - "end": { - "line": 26, - "column": 8 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 821, - "end": 822, - "loc": { - "start": { - "line": 26, - "column": 8 - }, - "end": { - "line": 26, - "column": 9 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", - "start": 823, - "end": 890, - "loc": { - "start": { - "line": 26, - "column": 10 - }, - "end": { - "line": 26, - "column": 77 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 890, - "end": 891, - "loc": { - "start": { - "line": 26, - "column": 77 - }, - "end": { - "line": 26, - "column": 78 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "ppt", - "start": 896, - "end": 899, - "loc": { - "start": { - "line": 27, - "column": 4 - }, - "end": { - "line": 27, - "column": 7 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 899, - "end": 900, - "loc": { - "start": { - "line": 27, - "column": 7 - }, - "end": { - "line": 27, - "column": 8 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/vnd.ms-powerpoint", - "start": 901, - "end": 932, - "loc": { - "start": { - "line": 27, - "column": 9 - }, - "end": { - "line": 27, - "column": 40 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 932, - "end": 933, - "loc": { - "start": { - "line": 27, - "column": 40 - }, - "end": { - "line": 27, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pptx", - "start": 938, - "end": 942, - "loc": { - "start": { - "line": 28, - "column": 4 - }, - "end": { - "line": 28, - "column": 8 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 942, - "end": 943, - "loc": { - "start": { - "line": 28, - "column": 8 - }, - "end": { - "line": 28, - "column": 9 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/vnd.openxmlformats-officedocument.presentationml.presentation", - "start": 944, - "end": 1019, - "loc": { - "start": { - "line": 28, - "column": 10 - }, - "end": { - "line": 28, - "column": 85 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1019, - "end": 1020, - "loc": { - "start": { - "line": 28, - "column": 85 - }, - "end": { - "line": 28, - "column": 86 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "png", - "start": 1025, - "end": 1028, - "loc": { - "start": { - "line": 29, - "column": 4 - }, - "end": { - "line": 29, - "column": 7 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1028, - "end": 1029, - "loc": { - "start": { - "line": 29, - "column": 7 - }, - "end": { - "line": 29, - "column": 8 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "image/png", - "start": 1030, - "end": 1041, - "loc": { - "start": { - "line": 29, - "column": 9 - }, - "end": { - "line": 29, - "column": 20 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1041, - "end": 1042, - "loc": { - "start": { - "line": 29, - "column": 20 - }, - "end": { - "line": 29, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "jpg", - "start": 1047, - "end": 1050, - "loc": { - "start": { - "line": 30, - "column": 4 - }, - "end": { - "line": 30, - "column": 7 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1050, - "end": 1051, - "loc": { - "start": { - "line": 30, - "column": 7 - }, - "end": { - "line": 30, - "column": 8 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "image/jpeg", - "start": 1052, - "end": 1064, - "loc": { - "start": { - "line": 30, - "column": 9 - }, - "end": { - "line": 30, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1064, - "end": 1065, - "loc": { - "start": { - "line": 30, - "column": 21 - }, - "end": { - "line": 30, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "jpeg", - "start": 1070, - "end": 1074, - "loc": { - "start": { - "line": 31, - "column": 4 - }, - "end": { - "line": 31, - "column": 8 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1074, - "end": 1075, - "loc": { - "start": { - "line": 31, - "column": 8 - }, - "end": { - "line": 31, - "column": 9 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "image/jpeg", - "start": 1076, - "end": 1088, - "loc": { - "start": { - "line": 31, - "column": 10 - }, - "end": { - "line": 31, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1088, - "end": 1089, - "loc": { - "start": { - "line": 31, - "column": 22 - }, - "end": { - "line": 31, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "gif", - "start": 1094, - "end": 1097, - "loc": { - "start": { - "line": 32, - "column": 4 - }, - "end": { - "line": 32, - "column": 7 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1097, - "end": 1098, - "loc": { - "start": { - "line": 32, - "column": 7 - }, - "end": { - "line": 32, - "column": 8 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "image/gif", - "start": 1099, - "end": 1110, - "loc": { - "start": { - "line": 32, - "column": 9 - }, - "end": { - "line": 32, - "column": 20 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1110, - "end": 1111, - "loc": { - "start": { - "line": 32, - "column": 20 - }, - "end": { - "line": 32, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "bmp", - "start": 1116, - "end": 1119, - "loc": { - "start": { - "line": 33, - "column": 4 - }, - "end": { - "line": 33, - "column": 7 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1119, - "end": 1120, - "loc": { - "start": { - "line": 33, - "column": 7 - }, - "end": { - "line": 33, - "column": 8 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "image/bmp", - "start": 1121, - "end": 1132, - "loc": { - "start": { - "line": 33, - "column": 9 - }, - "end": { - "line": 33, - "column": 20 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1132, - "end": 1133, - "loc": { - "start": { - "line": 33, - "column": 20 - }, - "end": { - "line": 33, - "column": 21 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1136, - "end": 1137, - "loc": { - "start": { - "line": 34, - "column": 2 - }, - "end": { - "line": 34, - "column": 3 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1137, - "end": 1138, - "loc": { - "start": { - "line": 34, - "column": 3 - }, - "end": { - "line": 34, - "column": 4 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1141, - "end": 1146, - "loc": { - "start": { - "line": 35, - "column": 2 - }, - "end": { - "line": 35, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pathExtension", - "start": 1147, - "end": 1160, - "loc": { - "start": { - "line": 35, - "column": 8 - }, - "end": { - "line": 35, - "column": 21 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1161, - "end": 1162, - "loc": { - "start": { - "line": 35, - "column": 22 - }, - "end": { - "line": 35, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 1163, - "end": 1167, - "loc": { - "start": { - "line": 35, - "column": 24 - }, - "end": { - "line": 35, - "column": 28 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1167, - "end": 1168, - "loc": { - "start": { - "line": 35, - "column": 28 - }, - "end": { - "line": 35, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "substr", - "start": 1168, - "end": 1174, - "loc": { - "start": { - "line": 35, - "column": 29 - }, - "end": { - "line": 35, - "column": 35 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1174, - "end": 1175, - "loc": { - "start": { - "line": 35, - "column": 35 - }, - "end": { - "line": 35, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 1175, - "end": 1179, - "loc": { - "start": { - "line": 35, - "column": 36 - }, - "end": { - "line": 35, - "column": 40 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1179, - "end": 1180, - "loc": { - "start": { - "line": 35, - "column": 40 - }, - "end": { - "line": 35, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "lastIndexOf", - "start": 1180, - "end": 1191, - "loc": { - "start": { - "line": 35, - "column": 41 - }, - "end": { - "line": 35, - "column": 52 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1191, - "end": 1192, - "loc": { - "start": { - "line": 35, - "column": 52 - }, - "end": { - "line": 35, - "column": 53 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": ".", - "start": 1192, - "end": 1195, - "loc": { - "start": { - "line": 35, - "column": 53 - }, - "end": { - "line": 35, - "column": 56 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1195, - "end": 1196, - "loc": { - "start": { - "line": 35, - "column": 56 - }, - "end": { - "line": 35, - "column": 57 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1196, - "end": 1197, - "loc": { - "start": { - "line": 35, - "column": 57 - }, - "end": { - "line": 35, - "column": 58 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1197, - "end": 1198, - "loc": { - "start": { - "line": 35, - "column": 58 - }, - "end": { - "line": 35, - "column": 59 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "replace", - "start": 1198, - "end": 1205, - "loc": { - "start": { - "line": 35, - "column": 59 - }, - "end": { - "line": 35, - "column": 66 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1205, - "end": 1206, - "loc": { - "start": { - "line": 35, - "column": 66 - }, - "end": { - "line": 35, - "column": 67 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": ".", - "start": 1206, - "end": 1209, - "loc": { - "start": { - "line": 35, - "column": 67 - }, - "end": { - "line": 35, - "column": 70 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1209, - "end": 1210, - "loc": { - "start": { - "line": 35, - "column": 70 - }, - "end": { - "line": 35, - "column": 71 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 1211, - "end": 1213, - "loc": { - "start": { - "line": 35, - "column": 72 - }, - "end": { - "line": 35, - "column": 74 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1213, - "end": 1214, - "loc": { - "start": { - "line": 35, - "column": 74 - }, - "end": { - "line": 35, - "column": 75 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1214, - "end": 1215, - "loc": { - "start": { - "line": 35, - "column": 75 - }, - "end": { - "line": 35, - "column": 76 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 1218, - "end": 1224, - "loc": { - "start": { - "line": 36, - "column": 2 - }, - "end": { - "line": 36, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "extTypes", - "start": 1225, - "end": 1233, - "loc": { - "start": { - "line": 36, - "column": 9 - }, - "end": { - "line": 36, - "column": 17 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1233, - "end": 1234, - "loc": { - "start": { - "line": 36, - "column": 17 - }, - "end": { - "line": 36, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pathExtension", - "start": 1234, - "end": 1247, - "loc": { - "start": { - "line": 36, - "column": 18 - }, - "end": { - "line": 36, - "column": 31 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1247, - "end": 1248, - "loc": { - "start": { - "line": 36, - "column": 31 - }, - "end": { - "line": 36, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "toLowerCase", - "start": 1248, - "end": 1259, - "loc": { - "start": { - "line": 36, - "column": 32 - }, - "end": { - "line": 36, - "column": 43 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1259, - "end": 1260, - "loc": { - "start": { - "line": 36, - "column": 43 - }, - "end": { - "line": 36, - "column": 44 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1260, - "end": 1261, - "loc": { - "start": { - "line": 36, - "column": 44 - }, - "end": { - "line": 36, - "column": 45 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1261, - "end": 1262, - "loc": { - "start": { - "line": 36, - "column": 45 - }, - "end": { - "line": 36, - "column": 46 - } - } - }, - { - "type": { - "label": "||", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 1, - "updateContext": null - }, - "value": "||", - "start": 1263, - "end": 1265, - "loc": { - "start": { - "line": 36, - "column": 47 - }, - "end": { - "line": 36, - "column": 49 - } - } - }, - { - "type": { - "label": "null", - "keyword": "null", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "null", - "start": 1266, - "end": 1270, - "loc": { - "start": { - "line": 36, - "column": 50 - }, - "end": { - "line": 36, - "column": 54 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1270, - "end": 1271, - "loc": { - "start": { - "line": 36, - "column": 54 - }, - "end": { - "line": 36, - "column": 55 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1272, - "end": 1273, - "loc": { - "start": { - "line": 37, - "column": 0 - }, - "end": { - "line": 37, - "column": 1 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1273, - "end": 1274, - "loc": { - "start": { - "line": 37, - "column": 1 - }, - "end": { - "line": 37, - "column": 2 - } - } - }, - { - "type": "CommentLine", - "value": " get filename from path", - "start": 1276, - "end": 1301, - "loc": { - "start": { - "line": 39, - "column": 0 - }, - "end": { - "line": 39, - "column": 25 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1302, - "end": 1307, - "loc": { - "start": { - "line": 40, - "column": 0 - }, - "end": { - "line": 40, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getFileName", - "start": 1308, - "end": 1319, - "loc": { - "start": { - "line": 40, - "column": 6 - }, - "end": { - "line": 40, - "column": 17 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1320, - "end": 1321, - "loc": { - "start": { - "line": 40, - "column": 18 - }, - "end": { - "line": 40, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 1322, - "end": 1326, - "loc": { - "start": { - "line": 40, - "column": 20 - }, - "end": { - "line": 40, - "column": 24 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1327, - "end": 1329, - "loc": { - "start": { - "line": 40, - "column": 25 - }, - "end": { - "line": 40, - "column": 27 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1330, - "end": 1331, - "loc": { - "start": { - "line": 40, - "column": 28 - }, - "end": { - "line": 40, - "column": 29 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 1334, - "end": 1336, - "loc": { - "start": { - "line": 41, - "column": 2 - }, - "end": { - "line": 41, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1337, - "end": 1338, - "loc": { - "start": { - "line": 41, - "column": 5 - }, - "end": { - "line": 41, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 1338, - "end": 1342, - "loc": { - "start": { - "line": 41, - "column": 6 - }, - "end": { - "line": 41, - "column": 10 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1342, - "end": 1343, - "loc": { - "start": { - "line": 41, - "column": 10 - }, - "end": { - "line": 41, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "lastIndexOf", - "start": 1343, - "end": 1354, - "loc": { - "start": { - "line": 41, - "column": 11 - }, - "end": { - "line": 41, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1354, - "end": 1355, - "loc": { - "start": { - "line": 41, - "column": 22 - }, - "end": { - "line": 41, - "column": 23 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/", - "start": 1355, - "end": 1358, - "loc": { - "start": { - "line": 41, - "column": 23 - }, - "end": { - "line": 41, - "column": 26 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1358, - "end": 1359, - "loc": { - "start": { - "line": 41, - "column": 26 - }, - "end": { - "line": 41, - "column": 27 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "!==", - "start": 1360, - "end": 1363, - "loc": { - "start": { - "line": 41, - "column": 28 - }, - "end": { - "line": 41, - "column": 31 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 1364, - "end": 1365, - "loc": { - "start": { - "line": 41, - "column": 32 - }, - "end": { - "line": 41, - "column": 33 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 1365, - "end": 1366, - "loc": { - "start": { - "line": 41, - "column": 33 - }, - "end": { - "line": 41, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1366, - "end": 1367, - "loc": { - "start": { - "line": 41, - "column": 34 - }, - "end": { - "line": 41, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1368, - "end": 1369, - "loc": { - "start": { - "line": 41, - "column": 36 - }, - "end": { - "line": 41, - "column": 37 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 1374, - "end": 1380, - "loc": { - "start": { - "line": 42, - "column": 4 - }, - "end": { - "line": 42, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 1381, - "end": 1385, - "loc": { - "start": { - "line": 42, - "column": 11 - }, - "end": { - "line": 42, - "column": 15 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1385, - "end": 1386, - "loc": { - "start": { - "line": 42, - "column": 15 - }, - "end": { - "line": 42, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "substr", - "start": 1386, - "end": 1392, - "loc": { - "start": { - "line": 42, - "column": 16 - }, - "end": { - "line": 42, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1392, - "end": 1393, - "loc": { - "start": { - "line": 42, - "column": 22 - }, - "end": { - "line": 42, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 1393, - "end": 1397, - "loc": { - "start": { - "line": 42, - "column": 23 - }, - "end": { - "line": 42, - "column": 27 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1397, - "end": 1398, - "loc": { - "start": { - "line": 42, - "column": 27 - }, - "end": { - "line": 42, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "lastIndexOf", - "start": 1398, - "end": 1409, - "loc": { - "start": { - "line": 42, - "column": 28 - }, - "end": { - "line": 42, - "column": 39 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1409, - "end": 1410, - "loc": { - "start": { - "line": 42, - "column": 39 - }, - "end": { - "line": 42, - "column": 40 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/", - "start": 1410, - "end": 1413, - "loc": { - "start": { - "line": 42, - "column": 40 - }, - "end": { - "line": 42, - "column": 43 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1413, - "end": 1414, - "loc": { - "start": { - "line": 42, - "column": 43 - }, - "end": { - "line": 42, - "column": 44 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1414, - "end": 1415, - "loc": { - "start": { - "line": 42, - "column": 44 - }, - "end": { - "line": 42, - "column": 45 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1415, - "end": 1416, - "loc": { - "start": { - "line": 42, - "column": 45 - }, - "end": { - "line": 42, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "replace", - "start": 1416, - "end": 1423, - "loc": { - "start": { - "line": 42, - "column": 46 - }, - "end": { - "line": 42, - "column": 53 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1423, - "end": 1424, - "loc": { - "start": { - "line": 42, - "column": 53 - }, - "end": { - "line": 42, - "column": 54 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/", - "start": 1424, - "end": 1427, - "loc": { - "start": { - "line": 42, - "column": 54 - }, - "end": { - "line": 42, - "column": 57 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1427, - "end": 1428, - "loc": { - "start": { - "line": 42, - "column": 57 - }, - "end": { - "line": 42, - "column": 58 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 1429, - "end": 1431, - "loc": { - "start": { - "line": 42, - "column": 59 - }, - "end": { - "line": 42, - "column": 61 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1431, - "end": 1432, - "loc": { - "start": { - "line": 42, - "column": 61 - }, - "end": { - "line": 42, - "column": 62 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1432, - "end": 1433, - "loc": { - "start": { - "line": 42, - "column": 62 - }, - "end": { - "line": 42, - "column": 63 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1436, - "end": 1437, - "loc": { - "start": { - "line": 43, - "column": 2 - }, - "end": { - "line": 43, - "column": 3 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 1438, - "end": 1442, - "loc": { - "start": { - "line": 43, - "column": 4 - }, - "end": { - "line": 43, - "column": 8 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1443, - "end": 1444, - "loc": { - "start": { - "line": 43, - "column": 9 - }, - "end": { - "line": 43, - "column": 10 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 1449, - "end": 1455, - "loc": { - "start": { - "line": 44, - "column": 4 - }, - "end": { - "line": 44, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 1456, - "end": 1460, - "loc": { - "start": { - "line": 44, - "column": 11 - }, - "end": { - "line": 44, - "column": 15 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1460, - "end": 1461, - "loc": { - "start": { - "line": 44, - "column": 15 - }, - "end": { - "line": 44, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1464, - "end": 1465, - "loc": { - "start": { - "line": 45, - "column": 2 - }, - "end": { - "line": 45, - "column": 3 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1466, - "end": 1467, - "loc": { - "start": { - "line": 46, - "column": 0 - }, - "end": { - "line": 46, - "column": 1 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1467, - "end": 1468, - "loc": { - "start": { - "line": 46, - "column": 1 - }, - "end": { - "line": 46, - "column": 2 - } - } - }, - { - "type": "CommentLine", - "value": " generate randon string", - "start": 1470, - "end": 1495, - "loc": { - "start": { - "line": 48, - "column": 0 - }, - "end": { - "line": 48, - "column": 25 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1496, - "end": 1501, - "loc": { - "start": { - "line": 49, - "column": 0 - }, - "end": { - "line": 49, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "randString", - "start": 1502, - "end": 1512, - "loc": { - "start": { - "line": 49, - "column": 6 - }, - "end": { - "line": 49, - "column": 16 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1513, - "end": 1514, - "loc": { - "start": { - "line": 49, - "column": 17 - }, - "end": { - "line": 49, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 1515, - "end": 1516, - "loc": { - "start": { - "line": 49, - "column": 19 - }, - "end": { - "line": 49, - "column": 20 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1517, - "end": 1519, - "loc": { - "start": { - "line": 49, - "column": 21 - }, - "end": { - "line": 49, - "column": 23 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1520, - "end": 1521, - "loc": { - "start": { - "line": 49, - "column": 24 - }, - "end": { - "line": 49, - "column": 25 - } - } - }, - { - "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "let", - "start": 1524, - "end": 1527, - "loc": { - "start": { - "line": 50, - "column": 2 - }, - "end": { - "line": 50, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 1528, - "end": 1529, - "loc": { - "start": { - "line": 50, - "column": 6 - }, - "end": { - "line": 50, - "column": 7 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1530, - "end": 1531, - "loc": { - "start": { - "line": 50, - "column": 8 - }, - "end": { - "line": 50, - "column": 9 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 1532, - "end": 1534, - "loc": { - "start": { - "line": 50, - "column": 10 - }, - "end": { - "line": 50, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1534, - "end": 1535, - "loc": { - "start": { - "line": 50, - "column": 12 - }, - "end": { - "line": 50, - "column": 13 - } - } - }, - { - "type": { - "label": "while", - "keyword": "while", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": true, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "while", - "start": 1538, - "end": 1543, - "loc": { - "start": { - "line": 51, - "column": 2 - }, - "end": { - "line": 51, - "column": 7 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1544, - "end": 1545, - "loc": { - "start": { - "line": 51, - "column": 8 - }, - "end": { - "line": 51, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 1545, - "end": 1546, - "loc": { - "start": { - "line": 51, - "column": 9 - }, - "end": { - "line": 51, - "column": 10 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1546, - "end": 1547, - "loc": { - "start": { - "line": 51, - "column": 10 - }, - "end": { - "line": 51, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "length", - "start": 1547, - "end": 1553, - "loc": { - "start": { - "line": 51, - "column": 11 - }, - "end": { - "line": 51, - "column": 17 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": "<", - "start": 1554, - "end": 1555, - "loc": { - "start": { - "line": 51, - "column": 18 - }, - "end": { - "line": 51, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 1556, - "end": 1557, - "loc": { - "start": { - "line": 51, - "column": 20 - }, - "end": { - "line": 51, - "column": 21 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 1558, - "end": 1560, - "loc": { - "start": { - "line": 51, - "column": 22 - }, - "end": { - "line": 51, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 1561, - "end": 1562, - "loc": { - "start": { - "line": 51, - "column": 25 - }, - "end": { - "line": 51, - "column": 26 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": ">", - "start": 1563, - "end": 1564, - "loc": { - "start": { - "line": 51, - "column": 27 - }, - "end": { - "line": 51, - "column": 28 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 1565, - "end": 1566, - "loc": { - "start": { - "line": 51, - "column": 29 - }, - "end": { - "line": 51, - "column": 30 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1566, - "end": 1567, - "loc": { - "start": { - "line": 51, - "column": 30 - }, - "end": { - "line": 51, - "column": 31 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1568, - "end": 1569, - "loc": { - "start": { - "line": 51, - "column": 32 - }, - "end": { - "line": 51, - "column": 33 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1574, - "end": 1579, - "loc": { - "start": { - "line": 52, - "column": 4 - }, - "end": { - "line": 52, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "r", - "start": 1580, - "end": 1581, - "loc": { - "start": { - "line": 52, - "column": 10 - }, - "end": { - "line": 52, - "column": 11 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1582, - "end": 1583, - "loc": { - "start": { - "line": 52, - "column": 12 - }, - "end": { - "line": 52, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 1584, - "end": 1588, - "loc": { - "start": { - "line": 52, - "column": 14 - }, - "end": { - "line": 52, - "column": 18 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1588, - "end": 1589, - "loc": { - "start": { - "line": 52, - "column": 18 - }, - "end": { - "line": 52, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "random", - "start": 1589, - "end": 1595, - "loc": { - "start": { - "line": 52, - "column": 19 - }, - "end": { - "line": 52, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1595, - "end": 1596, - "loc": { - "start": { - "line": 52, - "column": 25 - }, - "end": { - "line": 52, - "column": 26 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1596, - "end": 1597, - "loc": { - "start": { - "line": 52, - "column": 26 - }, - "end": { - "line": 52, - "column": 27 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1597, - "end": 1598, - "loc": { - "start": { - "line": 52, - "column": 27 - }, - "end": { - "line": 52, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 1603, - "end": 1604, - "loc": { - "start": { - "line": 53, - "column": 4 - }, - "end": { - "line": 53, - "column": 5 - } - } - }, - { - "type": { - "label": "_=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "+=", - "start": 1605, - "end": 1607, - "loc": { - "start": { - "line": 53, - "column": 6 - }, - "end": { - "line": 53, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1608, - "end": 1609, - "loc": { - "start": { - "line": 53, - "column": 9 - }, - "end": { - "line": 53, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "r", - "start": 1609, - "end": 1610, - "loc": { - "start": { - "line": 53, - "column": 10 - }, - "end": { - "line": 53, - "column": 11 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": "<", - "start": 1611, - "end": 1612, - "loc": { - "start": { - "line": 53, - "column": 12 - }, - "end": { - "line": 53, - "column": 13 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0.1, - "start": 1613, - "end": 1616, - "loc": { - "start": { - "line": 53, - "column": 14 - }, - "end": { - "line": 53, - "column": 17 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1617, - "end": 1618, - "loc": { - "start": { - "line": 53, - "column": 18 - }, - "end": { - "line": 53, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 1619, - "end": 1623, - "loc": { - "start": { - "line": 53, - "column": 20 - }, - "end": { - "line": 53, - "column": 24 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1623, - "end": 1624, - "loc": { - "start": { - "line": 53, - "column": 24 - }, - "end": { - "line": 53, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "floor", - "start": 1624, - "end": 1629, - "loc": { - "start": { - "line": 53, - "column": 25 - }, - "end": { - "line": 53, - "column": 30 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1629, - "end": 1630, - "loc": { - "start": { - "line": 53, - "column": 30 - }, - "end": { - "line": 53, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "r", - "start": 1630, - "end": 1631, - "loc": { - "start": { - "line": 53, - "column": 31 - }, - "end": { - "line": 53, - "column": 32 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 1632, - "end": 1633, - "loc": { - "start": { - "line": 53, - "column": 33 - }, - "end": { - "line": 53, - "column": 34 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 100, - "start": 1634, - "end": 1637, - "loc": { - "start": { - "line": 53, - "column": 35 - }, - "end": { - "line": 53, - "column": 38 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1637, - "end": 1638, - "loc": { - "start": { - "line": 53, - "column": 38 - }, - "end": { - "line": 53, - "column": 39 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1639, - "end": 1640, - "loc": { - "start": { - "line": 53, - "column": 40 - }, - "end": { - "line": 53, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "String", - "start": 1641, - "end": 1647, - "loc": { - "start": { - "line": 53, - "column": 42 - }, - "end": { - "line": 53, - "column": 48 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1647, - "end": 1648, - "loc": { - "start": { - "line": 53, - "column": 48 - }, - "end": { - "line": 53, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fromCharCode", - "start": 1648, - "end": 1660, - "loc": { - "start": { - "line": 53, - "column": 49 - }, - "end": { - "line": 53, - "column": 61 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1660, - "end": 1661, - "loc": { - "start": { - "line": 53, - "column": 61 - }, - "end": { - "line": 53, - "column": 62 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 1661, - "end": 1665, - "loc": { - "start": { - "line": 53, - "column": 62 - }, - "end": { - "line": 53, - "column": 66 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1665, - "end": 1666, - "loc": { - "start": { - "line": 53, - "column": 66 - }, - "end": { - "line": 53, - "column": 67 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "floor", - "start": 1666, - "end": 1671, - "loc": { - "start": { - "line": 53, - "column": 67 - }, - "end": { - "line": 53, - "column": 72 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1671, - "end": 1672, - "loc": { - "start": { - "line": 53, - "column": 72 - }, - "end": { - "line": 53, - "column": 73 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "r", - "start": 1672, - "end": 1673, - "loc": { - "start": { - "line": 53, - "column": 73 - }, - "end": { - "line": 53, - "column": 74 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 1674, - "end": 1675, - "loc": { - "start": { - "line": 53, - "column": 75 - }, - "end": { - "line": 53, - "column": 76 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 26, - "start": 1676, - "end": 1678, - "loc": { - "start": { - "line": 53, - "column": 77 - }, - "end": { - "line": 53, - "column": 79 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1678, - "end": 1679, - "loc": { - "start": { - "line": 53, - "column": 79 - }, - "end": { - "line": 53, - "column": 80 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 1680, - "end": 1681, - "loc": { - "start": { - "line": 53, - "column": 81 - }, - "end": { - "line": 53, - "column": 82 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1682, - "end": 1683, - "loc": { - "start": { - "line": 53, - "column": 83 - }, - "end": { - "line": 53, - "column": 84 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "r", - "start": 1683, - "end": 1684, - "loc": { - "start": { - "line": 53, - "column": 84 - }, - "end": { - "line": 53, - "column": 85 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": ">", - "start": 1685, - "end": 1686, - "loc": { - "start": { - "line": 53, - "column": 86 - }, - "end": { - "line": 53, - "column": 87 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0.5, - "start": 1687, - "end": 1690, - "loc": { - "start": { - "line": 53, - "column": 88 - }, - "end": { - "line": 53, - "column": 91 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1691, - "end": 1692, - "loc": { - "start": { - "line": 53, - "column": 92 - }, - "end": { - "line": 53, - "column": 93 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 97, - "start": 1693, - "end": 1695, - "loc": { - "start": { - "line": 53, - "column": 94 - }, - "end": { - "line": 53, - "column": 96 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1696, - "end": 1697, - "loc": { - "start": { - "line": 53, - "column": 97 - }, - "end": { - "line": 53, - "column": 98 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 65, - "start": 1698, - "end": 1700, - "loc": { - "start": { - "line": 53, - "column": 99 - }, - "end": { - "line": 53, - "column": 101 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1700, - "end": 1701, - "loc": { - "start": { - "line": 53, - "column": 101 - }, - "end": { - "line": 53, - "column": 102 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1701, - "end": 1702, - "loc": { - "start": { - "line": 53, - "column": 102 - }, - "end": { - "line": 53, - "column": 103 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1702, - "end": 1703, - "loc": { - "start": { - "line": 53, - "column": 103 - }, - "end": { - "line": 53, - "column": 104 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1703, - "end": 1704, - "loc": { - "start": { - "line": 53, - "column": 104 - }, - "end": { - "line": 53, - "column": 105 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1707, - "end": 1708, - "loc": { - "start": { - "line": 54, - "column": 2 - }, - "end": { - "line": 54, - "column": 3 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 1711, - "end": 1717, - "loc": { - "start": { - "line": 55, - "column": 2 - }, - "end": { - "line": 55, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 1718, - "end": 1719, - "loc": { - "start": { - "line": 55, - "column": 9 - }, - "end": { - "line": 55, - "column": 10 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1719, - "end": 1720, - "loc": { - "start": { - "line": 55, - "column": 10 - }, - "end": { - "line": 55, - "column": 11 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1721, - "end": 1722, - "loc": { - "start": { - "line": 56, - "column": 0 - }, - "end": { - "line": 56, - "column": 1 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1722, - "end": 1723, - "loc": { - "start": { - "line": 56, - "column": 1 - }, - "end": { - "line": 56, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document methods\n ", - "start": 1725, - "end": 1752, - "loc": { - "start": { - "line": 58, - "column": 0 - }, - "end": { - "line": 60, - "column": 3 - } - } - }, - { - "type": { - "label": "class", - "keyword": "class", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "class", - "start": 1753, - "end": 1758, - "loc": { - "start": { - "line": 61, - "column": 0 - }, - "end": { - "line": 61, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Document", - "start": 1759, - "end": 1767, - "loc": { - "start": { - "line": 61, - "column": 6 - }, - "end": { - "line": 61, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1768, - "end": 1769, - "loc": { - "start": { - "line": 61, - "column": 15 - }, - "end": { - "line": 61, - "column": 16 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document payload\n * @typedef {Object} DocumentCreateParams\n * @property {string} filepath - path to file to be uploaded\n * @property {string} token - your auth token\n ", - "start": 1773, - "end": 1966, - "loc": { - "start": { - "line": 63, - "column": 2 - }, - "end": { - "line": 68, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document response data\n * @typedef {Object} DocumentCreateResponse\n * @property {string} id - an id of created document\n ", - "start": 1970, - "end": 2115, - "loc": { - "start": { - "line": 70, - "column": 2 - }, - "end": { - "line": 74, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Uploads a file and creates a document.\n * This endpoint accepts .pdf, .doc, .docx, .odt, .rtf, .png, .jpg, .jpeg, .gif, .bmp, .xml, .xls, .xlsx, .ppt, .pptx file types\n * @param {DocumentCreateParams} data - create document payload\n * @param {function(err: ApiErrorResponse, res: DocumentCreateResponse)} [callback] - error first node.js callback\n ", - "start": 2119, - "end": 2486, - "loc": { - "start": { - "line": 76, - "column": 2 - }, - "end": { - "line": 81, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 2489, - "end": 2495, - "loc": { - "start": { - "line": 82, - "column": 2 - }, - "end": { - "line": 82, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "create", - "start": 2496, - "end": 2502, - "loc": { - "start": { - "line": 82, - "column": 9 - }, - "end": { - "line": 82, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2503, - "end": 2504, - "loc": { - "start": { - "line": 82, - "column": 16 - }, - "end": { - "line": 82, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2504, - "end": 2505, - "loc": { - "start": { - "line": 82, - "column": 17 - }, - "end": { - "line": 82, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "filepath", - "start": 2506, - "end": 2514, - "loc": { - "start": { - "line": 82, - "column": 19 - }, - "end": { - "line": 82, - "column": 27 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2514, - "end": 2515, - "loc": { - "start": { - "line": 82, - "column": 27 - }, - "end": { - "line": 82, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 2516, - "end": 2521, - "loc": { - "start": { - "line": 82, - "column": 29 - }, - "end": { - "line": 82, - "column": 34 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2522, - "end": 2523, - "loc": { - "start": { - "line": 82, - "column": 35 - }, - "end": { - "line": 82, - "column": 36 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2523, - "end": 2524, - "loc": { - "start": { - "line": 82, - "column": 36 - }, - "end": { - "line": 82, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 2525, - "end": 2533, - "loc": { - "start": { - "line": 82, - "column": 38 - }, - "end": { - "line": 82, - "column": 46 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2533, - "end": 2534, - "loc": { - "start": { - "line": 82, - "column": 46 - }, - "end": { - "line": 82, - "column": 47 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2535, - "end": 2536, - "loc": { - "start": { - "line": 82, - "column": 48 - }, - "end": { - "line": 82, - "column": 49 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 2541, - "end": 2546, - "loc": { - "start": { - "line": 83, - "column": 4 - }, - "end": { - "line": 83, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "boundaryKey", - "start": 2547, - "end": 2558, - "loc": { - "start": { - "line": 83, - "column": 10 - }, - "end": { - "line": 83, - "column": 21 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 2559, - "end": 2560, - "loc": { - "start": { - "line": 83, - "column": 22 - }, - "end": { - "line": 83, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "randString", - "start": 2561, - "end": 2571, - "loc": { - "start": { - "line": 83, - "column": 24 - }, - "end": { - "line": 83, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2571, - "end": 2572, - "loc": { - "start": { - "line": 83, - "column": 34 - }, - "end": { - "line": 83, - "column": 35 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 30, - "start": 2572, - "end": 2574, - "loc": { - "start": { - "line": 83, - "column": 35 - }, - "end": { - "line": 83, - "column": 37 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2574, - "end": 2575, - "loc": { - "start": { - "line": 83, - "column": 37 - }, - "end": { - "line": 83, - "column": 38 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2575, - "end": 2576, - "loc": { - "start": { - "line": 83, - "column": 38 - }, - "end": { - "line": 83, - "column": 39 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 2581, - "end": 2586, - "loc": { - "start": { - "line": 84, - "column": 4 - }, - "end": { - "line": 84, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "filename", - "start": 2587, - "end": 2595, - "loc": { - "start": { - "line": 84, - "column": 10 - }, - "end": { - "line": 84, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 2596, - "end": 2597, - "loc": { - "start": { - "line": 84, - "column": 19 - }, - "end": { - "line": 84, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getFileName", - "start": 2598, - "end": 2609, - "loc": { - "start": { - "line": 84, - "column": 21 - }, - "end": { - "line": 84, - "column": 32 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2609, - "end": 2610, - "loc": { - "start": { - "line": 84, - "column": 32 - }, - "end": { - "line": 84, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "filepath", - "start": 2610, - "end": 2618, - "loc": { - "start": { - "line": 84, - "column": 33 - }, - "end": { - "line": 84, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2618, - "end": 2619, - "loc": { - "start": { - "line": 84, - "column": 41 - }, - "end": { - "line": 84, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2619, - "end": 2620, - "loc": { - "start": { - "line": 84, - "column": 42 - }, - "end": { - "line": 84, - "column": 43 - } - } - }, - { - "type": "CommentLine", - "value": " check mimetype", - "start": 2626, - "end": 2643, - "loc": { - "start": { - "line": 86, - "column": 4 - }, - "end": { - "line": 86, - "column": 21 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 2648, - "end": 2653, - "loc": { - "start": { - "line": 87, - "column": 4 - }, - "end": { - "line": 87, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "mimeType", - "start": 2654, - "end": 2662, - "loc": { - "start": { - "line": 87, - "column": 10 - }, - "end": { - "line": 87, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 2663, - "end": 2664, - "loc": { - "start": { - "line": 87, - "column": 19 - }, - "end": { - "line": 87, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getMimeType", - "start": 2665, - "end": 2676, - "loc": { - "start": { - "line": 87, - "column": 21 - }, - "end": { - "line": 87, - "column": 32 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2676, - "end": 2677, - "loc": { - "start": { - "line": 87, - "column": 32 - }, - "end": { - "line": 87, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "filepath", - "start": 2677, - "end": 2685, - "loc": { - "start": { - "line": 87, - "column": 33 - }, - "end": { - "line": 87, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2685, - "end": 2686, - "loc": { - "start": { - "line": 87, - "column": 41 - }, - "end": { - "line": 87, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2686, - "end": 2687, - "loc": { - "start": { - "line": 87, - "column": 42 - }, - "end": { - "line": 87, - "column": 43 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 2693, - "end": 2695, - "loc": { - "start": { - "line": 89, - "column": 4 - }, - "end": { - "line": 89, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2696, - "end": 2697, - "loc": { - "start": { - "line": 89, - "column": 7 - }, - "end": { - "line": 89, - "column": 8 - } - } - }, - { - "type": { - "label": "prefix", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "!", - "start": 2697, - "end": 2698, - "loc": { - "start": { - "line": 89, - "column": 8 - }, - "end": { - "line": 89, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "mimeType", - "start": 2698, - "end": 2706, - "loc": { - "start": { - "line": 89, - "column": 9 - }, - "end": { - "line": 89, - "column": 17 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2706, - "end": 2707, - "loc": { - "start": { - "line": 89, - "column": 17 - }, - "end": { - "line": 89, - "column": 18 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2708, - "end": 2709, - "loc": { - "start": { - "line": 89, - "column": 19 - }, - "end": { - "line": 89, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 2716, - "end": 2724, - "loc": { - "start": { - "line": 90, - "column": 6 - }, - "end": { - "line": 90, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2724, - "end": 2725, - "loc": { - "start": { - "line": 90, - "column": 14 - }, - "end": { - "line": 90, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "File type isn't supported.", - "start": 2725, - "end": 2754, - "loc": { - "start": { - "line": 90, - "column": 15 - }, - "end": { - "line": 90, - "column": 44 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2754, - "end": 2755, - "loc": { - "start": { - "line": 90, - "column": 44 - }, - "end": { - "line": 90, - "column": 45 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2755, - "end": 2756, - "loc": { - "start": { - "line": 90, - "column": 45 - }, - "end": { - "line": 90, - "column": 46 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 2763, - "end": 2769, - "loc": { - "start": { - "line": 91, - "column": 6 - }, - "end": { - "line": 91, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2769, - "end": 2770, - "loc": { - "start": { - "line": 91, - "column": 12 - }, - "end": { - "line": 91, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2775, - "end": 2776, - "loc": { - "start": { - "line": 92, - "column": 4 - }, - "end": { - "line": 92, - "column": 5 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 2782, - "end": 2787, - "loc": { - "start": { - "line": 94, - "column": 4 - }, - "end": { - "line": 94, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "file", - "start": 2788, - "end": 2792, - "loc": { - "start": { - "line": 94, - "column": 10 - }, - "end": { - "line": 94, - "column": 14 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 2793, - "end": 2794, - "loc": { - "start": { - "line": 94, - "column": 15 - }, - "end": { - "line": 94, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildFileRequest", - "start": 2795, - "end": 2811, - "loc": { - "start": { - "line": 94, - "column": 17 - }, - "end": { - "line": 94, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2811, - "end": 2812, - "loc": { - "start": { - "line": 94, - "column": 33 - }, - "end": { - "line": 94, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "boundaryKey", - "start": 2812, - "end": 2823, - "loc": { - "start": { - "line": 94, - "column": 34 - }, - "end": { - "line": 94, - "column": 45 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2823, - "end": 2824, - "loc": { - "start": { - "line": 94, - "column": 45 - }, - "end": { - "line": 94, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "mimeType", - "start": 2825, - "end": 2833, - "loc": { - "start": { - "line": 94, - "column": 47 - }, - "end": { - "line": 94, - "column": 55 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2833, - "end": 2834, - "loc": { - "start": { - "line": 94, - "column": 55 - }, - "end": { - "line": 94, - "column": 56 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "filename", - "start": 2835, - "end": 2843, - "loc": { - "start": { - "line": 94, - "column": 57 - }, - "end": { - "line": 94, - "column": 65 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2843, - "end": 2844, - "loc": { - "start": { - "line": 94, - "column": 65 - }, - "end": { - "line": 94, - "column": 66 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2844, - "end": 2845, - "loc": { - "start": { - "line": 94, - "column": 66 - }, - "end": { - "line": 94, - "column": 67 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 2850, - "end": 2855, - "loc": { - "start": { - "line": 95, - "column": 4 - }, - "end": { - "line": 95, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "stat", - "start": 2856, - "end": 2860, - "loc": { - "start": { - "line": 95, - "column": 10 - }, - "end": { - "line": 95, - "column": 14 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 2861, - "end": 2862, - "loc": { - "start": { - "line": 95, - "column": 15 - }, - "end": { - "line": 95, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fs", - "start": 2863, - "end": 2865, - "loc": { - "start": { - "line": 95, - "column": 17 - }, - "end": { - "line": 95, - "column": 19 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2865, - "end": 2866, - "loc": { - "start": { - "line": 95, - "column": 19 - }, - "end": { - "line": 95, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "statSync", - "start": 2866, - "end": 2874, - "loc": { - "start": { - "line": 95, - "column": 20 - }, - "end": { - "line": 95, - "column": 28 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2874, - "end": 2875, - "loc": { - "start": { - "line": 95, - "column": 28 - }, - "end": { - "line": 95, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "filepath", - "start": 2875, - "end": 2883, - "loc": { - "start": { - "line": 95, - "column": 29 - }, - "end": { - "line": 95, - "column": 37 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2883, - "end": 2884, - "loc": { - "start": { - "line": 95, - "column": 37 - }, - "end": { - "line": 95, - "column": 38 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2884, - "end": 2885, - "loc": { - "start": { - "line": 95, - "column": 38 - }, - "end": { - "line": 95, - "column": 39 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 2890, - "end": 2895, - "loc": { - "start": { - "line": 96, - "column": 4 - }, - "end": { - "line": 96, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "reader", - "start": 2896, - "end": 2902, - "loc": { - "start": { - "line": 96, - "column": 10 - }, - "end": { - "line": 96, - "column": 16 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 2903, - "end": 2904, - "loc": { - "start": { - "line": 96, - "column": 17 - }, - "end": { - "line": 96, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fs", - "start": 2905, - "end": 2907, - "loc": { - "start": { - "line": 96, - "column": 19 - }, - "end": { - "line": 96, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2907, - "end": 2908, - "loc": { - "start": { - "line": 96, - "column": 21 - }, - "end": { - "line": 96, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "createReadStream", - "start": 2908, - "end": 2924, - "loc": { - "start": { - "line": 96, - "column": 22 - }, - "end": { - "line": 96, - "column": 38 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2924, - "end": 2925, - "loc": { - "start": { - "line": 96, - "column": 38 - }, - "end": { - "line": 96, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "filepath", - "start": 2925, - "end": 2933, - "loc": { - "start": { - "line": 96, - "column": 39 - }, - "end": { - "line": 96, - "column": 47 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2933, - "end": 2934, - "loc": { - "start": { - "line": 96, - "column": 47 - }, - "end": { - "line": 96, - "column": 48 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2935, - "end": 2936, - "loc": { - "start": { - "line": 96, - "column": 49 - }, - "end": { - "line": 96, - "column": 50 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "bufferSize", - "start": 2937, - "end": 2947, - "loc": { - "start": { - "line": 96, - "column": 51 - }, - "end": { - "line": 96, - "column": 61 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2947, - "end": 2948, - "loc": { - "start": { - "line": 96, - "column": 61 - }, - "end": { - "line": 96, - "column": 62 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 64, - "start": 2949, - "end": 2951, - "loc": { - "start": { - "line": 96, - "column": 63 - }, - "end": { - "line": 96, - "column": 65 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 2952, - "end": 2953, - "loc": { - "start": { - "line": 96, - "column": 66 - }, - "end": { - "line": 96, - "column": 67 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1024, - "start": 2954, - "end": 2958, - "loc": { - "start": { - "line": 96, - "column": 68 - }, - "end": { - "line": 96, - "column": 72 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2959, - "end": 2960, - "loc": { - "start": { - "line": 96, - "column": 73 - }, - "end": { - "line": 96, - "column": 74 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2960, - "end": 2961, - "loc": { - "start": { - "line": 96, - "column": 74 - }, - "end": { - "line": 96, - "column": 75 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2961, - "end": 2962, - "loc": { - "start": { - "line": 96, - "column": 75 - }, - "end": { - "line": 96, - "column": 76 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 2967, - "end": 2972, - "loc": { - "start": { - "line": 97, - "column": 4 - }, - "end": { - "line": 97, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "closingLine", - "start": 2973, - "end": 2984, - "loc": { - "start": { - "line": 97, - "column": 10 - }, - "end": { - "line": 97, - "column": 21 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 2985, - "end": 2986, - "loc": { - "start": { - "line": 97, - "column": 22 - }, - "end": { - "line": 97, - "column": 23 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2987, - "end": 2988, - "loc": { - "start": { - "line": 97, - "column": 24 - }, - "end": { - "line": 97, - "column": 25 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\r\n------FormBoundary", - "start": 2988, - "end": 3010, - "loc": { - "start": { - "line": 97, - "column": 25 - }, - "end": { - "line": 97, - "column": 47 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3010, - "end": 3012, - "loc": { - "start": { - "line": 97, - "column": 47 - }, - "end": { - "line": 97, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "boundaryKey", - "start": 3012, - "end": 3023, - "loc": { - "start": { - "line": 97, - "column": 49 - }, - "end": { - "line": 97, - "column": 60 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3023, - "end": 3024, - "loc": { - "start": { - "line": 97, - "column": 60 - }, - "end": { - "line": 97, - "column": 61 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "--", - "start": 3024, - "end": 3026, - "loc": { - "start": { - "line": 97, - "column": 61 - }, - "end": { - "line": 97, - "column": 63 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3026, - "end": 3027, - "loc": { - "start": { - "line": 97, - "column": 63 - }, - "end": { - "line": 97, - "column": 64 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3027, - "end": 3028, - "loc": { - "start": { - "line": 97, - "column": 64 - }, - "end": { - "line": 97, - "column": 65 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 3033, - "end": 3038, - "loc": { - "start": { - "line": 98, - "column": 4 - }, - "end": { - "line": 98, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 3039, - "end": 3042, - "loc": { - "start": { - "line": 98, - "column": 10 - }, - "end": { - "line": 98, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 3043, - "end": 3044, - "loc": { - "start": { - "line": 98, - "column": 14 - }, - "end": { - "line": 98, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 3045, - "end": 3050, - "loc": { - "start": { - "line": 98, - "column": 16 - }, - "end": { - "line": 98, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3057, - "end": 3058, - "loc": { - "start": { - "line": 99, - "column": 6 - }, - "end": { - "line": 99, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 3058, - "end": 3065, - "loc": { - "start": { - "line": 99, - "column": 7 - }, - "end": { - "line": 99, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3065, - "end": 3066, - "loc": { - "start": { - "line": 99, - "column": 14 - }, - "end": { - "line": 99, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 3066, - "end": 3085, - "loc": { - "start": { - "line": 99, - "column": 15 - }, - "end": { - "line": 99, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3085, - "end": 3086, - "loc": { - "start": { - "line": 99, - "column": 34 - }, - "end": { - "line": 99, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3086, - "end": 3087, - "loc": { - "start": { - "line": 99, - "column": 35 - }, - "end": { - "line": 99, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 3096, - "end": 3102, - "loc": { - "start": { - "line": 100, - "column": 8 - }, - "end": { - "line": 100, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3102, - "end": 3103, - "loc": { - "start": { - "line": 100, - "column": 14 - }, - "end": { - "line": 100, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "POST", - "start": 3104, - "end": 3110, - "loc": { - "start": { - "line": 100, - "column": 16 - }, - "end": { - "line": 100, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3110, - "end": 3111, - "loc": { - "start": { - "line": 100, - "column": 22 - }, - "end": { - "line": 100, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 3120, - "end": 3124, - "loc": { - "start": { - "line": 101, - "column": 8 - }, - "end": { - "line": 101, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3124, - "end": 3125, - "loc": { - "start": { - "line": 101, - "column": 12 - }, - "end": { - "line": 101, - "column": 13 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/document", - "start": 3126, - "end": 3137, - "loc": { - "start": { - "line": 101, - "column": 14 - }, - "end": { - "line": 101, - "column": 25 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3137, - "end": 3138, - "loc": { - "start": { - "line": 101, - "column": 25 - }, - "end": { - "line": 101, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 3147, - "end": 3160, - "loc": { - "start": { - "line": 102, - "column": 8 - }, - "end": { - "line": 102, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3160, - "end": 3161, - "loc": { - "start": { - "line": 102, - "column": 21 - }, - "end": { - "line": 102, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3162, - "end": 3163, - "loc": { - "start": { - "line": 102, - "column": 23 - }, - "end": { - "line": 102, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 3174, - "end": 3178, - "loc": { - "start": { - "line": 103, - "column": 10 - }, - "end": { - "line": 103, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3178, - "end": 3179, - "loc": { - "start": { - "line": 103, - "column": 14 - }, - "end": { - "line": 103, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 3180, - "end": 3188, - "loc": { - "start": { - "line": 103, - "column": 16 - }, - "end": { - "line": 103, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3188, - "end": 3189, - "loc": { - "start": { - "line": 103, - "column": 24 - }, - "end": { - "line": 103, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 3200, - "end": 3205, - "loc": { - "start": { - "line": 104, - "column": 10 - }, - "end": { - "line": 104, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3205, - "end": 3206, - "loc": { - "start": { - "line": 104, - "column": 15 - }, - "end": { - "line": 104, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3215, - "end": 3216, - "loc": { - "start": { - "line": 105, - "column": 8 - }, - "end": { - "line": 105, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3216, - "end": 3217, - "loc": { - "start": { - "line": 105, - "column": 9 - }, - "end": { - "line": 105, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 3226, - "end": 3233, - "loc": { - "start": { - "line": 106, - "column": 8 - }, - "end": { - "line": 106, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3233, - "end": 3234, - "loc": { - "start": { - "line": 106, - "column": 15 - }, - "end": { - "line": 106, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3235, - "end": 3236, - "loc": { - "start": { - "line": 106, - "column": 17 - }, - "end": { - "line": 106, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type", - "start": 3247, - "end": 3261, - "loc": { - "start": { - "line": 107, - "column": 10 - }, - "end": { - "line": 107, - "column": 24 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3261, - "end": 3262, - "loc": { - "start": { - "line": 107, - "column": 24 - }, - "end": { - "line": 107, - "column": 25 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3263, - "end": 3264, - "loc": { - "start": { - "line": 107, - "column": 26 - }, - "end": { - "line": 107, - "column": 27 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "multipart/form-data; boundary=----FormBoundary", - "start": 3264, - "end": 3310, - "loc": { - "start": { - "line": 107, - "column": 27 - }, - "end": { - "line": 107, - "column": 73 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3310, - "end": 3312, - "loc": { - "start": { - "line": 107, - "column": 73 - }, - "end": { - "line": 107, - "column": 75 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "boundaryKey", - "start": 3312, - "end": 3323, - "loc": { - "start": { - "line": 107, - "column": 75 - }, - "end": { - "line": 107, - "column": 86 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3323, - "end": 3324, - "loc": { - "start": { - "line": 107, - "column": 86 - }, - "end": { - "line": 107, - "column": 87 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 3324, - "end": 3324, - "loc": { - "start": { - "line": 107, - "column": 87 - }, - "end": { - "line": 107, - "column": 87 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3324, - "end": 3325, - "loc": { - "start": { - "line": 107, - "column": 87 - }, - "end": { - "line": 107, - "column": 88 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3325, - "end": 3326, - "loc": { - "start": { - "line": 107, - "column": 88 - }, - "end": { - "line": 107, - "column": 89 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Length", - "start": 3337, - "end": 3353, - "loc": { - "start": { - "line": 108, - "column": 10 - }, - "end": { - "line": 108, - "column": 26 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3353, - "end": 3354, - "loc": { - "start": { - "line": 108, - "column": 26 - }, - "end": { - "line": 108, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "stat", - "start": 3355, - "end": 3359, - "loc": { - "start": { - "line": 108, - "column": 28 - }, - "end": { - "line": 108, - "column": 32 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3359, - "end": 3360, - "loc": { - "start": { - "line": 108, - "column": 32 - }, - "end": { - "line": 108, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "size", - "start": 3360, - "end": 3364, - "loc": { - "start": { - "line": 108, - "column": 33 - }, - "end": { - "line": 108, - "column": 37 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 3365, - "end": 3366, - "loc": { - "start": { - "line": 108, - "column": 38 - }, - "end": { - "line": 108, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "file", - "start": 3367, - "end": 3371, - "loc": { - "start": { - "line": 108, - "column": 40 - }, - "end": { - "line": 108, - "column": 44 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3371, - "end": 3372, - "loc": { - "start": { - "line": 108, - "column": 44 - }, - "end": { - "line": 108, - "column": 45 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "toString", - "start": 3372, - "end": 3380, - "loc": { - "start": { - "line": 108, - "column": 45 - }, - "end": { - "line": 108, - "column": 53 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3380, - "end": 3381, - "loc": { - "start": { - "line": 108, - "column": 53 - }, - "end": { - "line": 108, - "column": 54 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3381, - "end": 3382, - "loc": { - "start": { - "line": 108, - "column": 54 - }, - "end": { - "line": 108, - "column": 55 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3382, - "end": 3383, - "loc": { - "start": { - "line": 108, - "column": 55 - }, - "end": { - "line": 108, - "column": 56 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "length", - "start": 3383, - "end": 3389, - "loc": { - "start": { - "line": 108, - "column": 56 - }, - "end": { - "line": 108, - "column": 62 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 3390, - "end": 3391, - "loc": { - "start": { - "line": 108, - "column": 63 - }, - "end": { - "line": 108, - "column": 64 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "closingLine", - "start": 3392, - "end": 3403, - "loc": { - "start": { - "line": 108, - "column": 65 - }, - "end": { - "line": 108, - "column": 76 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3403, - "end": 3404, - "loc": { - "start": { - "line": 108, - "column": 76 - }, - "end": { - "line": 108, - "column": 77 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "length", - "start": 3404, - "end": 3410, - "loc": { - "start": { - "line": 108, - "column": 77 - }, - "end": { - "line": 108, - "column": 83 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3410, - "end": 3411, - "loc": { - "start": { - "line": 108, - "column": 83 - }, - "end": { - "line": 108, - "column": 84 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3420, - "end": 3421, - "loc": { - "start": { - "line": 109, - "column": 8 - }, - "end": { - "line": 109, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3421, - "end": 3422, - "loc": { - "start": { - "line": 109, - "column": 9 - }, - "end": { - "line": 109, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3429, - "end": 3430, - "loc": { - "start": { - "line": 110, - "column": 6 - }, - "end": { - "line": 110, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3430, - "end": 3431, - "loc": { - "start": { - "line": 110, - "column": 7 - }, - "end": { - "line": 110, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3431, - "end": 3432, - "loc": { - "start": { - "line": 110, - "column": 8 - }, - "end": { - "line": 110, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 3433, - "end": 3448, - "loc": { - "start": { - "line": 110, - "column": 10 - }, - "end": { - "line": 110, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3448, - "end": 3449, - "loc": { - "start": { - "line": 110, - "column": 25 - }, - "end": { - "line": 110, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 3449, - "end": 3457, - "loc": { - "start": { - "line": 110, - "column": 26 - }, - "end": { - "line": 110, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3457, - "end": 3458, - "loc": { - "start": { - "line": 110, - "column": 34 - }, - "end": { - "line": 110, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3458, - "end": 3459, - "loc": { - "start": { - "line": 110, - "column": 35 - }, - "end": { - "line": 110, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3466, - "end": 3467, - "loc": { - "start": { - "line": 111, - "column": 6 - }, - "end": { - "line": 111, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 3467, - "end": 3469, - "loc": { - "start": { - "line": 111, - "column": 7 - }, - "end": { - "line": 111, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3469, - "end": 3470, - "loc": { - "start": { - "line": 111, - "column": 9 - }, - "end": { - "line": 111, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 3470, - "end": 3477, - "loc": { - "start": { - "line": 111, - "column": 10 - }, - "end": { - "line": 111, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3477, - "end": 3478, - "loc": { - "start": { - "line": 111, - "column": 17 - }, - "end": { - "line": 111, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 3479, - "end": 3491, - "loc": { - "start": { - "line": 111, - "column": 19 - }, - "end": { - "line": 111, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3491, - "end": 3492, - "loc": { - "start": { - "line": 111, - "column": 31 - }, - "end": { - "line": 111, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 3492, - "end": 3500, - "loc": { - "start": { - "line": 111, - "column": 32 - }, - "end": { - "line": 111, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3500, - "end": 3501, - "loc": { - "start": { - "line": 111, - "column": 40 - }, - "end": { - "line": 111, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3501, - "end": 3502, - "loc": { - "start": { - "line": 111, - "column": 41 - }, - "end": { - "line": 111, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3502, - "end": 3503, - "loc": { - "start": { - "line": 111, - "column": 42 - }, - "end": { - "line": 111, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 3509, - "end": 3512, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 113, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3512, - "end": 3513, - "loc": { - "start": { - "line": 113, - "column": 7 - }, - "end": { - "line": 113, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "write", - "start": 3513, - "end": 3518, - "loc": { - "start": { - "line": 113, - "column": 8 - }, - "end": { - "line": 113, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3518, - "end": 3519, - "loc": { - "start": { - "line": 113, - "column": 13 - }, - "end": { - "line": 113, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "file", - "start": 3519, - "end": 3523, - "loc": { - "start": { - "line": 113, - "column": 14 - }, - "end": { - "line": 113, - "column": 18 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3523, - "end": 3524, - "loc": { - "start": { - "line": 113, - "column": 18 - }, - "end": { - "line": 113, - "column": 19 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3524, - "end": 3525, - "loc": { - "start": { - "line": 113, - "column": 19 - }, - "end": { - "line": 113, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "reader", - "start": 3530, - "end": 3536, - "loc": { - "start": { - "line": 114, - "column": 4 - }, - "end": { - "line": 114, - "column": 10 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3536, - "end": 3537, - "loc": { - "start": { - "line": 114, - "column": 10 - }, - "end": { - "line": 114, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 3537, - "end": 3539, - "loc": { - "start": { - "line": 114, - "column": 11 - }, - "end": { - "line": 114, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3539, - "end": 3540, - "loc": { - "start": { - "line": 114, - "column": 13 - }, - "end": { - "line": 114, - "column": 14 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "end", - "start": 3540, - "end": 3545, - "loc": { - "start": { - "line": 114, - "column": 14 - }, - "end": { - "line": 114, - "column": 19 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3545, - "end": 3546, - "loc": { - "start": { - "line": 114, - "column": 19 - }, - "end": { - "line": 114, - "column": 20 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3547, - "end": 3548, - "loc": { - "start": { - "line": 114, - "column": 21 - }, - "end": { - "line": 114, - "column": 22 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3548, - "end": 3549, - "loc": { - "start": { - "line": 114, - "column": 22 - }, - "end": { - "line": 114, - "column": 23 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3550, - "end": 3552, - "loc": { - "start": { - "line": 114, - "column": 24 - }, - "end": { - "line": 114, - "column": 26 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3553, - "end": 3554, - "loc": { - "start": { - "line": 114, - "column": 27 - }, - "end": { - "line": 114, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "reader", - "start": 3561, - "end": 3567, - "loc": { - "start": { - "line": 115, - "column": 6 - }, - "end": { - "line": 115, - "column": 12 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3567, - "end": 3568, - "loc": { - "start": { - "line": 115, - "column": 12 - }, - "end": { - "line": 115, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "unpipe", - "start": 3568, - "end": 3574, - "loc": { - "start": { - "line": 115, - "column": 13 - }, - "end": { - "line": 115, - "column": 19 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3574, - "end": 3575, - "loc": { - "start": { - "line": 115, - "column": 19 - }, - "end": { - "line": 115, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 3575, - "end": 3578, - "loc": { - "start": { - "line": 115, - "column": 20 - }, - "end": { - "line": 115, - "column": 23 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3578, - "end": 3579, - "loc": { - "start": { - "line": 115, - "column": 23 - }, - "end": { - "line": 115, - "column": 24 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3579, - "end": 3580, - "loc": { - "start": { - "line": 115, - "column": 24 - }, - "end": { - "line": 115, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 3587, - "end": 3590, - "loc": { - "start": { - "line": 116, - "column": 6 - }, - "end": { - "line": 116, - "column": 9 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3590, - "end": 3591, - "loc": { - "start": { - "line": 116, - "column": 9 - }, - "end": { - "line": 116, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 3591, - "end": 3594, - "loc": { - "start": { - "line": 116, - "column": 10 - }, - "end": { - "line": 116, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3594, - "end": 3595, - "loc": { - "start": { - "line": 116, - "column": 13 - }, - "end": { - "line": 116, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "closingLine", - "start": 3595, - "end": 3606, - "loc": { - "start": { - "line": 116, - "column": 14 - }, - "end": { - "line": 116, - "column": 25 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3606, - "end": 3607, - "loc": { - "start": { - "line": 116, - "column": 25 - }, - "end": { - "line": 116, - "column": 26 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3607, - "end": 3608, - "loc": { - "start": { - "line": 116, - "column": 26 - }, - "end": { - "line": 116, - "column": 27 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3613, - "end": 3614, - "loc": { - "start": { - "line": 117, - "column": 4 - }, - "end": { - "line": 117, - "column": 5 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3614, - "end": 3615, - "loc": { - "start": { - "line": 117, - "column": 5 - }, - "end": { - "line": 117, - "column": 6 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3615, - "end": 3616, - "loc": { - "start": { - "line": 117, - "column": 6 - }, - "end": { - "line": 117, - "column": 7 - } - } - }, - { - "type": "CommentLine", - "value": " pipe the file and append a closing line", - "start": 3622, - "end": 3664, - "loc": { - "start": { - "line": 119, - "column": 4 - }, - "end": { - "line": 119, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "reader", - "start": 3669, - "end": 3675, - "loc": { - "start": { - "line": 120, - "column": 4 - }, - "end": { - "line": 120, - "column": 10 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3675, - "end": 3676, - "loc": { - "start": { - "line": 120, - "column": 10 - }, - "end": { - "line": 120, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pipe", - "start": 3676, - "end": 3680, - "loc": { - "start": { - "line": 120, - "column": 11 - }, - "end": { - "line": 120, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3680, - "end": 3681, - "loc": { - "start": { - "line": 120, - "column": 15 - }, - "end": { - "line": 120, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 3681, - "end": 3684, - "loc": { - "start": { - "line": 120, - "column": 16 - }, - "end": { - "line": 120, - "column": 19 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3684, - "end": 3685, - "loc": { - "start": { - "line": 120, - "column": 19 - }, - "end": { - "line": 120, - "column": 20 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3686, - "end": 3687, - "loc": { - "start": { - "line": 120, - "column": 21 - }, - "end": { - "line": 120, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 3688, - "end": 3691, - "loc": { - "start": { - "line": 120, - "column": 23 - }, - "end": { - "line": 120, - "column": 26 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3691, - "end": 3692, - "loc": { - "start": { - "line": 120, - "column": 26 - }, - "end": { - "line": 120, - "column": 27 - } - } - }, - { - "type": { - "label": "false", - "keyword": "false", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "false", - "start": 3693, - "end": 3698, - "loc": { - "start": { - "line": 120, - "column": 28 - }, - "end": { - "line": 120, - "column": 33 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3699, - "end": 3700, - "loc": { - "start": { - "line": 120, - "column": 34 - }, - "end": { - "line": 120, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3700, - "end": 3701, - "loc": { - "start": { - "line": 120, - "column": 35 - }, - "end": { - "line": 120, - "column": 36 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3701, - "end": 3702, - "loc": { - "start": { - "line": 120, - "column": 36 - }, - "end": { - "line": 120, - "column": 37 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3705, - "end": 3706, - "loc": { - "start": { - "line": 121, - "column": 2 - }, - "end": { - "line": 121, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Upload document with field extract payload\n * @typedef {Object} DocumentFieldExtractParams\n * @property {string} filepath - path to file to be uploaded\n * @property {string} token - your auth token\n ", - "start": 3710, - "end": 3928, - "loc": { - "start": { - "line": 123, - "column": 2 - }, - "end": { - "line": 128, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Upload document with field extract response data\n * @typedef {Object} DocumentFieldExtractResponse\n * @property {string} id - an id of created document\n ", - "start": 3932, - "end": 4102, - "loc": { - "start": { - "line": 130, - "column": 2 - }, - "end": { - "line": 134, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Uploads a file that contains SignNow Document Field Tags.\n * This endpoint only accepts .pdf (you may convert the document from .doc or .docx to .pdf)\n * @param {DocumentFieldExtractParams} data - upload document with field extract payload\n * @param {function(err: ApiErrorResponse, res: DocumentFieldExtractResponse)} [callback] - error first node.js callback\n ", - "start": 4106, - "end": 4487, - "loc": { - "start": { - "line": 136, - "column": 2 - }, - "end": { - "line": 141, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 4490, - "end": 4496, - "loc": { - "start": { - "line": 142, - "column": 2 - }, - "end": { - "line": 142, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fieldextract", - "start": 4497, - "end": 4509, - "loc": { - "start": { - "line": 142, - "column": 9 - }, - "end": { - "line": 142, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4510, - "end": 4511, - "loc": { - "start": { - "line": 142, - "column": 22 - }, - "end": { - "line": 142, - "column": 23 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4511, - "end": 4512, - "loc": { - "start": { - "line": 142, - "column": 23 - }, - "end": { - "line": 142, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "filepath", - "start": 4513, - "end": 4521, - "loc": { - "start": { - "line": 142, - "column": 25 - }, - "end": { - "line": 142, - "column": 33 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4521, - "end": 4522, - "loc": { - "start": { - "line": 142, - "column": 33 - }, - "end": { - "line": 142, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 4523, - "end": 4528, - "loc": { - "start": { - "line": 142, - "column": 35 - }, - "end": { - "line": 142, - "column": 40 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4529, - "end": 4530, - "loc": { - "start": { - "line": 142, - "column": 41 - }, - "end": { - "line": 142, - "column": 42 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4530, - "end": 4531, - "loc": { - "start": { - "line": 142, - "column": 42 - }, - "end": { - "line": 142, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 4532, - "end": 4540, - "loc": { - "start": { - "line": 142, - "column": 44 - }, - "end": { - "line": 142, - "column": 52 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4540, - "end": 4541, - "loc": { - "start": { - "line": 142, - "column": 52 - }, - "end": { - "line": 142, - "column": 53 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4542, - "end": 4543, - "loc": { - "start": { - "line": 142, - "column": 54 - }, - "end": { - "line": 142, - "column": 55 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 4548, - "end": 4553, - "loc": { - "start": { - "line": 143, - "column": 4 - }, - "end": { - "line": 143, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "boundaryKey", - "start": 4554, - "end": 4565, - "loc": { - "start": { - "line": 143, - "column": 10 - }, - "end": { - "line": 143, - "column": 21 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 4566, - "end": 4567, - "loc": { - "start": { - "line": 143, - "column": 22 - }, - "end": { - "line": 143, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "randString", - "start": 4568, - "end": 4578, - "loc": { - "start": { - "line": 143, - "column": 24 - }, - "end": { - "line": 143, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4578, - "end": 4579, - "loc": { - "start": { - "line": 143, - "column": 34 - }, - "end": { - "line": 143, - "column": 35 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 30, - "start": 4579, - "end": 4581, - "loc": { - "start": { - "line": 143, - "column": 35 - }, - "end": { - "line": 143, - "column": 37 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4581, - "end": 4582, - "loc": { - "start": { - "line": 143, - "column": 37 - }, - "end": { - "line": 143, - "column": 38 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4582, - "end": 4583, - "loc": { - "start": { - "line": 143, - "column": 38 - }, - "end": { - "line": 143, - "column": 39 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 4588, - "end": 4593, - "loc": { - "start": { - "line": 144, - "column": 4 - }, - "end": { - "line": 144, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "filename", - "start": 4594, - "end": 4602, - "loc": { - "start": { - "line": 144, - "column": 10 - }, - "end": { - "line": 144, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 4603, - "end": 4604, - "loc": { - "start": { - "line": 144, - "column": 19 - }, - "end": { - "line": 144, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getFileName", - "start": 4605, - "end": 4616, - "loc": { - "start": { - "line": 144, - "column": 21 - }, - "end": { - "line": 144, - "column": 32 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4616, - "end": 4617, - "loc": { - "start": { - "line": 144, - "column": 32 - }, - "end": { - "line": 144, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "filepath", - "start": 4617, - "end": 4625, - "loc": { - "start": { - "line": 144, - "column": 33 - }, - "end": { - "line": 144, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4625, - "end": 4626, - "loc": { - "start": { - "line": 144, - "column": 41 - }, - "end": { - "line": 144, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4626, - "end": 4627, - "loc": { - "start": { - "line": 144, - "column": 42 - }, - "end": { - "line": 144, - "column": 43 - } - } - }, - { - "type": "CommentLine", - "value": " check mimetype", - "start": 4633, - "end": 4650, - "loc": { - "start": { - "line": 146, - "column": 4 - }, - "end": { - "line": 146, - "column": 21 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 4655, - "end": 4660, - "loc": { - "start": { - "line": 147, - "column": 4 - }, - "end": { - "line": 147, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "mimeType", - "start": 4661, - "end": 4669, - "loc": { - "start": { - "line": 147, - "column": 10 - }, - "end": { - "line": 147, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 4670, - "end": 4671, - "loc": { - "start": { - "line": 147, - "column": 19 - }, - "end": { - "line": 147, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getMimeType", - "start": 4672, - "end": 4683, - "loc": { - "start": { - "line": 147, - "column": 21 - }, - "end": { - "line": 147, - "column": 32 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4683, - "end": 4684, - "loc": { - "start": { - "line": 147, - "column": 32 - }, - "end": { - "line": 147, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "filepath", - "start": 4684, - "end": 4692, - "loc": { - "start": { - "line": 147, - "column": 33 - }, - "end": { - "line": 147, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4692, - "end": 4693, - "loc": { - "start": { - "line": 147, - "column": 41 - }, - "end": { - "line": 147, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4693, - "end": 4694, - "loc": { - "start": { - "line": 147, - "column": 42 - }, - "end": { - "line": 147, - "column": 43 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 4700, - "end": 4702, - "loc": { - "start": { - "line": 149, - "column": 4 - }, - "end": { - "line": 149, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4703, - "end": 4704, - "loc": { - "start": { - "line": 149, - "column": 7 - }, - "end": { - "line": 149, - "column": 8 - } - } - }, - { - "type": { - "label": "prefix", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "!", - "start": 4704, - "end": 4705, - "loc": { - "start": { - "line": 149, - "column": 8 - }, - "end": { - "line": 149, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "mimeType", - "start": 4705, - "end": 4713, - "loc": { - "start": { - "line": 149, - "column": 9 - }, - "end": { - "line": 149, - "column": 17 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4713, - "end": 4714, - "loc": { - "start": { - "line": 149, - "column": 17 - }, - "end": { - "line": 149, - "column": 18 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4715, - "end": 4716, - "loc": { - "start": { - "line": 149, - "column": 19 - }, - "end": { - "line": 149, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 4723, - "end": 4731, - "loc": { - "start": { - "line": 150, - "column": 6 - }, - "end": { - "line": 150, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4731, - "end": 4732, - "loc": { - "start": { - "line": 150, - "column": 14 - }, - "end": { - "line": 150, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "File type isn't supported.", - "start": 4732, - "end": 4761, - "loc": { - "start": { - "line": 150, - "column": 15 - }, - "end": { - "line": 150, - "column": 44 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4761, - "end": 4762, - "loc": { - "start": { - "line": 150, - "column": 44 - }, - "end": { - "line": 150, - "column": 45 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4762, - "end": 4763, - "loc": { - "start": { - "line": 150, - "column": 45 - }, - "end": { - "line": 150, - "column": 46 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 4770, - "end": 4776, - "loc": { - "start": { - "line": 151, - "column": 6 - }, - "end": { - "line": 151, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4776, - "end": 4777, - "loc": { - "start": { - "line": 151, - "column": 12 - }, - "end": { - "line": 151, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4782, - "end": 4783, - "loc": { - "start": { - "line": 152, - "column": 4 - }, - "end": { - "line": 152, - "column": 5 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 4789, - "end": 4794, - "loc": { - "start": { - "line": 154, - "column": 4 - }, - "end": { - "line": 154, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "file", - "start": 4795, - "end": 4799, - "loc": { - "start": { - "line": 154, - "column": 10 - }, - "end": { - "line": 154, - "column": 14 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 4800, - "end": 4801, - "loc": { - "start": { - "line": 154, - "column": 15 - }, - "end": { - "line": 154, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildFileRequest", - "start": 4802, - "end": 4818, - "loc": { - "start": { - "line": 154, - "column": 17 - }, - "end": { - "line": 154, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4818, - "end": 4819, - "loc": { - "start": { - "line": 154, - "column": 33 - }, - "end": { - "line": 154, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "boundaryKey", - "start": 4819, - "end": 4830, - "loc": { - "start": { - "line": 154, - "column": 34 - }, - "end": { - "line": 154, - "column": 45 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4830, - "end": 4831, - "loc": { - "start": { - "line": 154, - "column": 45 - }, - "end": { - "line": 154, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "mimeType", - "start": 4832, - "end": 4840, - "loc": { - "start": { - "line": 154, - "column": 47 - }, - "end": { - "line": 154, - "column": 55 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4840, - "end": 4841, - "loc": { - "start": { - "line": 154, - "column": 55 - }, - "end": { - "line": 154, - "column": 56 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "filename", - "start": 4842, - "end": 4850, - "loc": { - "start": { - "line": 154, - "column": 57 - }, - "end": { - "line": 154, - "column": 65 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4850, - "end": 4851, - "loc": { - "start": { - "line": 154, - "column": 65 - }, - "end": { - "line": 154, - "column": 66 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4851, - "end": 4852, - "loc": { - "start": { - "line": 154, - "column": 66 - }, - "end": { - "line": 154, - "column": 67 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 4857, - "end": 4862, - "loc": { - "start": { - "line": 155, - "column": 4 - }, - "end": { - "line": 155, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "stat", - "start": 4863, - "end": 4867, - "loc": { - "start": { - "line": 155, - "column": 10 - }, - "end": { - "line": 155, - "column": 14 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 4868, - "end": 4869, - "loc": { - "start": { - "line": 155, - "column": 15 - }, - "end": { - "line": 155, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fs", - "start": 4870, - "end": 4872, - "loc": { - "start": { - "line": 155, - "column": 17 - }, - "end": { - "line": 155, - "column": 19 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4872, - "end": 4873, - "loc": { - "start": { - "line": 155, - "column": 19 - }, - "end": { - "line": 155, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "statSync", - "start": 4873, - "end": 4881, - "loc": { - "start": { - "line": 155, - "column": 20 - }, - "end": { - "line": 155, - "column": 28 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4881, - "end": 4882, - "loc": { - "start": { - "line": 155, - "column": 28 - }, - "end": { - "line": 155, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "filepath", - "start": 4882, - "end": 4890, - "loc": { - "start": { - "line": 155, - "column": 29 - }, - "end": { - "line": 155, - "column": 37 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4890, - "end": 4891, - "loc": { - "start": { - "line": 155, - "column": 37 - }, - "end": { - "line": 155, - "column": 38 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4891, - "end": 4892, - "loc": { - "start": { - "line": 155, - "column": 38 - }, - "end": { - "line": 155, - "column": 39 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 4897, - "end": 4902, - "loc": { - "start": { - "line": 156, - "column": 4 - }, - "end": { - "line": 156, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "reader", - "start": 4903, - "end": 4909, - "loc": { - "start": { - "line": 156, - "column": 10 - }, - "end": { - "line": 156, - "column": 16 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 4910, - "end": 4911, - "loc": { - "start": { - "line": 156, - "column": 17 - }, - "end": { - "line": 156, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fs", - "start": 4912, - "end": 4914, - "loc": { - "start": { - "line": 156, - "column": 19 - }, - "end": { - "line": 156, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4914, - "end": 4915, - "loc": { - "start": { - "line": 156, - "column": 21 - }, - "end": { - "line": 156, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "createReadStream", - "start": 4915, - "end": 4931, - "loc": { - "start": { - "line": 156, - "column": 22 - }, - "end": { - "line": 156, - "column": 38 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4931, - "end": 4932, - "loc": { - "start": { - "line": 156, - "column": 38 - }, - "end": { - "line": 156, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "filepath", - "start": 4932, - "end": 4940, - "loc": { - "start": { - "line": 156, - "column": 39 - }, - "end": { - "line": 156, - "column": 47 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4940, - "end": 4941, - "loc": { - "start": { - "line": 156, - "column": 47 - }, - "end": { - "line": 156, - "column": 48 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4942, - "end": 4943, - "loc": { - "start": { - "line": 156, - "column": 49 - }, - "end": { - "line": 156, - "column": 50 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "bufferSize", - "start": 4944, - "end": 4954, - "loc": { - "start": { - "line": 156, - "column": 51 - }, - "end": { - "line": 156, - "column": 61 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4954, - "end": 4955, - "loc": { - "start": { - "line": 156, - "column": 61 - }, - "end": { - "line": 156, - "column": 62 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 64, - "start": 4956, - "end": 4958, - "loc": { - "start": { - "line": 156, - "column": 63 - }, - "end": { - "line": 156, - "column": 65 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 4959, - "end": 4960, - "loc": { - "start": { - "line": 156, - "column": 66 - }, - "end": { - "line": 156, - "column": 67 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1024, - "start": 4961, - "end": 4965, - "loc": { - "start": { - "line": 156, - "column": 68 - }, - "end": { - "line": 156, - "column": 72 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4966, - "end": 4967, - "loc": { - "start": { - "line": 156, - "column": 73 - }, - "end": { - "line": 156, - "column": 74 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4967, - "end": 4968, - "loc": { - "start": { - "line": 156, - "column": 74 - }, - "end": { - "line": 156, - "column": 75 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4968, - "end": 4969, - "loc": { - "start": { - "line": 156, - "column": 75 - }, - "end": { - "line": 156, - "column": 76 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 4974, - "end": 4979, - "loc": { - "start": { - "line": 157, - "column": 4 - }, - "end": { - "line": 157, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "closingLine", - "start": 4980, - "end": 4991, - "loc": { - "start": { - "line": 157, - "column": 10 - }, - "end": { - "line": 157, - "column": 21 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 4992, - "end": 4993, - "loc": { - "start": { - "line": 157, - "column": 22 - }, - "end": { - "line": 157, - "column": 23 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4994, - "end": 4995, - "loc": { - "start": { - "line": 157, - "column": 24 - }, - "end": { - "line": 157, - "column": 25 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\r\n------FormBoundary", - "start": 4995, - "end": 5017, - "loc": { - "start": { - "line": 157, - "column": 25 - }, - "end": { - "line": 157, - "column": 47 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5017, - "end": 5019, - "loc": { - "start": { - "line": 157, - "column": 47 - }, - "end": { - "line": 157, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "boundaryKey", - "start": 5019, - "end": 5030, - "loc": { - "start": { - "line": 157, - "column": 49 - }, - "end": { - "line": 157, - "column": 60 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5030, - "end": 5031, - "loc": { - "start": { - "line": 157, - "column": 60 - }, - "end": { - "line": 157, - "column": 61 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "--", - "start": 5031, - "end": 5033, - "loc": { - "start": { - "line": 157, - "column": 61 - }, - "end": { - "line": 157, - "column": 63 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5033, - "end": 5034, - "loc": { - "start": { - "line": 157, - "column": 63 - }, - "end": { - "line": 157, - "column": 64 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5034, - "end": 5035, - "loc": { - "start": { - "line": 157, - "column": 64 - }, - "end": { - "line": 157, - "column": 65 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 5041, - "end": 5046, - "loc": { - "start": { - "line": 159, - "column": 4 - }, - "end": { - "line": 159, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 5047, - "end": 5050, - "loc": { - "start": { - "line": 159, - "column": 10 - }, - "end": { - "line": 159, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 5051, - "end": 5052, - "loc": { - "start": { - "line": 159, - "column": 14 - }, - "end": { - "line": 159, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 5053, - "end": 5058, - "loc": { - "start": { - "line": 159, - "column": 16 - }, - "end": { - "line": 159, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5065, - "end": 5066, - "loc": { - "start": { - "line": 160, - "column": 6 - }, - "end": { - "line": 160, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 5066, - "end": 5073, - "loc": { - "start": { - "line": 160, - "column": 7 - }, - "end": { - "line": 160, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5073, - "end": 5074, - "loc": { - "start": { - "line": 160, - "column": 14 - }, - "end": { - "line": 160, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 5074, - "end": 5093, - "loc": { - "start": { - "line": 160, - "column": 15 - }, - "end": { - "line": 160, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5093, - "end": 5094, - "loc": { - "start": { - "line": 160, - "column": 34 - }, - "end": { - "line": 160, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5094, - "end": 5095, - "loc": { - "start": { - "line": 160, - "column": 35 - }, - "end": { - "line": 160, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 5104, - "end": 5110, - "loc": { - "start": { - "line": 161, - "column": 8 - }, - "end": { - "line": 161, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5110, - "end": 5111, - "loc": { - "start": { - "line": 161, - "column": 14 - }, - "end": { - "line": 161, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "POST", - "start": 5112, - "end": 5118, - "loc": { - "start": { - "line": 161, - "column": 16 - }, - "end": { - "line": 161, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5118, - "end": 5119, - "loc": { - "start": { - "line": 161, - "column": 22 - }, - "end": { - "line": 161, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 5128, - "end": 5132, - "loc": { - "start": { - "line": 162, - "column": 8 - }, - "end": { - "line": 162, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5132, - "end": 5133, - "loc": { - "start": { - "line": 162, - "column": 12 - }, - "end": { - "line": 162, - "column": 13 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/document/fieldextract", - "start": 5134, - "end": 5158, - "loc": { - "start": { - "line": 162, - "column": 14 - }, - "end": { - "line": 162, - "column": 38 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5158, - "end": 5159, - "loc": { - "start": { - "line": 162, - "column": 38 - }, - "end": { - "line": 162, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 5168, - "end": 5181, - "loc": { - "start": { - "line": 163, - "column": 8 - }, - "end": { - "line": 163, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5181, - "end": 5182, - "loc": { - "start": { - "line": 163, - "column": 21 - }, - "end": { - "line": 163, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5183, - "end": 5184, - "loc": { - "start": { - "line": 163, - "column": 23 - }, - "end": { - "line": 163, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 5195, - "end": 5199, - "loc": { - "start": { - "line": 164, - "column": 10 - }, - "end": { - "line": 164, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5199, - "end": 5200, - "loc": { - "start": { - "line": 164, - "column": 14 - }, - "end": { - "line": 164, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 5201, - "end": 5209, - "loc": { - "start": { - "line": 164, - "column": 16 - }, - "end": { - "line": 164, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5209, - "end": 5210, - "loc": { - "start": { - "line": 164, - "column": 24 - }, - "end": { - "line": 164, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 5221, - "end": 5226, - "loc": { - "start": { - "line": 165, - "column": 10 - }, - "end": { - "line": 165, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5226, - "end": 5227, - "loc": { - "start": { - "line": 165, - "column": 15 - }, - "end": { - "line": 165, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5236, - "end": 5237, - "loc": { - "start": { - "line": 166, - "column": 8 - }, - "end": { - "line": 166, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5237, - "end": 5238, - "loc": { - "start": { - "line": 166, - "column": 9 - }, - "end": { - "line": 166, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 5247, - "end": 5254, - "loc": { - "start": { - "line": 167, - "column": 8 - }, - "end": { - "line": 167, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5254, - "end": 5255, - "loc": { - "start": { - "line": 167, - "column": 15 - }, - "end": { - "line": 167, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5256, - "end": 5257, - "loc": { - "start": { - "line": 167, - "column": 17 - }, - "end": { - "line": 167, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type", - "start": 5268, - "end": 5282, - "loc": { - "start": { - "line": 168, - "column": 10 - }, - "end": { - "line": 168, - "column": 24 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5282, - "end": 5283, - "loc": { - "start": { - "line": 168, - "column": 24 - }, - "end": { - "line": 168, - "column": 25 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5284, - "end": 5285, - "loc": { - "start": { - "line": 168, - "column": 26 - }, - "end": { - "line": 168, - "column": 27 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "multipart/form-data; boundary=----FormBoundary", - "start": 5285, - "end": 5331, - "loc": { - "start": { - "line": 168, - "column": 27 - }, - "end": { - "line": 168, - "column": 73 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5331, - "end": 5333, - "loc": { - "start": { - "line": 168, - "column": 73 - }, - "end": { - "line": 168, - "column": 75 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "boundaryKey", - "start": 5333, - "end": 5344, - "loc": { - "start": { - "line": 168, - "column": 75 - }, - "end": { - "line": 168, - "column": 86 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5344, - "end": 5345, - "loc": { - "start": { - "line": 168, - "column": 86 - }, - "end": { - "line": 168, - "column": 87 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 5345, - "end": 5345, - "loc": { - "start": { - "line": 168, - "column": 87 - }, - "end": { - "line": 168, - "column": 87 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5345, - "end": 5346, - "loc": { - "start": { - "line": 168, - "column": 87 - }, - "end": { - "line": 168, - "column": 88 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5346, - "end": 5347, - "loc": { - "start": { - "line": 168, - "column": 88 - }, - "end": { - "line": 168, - "column": 89 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Length", - "start": 5358, - "end": 5374, - "loc": { - "start": { - "line": 169, - "column": 10 - }, - "end": { - "line": 169, - "column": 26 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5374, - "end": 5375, - "loc": { - "start": { - "line": 169, - "column": 26 - }, - "end": { - "line": 169, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "stat", - "start": 5376, - "end": 5380, - "loc": { - "start": { - "line": 169, - "column": 28 - }, - "end": { - "line": 169, - "column": 32 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5380, - "end": 5381, - "loc": { - "start": { - "line": 169, - "column": 32 - }, - "end": { - "line": 169, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "size", - "start": 5381, - "end": 5385, - "loc": { - "start": { - "line": 169, - "column": 33 - }, - "end": { - "line": 169, - "column": 37 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 5386, - "end": 5387, - "loc": { - "start": { - "line": 169, - "column": 38 - }, - "end": { - "line": 169, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "file", - "start": 5388, - "end": 5392, - "loc": { - "start": { - "line": 169, - "column": 40 - }, - "end": { - "line": 169, - "column": 44 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5392, - "end": 5393, - "loc": { - "start": { - "line": 169, - "column": 44 - }, - "end": { - "line": 169, - "column": 45 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "toString", - "start": 5393, - "end": 5401, - "loc": { - "start": { - "line": 169, - "column": 45 - }, - "end": { - "line": 169, - "column": 53 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5401, - "end": 5402, - "loc": { - "start": { - "line": 169, - "column": 53 - }, - "end": { - "line": 169, - "column": 54 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5402, - "end": 5403, - "loc": { - "start": { - "line": 169, - "column": 54 - }, - "end": { - "line": 169, - "column": 55 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5403, - "end": 5404, - "loc": { - "start": { - "line": 169, - "column": 55 - }, - "end": { - "line": 169, - "column": 56 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "length", - "start": 5404, - "end": 5410, - "loc": { - "start": { - "line": 169, - "column": 56 - }, - "end": { - "line": 169, - "column": 62 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 5411, - "end": 5412, - "loc": { - "start": { - "line": 169, - "column": 63 - }, - "end": { - "line": 169, - "column": 64 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "closingLine", - "start": 5413, - "end": 5424, - "loc": { - "start": { - "line": 169, - "column": 65 - }, - "end": { - "line": 169, - "column": 76 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5424, - "end": 5425, - "loc": { - "start": { - "line": 169, - "column": 76 - }, - "end": { - "line": 169, - "column": 77 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "length", - "start": 5425, - "end": 5431, - "loc": { - "start": { - "line": 169, - "column": 77 - }, - "end": { - "line": 169, - "column": 83 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5431, - "end": 5432, - "loc": { - "start": { - "line": 169, - "column": 83 - }, - "end": { - "line": 169, - "column": 84 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5441, - "end": 5442, - "loc": { - "start": { - "line": 170, - "column": 8 - }, - "end": { - "line": 170, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5442, - "end": 5443, - "loc": { - "start": { - "line": 170, - "column": 9 - }, - "end": { - "line": 170, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5450, - "end": 5451, - "loc": { - "start": { - "line": 171, - "column": 6 - }, - "end": { - "line": 171, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5451, - "end": 5452, - "loc": { - "start": { - "line": 171, - "column": 7 - }, - "end": { - "line": 171, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5452, - "end": 5453, - "loc": { - "start": { - "line": 171, - "column": 8 - }, - "end": { - "line": 171, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 5454, - "end": 5469, - "loc": { - "start": { - "line": 171, - "column": 10 - }, - "end": { - "line": 171, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5469, - "end": 5470, - "loc": { - "start": { - "line": 171, - "column": 25 - }, - "end": { - "line": 171, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 5470, - "end": 5478, - "loc": { - "start": { - "line": 171, - "column": 26 - }, - "end": { - "line": 171, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5478, - "end": 5479, - "loc": { - "start": { - "line": 171, - "column": 34 - }, - "end": { - "line": 171, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5479, - "end": 5480, - "loc": { - "start": { - "line": 171, - "column": 35 - }, - "end": { - "line": 171, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5487, - "end": 5488, - "loc": { - "start": { - "line": 172, - "column": 6 - }, - "end": { - "line": 172, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 5488, - "end": 5490, - "loc": { - "start": { - "line": 172, - "column": 7 - }, - "end": { - "line": 172, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5490, - "end": 5491, - "loc": { - "start": { - "line": 172, - "column": 9 - }, - "end": { - "line": 172, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 5491, - "end": 5498, - "loc": { - "start": { - "line": 172, - "column": 10 - }, - "end": { - "line": 172, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5498, - "end": 5499, - "loc": { - "start": { - "line": 172, - "column": 17 - }, - "end": { - "line": 172, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 5500, - "end": 5512, - "loc": { - "start": { - "line": 172, - "column": 19 - }, - "end": { - "line": 172, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5512, - "end": 5513, - "loc": { - "start": { - "line": 172, - "column": 31 - }, - "end": { - "line": 172, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 5513, - "end": 5521, - "loc": { - "start": { - "line": 172, - "column": 32 - }, - "end": { - "line": 172, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5521, - "end": 5522, - "loc": { - "start": { - "line": 172, - "column": 40 - }, - "end": { - "line": 172, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5522, - "end": 5523, - "loc": { - "start": { - "line": 172, - "column": 41 - }, - "end": { - "line": 172, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5523, - "end": 5524, - "loc": { - "start": { - "line": 172, - "column": 42 - }, - "end": { - "line": 172, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 5530, - "end": 5533, - "loc": { - "start": { - "line": 174, - "column": 4 - }, - "end": { - "line": 174, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5533, - "end": 5534, - "loc": { - "start": { - "line": 174, - "column": 7 - }, - "end": { - "line": 174, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "write", - "start": 5534, - "end": 5539, - "loc": { - "start": { - "line": 174, - "column": 8 - }, - "end": { - "line": 174, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5539, - "end": 5540, - "loc": { - "start": { - "line": 174, - "column": 13 - }, - "end": { - "line": 174, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "file", - "start": 5540, - "end": 5544, - "loc": { - "start": { - "line": 174, - "column": 14 - }, - "end": { - "line": 174, - "column": 18 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5544, - "end": 5545, - "loc": { - "start": { - "line": 174, - "column": 18 - }, - "end": { - "line": 174, - "column": 19 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5545, - "end": 5546, - "loc": { - "start": { - "line": 174, - "column": 19 - }, - "end": { - "line": 174, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "reader", - "start": 5551, - "end": 5557, - "loc": { - "start": { - "line": 175, - "column": 4 - }, - "end": { - "line": 175, - "column": 10 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5557, - "end": 5558, - "loc": { - "start": { - "line": 175, - "column": 10 - }, - "end": { - "line": 175, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 5558, - "end": 5560, - "loc": { - "start": { - "line": 175, - "column": 11 - }, - "end": { - "line": 175, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5560, - "end": 5561, - "loc": { - "start": { - "line": 175, - "column": 13 - }, - "end": { - "line": 175, - "column": 14 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "end", - "start": 5561, - "end": 5566, - "loc": { - "start": { - "line": 175, - "column": 14 - }, - "end": { - "line": 175, - "column": 19 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5566, - "end": 5567, - "loc": { - "start": { - "line": 175, - "column": 19 - }, - "end": { - "line": 175, - "column": 20 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5568, - "end": 5569, - "loc": { - "start": { - "line": 175, - "column": 21 - }, - "end": { - "line": 175, - "column": 22 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5569, - "end": 5570, - "loc": { - "start": { - "line": 175, - "column": 22 - }, - "end": { - "line": 175, - "column": 23 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5571, - "end": 5573, - "loc": { - "start": { - "line": 175, - "column": 24 - }, - "end": { - "line": 175, - "column": 26 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5574, - "end": 5575, - "loc": { - "start": { - "line": 175, - "column": 27 - }, - "end": { - "line": 175, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "reader", - "start": 5582, - "end": 5588, - "loc": { - "start": { - "line": 176, - "column": 6 - }, - "end": { - "line": 176, - "column": 12 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5588, - "end": 5589, - "loc": { - "start": { - "line": 176, - "column": 12 - }, - "end": { - "line": 176, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "unpipe", - "start": 5589, - "end": 5595, - "loc": { - "start": { - "line": 176, - "column": 13 - }, - "end": { - "line": 176, - "column": 19 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5595, - "end": 5596, - "loc": { - "start": { - "line": 176, - "column": 19 - }, - "end": { - "line": 176, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 5596, - "end": 5599, - "loc": { - "start": { - "line": 176, - "column": 20 - }, - "end": { - "line": 176, - "column": 23 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5599, - "end": 5600, - "loc": { - "start": { - "line": 176, - "column": 23 - }, - "end": { - "line": 176, - "column": 24 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5600, - "end": 5601, - "loc": { - "start": { - "line": 176, - "column": 24 - }, - "end": { - "line": 176, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 5608, - "end": 5611, - "loc": { - "start": { - "line": 177, - "column": 6 - }, - "end": { - "line": 177, - "column": 9 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5611, - "end": 5612, - "loc": { - "start": { - "line": 177, - "column": 9 - }, - "end": { - "line": 177, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 5612, - "end": 5615, - "loc": { - "start": { - "line": 177, - "column": 10 - }, - "end": { - "line": 177, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5615, - "end": 5616, - "loc": { - "start": { - "line": 177, - "column": 13 - }, - "end": { - "line": 177, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "closingLine", - "start": 5616, - "end": 5627, - "loc": { - "start": { - "line": 177, - "column": 14 - }, - "end": { - "line": 177, - "column": 25 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5627, - "end": 5628, - "loc": { - "start": { - "line": 177, - "column": 25 - }, - "end": { - "line": 177, - "column": 26 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5628, - "end": 5629, - "loc": { - "start": { - "line": 177, - "column": 26 - }, - "end": { - "line": 177, - "column": 27 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5634, - "end": 5635, - "loc": { - "start": { - "line": 178, - "column": 4 - }, - "end": { - "line": 178, - "column": 5 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5635, - "end": 5636, - "loc": { - "start": { - "line": 178, - "column": 5 - }, - "end": { - "line": 178, - "column": 6 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5636, - "end": 5637, - "loc": { - "start": { - "line": 178, - "column": 6 - }, - "end": { - "line": 178, - "column": 7 - } - } - }, - { - "type": "CommentLine", - "value": " pipe the file and append a closing line", - "start": 5643, - "end": 5685, - "loc": { - "start": { - "line": 180, - "column": 4 - }, - "end": { - "line": 180, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "reader", - "start": 5690, - "end": 5696, - "loc": { - "start": { - "line": 181, - "column": 4 - }, - "end": { - "line": 181, - "column": 10 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5696, - "end": 5697, - "loc": { - "start": { - "line": 181, - "column": 10 - }, - "end": { - "line": 181, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pipe", - "start": 5697, - "end": 5701, - "loc": { - "start": { - "line": 181, - "column": 11 - }, - "end": { - "line": 181, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5701, - "end": 5702, - "loc": { - "start": { - "line": 181, - "column": 15 - }, - "end": { - "line": 181, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 5702, - "end": 5705, - "loc": { - "start": { - "line": 181, - "column": 16 - }, - "end": { - "line": 181, - "column": 19 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5705, - "end": 5706, - "loc": { - "start": { - "line": 181, - "column": 19 - }, - "end": { - "line": 181, - "column": 20 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5707, - "end": 5708, - "loc": { - "start": { - "line": 181, - "column": 21 - }, - "end": { - "line": 181, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 5709, - "end": 5712, - "loc": { - "start": { - "line": 181, - "column": 23 - }, - "end": { - "line": 181, - "column": 26 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5712, - "end": 5713, - "loc": { - "start": { - "line": 181, - "column": 26 - }, - "end": { - "line": 181, - "column": 27 - } - } - }, - { - "type": { - "label": "false", - "keyword": "false", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "false", - "start": 5714, - "end": 5719, - "loc": { - "start": { - "line": 181, - "column": 28 - }, - "end": { - "line": 181, - "column": 33 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5720, - "end": 5721, - "loc": { - "start": { - "line": 181, - "column": 34 - }, - "end": { - "line": 181, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5721, - "end": 5722, - "loc": { - "start": { - "line": 181, - "column": 35 - }, - "end": { - "line": 181, - "column": 36 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5722, - "end": 5723, - "loc": { - "start": { - "line": 181, - "column": 36 - }, - "end": { - "line": 181, - "column": 37 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5726, - "end": 5727, - "loc": { - "start": { - "line": 182, - "column": 2 - }, - "end": { - "line": 182, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Payload to receive user's document list\n * @typedef {Object} DocumentListParams\n * @property {string} token - your auth token\n ", - "start": 5732, - "end": 5876, - "loc": { - "start": { - "line": 185, - "column": 2 - }, - "end": { - "line": 189, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document list response item\n * @typedef {Object} DocumentListItem\n * @property {string} id - id of specific document\n * @property {string} user_id - id of user that uploaded document\n * @property {string} document_name - name of document\n * @property {string} page_count - amount of pages in the document\n * @property {string} created - timestamp document was created\n * @property {string} updated - timestamp document was updated\n * @property {string} original_filename - original filename with document format (.pdf, .doc, etc...)\n * @property {?string} origin_document_id - an id of original document (if document is a copy)\n * @property {string} owner - email of document owner\n * @property {boolean} template - is document a template or not\n * @property {?string} origin_user_id - id of user who created document\n * @property {Object} thumbnail - thumbnail urls with different sizes (small, medium, large)\n * @property {Object[]} signatures - signature signed elements\n * @property {Object[]} texts - text and enumeration filled elements\n * @property {Object[]} checks - checkbox checked elements\n * @property {Object[]} tags - field types document contains\n * @property {Object[]} fields - all document fillable fields\n * @property {Object[]} requests - requests for signing document\n * @property {Object[]} roles - document signer roles\n * @property {Object[]} field_invites - sent invites data\n * @property {number} version_time - document updated timestamp\n * @property {Object[]} enumeration_options - dropdown options\n * @property {Object[]} attachments - attachments in document\n * @property {Object[]} routing_details - signing steps routing details\n * @property {Object[]} integrations - document integrations\n * @property {Object[]} hyperlinks - document hyperlinks\n * @property {Object[]} radiobuttons - checked radiobuttons after document was signed\n * @property {Object[]} document_group_template_info - document group templates data\n * @property {Object[]} document_group_info - document group template's data\n * @property {Object[]} originator_organization_settings - specific organization settings for document\n * @property {Object[]} field_validators - validation rules for fields (date fields, payment fields etc.)\n * @property {Object} settings - specific document settings\n ", - "start": 5880, - "end": 8258, - "loc": { - "start": { - "line": 191, - "column": 2 - }, - "end": { - "line": 226, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * User's Document list response\n * @typedef {DocumentListItem[]} DocumentListResponse\n ", - "start": 8262, - "end": 8362, - "loc": { - "start": { - "line": 228, - "column": 2 - }, - "end": { - "line": 231, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieve user's document list\n * @param {DocumentListParams} data - payload to receive user's document list\n * @param {function(err: ApiErrorResponse, res: DocumentListItem)} [callback] - error first node.js callback\n ", - "start": 8366, - "end": 8601, - "loc": { - "start": { - "line": 233, - "column": 2 - }, - "end": { - "line": 237, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 8604, - "end": 8610, - "loc": { - "start": { - "line": 238, - "column": 2 - }, - "end": { - "line": 238, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "list", - "start": 8611, - "end": 8615, - "loc": { - "start": { - "line": 238, - "column": 9 - }, - "end": { - "line": 238, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8616, - "end": 8617, - "loc": { - "start": { - "line": 238, - "column": 14 - }, - "end": { - "line": 238, - "column": 15 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8617, - "end": 8618, - "loc": { - "start": { - "line": 238, - "column": 15 - }, - "end": { - "line": 238, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 8619, - "end": 8624, - "loc": { - "start": { - "line": 238, - "column": 17 - }, - "end": { - "line": 238, - "column": 22 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8625, - "end": 8626, - "loc": { - "start": { - "line": 238, - "column": 23 - }, - "end": { - "line": 238, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8626, - "end": 8627, - "loc": { - "start": { - "line": 238, - "column": 24 - }, - "end": { - "line": 238, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 8628, - "end": 8636, - "loc": { - "start": { - "line": 238, - "column": 26 - }, - "end": { - "line": 238, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8636, - "end": 8637, - "loc": { - "start": { - "line": 238, - "column": 34 - }, - "end": { - "line": 238, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8638, - "end": 8639, - "loc": { - "start": { - "line": 238, - "column": 36 - }, - "end": { - "line": 238, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 8644, - "end": 8649, - "loc": { - "start": { - "line": 239, - "column": 4 - }, - "end": { - "line": 239, - "column": 9 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8656, - "end": 8657, - "loc": { - "start": { - "line": 240, - "column": 6 - }, - "end": { - "line": 240, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 8657, - "end": 8664, - "loc": { - "start": { - "line": 240, - "column": 7 - }, - "end": { - "line": 240, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8664, - "end": 8665, - "loc": { - "start": { - "line": 240, - "column": 14 - }, - "end": { - "line": 240, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 8665, - "end": 8684, - "loc": { - "start": { - "line": 240, - "column": 15 - }, - "end": { - "line": 240, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8684, - "end": 8685, - "loc": { - "start": { - "line": 240, - "column": 34 - }, - "end": { - "line": 240, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8685, - "end": 8686, - "loc": { - "start": { - "line": 240, - "column": 35 - }, - "end": { - "line": 240, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 8695, - "end": 8701, - "loc": { - "start": { - "line": 241, - "column": 8 - }, - "end": { - "line": 241, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8701, - "end": 8702, - "loc": { - "start": { - "line": 241, - "column": 14 - }, - "end": { - "line": 241, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "GET", - "start": 8703, - "end": 8708, - "loc": { - "start": { - "line": 241, - "column": 16 - }, - "end": { - "line": 241, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8708, - "end": 8709, - "loc": { - "start": { - "line": 241, - "column": 21 - }, - "end": { - "line": 241, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 8718, - "end": 8722, - "loc": { - "start": { - "line": 242, - "column": 8 - }, - "end": { - "line": 242, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8722, - "end": 8723, - "loc": { - "start": { - "line": 242, - "column": 12 - }, - "end": { - "line": 242, - "column": 13 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/user/documentsv2", - "start": 8724, - "end": 8743, - "loc": { - "start": { - "line": 242, - "column": 14 - }, - "end": { - "line": 242, - "column": 33 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8743, - "end": 8744, - "loc": { - "start": { - "line": 242, - "column": 33 - }, - "end": { - "line": 242, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 8753, - "end": 8766, - "loc": { - "start": { - "line": 243, - "column": 8 - }, - "end": { - "line": 243, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8766, - "end": 8767, - "loc": { - "start": { - "line": 243, - "column": 21 - }, - "end": { - "line": 243, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8768, - "end": 8769, - "loc": { - "start": { - "line": 243, - "column": 23 - }, - "end": { - "line": 243, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 8780, - "end": 8784, - "loc": { - "start": { - "line": 244, - "column": 10 - }, - "end": { - "line": 244, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8784, - "end": 8785, - "loc": { - "start": { - "line": 244, - "column": 14 - }, - "end": { - "line": 244, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 8786, - "end": 8794, - "loc": { - "start": { - "line": 244, - "column": 16 - }, - "end": { - "line": 244, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8794, - "end": 8795, - "loc": { - "start": { - "line": 244, - "column": 24 - }, - "end": { - "line": 244, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 8806, - "end": 8811, - "loc": { - "start": { - "line": 245, - "column": 10 - }, - "end": { - "line": 245, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8811, - "end": 8812, - "loc": { - "start": { - "line": 245, - "column": 15 - }, - "end": { - "line": 245, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8821, - "end": 8822, - "loc": { - "start": { - "line": 246, - "column": 8 - }, - "end": { - "line": 246, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8822, - "end": 8823, - "loc": { - "start": { - "line": 246, - "column": 9 - }, - "end": { - "line": 246, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8830, - "end": 8831, - "loc": { - "start": { - "line": 247, - "column": 6 - }, - "end": { - "line": 247, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8831, - "end": 8832, - "loc": { - "start": { - "line": 247, - "column": 7 - }, - "end": { - "line": 247, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8832, - "end": 8833, - "loc": { - "start": { - "line": 247, - "column": 8 - }, - "end": { - "line": 247, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 8834, - "end": 8849, - "loc": { - "start": { - "line": 247, - "column": 10 - }, - "end": { - "line": 247, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8849, - "end": 8850, - "loc": { - "start": { - "line": 247, - "column": 25 - }, - "end": { - "line": 247, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 8850, - "end": 8858, - "loc": { - "start": { - "line": 247, - "column": 26 - }, - "end": { - "line": 247, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8858, - "end": 8859, - "loc": { - "start": { - "line": 247, - "column": 34 - }, - "end": { - "line": 247, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8859, - "end": 8860, - "loc": { - "start": { - "line": 247, - "column": 35 - }, - "end": { - "line": 247, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8867, - "end": 8868, - "loc": { - "start": { - "line": 248, - "column": 6 - }, - "end": { - "line": 248, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 8868, - "end": 8870, - "loc": { - "start": { - "line": 248, - "column": 7 - }, - "end": { - "line": 248, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8870, - "end": 8871, - "loc": { - "start": { - "line": 248, - "column": 9 - }, - "end": { - "line": 248, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 8871, - "end": 8878, - "loc": { - "start": { - "line": 248, - "column": 10 - }, - "end": { - "line": 248, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8878, - "end": 8879, - "loc": { - "start": { - "line": 248, - "column": 17 - }, - "end": { - "line": 248, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 8880, - "end": 8892, - "loc": { - "start": { - "line": 248, - "column": 19 - }, - "end": { - "line": 248, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8892, - "end": 8893, - "loc": { - "start": { - "line": 248, - "column": 31 - }, - "end": { - "line": 248, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 8893, - "end": 8901, - "loc": { - "start": { - "line": 248, - "column": 32 - }, - "end": { - "line": 248, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8901, - "end": 8902, - "loc": { - "start": { - "line": 248, - "column": 40 - }, - "end": { - "line": 248, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8902, - "end": 8903, - "loc": { - "start": { - "line": 248, - "column": 41 - }, - "end": { - "line": 248, - "column": 42 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8910, - "end": 8911, - "loc": { - "start": { - "line": 249, - "column": 6 - }, - "end": { - "line": 249, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 8911, - "end": 8914, - "loc": { - "start": { - "line": 249, - "column": 7 - }, - "end": { - "line": 249, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8914, - "end": 8915, - "loc": { - "start": { - "line": 249, - "column": 10 - }, - "end": { - "line": 249, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8915, - "end": 8916, - "loc": { - "start": { - "line": 249, - "column": 11 - }, - "end": { - "line": 249, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8916, - "end": 8917, - "loc": { - "start": { - "line": 249, - "column": 12 - }, - "end": { - "line": 249, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8920, - "end": 8921, - "loc": { - "start": { - "line": 250, - "column": 2 - }, - "end": { - "line": 250, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document view payload\n * @typedef {Object} DocumentViewParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 8925, - "end": 9104, - "loc": { - "start": { - "line": 252, - "column": 2 - }, - "end": { - "line": 257, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document view response of specific document\n * @typedef {Object} DocumentViewResponse\n * @property {string} id - id of specific document\n * @property {string} user_id - id of user that uploaded document\n * @property {string} document_name - name of document\n * @property {string} page_count - amount of pages in the document\n * @property {string} created - timestamp document was created\n * @property {string} updated - timestamp document was updated\n * @property {string} original_filename - original filename with document format (.pdf, .doc, etc...)\n * @property {?string} origin_document_id - an id of original document (if document is a copy)\n * @property {string} owner - email of document owner\n * @property {boolean} template - is document a template or not\n * @property {Object} thumbnail - thumbnail urls with different sizes (small, medium, large)\n * @property {Object[]} signatures - signature signed elements\n * @property {Object[]} texts - text and enumeration filled elements\n * @property {Object[]} checks - checkbox checked elements\n * @property {Object[]} tags - field types document contains\n * @property {Object[]} fields - all document fillable fields\n * @property {Object[]} requests - requests for signing document\n * @property {Object[]} roles - document signer roles\n * @property {Object[]} field_invites - sent invites data\n * @property {number} version_time - document updated timestamp\n * @property {Object[]} enumeration_options - dropdown options\n * @property {Object[]} attachments - attachments in document\n * @property {Object[]} routing_details - signing steps routing details\n * @property {Object[]} integrations - document integrations\n * @property {Object[]} hyperlinks - document hyperlinks\n * @property {Object[]} radiobuttons - checked radiobuttons after document was signed\n * @property {Object[]} document_group_template_info - document group template's data\n * @property {Object[]} document_group_info - document group's data\n * @property {Object[]} originator_organization_settings - specific organization settings for document\n * @property {Object[]} field_validators - validation rules for fields (date fields, payment fields etc.)\n * @property {Object} settings - specific document settings\n * @property {string} parent_id - id of document folder\n * @property {string} originator_logo - logo url\n * @property {Object[]} pages - list of document pages with page sources and page size.\n ", - "start": 9108, - "end": 11623, - "loc": { - "start": { - "line": 259, - "column": 2 - }, - "end": { - "line": 296, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves a document detailed data\n * @param {DocumentViewParams} data - view document details payload\n * @param {function(err: ApiErrorResponse, res: DocumentViewResponse)} [callback] - error first node.js callback\n ", - "start": 11627, - "end": 11861, - "loc": { - "start": { - "line": 298, - "column": 2 - }, - "end": { - "line": 302, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 11864, - "end": 11870, - "loc": { - "start": { - "line": 303, - "column": 2 - }, - "end": { - "line": 303, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "view", - "start": 11871, - "end": 11875, - "loc": { - "start": { - "line": 303, - "column": 9 - }, - "end": { - "line": 303, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11876, - "end": 11877, - "loc": { - "start": { - "line": 303, - "column": 14 - }, - "end": { - "line": 303, - "column": 15 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11877, - "end": 11878, - "loc": { - "start": { - "line": 303, - "column": 15 - }, - "end": { - "line": 303, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 11879, - "end": 11881, - "loc": { - "start": { - "line": 303, - "column": 17 - }, - "end": { - "line": 303, - "column": 19 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11881, - "end": 11882, - "loc": { - "start": { - "line": 303, - "column": 19 - }, - "end": { - "line": 303, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 11883, - "end": 11888, - "loc": { - "start": { - "line": 303, - "column": 21 - }, - "end": { - "line": 303, - "column": 26 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11889, - "end": 11890, - "loc": { - "start": { - "line": 303, - "column": 27 - }, - "end": { - "line": 303, - "column": 28 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11890, - "end": 11891, - "loc": { - "start": { - "line": 303, - "column": 28 - }, - "end": { - "line": 303, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 11892, - "end": 11900, - "loc": { - "start": { - "line": 303, - "column": 30 - }, - "end": { - "line": 303, - "column": 38 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11900, - "end": 11901, - "loc": { - "start": { - "line": 303, - "column": 38 - }, - "end": { - "line": 303, - "column": 39 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11902, - "end": 11903, - "loc": { - "start": { - "line": 303, - "column": 40 - }, - "end": { - "line": 303, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 11908, - "end": 11913, - "loc": { - "start": { - "line": 304, - "column": 4 - }, - "end": { - "line": 304, - "column": 9 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11920, - "end": 11921, - "loc": { - "start": { - "line": 305, - "column": 6 - }, - "end": { - "line": 305, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 11921, - "end": 11928, - "loc": { - "start": { - "line": 305, - "column": 7 - }, - "end": { - "line": 305, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11928, - "end": 11929, - "loc": { - "start": { - "line": 305, - "column": 14 - }, - "end": { - "line": 305, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 11929, - "end": 11948, - "loc": { - "start": { - "line": 305, - "column": 15 - }, - "end": { - "line": 305, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11948, - "end": 11949, - "loc": { - "start": { - "line": 305, - "column": 34 - }, - "end": { - "line": 305, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11949, - "end": 11950, - "loc": { - "start": { - "line": 305, - "column": 35 - }, - "end": { - "line": 305, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 11959, - "end": 11965, - "loc": { - "start": { - "line": 306, - "column": 8 - }, - "end": { - "line": 306, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11965, - "end": 11966, - "loc": { - "start": { - "line": 306, - "column": 14 - }, - "end": { - "line": 306, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "GET", - "start": 11967, - "end": 11972, - "loc": { - "start": { - "line": 306, - "column": 16 - }, - "end": { - "line": 306, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11972, - "end": 11973, - "loc": { - "start": { - "line": 306, - "column": 21 - }, - "end": { - "line": 306, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 11982, - "end": 11986, - "loc": { - "start": { - "line": 307, - "column": 8 - }, - "end": { - "line": 307, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11986, - "end": 11987, - "loc": { - "start": { - "line": 307, - "column": 12 - }, - "end": { - "line": 307, - "column": 13 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11988, - "end": 11989, - "loc": { - "start": { - "line": 307, - "column": 14 - }, - "end": { - "line": 307, - "column": 15 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/document/", - "start": 11989, - "end": 11999, - "loc": { - "start": { - "line": 307, - "column": 15 - }, - "end": { - "line": 307, - "column": 25 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11999, - "end": 12001, - "loc": { - "start": { - "line": 307, - "column": 25 - }, - "end": { - "line": 307, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 12001, - "end": 12003, - "loc": { - "start": { - "line": 307, - "column": 27 - }, - "end": { - "line": 307, - "column": 29 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12003, - "end": 12004, - "loc": { - "start": { - "line": 307, - "column": 29 - }, - "end": { - "line": 307, - "column": 30 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 12004, - "end": 12004, - "loc": { - "start": { - "line": 307, - "column": 30 - }, - "end": { - "line": 307, - "column": 30 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12004, - "end": 12005, - "loc": { - "start": { - "line": 307, - "column": 30 - }, - "end": { - "line": 307, - "column": 31 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12005, - "end": 12006, - "loc": { - "start": { - "line": 307, - "column": 31 - }, - "end": { - "line": 307, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 12015, - "end": 12028, - "loc": { - "start": { - "line": 308, - "column": 8 - }, - "end": { - "line": 308, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12028, - "end": 12029, - "loc": { - "start": { - "line": 308, - "column": 21 - }, - "end": { - "line": 308, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12030, - "end": 12031, - "loc": { - "start": { - "line": 308, - "column": 23 - }, - "end": { - "line": 308, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 12042, - "end": 12046, - "loc": { - "start": { - "line": 309, - "column": 10 - }, - "end": { - "line": 309, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12046, - "end": 12047, - "loc": { - "start": { - "line": 309, - "column": 14 - }, - "end": { - "line": 309, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 12048, - "end": 12056, - "loc": { - "start": { - "line": 309, - "column": 16 - }, - "end": { - "line": 309, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12056, - "end": 12057, - "loc": { - "start": { - "line": 309, - "column": 24 - }, - "end": { - "line": 309, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 12068, - "end": 12073, - "loc": { - "start": { - "line": 310, - "column": 10 - }, - "end": { - "line": 310, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12073, - "end": 12074, - "loc": { - "start": { - "line": 310, - "column": 15 - }, - "end": { - "line": 310, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12083, - "end": 12084, - "loc": { - "start": { - "line": 311, - "column": 8 - }, - "end": { - "line": 311, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12084, - "end": 12085, - "loc": { - "start": { - "line": 311, - "column": 9 - }, - "end": { - "line": 311, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12092, - "end": 12093, - "loc": { - "start": { - "line": 312, - "column": 6 - }, - "end": { - "line": 312, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12093, - "end": 12094, - "loc": { - "start": { - "line": 312, - "column": 7 - }, - "end": { - "line": 312, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12094, - "end": 12095, - "loc": { - "start": { - "line": 312, - "column": 8 - }, - "end": { - "line": 312, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 12096, - "end": 12111, - "loc": { - "start": { - "line": 312, - "column": 10 - }, - "end": { - "line": 312, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12111, - "end": 12112, - "loc": { - "start": { - "line": 312, - "column": 25 - }, - "end": { - "line": 312, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 12112, - "end": 12120, - "loc": { - "start": { - "line": 312, - "column": 26 - }, - "end": { - "line": 312, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12120, - "end": 12121, - "loc": { - "start": { - "line": 312, - "column": 34 - }, - "end": { - "line": 312, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12121, - "end": 12122, - "loc": { - "start": { - "line": 312, - "column": 35 - }, - "end": { - "line": 312, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12129, - "end": 12130, - "loc": { - "start": { - "line": 313, - "column": 6 - }, - "end": { - "line": 313, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 12130, - "end": 12132, - "loc": { - "start": { - "line": 313, - "column": 7 - }, - "end": { - "line": 313, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12132, - "end": 12133, - "loc": { - "start": { - "line": 313, - "column": 9 - }, - "end": { - "line": 313, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 12133, - "end": 12140, - "loc": { - "start": { - "line": 313, - "column": 10 - }, - "end": { - "line": 313, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12140, - "end": 12141, - "loc": { - "start": { - "line": 313, - "column": 17 - }, - "end": { - "line": 313, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 12142, - "end": 12154, - "loc": { - "start": { - "line": 313, - "column": 19 - }, - "end": { - "line": 313, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12154, - "end": 12155, - "loc": { - "start": { - "line": 313, - "column": 31 - }, - "end": { - "line": 313, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 12155, - "end": 12163, - "loc": { - "start": { - "line": 313, - "column": 32 - }, - "end": { - "line": 313, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12163, - "end": 12164, - "loc": { - "start": { - "line": 313, - "column": 40 - }, - "end": { - "line": 313, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12164, - "end": 12165, - "loc": { - "start": { - "line": 313, - "column": 41 - }, - "end": { - "line": 313, - "column": 42 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12172, - "end": 12173, - "loc": { - "start": { - "line": 314, - "column": 6 - }, - "end": { - "line": 314, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 12173, - "end": 12176, - "loc": { - "start": { - "line": 314, - "column": 7 - }, - "end": { - "line": 314, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12176, - "end": 12177, - "loc": { - "start": { - "line": 314, - "column": 10 - }, - "end": { - "line": 314, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12177, - "end": 12178, - "loc": { - "start": { - "line": 314, - "column": 11 - }, - "end": { - "line": 314, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12178, - "end": 12179, - "loc": { - "start": { - "line": 314, - "column": 12 - }, - "end": { - "line": 314, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12182, - "end": 12183, - "loc": { - "start": { - "line": 315, - "column": 2 - }, - "end": { - "line": 315, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} SignatureField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (signature)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} [label] - field label\n ", - "start": 12187, - "end": 12759, - "loc": { - "start": { - "line": 317, - "column": 2 - }, - "end": { - "line": 329, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} InitialsField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (initials)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} [label] - field label\n ", - "start": 12763, - "end": 13333, - "loc": { - "start": { - "line": 331, - "column": 2 - }, - "end": { - "line": 343, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} TextField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (text)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string|number} [prefilled_text] - prefilled field value\n * @property {string} [validator_id] - field value validator ID\n * @property {string} [label] - field label\n ", - "start": 13337, - "end": 14037, - "loc": { - "start": { - "line": 345, - "column": 2 - }, - "end": { - "line": 359, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} CheckField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (checkbox)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {boolean} [prefilled_text] - prefilled field value\n * @property {string} [label] - field label\n ", - "start": 14041, - "end": 14674, - "loc": { - "start": { - "line": 361, - "column": 2 - }, - "end": { - "line": 374, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} EnumerationField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (enumeration)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {Array} enumeration_options - choice options of enumerable field\n * @property {string|number} [prefilled_text] - prefilled field value\n * @property {string} [label] - field label\n * @property {boolean} [custom_defined_option=false] - if 'true' user can change values, if 'false' user can only read\n ", - "start": 14678, - "end": 15542, - "loc": { - "start": { - "line": 376, - "column": 2 - }, - "end": { - "line": 391, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} RadioButton\n * @property {number} page_number - page number of document\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} value - value of radio button\n * @property {string} checked - radio button check status\n * @property {number} created - redio button creation timestamp\n ", - "start": 15546, - "end": 16044, - "loc": { - "start": { - "line": 393, - "column": 2 - }, - "end": { - "line": 403, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} RadioButtonField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (radiobutton)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {RadioButton[]} radio - array of radio buttons\n * @property {string|number} [prefilled_text] - prefilled field value\n * @property {string} [label] - field label\n ", - "start": 16048, - "end": 16758, - "loc": { - "start": { - "line": 405, - "column": 2 - }, - "end": { - "line": 419, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} FormulaTreeBranchTerminator\n * @property {string} term - name of field which will participate in calculation formula\n ", - "start": 16762, - "end": 16913, - "loc": { - "start": { - "line": 421, - "column": 2 - }, - "end": { - "line": 424, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} FormulaTreeBranch\n * @property {FormulaTree} term - a part of formula parsed into tree\n ", - "start": 16917, - "end": 17038, - "loc": { - "start": { - "line": 426, - "column": 2 - }, - "end": { - "line": 429, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} FormulaTree\n * @property {string} operator - arithmetic operator's token\n * @property {FormulaTreeBranch|FormulaTreeBranchTerminator} left - left branch of formula tree\n * @property {FormulaTreeBranch|FormulaTreeBranchTerminator} right - right branch of formula tree\n ", - "start": 17042, - "end": 17347, - "loc": { - "start": { - "line": 431, - "column": 2 - }, - "end": { - "line": 436, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} CalculatedField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (text)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} formula - arithmetic formula, e.g. 'TextName+EnumerationName'\n * @property {FormulaTree} calculation_formula - formula parsed into tree\n * @property {number} calculation_precision - calculation precision\n * @property {string} [label] - field label\n * @property {boolean} [custom_defined_option=false] - if 'true' user can change values, if 'false' user can only read\n ", - "start": 17351, - "end": 18272, - "loc": { - "start": { - "line": 438, - "column": 2 - }, - "end": { - "line": 454, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} AttachmentField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (attachment)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} [label] - field label\n ", - "start": 18276, - "end": 18850, - "loc": { - "start": { - "line": 456, - "column": 2 - }, - "end": { - "line": 468, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} DocumentFields\n * @property {number} client_timestamp - local time of user\n * @property {Array} fields - all types of fields\n ", - "start": 18854, - "end": 19132, - "loc": { - "start": { - "line": 470, - "column": 2 - }, - "end": { - "line": 474, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update document payload\n * @typedef {Object} DocumentUpdateParams\n * @property {string} id - id of specific document\n * @property {DocumentFields} fields - set of fields\n * @property {string} token - your auth token\n ", - "start": 19136, - "end": 19374, - "loc": { - "start": { - "line": 476, - "column": 2 - }, - "end": { - "line": 482, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update document response data\n * @typedef {Object} DocumentUpdateResponse\n * @property {string} id - an id of document\n * @property {Object[]} signatures - signature and initial elements\n * @property {Object[]} texts - text and enumeration elements\n * @property {Object[]} checks - checkbox elements\n * @property {Object[]} attachments - attachment elements\n * @property {Object[]} radiobuttons - radiobutton elements\n ", - "start": 19378, - "end": 19824, - "loc": { - "start": { - "line": 484, - "column": 2 - }, - "end": { - "line": 493, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Updates an existing document.\n * Adds fields (signature, text, initials, checkbox, radiobutton group, calculated) and elements (signature, text, check).\n * Every call of this method will add only specified fields into document.\n * Old fields will be removed\n * @param {DocumentUpdateParams} data - update document request payload\n * @param {function(err: ApiErrorResponse, res: DocumentUpdateResponse)} [callback] - error first node.js callback\n ", - "start": 19828, - "end": 20297, - "loc": { - "start": { - "line": 495, - "column": 2 - }, - "end": { - "line": 502, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 20300, - "end": 20306, - "loc": { - "start": { - "line": 503, - "column": 2 - }, - "end": { - "line": 503, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "update", - "start": 20307, - "end": 20313, - "loc": { - "start": { - "line": 503, - "column": 9 - }, - "end": { - "line": 503, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20314, - "end": 20315, - "loc": { - "start": { - "line": 503, - "column": 16 - }, - "end": { - "line": 503, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20315, - "end": 20316, - "loc": { - "start": { - "line": 503, - "column": 17 - }, - "end": { - "line": 503, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 20321, - "end": 20323, - "loc": { - "start": { - "line": 504, - "column": 4 - }, - "end": { - "line": 504, - "column": 6 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20323, - "end": 20324, - "loc": { - "start": { - "line": 504, - "column": 6 - }, - "end": { - "line": 504, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fields", - "start": 20329, - "end": 20335, - "loc": { - "start": { - "line": 505, - "column": 4 - }, - "end": { - "line": 505, - "column": 10 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20335, - "end": 20336, - "loc": { - "start": { - "line": 505, - "column": 10 - }, - "end": { - "line": 505, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 20341, - "end": 20346, - "loc": { - "start": { - "line": 506, - "column": 4 - }, - "end": { - "line": 506, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20346, - "end": 20347, - "loc": { - "start": { - "line": 506, - "column": 9 - }, - "end": { - "line": 506, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20350, - "end": 20351, - "loc": { - "start": { - "line": 507, - "column": 2 - }, - "end": { - "line": 507, - "column": 3 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20351, - "end": 20352, - "loc": { - "start": { - "line": 507, - "column": 3 - }, - "end": { - "line": 507, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 20353, - "end": 20361, - "loc": { - "start": { - "line": 507, - "column": 5 - }, - "end": { - "line": 507, - "column": 13 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20361, - "end": 20362, - "loc": { - "start": { - "line": 507, - "column": 13 - }, - "end": { - "line": 507, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20363, - "end": 20364, - "loc": { - "start": { - "line": 507, - "column": 15 - }, - "end": { - "line": 507, - "column": 16 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 20369, - "end": 20374, - "loc": { - "start": { - "line": 508, - "column": 4 - }, - "end": { - "line": 508, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 20375, - "end": 20383, - "loc": { - "start": { - "line": 508, - "column": 10 - }, - "end": { - "line": 508, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 20384, - "end": 20385, - "loc": { - "start": { - "line": 508, - "column": 19 - }, - "end": { - "line": 508, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSON", - "start": 20386, - "end": 20390, - "loc": { - "start": { - "line": 508, - "column": 21 - }, - "end": { - "line": 508, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20390, - "end": 20391, - "loc": { - "start": { - "line": 508, - "column": 25 - }, - "end": { - "line": 508, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "stringify", - "start": 20391, - "end": 20400, - "loc": { - "start": { - "line": 508, - "column": 26 - }, - "end": { - "line": 508, - "column": 35 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20400, - "end": 20401, - "loc": { - "start": { - "line": 508, - "column": 35 - }, - "end": { - "line": 508, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fields", - "start": 20401, - "end": 20407, - "loc": { - "start": { - "line": 508, - "column": 36 - }, - "end": { - "line": 508, - "column": 42 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20407, - "end": 20408, - "loc": { - "start": { - "line": 508, - "column": 42 - }, - "end": { - "line": 508, - "column": 43 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20408, - "end": 20409, - "loc": { - "start": { - "line": 508, - "column": 43 - }, - "end": { - "line": 508, - "column": 44 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 20414, - "end": 20419, - "loc": { - "start": { - "line": 509, - "column": 4 - }, - "end": { - "line": 509, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 20420, - "end": 20423, - "loc": { - "start": { - "line": 509, - "column": 10 - }, - "end": { - "line": 509, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 20424, - "end": 20425, - "loc": { - "start": { - "line": 509, - "column": 14 - }, - "end": { - "line": 509, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 20426, - "end": 20431, - "loc": { - "start": { - "line": 509, - "column": 16 - }, - "end": { - "line": 509, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20438, - "end": 20439, - "loc": { - "start": { - "line": 510, - "column": 6 - }, - "end": { - "line": 510, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 20439, - "end": 20446, - "loc": { - "start": { - "line": 510, - "column": 7 - }, - "end": { - "line": 510, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20446, - "end": 20447, - "loc": { - "start": { - "line": 510, - "column": 14 - }, - "end": { - "line": 510, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 20447, - "end": 20466, - "loc": { - "start": { - "line": 510, - "column": 15 - }, - "end": { - "line": 510, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20466, - "end": 20467, - "loc": { - "start": { - "line": 510, - "column": 34 - }, - "end": { - "line": 510, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20467, - "end": 20468, - "loc": { - "start": { - "line": 510, - "column": 35 - }, - "end": { - "line": 510, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 20477, - "end": 20483, - "loc": { - "start": { - "line": 511, - "column": 8 - }, - "end": { - "line": 511, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20483, - "end": 20484, - "loc": { - "start": { - "line": 511, - "column": 14 - }, - "end": { - "line": 511, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "PUT", - "start": 20485, - "end": 20490, - "loc": { - "start": { - "line": 511, - "column": 16 - }, - "end": { - "line": 511, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20490, - "end": 20491, - "loc": { - "start": { - "line": 511, - "column": 21 - }, - "end": { - "line": 511, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 20500, - "end": 20504, - "loc": { - "start": { - "line": 512, - "column": 8 - }, - "end": { - "line": 512, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20504, - "end": 20505, - "loc": { - "start": { - "line": 512, - "column": 12 - }, - "end": { - "line": 512, - "column": 13 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20506, - "end": 20507, - "loc": { - "start": { - "line": 512, - "column": 14 - }, - "end": { - "line": 512, - "column": 15 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/document/", - "start": 20507, - "end": 20517, - "loc": { - "start": { - "line": 512, - "column": 15 - }, - "end": { - "line": 512, - "column": 25 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20517, - "end": 20519, - "loc": { - "start": { - "line": 512, - "column": 25 - }, - "end": { - "line": 512, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 20519, - "end": 20521, - "loc": { - "start": { - "line": 512, - "column": 27 - }, - "end": { - "line": 512, - "column": 29 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20521, - "end": 20522, - "loc": { - "start": { - "line": 512, - "column": 29 - }, - "end": { - "line": 512, - "column": 30 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 20522, - "end": 20522, - "loc": { - "start": { - "line": 512, - "column": 30 - }, - "end": { - "line": 512, - "column": 30 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20522, - "end": 20523, - "loc": { - "start": { - "line": 512, - "column": 30 - }, - "end": { - "line": 512, - "column": 31 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20523, - "end": 20524, - "loc": { - "start": { - "line": 512, - "column": 31 - }, - "end": { - "line": 512, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 20533, - "end": 20546, - "loc": { - "start": { - "line": 513, - "column": 8 - }, - "end": { - "line": 513, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20546, - "end": 20547, - "loc": { - "start": { - "line": 513, - "column": 21 - }, - "end": { - "line": 513, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20548, - "end": 20549, - "loc": { - "start": { - "line": 513, - "column": 23 - }, - "end": { - "line": 513, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 20560, - "end": 20564, - "loc": { - "start": { - "line": 514, - "column": 10 - }, - "end": { - "line": 514, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20564, - "end": 20565, - "loc": { - "start": { - "line": 514, - "column": 14 - }, - "end": { - "line": 514, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 20566, - "end": 20574, - "loc": { - "start": { - "line": 514, - "column": 16 - }, - "end": { - "line": 514, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20574, - "end": 20575, - "loc": { - "start": { - "line": 514, - "column": 24 - }, - "end": { - "line": 514, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 20586, - "end": 20591, - "loc": { - "start": { - "line": 515, - "column": 10 - }, - "end": { - "line": 515, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20591, - "end": 20592, - "loc": { - "start": { - "line": 515, - "column": 15 - }, - "end": { - "line": 515, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20601, - "end": 20602, - "loc": { - "start": { - "line": 516, - "column": 8 - }, - "end": { - "line": 516, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20602, - "end": 20603, - "loc": { - "start": { - "line": 516, - "column": 9 - }, - "end": { - "line": 516, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 20612, - "end": 20619, - "loc": { - "start": { - "line": 517, - "column": 8 - }, - "end": { - "line": 517, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20619, - "end": 20620, - "loc": { - "start": { - "line": 517, - "column": 15 - }, - "end": { - "line": 517, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20621, - "end": 20622, - "loc": { - "start": { - "line": 517, - "column": 17 - }, - "end": { - "line": 517, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type", - "start": 20633, - "end": 20647, - "loc": { - "start": { - "line": 518, - "column": 10 - }, - "end": { - "line": 518, - "column": 24 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20647, - "end": 20648, - "loc": { - "start": { - "line": 518, - "column": 24 - }, - "end": { - "line": 518, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/json", - "start": 20649, - "end": 20667, - "loc": { - "start": { - "line": 518, - "column": 26 - }, - "end": { - "line": 518, - "column": 44 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20667, - "end": 20668, - "loc": { - "start": { - "line": 518, - "column": 44 - }, - "end": { - "line": 518, - "column": 45 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Length", - "start": 20679, - "end": 20695, - "loc": { - "start": { - "line": 519, - "column": 10 - }, - "end": { - "line": 519, - "column": 26 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20695, - "end": 20696, - "loc": { - "start": { - "line": 519, - "column": 26 - }, - "end": { - "line": 519, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 20697, - "end": 20703, - "loc": { - "start": { - "line": 519, - "column": 28 - }, - "end": { - "line": 519, - "column": 34 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20703, - "end": 20704, - "loc": { - "start": { - "line": 519, - "column": 34 - }, - "end": { - "line": 519, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "byteLength", - "start": 20704, - "end": 20714, - "loc": { - "start": { - "line": 519, - "column": 35 - }, - "end": { - "line": 519, - "column": 45 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20714, - "end": 20715, - "loc": { - "start": { - "line": 519, - "column": 45 - }, - "end": { - "line": 519, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 20715, - "end": 20723, - "loc": { - "start": { - "line": 519, - "column": 46 - }, - "end": { - "line": 519, - "column": 54 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20723, - "end": 20724, - "loc": { - "start": { - "line": 519, - "column": 54 - }, - "end": { - "line": 519, - "column": 55 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20724, - "end": 20725, - "loc": { - "start": { - "line": 519, - "column": 55 - }, - "end": { - "line": 519, - "column": 56 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20734, - "end": 20735, - "loc": { - "start": { - "line": 520, - "column": 8 - }, - "end": { - "line": 520, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20735, - "end": 20736, - "loc": { - "start": { - "line": 520, - "column": 9 - }, - "end": { - "line": 520, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20743, - "end": 20744, - "loc": { - "start": { - "line": 521, - "column": 6 - }, - "end": { - "line": 521, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20744, - "end": 20745, - "loc": { - "start": { - "line": 521, - "column": 7 - }, - "end": { - "line": 521, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20745, - "end": 20746, - "loc": { - "start": { - "line": 521, - "column": 8 - }, - "end": { - "line": 521, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 20747, - "end": 20762, - "loc": { - "start": { - "line": 521, - "column": 10 - }, - "end": { - "line": 521, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20762, - "end": 20763, - "loc": { - "start": { - "line": 521, - "column": 25 - }, - "end": { - "line": 521, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 20763, - "end": 20771, - "loc": { - "start": { - "line": 521, - "column": 26 - }, - "end": { - "line": 521, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20771, - "end": 20772, - "loc": { - "start": { - "line": 521, - "column": 34 - }, - "end": { - "line": 521, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20772, - "end": 20773, - "loc": { - "start": { - "line": 521, - "column": 35 - }, - "end": { - "line": 521, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20780, - "end": 20781, - "loc": { - "start": { - "line": 522, - "column": 6 - }, - "end": { - "line": 522, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 20781, - "end": 20783, - "loc": { - "start": { - "line": 522, - "column": 7 - }, - "end": { - "line": 522, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20783, - "end": 20784, - "loc": { - "start": { - "line": 522, - "column": 9 - }, - "end": { - "line": 522, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 20784, - "end": 20791, - "loc": { - "start": { - "line": 522, - "column": 10 - }, - "end": { - "line": 522, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20791, - "end": 20792, - "loc": { - "start": { - "line": 522, - "column": 17 - }, - "end": { - "line": 522, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 20793, - "end": 20805, - "loc": { - "start": { - "line": 522, - "column": 19 - }, - "end": { - "line": 522, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20805, - "end": 20806, - "loc": { - "start": { - "line": 522, - "column": 31 - }, - "end": { - "line": 522, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 20806, - "end": 20814, - "loc": { - "start": { - "line": 522, - "column": 32 - }, - "end": { - "line": 522, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20814, - "end": 20815, - "loc": { - "start": { - "line": 522, - "column": 40 - }, - "end": { - "line": 522, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20815, - "end": 20816, - "loc": { - "start": { - "line": 522, - "column": 41 - }, - "end": { - "line": 522, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20816, - "end": 20817, - "loc": { - "start": { - "line": 522, - "column": 42 - }, - "end": { - "line": 522, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 20823, - "end": 20826, - "loc": { - "start": { - "line": 524, - "column": 4 - }, - "end": { - "line": 524, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20826, - "end": 20827, - "loc": { - "start": { - "line": 524, - "column": 7 - }, - "end": { - "line": 524, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "write", - "start": 20827, - "end": 20832, - "loc": { - "start": { - "line": 524, - "column": 8 - }, - "end": { - "line": 524, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20832, - "end": 20833, - "loc": { - "start": { - "line": 524, - "column": 13 - }, - "end": { - "line": 524, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 20833, - "end": 20841, - "loc": { - "start": { - "line": 524, - "column": 14 - }, - "end": { - "line": 524, - "column": 22 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20841, - "end": 20842, - "loc": { - "start": { - "line": 524, - "column": 22 - }, - "end": { - "line": 524, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20842, - "end": 20843, - "loc": { - "start": { - "line": 524, - "column": 23 - }, - "end": { - "line": 524, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 20848, - "end": 20851, - "loc": { - "start": { - "line": 525, - "column": 4 - }, - "end": { - "line": 525, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20851, - "end": 20852, - "loc": { - "start": { - "line": 525, - "column": 7 - }, - "end": { - "line": 525, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 20852, - "end": 20855, - "loc": { - "start": { - "line": 525, - "column": 8 - }, - "end": { - "line": 525, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20855, - "end": 20856, - "loc": { - "start": { - "line": 525, - "column": 11 - }, - "end": { - "line": 525, - "column": 12 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20856, - "end": 20857, - "loc": { - "start": { - "line": 525, - "column": 12 - }, - "end": { - "line": 525, - "column": 13 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20857, - "end": 20858, - "loc": { - "start": { - "line": 525, - "column": 13 - }, - "end": { - "line": 525, - "column": 14 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20861, - "end": 20862, - "loc": { - "start": { - "line": 526, - "column": 2 - }, - "end": { - "line": 526, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document download payload\n * @typedef {Object} DocumentDownloadParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 20866, - "end": 21053, - "loc": { - "start": { - "line": 528, - "column": 2 - }, - "end": { - "line": 533, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document binary data\n * @typedef {Buffer} DocumentDownloadResponse\n ", - "start": 21057, - "end": 21140, - "loc": { - "start": { - "line": 535, - "column": 2 - }, - "end": { - "line": 538, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Downloads document with embedded fields and elements\n * @param {DocumentDownloadParams} data - download document request payload\n * @param {function(err: ApiErrorResponse, res: DocumentDownloadResponse)} [callback] - error first node.js callback\n ", - "start": 21144, - "end": 21408, - "loc": { - "start": { - "line": 540, - "column": 2 - }, - "end": { - "line": 544, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 21412, - "end": 21418, - "loc": { - "start": { - "line": 546, - "column": 2 - }, - "end": { - "line": 546, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "download", - "start": 21419, - "end": 21427, - "loc": { - "start": { - "line": 546, - "column": 9 - }, - "end": { - "line": 546, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21428, - "end": 21429, - "loc": { - "start": { - "line": 546, - "column": 18 - }, - "end": { - "line": 546, - "column": 19 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21429, - "end": 21430, - "loc": { - "start": { - "line": 546, - "column": 19 - }, - "end": { - "line": 546, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 21431, - "end": 21433, - "loc": { - "start": { - "line": 546, - "column": 21 - }, - "end": { - "line": 546, - "column": 23 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21433, - "end": 21434, - "loc": { - "start": { - "line": 546, - "column": 23 - }, - "end": { - "line": 546, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 21435, - "end": 21440, - "loc": { - "start": { - "line": 546, - "column": 25 - }, - "end": { - "line": 546, - "column": 30 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21441, - "end": 21442, - "loc": { - "start": { - "line": 546, - "column": 31 - }, - "end": { - "line": 546, - "column": 32 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21442, - "end": 21443, - "loc": { - "start": { - "line": 546, - "column": 32 - }, - "end": { - "line": 546, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 21444, - "end": 21452, - "loc": { - "start": { - "line": 546, - "column": 34 - }, - "end": { - "line": 546, - "column": 42 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21452, - "end": 21453, - "loc": { - "start": { - "line": 546, - "column": 42 - }, - "end": { - "line": 546, - "column": 43 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21454, - "end": 21455, - "loc": { - "start": { - "line": 546, - "column": 44 - }, - "end": { - "line": 546, - "column": 45 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 21460, - "end": 21465, - "loc": { - "start": { - "line": 547, - "column": 4 - }, - "end": { - "line": 547, - "column": 9 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21472, - "end": 21473, - "loc": { - "start": { - "line": 548, - "column": 6 - }, - "end": { - "line": 548, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 21473, - "end": 21480, - "loc": { - "start": { - "line": 548, - "column": 7 - }, - "end": { - "line": 548, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21480, - "end": 21481, - "loc": { - "start": { - "line": 548, - "column": 14 - }, - "end": { - "line": 548, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 21481, - "end": 21500, - "loc": { - "start": { - "line": 548, - "column": 15 - }, - "end": { - "line": 548, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21500, - "end": 21501, - "loc": { - "start": { - "line": 548, - "column": 34 - }, - "end": { - "line": 548, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21501, - "end": 21502, - "loc": { - "start": { - "line": 548, - "column": 35 - }, - "end": { - "line": 548, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 21511, - "end": 21517, - "loc": { - "start": { - "line": 549, - "column": 8 - }, - "end": { - "line": 549, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21517, - "end": 21518, - "loc": { - "start": { - "line": 549, - "column": 14 - }, - "end": { - "line": 549, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "GET", - "start": 21519, - "end": 21524, - "loc": { - "start": { - "line": 549, - "column": 16 - }, - "end": { - "line": 549, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21524, - "end": 21525, - "loc": { - "start": { - "line": 549, - "column": 21 - }, - "end": { - "line": 549, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 21534, - "end": 21538, - "loc": { - "start": { - "line": 550, - "column": 8 - }, - "end": { - "line": 550, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21538, - "end": 21539, - "loc": { - "start": { - "line": 550, - "column": 12 - }, - "end": { - "line": 550, - "column": 13 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21540, - "end": 21541, - "loc": { - "start": { - "line": 550, - "column": 14 - }, - "end": { - "line": 550, - "column": 15 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/document/", - "start": 21541, - "end": 21551, - "loc": { - "start": { - "line": 550, - "column": 15 - }, - "end": { - "line": 550, - "column": 25 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21551, - "end": 21553, - "loc": { - "start": { - "line": 550, - "column": 25 - }, - "end": { - "line": 550, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 21553, - "end": 21555, - "loc": { - "start": { - "line": 550, - "column": 27 - }, - "end": { - "line": 550, - "column": 29 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21555, - "end": 21556, - "loc": { - "start": { - "line": 550, - "column": 29 - }, - "end": { - "line": 550, - "column": 30 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/download?type=collapsed", - "start": 21556, - "end": 21580, - "loc": { - "start": { - "line": 550, - "column": 30 - }, - "end": { - "line": 550, - "column": 54 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21580, - "end": 21581, - "loc": { - "start": { - "line": 550, - "column": 54 - }, - "end": { - "line": 550, - "column": 55 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21581, - "end": 21582, - "loc": { - "start": { - "line": 550, - "column": 55 - }, - "end": { - "line": 550, - "column": 56 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 21591, - "end": 21604, - "loc": { - "start": { - "line": 551, - "column": 8 - }, - "end": { - "line": 551, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21604, - "end": 21605, - "loc": { - "start": { - "line": 551, - "column": 21 - }, - "end": { - "line": 551, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21606, - "end": 21607, - "loc": { - "start": { - "line": 551, - "column": 23 - }, - "end": { - "line": 551, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 21618, - "end": 21622, - "loc": { - "start": { - "line": 552, - "column": 10 - }, - "end": { - "line": 552, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21622, - "end": 21623, - "loc": { - "start": { - "line": 552, - "column": 14 - }, - "end": { - "line": 552, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 21624, - "end": 21632, - "loc": { - "start": { - "line": 552, - "column": 16 - }, - "end": { - "line": 552, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21632, - "end": 21633, - "loc": { - "start": { - "line": 552, - "column": 24 - }, - "end": { - "line": 552, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 21644, - "end": 21649, - "loc": { - "start": { - "line": 553, - "column": 10 - }, - "end": { - "line": 553, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21649, - "end": 21650, - "loc": { - "start": { - "line": 553, - "column": 15 - }, - "end": { - "line": 553, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21659, - "end": 21660, - "loc": { - "start": { - "line": 554, - "column": 8 - }, - "end": { - "line": 554, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21660, - "end": 21661, - "loc": { - "start": { - "line": 554, - "column": 9 - }, - "end": { - "line": 554, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21668, - "end": 21669, - "loc": { - "start": { - "line": 555, - "column": 6 - }, - "end": { - "line": 555, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21669, - "end": 21670, - "loc": { - "start": { - "line": 555, - "column": 7 - }, - "end": { - "line": 555, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21670, - "end": 21671, - "loc": { - "start": { - "line": 555, - "column": 8 - }, - "end": { - "line": 555, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 21672, - "end": 21687, - "loc": { - "start": { - "line": 555, - "column": 10 - }, - "end": { - "line": 555, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21687, - "end": 21688, - "loc": { - "start": { - "line": 555, - "column": 25 - }, - "end": { - "line": 555, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 21688, - "end": 21696, - "loc": { - "start": { - "line": 555, - "column": 26 - }, - "end": { - "line": 555, - "column": 34 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21696, - "end": 21697, - "loc": { - "start": { - "line": 555, - "column": 34 - }, - "end": { - "line": 555, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21698, - "end": 21699, - "loc": { - "start": { - "line": 555, - "column": 36 - }, - "end": { - "line": 555, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parse", - "start": 21700, - "end": 21705, - "loc": { - "start": { - "line": 555, - "column": 38 - }, - "end": { - "line": 555, - "column": 43 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21705, - "end": 21706, - "loc": { - "start": { - "line": 555, - "column": 43 - }, - "end": { - "line": 555, - "column": 44 - } - } - }, - { - "type": { - "label": "false", - "keyword": "false", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "false", - "start": 21707, - "end": 21712, - "loc": { - "start": { - "line": 555, - "column": 45 - }, - "end": { - "line": 555, - "column": 50 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21713, - "end": 21714, - "loc": { - "start": { - "line": 555, - "column": 51 - }, - "end": { - "line": 555, - "column": 52 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21714, - "end": 21715, - "loc": { - "start": { - "line": 555, - "column": 52 - }, - "end": { - "line": 555, - "column": 53 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21715, - "end": 21716, - "loc": { - "start": { - "line": 555, - "column": 53 - }, - "end": { - "line": 555, - "column": 54 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21723, - "end": 21724, - "loc": { - "start": { - "line": 556, - "column": 6 - }, - "end": { - "line": 556, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 21724, - "end": 21726, - "loc": { - "start": { - "line": 556, - "column": 7 - }, - "end": { - "line": 556, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21726, - "end": 21727, - "loc": { - "start": { - "line": 556, - "column": 9 - }, - "end": { - "line": 556, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 21727, - "end": 21734, - "loc": { - "start": { - "line": 556, - "column": 10 - }, - "end": { - "line": 556, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21734, - "end": 21735, - "loc": { - "start": { - "line": 556, - "column": 17 - }, - "end": { - "line": 556, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 21736, - "end": 21748, - "loc": { - "start": { - "line": 556, - "column": 19 - }, - "end": { - "line": 556, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21748, - "end": 21749, - "loc": { - "start": { - "line": 556, - "column": 31 - }, - "end": { - "line": 556, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 21749, - "end": 21757, - "loc": { - "start": { - "line": 556, - "column": 32 - }, - "end": { - "line": 556, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21757, - "end": 21758, - "loc": { - "start": { - "line": 556, - "column": 40 - }, - "end": { - "line": 556, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21758, - "end": 21759, - "loc": { - "start": { - "line": 556, - "column": 41 - }, - "end": { - "line": 556, - "column": 42 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21766, - "end": 21767, - "loc": { - "start": { - "line": 557, - "column": 6 - }, - "end": { - "line": 557, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 21767, - "end": 21770, - "loc": { - "start": { - "line": 557, - "column": 7 - }, - "end": { - "line": 557, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21770, - "end": 21771, - "loc": { - "start": { - "line": 557, - "column": 10 - }, - "end": { - "line": 557, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21771, - "end": 21772, - "loc": { - "start": { - "line": 557, - "column": 11 - }, - "end": { - "line": 557, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21772, - "end": 21773, - "loc": { - "start": { - "line": 557, - "column": 12 - }, - "end": { - "line": 557, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21776, - "end": 21777, - "loc": { - "start": { - "line": 558, - "column": 2 - }, - "end": { - "line": 558, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " creates a one-time use URL for anyone to download the document as a PDF.", - "start": 21781, - "end": 21856, - "loc": { - "start": { - "line": 560, - "column": 2 - }, - "end": { - "line": 560, - "column": 77 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 21859, - "end": 21865, - "loc": { - "start": { - "line": 561, - "column": 2 - }, - "end": { - "line": 561, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "share", - "start": 21866, - "end": 21871, - "loc": { - "start": { - "line": 561, - "column": 9 - }, - "end": { - "line": 561, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21872, - "end": 21873, - "loc": { - "start": { - "line": 561, - "column": 15 - }, - "end": { - "line": 561, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21873, - "end": 21874, - "loc": { - "start": { - "line": 561, - "column": 16 - }, - "end": { - "line": 561, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 21875, - "end": 21877, - "loc": { - "start": { - "line": 561, - "column": 18 - }, - "end": { - "line": 561, - "column": 20 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21877, - "end": 21878, - "loc": { - "start": { - "line": 561, - "column": 20 - }, - "end": { - "line": 561, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 21879, - "end": 21884, - "loc": { - "start": { - "line": 561, - "column": 22 - }, - "end": { - "line": 561, - "column": 27 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21885, - "end": 21886, - "loc": { - "start": { - "line": 561, - "column": 28 - }, - "end": { - "line": 561, - "column": 29 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21886, - "end": 21887, - "loc": { - "start": { - "line": 561, - "column": 29 - }, - "end": { - "line": 561, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 21888, - "end": 21896, - "loc": { - "start": { - "line": 561, - "column": 31 - }, - "end": { - "line": 561, - "column": 39 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21896, - "end": 21897, - "loc": { - "start": { - "line": 561, - "column": 39 - }, - "end": { - "line": 561, - "column": 40 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21898, - "end": 21899, - "loc": { - "start": { - "line": 561, - "column": 41 - }, - "end": { - "line": 561, - "column": 42 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 21904, - "end": 21909, - "loc": { - "start": { - "line": 562, - "column": 4 - }, - "end": { - "line": 562, - "column": 9 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21916, - "end": 21917, - "loc": { - "start": { - "line": 563, - "column": 6 - }, - "end": { - "line": 563, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 21917, - "end": 21924, - "loc": { - "start": { - "line": 563, - "column": 7 - }, - "end": { - "line": 563, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21924, - "end": 21925, - "loc": { - "start": { - "line": 563, - "column": 14 - }, - "end": { - "line": 563, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 21925, - "end": 21944, - "loc": { - "start": { - "line": 563, - "column": 15 - }, - "end": { - "line": 563, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21944, - "end": 21945, - "loc": { - "start": { - "line": 563, - "column": 34 - }, - "end": { - "line": 563, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21945, - "end": 21946, - "loc": { - "start": { - "line": 563, - "column": 35 - }, - "end": { - "line": 563, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 21955, - "end": 21961, - "loc": { - "start": { - "line": 564, - "column": 8 - }, - "end": { - "line": 564, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21961, - "end": 21962, - "loc": { - "start": { - "line": 564, - "column": 14 - }, - "end": { - "line": 564, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "POST", - "start": 21963, - "end": 21969, - "loc": { - "start": { - "line": 564, - "column": 16 - }, - "end": { - "line": 564, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21969, - "end": 21970, - "loc": { - "start": { - "line": 564, - "column": 22 - }, - "end": { - "line": 564, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 21979, - "end": 21983, - "loc": { - "start": { - "line": 565, - "column": 8 - }, - "end": { - "line": 565, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21983, - "end": 21984, - "loc": { - "start": { - "line": 565, - "column": 12 - }, - "end": { - "line": 565, - "column": 13 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21985, - "end": 21986, - "loc": { - "start": { - "line": 565, - "column": 14 - }, - "end": { - "line": 565, - "column": 15 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/document/", - "start": 21986, - "end": 21996, - "loc": { - "start": { - "line": 565, - "column": 15 - }, - "end": { - "line": 565, - "column": 25 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21996, - "end": 21998, - "loc": { - "start": { - "line": 565, - "column": 25 - }, - "end": { - "line": 565, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 21998, - "end": 22000, - "loc": { - "start": { - "line": 565, - "column": 27 - }, - "end": { - "line": 565, - "column": 29 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22000, - "end": 22001, - "loc": { - "start": { - "line": 565, - "column": 29 - }, - "end": { - "line": 565, - "column": 30 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/download/link", - "start": 22001, - "end": 22015, - "loc": { - "start": { - "line": 565, - "column": 30 - }, - "end": { - "line": 565, - "column": 44 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22015, - "end": 22016, - "loc": { - "start": { - "line": 565, - "column": 44 - }, - "end": { - "line": 565, - "column": 45 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22016, - "end": 22017, - "loc": { - "start": { - "line": 565, - "column": 45 - }, - "end": { - "line": 565, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 22026, - "end": 22039, - "loc": { - "start": { - "line": 566, - "column": 8 - }, - "end": { - "line": 566, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22039, - "end": 22040, - "loc": { - "start": { - "line": 566, - "column": 21 - }, - "end": { - "line": 566, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22041, - "end": 22042, - "loc": { - "start": { - "line": 566, - "column": 23 - }, - "end": { - "line": 566, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 22053, - "end": 22057, - "loc": { - "start": { - "line": 567, - "column": 10 - }, - "end": { - "line": 567, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22057, - "end": 22058, - "loc": { - "start": { - "line": 567, - "column": 14 - }, - "end": { - "line": 567, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 22059, - "end": 22067, - "loc": { - "start": { - "line": 567, - "column": 16 - }, - "end": { - "line": 567, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22067, - "end": 22068, - "loc": { - "start": { - "line": 567, - "column": 24 - }, - "end": { - "line": 567, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 22079, - "end": 22084, - "loc": { - "start": { - "line": 568, - "column": 10 - }, - "end": { - "line": 568, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22084, - "end": 22085, - "loc": { - "start": { - "line": 568, - "column": 15 - }, - "end": { - "line": 568, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22094, - "end": 22095, - "loc": { - "start": { - "line": 569, - "column": 8 - }, - "end": { - "line": 569, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22095, - "end": 22096, - "loc": { - "start": { - "line": 569, - "column": 9 - }, - "end": { - "line": 569, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22103, - "end": 22104, - "loc": { - "start": { - "line": 570, - "column": 6 - }, - "end": { - "line": 570, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22104, - "end": 22105, - "loc": { - "start": { - "line": 570, - "column": 7 - }, - "end": { - "line": 570, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22105, - "end": 22106, - "loc": { - "start": { - "line": 570, - "column": 8 - }, - "end": { - "line": 570, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 22107, - "end": 22122, - "loc": { - "start": { - "line": 570, - "column": 10 - }, - "end": { - "line": 570, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22122, - "end": 22123, - "loc": { - "start": { - "line": 570, - "column": 25 - }, - "end": { - "line": 570, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 22123, - "end": 22131, - "loc": { - "start": { - "line": 570, - "column": 26 - }, - "end": { - "line": 570, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22131, - "end": 22132, - "loc": { - "start": { - "line": 570, - "column": 34 - }, - "end": { - "line": 570, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22132, - "end": 22133, - "loc": { - "start": { - "line": 570, - "column": 35 - }, - "end": { - "line": 570, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22140, - "end": 22141, - "loc": { - "start": { - "line": 571, - "column": 6 - }, - "end": { - "line": 571, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 22141, - "end": 22143, - "loc": { - "start": { - "line": 571, - "column": 7 - }, - "end": { - "line": 571, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22143, - "end": 22144, - "loc": { - "start": { - "line": 571, - "column": 9 - }, - "end": { - "line": 571, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 22144, - "end": 22151, - "loc": { - "start": { - "line": 571, - "column": 10 - }, - "end": { - "line": 571, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22151, - "end": 22152, - "loc": { - "start": { - "line": 571, - "column": 17 - }, - "end": { - "line": 571, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 22153, - "end": 22165, - "loc": { - "start": { - "line": 571, - "column": 19 - }, - "end": { - "line": 571, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22165, - "end": 22166, - "loc": { - "start": { - "line": 571, - "column": 31 - }, - "end": { - "line": 571, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 22166, - "end": 22174, - "loc": { - "start": { - "line": 571, - "column": 32 - }, - "end": { - "line": 571, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22174, - "end": 22175, - "loc": { - "start": { - "line": 571, - "column": 40 - }, - "end": { - "line": 571, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22175, - "end": 22176, - "loc": { - "start": { - "line": 571, - "column": 41 - }, - "end": { - "line": 571, - "column": 42 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22183, - "end": 22184, - "loc": { - "start": { - "line": 572, - "column": 6 - }, - "end": { - "line": 572, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 22184, - "end": 22187, - "loc": { - "start": { - "line": 572, - "column": 7 - }, - "end": { - "line": 572, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22187, - "end": 22188, - "loc": { - "start": { - "line": 572, - "column": 10 - }, - "end": { - "line": 572, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22188, - "end": 22189, - "loc": { - "start": { - "line": 572, - "column": 11 - }, - "end": { - "line": 572, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22189, - "end": 22190, - "loc": { - "start": { - "line": 572, - "column": 12 - }, - "end": { - "line": 572, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22193, - "end": 22194, - "loc": { - "start": { - "line": 573, - "column": 2 - }, - "end": { - "line": 573, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document invite signer settings\n * @typedef {Object} SignerSettings\n * @property {string} email - signer's email\n * @property {string} role - role name\n * @property {string} role_id - role unique id (can be discovered in document details)\n * @property {number} order - role signing order\n * @property {string} reassign - allow reassign signer\n * @property {string} decline_by_signature - signer can decline invite\n * @property {number} reminder - remind via email in days\n * @property {number} expiration_days - expiration of invite in days\n * @property {string} [subject] - specify subject of email\n * @property {string} [message] - specify body of email\n ", - "start": 22198, - "end": 22890, - "loc": { - "start": { - "line": 575, - "column": 2 - }, - "end": { - "line": 588, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document invite settings\n * @typedef {Object} DocumentInviteSettings\n * @property {string} from - email of sender\n * @property {SignerSettings[]|string} to - array of signers or email of single signer\n * @property {string} [document_id] - an id of document\n * @property {string[]} [cc] - array with emails of copy receivers\n * @property {string} [subject] - specify subject of email\n * @property {string} [message] - specify body of email\n * @property {string} [on_complete] - on signing complete action\n ", - "start": 22894, - "end": 23428, - "loc": { - "start": { - "line": 590, - "column": 2 - }, - "end": { - "line": 600, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document invite optional settings\n * @typedef {Object} DocumentInviteOptions\n * @property {string} [email] - ability to disable invitation by email. to disabale email assign value 'disable'\n ", - "start": 23432, - "end": 23640, - "loc": { - "start": { - "line": 602, - "column": 2 - }, - "end": { - "line": 606, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document invite payload\n * @typedef {Object} DocumentInviteParams\n * @property {string} id - an id of document\n * @property {DocumentInviteSettings} data - document invite settings\n * @property {DocumentInviteOptions} [options] - document invite optional settings\n * @property {string} token - your auth token\n ", - "start": 23644, - "end": 23985, - "loc": { - "start": { - "line": 608, - "column": 2 - }, - "end": { - "line": 615, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document field invite response data\n * @typedef {Object} DocumentFieldInviteResponse\n * @property {string} status - status of invitation, e.g. 'success'\n ", - "start": 23989, - "end": 24167, - "loc": { - "start": { - "line": 617, - "column": 2 - }, - "end": { - "line": 621, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document free form invite response data\n * @typedef {Object} DocumentFreeformInviteResponse\n * @property {string} result - free form invitation result, e.g. 'success'\n * @property {string} id - unique id of invite\n * @property {string} callback_url - url for front-end redirect or 'none'\n ", - "start": 24171, - "end": 24488, - "loc": { - "start": { - "line": 623, - "column": 2 - }, - "end": { - "line": 629, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document invite response data\n * @typedef {DocumentFieldInviteResponse|DocumentFreeformInviteResponse} DocumentInviteResponse\n ", - "start": 24492, - "end": 24641, - "loc": { - "start": { - "line": 631, - "column": 2 - }, - "end": { - "line": 634, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates an invite to sign a document.\n * You can create a simple free form invite(s) or a role-based invite(s).\n * @param {DocumentInviteParams} data - create document invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentInviteResponse)} [callback] - error first node.js callback\n ", - "start": 24645, - "end": 24963, - "loc": { - "start": { - "line": 636, - "column": 2 - }, - "end": { - "line": 641, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 24966, - "end": 24972, - "loc": { - "start": { - "line": 642, - "column": 2 - }, - "end": { - "line": 642, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "invite", - "start": 24973, - "end": 24979, - "loc": { - "start": { - "line": 642, - "column": 9 - }, - "end": { - "line": 642, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 24980, - "end": 24981, - "loc": { - "start": { - "line": 642, - "column": 16 - }, - "end": { - "line": 642, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 24981, - "end": 24982, - "loc": { - "start": { - "line": 642, - "column": 17 - }, - "end": { - "line": 642, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 24987, - "end": 24989, - "loc": { - "start": { - "line": 643, - "column": 4 - }, - "end": { - "line": 643, - "column": 6 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 24989, - "end": 24990, - "loc": { - "start": { - "line": 643, - "column": 6 - }, - "end": { - "line": 643, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 24995, - "end": 24999, - "loc": { - "start": { - "line": 644, - "column": 4 - }, - "end": { - "line": 644, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 24999, - "end": 25000, - "loc": { - "start": { - "line": 644, - "column": 8 - }, - "end": { - "line": 644, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "options", - "start": 25005, - "end": 25012, - "loc": { - "start": { - "line": 645, - "column": 4 - }, - "end": { - "line": 645, - "column": 11 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25012, - "end": 25013, - "loc": { - "start": { - "line": 645, - "column": 11 - }, - "end": { - "line": 645, - "column": 12 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25014, - "end": 25015, - "loc": { - "start": { - "line": 645, - "column": 13 - }, - "end": { - "line": 645, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "email", - "start": 25016, - "end": 25021, - "loc": { - "start": { - "line": 645, - "column": 15 - }, - "end": { - "line": 645, - "column": 20 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25022, - "end": 25023, - "loc": { - "start": { - "line": 645, - "column": 21 - }, - "end": { - "line": 645, - "column": 22 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 25024, - "end": 25025, - "loc": { - "start": { - "line": 645, - "column": 23 - }, - "end": { - "line": 645, - "column": 24 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25026, - "end": 25027, - "loc": { - "start": { - "line": 645, - "column": 25 - }, - "end": { - "line": 645, - "column": 26 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25027, - "end": 25028, - "loc": { - "start": { - "line": 645, - "column": 26 - }, - "end": { - "line": 645, - "column": 27 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25028, - "end": 25029, - "loc": { - "start": { - "line": 645, - "column": 27 - }, - "end": { - "line": 645, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 25034, - "end": 25039, - "loc": { - "start": { - "line": 646, - "column": 4 - }, - "end": { - "line": 646, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25039, - "end": 25040, - "loc": { - "start": { - "line": 646, - "column": 9 - }, - "end": { - "line": 646, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25043, - "end": 25044, - "loc": { - "start": { - "line": 647, - "column": 2 - }, - "end": { - "line": 647, - "column": 3 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25044, - "end": 25045, - "loc": { - "start": { - "line": 647, - "column": 3 - }, - "end": { - "line": 647, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 25046, - "end": 25054, - "loc": { - "start": { - "line": 647, - "column": 5 - }, - "end": { - "line": 647, - "column": 13 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25054, - "end": 25055, - "loc": { - "start": { - "line": 647, - "column": 13 - }, - "end": { - "line": 647, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25056, - "end": 25057, - "loc": { - "start": { - "line": 647, - "column": 15 - }, - "end": { - "line": 647, - "column": 16 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 25062, - "end": 25067, - "loc": { - "start": { - "line": 648, - "column": 4 - }, - "end": { - "line": 648, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 25068, - "end": 25076, - "loc": { - "start": { - "line": 648, - "column": 10 - }, - "end": { - "line": 648, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 25077, - "end": 25078, - "loc": { - "start": { - "line": 648, - "column": 19 - }, - "end": { - "line": 648, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSON", - "start": 25079, - "end": 25083, - "loc": { - "start": { - "line": 648, - "column": 21 - }, - "end": { - "line": 648, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25083, - "end": 25084, - "loc": { - "start": { - "line": 648, - "column": 25 - }, - "end": { - "line": 648, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "stringify", - "start": 25084, - "end": 25093, - "loc": { - "start": { - "line": 648, - "column": 26 - }, - "end": { - "line": 648, - "column": 35 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25093, - "end": 25094, - "loc": { - "start": { - "line": 648, - "column": 35 - }, - "end": { - "line": 648, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 25094, - "end": 25098, - "loc": { - "start": { - "line": 648, - "column": 36 - }, - "end": { - "line": 648, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25098, - "end": 25099, - "loc": { - "start": { - "line": 648, - "column": 40 - }, - "end": { - "line": 648, - "column": 41 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25099, - "end": 25100, - "loc": { - "start": { - "line": 648, - "column": 41 - }, - "end": { - "line": 648, - "column": 42 - } - } - }, - { - "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "let", - "start": 25105, - "end": 25108, - "loc": { - "start": { - "line": 649, - "column": 4 - }, - "end": { - "line": 649, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 25109, - "end": 25113, - "loc": { - "start": { - "line": 649, - "column": 8 - }, - "end": { - "line": 649, - "column": 12 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 25114, - "end": 25115, - "loc": { - "start": { - "line": 649, - "column": 13 - }, - "end": { - "line": 649, - "column": 14 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25116, - "end": 25117, - "loc": { - "start": { - "line": 649, - "column": 15 - }, - "end": { - "line": 649, - "column": 16 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/document/", - "start": 25117, - "end": 25127, - "loc": { - "start": { - "line": 649, - "column": 16 - }, - "end": { - "line": 649, - "column": 26 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25127, - "end": 25129, - "loc": { - "start": { - "line": 649, - "column": 26 - }, - "end": { - "line": 649, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 25129, - "end": 25131, - "loc": { - "start": { - "line": 649, - "column": 28 - }, - "end": { - "line": 649, - "column": 30 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25131, - "end": 25132, - "loc": { - "start": { - "line": 649, - "column": 30 - }, - "end": { - "line": 649, - "column": 31 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/invite", - "start": 25132, - "end": 25139, - "loc": { - "start": { - "line": 649, - "column": 31 - }, - "end": { - "line": 649, - "column": 38 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25139, - "end": 25140, - "loc": { - "start": { - "line": 649, - "column": 38 - }, - "end": { - "line": 649, - "column": 39 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25140, - "end": 25141, - "loc": { - "start": { - "line": 649, - "column": 39 - }, - "end": { - "line": 649, - "column": 40 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 25147, - "end": 25149, - "loc": { - "start": { - "line": 651, - "column": 4 - }, - "end": { - "line": 651, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25150, - "end": 25151, - "loc": { - "start": { - "line": 651, - "column": 7 - }, - "end": { - "line": 651, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "email", - "start": 25151, - "end": 25156, - "loc": { - "start": { - "line": 651, - "column": 8 - }, - "end": { - "line": 651, - "column": 13 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 25157, - "end": 25160, - "loc": { - "start": { - "line": 651, - "column": 14 - }, - "end": { - "line": 651, - "column": 17 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "disable", - "start": 25161, - "end": 25170, - "loc": { - "start": { - "line": 651, - "column": 18 - }, - "end": { - "line": 651, - "column": 27 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25170, - "end": 25171, - "loc": { - "start": { - "line": 651, - "column": 27 - }, - "end": { - "line": 651, - "column": 28 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25172, - "end": 25173, - "loc": { - "start": { - "line": 651, - "column": 29 - }, - "end": { - "line": 651, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 25180, - "end": 25184, - "loc": { - "start": { - "line": 652, - "column": 6 - }, - "end": { - "line": 652, - "column": 10 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 25185, - "end": 25186, - "loc": { - "start": { - "line": 652, - "column": 11 - }, - "end": { - "line": 652, - "column": 12 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25187, - "end": 25188, - "loc": { - "start": { - "line": 652, - "column": 13 - }, - "end": { - "line": 652, - "column": 14 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 25188, - "end": 25188, - "loc": { - "start": { - "line": 652, - "column": 14 - }, - "end": { - "line": 652, - "column": 14 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25188, - "end": 25190, - "loc": { - "start": { - "line": 652, - "column": 14 - }, - "end": { - "line": 652, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 25190, - "end": 25194, - "loc": { - "start": { - "line": 652, - "column": 16 - }, - "end": { - "line": 652, - "column": 20 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25194, - "end": 25195, - "loc": { - "start": { - "line": 652, - "column": 20 - }, - "end": { - "line": 652, - "column": 21 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "?email=disable", - "start": 25195, - "end": 25209, - "loc": { - "start": { - "line": 652, - "column": 21 - }, - "end": { - "line": 652, - "column": 35 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25209, - "end": 25210, - "loc": { - "start": { - "line": 652, - "column": 35 - }, - "end": { - "line": 652, - "column": 36 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25210, - "end": 25211, - "loc": { - "start": { - "line": 652, - "column": 36 - }, - "end": { - "line": 652, - "column": 37 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25216, - "end": 25217, - "loc": { - "start": { - "line": 653, - "column": 4 - }, - "end": { - "line": 653, - "column": 5 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 25223, - "end": 25228, - "loc": { - "start": { - "line": 655, - "column": 4 - }, - "end": { - "line": 655, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 25229, - "end": 25232, - "loc": { - "start": { - "line": 655, - "column": 10 - }, - "end": { - "line": 655, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 25233, - "end": 25234, - "loc": { - "start": { - "line": 655, - "column": 14 - }, - "end": { - "line": 655, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 25235, - "end": 25240, - "loc": { - "start": { - "line": 655, - "column": 16 - }, - "end": { - "line": 655, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25247, - "end": 25248, - "loc": { - "start": { - "line": 656, - "column": 6 - }, - "end": { - "line": 656, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 25248, - "end": 25255, - "loc": { - "start": { - "line": 656, - "column": 7 - }, - "end": { - "line": 656, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25255, - "end": 25256, - "loc": { - "start": { - "line": 656, - "column": 14 - }, - "end": { - "line": 656, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 25256, - "end": 25275, - "loc": { - "start": { - "line": 656, - "column": 15 - }, - "end": { - "line": 656, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25275, - "end": 25276, - "loc": { - "start": { - "line": 656, - "column": 34 - }, - "end": { - "line": 656, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25276, - "end": 25277, - "loc": { - "start": { - "line": 656, - "column": 35 - }, - "end": { - "line": 656, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 25286, - "end": 25292, - "loc": { - "start": { - "line": 657, - "column": 8 - }, - "end": { - "line": 657, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25292, - "end": 25293, - "loc": { - "start": { - "line": 657, - "column": 14 - }, - "end": { - "line": 657, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "POST", - "start": 25294, - "end": 25300, - "loc": { - "start": { - "line": 657, - "column": 16 - }, - "end": { - "line": 657, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25300, - "end": 25301, - "loc": { - "start": { - "line": 657, - "column": 22 - }, - "end": { - "line": 657, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 25310, - "end": 25323, - "loc": { - "start": { - "line": 658, - "column": 8 - }, - "end": { - "line": 658, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25323, - "end": 25324, - "loc": { - "start": { - "line": 658, - "column": 21 - }, - "end": { - "line": 658, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25325, - "end": 25326, - "loc": { - "start": { - "line": 658, - "column": 23 - }, - "end": { - "line": 658, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 25337, - "end": 25341, - "loc": { - "start": { - "line": 659, - "column": 10 - }, - "end": { - "line": 659, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25341, - "end": 25342, - "loc": { - "start": { - "line": 659, - "column": 14 - }, - "end": { - "line": 659, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 25343, - "end": 25351, - "loc": { - "start": { - "line": 659, - "column": 16 - }, - "end": { - "line": 659, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25351, - "end": 25352, - "loc": { - "start": { - "line": 659, - "column": 24 - }, - "end": { - "line": 659, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 25363, - "end": 25368, - "loc": { - "start": { - "line": 660, - "column": 10 - }, - "end": { - "line": 660, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25368, - "end": 25369, - "loc": { - "start": { - "line": 660, - "column": 15 - }, - "end": { - "line": 660, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25378, - "end": 25379, - "loc": { - "start": { - "line": 661, - "column": 8 - }, - "end": { - "line": 661, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25379, - "end": 25380, - "loc": { - "start": { - "line": 661, - "column": 9 - }, - "end": { - "line": 661, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 25389, - "end": 25396, - "loc": { - "start": { - "line": 662, - "column": 8 - }, - "end": { - "line": 662, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25396, - "end": 25397, - "loc": { - "start": { - "line": 662, - "column": 15 - }, - "end": { - "line": 662, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25398, - "end": 25399, - "loc": { - "start": { - "line": 662, - "column": 17 - }, - "end": { - "line": 662, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type", - "start": 25410, - "end": 25424, - "loc": { - "start": { - "line": 663, - "column": 10 - }, - "end": { - "line": 663, - "column": 24 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25424, - "end": 25425, - "loc": { - "start": { - "line": 663, - "column": 24 - }, - "end": { - "line": 663, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/json", - "start": 25426, - "end": 25444, - "loc": { - "start": { - "line": 663, - "column": 26 - }, - "end": { - "line": 663, - "column": 44 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25444, - "end": 25445, - "loc": { - "start": { - "line": 663, - "column": 44 - }, - "end": { - "line": 663, - "column": 45 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Length", - "start": 25456, - "end": 25472, - "loc": { - "start": { - "line": 664, - "column": 10 - }, - "end": { - "line": 664, - "column": 26 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25472, - "end": 25473, - "loc": { - "start": { - "line": 664, - "column": 26 - }, - "end": { - "line": 664, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 25474, - "end": 25480, - "loc": { - "start": { - "line": 664, - "column": 28 - }, - "end": { - "line": 664, - "column": 34 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25480, - "end": 25481, - "loc": { - "start": { - "line": 664, - "column": 34 - }, - "end": { - "line": 664, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "byteLength", - "start": 25481, - "end": 25491, - "loc": { - "start": { - "line": 664, - "column": 35 - }, - "end": { - "line": 664, - "column": 45 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25491, - "end": 25492, - "loc": { - "start": { - "line": 664, - "column": 45 - }, - "end": { - "line": 664, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 25492, - "end": 25500, - "loc": { - "start": { - "line": 664, - "column": 46 - }, - "end": { - "line": 664, - "column": 54 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25500, - "end": 25501, - "loc": { - "start": { - "line": 664, - "column": 54 - }, - "end": { - "line": 664, - "column": 55 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25501, - "end": 25502, - "loc": { - "start": { - "line": 664, - "column": 55 - }, - "end": { - "line": 664, - "column": 56 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25511, - "end": 25512, - "loc": { - "start": { - "line": 665, - "column": 8 - }, - "end": { - "line": 665, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25512, - "end": 25513, - "loc": { - "start": { - "line": 665, - "column": 9 - }, - "end": { - "line": 665, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 25522, - "end": 25526, - "loc": { - "start": { - "line": 666, - "column": 8 - }, - "end": { - "line": 666, - "column": 12 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25526, - "end": 25527, - "loc": { - "start": { - "line": 666, - "column": 12 - }, - "end": { - "line": 666, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25534, - "end": 25535, - "loc": { - "start": { - "line": 667, - "column": 6 - }, - "end": { - "line": 667, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25535, - "end": 25536, - "loc": { - "start": { - "line": 667, - "column": 7 - }, - "end": { - "line": 667, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25536, - "end": 25537, - "loc": { - "start": { - "line": 667, - "column": 8 - }, - "end": { - "line": 667, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 25538, - "end": 25553, - "loc": { - "start": { - "line": 667, - "column": 10 - }, - "end": { - "line": 667, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25553, - "end": 25554, - "loc": { - "start": { - "line": 667, - "column": 25 - }, - "end": { - "line": 667, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 25554, - "end": 25562, - "loc": { - "start": { - "line": 667, - "column": 26 - }, - "end": { - "line": 667, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25562, - "end": 25563, - "loc": { - "start": { - "line": 667, - "column": 34 - }, - "end": { - "line": 667, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25563, - "end": 25564, - "loc": { - "start": { - "line": 667, - "column": 35 - }, - "end": { - "line": 667, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25571, - "end": 25572, - "loc": { - "start": { - "line": 668, - "column": 6 - }, - "end": { - "line": 668, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 25572, - "end": 25574, - "loc": { - "start": { - "line": 668, - "column": 7 - }, - "end": { - "line": 668, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25574, - "end": 25575, - "loc": { - "start": { - "line": 668, - "column": 9 - }, - "end": { - "line": 668, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 25575, - "end": 25582, - "loc": { - "start": { - "line": 668, - "column": 10 - }, - "end": { - "line": 668, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25582, - "end": 25583, - "loc": { - "start": { - "line": 668, - "column": 17 - }, - "end": { - "line": 668, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 25584, - "end": 25596, - "loc": { - "start": { - "line": 668, - "column": 19 - }, - "end": { - "line": 668, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25596, - "end": 25597, - "loc": { - "start": { - "line": 668, - "column": 31 - }, - "end": { - "line": 668, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 25597, - "end": 25605, - "loc": { - "start": { - "line": 668, - "column": 32 - }, - "end": { - "line": 668, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25605, - "end": 25606, - "loc": { - "start": { - "line": 668, - "column": 40 - }, - "end": { - "line": 668, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25606, - "end": 25607, - "loc": { - "start": { - "line": 668, - "column": 41 - }, - "end": { - "line": 668, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25607, - "end": 25608, - "loc": { - "start": { - "line": 668, - "column": 42 - }, - "end": { - "line": 668, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 25614, - "end": 25617, - "loc": { - "start": { - "line": 670, - "column": 4 - }, - "end": { - "line": 670, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25617, - "end": 25618, - "loc": { - "start": { - "line": 670, - "column": 7 - }, - "end": { - "line": 670, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "write", - "start": 25618, - "end": 25623, - "loc": { - "start": { - "line": 670, - "column": 8 - }, - "end": { - "line": 670, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25623, - "end": 25624, - "loc": { - "start": { - "line": 670, - "column": 13 - }, - "end": { - "line": 670, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 25624, - "end": 25632, - "loc": { - "start": { - "line": 670, - "column": 14 - }, - "end": { - "line": 670, - "column": 22 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25632, - "end": 25633, - "loc": { - "start": { - "line": 670, - "column": 22 - }, - "end": { - "line": 670, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25633, - "end": 25634, - "loc": { - "start": { - "line": 670, - "column": 23 - }, - "end": { - "line": 670, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 25639, - "end": 25642, - "loc": { - "start": { - "line": 671, - "column": 4 - }, - "end": { - "line": 671, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25642, - "end": 25643, - "loc": { - "start": { - "line": 671, - "column": 7 - }, - "end": { - "line": 671, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 25643, - "end": 25646, - "loc": { - "start": { - "line": 671, - "column": 8 - }, - "end": { - "line": 671, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25646, - "end": 25647, - "loc": { - "start": { - "line": 671, - "column": 11 - }, - "end": { - "line": 671, - "column": 12 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25647, - "end": 25648, - "loc": { - "start": { - "line": 671, - "column": 12 - }, - "end": { - "line": 671, - "column": 13 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25648, - "end": 25649, - "loc": { - "start": { - "line": 671, - "column": 13 - }, - "end": { - "line": 671, - "column": 14 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25652, - "end": 25653, - "loc": { - "start": { - "line": 672, - "column": 2 - }, - "end": { - "line": 672, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " cancel an invite to a document.", - "start": 25657, - "end": 25691, - "loc": { - "start": { - "line": 674, - "column": 2 - }, - "end": { - "line": 674, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 25694, - "end": 25700, - "loc": { - "start": { - "line": 675, - "column": 2 - }, - "end": { - "line": 675, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cancelInvite", - "start": 25701, - "end": 25713, - "loc": { - "start": { - "line": 675, - "column": 9 - }, - "end": { - "line": 675, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25714, - "end": 25715, - "loc": { - "start": { - "line": 675, - "column": 22 - }, - "end": { - "line": 675, - "column": 23 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25715, - "end": 25716, - "loc": { - "start": { - "line": 675, - "column": 23 - }, - "end": { - "line": 675, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 25717, - "end": 25719, - "loc": { - "start": { - "line": 675, - "column": 25 - }, - "end": { - "line": 675, - "column": 27 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25719, - "end": 25720, - "loc": { - "start": { - "line": 675, - "column": 27 - }, - "end": { - "line": 675, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 25721, - "end": 25726, - "loc": { - "start": { - "line": 675, - "column": 29 - }, - "end": { - "line": 675, - "column": 34 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25727, - "end": 25728, - "loc": { - "start": { - "line": 675, - "column": 35 - }, - "end": { - "line": 675, - "column": 36 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25728, - "end": 25729, - "loc": { - "start": { - "line": 675, - "column": 36 - }, - "end": { - "line": 675, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 25730, - "end": 25738, - "loc": { - "start": { - "line": 675, - "column": 38 - }, - "end": { - "line": 675, - "column": 46 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25738, - "end": 25739, - "loc": { - "start": { - "line": 675, - "column": 46 - }, - "end": { - "line": 675, - "column": 47 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25740, - "end": 25741, - "loc": { - "start": { - "line": 675, - "column": 48 - }, - "end": { - "line": 675, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 25746, - "end": 25751, - "loc": { - "start": { - "line": 676, - "column": 4 - }, - "end": { - "line": 676, - "column": 9 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25758, - "end": 25759, - "loc": { - "start": { - "line": 677, - "column": 6 - }, - "end": { - "line": 677, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 25759, - "end": 25766, - "loc": { - "start": { - "line": 677, - "column": 7 - }, - "end": { - "line": 677, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25766, - "end": 25767, - "loc": { - "start": { - "line": 677, - "column": 14 - }, - "end": { - "line": 677, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 25767, - "end": 25786, - "loc": { - "start": { - "line": 677, - "column": 15 - }, - "end": { - "line": 677, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25786, - "end": 25787, - "loc": { - "start": { - "line": 677, - "column": 34 - }, - "end": { - "line": 677, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25787, - "end": 25788, - "loc": { - "start": { - "line": 677, - "column": 35 - }, - "end": { - "line": 677, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 25797, - "end": 25803, - "loc": { - "start": { - "line": 678, - "column": 8 - }, - "end": { - "line": 678, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25803, - "end": 25804, - "loc": { - "start": { - "line": 678, - "column": 14 - }, - "end": { - "line": 678, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "PUT", - "start": 25805, - "end": 25810, - "loc": { - "start": { - "line": 678, - "column": 16 - }, - "end": { - "line": 678, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25810, - "end": 25811, - "loc": { - "start": { - "line": 678, - "column": 21 - }, - "end": { - "line": 678, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 25820, - "end": 25824, - "loc": { - "start": { - "line": 679, - "column": 8 - }, - "end": { - "line": 679, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25824, - "end": 25825, - "loc": { - "start": { - "line": 679, - "column": 12 - }, - "end": { - "line": 679, - "column": 13 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25826, - "end": 25827, - "loc": { - "start": { - "line": 679, - "column": 14 - }, - "end": { - "line": 679, - "column": 15 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/document/", - "start": 25827, - "end": 25837, - "loc": { - "start": { - "line": 679, - "column": 15 - }, - "end": { - "line": 679, - "column": 25 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25837, - "end": 25839, - "loc": { - "start": { - "line": 679, - "column": 25 - }, - "end": { - "line": 679, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 25839, - "end": 25841, - "loc": { - "start": { - "line": 679, - "column": 27 - }, - "end": { - "line": 679, - "column": 29 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25841, - "end": 25842, - "loc": { - "start": { - "line": 679, - "column": 29 - }, - "end": { - "line": 679, - "column": 30 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/fieldinvitecancel", - "start": 25842, - "end": 25860, - "loc": { - "start": { - "line": 679, - "column": 30 - }, - "end": { - "line": 679, - "column": 48 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25860, - "end": 25861, - "loc": { - "start": { - "line": 679, - "column": 48 - }, - "end": { - "line": 679, - "column": 49 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25861, - "end": 25862, - "loc": { - "start": { - "line": 679, - "column": 49 - }, - "end": { - "line": 679, - "column": 50 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 25871, - "end": 25884, - "loc": { - "start": { - "line": 680, - "column": 8 - }, - "end": { - "line": 680, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25884, - "end": 25885, - "loc": { - "start": { - "line": 680, - "column": 21 - }, - "end": { - "line": 680, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25886, - "end": 25887, - "loc": { - "start": { - "line": 680, - "column": 23 - }, - "end": { - "line": 680, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 25898, - "end": 25902, - "loc": { - "start": { - "line": 681, - "column": 10 - }, - "end": { - "line": 681, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25902, - "end": 25903, - "loc": { - "start": { - "line": 681, - "column": 14 - }, - "end": { - "line": 681, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 25904, - "end": 25912, - "loc": { - "start": { - "line": 681, - "column": 16 - }, - "end": { - "line": 681, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25912, - "end": 25913, - "loc": { - "start": { - "line": 681, - "column": 24 - }, - "end": { - "line": 681, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 25924, - "end": 25929, - "loc": { - "start": { - "line": 682, - "column": 10 - }, - "end": { - "line": 682, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25929, - "end": 25930, - "loc": { - "start": { - "line": 682, - "column": 15 - }, - "end": { - "line": 682, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25939, - "end": 25940, - "loc": { - "start": { - "line": 683, - "column": 8 - }, - "end": { - "line": 683, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25940, - "end": 25941, - "loc": { - "start": { - "line": 683, - "column": 9 - }, - "end": { - "line": 683, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25948, - "end": 25949, - "loc": { - "start": { - "line": 684, - "column": 6 - }, - "end": { - "line": 684, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25949, - "end": 25950, - "loc": { - "start": { - "line": 684, - "column": 7 - }, - "end": { - "line": 684, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25950, - "end": 25951, - "loc": { - "start": { - "line": 684, - "column": 8 - }, - "end": { - "line": 684, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 25952, - "end": 25967, - "loc": { - "start": { - "line": 684, - "column": 10 - }, - "end": { - "line": 684, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25967, - "end": 25968, - "loc": { - "start": { - "line": 684, - "column": 25 - }, - "end": { - "line": 684, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 25968, - "end": 25976, - "loc": { - "start": { - "line": 684, - "column": 26 - }, - "end": { - "line": 684, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25976, - "end": 25977, - "loc": { - "start": { - "line": 684, - "column": 34 - }, - "end": { - "line": 684, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25977, - "end": 25978, - "loc": { - "start": { - "line": 684, - "column": 35 - }, - "end": { - "line": 684, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25985, - "end": 25986, - "loc": { - "start": { - "line": 685, - "column": 6 - }, - "end": { - "line": 685, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 25986, - "end": 25988, - "loc": { - "start": { - "line": 685, - "column": 7 - }, - "end": { - "line": 685, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25988, - "end": 25989, - "loc": { - "start": { - "line": 685, - "column": 9 - }, - "end": { - "line": 685, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 25989, - "end": 25996, - "loc": { - "start": { - "line": 685, - "column": 10 - }, - "end": { - "line": 685, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25996, - "end": 25997, - "loc": { - "start": { - "line": 685, - "column": 17 - }, - "end": { - "line": 685, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 25998, - "end": 26010, - "loc": { - "start": { - "line": 685, - "column": 19 - }, - "end": { - "line": 685, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26010, - "end": 26011, - "loc": { - "start": { - "line": 685, - "column": 31 - }, - "end": { - "line": 685, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 26011, - "end": 26019, - "loc": { - "start": { - "line": 685, - "column": 32 - }, - "end": { - "line": 685, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26019, - "end": 26020, - "loc": { - "start": { - "line": 685, - "column": 40 - }, - "end": { - "line": 685, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26020, - "end": 26021, - "loc": { - "start": { - "line": 685, - "column": 41 - }, - "end": { - "line": 685, - "column": 42 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26028, - "end": 26029, - "loc": { - "start": { - "line": 686, - "column": 6 - }, - "end": { - "line": 686, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 26029, - "end": 26032, - "loc": { - "start": { - "line": 686, - "column": 7 - }, - "end": { - "line": 686, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26032, - "end": 26033, - "loc": { - "start": { - "line": 686, - "column": 10 - }, - "end": { - "line": 686, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26033, - "end": 26034, - "loc": { - "start": { - "line": 686, - "column": 11 - }, - "end": { - "line": 686, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26034, - "end": 26035, - "loc": { - "start": { - "line": 686, - "column": 12 - }, - "end": { - "line": 686, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26038, - "end": 26039, - "loc": { - "start": { - "line": 687, - "column": 2 - }, - "end": { - "line": 687, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Merge documents optional settings\n * @typedef {Object} DocumentMergeOptions\n * @property {boolean} [removeOriginalDocuments=false] - if true original documents will be removed\n ", - "start": 26043, - "end": 26237, - "loc": { - "start": { - "line": 689, - "column": 2 - }, - "end": { - "line": 693, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Merge documents payload\n * @typedef {Object} DocumentMergeParams\n * @property {string} token - your auth token\n * @property {string} name - new name for merged document\n * @property {string[]} document_ids - an array of document IDs\n * @property {DocumentMergeOptions} options - merge documents optional settings\n ", - "start": 26241, - "end": 26578, - "loc": { - "start": { - "line": 695, - "column": 2 - }, - "end": { - "line": 702, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Merge documents response data\n * @typedef {Object} DocumentMergeResponse\n * @property {string} document_id - an ID of merged document\n ", - "start": 26582, - "end": 26734, - "loc": { - "start": { - "line": 704, - "column": 2 - }, - "end": { - "line": 708, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Merges existing documents into one.\n * By default original documents are not removed after merging. To remove original documents set `removeOriginalDocuments` option to `true`.\n * @param {DocumentMergeParams} data - merge documents payload\n * @param {function(err: ApiErrorResponse, res: DocumentMergeResponse)} [originalCallback] - error first node.js callback\n ", - "start": 26738, - "end": 27120, - "loc": { - "start": { - "line": 710, - "column": 2 - }, - "end": { - "line": 715, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 27123, - "end": 27129, - "loc": { - "start": { - "line": 716, - "column": 2 - }, - "end": { - "line": 716, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "merge", - "start": 27130, - "end": 27135, - "loc": { - "start": { - "line": 716, - "column": 9 - }, - "end": { - "line": 716, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27136, - "end": 27137, - "loc": { - "start": { - "line": 716, - "column": 15 - }, - "end": { - "line": 716, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27137, - "end": 27138, - "loc": { - "start": { - "line": 716, - "column": 16 - }, - "end": { - "line": 716, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "name", - "start": 27143, - "end": 27147, - "loc": { - "start": { - "line": 717, - "column": 4 - }, - "end": { - "line": 717, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27147, - "end": 27148, - "loc": { - "start": { - "line": 717, - "column": 8 - }, - "end": { - "line": 717, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_ids", - "start": 27153, - "end": 27165, - "loc": { - "start": { - "line": 718, - "column": 4 - }, - "end": { - "line": 718, - "column": 16 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27165, - "end": 27166, - "loc": { - "start": { - "line": 718, - "column": 16 - }, - "end": { - "line": 718, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "options", - "start": 27171, - "end": 27178, - "loc": { - "start": { - "line": 719, - "column": 4 - }, - "end": { - "line": 719, - "column": 11 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27178, - "end": 27179, - "loc": { - "start": { - "line": 719, - "column": 11 - }, - "end": { - "line": 719, - "column": 12 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27180, - "end": 27181, - "loc": { - "start": { - "line": 719, - "column": 13 - }, - "end": { - "line": 719, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "removeOriginalDocuments", - "start": 27182, - "end": 27205, - "loc": { - "start": { - "line": 719, - "column": 15 - }, - "end": { - "line": 719, - "column": 38 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 27206, - "end": 27207, - "loc": { - "start": { - "line": 719, - "column": 39 - }, - "end": { - "line": 719, - "column": 40 - } - } - }, - { - "type": { - "label": "false", - "keyword": "false", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "false", - "start": 27208, - "end": 27213, - "loc": { - "start": { - "line": 719, - "column": 41 - }, - "end": { - "line": 719, - "column": 46 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27214, - "end": 27215, - "loc": { - "start": { - "line": 719, - "column": 47 - }, - "end": { - "line": 719, - "column": 48 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 27216, - "end": 27217, - "loc": { - "start": { - "line": 719, - "column": 49 - }, - "end": { - "line": 719, - "column": 50 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27218, - "end": 27219, - "loc": { - "start": { - "line": 719, - "column": 51 - }, - "end": { - "line": 719, - "column": 52 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27219, - "end": 27220, - "loc": { - "start": { - "line": 719, - "column": 52 - }, - "end": { - "line": 719, - "column": 53 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27220, - "end": 27221, - "loc": { - "start": { - "line": 719, - "column": 53 - }, - "end": { - "line": 719, - "column": 54 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 27226, - "end": 27231, - "loc": { - "start": { - "line": 720, - "column": 4 - }, - "end": { - "line": 720, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27231, - "end": 27232, - "loc": { - "start": { - "line": 720, - "column": 9 - }, - "end": { - "line": 720, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27235, - "end": 27236, - "loc": { - "start": { - "line": 721, - "column": 2 - }, - "end": { - "line": 721, - "column": 3 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27236, - "end": 27237, - "loc": { - "start": { - "line": 721, - "column": 3 - }, - "end": { - "line": 721, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "originalCallback", - "start": 27238, - "end": 27254, - "loc": { - "start": { - "line": 721, - "column": 5 - }, - "end": { - "line": 721, - "column": 21 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27254, - "end": 27255, - "loc": { - "start": { - "line": 721, - "column": 21 - }, - "end": { - "line": 721, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27256, - "end": 27257, - "loc": { - "start": { - "line": 721, - "column": 23 - }, - "end": { - "line": 721, - "column": 24 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 27262, - "end": 27267, - "loc": { - "start": { - "line": 722, - "column": 4 - }, - "end": { - "line": 722, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 27268, - "end": 27276, - "loc": { - "start": { - "line": 722, - "column": 10 - }, - "end": { - "line": 722, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 27277, - "end": 27278, - "loc": { - "start": { - "line": 722, - "column": 19 - }, - "end": { - "line": 722, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSON", - "start": 27279, - "end": 27283, - "loc": { - "start": { - "line": 722, - "column": 21 - }, - "end": { - "line": 722, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27283, - "end": 27284, - "loc": { - "start": { - "line": 722, - "column": 25 - }, - "end": { - "line": 722, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "stringify", - "start": 27284, - "end": 27293, - "loc": { - "start": { - "line": 722, - "column": 26 - }, - "end": { - "line": 722, - "column": 35 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27293, - "end": 27294, - "loc": { - "start": { - "line": 722, - "column": 35 - }, - "end": { - "line": 722, - "column": 36 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27294, - "end": 27295, - "loc": { - "start": { - "line": 722, - "column": 36 - }, - "end": { - "line": 722, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "upload_document", - "start": 27302, - "end": 27317, - "loc": { - "start": { - "line": 723, - "column": 6 - }, - "end": { - "line": 723, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27317, - "end": 27318, - "loc": { - "start": { - "line": 723, - "column": 21 - }, - "end": { - "line": 723, - "column": 22 - } - } - }, - { - "type": { - "label": "true", - "keyword": "true", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "true", - "start": 27319, - "end": 27323, - "loc": { - "start": { - "line": 723, - "column": 23 - }, - "end": { - "line": 723, - "column": 27 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27323, - "end": 27324, - "loc": { - "start": { - "line": 723, - "column": 27 - }, - "end": { - "line": 723, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_ids", - "start": 27331, - "end": 27343, - "loc": { - "start": { - "line": 724, - "column": 6 - }, - "end": { - "line": 724, - "column": 18 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27343, - "end": 27344, - "loc": { - "start": { - "line": 724, - "column": 18 - }, - "end": { - "line": 724, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "name", - "start": 27351, - "end": 27355, - "loc": { - "start": { - "line": 725, - "column": 6 - }, - "end": { - "line": 725, - "column": 10 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27355, - "end": 27356, - "loc": { - "start": { - "line": 725, - "column": 10 - }, - "end": { - "line": 725, - "column": 11 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27361, - "end": 27362, - "loc": { - "start": { - "line": 726, - "column": 4 - }, - "end": { - "line": 726, - "column": 5 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27362, - "end": 27363, - "loc": { - "start": { - "line": 726, - "column": 5 - }, - "end": { - "line": 726, - "column": 6 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27363, - "end": 27364, - "loc": { - "start": { - "line": 726, - "column": 6 - }, - "end": { - "line": 726, - "column": 7 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 27370, - "end": 27375, - "loc": { - "start": { - "line": 728, - "column": 4 - }, - "end": { - "line": 728, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callbackWithDocumentDeletion", - "start": 27376, - "end": 27404, - "loc": { - "start": { - "line": 728, - "column": 10 - }, - "end": { - "line": 728, - "column": 38 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 27405, - "end": 27406, - "loc": { - "start": { - "line": 728, - "column": 39 - }, - "end": { - "line": 728, - "column": 40 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27407, - "end": 27408, - "loc": { - "start": { - "line": 728, - "column": 41 - }, - "end": { - "line": 728, - "column": 42 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "mergeErr", - "start": 27408, - "end": 27416, - "loc": { - "start": { - "line": 728, - "column": 42 - }, - "end": { - "line": 728, - "column": 50 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27416, - "end": 27417, - "loc": { - "start": { - "line": 728, - "column": 50 - }, - "end": { - "line": 728, - "column": 51 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "mergeRes", - "start": 27418, - "end": 27426, - "loc": { - "start": { - "line": 728, - "column": 52 - }, - "end": { - "line": 728, - "column": 60 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27426, - "end": 27427, - "loc": { - "start": { - "line": 728, - "column": 60 - }, - "end": { - "line": 728, - "column": 61 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27428, - "end": 27430, - "loc": { - "start": { - "line": 728, - "column": 62 - }, - "end": { - "line": 728, - "column": 64 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27431, - "end": 27432, - "loc": { - "start": { - "line": 728, - "column": 65 - }, - "end": { - "line": 728, - "column": 66 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 27439, - "end": 27441, - "loc": { - "start": { - "line": 729, - "column": 6 - }, - "end": { - "line": 729, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27442, - "end": 27443, - "loc": { - "start": { - "line": 729, - "column": 9 - }, - "end": { - "line": 729, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "mergeErr", - "start": 27443, - "end": 27451, - "loc": { - "start": { - "line": 729, - "column": 10 - }, - "end": { - "line": 729, - "column": 18 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27451, - "end": 27452, - "loc": { - "start": { - "line": 729, - "column": 18 - }, - "end": { - "line": 729, - "column": 19 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27453, - "end": 27454, - "loc": { - "start": { - "line": 729, - "column": 20 - }, - "end": { - "line": 729, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "originalCallback", - "start": 27463, - "end": 27479, - "loc": { - "start": { - "line": 730, - "column": 8 - }, - "end": { - "line": 730, - "column": 24 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27479, - "end": 27480, - "loc": { - "start": { - "line": 730, - "column": 24 - }, - "end": { - "line": 730, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "mergeErr", - "start": 27480, - "end": 27488, - "loc": { - "start": { - "line": 730, - "column": 25 - }, - "end": { - "line": 730, - "column": 33 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27488, - "end": 27489, - "loc": { - "start": { - "line": 730, - "column": 33 - }, - "end": { - "line": 730, - "column": 34 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27489, - "end": 27490, - "loc": { - "start": { - "line": 730, - "column": 34 - }, - "end": { - "line": 730, - "column": 35 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 27499, - "end": 27505, - "loc": { - "start": { - "line": 731, - "column": 8 - }, - "end": { - "line": 731, - "column": 14 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27505, - "end": 27506, - "loc": { - "start": { - "line": 731, - "column": 14 - }, - "end": { - "line": 731, - "column": 15 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27513, - "end": 27514, - "loc": { - "start": { - "line": 732, - "column": 6 - }, - "end": { - "line": 732, - "column": 7 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 27515, - "end": 27519, - "loc": { - "start": { - "line": 732, - "column": 8 - }, - "end": { - "line": 732, - "column": 12 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27520, - "end": 27521, - "loc": { - "start": { - "line": 732, - "column": 13 - }, - "end": { - "line": 732, - "column": 14 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 27531, - "end": 27536, - "loc": { - "start": { - "line": 734, - "column": 8 - }, - "end": { - "line": 734, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "removeDocument", - "start": 27537, - "end": 27551, - "loc": { - "start": { - "line": 734, - "column": 14 - }, - "end": { - "line": 734, - "column": 28 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 27552, - "end": 27553, - "loc": { - "start": { - "line": 734, - "column": 29 - }, - "end": { - "line": 734, - "column": 30 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27554, - "end": 27555, - "loc": { - "start": { - "line": 734, - "column": 31 - }, - "end": { - "line": 734, - "column": 32 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27555, - "end": 27556, - "loc": { - "start": { - "line": 734, - "column": 32 - }, - "end": { - "line": 734, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 27557, - "end": 27559, - "loc": { - "start": { - "line": 734, - "column": 34 - }, - "end": { - "line": 734, - "column": 36 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27560, - "end": 27561, - "loc": { - "start": { - "line": 734, - "column": 37 - }, - "end": { - "line": 734, - "column": 38 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27561, - "end": 27562, - "loc": { - "start": { - "line": 734, - "column": 38 - }, - "end": { - "line": 734, - "column": 39 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27563, - "end": 27565, - "loc": { - "start": { - "line": 734, - "column": 40 - }, - "end": { - "line": 734, - "column": 42 - } - } - }, - { - "type": { - "label": "new", - "keyword": "new", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "new", - "start": 27566, - "end": 27569, - "loc": { - "start": { - "line": 734, - "column": 43 - }, - "end": { - "line": 734, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Promise", - "start": 27570, - "end": 27577, - "loc": { - "start": { - "line": 734, - "column": 47 - }, - "end": { - "line": 734, - "column": 54 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27577, - "end": 27578, - "loc": { - "start": { - "line": 734, - "column": 54 - }, - "end": { - "line": 734, - "column": 55 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27578, - "end": 27579, - "loc": { - "start": { - "line": 734, - "column": 55 - }, - "end": { - "line": 734, - "column": 56 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "resolve", - "start": 27579, - "end": 27586, - "loc": { - "start": { - "line": 734, - "column": 56 - }, - "end": { - "line": 734, - "column": 63 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27586, - "end": 27587, - "loc": { - "start": { - "line": 734, - "column": 63 - }, - "end": { - "line": 734, - "column": 64 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "reject", - "start": 27588, - "end": 27594, - "loc": { - "start": { - "line": 734, - "column": 65 - }, - "end": { - "line": 734, - "column": 71 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27594, - "end": 27595, - "loc": { - "start": { - "line": 734, - "column": 71 - }, - "end": { - "line": 734, - "column": 72 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27596, - "end": 27598, - "loc": { - "start": { - "line": 734, - "column": 73 - }, - "end": { - "line": 734, - "column": 75 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27599, - "end": 27600, - "loc": { - "start": { - "line": 734, - "column": 76 - }, - "end": { - "line": 734, - "column": 77 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Document", - "start": 27611, - "end": 27619, - "loc": { - "start": { - "line": 735, - "column": 10 - }, - "end": { - "line": 735, - "column": 18 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27619, - "end": 27620, - "loc": { - "start": { - "line": 735, - "column": 18 - }, - "end": { - "line": 735, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "remove", - "start": 27620, - "end": 27626, - "loc": { - "start": { - "line": 735, - "column": 19 - }, - "end": { - "line": 735, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27626, - "end": 27627, - "loc": { - "start": { - "line": 735, - "column": 25 - }, - "end": { - "line": 735, - "column": 26 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27627, - "end": 27628, - "loc": { - "start": { - "line": 735, - "column": 26 - }, - "end": { - "line": 735, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 27641, - "end": 27643, - "loc": { - "start": { - "line": 736, - "column": 12 - }, - "end": { - "line": 736, - "column": 14 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27643, - "end": 27644, - "loc": { - "start": { - "line": 736, - "column": 14 - }, - "end": { - "line": 736, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 27657, - "end": 27662, - "loc": { - "start": { - "line": 737, - "column": 12 - }, - "end": { - "line": 737, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27662, - "end": 27663, - "loc": { - "start": { - "line": 737, - "column": 17 - }, - "end": { - "line": 737, - "column": 18 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27674, - "end": 27675, - "loc": { - "start": { - "line": 738, - "column": 10 - }, - "end": { - "line": 738, - "column": 11 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27675, - "end": 27676, - "loc": { - "start": { - "line": 738, - "column": 11 - }, - "end": { - "line": 738, - "column": 12 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27677, - "end": 27678, - "loc": { - "start": { - "line": 738, - "column": 13 - }, - "end": { - "line": 738, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 27678, - "end": 27681, - "loc": { - "start": { - "line": 738, - "column": 14 - }, - "end": { - "line": 738, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27681, - "end": 27682, - "loc": { - "start": { - "line": 738, - "column": 17 - }, - "end": { - "line": 738, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "res", - "start": 27683, - "end": 27686, - "loc": { - "start": { - "line": 738, - "column": 19 - }, - "end": { - "line": 738, - "column": 22 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27686, - "end": 27687, - "loc": { - "start": { - "line": 738, - "column": 22 - }, - "end": { - "line": 738, - "column": 23 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27688, - "end": 27690, - "loc": { - "start": { - "line": 738, - "column": 24 - }, - "end": { - "line": 738, - "column": 26 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27691, - "end": 27692, - "loc": { - "start": { - "line": 738, - "column": 27 - }, - "end": { - "line": 738, - "column": 28 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 27705, - "end": 27707, - "loc": { - "start": { - "line": 739, - "column": 12 - }, - "end": { - "line": 739, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27708, - "end": 27709, - "loc": { - "start": { - "line": 739, - "column": 15 - }, - "end": { - "line": 739, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 27709, - "end": 27712, - "loc": { - "start": { - "line": 739, - "column": 16 - }, - "end": { - "line": 739, - "column": 19 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27712, - "end": 27713, - "loc": { - "start": { - "line": 739, - "column": 19 - }, - "end": { - "line": 739, - "column": 20 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27714, - "end": 27715, - "loc": { - "start": { - "line": 739, - "column": 21 - }, - "end": { - "line": 739, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "reject", - "start": 27730, - "end": 27736, - "loc": { - "start": { - "line": 740, - "column": 14 - }, - "end": { - "line": 740, - "column": 20 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27736, - "end": 27737, - "loc": { - "start": { - "line": 740, - "column": 20 - }, - "end": { - "line": 740, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 27737, - "end": 27740, - "loc": { - "start": { - "line": 740, - "column": 21 - }, - "end": { - "line": 740, - "column": 24 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27740, - "end": 27741, - "loc": { - "start": { - "line": 740, - "column": 24 - }, - "end": { - "line": 740, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27741, - "end": 27742, - "loc": { - "start": { - "line": 740, - "column": 25 - }, - "end": { - "line": 740, - "column": 26 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27755, - "end": 27756, - "loc": { - "start": { - "line": 741, - "column": 12 - }, - "end": { - "line": 741, - "column": 13 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 27757, - "end": 27761, - "loc": { - "start": { - "line": 741, - "column": 14 - }, - "end": { - "line": 741, - "column": 18 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27762, - "end": 27763, - "loc": { - "start": { - "line": 741, - "column": 19 - }, - "end": { - "line": 741, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "resolve", - "start": 27778, - "end": 27785, - "loc": { - "start": { - "line": 742, - "column": 14 - }, - "end": { - "line": 742, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27785, - "end": 27786, - "loc": { - "start": { - "line": 742, - "column": 21 - }, - "end": { - "line": 742, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "res", - "start": 27786, - "end": 27789, - "loc": { - "start": { - "line": 742, - "column": 22 - }, - "end": { - "line": 742, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27789, - "end": 27790, - "loc": { - "start": { - "line": 742, - "column": 25 - }, - "end": { - "line": 742, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "status", - "start": 27790, - "end": 27796, - "loc": { - "start": { - "line": 742, - "column": 26 - }, - "end": { - "line": 742, - "column": 32 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 27797, - "end": 27800, - "loc": { - "start": { - "line": 742, - "column": 33 - }, - "end": { - "line": 742, - "column": 36 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "success", - "start": 27801, - "end": 27810, - "loc": { - "start": { - "line": 742, - "column": 37 - }, - "end": { - "line": 742, - "column": 46 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27810, - "end": 27811, - "loc": { - "start": { - "line": 742, - "column": 46 - }, - "end": { - "line": 742, - "column": 47 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27811, - "end": 27812, - "loc": { - "start": { - "line": 742, - "column": 47 - }, - "end": { - "line": 742, - "column": 48 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27825, - "end": 27826, - "loc": { - "start": { - "line": 743, - "column": 12 - }, - "end": { - "line": 743, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27837, - "end": 27838, - "loc": { - "start": { - "line": 744, - "column": 10 - }, - "end": { - "line": 744, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27838, - "end": 27839, - "loc": { - "start": { - "line": 744, - "column": 11 - }, - "end": { - "line": 744, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27839, - "end": 27840, - "loc": { - "start": { - "line": 744, - "column": 12 - }, - "end": { - "line": 744, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27849, - "end": 27850, - "loc": { - "start": { - "line": 745, - "column": 8 - }, - "end": { - "line": 745, - "column": 9 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27850, - "end": 27851, - "loc": { - "start": { - "line": 745, - "column": 9 - }, - "end": { - "line": 745, - "column": 10 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27851, - "end": 27852, - "loc": { - "start": { - "line": 745, - "column": 10 - }, - "end": { - "line": 745, - "column": 11 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 27862, - "end": 27867, - "loc": { - "start": { - "line": 747, - "column": 8 - }, - "end": { - "line": 747, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documentsDeleted", - "start": 27868, - "end": 27884, - "loc": { - "start": { - "line": 747, - "column": 14 - }, - "end": { - "line": 747, - "column": 30 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 27885, - "end": 27886, - "loc": { - "start": { - "line": 747, - "column": 31 - }, - "end": { - "line": 747, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_ids", - "start": 27887, - "end": 27899, - "loc": { - "start": { - "line": 747, - "column": 33 - }, - "end": { - "line": 747, - "column": 45 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27910, - "end": 27911, - "loc": { - "start": { - "line": 748, - "column": 10 - }, - "end": { - "line": 748, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "map", - "start": 27911, - "end": 27914, - "loc": { - "start": { - "line": 748, - "column": 11 - }, - "end": { - "line": 748, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27914, - "end": 27915, - "loc": { - "start": { - "line": 748, - "column": 14 - }, - "end": { - "line": 748, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 27915, - "end": 27917, - "loc": { - "start": { - "line": 748, - "column": 15 - }, - "end": { - "line": 748, - "column": 17 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27918, - "end": 27920, - "loc": { - "start": { - "line": 748, - "column": 18 - }, - "end": { - "line": 748, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "removeDocument", - "start": 27921, - "end": 27935, - "loc": { - "start": { - "line": 748, - "column": 21 - }, - "end": { - "line": 748, - "column": 35 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27935, - "end": 27936, - "loc": { - "start": { - "line": 748, - "column": 35 - }, - "end": { - "line": 748, - "column": 36 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27936, - "end": 27937, - "loc": { - "start": { - "line": 748, - "column": 36 - }, - "end": { - "line": 748, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 27938, - "end": 27940, - "loc": { - "start": { - "line": 748, - "column": 38 - }, - "end": { - "line": 748, - "column": 40 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27941, - "end": 27942, - "loc": { - "start": { - "line": 748, - "column": 41 - }, - "end": { - "line": 748, - "column": 42 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27942, - "end": 27943, - "loc": { - "start": { - "line": 748, - "column": 42 - }, - "end": { - "line": 748, - "column": 43 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27943, - "end": 27944, - "loc": { - "start": { - "line": 748, - "column": 43 - }, - "end": { - "line": 748, - "column": 44 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27944, - "end": 27945, - "loc": { - "start": { - "line": 748, - "column": 44 - }, - "end": { - "line": 748, - "column": 45 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Promise", - "start": 27955, - "end": 27962, - "loc": { - "start": { - "line": 750, - "column": 8 - }, - "end": { - "line": 750, - "column": 15 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27962, - "end": 27963, - "loc": { - "start": { - "line": 750, - "column": 15 - }, - "end": { - "line": 750, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "all", - "start": 27963, - "end": 27966, - "loc": { - "start": { - "line": 750, - "column": 16 - }, - "end": { - "line": 750, - "column": 19 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27966, - "end": 27967, - "loc": { - "start": { - "line": 750, - "column": 19 - }, - "end": { - "line": 750, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documentsDeleted", - "start": 27967, - "end": 27983, - "loc": { - "start": { - "line": 750, - "column": 20 - }, - "end": { - "line": 750, - "column": 36 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27983, - "end": 27984, - "loc": { - "start": { - "line": 750, - "column": 36 - }, - "end": { - "line": 750, - "column": 37 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27995, - "end": 27996, - "loc": { - "start": { - "line": 751, - "column": 10 - }, - "end": { - "line": 751, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "then", - "start": 27996, - "end": 28000, - "loc": { - "start": { - "line": 751, - "column": 11 - }, - "end": { - "line": 751, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28000, - "end": 28001, - "loc": { - "start": { - "line": 751, - "column": 15 - }, - "end": { - "line": 751, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "deletionStatuses", - "start": 28001, - "end": 28017, - "loc": { - "start": { - "line": 751, - "column": 16 - }, - "end": { - "line": 751, - "column": 32 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28018, - "end": 28020, - "loc": { - "start": { - "line": 751, - "column": 33 - }, - "end": { - "line": 751, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "deletionStatuses", - "start": 28021, - "end": 28037, - "loc": { - "start": { - "line": 751, - "column": 36 - }, - "end": { - "line": 751, - "column": 52 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28037, - "end": 28038, - "loc": { - "start": { - "line": 751, - "column": 52 - }, - "end": { - "line": 751, - "column": 53 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "reduce", - "start": 28038, - "end": 28044, - "loc": { - "start": { - "line": 751, - "column": 53 - }, - "end": { - "line": 751, - "column": 59 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28044, - "end": 28045, - "loc": { - "start": { - "line": 751, - "column": 59 - }, - "end": { - "line": 751, - "column": 60 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28045, - "end": 28046, - "loc": { - "start": { - "line": 751, - "column": 60 - }, - "end": { - "line": 751, - "column": 61 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "generalStatus", - "start": 28046, - "end": 28059, - "loc": { - "start": { - "line": 751, - "column": 61 - }, - "end": { - "line": 751, - "column": 74 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28059, - "end": 28060, - "loc": { - "start": { - "line": 751, - "column": 74 - }, - "end": { - "line": 751, - "column": 75 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "currentStatus", - "start": 28061, - "end": 28074, - "loc": { - "start": { - "line": 751, - "column": 76 - }, - "end": { - "line": 751, - "column": 89 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28074, - "end": 28075, - "loc": { - "start": { - "line": 751, - "column": 89 - }, - "end": { - "line": 751, - "column": 90 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28076, - "end": 28078, - "loc": { - "start": { - "line": 751, - "column": 91 - }, - "end": { - "line": 751, - "column": 93 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28079, - "end": 28080, - "loc": { - "start": { - "line": 751, - "column": 94 - }, - "end": { - "line": 751, - "column": 95 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "generalStatus", - "start": 28080, - "end": 28093, - "loc": { - "start": { - "line": 751, - "column": 95 - }, - "end": { - "line": 751, - "column": 108 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 28094, - "end": 28096, - "loc": { - "start": { - "line": 751, - "column": 109 - }, - "end": { - "line": 751, - "column": 111 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "currentStatus", - "start": 28097, - "end": 28110, - "loc": { - "start": { - "line": 751, - "column": 112 - }, - "end": { - "line": 751, - "column": 125 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28110, - "end": 28111, - "loc": { - "start": { - "line": 751, - "column": 125 - }, - "end": { - "line": 751, - "column": 126 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28111, - "end": 28112, - "loc": { - "start": { - "line": 751, - "column": 126 - }, - "end": { - "line": 751, - "column": 127 - } - } - }, - { - "type": { - "label": "true", - "keyword": "true", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "true", - "start": 28113, - "end": 28117, - "loc": { - "start": { - "line": 751, - "column": 128 - }, - "end": { - "line": 751, - "column": 132 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28117, - "end": 28118, - "loc": { - "start": { - "line": 751, - "column": 132 - }, - "end": { - "line": 751, - "column": 133 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28118, - "end": 28119, - "loc": { - "start": { - "line": 751, - "column": 133 - }, - "end": { - "line": 751, - "column": 134 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28130, - "end": 28131, - "loc": { - "start": { - "line": 752, - "column": 10 - }, - "end": { - "line": 752, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "then", - "start": 28131, - "end": 28135, - "loc": { - "start": { - "line": 752, - "column": 11 - }, - "end": { - "line": 752, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28135, - "end": 28136, - "loc": { - "start": { - "line": 752, - "column": 15 - }, - "end": { - "line": 752, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "allDocumentsDeleted", - "start": 28136, - "end": 28155, - "loc": { - "start": { - "line": 752, - "column": 16 - }, - "end": { - "line": 752, - "column": 35 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28156, - "end": 28158, - "loc": { - "start": { - "line": 752, - "column": 36 - }, - "end": { - "line": 752, - "column": 38 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28159, - "end": 28160, - "loc": { - "start": { - "line": 752, - "column": 39 - }, - "end": { - "line": 752, - "column": 40 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 28173, - "end": 28175, - "loc": { - "start": { - "line": 753, - "column": 12 - }, - "end": { - "line": 753, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28176, - "end": 28177, - "loc": { - "start": { - "line": 753, - "column": 15 - }, - "end": { - "line": 753, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "allDocumentsDeleted", - "start": 28177, - "end": 28196, - "loc": { - "start": { - "line": 753, - "column": 16 - }, - "end": { - "line": 753, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28196, - "end": 28197, - "loc": { - "start": { - "line": 753, - "column": 35 - }, - "end": { - "line": 753, - "column": 36 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28198, - "end": 28199, - "loc": { - "start": { - "line": 753, - "column": 37 - }, - "end": { - "line": 753, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "originalCallback", - "start": 28214, - "end": 28230, - "loc": { - "start": { - "line": 754, - "column": 14 - }, - "end": { - "line": 754, - "column": 30 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28230, - "end": 28231, - "loc": { - "start": { - "line": 754, - "column": 30 - }, - "end": { - "line": 754, - "column": 31 - } - } - }, - { - "type": { - "label": "null", - "keyword": "null", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "null", - "start": 28231, - "end": 28235, - "loc": { - "start": { - "line": 754, - "column": 31 - }, - "end": { - "line": 754, - "column": 35 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28235, - "end": 28236, - "loc": { - "start": { - "line": 754, - "column": 35 - }, - "end": { - "line": 754, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "mergeRes", - "start": 28237, - "end": 28245, - "loc": { - "start": { - "line": 754, - "column": 37 - }, - "end": { - "line": 754, - "column": 45 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28245, - "end": 28246, - "loc": { - "start": { - "line": 754, - "column": 45 - }, - "end": { - "line": 754, - "column": 46 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28246, - "end": 28247, - "loc": { - "start": { - "line": 754, - "column": 46 - }, - "end": { - "line": 754, - "column": 47 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 28262, - "end": 28268, - "loc": { - "start": { - "line": 755, - "column": 14 - }, - "end": { - "line": 755, - "column": 20 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28268, - "end": 28269, - "loc": { - "start": { - "line": 755, - "column": 20 - }, - "end": { - "line": 755, - "column": 21 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28282, - "end": 28283, - "loc": { - "start": { - "line": 756, - "column": 12 - }, - "end": { - "line": 756, - "column": 13 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 28284, - "end": 28288, - "loc": { - "start": { - "line": 756, - "column": 14 - }, - "end": { - "line": 756, - "column": 18 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28289, - "end": 28290, - "loc": { - "start": { - "line": 756, - "column": 19 - }, - "end": { - "line": 756, - "column": 20 - } - } - }, - { - "type": { - "label": "throw", - "keyword": "throw", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "throw", - "start": 28305, - "end": 28310, - "loc": { - "start": { - "line": 757, - "column": 14 - }, - "end": { - "line": 757, - "column": 19 - } - } - }, - { - "type": { - "label": "new", - "keyword": "new", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "new", - "start": 28311, - "end": 28314, - "loc": { - "start": { - "line": 757, - "column": 20 - }, - "end": { - "line": 757, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Error", - "start": 28315, - "end": 28320, - "loc": { - "start": { - "line": 757, - "column": 24 - }, - "end": { - "line": 757, - "column": 29 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28320, - "end": 28321, - "loc": { - "start": { - "line": 757, - "column": 29 - }, - "end": { - "line": 757, - "column": 30 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Some of the original documents were not removed", - "start": 28321, - "end": 28370, - "loc": { - "start": { - "line": 757, - "column": 30 - }, - "end": { - "line": 757, - "column": 79 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28370, - "end": 28371, - "loc": { - "start": { - "line": 757, - "column": 79 - }, - "end": { - "line": 757, - "column": 80 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28371, - "end": 28372, - "loc": { - "start": { - "line": 757, - "column": 80 - }, - "end": { - "line": 757, - "column": 81 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28385, - "end": 28386, - "loc": { - "start": { - "line": 758, - "column": 12 - }, - "end": { - "line": 758, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28397, - "end": 28398, - "loc": { - "start": { - "line": 759, - "column": 10 - }, - "end": { - "line": 759, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28398, - "end": 28399, - "loc": { - "start": { - "line": 759, - "column": 11 - }, - "end": { - "line": 759, - "column": 12 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28410, - "end": 28411, - "loc": { - "start": { - "line": 760, - "column": 10 - }, - "end": { - "line": 760, - "column": 11 - } - } - }, - { - "type": { - "label": "catch", - "keyword": "catch", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "catch", - "start": 28411, - "end": 28416, - "loc": { - "start": { - "line": 760, - "column": 11 - }, - "end": { - "line": 760, - "column": 16 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28416, - "end": 28417, - "loc": { - "start": { - "line": 760, - "column": 16 - }, - "end": { - "line": 760, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "removeErr", - "start": 28417, - "end": 28426, - "loc": { - "start": { - "line": 760, - "column": 17 - }, - "end": { - "line": 760, - "column": 26 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28427, - "end": 28429, - "loc": { - "start": { - "line": 760, - "column": 27 - }, - "end": { - "line": 760, - "column": 29 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28430, - "end": 28431, - "loc": { - "start": { - "line": 760, - "column": 30 - }, - "end": { - "line": 760, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "originalCallback", - "start": 28444, - "end": 28460, - "loc": { - "start": { - "line": 761, - "column": 12 - }, - "end": { - "line": 761, - "column": 28 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28460, - "end": 28461, - "loc": { - "start": { - "line": 761, - "column": 28 - }, - "end": { - "line": 761, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "removeErr", - "start": 28461, - "end": 28470, - "loc": { - "start": { - "line": 761, - "column": 29 - }, - "end": { - "line": 761, - "column": 38 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28470, - "end": 28471, - "loc": { - "start": { - "line": 761, - "column": 38 - }, - "end": { - "line": 761, - "column": 39 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28471, - "end": 28472, - "loc": { - "start": { - "line": 761, - "column": 39 - }, - "end": { - "line": 761, - "column": 40 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 28485, - "end": 28491, - "loc": { - "start": { - "line": 762, - "column": 12 - }, - "end": { - "line": 762, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28491, - "end": 28492, - "loc": { - "start": { - "line": 762, - "column": 18 - }, - "end": { - "line": 762, - "column": 19 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28503, - "end": 28504, - "loc": { - "start": { - "line": 763, - "column": 10 - }, - "end": { - "line": 763, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28504, - "end": 28505, - "loc": { - "start": { - "line": 763, - "column": 11 - }, - "end": { - "line": 763, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28505, - "end": 28506, - "loc": { - "start": { - "line": 763, - "column": 12 - }, - "end": { - "line": 763, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28514, - "end": 28515, - "loc": { - "start": { - "line": 765, - "column": 6 - }, - "end": { - "line": 765, - "column": 7 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28520, - "end": 28521, - "loc": { - "start": { - "line": 766, - "column": 4 - }, - "end": { - "line": 766, - "column": 5 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28521, - "end": 28522, - "loc": { - "start": { - "line": 766, - "column": 5 - }, - "end": { - "line": 766, - "column": 6 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 28528, - "end": 28533, - "loc": { - "start": { - "line": 768, - "column": 4 - }, - "end": { - "line": 768, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 28534, - "end": 28542, - "loc": { - "start": { - "line": 768, - "column": 10 - }, - "end": { - "line": 768, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 28543, - "end": 28544, - "loc": { - "start": { - "line": 768, - "column": 19 - }, - "end": { - "line": 768, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "removeOriginalDocuments", - "start": 28545, - "end": 28568, - "loc": { - "start": { - "line": 768, - "column": 21 - }, - "end": { - "line": 768, - "column": 44 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28575, - "end": 28576, - "loc": { - "start": { - "line": 769, - "column": 6 - }, - "end": { - "line": 769, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callbackWithDocumentDeletion", - "start": 28577, - "end": 28605, - "loc": { - "start": { - "line": 769, - "column": 8 - }, - "end": { - "line": 769, - "column": 36 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28612, - "end": 28613, - "loc": { - "start": { - "line": 770, - "column": 6 - }, - "end": { - "line": 770, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "originalCallback", - "start": 28614, - "end": 28630, - "loc": { - "start": { - "line": 770, - "column": 8 - }, - "end": { - "line": 770, - "column": 24 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28630, - "end": 28631, - "loc": { - "start": { - "line": 770, - "column": 24 - }, - "end": { - "line": 770, - "column": 25 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 28637, - "end": 28642, - "loc": { - "start": { - "line": 772, - "column": 4 - }, - "end": { - "line": 772, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 28643, - "end": 28646, - "loc": { - "start": { - "line": 772, - "column": 10 - }, - "end": { - "line": 772, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 28647, - "end": 28648, - "loc": { - "start": { - "line": 772, - "column": 14 - }, - "end": { - "line": 772, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 28649, - "end": 28654, - "loc": { - "start": { - "line": 772, - "column": 16 - }, - "end": { - "line": 772, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28661, - "end": 28662, - "loc": { - "start": { - "line": 773, - "column": 6 - }, - "end": { - "line": 773, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 28662, - "end": 28669, - "loc": { - "start": { - "line": 773, - "column": 7 - }, - "end": { - "line": 773, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28669, - "end": 28670, - "loc": { - "start": { - "line": 773, - "column": 14 - }, - "end": { - "line": 773, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 28670, - "end": 28689, - "loc": { - "start": { - "line": 773, - "column": 15 - }, - "end": { - "line": 773, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28689, - "end": 28690, - "loc": { - "start": { - "line": 773, - "column": 34 - }, - "end": { - "line": 773, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28690, - "end": 28691, - "loc": { - "start": { - "line": 773, - "column": 35 - }, - "end": { - "line": 773, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 28700, - "end": 28706, - "loc": { - "start": { - "line": 774, - "column": 8 - }, - "end": { - "line": 774, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28706, - "end": 28707, - "loc": { - "start": { - "line": 774, - "column": 14 - }, - "end": { - "line": 774, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "POST", - "start": 28708, - "end": 28714, - "loc": { - "start": { - "line": 774, - "column": 16 - }, - "end": { - "line": 774, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28714, - "end": 28715, - "loc": { - "start": { - "line": 774, - "column": 22 - }, - "end": { - "line": 774, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 28724, - "end": 28728, - "loc": { - "start": { - "line": 775, - "column": 8 - }, - "end": { - "line": 775, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28728, - "end": 28729, - "loc": { - "start": { - "line": 775, - "column": 12 - }, - "end": { - "line": 775, - "column": 13 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/document/merge", - "start": 28730, - "end": 28747, - "loc": { - "start": { - "line": 775, - "column": 14 - }, - "end": { - "line": 775, - "column": 31 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28747, - "end": 28748, - "loc": { - "start": { - "line": 775, - "column": 31 - }, - "end": { - "line": 775, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 28757, - "end": 28770, - "loc": { - "start": { - "line": 776, - "column": 8 - }, - "end": { - "line": 776, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28770, - "end": 28771, - "loc": { - "start": { - "line": 776, - "column": 21 - }, - "end": { - "line": 776, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28772, - "end": 28773, - "loc": { - "start": { - "line": 776, - "column": 23 - }, - "end": { - "line": 776, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 28784, - "end": 28788, - "loc": { - "start": { - "line": 777, - "column": 10 - }, - "end": { - "line": 777, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28788, - "end": 28789, - "loc": { - "start": { - "line": 777, - "column": 14 - }, - "end": { - "line": 777, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 28790, - "end": 28798, - "loc": { - "start": { - "line": 777, - "column": 16 - }, - "end": { - "line": 777, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28798, - "end": 28799, - "loc": { - "start": { - "line": 777, - "column": 24 - }, - "end": { - "line": 777, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 28810, - "end": 28815, - "loc": { - "start": { - "line": 778, - "column": 10 - }, - "end": { - "line": 778, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28815, - "end": 28816, - "loc": { - "start": { - "line": 778, - "column": 15 - }, - "end": { - "line": 778, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28825, - "end": 28826, - "loc": { - "start": { - "line": 779, - "column": 8 - }, - "end": { - "line": 779, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28826, - "end": 28827, - "loc": { - "start": { - "line": 779, - "column": 9 - }, - "end": { - "line": 779, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 28836, - "end": 28843, - "loc": { - "start": { - "line": 780, - "column": 8 - }, - "end": { - "line": 780, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28843, - "end": 28844, - "loc": { - "start": { - "line": 780, - "column": 15 - }, - "end": { - "line": 780, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28845, - "end": 28846, - "loc": { - "start": { - "line": 780, - "column": 17 - }, - "end": { - "line": 780, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type", - "start": 28857, - "end": 28871, - "loc": { - "start": { - "line": 781, - "column": 10 - }, - "end": { - "line": 781, - "column": 24 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28871, - "end": 28872, - "loc": { - "start": { - "line": 781, - "column": 24 - }, - "end": { - "line": 781, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/json", - "start": 28873, - "end": 28891, - "loc": { - "start": { - "line": 781, - "column": 26 - }, - "end": { - "line": 781, - "column": 44 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28891, - "end": 28892, - "loc": { - "start": { - "line": 781, - "column": 44 - }, - "end": { - "line": 781, - "column": 45 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Length", - "start": 28903, - "end": 28919, - "loc": { - "start": { - "line": 782, - "column": 10 - }, - "end": { - "line": 782, - "column": 26 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28919, - "end": 28920, - "loc": { - "start": { - "line": 782, - "column": 26 - }, - "end": { - "line": 782, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 28921, - "end": 28927, - "loc": { - "start": { - "line": 782, - "column": 28 - }, - "end": { - "line": 782, - "column": 34 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28927, - "end": 28928, - "loc": { - "start": { - "line": 782, - "column": 34 - }, - "end": { - "line": 782, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "byteLength", - "start": 28928, - "end": 28938, - "loc": { - "start": { - "line": 782, - "column": 35 - }, - "end": { - "line": 782, - "column": 45 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28938, - "end": 28939, - "loc": { - "start": { - "line": 782, - "column": 45 - }, - "end": { - "line": 782, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 28939, - "end": 28947, - "loc": { - "start": { - "line": 782, - "column": 46 - }, - "end": { - "line": 782, - "column": 54 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28947, - "end": 28948, - "loc": { - "start": { - "line": 782, - "column": 54 - }, - "end": { - "line": 782, - "column": 55 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28948, - "end": 28949, - "loc": { - "start": { - "line": 782, - "column": 55 - }, - "end": { - "line": 782, - "column": 56 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28958, - "end": 28959, - "loc": { - "start": { - "line": 783, - "column": 8 - }, - "end": { - "line": 783, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28959, - "end": 28960, - "loc": { - "start": { - "line": 783, - "column": 9 - }, - "end": { - "line": 783, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28967, - "end": 28968, - "loc": { - "start": { - "line": 784, - "column": 6 - }, - "end": { - "line": 784, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28968, - "end": 28969, - "loc": { - "start": { - "line": 784, - "column": 7 - }, - "end": { - "line": 784, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28969, - "end": 28970, - "loc": { - "start": { - "line": 784, - "column": 8 - }, - "end": { - "line": 784, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 28971, - "end": 28986, - "loc": { - "start": { - "line": 784, - "column": 10 - }, - "end": { - "line": 784, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28986, - "end": 28987, - "loc": { - "start": { - "line": 784, - "column": 25 - }, - "end": { - "line": 784, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 28987, - "end": 28995, - "loc": { - "start": { - "line": 784, - "column": 26 - }, - "end": { - "line": 784, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28995, - "end": 28996, - "loc": { - "start": { - "line": 784, - "column": 34 - }, - "end": { - "line": 784, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28996, - "end": 28997, - "loc": { - "start": { - "line": 784, - "column": 35 - }, - "end": { - "line": 784, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29004, - "end": 29005, - "loc": { - "start": { - "line": 785, - "column": 6 - }, - "end": { - "line": 785, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 29005, - "end": 29007, - "loc": { - "start": { - "line": 785, - "column": 7 - }, - "end": { - "line": 785, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 29007, - "end": 29008, - "loc": { - "start": { - "line": 785, - "column": 9 - }, - "end": { - "line": 785, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 29008, - "end": 29015, - "loc": { - "start": { - "line": 785, - "column": 10 - }, - "end": { - "line": 785, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29015, - "end": 29016, - "loc": { - "start": { - "line": 785, - "column": 17 - }, - "end": { - "line": 785, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 29017, - "end": 29029, - "loc": { - "start": { - "line": 785, - "column": 19 - }, - "end": { - "line": 785, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 29029, - "end": 29030, - "loc": { - "start": { - "line": 785, - "column": 31 - }, - "end": { - "line": 785, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "originalCallback", - "start": 29030, - "end": 29046, - "loc": { - "start": { - "line": 785, - "column": 32 - }, - "end": { - "line": 785, - "column": 48 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 29046, - "end": 29047, - "loc": { - "start": { - "line": 785, - "column": 48 - }, - "end": { - "line": 785, - "column": 49 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 29047, - "end": 29048, - "loc": { - "start": { - "line": 785, - "column": 49 - }, - "end": { - "line": 785, - "column": 50 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29048, - "end": 29049, - "loc": { - "start": { - "line": 785, - "column": 50 - }, - "end": { - "line": 785, - "column": 51 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 29055, - "end": 29058, - "loc": { - "start": { - "line": 787, - "column": 4 - }, - "end": { - "line": 787, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29058, - "end": 29059, - "loc": { - "start": { - "line": 787, - "column": 7 - }, - "end": { - "line": 787, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "write", - "start": 29059, - "end": 29064, - "loc": { - "start": { - "line": 787, - "column": 8 - }, - "end": { - "line": 787, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 29064, - "end": 29065, - "loc": { - "start": { - "line": 787, - "column": 13 - }, - "end": { - "line": 787, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 29065, - "end": 29073, - "loc": { - "start": { - "line": 787, - "column": 14 - }, - "end": { - "line": 787, - "column": 22 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 29073, - "end": 29074, - "loc": { - "start": { - "line": 787, - "column": 22 - }, - "end": { - "line": 787, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29074, - "end": 29075, - "loc": { - "start": { - "line": 787, - "column": 23 - }, - "end": { - "line": 787, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 29080, - "end": 29083, - "loc": { - "start": { - "line": 788, - "column": 4 - }, - "end": { - "line": 788, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29083, - "end": 29084, - "loc": { - "start": { - "line": 788, - "column": 7 - }, - "end": { - "line": 788, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 29084, - "end": 29087, - "loc": { - "start": { - "line": 788, - "column": 8 - }, - "end": { - "line": 788, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 29087, - "end": 29088, - "loc": { - "start": { - "line": 788, - "column": 11 - }, - "end": { - "line": 788, - "column": 12 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 29088, - "end": 29089, - "loc": { - "start": { - "line": 788, - "column": 12 - }, - "end": { - "line": 788, - "column": 13 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29089, - "end": 29090, - "loc": { - "start": { - "line": 788, - "column": 13 - }, - "end": { - "line": 788, - "column": 14 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 29093, - "end": 29094, - "loc": { - "start": { - "line": 789, - "column": 2 - }, - "end": { - "line": 789, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document history payload\n * @typedef {Object} DocumentHistoryParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 29105, - "end": 29290, - "loc": { - "start": { - "line": 798, - "column": 2 - }, - "end": { - "line": 803, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document action log item\n * @typedef {Object} DocumentEvent\n * @property {string} client_app_name - name of a client application\n * @property {?string} client_timestamp - client application timestamp\n * @property {string} created - timestamp of action creation\n * @property {string} email - email of an actor\n * @property {string} event - name of event\n * @property {string} ip_address - actor's IP address\n * @property {?string} element_id - an ID of specific element\n * @property {?string} field_id - an ID of specific field\n * @property {?string} json_attributes - field attributes (e.g. font, style, size etc.)\n * @property {string} [document_id] - an ID of specific document\n * @property {string} [origin] - an origin of document\n * @property {string} [unique_id] - an ID of event\n * @property {string} [user_agent] - user agent\n * @property {string} [user_id] - id of an actor\n * @property {string} [version] - version of signed document (incremented after each signature addition)\n ", - "start": 29294, - "end": 30328, - "loc": { - "start": { - "line": 805, - "column": 2 - }, - "end": { - "line": 823, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document history response data\n * @typedef {DocumentEvent[]} DocumentHistoryResponse\n ", - "start": 30332, - "end": 30433, - "loc": { - "start": { - "line": 825, - "column": 2 - }, - "end": { - "line": 828, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves a document action log (history) data\n * @param {DocumentHistoryParams} data - payload\n * @param {function(err: ApiErrorResponse, res: DocumentHistoryResponse)} [callback] - error first node.js callback\n ", - "start": 30437, - "end": 30668, - "loc": { - "start": { - "line": 830, - "column": 2 - }, - "end": { - "line": 834, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 30671, - "end": 30677, - "loc": { - "start": { - "line": 835, - "column": 2 - }, - "end": { - "line": 835, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "history", - "start": 30678, - "end": 30685, - "loc": { - "start": { - "line": 835, - "column": 9 - }, - "end": { - "line": 835, - "column": 16 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30686, - "end": 30687, - "loc": { - "start": { - "line": 835, - "column": 17 - }, - "end": { - "line": 835, - "column": 18 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30687, - "end": 30688, - "loc": { - "start": { - "line": 835, - "column": 18 - }, - "end": { - "line": 835, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 30689, - "end": 30691, - "loc": { - "start": { - "line": 835, - "column": 20 - }, - "end": { - "line": 835, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30691, - "end": 30692, - "loc": { - "start": { - "line": 835, - "column": 22 - }, - "end": { - "line": 835, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 30693, - "end": 30698, - "loc": { - "start": { - "line": 835, - "column": 24 - }, - "end": { - "line": 835, - "column": 29 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30699, - "end": 30700, - "loc": { - "start": { - "line": 835, - "column": 30 - }, - "end": { - "line": 835, - "column": 31 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30700, - "end": 30701, - "loc": { - "start": { - "line": 835, - "column": 31 - }, - "end": { - "line": 835, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 30702, - "end": 30710, - "loc": { - "start": { - "line": 835, - "column": 33 - }, - "end": { - "line": 835, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30710, - "end": 30711, - "loc": { - "start": { - "line": 835, - "column": 41 - }, - "end": { - "line": 835, - "column": 42 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30712, - "end": 30713, - "loc": { - "start": { - "line": 835, - "column": 43 - }, - "end": { - "line": 835, - "column": 44 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 30718, - "end": 30723, - "loc": { - "start": { - "line": 836, - "column": 4 - }, - "end": { - "line": 836, - "column": 9 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30730, - "end": 30731, - "loc": { - "start": { - "line": 837, - "column": 6 - }, - "end": { - "line": 837, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 30731, - "end": 30738, - "loc": { - "start": { - "line": 837, - "column": 7 - }, - "end": { - "line": 837, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30738, - "end": 30739, - "loc": { - "start": { - "line": 837, - "column": 14 - }, - "end": { - "line": 837, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 30739, - "end": 30758, - "loc": { - "start": { - "line": 837, - "column": 15 - }, - "end": { - "line": 837, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30758, - "end": 30759, - "loc": { - "start": { - "line": 837, - "column": 34 - }, - "end": { - "line": 837, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30759, - "end": 30760, - "loc": { - "start": { - "line": 837, - "column": 35 - }, - "end": { - "line": 837, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 30769, - "end": 30775, - "loc": { - "start": { - "line": 838, - "column": 8 - }, - "end": { - "line": 838, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30775, - "end": 30776, - "loc": { - "start": { - "line": 838, - "column": 14 - }, - "end": { - "line": 838, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "GET", - "start": 30777, - "end": 30782, - "loc": { - "start": { - "line": 838, - "column": 16 - }, - "end": { - "line": 838, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30782, - "end": 30783, - "loc": { - "start": { - "line": 838, - "column": 21 - }, - "end": { - "line": 838, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 30792, - "end": 30796, - "loc": { - "start": { - "line": 839, - "column": 8 - }, - "end": { - "line": 839, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30796, - "end": 30797, - "loc": { - "start": { - "line": 839, - "column": 12 - }, - "end": { - "line": 839, - "column": 13 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30798, - "end": 30799, - "loc": { - "start": { - "line": 839, - "column": 14 - }, - "end": { - "line": 839, - "column": 15 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/document/", - "start": 30799, - "end": 30809, - "loc": { - "start": { - "line": 839, - "column": 15 - }, - "end": { - "line": 839, - "column": 25 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30809, - "end": 30811, - "loc": { - "start": { - "line": 839, - "column": 25 - }, - "end": { - "line": 839, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 30811, - "end": 30813, - "loc": { - "start": { - "line": 839, - "column": 27 - }, - "end": { - "line": 839, - "column": 29 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30813, - "end": 30814, - "loc": { - "start": { - "line": 839, - "column": 29 - }, - "end": { - "line": 839, - "column": 30 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/history", - "start": 30814, - "end": 30822, - "loc": { - "start": { - "line": 839, - "column": 30 - }, - "end": { - "line": 839, - "column": 38 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30822, - "end": 30823, - "loc": { - "start": { - "line": 839, - "column": 38 - }, - "end": { - "line": 839, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30823, - "end": 30824, - "loc": { - "start": { - "line": 839, - "column": 39 - }, - "end": { - "line": 839, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 30833, - "end": 30846, - "loc": { - "start": { - "line": 840, - "column": 8 - }, - "end": { - "line": 840, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30846, - "end": 30847, - "loc": { - "start": { - "line": 840, - "column": 21 - }, - "end": { - "line": 840, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30848, - "end": 30849, - "loc": { - "start": { - "line": 840, - "column": 23 - }, - "end": { - "line": 840, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 30860, - "end": 30864, - "loc": { - "start": { - "line": 841, - "column": 10 - }, - "end": { - "line": 841, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30864, - "end": 30865, - "loc": { - "start": { - "line": 841, - "column": 14 - }, - "end": { - "line": 841, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 30866, - "end": 30874, - "loc": { - "start": { - "line": 841, - "column": 16 - }, - "end": { - "line": 841, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30874, - "end": 30875, - "loc": { - "start": { - "line": 841, - "column": 24 - }, - "end": { - "line": 841, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 30886, - "end": 30891, - "loc": { - "start": { - "line": 842, - "column": 10 - }, - "end": { - "line": 842, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30891, - "end": 30892, - "loc": { - "start": { - "line": 842, - "column": 15 - }, - "end": { - "line": 842, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30901, - "end": 30902, - "loc": { - "start": { - "line": 843, - "column": 8 - }, - "end": { - "line": 843, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30902, - "end": 30903, - "loc": { - "start": { - "line": 843, - "column": 9 - }, - "end": { - "line": 843, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30910, - "end": 30911, - "loc": { - "start": { - "line": 844, - "column": 6 - }, - "end": { - "line": 844, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30911, - "end": 30912, - "loc": { - "start": { - "line": 844, - "column": 7 - }, - "end": { - "line": 844, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30912, - "end": 30913, - "loc": { - "start": { - "line": 844, - "column": 8 - }, - "end": { - "line": 844, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 30914, - "end": 30929, - "loc": { - "start": { - "line": 844, - "column": 10 - }, - "end": { - "line": 844, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30929, - "end": 30930, - "loc": { - "start": { - "line": 844, - "column": 25 - }, - "end": { - "line": 844, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 30930, - "end": 30938, - "loc": { - "start": { - "line": 844, - "column": 26 - }, - "end": { - "line": 844, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30938, - "end": 30939, - "loc": { - "start": { - "line": 844, - "column": 34 - }, - "end": { - "line": 844, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30939, - "end": 30940, - "loc": { - "start": { - "line": 844, - "column": 35 - }, - "end": { - "line": 844, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30947, - "end": 30948, - "loc": { - "start": { - "line": 845, - "column": 6 - }, - "end": { - "line": 845, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 30948, - "end": 30950, - "loc": { - "start": { - "line": 845, - "column": 7 - }, - "end": { - "line": 845, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30950, - "end": 30951, - "loc": { - "start": { - "line": 845, - "column": 9 - }, - "end": { - "line": 845, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 30951, - "end": 30958, - "loc": { - "start": { - "line": 845, - "column": 10 - }, - "end": { - "line": 845, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30958, - "end": 30959, - "loc": { - "start": { - "line": 845, - "column": 17 - }, - "end": { - "line": 845, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 30960, - "end": 30972, - "loc": { - "start": { - "line": 845, - "column": 19 - }, - "end": { - "line": 845, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30972, - "end": 30973, - "loc": { - "start": { - "line": 845, - "column": 31 - }, - "end": { - "line": 845, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 30973, - "end": 30981, - "loc": { - "start": { - "line": 845, - "column": 32 - }, - "end": { - "line": 845, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30981, - "end": 30982, - "loc": { - "start": { - "line": 845, - "column": 40 - }, - "end": { - "line": 845, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30982, - "end": 30983, - "loc": { - "start": { - "line": 845, - "column": 41 - }, - "end": { - "line": 845, - "column": 42 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30990, - "end": 30991, - "loc": { - "start": { - "line": 846, - "column": 6 - }, - "end": { - "line": 846, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 30991, - "end": 30994, - "loc": { - "start": { - "line": 846, - "column": 7 - }, - "end": { - "line": 846, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30994, - "end": 30995, - "loc": { - "start": { - "line": 846, - "column": 10 - }, - "end": { - "line": 846, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30995, - "end": 30996, - "loc": { - "start": { - "line": 846, - "column": 11 - }, - "end": { - "line": 846, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30996, - "end": 30997, - "loc": { - "start": { - "line": 846, - "column": 12 - }, - "end": { - "line": 846, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31000, - "end": 31001, - "loc": { - "start": { - "line": 847, - "column": 2 - }, - "end": { - "line": 847, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Remove document payload\n * @typedef {Object} DocumentRemoveParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 31005, - "end": 31188, - "loc": { - "start": { - "line": 849, - "column": 2 - }, - "end": { - "line": 854, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Remove document response data\n * @typedef {Object} DocumentRemoveResponse\n * @property {string} status - status of deletion, e.g. 'success'\n ", - "start": 31192, - "end": 31350, - "loc": { - "start": { - "line": 856, - "column": 2 - }, - "end": { - "line": 860, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Removes a specified document from folder\n * @param {DocumentRemoveParams} data - remove document payload\n * @param {function(err: ApiErrorResponse, res: DocumentRemoveResponse)} [callback] - error first node.js callback\n ", - "start": 31354, - "end": 31592, - "loc": { - "start": { - "line": 862, - "column": 2 - }, - "end": { - "line": 866, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 31595, - "end": 31601, - "loc": { - "start": { - "line": 867, - "column": 2 - }, - "end": { - "line": 867, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "remove", - "start": 31602, - "end": 31608, - "loc": { - "start": { - "line": 867, - "column": 9 - }, - "end": { - "line": 867, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31609, - "end": 31610, - "loc": { - "start": { - "line": 867, - "column": 16 - }, - "end": { - "line": 867, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31610, - "end": 31611, - "loc": { - "start": { - "line": 867, - "column": 17 - }, - "end": { - "line": 867, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 31612, - "end": 31614, - "loc": { - "start": { - "line": 867, - "column": 19 - }, - "end": { - "line": 867, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31614, - "end": 31615, - "loc": { - "start": { - "line": 867, - "column": 21 - }, - "end": { - "line": 867, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 31616, - "end": 31621, - "loc": { - "start": { - "line": 867, - "column": 23 - }, - "end": { - "line": 867, - "column": 28 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31622, - "end": 31623, - "loc": { - "start": { - "line": 867, - "column": 29 - }, - "end": { - "line": 867, - "column": 30 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31623, - "end": 31624, - "loc": { - "start": { - "line": 867, - "column": 30 - }, - "end": { - "line": 867, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 31625, - "end": 31633, - "loc": { - "start": { - "line": 867, - "column": 32 - }, - "end": { - "line": 867, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31633, - "end": 31634, - "loc": { - "start": { - "line": 867, - "column": 40 - }, - "end": { - "line": 867, - "column": 41 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31635, - "end": 31636, - "loc": { - "start": { - "line": 867, - "column": 42 - }, - "end": { - "line": 867, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 31641, - "end": 31646, - "loc": { - "start": { - "line": 868, - "column": 4 - }, - "end": { - "line": 868, - "column": 9 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31653, - "end": 31654, - "loc": { - "start": { - "line": 869, - "column": 6 - }, - "end": { - "line": 869, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 31654, - "end": 31661, - "loc": { - "start": { - "line": 869, - "column": 7 - }, - "end": { - "line": 869, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31661, - "end": 31662, - "loc": { - "start": { - "line": 869, - "column": 14 - }, - "end": { - "line": 869, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 31662, - "end": 31681, - "loc": { - "start": { - "line": 869, - "column": 15 - }, - "end": { - "line": 869, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31681, - "end": 31682, - "loc": { - "start": { - "line": 869, - "column": 34 - }, - "end": { - "line": 869, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31682, - "end": 31683, - "loc": { - "start": { - "line": 869, - "column": 35 - }, - "end": { - "line": 869, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 31692, - "end": 31698, - "loc": { - "start": { - "line": 870, - "column": 8 - }, - "end": { - "line": 870, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31698, - "end": 31699, - "loc": { - "start": { - "line": 870, - "column": 14 - }, - "end": { - "line": 870, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "DELETE", - "start": 31700, - "end": 31708, - "loc": { - "start": { - "line": 870, - "column": 16 - }, - "end": { - "line": 870, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31708, - "end": 31709, - "loc": { - "start": { - "line": 870, - "column": 24 - }, - "end": { - "line": 870, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 31718, - "end": 31722, - "loc": { - "start": { - "line": 871, - "column": 8 - }, - "end": { - "line": 871, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31722, - "end": 31723, - "loc": { - "start": { - "line": 871, - "column": 12 - }, - "end": { - "line": 871, - "column": 13 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31724, - "end": 31725, - "loc": { - "start": { - "line": 871, - "column": 14 - }, - "end": { - "line": 871, - "column": 15 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/document/", - "start": 31725, - "end": 31735, - "loc": { - "start": { - "line": 871, - "column": 15 - }, - "end": { - "line": 871, - "column": 25 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31735, - "end": 31737, - "loc": { - "start": { - "line": 871, - "column": 25 - }, - "end": { - "line": 871, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 31737, - "end": 31739, - "loc": { - "start": { - "line": 871, - "column": 27 - }, - "end": { - "line": 871, - "column": 29 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31739, - "end": 31740, - "loc": { - "start": { - "line": 871, - "column": 29 - }, - "end": { - "line": 871, - "column": 30 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 31740, - "end": 31740, - "loc": { - "start": { - "line": 871, - "column": 30 - }, - "end": { - "line": 871, - "column": 30 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31740, - "end": 31741, - "loc": { - "start": { - "line": 871, - "column": 30 - }, - "end": { - "line": 871, - "column": 31 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31741, - "end": 31742, - "loc": { - "start": { - "line": 871, - "column": 31 - }, - "end": { - "line": 871, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 31751, - "end": 31764, - "loc": { - "start": { - "line": 872, - "column": 8 - }, - "end": { - "line": 872, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31764, - "end": 31765, - "loc": { - "start": { - "line": 872, - "column": 21 - }, - "end": { - "line": 872, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31766, - "end": 31767, - "loc": { - "start": { - "line": 872, - "column": 23 - }, - "end": { - "line": 872, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 31778, - "end": 31782, - "loc": { - "start": { - "line": 873, - "column": 10 - }, - "end": { - "line": 873, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31782, - "end": 31783, - "loc": { - "start": { - "line": 873, - "column": 14 - }, - "end": { - "line": 873, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 31784, - "end": 31792, - "loc": { - "start": { - "line": 873, - "column": 16 - }, - "end": { - "line": 873, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31792, - "end": 31793, - "loc": { - "start": { - "line": 873, - "column": 24 - }, - "end": { - "line": 873, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 31804, - "end": 31809, - "loc": { - "start": { - "line": 874, - "column": 10 - }, - "end": { - "line": 874, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31809, - "end": 31810, - "loc": { - "start": { - "line": 874, - "column": 15 - }, - "end": { - "line": 874, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31819, - "end": 31820, - "loc": { - "start": { - "line": 875, - "column": 8 - }, - "end": { - "line": 875, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31820, - "end": 31821, - "loc": { - "start": { - "line": 875, - "column": 9 - }, - "end": { - "line": 875, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31828, - "end": 31829, - "loc": { - "start": { - "line": 876, - "column": 6 - }, - "end": { - "line": 876, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31829, - "end": 31830, - "loc": { - "start": { - "line": 876, - "column": 7 - }, - "end": { - "line": 876, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31830, - "end": 31831, - "loc": { - "start": { - "line": 876, - "column": 8 - }, - "end": { - "line": 876, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 31832, - "end": 31847, - "loc": { - "start": { - "line": 876, - "column": 10 - }, - "end": { - "line": 876, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31847, - "end": 31848, - "loc": { - "start": { - "line": 876, - "column": 25 - }, - "end": { - "line": 876, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 31848, - "end": 31856, - "loc": { - "start": { - "line": 876, - "column": 26 - }, - "end": { - "line": 876, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31856, - "end": 31857, - "loc": { - "start": { - "line": 876, - "column": 34 - }, - "end": { - "line": 876, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31857, - "end": 31858, - "loc": { - "start": { - "line": 876, - "column": 35 - }, - "end": { - "line": 876, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31865, - "end": 31866, - "loc": { - "start": { - "line": 877, - "column": 6 - }, - "end": { - "line": 877, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 31866, - "end": 31868, - "loc": { - "start": { - "line": 877, - "column": 7 - }, - "end": { - "line": 877, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31868, - "end": 31869, - "loc": { - "start": { - "line": 877, - "column": 9 - }, - "end": { - "line": 877, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 31869, - "end": 31876, - "loc": { - "start": { - "line": 877, - "column": 10 - }, - "end": { - "line": 877, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31876, - "end": 31877, - "loc": { - "start": { - "line": 877, - "column": 17 - }, - "end": { - "line": 877, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 31878, - "end": 31890, - "loc": { - "start": { - "line": 877, - "column": 19 - }, - "end": { - "line": 877, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31890, - "end": 31891, - "loc": { - "start": { - "line": 877, - "column": 31 - }, - "end": { - "line": 877, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 31891, - "end": 31899, - "loc": { - "start": { - "line": 877, - "column": 32 - }, - "end": { - "line": 877, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31899, - "end": 31900, - "loc": { - "start": { - "line": 877, - "column": 40 - }, - "end": { - "line": 877, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31900, - "end": 31901, - "loc": { - "start": { - "line": 877, - "column": 41 - }, - "end": { - "line": 877, - "column": 42 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31908, - "end": 31909, - "loc": { - "start": { - "line": 878, - "column": 6 - }, - "end": { - "line": 878, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 31909, - "end": 31912, - "loc": { - "start": { - "line": 878, - "column": 7 - }, - "end": { - "line": 878, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31912, - "end": 31913, - "loc": { - "start": { - "line": 878, - "column": 10 - }, - "end": { - "line": 878, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31913, - "end": 31914, - "loc": { - "start": { - "line": 878, - "column": 11 - }, - "end": { - "line": 878, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31914, - "end": 31915, - "loc": { - "start": { - "line": 878, - "column": 12 - }, - "end": { - "line": 878, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31918, - "end": 31919, - "loc": { - "start": { - "line": 879, - "column": 2 - }, - "end": { - "line": 879, - "column": 3 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31921, - "end": 31922, - "loc": { - "start": { - "line": 881, - "column": 0 - }, - "end": { - "line": 881, - "column": 1 - } - } - }, - { - "type": { - "label": "export", - "keyword": "export", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "export", - "start": 31924, - "end": 31930, - "loc": { - "start": { - "line": 883, - "column": 0 - }, - "end": { - "line": 883, - "column": 6 - } - } - }, - { - "type": { - "label": "default", - "keyword": "default", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "default", - "start": 31931, - "end": 31938, - "loc": { - "start": { - "line": 883, - "column": 7 - }, - "end": { - "line": 883, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Document", - "start": 31939, - "end": 31947, - "loc": { - "start": { - "line": 883, - "column": 15 - }, - "end": { - "line": 883, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31947, - "end": 31948, - "loc": { - "start": { - "line": 883, - "column": 23 - }, - "end": { - "line": 883, - "column": 24 - } - } - }, - { - "type": { - "label": "eof", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31949, - "end": 31949, - "loc": { - "start": { - "line": 884, - "column": 0 - }, - "end": { - "line": 884, - "column": 0 - } - } - } - ] -} \ No newline at end of file diff --git a/docs/ast/source/document/index.js.json b/docs/ast/source/document/index.js.json deleted file mode 100644 index 8b8ed3f3..00000000 --- a/docs/ast/source/document/index.js.json +++ /dev/null @@ -1,128316 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 40252, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1127, - "column": 0 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 40252, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1127, - "column": 0 - } - }, - "sourceType": "module", - "body": [ - { - "type": "ImportDeclaration", - "start": 14, - "end": 40, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 26 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - } - }, - "local": { - "type": "Identifier", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - }, - "identifierName": "https" - }, - "name": "https" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 18 - }, - "end": { - "line": 2, - "column": 25 - } - }, - "extra": { - "rawValue": "https", - "raw": "'https'" - }, - "value": "https" - } - }, - { - "type": "ImportDeclaration", - "start": 41, - "end": 75, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 34 - } - }, - "specifiers": [ - { - "type": "ImportSpecifier", - "start": 50, - "end": 62, - "loc": { - "start": { - "line": 3, - "column": 9 - }, - "end": { - "line": 3, - "column": 21 - } - }, - "imported": { - "type": "Identifier", - "start": 50, - "end": 62, - "loc": { - "start": { - "line": 3, - "column": 9 - }, - "end": { - "line": 3, - "column": 21 - }, - "identifierName": "readFileSync" - }, - "name": "readFileSync" - }, - "local": { - "type": "Identifier", - "start": 50, - "end": 62, - "loc": { - "start": { - "line": 3, - "column": 9 - }, - "end": { - "line": 3, - "column": 21 - }, - "identifierName": "readFileSync" - }, - "name": "readFileSync" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 70, - "end": 74, - "loc": { - "start": { - "line": 3, - "column": 29 - }, - "end": { - "line": 3, - "column": 33 - } - }, - "extra": { - "rawValue": "fs", - "raw": "'fs'" - }, - "value": "fs" - } - }, - { - "type": "ImportDeclaration", - "start": 76, - "end": 117, - "loc": { - "start": { - "line": 4, - "column": 0 - }, - "end": { - "line": 4, - "column": 41 - } - }, - "specifiers": [ - { - "type": "ImportSpecifier", - "start": 85, - "end": 93, - "loc": { - "start": { - "line": 4, - "column": 9 - }, - "end": { - "line": 4, - "column": 17 - } - }, - "imported": { - "type": "Identifier", - "start": 85, - "end": 93, - "loc": { - "start": { - "line": 4, - "column": 9 - }, - "end": { - "line": 4, - "column": 17 - }, - "identifierName": "basename" - }, - "name": "basename" - }, - "local": { - "type": "Identifier", - "start": 85, - "end": 93, - "loc": { - "start": { - "line": 4, - "column": 9 - }, - "end": { - "line": 4, - "column": 17 - }, - "identifierName": "basename" - }, - "name": "basename" - } - }, - { - "type": "ImportSpecifier", - "start": 95, - "end": 102, - "loc": { - "start": { - "line": 4, - "column": 19 - }, - "end": { - "line": 4, - "column": 26 - } - }, - "imported": { - "type": "Identifier", - "start": 95, - "end": 102, - "loc": { - "start": { - "line": 4, - "column": 19 - }, - "end": { - "line": 4, - "column": 26 - }, - "identifierName": "extname" - }, - "name": "extname" - }, - "local": { - "type": "Identifier", - "start": 95, - "end": 102, - "loc": { - "start": { - "line": 4, - "column": 19 - }, - "end": { - "line": 4, - "column": 26 - }, - "identifierName": "extname" - }, - "name": "extname" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 110, - "end": 116, - "loc": { - "start": { - "line": 4, - "column": 34 - }, - "end": { - "line": 4, - "column": 40 - } - }, - "extra": { - "rawValue": "path", - "raw": "'path'" - }, - "value": "path" - } - }, - { - "type": "ImportDeclaration", - "start": 118, - "end": 351, - "loc": { - "start": { - "line": 5, - "column": 0 - }, - "end": { - "line": 15, - "column": 19 - } - }, - "specifiers": [ - { - "type": "ImportSpecifier", - "start": 129, - "end": 144, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 17 - } - }, - "imported": { - "type": "Identifier", - "start": 129, - "end": 144, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "local": { - "type": "Identifier", - "start": 129, - "end": 144, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - } - }, - { - "type": "ImportSpecifier", - "start": 148, - "end": 160, - "loc": { - "start": { - "line": 7, - "column": 2 - }, - "end": { - "line": 7, - "column": 14 - } - }, - "imported": { - "type": "Identifier", - "start": 148, - "end": 160, - "loc": { - "start": { - "line": 7, - "column": 2 - }, - "end": { - "line": 7, - "column": 14 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "local": { - "type": "Identifier", - "start": 148, - "end": 160, - "loc": { - "start": { - "line": 7, - "column": 2 - }, - "end": { - "line": 7, - "column": 14 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - } - }, - { - "type": "ImportSpecifier", - "start": 164, - "end": 183, - "loc": { - "start": { - "line": 8, - "column": 2 - }, - "end": { - "line": 8, - "column": 21 - } - }, - "imported": { - "type": "Identifier", - "start": 164, - "end": 183, - "loc": { - "start": { - "line": 8, - "column": 2 - }, - "end": { - "line": 8, - "column": 21 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "local": { - "type": "Identifier", - "start": 164, - "end": 183, - "loc": { - "start": { - "line": 8, - "column": 2 - }, - "end": { - "line": 8, - "column": 21 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - } - }, - { - "type": "ImportSpecifier", - "start": 187, - "end": 207, - "loc": { - "start": { - "line": 9, - "column": 2 - }, - "end": { - "line": 9, - "column": 22 - } - }, - "imported": { - "type": "Identifier", - "start": 187, - "end": 207, - "loc": { - "start": { - "line": 9, - "column": 2 - }, - "end": { - "line": 9, - "column": 22 - }, - "identifierName": "stringifyQueryParams" - }, - "name": "stringifyQueryParams" - }, - "local": { - "type": "Identifier", - "start": 187, - "end": 207, - "loc": { - "start": { - "line": 9, - "column": 2 - }, - "end": { - "line": 9, - "column": 22 - }, - "identifierName": "stringifyQueryParams" - }, - "name": "stringifyQueryParams" - } - }, - { - "type": "ImportSpecifier", - "start": 211, - "end": 237, - "loc": { - "start": { - "line": 10, - "column": 2 - }, - "end": { - "line": 10, - "column": 28 - } - }, - "imported": { - "type": "Identifier", - "start": 211, - "end": 237, - "loc": { - "start": { - "line": 10, - "column": 2 - }, - "end": { - "line": 10, - "column": 28 - }, - "identifierName": "getMimeTypeByFileExtension" - }, - "name": "getMimeTypeByFileExtension" - }, - "local": { - "type": "Identifier", - "start": 211, - "end": 237, - "loc": { - "start": { - "line": 10, - "column": 2 - }, - "end": { - "line": 10, - "column": 28 - }, - "identifierName": "getMimeTypeByFileExtension" - }, - "name": "getMimeTypeByFileExtension" - } - }, - { - "type": "ImportSpecifier", - "start": 241, - "end": 265, - "loc": { - "start": { - "line": 11, - "column": 2 - }, - "end": { - "line": 11, - "column": 26 - } - }, - "imported": { - "type": "Identifier", - "start": 241, - "end": 265, - "loc": { - "start": { - "line": 11, - "column": 2 - }, - "end": { - "line": 11, - "column": 26 - }, - "identifierName": "isDocumentTypeAcceptable" - }, - "name": "isDocumentTypeAcceptable" - }, - "local": { - "type": "Identifier", - "start": 241, - "end": 265, - "loc": { - "start": { - "line": 11, - "column": 2 - }, - "end": { - "line": 11, - "column": 26 - }, - "identifierName": "isDocumentTypeAcceptable" - }, - "name": "isDocumentTypeAcceptable" - } - }, - { - "type": "ImportSpecifier", - "start": 269, - "end": 288, - "loc": { - "start": { - "line": 12, - "column": 2 - }, - "end": { - "line": 12, - "column": 21 - } - }, - "imported": { - "type": "Identifier", - "start": 269, - "end": 288, - "loc": { - "start": { - "line": 12, - "column": 2 - }, - "end": { - "line": 12, - "column": 21 - }, - "identifierName": "getFormDataBoundary" - }, - "name": "getFormDataBoundary" - }, - "local": { - "type": "Identifier", - "start": 269, - "end": 288, - "loc": { - "start": { - "line": 12, - "column": 2 - }, - "end": { - "line": 12, - "column": 21 - }, - "identifierName": "getFormDataBoundary" - }, - "name": "getFormDataBoundary" - } - }, - { - "type": "ImportSpecifier", - "start": 292, - "end": 311, - "loc": { - "start": { - "line": 13, - "column": 2 - }, - "end": { - "line": 13, - "column": 21 - } - }, - "imported": { - "type": "Identifier", - "start": 292, - "end": 311, - "loc": { - "start": { - "line": 13, - "column": 2 - }, - "end": { - "line": 13, - "column": 21 - }, - "identifierName": "getByDeclinedStatus" - }, - "name": "getByDeclinedStatus" - }, - "local": { - "type": "Identifier", - "start": 292, - "end": 311, - "loc": { - "start": { - "line": 13, - "column": 2 - }, - "end": { - "line": 13, - "column": 21 - }, - "identifierName": "getByDeclinedStatus" - }, - "name": "getByDeclinedStatus" - } - }, - { - "type": "ImportSpecifier", - "start": 315, - "end": 330, - "loc": { - "start": { - "line": 14, - "column": 2 - }, - "end": { - "line": 14, - "column": 17 - } - }, - "imported": { - "type": "Identifier", - "start": 315, - "end": 330, - "loc": { - "start": { - "line": 14, - "column": 2 - }, - "end": { - "line": 14, - "column": 17 - }, - "identifierName": "getSignerEmails" - }, - "name": "getSignerEmails" - }, - "local": { - "type": "Identifier", - "start": 315, - "end": 330, - "loc": { - "start": { - "line": 14, - "column": 2 - }, - "end": { - "line": 14, - "column": 17 - }, - "identifierName": "getSignerEmails" - }, - "name": "getSignerEmails" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 339, - "end": 350, - "loc": { - "start": { - "line": 15, - "column": 7 - }, - "end": { - "line": 15, - "column": 18 - } - }, - "extra": { - "rawValue": "../common", - "raw": "'../common'" - }, - "value": "../common" - } - }, - { - "type": "ImportDeclaration", - "start": 352, - "end": 392, - "loc": { - "start": { - "line": 16, - "column": 0 - }, - "end": { - "line": 16, - "column": 40 - } - }, - "specifiers": [ - { - "type": "ImportSpecifier", - "start": 361, - "end": 370, - "loc": { - "start": { - "line": 16, - "column": 9 - }, - "end": { - "line": 16, - "column": 18 - } - }, - "imported": { - "type": "Identifier", - "start": 361, - "end": 370, - "loc": { - "start": { - "line": 16, - "column": 9 - }, - "end": { - "line": 16, - "column": 18 - }, - "identifierName": "promisify" - }, - "name": "promisify" - }, - "local": { - "type": "Identifier", - "start": 361, - "end": 370, - "loc": { - "start": { - "line": 16, - "column": 9 - }, - "end": { - "line": 16, - "column": 18 - }, - "identifierName": "promisify" - }, - "name": "promisify" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 378, - "end": 391, - "loc": { - "start": { - "line": 16, - "column": 26 - }, - "end": { - "line": 16, - "column": 39 - } - }, - "extra": { - "rawValue": "../../utils", - "raw": "'../../utils'" - }, - "value": "../../utils" - }, - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document methods\n ", - "start": 394, - "end": 421, - "loc": { - "start": { - "line": 18, - "column": 0 - }, - "end": { - "line": 20, - "column": 3 - } - } - } - ] - }, - { - "type": "Identifier", - "start": 422, - "end": 40225, - "loc": { - "start": { - "line": 21, - "column": 0 - }, - "end": { - "line": 1124, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 428, - "end": 436, - "loc": { - "start": { - "line": 21, - "column": 6 - }, - "end": { - "line": 21, - "column": 14 - }, - "identifierName": "Document" - }, - "name": "Document", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 437, - "end": 40225, - "loc": { - "start": { - "line": 21, - "column": 15 - }, - "end": { - "line": 1124, - "column": 1 - } - }, - "body": [ - { - "type": "ClassMethod", - "start": 1158, - "end": 2519, - "loc": { - "start": { - "line": 42, - "column": 2 - }, - "end": { - "line": 89, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1165, - "end": 1171, - "loc": { - "start": { - "line": 42, - "column": 9 - }, - "end": { - "line": 42, - "column": 15 - }, - "identifierName": "create" - }, - "name": "create" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 1173, - "end": 1192, - "loc": { - "start": { - "line": 42, - "column": 17 - }, - "end": { - "line": 42, - "column": 36 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1175, - "end": 1183, - "loc": { - "start": { - "line": 42, - "column": 19 - }, - "end": { - "line": 42, - "column": 27 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1175, - "end": 1183, - "loc": { - "start": { - "line": 42, - "column": 19 - }, - "end": { - "line": 42, - "column": 27 - }, - "identifierName": "filepath" - }, - "name": "filepath" - }, - "value": { - "type": "Identifier", - "start": 1175, - "end": 1183, - "loc": { - "start": { - "line": 42, - "column": 19 - }, - "end": { - "line": 42, - "column": 27 - }, - "identifierName": "filepath" - }, - "name": "filepath" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1185, - "end": 1190, - "loc": { - "start": { - "line": 42, - "column": 29 - }, - "end": { - "line": 42, - "column": 34 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1185, - "end": 1190, - "loc": { - "start": { - "line": 42, - "column": 29 - }, - "end": { - "line": 42, - "column": 34 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 1185, - "end": 1190, - "loc": { - "start": { - "line": 42, - "column": 29 - }, - "end": { - "line": 42, - "column": 34 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 1194, - "end": 1202, - "loc": { - "start": { - "line": 42, - "column": 38 - }, - "end": { - "line": 42, - "column": 46 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 1204, - "end": 2519, - "loc": { - "start": { - "line": 42, - "column": 48 - }, - "end": { - "line": 89, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 1210, - "end": 1254, - "loc": { - "start": { - "line": 43, - "column": 4 - }, - "end": { - "line": 43, - "column": 48 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1216, - "end": 1253, - "loc": { - "start": { - "line": 43, - "column": 10 - }, - "end": { - "line": 43, - "column": 47 - } - }, - "id": { - "type": "Identifier", - "start": 1216, - "end": 1223, - "loc": { - "start": { - "line": 43, - "column": 10 - }, - "end": { - "line": 43, - "column": 17 - }, - "identifierName": "fileExt" - }, - "name": "fileExt" - }, - "init": { - "type": "CallExpression", - "start": 1226, - "end": 1253, - "loc": { - "start": { - "line": 43, - "column": 20 - }, - "end": { - "line": 43, - "column": 47 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1226, - "end": 1250, - "loc": { - "start": { - "line": 43, - "column": 20 - }, - "end": { - "line": 43, - "column": 44 - } - }, - "object": { - "type": "CallExpression", - "start": 1226, - "end": 1243, - "loc": { - "start": { - "line": 43, - "column": 20 - }, - "end": { - "line": 43, - "column": 37 - } - }, - "callee": { - "type": "Identifier", - "start": 1226, - "end": 1233, - "loc": { - "start": { - "line": 43, - "column": 20 - }, - "end": { - "line": 43, - "column": 27 - }, - "identifierName": "extname" - }, - "name": "extname" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1234, - "end": 1242, - "loc": { - "start": { - "line": 43, - "column": 28 - }, - "end": { - "line": 43, - "column": 36 - }, - "identifierName": "filepath" - }, - "name": "filepath" - } - ] - }, - "property": { - "type": "Identifier", - "start": 1244, - "end": 1250, - "loc": { - "start": { - "line": 43, - "column": 38 - }, - "end": { - "line": 43, - "column": 44 - }, - "identifierName": "substr" - }, - "name": "substr" - }, - "computed": false - }, - "arguments": [ - { - "type": "NumericLiteral", - "start": 1251, - "end": 1252, - "loc": { - "start": { - "line": 43, - "column": 45 - }, - "end": { - "line": 43, - "column": 46 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "IfStatement", - "start": 1260, - "end": 1368, - "loc": { - "start": { - "line": 45, - "column": 4 - }, - "end": { - "line": 48, - "column": 5 - } - }, - "test": { - "type": "UnaryExpression", - "start": 1264, - "end": 1298, - "loc": { - "start": { - "line": 45, - "column": 8 - }, - "end": { - "line": 45, - "column": 42 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "CallExpression", - "start": 1265, - "end": 1298, - "loc": { - "start": { - "line": 45, - "column": 9 - }, - "end": { - "line": 45, - "column": 42 - } - }, - "callee": { - "type": "Identifier", - "start": 1265, - "end": 1289, - "loc": { - "start": { - "line": 45, - "column": 9 - }, - "end": { - "line": 45, - "column": 33 - }, - "identifierName": "isDocumentTypeAcceptable" - }, - "name": "isDocumentTypeAcceptable" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1290, - "end": 1297, - "loc": { - "start": { - "line": 45, - "column": 34 - }, - "end": { - "line": 45, - "column": 41 - }, - "identifierName": "fileExt" - }, - "name": "fileExt" - } - ] - }, - "extra": { - "parenthesizedArgument": false - } - }, - "consequent": { - "type": "BlockStatement", - "start": 1300, - "end": 1368, - "loc": { - "start": { - "line": 45, - "column": 44 - }, - "end": { - "line": 48, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1308, - "end": 1348, - "loc": { - "start": { - "line": 46, - "column": 6 - }, - "end": { - "line": 46, - "column": 46 - } - }, - "expression": { - "type": "CallExpression", - "start": 1308, - "end": 1347, - "loc": { - "start": { - "line": 46, - "column": 6 - }, - "end": { - "line": 46, - "column": 45 - } - }, - "callee": { - "type": "Identifier", - "start": 1308, - "end": 1316, - "loc": { - "start": { - "line": 46, - "column": 6 - }, - "end": { - "line": 46, - "column": 14 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 1317, - "end": 1346, - "loc": { - "start": { - "line": 46, - "column": 15 - }, - "end": { - "line": 46, - "column": 44 - } - }, - "extra": { - "rawValue": "File type isn't supported.", - "raw": "'File type isn\\'t supported.'" - }, - "value": "File type isn't supported." - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 1355, - "end": 1362, - "loc": { - "start": { - "line": 47, - "column": 6 - }, - "end": { - "line": 47, - "column": 13 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "VariableDeclaration", - "start": 1374, - "end": 1390, - "loc": { - "start": { - "line": 50, - "column": 4 - }, - "end": { - "line": 50, - "column": 20 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1378, - "end": 1389, - "loc": { - "start": { - "line": 50, - "column": 8 - }, - "end": { - "line": 50, - "column": 19 - } - }, - "id": { - "type": "Identifier", - "start": 1378, - "end": 1389, - "loc": { - "start": { - "line": 50, - "column": 8 - }, - "end": { - "line": 50, - "column": 19 - }, - "identifierName": "fileContent" - }, - "name": "fileContent" - }, - "init": null - } - ], - "kind": "let" - }, - { - "type": "TryStatement", - "start": 1396, - "end": 1506, - "loc": { - "start": { - "line": 52, - "column": 4 - }, - "end": { - "line": 57, - "column": 5 - } - }, - "block": { - "type": "BlockStatement", - "start": 1400, - "end": 1451, - "loc": { - "start": { - "line": 52, - "column": 8 - }, - "end": { - "line": 54, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1408, - "end": 1445, - "loc": { - "start": { - "line": 53, - "column": 6 - }, - "end": { - "line": 53, - "column": 43 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 1408, - "end": 1444, - "loc": { - "start": { - "line": 53, - "column": 6 - }, - "end": { - "line": 53, - "column": 42 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 1408, - "end": 1419, - "loc": { - "start": { - "line": 53, - "column": 6 - }, - "end": { - "line": 53, - "column": 17 - }, - "identifierName": "fileContent" - }, - "name": "fileContent" - }, - "right": { - "type": "CallExpression", - "start": 1422, - "end": 1444, - "loc": { - "start": { - "line": 53, - "column": 20 - }, - "end": { - "line": 53, - "column": 42 - } - }, - "callee": { - "type": "Identifier", - "start": 1422, - "end": 1434, - "loc": { - "start": { - "line": 53, - "column": 20 - }, - "end": { - "line": 53, - "column": 32 - }, - "identifierName": "readFileSync" - }, - "name": "readFileSync" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1435, - "end": 1443, - "loc": { - "start": { - "line": 53, - "column": 33 - }, - "end": { - "line": 53, - "column": 41 - }, - "identifierName": "filepath" - }, - "name": "filepath" - } - ] - } - } - } - ], - "directives": [] - }, - "handler": { - "type": "CatchClause", - "start": 1452, - "end": 1506, - "loc": { - "start": { - "line": 54, - "column": 6 - }, - "end": { - "line": 57, - "column": 5 - } - }, - "param": { - "type": "Identifier", - "start": 1459, - "end": 1462, - "loc": { - "start": { - "line": 54, - "column": 13 - }, - "end": { - "line": 54, - "column": 16 - }, - "identifierName": "err" - }, - "name": "err" - }, - "body": { - "type": "BlockStatement", - "start": 1464, - "end": 1506, - "loc": { - "start": { - "line": 54, - "column": 18 - }, - "end": { - "line": 57, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1472, - "end": 1486, - "loc": { - "start": { - "line": 55, - "column": 6 - }, - "end": { - "line": 55, - "column": 20 - } - }, - "expression": { - "type": "CallExpression", - "start": 1472, - "end": 1485, - "loc": { - "start": { - "line": 55, - "column": 6 - }, - "end": { - "line": 55, - "column": 19 - } - }, - "callee": { - "type": "Identifier", - "start": 1472, - "end": 1480, - "loc": { - "start": { - "line": 55, - "column": 6 - }, - "end": { - "line": 55, - "column": 14 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1481, - "end": 1484, - "loc": { - "start": { - "line": 55, - "column": 15 - }, - "end": { - "line": 55, - "column": 18 - }, - "identifierName": "err" - }, - "name": "err" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 1493, - "end": 1500, - "loc": { - "start": { - "line": 56, - "column": 6 - }, - "end": { - "line": 56, - "column": 13 - } - }, - "argument": null - } - ], - "directives": [] - } - }, - "guardedHandlers": [], - "finalizer": null - }, - { - "type": "VariableDeclaration", - "start": 1512, - "end": 1565, - "loc": { - "start": { - "line": 59, - "column": 4 - }, - "end": { - "line": 59, - "column": 57 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1518, - "end": 1564, - "loc": { - "start": { - "line": 59, - "column": 10 - }, - "end": { - "line": 59, - "column": 56 - } - }, - "id": { - "type": "Identifier", - "start": 1518, - "end": 1526, - "loc": { - "start": { - "line": 59, - "column": 10 - }, - "end": { - "line": 59, - "column": 18 - }, - "identifierName": "mimeType" - }, - "name": "mimeType" - }, - "init": { - "type": "CallExpression", - "start": 1529, - "end": 1564, - "loc": { - "start": { - "line": 59, - "column": 21 - }, - "end": { - "line": 59, - "column": 56 - } - }, - "callee": { - "type": "Identifier", - "start": 1529, - "end": 1555, - "loc": { - "start": { - "line": 59, - "column": 21 - }, - "end": { - "line": 59, - "column": 47 - }, - "identifierName": "getMimeTypeByFileExtension" - }, - "name": "getMimeTypeByFileExtension" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1556, - "end": 1563, - "loc": { - "start": { - "line": 59, - "column": 48 - }, - "end": { - "line": 59, - "column": 55 - }, - "identifierName": "fileExt" - }, - "name": "fileExt" - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 1570, - "end": 1617, - "loc": { - "start": { - "line": 60, - "column": 4 - }, - "end": { - "line": 60, - "column": 51 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1576, - "end": 1616, - "loc": { - "start": { - "line": 60, - "column": 10 - }, - "end": { - "line": 60, - "column": 50 - } - }, - "id": { - "type": "Identifier", - "start": 1576, - "end": 1592, - "loc": { - "start": { - "line": 60, - "column": 10 - }, - "end": { - "line": 60, - "column": 26 - }, - "identifierName": "formDataBoundary" - }, - "name": "formDataBoundary" - }, - "init": { - "type": "CallExpression", - "start": 1595, - "end": 1616, - "loc": { - "start": { - "line": 60, - "column": 29 - }, - "end": { - "line": 60, - "column": 50 - } - }, - "callee": { - "type": "Identifier", - "start": 1595, - "end": 1614, - "loc": { - "start": { - "line": 60, - "column": 29 - }, - "end": { - "line": 60, - "column": 48 - }, - "identifierName": "getFormDataBoundary" - }, - "name": "getFormDataBoundary" - }, - "arguments": [] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 1622, - "end": 1826, - "loc": { - "start": { - "line": 61, - "column": 4 - }, - "end": { - "line": 63, - "column": 51 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1628, - "end": 1825, - "loc": { - "start": { - "line": 61, - "column": 10 - }, - "end": { - "line": 63, - "column": 50 - } - }, - "id": { - "type": "Identifier", - "start": 1628, - "end": 1645, - "loc": { - "start": { - "line": 61, - "column": 10 - }, - "end": { - "line": 61, - "column": 27 - }, - "identifierName": "formDataBeginning" - }, - "name": "formDataBeginning" - }, - "init": { - "type": "CallExpression", - "start": 1648, - "end": 1825, - "loc": { - "start": { - "line": 61, - "column": 30 - }, - "end": { - "line": 63, - "column": 50 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1648, - "end": 1788, - "loc": { - "start": { - "line": 61, - "column": 30 - }, - "end": { - "line": 63, - "column": 13 - } - }, - "object": { - "type": "CallExpression", - "start": 1648, - "end": 1774, - "loc": { - "start": { - "line": 61, - "column": 30 - }, - "end": { - "line": 62, - "column": 98 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1648, - "end": 1689, - "loc": { - "start": { - "line": 61, - "column": 30 - }, - "end": { - "line": 62, - "column": 13 - } - }, - "object": { - "type": "TemplateLiteral", - "start": 1648, - "end": 1675, - "loc": { - "start": { - "line": 61, - "column": 30 - }, - "end": { - "line": 61, - "column": 57 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 1653, - "end": 1669, - "loc": { - "start": { - "line": 61, - "column": 35 - }, - "end": { - "line": 61, - "column": 51 - }, - "identifierName": "formDataBoundary" - }, - "name": "formDataBoundary" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 1649, - "end": 1651, - "loc": { - "start": { - "line": 61, - "column": 31 - }, - "end": { - "line": 61, - "column": 33 - } - }, - "value": { - "raw": "--", - "cooked": "--" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 1670, - "end": 1674, - "loc": { - "start": { - "line": 61, - "column": 52 - }, - "end": { - "line": 61, - "column": 56 - } - }, - "value": { - "raw": "\\r\\n", - "cooked": "\r\n" - }, - "tail": true - } - ] - }, - "property": { - "type": "Identifier", - "start": 1683, - "end": 1689, - "loc": { - "start": { - "line": 62, - "column": 7 - }, - "end": { - "line": 62, - "column": 13 - }, - "identifierName": "concat" - }, - "name": "concat" - }, - "computed": false - }, - "arguments": [ - { - "type": "TemplateLiteral", - "start": 1690, - "end": 1773, - "loc": { - "start": { - "line": 62, - "column": 14 - }, - "end": { - "line": 62, - "column": 97 - } - }, - "expressions": [ - { - "type": "CallExpression", - "start": 1748, - "end": 1766, - "loc": { - "start": { - "line": 62, - "column": 72 - }, - "end": { - "line": 62, - "column": 90 - } - }, - "callee": { - "type": "Identifier", - "start": 1748, - "end": 1756, - "loc": { - "start": { - "line": 62, - "column": 72 - }, - "end": { - "line": 62, - "column": 80 - }, - "identifierName": "basename" - }, - "name": "basename" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1757, - "end": 1765, - "loc": { - "start": { - "line": 62, - "column": 81 - }, - "end": { - "line": 62, - "column": 89 - }, - "identifierName": "filepath" - }, - "name": "filepath" - } - ] - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 1691, - "end": 1746, - "loc": { - "start": { - "line": 62, - "column": 15 - }, - "end": { - "line": 62, - "column": 70 - } - }, - "value": { - "raw": "Content-Disposition: form-data; name=\"file\"; filename=\"", - "cooked": "Content-Disposition: form-data; name=\"file\"; filename=\"" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 1767, - "end": 1772, - "loc": { - "start": { - "line": 62, - "column": 91 - }, - "end": { - "line": 62, - "column": 96 - } - }, - "value": { - "raw": "\"\\r\\n", - "cooked": "\"\r\n" - }, - "tail": true - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 1782, - "end": 1788, - "loc": { - "start": { - "line": 63, - "column": 7 - }, - "end": { - "line": 63, - "column": 13 - }, - "identifierName": "concat" - }, - "name": "concat" - }, - "computed": false - }, - "arguments": [ - { - "type": "TemplateLiteral", - "start": 1789, - "end": 1824, - "loc": { - "start": { - "line": 63, - "column": 14 - }, - "end": { - "line": 63, - "column": 49 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 1806, - "end": 1814, - "loc": { - "start": { - "line": 63, - "column": 31 - }, - "end": { - "line": 63, - "column": 39 - }, - "identifierName": "mimeType" - }, - "name": "mimeType" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 1790, - "end": 1804, - "loc": { - "start": { - "line": 63, - "column": 15 - }, - "end": { - "line": 63, - "column": 29 - } - }, - "value": { - "raw": "Content-Type: ", - "cooked": "Content-Type: " - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 1815, - "end": 1823, - "loc": { - "start": { - "line": 63, - "column": 40 - }, - "end": { - "line": 63, - "column": 48 - } - }, - "value": { - "raw": "\\r\\n\\r\\n", - "cooked": "\r\n\r\n" - }, - "tail": true - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 1831, - "end": 1886, - "loc": { - "start": { - "line": 64, - "column": 4 - }, - "end": { - "line": 64, - "column": 59 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1837, - "end": 1885, - "loc": { - "start": { - "line": 64, - "column": 10 - }, - "end": { - "line": 64, - "column": 58 - } - }, - "id": { - "type": "Identifier", - "start": 1837, - "end": 1851, - "loc": { - "start": { - "line": 64, - "column": 10 - }, - "end": { - "line": 64, - "column": 24 - }, - "identifierName": "formDataEnding" - }, - "name": "formDataEnding" - }, - "init": { - "type": "TemplateLiteral", - "start": 1854, - "end": 1885, - "loc": { - "start": { - "line": 64, - "column": 27 - }, - "end": { - "line": 64, - "column": 58 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 1863, - "end": 1879, - "loc": { - "start": { - "line": 64, - "column": 36 - }, - "end": { - "line": 64, - "column": 52 - }, - "identifierName": "formDataBoundary" - }, - "name": "formDataBoundary" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 1855, - "end": 1861, - "loc": { - "start": { - "line": 64, - "column": 28 - }, - "end": { - "line": 64, - "column": 34 - } - }, - "value": { - "raw": "\\r\\n--", - "cooked": "\r\n--" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 1880, - "end": 1884, - "loc": { - "start": { - "line": 64, - "column": 53 - }, - "end": { - "line": 64, - "column": 57 - } - }, - "value": { - "raw": "\\r\\n", - "cooked": "\r\n" - }, - "tail": true - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 1892, - "end": 2039, - "loc": { - "start": { - "line": 66, - "column": 4 - }, - "end": { - "line": 70, - "column": 7 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1898, - "end": 2038, - "loc": { - "start": { - "line": 66, - "column": 10 - }, - "end": { - "line": 70, - "column": 6 - } - }, - "id": { - "type": "Identifier", - "start": 1898, - "end": 1905, - "loc": { - "start": { - "line": 66, - "column": 10 - }, - "end": { - "line": 66, - "column": 17 - }, - "identifierName": "payload" - }, - "name": "payload" - }, - "init": { - "type": "CallExpression", - "start": 1908, - "end": 2038, - "loc": { - "start": { - "line": 66, - "column": 20 - }, - "end": { - "line": 70, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1908, - "end": 1921, - "loc": { - "start": { - "line": 66, - "column": 20 - }, - "end": { - "line": 66, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 1908, - "end": 1914, - "loc": { - "start": { - "line": 66, - "column": 20 - }, - "end": { - "line": 66, - "column": 26 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 1915, - "end": 1921, - "loc": { - "start": { - "line": 66, - "column": 27 - }, - "end": { - "line": 66, - "column": 33 - }, - "identifierName": "concat" - }, - "name": "concat" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrayExpression", - "start": 1922, - "end": 2037, - "loc": { - "start": { - "line": 66, - "column": 34 - }, - "end": { - "line": 70, - "column": 5 - } - }, - "elements": [ - { - "type": "CallExpression", - "start": 1930, - "end": 1968, - "loc": { - "start": { - "line": 67, - "column": 6 - }, - "end": { - "line": 67, - "column": 44 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1930, - "end": 1941, - "loc": { - "start": { - "line": 67, - "column": 6 - }, - "end": { - "line": 67, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 1930, - "end": 1936, - "loc": { - "start": { - "line": 67, - "column": 6 - }, - "end": { - "line": 67, - "column": 12 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 1937, - "end": 1941, - "loc": { - "start": { - "line": 67, - "column": 13 - }, - "end": { - "line": 67, - "column": 17 - }, - "identifierName": "from" - }, - "name": "from" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1942, - "end": 1959, - "loc": { - "start": { - "line": 67, - "column": 18 - }, - "end": { - "line": 67, - "column": 35 - }, - "identifierName": "formDataBeginning" - }, - "name": "formDataBeginning" - }, - { - "type": "StringLiteral", - "start": 1961, - "end": 1967, - "loc": { - "start": { - "line": 67, - "column": 37 - }, - "end": { - "line": 67, - "column": 43 - } - }, - "extra": { - "rawValue": "utf8", - "raw": "'utf8'" - }, - "value": "utf8" - } - ] - }, - { - "type": "Identifier", - "start": 1976, - "end": 1987, - "loc": { - "start": { - "line": 68, - "column": 6 - }, - "end": { - "line": 68, - "column": 17 - }, - "identifierName": "fileContent" - }, - "name": "fileContent" - }, - { - "type": "CallExpression", - "start": 1995, - "end": 2030, - "loc": { - "start": { - "line": 69, - "column": 6 - }, - "end": { - "line": 69, - "column": 41 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1995, - "end": 2006, - "loc": { - "start": { - "line": 69, - "column": 6 - }, - "end": { - "line": 69, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 1995, - "end": 2001, - "loc": { - "start": { - "line": 69, - "column": 6 - }, - "end": { - "line": 69, - "column": 12 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 2002, - "end": 2006, - "loc": { - "start": { - "line": 69, - "column": 13 - }, - "end": { - "line": 69, - "column": 17 - }, - "identifierName": "from" - }, - "name": "from" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2007, - "end": 2021, - "loc": { - "start": { - "line": 69, - "column": 18 - }, - "end": { - "line": 69, - "column": 32 - }, - "identifierName": "formDataEnding" - }, - "name": "formDataEnding" - }, - { - "type": "StringLiteral", - "start": 2023, - "end": 2029, - "loc": { - "start": { - "line": 69, - "column": 34 - }, - "end": { - "line": 69, - "column": 40 - } - }, - "extra": { - "rawValue": "utf8", - "raw": "'utf8'" - }, - "value": "utf8" - } - ] - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 2045, - "end": 2475, - "loc": { - "start": { - "line": 72, - "column": 4 - }, - "end": { - "line": 85, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2051, - "end": 2474, - "loc": { - "start": { - "line": 72, - "column": 10 - }, - "end": { - "line": 85, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 2051, - "end": 2054, - "loc": { - "start": { - "line": 72, - "column": 10 - }, - "end": { - "line": 72, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 2057, - "end": 2474, - "loc": { - "start": { - "line": 72, - "column": 16 - }, - "end": { - "line": 85, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2057, - "end": 2441, - "loc": { - "start": { - "line": 72, - "column": 16 - }, - "end": { - "line": 85, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 2057, - "end": 2431, - "loc": { - "start": { - "line": 72, - "column": 16 - }, - "end": { - "line": 84, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2057, - "end": 2077, - "loc": { - "start": { - "line": 72, - "column": 16 - }, - "end": { - "line": 73, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 2057, - "end": 2062, - "loc": { - "start": { - "line": 72, - "column": 16 - }, - "end": { - "line": 72, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 2070, - "end": 2077, - "loc": { - "start": { - "line": 73, - "column": 7 - }, - "end": { - "line": 73, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 2078, - "end": 2403, - "loc": { - "start": { - "line": 73, - "column": 15 - }, - "end": { - "line": 84, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 2078, - "end": 2097, - "loc": { - "start": { - "line": 73, - "column": 15 - }, - "end": { - "line": 73, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 2098, - "end": 2402, - "loc": { - "start": { - "line": 73, - "column": 35 - }, - "end": { - "line": 84, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2108, - "end": 2122, - "loc": { - "start": { - "line": 74, - "column": 8 - }, - "end": { - "line": 74, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2108, - "end": 2114, - "loc": { - "start": { - "line": 74, - "column": 8 - }, - "end": { - "line": 74, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 2116, - "end": 2122, - "loc": { - "start": { - "line": 74, - "column": 16 - }, - "end": { - "line": 74, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 2132, - "end": 2149, - "loc": { - "start": { - "line": 75, - "column": 8 - }, - "end": { - "line": 75, - "column": 25 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2132, - "end": 2136, - "loc": { - "start": { - "line": 75, - "column": 8 - }, - "end": { - "line": 75, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 2138, - "end": 2149, - "loc": { - "start": { - "line": 75, - "column": 14 - }, - "end": { - "line": 75, - "column": 25 - } - }, - "extra": { - "rawValue": "/document", - "raw": "'/document'" - }, - "value": "/document" - } - }, - { - "type": "ObjectProperty", - "start": 2159, - "end": 2228, - "loc": { - "start": { - "line": 76, - "column": 8 - }, - "end": { - "line": 79, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2159, - "end": 2172, - "loc": { - "start": { - "line": 76, - "column": 8 - }, - "end": { - "line": 76, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 2174, - "end": 2228, - "loc": { - "start": { - "line": 76, - "column": 23 - }, - "end": { - "line": 79, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2186, - "end": 2200, - "loc": { - "start": { - "line": 77, - "column": 10 - }, - "end": { - "line": 77, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2186, - "end": 2190, - "loc": { - "start": { - "line": 77, - "column": 10 - }, - "end": { - "line": 77, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 2192, - "end": 2200, - "loc": { - "start": { - "line": 77, - "column": 16 - }, - "end": { - "line": 77, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 2212, - "end": 2217, - "loc": { - "start": { - "line": 78, - "column": 10 - }, - "end": { - "line": 78, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2212, - "end": 2217, - "loc": { - "start": { - "line": 78, - "column": 10 - }, - "end": { - "line": 78, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 2212, - "end": 2217, - "loc": { - "start": { - "line": 78, - "column": 10 - }, - "end": { - "line": 78, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 2238, - "end": 2393, - "loc": { - "start": { - "line": 80, - "column": 8 - }, - "end": { - "line": 83, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2238, - "end": 2245, - "loc": { - "start": { - "line": 80, - "column": 8 - }, - "end": { - "line": 80, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 2247, - "end": 2393, - "loc": { - "start": { - "line": 80, - "column": 17 - }, - "end": { - "line": 83, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2259, - "end": 2326, - "loc": { - "start": { - "line": 81, - "column": 10 - }, - "end": { - "line": 81, - "column": 77 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 2259, - "end": 2273, - "loc": { - "start": { - "line": 81, - "column": 10 - }, - "end": { - "line": 81, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "TemplateLiteral", - "start": 2275, - "end": 2326, - "loc": { - "start": { - "line": 81, - "column": 26 - }, - "end": { - "line": 81, - "column": 77 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 2308, - "end": 2324, - "loc": { - "start": { - "line": 81, - "column": 59 - }, - "end": { - "line": 81, - "column": 75 - }, - "identifierName": "formDataBoundary" - }, - "name": "formDataBoundary" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 2276, - "end": 2306, - "loc": { - "start": { - "line": 81, - "column": 27 - }, - "end": { - "line": 81, - "column": 57 - } - }, - "value": { - "raw": "multipart/form-data; boundary=", - "cooked": "multipart/form-data; boundary=" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 2325, - "end": 2325, - "loc": { - "start": { - "line": 81, - "column": 76 - }, - "end": { - "line": 81, - "column": 76 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 2338, - "end": 2382, - "loc": { - "start": { - "line": 82, - "column": 10 - }, - "end": { - "line": 82, - "column": 54 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 2338, - "end": 2354, - "loc": { - "start": { - "line": 82, - "column": 10 - }, - "end": { - "line": 82, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 2356, - "end": 2382, - "loc": { - "start": { - "line": 82, - "column": 28 - }, - "end": { - "line": 82, - "column": 54 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2356, - "end": 2373, - "loc": { - "start": { - "line": 82, - "column": 28 - }, - "end": { - "line": 82, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 2356, - "end": 2362, - "loc": { - "start": { - "line": 82, - "column": 28 - }, - "end": { - "line": 82, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 2363, - "end": 2373, - "loc": { - "start": { - "line": 82, - "column": 35 - }, - "end": { - "line": 82, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2374, - "end": 2381, - "loc": { - "start": { - "line": 82, - "column": 46 - }, - "end": { - "line": 82, - "column": 53 - }, - "identifierName": "payload" - }, - "name": "payload" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 2405, - "end": 2430, - "loc": { - "start": { - "line": 84, - "column": 10 - }, - "end": { - "line": 84, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 2405, - "end": 2420, - "loc": { - "start": { - "line": 84, - "column": 10 - }, - "end": { - "line": 84, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2421, - "end": 2429, - "loc": { - "start": { - "line": 84, - "column": 26 - }, - "end": { - "line": 84, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 2439, - "end": 2441, - "loc": { - "start": { - "line": 85, - "column": 7 - }, - "end": { - "line": 85, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2442, - "end": 2449, - "loc": { - "start": { - "line": 85, - "column": 10 - }, - "end": { - "line": 85, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 2451, - "end": 2473, - "loc": { - "start": { - "line": 85, - "column": 19 - }, - "end": { - "line": 85, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 2451, - "end": 2463, - "loc": { - "start": { - "line": 85, - "column": 19 - }, - "end": { - "line": 85, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2464, - "end": 2472, - "loc": { - "start": { - "line": 85, - "column": 32 - }, - "end": { - "line": 85, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 2481, - "end": 2500, - "loc": { - "start": { - "line": 87, - "column": 4 - }, - "end": { - "line": 87, - "column": 23 - } - }, - "expression": { - "type": "CallExpression", - "start": 2481, - "end": 2499, - "loc": { - "start": { - "line": 87, - "column": 4 - }, - "end": { - "line": 87, - "column": 22 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2481, - "end": 2490, - "loc": { - "start": { - "line": 87, - "column": 4 - }, - "end": { - "line": 87, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 2481, - "end": 2484, - "loc": { - "start": { - "line": 87, - "column": 4 - }, - "end": { - "line": 87, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 2485, - "end": 2490, - "loc": { - "start": { - "line": 87, - "column": 8 - }, - "end": { - "line": 87, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2491, - "end": 2498, - "loc": { - "start": { - "line": 87, - "column": 14 - }, - "end": { - "line": 87, - "column": 21 - }, - "identifierName": "payload" - }, - "name": "payload" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 2505, - "end": 2515, - "loc": { - "start": { - "line": 88, - "column": 4 - }, - "end": { - "line": 88, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 2505, - "end": 2514, - "loc": { - "start": { - "line": 88, - "column": 4 - }, - "end": { - "line": 88, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2505, - "end": 2512, - "loc": { - "start": { - "line": 88, - "column": 4 - }, - "end": { - "line": 88, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 2505, - "end": 2508, - "loc": { - "start": { - "line": 88, - "column": 4 - }, - "end": { - "line": 88, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 2509, - "end": 2512, - "loc": { - "start": { - "line": 88, - "column": 8 - }, - "end": { - "line": 88, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Create document payload\n * @typedef {Object} DocumentCreateParams\n * @property {string} filepath - path to file to be uploaded\n * @property {string} token - your auth token\n ", - "start": 442, - "end": 635, - "loc": { - "start": { - "line": 23, - "column": 2 - }, - "end": { - "line": 28, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document response data\n * @typedef {Object} DocumentCreateResponse\n * @property {string} id - an id of created document\n ", - "start": 639, - "end": 784, - "loc": { - "start": { - "line": 30, - "column": 2 - }, - "end": { - "line": 34, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Uploads a file and creates a document.\n * This endpoint accepts .pdf, .doc, .docx, .odt, .rtf, .png, .jpg, .jpeg, .gif, .bmp, .xml, .xls, .xlsx, .ppt, .pptx file types\n * @param {DocumentCreateParams} data - create document payload\n * @param {function(err: ApiErrorResponse, res: DocumentCreateResponse)} [callback] - error first node.js callback\n ", - "start": 788, - "end": 1155, - "loc": { - "start": { - "line": 36, - "column": 2 - }, - "end": { - "line": 41, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Upload document with field extract payload\n * @typedef {Object} DocumentFieldExtractParams\n * @property {string} filepath - path to file to be uploaded\n * @property {string} token - your auth token\n ", - "start": 2523, - "end": 2741, - "loc": { - "start": { - "line": 91, - "column": 2 - }, - "end": { - "line": 96, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Upload document with field extract response data\n * @typedef {Object} DocumentFieldExtractResponse\n * @property {string} id - an id of created document\n ", - "start": 2745, - "end": 2915, - "loc": { - "start": { - "line": 98, - "column": 2 - }, - "end": { - "line": 102, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Uploads a file that contains SignNow Document Field Tags.\n * This endpoint only accepts .pdf (you may convert the document from .doc or .docx to .pdf)\n * @param {DocumentFieldExtractParams} data - upload document with field extract payload\n * @param {function(err: ApiErrorResponse, res: DocumentFieldExtractResponse)} [callback] - error first node.js callback\n ", - "start": 2919, - "end": 3300, - "loc": { - "start": { - "line": 104, - "column": 2 - }, - "end": { - "line": 109, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 3303, - "end": 4706, - "loc": { - "start": { - "line": 110, - "column": 2 - }, - "end": { - "line": 157, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3310, - "end": 3322, - "loc": { - "start": { - "line": 110, - "column": 9 - }, - "end": { - "line": 110, - "column": 21 - }, - "identifierName": "fieldextract" - }, - "name": "fieldextract" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 3324, - "end": 3343, - "loc": { - "start": { - "line": 110, - "column": 23 - }, - "end": { - "line": 110, - "column": 42 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3326, - "end": 3334, - "loc": { - "start": { - "line": 110, - "column": 25 - }, - "end": { - "line": 110, - "column": 33 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3326, - "end": 3334, - "loc": { - "start": { - "line": 110, - "column": 25 - }, - "end": { - "line": 110, - "column": 33 - }, - "identifierName": "filepath" - }, - "name": "filepath" - }, - "value": { - "type": "Identifier", - "start": 3326, - "end": 3334, - "loc": { - "start": { - "line": 110, - "column": 25 - }, - "end": { - "line": 110, - "column": 33 - }, - "identifierName": "filepath" - }, - "name": "filepath" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3336, - "end": 3341, - "loc": { - "start": { - "line": 110, - "column": 35 - }, - "end": { - "line": 110, - "column": 40 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3336, - "end": 3341, - "loc": { - "start": { - "line": 110, - "column": 35 - }, - "end": { - "line": 110, - "column": 40 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 3336, - "end": 3341, - "loc": { - "start": { - "line": 110, - "column": 35 - }, - "end": { - "line": 110, - "column": 40 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 3345, - "end": 3353, - "loc": { - "start": { - "line": 110, - "column": 44 - }, - "end": { - "line": 110, - "column": 52 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 3355, - "end": 4706, - "loc": { - "start": { - "line": 110, - "column": 54 - }, - "end": { - "line": 157, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 3361, - "end": 3405, - "loc": { - "start": { - "line": 111, - "column": 4 - }, - "end": { - "line": 111, - "column": 48 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3367, - "end": 3404, - "loc": { - "start": { - "line": 111, - "column": 10 - }, - "end": { - "line": 111, - "column": 47 - } - }, - "id": { - "type": "Identifier", - "start": 3367, - "end": 3374, - "loc": { - "start": { - "line": 111, - "column": 10 - }, - "end": { - "line": 111, - "column": 17 - }, - "identifierName": "fileExt" - }, - "name": "fileExt" - }, - "init": { - "type": "CallExpression", - "start": 3377, - "end": 3404, - "loc": { - "start": { - "line": 111, - "column": 20 - }, - "end": { - "line": 111, - "column": 47 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3377, - "end": 3401, - "loc": { - "start": { - "line": 111, - "column": 20 - }, - "end": { - "line": 111, - "column": 44 - } - }, - "object": { - "type": "CallExpression", - "start": 3377, - "end": 3394, - "loc": { - "start": { - "line": 111, - "column": 20 - }, - "end": { - "line": 111, - "column": 37 - } - }, - "callee": { - "type": "Identifier", - "start": 3377, - "end": 3384, - "loc": { - "start": { - "line": 111, - "column": 20 - }, - "end": { - "line": 111, - "column": 27 - }, - "identifierName": "extname" - }, - "name": "extname" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3385, - "end": 3393, - "loc": { - "start": { - "line": 111, - "column": 28 - }, - "end": { - "line": 111, - "column": 36 - }, - "identifierName": "filepath" - }, - "name": "filepath" - } - ] - }, - "property": { - "type": "Identifier", - "start": 3395, - "end": 3401, - "loc": { - "start": { - "line": 111, - "column": 38 - }, - "end": { - "line": 111, - "column": 44 - }, - "identifierName": "substr" - }, - "name": "substr" - }, - "computed": false - }, - "arguments": [ - { - "type": "NumericLiteral", - "start": 3402, - "end": 3403, - "loc": { - "start": { - "line": 111, - "column": 45 - }, - "end": { - "line": 111, - "column": 46 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "IfStatement", - "start": 3411, - "end": 3519, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 116, - "column": 5 - } - }, - "test": { - "type": "UnaryExpression", - "start": 3415, - "end": 3449, - "loc": { - "start": { - "line": 113, - "column": 8 - }, - "end": { - "line": 113, - "column": 42 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "CallExpression", - "start": 3416, - "end": 3449, - "loc": { - "start": { - "line": 113, - "column": 9 - }, - "end": { - "line": 113, - "column": 42 - } - }, - "callee": { - "type": "Identifier", - "start": 3416, - "end": 3440, - "loc": { - "start": { - "line": 113, - "column": 9 - }, - "end": { - "line": 113, - "column": 33 - }, - "identifierName": "isDocumentTypeAcceptable" - }, - "name": "isDocumentTypeAcceptable" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3441, - "end": 3448, - "loc": { - "start": { - "line": 113, - "column": 34 - }, - "end": { - "line": 113, - "column": 41 - }, - "identifierName": "fileExt" - }, - "name": "fileExt" - } - ] - }, - "extra": { - "parenthesizedArgument": false - } - }, - "consequent": { - "type": "BlockStatement", - "start": 3451, - "end": 3519, - "loc": { - "start": { - "line": 113, - "column": 44 - }, - "end": { - "line": 116, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 3459, - "end": 3499, - "loc": { - "start": { - "line": 114, - "column": 6 - }, - "end": { - "line": 114, - "column": 46 - } - }, - "expression": { - "type": "CallExpression", - "start": 3459, - "end": 3498, - "loc": { - "start": { - "line": 114, - "column": 6 - }, - "end": { - "line": 114, - "column": 45 - } - }, - "callee": { - "type": "Identifier", - "start": 3459, - "end": 3467, - "loc": { - "start": { - "line": 114, - "column": 6 - }, - "end": { - "line": 114, - "column": 14 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 3468, - "end": 3497, - "loc": { - "start": { - "line": 114, - "column": 15 - }, - "end": { - "line": 114, - "column": 44 - } - }, - "extra": { - "rawValue": "File type isn't supported.", - "raw": "'File type isn\\'t supported.'" - }, - "value": "File type isn't supported." - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 3506, - "end": 3513, - "loc": { - "start": { - "line": 115, - "column": 6 - }, - "end": { - "line": 115, - "column": 13 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "VariableDeclaration", - "start": 3525, - "end": 3541, - "loc": { - "start": { - "line": 118, - "column": 4 - }, - "end": { - "line": 118, - "column": 20 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3529, - "end": 3540, - "loc": { - "start": { - "line": 118, - "column": 8 - }, - "end": { - "line": 118, - "column": 19 - } - }, - "id": { - "type": "Identifier", - "start": 3529, - "end": 3540, - "loc": { - "start": { - "line": 118, - "column": 8 - }, - "end": { - "line": 118, - "column": 19 - }, - "identifierName": "fileContent" - }, - "name": "fileContent" - }, - "init": null - } - ], - "kind": "let" - }, - { - "type": "TryStatement", - "start": 3547, - "end": 3657, - "loc": { - "start": { - "line": 120, - "column": 4 - }, - "end": { - "line": 125, - "column": 5 - } - }, - "block": { - "type": "BlockStatement", - "start": 3551, - "end": 3602, - "loc": { - "start": { - "line": 120, - "column": 8 - }, - "end": { - "line": 122, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 3559, - "end": 3596, - "loc": { - "start": { - "line": 121, - "column": 6 - }, - "end": { - "line": 121, - "column": 43 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 3559, - "end": 3595, - "loc": { - "start": { - "line": 121, - "column": 6 - }, - "end": { - "line": 121, - "column": 42 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 3559, - "end": 3570, - "loc": { - "start": { - "line": 121, - "column": 6 - }, - "end": { - "line": 121, - "column": 17 - }, - "identifierName": "fileContent" - }, - "name": "fileContent" - }, - "right": { - "type": "CallExpression", - "start": 3573, - "end": 3595, - "loc": { - "start": { - "line": 121, - "column": 20 - }, - "end": { - "line": 121, - "column": 42 - } - }, - "callee": { - "type": "Identifier", - "start": 3573, - "end": 3585, - "loc": { - "start": { - "line": 121, - "column": 20 - }, - "end": { - "line": 121, - "column": 32 - }, - "identifierName": "readFileSync" - }, - "name": "readFileSync" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3586, - "end": 3594, - "loc": { - "start": { - "line": 121, - "column": 33 - }, - "end": { - "line": 121, - "column": 41 - }, - "identifierName": "filepath" - }, - "name": "filepath" - } - ] - } - } - } - ], - "directives": [] - }, - "handler": { - "type": "CatchClause", - "start": 3603, - "end": 3657, - "loc": { - "start": { - "line": 122, - "column": 6 - }, - "end": { - "line": 125, - "column": 5 - } - }, - "param": { - "type": "Identifier", - "start": 3610, - "end": 3613, - "loc": { - "start": { - "line": 122, - "column": 13 - }, - "end": { - "line": 122, - "column": 16 - }, - "identifierName": "err" - }, - "name": "err" - }, - "body": { - "type": "BlockStatement", - "start": 3615, - "end": 3657, - "loc": { - "start": { - "line": 122, - "column": 18 - }, - "end": { - "line": 125, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 3623, - "end": 3637, - "loc": { - "start": { - "line": 123, - "column": 6 - }, - "end": { - "line": 123, - "column": 20 - } - }, - "expression": { - "type": "CallExpression", - "start": 3623, - "end": 3636, - "loc": { - "start": { - "line": 123, - "column": 6 - }, - "end": { - "line": 123, - "column": 19 - } - }, - "callee": { - "type": "Identifier", - "start": 3623, - "end": 3631, - "loc": { - "start": { - "line": 123, - "column": 6 - }, - "end": { - "line": 123, - "column": 14 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3632, - "end": 3635, - "loc": { - "start": { - "line": 123, - "column": 15 - }, - "end": { - "line": 123, - "column": 18 - }, - "identifierName": "err" - }, - "name": "err" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 3644, - "end": 3651, - "loc": { - "start": { - "line": 124, - "column": 6 - }, - "end": { - "line": 124, - "column": 13 - } - }, - "argument": null - } - ], - "directives": [] - } - }, - "guardedHandlers": [], - "finalizer": null - }, - { - "type": "VariableDeclaration", - "start": 3663, - "end": 3716, - "loc": { - "start": { - "line": 127, - "column": 4 - }, - "end": { - "line": 127, - "column": 57 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3669, - "end": 3715, - "loc": { - "start": { - "line": 127, - "column": 10 - }, - "end": { - "line": 127, - "column": 56 - } - }, - "id": { - "type": "Identifier", - "start": 3669, - "end": 3677, - "loc": { - "start": { - "line": 127, - "column": 10 - }, - "end": { - "line": 127, - "column": 18 - }, - "identifierName": "mimeType" - }, - "name": "mimeType" - }, - "init": { - "type": "CallExpression", - "start": 3680, - "end": 3715, - "loc": { - "start": { - "line": 127, - "column": 21 - }, - "end": { - "line": 127, - "column": 56 - } - }, - "callee": { - "type": "Identifier", - "start": 3680, - "end": 3706, - "loc": { - "start": { - "line": 127, - "column": 21 - }, - "end": { - "line": 127, - "column": 47 - }, - "identifierName": "getMimeTypeByFileExtension" - }, - "name": "getMimeTypeByFileExtension" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3707, - "end": 3714, - "loc": { - "start": { - "line": 127, - "column": 48 - }, - "end": { - "line": 127, - "column": 55 - }, - "identifierName": "fileExt" - }, - "name": "fileExt" - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 3721, - "end": 3768, - "loc": { - "start": { - "line": 128, - "column": 4 - }, - "end": { - "line": 128, - "column": 51 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3727, - "end": 3767, - "loc": { - "start": { - "line": 128, - "column": 10 - }, - "end": { - "line": 128, - "column": 50 - } - }, - "id": { - "type": "Identifier", - "start": 3727, - "end": 3743, - "loc": { - "start": { - "line": 128, - "column": 10 - }, - "end": { - "line": 128, - "column": 26 - }, - "identifierName": "formDataBoundary" - }, - "name": "formDataBoundary" - }, - "init": { - "type": "CallExpression", - "start": 3746, - "end": 3767, - "loc": { - "start": { - "line": 128, - "column": 29 - }, - "end": { - "line": 128, - "column": 50 - } - }, - "callee": { - "type": "Identifier", - "start": 3746, - "end": 3765, - "loc": { - "start": { - "line": 128, - "column": 29 - }, - "end": { - "line": 128, - "column": 48 - }, - "identifierName": "getFormDataBoundary" - }, - "name": "getFormDataBoundary" - }, - "arguments": [] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 3773, - "end": 3977, - "loc": { - "start": { - "line": 129, - "column": 4 - }, - "end": { - "line": 131, - "column": 51 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3779, - "end": 3976, - "loc": { - "start": { - "line": 129, - "column": 10 - }, - "end": { - "line": 131, - "column": 50 - } - }, - "id": { - "type": "Identifier", - "start": 3779, - "end": 3796, - "loc": { - "start": { - "line": 129, - "column": 10 - }, - "end": { - "line": 129, - "column": 27 - }, - "identifierName": "formDataBeginning" - }, - "name": "formDataBeginning" - }, - "init": { - "type": "CallExpression", - "start": 3799, - "end": 3976, - "loc": { - "start": { - "line": 129, - "column": 30 - }, - "end": { - "line": 131, - "column": 50 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3799, - "end": 3939, - "loc": { - "start": { - "line": 129, - "column": 30 - }, - "end": { - "line": 131, - "column": 13 - } - }, - "object": { - "type": "CallExpression", - "start": 3799, - "end": 3925, - "loc": { - "start": { - "line": 129, - "column": 30 - }, - "end": { - "line": 130, - "column": 98 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3799, - "end": 3840, - "loc": { - "start": { - "line": 129, - "column": 30 - }, - "end": { - "line": 130, - "column": 13 - } - }, - "object": { - "type": "TemplateLiteral", - "start": 3799, - "end": 3826, - "loc": { - "start": { - "line": 129, - "column": 30 - }, - "end": { - "line": 129, - "column": 57 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 3804, - "end": 3820, - "loc": { - "start": { - "line": 129, - "column": 35 - }, - "end": { - "line": 129, - "column": 51 - }, - "identifierName": "formDataBoundary" - }, - "name": "formDataBoundary" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 3800, - "end": 3802, - "loc": { - "start": { - "line": 129, - "column": 31 - }, - "end": { - "line": 129, - "column": 33 - } - }, - "value": { - "raw": "--", - "cooked": "--" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 3821, - "end": 3825, - "loc": { - "start": { - "line": 129, - "column": 52 - }, - "end": { - "line": 129, - "column": 56 - } - }, - "value": { - "raw": "\\r\\n", - "cooked": "\r\n" - }, - "tail": true - } - ] - }, - "property": { - "type": "Identifier", - "start": 3834, - "end": 3840, - "loc": { - "start": { - "line": 130, - "column": 7 - }, - "end": { - "line": 130, - "column": 13 - }, - "identifierName": "concat" - }, - "name": "concat" - }, - "computed": false - }, - "arguments": [ - { - "type": "TemplateLiteral", - "start": 3841, - "end": 3924, - "loc": { - "start": { - "line": 130, - "column": 14 - }, - "end": { - "line": 130, - "column": 97 - } - }, - "expressions": [ - { - "type": "CallExpression", - "start": 3899, - "end": 3917, - "loc": { - "start": { - "line": 130, - "column": 72 - }, - "end": { - "line": 130, - "column": 90 - } - }, - "callee": { - "type": "Identifier", - "start": 3899, - "end": 3907, - "loc": { - "start": { - "line": 130, - "column": 72 - }, - "end": { - "line": 130, - "column": 80 - }, - "identifierName": "basename" - }, - "name": "basename" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3908, - "end": 3916, - "loc": { - "start": { - "line": 130, - "column": 81 - }, - "end": { - "line": 130, - "column": 89 - }, - "identifierName": "filepath" - }, - "name": "filepath" - } - ] - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 3842, - "end": 3897, - "loc": { - "start": { - "line": 130, - "column": 15 - }, - "end": { - "line": 130, - "column": 70 - } - }, - "value": { - "raw": "Content-Disposition: form-data; name=\"file\"; filename=\"", - "cooked": "Content-Disposition: form-data; name=\"file\"; filename=\"" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 3918, - "end": 3923, - "loc": { - "start": { - "line": 130, - "column": 91 - }, - "end": { - "line": 130, - "column": 96 - } - }, - "value": { - "raw": "\"\\r\\n", - "cooked": "\"\r\n" - }, - "tail": true - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 3933, - "end": 3939, - "loc": { - "start": { - "line": 131, - "column": 7 - }, - "end": { - "line": 131, - "column": 13 - }, - "identifierName": "concat" - }, - "name": "concat" - }, - "computed": false - }, - "arguments": [ - { - "type": "TemplateLiteral", - "start": 3940, - "end": 3975, - "loc": { - "start": { - "line": 131, - "column": 14 - }, - "end": { - "line": 131, - "column": 49 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 3957, - "end": 3965, - "loc": { - "start": { - "line": 131, - "column": 31 - }, - "end": { - "line": 131, - "column": 39 - }, - "identifierName": "mimeType" - }, - "name": "mimeType" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 3941, - "end": 3955, - "loc": { - "start": { - "line": 131, - "column": 15 - }, - "end": { - "line": 131, - "column": 29 - } - }, - "value": { - "raw": "Content-Type: ", - "cooked": "Content-Type: " - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 3966, - "end": 3974, - "loc": { - "start": { - "line": 131, - "column": 40 - }, - "end": { - "line": 131, - "column": 48 - } - }, - "value": { - "raw": "\\r\\n\\r\\n", - "cooked": "\r\n\r\n" - }, - "tail": true - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 3982, - "end": 4037, - "loc": { - "start": { - "line": 132, - "column": 4 - }, - "end": { - "line": 132, - "column": 59 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3988, - "end": 4036, - "loc": { - "start": { - "line": 132, - "column": 10 - }, - "end": { - "line": 132, - "column": 58 - } - }, - "id": { - "type": "Identifier", - "start": 3988, - "end": 4002, - "loc": { - "start": { - "line": 132, - "column": 10 - }, - "end": { - "line": 132, - "column": 24 - }, - "identifierName": "formDataEnding" - }, - "name": "formDataEnding" - }, - "init": { - "type": "TemplateLiteral", - "start": 4005, - "end": 4036, - "loc": { - "start": { - "line": 132, - "column": 27 - }, - "end": { - "line": 132, - "column": 58 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 4014, - "end": 4030, - "loc": { - "start": { - "line": 132, - "column": 36 - }, - "end": { - "line": 132, - "column": 52 - }, - "identifierName": "formDataBoundary" - }, - "name": "formDataBoundary" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 4006, - "end": 4012, - "loc": { - "start": { - "line": 132, - "column": 28 - }, - "end": { - "line": 132, - "column": 34 - } - }, - "value": { - "raw": "\\r\\n--", - "cooked": "\r\n--" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 4031, - "end": 4035, - "loc": { - "start": { - "line": 132, - "column": 53 - }, - "end": { - "line": 132, - "column": 57 - } - }, - "value": { - "raw": "\\r\\n", - "cooked": "\r\n" - }, - "tail": true - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 4043, - "end": 4213, - "loc": { - "start": { - "line": 134, - "column": 4 - }, - "end": { - "line": 138, - "column": 7 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 4049, - "end": 4212, - "loc": { - "start": { - "line": 134, - "column": 10 - }, - "end": { - "line": 138, - "column": 6 - } - }, - "id": { - "type": "Identifier", - "start": 4049, - "end": 4056, - "loc": { - "start": { - "line": 134, - "column": 10 - }, - "end": { - "line": 134, - "column": 17 - }, - "identifierName": "payload" - }, - "name": "payload" - }, - "init": { - "type": "CallExpression", - "start": 4059, - "end": 4212, - "loc": { - "start": { - "line": 134, - "column": 20 - }, - "end": { - "line": 138, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4059, - "end": 4072, - "loc": { - "start": { - "line": 134, - "column": 20 - }, - "end": { - "line": 134, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 4059, - "end": 4065, - "loc": { - "start": { - "line": 134, - "column": 20 - }, - "end": { - "line": 134, - "column": 26 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 4066, - "end": 4072, - "loc": { - "start": { - "line": 134, - "column": 27 - }, - "end": { - "line": 134, - "column": 33 - }, - "identifierName": "concat" - }, - "name": "concat" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrayExpression", - "start": 4073, - "end": 4211, - "loc": { - "start": { - "line": 134, - "column": 34 - }, - "end": { - "line": 138, - "column": 5 - } - }, - "elements": [ - { - "type": "CallExpression", - "start": 4081, - "end": 4119, - "loc": { - "start": { - "line": 135, - "column": 6 - }, - "end": { - "line": 135, - "column": 44 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4081, - "end": 4092, - "loc": { - "start": { - "line": 135, - "column": 6 - }, - "end": { - "line": 135, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 4081, - "end": 4087, - "loc": { - "start": { - "line": 135, - "column": 6 - }, - "end": { - "line": 135, - "column": 12 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 4088, - "end": 4092, - "loc": { - "start": { - "line": 135, - "column": 13 - }, - "end": { - "line": 135, - "column": 17 - }, - "identifierName": "from" - }, - "name": "from" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 4093, - "end": 4110, - "loc": { - "start": { - "line": 135, - "column": 18 - }, - "end": { - "line": 135, - "column": 35 - }, - "identifierName": "formDataBeginning" - }, - "name": "formDataBeginning" - }, - { - "type": "StringLiteral", - "start": 4112, - "end": 4118, - "loc": { - "start": { - "line": 135, - "column": 37 - }, - "end": { - "line": 135, - "column": 43 - } - }, - "extra": { - "rawValue": "utf8", - "raw": "'utf8'" - }, - "value": "utf8" - } - ] - }, - { - "type": "CallExpression", - "start": 4127, - "end": 4161, - "loc": { - "start": { - "line": 136, - "column": 6 - }, - "end": { - "line": 136, - "column": 40 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4127, - "end": 4138, - "loc": { - "start": { - "line": 136, - "column": 6 - }, - "end": { - "line": 136, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 4127, - "end": 4133, - "loc": { - "start": { - "line": 136, - "column": 6 - }, - "end": { - "line": 136, - "column": 12 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 4134, - "end": 4138, - "loc": { - "start": { - "line": 136, - "column": 13 - }, - "end": { - "line": 136, - "column": 17 - }, - "identifierName": "from" - }, - "name": "from" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 4139, - "end": 4150, - "loc": { - "start": { - "line": 136, - "column": 18 - }, - "end": { - "line": 136, - "column": 29 - }, - "identifierName": "fileContent" - }, - "name": "fileContent" - }, - { - "type": "StringLiteral", - "start": 4152, - "end": 4160, - "loc": { - "start": { - "line": 136, - "column": 31 - }, - "end": { - "line": 136, - "column": 39 - } - }, - "extra": { - "rawValue": "binary", - "raw": "'binary'" - }, - "value": "binary" - } - ] - }, - { - "type": "CallExpression", - "start": 4169, - "end": 4204, - "loc": { - "start": { - "line": 137, - "column": 6 - }, - "end": { - "line": 137, - "column": 41 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4169, - "end": 4180, - "loc": { - "start": { - "line": 137, - "column": 6 - }, - "end": { - "line": 137, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 4169, - "end": 4175, - "loc": { - "start": { - "line": 137, - "column": 6 - }, - "end": { - "line": 137, - "column": 12 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 4176, - "end": 4180, - "loc": { - "start": { - "line": 137, - "column": 13 - }, - "end": { - "line": 137, - "column": 17 - }, - "identifierName": "from" - }, - "name": "from" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 4181, - "end": 4195, - "loc": { - "start": { - "line": 137, - "column": 18 - }, - "end": { - "line": 137, - "column": 32 - }, - "identifierName": "formDataEnding" - }, - "name": "formDataEnding" - }, - { - "type": "StringLiteral", - "start": 4197, - "end": 4203, - "loc": { - "start": { - "line": 137, - "column": 34 - }, - "end": { - "line": 137, - "column": 40 - } - }, - "extra": { - "rawValue": "utf8", - "raw": "'utf8'" - }, - "value": "utf8" - } - ] - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 4219, - "end": 4662, - "loc": { - "start": { - "line": 140, - "column": 4 - }, - "end": { - "line": 153, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 4225, - "end": 4661, - "loc": { - "start": { - "line": 140, - "column": 10 - }, - "end": { - "line": 153, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 4225, - "end": 4228, - "loc": { - "start": { - "line": 140, - "column": 10 - }, - "end": { - "line": 140, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 4231, - "end": 4661, - "loc": { - "start": { - "line": 140, - "column": 16 - }, - "end": { - "line": 153, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4231, - "end": 4628, - "loc": { - "start": { - "line": 140, - "column": 16 - }, - "end": { - "line": 153, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 4231, - "end": 4618, - "loc": { - "start": { - "line": 140, - "column": 16 - }, - "end": { - "line": 152, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4231, - "end": 4251, - "loc": { - "start": { - "line": 140, - "column": 16 - }, - "end": { - "line": 141, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 4231, - "end": 4236, - "loc": { - "start": { - "line": 140, - "column": 16 - }, - "end": { - "line": 140, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 4244, - "end": 4251, - "loc": { - "start": { - "line": 141, - "column": 7 - }, - "end": { - "line": 141, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 4252, - "end": 4590, - "loc": { - "start": { - "line": 141, - "column": 15 - }, - "end": { - "line": 152, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 4252, - "end": 4271, - "loc": { - "start": { - "line": 141, - "column": 15 - }, - "end": { - "line": 141, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 4272, - "end": 4589, - "loc": { - "start": { - "line": 141, - "column": 35 - }, - "end": { - "line": 152, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4282, - "end": 4296, - "loc": { - "start": { - "line": 142, - "column": 8 - }, - "end": { - "line": 142, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4282, - "end": 4288, - "loc": { - "start": { - "line": 142, - "column": 8 - }, - "end": { - "line": 142, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 4290, - "end": 4296, - "loc": { - "start": { - "line": 142, - "column": 16 - }, - "end": { - "line": 142, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 4306, - "end": 4336, - "loc": { - "start": { - "line": 143, - "column": 8 - }, - "end": { - "line": 143, - "column": 38 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4306, - "end": 4310, - "loc": { - "start": { - "line": 143, - "column": 8 - }, - "end": { - "line": 143, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 4312, - "end": 4336, - "loc": { - "start": { - "line": 143, - "column": 14 - }, - "end": { - "line": 143, - "column": 38 - } - }, - "extra": { - "rawValue": "/document/fieldextract", - "raw": "'/document/fieldextract'" - }, - "value": "/document/fieldextract" - } - }, - { - "type": "ObjectProperty", - "start": 4346, - "end": 4415, - "loc": { - "start": { - "line": 144, - "column": 8 - }, - "end": { - "line": 147, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4346, - "end": 4359, - "loc": { - "start": { - "line": 144, - "column": 8 - }, - "end": { - "line": 144, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 4361, - "end": 4415, - "loc": { - "start": { - "line": 144, - "column": 23 - }, - "end": { - "line": 147, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4373, - "end": 4387, - "loc": { - "start": { - "line": 145, - "column": 10 - }, - "end": { - "line": 145, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4373, - "end": 4377, - "loc": { - "start": { - "line": 145, - "column": 10 - }, - "end": { - "line": 145, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 4379, - "end": 4387, - "loc": { - "start": { - "line": 145, - "column": 16 - }, - "end": { - "line": 145, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 4399, - "end": 4404, - "loc": { - "start": { - "line": 146, - "column": 10 - }, - "end": { - "line": 146, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 4399, - "end": 4404, - "loc": { - "start": { - "line": 146, - "column": 10 - }, - "end": { - "line": 146, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 4399, - "end": 4404, - "loc": { - "start": { - "line": 146, - "column": 10 - }, - "end": { - "line": 146, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 4425, - "end": 4580, - "loc": { - "start": { - "line": 148, - "column": 8 - }, - "end": { - "line": 151, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4425, - "end": 4432, - "loc": { - "start": { - "line": 148, - "column": 8 - }, - "end": { - "line": 148, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 4434, - "end": 4580, - "loc": { - "start": { - "line": 148, - "column": 17 - }, - "end": { - "line": 151, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4446, - "end": 4513, - "loc": { - "start": { - "line": 149, - "column": 10 - }, - "end": { - "line": 149, - "column": 77 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 4446, - "end": 4460, - "loc": { - "start": { - "line": 149, - "column": 10 - }, - "end": { - "line": 149, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "TemplateLiteral", - "start": 4462, - "end": 4513, - "loc": { - "start": { - "line": 149, - "column": 26 - }, - "end": { - "line": 149, - "column": 77 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 4495, - "end": 4511, - "loc": { - "start": { - "line": 149, - "column": 59 - }, - "end": { - "line": 149, - "column": 75 - }, - "identifierName": "formDataBoundary" - }, - "name": "formDataBoundary" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 4463, - "end": 4493, - "loc": { - "start": { - "line": 149, - "column": 27 - }, - "end": { - "line": 149, - "column": 57 - } - }, - "value": { - "raw": "multipart/form-data; boundary=", - "cooked": "multipart/form-data; boundary=" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 4512, - "end": 4512, - "loc": { - "start": { - "line": 149, - "column": 76 - }, - "end": { - "line": 149, - "column": 76 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 4525, - "end": 4569, - "loc": { - "start": { - "line": 150, - "column": 10 - }, - "end": { - "line": 150, - "column": 54 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 4525, - "end": 4541, - "loc": { - "start": { - "line": 150, - "column": 10 - }, - "end": { - "line": 150, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 4543, - "end": 4569, - "loc": { - "start": { - "line": 150, - "column": 28 - }, - "end": { - "line": 150, - "column": 54 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4543, - "end": 4560, - "loc": { - "start": { - "line": 150, - "column": 28 - }, - "end": { - "line": 150, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 4543, - "end": 4549, - "loc": { - "start": { - "line": 150, - "column": 28 - }, - "end": { - "line": 150, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 4550, - "end": 4560, - "loc": { - "start": { - "line": 150, - "column": 35 - }, - "end": { - "line": 150, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 4561, - "end": 4568, - "loc": { - "start": { - "line": 150, - "column": 46 - }, - "end": { - "line": 150, - "column": 53 - }, - "identifierName": "payload" - }, - "name": "payload" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 4592, - "end": 4617, - "loc": { - "start": { - "line": 152, - "column": 10 - }, - "end": { - "line": 152, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 4592, - "end": 4607, - "loc": { - "start": { - "line": 152, - "column": 10 - }, - "end": { - "line": 152, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 4608, - "end": 4616, - "loc": { - "start": { - "line": 152, - "column": 26 - }, - "end": { - "line": 152, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 4626, - "end": 4628, - "loc": { - "start": { - "line": 153, - "column": 7 - }, - "end": { - "line": 153, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 4629, - "end": 4636, - "loc": { - "start": { - "line": 153, - "column": 10 - }, - "end": { - "line": 153, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 4638, - "end": 4660, - "loc": { - "start": { - "line": 153, - "column": 19 - }, - "end": { - "line": 153, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 4638, - "end": 4650, - "loc": { - "start": { - "line": 153, - "column": 19 - }, - "end": { - "line": 153, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 4651, - "end": 4659, - "loc": { - "start": { - "line": 153, - "column": 32 - }, - "end": { - "line": 153, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 4668, - "end": 4687, - "loc": { - "start": { - "line": 155, - "column": 4 - }, - "end": { - "line": 155, - "column": 23 - } - }, - "expression": { - "type": "CallExpression", - "start": 4668, - "end": 4686, - "loc": { - "start": { - "line": 155, - "column": 4 - }, - "end": { - "line": 155, - "column": 22 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4668, - "end": 4677, - "loc": { - "start": { - "line": 155, - "column": 4 - }, - "end": { - "line": 155, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 4668, - "end": 4671, - "loc": { - "start": { - "line": 155, - "column": 4 - }, - "end": { - "line": 155, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 4672, - "end": 4677, - "loc": { - "start": { - "line": 155, - "column": 8 - }, - "end": { - "line": 155, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 4678, - "end": 4685, - "loc": { - "start": { - "line": 155, - "column": 14 - }, - "end": { - "line": 155, - "column": 21 - }, - "identifierName": "payload" - }, - "name": "payload" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 4692, - "end": 4702, - "loc": { - "start": { - "line": 156, - "column": 4 - }, - "end": { - "line": 156, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 4692, - "end": 4701, - "loc": { - "start": { - "line": 156, - "column": 4 - }, - "end": { - "line": 156, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4692, - "end": 4699, - "loc": { - "start": { - "line": 156, - "column": 4 - }, - "end": { - "line": 156, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 4692, - "end": 4695, - "loc": { - "start": { - "line": 156, - "column": 4 - }, - "end": { - "line": 156, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 4696, - "end": 4699, - "loc": { - "start": { - "line": 156, - "column": 8 - }, - "end": { - "line": 156, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Upload document with field extract payload\n * @typedef {Object} DocumentFieldExtractParams\n * @property {string} filepath - path to file to be uploaded\n * @property {string} token - your auth token\n ", - "start": 2523, - "end": 2741, - "loc": { - "start": { - "line": 91, - "column": 2 - }, - "end": { - "line": 96, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Upload document with field extract response data\n * @typedef {Object} DocumentFieldExtractResponse\n * @property {string} id - an id of created document\n ", - "start": 2745, - "end": 2915, - "loc": { - "start": { - "line": 98, - "column": 2 - }, - "end": { - "line": 102, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Uploads a file that contains SignNow Document Field Tags.\n * This endpoint only accepts .pdf (you may convert the document from .doc or .docx to .pdf)\n * @param {DocumentFieldExtractParams} data - upload document with field extract payload\n * @param {function(err: ApiErrorResponse, res: DocumentFieldExtractResponse)} [callback] - error first node.js callback\n ", - "start": 2919, - "end": 3300, - "loc": { - "start": { - "line": 104, - "column": 2 - }, - "end": { - "line": 109, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Payload to receive user's document list\n * @typedef {Object} DocumentListParams\n * @property {string} token - your auth token\n ", - "start": 4710, - "end": 4854, - "loc": { - "start": { - "line": 159, - "column": 2 - }, - "end": { - "line": 163, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document list response item\n * @typedef {Object} DocumentListItem\n * @property {string} id - id of specific document\n * @property {string} user_id - id of user that uploaded document\n * @property {string} document_name - name of document\n * @property {string} page_count - amount of pages in the document\n * @property {string} created - timestamp document was created\n * @property {string} updated - timestamp document was updated\n * @property {string} original_filename - original filename with document format (.pdf, .doc, etc...)\n * @property {?string} origin_document_id - an id of original document (if document is a copy)\n * @property {string} owner - email of document owner\n * @property {boolean} template - is document a template or not\n * @property {?string} origin_user_id - id of user who created document\n * @property {DocumentThumbnails} thumbnail - thumbnail urls with different sizes (small, medium, large)\n * @property {Object[]} signatures - signature signed elements\n * @property {Object[]} texts - text and enumeration filled elements\n * @property {Object[]} checks - checkbox checked elements\n * @property {Object[]} tags - field types document contains\n * @property {Object[]} fields - all document fillable fields\n * @property {Object[]} requests - requests for signing document\n * @property {Object[]} roles - document signer roles\n * @property {Object[]} field_invites - sent invites data\n * @property {number} version_time - document updated timestamp\n * @property {Object[]} enumeration_options - dropdown options\n * @property {Object[]} attachments - attachments in document\n * @property {Object[]} routing_details - signing steps routing details\n * @property {Object[]} integrations - document integrations\n * @property {Object[]} hyperlinks - document hyperlinks\n * @property {Object[]} radiobuttons - checked radiobuttons after document was signed\n * @property {Object[]} document_group_template_info - document group templates data\n * @property {Object[]} document_group_info - document group template's data\n * @property {Object[]} originator_organization_settings - specific organization settings for document\n * @property {Object[]} field_validators - validation rules for fields (date fields, payment fields etc.)\n * @property {Object} settings - specific document settings\n ", - "start": 4858, - "end": 7248, - "loc": { - "start": { - "line": 165, - "column": 2 - }, - "end": { - "line": 200, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * User's Document list response\n * @typedef {DocumentListItem[]} DocumentListResponse\n ", - "start": 7252, - "end": 7352, - "loc": { - "start": { - "line": 202, - "column": 2 - }, - "end": { - "line": 205, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieve user's document list\n * @param {DocumentListParams} data - payload to receive user's document list\n * @param {function(err: ApiErrorResponse, res: DocumentListItem)} [callback] - error first node.js callback\n ", - "start": 7356, - "end": 7591, - "loc": { - "start": { - "line": 207, - "column": 2 - }, - "end": { - "line": 211, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 7594, - "end": 7911, - "loc": { - "start": { - "line": 212, - "column": 2 - }, - "end": { - "line": 224, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7601, - "end": 7605, - "loc": { - "start": { - "line": 212, - "column": 9 - }, - "end": { - "line": 212, - "column": 13 - }, - "identifierName": "list" - }, - "name": "list" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 7607, - "end": 7616, - "loc": { - "start": { - "line": 212, - "column": 15 - }, - "end": { - "line": 212, - "column": 24 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 7609, - "end": 7614, - "loc": { - "start": { - "line": 212, - "column": 17 - }, - "end": { - "line": 212, - "column": 22 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7609, - "end": 7614, - "loc": { - "start": { - "line": 212, - "column": 17 - }, - "end": { - "line": 212, - "column": 22 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 7609, - "end": 7614, - "loc": { - "start": { - "line": 212, - "column": 17 - }, - "end": { - "line": 212, - "column": 22 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 7618, - "end": 7626, - "loc": { - "start": { - "line": 212, - "column": 26 - }, - "end": { - "line": 212, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 7628, - "end": 7911, - "loc": { - "start": { - "line": 212, - "column": 36 - }, - "end": { - "line": 224, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 7634, - "end": 7907, - "loc": { - "start": { - "line": 213, - "column": 4 - }, - "end": { - "line": 223, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 7634, - "end": 7906, - "loc": { - "start": { - "line": 213, - "column": 4 - }, - "end": { - "line": 223, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 7634, - "end": 7904, - "loc": { - "start": { - "line": 213, - "column": 4 - }, - "end": { - "line": 223, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 7634, - "end": 7893, - "loc": { - "start": { - "line": 213, - "column": 4 - }, - "end": { - "line": 222, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 7634, - "end": 7860, - "loc": { - "start": { - "line": 213, - "column": 4 - }, - "end": { - "line": 222, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 7634, - "end": 7850, - "loc": { - "start": { - "line": 213, - "column": 4 - }, - "end": { - "line": 221, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 7634, - "end": 7654, - "loc": { - "start": { - "line": 213, - "column": 4 - }, - "end": { - "line": 214, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 7634, - "end": 7639, - "loc": { - "start": { - "line": 213, - "column": 4 - }, - "end": { - "line": 213, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 7647, - "end": 7654, - "loc": { - "start": { - "line": 214, - "column": 7 - }, - "end": { - "line": 214, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 7655, - "end": 7822, - "loc": { - "start": { - "line": 214, - "column": 15 - }, - "end": { - "line": 221, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 7655, - "end": 7674, - "loc": { - "start": { - "line": 214, - "column": 15 - }, - "end": { - "line": 214, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 7675, - "end": 7821, - "loc": { - "start": { - "line": 214, - "column": 35 - }, - "end": { - "line": 221, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 7685, - "end": 7698, - "loc": { - "start": { - "line": 215, - "column": 8 - }, - "end": { - "line": 215, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7685, - "end": 7691, - "loc": { - "start": { - "line": 215, - "column": 8 - }, - "end": { - "line": 215, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 7693, - "end": 7698, - "loc": { - "start": { - "line": 215, - "column": 16 - }, - "end": { - "line": 215, - "column": 21 - } - }, - "extra": { - "rawValue": "GET", - "raw": "'GET'" - }, - "value": "GET" - } - }, - { - "type": "ObjectProperty", - "start": 7708, - "end": 7733, - "loc": { - "start": { - "line": 216, - "column": 8 - }, - "end": { - "line": 216, - "column": 33 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7708, - "end": 7712, - "loc": { - "start": { - "line": 216, - "column": 8 - }, - "end": { - "line": 216, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 7714, - "end": 7733, - "loc": { - "start": { - "line": 216, - "column": 14 - }, - "end": { - "line": 216, - "column": 33 - } - }, - "extra": { - "rawValue": "/user/documentsv2", - "raw": "'/user/documentsv2'" - }, - "value": "/user/documentsv2" - } - }, - { - "type": "ObjectProperty", - "start": 7743, - "end": 7812, - "loc": { - "start": { - "line": 217, - "column": 8 - }, - "end": { - "line": 220, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7743, - "end": 7756, - "loc": { - "start": { - "line": 217, - "column": 8 - }, - "end": { - "line": 217, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 7758, - "end": 7812, - "loc": { - "start": { - "line": 217, - "column": 23 - }, - "end": { - "line": 220, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 7770, - "end": 7784, - "loc": { - "start": { - "line": 218, - "column": 10 - }, - "end": { - "line": 218, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7770, - "end": 7774, - "loc": { - "start": { - "line": 218, - "column": 10 - }, - "end": { - "line": 218, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 7776, - "end": 7784, - "loc": { - "start": { - "line": 218, - "column": 16 - }, - "end": { - "line": 218, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 7796, - "end": 7801, - "loc": { - "start": { - "line": 219, - "column": 10 - }, - "end": { - "line": 219, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7796, - "end": 7801, - "loc": { - "start": { - "line": 219, - "column": 10 - }, - "end": { - "line": 219, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 7796, - "end": 7801, - "loc": { - "start": { - "line": 219, - "column": 10 - }, - "end": { - "line": 219, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 7824, - "end": 7849, - "loc": { - "start": { - "line": 221, - "column": 10 - }, - "end": { - "line": 221, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 7824, - "end": 7839, - "loc": { - "start": { - "line": 221, - "column": 10 - }, - "end": { - "line": 221, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 7840, - "end": 7848, - "loc": { - "start": { - "line": 221, - "column": 26 - }, - "end": { - "line": 221, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 7858, - "end": 7860, - "loc": { - "start": { - "line": 222, - "column": 7 - }, - "end": { - "line": 222, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 7861, - "end": 7868, - "loc": { - "start": { - "line": 222, - "column": 10 - }, - "end": { - "line": 222, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 7870, - "end": 7892, - "loc": { - "start": { - "line": 222, - "column": 19 - }, - "end": { - "line": 222, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 7870, - "end": 7882, - "loc": { - "start": { - "line": 222, - "column": 19 - }, - "end": { - "line": 222, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 7883, - "end": 7891, - "loc": { - "start": { - "line": 222, - "column": 32 - }, - "end": { - "line": 222, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 7901, - "end": 7904, - "loc": { - "start": { - "line": 223, - "column": 7 - }, - "end": { - "line": 223, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Payload to receive user's document list\n * @typedef {Object} DocumentListParams\n * @property {string} token - your auth token\n ", - "start": 4710, - "end": 4854, - "loc": { - "start": { - "line": 159, - "column": 2 - }, - "end": { - "line": 163, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document list response item\n * @typedef {Object} DocumentListItem\n * @property {string} id - id of specific document\n * @property {string} user_id - id of user that uploaded document\n * @property {string} document_name - name of document\n * @property {string} page_count - amount of pages in the document\n * @property {string} created - timestamp document was created\n * @property {string} updated - timestamp document was updated\n * @property {string} original_filename - original filename with document format (.pdf, .doc, etc...)\n * @property {?string} origin_document_id - an id of original document (if document is a copy)\n * @property {string} owner - email of document owner\n * @property {boolean} template - is document a template or not\n * @property {?string} origin_user_id - id of user who created document\n * @property {DocumentThumbnails} thumbnail - thumbnail urls with different sizes (small, medium, large)\n * @property {Object[]} signatures - signature signed elements\n * @property {Object[]} texts - text and enumeration filled elements\n * @property {Object[]} checks - checkbox checked elements\n * @property {Object[]} tags - field types document contains\n * @property {Object[]} fields - all document fillable fields\n * @property {Object[]} requests - requests for signing document\n * @property {Object[]} roles - document signer roles\n * @property {Object[]} field_invites - sent invites data\n * @property {number} version_time - document updated timestamp\n * @property {Object[]} enumeration_options - dropdown options\n * @property {Object[]} attachments - attachments in document\n * @property {Object[]} routing_details - signing steps routing details\n * @property {Object[]} integrations - document integrations\n * @property {Object[]} hyperlinks - document hyperlinks\n * @property {Object[]} radiobuttons - checked radiobuttons after document was signed\n * @property {Object[]} document_group_template_info - document group templates data\n * @property {Object[]} document_group_info - document group template's data\n * @property {Object[]} originator_organization_settings - specific organization settings for document\n * @property {Object[]} field_validators - validation rules for fields (date fields, payment fields etc.)\n * @property {Object} settings - specific document settings\n ", - "start": 4858, - "end": 7248, - "loc": { - "start": { - "line": 165, - "column": 2 - }, - "end": { - "line": 200, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * User's Document list response\n * @typedef {DocumentListItem[]} DocumentListResponse\n ", - "start": 7252, - "end": 7352, - "loc": { - "start": { - "line": 202, - "column": 2 - }, - "end": { - "line": 205, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieve user's document list\n * @param {DocumentListParams} data - payload to receive user's document list\n * @param {function(err: ApiErrorResponse, res: DocumentListItem)} [callback] - error first node.js callback\n ", - "start": 7356, - "end": 7591, - "loc": { - "start": { - "line": 207, - "column": 2 - }, - "end": { - "line": 211, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document view payload\n * @typedef {Object} DocumentViewParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 7915, - "end": 8094, - "loc": { - "start": { - "line": 226, - "column": 2 - }, - "end": { - "line": 231, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document thumbnail urls with different sizes (small, medium, large)\n * @typedef {Object} DocumentThumbnails\n * @property {string} large\n * @property {string} medium\n * @property {string} small\n ", - "start": 8098, - "end": 8313, - "loc": { - "start": { - "line": 233, - "column": 2 - }, - "end": { - "line": 239, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document view response of specific document\n * @typedef {Object} DocumentViewResponse\n * @property {string} id - id of specific document\n * @property {string} user_id - id of user that uploaded document\n * @property {string} document_name - name of document\n * @property {string} page_count - amount of pages in the document\n * @property {string} created - timestamp document was created\n * @property {string} updated - timestamp document was updated\n * @property {string} original_filename - original filename with document format (.pdf, .doc, etc...)\n * @property {?string} origin_document_id - an id of original document (if document is a copy)\n * @property {string} owner - email of document owner\n * @property {boolean} template - is document a template or not\n * @property {DocumentThumbnails} thumbnail - thumbnail urls with different sizes (small, medium, large)\n * @property {Object[]} signatures - signature signed elements\n * @property {Object[]} texts - text and enumeration filled elements\n * @property {Object[]} checks - checkbox checked elements\n * @property {Object[]} tags - field types document contains\n * @property {Object[]} fields - all document fillable fields\n * @property {Object[]} requests - requests for signing document\n * @property {Object[]} roles - document signer roles\n * @property {Object[]} field_invites - sent invites data\n * @property {number} version_time - document updated timestamp\n * @property {Object[]} enumeration_options - dropdown options\n * @property {Object[]} attachments - attachments in document\n * @property {Object[]} routing_details - signing steps routing details\n * @property {Object[]} integrations - document integrations\n * @property {Object[]} hyperlinks - document hyperlinks\n * @property {Object[]} radiobuttons - checked radiobuttons after document was signed\n * @property {Object[]} document_group_template_info - document group template's data\n * @property {Object[]} document_group_info - document group's data\n * @property {Object[]} originator_organization_settings - specific organization settings for document\n * @property {Object[]} field_validators - validation rules for fields (date fields, payment fields etc.)\n * @property {Object} settings - specific document settings\n * @property {string} parent_id - id of document folder\n * @property {string} originator_logo - logo url\n * @property {Object[]} pages - list of document pages with page sources and page size.\n ", - "start": 8317, - "end": 10844, - "loc": { - "start": { - "line": 241, - "column": 2 - }, - "end": { - "line": 278, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves a document detailed data\n * @param {DocumentViewParams} data - view document details payload\n * @param {function(err: ApiErrorResponse, res: DocumentViewResponse)} [callback] - error first node.js callback\n ", - "start": 10848, - "end": 11082, - "loc": { - "start": { - "line": 280, - "column": 2 - }, - "end": { - "line": 284, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 11085, - "end": 11404, - "loc": { - "start": { - "line": 285, - "column": 2 - }, - "end": { - "line": 297, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 11092, - "end": 11096, - "loc": { - "start": { - "line": 285, - "column": 9 - }, - "end": { - "line": 285, - "column": 13 - }, - "identifierName": "view" - }, - "name": "view" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 11098, - "end": 11111, - "loc": { - "start": { - "line": 285, - "column": 15 - }, - "end": { - "line": 285, - "column": 28 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 11100, - "end": 11102, - "loc": { - "start": { - "line": 285, - "column": 17 - }, - "end": { - "line": 285, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 11100, - "end": 11102, - "loc": { - "start": { - "line": 285, - "column": 17 - }, - "end": { - "line": 285, - "column": 19 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 11100, - "end": 11102, - "loc": { - "start": { - "line": 285, - "column": 17 - }, - "end": { - "line": 285, - "column": 19 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 11104, - "end": 11109, - "loc": { - "start": { - "line": 285, - "column": 21 - }, - "end": { - "line": 285, - "column": 26 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 11104, - "end": 11109, - "loc": { - "start": { - "line": 285, - "column": 21 - }, - "end": { - "line": 285, - "column": 26 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 11104, - "end": 11109, - "loc": { - "start": { - "line": 285, - "column": 21 - }, - "end": { - "line": 285, - "column": 26 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 11113, - "end": 11121, - "loc": { - "start": { - "line": 285, - "column": 30 - }, - "end": { - "line": 285, - "column": 38 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 11123, - "end": 11404, - "loc": { - "start": { - "line": 285, - "column": 40 - }, - "end": { - "line": 297, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 11129, - "end": 11400, - "loc": { - "start": { - "line": 286, - "column": 4 - }, - "end": { - "line": 296, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 11129, - "end": 11399, - "loc": { - "start": { - "line": 286, - "column": 4 - }, - "end": { - "line": 296, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11129, - "end": 11397, - "loc": { - "start": { - "line": 286, - "column": 4 - }, - "end": { - "line": 296, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 11129, - "end": 11386, - "loc": { - "start": { - "line": 286, - "column": 4 - }, - "end": { - "line": 295, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11129, - "end": 11353, - "loc": { - "start": { - "line": 286, - "column": 4 - }, - "end": { - "line": 295, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 11129, - "end": 11343, - "loc": { - "start": { - "line": 286, - "column": 4 - }, - "end": { - "line": 294, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11129, - "end": 11149, - "loc": { - "start": { - "line": 286, - "column": 4 - }, - "end": { - "line": 287, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 11129, - "end": 11134, - "loc": { - "start": { - "line": 286, - "column": 4 - }, - "end": { - "line": 286, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 11142, - "end": 11149, - "loc": { - "start": { - "line": 287, - "column": 7 - }, - "end": { - "line": 287, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 11150, - "end": 11315, - "loc": { - "start": { - "line": 287, - "column": 15 - }, - "end": { - "line": 294, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 11150, - "end": 11169, - "loc": { - "start": { - "line": 287, - "column": 15 - }, - "end": { - "line": 287, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 11170, - "end": 11314, - "loc": { - "start": { - "line": 287, - "column": 35 - }, - "end": { - "line": 294, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 11180, - "end": 11193, - "loc": { - "start": { - "line": 288, - "column": 8 - }, - "end": { - "line": 288, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 11180, - "end": 11186, - "loc": { - "start": { - "line": 288, - "column": 8 - }, - "end": { - "line": 288, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 11188, - "end": 11193, - "loc": { - "start": { - "line": 288, - "column": 16 - }, - "end": { - "line": 288, - "column": 21 - } - }, - "extra": { - "rawValue": "GET", - "raw": "'GET'" - }, - "value": "GET" - } - }, - { - "type": "ObjectProperty", - "start": 11203, - "end": 11226, - "loc": { - "start": { - "line": 289, - "column": 8 - }, - "end": { - "line": 289, - "column": 31 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 11203, - "end": 11207, - "loc": { - "start": { - "line": 289, - "column": 8 - }, - "end": { - "line": 289, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 11209, - "end": 11226, - "loc": { - "start": { - "line": 289, - "column": 14 - }, - "end": { - "line": 289, - "column": 31 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 11222, - "end": 11224, - "loc": { - "start": { - "line": 289, - "column": 27 - }, - "end": { - "line": 289, - "column": 29 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 11210, - "end": 11220, - "loc": { - "start": { - "line": 289, - "column": 15 - }, - "end": { - "line": 289, - "column": 25 - } - }, - "value": { - "raw": "/document/", - "cooked": "/document/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 11225, - "end": 11225, - "loc": { - "start": { - "line": 289, - "column": 30 - }, - "end": { - "line": 289, - "column": 30 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 11236, - "end": 11305, - "loc": { - "start": { - "line": 290, - "column": 8 - }, - "end": { - "line": 293, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 11236, - "end": 11249, - "loc": { - "start": { - "line": 290, - "column": 8 - }, - "end": { - "line": 290, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 11251, - "end": 11305, - "loc": { - "start": { - "line": 290, - "column": 23 - }, - "end": { - "line": 293, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 11263, - "end": 11277, - "loc": { - "start": { - "line": 291, - "column": 10 - }, - "end": { - "line": 291, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 11263, - "end": 11267, - "loc": { - "start": { - "line": 291, - "column": 10 - }, - "end": { - "line": 291, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 11269, - "end": 11277, - "loc": { - "start": { - "line": 291, - "column": 16 - }, - "end": { - "line": 291, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 11289, - "end": 11294, - "loc": { - "start": { - "line": 292, - "column": 10 - }, - "end": { - "line": 292, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 11289, - "end": 11294, - "loc": { - "start": { - "line": 292, - "column": 10 - }, - "end": { - "line": 292, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 11289, - "end": 11294, - "loc": { - "start": { - "line": 292, - "column": 10 - }, - "end": { - "line": 292, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 11317, - "end": 11342, - "loc": { - "start": { - "line": 294, - "column": 10 - }, - "end": { - "line": 294, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 11317, - "end": 11332, - "loc": { - "start": { - "line": 294, - "column": 10 - }, - "end": { - "line": 294, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 11333, - "end": 11341, - "loc": { - "start": { - "line": 294, - "column": 26 - }, - "end": { - "line": 294, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 11351, - "end": 11353, - "loc": { - "start": { - "line": 295, - "column": 7 - }, - "end": { - "line": 295, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 11354, - "end": 11361, - "loc": { - "start": { - "line": 295, - "column": 10 - }, - "end": { - "line": 295, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 11363, - "end": 11385, - "loc": { - "start": { - "line": 295, - "column": 19 - }, - "end": { - "line": 295, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 11363, - "end": 11375, - "loc": { - "start": { - "line": 295, - "column": 19 - }, - "end": { - "line": 295, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 11376, - "end": 11384, - "loc": { - "start": { - "line": 295, - "column": 32 - }, - "end": { - "line": 295, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 11394, - "end": 11397, - "loc": { - "start": { - "line": 296, - "column": 7 - }, - "end": { - "line": 296, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document view payload\n * @typedef {Object} DocumentViewParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 7915, - "end": 8094, - "loc": { - "start": { - "line": 226, - "column": 2 - }, - "end": { - "line": 231, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document thumbnail urls with different sizes (small, medium, large)\n * @typedef {Object} DocumentThumbnails\n * @property {string} large\n * @property {string} medium\n * @property {string} small\n ", - "start": 8098, - "end": 8313, - "loc": { - "start": { - "line": 233, - "column": 2 - }, - "end": { - "line": 239, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document view response of specific document\n * @typedef {Object} DocumentViewResponse\n * @property {string} id - id of specific document\n * @property {string} user_id - id of user that uploaded document\n * @property {string} document_name - name of document\n * @property {string} page_count - amount of pages in the document\n * @property {string} created - timestamp document was created\n * @property {string} updated - timestamp document was updated\n * @property {string} original_filename - original filename with document format (.pdf, .doc, etc...)\n * @property {?string} origin_document_id - an id of original document (if document is a copy)\n * @property {string} owner - email of document owner\n * @property {boolean} template - is document a template or not\n * @property {DocumentThumbnails} thumbnail - thumbnail urls with different sizes (small, medium, large)\n * @property {Object[]} signatures - signature signed elements\n * @property {Object[]} texts - text and enumeration filled elements\n * @property {Object[]} checks - checkbox checked elements\n * @property {Object[]} tags - field types document contains\n * @property {Object[]} fields - all document fillable fields\n * @property {Object[]} requests - requests for signing document\n * @property {Object[]} roles - document signer roles\n * @property {Object[]} field_invites - sent invites data\n * @property {number} version_time - document updated timestamp\n * @property {Object[]} enumeration_options - dropdown options\n * @property {Object[]} attachments - attachments in document\n * @property {Object[]} routing_details - signing steps routing details\n * @property {Object[]} integrations - document integrations\n * @property {Object[]} hyperlinks - document hyperlinks\n * @property {Object[]} radiobuttons - checked radiobuttons after document was signed\n * @property {Object[]} document_group_template_info - document group template's data\n * @property {Object[]} document_group_info - document group's data\n * @property {Object[]} originator_organization_settings - specific organization settings for document\n * @property {Object[]} field_validators - validation rules for fields (date fields, payment fields etc.)\n * @property {Object} settings - specific document settings\n * @property {string} parent_id - id of document folder\n * @property {string} originator_logo - logo url\n * @property {Object[]} pages - list of document pages with page sources and page size.\n ", - "start": 8317, - "end": 10844, - "loc": { - "start": { - "line": 241, - "column": 2 - }, - "end": { - "line": 278, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves a document detailed data\n * @param {DocumentViewParams} data - view document details payload\n * @param {function(err: ApiErrorResponse, res: DocumentViewResponse)} [callback] - error first node.js callback\n ", - "start": 10848, - "end": 11082, - "loc": { - "start": { - "line": 280, - "column": 2 - }, - "end": { - "line": 284, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} SignatureField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (signature)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} [label] - field label\n ", - "start": 11408, - "end": 11980, - "loc": { - "start": { - "line": 299, - "column": 2 - }, - "end": { - "line": 311, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} InitialsField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (initials)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} [label] - field label\n ", - "start": 11984, - "end": 12554, - "loc": { - "start": { - "line": 313, - "column": 2 - }, - "end": { - "line": 325, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} TextField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (text)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string|number} [prefilled_text] - prefilled field value\n * @property {string} [validator_id] - field value validator ID\n * @property {string} [label] - field label\n ", - "start": 12558, - "end": 13258, - "loc": { - "start": { - "line": 327, - "column": 2 - }, - "end": { - "line": 341, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} CheckField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (checkbox)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {boolean} [prefilled_text] - prefilled field value\n * @property {string} [label] - field label\n ", - "start": 13262, - "end": 13895, - "loc": { - "start": { - "line": 343, - "column": 2 - }, - "end": { - "line": 356, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} EnumerationField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (enumeration)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {Array} enumeration_options - choice options of enumerable field\n * @property {string|number} [prefilled_text] - prefilled field value\n * @property {string} [label] - field label\n * @property {boolean} [custom_defined_option=false] - if 'true' user can change values, if 'false' user can only read\n ", - "start": 13899, - "end": 14763, - "loc": { - "start": { - "line": 358, - "column": 2 - }, - "end": { - "line": 373, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} RadioButton\n * @property {number} page_number - page number of document\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} value - value of radio button\n * @property {string} checked - radio button check status\n * @property {number} created - redio button creation timestamp\n ", - "start": 14767, - "end": 15265, - "loc": { - "start": { - "line": 375, - "column": 2 - }, - "end": { - "line": 385, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} RadioButtonField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (radiobutton)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {RadioButton[]} radio - array of radio buttons\n * @property {string|number} [prefilled_text] - prefilled field value\n * @property {string} [label] - field label\n ", - "start": 15269, - "end": 15979, - "loc": { - "start": { - "line": 387, - "column": 2 - }, - "end": { - "line": 401, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} FormulaTreeBranchTerminator\n * @property {string} term - name of field which will participate in calculation formula\n ", - "start": 15983, - "end": 16134, - "loc": { - "start": { - "line": 403, - "column": 2 - }, - "end": { - "line": 406, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} FormulaTreeBranch\n * @property {FormulaTree} term - a part of formula parsed into tree\n ", - "start": 16138, - "end": 16259, - "loc": { - "start": { - "line": 408, - "column": 2 - }, - "end": { - "line": 411, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} FormulaTree\n * @property {string} operator - arithmetic operator's token\n * @property {FormulaTreeBranch|FormulaTreeBranchTerminator} left - left branch of formula tree\n * @property {FormulaTreeBranch|FormulaTreeBranchTerminator} right - right branch of formula tree\n ", - "start": 16263, - "end": 16568, - "loc": { - "start": { - "line": 413, - "column": 2 - }, - "end": { - "line": 418, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} CalculatedField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (text)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} formula - arithmetic formula, e.g. 'TextName+EnumerationName'\n * @property {FormulaTree} calculation_formula - formula parsed into tree\n * @property {number} calculation_precision - calculation precision\n * @property {string} [label] - field label\n * @property {boolean} [custom_defined_option=false] - if 'true' user can change values, if 'false' user can only read\n ", - "start": 16572, - "end": 17493, - "loc": { - "start": { - "line": 420, - "column": 2 - }, - "end": { - "line": 436, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} AttachmentField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (attachment)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} [label] - field label\n ", - "start": 17497, - "end": 18071, - "loc": { - "start": { - "line": 438, - "column": 2 - }, - "end": { - "line": 450, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} DocumentFields\n * @property {number} client_timestamp - local time of user\n * @property {Array} fields - all types of fields\n ", - "start": 18075, - "end": 18353, - "loc": { - "start": { - "line": 452, - "column": 2 - }, - "end": { - "line": 456, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update document payload\n * @typedef {Object} DocumentUpdateParams\n * @property {string} id - id of specific document\n * @property {DocumentFields} fields - set of fields\n * @property {string} token - your auth token\n ", - "start": 18357, - "end": 18595, - "loc": { - "start": { - "line": 458, - "column": 2 - }, - "end": { - "line": 464, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update document response data\n * @typedef {Object} DocumentUpdateResponse\n * @property {string} id - an id of document\n * @property {Object[]} signatures - signature and initial elements\n * @property {Object[]} texts - text and enumeration elements\n * @property {Object[]} checks - checkbox elements\n * @property {Object[]} attachments - attachment elements\n * @property {Object[]} radiobuttons - radiobutton elements\n ", - "start": 18599, - "end": 19045, - "loc": { - "start": { - "line": 466, - "column": 2 - }, - "end": { - "line": 475, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Updates an existing document.\n * Adds fields (signature, text, initials, checkbox, radiobutton group, calculated) and elements (signature, text, check).\n * Every call of this method will add only specified fields into document.\n * Old fields will be removed\n * @param {DocumentUpdateParams} data - update document request payload\n * @param {function(err: ApiErrorResponse, res: DocumentUpdateResponse)} [callback] - error first node.js callback\n ", - "start": 19049, - "end": 19518, - "loc": { - "start": { - "line": 477, - "column": 2 - }, - "end": { - "line": 484, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 19521, - "end": 20083, - "loc": { - "start": { - "line": 485, - "column": 2 - }, - "end": { - "line": 508, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 19528, - "end": 19534, - "loc": { - "start": { - "line": 485, - "column": 9 - }, - "end": { - "line": 485, - "column": 15 - }, - "identifierName": "update" - }, - "name": "update" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 19536, - "end": 19572, - "loc": { - "start": { - "line": 485, - "column": 17 - }, - "end": { - "line": 489, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 19542, - "end": 19544, - "loc": { - "start": { - "line": 486, - "column": 4 - }, - "end": { - "line": 486, - "column": 6 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 19542, - "end": 19544, - "loc": { - "start": { - "line": 486, - "column": 4 - }, - "end": { - "line": 486, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 19542, - "end": 19544, - "loc": { - "start": { - "line": 486, - "column": 4 - }, - "end": { - "line": 486, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 19550, - "end": 19556, - "loc": { - "start": { - "line": 487, - "column": 4 - }, - "end": { - "line": 487, - "column": 10 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 19550, - "end": 19556, - "loc": { - "start": { - "line": 487, - "column": 4 - }, - "end": { - "line": 487, - "column": 10 - }, - "identifierName": "fields" - }, - "name": "fields" - }, - "value": { - "type": "Identifier", - "start": 19550, - "end": 19556, - "loc": { - "start": { - "line": 487, - "column": 4 - }, - "end": { - "line": 487, - "column": 10 - }, - "identifierName": "fields" - }, - "name": "fields" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 19562, - "end": 19567, - "loc": { - "start": { - "line": 488, - "column": 4 - }, - "end": { - "line": 488, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 19562, - "end": 19567, - "loc": { - "start": { - "line": 488, - "column": 4 - }, - "end": { - "line": 488, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 19562, - "end": 19567, - "loc": { - "start": { - "line": 488, - "column": 4 - }, - "end": { - "line": 488, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 19574, - "end": 19582, - "loc": { - "start": { - "line": 489, - "column": 5 - }, - "end": { - "line": 489, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 19584, - "end": 20083, - "loc": { - "start": { - "line": 489, - "column": 15 - }, - "end": { - "line": 508, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 19590, - "end": 19630, - "loc": { - "start": { - "line": 490, - "column": 4 - }, - "end": { - "line": 490, - "column": 44 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 19596, - "end": 19629, - "loc": { - "start": { - "line": 490, - "column": 10 - }, - "end": { - "line": 490, - "column": 43 - } - }, - "id": { - "type": "Identifier", - "start": 19596, - "end": 19604, - "loc": { - "start": { - "line": 490, - "column": 10 - }, - "end": { - "line": 490, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 19607, - "end": 19629, - "loc": { - "start": { - "line": 490, - "column": 21 - }, - "end": { - "line": 490, - "column": 43 - } - }, - "callee": { - "type": "MemberExpression", - "start": 19607, - "end": 19621, - "loc": { - "start": { - "line": 490, - "column": 21 - }, - "end": { - "line": 490, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 19607, - "end": 19611, - "loc": { - "start": { - "line": 490, - "column": 21 - }, - "end": { - "line": 490, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 19612, - "end": 19621, - "loc": { - "start": { - "line": 490, - "column": 26 - }, - "end": { - "line": 490, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 19622, - "end": 19628, - "loc": { - "start": { - "line": 490, - "column": 36 - }, - "end": { - "line": 490, - "column": 42 - }, - "identifierName": "fields" - }, - "name": "fields" - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 19635, - "end": 20038, - "loc": { - "start": { - "line": 491, - "column": 4 - }, - "end": { - "line": 504, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 19641, - "end": 20037, - "loc": { - "start": { - "line": 491, - "column": 10 - }, - "end": { - "line": 504, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 19641, - "end": 19644, - "loc": { - "start": { - "line": 491, - "column": 10 - }, - "end": { - "line": 491, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 19647, - "end": 20037, - "loc": { - "start": { - "line": 491, - "column": 16 - }, - "end": { - "line": 504, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 19647, - "end": 20004, - "loc": { - "start": { - "line": 491, - "column": 16 - }, - "end": { - "line": 504, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 19647, - "end": 19994, - "loc": { - "start": { - "line": 491, - "column": 16 - }, - "end": { - "line": 503, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 19647, - "end": 19667, - "loc": { - "start": { - "line": 491, - "column": 16 - }, - "end": { - "line": 492, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 19647, - "end": 19652, - "loc": { - "start": { - "line": 491, - "column": 16 - }, - "end": { - "line": 491, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 19660, - "end": 19667, - "loc": { - "start": { - "line": 492, - "column": 7 - }, - "end": { - "line": 492, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 19668, - "end": 19966, - "loc": { - "start": { - "line": 492, - "column": 15 - }, - "end": { - "line": 503, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 19668, - "end": 19687, - "loc": { - "start": { - "line": 492, - "column": 15 - }, - "end": { - "line": 492, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 19688, - "end": 19965, - "loc": { - "start": { - "line": 492, - "column": 35 - }, - "end": { - "line": 503, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 19698, - "end": 19711, - "loc": { - "start": { - "line": 493, - "column": 8 - }, - "end": { - "line": 493, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 19698, - "end": 19704, - "loc": { - "start": { - "line": 493, - "column": 8 - }, - "end": { - "line": 493, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 19706, - "end": 19711, - "loc": { - "start": { - "line": 493, - "column": 16 - }, - "end": { - "line": 493, - "column": 21 - } - }, - "extra": { - "rawValue": "PUT", - "raw": "'PUT'" - }, - "value": "PUT" - } - }, - { - "type": "ObjectProperty", - "start": 19721, - "end": 19744, - "loc": { - "start": { - "line": 494, - "column": 8 - }, - "end": { - "line": 494, - "column": 31 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 19721, - "end": 19725, - "loc": { - "start": { - "line": 494, - "column": 8 - }, - "end": { - "line": 494, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 19727, - "end": 19744, - "loc": { - "start": { - "line": 494, - "column": 14 - }, - "end": { - "line": 494, - "column": 31 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 19740, - "end": 19742, - "loc": { - "start": { - "line": 494, - "column": 27 - }, - "end": { - "line": 494, - "column": 29 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 19728, - "end": 19738, - "loc": { - "start": { - "line": 494, - "column": 15 - }, - "end": { - "line": 494, - "column": 25 - } - }, - "value": { - "raw": "/document/", - "cooked": "/document/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 19743, - "end": 19743, - "loc": { - "start": { - "line": 494, - "column": 30 - }, - "end": { - "line": 494, - "column": 30 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 19754, - "end": 19823, - "loc": { - "start": { - "line": 495, - "column": 8 - }, - "end": { - "line": 498, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 19754, - "end": 19767, - "loc": { - "start": { - "line": 495, - "column": 8 - }, - "end": { - "line": 495, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 19769, - "end": 19823, - "loc": { - "start": { - "line": 495, - "column": 23 - }, - "end": { - "line": 498, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 19781, - "end": 19795, - "loc": { - "start": { - "line": 496, - "column": 10 - }, - "end": { - "line": 496, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 19781, - "end": 19785, - "loc": { - "start": { - "line": 496, - "column": 10 - }, - "end": { - "line": 496, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 19787, - "end": 19795, - "loc": { - "start": { - "line": 496, - "column": 16 - }, - "end": { - "line": 496, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 19807, - "end": 19812, - "loc": { - "start": { - "line": 497, - "column": 10 - }, - "end": { - "line": 497, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 19807, - "end": 19812, - "loc": { - "start": { - "line": 497, - "column": 10 - }, - "end": { - "line": 497, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 19807, - "end": 19812, - "loc": { - "start": { - "line": 497, - "column": 10 - }, - "end": { - "line": 497, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 19833, - "end": 19956, - "loc": { - "start": { - "line": 499, - "column": 8 - }, - "end": { - "line": 502, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 19833, - "end": 19840, - "loc": { - "start": { - "line": 499, - "column": 8 - }, - "end": { - "line": 499, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 19842, - "end": 19956, - "loc": { - "start": { - "line": 499, - "column": 17 - }, - "end": { - "line": 502, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 19854, - "end": 19888, - "loc": { - "start": { - "line": 500, - "column": 10 - }, - "end": { - "line": 500, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 19854, - "end": 19868, - "loc": { - "start": { - "line": 500, - "column": 10 - }, - "end": { - "line": 500, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 19870, - "end": 19888, - "loc": { - "start": { - "line": 500, - "column": 26 - }, - "end": { - "line": 500, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 19900, - "end": 19945, - "loc": { - "start": { - "line": 501, - "column": 10 - }, - "end": { - "line": 501, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 19900, - "end": 19916, - "loc": { - "start": { - "line": 501, - "column": 10 - }, - "end": { - "line": 501, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 19918, - "end": 19945, - "loc": { - "start": { - "line": 501, - "column": 28 - }, - "end": { - "line": 501, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 19918, - "end": 19935, - "loc": { - "start": { - "line": 501, - "column": 28 - }, - "end": { - "line": 501, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 19918, - "end": 19924, - "loc": { - "start": { - "line": 501, - "column": 28 - }, - "end": { - "line": 501, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 19925, - "end": 19935, - "loc": { - "start": { - "line": 501, - "column": 35 - }, - "end": { - "line": 501, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 19936, - "end": 19944, - "loc": { - "start": { - "line": 501, - "column": 46 - }, - "end": { - "line": 501, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 19968, - "end": 19993, - "loc": { - "start": { - "line": 503, - "column": 10 - }, - "end": { - "line": 503, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 19968, - "end": 19983, - "loc": { - "start": { - "line": 503, - "column": 10 - }, - "end": { - "line": 503, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 19984, - "end": 19992, - "loc": { - "start": { - "line": 503, - "column": 26 - }, - "end": { - "line": 503, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 20002, - "end": 20004, - "loc": { - "start": { - "line": 504, - "column": 7 - }, - "end": { - "line": 504, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 20005, - "end": 20012, - "loc": { - "start": { - "line": 504, - "column": 10 - }, - "end": { - "line": 504, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 20014, - "end": 20036, - "loc": { - "start": { - "line": 504, - "column": 19 - }, - "end": { - "line": 504, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 20014, - "end": 20026, - "loc": { - "start": { - "line": 504, - "column": 19 - }, - "end": { - "line": 504, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 20027, - "end": 20035, - "loc": { - "start": { - "line": 504, - "column": 32 - }, - "end": { - "line": 504, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 20044, - "end": 20064, - "loc": { - "start": { - "line": 506, - "column": 4 - }, - "end": { - "line": 506, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 20044, - "end": 20063, - "loc": { - "start": { - "line": 506, - "column": 4 - }, - "end": { - "line": 506, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20044, - "end": 20053, - "loc": { - "start": { - "line": 506, - "column": 4 - }, - "end": { - "line": 506, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 20044, - "end": 20047, - "loc": { - "start": { - "line": 506, - "column": 4 - }, - "end": { - "line": 506, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 20048, - "end": 20053, - "loc": { - "start": { - "line": 506, - "column": 8 - }, - "end": { - "line": 506, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 20054, - "end": 20062, - "loc": { - "start": { - "line": 506, - "column": 14 - }, - "end": { - "line": 506, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 20069, - "end": 20079, - "loc": { - "start": { - "line": 507, - "column": 4 - }, - "end": { - "line": 507, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 20069, - "end": 20078, - "loc": { - "start": { - "line": 507, - "column": 4 - }, - "end": { - "line": 507, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20069, - "end": 20076, - "loc": { - "start": { - "line": 507, - "column": 4 - }, - "end": { - "line": 507, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 20069, - "end": 20072, - "loc": { - "start": { - "line": 507, - "column": 4 - }, - "end": { - "line": 507, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 20073, - "end": 20076, - "loc": { - "start": { - "line": 507, - "column": 8 - }, - "end": { - "line": 507, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} SignatureField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (signature)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} [label] - field label\n ", - "start": 11408, - "end": 11980, - "loc": { - "start": { - "line": 299, - "column": 2 - }, - "end": { - "line": 311, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} InitialsField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (initials)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} [label] - field label\n ", - "start": 11984, - "end": 12554, - "loc": { - "start": { - "line": 313, - "column": 2 - }, - "end": { - "line": 325, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} TextField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (text)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string|number} [prefilled_text] - prefilled field value\n * @property {string} [validator_id] - field value validator ID\n * @property {string} [label] - field label\n ", - "start": 12558, - "end": 13258, - "loc": { - "start": { - "line": 327, - "column": 2 - }, - "end": { - "line": 341, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} CheckField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (checkbox)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {boolean} [prefilled_text] - prefilled field value\n * @property {string} [label] - field label\n ", - "start": 13262, - "end": 13895, - "loc": { - "start": { - "line": 343, - "column": 2 - }, - "end": { - "line": 356, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} EnumerationField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (enumeration)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {Array} enumeration_options - choice options of enumerable field\n * @property {string|number} [prefilled_text] - prefilled field value\n * @property {string} [label] - field label\n * @property {boolean} [custom_defined_option=false] - if 'true' user can change values, if 'false' user can only read\n ", - "start": 13899, - "end": 14763, - "loc": { - "start": { - "line": 358, - "column": 2 - }, - "end": { - "line": 373, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} RadioButton\n * @property {number} page_number - page number of document\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} value - value of radio button\n * @property {string} checked - radio button check status\n * @property {number} created - redio button creation timestamp\n ", - "start": 14767, - "end": 15265, - "loc": { - "start": { - "line": 375, - "column": 2 - }, - "end": { - "line": 385, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} RadioButtonField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (radiobutton)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {RadioButton[]} radio - array of radio buttons\n * @property {string|number} [prefilled_text] - prefilled field value\n * @property {string} [label] - field label\n ", - "start": 15269, - "end": 15979, - "loc": { - "start": { - "line": 387, - "column": 2 - }, - "end": { - "line": 401, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} FormulaTreeBranchTerminator\n * @property {string} term - name of field which will participate in calculation formula\n ", - "start": 15983, - "end": 16134, - "loc": { - "start": { - "line": 403, - "column": 2 - }, - "end": { - "line": 406, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} FormulaTreeBranch\n * @property {FormulaTree} term - a part of formula parsed into tree\n ", - "start": 16138, - "end": 16259, - "loc": { - "start": { - "line": 408, - "column": 2 - }, - "end": { - "line": 411, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} FormulaTree\n * @property {string} operator - arithmetic operator's token\n * @property {FormulaTreeBranch|FormulaTreeBranchTerminator} left - left branch of formula tree\n * @property {FormulaTreeBranch|FormulaTreeBranchTerminator} right - right branch of formula tree\n ", - "start": 16263, - "end": 16568, - "loc": { - "start": { - "line": 413, - "column": 2 - }, - "end": { - "line": 418, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} CalculatedField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (text)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} formula - arithmetic formula, e.g. 'TextName+EnumerationName'\n * @property {FormulaTree} calculation_formula - formula parsed into tree\n * @property {number} calculation_precision - calculation precision\n * @property {string} [label] - field label\n * @property {boolean} [custom_defined_option=false] - if 'true' user can change values, if 'false' user can only read\n ", - "start": 16572, - "end": 17493, - "loc": { - "start": { - "line": 420, - "column": 2 - }, - "end": { - "line": 436, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} AttachmentField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (attachment)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} [label] - field label\n ", - "start": 17497, - "end": 18071, - "loc": { - "start": { - "line": 438, - "column": 2 - }, - "end": { - "line": 450, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} DocumentFields\n * @property {number} client_timestamp - local time of user\n * @property {Array} fields - all types of fields\n ", - "start": 18075, - "end": 18353, - "loc": { - "start": { - "line": 452, - "column": 2 - }, - "end": { - "line": 456, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update document payload\n * @typedef {Object} DocumentUpdateParams\n * @property {string} id - id of specific document\n * @property {DocumentFields} fields - set of fields\n * @property {string} token - your auth token\n ", - "start": 18357, - "end": 18595, - "loc": { - "start": { - "line": 458, - "column": 2 - }, - "end": { - "line": 464, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update document response data\n * @typedef {Object} DocumentUpdateResponse\n * @property {string} id - an id of document\n * @property {Object[]} signatures - signature and initial elements\n * @property {Object[]} texts - text and enumeration elements\n * @property {Object[]} checks - checkbox elements\n * @property {Object[]} attachments - attachment elements\n * @property {Object[]} radiobuttons - radiobutton elements\n ", - "start": 18599, - "end": 19045, - "loc": { - "start": { - "line": 466, - "column": 2 - }, - "end": { - "line": 475, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Updates an existing document.\n * Adds fields (signature, text, initials, checkbox, radiobutton group, calculated) and elements (signature, text, check).\n * Every call of this method will add only specified fields into document.\n * Old fields will be removed\n * @param {DocumentUpdateParams} data - update document request payload\n * @param {function(err: ApiErrorResponse, res: DocumentUpdateResponse)} [callback] - error first node.js callback\n ", - "start": 19049, - "end": 19518, - "loc": { - "start": { - "line": 477, - "column": 2 - }, - "end": { - "line": 484, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Download document optional settings\n * @typedef {Object} DocumentDownloadOptions\n * @property {boolean} [withAttachments=false] - if true document will be downloaded as zip package with its attachments\n * @property {boolean} [withHistory=false] - if true document will be downloaded with history\n ", - "start": 20087, - "end": 20403, - "loc": { - "start": { - "line": 510, - "column": 2 - }, - "end": { - "line": 515, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document download payload\n * @typedef {Object} DocumentDownloadParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n * @property {DocumentDownloadOptions} options - download document optional settings\n ", - "start": 20407, - "end": 20681, - "loc": { - "start": { - "line": 517, - "column": 2 - }, - "end": { - "line": 523, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document binary data\n * @typedef {Buffer} DocumentDownloadResponse\n ", - "start": 20685, - "end": 20768, - "loc": { - "start": { - "line": 525, - "column": 2 - }, - "end": { - "line": 528, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Downloads document with embedded fields and elements.\n * By default document is downloaded without history. To download document with history set `withHistory` option to `true`.\n * @param {DocumentDownloadParams} data - download document request payload\n * @param {function(err: ApiErrorResponse, res: DocumentDownloadResponse)} [callback] - error first node.js callback\n ", - "start": 20772, - "end": 21163, - "loc": { - "start": { - "line": 530, - "column": 2 - }, - "end": { - "line": 535, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 21166, - "end": 21871, - "loc": { - "start": { - "line": 536, - "column": 2 - }, - "end": { - "line": 561, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 21173, - "end": 21181, - "loc": { - "start": { - "line": 536, - "column": 9 - }, - "end": { - "line": 536, - "column": 17 - }, - "identifierName": "download" - }, - "name": "download" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 21183, - "end": 21292, - "loc": { - "start": { - "line": 536, - "column": 19 - }, - "end": { - "line": 543, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21189, - "end": 21191, - "loc": { - "start": { - "line": 537, - "column": 4 - }, - "end": { - "line": 537, - "column": 6 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 21189, - "end": 21191, - "loc": { - "start": { - "line": 537, - "column": 4 - }, - "end": { - "line": 537, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 21189, - "end": 21191, - "loc": { - "start": { - "line": 537, - "column": 4 - }, - "end": { - "line": 537, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 21197, - "end": 21202, - "loc": { - "start": { - "line": 538, - "column": 4 - }, - "end": { - "line": 538, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 21197, - "end": 21202, - "loc": { - "start": { - "line": 538, - "column": 4 - }, - "end": { - "line": 538, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 21197, - "end": 21202, - "loc": { - "start": { - "line": 538, - "column": 4 - }, - "end": { - "line": 538, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 21208, - "end": 21287, - "loc": { - "start": { - "line": 539, - "column": 4 - }, - "end": { - "line": 542, - "column": 10 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 21208, - "end": 21215, - "loc": { - "start": { - "line": 539, - "column": 4 - }, - "end": { - "line": 539, - "column": 11 - }, - "identifierName": "options" - }, - "name": "options" - }, - "value": { - "type": "AssignmentPattern", - "start": 21217, - "end": 21287, - "loc": { - "start": { - "line": 539, - "column": 13 - }, - "end": { - "line": 542, - "column": 10 - } - }, - "left": { - "type": "ObjectPattern", - "start": 21217, - "end": 21282, - "loc": { - "start": { - "line": 539, - "column": 13 - }, - "end": { - "line": 542, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21225, - "end": 21248, - "loc": { - "start": { - "line": 540, - "column": 6 - }, - "end": { - "line": 540, - "column": 29 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 21225, - "end": 21240, - "loc": { - "start": { - "line": 540, - "column": 6 - }, - "end": { - "line": 540, - "column": 21 - }, - "identifierName": "withAttachments" - }, - "name": "withAttachments" - }, - "value": { - "type": "AssignmentPattern", - "start": 21225, - "end": 21248, - "loc": { - "start": { - "line": 540, - "column": 6 - }, - "end": { - "line": 540, - "column": 29 - } - }, - "left": { - "type": "Identifier", - "start": 21225, - "end": 21240, - "loc": { - "start": { - "line": 540, - "column": 6 - }, - "end": { - "line": 540, - "column": 21 - }, - "identifierName": "withAttachments" - }, - "name": "withAttachments" - }, - "right": { - "type": "BooleanLiteral", - "start": 21243, - "end": 21248, - "loc": { - "start": { - "line": 540, - "column": 24 - }, - "end": { - "line": 540, - "column": 29 - } - }, - "value": false - } - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 21256, - "end": 21275, - "loc": { - "start": { - "line": 541, - "column": 6 - }, - "end": { - "line": 541, - "column": 25 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 21256, - "end": 21267, - "loc": { - "start": { - "line": 541, - "column": 6 - }, - "end": { - "line": 541, - "column": 17 - }, - "identifierName": "withHistory" - }, - "name": "withHistory" - }, - "value": { - "type": "AssignmentPattern", - "start": 21256, - "end": 21275, - "loc": { - "start": { - "line": 541, - "column": 6 - }, - "end": { - "line": 541, - "column": 25 - } - }, - "left": { - "type": "Identifier", - "start": 21256, - "end": 21267, - "loc": { - "start": { - "line": 541, - "column": 6 - }, - "end": { - "line": 541, - "column": 17 - }, - "identifierName": "withHistory" - }, - "name": "withHistory" - }, - "right": { - "type": "BooleanLiteral", - "start": 21270, - "end": 21275, - "loc": { - "start": { - "line": 541, - "column": 20 - }, - "end": { - "line": 541, - "column": 25 - } - }, - "value": false - } - }, - "extra": { - "shorthand": true - } - } - ] - }, - "right": { - "type": "ObjectExpression", - "start": 21285, - "end": 21287, - "loc": { - "start": { - "line": 542, - "column": 8 - }, - "end": { - "line": 542, - "column": 10 - } - }, - "properties": [] - } - } - } - ] - }, - { - "type": "Identifier", - "start": 21294, - "end": 21302, - "loc": { - "start": { - "line": 543, - "column": 5 - }, - "end": { - "line": 543, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 21304, - "end": 21871, - "loc": { - "start": { - "line": 543, - "column": 15 - }, - "end": { - "line": 561, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 21310, - "end": 21333, - "loc": { - "start": { - "line": 544, - "column": 4 - }, - "end": { - "line": 544, - "column": 27 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 21316, - "end": 21332, - "loc": { - "start": { - "line": 544, - "column": 10 - }, - "end": { - "line": 544, - "column": 26 - } - }, - "id": { - "type": "Identifier", - "start": 21316, - "end": 21327, - "loc": { - "start": { - "line": 544, - "column": 10 - }, - "end": { - "line": 544, - "column": 21 - }, - "identifierName": "queryParams" - }, - "name": "queryParams" - }, - "init": { - "type": "ObjectExpression", - "start": 21330, - "end": 21332, - "loc": { - "start": { - "line": 544, - "column": 24 - }, - "end": { - "line": 544, - "column": 26 - } - }, - "properties": [] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 21338, - "end": 21392, - "loc": { - "start": { - "line": 545, - "column": 4 - }, - "end": { - "line": 545, - "column": 58 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 21344, - "end": 21391, - "loc": { - "start": { - "line": 545, - "column": 10 - }, - "end": { - "line": 545, - "column": 57 - } - }, - "id": { - "type": "Identifier", - "start": 21344, - "end": 21359, - "loc": { - "start": { - "line": 545, - "column": 10 - }, - "end": { - "line": 545, - "column": 25 - }, - "identifierName": "clientTimestamp" - }, - "name": "clientTimestamp" - }, - "init": { - "type": "CallExpression", - "start": 21362, - "end": 21391, - "loc": { - "start": { - "line": 545, - "column": 28 - }, - "end": { - "line": 545, - "column": 57 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21362, - "end": 21372, - "loc": { - "start": { - "line": 545, - "column": 28 - }, - "end": { - "line": 545, - "column": 38 - } - }, - "object": { - "type": "Identifier", - "start": 21362, - "end": 21366, - "loc": { - "start": { - "line": 545, - "column": 28 - }, - "end": { - "line": 545, - "column": 32 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 21367, - "end": 21372, - "loc": { - "start": { - "line": 545, - "column": 33 - }, - "end": { - "line": 545, - "column": 38 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 21373, - "end": 21390, - "loc": { - "start": { - "line": 545, - "column": 39 - }, - "end": { - "line": 545, - "column": 56 - } - }, - "left": { - "type": "CallExpression", - "start": 21373, - "end": 21383, - "loc": { - "start": { - "line": 545, - "column": 39 - }, - "end": { - "line": 545, - "column": 49 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21373, - "end": 21381, - "loc": { - "start": { - "line": 545, - "column": 39 - }, - "end": { - "line": 545, - "column": 47 - } - }, - "object": { - "type": "Identifier", - "start": 21373, - "end": 21377, - "loc": { - "start": { - "line": 545, - "column": 39 - }, - "end": { - "line": 545, - "column": 43 - }, - "identifierName": "Date" - }, - "name": "Date" - }, - "property": { - "type": "Identifier", - "start": 21378, - "end": 21381, - "loc": { - "start": { - "line": 545, - "column": 44 - }, - "end": { - "line": 545, - "column": 47 - }, - "identifierName": "now" - }, - "name": "now" - }, - "computed": false - }, - "arguments": [] - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 21386, - "end": 21390, - "loc": { - "start": { - "line": 545, - "column": 52 - }, - "end": { - "line": 545, - "column": 56 - } - }, - "extra": { - "rawValue": 1000, - "raw": "1000" - }, - "value": 1000 - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 21398, - "end": 21455, - "loc": { - "start": { - "line": 547, - "column": 4 - }, - "end": { - "line": 547, - "column": 61 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 21398, - "end": 21454, - "loc": { - "start": { - "line": 547, - "column": 4 - }, - "end": { - "line": 547, - "column": 60 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 21398, - "end": 21414, - "loc": { - "start": { - "line": 547, - "column": 4 - }, - "end": { - "line": 547, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 21398, - "end": 21409, - "loc": { - "start": { - "line": 547, - "column": 4 - }, - "end": { - "line": 547, - "column": 15 - }, - "identifierName": "queryParams" - }, - "name": "queryParams" - }, - "property": { - "type": "Identifier", - "start": 21410, - "end": 21414, - "loc": { - "start": { - "line": 547, - "column": 16 - }, - "end": { - "line": 547, - "column": 20 - }, - "identifierName": "type" - }, - "name": "type" - }, - "computed": false - }, - "right": { - "type": "ConditionalExpression", - "start": 21417, - "end": 21454, - "loc": { - "start": { - "line": 547, - "column": 23 - }, - "end": { - "line": 547, - "column": 60 - } - }, - "test": { - "type": "Identifier", - "start": 21417, - "end": 21432, - "loc": { - "start": { - "line": 547, - "column": 23 - }, - "end": { - "line": 547, - "column": 38 - }, - "identifierName": "withAttachments" - }, - "name": "withAttachments" - }, - "consequent": { - "type": "StringLiteral", - "start": 21435, - "end": 21440, - "loc": { - "start": { - "line": 547, - "column": 41 - }, - "end": { - "line": 547, - "column": 46 - } - }, - "extra": { - "rawValue": "zip", - "raw": "'zip'" - }, - "value": "zip" - }, - "alternate": { - "type": "StringLiteral", - "start": 21443, - "end": 21454, - "loc": { - "start": { - "line": 547, - "column": 49 - }, - "end": { - "line": 547, - "column": 60 - } - }, - "extra": { - "rawValue": "collapsed", - "raw": "'collapsed'" - }, - "value": "collapsed" - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 21460, - "end": 21508, - "loc": { - "start": { - "line": 548, - "column": 4 - }, - "end": { - "line": 548, - "column": 52 - } - }, - "expression": { - "type": "LogicalExpression", - "start": 21460, - "end": 21507, - "loc": { - "start": { - "line": 548, - "column": 4 - }, - "end": { - "line": 548, - "column": 51 - } - }, - "left": { - "type": "Identifier", - "start": 21460, - "end": 21471, - "loc": { - "start": { - "line": 548, - "column": 4 - }, - "end": { - "line": 548, - "column": 15 - }, - "identifierName": "withHistory" - }, - "name": "withHistory" - }, - "operator": "&&", - "right": { - "type": "AssignmentExpression", - "start": 21476, - "end": 21506, - "loc": { - "start": { - "line": 548, - "column": 20 - }, - "end": { - "line": 548, - "column": 50 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 21476, - "end": 21500, - "loc": { - "start": { - "line": 548, - "column": 20 - }, - "end": { - "line": 548, - "column": 44 - } - }, - "object": { - "type": "Identifier", - "start": 21476, - "end": 21487, - "loc": { - "start": { - "line": 548, - "column": 20 - }, - "end": { - "line": 548, - "column": 31 - }, - "identifierName": "queryParams" - }, - "name": "queryParams" - }, - "property": { - "type": "Identifier", - "start": 21488, - "end": 21500, - "loc": { - "start": { - "line": 548, - "column": 32 - }, - "end": { - "line": 548, - "column": 44 - }, - "identifierName": "with_history" - }, - "name": "with_history" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 21503, - "end": 21506, - "loc": { - "start": { - "line": 548, - "column": 47 - }, - "end": { - "line": 548, - "column": 50 - } - }, - "extra": { - "rawValue": "1", - "raw": "'1'" - }, - "value": "1" - }, - "extra": { - "parenthesized": true, - "parenStart": 21475 - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 21514, - "end": 21867, - "loc": { - "start": { - "line": 550, - "column": 4 - }, - "end": { - "line": 560, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 21514, - "end": 21866, - "loc": { - "start": { - "line": 550, - "column": 4 - }, - "end": { - "line": 560, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21514, - "end": 21864, - "loc": { - "start": { - "line": 550, - "column": 4 - }, - "end": { - "line": 560, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 21514, - "end": 21853, - "loc": { - "start": { - "line": 550, - "column": 4 - }, - "end": { - "line": 559, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21514, - "end": 21820, - "loc": { - "start": { - "line": 550, - "column": 4 - }, - "end": { - "line": 559, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 21514, - "end": 21810, - "loc": { - "start": { - "line": 550, - "column": 4 - }, - "end": { - "line": 558, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21514, - "end": 21534, - "loc": { - "start": { - "line": 550, - "column": 4 - }, - "end": { - "line": 551, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 21514, - "end": 21519, - "loc": { - "start": { - "line": 550, - "column": 4 - }, - "end": { - "line": 550, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 21527, - "end": 21534, - "loc": { - "start": { - "line": 551, - "column": 7 - }, - "end": { - "line": 551, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 21535, - "end": 21782, - "loc": { - "start": { - "line": 551, - "column": 15 - }, - "end": { - "line": 558, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 21535, - "end": 21554, - "loc": { - "start": { - "line": 551, - "column": 15 - }, - "end": { - "line": 551, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 21555, - "end": 21781, - "loc": { - "start": { - "line": 551, - "column": 35 - }, - "end": { - "line": 558, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21565, - "end": 21578, - "loc": { - "start": { - "line": 552, - "column": 8 - }, - "end": { - "line": 552, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 21565, - "end": 21571, - "loc": { - "start": { - "line": 552, - "column": 8 - }, - "end": { - "line": 552, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 21573, - "end": 21578, - "loc": { - "start": { - "line": 552, - "column": 16 - }, - "end": { - "line": 552, - "column": 21 - } - }, - "extra": { - "rawValue": "GET", - "raw": "'GET'" - }, - "value": "GET" - } - }, - { - "type": "ObjectProperty", - "start": 21588, - "end": 21693, - "loc": { - "start": { - "line": 553, - "column": 8 - }, - "end": { - "line": 553, - "column": 113 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 21588, - "end": 21592, - "loc": { - "start": { - "line": 553, - "column": 8 - }, - "end": { - "line": 553, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 21594, - "end": 21693, - "loc": { - "start": { - "line": 553, - "column": 14 - }, - "end": { - "line": 553, - "column": 113 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 21607, - "end": 21609, - "loc": { - "start": { - "line": 553, - "column": 27 - }, - "end": { - "line": 553, - "column": 29 - }, - "identifierName": "id" - }, - "name": "id" - }, - { - "type": "Identifier", - "start": 21639, - "end": 21654, - "loc": { - "start": { - "line": 553, - "column": 59 - }, - "end": { - "line": 553, - "column": 74 - }, - "identifierName": "clientTimestamp" - }, - "name": "clientTimestamp" - }, - { - "type": "CallExpression", - "start": 21658, - "end": 21691, - "loc": { - "start": { - "line": 553, - "column": 78 - }, - "end": { - "line": 553, - "column": 111 - } - }, - "callee": { - "type": "Identifier", - "start": 21658, - "end": 21678, - "loc": { - "start": { - "line": 553, - "column": 78 - }, - "end": { - "line": 553, - "column": 98 - }, - "identifierName": "stringifyQueryParams" - }, - "name": "stringifyQueryParams" - }, - "arguments": [ - { - "type": "Identifier", - "start": 21679, - "end": 21690, - "loc": { - "start": { - "line": 553, - "column": 99 - }, - "end": { - "line": 553, - "column": 110 - }, - "identifierName": "queryParams" - }, - "name": "queryParams" - } - ] - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 21595, - "end": 21605, - "loc": { - "start": { - "line": 553, - "column": 15 - }, - "end": { - "line": 553, - "column": 25 - } - }, - "value": { - "raw": "/document/", - "cooked": "/document/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 21610, - "end": 21637, - "loc": { - "start": { - "line": 553, - "column": 30 - }, - "end": { - "line": 553, - "column": 57 - } - }, - "value": { - "raw": "/download?client_timestamp=", - "cooked": "/download?client_timestamp=" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 21655, - "end": 21656, - "loc": { - "start": { - "line": 553, - "column": 75 - }, - "end": { - "line": 553, - "column": 76 - } - }, - "value": { - "raw": "&", - "cooked": "&" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 21692, - "end": 21692, - "loc": { - "start": { - "line": 553, - "column": 112 - }, - "end": { - "line": 553, - "column": 112 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 21703, - "end": 21772, - "loc": { - "start": { - "line": 554, - "column": 8 - }, - "end": { - "line": 557, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 21703, - "end": 21716, - "loc": { - "start": { - "line": 554, - "column": 8 - }, - "end": { - "line": 554, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 21718, - "end": 21772, - "loc": { - "start": { - "line": 554, - "column": 23 - }, - "end": { - "line": 557, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21730, - "end": 21744, - "loc": { - "start": { - "line": 555, - "column": 10 - }, - "end": { - "line": 555, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 21730, - "end": 21734, - "loc": { - "start": { - "line": 555, - "column": 10 - }, - "end": { - "line": 555, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 21736, - "end": 21744, - "loc": { - "start": { - "line": 555, - "column": 16 - }, - "end": { - "line": 555, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 21756, - "end": 21761, - "loc": { - "start": { - "line": 556, - "column": 10 - }, - "end": { - "line": 556, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 21756, - "end": 21761, - "loc": { - "start": { - "line": 556, - "column": 10 - }, - "end": { - "line": 556, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 21756, - "end": 21761, - "loc": { - "start": { - "line": 556, - "column": 10 - }, - "end": { - "line": 556, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 21784, - "end": 21809, - "loc": { - "start": { - "line": 558, - "column": 10 - }, - "end": { - "line": 558, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 21784, - "end": 21799, - "loc": { - "start": { - "line": 558, - "column": 10 - }, - "end": { - "line": 558, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 21800, - "end": 21808, - "loc": { - "start": { - "line": 558, - "column": 26 - }, - "end": { - "line": 558, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 21818, - "end": 21820, - "loc": { - "start": { - "line": 559, - "column": 7 - }, - "end": { - "line": 559, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 21821, - "end": 21828, - "loc": { - "start": { - "line": 559, - "column": 10 - }, - "end": { - "line": 559, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 21830, - "end": 21852, - "loc": { - "start": { - "line": 559, - "column": 19 - }, - "end": { - "line": 559, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 21830, - "end": 21842, - "loc": { - "start": { - "line": 559, - "column": 19 - }, - "end": { - "line": 559, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 21843, - "end": 21851, - "loc": { - "start": { - "line": 559, - "column": 32 - }, - "end": { - "line": 559, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 21861, - "end": 21864, - "loc": { - "start": { - "line": 560, - "column": 7 - }, - "end": { - "line": 560, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Download document optional settings\n * @typedef {Object} DocumentDownloadOptions\n * @property {boolean} [withAttachments=false] - if true document will be downloaded as zip package with its attachments\n * @property {boolean} [withHistory=false] - if true document will be downloaded with history\n ", - "start": 20087, - "end": 20403, - "loc": { - "start": { - "line": 510, - "column": 2 - }, - "end": { - "line": 515, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document download payload\n * @typedef {Object} DocumentDownloadParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n * @property {DocumentDownloadOptions} options - download document optional settings\n ", - "start": 20407, - "end": 20681, - "loc": { - "start": { - "line": 517, - "column": 2 - }, - "end": { - "line": 523, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document binary data\n * @typedef {Buffer} DocumentDownloadResponse\n ", - "start": 20685, - "end": 20768, - "loc": { - "start": { - "line": 525, - "column": 2 - }, - "end": { - "line": 528, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Downloads document with embedded fields and elements.\n * By default document is downloaded without history. To download document with history set `withHistory` option to `true`.\n * @param {DocumentDownloadParams} data - download document request payload\n * @param {function(err: ApiErrorResponse, res: DocumentDownloadResponse)} [callback] - error first node.js callback\n ", - "start": 20772, - "end": 21163, - "loc": { - "start": { - "line": 530, - "column": 2 - }, - "end": { - "line": 535, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document share payload\n * @typedef {Object} DocumentShareParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 21875, - "end": 22056, - "loc": { - "start": { - "line": 563, - "column": 2 - }, - "end": { - "line": 568, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document share response data\n * @typedef {Object} DocumentShareResponse\n * @property {string} link - link to download specified document in PDF format\n ", - "start": 22060, - "end": 22229, - "loc": { - "start": { - "line": 570, - "column": 2 - }, - "end": { - "line": 574, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Requests a link to download document with embedded fields and elements\n * Link can be used once and then will expire\n * @param {DocumentShareParams} data - share document request payload\n * @param {function(err: ApiErrorResponse, res: DocumentShareResponse)} [callback] - error first node.js callback\n ", - "start": 22233, - "end": 22554, - "loc": { - "start": { - "line": 576, - "column": 2 - }, - "end": { - "line": 581, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 22557, - "end": 22892, - "loc": { - "start": { - "line": 582, - "column": 2 - }, - "end": { - "line": 594, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 22564, - "end": 22569, - "loc": { - "start": { - "line": 582, - "column": 9 - }, - "end": { - "line": 582, - "column": 14 - }, - "identifierName": "share" - }, - "name": "share" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 22571, - "end": 22584, - "loc": { - "start": { - "line": 582, - "column": 16 - }, - "end": { - "line": 582, - "column": 29 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 22573, - "end": 22575, - "loc": { - "start": { - "line": 582, - "column": 18 - }, - "end": { - "line": 582, - "column": 20 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 22573, - "end": 22575, - "loc": { - "start": { - "line": 582, - "column": 18 - }, - "end": { - "line": 582, - "column": 20 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 22573, - "end": 22575, - "loc": { - "start": { - "line": 582, - "column": 18 - }, - "end": { - "line": 582, - "column": 20 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 22577, - "end": 22582, - "loc": { - "start": { - "line": 582, - "column": 22 - }, - "end": { - "line": 582, - "column": 27 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 22577, - "end": 22582, - "loc": { - "start": { - "line": 582, - "column": 22 - }, - "end": { - "line": 582, - "column": 27 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 22577, - "end": 22582, - "loc": { - "start": { - "line": 582, - "column": 22 - }, - "end": { - "line": 582, - "column": 27 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 22586, - "end": 22594, - "loc": { - "start": { - "line": 582, - "column": 31 - }, - "end": { - "line": 582, - "column": 39 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 22596, - "end": 22892, - "loc": { - "start": { - "line": 582, - "column": 41 - }, - "end": { - "line": 594, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 22602, - "end": 22888, - "loc": { - "start": { - "line": 583, - "column": 4 - }, - "end": { - "line": 593, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 22602, - "end": 22887, - "loc": { - "start": { - "line": 583, - "column": 4 - }, - "end": { - "line": 593, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 22602, - "end": 22885, - "loc": { - "start": { - "line": 583, - "column": 4 - }, - "end": { - "line": 593, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 22602, - "end": 22874, - "loc": { - "start": { - "line": 583, - "column": 4 - }, - "end": { - "line": 592, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 22602, - "end": 22841, - "loc": { - "start": { - "line": 583, - "column": 4 - }, - "end": { - "line": 592, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 22602, - "end": 22831, - "loc": { - "start": { - "line": 583, - "column": 4 - }, - "end": { - "line": 591, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 22602, - "end": 22622, - "loc": { - "start": { - "line": 583, - "column": 4 - }, - "end": { - "line": 584, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 22602, - "end": 22607, - "loc": { - "start": { - "line": 583, - "column": 4 - }, - "end": { - "line": 583, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 22615, - "end": 22622, - "loc": { - "start": { - "line": 584, - "column": 7 - }, - "end": { - "line": 584, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 22623, - "end": 22803, - "loc": { - "start": { - "line": 584, - "column": 15 - }, - "end": { - "line": 591, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 22623, - "end": 22642, - "loc": { - "start": { - "line": 584, - "column": 15 - }, - "end": { - "line": 584, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 22643, - "end": 22802, - "loc": { - "start": { - "line": 584, - "column": 35 - }, - "end": { - "line": 591, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 22653, - "end": 22667, - "loc": { - "start": { - "line": 585, - "column": 8 - }, - "end": { - "line": 585, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 22653, - "end": 22659, - "loc": { - "start": { - "line": 585, - "column": 8 - }, - "end": { - "line": 585, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 22661, - "end": 22667, - "loc": { - "start": { - "line": 585, - "column": 16 - }, - "end": { - "line": 585, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 22677, - "end": 22714, - "loc": { - "start": { - "line": 586, - "column": 8 - }, - "end": { - "line": 586, - "column": 45 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 22677, - "end": 22681, - "loc": { - "start": { - "line": 586, - "column": 8 - }, - "end": { - "line": 586, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 22683, - "end": 22714, - "loc": { - "start": { - "line": 586, - "column": 14 - }, - "end": { - "line": 586, - "column": 45 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 22696, - "end": 22698, - "loc": { - "start": { - "line": 586, - "column": 27 - }, - "end": { - "line": 586, - "column": 29 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 22684, - "end": 22694, - "loc": { - "start": { - "line": 586, - "column": 15 - }, - "end": { - "line": 586, - "column": 25 - } - }, - "value": { - "raw": "/document/", - "cooked": "/document/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 22699, - "end": 22713, - "loc": { - "start": { - "line": 586, - "column": 30 - }, - "end": { - "line": 586, - "column": 44 - } - }, - "value": { - "raw": "/download/link", - "cooked": "/download/link" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 22724, - "end": 22793, - "loc": { - "start": { - "line": 587, - "column": 8 - }, - "end": { - "line": 590, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 22724, - "end": 22737, - "loc": { - "start": { - "line": 587, - "column": 8 - }, - "end": { - "line": 587, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 22739, - "end": 22793, - "loc": { - "start": { - "line": 587, - "column": 23 - }, - "end": { - "line": 590, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 22751, - "end": 22765, - "loc": { - "start": { - "line": 588, - "column": 10 - }, - "end": { - "line": 588, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 22751, - "end": 22755, - "loc": { - "start": { - "line": 588, - "column": 10 - }, - "end": { - "line": 588, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 22757, - "end": 22765, - "loc": { - "start": { - "line": 588, - "column": 16 - }, - "end": { - "line": 588, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 22777, - "end": 22782, - "loc": { - "start": { - "line": 589, - "column": 10 - }, - "end": { - "line": 589, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 22777, - "end": 22782, - "loc": { - "start": { - "line": 589, - "column": 10 - }, - "end": { - "line": 589, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 22777, - "end": 22782, - "loc": { - "start": { - "line": 589, - "column": 10 - }, - "end": { - "line": 589, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 22805, - "end": 22830, - "loc": { - "start": { - "line": 591, - "column": 10 - }, - "end": { - "line": 591, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 22805, - "end": 22820, - "loc": { - "start": { - "line": 591, - "column": 10 - }, - "end": { - "line": 591, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 22821, - "end": 22829, - "loc": { - "start": { - "line": 591, - "column": 26 - }, - "end": { - "line": 591, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 22839, - "end": 22841, - "loc": { - "start": { - "line": 592, - "column": 7 - }, - "end": { - "line": 592, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 22842, - "end": 22849, - "loc": { - "start": { - "line": 592, - "column": 10 - }, - "end": { - "line": 592, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 22851, - "end": 22873, - "loc": { - "start": { - "line": 592, - "column": 19 - }, - "end": { - "line": 592, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 22851, - "end": 22863, - "loc": { - "start": { - "line": 592, - "column": 19 - }, - "end": { - "line": 592, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 22864, - "end": 22872, - "loc": { - "start": { - "line": 592, - "column": 32 - }, - "end": { - "line": 592, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 22882, - "end": 22885, - "loc": { - "start": { - "line": 593, - "column": 7 - }, - "end": { - "line": 593, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document share payload\n * @typedef {Object} DocumentShareParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 21875, - "end": 22056, - "loc": { - "start": { - "line": 563, - "column": 2 - }, - "end": { - "line": 568, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document share response data\n * @typedef {Object} DocumentShareResponse\n * @property {string} link - link to download specified document in PDF format\n ", - "start": 22060, - "end": 22229, - "loc": { - "start": { - "line": 570, - "column": 2 - }, - "end": { - "line": 574, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Requests a link to download document with embedded fields and elements\n * Link can be used once and then will expire\n * @param {DocumentShareParams} data - share document request payload\n * @param {function(err: ApiErrorResponse, res: DocumentShareResponse)} [callback] - error first node.js callback\n ", - "start": 22233, - "end": 22554, - "loc": { - "start": { - "line": 576, - "column": 2 - }, - "end": { - "line": 581, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document invite signer settings\n * @typedef {Object} SignerSettings\n * @property {string} email - signer's email\n * @property {string} role - role name\n * @property {string} [role_id] - role unique id (can be discovered in document details)\n * @property {number} order - role signing order\n * @property {string} reassign - allow reassign signer\n * @property {string} decline_by_signature - signer can decline invite\n * @property {number} reminder - remind via email in days\n * @property {number} expiration_days - expiration of invite in days\n * @property {string} [subject] - specify subject of email\n * @property {string} [message] - specify body of email\n ", - "start": 22896, - "end": 23590, - "loc": { - "start": { - "line": 596, - "column": 2 - }, - "end": { - "line": 609, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document invite settings\n * @typedef {Object} DocumentInviteSettings\n * @property {string} from - email of sender\n * @property {SignerSettings[]|string} to - array of signers or email of single signer\n * @property {string} [document_id] - an id of document\n * @property {string[]} [cc] - array with emails of copy receivers\n * @property {string} [subject] - specify subject of email\n * @property {string} [message] - specify body of email\n * @property {string} [on_complete] - on signing complete action\n ", - "start": 23594, - "end": 24128, - "loc": { - "start": { - "line": 611, - "column": 2 - }, - "end": { - "line": 621, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document invite optional settings\n * @typedef {Object} DocumentInviteOptions\n * @property {string} [email] - ability to disable invitation by email. to disable email assign value 'disable'\n ", - "start": 24132, - "end": 24339, - "loc": { - "start": { - "line": 623, - "column": 2 - }, - "end": { - "line": 627, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document invite payload\n * @typedef {Object} DocumentInviteParams\n * @property {string} id - an id of document\n * @property {DocumentInviteSettings} data - document invite settings\n * @property {DocumentInviteOptions} [options] - document invite optional settings\n * @property {string} token - your auth token\n ", - "start": 24343, - "end": 24684, - "loc": { - "start": { - "line": 629, - "column": 2 - }, - "end": { - "line": 636, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document field invite response data\n * @typedef {Object} DocumentFieldInviteResponse\n * @property {string} status - status of invitation, e.g. 'success'\n ", - "start": 24688, - "end": 24866, - "loc": { - "start": { - "line": 638, - "column": 2 - }, - "end": { - "line": 642, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document free form invite response data\n * @typedef {Object} DocumentFreeformInviteResponse\n * @property {string} result - free form invitation result, e.g. 'success'\n * @property {string} id - unique id of invite\n * @property {string} callback_url - url for front-end redirect or 'none'\n ", - "start": 24870, - "end": 25187, - "loc": { - "start": { - "line": 644, - "column": 2 - }, - "end": { - "line": 650, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document invite response data\n * @typedef {DocumentFieldInviteResponse|DocumentFreeformInviteResponse} DocumentInviteResponse\n ", - "start": 25191, - "end": 25340, - "loc": { - "start": { - "line": 652, - "column": 2 - }, - "end": { - "line": 655, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates an invite to sign a document.\n * You can create a simple free form invite(s) or a role-based invite(s).\n * @param {DocumentInviteParams} data - create document invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentInviteResponse)} [callback] - error first node.js callback\n ", - "start": 25344, - "end": 25662, - "loc": { - "start": { - "line": 657, - "column": 2 - }, - "end": { - "line": 662, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 25665, - "end": 26428, - "loc": { - "start": { - "line": 663, - "column": 2 - }, - "end": { - "line": 695, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 25672, - "end": 25678, - "loc": { - "start": { - "line": 663, - "column": 9 - }, - "end": { - "line": 663, - "column": 15 - }, - "identifierName": "invite" - }, - "name": "invite" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 25680, - "end": 25743, - "loc": { - "start": { - "line": 663, - "column": 17 - }, - "end": { - "line": 668, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 25686, - "end": 25688, - "loc": { - "start": { - "line": 664, - "column": 4 - }, - "end": { - "line": 664, - "column": 6 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 25686, - "end": 25688, - "loc": { - "start": { - "line": 664, - "column": 4 - }, - "end": { - "line": 664, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 25686, - "end": 25688, - "loc": { - "start": { - "line": 664, - "column": 4 - }, - "end": { - "line": 664, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 25694, - "end": 25698, - "loc": { - "start": { - "line": 665, - "column": 4 - }, - "end": { - "line": 665, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 25694, - "end": 25698, - "loc": { - "start": { - "line": 665, - "column": 4 - }, - "end": { - "line": 665, - "column": 8 - }, - "identifierName": "data" - }, - "name": "data" - }, - "value": { - "type": "Identifier", - "start": 25694, - "end": 25698, - "loc": { - "start": { - "line": 665, - "column": 4 - }, - "end": { - "line": 665, - "column": 8 - }, - "identifierName": "data" - }, - "name": "data" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 25704, - "end": 25727, - "loc": { - "start": { - "line": 666, - "column": 4 - }, - "end": { - "line": 666, - "column": 27 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 25704, - "end": 25711, - "loc": { - "start": { - "line": 666, - "column": 4 - }, - "end": { - "line": 666, - "column": 11 - }, - "identifierName": "options" - }, - "name": "options" - }, - "value": { - "type": "AssignmentPattern", - "start": 25713, - "end": 25727, - "loc": { - "start": { - "line": 666, - "column": 13 - }, - "end": { - "line": 666, - "column": 27 - } - }, - "left": { - "type": "ObjectPattern", - "start": 25713, - "end": 25722, - "loc": { - "start": { - "line": 666, - "column": 13 - }, - "end": { - "line": 666, - "column": 22 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 25715, - "end": 25720, - "loc": { - "start": { - "line": 666, - "column": 15 - }, - "end": { - "line": 666, - "column": 20 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 25715, - "end": 25720, - "loc": { - "start": { - "line": 666, - "column": 15 - }, - "end": { - "line": 666, - "column": 20 - }, - "identifierName": "email" - }, - "name": "email" - }, - "value": { - "type": "Identifier", - "start": 25715, - "end": 25720, - "loc": { - "start": { - "line": 666, - "column": 15 - }, - "end": { - "line": 666, - "column": 20 - }, - "identifierName": "email" - }, - "name": "email" - }, - "extra": { - "shorthand": true - } - } - ] - }, - "right": { - "type": "ObjectExpression", - "start": 25725, - "end": 25727, - "loc": { - "start": { - "line": 666, - "column": 25 - }, - "end": { - "line": 666, - "column": 27 - } - }, - "properties": [] - } - } - }, - { - "type": "ObjectProperty", - "start": 25733, - "end": 25738, - "loc": { - "start": { - "line": 667, - "column": 4 - }, - "end": { - "line": 667, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 25733, - "end": 25738, - "loc": { - "start": { - "line": 667, - "column": 4 - }, - "end": { - "line": 667, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 25733, - "end": 25738, - "loc": { - "start": { - "line": 667, - "column": 4 - }, - "end": { - "line": 667, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 25745, - "end": 25753, - "loc": { - "start": { - "line": 668, - "column": 5 - }, - "end": { - "line": 668, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 25755, - "end": 26428, - "loc": { - "start": { - "line": 668, - "column": 15 - }, - "end": { - "line": 695, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 25761, - "end": 25825, - "loc": { - "start": { - "line": 669, - "column": 4 - }, - "end": { - "line": 669, - "column": 68 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 25767, - "end": 25824, - "loc": { - "start": { - "line": 669, - "column": 10 - }, - "end": { - "line": 669, - "column": 67 - } - }, - "id": { - "type": "Identifier", - "start": 25767, - "end": 25777, - "loc": { - "start": { - "line": 669, - "column": 10 - }, - "end": { - "line": 669, - "column": 20 - }, - "identifierName": "inviteData" - }, - "name": "inviteData" - }, - "init": { - "type": "CallExpression", - "start": 25780, - "end": 25824, - "loc": { - "start": { - "line": 669, - "column": 23 - }, - "end": { - "line": 669, - "column": 67 - } - }, - "callee": { - "type": "MemberExpression", - "start": 25780, - "end": 25793, - "loc": { - "start": { - "line": 669, - "column": 23 - }, - "end": { - "line": 669, - "column": 36 - } - }, - "object": { - "type": "Identifier", - "start": 25780, - "end": 25786, - "loc": { - "start": { - "line": 669, - "column": 23 - }, - "end": { - "line": 669, - "column": 29 - }, - "identifierName": "Object" - }, - "name": "Object" - }, - "property": { - "type": "Identifier", - "start": 25787, - "end": 25793, - "loc": { - "start": { - "line": 669, - "column": 30 - }, - "end": { - "line": 669, - "column": 36 - }, - "identifierName": "assign" - }, - "name": "assign" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 25794, - "end": 25796, - "loc": { - "start": { - "line": 669, - "column": 37 - }, - "end": { - "line": 669, - "column": 39 - } - }, - "properties": [] - }, - { - "type": "Identifier", - "start": 25798, - "end": 25802, - "loc": { - "start": { - "line": 669, - "column": 41 - }, - "end": { - "line": 669, - "column": 45 - }, - "identifierName": "data" - }, - "name": "data" - }, - { - "type": "ObjectExpression", - "start": 25804, - "end": 25823, - "loc": { - "start": { - "line": 669, - "column": 47 - }, - "end": { - "line": 669, - "column": 66 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 25806, - "end": 25821, - "loc": { - "start": { - "line": 669, - "column": 49 - }, - "end": { - "line": 669, - "column": 64 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 25806, - "end": 25817, - "loc": { - "start": { - "line": 669, - "column": 49 - }, - "end": { - "line": 669, - "column": 60 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "value": { - "type": "Identifier", - "start": 25819, - "end": 25821, - "loc": { - "start": { - "line": 669, - "column": 62 - }, - "end": { - "line": 669, - "column": 64 - }, - "identifierName": "id" - }, - "name": "id" - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 25831, - "end": 25875, - "loc": { - "start": { - "line": 671, - "column": 4 - }, - "end": { - "line": 671, - "column": 48 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 25837, - "end": 25874, - "loc": { - "start": { - "line": 671, - "column": 10 - }, - "end": { - "line": 671, - "column": 47 - } - }, - "id": { - "type": "Identifier", - "start": 25837, - "end": 25845, - "loc": { - "start": { - "line": 671, - "column": 10 - }, - "end": { - "line": 671, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 25848, - "end": 25874, - "loc": { - "start": { - "line": 671, - "column": 21 - }, - "end": { - "line": 671, - "column": 47 - } - }, - "callee": { - "type": "MemberExpression", - "start": 25848, - "end": 25862, - "loc": { - "start": { - "line": 671, - "column": 21 - }, - "end": { - "line": 671, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 25848, - "end": 25852, - "loc": { - "start": { - "line": 671, - "column": 21 - }, - "end": { - "line": 671, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 25853, - "end": 25862, - "loc": { - "start": { - "line": 671, - "column": 26 - }, - "end": { - "line": 671, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 25863, - "end": 25873, - "loc": { - "start": { - "line": 671, - "column": 36 - }, - "end": { - "line": 671, - "column": 46 - }, - "identifierName": "inviteData" - }, - "name": "inviteData" - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 25880, - "end": 25916, - "loc": { - "start": { - "line": 672, - "column": 4 - }, - "end": { - "line": 672, - "column": 40 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 25884, - "end": 25915, - "loc": { - "start": { - "line": 672, - "column": 8 - }, - "end": { - "line": 672, - "column": 39 - } - }, - "id": { - "type": "Identifier", - "start": 25884, - "end": 25888, - "loc": { - "start": { - "line": 672, - "column": 8 - }, - "end": { - "line": 672, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "init": { - "type": "TemplateLiteral", - "start": 25891, - "end": 25915, - "loc": { - "start": { - "line": 672, - "column": 15 - }, - "end": { - "line": 672, - "column": 39 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 25904, - "end": 25906, - "loc": { - "start": { - "line": 672, - "column": 28 - }, - "end": { - "line": 672, - "column": 30 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 25892, - "end": 25902, - "loc": { - "start": { - "line": 672, - "column": 16 - }, - "end": { - "line": 672, - "column": 26 - } - }, - "value": { - "raw": "/document/", - "cooked": "/document/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 25907, - "end": 25914, - "loc": { - "start": { - "line": 672, - "column": 31 - }, - "end": { - "line": 672, - "column": 38 - } - }, - "value": { - "raw": "/invite", - "cooked": "/invite" - }, - "tail": true - } - ] - } - } - ], - "kind": "let" - }, - { - "type": "IfStatement", - "start": 25922, - "end": 25992, - "loc": { - "start": { - "line": 674, - "column": 4 - }, - "end": { - "line": 676, - "column": 5 - } - }, - "test": { - "type": "BinaryExpression", - "start": 25926, - "end": 25945, - "loc": { - "start": { - "line": 674, - "column": 8 - }, - "end": { - "line": 674, - "column": 27 - } - }, - "left": { - "type": "Identifier", - "start": 25926, - "end": 25931, - "loc": { - "start": { - "line": 674, - "column": 8 - }, - "end": { - "line": 674, - "column": 13 - }, - "identifierName": "email" - }, - "name": "email" - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 25936, - "end": 25945, - "loc": { - "start": { - "line": 674, - "column": 18 - }, - "end": { - "line": 674, - "column": 27 - } - }, - "extra": { - "rawValue": "disable", - "raw": "'disable'" - }, - "value": "disable" - } - }, - "consequent": { - "type": "BlockStatement", - "start": 25947, - "end": 25992, - "loc": { - "start": { - "line": 674, - "column": 29 - }, - "end": { - "line": 676, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 25955, - "end": 25986, - "loc": { - "start": { - "line": 675, - "column": 6 - }, - "end": { - "line": 675, - "column": 37 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 25955, - "end": 25985, - "loc": { - "start": { - "line": 675, - "column": 6 - }, - "end": { - "line": 675, - "column": 36 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 25955, - "end": 25959, - "loc": { - "start": { - "line": 675, - "column": 6 - }, - "end": { - "line": 675, - "column": 10 - }, - "identifierName": "path" - }, - "name": "path" - }, - "right": { - "type": "TemplateLiteral", - "start": 25962, - "end": 25985, - "loc": { - "start": { - "line": 675, - "column": 13 - }, - "end": { - "line": 675, - "column": 36 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 25965, - "end": 25969, - "loc": { - "start": { - "line": 675, - "column": 16 - }, - "end": { - "line": 675, - "column": 20 - }, - "identifierName": "path" - }, - "name": "path" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 25963, - "end": 25963, - "loc": { - "start": { - "line": 675, - "column": 14 - }, - "end": { - "line": 675, - "column": 14 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 25970, - "end": 25984, - "loc": { - "start": { - "line": 675, - "column": 21 - }, - "end": { - "line": 675, - "column": 35 - } - }, - "value": { - "raw": "?email=disable", - "cooked": "?email=disable" - }, - "tail": true - } - ] - } - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "VariableDeclaration", - "start": 25998, - "end": 26383, - "loc": { - "start": { - "line": 678, - "column": 4 - }, - "end": { - "line": 691, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 26004, - "end": 26382, - "loc": { - "start": { - "line": 678, - "column": 10 - }, - "end": { - "line": 691, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 26004, - "end": 26007, - "loc": { - "start": { - "line": 678, - "column": 10 - }, - "end": { - "line": 678, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 26010, - "end": 26382, - "loc": { - "start": { - "line": 678, - "column": 16 - }, - "end": { - "line": 691, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 26010, - "end": 26349, - "loc": { - "start": { - "line": 678, - "column": 16 - }, - "end": { - "line": 691, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 26010, - "end": 26339, - "loc": { - "start": { - "line": 678, - "column": 16 - }, - "end": { - "line": 690, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 26010, - "end": 26030, - "loc": { - "start": { - "line": 678, - "column": 16 - }, - "end": { - "line": 679, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 26010, - "end": 26015, - "loc": { - "start": { - "line": 678, - "column": 16 - }, - "end": { - "line": 678, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 26023, - "end": 26030, - "loc": { - "start": { - "line": 679, - "column": 7 - }, - "end": { - "line": 679, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 26031, - "end": 26311, - "loc": { - "start": { - "line": 679, - "column": 15 - }, - "end": { - "line": 690, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 26031, - "end": 26050, - "loc": { - "start": { - "line": 679, - "column": 15 - }, - "end": { - "line": 679, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 26051, - "end": 26310, - "loc": { - "start": { - "line": 679, - "column": 35 - }, - "end": { - "line": 690, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 26061, - "end": 26075, - "loc": { - "start": { - "line": 680, - "column": 8 - }, - "end": { - "line": 680, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 26061, - "end": 26067, - "loc": { - "start": { - "line": 680, - "column": 8 - }, - "end": { - "line": 680, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 26069, - "end": 26075, - "loc": { - "start": { - "line": 680, - "column": 16 - }, - "end": { - "line": 680, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 26085, - "end": 26154, - "loc": { - "start": { - "line": 681, - "column": 8 - }, - "end": { - "line": 684, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 26085, - "end": 26098, - "loc": { - "start": { - "line": 681, - "column": 8 - }, - "end": { - "line": 681, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 26100, - "end": 26154, - "loc": { - "start": { - "line": 681, - "column": 23 - }, - "end": { - "line": 684, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 26112, - "end": 26126, - "loc": { - "start": { - "line": 682, - "column": 10 - }, - "end": { - "line": 682, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 26112, - "end": 26116, - "loc": { - "start": { - "line": 682, - "column": 10 - }, - "end": { - "line": 682, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 26118, - "end": 26126, - "loc": { - "start": { - "line": 682, - "column": 16 - }, - "end": { - "line": 682, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 26138, - "end": 26143, - "loc": { - "start": { - "line": 683, - "column": 10 - }, - "end": { - "line": 683, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 26138, - "end": 26143, - "loc": { - "start": { - "line": 683, - "column": 10 - }, - "end": { - "line": 683, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 26138, - "end": 26143, - "loc": { - "start": { - "line": 683, - "column": 10 - }, - "end": { - "line": 683, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 26164, - "end": 26287, - "loc": { - "start": { - "line": 685, - "column": 8 - }, - "end": { - "line": 688, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 26164, - "end": 26171, - "loc": { - "start": { - "line": 685, - "column": 8 - }, - "end": { - "line": 685, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 26173, - "end": 26287, - "loc": { - "start": { - "line": 685, - "column": 17 - }, - "end": { - "line": 688, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 26185, - "end": 26219, - "loc": { - "start": { - "line": 686, - "column": 10 - }, - "end": { - "line": 686, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 26185, - "end": 26199, - "loc": { - "start": { - "line": 686, - "column": 10 - }, - "end": { - "line": 686, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 26201, - "end": 26219, - "loc": { - "start": { - "line": 686, - "column": 26 - }, - "end": { - "line": 686, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 26231, - "end": 26276, - "loc": { - "start": { - "line": 687, - "column": 10 - }, - "end": { - "line": 687, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 26231, - "end": 26247, - "loc": { - "start": { - "line": 687, - "column": 10 - }, - "end": { - "line": 687, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 26249, - "end": 26276, - "loc": { - "start": { - "line": 687, - "column": 28 - }, - "end": { - "line": 687, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 26249, - "end": 26266, - "loc": { - "start": { - "line": 687, - "column": 28 - }, - "end": { - "line": 687, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 26249, - "end": 26255, - "loc": { - "start": { - "line": 687, - "column": 28 - }, - "end": { - "line": 687, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 26256, - "end": 26266, - "loc": { - "start": { - "line": 687, - "column": 35 - }, - "end": { - "line": 687, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 26267, - "end": 26275, - "loc": { - "start": { - "line": 687, - "column": 46 - }, - "end": { - "line": 687, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 26297, - "end": 26301, - "loc": { - "start": { - "line": 689, - "column": 8 - }, - "end": { - "line": 689, - "column": 12 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 26297, - "end": 26301, - "loc": { - "start": { - "line": 689, - "column": 8 - }, - "end": { - "line": 689, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "Identifier", - "start": 26297, - "end": 26301, - "loc": { - "start": { - "line": 689, - "column": 8 - }, - "end": { - "line": 689, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 26313, - "end": 26338, - "loc": { - "start": { - "line": 690, - "column": 10 - }, - "end": { - "line": 690, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 26313, - "end": 26328, - "loc": { - "start": { - "line": 690, - "column": 10 - }, - "end": { - "line": 690, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 26329, - "end": 26337, - "loc": { - "start": { - "line": 690, - "column": 26 - }, - "end": { - "line": 690, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 26347, - "end": 26349, - "loc": { - "start": { - "line": 691, - "column": 7 - }, - "end": { - "line": 691, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 26350, - "end": 26357, - "loc": { - "start": { - "line": 691, - "column": 10 - }, - "end": { - "line": 691, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 26359, - "end": 26381, - "loc": { - "start": { - "line": 691, - "column": 19 - }, - "end": { - "line": 691, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 26359, - "end": 26371, - "loc": { - "start": { - "line": 691, - "column": 19 - }, - "end": { - "line": 691, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 26372, - "end": 26380, - "loc": { - "start": { - "line": 691, - "column": 32 - }, - "end": { - "line": 691, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 26389, - "end": 26409, - "loc": { - "start": { - "line": 693, - "column": 4 - }, - "end": { - "line": 693, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 26389, - "end": 26408, - "loc": { - "start": { - "line": 693, - "column": 4 - }, - "end": { - "line": 693, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 26389, - "end": 26398, - "loc": { - "start": { - "line": 693, - "column": 4 - }, - "end": { - "line": 693, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 26389, - "end": 26392, - "loc": { - "start": { - "line": 693, - "column": 4 - }, - "end": { - "line": 693, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 26393, - "end": 26398, - "loc": { - "start": { - "line": 693, - "column": 8 - }, - "end": { - "line": 693, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 26399, - "end": 26407, - "loc": { - "start": { - "line": 693, - "column": 14 - }, - "end": { - "line": 693, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 26414, - "end": 26424, - "loc": { - "start": { - "line": 694, - "column": 4 - }, - "end": { - "line": 694, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 26414, - "end": 26423, - "loc": { - "start": { - "line": 694, - "column": 4 - }, - "end": { - "line": 694, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 26414, - "end": 26421, - "loc": { - "start": { - "line": 694, - "column": 4 - }, - "end": { - "line": 694, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 26414, - "end": 26417, - "loc": { - "start": { - "line": 694, - "column": 4 - }, - "end": { - "line": 694, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 26418, - "end": 26421, - "loc": { - "start": { - "line": 694, - "column": 8 - }, - "end": { - "line": 694, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document invite signer settings\n * @typedef {Object} SignerSettings\n * @property {string} email - signer's email\n * @property {string} role - role name\n * @property {string} [role_id] - role unique id (can be discovered in document details)\n * @property {number} order - role signing order\n * @property {string} reassign - allow reassign signer\n * @property {string} decline_by_signature - signer can decline invite\n * @property {number} reminder - remind via email in days\n * @property {number} expiration_days - expiration of invite in days\n * @property {string} [subject] - specify subject of email\n * @property {string} [message] - specify body of email\n ", - "start": 22896, - "end": 23590, - "loc": { - "start": { - "line": 596, - "column": 2 - }, - "end": { - "line": 609, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document invite settings\n * @typedef {Object} DocumentInviteSettings\n * @property {string} from - email of sender\n * @property {SignerSettings[]|string} to - array of signers or email of single signer\n * @property {string} [document_id] - an id of document\n * @property {string[]} [cc] - array with emails of copy receivers\n * @property {string} [subject] - specify subject of email\n * @property {string} [message] - specify body of email\n * @property {string} [on_complete] - on signing complete action\n ", - "start": 23594, - "end": 24128, - "loc": { - "start": { - "line": 611, - "column": 2 - }, - "end": { - "line": 621, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document invite optional settings\n * @typedef {Object} DocumentInviteOptions\n * @property {string} [email] - ability to disable invitation by email. to disable email assign value 'disable'\n ", - "start": 24132, - "end": 24339, - "loc": { - "start": { - "line": 623, - "column": 2 - }, - "end": { - "line": 627, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document invite payload\n * @typedef {Object} DocumentInviteParams\n * @property {string} id - an id of document\n * @property {DocumentInviteSettings} data - document invite settings\n * @property {DocumentInviteOptions} [options] - document invite optional settings\n * @property {string} token - your auth token\n ", - "start": 24343, - "end": 24684, - "loc": { - "start": { - "line": 629, - "column": 2 - }, - "end": { - "line": 636, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document field invite response data\n * @typedef {Object} DocumentFieldInviteResponse\n * @property {string} status - status of invitation, e.g. 'success'\n ", - "start": 24688, - "end": 24866, - "loc": { - "start": { - "line": 638, - "column": 2 - }, - "end": { - "line": 642, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document free form invite response data\n * @typedef {Object} DocumentFreeformInviteResponse\n * @property {string} result - free form invitation result, e.g. 'success'\n * @property {string} id - unique id of invite\n * @property {string} callback_url - url for front-end redirect or 'none'\n ", - "start": 24870, - "end": 25187, - "loc": { - "start": { - "line": 644, - "column": 2 - }, - "end": { - "line": 650, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document invite response data\n * @typedef {DocumentFieldInviteResponse|DocumentFreeformInviteResponse} DocumentInviteResponse\n ", - "start": 25191, - "end": 25340, - "loc": { - "start": { - "line": 652, - "column": 2 - }, - "end": { - "line": 655, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates an invite to sign a document.\n * You can create a simple free form invite(s) or a role-based invite(s).\n * @param {DocumentInviteParams} data - create document invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentInviteResponse)} [callback] - error first node.js callback\n ", - "start": 25344, - "end": 25662, - "loc": { - "start": { - "line": 657, - "column": 2 - }, - "end": { - "line": 662, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Cancel freeform invite payload\n * @typedef {Object} CancelFreeformInviteParams\n * @property {string} id - unique id of invite\n * @property {string} token - your auth token\n ", - "start": 26432, - "end": 26624, - "loc": { - "start": { - "line": 697, - "column": 2 - }, - "end": { - "line": 702, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancel freeform invite response data\n * @typedef {Object} CancelFreeformInviteResponse\n * @property {string} id - unique id of invite\n ", - "start": 26628, - "end": 26780, - "loc": { - "start": { - "line": 704, - "column": 2 - }, - "end": { - "line": 708, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancels sent freeform invite\n * @param {CancelFreeformInviteParams} data - cancel freeform invite payload\n * @param {function(err: ApiErrorResponse, res: CancelFreeformInviteResponse)} [callback] - error first node.js callback\n ", - "start": 26784, - "end": 27029, - "loc": { - "start": { - "line": 710, - "column": 2 - }, - "end": { - "line": 714, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 27032, - "end": 27372, - "loc": { - "start": { - "line": 715, - "column": 2 - }, - "end": { - "line": 727, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 27039, - "end": 27059, - "loc": { - "start": { - "line": 715, - "column": 9 - }, - "end": { - "line": 715, - "column": 29 - }, - "identifierName": "cancelFreeFormInvite" - }, - "name": "cancelFreeFormInvite" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 27061, - "end": 27074, - "loc": { - "start": { - "line": 715, - "column": 31 - }, - "end": { - "line": 715, - "column": 44 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 27063, - "end": 27065, - "loc": { - "start": { - "line": 715, - "column": 33 - }, - "end": { - "line": 715, - "column": 35 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 27063, - "end": 27065, - "loc": { - "start": { - "line": 715, - "column": 33 - }, - "end": { - "line": 715, - "column": 35 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 27063, - "end": 27065, - "loc": { - "start": { - "line": 715, - "column": 33 - }, - "end": { - "line": 715, - "column": 35 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 27067, - "end": 27072, - "loc": { - "start": { - "line": 715, - "column": 37 - }, - "end": { - "line": 715, - "column": 42 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 27067, - "end": 27072, - "loc": { - "start": { - "line": 715, - "column": 37 - }, - "end": { - "line": 715, - "column": 42 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 27067, - "end": 27072, - "loc": { - "start": { - "line": 715, - "column": 37 - }, - "end": { - "line": 715, - "column": 42 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 27076, - "end": 27084, - "loc": { - "start": { - "line": 715, - "column": 46 - }, - "end": { - "line": 715, - "column": 54 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 27086, - "end": 27372, - "loc": { - "start": { - "line": 715, - "column": 56 - }, - "end": { - "line": 727, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 27092, - "end": 27368, - "loc": { - "start": { - "line": 716, - "column": 4 - }, - "end": { - "line": 726, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 27092, - "end": 27367, - "loc": { - "start": { - "line": 716, - "column": 4 - }, - "end": { - "line": 726, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 27092, - "end": 27365, - "loc": { - "start": { - "line": 716, - "column": 4 - }, - "end": { - "line": 726, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 27092, - "end": 27354, - "loc": { - "start": { - "line": 716, - "column": 4 - }, - "end": { - "line": 725, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 27092, - "end": 27321, - "loc": { - "start": { - "line": 716, - "column": 4 - }, - "end": { - "line": 725, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 27092, - "end": 27311, - "loc": { - "start": { - "line": 716, - "column": 4 - }, - "end": { - "line": 724, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 27092, - "end": 27112, - "loc": { - "start": { - "line": 716, - "column": 4 - }, - "end": { - "line": 717, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 27092, - "end": 27097, - "loc": { - "start": { - "line": 716, - "column": 4 - }, - "end": { - "line": 716, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 27105, - "end": 27112, - "loc": { - "start": { - "line": 717, - "column": 7 - }, - "end": { - "line": 717, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 27113, - "end": 27283, - "loc": { - "start": { - "line": 717, - "column": 15 - }, - "end": { - "line": 724, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 27113, - "end": 27132, - "loc": { - "start": { - "line": 717, - "column": 15 - }, - "end": { - "line": 717, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 27133, - "end": 27282, - "loc": { - "start": { - "line": 717, - "column": 35 - }, - "end": { - "line": 724, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 27143, - "end": 27156, - "loc": { - "start": { - "line": 718, - "column": 8 - }, - "end": { - "line": 718, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 27143, - "end": 27149, - "loc": { - "start": { - "line": 718, - "column": 8 - }, - "end": { - "line": 718, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 27151, - "end": 27156, - "loc": { - "start": { - "line": 718, - "column": 16 - }, - "end": { - "line": 718, - "column": 21 - } - }, - "extra": { - "rawValue": "PUT", - "raw": "'PUT'" - }, - "value": "PUT" - } - }, - { - "type": "ObjectProperty", - "start": 27166, - "end": 27194, - "loc": { - "start": { - "line": 719, - "column": 8 - }, - "end": { - "line": 719, - "column": 36 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 27166, - "end": 27170, - "loc": { - "start": { - "line": 719, - "column": 8 - }, - "end": { - "line": 719, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 27172, - "end": 27194, - "loc": { - "start": { - "line": 719, - "column": 14 - }, - "end": { - "line": 719, - "column": 36 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 27183, - "end": 27185, - "loc": { - "start": { - "line": 719, - "column": 25 - }, - "end": { - "line": 719, - "column": 27 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 27173, - "end": 27181, - "loc": { - "start": { - "line": 719, - "column": 15 - }, - "end": { - "line": 719, - "column": 23 - } - }, - "value": { - "raw": "/invite/", - "cooked": "/invite/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 27186, - "end": 27193, - "loc": { - "start": { - "line": 719, - "column": 28 - }, - "end": { - "line": 719, - "column": 35 - } - }, - "value": { - "raw": "/cancel", - "cooked": "/cancel" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 27204, - "end": 27273, - "loc": { - "start": { - "line": 720, - "column": 8 - }, - "end": { - "line": 723, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 27204, - "end": 27217, - "loc": { - "start": { - "line": 720, - "column": 8 - }, - "end": { - "line": 720, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 27219, - "end": 27273, - "loc": { - "start": { - "line": 720, - "column": 23 - }, - "end": { - "line": 723, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 27231, - "end": 27245, - "loc": { - "start": { - "line": 721, - "column": 10 - }, - "end": { - "line": 721, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 27231, - "end": 27235, - "loc": { - "start": { - "line": 721, - "column": 10 - }, - "end": { - "line": 721, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 27237, - "end": 27245, - "loc": { - "start": { - "line": 721, - "column": 16 - }, - "end": { - "line": 721, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 27257, - "end": 27262, - "loc": { - "start": { - "line": 722, - "column": 10 - }, - "end": { - "line": 722, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 27257, - "end": 27262, - "loc": { - "start": { - "line": 722, - "column": 10 - }, - "end": { - "line": 722, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 27257, - "end": 27262, - "loc": { - "start": { - "line": 722, - "column": 10 - }, - "end": { - "line": 722, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 27285, - "end": 27310, - "loc": { - "start": { - "line": 724, - "column": 10 - }, - "end": { - "line": 724, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 27285, - "end": 27300, - "loc": { - "start": { - "line": 724, - "column": 10 - }, - "end": { - "line": 724, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 27301, - "end": 27309, - "loc": { - "start": { - "line": 724, - "column": 26 - }, - "end": { - "line": 724, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 27319, - "end": 27321, - "loc": { - "start": { - "line": 725, - "column": 7 - }, - "end": { - "line": 725, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 27322, - "end": 27329, - "loc": { - "start": { - "line": 725, - "column": 10 - }, - "end": { - "line": 725, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 27331, - "end": 27353, - "loc": { - "start": { - "line": 725, - "column": 19 - }, - "end": { - "line": 725, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 27331, - "end": 27343, - "loc": { - "start": { - "line": 725, - "column": 19 - }, - "end": { - "line": 725, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 27344, - "end": 27352, - "loc": { - "start": { - "line": 725, - "column": 32 - }, - "end": { - "line": 725, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 27362, - "end": 27365, - "loc": { - "start": { - "line": 726, - "column": 7 - }, - "end": { - "line": 726, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Cancel freeform invite payload\n * @typedef {Object} CancelFreeformInviteParams\n * @property {string} id - unique id of invite\n * @property {string} token - your auth token\n ", - "start": 26432, - "end": 26624, - "loc": { - "start": { - "line": 697, - "column": 2 - }, - "end": { - "line": 702, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancel freeform invite response data\n * @typedef {Object} CancelFreeformInviteResponse\n * @property {string} id - unique id of invite\n ", - "start": 26628, - "end": 26780, - "loc": { - "start": { - "line": 704, - "column": 2 - }, - "end": { - "line": 708, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancels sent freeform invite\n * @param {CancelFreeformInviteParams} data - cancel freeform invite payload\n * @param {function(err: ApiErrorResponse, res: CancelFreeformInviteResponse)} [callback] - error first node.js callback\n ", - "start": 26784, - "end": 27029, - "loc": { - "start": { - "line": 710, - "column": 2 - }, - "end": { - "line": 714, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Cancel document field invite payload\n * @typedef {Object} DocumentFieldInviteCancelParams\n * @property {string} id - an id of document\n * @property {string} token - your auth token\n ", - "start": 27376, - "end": 27577, - "loc": { - "start": { - "line": 729, - "column": 2 - }, - "end": { - "line": 734, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancel document field invite response data\n * @typedef {Object} DocumentFieldInviteCancelResponse\n * @property {string} status - status of field invite cancellation, e.g. 'success'\n ", - "start": 27581, - "end": 27780, - "loc": { - "start": { - "line": 736, - "column": 2 - }, - "end": { - "line": 740, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancels an invite to a document\n * @param {DocumentFieldInviteCancelParams} data - cancel field invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentFieldInviteCancelResponse)} [callback] - error first node.js callback\n ", - "start": 27784, - "end": 28039, - "loc": { - "start": { - "line": 742, - "column": 2 - }, - "end": { - "line": 746, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 28042, - "end": 28392, - "loc": { - "start": { - "line": 747, - "column": 2 - }, - "end": { - "line": 759, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 28049, - "end": 28066, - "loc": { - "start": { - "line": 747, - "column": 9 - }, - "end": { - "line": 747, - "column": 26 - }, - "identifierName": "cancelFieldInvite" - }, - "name": "cancelFieldInvite" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 28068, - "end": 28081, - "loc": { - "start": { - "line": 747, - "column": 28 - }, - "end": { - "line": 747, - "column": 41 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 28070, - "end": 28072, - "loc": { - "start": { - "line": 747, - "column": 30 - }, - "end": { - "line": 747, - "column": 32 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 28070, - "end": 28072, - "loc": { - "start": { - "line": 747, - "column": 30 - }, - "end": { - "line": 747, - "column": 32 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 28070, - "end": 28072, - "loc": { - "start": { - "line": 747, - "column": 30 - }, - "end": { - "line": 747, - "column": 32 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 28074, - "end": 28079, - "loc": { - "start": { - "line": 747, - "column": 34 - }, - "end": { - "line": 747, - "column": 39 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 28074, - "end": 28079, - "loc": { - "start": { - "line": 747, - "column": 34 - }, - "end": { - "line": 747, - "column": 39 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 28074, - "end": 28079, - "loc": { - "start": { - "line": 747, - "column": 34 - }, - "end": { - "line": 747, - "column": 39 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 28083, - "end": 28091, - "loc": { - "start": { - "line": 747, - "column": 43 - }, - "end": { - "line": 747, - "column": 51 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 28093, - "end": 28392, - "loc": { - "start": { - "line": 747, - "column": 53 - }, - "end": { - "line": 759, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 28099, - "end": 28388, - "loc": { - "start": { - "line": 748, - "column": 4 - }, - "end": { - "line": 758, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 28099, - "end": 28387, - "loc": { - "start": { - "line": 748, - "column": 4 - }, - "end": { - "line": 758, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 28099, - "end": 28385, - "loc": { - "start": { - "line": 748, - "column": 4 - }, - "end": { - "line": 758, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 28099, - "end": 28374, - "loc": { - "start": { - "line": 748, - "column": 4 - }, - "end": { - "line": 757, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 28099, - "end": 28341, - "loc": { - "start": { - "line": 748, - "column": 4 - }, - "end": { - "line": 757, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 28099, - "end": 28331, - "loc": { - "start": { - "line": 748, - "column": 4 - }, - "end": { - "line": 756, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 28099, - "end": 28119, - "loc": { - "start": { - "line": 748, - "column": 4 - }, - "end": { - "line": 749, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 28099, - "end": 28104, - "loc": { - "start": { - "line": 748, - "column": 4 - }, - "end": { - "line": 748, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 28112, - "end": 28119, - "loc": { - "start": { - "line": 749, - "column": 7 - }, - "end": { - "line": 749, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 28120, - "end": 28303, - "loc": { - "start": { - "line": 749, - "column": 15 - }, - "end": { - "line": 756, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 28120, - "end": 28139, - "loc": { - "start": { - "line": 749, - "column": 15 - }, - "end": { - "line": 749, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 28140, - "end": 28302, - "loc": { - "start": { - "line": 749, - "column": 35 - }, - "end": { - "line": 756, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 28150, - "end": 28163, - "loc": { - "start": { - "line": 750, - "column": 8 - }, - "end": { - "line": 750, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 28150, - "end": 28156, - "loc": { - "start": { - "line": 750, - "column": 8 - }, - "end": { - "line": 750, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 28158, - "end": 28163, - "loc": { - "start": { - "line": 750, - "column": 16 - }, - "end": { - "line": 750, - "column": 21 - } - }, - "extra": { - "rawValue": "PUT", - "raw": "'PUT'" - }, - "value": "PUT" - } - }, - { - "type": "ObjectProperty", - "start": 28173, - "end": 28214, - "loc": { - "start": { - "line": 751, - "column": 8 - }, - "end": { - "line": 751, - "column": 49 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 28173, - "end": 28177, - "loc": { - "start": { - "line": 751, - "column": 8 - }, - "end": { - "line": 751, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 28179, - "end": 28214, - "loc": { - "start": { - "line": 751, - "column": 14 - }, - "end": { - "line": 751, - "column": 49 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 28192, - "end": 28194, - "loc": { - "start": { - "line": 751, - "column": 27 - }, - "end": { - "line": 751, - "column": 29 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 28180, - "end": 28190, - "loc": { - "start": { - "line": 751, - "column": 15 - }, - "end": { - "line": 751, - "column": 25 - } - }, - "value": { - "raw": "/document/", - "cooked": "/document/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 28195, - "end": 28213, - "loc": { - "start": { - "line": 751, - "column": 30 - }, - "end": { - "line": 751, - "column": 48 - } - }, - "value": { - "raw": "/fieldinvitecancel", - "cooked": "/fieldinvitecancel" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 28224, - "end": 28293, - "loc": { - "start": { - "line": 752, - "column": 8 - }, - "end": { - "line": 755, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 28224, - "end": 28237, - "loc": { - "start": { - "line": 752, - "column": 8 - }, - "end": { - "line": 752, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 28239, - "end": 28293, - "loc": { - "start": { - "line": 752, - "column": 23 - }, - "end": { - "line": 755, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 28251, - "end": 28265, - "loc": { - "start": { - "line": 753, - "column": 10 - }, - "end": { - "line": 753, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 28251, - "end": 28255, - "loc": { - "start": { - "line": 753, - "column": 10 - }, - "end": { - "line": 753, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 28257, - "end": 28265, - "loc": { - "start": { - "line": 753, - "column": 16 - }, - "end": { - "line": 753, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 28277, - "end": 28282, - "loc": { - "start": { - "line": 754, - "column": 10 - }, - "end": { - "line": 754, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 28277, - "end": 28282, - "loc": { - "start": { - "line": 754, - "column": 10 - }, - "end": { - "line": 754, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 28277, - "end": 28282, - "loc": { - "start": { - "line": 754, - "column": 10 - }, - "end": { - "line": 754, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 28305, - "end": 28330, - "loc": { - "start": { - "line": 756, - "column": 10 - }, - "end": { - "line": 756, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 28305, - "end": 28320, - "loc": { - "start": { - "line": 756, - "column": 10 - }, - "end": { - "line": 756, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 28321, - "end": 28329, - "loc": { - "start": { - "line": 756, - "column": 26 - }, - "end": { - "line": 756, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 28339, - "end": 28341, - "loc": { - "start": { - "line": 757, - "column": 7 - }, - "end": { - "line": 757, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 28342, - "end": 28349, - "loc": { - "start": { - "line": 757, - "column": 10 - }, - "end": { - "line": 757, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 28351, - "end": 28373, - "loc": { - "start": { - "line": 757, - "column": 19 - }, - "end": { - "line": 757, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 28351, - "end": 28363, - "loc": { - "start": { - "line": 757, - "column": 19 - }, - "end": { - "line": 757, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 28364, - "end": 28372, - "loc": { - "start": { - "line": 757, - "column": 32 - }, - "end": { - "line": 757, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 28382, - "end": 28385, - "loc": { - "start": { - "line": 758, - "column": 7 - }, - "end": { - "line": 758, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Cancel document field invite payload\n * @typedef {Object} DocumentFieldInviteCancelParams\n * @property {string} id - an id of document\n * @property {string} token - your auth token\n ", - "start": 27376, - "end": 27577, - "loc": { - "start": { - "line": 729, - "column": 2 - }, - "end": { - "line": 734, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancel document field invite response data\n * @typedef {Object} DocumentFieldInviteCancelResponse\n * @property {string} status - status of field invite cancellation, e.g. 'success'\n ", - "start": 27581, - "end": 27780, - "loc": { - "start": { - "line": 736, - "column": 2 - }, - "end": { - "line": 740, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancels an invite to a document\n * @param {DocumentFieldInviteCancelParams} data - cancel field invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentFieldInviteCancelResponse)} [callback] - error first node.js callback\n ", - "start": 27784, - "end": 28039, - "loc": { - "start": { - "line": 742, - "column": 2 - }, - "end": { - "line": 746, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Cancels an invite to a document\n * @deprecated use Document.cancelFieldInvite instead of this\n * @param {DocumentFieldInviteCancelParams} data - cancel field invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentFieldInviteCancelResponse)} [callback] - error first node.js callback\n ", - "start": 28396, - "end": 28715, - "loc": { - "start": { - "line": 761, - "column": 2 - }, - "end": { - "line": 766, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 28718, - "end": 28843, - "loc": { - "start": { - "line": 767, - "column": 2 - }, - "end": { - "line": 772, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 28725, - "end": 28737, - "loc": { - "start": { - "line": 767, - "column": 9 - }, - "end": { - "line": 767, - "column": 21 - }, - "identifierName": "cancelInvite" - }, - "name": "cancelInvite" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 28739, - "end": 28752, - "loc": { - "start": { - "line": 767, - "column": 23 - }, - "end": { - "line": 767, - "column": 36 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 28741, - "end": 28743, - "loc": { - "start": { - "line": 767, - "column": 25 - }, - "end": { - "line": 767, - "column": 27 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 28741, - "end": 28743, - "loc": { - "start": { - "line": 767, - "column": 25 - }, - "end": { - "line": 767, - "column": 27 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 28741, - "end": 28743, - "loc": { - "start": { - "line": 767, - "column": 25 - }, - "end": { - "line": 767, - "column": 27 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 28745, - "end": 28750, - "loc": { - "start": { - "line": 767, - "column": 29 - }, - "end": { - "line": 767, - "column": 34 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 28745, - "end": 28750, - "loc": { - "start": { - "line": 767, - "column": 29 - }, - "end": { - "line": 767, - "column": 34 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 28745, - "end": 28750, - "loc": { - "start": { - "line": 767, - "column": 29 - }, - "end": { - "line": 767, - "column": 34 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 28754, - "end": 28762, - "loc": { - "start": { - "line": 767, - "column": 38 - }, - "end": { - "line": 767, - "column": 46 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 28764, - "end": 28843, - "loc": { - "start": { - "line": 767, - "column": 48 - }, - "end": { - "line": 772, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 28770, - "end": 28839, - "loc": { - "start": { - "line": 768, - "column": 4 - }, - "end": { - "line": 771, - "column": 17 - } - }, - "expression": { - "type": "CallExpression", - "start": 28770, - "end": 28838, - "loc": { - "start": { - "line": 768, - "column": 4 - }, - "end": { - "line": 771, - "column": 16 - } - }, - "callee": { - "type": "MemberExpression", - "start": 28770, - "end": 28796, - "loc": { - "start": { - "line": 768, - "column": 4 - }, - "end": { - "line": 768, - "column": 30 - } - }, - "object": { - "type": "Identifier", - "start": 28770, - "end": 28778, - "loc": { - "start": { - "line": 768, - "column": 4 - }, - "end": { - "line": 768, - "column": 12 - }, - "identifierName": "Document" - }, - "name": "Document" - }, - "property": { - "type": "Identifier", - "start": 28779, - "end": 28796, - "loc": { - "start": { - "line": 768, - "column": 13 - }, - "end": { - "line": 768, - "column": 30 - }, - "identifierName": "cancelFieldInvite" - }, - "name": "cancelFieldInvite" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 28797, - "end": 28827, - "loc": { - "start": { - "line": 768, - "column": 31 - }, - "end": { - "line": 771, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 28805, - "end": 28807, - "loc": { - "start": { - "line": 769, - "column": 6 - }, - "end": { - "line": 769, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 28805, - "end": 28807, - "loc": { - "start": { - "line": 769, - "column": 6 - }, - "end": { - "line": 769, - "column": 8 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 28805, - "end": 28807, - "loc": { - "start": { - "line": 769, - "column": 6 - }, - "end": { - "line": 769, - "column": 8 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 28815, - "end": 28820, - "loc": { - "start": { - "line": 770, - "column": 6 - }, - "end": { - "line": 770, - "column": 11 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 28815, - "end": 28820, - "loc": { - "start": { - "line": 770, - "column": 6 - }, - "end": { - "line": 770, - "column": 11 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 28815, - "end": 28820, - "loc": { - "start": { - "line": 770, - "column": 6 - }, - "end": { - "line": 770, - "column": 11 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 28829, - "end": 28837, - "loc": { - "start": { - "line": 771, - "column": 7 - }, - "end": { - "line": 771, - "column": 15 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Cancels an invite to a document\n * @deprecated use Document.cancelFieldInvite instead of this\n * @param {DocumentFieldInviteCancelParams} data - cancel field invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentFieldInviteCancelResponse)} [callback] - error first node.js callback\n ", - "start": 28396, - "end": 28715, - "loc": { - "start": { - "line": 761, - "column": 2 - }, - "end": { - "line": 766, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Merge documents optional settings\n * @typedef {Object} DocumentMergeOptions\n * @property {boolean} [removeOriginalDocuments=false] - if true original documents will be removed\n ", - "start": 28847, - "end": 29041, - "loc": { - "start": { - "line": 774, - "column": 2 - }, - "end": { - "line": 778, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Merge documents payload\n * @typedef {Object} DocumentMergeParams\n * @property {string} token - your auth token\n * @property {string} name - new name for merged document\n * @property {string[]} document_ids - an array of document IDs\n * @property {DocumentMergeOptions} options - merge documents optional settings\n ", - "start": 29045, - "end": 29382, - "loc": { - "start": { - "line": 780, - "column": 2 - }, - "end": { - "line": 787, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Merge documents response data\n * @typedef {Object} DocumentMergeResponse\n * @property {string} document_id - an ID of merged document\n ", - "start": 29386, - "end": 29538, - "loc": { - "start": { - "line": 789, - "column": 2 - }, - "end": { - "line": 793, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Merges existing documents into one.\n * By default original documents are not removed after merging. To remove original documents set `removeOriginalDocuments` option to `true`.\n * @param {DocumentMergeParams} data - merge documents payload\n * @param {function(err: ApiErrorResponse, res: DocumentMergeResponse)} [originalCallback] - error first node.js callback\n ", - "start": 29542, - "end": 29924, - "loc": { - "start": { - "line": 795, - "column": 2 - }, - "end": { - "line": 800, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 29927, - "end": 31898, - "loc": { - "start": { - "line": 801, - "column": 2 - }, - "end": { - "line": 874, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 29934, - "end": 29939, - "loc": { - "start": { - "line": 801, - "column": 9 - }, - "end": { - "line": 801, - "column": 14 - }, - "identifierName": "merge" - }, - "name": "merge" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 29941, - "end": 30040, - "loc": { - "start": { - "line": 801, - "column": 16 - }, - "end": { - "line": 806, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 29947, - "end": 29951, - "loc": { - "start": { - "line": 802, - "column": 4 - }, - "end": { - "line": 802, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 29947, - "end": 29951, - "loc": { - "start": { - "line": 802, - "column": 4 - }, - "end": { - "line": 802, - "column": 8 - }, - "identifierName": "name" - }, - "name": "name" - }, - "value": { - "type": "Identifier", - "start": 29947, - "end": 29951, - "loc": { - "start": { - "line": 802, - "column": 4 - }, - "end": { - "line": 802, - "column": 8 - }, - "identifierName": "name" - }, - "name": "name" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 29957, - "end": 29969, - "loc": { - "start": { - "line": 803, - "column": 4 - }, - "end": { - "line": 803, - "column": 16 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 29957, - "end": 29969, - "loc": { - "start": { - "line": 803, - "column": 4 - }, - "end": { - "line": 803, - "column": 16 - }, - "identifierName": "document_ids" - }, - "name": "document_ids" - }, - "value": { - "type": "Identifier", - "start": 29957, - "end": 29969, - "loc": { - "start": { - "line": 803, - "column": 4 - }, - "end": { - "line": 803, - "column": 16 - }, - "identifierName": "document_ids" - }, - "name": "document_ids" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 29975, - "end": 30024, - "loc": { - "start": { - "line": 804, - "column": 4 - }, - "end": { - "line": 804, - "column": 53 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 29975, - "end": 29982, - "loc": { - "start": { - "line": 804, - "column": 4 - }, - "end": { - "line": 804, - "column": 11 - }, - "identifierName": "options" - }, - "name": "options" - }, - "value": { - "type": "AssignmentPattern", - "start": 29984, - "end": 30024, - "loc": { - "start": { - "line": 804, - "column": 13 - }, - "end": { - "line": 804, - "column": 53 - } - }, - "left": { - "type": "ObjectPattern", - "start": 29984, - "end": 30019, - "loc": { - "start": { - "line": 804, - "column": 13 - }, - "end": { - "line": 804, - "column": 48 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 29986, - "end": 30017, - "loc": { - "start": { - "line": 804, - "column": 15 - }, - "end": { - "line": 804, - "column": 46 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 29986, - "end": 30009, - "loc": { - "start": { - "line": 804, - "column": 15 - }, - "end": { - "line": 804, - "column": 38 - }, - "identifierName": "removeOriginalDocuments" - }, - "name": "removeOriginalDocuments" - }, - "value": { - "type": "AssignmentPattern", - "start": 29986, - "end": 30017, - "loc": { - "start": { - "line": 804, - "column": 15 - }, - "end": { - "line": 804, - "column": 46 - } - }, - "left": { - "type": "Identifier", - "start": 29986, - "end": 30009, - "loc": { - "start": { - "line": 804, - "column": 15 - }, - "end": { - "line": 804, - "column": 38 - }, - "identifierName": "removeOriginalDocuments" - }, - "name": "removeOriginalDocuments" - }, - "right": { - "type": "BooleanLiteral", - "start": 30012, - "end": 30017, - "loc": { - "start": { - "line": 804, - "column": 41 - }, - "end": { - "line": 804, - "column": 46 - } - }, - "value": false - } - }, - "extra": { - "shorthand": true - } - } - ] - }, - "right": { - "type": "ObjectExpression", - "start": 30022, - "end": 30024, - "loc": { - "start": { - "line": 804, - "column": 51 - }, - "end": { - "line": 804, - "column": 53 - } - }, - "properties": [] - } - } - }, - { - "type": "ObjectProperty", - "start": 30030, - "end": 30035, - "loc": { - "start": { - "line": 805, - "column": 4 - }, - "end": { - "line": 805, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 30030, - "end": 30035, - "loc": { - "start": { - "line": 805, - "column": 4 - }, - "end": { - "line": 805, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 30030, - "end": 30035, - "loc": { - "start": { - "line": 805, - "column": 4 - }, - "end": { - "line": 805, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 30042, - "end": 30058, - "loc": { - "start": { - "line": 806, - "column": 5 - }, - "end": { - "line": 806, - "column": 21 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - } - ], - "body": { - "type": "BlockStatement", - "start": 30060, - "end": 31898, - "loc": { - "start": { - "line": 806, - "column": 23 - }, - "end": { - "line": 874, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 30066, - "end": 30168, - "loc": { - "start": { - "line": 807, - "column": 4 - }, - "end": { - "line": 811, - "column": 7 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 30072, - "end": 30167, - "loc": { - "start": { - "line": 807, - "column": 10 - }, - "end": { - "line": 811, - "column": 6 - } - }, - "id": { - "type": "Identifier", - "start": 30072, - "end": 30080, - "loc": { - "start": { - "line": 807, - "column": 10 - }, - "end": { - "line": 807, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 30083, - "end": 30167, - "loc": { - "start": { - "line": 807, - "column": 21 - }, - "end": { - "line": 811, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 30083, - "end": 30097, - "loc": { - "start": { - "line": 807, - "column": 21 - }, - "end": { - "line": 807, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 30083, - "end": 30087, - "loc": { - "start": { - "line": 807, - "column": 21 - }, - "end": { - "line": 807, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 30088, - "end": 30097, - "loc": { - "start": { - "line": 807, - "column": 26 - }, - "end": { - "line": 807, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 30098, - "end": 30166, - "loc": { - "start": { - "line": 807, - "column": 36 - }, - "end": { - "line": 811, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 30106, - "end": 30127, - "loc": { - "start": { - "line": 808, - "column": 6 - }, - "end": { - "line": 808, - "column": 27 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 30106, - "end": 30121, - "loc": { - "start": { - "line": 808, - "column": 6 - }, - "end": { - "line": 808, - "column": 21 - }, - "identifierName": "upload_document" - }, - "name": "upload_document" - }, - "value": { - "type": "BooleanLiteral", - "start": 30123, - "end": 30127, - "loc": { - "start": { - "line": 808, - "column": 23 - }, - "end": { - "line": 808, - "column": 27 - } - }, - "value": true - } - }, - { - "type": "ObjectProperty", - "start": 30135, - "end": 30147, - "loc": { - "start": { - "line": 809, - "column": 6 - }, - "end": { - "line": 809, - "column": 18 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 30135, - "end": 30147, - "loc": { - "start": { - "line": 809, - "column": 6 - }, - "end": { - "line": 809, - "column": 18 - }, - "identifierName": "document_ids" - }, - "name": "document_ids" - }, - "value": { - "type": "Identifier", - "start": 30135, - "end": 30147, - "loc": { - "start": { - "line": 809, - "column": 6 - }, - "end": { - "line": 809, - "column": 18 - }, - "identifierName": "document_ids" - }, - "name": "document_ids" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 30155, - "end": 30159, - "loc": { - "start": { - "line": 810, - "column": 6 - }, - "end": { - "line": 810, - "column": 10 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 30155, - "end": 30159, - "loc": { - "start": { - "line": 810, - "column": 6 - }, - "end": { - "line": 810, - "column": 10 - }, - "identifierName": "name" - }, - "name": "name" - }, - "value": { - "type": "Identifier", - "start": 30155, - "end": 30159, - "loc": { - "start": { - "line": 810, - "column": 6 - }, - "end": { - "line": 810, - "column": 10 - }, - "identifierName": "name" - }, - "name": "name" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 30174, - "end": 31326, - "loc": { - "start": { - "line": 813, - "column": 4 - }, - "end": { - "line": 851, - "column": 6 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 30180, - "end": 31325, - "loc": { - "start": { - "line": 813, - "column": 10 - }, - "end": { - "line": 851, - "column": 5 - } - }, - "id": { - "type": "Identifier", - "start": 30180, - "end": 30208, - "loc": { - "start": { - "line": 813, - "column": 10 - }, - "end": { - "line": 813, - "column": 38 - }, - "identifierName": "callbackWithDocumentDeletion" - }, - "name": "callbackWithDocumentDeletion" - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 30211, - "end": 31325, - "loc": { - "start": { - "line": 813, - "column": 41 - }, - "end": { - "line": 851, - "column": 5 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 30212, - "end": 30220, - "loc": { - "start": { - "line": 813, - "column": 42 - }, - "end": { - "line": 813, - "column": 50 - }, - "identifierName": "mergeErr" - }, - "name": "mergeErr" - }, - { - "type": "Identifier", - "start": 30222, - "end": 30230, - "loc": { - "start": { - "line": 813, - "column": 52 - }, - "end": { - "line": 813, - "column": 60 - }, - "identifierName": "mergeRes" - }, - "name": "mergeRes" - } - ], - "body": { - "type": "BlockStatement", - "start": 30235, - "end": 31325, - "loc": { - "start": { - "line": 813, - "column": 65 - }, - "end": { - "line": 851, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 30243, - "end": 31319, - "loc": { - "start": { - "line": 814, - "column": 6 - }, - "end": { - "line": 850, - "column": 7 - } - }, - "test": { - "type": "Identifier", - "start": 30247, - "end": 30255, - "loc": { - "start": { - "line": 814, - "column": 10 - }, - "end": { - "line": 814, - "column": 18 - }, - "identifierName": "mergeErr" - }, - "name": "mergeErr" - }, - "consequent": { - "type": "BlockStatement", - "start": 30257, - "end": 30318, - "loc": { - "start": { - "line": 814, - "column": 20 - }, - "end": { - "line": 817, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 30267, - "end": 30294, - "loc": { - "start": { - "line": 815, - "column": 8 - }, - "end": { - "line": 815, - "column": 35 - } - }, - "expression": { - "type": "CallExpression", - "start": 30267, - "end": 30293, - "loc": { - "start": { - "line": 815, - "column": 8 - }, - "end": { - "line": 815, - "column": 34 - } - }, - "callee": { - "type": "Identifier", - "start": 30267, - "end": 30283, - "loc": { - "start": { - "line": 815, - "column": 8 - }, - "end": { - "line": 815, - "column": 24 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 30284, - "end": 30292, - "loc": { - "start": { - "line": 815, - "column": 25 - }, - "end": { - "line": 815, - "column": 33 - }, - "identifierName": "mergeErr" - }, - "name": "mergeErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 30303, - "end": 30310, - "loc": { - "start": { - "line": 816, - "column": 8 - }, - "end": { - "line": 816, - "column": 15 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 30324, - "end": 31319, - "loc": { - "start": { - "line": 817, - "column": 13 - }, - "end": { - "line": 850, - "column": 7 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 30335, - "end": 30656, - "loc": { - "start": { - "line": 819, - "column": 8 - }, - "end": { - "line": 830, - "column": 11 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 30341, - "end": 30655, - "loc": { - "start": { - "line": 819, - "column": 14 - }, - "end": { - "line": 830, - "column": 10 - } - }, - "id": { - "type": "Identifier", - "start": 30341, - "end": 30355, - "loc": { - "start": { - "line": 819, - "column": 14 - }, - "end": { - "line": 819, - "column": 28 - }, - "identifierName": "removeDocument" - }, - "name": "removeDocument" - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 30358, - "end": 30655, - "loc": { - "start": { - "line": 819, - "column": 31 - }, - "end": { - "line": 830, - "column": 10 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 30359, - "end": 30365, - "loc": { - "start": { - "line": 819, - "column": 32 - }, - "end": { - "line": 819, - "column": 38 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 30361, - "end": 30363, - "loc": { - "start": { - "line": 819, - "column": 34 - }, - "end": { - "line": 819, - "column": 36 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 30361, - "end": 30363, - "loc": { - "start": { - "line": 819, - "column": 34 - }, - "end": { - "line": 819, - "column": 36 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 30361, - "end": 30363, - "loc": { - "start": { - "line": 819, - "column": 34 - }, - "end": { - "line": 819, - "column": 36 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - } - ] - } - ], - "body": { - "type": "NewExpression", - "start": 30370, - "end": 30655, - "loc": { - "start": { - "line": 819, - "column": 43 - }, - "end": { - "line": 830, - "column": 10 - } - }, - "callee": { - "type": "Identifier", - "start": 30374, - "end": 30381, - "loc": { - "start": { - "line": 819, - "column": 47 - }, - "end": { - "line": 819, - "column": 54 - }, - "identifierName": "Promise" - }, - "name": "Promise" - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 30382, - "end": 30654, - "loc": { - "start": { - "line": 819, - "column": 55 - }, - "end": { - "line": 830, - "column": 9 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 30383, - "end": 30390, - "loc": { - "start": { - "line": 819, - "column": 56 - }, - "end": { - "line": 819, - "column": 63 - }, - "identifierName": "resolve" - }, - "name": "resolve" - }, - { - "type": "Identifier", - "start": 30392, - "end": 30398, - "loc": { - "start": { - "line": 819, - "column": 65 - }, - "end": { - "line": 819, - "column": 71 - }, - "identifierName": "reject" - }, - "name": "reject" - } - ], - "body": { - "type": "BlockStatement", - "start": 30403, - "end": 30654, - "loc": { - "start": { - "line": 819, - "column": 76 - }, - "end": { - "line": 830, - "column": 9 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 30415, - "end": 30644, - "loc": { - "start": { - "line": 820, - "column": 10 - }, - "end": { - "line": 829, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 30415, - "end": 30643, - "loc": { - "start": { - "line": 820, - "column": 10 - }, - "end": { - "line": 829, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 30415, - "end": 30430, - "loc": { - "start": { - "line": 820, - "column": 10 - }, - "end": { - "line": 820, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 30415, - "end": 30423, - "loc": { - "start": { - "line": 820, - "column": 10 - }, - "end": { - "line": 820, - "column": 18 - }, - "identifierName": "Document" - }, - "name": "Document" - }, - "property": { - "type": "Identifier", - "start": 30424, - "end": 30430, - "loc": { - "start": { - "line": 820, - "column": 19 - }, - "end": { - "line": 820, - "column": 25 - }, - "identifierName": "remove" - }, - "name": "remove" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 30431, - "end": 30479, - "loc": { - "start": { - "line": 820, - "column": 26 - }, - "end": { - "line": 823, - "column": 11 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 30445, - "end": 30447, - "loc": { - "start": { - "line": 821, - "column": 12 - }, - "end": { - "line": 821, - "column": 14 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 30445, - "end": 30447, - "loc": { - "start": { - "line": 821, - "column": 12 - }, - "end": { - "line": 821, - "column": 14 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 30445, - "end": 30447, - "loc": { - "start": { - "line": 821, - "column": 12 - }, - "end": { - "line": 821, - "column": 14 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 30461, - "end": 30466, - "loc": { - "start": { - "line": 822, - "column": 12 - }, - "end": { - "line": 822, - "column": 17 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 30461, - "end": 30466, - "loc": { - "start": { - "line": 822, - "column": 12 - }, - "end": { - "line": 822, - "column": 17 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 30461, - "end": 30466, - "loc": { - "start": { - "line": 822, - "column": 12 - }, - "end": { - "line": 822, - "column": 17 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "ArrowFunctionExpression", - "start": 30481, - "end": 30642, - "loc": { - "start": { - "line": 823, - "column": 13 - }, - "end": { - "line": 829, - "column": 11 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 30482, - "end": 30485, - "loc": { - "start": { - "line": 823, - "column": 14 - }, - "end": { - "line": 823, - "column": 17 - }, - "identifierName": "err" - }, - "name": "err" - }, - { - "type": "Identifier", - "start": 30487, - "end": 30490, - "loc": { - "start": { - "line": 823, - "column": 19 - }, - "end": { - "line": 823, - "column": 22 - }, - "identifierName": "res" - }, - "name": "res" - } - ], - "body": { - "type": "BlockStatement", - "start": 30495, - "end": 30642, - "loc": { - "start": { - "line": 823, - "column": 27 - }, - "end": { - "line": 829, - "column": 11 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 30509, - "end": 30630, - "loc": { - "start": { - "line": 824, - "column": 12 - }, - "end": { - "line": 828, - "column": 13 - } - }, - "test": { - "type": "Identifier", - "start": 30513, - "end": 30516, - "loc": { - "start": { - "line": 824, - "column": 16 - }, - "end": { - "line": 824, - "column": 19 - }, - "identifierName": "err" - }, - "name": "err" - }, - "consequent": { - "type": "BlockStatement", - "start": 30518, - "end": 30560, - "loc": { - "start": { - "line": 824, - "column": 21 - }, - "end": { - "line": 826, - "column": 13 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 30534, - "end": 30546, - "loc": { - "start": { - "line": 825, - "column": 14 - }, - "end": { - "line": 825, - "column": 26 - } - }, - "expression": { - "type": "CallExpression", - "start": 30534, - "end": 30545, - "loc": { - "start": { - "line": 825, - "column": 14 - }, - "end": { - "line": 825, - "column": 25 - } - }, - "callee": { - "type": "Identifier", - "start": 30534, - "end": 30540, - "loc": { - "start": { - "line": 825, - "column": 14 - }, - "end": { - "line": 825, - "column": 20 - }, - "identifierName": "reject" - }, - "name": "reject" - }, - "arguments": [ - { - "type": "Identifier", - "start": 30541, - "end": 30544, - "loc": { - "start": { - "line": 825, - "column": 21 - }, - "end": { - "line": 825, - "column": 24 - }, - "identifierName": "err" - }, - "name": "err" - } - ] - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 30566, - "end": 30630, - "loc": { - "start": { - "line": 826, - "column": 19 - }, - "end": { - "line": 828, - "column": 13 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 30582, - "end": 30616, - "loc": { - "start": { - "line": 827, - "column": 14 - }, - "end": { - "line": 827, - "column": 48 - } - }, - "expression": { - "type": "CallExpression", - "start": 30582, - "end": 30615, - "loc": { - "start": { - "line": 827, - "column": 14 - }, - "end": { - "line": 827, - "column": 47 - } - }, - "callee": { - "type": "Identifier", - "start": 30582, - "end": 30589, - "loc": { - "start": { - "line": 827, - "column": 14 - }, - "end": { - "line": 827, - "column": 21 - }, - "identifierName": "resolve" - }, - "name": "resolve" - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 30590, - "end": 30614, - "loc": { - "start": { - "line": 827, - "column": 22 - }, - "end": { - "line": 827, - "column": 46 - } - }, - "left": { - "type": "MemberExpression", - "start": 30590, - "end": 30600, - "loc": { - "start": { - "line": 827, - "column": 22 - }, - "end": { - "line": 827, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 30590, - "end": 30593, - "loc": { - "start": { - "line": 827, - "column": 22 - }, - "end": { - "line": 827, - "column": 25 - }, - "identifierName": "res" - }, - "name": "res" - }, - "property": { - "type": "Identifier", - "start": 30594, - "end": 30600, - "loc": { - "start": { - "line": 827, - "column": 26 - }, - "end": { - "line": 827, - "column": 32 - }, - "identifierName": "status" - }, - "name": "status" - }, - "computed": false - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 30605, - "end": 30614, - "loc": { - "start": { - "line": 827, - "column": 37 - }, - "end": { - "line": 827, - "column": 46 - } - }, - "extra": { - "rawValue": "success", - "raw": "'success'" - }, - "value": "success" - } - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - } - } - ] - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 30666, - "end": 30749, - "loc": { - "start": { - "line": 832, - "column": 8 - }, - "end": { - "line": 833, - "column": 45 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 30672, - "end": 30748, - "loc": { - "start": { - "line": 832, - "column": 14 - }, - "end": { - "line": 833, - "column": 44 - } - }, - "id": { - "type": "Identifier", - "start": 30672, - "end": 30688, - "loc": { - "start": { - "line": 832, - "column": 14 - }, - "end": { - "line": 832, - "column": 30 - }, - "identifierName": "documentsDeleted" - }, - "name": "documentsDeleted" - }, - "init": { - "type": "CallExpression", - "start": 30691, - "end": 30748, - "loc": { - "start": { - "line": 832, - "column": 33 - }, - "end": { - "line": 833, - "column": 44 - } - }, - "callee": { - "type": "MemberExpression", - "start": 30691, - "end": 30718, - "loc": { - "start": { - "line": 832, - "column": 33 - }, - "end": { - "line": 833, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 30691, - "end": 30703, - "loc": { - "start": { - "line": 832, - "column": 33 - }, - "end": { - "line": 832, - "column": 45 - }, - "identifierName": "document_ids" - }, - "name": "document_ids" - }, - "property": { - "type": "Identifier", - "start": 30715, - "end": 30718, - "loc": { - "start": { - "line": 833, - "column": 11 - }, - "end": { - "line": 833, - "column": 14 - }, - "identifierName": "map" - }, - "name": "map" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 30719, - "end": 30747, - "loc": { - "start": { - "line": 833, - "column": 15 - }, - "end": { - "line": 833, - "column": 43 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 30719, - "end": 30721, - "loc": { - "start": { - "line": 833, - "column": 15 - }, - "end": { - "line": 833, - "column": 17 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "body": { - "type": "CallExpression", - "start": 30725, - "end": 30747, - "loc": { - "start": { - "line": 833, - "column": 21 - }, - "end": { - "line": 833, - "column": 43 - } - }, - "callee": { - "type": "Identifier", - "start": 30725, - "end": 30739, - "loc": { - "start": { - "line": 833, - "column": 21 - }, - "end": { - "line": 833, - "column": 35 - }, - "identifierName": "removeDocument" - }, - "name": "removeDocument" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 30740, - "end": 30746, - "loc": { - "start": { - "line": 833, - "column": 36 - }, - "end": { - "line": 833, - "column": 42 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 30742, - "end": 30744, - "loc": { - "start": { - "line": 833, - "column": 38 - }, - "end": { - "line": 833, - "column": 40 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 30742, - "end": 30744, - "loc": { - "start": { - "line": 833, - "column": 38 - }, - "end": { - "line": 833, - "column": 40 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 30742, - "end": 30744, - "loc": { - "start": { - "line": 833, - "column": 38 - }, - "end": { - "line": 833, - "column": 40 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 30759, - "end": 31310, - "loc": { - "start": { - "line": 835, - "column": 8 - }, - "end": { - "line": 848, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 30759, - "end": 31309, - "loc": { - "start": { - "line": 835, - "column": 8 - }, - "end": { - "line": 848, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 30759, - "end": 31220, - "loc": { - "start": { - "line": 835, - "column": 8 - }, - "end": { - "line": 845, - "column": 16 - } - }, - "object": { - "type": "CallExpression", - "start": 30759, - "end": 31203, - "loc": { - "start": { - "line": 835, - "column": 8 - }, - "end": { - "line": 844, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 30759, - "end": 30939, - "loc": { - "start": { - "line": 835, - "column": 8 - }, - "end": { - "line": 837, - "column": 15 - } - }, - "object": { - "type": "CallExpression", - "start": 30759, - "end": 30923, - "loc": { - "start": { - "line": 835, - "column": 8 - }, - "end": { - "line": 836, - "column": 134 - } - }, - "callee": { - "type": "MemberExpression", - "start": 30759, - "end": 30804, - "loc": { - "start": { - "line": 835, - "column": 8 - }, - "end": { - "line": 836, - "column": 15 - } - }, - "object": { - "type": "CallExpression", - "start": 30759, - "end": 30788, - "loc": { - "start": { - "line": 835, - "column": 8 - }, - "end": { - "line": 835, - "column": 37 - } - }, - "callee": { - "type": "MemberExpression", - "start": 30759, - "end": 30770, - "loc": { - "start": { - "line": 835, - "column": 8 - }, - "end": { - "line": 835, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 30759, - "end": 30766, - "loc": { - "start": { - "line": 835, - "column": 8 - }, - "end": { - "line": 835, - "column": 15 - }, - "identifierName": "Promise" - }, - "name": "Promise" - }, - "property": { - "type": "Identifier", - "start": 30767, - "end": 30770, - "loc": { - "start": { - "line": 835, - "column": 16 - }, - "end": { - "line": 835, - "column": 19 - }, - "identifierName": "all" - }, - "name": "all" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 30771, - "end": 30787, - "loc": { - "start": { - "line": 835, - "column": 20 - }, - "end": { - "line": 835, - "column": 36 - }, - "identifierName": "documentsDeleted" - }, - "name": "documentsDeleted" - } - ] - }, - "property": { - "type": "Identifier", - "start": 30800, - "end": 30804, - "loc": { - "start": { - "line": 836, - "column": 11 - }, - "end": { - "line": 836, - "column": 15 - }, - "identifierName": "then" - }, - "name": "then" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 30805, - "end": 30922, - "loc": { - "start": { - "line": 836, - "column": 16 - }, - "end": { - "line": 836, - "column": 133 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 30805, - "end": 30821, - "loc": { - "start": { - "line": 836, - "column": 16 - }, - "end": { - "line": 836, - "column": 32 - }, - "identifierName": "deletionStatuses" - }, - "name": "deletionStatuses" - } - ], - "body": { - "type": "CallExpression", - "start": 30825, - "end": 30922, - "loc": { - "start": { - "line": 836, - "column": 36 - }, - "end": { - "line": 836, - "column": 133 - } - }, - "callee": { - "type": "MemberExpression", - "start": 30825, - "end": 30848, - "loc": { - "start": { - "line": 836, - "column": 36 - }, - "end": { - "line": 836, - "column": 59 - } - }, - "object": { - "type": "Identifier", - "start": 30825, - "end": 30841, - "loc": { - "start": { - "line": 836, - "column": 36 - }, - "end": { - "line": 836, - "column": 52 - }, - "identifierName": "deletionStatuses" - }, - "name": "deletionStatuses" - }, - "property": { - "type": "Identifier", - "start": 30842, - "end": 30848, - "loc": { - "start": { - "line": 836, - "column": 53 - }, - "end": { - "line": 836, - "column": 59 - }, - "identifierName": "reduce" - }, - "name": "reduce" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 30849, - "end": 30915, - "loc": { - "start": { - "line": 836, - "column": 60 - }, - "end": { - "line": 836, - "column": 126 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 30850, - "end": 30863, - "loc": { - "start": { - "line": 836, - "column": 61 - }, - "end": { - "line": 836, - "column": 74 - }, - "identifierName": "generalStatus" - }, - "name": "generalStatus" - }, - { - "type": "Identifier", - "start": 30865, - "end": 30878, - "loc": { - "start": { - "line": 836, - "column": 76 - }, - "end": { - "line": 836, - "column": 89 - }, - "identifierName": "currentStatus" - }, - "name": "currentStatus" - } - ], - "body": { - "type": "LogicalExpression", - "start": 30884, - "end": 30914, - "loc": { - "start": { - "line": 836, - "column": 95 - }, - "end": { - "line": 836, - "column": 125 - } - }, - "left": { - "type": "Identifier", - "start": 30884, - "end": 30897, - "loc": { - "start": { - "line": 836, - "column": 95 - }, - "end": { - "line": 836, - "column": 108 - }, - "identifierName": "generalStatus" - }, - "name": "generalStatus" - }, - "operator": "&&", - "right": { - "type": "Identifier", - "start": 30901, - "end": 30914, - "loc": { - "start": { - "line": 836, - "column": 112 - }, - "end": { - "line": 836, - "column": 125 - }, - "identifierName": "currentStatus" - }, - "name": "currentStatus" - }, - "extra": { - "parenthesized": true, - "parenStart": 30883 - } - } - }, - { - "type": "BooleanLiteral", - "start": 30917, - "end": 30921, - "loc": { - "start": { - "line": 836, - "column": 128 - }, - "end": { - "line": 836, - "column": 132 - } - }, - "value": true - } - ] - } - } - ] - }, - "property": { - "type": "Identifier", - "start": 30935, - "end": 30939, - "loc": { - "start": { - "line": 837, - "column": 11 - }, - "end": { - "line": 837, - "column": 15 - }, - "identifierName": "then" - }, - "name": "then" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 30940, - "end": 31202, - "loc": { - "start": { - "line": 837, - "column": 16 - }, - "end": { - "line": 844, - "column": 11 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 30940, - "end": 30959, - "loc": { - "start": { - "line": 837, - "column": 16 - }, - "end": { - "line": 837, - "column": 35 - }, - "identifierName": "allDocumentsDeleted" - }, - "name": "allDocumentsDeleted" - } - ], - "body": { - "type": "BlockStatement", - "start": 30963, - "end": 31202, - "loc": { - "start": { - "line": 837, - "column": 39 - }, - "end": { - "line": 844, - "column": 11 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 30977, - "end": 31190, - "loc": { - "start": { - "line": 838, - "column": 12 - }, - "end": { - "line": 843, - "column": 13 - } - }, - "test": { - "type": "Identifier", - "start": 30981, - "end": 31000, - "loc": { - "start": { - "line": 838, - "column": 16 - }, - "end": { - "line": 838, - "column": 35 - }, - "identifierName": "allDocumentsDeleted" - }, - "name": "allDocumentsDeleted" - }, - "consequent": { - "type": "BlockStatement", - "start": 31002, - "end": 31087, - "loc": { - "start": { - "line": 838, - "column": 37 - }, - "end": { - "line": 841, - "column": 13 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 31018, - "end": 31051, - "loc": { - "start": { - "line": 839, - "column": 14 - }, - "end": { - "line": 839, - "column": 47 - } - }, - "expression": { - "type": "CallExpression", - "start": 31018, - "end": 31050, - "loc": { - "start": { - "line": 839, - "column": 14 - }, - "end": { - "line": 839, - "column": 46 - } - }, - "callee": { - "type": "Identifier", - "start": 31018, - "end": 31034, - "loc": { - "start": { - "line": 839, - "column": 14 - }, - "end": { - "line": 839, - "column": 30 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - }, - "arguments": [ - { - "type": "NullLiteral", - "start": 31035, - "end": 31039, - "loc": { - "start": { - "line": 839, - "column": 31 - }, - "end": { - "line": 839, - "column": 35 - } - } - }, - { - "type": "Identifier", - "start": 31041, - "end": 31049, - "loc": { - "start": { - "line": 839, - "column": 37 - }, - "end": { - "line": 839, - "column": 45 - }, - "identifierName": "mergeRes" - }, - "name": "mergeRes" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 31066, - "end": 31073, - "loc": { - "start": { - "line": 840, - "column": 14 - }, - "end": { - "line": 840, - "column": 21 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 31093, - "end": 31190, - "loc": { - "start": { - "line": 841, - "column": 19 - }, - "end": { - "line": 843, - "column": 13 - } - }, - "body": [ - { - "type": "ThrowStatement", - "start": 31109, - "end": 31176, - "loc": { - "start": { - "line": 842, - "column": 14 - }, - "end": { - "line": 842, - "column": 81 - } - }, - "argument": { - "type": "NewExpression", - "start": 31115, - "end": 31175, - "loc": { - "start": { - "line": 842, - "column": 20 - }, - "end": { - "line": 842, - "column": 80 - } - }, - "callee": { - "type": "Identifier", - "start": 31119, - "end": 31124, - "loc": { - "start": { - "line": 842, - "column": 24 - }, - "end": { - "line": 842, - "column": 29 - }, - "identifierName": "Error" - }, - "name": "Error" - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 31125, - "end": 31174, - "loc": { - "start": { - "line": 842, - "column": 30 - }, - "end": { - "line": 842, - "column": 79 - } - }, - "extra": { - "rawValue": "Some of the original documents were not removed", - "raw": "'Some of the original documents were not removed'" - }, - "value": "Some of the original documents were not removed" - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ] - }, - "property": { - "type": "Identifier", - "start": 31215, - "end": 31220, - "loc": { - "start": { - "line": 845, - "column": 11 - }, - "end": { - "line": 845, - "column": 16 - }, - "identifierName": "catch" - }, - "name": "catch" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 31221, - "end": 31308, - "loc": { - "start": { - "line": 845, - "column": 17 - }, - "end": { - "line": 848, - "column": 11 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 31221, - "end": 31230, - "loc": { - "start": { - "line": 845, - "column": 17 - }, - "end": { - "line": 845, - "column": 26 - }, - "identifierName": "removeErr" - }, - "name": "removeErr" - } - ], - "body": { - "type": "BlockStatement", - "start": 31234, - "end": 31308, - "loc": { - "start": { - "line": 845, - "column": 30 - }, - "end": { - "line": 848, - "column": 11 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 31248, - "end": 31276, - "loc": { - "start": { - "line": 846, - "column": 12 - }, - "end": { - "line": 846, - "column": 40 - } - }, - "expression": { - "type": "CallExpression", - "start": 31248, - "end": 31275, - "loc": { - "start": { - "line": 846, - "column": 12 - }, - "end": { - "line": 846, - "column": 39 - } - }, - "callee": { - "type": "Identifier", - "start": 31248, - "end": 31264, - "loc": { - "start": { - "line": 846, - "column": 12 - }, - "end": { - "line": 846, - "column": 28 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 31265, - "end": 31274, - "loc": { - "start": { - "line": 846, - "column": 29 - }, - "end": { - "line": 846, - "column": 38 - }, - "identifierName": "removeErr" - }, - "name": "removeErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 31289, - "end": 31296, - "loc": { - "start": { - "line": 847, - "column": 12 - }, - "end": { - "line": 847, - "column": 19 - } - }, - "argument": null - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 31332, - "end": 31435, - "loc": { - "start": { - "line": 853, - "column": 4 - }, - "end": { - "line": 855, - "column": 25 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 31338, - "end": 31434, - "loc": { - "start": { - "line": 853, - "column": 10 - }, - "end": { - "line": 855, - "column": 24 - } - }, - "id": { - "type": "Identifier", - "start": 31338, - "end": 31346, - "loc": { - "start": { - "line": 853, - "column": 10 - }, - "end": { - "line": 853, - "column": 18 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "init": { - "type": "ConditionalExpression", - "start": 31349, - "end": 31434, - "loc": { - "start": { - "line": 853, - "column": 21 - }, - "end": { - "line": 855, - "column": 24 - } - }, - "test": { - "type": "Identifier", - "start": 31349, - "end": 31372, - "loc": { - "start": { - "line": 853, - "column": 21 - }, - "end": { - "line": 853, - "column": 44 - }, - "identifierName": "removeOriginalDocuments" - }, - "name": "removeOriginalDocuments" - }, - "consequent": { - "type": "Identifier", - "start": 31381, - "end": 31409, - "loc": { - "start": { - "line": 854, - "column": 8 - }, - "end": { - "line": 854, - "column": 36 - }, - "identifierName": "callbackWithDocumentDeletion" - }, - "name": "callbackWithDocumentDeletion" - }, - "alternate": { - "type": "Identifier", - "start": 31418, - "end": 31434, - "loc": { - "start": { - "line": 855, - "column": 8 - }, - "end": { - "line": 855, - "column": 24 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 31441, - "end": 31853, - "loc": { - "start": { - "line": 857, - "column": 4 - }, - "end": { - "line": 870, - "column": 51 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 31447, - "end": 31852, - "loc": { - "start": { - "line": 857, - "column": 10 - }, - "end": { - "line": 870, - "column": 50 - } - }, - "id": { - "type": "Identifier", - "start": 31447, - "end": 31450, - "loc": { - "start": { - "line": 857, - "column": 10 - }, - "end": { - "line": 857, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 31453, - "end": 31852, - "loc": { - "start": { - "line": 857, - "column": 16 - }, - "end": { - "line": 870, - "column": 50 - } - }, - "callee": { - "type": "MemberExpression", - "start": 31453, - "end": 31811, - "loc": { - "start": { - "line": 857, - "column": 16 - }, - "end": { - "line": 870, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 31453, - "end": 31801, - "loc": { - "start": { - "line": 857, - "column": 16 - }, - "end": { - "line": 869, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 31453, - "end": 31473, - "loc": { - "start": { - "line": 857, - "column": 16 - }, - "end": { - "line": 858, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 31453, - "end": 31458, - "loc": { - "start": { - "line": 857, - "column": 16 - }, - "end": { - "line": 857, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 31466, - "end": 31473, - "loc": { - "start": { - "line": 858, - "column": 7 - }, - "end": { - "line": 858, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 31474, - "end": 31773, - "loc": { - "start": { - "line": 858, - "column": 15 - }, - "end": { - "line": 869, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 31474, - "end": 31493, - "loc": { - "start": { - "line": 858, - "column": 15 - }, - "end": { - "line": 858, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 31494, - "end": 31772, - "loc": { - "start": { - "line": 858, - "column": 35 - }, - "end": { - "line": 869, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 31504, - "end": 31518, - "loc": { - "start": { - "line": 859, - "column": 8 - }, - "end": { - "line": 859, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31504, - "end": 31510, - "loc": { - "start": { - "line": 859, - "column": 8 - }, - "end": { - "line": 859, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 31512, - "end": 31518, - "loc": { - "start": { - "line": 859, - "column": 16 - }, - "end": { - "line": 859, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 31528, - "end": 31551, - "loc": { - "start": { - "line": 860, - "column": 8 - }, - "end": { - "line": 860, - "column": 31 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31528, - "end": 31532, - "loc": { - "start": { - "line": 860, - "column": 8 - }, - "end": { - "line": 860, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 31534, - "end": 31551, - "loc": { - "start": { - "line": 860, - "column": 14 - }, - "end": { - "line": 860, - "column": 31 - } - }, - "extra": { - "rawValue": "/document/merge", - "raw": "'/document/merge'" - }, - "value": "/document/merge" - } - }, - { - "type": "ObjectProperty", - "start": 31561, - "end": 31630, - "loc": { - "start": { - "line": 861, - "column": 8 - }, - "end": { - "line": 864, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31561, - "end": 31574, - "loc": { - "start": { - "line": 861, - "column": 8 - }, - "end": { - "line": 861, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 31576, - "end": 31630, - "loc": { - "start": { - "line": 861, - "column": 23 - }, - "end": { - "line": 864, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 31588, - "end": 31602, - "loc": { - "start": { - "line": 862, - "column": 10 - }, - "end": { - "line": 862, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31588, - "end": 31592, - "loc": { - "start": { - "line": 862, - "column": 10 - }, - "end": { - "line": 862, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 31594, - "end": 31602, - "loc": { - "start": { - "line": 862, - "column": 16 - }, - "end": { - "line": 862, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 31614, - "end": 31619, - "loc": { - "start": { - "line": 863, - "column": 10 - }, - "end": { - "line": 863, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 31614, - "end": 31619, - "loc": { - "start": { - "line": 863, - "column": 10 - }, - "end": { - "line": 863, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 31614, - "end": 31619, - "loc": { - "start": { - "line": 863, - "column": 10 - }, - "end": { - "line": 863, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 31640, - "end": 31763, - "loc": { - "start": { - "line": 865, - "column": 8 - }, - "end": { - "line": 868, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31640, - "end": 31647, - "loc": { - "start": { - "line": 865, - "column": 8 - }, - "end": { - "line": 865, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 31649, - "end": 31763, - "loc": { - "start": { - "line": 865, - "column": 17 - }, - "end": { - "line": 868, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 31661, - "end": 31695, - "loc": { - "start": { - "line": 866, - "column": 10 - }, - "end": { - "line": 866, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 31661, - "end": 31675, - "loc": { - "start": { - "line": 866, - "column": 10 - }, - "end": { - "line": 866, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 31677, - "end": 31695, - "loc": { - "start": { - "line": 866, - "column": 26 - }, - "end": { - "line": 866, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 31707, - "end": 31752, - "loc": { - "start": { - "line": 867, - "column": 10 - }, - "end": { - "line": 867, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 31707, - "end": 31723, - "loc": { - "start": { - "line": 867, - "column": 10 - }, - "end": { - "line": 867, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 31725, - "end": 31752, - "loc": { - "start": { - "line": 867, - "column": 28 - }, - "end": { - "line": 867, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 31725, - "end": 31742, - "loc": { - "start": { - "line": 867, - "column": 28 - }, - "end": { - "line": 867, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 31725, - "end": 31731, - "loc": { - "start": { - "line": 867, - "column": 28 - }, - "end": { - "line": 867, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 31732, - "end": 31742, - "loc": { - "start": { - "line": 867, - "column": 35 - }, - "end": { - "line": 867, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 31743, - "end": 31751, - "loc": { - "start": { - "line": 867, - "column": 46 - }, - "end": { - "line": 867, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 31775, - "end": 31800, - "loc": { - "start": { - "line": 869, - "column": 10 - }, - "end": { - "line": 869, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 31775, - "end": 31790, - "loc": { - "start": { - "line": 869, - "column": 10 - }, - "end": { - "line": 869, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 31791, - "end": 31799, - "loc": { - "start": { - "line": 869, - "column": 26 - }, - "end": { - "line": 869, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 31809, - "end": 31811, - "loc": { - "start": { - "line": 870, - "column": 7 - }, - "end": { - "line": 870, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 31812, - "end": 31819, - "loc": { - "start": { - "line": 870, - "column": 10 - }, - "end": { - "line": 870, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 31821, - "end": 31851, - "loc": { - "start": { - "line": 870, - "column": 19 - }, - "end": { - "line": 870, - "column": 49 - } - }, - "callee": { - "type": "Identifier", - "start": 31821, - "end": 31833, - "loc": { - "start": { - "line": 870, - "column": 19 - }, - "end": { - "line": 870, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 31834, - "end": 31850, - "loc": { - "start": { - "line": 870, - "column": 32 - }, - "end": { - "line": 870, - "column": 48 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 31859, - "end": 31879, - "loc": { - "start": { - "line": 872, - "column": 4 - }, - "end": { - "line": 872, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 31859, - "end": 31878, - "loc": { - "start": { - "line": 872, - "column": 4 - }, - "end": { - "line": 872, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 31859, - "end": 31868, - "loc": { - "start": { - "line": 872, - "column": 4 - }, - "end": { - "line": 872, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 31859, - "end": 31862, - "loc": { - "start": { - "line": 872, - "column": 4 - }, - "end": { - "line": 872, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 31863, - "end": 31868, - "loc": { - "start": { - "line": 872, - "column": 8 - }, - "end": { - "line": 872, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 31869, - "end": 31877, - "loc": { - "start": { - "line": 872, - "column": 14 - }, - "end": { - "line": 872, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 31884, - "end": 31894, - "loc": { - "start": { - "line": 873, - "column": 4 - }, - "end": { - "line": 873, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 31884, - "end": 31893, - "loc": { - "start": { - "line": 873, - "column": 4 - }, - "end": { - "line": 873, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 31884, - "end": 31891, - "loc": { - "start": { - "line": 873, - "column": 4 - }, - "end": { - "line": 873, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 31884, - "end": 31887, - "loc": { - "start": { - "line": 873, - "column": 4 - }, - "end": { - "line": 873, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 31888, - "end": 31891, - "loc": { - "start": { - "line": 873, - "column": 8 - }, - "end": { - "line": 873, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Merge documents optional settings\n * @typedef {Object} DocumentMergeOptions\n * @property {boolean} [removeOriginalDocuments=false] - if true original documents will be removed\n ", - "start": 28847, - "end": 29041, - "loc": { - "start": { - "line": 774, - "column": 2 - }, - "end": { - "line": 778, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Merge documents payload\n * @typedef {Object} DocumentMergeParams\n * @property {string} token - your auth token\n * @property {string} name - new name for merged document\n * @property {string[]} document_ids - an array of document IDs\n * @property {DocumentMergeOptions} options - merge documents optional settings\n ", - "start": 29045, - "end": 29382, - "loc": { - "start": { - "line": 780, - "column": 2 - }, - "end": { - "line": 787, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Merge documents response data\n * @typedef {Object} DocumentMergeResponse\n * @property {string} document_id - an ID of merged document\n ", - "start": 29386, - "end": 29538, - "loc": { - "start": { - "line": 789, - "column": 2 - }, - "end": { - "line": 793, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Merges existing documents into one.\n * By default original documents are not removed after merging. To remove original documents set `removeOriginalDocuments` option to `true`.\n * @param {DocumentMergeParams} data - merge documents payload\n * @param {function(err: ApiErrorResponse, res: DocumentMergeResponse)} [originalCallback] - error first node.js callback\n ", - "start": 29542, - "end": 29924, - "loc": { - "start": { - "line": 795, - "column": 2 - }, - "end": { - "line": 800, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document history payload\n * @typedef {Object} DocumentHistoryParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 31902, - "end": 32087, - "loc": { - "start": { - "line": 876, - "column": 2 - }, - "end": { - "line": 881, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document action log item\n * @typedef {Object} DocumentEvent\n * @property {string} client_app_name - name of a client application\n * @property {?string} client_timestamp - client application timestamp\n * @property {string} created - timestamp of action creation\n * @property {string} email - email of an actor\n * @property {string} event - name of event\n * @property {string} ip_address - actor's IP address\n * @property {?string} element_id - an ID of specific element\n * @property {?string} field_id - an ID of specific field\n * @property {?string} json_attributes - field attributes (e.g. font, style, size etc.)\n * @property {string} [document_id] - an ID of specific document\n * @property {string} [origin] - an origin of document\n * @property {string} [unique_id] - an ID of event\n * @property {string} [user_agent] - user agent\n * @property {string} [user_id] - id of an actor\n * @property {string} [version] - version of signed document (incremented after each signature addition)\n ", - "start": 32091, - "end": 33125, - "loc": { - "start": { - "line": 883, - "column": 2 - }, - "end": { - "line": 901, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document history response data\n * @typedef {DocumentEvent[]} DocumentHistoryResponse\n ", - "start": 33129, - "end": 33230, - "loc": { - "start": { - "line": 903, - "column": 2 - }, - "end": { - "line": 906, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves a document action log (history) data\n * @param {DocumentHistoryParams} data - payload\n * @param {function(err: ApiErrorResponse, res: DocumentHistoryResponse)} [callback] - error first node.js callback\n ", - "start": 33234, - "end": 33465, - "loc": { - "start": { - "line": 908, - "column": 2 - }, - "end": { - "line": 912, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 33468, - "end": 33798, - "loc": { - "start": { - "line": 913, - "column": 2 - }, - "end": { - "line": 925, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 33475, - "end": 33482, - "loc": { - "start": { - "line": 913, - "column": 9 - }, - "end": { - "line": 913, - "column": 16 - }, - "identifierName": "history" - }, - "name": "history" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 33484, - "end": 33497, - "loc": { - "start": { - "line": 913, - "column": 18 - }, - "end": { - "line": 913, - "column": 31 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 33486, - "end": 33488, - "loc": { - "start": { - "line": 913, - "column": 20 - }, - "end": { - "line": 913, - "column": 22 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 33486, - "end": 33488, - "loc": { - "start": { - "line": 913, - "column": 20 - }, - "end": { - "line": 913, - "column": 22 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 33486, - "end": 33488, - "loc": { - "start": { - "line": 913, - "column": 20 - }, - "end": { - "line": 913, - "column": 22 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 33490, - "end": 33495, - "loc": { - "start": { - "line": 913, - "column": 24 - }, - "end": { - "line": 913, - "column": 29 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 33490, - "end": 33495, - "loc": { - "start": { - "line": 913, - "column": 24 - }, - "end": { - "line": 913, - "column": 29 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 33490, - "end": 33495, - "loc": { - "start": { - "line": 913, - "column": 24 - }, - "end": { - "line": 913, - "column": 29 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 33499, - "end": 33507, - "loc": { - "start": { - "line": 913, - "column": 33 - }, - "end": { - "line": 913, - "column": 41 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 33509, - "end": 33798, - "loc": { - "start": { - "line": 913, - "column": 43 - }, - "end": { - "line": 925, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 33515, - "end": 33794, - "loc": { - "start": { - "line": 914, - "column": 4 - }, - "end": { - "line": 924, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 33515, - "end": 33793, - "loc": { - "start": { - "line": 914, - "column": 4 - }, - "end": { - "line": 924, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 33515, - "end": 33791, - "loc": { - "start": { - "line": 914, - "column": 4 - }, - "end": { - "line": 924, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 33515, - "end": 33780, - "loc": { - "start": { - "line": 914, - "column": 4 - }, - "end": { - "line": 923, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 33515, - "end": 33747, - "loc": { - "start": { - "line": 914, - "column": 4 - }, - "end": { - "line": 923, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 33515, - "end": 33737, - "loc": { - "start": { - "line": 914, - "column": 4 - }, - "end": { - "line": 922, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 33515, - "end": 33535, - "loc": { - "start": { - "line": 914, - "column": 4 - }, - "end": { - "line": 915, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 33515, - "end": 33520, - "loc": { - "start": { - "line": 914, - "column": 4 - }, - "end": { - "line": 914, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 33528, - "end": 33535, - "loc": { - "start": { - "line": 915, - "column": 7 - }, - "end": { - "line": 915, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 33536, - "end": 33709, - "loc": { - "start": { - "line": 915, - "column": 15 - }, - "end": { - "line": 922, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 33536, - "end": 33555, - "loc": { - "start": { - "line": 915, - "column": 15 - }, - "end": { - "line": 915, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 33556, - "end": 33708, - "loc": { - "start": { - "line": 915, - "column": 35 - }, - "end": { - "line": 922, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 33566, - "end": 33579, - "loc": { - "start": { - "line": 916, - "column": 8 - }, - "end": { - "line": 916, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 33566, - "end": 33572, - "loc": { - "start": { - "line": 916, - "column": 8 - }, - "end": { - "line": 916, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 33574, - "end": 33579, - "loc": { - "start": { - "line": 916, - "column": 16 - }, - "end": { - "line": 916, - "column": 21 - } - }, - "extra": { - "rawValue": "GET", - "raw": "'GET'" - }, - "value": "GET" - } - }, - { - "type": "ObjectProperty", - "start": 33589, - "end": 33620, - "loc": { - "start": { - "line": 917, - "column": 8 - }, - "end": { - "line": 917, - "column": 39 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 33589, - "end": 33593, - "loc": { - "start": { - "line": 917, - "column": 8 - }, - "end": { - "line": 917, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 33595, - "end": 33620, - "loc": { - "start": { - "line": 917, - "column": 14 - }, - "end": { - "line": 917, - "column": 39 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 33608, - "end": 33610, - "loc": { - "start": { - "line": 917, - "column": 27 - }, - "end": { - "line": 917, - "column": 29 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 33596, - "end": 33606, - "loc": { - "start": { - "line": 917, - "column": 15 - }, - "end": { - "line": 917, - "column": 25 - } - }, - "value": { - "raw": "/document/", - "cooked": "/document/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 33611, - "end": 33619, - "loc": { - "start": { - "line": 917, - "column": 30 - }, - "end": { - "line": 917, - "column": 38 - } - }, - "value": { - "raw": "/history", - "cooked": "/history" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 33630, - "end": 33699, - "loc": { - "start": { - "line": 918, - "column": 8 - }, - "end": { - "line": 921, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 33630, - "end": 33643, - "loc": { - "start": { - "line": 918, - "column": 8 - }, - "end": { - "line": 918, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 33645, - "end": 33699, - "loc": { - "start": { - "line": 918, - "column": 23 - }, - "end": { - "line": 921, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 33657, - "end": 33671, - "loc": { - "start": { - "line": 919, - "column": 10 - }, - "end": { - "line": 919, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 33657, - "end": 33661, - "loc": { - "start": { - "line": 919, - "column": 10 - }, - "end": { - "line": 919, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 33663, - "end": 33671, - "loc": { - "start": { - "line": 919, - "column": 16 - }, - "end": { - "line": 919, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 33683, - "end": 33688, - "loc": { - "start": { - "line": 920, - "column": 10 - }, - "end": { - "line": 920, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 33683, - "end": 33688, - "loc": { - "start": { - "line": 920, - "column": 10 - }, - "end": { - "line": 920, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 33683, - "end": 33688, - "loc": { - "start": { - "line": 920, - "column": 10 - }, - "end": { - "line": 920, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 33711, - "end": 33736, - "loc": { - "start": { - "line": 922, - "column": 10 - }, - "end": { - "line": 922, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 33711, - "end": 33726, - "loc": { - "start": { - "line": 922, - "column": 10 - }, - "end": { - "line": 922, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 33727, - "end": 33735, - "loc": { - "start": { - "line": 922, - "column": 26 - }, - "end": { - "line": 922, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 33745, - "end": 33747, - "loc": { - "start": { - "line": 923, - "column": 7 - }, - "end": { - "line": 923, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 33748, - "end": 33755, - "loc": { - "start": { - "line": 923, - "column": 10 - }, - "end": { - "line": 923, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 33757, - "end": 33779, - "loc": { - "start": { - "line": 923, - "column": 19 - }, - "end": { - "line": 923, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 33757, - "end": 33769, - "loc": { - "start": { - "line": 923, - "column": 19 - }, - "end": { - "line": 923, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 33770, - "end": 33778, - "loc": { - "start": { - "line": 923, - "column": 32 - }, - "end": { - "line": 923, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 33788, - "end": 33791, - "loc": { - "start": { - "line": 924, - "column": 7 - }, - "end": { - "line": 924, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document history payload\n * @typedef {Object} DocumentHistoryParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 31902, - "end": 32087, - "loc": { - "start": { - "line": 876, - "column": 2 - }, - "end": { - "line": 881, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document action log item\n * @typedef {Object} DocumentEvent\n * @property {string} client_app_name - name of a client application\n * @property {?string} client_timestamp - client application timestamp\n * @property {string} created - timestamp of action creation\n * @property {string} email - email of an actor\n * @property {string} event - name of event\n * @property {string} ip_address - actor's IP address\n * @property {?string} element_id - an ID of specific element\n * @property {?string} field_id - an ID of specific field\n * @property {?string} json_attributes - field attributes (e.g. font, style, size etc.)\n * @property {string} [document_id] - an ID of specific document\n * @property {string} [origin] - an origin of document\n * @property {string} [unique_id] - an ID of event\n * @property {string} [user_agent] - user agent\n * @property {string} [user_id] - id of an actor\n * @property {string} [version] - version of signed document (incremented after each signature addition)\n ", - "start": 32091, - "end": 33125, - "loc": { - "start": { - "line": 883, - "column": 2 - }, - "end": { - "line": 901, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document history response data\n * @typedef {DocumentEvent[]} DocumentHistoryResponse\n ", - "start": 33129, - "end": 33230, - "loc": { - "start": { - "line": 903, - "column": 2 - }, - "end": { - "line": 906, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves a document action log (history) data\n * @param {DocumentHistoryParams} data - payload\n * @param {function(err: ApiErrorResponse, res: DocumentHistoryResponse)} [callback] - error first node.js callback\n ", - "start": 33234, - "end": 33465, - "loc": { - "start": { - "line": 908, - "column": 2 - }, - "end": { - "line": 912, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document remove optional settings\n * @typedef {Object} DocumentRemoveOptions\n * @property {boolean} [cancelInvites=false] - ability to cancel all document invites during deletion\n ", - "start": 33802, - "end": 33999, - "loc": { - "start": { - "line": 927, - "column": 2 - }, - "end": { - "line": 931, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Remove document payload\n * @typedef {Object} DocumentRemoveParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n * @property {DocumentRemoveOptions} [options] - document remove optional settings\n ", - "start": 34003, - "end": 34271, - "loc": { - "start": { - "line": 933, - "column": 2 - }, - "end": { - "line": 939, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Remove document response data\n * @typedef {Object} DocumentRemoveResponse\n * @property {string} status - status of deletion, e.g. 'success'\n ", - "start": 34275, - "end": 34433, - "loc": { - "start": { - "line": 941, - "column": 2 - }, - "end": { - "line": 945, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Removes a specified document from folder\n * @param {DocumentRemoveParams} data - remove document payload\n * @param {function(err: ApiErrorResponse, res: DocumentRemoveResponse)} [originalCallback] - error first node.js callback\n ", - "start": 34437, - "end": 34683, - "loc": { - "start": { - "line": 947, - "column": 2 - }, - "end": { - "line": 951, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 34686, - "end": 37066, - "loc": { - "start": { - "line": 952, - "column": 2 - }, - "end": { - "line": 1030, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 34693, - "end": 34699, - "loc": { - "start": { - "line": 952, - "column": 9 - }, - "end": { - "line": 952, - "column": 15 - }, - "identifierName": "remove" - }, - "name": "remove" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 34701, - "end": 34782, - "loc": { - "start": { - "line": 952, - "column": 17 - }, - "end": { - "line": 956, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 34707, - "end": 34721, - "loc": { - "start": { - "line": 953, - "column": 4 - }, - "end": { - "line": 953, - "column": 18 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 34707, - "end": 34709, - "loc": { - "start": { - "line": 953, - "column": 4 - }, - "end": { - "line": 953, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 34711, - "end": 34721, - "loc": { - "start": { - "line": 953, - "column": 8 - }, - "end": { - "line": 953, - "column": 18 - }, - "identifierName": "documentId" - }, - "name": "documentId" - } - }, - { - "type": "ObjectProperty", - "start": 34727, - "end": 34732, - "loc": { - "start": { - "line": 954, - "column": 4 - }, - "end": { - "line": 954, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 34727, - "end": 34732, - "loc": { - "start": { - "line": 954, - "column": 4 - }, - "end": { - "line": 954, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 34727, - "end": 34732, - "loc": { - "start": { - "line": 954, - "column": 4 - }, - "end": { - "line": 954, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 34738, - "end": 34777, - "loc": { - "start": { - "line": 955, - "column": 4 - }, - "end": { - "line": 955, - "column": 43 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 34738, - "end": 34745, - "loc": { - "start": { - "line": 955, - "column": 4 - }, - "end": { - "line": 955, - "column": 11 - }, - "identifierName": "options" - }, - "name": "options" - }, - "value": { - "type": "AssignmentPattern", - "start": 34747, - "end": 34777, - "loc": { - "start": { - "line": 955, - "column": 13 - }, - "end": { - "line": 955, - "column": 43 - } - }, - "left": { - "type": "ObjectPattern", - "start": 34747, - "end": 34772, - "loc": { - "start": { - "line": 955, - "column": 13 - }, - "end": { - "line": 955, - "column": 38 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 34749, - "end": 34770, - "loc": { - "start": { - "line": 955, - "column": 15 - }, - "end": { - "line": 955, - "column": 36 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 34749, - "end": 34762, - "loc": { - "start": { - "line": 955, - "column": 15 - }, - "end": { - "line": 955, - "column": 28 - }, - "identifierName": "cancelInvites" - }, - "name": "cancelInvites" - }, - "value": { - "type": "AssignmentPattern", - "start": 34749, - "end": 34770, - "loc": { - "start": { - "line": 955, - "column": 15 - }, - "end": { - "line": 955, - "column": 36 - } - }, - "left": { - "type": "Identifier", - "start": 34749, - "end": 34762, - "loc": { - "start": { - "line": 955, - "column": 15 - }, - "end": { - "line": 955, - "column": 28 - }, - "identifierName": "cancelInvites" - }, - "name": "cancelInvites" - }, - "right": { - "type": "BooleanLiteral", - "start": 34765, - "end": 34770, - "loc": { - "start": { - "line": 955, - "column": 31 - }, - "end": { - "line": 955, - "column": 36 - } - }, - "value": false - } - }, - "extra": { - "shorthand": true - } - } - ] - }, - "right": { - "type": "ObjectExpression", - "start": 34775, - "end": 34777, - "loc": { - "start": { - "line": 955, - "column": 41 - }, - "end": { - "line": 955, - "column": 43 - } - }, - "properties": [] - } - } - } - ] - }, - { - "type": "Identifier", - "start": 34784, - "end": 34800, - "loc": { - "start": { - "line": 956, - "column": 5 - }, - "end": { - "line": 956, - "column": 21 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - } - ], - "body": { - "type": "BlockStatement", - "start": 34802, - "end": 37066, - "loc": { - "start": { - "line": 956, - "column": 23 - }, - "end": { - "line": 1030, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 34808, - "end": 36665, - "loc": { - "start": { - "line": 957, - "column": 4 - }, - "end": { - "line": 1013, - "column": 6 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 34814, - "end": 36664, - "loc": { - "start": { - "line": 957, - "column": 10 - }, - "end": { - "line": 1013, - "column": 5 - } - }, - "id": { - "type": "Identifier", - "start": 34814, - "end": 34844, - "loc": { - "start": { - "line": 957, - "column": 10 - }, - "end": { - "line": 957, - "column": 40 - }, - "identifierName": "callbackWithInviteCancellation" - }, - "name": "callbackWithInviteCancellation" - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 34847, - "end": 36664, - "loc": { - "start": { - "line": 957, - "column": 43 - }, - "end": { - "line": 1013, - "column": 5 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 34848, - "end": 34857, - "loc": { - "start": { - "line": 957, - "column": 44 - }, - "end": { - "line": 957, - "column": 53 - }, - "identifierName": "removeErr" - }, - "name": "removeErr" - }, - { - "type": "Identifier", - "start": 34859, - "end": 34868, - "loc": { - "start": { - "line": 957, - "column": 55 - }, - "end": { - "line": 957, - "column": 64 - }, - "identifierName": "removeRes" - }, - "name": "removeRes" - } - ], - "body": { - "type": "BlockStatement", - "start": 34873, - "end": 36664, - "loc": { - "start": { - "line": 957, - "column": 69 - }, - "end": { - "line": 1013, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 34881, - "end": 36658, - "loc": { - "start": { - "line": 958, - "column": 6 - }, - "end": { - "line": 1012, - "column": 7 - } - }, - "test": { - "type": "Identifier", - "start": 34885, - "end": 34894, - "loc": { - "start": { - "line": 958, - "column": 10 - }, - "end": { - "line": 958, - "column": 19 - }, - "identifierName": "removeErr" - }, - "name": "removeErr" - }, - "consequent": { - "type": "BlockStatement", - "start": 34896, - "end": 34958, - "loc": { - "start": { - "line": 958, - "column": 21 - }, - "end": { - "line": 961, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 34906, - "end": 34934, - "loc": { - "start": { - "line": 959, - "column": 8 - }, - "end": { - "line": 959, - "column": 36 - } - }, - "expression": { - "type": "CallExpression", - "start": 34906, - "end": 34933, - "loc": { - "start": { - "line": 959, - "column": 8 - }, - "end": { - "line": 959, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 34906, - "end": 34922, - "loc": { - "start": { - "line": 959, - "column": 8 - }, - "end": { - "line": 959, - "column": 24 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 34923, - "end": 34932, - "loc": { - "start": { - "line": 959, - "column": 25 - }, - "end": { - "line": 959, - "column": 34 - }, - "identifierName": "removeErr" - }, - "name": "removeErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 34943, - "end": 34950, - "loc": { - "start": { - "line": 960, - "column": 8 - }, - "end": { - "line": 960, - "column": 15 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 34964, - "end": 36658, - "loc": { - "start": { - "line": 961, - "column": 13 - }, - "end": { - "line": 1012, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 34974, - "end": 36650, - "loc": { - "start": { - "line": 962, - "column": 8 - }, - "end": { - "line": 1011, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 34974, - "end": 36649, - "loc": { - "start": { - "line": 962, - "column": 8 - }, - "end": { - "line": 1011, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 34974, - "end": 35297, - "loc": { - "start": { - "line": 962, - "column": 8 - }, - "end": { - "line": 973, - "column": 15 - } - }, - "object": { - "type": "CallExpression", - "start": 34974, - "end": 35281, - "loc": { - "start": { - "line": 962, - "column": 8 - }, - "end": { - "line": 972, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 34974, - "end": 35070, - "loc": { - "start": { - "line": 962, - "column": 8 - }, - "end": { - "line": 966, - "column": 15 - } - }, - "object": { - "type": "CallExpression", - "start": 34974, - "end": 35054, - "loc": { - "start": { - "line": 962, - "column": 8 - }, - "end": { - "line": 965, - "column": 10 - } - }, - "callee": { - "type": "CallExpression", - "start": 34974, - "end": 34998, - "loc": { - "start": { - "line": 962, - "column": 8 - }, - "end": { - "line": 962, - "column": 32 - } - }, - "callee": { - "type": "Identifier", - "start": 34974, - "end": 34983, - "loc": { - "start": { - "line": 962, - "column": 8 - }, - "end": { - "line": 962, - "column": 17 - }, - "identifierName": "promisify" - }, - "name": "promisify" - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 34984, - "end": 34997, - "loc": { - "start": { - "line": 962, - "column": 18 - }, - "end": { - "line": 962, - "column": 31 - } - }, - "object": { - "type": "Identifier", - "start": 34984, - "end": 34992, - "loc": { - "start": { - "line": 962, - "column": 18 - }, - "end": { - "line": 962, - "column": 26 - }, - "identifierName": "Document" - }, - "name": "Document" - }, - "property": { - "type": "Identifier", - "start": 34993, - "end": 34997, - "loc": { - "start": { - "line": 962, - "column": 27 - }, - "end": { - "line": 962, - "column": 31 - }, - "identifierName": "view" - }, - "name": "view" - }, - "computed": false - } - ] - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 34999, - "end": 35053, - "loc": { - "start": { - "line": 962, - "column": 33 - }, - "end": { - "line": 965, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 35011, - "end": 35025, - "loc": { - "start": { - "line": 963, - "column": 10 - }, - "end": { - "line": 963, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 35011, - "end": 35013, - "loc": { - "start": { - "line": 963, - "column": 10 - }, - "end": { - "line": 963, - "column": 12 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 35015, - "end": 35025, - "loc": { - "start": { - "line": 963, - "column": 14 - }, - "end": { - "line": 963, - "column": 24 - }, - "identifierName": "documentId" - }, - "name": "documentId" - } - }, - { - "type": "ObjectProperty", - "start": 35037, - "end": 35042, - "loc": { - "start": { - "line": 964, - "column": 10 - }, - "end": { - "line": 964, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 35037, - "end": 35042, - "loc": { - "start": { - "line": 964, - "column": 10 - }, - "end": { - "line": 964, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 35037, - "end": 35042, - "loc": { - "start": { - "line": 964, - "column": 10 - }, - "end": { - "line": 964, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 35066, - "end": 35070, - "loc": { - "start": { - "line": 966, - "column": 11 - }, - "end": { - "line": 966, - "column": 15 - }, - "identifierName": "then" - }, - "name": "then" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 35071, - "end": 35280, - "loc": { - "start": { - "line": 966, - "column": 16 - }, - "end": { - "line": 972, - "column": 11 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 35071, - "end": 35079, - "loc": { - "start": { - "line": 966, - "column": 16 - }, - "end": { - "line": 966, - "column": 24 - }, - "identifierName": "document" - }, - "name": "document" - } - ], - "body": { - "type": "BlockStatement", - "start": 35083, - "end": 35280, - "loc": { - "start": { - "line": 966, - "column": 28 - }, - "end": { - "line": 972, - "column": 11 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 35097, - "end": 35173, - "loc": { - "start": { - "line": 967, - "column": 12 - }, - "end": { - "line": 967, - "column": 88 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 35103, - "end": 35172, - "loc": { - "start": { - "line": 967, - "column": 18 - }, - "end": { - "line": 967, - "column": 87 - } - }, - "id": { - "type": "ObjectPattern", - "start": 35103, - "end": 35161, - "loc": { - "start": { - "line": 967, - "column": 18 - }, - "end": { - "line": 967, - "column": 76 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 35105, - "end": 35132, - "loc": { - "start": { - "line": 967, - "column": 20 - }, - "end": { - "line": 967, - "column": 47 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 35105, - "end": 35118, - "loc": { - "start": { - "line": 967, - "column": 20 - }, - "end": { - "line": 967, - "column": 33 - }, - "identifierName": "field_invites" - }, - "name": "field_invites" - }, - "value": { - "type": "Identifier", - "start": 35120, - "end": 35132, - "loc": { - "start": { - "line": 967, - "column": 35 - }, - "end": { - "line": 967, - "column": 47 - }, - "identifierName": "fieldInvites" - }, - "name": "fieldInvites" - } - }, - { - "type": "ObjectProperty", - "start": 35134, - "end": 35159, - "loc": { - "start": { - "line": 967, - "column": 49 - }, - "end": { - "line": 967, - "column": 74 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 35134, - "end": 35142, - "loc": { - "start": { - "line": 967, - "column": 49 - }, - "end": { - "line": 967, - "column": 57 - }, - "identifierName": "requests" - }, - "name": "requests" - }, - "value": { - "type": "Identifier", - "start": 35144, - "end": 35159, - "loc": { - "start": { - "line": 967, - "column": 59 - }, - "end": { - "line": 967, - "column": 74 - }, - "identifierName": "freeformInvites" - }, - "name": "freeformInvites" - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 35164, - "end": 35172, - "loc": { - "start": { - "line": 967, - "column": 79 - }, - "end": { - "line": 967, - "column": 87 - }, - "identifierName": "document" - }, - "name": "document" - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 35186, - "end": 35268, - "loc": { - "start": { - "line": 968, - "column": 12 - }, - "end": { - "line": 971, - "column": 14 - } - }, - "argument": { - "type": "ObjectExpression", - "start": 35193, - "end": 35267, - "loc": { - "start": { - "line": 968, - "column": 19 - }, - "end": { - "line": 971, - "column": 13 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 35209, - "end": 35221, - "loc": { - "start": { - "line": 969, - "column": 14 - }, - "end": { - "line": 969, - "column": 26 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 35209, - "end": 35221, - "loc": { - "start": { - "line": 969, - "column": 14 - }, - "end": { - "line": 969, - "column": 26 - }, - "identifierName": "fieldInvites" - }, - "name": "fieldInvites" - }, - "value": { - "type": "Identifier", - "start": 35209, - "end": 35221, - "loc": { - "start": { - "line": 969, - "column": 14 - }, - "end": { - "line": 969, - "column": 26 - }, - "identifierName": "fieldInvites" - }, - "name": "fieldInvites" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 35237, - "end": 35252, - "loc": { - "start": { - "line": 970, - "column": 14 - }, - "end": { - "line": 970, - "column": 29 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 35237, - "end": 35252, - "loc": { - "start": { - "line": 970, - "column": 14 - }, - "end": { - "line": 970, - "column": 29 - }, - "identifierName": "freeformInvites" - }, - "name": "freeformInvites" - }, - "value": { - "type": "Identifier", - "start": 35237, - "end": 35252, - "loc": { - "start": { - "line": 970, - "column": 14 - }, - "end": { - "line": 970, - "column": 29 - }, - "identifierName": "freeformInvites" - }, - "name": "freeformInvites" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ], - "directives": [] - } - } - ] - }, - "property": { - "type": "Identifier", - "start": 35293, - "end": 35297, - "loc": { - "start": { - "line": 973, - "column": 11 - }, - "end": { - "line": 973, - "column": 15 - }, - "identifierName": "then" - }, - "name": "then" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 35298, - "end": 36648, - "loc": { - "start": { - "line": 973, - "column": 16 - }, - "end": { - "line": 1011, - "column": 11 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 35299, - "end": 35332, - "loc": { - "start": { - "line": 973, - "column": 17 - }, - "end": { - "line": 973, - "column": 50 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 35301, - "end": 35313, - "loc": { - "start": { - "line": 973, - "column": 19 - }, - "end": { - "line": 973, - "column": 31 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 35301, - "end": 35313, - "loc": { - "start": { - "line": 973, - "column": 19 - }, - "end": { - "line": 973, - "column": 31 - }, - "identifierName": "fieldInvites" - }, - "name": "fieldInvites" - }, - "value": { - "type": "Identifier", - "start": 35301, - "end": 35313, - "loc": { - "start": { - "line": 973, - "column": 19 - }, - "end": { - "line": 973, - "column": 31 - }, - "identifierName": "fieldInvites" - }, - "name": "fieldInvites" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 35315, - "end": 35330, - "loc": { - "start": { - "line": 973, - "column": 33 - }, - "end": { - "line": 973, - "column": 48 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 35315, - "end": 35330, - "loc": { - "start": { - "line": 973, - "column": 33 - }, - "end": { - "line": 973, - "column": 48 - }, - "identifierName": "freeformInvites" - }, - "name": "freeformInvites" - }, - "value": { - "type": "Identifier", - "start": 35315, - "end": 35330, - "loc": { - "start": { - "line": 973, - "column": 33 - }, - "end": { - "line": 973, - "column": 48 - }, - "identifierName": "freeformInvites" - }, - "name": "freeformInvites" - }, - "extra": { - "shorthand": true - } - } - ] - } - ], - "body": { - "type": "BlockStatement", - "start": 35337, - "end": 36648, - "loc": { - "start": { - "line": 973, - "column": 55 - }, - "end": { - "line": 1011, - "column": 11 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 35351, - "end": 35782, - "loc": { - "start": { - "line": 974, - "column": 12 - }, - "end": { - "line": 984, - "column": 58 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 35357, - "end": 35781, - "loc": { - "start": { - "line": 974, - "column": 18 - }, - "end": { - "line": 984, - "column": 57 - } - }, - "id": { - "type": "Identifier", - "start": 35357, - "end": 35378, - "loc": { - "start": { - "line": 974, - "column": 18 - }, - "end": { - "line": 974, - "column": 39 - }, - "identifierName": "fieldInvitesCancelled" - }, - "name": "fieldInvitesCancelled" - }, - "init": { - "type": "CallExpression", - "start": 35381, - "end": 35781, - "loc": { - "start": { - "line": 974, - "column": 42 - }, - "end": { - "line": 984, - "column": 57 - } - }, - "callee": { - "type": "MemberExpression", - "start": 35381, - "end": 35743, - "loc": { - "start": { - "line": 974, - "column": 42 - }, - "end": { - "line": 984, - "column": 19 - } - }, - "object": { - "type": "NewExpression", - "start": 35381, - "end": 35723, - "loc": { - "start": { - "line": 974, - "column": 42 - }, - "end": { - "line": 983, - "column": 14 - } - }, - "callee": { - "type": "Identifier", - "start": 35385, - "end": 35392, - "loc": { - "start": { - "line": 974, - "column": 46 - }, - "end": { - "line": 974, - "column": 53 - }, - "identifierName": "Promise" - }, - "name": "Promise" - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 35393, - "end": 35722, - "loc": { - "start": { - "line": 974, - "column": 54 - }, - "end": { - "line": 983, - "column": 13 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 35393, - "end": 35400, - "loc": { - "start": { - "line": 974, - "column": 54 - }, - "end": { - "line": 974, - "column": 61 - }, - "identifierName": "resolve" - }, - "name": "resolve" - } - ], - "body": { - "type": "BlockStatement", - "start": 35404, - "end": 35722, - "loc": { - "start": { - "line": 974, - "column": 65 - }, - "end": { - "line": 983, - "column": 13 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 35420, - "end": 35708, - "loc": { - "start": { - "line": 975, - "column": 14 - }, - "end": { - "line": 982, - "column": 15 - } - }, - "test": { - "type": "LogicalExpression", - "start": 35424, - "end": 35474, - "loc": { - "start": { - "line": 975, - "column": 18 - }, - "end": { - "line": 975, - "column": 68 - } - }, - "left": { - "type": "CallExpression", - "start": 35424, - "end": 35451, - "loc": { - "start": { - "line": 975, - "column": 18 - }, - "end": { - "line": 975, - "column": 45 - } - }, - "callee": { - "type": "MemberExpression", - "start": 35424, - "end": 35437, - "loc": { - "start": { - "line": 975, - "column": 18 - }, - "end": { - "line": 975, - "column": 31 - } - }, - "object": { - "type": "Identifier", - "start": 35424, - "end": 35429, - "loc": { - "start": { - "line": 975, - "column": 18 - }, - "end": { - "line": 975, - "column": 23 - }, - "identifierName": "Array" - }, - "name": "Array" - }, - "property": { - "type": "Identifier", - "start": 35430, - "end": 35437, - "loc": { - "start": { - "line": 975, - "column": 24 - }, - "end": { - "line": 975, - "column": 31 - }, - "identifierName": "isArray" - }, - "name": "isArray" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 35438, - "end": 35450, - "loc": { - "start": { - "line": 975, - "column": 32 - }, - "end": { - "line": 975, - "column": 44 - }, - "identifierName": "fieldInvites" - }, - "name": "fieldInvites" - } - ] - }, - "operator": "&&", - "right": { - "type": "MemberExpression", - "start": 35455, - "end": 35474, - "loc": { - "start": { - "line": 975, - "column": 49 - }, - "end": { - "line": 975, - "column": 68 - } - }, - "object": { - "type": "Identifier", - "start": 35455, - "end": 35467, - "loc": { - "start": { - "line": 975, - "column": 49 - }, - "end": { - "line": 975, - "column": 61 - }, - "identifierName": "fieldInvites" - }, - "name": "fieldInvites" - }, - "property": { - "type": "Identifier", - "start": 35468, - "end": 35474, - "loc": { - "start": { - "line": 975, - "column": 62 - }, - "end": { - "line": 975, - "column": 68 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - } - }, - "consequent": { - "type": "BlockStatement", - "start": 35476, - "end": 35637, - "loc": { - "start": { - "line": 975, - "column": 70 - }, - "end": { - "line": 980, - "column": 15 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 35494, - "end": 35621, - "loc": { - "start": { - "line": 976, - "column": 16 - }, - "end": { - "line": 979, - "column": 20 - } - }, - "expression": { - "type": "CallExpression", - "start": 35494, - "end": 35620, - "loc": { - "start": { - "line": 976, - "column": 16 - }, - "end": { - "line": 979, - "column": 19 - } - }, - "callee": { - "type": "Identifier", - "start": 35494, - "end": 35501, - "loc": { - "start": { - "line": 976, - "column": 16 - }, - "end": { - "line": 976, - "column": 23 - }, - "identifierName": "resolve" - }, - "name": "resolve" - }, - "arguments": [ - { - "type": "CallExpression", - "start": 35502, - "end": 35619, - "loc": { - "start": { - "line": 976, - "column": 24 - }, - "end": { - "line": 979, - "column": 18 - } - }, - "callee": { - "type": "CallExpression", - "start": 35502, - "end": 35539, - "loc": { - "start": { - "line": 976, - "column": 24 - }, - "end": { - "line": 976, - "column": 61 - } - }, - "callee": { - "type": "Identifier", - "start": 35502, - "end": 35511, - "loc": { - "start": { - "line": 976, - "column": 24 - }, - "end": { - "line": 976, - "column": 33 - }, - "identifierName": "promisify" - }, - "name": "promisify" - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 35512, - "end": 35538, - "loc": { - "start": { - "line": 976, - "column": 34 - }, - "end": { - "line": 976, - "column": 60 - } - }, - "object": { - "type": "Identifier", - "start": 35512, - "end": 35520, - "loc": { - "start": { - "line": 976, - "column": 34 - }, - "end": { - "line": 976, - "column": 42 - }, - "identifierName": "Document" - }, - "name": "Document" - }, - "property": { - "type": "Identifier", - "start": 35521, - "end": 35538, - "loc": { - "start": { - "line": 976, - "column": 43 - }, - "end": { - "line": 976, - "column": 60 - }, - "identifierName": "cancelFieldInvite" - }, - "name": "cancelFieldInvite" - }, - "computed": false - } - ] - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 35540, - "end": 35618, - "loc": { - "start": { - "line": 976, - "column": 62 - }, - "end": { - "line": 979, - "column": 17 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 35560, - "end": 35574, - "loc": { - "start": { - "line": 977, - "column": 18 - }, - "end": { - "line": 977, - "column": 32 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 35560, - "end": 35562, - "loc": { - "start": { - "line": 977, - "column": 18 - }, - "end": { - "line": 977, - "column": 20 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 35564, - "end": 35574, - "loc": { - "start": { - "line": 977, - "column": 22 - }, - "end": { - "line": 977, - "column": 32 - }, - "identifierName": "documentId" - }, - "name": "documentId" - } - }, - { - "type": "ObjectProperty", - "start": 35594, - "end": 35599, - "loc": { - "start": { - "line": 978, - "column": 18 - }, - "end": { - "line": 978, - "column": 23 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 35594, - "end": 35599, - "loc": { - "start": { - "line": 978, - "column": 18 - }, - "end": { - "line": 978, - "column": 23 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 35594, - "end": 35599, - "loc": { - "start": { - "line": 978, - "column": 18 - }, - "end": { - "line": 978, - "column": 23 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - ] - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 35643, - "end": 35708, - "loc": { - "start": { - "line": 980, - "column": 21 - }, - "end": { - "line": 982, - "column": 15 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 35661, - "end": 35692, - "loc": { - "start": { - "line": 981, - "column": 16 - }, - "end": { - "line": 981, - "column": 47 - } - }, - "expression": { - "type": "CallExpression", - "start": 35661, - "end": 35691, - "loc": { - "start": { - "line": 981, - "column": 16 - }, - "end": { - "line": 981, - "column": 46 - } - }, - "callee": { - "type": "Identifier", - "start": 35661, - "end": 35668, - "loc": { - "start": { - "line": 981, - "column": 16 - }, - "end": { - "line": 981, - "column": 23 - }, - "identifierName": "resolve" - }, - "name": "resolve" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 35669, - "end": 35690, - "loc": { - "start": { - "line": 981, - "column": 24 - }, - "end": { - "line": 981, - "column": 45 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 35671, - "end": 35688, - "loc": { - "start": { - "line": 981, - "column": 26 - }, - "end": { - "line": 981, - "column": 43 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 35671, - "end": 35677, - "loc": { - "start": { - "line": 981, - "column": 26 - }, - "end": { - "line": 981, - "column": 32 - }, - "identifierName": "status" - }, - "name": "status" - }, - "value": { - "type": "StringLiteral", - "start": 35679, - "end": 35688, - "loc": { - "start": { - "line": 981, - "column": 34 - }, - "end": { - "line": 981, - "column": 43 - } - }, - "extra": { - "rawValue": "success", - "raw": "'success'" - }, - "value": "success" - } - } - ] - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ] - }, - "property": { - "type": "Identifier", - "start": 35739, - "end": 35743, - "loc": { - "start": { - "line": 984, - "column": 15 - }, - "end": { - "line": 984, - "column": 19 - }, - "identifierName": "then" - }, - "name": "then" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 35744, - "end": 35780, - "loc": { - "start": { - "line": 984, - "column": 20 - }, - "end": { - "line": 984, - "column": 56 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 35745, - "end": 35755, - "loc": { - "start": { - "line": 984, - "column": 21 - }, - "end": { - "line": 984, - "column": 31 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 35747, - "end": 35753, - "loc": { - "start": { - "line": 984, - "column": 23 - }, - "end": { - "line": 984, - "column": 29 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 35747, - "end": 35753, - "loc": { - "start": { - "line": 984, - "column": 23 - }, - "end": { - "line": 984, - "column": 29 - }, - "identifierName": "status" - }, - "name": "status" - }, - "value": { - "type": "Identifier", - "start": 35747, - "end": 35753, - "loc": { - "start": { - "line": 984, - "column": 23 - }, - "end": { - "line": 984, - "column": 29 - }, - "identifierName": "status" - }, - "name": "status" - }, - "extra": { - "shorthand": true - } - } - ] - } - ], - "body": { - "type": "BinaryExpression", - "start": 35760, - "end": 35780, - "loc": { - "start": { - "line": 984, - "column": 36 - }, - "end": { - "line": 984, - "column": 56 - } - }, - "left": { - "type": "Identifier", - "start": 35760, - "end": 35766, - "loc": { - "start": { - "line": 984, - "column": 36 - }, - "end": { - "line": 984, - "column": 42 - }, - "identifierName": "status" - }, - "name": "status" - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 35771, - "end": 35780, - "loc": { - "start": { - "line": 984, - "column": 47 - }, - "end": { - "line": 984, - "column": 56 - } - }, - "extra": { - "rawValue": "success", - "raw": "'success'" - }, - "value": "success" - } - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 35796, - "end": 36090, - "loc": { - "start": { - "line": 986, - "column": 12 - }, - "end": { - "line": 993, - "column": 17 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 35802, - "end": 36089, - "loc": { - "start": { - "line": 986, - "column": 18 - }, - "end": { - "line": 993, - "column": 16 - } - }, - "id": { - "type": "Identifier", - "start": 35802, - "end": 35826, - "loc": { - "start": { - "line": 986, - "column": 18 - }, - "end": { - "line": 986, - "column": 42 - }, - "identifierName": "freeformInvitesCancelled" - }, - "name": "freeformInvitesCancelled" - }, - "init": { - "type": "CallExpression", - "start": 35829, - "end": 36089, - "loc": { - "start": { - "line": 986, - "column": 45 - }, - "end": { - "line": 993, - "column": 16 - } - }, - "callee": { - "type": "MemberExpression", - "start": 35829, - "end": 35863, - "loc": { - "start": { - "line": 986, - "column": 45 - }, - "end": { - "line": 987, - "column": 18 - } - }, - "object": { - "type": "Identifier", - "start": 35829, - "end": 35844, - "loc": { - "start": { - "line": 986, - "column": 45 - }, - "end": { - "line": 986, - "column": 60 - }, - "identifierName": "freeformInvites" - }, - "name": "freeformInvites" - }, - "property": { - "type": "Identifier", - "start": 35860, - "end": 35863, - "loc": { - "start": { - "line": 987, - "column": 15 - }, - "end": { - "line": 987, - "column": 18 - }, - "identifierName": "map" - }, - "name": "map" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 35864, - "end": 36088, - "loc": { - "start": { - "line": 987, - "column": 19 - }, - "end": { - "line": 993, - "column": 15 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 35865, - "end": 35881, - "loc": { - "start": { - "line": 987, - "column": 20 - }, - "end": { - "line": 987, - "column": 36 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 35867, - "end": 35879, - "loc": { - "start": { - "line": 987, - "column": 22 - }, - "end": { - "line": 987, - "column": 34 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 35867, - "end": 35869, - "loc": { - "start": { - "line": 987, - "column": 22 - }, - "end": { - "line": 987, - "column": 24 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 35871, - "end": 35879, - "loc": { - "start": { - "line": 987, - "column": 26 - }, - "end": { - "line": 987, - "column": 34 - }, - "identifierName": "inviteId" - }, - "name": "inviteId" - } - } - ] - } - ], - "body": { - "type": "BlockStatement", - "start": 35886, - "end": 36088, - "loc": { - "start": { - "line": 987, - "column": 41 - }, - "end": { - "line": 993, - "column": 15 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 35904, - "end": 36072, - "loc": { - "start": { - "line": 988, - "column": 16 - }, - "end": { - "line": 992, - "column": 42 - } - }, - "argument": { - "type": "CallExpression", - "start": 35911, - "end": 36071, - "loc": { - "start": { - "line": 988, - "column": 23 - }, - "end": { - "line": 992, - "column": 41 - } - }, - "callee": { - "type": "MemberExpression", - "start": 35911, - "end": 36053, - "loc": { - "start": { - "line": 988, - "column": 23 - }, - "end": { - "line": 992, - "column": 23 - } - }, - "object": { - "type": "CallExpression", - "start": 35911, - "end": 36029, - "loc": { - "start": { - "line": 988, - "column": 23 - }, - "end": { - "line": 991, - "column": 18 - } - }, - "callee": { - "type": "CallExpression", - "start": 35911, - "end": 35951, - "loc": { - "start": { - "line": 988, - "column": 23 - }, - "end": { - "line": 988, - "column": 63 - } - }, - "callee": { - "type": "Identifier", - "start": 35911, - "end": 35920, - "loc": { - "start": { - "line": 988, - "column": 23 - }, - "end": { - "line": 988, - "column": 32 - }, - "identifierName": "promisify" - }, - "name": "promisify" - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 35921, - "end": 35950, - "loc": { - "start": { - "line": 988, - "column": 33 - }, - "end": { - "line": 988, - "column": 62 - } - }, - "object": { - "type": "Identifier", - "start": 35921, - "end": 35929, - "loc": { - "start": { - "line": 988, - "column": 33 - }, - "end": { - "line": 988, - "column": 41 - }, - "identifierName": "Document" - }, - "name": "Document" - }, - "property": { - "type": "Identifier", - "start": 35930, - "end": 35950, - "loc": { - "start": { - "line": 988, - "column": 42 - }, - "end": { - "line": 988, - "column": 62 - }, - "identifierName": "cancelFreeFormInvite" - }, - "name": "cancelFreeFormInvite" - }, - "computed": false - } - ] - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 35952, - "end": 36028, - "loc": { - "start": { - "line": 988, - "column": 64 - }, - "end": { - "line": 991, - "column": 17 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 35972, - "end": 35984, - "loc": { - "start": { - "line": 989, - "column": 18 - }, - "end": { - "line": 989, - "column": 30 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 35972, - "end": 35974, - "loc": { - "start": { - "line": 989, - "column": 18 - }, - "end": { - "line": 989, - "column": 20 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 35976, - "end": 35984, - "loc": { - "start": { - "line": 989, - "column": 22 - }, - "end": { - "line": 989, - "column": 30 - }, - "identifierName": "inviteId" - }, - "name": "inviteId" - } - }, - { - "type": "ObjectProperty", - "start": 36004, - "end": 36009, - "loc": { - "start": { - "line": 990, - "column": 18 - }, - "end": { - "line": 990, - "column": 23 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 36004, - "end": 36009, - "loc": { - "start": { - "line": 990, - "column": 18 - }, - "end": { - "line": 990, - "column": 23 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 36004, - "end": 36009, - "loc": { - "start": { - "line": 990, - "column": 18 - }, - "end": { - "line": 990, - "column": 23 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 36049, - "end": 36053, - "loc": { - "start": { - "line": 992, - "column": 19 - }, - "end": { - "line": 992, - "column": 23 - }, - "identifierName": "then" - }, - "name": "then" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 36054, - "end": 36070, - "loc": { - "start": { - "line": 992, - "column": 24 - }, - "end": { - "line": 992, - "column": 40 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 36055, - "end": 36061, - "loc": { - "start": { - "line": 992, - "column": 25 - }, - "end": { - "line": 992, - "column": 31 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 36057, - "end": 36059, - "loc": { - "start": { - "line": 992, - "column": 27 - }, - "end": { - "line": 992, - "column": 29 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 36057, - "end": 36059, - "loc": { - "start": { - "line": 992, - "column": 27 - }, - "end": { - "line": 992, - "column": 29 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 36057, - "end": 36059, - "loc": { - "start": { - "line": 992, - "column": 27 - }, - "end": { - "line": 992, - "column": 29 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - } - ] - } - ], - "body": { - "type": "UnaryExpression", - "start": 36066, - "end": 36070, - "loc": { - "start": { - "line": 992, - "column": 36 - }, - "end": { - "line": 992, - "column": 40 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "UnaryExpression", - "start": 36067, - "end": 36070, - "loc": { - "start": { - "line": 992, - "column": 37 - }, - "end": { - "line": 992, - "column": 40 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 36068, - "end": 36070, - "loc": { - "start": { - "line": 992, - "column": 38 - }, - "end": { - "line": 992, - "column": 40 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "parenthesizedArgument": false - } - }, - "extra": { - "parenthesizedArgument": false - } - } - } - ] - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 36104, - "end": 36636, - "loc": { - "start": { - "line": 995, - "column": 12 - }, - "end": { - "line": 1010, - "column": 17 - } - }, - "expression": { - "type": "CallExpression", - "start": 36104, - "end": 36635, - "loc": { - "start": { - "line": 995, - "column": 12 - }, - "end": { - "line": 1010, - "column": 16 - } - }, - "callee": { - "type": "MemberExpression", - "start": 36104, - "end": 36538, - "loc": { - "start": { - "line": 995, - "column": 12 - }, - "end": { - "line": 1007, - "column": 20 - } - }, - "object": { - "type": "CallExpression", - "start": 36104, - "end": 36517, - "loc": { - "start": { - "line": 995, - "column": 12 - }, - "end": { - "line": 1006, - "column": 16 - } - }, - "callee": { - "type": "MemberExpression", - "start": 36104, - "end": 36232, - "loc": { - "start": { - "line": 995, - "column": 12 - }, - "end": { - "line": 999, - "column": 19 - } - }, - "object": { - "type": "CallExpression", - "start": 36104, - "end": 36212, - "loc": { - "start": { - "line": 995, - "column": 12 - }, - "end": { - "line": 998, - "column": 14 - } - }, - "callee": { - "type": "MemberExpression", - "start": 36104, - "end": 36115, - "loc": { - "start": { - "line": 995, - "column": 12 - }, - "end": { - "line": 995, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 36104, - "end": 36111, - "loc": { - "start": { - "line": 995, - "column": 12 - }, - "end": { - "line": 995, - "column": 19 - }, - "identifierName": "Promise" - }, - "name": "Promise" - }, - "property": { - "type": "Identifier", - "start": 36112, - "end": 36115, - "loc": { - "start": { - "line": 995, - "column": 20 - }, - "end": { - "line": 995, - "column": 23 - }, - "identifierName": "all" - }, - "name": "all" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrayExpression", - "start": 36116, - "end": 36211, - "loc": { - "start": { - "line": 995, - "column": 24 - }, - "end": { - "line": 998, - "column": 13 - } - }, - "elements": [ - { - "type": "Identifier", - "start": 36132, - "end": 36153, - "loc": { - "start": { - "line": 996, - "column": 14 - }, - "end": { - "line": 996, - "column": 35 - }, - "identifierName": "fieldInvitesCancelled" - }, - "name": "fieldInvitesCancelled" - }, - { - "type": "SpreadElement", - "start": 36169, - "end": 36196, - "loc": { - "start": { - "line": 997, - "column": 14 - }, - "end": { - "line": 997, - "column": 41 - } - }, - "argument": { - "type": "Identifier", - "start": 36172, - "end": 36196, - "loc": { - "start": { - "line": 997, - "column": 17 - }, - "end": { - "line": 997, - "column": 41 - }, - "identifierName": "freeformInvitesCancelled" - }, - "name": "freeformInvitesCancelled" - } - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 36228, - "end": 36232, - "loc": { - "start": { - "line": 999, - "column": 15 - }, - "end": { - "line": 999, - "column": 19 - }, - "identifierName": "then" - }, - "name": "then" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 36233, - "end": 36516, - "loc": { - "start": { - "line": 999, - "column": 20 - }, - "end": { - "line": 1006, - "column": 15 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 36233, - "end": 36252, - "loc": { - "start": { - "line": 999, - "column": 20 - }, - "end": { - "line": 999, - "column": 39 - }, - "identifierName": "allInvitesCancelled" - }, - "name": "allInvitesCancelled" - } - ], - "body": { - "type": "BlockStatement", - "start": 36256, - "end": 36516, - "loc": { - "start": { - "line": 999, - "column": 43 - }, - "end": { - "line": 1006, - "column": 15 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 36274, - "end": 36500, - "loc": { - "start": { - "line": 1000, - "column": 16 - }, - "end": { - "line": 1005, - "column": 17 - } - }, - "test": { - "type": "Identifier", - "start": 36278, - "end": 36297, - "loc": { - "start": { - "line": 1000, - "column": 20 - }, - "end": { - "line": 1000, - "column": 39 - }, - "identifierName": "allInvitesCancelled" - }, - "name": "allInvitesCancelled" - }, - "consequent": { - "type": "BlockStatement", - "start": 36299, - "end": 36397, - "loc": { - "start": { - "line": 1000, - "column": 41 - }, - "end": { - "line": 1003, - "column": 17 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 36319, - "end": 36353, - "loc": { - "start": { - "line": 1001, - "column": 18 - }, - "end": { - "line": 1001, - "column": 52 - } - }, - "expression": { - "type": "CallExpression", - "start": 36319, - "end": 36352, - "loc": { - "start": { - "line": 1001, - "column": 18 - }, - "end": { - "line": 1001, - "column": 51 - } - }, - "callee": { - "type": "Identifier", - "start": 36319, - "end": 36335, - "loc": { - "start": { - "line": 1001, - "column": 18 - }, - "end": { - "line": 1001, - "column": 34 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - }, - "arguments": [ - { - "type": "NullLiteral", - "start": 36336, - "end": 36340, - "loc": { - "start": { - "line": 1001, - "column": 35 - }, - "end": { - "line": 1001, - "column": 39 - } - } - }, - { - "type": "Identifier", - "start": 36342, - "end": 36351, - "loc": { - "start": { - "line": 1001, - "column": 41 - }, - "end": { - "line": 1001, - "column": 50 - }, - "identifierName": "removeRes" - }, - "name": "removeRes" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 36372, - "end": 36379, - "loc": { - "start": { - "line": 1002, - "column": 18 - }, - "end": { - "line": 1002, - "column": 25 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 36403, - "end": 36500, - "loc": { - "start": { - "line": 1003, - "column": 23 - }, - "end": { - "line": 1005, - "column": 17 - } - }, - "body": [ - { - "type": "ThrowStatement", - "start": 36423, - "end": 36482, - "loc": { - "start": { - "line": 1004, - "column": 18 - }, - "end": { - "line": 1004, - "column": 77 - } - }, - "argument": { - "type": "NewExpression", - "start": 36429, - "end": 36481, - "loc": { - "start": { - "line": 1004, - "column": 24 - }, - "end": { - "line": 1004, - "column": 76 - } - }, - "callee": { - "type": "Identifier", - "start": 36433, - "end": 36438, - "loc": { - "start": { - "line": 1004, - "column": 28 - }, - "end": { - "line": 1004, - "column": 33 - }, - "identifierName": "Error" - }, - "name": "Error" - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 36439, - "end": 36480, - "loc": { - "start": { - "line": 1004, - "column": 34 - }, - "end": { - "line": 1004, - "column": 75 - } - }, - "extra": { - "rawValue": "Some of invites have not been cancelled", - "raw": "'Some of invites have not been cancelled'" - }, - "value": "Some of invites have not been cancelled" - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ] - }, - "property": { - "type": "Identifier", - "start": 36533, - "end": 36538, - "loc": { - "start": { - "line": 1007, - "column": 15 - }, - "end": { - "line": 1007, - "column": 20 - }, - "identifierName": "catch" - }, - "name": "catch" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 36539, - "end": 36634, - "loc": { - "start": { - "line": 1007, - "column": 21 - }, - "end": { - "line": 1010, - "column": 15 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 36539, - "end": 36542, - "loc": { - "start": { - "line": 1007, - "column": 21 - }, - "end": { - "line": 1007, - "column": 24 - }, - "identifierName": "err" - }, - "name": "err" - } - ], - "body": { - "type": "BlockStatement", - "start": 36546, - "end": 36634, - "loc": { - "start": { - "line": 1007, - "column": 28 - }, - "end": { - "line": 1010, - "column": 15 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 36564, - "end": 36594, - "loc": { - "start": { - "line": 1008, - "column": 16 - }, - "end": { - "line": 1008, - "column": 46 - } - }, - "expression": { - "type": "CallExpression", - "start": 36564, - "end": 36593, - "loc": { - "start": { - "line": 1008, - "column": 16 - }, - "end": { - "line": 1008, - "column": 45 - } - }, - "callee": { - "type": "Identifier", - "start": 36564, - "end": 36580, - "loc": { - "start": { - "line": 1008, - "column": 16 - }, - "end": { - "line": 1008, - "column": 32 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 36581, - "end": 36592, - "loc": { - "start": { - "line": 1008, - "column": 33 - }, - "end": { - "line": 1008, - "column": 44 - } - }, - "object": { - "type": "Identifier", - "start": 36581, - "end": 36584, - "loc": { - "start": { - "line": 1008, - "column": 33 - }, - "end": { - "line": 1008, - "column": 36 - }, - "identifierName": "err" - }, - "name": "err" - }, - "property": { - "type": "Identifier", - "start": 36585, - "end": 36592, - "loc": { - "start": { - "line": 1008, - "column": 37 - }, - "end": { - "line": 1008, - "column": 44 - }, - "identifierName": "message" - }, - "name": "message" - }, - "computed": false - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 36611, - "end": 36618, - "loc": { - "start": { - "line": 1009, - "column": 16 - }, - "end": { - "line": 1009, - "column": 23 - } - }, - "argument": null - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 36671, - "end": 36766, - "loc": { - "start": { - "line": 1015, - "column": 4 - }, - "end": { - "line": 1017, - "column": 25 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 36677, - "end": 36765, - "loc": { - "start": { - "line": 1015, - "column": 10 - }, - "end": { - "line": 1017, - "column": 24 - } - }, - "id": { - "type": "Identifier", - "start": 36677, - "end": 36685, - "loc": { - "start": { - "line": 1015, - "column": 10 - }, - "end": { - "line": 1015, - "column": 18 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "init": { - "type": "ConditionalExpression", - "start": 36688, - "end": 36765, - "loc": { - "start": { - "line": 1015, - "column": 21 - }, - "end": { - "line": 1017, - "column": 24 - } - }, - "test": { - "type": "Identifier", - "start": 36688, - "end": 36701, - "loc": { - "start": { - "line": 1015, - "column": 21 - }, - "end": { - "line": 1015, - "column": 34 - }, - "identifierName": "cancelInvites" - }, - "name": "cancelInvites" - }, - "consequent": { - "type": "Identifier", - "start": 36710, - "end": 36740, - "loc": { - "start": { - "line": 1016, - "column": 8 - }, - "end": { - "line": 1016, - "column": 38 - }, - "identifierName": "callbackWithInviteCancellation" - }, - "name": "callbackWithInviteCancellation" - }, - "alternate": { - "type": "Identifier", - "start": 36749, - "end": 36765, - "loc": { - "start": { - "line": 1017, - "column": 8 - }, - "end": { - "line": 1017, - "column": 24 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - } - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 36772, - "end": 37062, - "loc": { - "start": { - "line": 1019, - "column": 4 - }, - "end": { - "line": 1029, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 36772, - "end": 37061, - "loc": { - "start": { - "line": 1019, - "column": 4 - }, - "end": { - "line": 1029, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 36772, - "end": 37059, - "loc": { - "start": { - "line": 1019, - "column": 4 - }, - "end": { - "line": 1029, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 36772, - "end": 37048, - "loc": { - "start": { - "line": 1019, - "column": 4 - }, - "end": { - "line": 1028, - "column": 50 - } - }, - "callee": { - "type": "MemberExpression", - "start": 36772, - "end": 37007, - "loc": { - "start": { - "line": 1019, - "column": 4 - }, - "end": { - "line": 1028, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 36772, - "end": 36997, - "loc": { - "start": { - "line": 1019, - "column": 4 - }, - "end": { - "line": 1027, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 36772, - "end": 36792, - "loc": { - "start": { - "line": 1019, - "column": 4 - }, - "end": { - "line": 1020, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 36772, - "end": 36777, - "loc": { - "start": { - "line": 1019, - "column": 4 - }, - "end": { - "line": 1019, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 36785, - "end": 36792, - "loc": { - "start": { - "line": 1020, - "column": 7 - }, - "end": { - "line": 1020, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 36793, - "end": 36969, - "loc": { - "start": { - "line": 1020, - "column": 15 - }, - "end": { - "line": 1027, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 36793, - "end": 36812, - "loc": { - "start": { - "line": 1020, - "column": 15 - }, - "end": { - "line": 1020, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 36813, - "end": 36968, - "loc": { - "start": { - "line": 1020, - "column": 35 - }, - "end": { - "line": 1027, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 36823, - "end": 36839, - "loc": { - "start": { - "line": 1021, - "column": 8 - }, - "end": { - "line": 1021, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 36823, - "end": 36829, - "loc": { - "start": { - "line": 1021, - "column": 8 - }, - "end": { - "line": 1021, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 36831, - "end": 36839, - "loc": { - "start": { - "line": 1021, - "column": 16 - }, - "end": { - "line": 1021, - "column": 24 - } - }, - "extra": { - "rawValue": "DELETE", - "raw": "'DELETE'" - }, - "value": "DELETE" - } - }, - { - "type": "ObjectProperty", - "start": 36849, - "end": 36880, - "loc": { - "start": { - "line": 1022, - "column": 8 - }, - "end": { - "line": 1022, - "column": 39 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 36849, - "end": 36853, - "loc": { - "start": { - "line": 1022, - "column": 8 - }, - "end": { - "line": 1022, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 36855, - "end": 36880, - "loc": { - "start": { - "line": 1022, - "column": 14 - }, - "end": { - "line": 1022, - "column": 39 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 36868, - "end": 36878, - "loc": { - "start": { - "line": 1022, - "column": 27 - }, - "end": { - "line": 1022, - "column": 37 - }, - "identifierName": "documentId" - }, - "name": "documentId" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 36856, - "end": 36866, - "loc": { - "start": { - "line": 1022, - "column": 15 - }, - "end": { - "line": 1022, - "column": 25 - } - }, - "value": { - "raw": "/document/", - "cooked": "/document/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 36879, - "end": 36879, - "loc": { - "start": { - "line": 1022, - "column": 38 - }, - "end": { - "line": 1022, - "column": 38 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 36890, - "end": 36959, - "loc": { - "start": { - "line": 1023, - "column": 8 - }, - "end": { - "line": 1026, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 36890, - "end": 36903, - "loc": { - "start": { - "line": 1023, - "column": 8 - }, - "end": { - "line": 1023, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 36905, - "end": 36959, - "loc": { - "start": { - "line": 1023, - "column": 23 - }, - "end": { - "line": 1026, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 36917, - "end": 36931, - "loc": { - "start": { - "line": 1024, - "column": 10 - }, - "end": { - "line": 1024, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 36917, - "end": 36921, - "loc": { - "start": { - "line": 1024, - "column": 10 - }, - "end": { - "line": 1024, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 36923, - "end": 36931, - "loc": { - "start": { - "line": 1024, - "column": 16 - }, - "end": { - "line": 1024, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 36943, - "end": 36948, - "loc": { - "start": { - "line": 1025, - "column": 10 - }, - "end": { - "line": 1025, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 36943, - "end": 36948, - "loc": { - "start": { - "line": 1025, - "column": 10 - }, - "end": { - "line": 1025, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 36943, - "end": 36948, - "loc": { - "start": { - "line": 1025, - "column": 10 - }, - "end": { - "line": 1025, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 36971, - "end": 36996, - "loc": { - "start": { - "line": 1027, - "column": 10 - }, - "end": { - "line": 1027, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 36971, - "end": 36986, - "loc": { - "start": { - "line": 1027, - "column": 10 - }, - "end": { - "line": 1027, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 36987, - "end": 36995, - "loc": { - "start": { - "line": 1027, - "column": 26 - }, - "end": { - "line": 1027, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 37005, - "end": 37007, - "loc": { - "start": { - "line": 1028, - "column": 7 - }, - "end": { - "line": 1028, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 37008, - "end": 37015, - "loc": { - "start": { - "line": 1028, - "column": 10 - }, - "end": { - "line": 1028, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 37017, - "end": 37047, - "loc": { - "start": { - "line": 1028, - "column": 19 - }, - "end": { - "line": 1028, - "column": 49 - } - }, - "callee": { - "type": "Identifier", - "start": 37017, - "end": 37029, - "loc": { - "start": { - "line": 1028, - "column": 19 - }, - "end": { - "line": 1028, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 37030, - "end": 37046, - "loc": { - "start": { - "line": 1028, - "column": 32 - }, - "end": { - "line": 1028, - "column": 48 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 37056, - "end": 37059, - "loc": { - "start": { - "line": 1029, - "column": 7 - }, - "end": { - "line": 1029, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document remove optional settings\n * @typedef {Object} DocumentRemoveOptions\n * @property {boolean} [cancelInvites=false] - ability to cancel all document invites during deletion\n ", - "start": 33802, - "end": 33999, - "loc": { - "start": { - "line": 927, - "column": 2 - }, - "end": { - "line": 931, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Remove document payload\n * @typedef {Object} DocumentRemoveParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n * @property {DocumentRemoveOptions} [options] - document remove optional settings\n ", - "start": 34003, - "end": 34271, - "loc": { - "start": { - "line": 933, - "column": 2 - }, - "end": { - "line": 939, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Remove document response data\n * @typedef {Object} DocumentRemoveResponse\n * @property {string} status - status of deletion, e.g. 'success'\n ", - "start": 34275, - "end": 34433, - "loc": { - "start": { - "line": 941, - "column": 2 - }, - "end": { - "line": 945, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Removes a specified document from folder\n * @param {DocumentRemoveParams} data - remove document payload\n * @param {function(err: ApiErrorResponse, res: DocumentRemoveResponse)} [originalCallback] - error first node.js callback\n ", - "start": 34437, - "end": 34683, - "loc": { - "start": { - "line": 947, - "column": 2 - }, - "end": { - "line": 951, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Get Document Signers optional settings\n * @typedef {Object} DocumentSignersOptions\n * @property {boolean} [allSignatures=true] - if true receive all document signers email\n * @property {boolean} [freeFormInvites=false] - if `true` return free from invite signer emails\n * @property {?string[]} [fieldInvitesStatus=null] - return signers according to specified field invite status(es)\n * Accepts list of statuses or a single status.\n * Acceptable statuses: all, pending, declined, fulfilled, created, skipped.\n * @property {?string[]} [paymentRequestsStatus=null] - return signers according to specified to payment request status(es)\n * Accepts list of statuses or a single status.\n * Available statuses: all, pending, fulfilled, created, skipped.\n ", - "start": 37070, - "end": 37849, - "loc": { - "start": { - "line": 1032, - "column": 2 - }, - "end": { - "line": 1043, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Get Document Signers payload\n * @typedef {Object} DocumentSignersParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n * @property {DocumentSignersOptions} [options] - document signers optional settings,\n ", - "start": 37853, - "end": 38130, - "loc": { - "start": { - "line": 1045, - "column": 2 - }, - "end": { - "line": 1051, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Get Document Signers response data\n * @typedef {Object} DocumentSignersResponse\n * @property {string[]} - emails of document signers\n ", - "start": 38134, - "end": 38286, - "loc": { - "start": { - "line": 1053, - "column": 2 - }, - "end": { - "line": 1057, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves all signers of specific document\n * @experimental this class includes breaking change.\n * @param {DocumentSignersParams} data - get document signers payload\n * @param {function(err: ApiErrorResponse, res: DocumentSignersResponse)} [callback] - error first node.js callback\n ", - "start": 38290, - "end": 38593, - "loc": { - "start": { - "line": 1059, - "column": 2 - }, - "end": { - "line": 1064, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 38596, - "end": 40223, - "loc": { - "start": { - "line": 1065, - "column": 2 - }, - "end": { - "line": 1123, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 38603, - "end": 38610, - "loc": { - "start": { - "line": 1065, - "column": 9 - }, - "end": { - "line": 1065, - "column": 16 - }, - "identifierName": "signers" - }, - "name": "signers" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 38612, - "end": 38654, - "loc": { - "start": { - "line": 1065, - "column": 18 - }, - "end": { - "line": 1069, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 38618, - "end": 38620, - "loc": { - "start": { - "line": 1066, - "column": 4 - }, - "end": { - "line": 1066, - "column": 6 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 38618, - "end": 38620, - "loc": { - "start": { - "line": 1066, - "column": 4 - }, - "end": { - "line": 1066, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 38618, - "end": 38620, - "loc": { - "start": { - "line": 1066, - "column": 4 - }, - "end": { - "line": 1066, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 38626, - "end": 38631, - "loc": { - "start": { - "line": 1067, - "column": 4 - }, - "end": { - "line": 1067, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 38626, - "end": 38631, - "loc": { - "start": { - "line": 1067, - "column": 4 - }, - "end": { - "line": 1067, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 38626, - "end": 38631, - "loc": { - "start": { - "line": 1067, - "column": 4 - }, - "end": { - "line": 1067, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 38637, - "end": 38649, - "loc": { - "start": { - "line": 1068, - "column": 4 - }, - "end": { - "line": 1068, - "column": 16 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 38637, - "end": 38644, - "loc": { - "start": { - "line": 1068, - "column": 4 - }, - "end": { - "line": 1068, - "column": 11 - }, - "identifierName": "options" - }, - "name": "options" - }, - "value": { - "type": "AssignmentPattern", - "start": 38637, - "end": 38649, - "loc": { - "start": { - "line": 1068, - "column": 4 - }, - "end": { - "line": 1068, - "column": 16 - } - }, - "left": { - "type": "Identifier", - "start": 38637, - "end": 38644, - "loc": { - "start": { - "line": 1068, - "column": 4 - }, - "end": { - "line": 1068, - "column": 11 - }, - "identifierName": "options" - }, - "name": "options" - }, - "right": { - "type": "ObjectExpression", - "start": 38647, - "end": 38649, - "loc": { - "start": { - "line": 1068, - "column": 14 - }, - "end": { - "line": 1068, - "column": 16 - } - }, - "properties": [] - } - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 38656, - "end": 38664, - "loc": { - "start": { - "line": 1069, - "column": 5 - }, - "end": { - "line": 1069, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 38666, - "end": 40223, - "loc": { - "start": { - "line": 1069, - "column": 15 - }, - "end": { - "line": 1123, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 38672, - "end": 40219, - "loc": { - "start": { - "line": 1070, - "column": 4 - }, - "end": { - "line": 1122, - "column": 35 - } - }, - "expression": { - "type": "CallExpression", - "start": 38672, - "end": 40218, - "loc": { - "start": { - "line": 1070, - "column": 4 - }, - "end": { - "line": 1122, - "column": 34 - } - }, - "callee": { - "type": "MemberExpression", - "start": 38672, - "end": 40196, - "loc": { - "start": { - "line": 1070, - "column": 4 - }, - "end": { - "line": 1122, - "column": 12 - } - }, - "object": { - "type": "CallExpression", - "start": 38672, - "end": 40183, - "loc": { - "start": { - "line": 1070, - "column": 4 - }, - "end": { - "line": 1121, - "column": 8 - } - }, - "callee": { - "type": "MemberExpression", - "start": 38672, - "end": 38740, - "loc": { - "start": { - "line": 1070, - "column": 4 - }, - "end": { - "line": 1074, - "column": 11 - } - }, - "object": { - "type": "CallExpression", - "start": 38672, - "end": 38728, - "loc": { - "start": { - "line": 1070, - "column": 4 - }, - "end": { - "line": 1073, - "column": 6 - } - }, - "callee": { - "type": "CallExpression", - "start": 38672, - "end": 38696, - "loc": { - "start": { - "line": 1070, - "column": 4 - }, - "end": { - "line": 1070, - "column": 28 - } - }, - "callee": { - "type": "Identifier", - "start": 38672, - "end": 38681, - "loc": { - "start": { - "line": 1070, - "column": 4 - }, - "end": { - "line": 1070, - "column": 13 - }, - "identifierName": "promisify" - }, - "name": "promisify" - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 38682, - "end": 38695, - "loc": { - "start": { - "line": 1070, - "column": 14 - }, - "end": { - "line": 1070, - "column": 27 - } - }, - "object": { - "type": "Identifier", - "start": 38682, - "end": 38690, - "loc": { - "start": { - "line": 1070, - "column": 14 - }, - "end": { - "line": 1070, - "column": 22 - }, - "identifierName": "Document" - }, - "name": "Document" - }, - "property": { - "type": "Identifier", - "start": 38691, - "end": 38695, - "loc": { - "start": { - "line": 1070, - "column": 23 - }, - "end": { - "line": 1070, - "column": 27 - }, - "identifierName": "view" - }, - "name": "view" - }, - "computed": false - } - ] - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 38697, - "end": 38727, - "loc": { - "start": { - "line": 1070, - "column": 29 - }, - "end": { - "line": 1073, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 38705, - "end": 38707, - "loc": { - "start": { - "line": 1071, - "column": 6 - }, - "end": { - "line": 1071, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 38705, - "end": 38707, - "loc": { - "start": { - "line": 1071, - "column": 6 - }, - "end": { - "line": 1071, - "column": 8 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 38705, - "end": 38707, - "loc": { - "start": { - "line": 1071, - "column": 6 - }, - "end": { - "line": 1071, - "column": 8 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 38715, - "end": 38720, - "loc": { - "start": { - "line": 1072, - "column": 6 - }, - "end": { - "line": 1072, - "column": 11 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 38715, - "end": 38720, - "loc": { - "start": { - "line": 1072, - "column": 6 - }, - "end": { - "line": 1072, - "column": 11 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 38715, - "end": 38720, - "loc": { - "start": { - "line": 1072, - "column": 6 - }, - "end": { - "line": 1072, - "column": 11 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 38736, - "end": 38740, - "loc": { - "start": { - "line": 1074, - "column": 7 - }, - "end": { - "line": 1074, - "column": 11 - }, - "identifierName": "then" - }, - "name": "then" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 38741, - "end": 40182, - "loc": { - "start": { - "line": 1074, - "column": 12 - }, - "end": { - "line": 1121, - "column": 7 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 38741, - "end": 38749, - "loc": { - "start": { - "line": 1074, - "column": 12 - }, - "end": { - "line": 1074, - "column": 20 - }, - "identifierName": "document" - }, - "name": "document" - } - ], - "body": { - "type": "BlockStatement", - "start": 38753, - "end": 40182, - "loc": { - "start": { - "line": 1074, - "column": 24 - }, - "end": { - "line": 1121, - "column": 7 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 38763, - "end": 38837, - "loc": { - "start": { - "line": 1075, - "column": 8 - }, - "end": { - "line": 1078, - "column": 21 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 38769, - "end": 38836, - "loc": { - "start": { - "line": 1075, - "column": 14 - }, - "end": { - "line": 1078, - "column": 20 - } - }, - "id": { - "type": "ObjectPattern", - "start": 38769, - "end": 38825, - "loc": { - "start": { - "line": 1075, - "column": 14 - }, - "end": { - "line": 1078, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 38781, - "end": 38789, - "loc": { - "start": { - "line": 1076, - "column": 10 - }, - "end": { - "line": 1076, - "column": 18 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 38781, - "end": 38789, - "loc": { - "start": { - "line": 1076, - "column": 10 - }, - "end": { - "line": 1076, - "column": 18 - }, - "identifierName": "requests" - }, - "name": "requests" - }, - "value": { - "type": "Identifier", - "start": 38781, - "end": 38789, - "loc": { - "start": { - "line": 1076, - "column": 10 - }, - "end": { - "line": 1076, - "column": 18 - }, - "identifierName": "requests" - }, - "name": "requests" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 38801, - "end": 38814, - "loc": { - "start": { - "line": 1077, - "column": 10 - }, - "end": { - "line": 1077, - "column": 23 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 38801, - "end": 38814, - "loc": { - "start": { - "line": 1077, - "column": 10 - }, - "end": { - "line": 1077, - "column": 23 - }, - "identifierName": "field_invites" - }, - "name": "field_invites" - }, - "value": { - "type": "Identifier", - "start": 38801, - "end": 38814, - "loc": { - "start": { - "line": 1077, - "column": 10 - }, - "end": { - "line": 1077, - "column": 23 - }, - "identifierName": "field_invites" - }, - "name": "field_invites" - }, - "extra": { - "shorthand": true - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 38828, - "end": 38836, - "loc": { - "start": { - "line": 1078, - "column": 12 - }, - "end": { - "line": 1078, - "column": 20 - }, - "identifierName": "document" - }, - "name": "document" - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 38847, - "end": 38985, - "loc": { - "start": { - "line": 1080, - "column": 8 - }, - "end": { - "line": 1084, - "column": 20 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 38853, - "end": 38984, - "loc": { - "start": { - "line": 1080, - "column": 14 - }, - "end": { - "line": 1084, - "column": 19 - } - }, - "id": { - "type": "ObjectPattern", - "start": 38853, - "end": 38974, - "loc": { - "start": { - "line": 1080, - "column": 14 - }, - "end": { - "line": 1084, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 38865, - "end": 38888, - "loc": { - "start": { - "line": 1081, - "column": 10 - }, - "end": { - "line": 1081, - "column": 33 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 38865, - "end": 38880, - "loc": { - "start": { - "line": 1081, - "column": 10 - }, - "end": { - "line": 1081, - "column": 25 - }, - "identifierName": "freeFormInvites" - }, - "name": "freeFormInvites" - }, - "value": { - "type": "AssignmentPattern", - "start": 38865, - "end": 38888, - "loc": { - "start": { - "line": 1081, - "column": 10 - }, - "end": { - "line": 1081, - "column": 33 - } - }, - "left": { - "type": "Identifier", - "start": 38865, - "end": 38880, - "loc": { - "start": { - "line": 1081, - "column": 10 - }, - "end": { - "line": 1081, - "column": 25 - }, - "identifierName": "freeFormInvites" - }, - "name": "freeFormInvites" - }, - "right": { - "type": "BooleanLiteral", - "start": 38883, - "end": 38888, - "loc": { - "start": { - "line": 1081, - "column": 28 - }, - "end": { - "line": 1081, - "column": 33 - } - }, - "value": false - } - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 38900, - "end": 38924, - "loc": { - "start": { - "line": 1082, - "column": 10 - }, - "end": { - "line": 1082, - "column": 34 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 38900, - "end": 38917, - "loc": { - "start": { - "line": 1082, - "column": 10 - }, - "end": { - "line": 1082, - "column": 27 - }, - "identifierName": "fieldInviteStatus" - }, - "name": "fieldInviteStatus" - }, - "value": { - "type": "AssignmentPattern", - "start": 38900, - "end": 38924, - "loc": { - "start": { - "line": 1082, - "column": 10 - }, - "end": { - "line": 1082, - "column": 34 - } - }, - "left": { - "type": "Identifier", - "start": 38900, - "end": 38917, - "loc": { - "start": { - "line": 1082, - "column": 10 - }, - "end": { - "line": 1082, - "column": 27 - }, - "identifierName": "fieldInviteStatus" - }, - "name": "fieldInviteStatus" - }, - "right": { - "type": "NullLiteral", - "start": 38920, - "end": 38924, - "loc": { - "start": { - "line": 1082, - "column": 30 - }, - "end": { - "line": 1082, - "column": 34 - } - } - } - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 38936, - "end": 38963, - "loc": { - "start": { - "line": 1083, - "column": 10 - }, - "end": { - "line": 1083, - "column": 37 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 38936, - "end": 38956, - "loc": { - "start": { - "line": 1083, - "column": 10 - }, - "end": { - "line": 1083, - "column": 30 - }, - "identifierName": "paymentRequestStatus" - }, - "name": "paymentRequestStatus" - }, - "value": { - "type": "AssignmentPattern", - "start": 38936, - "end": 38963, - "loc": { - "start": { - "line": 1083, - "column": 10 - }, - "end": { - "line": 1083, - "column": 37 - } - }, - "left": { - "type": "Identifier", - "start": 38936, - "end": 38956, - "loc": { - "start": { - "line": 1083, - "column": 10 - }, - "end": { - "line": 1083, - "column": 30 - }, - "identifierName": "paymentRequestStatus" - }, - "name": "paymentRequestStatus" - }, - "right": { - "type": "NullLiteral", - "start": 38959, - "end": 38963, - "loc": { - "start": { - "line": 1083, - "column": 33 - }, - "end": { - "line": 1083, - "column": 37 - } - } - } - }, - "extra": { - "shorthand": true - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 38977, - "end": 38984, - "loc": { - "start": { - "line": 1084, - "column": 12 - }, - "end": { - "line": 1084, - "column": 19 - }, - "identifierName": "options" - }, - "name": "options" - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 38995, - "end": 39013, - "loc": { - "start": { - "line": 1086, - "column": 8 - }, - "end": { - "line": 1086, - "column": 26 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 39001, - "end": 39012, - "loc": { - "start": { - "line": 1086, - "column": 14 - }, - "end": { - "line": 1086, - "column": 25 - } - }, - "id": { - "type": "Identifier", - "start": 39001, - "end": 39007, - "loc": { - "start": { - "line": 1086, - "column": 14 - }, - "end": { - "line": 1086, - "column": 20 - }, - "identifierName": "emails" - }, - "name": "emails" - }, - "init": { - "type": "ArrayExpression", - "start": 39010, - "end": 39012, - "loc": { - "start": { - "line": 1086, - "column": 23 - }, - "end": { - "line": 1086, - "column": 25 - } - }, - "elements": [] - } - } - ], - "kind": "const" - }, - { - "type": "IfStatement", - "start": 39023, - "end": 39342, - "loc": { - "start": { - "line": 1088, - "column": 8 - }, - "end": { - "line": 1094, - "column": 9 - } - }, - "test": { - "type": "BinaryExpression", - "start": 39027, - "end": 39060, - "loc": { - "start": { - "line": 1088, - "column": 12 - }, - "end": { - "line": 1088, - "column": 45 - } - }, - "left": { - "type": "MemberExpression", - "start": 39027, - "end": 39054, - "loc": { - "start": { - "line": 1088, - "column": 12 - }, - "end": { - "line": 1088, - "column": 39 - } - }, - "object": { - "type": "CallExpression", - "start": 39027, - "end": 39047, - "loc": { - "start": { - "line": 1088, - "column": 12 - }, - "end": { - "line": 1088, - "column": 32 - } - }, - "callee": { - "type": "MemberExpression", - "start": 39027, - "end": 39038, - "loc": { - "start": { - "line": 1088, - "column": 12 - }, - "end": { - "line": 1088, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 39027, - "end": 39033, - "loc": { - "start": { - "line": 1088, - "column": 12 - }, - "end": { - "line": 1088, - "column": 18 - }, - "identifierName": "Object" - }, - "name": "Object" - }, - "property": { - "type": "Identifier", - "start": 39034, - "end": 39038, - "loc": { - "start": { - "line": 1088, - "column": 19 - }, - "end": { - "line": 1088, - "column": 23 - }, - "identifierName": "keys" - }, - "name": "keys" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 39039, - "end": 39046, - "loc": { - "start": { - "line": 1088, - "column": 24 - }, - "end": { - "line": 1088, - "column": 31 - }, - "identifierName": "options" - }, - "name": "options" - } - ] - }, - "property": { - "type": "Identifier", - "start": 39048, - "end": 39054, - "loc": { - "start": { - "line": 1088, - "column": 33 - }, - "end": { - "line": 1088, - "column": 39 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 39059, - "end": 39060, - "loc": { - "start": { - "line": 1088, - "column": 44 - }, - "end": { - "line": 1088, - "column": 45 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - "consequent": { - "type": "BlockStatement", - "start": 39062, - "end": 39342, - "loc": { - "start": { - "line": 1088, - "column": 47 - }, - "end": { - "line": 1094, - "column": 9 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 39074, - "end": 39147, - "loc": { - "start": { - "line": 1089, - "column": 10 - }, - "end": { - "line": 1089, - "column": 83 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 39080, - "end": 39146, - "loc": { - "start": { - "line": 1089, - "column": 16 - }, - "end": { - "line": 1089, - "column": 82 - } - }, - "id": { - "type": "Identifier", - "start": 39080, - "end": 39098, - "loc": { - "start": { - "line": 1089, - "column": 16 - }, - "end": { - "line": 1089, - "column": 34 - }, - "identifierName": "fieldInvitesEmails" - }, - "name": "fieldInvitesEmails" - }, - "init": { - "type": "LogicalExpression", - "start": 39101, - "end": 39146, - "loc": { - "start": { - "line": 1089, - "column": 37 - }, - "end": { - "line": 1089, - "column": 82 - } - }, - "left": { - "type": "CallExpression", - "start": 39101, - "end": 39140, - "loc": { - "start": { - "line": 1089, - "column": 37 - }, - "end": { - "line": 1089, - "column": 76 - } - }, - "callee": { - "type": "Identifier", - "start": 39101, - "end": 39116, - "loc": { - "start": { - "line": 1089, - "column": 37 - }, - "end": { - "line": 1089, - "column": 52 - }, - "identifierName": "getSignerEmails" - }, - "name": "getSignerEmails" - }, - "arguments": [ - { - "type": "Identifier", - "start": 39117, - "end": 39130, - "loc": { - "start": { - "line": 1089, - "column": 53 - }, - "end": { - "line": 1089, - "column": 66 - }, - "identifierName": "field_invites" - }, - "name": "field_invites" - }, - { - "type": "StringLiteral", - "start": 39132, - "end": 39139, - "loc": { - "start": { - "line": 1089, - "column": 68 - }, - "end": { - "line": 1089, - "column": 75 - } - }, - "extra": { - "rawValue": "email", - "raw": "'email'" - }, - "value": "email" - } - ] - }, - "operator": "||", - "right": { - "type": "ArrayExpression", - "start": 39144, - "end": 39146, - "loc": { - "start": { - "line": 1089, - "column": 80 - }, - "end": { - "line": 1089, - "column": 82 - } - }, - "elements": [] - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 39158, - "end": 39236, - "loc": { - "start": { - "line": 1090, - "column": 10 - }, - "end": { - "line": 1090, - "column": 88 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 39164, - "end": 39235, - "loc": { - "start": { - "line": 1090, - "column": 16 - }, - "end": { - "line": 1090, - "column": 87 - } - }, - "id": { - "type": "Identifier", - "start": 39164, - "end": 39185, - "loc": { - "start": { - "line": 1090, - "column": 16 - }, - "end": { - "line": 1090, - "column": 37 - }, - "identifierName": "freeFormInvitesEmails" - }, - "name": "freeFormInvitesEmails" - }, - "init": { - "type": "LogicalExpression", - "start": 39188, - "end": 39235, - "loc": { - "start": { - "line": 1090, - "column": 40 - }, - "end": { - "line": 1090, - "column": 87 - } - }, - "left": { - "type": "CallExpression", - "start": 39188, - "end": 39229, - "loc": { - "start": { - "line": 1090, - "column": 40 - }, - "end": { - "line": 1090, - "column": 81 - } - }, - "callee": { - "type": "Identifier", - "start": 39188, - "end": 39203, - "loc": { - "start": { - "line": 1090, - "column": 40 - }, - "end": { - "line": 1090, - "column": 55 - }, - "identifierName": "getSignerEmails" - }, - "name": "getSignerEmails" - }, - "arguments": [ - { - "type": "Identifier", - "start": 39204, - "end": 39212, - "loc": { - "start": { - "line": 1090, - "column": 56 - }, - "end": { - "line": 1090, - "column": 64 - }, - "identifierName": "requests" - }, - "name": "requests" - }, - { - "type": "StringLiteral", - "start": 39214, - "end": 39228, - "loc": { - "start": { - "line": 1090, - "column": 66 - }, - "end": { - "line": 1090, - "column": 80 - } - }, - "extra": { - "rawValue": "signer_email", - "raw": "'signer_email'" - }, - "value": "signer_email" - } - ] - }, - "operator": "||", - "right": { - "type": "ArrayExpression", - "start": 39233, - "end": 39235, - "loc": { - "start": { - "line": 1090, - "column": 85 - }, - "end": { - "line": 1090, - "column": 87 - } - }, - "elements": [] - } - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 39248, - "end": 39283, - "loc": { - "start": { - "line": 1092, - "column": 10 - }, - "end": { - "line": 1092, - "column": 45 - } - }, - "expression": { - "type": "CallExpression", - "start": 39248, - "end": 39282, - "loc": { - "start": { - "line": 1092, - "column": 10 - }, - "end": { - "line": 1092, - "column": 44 - } - }, - "callee": { - "type": "MemberExpression", - "start": 39248, - "end": 39259, - "loc": { - "start": { - "line": 1092, - "column": 10 - }, - "end": { - "line": 1092, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 39248, - "end": 39254, - "loc": { - "start": { - "line": 1092, - "column": 10 - }, - "end": { - "line": 1092, - "column": 16 - }, - "identifierName": "emails" - }, - "name": "emails" - }, - "property": { - "type": "Identifier", - "start": 39255, - "end": 39259, - "loc": { - "start": { - "line": 1092, - "column": 17 - }, - "end": { - "line": 1092, - "column": 21 - }, - "identifierName": "push" - }, - "name": "push" - }, - "computed": false - }, - "arguments": [ - { - "type": "SpreadElement", - "start": 39260, - "end": 39281, - "loc": { - "start": { - "line": 1092, - "column": 22 - }, - "end": { - "line": 1092, - "column": 43 - } - }, - "argument": { - "type": "Identifier", - "start": 39263, - "end": 39281, - "loc": { - "start": { - "line": 1092, - "column": 25 - }, - "end": { - "line": 1092, - "column": 43 - }, - "identifierName": "fieldInvitesEmails" - }, - "name": "fieldInvitesEmails" - } - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 39294, - "end": 39332, - "loc": { - "start": { - "line": 1093, - "column": 10 - }, - "end": { - "line": 1093, - "column": 48 - } - }, - "expression": { - "type": "CallExpression", - "start": 39294, - "end": 39331, - "loc": { - "start": { - "line": 1093, - "column": 10 - }, - "end": { - "line": 1093, - "column": 47 - } - }, - "callee": { - "type": "MemberExpression", - "start": 39294, - "end": 39305, - "loc": { - "start": { - "line": 1093, - "column": 10 - }, - "end": { - "line": 1093, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 39294, - "end": 39300, - "loc": { - "start": { - "line": 1093, - "column": 10 - }, - "end": { - "line": 1093, - "column": 16 - }, - "identifierName": "emails" - }, - "name": "emails" - }, - "property": { - "type": "Identifier", - "start": 39301, - "end": 39305, - "loc": { - "start": { - "line": 1093, - "column": 17 - }, - "end": { - "line": 1093, - "column": 21 - }, - "identifierName": "push" - }, - "name": "push" - }, - "computed": false - }, - "arguments": [ - { - "type": "SpreadElement", - "start": 39306, - "end": 39330, - "loc": { - "start": { - "line": 1093, - "column": 22 - }, - "end": { - "line": 1093, - "column": 46 - } - }, - "argument": { - "type": "Identifier", - "start": 39309, - "end": 39330, - "loc": { - "start": { - "line": 1093, - "column": 25 - }, - "end": { - "line": 1093, - "column": 46 - }, - "identifierName": "freeFormInvitesEmails" - }, - "name": "freeFormInvitesEmails" - } - } - ] - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 39352, - "end": 39509, - "loc": { - "start": { - "line": 1096, - "column": 8 - }, - "end": { - "line": 1100, - "column": 9 - } - }, - "test": { - "type": "Identifier", - "start": 39356, - "end": 39371, - "loc": { - "start": { - "line": 1096, - "column": 12 - }, - "end": { - "line": 1096, - "column": 27 - }, - "identifierName": "freeFormInvites" - }, - "name": "freeFormInvites" - }, - "consequent": { - "type": "BlockStatement", - "start": 39373, - "end": 39509, - "loc": { - "start": { - "line": 1096, - "column": 29 - }, - "end": { - "line": 1100, - "column": 9 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 39385, - "end": 39456, - "loc": { - "start": { - "line": 1097, - "column": 10 - }, - "end": { - "line": 1097, - "column": 81 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 39391, - "end": 39455, - "loc": { - "start": { - "line": 1097, - "column": 16 - }, - "end": { - "line": 1097, - "column": 80 - } - }, - "id": { - "type": "Identifier", - "start": 39391, - "end": 39405, - "loc": { - "start": { - "line": 1097, - "column": 16 - }, - "end": { - "line": 1097, - "column": 30 - }, - "identifierName": "freeFomInvites" - }, - "name": "freeFomInvites" - }, - "init": { - "type": "LogicalExpression", - "start": 39408, - "end": 39455, - "loc": { - "start": { - "line": 1097, - "column": 33 - }, - "end": { - "line": 1097, - "column": 80 - } - }, - "left": { - "type": "CallExpression", - "start": 39408, - "end": 39449, - "loc": { - "start": { - "line": 1097, - "column": 33 - }, - "end": { - "line": 1097, - "column": 74 - } - }, - "callee": { - "type": "Identifier", - "start": 39408, - "end": 39423, - "loc": { - "start": { - "line": 1097, - "column": 33 - }, - "end": { - "line": 1097, - "column": 48 - }, - "identifierName": "getSignerEmails" - }, - "name": "getSignerEmails" - }, - "arguments": [ - { - "type": "Identifier", - "start": 39424, - "end": 39432, - "loc": { - "start": { - "line": 1097, - "column": 49 - }, - "end": { - "line": 1097, - "column": 57 - }, - "identifierName": "requests" - }, - "name": "requests" - }, - { - "type": "StringLiteral", - "start": 39434, - "end": 39448, - "loc": { - "start": { - "line": 1097, - "column": 59 - }, - "end": { - "line": 1097, - "column": 73 - } - }, - "extra": { - "rawValue": "signer_email", - "raw": "'signer_email'" - }, - "value": "signer_email" - } - ] - }, - "operator": "||", - "right": { - "type": "ArrayExpression", - "start": 39453, - "end": 39455, - "loc": { - "start": { - "line": 1097, - "column": 78 - }, - "end": { - "line": 1097, - "column": 80 - } - }, - "elements": [] - } - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 39468, - "end": 39499, - "loc": { - "start": { - "line": 1099, - "column": 10 - }, - "end": { - "line": 1099, - "column": 41 - } - }, - "expression": { - "type": "CallExpression", - "start": 39468, - "end": 39498, - "loc": { - "start": { - "line": 1099, - "column": 10 - }, - "end": { - "line": 1099, - "column": 40 - } - }, - "callee": { - "type": "MemberExpression", - "start": 39468, - "end": 39479, - "loc": { - "start": { - "line": 1099, - "column": 10 - }, - "end": { - "line": 1099, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 39468, - "end": 39474, - "loc": { - "start": { - "line": 1099, - "column": 10 - }, - "end": { - "line": 1099, - "column": 16 - }, - "identifierName": "emails" - }, - "name": "emails" - }, - "property": { - "type": "Identifier", - "start": 39475, - "end": 39479, - "loc": { - "start": { - "line": 1099, - "column": 17 - }, - "end": { - "line": 1099, - "column": 21 - }, - "identifierName": "push" - }, - "name": "push" - }, - "computed": false - }, - "arguments": [ - { - "type": "SpreadElement", - "start": 39480, - "end": 39497, - "loc": { - "start": { - "line": 1099, - "column": 22 - }, - "end": { - "line": 1099, - "column": 39 - } - }, - "argument": { - "type": "Identifier", - "start": 39483, - "end": 39497, - "loc": { - "start": { - "line": 1099, - "column": 25 - }, - "end": { - "line": 1099, - "column": 39 - }, - "identifierName": "freeFomInvites" - }, - "name": "freeFomInvites" - } - } - ] - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 39519, - "end": 39933, - "loc": { - "start": { - "line": 1102, - "column": 8 - }, - "end": { - "line": 1112, - "column": 9 - } - }, - "test": { - "type": "Identifier", - "start": 39523, - "end": 39540, - "loc": { - "start": { - "line": 1102, - "column": 12 - }, - "end": { - "line": 1102, - "column": 29 - }, - "identifierName": "fieldInviteStatus" - }, - "name": "fieldInviteStatus" - }, - "consequent": { - "type": "BlockStatement", - "start": 39542, - "end": 39933, - "loc": { - "start": { - "line": 1102, - "column": 31 - }, - "end": { - "line": 1112, - "column": 9 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 39554, - "end": 39640, - "loc": { - "start": { - "line": 1103, - "column": 10 - }, - "end": { - "line": 1103, - "column": 96 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 39560, - "end": 39639, - "loc": { - "start": { - "line": 1103, - "column": 16 - }, - "end": { - "line": 1103, - "column": 95 - } - }, - "id": { - "type": "Identifier", - "start": 39560, - "end": 39572, - "loc": { - "start": { - "line": 1103, - "column": 16 - }, - "end": { - "line": 1103, - "column": 28 - }, - "identifierName": "fieldInvites" - }, - "name": "fieldInvites" - }, - "init": { - "type": "LogicalExpression", - "start": 39575, - "end": 39639, - "loc": { - "start": { - "line": 1103, - "column": 31 - }, - "end": { - "line": 1103, - "column": 95 - } - }, - "left": { - "type": "CallExpression", - "start": 39575, - "end": 39633, - "loc": { - "start": { - "line": 1103, - "column": 31 - }, - "end": { - "line": 1103, - "column": 89 - } - }, - "callee": { - "type": "Identifier", - "start": 39575, - "end": 39590, - "loc": { - "start": { - "line": 1103, - "column": 31 - }, - "end": { - "line": 1103, - "column": 46 - }, - "identifierName": "getSignerEmails" - }, - "name": "getSignerEmails" - }, - "arguments": [ - { - "type": "Identifier", - "start": 39591, - "end": 39604, - "loc": { - "start": { - "line": 1103, - "column": 47 - }, - "end": { - "line": 1103, - "column": 60 - }, - "identifierName": "field_invites" - }, - "name": "field_invites" - }, - { - "type": "StringLiteral", - "start": 39606, - "end": 39613, - "loc": { - "start": { - "line": 1103, - "column": 62 - }, - "end": { - "line": 1103, - "column": 69 - } - }, - "extra": { - "rawValue": "email", - "raw": "'email'" - }, - "value": "email" - }, - { - "type": "Identifier", - "start": 39615, - "end": 39632, - "loc": { - "start": { - "line": 1103, - "column": 71 - }, - "end": { - "line": 1103, - "column": 88 - }, - "identifierName": "fieldInviteStatus" - }, - "name": "fieldInviteStatus" - } - ] - }, - "operator": "||", - "right": { - "type": "ArrayExpression", - "start": 39637, - "end": 39639, - "loc": { - "start": { - "line": 1103, - "column": 93 - }, - "end": { - "line": 1103, - "column": 95 - } - }, - "elements": [] - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 39651, - "end": 39728, - "loc": { - "start": { - "line": 1104, - "column": 10 - }, - "end": { - "line": 1104, - "column": 87 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 39657, - "end": 39727, - "loc": { - "start": { - "line": 1104, - "column": 16 - }, - "end": { - "line": 1104, - "column": 86 - } - }, - "id": { - "type": "Identifier", - "start": 39657, - "end": 39665, - "loc": { - "start": { - "line": 1104, - "column": 16 - }, - "end": { - "line": 1104, - "column": 24 - }, - "identifierName": "declined" - }, - "name": "declined" - }, - "init": { - "type": "LogicalExpression", - "start": 39668, - "end": 39727, - "loc": { - "start": { - "line": 1104, - "column": 27 - }, - "end": { - "line": 1104, - "column": 86 - } - }, - "left": { - "type": "CallExpression", - "start": 39668, - "end": 39721, - "loc": { - "start": { - "line": 1104, - "column": 27 - }, - "end": { - "line": 1104, - "column": 80 - } - }, - "callee": { - "type": "Identifier", - "start": 39668, - "end": 39687, - "loc": { - "start": { - "line": 1104, - "column": 27 - }, - "end": { - "line": 1104, - "column": 46 - }, - "identifierName": "getByDeclinedStatus" - }, - "name": "getByDeclinedStatus" - }, - "arguments": [ - { - "type": "Identifier", - "start": 39688, - "end": 39701, - "loc": { - "start": { - "line": 1104, - "column": 47 - }, - "end": { - "line": 1104, - "column": 60 - }, - "identifierName": "field_invites" - }, - "name": "field_invites" - }, - { - "type": "Identifier", - "start": 39703, - "end": 39720, - "loc": { - "start": { - "line": 1104, - "column": 62 - }, - "end": { - "line": 1104, - "column": 79 - }, - "identifierName": "fieldInviteStatus" - }, - "name": "fieldInviteStatus" - } - ] - }, - "operator": "||", - "right": { - "type": "ArrayExpression", - "start": 39725, - "end": 39727, - "loc": { - "start": { - "line": 1104, - "column": 84 - }, - "end": { - "line": 1104, - "column": 86 - } - }, - "elements": [] - } - } - } - ], - "kind": "const" - }, - { - "type": "IfStatement", - "start": 39740, - "end": 39923, - "loc": { - "start": { - "line": 1106, - "column": 10 - }, - "end": { - "line": 1111, - "column": 11 - } - }, - "test": { - "type": "BinaryExpression", - "start": 39744, - "end": 39767, - "loc": { - "start": { - "line": 1106, - "column": 14 - }, - "end": { - "line": 1106, - "column": 37 - } - }, - "left": { - "type": "MemberExpression", - "start": 39744, - "end": 39763, - "loc": { - "start": { - "line": 1106, - "column": 14 - }, - "end": { - "line": 1106, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 39744, - "end": 39756, - "loc": { - "start": { - "line": 1106, - "column": 14 - }, - "end": { - "line": 1106, - "column": 26 - }, - "identifierName": "fieldInvites" - }, - "name": "fieldInvites" - }, - "property": { - "type": "Identifier", - "start": 39757, - "end": 39763, - "loc": { - "start": { - "line": 1106, - "column": 27 - }, - "end": { - "line": 1106, - "column": 33 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - }, - "operator": ">", - "right": { - "type": "NumericLiteral", - "start": 39766, - "end": 39767, - "loc": { - "start": { - "line": 1106, - "column": 36 - }, - "end": { - "line": 1106, - "column": 37 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - "consequent": { - "type": "BlockStatement", - "start": 39769, - "end": 39824, - "loc": { - "start": { - "line": 1106, - "column": 39 - }, - "end": { - "line": 1108, - "column": 11 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 39783, - "end": 39812, - "loc": { - "start": { - "line": 1107, - "column": 12 - }, - "end": { - "line": 1107, - "column": 41 - } - }, - "expression": { - "type": "CallExpression", - "start": 39783, - "end": 39811, - "loc": { - "start": { - "line": 1107, - "column": 12 - }, - "end": { - "line": 1107, - "column": 40 - } - }, - "callee": { - "type": "MemberExpression", - "start": 39783, - "end": 39794, - "loc": { - "start": { - "line": 1107, - "column": 12 - }, - "end": { - "line": 1107, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 39783, - "end": 39789, - "loc": { - "start": { - "line": 1107, - "column": 12 - }, - "end": { - "line": 1107, - "column": 18 - }, - "identifierName": "emails" - }, - "name": "emails" - }, - "property": { - "type": "Identifier", - "start": 39790, - "end": 39794, - "loc": { - "start": { - "line": 1107, - "column": 19 - }, - "end": { - "line": 1107, - "column": 23 - }, - "identifierName": "push" - }, - "name": "push" - }, - "computed": false - }, - "arguments": [ - { - "type": "SpreadElement", - "start": 39795, - "end": 39810, - "loc": { - "start": { - "line": 1107, - "column": 24 - }, - "end": { - "line": 1107, - "column": 39 - } - }, - "argument": { - "type": "Identifier", - "start": 39798, - "end": 39810, - "loc": { - "start": { - "line": 1107, - "column": 27 - }, - "end": { - "line": 1107, - "column": 39 - }, - "identifierName": "fieldInvites" - }, - "name": "fieldInvites" - } - } - ] - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 39830, - "end": 39923, - "loc": { - "start": { - "line": 1108, - "column": 17 - }, - "end": { - "line": 1111, - "column": 11 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 39844, - "end": 39873, - "loc": { - "start": { - "line": 1109, - "column": 12 - }, - "end": { - "line": 1109, - "column": 41 - } - }, - "expression": { - "type": "CallExpression", - "start": 39844, - "end": 39872, - "loc": { - "start": { - "line": 1109, - "column": 12 - }, - "end": { - "line": 1109, - "column": 40 - } - }, - "callee": { - "type": "MemberExpression", - "start": 39844, - "end": 39855, - "loc": { - "start": { - "line": 1109, - "column": 12 - }, - "end": { - "line": 1109, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 39844, - "end": 39850, - "loc": { - "start": { - "line": 1109, - "column": 12 - }, - "end": { - "line": 1109, - "column": 18 - }, - "identifierName": "emails" - }, - "name": "emails" - }, - "property": { - "type": "Identifier", - "start": 39851, - "end": 39855, - "loc": { - "start": { - "line": 1109, - "column": 19 - }, - "end": { - "line": 1109, - "column": 23 - }, - "identifierName": "push" - }, - "name": "push" - }, - "computed": false - }, - "arguments": [ - { - "type": "SpreadElement", - "start": 39856, - "end": 39871, - "loc": { - "start": { - "line": 1109, - "column": 24 - }, - "end": { - "line": 1109, - "column": 39 - } - }, - "argument": { - "type": "Identifier", - "start": 39859, - "end": 39871, - "loc": { - "start": { - "line": 1109, - "column": 27 - }, - "end": { - "line": 1109, - "column": 39 - }, - "identifierName": "fieldInvites" - }, - "name": "fieldInvites" - } - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 39886, - "end": 39911, - "loc": { - "start": { - "line": 1110, - "column": 12 - }, - "end": { - "line": 1110, - "column": 37 - } - }, - "expression": { - "type": "CallExpression", - "start": 39886, - "end": 39910, - "loc": { - "start": { - "line": 1110, - "column": 12 - }, - "end": { - "line": 1110, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 39886, - "end": 39897, - "loc": { - "start": { - "line": 1110, - "column": 12 - }, - "end": { - "line": 1110, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 39886, - "end": 39892, - "loc": { - "start": { - "line": 1110, - "column": 12 - }, - "end": { - "line": 1110, - "column": 18 - }, - "identifierName": "emails" - }, - "name": "emails" - }, - "property": { - "type": "Identifier", - "start": 39893, - "end": 39897, - "loc": { - "start": { - "line": 1110, - "column": 19 - }, - "end": { - "line": 1110, - "column": 23 - }, - "identifierName": "push" - }, - "name": "push" - }, - "computed": false - }, - "arguments": [ - { - "type": "SpreadElement", - "start": 39898, - "end": 39909, - "loc": { - "start": { - "line": 1110, - "column": 24 - }, - "end": { - "line": 1110, - "column": 35 - } - }, - "argument": { - "type": "Identifier", - "start": 39901, - "end": 39909, - "loc": { - "start": { - "line": 1110, - "column": 27 - }, - "end": { - "line": 1110, - "column": 35 - }, - "identifierName": "declined" - }, - "name": "declined" - } - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 39943, - "end": 40127, - "loc": { - "start": { - "line": 1114, - "column": 8 - }, - "end": { - "line": 1118, - "column": 9 - } - }, - "test": { - "type": "Identifier", - "start": 39947, - "end": 39967, - "loc": { - "start": { - "line": 1114, - "column": 12 - }, - "end": { - "line": 1114, - "column": 32 - }, - "identifierName": "paymentRequestStatus" - }, - "name": "paymentRequestStatus" - }, - "consequent": { - "type": "BlockStatement", - "start": 39969, - "end": 40127, - "loc": { - "start": { - "line": 1114, - "column": 34 - }, - "end": { - "line": 1118, - "column": 9 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 39981, - "end": 40073, - "loc": { - "start": { - "line": 1115, - "column": 10 - }, - "end": { - "line": 1115, - "column": 102 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 39987, - "end": 40072, - "loc": { - "start": { - "line": 1115, - "column": 16 - }, - "end": { - "line": 1115, - "column": 101 - } - }, - "id": { - "type": "Identifier", - "start": 39987, - "end": 40002, - "loc": { - "start": { - "line": 1115, - "column": 16 - }, - "end": { - "line": 1115, - "column": 31 - }, - "identifierName": "paymentRequests" - }, - "name": "paymentRequests" - }, - "init": { - "type": "LogicalExpression", - "start": 40005, - "end": 40072, - "loc": { - "start": { - "line": 1115, - "column": 34 - }, - "end": { - "line": 1115, - "column": 101 - } - }, - "left": { - "type": "CallExpression", - "start": 40005, - "end": 40066, - "loc": { - "start": { - "line": 1115, - "column": 34 - }, - "end": { - "line": 1115, - "column": 95 - } - }, - "callee": { - "type": "Identifier", - "start": 40005, - "end": 40020, - "loc": { - "start": { - "line": 1115, - "column": 34 - }, - "end": { - "line": 1115, - "column": 49 - }, - "identifierName": "getSignerEmails" - }, - "name": "getSignerEmails" - }, - "arguments": [ - { - "type": "Identifier", - "start": 40021, - "end": 40034, - "loc": { - "start": { - "line": 1115, - "column": 50 - }, - "end": { - "line": 1115, - "column": 63 - }, - "identifierName": "field_invites" - }, - "name": "field_invites" - }, - { - "type": "StringLiteral", - "start": 40036, - "end": 40043, - "loc": { - "start": { - "line": 1115, - "column": 65 - }, - "end": { - "line": 1115, - "column": 72 - } - }, - "extra": { - "rawValue": "email", - "raw": "'email'" - }, - "value": "email" - }, - { - "type": "Identifier", - "start": 40045, - "end": 40065, - "loc": { - "start": { - "line": 1115, - "column": 74 - }, - "end": { - "line": 1115, - "column": 94 - }, - "identifierName": "paymentRequestStatus" - }, - "name": "paymentRequestStatus" - } - ] - }, - "operator": "||", - "right": { - "type": "ArrayExpression", - "start": 40070, - "end": 40072, - "loc": { - "start": { - "line": 1115, - "column": 99 - }, - "end": { - "line": 1115, - "column": 101 - } - }, - "elements": [] - } - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 40085, - "end": 40117, - "loc": { - "start": { - "line": 1117, - "column": 10 - }, - "end": { - "line": 1117, - "column": 42 - } - }, - "expression": { - "type": "CallExpression", - "start": 40085, - "end": 40116, - "loc": { - "start": { - "line": 1117, - "column": 10 - }, - "end": { - "line": 1117, - "column": 41 - } - }, - "callee": { - "type": "MemberExpression", - "start": 40085, - "end": 40096, - "loc": { - "start": { - "line": 1117, - "column": 10 - }, - "end": { - "line": 1117, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 40085, - "end": 40091, - "loc": { - "start": { - "line": 1117, - "column": 10 - }, - "end": { - "line": 1117, - "column": 16 - }, - "identifierName": "emails" - }, - "name": "emails" - }, - "property": { - "type": "Identifier", - "start": 40092, - "end": 40096, - "loc": { - "start": { - "line": 1117, - "column": 17 - }, - "end": { - "line": 1117, - "column": 21 - }, - "identifierName": "push" - }, - "name": "push" - }, - "computed": false - }, - "arguments": [ - { - "type": "SpreadElement", - "start": 40097, - "end": 40115, - "loc": { - "start": { - "line": 1117, - "column": 22 - }, - "end": { - "line": 1117, - "column": 40 - } - }, - "argument": { - "type": "Identifier", - "start": 40100, - "end": 40115, - "loc": { - "start": { - "line": 1117, - "column": 25 - }, - "end": { - "line": 1117, - "column": 40 - }, - "identifierName": "paymentRequests" - }, - "name": "paymentRequests" - } - } - ] - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "ExpressionStatement", - "start": 40137, - "end": 40174, - "loc": { - "start": { - "line": 1120, - "column": 8 - }, - "end": { - "line": 1120, - "column": 45 - } - }, - "expression": { - "type": "CallExpression", - "start": 40137, - "end": 40173, - "loc": { - "start": { - "line": 1120, - "column": 8 - }, - "end": { - "line": 1120, - "column": 44 - } - }, - "callee": { - "type": "Identifier", - "start": 40137, - "end": 40145, - "loc": { - "start": { - "line": 1120, - "column": 8 - }, - "end": { - "line": 1120, - "column": 16 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "NullLiteral", - "start": 40146, - "end": 40150, - "loc": { - "start": { - "line": 1120, - "column": 17 - }, - "end": { - "line": 1120, - "column": 21 - } - } - }, - { - "type": "ArrayExpression", - "start": 40152, - "end": 40172, - "loc": { - "start": { - "line": 1120, - "column": 23 - }, - "end": { - "line": 1120, - "column": 43 - } - }, - "elements": [ - { - "type": "SpreadElement", - "start": 40153, - "end": 40171, - "loc": { - "start": { - "line": 1120, - "column": 24 - }, - "end": { - "line": 1120, - "column": 42 - } - }, - "argument": { - "type": "NewExpression", - "start": 40156, - "end": 40171, - "loc": { - "start": { - "line": 1120, - "column": 27 - }, - "end": { - "line": 1120, - "column": 42 - } - }, - "callee": { - "type": "Identifier", - "start": 40160, - "end": 40163, - "loc": { - "start": { - "line": 1120, - "column": 31 - }, - "end": { - "line": 1120, - "column": 34 - }, - "identifierName": "Set" - }, - "name": "Set" - }, - "arguments": [ - { - "type": "Identifier", - "start": 40164, - "end": 40170, - "loc": { - "start": { - "line": 1120, - "column": 35 - }, - "end": { - "line": 1120, - "column": 41 - }, - "identifierName": "emails" - }, - "name": "emails" - } - ] - } - } - ] - } - ] - } - } - ], - "directives": [] - } - } - ] - }, - "property": { - "type": "Identifier", - "start": 40191, - "end": 40196, - "loc": { - "start": { - "line": 1122, - "column": 7 - }, - "end": { - "line": 1122, - "column": 12 - }, - "identifierName": "catch" - }, - "name": "catch" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 40197, - "end": 40217, - "loc": { - "start": { - "line": 1122, - "column": 13 - }, - "end": { - "line": 1122, - "column": 33 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 40197, - "end": 40200, - "loc": { - "start": { - "line": 1122, - "column": 13 - }, - "end": { - "line": 1122, - "column": 16 - }, - "identifierName": "err" - }, - "name": "err" - } - ], - "body": { - "type": "CallExpression", - "start": 40204, - "end": 40217, - "loc": { - "start": { - "line": 1122, - "column": 20 - }, - "end": { - "line": 1122, - "column": 33 - } - }, - "callee": { - "type": "Identifier", - "start": 40204, - "end": 40212, - "loc": { - "start": { - "line": 1122, - "column": 20 - }, - "end": { - "line": 1122, - "column": 28 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 40213, - "end": 40216, - "loc": { - "start": { - "line": 1122, - "column": 29 - }, - "end": { - "line": 1122, - "column": 32 - }, - "identifierName": "err" - }, - "name": "err" - } - ] - } - } - ] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Get Document Signers optional settings\n * @typedef {Object} DocumentSignersOptions\n * @property {boolean} [allSignatures=true] - if true receive all document signers email\n * @property {boolean} [freeFormInvites=false] - if `true` return free from invite signer emails\n * @property {?string[]} [fieldInvitesStatus=null] - return signers according to specified field invite status(es)\n * Accepts list of statuses or a single status.\n * Acceptable statuses: all, pending, declined, fulfilled, created, skipped.\n * @property {?string[]} [paymentRequestsStatus=null] - return signers according to specified to payment request status(es)\n * Accepts list of statuses or a single status.\n * Available statuses: all, pending, fulfilled, created, skipped.\n ", - "start": 37070, - "end": 37849, - "loc": { - "start": { - "line": 1032, - "column": 2 - }, - "end": { - "line": 1043, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Get Document Signers payload\n * @typedef {Object} DocumentSignersParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n * @property {DocumentSignersOptions} [options] - document signers optional settings,\n ", - "start": 37853, - "end": 38130, - "loc": { - "start": { - "line": 1045, - "column": 2 - }, - "end": { - "line": 1051, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Get Document Signers response data\n * @typedef {Object} DocumentSignersResponse\n * @property {string[]} - emails of document signers\n ", - "start": 38134, - "end": 38286, - "loc": { - "start": { - "line": 1053, - "column": 2 - }, - "end": { - "line": 1057, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves all signers of specific document\n * @experimental this class includes breaking change.\n * @param {DocumentSignersParams} data - get document signers payload\n * @param {function(err: ApiErrorResponse, res: DocumentSignersResponse)} [callback] - error first node.js callback\n ", - "start": 38290, - "end": 38593, - "loc": { - "start": { - "line": 1059, - "column": 2 - }, - "end": { - "line": 1064, - "column": 5 - } - } - } - ] - } - ] - }, - "leadingComments": [], - "name": "_", - "trailingComments": [] - }, - { - "type": "Identifier", - "start": 40227, - "end": 40251, - "loc": { - "start": { - "line": 1126, - "column": 0 - }, - "end": { - "line": 1126, - "column": 24 - } - }, - "declaration": { - "type": "Identifier", - "start": 40242, - "end": 40250, - "loc": { - "start": { - "line": 1126, - "column": 15 - }, - "end": { - "line": 1126, - "column": 23 - }, - "identifierName": "Document" - }, - "name": "Document" - }, - "name": "_", - "leadingComments": [], - "trailingComments": [] - }, - { - "type": "ExportDefaultDeclaration", - "start": 40227, - "end": 40251, - "loc": { - "start": { - "line": 1126, - "column": 0 - }, - "end": { - "line": 1126, - "column": 24 - } - }, - "declaration": { - "type": "ClassDeclaration", - "start": 422, - "end": 40225, - "loc": { - "start": { - "line": 21, - "column": 0 - }, - "end": { - "line": 1124, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 428, - "end": 436, - "loc": { - "start": { - "line": 21, - "column": 6 - }, - "end": { - "line": 21, - "column": 14 - }, - "identifierName": "Document" - }, - "name": "Document", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 437, - "end": 40225, - "loc": { - "start": { - "line": 21, - "column": 15 - }, - "end": { - "line": 1124, - "column": 1 - } - }, - "body": [ - { - "type": "ClassMethod", - "start": 1158, - "end": 2519, - "loc": { - "start": { - "line": 42, - "column": 2 - }, - "end": { - "line": 89, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1165, - "end": 1171, - "loc": { - "start": { - "line": 42, - "column": 9 - }, - "end": { - "line": 42, - "column": 15 - }, - "identifierName": "create" - }, - "name": "create" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 1173, - "end": 1192, - "loc": { - "start": { - "line": 42, - "column": 17 - }, - "end": { - "line": 42, - "column": 36 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1175, - "end": 1183, - "loc": { - "start": { - "line": 42, - "column": 19 - }, - "end": { - "line": 42, - "column": 27 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1175, - "end": 1183, - "loc": { - "start": { - "line": 42, - "column": 19 - }, - "end": { - "line": 42, - "column": 27 - }, - "identifierName": "filepath" - }, - "name": "filepath" - }, - "value": { - "type": "Identifier", - "start": 1175, - "end": 1183, - "loc": { - "start": { - "line": 42, - "column": 19 - }, - "end": { - "line": 42, - "column": 27 - }, - "identifierName": "filepath" - }, - "name": "filepath" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1185, - "end": 1190, - "loc": { - "start": { - "line": 42, - "column": 29 - }, - "end": { - "line": 42, - "column": 34 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1185, - "end": 1190, - "loc": { - "start": { - "line": 42, - "column": 29 - }, - "end": { - "line": 42, - "column": 34 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 1185, - "end": 1190, - "loc": { - "start": { - "line": 42, - "column": 29 - }, - "end": { - "line": 42, - "column": 34 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 1194, - "end": 1202, - "loc": { - "start": { - "line": 42, - "column": 38 - }, - "end": { - "line": 42, - "column": 46 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 1204, - "end": 2519, - "loc": { - "start": { - "line": 42, - "column": 48 - }, - "end": { - "line": 89, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 1210, - "end": 1254, - "loc": { - "start": { - "line": 43, - "column": 4 - }, - "end": { - "line": 43, - "column": 48 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1216, - "end": 1253, - "loc": { - "start": { - "line": 43, - "column": 10 - }, - "end": { - "line": 43, - "column": 47 - } - }, - "id": { - "type": "Identifier", - "start": 1216, - "end": 1223, - "loc": { - "start": { - "line": 43, - "column": 10 - }, - "end": { - "line": 43, - "column": 17 - }, - "identifierName": "fileExt" - }, - "name": "fileExt" - }, - "init": { - "type": "CallExpression", - "start": 1226, - "end": 1253, - "loc": { - "start": { - "line": 43, - "column": 20 - }, - "end": { - "line": 43, - "column": 47 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1226, - "end": 1250, - "loc": { - "start": { - "line": 43, - "column": 20 - }, - "end": { - "line": 43, - "column": 44 - } - }, - "object": { - "type": "CallExpression", - "start": 1226, - "end": 1243, - "loc": { - "start": { - "line": 43, - "column": 20 - }, - "end": { - "line": 43, - "column": 37 - } - }, - "callee": { - "type": "Identifier", - "start": 1226, - "end": 1233, - "loc": { - "start": { - "line": 43, - "column": 20 - }, - "end": { - "line": 43, - "column": 27 - }, - "identifierName": "extname" - }, - "name": "extname" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1234, - "end": 1242, - "loc": { - "start": { - "line": 43, - "column": 28 - }, - "end": { - "line": 43, - "column": 36 - }, - "identifierName": "filepath" - }, - "name": "filepath" - } - ] - }, - "property": { - "type": "Identifier", - "start": 1244, - "end": 1250, - "loc": { - "start": { - "line": 43, - "column": 38 - }, - "end": { - "line": 43, - "column": 44 - }, - "identifierName": "substr" - }, - "name": "substr" - }, - "computed": false - }, - "arguments": [ - { - "type": "NumericLiteral", - "start": 1251, - "end": 1252, - "loc": { - "start": { - "line": 43, - "column": 45 - }, - "end": { - "line": 43, - "column": 46 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "IfStatement", - "start": 1260, - "end": 1368, - "loc": { - "start": { - "line": 45, - "column": 4 - }, - "end": { - "line": 48, - "column": 5 - } - }, - "test": { - "type": "UnaryExpression", - "start": 1264, - "end": 1298, - "loc": { - "start": { - "line": 45, - "column": 8 - }, - "end": { - "line": 45, - "column": 42 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "CallExpression", - "start": 1265, - "end": 1298, - "loc": { - "start": { - "line": 45, - "column": 9 - }, - "end": { - "line": 45, - "column": 42 - } - }, - "callee": { - "type": "Identifier", - "start": 1265, - "end": 1289, - "loc": { - "start": { - "line": 45, - "column": 9 - }, - "end": { - "line": 45, - "column": 33 - }, - "identifierName": "isDocumentTypeAcceptable" - }, - "name": "isDocumentTypeAcceptable" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1290, - "end": 1297, - "loc": { - "start": { - "line": 45, - "column": 34 - }, - "end": { - "line": 45, - "column": 41 - }, - "identifierName": "fileExt" - }, - "name": "fileExt" - } - ] - }, - "extra": { - "parenthesizedArgument": false - } - }, - "consequent": { - "type": "BlockStatement", - "start": 1300, - "end": 1368, - "loc": { - "start": { - "line": 45, - "column": 44 - }, - "end": { - "line": 48, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1308, - "end": 1348, - "loc": { - "start": { - "line": 46, - "column": 6 - }, - "end": { - "line": 46, - "column": 46 - } - }, - "expression": { - "type": "CallExpression", - "start": 1308, - "end": 1347, - "loc": { - "start": { - "line": 46, - "column": 6 - }, - "end": { - "line": 46, - "column": 45 - } - }, - "callee": { - "type": "Identifier", - "start": 1308, - "end": 1316, - "loc": { - "start": { - "line": 46, - "column": 6 - }, - "end": { - "line": 46, - "column": 14 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 1317, - "end": 1346, - "loc": { - "start": { - "line": 46, - "column": 15 - }, - "end": { - "line": 46, - "column": 44 - } - }, - "extra": { - "rawValue": "File type isn't supported.", - "raw": "'File type isn\\'t supported.'" - }, - "value": "File type isn't supported." - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 1355, - "end": 1362, - "loc": { - "start": { - "line": 47, - "column": 6 - }, - "end": { - "line": 47, - "column": 13 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "VariableDeclaration", - "start": 1374, - "end": 1390, - "loc": { - "start": { - "line": 50, - "column": 4 - }, - "end": { - "line": 50, - "column": 20 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1378, - "end": 1389, - "loc": { - "start": { - "line": 50, - "column": 8 - }, - "end": { - "line": 50, - "column": 19 - } - }, - "id": { - "type": "Identifier", - "start": 1378, - "end": 1389, - "loc": { - "start": { - "line": 50, - "column": 8 - }, - "end": { - "line": 50, - "column": 19 - }, - "identifierName": "fileContent" - }, - "name": "fileContent" - }, - "init": null - } - ], - "kind": "let" - }, - { - "type": "TryStatement", - "start": 1396, - "end": 1506, - "loc": { - "start": { - "line": 52, - "column": 4 - }, - "end": { - "line": 57, - "column": 5 - } - }, - "block": { - "type": "BlockStatement", - "start": 1400, - "end": 1451, - "loc": { - "start": { - "line": 52, - "column": 8 - }, - "end": { - "line": 54, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1408, - "end": 1445, - "loc": { - "start": { - "line": 53, - "column": 6 - }, - "end": { - "line": 53, - "column": 43 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 1408, - "end": 1444, - "loc": { - "start": { - "line": 53, - "column": 6 - }, - "end": { - "line": 53, - "column": 42 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 1408, - "end": 1419, - "loc": { - "start": { - "line": 53, - "column": 6 - }, - "end": { - "line": 53, - "column": 17 - }, - "identifierName": "fileContent" - }, - "name": "fileContent" - }, - "right": { - "type": "CallExpression", - "start": 1422, - "end": 1444, - "loc": { - "start": { - "line": 53, - "column": 20 - }, - "end": { - "line": 53, - "column": 42 - } - }, - "callee": { - "type": "Identifier", - "start": 1422, - "end": 1434, - "loc": { - "start": { - "line": 53, - "column": 20 - }, - "end": { - "line": 53, - "column": 32 - }, - "identifierName": "readFileSync" - }, - "name": "readFileSync" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1435, - "end": 1443, - "loc": { - "start": { - "line": 53, - "column": 33 - }, - "end": { - "line": 53, - "column": 41 - }, - "identifierName": "filepath" - }, - "name": "filepath" - } - ] - } - } - } - ], - "directives": [] - }, - "handler": { - "type": "CatchClause", - "start": 1452, - "end": 1506, - "loc": { - "start": { - "line": 54, - "column": 6 - }, - "end": { - "line": 57, - "column": 5 - } - }, - "param": { - "type": "Identifier", - "start": 1459, - "end": 1462, - "loc": { - "start": { - "line": 54, - "column": 13 - }, - "end": { - "line": 54, - "column": 16 - }, - "identifierName": "err" - }, - "name": "err" - }, - "body": { - "type": "BlockStatement", - "start": 1464, - "end": 1506, - "loc": { - "start": { - "line": 54, - "column": 18 - }, - "end": { - "line": 57, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1472, - "end": 1486, - "loc": { - "start": { - "line": 55, - "column": 6 - }, - "end": { - "line": 55, - "column": 20 - } - }, - "expression": { - "type": "CallExpression", - "start": 1472, - "end": 1485, - "loc": { - "start": { - "line": 55, - "column": 6 - }, - "end": { - "line": 55, - "column": 19 - } - }, - "callee": { - "type": "Identifier", - "start": 1472, - "end": 1480, - "loc": { - "start": { - "line": 55, - "column": 6 - }, - "end": { - "line": 55, - "column": 14 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1481, - "end": 1484, - "loc": { - "start": { - "line": 55, - "column": 15 - }, - "end": { - "line": 55, - "column": 18 - }, - "identifierName": "err" - }, - "name": "err" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 1493, - "end": 1500, - "loc": { - "start": { - "line": 56, - "column": 6 - }, - "end": { - "line": 56, - "column": 13 - } - }, - "argument": null - } - ], - "directives": [] - } - }, - "guardedHandlers": [], - "finalizer": null - }, - { - "type": "VariableDeclaration", - "start": 1512, - "end": 1565, - "loc": { - "start": { - "line": 59, - "column": 4 - }, - "end": { - "line": 59, - "column": 57 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1518, - "end": 1564, - "loc": { - "start": { - "line": 59, - "column": 10 - }, - "end": { - "line": 59, - "column": 56 - } - }, - "id": { - "type": "Identifier", - "start": 1518, - "end": 1526, - "loc": { - "start": { - "line": 59, - "column": 10 - }, - "end": { - "line": 59, - "column": 18 - }, - "identifierName": "mimeType" - }, - "name": "mimeType" - }, - "init": { - "type": "CallExpression", - "start": 1529, - "end": 1564, - "loc": { - "start": { - "line": 59, - "column": 21 - }, - "end": { - "line": 59, - "column": 56 - } - }, - "callee": { - "type": "Identifier", - "start": 1529, - "end": 1555, - "loc": { - "start": { - "line": 59, - "column": 21 - }, - "end": { - "line": 59, - "column": 47 - }, - "identifierName": "getMimeTypeByFileExtension" - }, - "name": "getMimeTypeByFileExtension" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1556, - "end": 1563, - "loc": { - "start": { - "line": 59, - "column": 48 - }, - "end": { - "line": 59, - "column": 55 - }, - "identifierName": "fileExt" - }, - "name": "fileExt" - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 1570, - "end": 1617, - "loc": { - "start": { - "line": 60, - "column": 4 - }, - "end": { - "line": 60, - "column": 51 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1576, - "end": 1616, - "loc": { - "start": { - "line": 60, - "column": 10 - }, - "end": { - "line": 60, - "column": 50 - } - }, - "id": { - "type": "Identifier", - "start": 1576, - "end": 1592, - "loc": { - "start": { - "line": 60, - "column": 10 - }, - "end": { - "line": 60, - "column": 26 - }, - "identifierName": "formDataBoundary" - }, - "name": "formDataBoundary" - }, - "init": { - "type": "CallExpression", - "start": 1595, - "end": 1616, - "loc": { - "start": { - "line": 60, - "column": 29 - }, - "end": { - "line": 60, - "column": 50 - } - }, - "callee": { - "type": "Identifier", - "start": 1595, - "end": 1614, - "loc": { - "start": { - "line": 60, - "column": 29 - }, - "end": { - "line": 60, - "column": 48 - }, - "identifierName": "getFormDataBoundary" - }, - "name": "getFormDataBoundary" - }, - "arguments": [] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 1622, - "end": 1826, - "loc": { - "start": { - "line": 61, - "column": 4 - }, - "end": { - "line": 63, - "column": 51 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1628, - "end": 1825, - "loc": { - "start": { - "line": 61, - "column": 10 - }, - "end": { - "line": 63, - "column": 50 - } - }, - "id": { - "type": "Identifier", - "start": 1628, - "end": 1645, - "loc": { - "start": { - "line": 61, - "column": 10 - }, - "end": { - "line": 61, - "column": 27 - }, - "identifierName": "formDataBeginning" - }, - "name": "formDataBeginning" - }, - "init": { - "type": "CallExpression", - "start": 1648, - "end": 1825, - "loc": { - "start": { - "line": 61, - "column": 30 - }, - "end": { - "line": 63, - "column": 50 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1648, - "end": 1788, - "loc": { - "start": { - "line": 61, - "column": 30 - }, - "end": { - "line": 63, - "column": 13 - } - }, - "object": { - "type": "CallExpression", - "start": 1648, - "end": 1774, - "loc": { - "start": { - "line": 61, - "column": 30 - }, - "end": { - "line": 62, - "column": 98 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1648, - "end": 1689, - "loc": { - "start": { - "line": 61, - "column": 30 - }, - "end": { - "line": 62, - "column": 13 - } - }, - "object": { - "type": "TemplateLiteral", - "start": 1648, - "end": 1675, - "loc": { - "start": { - "line": 61, - "column": 30 - }, - "end": { - "line": 61, - "column": 57 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 1653, - "end": 1669, - "loc": { - "start": { - "line": 61, - "column": 35 - }, - "end": { - "line": 61, - "column": 51 - }, - "identifierName": "formDataBoundary" - }, - "name": "formDataBoundary" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 1649, - "end": 1651, - "loc": { - "start": { - "line": 61, - "column": 31 - }, - "end": { - "line": 61, - "column": 33 - } - }, - "value": { - "raw": "--", - "cooked": "--" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 1670, - "end": 1674, - "loc": { - "start": { - "line": 61, - "column": 52 - }, - "end": { - "line": 61, - "column": 56 - } - }, - "value": { - "raw": "\\r\\n", - "cooked": "\r\n" - }, - "tail": true - } - ] - }, - "property": { - "type": "Identifier", - "start": 1683, - "end": 1689, - "loc": { - "start": { - "line": 62, - "column": 7 - }, - "end": { - "line": 62, - "column": 13 - }, - "identifierName": "concat" - }, - "name": "concat" - }, - "computed": false - }, - "arguments": [ - { - "type": "TemplateLiteral", - "start": 1690, - "end": 1773, - "loc": { - "start": { - "line": 62, - "column": 14 - }, - "end": { - "line": 62, - "column": 97 - } - }, - "expressions": [ - { - "type": "CallExpression", - "start": 1748, - "end": 1766, - "loc": { - "start": { - "line": 62, - "column": 72 - }, - "end": { - "line": 62, - "column": 90 - } - }, - "callee": { - "type": "Identifier", - "start": 1748, - "end": 1756, - "loc": { - "start": { - "line": 62, - "column": 72 - }, - "end": { - "line": 62, - "column": 80 - }, - "identifierName": "basename" - }, - "name": "basename" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1757, - "end": 1765, - "loc": { - "start": { - "line": 62, - "column": 81 - }, - "end": { - "line": 62, - "column": 89 - }, - "identifierName": "filepath" - }, - "name": "filepath" - } - ] - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 1691, - "end": 1746, - "loc": { - "start": { - "line": 62, - "column": 15 - }, - "end": { - "line": 62, - "column": 70 - } - }, - "value": { - "raw": "Content-Disposition: form-data; name=\"file\"; filename=\"", - "cooked": "Content-Disposition: form-data; name=\"file\"; filename=\"" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 1767, - "end": 1772, - "loc": { - "start": { - "line": 62, - "column": 91 - }, - "end": { - "line": 62, - "column": 96 - } - }, - "value": { - "raw": "\"\\r\\n", - "cooked": "\"\r\n" - }, - "tail": true - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 1782, - "end": 1788, - "loc": { - "start": { - "line": 63, - "column": 7 - }, - "end": { - "line": 63, - "column": 13 - }, - "identifierName": "concat" - }, - "name": "concat" - }, - "computed": false - }, - "arguments": [ - { - "type": "TemplateLiteral", - "start": 1789, - "end": 1824, - "loc": { - "start": { - "line": 63, - "column": 14 - }, - "end": { - "line": 63, - "column": 49 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 1806, - "end": 1814, - "loc": { - "start": { - "line": 63, - "column": 31 - }, - "end": { - "line": 63, - "column": 39 - }, - "identifierName": "mimeType" - }, - "name": "mimeType" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 1790, - "end": 1804, - "loc": { - "start": { - "line": 63, - "column": 15 - }, - "end": { - "line": 63, - "column": 29 - } - }, - "value": { - "raw": "Content-Type: ", - "cooked": "Content-Type: " - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 1815, - "end": 1823, - "loc": { - "start": { - "line": 63, - "column": 40 - }, - "end": { - "line": 63, - "column": 48 - } - }, - "value": { - "raw": "\\r\\n\\r\\n", - "cooked": "\r\n\r\n" - }, - "tail": true - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 1831, - "end": 1886, - "loc": { - "start": { - "line": 64, - "column": 4 - }, - "end": { - "line": 64, - "column": 59 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1837, - "end": 1885, - "loc": { - "start": { - "line": 64, - "column": 10 - }, - "end": { - "line": 64, - "column": 58 - } - }, - "id": { - "type": "Identifier", - "start": 1837, - "end": 1851, - "loc": { - "start": { - "line": 64, - "column": 10 - }, - "end": { - "line": 64, - "column": 24 - }, - "identifierName": "formDataEnding" - }, - "name": "formDataEnding" - }, - "init": { - "type": "TemplateLiteral", - "start": 1854, - "end": 1885, - "loc": { - "start": { - "line": 64, - "column": 27 - }, - "end": { - "line": 64, - "column": 58 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 1863, - "end": 1879, - "loc": { - "start": { - "line": 64, - "column": 36 - }, - "end": { - "line": 64, - "column": 52 - }, - "identifierName": "formDataBoundary" - }, - "name": "formDataBoundary" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 1855, - "end": 1861, - "loc": { - "start": { - "line": 64, - "column": 28 - }, - "end": { - "line": 64, - "column": 34 - } - }, - "value": { - "raw": "\\r\\n--", - "cooked": "\r\n--" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 1880, - "end": 1884, - "loc": { - "start": { - "line": 64, - "column": 53 - }, - "end": { - "line": 64, - "column": 57 - } - }, - "value": { - "raw": "\\r\\n", - "cooked": "\r\n" - }, - "tail": true - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 1892, - "end": 2039, - "loc": { - "start": { - "line": 66, - "column": 4 - }, - "end": { - "line": 70, - "column": 7 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1898, - "end": 2038, - "loc": { - "start": { - "line": 66, - "column": 10 - }, - "end": { - "line": 70, - "column": 6 - } - }, - "id": { - "type": "Identifier", - "start": 1898, - "end": 1905, - "loc": { - "start": { - "line": 66, - "column": 10 - }, - "end": { - "line": 66, - "column": 17 - }, - "identifierName": "payload" - }, - "name": "payload" - }, - "init": { - "type": "CallExpression", - "start": 1908, - "end": 2038, - "loc": { - "start": { - "line": 66, - "column": 20 - }, - "end": { - "line": 70, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1908, - "end": 1921, - "loc": { - "start": { - "line": 66, - "column": 20 - }, - "end": { - "line": 66, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 1908, - "end": 1914, - "loc": { - "start": { - "line": 66, - "column": 20 - }, - "end": { - "line": 66, - "column": 26 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 1915, - "end": 1921, - "loc": { - "start": { - "line": 66, - "column": 27 - }, - "end": { - "line": 66, - "column": 33 - }, - "identifierName": "concat" - }, - "name": "concat" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrayExpression", - "start": 1922, - "end": 2037, - "loc": { - "start": { - "line": 66, - "column": 34 - }, - "end": { - "line": 70, - "column": 5 - } - }, - "elements": [ - { - "type": "CallExpression", - "start": 1930, - "end": 1968, - "loc": { - "start": { - "line": 67, - "column": 6 - }, - "end": { - "line": 67, - "column": 44 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1930, - "end": 1941, - "loc": { - "start": { - "line": 67, - "column": 6 - }, - "end": { - "line": 67, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 1930, - "end": 1936, - "loc": { - "start": { - "line": 67, - "column": 6 - }, - "end": { - "line": 67, - "column": 12 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 1937, - "end": 1941, - "loc": { - "start": { - "line": 67, - "column": 13 - }, - "end": { - "line": 67, - "column": 17 - }, - "identifierName": "from" - }, - "name": "from" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1942, - "end": 1959, - "loc": { - "start": { - "line": 67, - "column": 18 - }, - "end": { - "line": 67, - "column": 35 - }, - "identifierName": "formDataBeginning" - }, - "name": "formDataBeginning" - }, - { - "type": "StringLiteral", - "start": 1961, - "end": 1967, - "loc": { - "start": { - "line": 67, - "column": 37 - }, - "end": { - "line": 67, - "column": 43 - } - }, - "extra": { - "rawValue": "utf8", - "raw": "'utf8'" - }, - "value": "utf8" - } - ] - }, - { - "type": "Identifier", - "start": 1976, - "end": 1987, - "loc": { - "start": { - "line": 68, - "column": 6 - }, - "end": { - "line": 68, - "column": 17 - }, - "identifierName": "fileContent" - }, - "name": "fileContent" - }, - { - "type": "CallExpression", - "start": 1995, - "end": 2030, - "loc": { - "start": { - "line": 69, - "column": 6 - }, - "end": { - "line": 69, - "column": 41 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1995, - "end": 2006, - "loc": { - "start": { - "line": 69, - "column": 6 - }, - "end": { - "line": 69, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 1995, - "end": 2001, - "loc": { - "start": { - "line": 69, - "column": 6 - }, - "end": { - "line": 69, - "column": 12 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 2002, - "end": 2006, - "loc": { - "start": { - "line": 69, - "column": 13 - }, - "end": { - "line": 69, - "column": 17 - }, - "identifierName": "from" - }, - "name": "from" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2007, - "end": 2021, - "loc": { - "start": { - "line": 69, - "column": 18 - }, - "end": { - "line": 69, - "column": 32 - }, - "identifierName": "formDataEnding" - }, - "name": "formDataEnding" - }, - { - "type": "StringLiteral", - "start": 2023, - "end": 2029, - "loc": { - "start": { - "line": 69, - "column": 34 - }, - "end": { - "line": 69, - "column": 40 - } - }, - "extra": { - "rawValue": "utf8", - "raw": "'utf8'" - }, - "value": "utf8" - } - ] - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 2045, - "end": 2475, - "loc": { - "start": { - "line": 72, - "column": 4 - }, - "end": { - "line": 85, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2051, - "end": 2474, - "loc": { - "start": { - "line": 72, - "column": 10 - }, - "end": { - "line": 85, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 2051, - "end": 2054, - "loc": { - "start": { - "line": 72, - "column": 10 - }, - "end": { - "line": 72, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 2057, - "end": 2474, - "loc": { - "start": { - "line": 72, - "column": 16 - }, - "end": { - "line": 85, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2057, - "end": 2441, - "loc": { - "start": { - "line": 72, - "column": 16 - }, - "end": { - "line": 85, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 2057, - "end": 2431, - "loc": { - "start": { - "line": 72, - "column": 16 - }, - "end": { - "line": 84, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2057, - "end": 2077, - "loc": { - "start": { - "line": 72, - "column": 16 - }, - "end": { - "line": 73, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 2057, - "end": 2062, - "loc": { - "start": { - "line": 72, - "column": 16 - }, - "end": { - "line": 72, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 2070, - "end": 2077, - "loc": { - "start": { - "line": 73, - "column": 7 - }, - "end": { - "line": 73, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 2078, - "end": 2403, - "loc": { - "start": { - "line": 73, - "column": 15 - }, - "end": { - "line": 84, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 2078, - "end": 2097, - "loc": { - "start": { - "line": 73, - "column": 15 - }, - "end": { - "line": 73, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 2098, - "end": 2402, - "loc": { - "start": { - "line": 73, - "column": 35 - }, - "end": { - "line": 84, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2108, - "end": 2122, - "loc": { - "start": { - "line": 74, - "column": 8 - }, - "end": { - "line": 74, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2108, - "end": 2114, - "loc": { - "start": { - "line": 74, - "column": 8 - }, - "end": { - "line": 74, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 2116, - "end": 2122, - "loc": { - "start": { - "line": 74, - "column": 16 - }, - "end": { - "line": 74, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 2132, - "end": 2149, - "loc": { - "start": { - "line": 75, - "column": 8 - }, - "end": { - "line": 75, - "column": 25 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2132, - "end": 2136, - "loc": { - "start": { - "line": 75, - "column": 8 - }, - "end": { - "line": 75, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 2138, - "end": 2149, - "loc": { - "start": { - "line": 75, - "column": 14 - }, - "end": { - "line": 75, - "column": 25 - } - }, - "extra": { - "rawValue": "/document", - "raw": "'/document'" - }, - "value": "/document" - } - }, - { - "type": "ObjectProperty", - "start": 2159, - "end": 2228, - "loc": { - "start": { - "line": 76, - "column": 8 - }, - "end": { - "line": 79, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2159, - "end": 2172, - "loc": { - "start": { - "line": 76, - "column": 8 - }, - "end": { - "line": 76, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 2174, - "end": 2228, - "loc": { - "start": { - "line": 76, - "column": 23 - }, - "end": { - "line": 79, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2186, - "end": 2200, - "loc": { - "start": { - "line": 77, - "column": 10 - }, - "end": { - "line": 77, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2186, - "end": 2190, - "loc": { - "start": { - "line": 77, - "column": 10 - }, - "end": { - "line": 77, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 2192, - "end": 2200, - "loc": { - "start": { - "line": 77, - "column": 16 - }, - "end": { - "line": 77, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 2212, - "end": 2217, - "loc": { - "start": { - "line": 78, - "column": 10 - }, - "end": { - "line": 78, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2212, - "end": 2217, - "loc": { - "start": { - "line": 78, - "column": 10 - }, - "end": { - "line": 78, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 2212, - "end": 2217, - "loc": { - "start": { - "line": 78, - "column": 10 - }, - "end": { - "line": 78, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 2238, - "end": 2393, - "loc": { - "start": { - "line": 80, - "column": 8 - }, - "end": { - "line": 83, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2238, - "end": 2245, - "loc": { - "start": { - "line": 80, - "column": 8 - }, - "end": { - "line": 80, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 2247, - "end": 2393, - "loc": { - "start": { - "line": 80, - "column": 17 - }, - "end": { - "line": 83, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2259, - "end": 2326, - "loc": { - "start": { - "line": 81, - "column": 10 - }, - "end": { - "line": 81, - "column": 77 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 2259, - "end": 2273, - "loc": { - "start": { - "line": 81, - "column": 10 - }, - "end": { - "line": 81, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "TemplateLiteral", - "start": 2275, - "end": 2326, - "loc": { - "start": { - "line": 81, - "column": 26 - }, - "end": { - "line": 81, - "column": 77 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 2308, - "end": 2324, - "loc": { - "start": { - "line": 81, - "column": 59 - }, - "end": { - "line": 81, - "column": 75 - }, - "identifierName": "formDataBoundary" - }, - "name": "formDataBoundary" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 2276, - "end": 2306, - "loc": { - "start": { - "line": 81, - "column": 27 - }, - "end": { - "line": 81, - "column": 57 - } - }, - "value": { - "raw": "multipart/form-data; boundary=", - "cooked": "multipart/form-data; boundary=" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 2325, - "end": 2325, - "loc": { - "start": { - "line": 81, - "column": 76 - }, - "end": { - "line": 81, - "column": 76 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 2338, - "end": 2382, - "loc": { - "start": { - "line": 82, - "column": 10 - }, - "end": { - "line": 82, - "column": 54 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 2338, - "end": 2354, - "loc": { - "start": { - "line": 82, - "column": 10 - }, - "end": { - "line": 82, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 2356, - "end": 2382, - "loc": { - "start": { - "line": 82, - "column": 28 - }, - "end": { - "line": 82, - "column": 54 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2356, - "end": 2373, - "loc": { - "start": { - "line": 82, - "column": 28 - }, - "end": { - "line": 82, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 2356, - "end": 2362, - "loc": { - "start": { - "line": 82, - "column": 28 - }, - "end": { - "line": 82, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 2363, - "end": 2373, - "loc": { - "start": { - "line": 82, - "column": 35 - }, - "end": { - "line": 82, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2374, - "end": 2381, - "loc": { - "start": { - "line": 82, - "column": 46 - }, - "end": { - "line": 82, - "column": 53 - }, - "identifierName": "payload" - }, - "name": "payload" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 2405, - "end": 2430, - "loc": { - "start": { - "line": 84, - "column": 10 - }, - "end": { - "line": 84, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 2405, - "end": 2420, - "loc": { - "start": { - "line": 84, - "column": 10 - }, - "end": { - "line": 84, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2421, - "end": 2429, - "loc": { - "start": { - "line": 84, - "column": 26 - }, - "end": { - "line": 84, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 2439, - "end": 2441, - "loc": { - "start": { - "line": 85, - "column": 7 - }, - "end": { - "line": 85, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2442, - "end": 2449, - "loc": { - "start": { - "line": 85, - "column": 10 - }, - "end": { - "line": 85, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 2451, - "end": 2473, - "loc": { - "start": { - "line": 85, - "column": 19 - }, - "end": { - "line": 85, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 2451, - "end": 2463, - "loc": { - "start": { - "line": 85, - "column": 19 - }, - "end": { - "line": 85, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2464, - "end": 2472, - "loc": { - "start": { - "line": 85, - "column": 32 - }, - "end": { - "line": 85, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 2481, - "end": 2500, - "loc": { - "start": { - "line": 87, - "column": 4 - }, - "end": { - "line": 87, - "column": 23 - } - }, - "expression": { - "type": "CallExpression", - "start": 2481, - "end": 2499, - "loc": { - "start": { - "line": 87, - "column": 4 - }, - "end": { - "line": 87, - "column": 22 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2481, - "end": 2490, - "loc": { - "start": { - "line": 87, - "column": 4 - }, - "end": { - "line": 87, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 2481, - "end": 2484, - "loc": { - "start": { - "line": 87, - "column": 4 - }, - "end": { - "line": 87, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 2485, - "end": 2490, - "loc": { - "start": { - "line": 87, - "column": 8 - }, - "end": { - "line": 87, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2491, - "end": 2498, - "loc": { - "start": { - "line": 87, - "column": 14 - }, - "end": { - "line": 87, - "column": 21 - }, - "identifierName": "payload" - }, - "name": "payload" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 2505, - "end": 2515, - "loc": { - "start": { - "line": 88, - "column": 4 - }, - "end": { - "line": 88, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 2505, - "end": 2514, - "loc": { - "start": { - "line": 88, - "column": 4 - }, - "end": { - "line": 88, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2505, - "end": 2512, - "loc": { - "start": { - "line": 88, - "column": 4 - }, - "end": { - "line": 88, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 2505, - "end": 2508, - "loc": { - "start": { - "line": 88, - "column": 4 - }, - "end": { - "line": 88, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 2509, - "end": 2512, - "loc": { - "start": { - "line": 88, - "column": 8 - }, - "end": { - "line": 88, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Create document payload\n * @typedef {Object} DocumentCreateParams\n * @property {string} filepath - path to file to be uploaded\n * @property {string} token - your auth token\n ", - "start": 442, - "end": 635, - "loc": { - "start": { - "line": 23, - "column": 2 - }, - "end": { - "line": 28, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document response data\n * @typedef {Object} DocumentCreateResponse\n * @property {string} id - an id of created document\n ", - "start": 639, - "end": 784, - "loc": { - "start": { - "line": 30, - "column": 2 - }, - "end": { - "line": 34, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Uploads a file and creates a document.\n * This endpoint accepts .pdf, .doc, .docx, .odt, .rtf, .png, .jpg, .jpeg, .gif, .bmp, .xml, .xls, .xlsx, .ppt, .pptx file types\n * @param {DocumentCreateParams} data - create document payload\n * @param {function(err: ApiErrorResponse, res: DocumentCreateResponse)} [callback] - error first node.js callback\n ", - "start": 788, - "end": 1155, - "loc": { - "start": { - "line": 36, - "column": 2 - }, - "end": { - "line": 41, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Upload document with field extract payload\n * @typedef {Object} DocumentFieldExtractParams\n * @property {string} filepath - path to file to be uploaded\n * @property {string} token - your auth token\n ", - "start": 2523, - "end": 2741, - "loc": { - "start": { - "line": 91, - "column": 2 - }, - "end": { - "line": 96, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Upload document with field extract response data\n * @typedef {Object} DocumentFieldExtractResponse\n * @property {string} id - an id of created document\n ", - "start": 2745, - "end": 2915, - "loc": { - "start": { - "line": 98, - "column": 2 - }, - "end": { - "line": 102, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Uploads a file that contains SignNow Document Field Tags.\n * This endpoint only accepts .pdf (you may convert the document from .doc or .docx to .pdf)\n * @param {DocumentFieldExtractParams} data - upload document with field extract payload\n * @param {function(err: ApiErrorResponse, res: DocumentFieldExtractResponse)} [callback] - error first node.js callback\n ", - "start": 2919, - "end": 3300, - "loc": { - "start": { - "line": 104, - "column": 2 - }, - "end": { - "line": 109, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 3303, - "end": 4706, - "loc": { - "start": { - "line": 110, - "column": 2 - }, - "end": { - "line": 157, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3310, - "end": 3322, - "loc": { - "start": { - "line": 110, - "column": 9 - }, - "end": { - "line": 110, - "column": 21 - }, - "identifierName": "fieldextract" - }, - "name": "fieldextract" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 3324, - "end": 3343, - "loc": { - "start": { - "line": 110, - "column": 23 - }, - "end": { - "line": 110, - "column": 42 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3326, - "end": 3334, - "loc": { - "start": { - "line": 110, - "column": 25 - }, - "end": { - "line": 110, - "column": 33 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3326, - "end": 3334, - "loc": { - "start": { - "line": 110, - "column": 25 - }, - "end": { - "line": 110, - "column": 33 - }, - "identifierName": "filepath" - }, - "name": "filepath" - }, - "value": { - "type": "Identifier", - "start": 3326, - "end": 3334, - "loc": { - "start": { - "line": 110, - "column": 25 - }, - "end": { - "line": 110, - "column": 33 - }, - "identifierName": "filepath" - }, - "name": "filepath" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3336, - "end": 3341, - "loc": { - "start": { - "line": 110, - "column": 35 - }, - "end": { - "line": 110, - "column": 40 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3336, - "end": 3341, - "loc": { - "start": { - "line": 110, - "column": 35 - }, - "end": { - "line": 110, - "column": 40 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 3336, - "end": 3341, - "loc": { - "start": { - "line": 110, - "column": 35 - }, - "end": { - "line": 110, - "column": 40 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 3345, - "end": 3353, - "loc": { - "start": { - "line": 110, - "column": 44 - }, - "end": { - "line": 110, - "column": 52 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 3355, - "end": 4706, - "loc": { - "start": { - "line": 110, - "column": 54 - }, - "end": { - "line": 157, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 3361, - "end": 3405, - "loc": { - "start": { - "line": 111, - "column": 4 - }, - "end": { - "line": 111, - "column": 48 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3367, - "end": 3404, - "loc": { - "start": { - "line": 111, - "column": 10 - }, - "end": { - "line": 111, - "column": 47 - } - }, - "id": { - "type": "Identifier", - "start": 3367, - "end": 3374, - "loc": { - "start": { - "line": 111, - "column": 10 - }, - "end": { - "line": 111, - "column": 17 - }, - "identifierName": "fileExt" - }, - "name": "fileExt" - }, - "init": { - "type": "CallExpression", - "start": 3377, - "end": 3404, - "loc": { - "start": { - "line": 111, - "column": 20 - }, - "end": { - "line": 111, - "column": 47 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3377, - "end": 3401, - "loc": { - "start": { - "line": 111, - "column": 20 - }, - "end": { - "line": 111, - "column": 44 - } - }, - "object": { - "type": "CallExpression", - "start": 3377, - "end": 3394, - "loc": { - "start": { - "line": 111, - "column": 20 - }, - "end": { - "line": 111, - "column": 37 - } - }, - "callee": { - "type": "Identifier", - "start": 3377, - "end": 3384, - "loc": { - "start": { - "line": 111, - "column": 20 - }, - "end": { - "line": 111, - "column": 27 - }, - "identifierName": "extname" - }, - "name": "extname" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3385, - "end": 3393, - "loc": { - "start": { - "line": 111, - "column": 28 - }, - "end": { - "line": 111, - "column": 36 - }, - "identifierName": "filepath" - }, - "name": "filepath" - } - ] - }, - "property": { - "type": "Identifier", - "start": 3395, - "end": 3401, - "loc": { - "start": { - "line": 111, - "column": 38 - }, - "end": { - "line": 111, - "column": 44 - }, - "identifierName": "substr" - }, - "name": "substr" - }, - "computed": false - }, - "arguments": [ - { - "type": "NumericLiteral", - "start": 3402, - "end": 3403, - "loc": { - "start": { - "line": 111, - "column": 45 - }, - "end": { - "line": 111, - "column": 46 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "IfStatement", - "start": 3411, - "end": 3519, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 116, - "column": 5 - } - }, - "test": { - "type": "UnaryExpression", - "start": 3415, - "end": 3449, - "loc": { - "start": { - "line": 113, - "column": 8 - }, - "end": { - "line": 113, - "column": 42 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "CallExpression", - "start": 3416, - "end": 3449, - "loc": { - "start": { - "line": 113, - "column": 9 - }, - "end": { - "line": 113, - "column": 42 - } - }, - "callee": { - "type": "Identifier", - "start": 3416, - "end": 3440, - "loc": { - "start": { - "line": 113, - "column": 9 - }, - "end": { - "line": 113, - "column": 33 - }, - "identifierName": "isDocumentTypeAcceptable" - }, - "name": "isDocumentTypeAcceptable" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3441, - "end": 3448, - "loc": { - "start": { - "line": 113, - "column": 34 - }, - "end": { - "line": 113, - "column": 41 - }, - "identifierName": "fileExt" - }, - "name": "fileExt" - } - ] - }, - "extra": { - "parenthesizedArgument": false - } - }, - "consequent": { - "type": "BlockStatement", - "start": 3451, - "end": 3519, - "loc": { - "start": { - "line": 113, - "column": 44 - }, - "end": { - "line": 116, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 3459, - "end": 3499, - "loc": { - "start": { - "line": 114, - "column": 6 - }, - "end": { - "line": 114, - "column": 46 - } - }, - "expression": { - "type": "CallExpression", - "start": 3459, - "end": 3498, - "loc": { - "start": { - "line": 114, - "column": 6 - }, - "end": { - "line": 114, - "column": 45 - } - }, - "callee": { - "type": "Identifier", - "start": 3459, - "end": 3467, - "loc": { - "start": { - "line": 114, - "column": 6 - }, - "end": { - "line": 114, - "column": 14 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 3468, - "end": 3497, - "loc": { - "start": { - "line": 114, - "column": 15 - }, - "end": { - "line": 114, - "column": 44 - } - }, - "extra": { - "rawValue": "File type isn't supported.", - "raw": "'File type isn\\'t supported.'" - }, - "value": "File type isn't supported." - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 3506, - "end": 3513, - "loc": { - "start": { - "line": 115, - "column": 6 - }, - "end": { - "line": 115, - "column": 13 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "VariableDeclaration", - "start": 3525, - "end": 3541, - "loc": { - "start": { - "line": 118, - "column": 4 - }, - "end": { - "line": 118, - "column": 20 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3529, - "end": 3540, - "loc": { - "start": { - "line": 118, - "column": 8 - }, - "end": { - "line": 118, - "column": 19 - } - }, - "id": { - "type": "Identifier", - "start": 3529, - "end": 3540, - "loc": { - "start": { - "line": 118, - "column": 8 - }, - "end": { - "line": 118, - "column": 19 - }, - "identifierName": "fileContent" - }, - "name": "fileContent" - }, - "init": null - } - ], - "kind": "let" - }, - { - "type": "TryStatement", - "start": 3547, - "end": 3657, - "loc": { - "start": { - "line": 120, - "column": 4 - }, - "end": { - "line": 125, - "column": 5 - } - }, - "block": { - "type": "BlockStatement", - "start": 3551, - "end": 3602, - "loc": { - "start": { - "line": 120, - "column": 8 - }, - "end": { - "line": 122, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 3559, - "end": 3596, - "loc": { - "start": { - "line": 121, - "column": 6 - }, - "end": { - "line": 121, - "column": 43 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 3559, - "end": 3595, - "loc": { - "start": { - "line": 121, - "column": 6 - }, - "end": { - "line": 121, - "column": 42 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 3559, - "end": 3570, - "loc": { - "start": { - "line": 121, - "column": 6 - }, - "end": { - "line": 121, - "column": 17 - }, - "identifierName": "fileContent" - }, - "name": "fileContent" - }, - "right": { - "type": "CallExpression", - "start": 3573, - "end": 3595, - "loc": { - "start": { - "line": 121, - "column": 20 - }, - "end": { - "line": 121, - "column": 42 - } - }, - "callee": { - "type": "Identifier", - "start": 3573, - "end": 3585, - "loc": { - "start": { - "line": 121, - "column": 20 - }, - "end": { - "line": 121, - "column": 32 - }, - "identifierName": "readFileSync" - }, - "name": "readFileSync" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3586, - "end": 3594, - "loc": { - "start": { - "line": 121, - "column": 33 - }, - "end": { - "line": 121, - "column": 41 - }, - "identifierName": "filepath" - }, - "name": "filepath" - } - ] - } - } - } - ], - "directives": [] - }, - "handler": { - "type": "CatchClause", - "start": 3603, - "end": 3657, - "loc": { - "start": { - "line": 122, - "column": 6 - }, - "end": { - "line": 125, - "column": 5 - } - }, - "param": { - "type": "Identifier", - "start": 3610, - "end": 3613, - "loc": { - "start": { - "line": 122, - "column": 13 - }, - "end": { - "line": 122, - "column": 16 - }, - "identifierName": "err" - }, - "name": "err" - }, - "body": { - "type": "BlockStatement", - "start": 3615, - "end": 3657, - "loc": { - "start": { - "line": 122, - "column": 18 - }, - "end": { - "line": 125, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 3623, - "end": 3637, - "loc": { - "start": { - "line": 123, - "column": 6 - }, - "end": { - "line": 123, - "column": 20 - } - }, - "expression": { - "type": "CallExpression", - "start": 3623, - "end": 3636, - "loc": { - "start": { - "line": 123, - "column": 6 - }, - "end": { - "line": 123, - "column": 19 - } - }, - "callee": { - "type": "Identifier", - "start": 3623, - "end": 3631, - "loc": { - "start": { - "line": 123, - "column": 6 - }, - "end": { - "line": 123, - "column": 14 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3632, - "end": 3635, - "loc": { - "start": { - "line": 123, - "column": 15 - }, - "end": { - "line": 123, - "column": 18 - }, - "identifierName": "err" - }, - "name": "err" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 3644, - "end": 3651, - "loc": { - "start": { - "line": 124, - "column": 6 - }, - "end": { - "line": 124, - "column": 13 - } - }, - "argument": null - } - ], - "directives": [] - } - }, - "guardedHandlers": [], - "finalizer": null - }, - { - "type": "VariableDeclaration", - "start": 3663, - "end": 3716, - "loc": { - "start": { - "line": 127, - "column": 4 - }, - "end": { - "line": 127, - "column": 57 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3669, - "end": 3715, - "loc": { - "start": { - "line": 127, - "column": 10 - }, - "end": { - "line": 127, - "column": 56 - } - }, - "id": { - "type": "Identifier", - "start": 3669, - "end": 3677, - "loc": { - "start": { - "line": 127, - "column": 10 - }, - "end": { - "line": 127, - "column": 18 - }, - "identifierName": "mimeType" - }, - "name": "mimeType" - }, - "init": { - "type": "CallExpression", - "start": 3680, - "end": 3715, - "loc": { - "start": { - "line": 127, - "column": 21 - }, - "end": { - "line": 127, - "column": 56 - } - }, - "callee": { - "type": "Identifier", - "start": 3680, - "end": 3706, - "loc": { - "start": { - "line": 127, - "column": 21 - }, - "end": { - "line": 127, - "column": 47 - }, - "identifierName": "getMimeTypeByFileExtension" - }, - "name": "getMimeTypeByFileExtension" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3707, - "end": 3714, - "loc": { - "start": { - "line": 127, - "column": 48 - }, - "end": { - "line": 127, - "column": 55 - }, - "identifierName": "fileExt" - }, - "name": "fileExt" - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 3721, - "end": 3768, - "loc": { - "start": { - "line": 128, - "column": 4 - }, - "end": { - "line": 128, - "column": 51 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3727, - "end": 3767, - "loc": { - "start": { - "line": 128, - "column": 10 - }, - "end": { - "line": 128, - "column": 50 - } - }, - "id": { - "type": "Identifier", - "start": 3727, - "end": 3743, - "loc": { - "start": { - "line": 128, - "column": 10 - }, - "end": { - "line": 128, - "column": 26 - }, - "identifierName": "formDataBoundary" - }, - "name": "formDataBoundary" - }, - "init": { - "type": "CallExpression", - "start": 3746, - "end": 3767, - "loc": { - "start": { - "line": 128, - "column": 29 - }, - "end": { - "line": 128, - "column": 50 - } - }, - "callee": { - "type": "Identifier", - "start": 3746, - "end": 3765, - "loc": { - "start": { - "line": 128, - "column": 29 - }, - "end": { - "line": 128, - "column": 48 - }, - "identifierName": "getFormDataBoundary" - }, - "name": "getFormDataBoundary" - }, - "arguments": [] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 3773, - "end": 3977, - "loc": { - "start": { - "line": 129, - "column": 4 - }, - "end": { - "line": 131, - "column": 51 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3779, - "end": 3976, - "loc": { - "start": { - "line": 129, - "column": 10 - }, - "end": { - "line": 131, - "column": 50 - } - }, - "id": { - "type": "Identifier", - "start": 3779, - "end": 3796, - "loc": { - "start": { - "line": 129, - "column": 10 - }, - "end": { - "line": 129, - "column": 27 - }, - "identifierName": "formDataBeginning" - }, - "name": "formDataBeginning" - }, - "init": { - "type": "CallExpression", - "start": 3799, - "end": 3976, - "loc": { - "start": { - "line": 129, - "column": 30 - }, - "end": { - "line": 131, - "column": 50 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3799, - "end": 3939, - "loc": { - "start": { - "line": 129, - "column": 30 - }, - "end": { - "line": 131, - "column": 13 - } - }, - "object": { - "type": "CallExpression", - "start": 3799, - "end": 3925, - "loc": { - "start": { - "line": 129, - "column": 30 - }, - "end": { - "line": 130, - "column": 98 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3799, - "end": 3840, - "loc": { - "start": { - "line": 129, - "column": 30 - }, - "end": { - "line": 130, - "column": 13 - } - }, - "object": { - "type": "TemplateLiteral", - "start": 3799, - "end": 3826, - "loc": { - "start": { - "line": 129, - "column": 30 - }, - "end": { - "line": 129, - "column": 57 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 3804, - "end": 3820, - "loc": { - "start": { - "line": 129, - "column": 35 - }, - "end": { - "line": 129, - "column": 51 - }, - "identifierName": "formDataBoundary" - }, - "name": "formDataBoundary" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 3800, - "end": 3802, - "loc": { - "start": { - "line": 129, - "column": 31 - }, - "end": { - "line": 129, - "column": 33 - } - }, - "value": { - "raw": "--", - "cooked": "--" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 3821, - "end": 3825, - "loc": { - "start": { - "line": 129, - "column": 52 - }, - "end": { - "line": 129, - "column": 56 - } - }, - "value": { - "raw": "\\r\\n", - "cooked": "\r\n" - }, - "tail": true - } - ] - }, - "property": { - "type": "Identifier", - "start": 3834, - "end": 3840, - "loc": { - "start": { - "line": 130, - "column": 7 - }, - "end": { - "line": 130, - "column": 13 - }, - "identifierName": "concat" - }, - "name": "concat" - }, - "computed": false - }, - "arguments": [ - { - "type": "TemplateLiteral", - "start": 3841, - "end": 3924, - "loc": { - "start": { - "line": 130, - "column": 14 - }, - "end": { - "line": 130, - "column": 97 - } - }, - "expressions": [ - { - "type": "CallExpression", - "start": 3899, - "end": 3917, - "loc": { - "start": { - "line": 130, - "column": 72 - }, - "end": { - "line": 130, - "column": 90 - } - }, - "callee": { - "type": "Identifier", - "start": 3899, - "end": 3907, - "loc": { - "start": { - "line": 130, - "column": 72 - }, - "end": { - "line": 130, - "column": 80 - }, - "identifierName": "basename" - }, - "name": "basename" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3908, - "end": 3916, - "loc": { - "start": { - "line": 130, - "column": 81 - }, - "end": { - "line": 130, - "column": 89 - }, - "identifierName": "filepath" - }, - "name": "filepath" - } - ] - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 3842, - "end": 3897, - "loc": { - "start": { - "line": 130, - "column": 15 - }, - "end": { - "line": 130, - "column": 70 - } - }, - "value": { - "raw": "Content-Disposition: form-data; name=\"file\"; filename=\"", - "cooked": "Content-Disposition: form-data; name=\"file\"; filename=\"" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 3918, - "end": 3923, - "loc": { - "start": { - "line": 130, - "column": 91 - }, - "end": { - "line": 130, - "column": 96 - } - }, - "value": { - "raw": "\"\\r\\n", - "cooked": "\"\r\n" - }, - "tail": true - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 3933, - "end": 3939, - "loc": { - "start": { - "line": 131, - "column": 7 - }, - "end": { - "line": 131, - "column": 13 - }, - "identifierName": "concat" - }, - "name": "concat" - }, - "computed": false - }, - "arguments": [ - { - "type": "TemplateLiteral", - "start": 3940, - "end": 3975, - "loc": { - "start": { - "line": 131, - "column": 14 - }, - "end": { - "line": 131, - "column": 49 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 3957, - "end": 3965, - "loc": { - "start": { - "line": 131, - "column": 31 - }, - "end": { - "line": 131, - "column": 39 - }, - "identifierName": "mimeType" - }, - "name": "mimeType" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 3941, - "end": 3955, - "loc": { - "start": { - "line": 131, - "column": 15 - }, - "end": { - "line": 131, - "column": 29 - } - }, - "value": { - "raw": "Content-Type: ", - "cooked": "Content-Type: " - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 3966, - "end": 3974, - "loc": { - "start": { - "line": 131, - "column": 40 - }, - "end": { - "line": 131, - "column": 48 - } - }, - "value": { - "raw": "\\r\\n\\r\\n", - "cooked": "\r\n\r\n" - }, - "tail": true - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 3982, - "end": 4037, - "loc": { - "start": { - "line": 132, - "column": 4 - }, - "end": { - "line": 132, - "column": 59 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3988, - "end": 4036, - "loc": { - "start": { - "line": 132, - "column": 10 - }, - "end": { - "line": 132, - "column": 58 - } - }, - "id": { - "type": "Identifier", - "start": 3988, - "end": 4002, - "loc": { - "start": { - "line": 132, - "column": 10 - }, - "end": { - "line": 132, - "column": 24 - }, - "identifierName": "formDataEnding" - }, - "name": "formDataEnding" - }, - "init": { - "type": "TemplateLiteral", - "start": 4005, - "end": 4036, - "loc": { - "start": { - "line": 132, - "column": 27 - }, - "end": { - "line": 132, - "column": 58 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 4014, - "end": 4030, - "loc": { - "start": { - "line": 132, - "column": 36 - }, - "end": { - "line": 132, - "column": 52 - }, - "identifierName": "formDataBoundary" - }, - "name": "formDataBoundary" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 4006, - "end": 4012, - "loc": { - "start": { - "line": 132, - "column": 28 - }, - "end": { - "line": 132, - "column": 34 - } - }, - "value": { - "raw": "\\r\\n--", - "cooked": "\r\n--" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 4031, - "end": 4035, - "loc": { - "start": { - "line": 132, - "column": 53 - }, - "end": { - "line": 132, - "column": 57 - } - }, - "value": { - "raw": "\\r\\n", - "cooked": "\r\n" - }, - "tail": true - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 4043, - "end": 4213, - "loc": { - "start": { - "line": 134, - "column": 4 - }, - "end": { - "line": 138, - "column": 7 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 4049, - "end": 4212, - "loc": { - "start": { - "line": 134, - "column": 10 - }, - "end": { - "line": 138, - "column": 6 - } - }, - "id": { - "type": "Identifier", - "start": 4049, - "end": 4056, - "loc": { - "start": { - "line": 134, - "column": 10 - }, - "end": { - "line": 134, - "column": 17 - }, - "identifierName": "payload" - }, - "name": "payload" - }, - "init": { - "type": "CallExpression", - "start": 4059, - "end": 4212, - "loc": { - "start": { - "line": 134, - "column": 20 - }, - "end": { - "line": 138, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4059, - "end": 4072, - "loc": { - "start": { - "line": 134, - "column": 20 - }, - "end": { - "line": 134, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 4059, - "end": 4065, - "loc": { - "start": { - "line": 134, - "column": 20 - }, - "end": { - "line": 134, - "column": 26 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 4066, - "end": 4072, - "loc": { - "start": { - "line": 134, - "column": 27 - }, - "end": { - "line": 134, - "column": 33 - }, - "identifierName": "concat" - }, - "name": "concat" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrayExpression", - "start": 4073, - "end": 4211, - "loc": { - "start": { - "line": 134, - "column": 34 - }, - "end": { - "line": 138, - "column": 5 - } - }, - "elements": [ - { - "type": "CallExpression", - "start": 4081, - "end": 4119, - "loc": { - "start": { - "line": 135, - "column": 6 - }, - "end": { - "line": 135, - "column": 44 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4081, - "end": 4092, - "loc": { - "start": { - "line": 135, - "column": 6 - }, - "end": { - "line": 135, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 4081, - "end": 4087, - "loc": { - "start": { - "line": 135, - "column": 6 - }, - "end": { - "line": 135, - "column": 12 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 4088, - "end": 4092, - "loc": { - "start": { - "line": 135, - "column": 13 - }, - "end": { - "line": 135, - "column": 17 - }, - "identifierName": "from" - }, - "name": "from" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 4093, - "end": 4110, - "loc": { - "start": { - "line": 135, - "column": 18 - }, - "end": { - "line": 135, - "column": 35 - }, - "identifierName": "formDataBeginning" - }, - "name": "formDataBeginning" - }, - { - "type": "StringLiteral", - "start": 4112, - "end": 4118, - "loc": { - "start": { - "line": 135, - "column": 37 - }, - "end": { - "line": 135, - "column": 43 - } - }, - "extra": { - "rawValue": "utf8", - "raw": "'utf8'" - }, - "value": "utf8" - } - ] - }, - { - "type": "CallExpression", - "start": 4127, - "end": 4161, - "loc": { - "start": { - "line": 136, - "column": 6 - }, - "end": { - "line": 136, - "column": 40 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4127, - "end": 4138, - "loc": { - "start": { - "line": 136, - "column": 6 - }, - "end": { - "line": 136, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 4127, - "end": 4133, - "loc": { - "start": { - "line": 136, - "column": 6 - }, - "end": { - "line": 136, - "column": 12 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 4134, - "end": 4138, - "loc": { - "start": { - "line": 136, - "column": 13 - }, - "end": { - "line": 136, - "column": 17 - }, - "identifierName": "from" - }, - "name": "from" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 4139, - "end": 4150, - "loc": { - "start": { - "line": 136, - "column": 18 - }, - "end": { - "line": 136, - "column": 29 - }, - "identifierName": "fileContent" - }, - "name": "fileContent" - }, - { - "type": "StringLiteral", - "start": 4152, - "end": 4160, - "loc": { - "start": { - "line": 136, - "column": 31 - }, - "end": { - "line": 136, - "column": 39 - } - }, - "extra": { - "rawValue": "binary", - "raw": "'binary'" - }, - "value": "binary" - } - ] - }, - { - "type": "CallExpression", - "start": 4169, - "end": 4204, - "loc": { - "start": { - "line": 137, - "column": 6 - }, - "end": { - "line": 137, - "column": 41 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4169, - "end": 4180, - "loc": { - "start": { - "line": 137, - "column": 6 - }, - "end": { - "line": 137, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 4169, - "end": 4175, - "loc": { - "start": { - "line": 137, - "column": 6 - }, - "end": { - "line": 137, - "column": 12 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 4176, - "end": 4180, - "loc": { - "start": { - "line": 137, - "column": 13 - }, - "end": { - "line": 137, - "column": 17 - }, - "identifierName": "from" - }, - "name": "from" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 4181, - "end": 4195, - "loc": { - "start": { - "line": 137, - "column": 18 - }, - "end": { - "line": 137, - "column": 32 - }, - "identifierName": "formDataEnding" - }, - "name": "formDataEnding" - }, - { - "type": "StringLiteral", - "start": 4197, - "end": 4203, - "loc": { - "start": { - "line": 137, - "column": 34 - }, - "end": { - "line": 137, - "column": 40 - } - }, - "extra": { - "rawValue": "utf8", - "raw": "'utf8'" - }, - "value": "utf8" - } - ] - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 4219, - "end": 4662, - "loc": { - "start": { - "line": 140, - "column": 4 - }, - "end": { - "line": 153, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 4225, - "end": 4661, - "loc": { - "start": { - "line": 140, - "column": 10 - }, - "end": { - "line": 153, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 4225, - "end": 4228, - "loc": { - "start": { - "line": 140, - "column": 10 - }, - "end": { - "line": 140, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 4231, - "end": 4661, - "loc": { - "start": { - "line": 140, - "column": 16 - }, - "end": { - "line": 153, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4231, - "end": 4628, - "loc": { - "start": { - "line": 140, - "column": 16 - }, - "end": { - "line": 153, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 4231, - "end": 4618, - "loc": { - "start": { - "line": 140, - "column": 16 - }, - "end": { - "line": 152, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4231, - "end": 4251, - "loc": { - "start": { - "line": 140, - "column": 16 - }, - "end": { - "line": 141, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 4231, - "end": 4236, - "loc": { - "start": { - "line": 140, - "column": 16 - }, - "end": { - "line": 140, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 4244, - "end": 4251, - "loc": { - "start": { - "line": 141, - "column": 7 - }, - "end": { - "line": 141, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 4252, - "end": 4590, - "loc": { - "start": { - "line": 141, - "column": 15 - }, - "end": { - "line": 152, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 4252, - "end": 4271, - "loc": { - "start": { - "line": 141, - "column": 15 - }, - "end": { - "line": 141, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 4272, - "end": 4589, - "loc": { - "start": { - "line": 141, - "column": 35 - }, - "end": { - "line": 152, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4282, - "end": 4296, - "loc": { - "start": { - "line": 142, - "column": 8 - }, - "end": { - "line": 142, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4282, - "end": 4288, - "loc": { - "start": { - "line": 142, - "column": 8 - }, - "end": { - "line": 142, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 4290, - "end": 4296, - "loc": { - "start": { - "line": 142, - "column": 16 - }, - "end": { - "line": 142, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 4306, - "end": 4336, - "loc": { - "start": { - "line": 143, - "column": 8 - }, - "end": { - "line": 143, - "column": 38 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4306, - "end": 4310, - "loc": { - "start": { - "line": 143, - "column": 8 - }, - "end": { - "line": 143, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 4312, - "end": 4336, - "loc": { - "start": { - "line": 143, - "column": 14 - }, - "end": { - "line": 143, - "column": 38 - } - }, - "extra": { - "rawValue": "/document/fieldextract", - "raw": "'/document/fieldextract'" - }, - "value": "/document/fieldextract" - } - }, - { - "type": "ObjectProperty", - "start": 4346, - "end": 4415, - "loc": { - "start": { - "line": 144, - "column": 8 - }, - "end": { - "line": 147, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4346, - "end": 4359, - "loc": { - "start": { - "line": 144, - "column": 8 - }, - "end": { - "line": 144, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 4361, - "end": 4415, - "loc": { - "start": { - "line": 144, - "column": 23 - }, - "end": { - "line": 147, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4373, - "end": 4387, - "loc": { - "start": { - "line": 145, - "column": 10 - }, - "end": { - "line": 145, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4373, - "end": 4377, - "loc": { - "start": { - "line": 145, - "column": 10 - }, - "end": { - "line": 145, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 4379, - "end": 4387, - "loc": { - "start": { - "line": 145, - "column": 16 - }, - "end": { - "line": 145, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 4399, - "end": 4404, - "loc": { - "start": { - "line": 146, - "column": 10 - }, - "end": { - "line": 146, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 4399, - "end": 4404, - "loc": { - "start": { - "line": 146, - "column": 10 - }, - "end": { - "line": 146, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 4399, - "end": 4404, - "loc": { - "start": { - "line": 146, - "column": 10 - }, - "end": { - "line": 146, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 4425, - "end": 4580, - "loc": { - "start": { - "line": 148, - "column": 8 - }, - "end": { - "line": 151, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4425, - "end": 4432, - "loc": { - "start": { - "line": 148, - "column": 8 - }, - "end": { - "line": 148, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 4434, - "end": 4580, - "loc": { - "start": { - "line": 148, - "column": 17 - }, - "end": { - "line": 151, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4446, - "end": 4513, - "loc": { - "start": { - "line": 149, - "column": 10 - }, - "end": { - "line": 149, - "column": 77 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 4446, - "end": 4460, - "loc": { - "start": { - "line": 149, - "column": 10 - }, - "end": { - "line": 149, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "TemplateLiteral", - "start": 4462, - "end": 4513, - "loc": { - "start": { - "line": 149, - "column": 26 - }, - "end": { - "line": 149, - "column": 77 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 4495, - "end": 4511, - "loc": { - "start": { - "line": 149, - "column": 59 - }, - "end": { - "line": 149, - "column": 75 - }, - "identifierName": "formDataBoundary" - }, - "name": "formDataBoundary" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 4463, - "end": 4493, - "loc": { - "start": { - "line": 149, - "column": 27 - }, - "end": { - "line": 149, - "column": 57 - } - }, - "value": { - "raw": "multipart/form-data; boundary=", - "cooked": "multipart/form-data; boundary=" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 4512, - "end": 4512, - "loc": { - "start": { - "line": 149, - "column": 76 - }, - "end": { - "line": 149, - "column": 76 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 4525, - "end": 4569, - "loc": { - "start": { - "line": 150, - "column": 10 - }, - "end": { - "line": 150, - "column": 54 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 4525, - "end": 4541, - "loc": { - "start": { - "line": 150, - "column": 10 - }, - "end": { - "line": 150, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 4543, - "end": 4569, - "loc": { - "start": { - "line": 150, - "column": 28 - }, - "end": { - "line": 150, - "column": 54 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4543, - "end": 4560, - "loc": { - "start": { - "line": 150, - "column": 28 - }, - "end": { - "line": 150, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 4543, - "end": 4549, - "loc": { - "start": { - "line": 150, - "column": 28 - }, - "end": { - "line": 150, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 4550, - "end": 4560, - "loc": { - "start": { - "line": 150, - "column": 35 - }, - "end": { - "line": 150, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 4561, - "end": 4568, - "loc": { - "start": { - "line": 150, - "column": 46 - }, - "end": { - "line": 150, - "column": 53 - }, - "identifierName": "payload" - }, - "name": "payload" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 4592, - "end": 4617, - "loc": { - "start": { - "line": 152, - "column": 10 - }, - "end": { - "line": 152, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 4592, - "end": 4607, - "loc": { - "start": { - "line": 152, - "column": 10 - }, - "end": { - "line": 152, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 4608, - "end": 4616, - "loc": { - "start": { - "line": 152, - "column": 26 - }, - "end": { - "line": 152, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 4626, - "end": 4628, - "loc": { - "start": { - "line": 153, - "column": 7 - }, - "end": { - "line": 153, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 4629, - "end": 4636, - "loc": { - "start": { - "line": 153, - "column": 10 - }, - "end": { - "line": 153, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 4638, - "end": 4660, - "loc": { - "start": { - "line": 153, - "column": 19 - }, - "end": { - "line": 153, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 4638, - "end": 4650, - "loc": { - "start": { - "line": 153, - "column": 19 - }, - "end": { - "line": 153, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 4651, - "end": 4659, - "loc": { - "start": { - "line": 153, - "column": 32 - }, - "end": { - "line": 153, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 4668, - "end": 4687, - "loc": { - "start": { - "line": 155, - "column": 4 - }, - "end": { - "line": 155, - "column": 23 - } - }, - "expression": { - "type": "CallExpression", - "start": 4668, - "end": 4686, - "loc": { - "start": { - "line": 155, - "column": 4 - }, - "end": { - "line": 155, - "column": 22 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4668, - "end": 4677, - "loc": { - "start": { - "line": 155, - "column": 4 - }, - "end": { - "line": 155, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 4668, - "end": 4671, - "loc": { - "start": { - "line": 155, - "column": 4 - }, - "end": { - "line": 155, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 4672, - "end": 4677, - "loc": { - "start": { - "line": 155, - "column": 8 - }, - "end": { - "line": 155, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 4678, - "end": 4685, - "loc": { - "start": { - "line": 155, - "column": 14 - }, - "end": { - "line": 155, - "column": 21 - }, - "identifierName": "payload" - }, - "name": "payload" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 4692, - "end": 4702, - "loc": { - "start": { - "line": 156, - "column": 4 - }, - "end": { - "line": 156, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 4692, - "end": 4701, - "loc": { - "start": { - "line": 156, - "column": 4 - }, - "end": { - "line": 156, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4692, - "end": 4699, - "loc": { - "start": { - "line": 156, - "column": 4 - }, - "end": { - "line": 156, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 4692, - "end": 4695, - "loc": { - "start": { - "line": 156, - "column": 4 - }, - "end": { - "line": 156, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 4696, - "end": 4699, - "loc": { - "start": { - "line": 156, - "column": 8 - }, - "end": { - "line": 156, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Upload document with field extract payload\n * @typedef {Object} DocumentFieldExtractParams\n * @property {string} filepath - path to file to be uploaded\n * @property {string} token - your auth token\n ", - "start": 2523, - "end": 2741, - "loc": { - "start": { - "line": 91, - "column": 2 - }, - "end": { - "line": 96, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Upload document with field extract response data\n * @typedef {Object} DocumentFieldExtractResponse\n * @property {string} id - an id of created document\n ", - "start": 2745, - "end": 2915, - "loc": { - "start": { - "line": 98, - "column": 2 - }, - "end": { - "line": 102, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Uploads a file that contains SignNow Document Field Tags.\n * This endpoint only accepts .pdf (you may convert the document from .doc or .docx to .pdf)\n * @param {DocumentFieldExtractParams} data - upload document with field extract payload\n * @param {function(err: ApiErrorResponse, res: DocumentFieldExtractResponse)} [callback] - error first node.js callback\n ", - "start": 2919, - "end": 3300, - "loc": { - "start": { - "line": 104, - "column": 2 - }, - "end": { - "line": 109, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Payload to receive user's document list\n * @typedef {Object} DocumentListParams\n * @property {string} token - your auth token\n ", - "start": 4710, - "end": 4854, - "loc": { - "start": { - "line": 159, - "column": 2 - }, - "end": { - "line": 163, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document list response item\n * @typedef {Object} DocumentListItem\n * @property {string} id - id of specific document\n * @property {string} user_id - id of user that uploaded document\n * @property {string} document_name - name of document\n * @property {string} page_count - amount of pages in the document\n * @property {string} created - timestamp document was created\n * @property {string} updated - timestamp document was updated\n * @property {string} original_filename - original filename with document format (.pdf, .doc, etc...)\n * @property {?string} origin_document_id - an id of original document (if document is a copy)\n * @property {string} owner - email of document owner\n * @property {boolean} template - is document a template or not\n * @property {?string} origin_user_id - id of user who created document\n * @property {DocumentThumbnails} thumbnail - thumbnail urls with different sizes (small, medium, large)\n * @property {Object[]} signatures - signature signed elements\n * @property {Object[]} texts - text and enumeration filled elements\n * @property {Object[]} checks - checkbox checked elements\n * @property {Object[]} tags - field types document contains\n * @property {Object[]} fields - all document fillable fields\n * @property {Object[]} requests - requests for signing document\n * @property {Object[]} roles - document signer roles\n * @property {Object[]} field_invites - sent invites data\n * @property {number} version_time - document updated timestamp\n * @property {Object[]} enumeration_options - dropdown options\n * @property {Object[]} attachments - attachments in document\n * @property {Object[]} routing_details - signing steps routing details\n * @property {Object[]} integrations - document integrations\n * @property {Object[]} hyperlinks - document hyperlinks\n * @property {Object[]} radiobuttons - checked radiobuttons after document was signed\n * @property {Object[]} document_group_template_info - document group templates data\n * @property {Object[]} document_group_info - document group template's data\n * @property {Object[]} originator_organization_settings - specific organization settings for document\n * @property {Object[]} field_validators - validation rules for fields (date fields, payment fields etc.)\n * @property {Object} settings - specific document settings\n ", - "start": 4858, - "end": 7248, - "loc": { - "start": { - "line": 165, - "column": 2 - }, - "end": { - "line": 200, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * User's Document list response\n * @typedef {DocumentListItem[]} DocumentListResponse\n ", - "start": 7252, - "end": 7352, - "loc": { - "start": { - "line": 202, - "column": 2 - }, - "end": { - "line": 205, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieve user's document list\n * @param {DocumentListParams} data - payload to receive user's document list\n * @param {function(err: ApiErrorResponse, res: DocumentListItem)} [callback] - error first node.js callback\n ", - "start": 7356, - "end": 7591, - "loc": { - "start": { - "line": 207, - "column": 2 - }, - "end": { - "line": 211, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 7594, - "end": 7911, - "loc": { - "start": { - "line": 212, - "column": 2 - }, - "end": { - "line": 224, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7601, - "end": 7605, - "loc": { - "start": { - "line": 212, - "column": 9 - }, - "end": { - "line": 212, - "column": 13 - }, - "identifierName": "list" - }, - "name": "list" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 7607, - "end": 7616, - "loc": { - "start": { - "line": 212, - "column": 15 - }, - "end": { - "line": 212, - "column": 24 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 7609, - "end": 7614, - "loc": { - "start": { - "line": 212, - "column": 17 - }, - "end": { - "line": 212, - "column": 22 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7609, - "end": 7614, - "loc": { - "start": { - "line": 212, - "column": 17 - }, - "end": { - "line": 212, - "column": 22 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 7609, - "end": 7614, - "loc": { - "start": { - "line": 212, - "column": 17 - }, - "end": { - "line": 212, - "column": 22 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 7618, - "end": 7626, - "loc": { - "start": { - "line": 212, - "column": 26 - }, - "end": { - "line": 212, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 7628, - "end": 7911, - "loc": { - "start": { - "line": 212, - "column": 36 - }, - "end": { - "line": 224, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 7634, - "end": 7907, - "loc": { - "start": { - "line": 213, - "column": 4 - }, - "end": { - "line": 223, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 7634, - "end": 7906, - "loc": { - "start": { - "line": 213, - "column": 4 - }, - "end": { - "line": 223, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 7634, - "end": 7904, - "loc": { - "start": { - "line": 213, - "column": 4 - }, - "end": { - "line": 223, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 7634, - "end": 7893, - "loc": { - "start": { - "line": 213, - "column": 4 - }, - "end": { - "line": 222, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 7634, - "end": 7860, - "loc": { - "start": { - "line": 213, - "column": 4 - }, - "end": { - "line": 222, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 7634, - "end": 7850, - "loc": { - "start": { - "line": 213, - "column": 4 - }, - "end": { - "line": 221, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 7634, - "end": 7654, - "loc": { - "start": { - "line": 213, - "column": 4 - }, - "end": { - "line": 214, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 7634, - "end": 7639, - "loc": { - "start": { - "line": 213, - "column": 4 - }, - "end": { - "line": 213, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 7647, - "end": 7654, - "loc": { - "start": { - "line": 214, - "column": 7 - }, - "end": { - "line": 214, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 7655, - "end": 7822, - "loc": { - "start": { - "line": 214, - "column": 15 - }, - "end": { - "line": 221, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 7655, - "end": 7674, - "loc": { - "start": { - "line": 214, - "column": 15 - }, - "end": { - "line": 214, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 7675, - "end": 7821, - "loc": { - "start": { - "line": 214, - "column": 35 - }, - "end": { - "line": 221, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 7685, - "end": 7698, - "loc": { - "start": { - "line": 215, - "column": 8 - }, - "end": { - "line": 215, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7685, - "end": 7691, - "loc": { - "start": { - "line": 215, - "column": 8 - }, - "end": { - "line": 215, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 7693, - "end": 7698, - "loc": { - "start": { - "line": 215, - "column": 16 - }, - "end": { - "line": 215, - "column": 21 - } - }, - "extra": { - "rawValue": "GET", - "raw": "'GET'" - }, - "value": "GET" - } - }, - { - "type": "ObjectProperty", - "start": 7708, - "end": 7733, - "loc": { - "start": { - "line": 216, - "column": 8 - }, - "end": { - "line": 216, - "column": 33 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7708, - "end": 7712, - "loc": { - "start": { - "line": 216, - "column": 8 - }, - "end": { - "line": 216, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 7714, - "end": 7733, - "loc": { - "start": { - "line": 216, - "column": 14 - }, - "end": { - "line": 216, - "column": 33 - } - }, - "extra": { - "rawValue": "/user/documentsv2", - "raw": "'/user/documentsv2'" - }, - "value": "/user/documentsv2" - } - }, - { - "type": "ObjectProperty", - "start": 7743, - "end": 7812, - "loc": { - "start": { - "line": 217, - "column": 8 - }, - "end": { - "line": 220, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7743, - "end": 7756, - "loc": { - "start": { - "line": 217, - "column": 8 - }, - "end": { - "line": 217, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 7758, - "end": 7812, - "loc": { - "start": { - "line": 217, - "column": 23 - }, - "end": { - "line": 220, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 7770, - "end": 7784, - "loc": { - "start": { - "line": 218, - "column": 10 - }, - "end": { - "line": 218, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7770, - "end": 7774, - "loc": { - "start": { - "line": 218, - "column": 10 - }, - "end": { - "line": 218, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 7776, - "end": 7784, - "loc": { - "start": { - "line": 218, - "column": 16 - }, - "end": { - "line": 218, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 7796, - "end": 7801, - "loc": { - "start": { - "line": 219, - "column": 10 - }, - "end": { - "line": 219, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7796, - "end": 7801, - "loc": { - "start": { - "line": 219, - "column": 10 - }, - "end": { - "line": 219, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 7796, - "end": 7801, - "loc": { - "start": { - "line": 219, - "column": 10 - }, - "end": { - "line": 219, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 7824, - "end": 7849, - "loc": { - "start": { - "line": 221, - "column": 10 - }, - "end": { - "line": 221, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 7824, - "end": 7839, - "loc": { - "start": { - "line": 221, - "column": 10 - }, - "end": { - "line": 221, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 7840, - "end": 7848, - "loc": { - "start": { - "line": 221, - "column": 26 - }, - "end": { - "line": 221, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 7858, - "end": 7860, - "loc": { - "start": { - "line": 222, - "column": 7 - }, - "end": { - "line": 222, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 7861, - "end": 7868, - "loc": { - "start": { - "line": 222, - "column": 10 - }, - "end": { - "line": 222, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 7870, - "end": 7892, - "loc": { - "start": { - "line": 222, - "column": 19 - }, - "end": { - "line": 222, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 7870, - "end": 7882, - "loc": { - "start": { - "line": 222, - "column": 19 - }, - "end": { - "line": 222, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 7883, - "end": 7891, - "loc": { - "start": { - "line": 222, - "column": 32 - }, - "end": { - "line": 222, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 7901, - "end": 7904, - "loc": { - "start": { - "line": 223, - "column": 7 - }, - "end": { - "line": 223, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Payload to receive user's document list\n * @typedef {Object} DocumentListParams\n * @property {string} token - your auth token\n ", - "start": 4710, - "end": 4854, - "loc": { - "start": { - "line": 159, - "column": 2 - }, - "end": { - "line": 163, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document list response item\n * @typedef {Object} DocumentListItem\n * @property {string} id - id of specific document\n * @property {string} user_id - id of user that uploaded document\n * @property {string} document_name - name of document\n * @property {string} page_count - amount of pages in the document\n * @property {string} created - timestamp document was created\n * @property {string} updated - timestamp document was updated\n * @property {string} original_filename - original filename with document format (.pdf, .doc, etc...)\n * @property {?string} origin_document_id - an id of original document (if document is a copy)\n * @property {string} owner - email of document owner\n * @property {boolean} template - is document a template or not\n * @property {?string} origin_user_id - id of user who created document\n * @property {DocumentThumbnails} thumbnail - thumbnail urls with different sizes (small, medium, large)\n * @property {Object[]} signatures - signature signed elements\n * @property {Object[]} texts - text and enumeration filled elements\n * @property {Object[]} checks - checkbox checked elements\n * @property {Object[]} tags - field types document contains\n * @property {Object[]} fields - all document fillable fields\n * @property {Object[]} requests - requests for signing document\n * @property {Object[]} roles - document signer roles\n * @property {Object[]} field_invites - sent invites data\n * @property {number} version_time - document updated timestamp\n * @property {Object[]} enumeration_options - dropdown options\n * @property {Object[]} attachments - attachments in document\n * @property {Object[]} routing_details - signing steps routing details\n * @property {Object[]} integrations - document integrations\n * @property {Object[]} hyperlinks - document hyperlinks\n * @property {Object[]} radiobuttons - checked radiobuttons after document was signed\n * @property {Object[]} document_group_template_info - document group templates data\n * @property {Object[]} document_group_info - document group template's data\n * @property {Object[]} originator_organization_settings - specific organization settings for document\n * @property {Object[]} field_validators - validation rules for fields (date fields, payment fields etc.)\n * @property {Object} settings - specific document settings\n ", - "start": 4858, - "end": 7248, - "loc": { - "start": { - "line": 165, - "column": 2 - }, - "end": { - "line": 200, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * User's Document list response\n * @typedef {DocumentListItem[]} DocumentListResponse\n ", - "start": 7252, - "end": 7352, - "loc": { - "start": { - "line": 202, - "column": 2 - }, - "end": { - "line": 205, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieve user's document list\n * @param {DocumentListParams} data - payload to receive user's document list\n * @param {function(err: ApiErrorResponse, res: DocumentListItem)} [callback] - error first node.js callback\n ", - "start": 7356, - "end": 7591, - "loc": { - "start": { - "line": 207, - "column": 2 - }, - "end": { - "line": 211, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document view payload\n * @typedef {Object} DocumentViewParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 7915, - "end": 8094, - "loc": { - "start": { - "line": 226, - "column": 2 - }, - "end": { - "line": 231, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document thumbnail urls with different sizes (small, medium, large)\n * @typedef {Object} DocumentThumbnails\n * @property {string} large\n * @property {string} medium\n * @property {string} small\n ", - "start": 8098, - "end": 8313, - "loc": { - "start": { - "line": 233, - "column": 2 - }, - "end": { - "line": 239, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document view response of specific document\n * @typedef {Object} DocumentViewResponse\n * @property {string} id - id of specific document\n * @property {string} user_id - id of user that uploaded document\n * @property {string} document_name - name of document\n * @property {string} page_count - amount of pages in the document\n * @property {string} created - timestamp document was created\n * @property {string} updated - timestamp document was updated\n * @property {string} original_filename - original filename with document format (.pdf, .doc, etc...)\n * @property {?string} origin_document_id - an id of original document (if document is a copy)\n * @property {string} owner - email of document owner\n * @property {boolean} template - is document a template or not\n * @property {DocumentThumbnails} thumbnail - thumbnail urls with different sizes (small, medium, large)\n * @property {Object[]} signatures - signature signed elements\n * @property {Object[]} texts - text and enumeration filled elements\n * @property {Object[]} checks - checkbox checked elements\n * @property {Object[]} tags - field types document contains\n * @property {Object[]} fields - all document fillable fields\n * @property {Object[]} requests - requests for signing document\n * @property {Object[]} roles - document signer roles\n * @property {Object[]} field_invites - sent invites data\n * @property {number} version_time - document updated timestamp\n * @property {Object[]} enumeration_options - dropdown options\n * @property {Object[]} attachments - attachments in document\n * @property {Object[]} routing_details - signing steps routing details\n * @property {Object[]} integrations - document integrations\n * @property {Object[]} hyperlinks - document hyperlinks\n * @property {Object[]} radiobuttons - checked radiobuttons after document was signed\n * @property {Object[]} document_group_template_info - document group template's data\n * @property {Object[]} document_group_info - document group's data\n * @property {Object[]} originator_organization_settings - specific organization settings for document\n * @property {Object[]} field_validators - validation rules for fields (date fields, payment fields etc.)\n * @property {Object} settings - specific document settings\n * @property {string} parent_id - id of document folder\n * @property {string} originator_logo - logo url\n * @property {Object[]} pages - list of document pages with page sources and page size.\n ", - "start": 8317, - "end": 10844, - "loc": { - "start": { - "line": 241, - "column": 2 - }, - "end": { - "line": 278, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves a document detailed data\n * @param {DocumentViewParams} data - view document details payload\n * @param {function(err: ApiErrorResponse, res: DocumentViewResponse)} [callback] - error first node.js callback\n ", - "start": 10848, - "end": 11082, - "loc": { - "start": { - "line": 280, - "column": 2 - }, - "end": { - "line": 284, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 11085, - "end": 11404, - "loc": { - "start": { - "line": 285, - "column": 2 - }, - "end": { - "line": 297, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 11092, - "end": 11096, - "loc": { - "start": { - "line": 285, - "column": 9 - }, - "end": { - "line": 285, - "column": 13 - }, - "identifierName": "view" - }, - "name": "view" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 11098, - "end": 11111, - "loc": { - "start": { - "line": 285, - "column": 15 - }, - "end": { - "line": 285, - "column": 28 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 11100, - "end": 11102, - "loc": { - "start": { - "line": 285, - "column": 17 - }, - "end": { - "line": 285, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 11100, - "end": 11102, - "loc": { - "start": { - "line": 285, - "column": 17 - }, - "end": { - "line": 285, - "column": 19 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 11100, - "end": 11102, - "loc": { - "start": { - "line": 285, - "column": 17 - }, - "end": { - "line": 285, - "column": 19 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 11104, - "end": 11109, - "loc": { - "start": { - "line": 285, - "column": 21 - }, - "end": { - "line": 285, - "column": 26 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 11104, - "end": 11109, - "loc": { - "start": { - "line": 285, - "column": 21 - }, - "end": { - "line": 285, - "column": 26 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 11104, - "end": 11109, - "loc": { - "start": { - "line": 285, - "column": 21 - }, - "end": { - "line": 285, - "column": 26 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 11113, - "end": 11121, - "loc": { - "start": { - "line": 285, - "column": 30 - }, - "end": { - "line": 285, - "column": 38 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 11123, - "end": 11404, - "loc": { - "start": { - "line": 285, - "column": 40 - }, - "end": { - "line": 297, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 11129, - "end": 11400, - "loc": { - "start": { - "line": 286, - "column": 4 - }, - "end": { - "line": 296, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 11129, - "end": 11399, - "loc": { - "start": { - "line": 286, - "column": 4 - }, - "end": { - "line": 296, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11129, - "end": 11397, - "loc": { - "start": { - "line": 286, - "column": 4 - }, - "end": { - "line": 296, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 11129, - "end": 11386, - "loc": { - "start": { - "line": 286, - "column": 4 - }, - "end": { - "line": 295, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11129, - "end": 11353, - "loc": { - "start": { - "line": 286, - "column": 4 - }, - "end": { - "line": 295, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 11129, - "end": 11343, - "loc": { - "start": { - "line": 286, - "column": 4 - }, - "end": { - "line": 294, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11129, - "end": 11149, - "loc": { - "start": { - "line": 286, - "column": 4 - }, - "end": { - "line": 287, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 11129, - "end": 11134, - "loc": { - "start": { - "line": 286, - "column": 4 - }, - "end": { - "line": 286, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 11142, - "end": 11149, - "loc": { - "start": { - "line": 287, - "column": 7 - }, - "end": { - "line": 287, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 11150, - "end": 11315, - "loc": { - "start": { - "line": 287, - "column": 15 - }, - "end": { - "line": 294, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 11150, - "end": 11169, - "loc": { - "start": { - "line": 287, - "column": 15 - }, - "end": { - "line": 287, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 11170, - "end": 11314, - "loc": { - "start": { - "line": 287, - "column": 35 - }, - "end": { - "line": 294, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 11180, - "end": 11193, - "loc": { - "start": { - "line": 288, - "column": 8 - }, - "end": { - "line": 288, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 11180, - "end": 11186, - "loc": { - "start": { - "line": 288, - "column": 8 - }, - "end": { - "line": 288, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 11188, - "end": 11193, - "loc": { - "start": { - "line": 288, - "column": 16 - }, - "end": { - "line": 288, - "column": 21 - } - }, - "extra": { - "rawValue": "GET", - "raw": "'GET'" - }, - "value": "GET" - } - }, - { - "type": "ObjectProperty", - "start": 11203, - "end": 11226, - "loc": { - "start": { - "line": 289, - "column": 8 - }, - "end": { - "line": 289, - "column": 31 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 11203, - "end": 11207, - "loc": { - "start": { - "line": 289, - "column": 8 - }, - "end": { - "line": 289, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 11209, - "end": 11226, - "loc": { - "start": { - "line": 289, - "column": 14 - }, - "end": { - "line": 289, - "column": 31 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 11222, - "end": 11224, - "loc": { - "start": { - "line": 289, - "column": 27 - }, - "end": { - "line": 289, - "column": 29 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 11210, - "end": 11220, - "loc": { - "start": { - "line": 289, - "column": 15 - }, - "end": { - "line": 289, - "column": 25 - } - }, - "value": { - "raw": "/document/", - "cooked": "/document/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 11225, - "end": 11225, - "loc": { - "start": { - "line": 289, - "column": 30 - }, - "end": { - "line": 289, - "column": 30 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 11236, - "end": 11305, - "loc": { - "start": { - "line": 290, - "column": 8 - }, - "end": { - "line": 293, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 11236, - "end": 11249, - "loc": { - "start": { - "line": 290, - "column": 8 - }, - "end": { - "line": 290, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 11251, - "end": 11305, - "loc": { - "start": { - "line": 290, - "column": 23 - }, - "end": { - "line": 293, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 11263, - "end": 11277, - "loc": { - "start": { - "line": 291, - "column": 10 - }, - "end": { - "line": 291, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 11263, - "end": 11267, - "loc": { - "start": { - "line": 291, - "column": 10 - }, - "end": { - "line": 291, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 11269, - "end": 11277, - "loc": { - "start": { - "line": 291, - "column": 16 - }, - "end": { - "line": 291, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 11289, - "end": 11294, - "loc": { - "start": { - "line": 292, - "column": 10 - }, - "end": { - "line": 292, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 11289, - "end": 11294, - "loc": { - "start": { - "line": 292, - "column": 10 - }, - "end": { - "line": 292, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 11289, - "end": 11294, - "loc": { - "start": { - "line": 292, - "column": 10 - }, - "end": { - "line": 292, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 11317, - "end": 11342, - "loc": { - "start": { - "line": 294, - "column": 10 - }, - "end": { - "line": 294, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 11317, - "end": 11332, - "loc": { - "start": { - "line": 294, - "column": 10 - }, - "end": { - "line": 294, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 11333, - "end": 11341, - "loc": { - "start": { - "line": 294, - "column": 26 - }, - "end": { - "line": 294, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 11351, - "end": 11353, - "loc": { - "start": { - "line": 295, - "column": 7 - }, - "end": { - "line": 295, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 11354, - "end": 11361, - "loc": { - "start": { - "line": 295, - "column": 10 - }, - "end": { - "line": 295, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 11363, - "end": 11385, - "loc": { - "start": { - "line": 295, - "column": 19 - }, - "end": { - "line": 295, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 11363, - "end": 11375, - "loc": { - "start": { - "line": 295, - "column": 19 - }, - "end": { - "line": 295, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 11376, - "end": 11384, - "loc": { - "start": { - "line": 295, - "column": 32 - }, - "end": { - "line": 295, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 11394, - "end": 11397, - "loc": { - "start": { - "line": 296, - "column": 7 - }, - "end": { - "line": 296, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document view payload\n * @typedef {Object} DocumentViewParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 7915, - "end": 8094, - "loc": { - "start": { - "line": 226, - "column": 2 - }, - "end": { - "line": 231, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document thumbnail urls with different sizes (small, medium, large)\n * @typedef {Object} DocumentThumbnails\n * @property {string} large\n * @property {string} medium\n * @property {string} small\n ", - "start": 8098, - "end": 8313, - "loc": { - "start": { - "line": 233, - "column": 2 - }, - "end": { - "line": 239, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document view response of specific document\n * @typedef {Object} DocumentViewResponse\n * @property {string} id - id of specific document\n * @property {string} user_id - id of user that uploaded document\n * @property {string} document_name - name of document\n * @property {string} page_count - amount of pages in the document\n * @property {string} created - timestamp document was created\n * @property {string} updated - timestamp document was updated\n * @property {string} original_filename - original filename with document format (.pdf, .doc, etc...)\n * @property {?string} origin_document_id - an id of original document (if document is a copy)\n * @property {string} owner - email of document owner\n * @property {boolean} template - is document a template or not\n * @property {DocumentThumbnails} thumbnail - thumbnail urls with different sizes (small, medium, large)\n * @property {Object[]} signatures - signature signed elements\n * @property {Object[]} texts - text and enumeration filled elements\n * @property {Object[]} checks - checkbox checked elements\n * @property {Object[]} tags - field types document contains\n * @property {Object[]} fields - all document fillable fields\n * @property {Object[]} requests - requests for signing document\n * @property {Object[]} roles - document signer roles\n * @property {Object[]} field_invites - sent invites data\n * @property {number} version_time - document updated timestamp\n * @property {Object[]} enumeration_options - dropdown options\n * @property {Object[]} attachments - attachments in document\n * @property {Object[]} routing_details - signing steps routing details\n * @property {Object[]} integrations - document integrations\n * @property {Object[]} hyperlinks - document hyperlinks\n * @property {Object[]} radiobuttons - checked radiobuttons after document was signed\n * @property {Object[]} document_group_template_info - document group template's data\n * @property {Object[]} document_group_info - document group's data\n * @property {Object[]} originator_organization_settings - specific organization settings for document\n * @property {Object[]} field_validators - validation rules for fields (date fields, payment fields etc.)\n * @property {Object} settings - specific document settings\n * @property {string} parent_id - id of document folder\n * @property {string} originator_logo - logo url\n * @property {Object[]} pages - list of document pages with page sources and page size.\n ", - "start": 8317, - "end": 10844, - "loc": { - "start": { - "line": 241, - "column": 2 - }, - "end": { - "line": 278, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves a document detailed data\n * @param {DocumentViewParams} data - view document details payload\n * @param {function(err: ApiErrorResponse, res: DocumentViewResponse)} [callback] - error first node.js callback\n ", - "start": 10848, - "end": 11082, - "loc": { - "start": { - "line": 280, - "column": 2 - }, - "end": { - "line": 284, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} SignatureField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (signature)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} [label] - field label\n ", - "start": 11408, - "end": 11980, - "loc": { - "start": { - "line": 299, - "column": 2 - }, - "end": { - "line": 311, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} InitialsField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (initials)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} [label] - field label\n ", - "start": 11984, - "end": 12554, - "loc": { - "start": { - "line": 313, - "column": 2 - }, - "end": { - "line": 325, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} TextField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (text)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string|number} [prefilled_text] - prefilled field value\n * @property {string} [validator_id] - field value validator ID\n * @property {string} [label] - field label\n ", - "start": 12558, - "end": 13258, - "loc": { - "start": { - "line": 327, - "column": 2 - }, - "end": { - "line": 341, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} CheckField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (checkbox)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {boolean} [prefilled_text] - prefilled field value\n * @property {string} [label] - field label\n ", - "start": 13262, - "end": 13895, - "loc": { - "start": { - "line": 343, - "column": 2 - }, - "end": { - "line": 356, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} EnumerationField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (enumeration)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {Array} enumeration_options - choice options of enumerable field\n * @property {string|number} [prefilled_text] - prefilled field value\n * @property {string} [label] - field label\n * @property {boolean} [custom_defined_option=false] - if 'true' user can change values, if 'false' user can only read\n ", - "start": 13899, - "end": 14763, - "loc": { - "start": { - "line": 358, - "column": 2 - }, - "end": { - "line": 373, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} RadioButton\n * @property {number} page_number - page number of document\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} value - value of radio button\n * @property {string} checked - radio button check status\n * @property {number} created - redio button creation timestamp\n ", - "start": 14767, - "end": 15265, - "loc": { - "start": { - "line": 375, - "column": 2 - }, - "end": { - "line": 385, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} RadioButtonField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (radiobutton)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {RadioButton[]} radio - array of radio buttons\n * @property {string|number} [prefilled_text] - prefilled field value\n * @property {string} [label] - field label\n ", - "start": 15269, - "end": 15979, - "loc": { - "start": { - "line": 387, - "column": 2 - }, - "end": { - "line": 401, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} FormulaTreeBranchTerminator\n * @property {string} term - name of field which will participate in calculation formula\n ", - "start": 15983, - "end": 16134, - "loc": { - "start": { - "line": 403, - "column": 2 - }, - "end": { - "line": 406, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} FormulaTreeBranch\n * @property {FormulaTree} term - a part of formula parsed into tree\n ", - "start": 16138, - "end": 16259, - "loc": { - "start": { - "line": 408, - "column": 2 - }, - "end": { - "line": 411, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} FormulaTree\n * @property {string} operator - arithmetic operator's token\n * @property {FormulaTreeBranch|FormulaTreeBranchTerminator} left - left branch of formula tree\n * @property {FormulaTreeBranch|FormulaTreeBranchTerminator} right - right branch of formula tree\n ", - "start": 16263, - "end": 16568, - "loc": { - "start": { - "line": 413, - "column": 2 - }, - "end": { - "line": 418, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} CalculatedField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (text)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} formula - arithmetic formula, e.g. 'TextName+EnumerationName'\n * @property {FormulaTree} calculation_formula - formula parsed into tree\n * @property {number} calculation_precision - calculation precision\n * @property {string} [label] - field label\n * @property {boolean} [custom_defined_option=false] - if 'true' user can change values, if 'false' user can only read\n ", - "start": 16572, - "end": 17493, - "loc": { - "start": { - "line": 420, - "column": 2 - }, - "end": { - "line": 436, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} AttachmentField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (attachment)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} [label] - field label\n ", - "start": 17497, - "end": 18071, - "loc": { - "start": { - "line": 438, - "column": 2 - }, - "end": { - "line": 450, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} DocumentFields\n * @property {number} client_timestamp - local time of user\n * @property {Array} fields - all types of fields\n ", - "start": 18075, - "end": 18353, - "loc": { - "start": { - "line": 452, - "column": 2 - }, - "end": { - "line": 456, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update document payload\n * @typedef {Object} DocumentUpdateParams\n * @property {string} id - id of specific document\n * @property {DocumentFields} fields - set of fields\n * @property {string} token - your auth token\n ", - "start": 18357, - "end": 18595, - "loc": { - "start": { - "line": 458, - "column": 2 - }, - "end": { - "line": 464, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update document response data\n * @typedef {Object} DocumentUpdateResponse\n * @property {string} id - an id of document\n * @property {Object[]} signatures - signature and initial elements\n * @property {Object[]} texts - text and enumeration elements\n * @property {Object[]} checks - checkbox elements\n * @property {Object[]} attachments - attachment elements\n * @property {Object[]} radiobuttons - radiobutton elements\n ", - "start": 18599, - "end": 19045, - "loc": { - "start": { - "line": 466, - "column": 2 - }, - "end": { - "line": 475, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Updates an existing document.\n * Adds fields (signature, text, initials, checkbox, radiobutton group, calculated) and elements (signature, text, check).\n * Every call of this method will add only specified fields into document.\n * Old fields will be removed\n * @param {DocumentUpdateParams} data - update document request payload\n * @param {function(err: ApiErrorResponse, res: DocumentUpdateResponse)} [callback] - error first node.js callback\n ", - "start": 19049, - "end": 19518, - "loc": { - "start": { - "line": 477, - "column": 2 - }, - "end": { - "line": 484, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 19521, - "end": 20083, - "loc": { - "start": { - "line": 485, - "column": 2 - }, - "end": { - "line": 508, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 19528, - "end": 19534, - "loc": { - "start": { - "line": 485, - "column": 9 - }, - "end": { - "line": 485, - "column": 15 - }, - "identifierName": "update" - }, - "name": "update" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 19536, - "end": 19572, - "loc": { - "start": { - "line": 485, - "column": 17 - }, - "end": { - "line": 489, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 19542, - "end": 19544, - "loc": { - "start": { - "line": 486, - "column": 4 - }, - "end": { - "line": 486, - "column": 6 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 19542, - "end": 19544, - "loc": { - "start": { - "line": 486, - "column": 4 - }, - "end": { - "line": 486, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 19542, - "end": 19544, - "loc": { - "start": { - "line": 486, - "column": 4 - }, - "end": { - "line": 486, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 19550, - "end": 19556, - "loc": { - "start": { - "line": 487, - "column": 4 - }, - "end": { - "line": 487, - "column": 10 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 19550, - "end": 19556, - "loc": { - "start": { - "line": 487, - "column": 4 - }, - "end": { - "line": 487, - "column": 10 - }, - "identifierName": "fields" - }, - "name": "fields" - }, - "value": { - "type": "Identifier", - "start": 19550, - "end": 19556, - "loc": { - "start": { - "line": 487, - "column": 4 - }, - "end": { - "line": 487, - "column": 10 - }, - "identifierName": "fields" - }, - "name": "fields" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 19562, - "end": 19567, - "loc": { - "start": { - "line": 488, - "column": 4 - }, - "end": { - "line": 488, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 19562, - "end": 19567, - "loc": { - "start": { - "line": 488, - "column": 4 - }, - "end": { - "line": 488, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 19562, - "end": 19567, - "loc": { - "start": { - "line": 488, - "column": 4 - }, - "end": { - "line": 488, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 19574, - "end": 19582, - "loc": { - "start": { - "line": 489, - "column": 5 - }, - "end": { - "line": 489, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 19584, - "end": 20083, - "loc": { - "start": { - "line": 489, - "column": 15 - }, - "end": { - "line": 508, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 19590, - "end": 19630, - "loc": { - "start": { - "line": 490, - "column": 4 - }, - "end": { - "line": 490, - "column": 44 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 19596, - "end": 19629, - "loc": { - "start": { - "line": 490, - "column": 10 - }, - "end": { - "line": 490, - "column": 43 - } - }, - "id": { - "type": "Identifier", - "start": 19596, - "end": 19604, - "loc": { - "start": { - "line": 490, - "column": 10 - }, - "end": { - "line": 490, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 19607, - "end": 19629, - "loc": { - "start": { - "line": 490, - "column": 21 - }, - "end": { - "line": 490, - "column": 43 - } - }, - "callee": { - "type": "MemberExpression", - "start": 19607, - "end": 19621, - "loc": { - "start": { - "line": 490, - "column": 21 - }, - "end": { - "line": 490, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 19607, - "end": 19611, - "loc": { - "start": { - "line": 490, - "column": 21 - }, - "end": { - "line": 490, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 19612, - "end": 19621, - "loc": { - "start": { - "line": 490, - "column": 26 - }, - "end": { - "line": 490, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 19622, - "end": 19628, - "loc": { - "start": { - "line": 490, - "column": 36 - }, - "end": { - "line": 490, - "column": 42 - }, - "identifierName": "fields" - }, - "name": "fields" - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 19635, - "end": 20038, - "loc": { - "start": { - "line": 491, - "column": 4 - }, - "end": { - "line": 504, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 19641, - "end": 20037, - "loc": { - "start": { - "line": 491, - "column": 10 - }, - "end": { - "line": 504, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 19641, - "end": 19644, - "loc": { - "start": { - "line": 491, - "column": 10 - }, - "end": { - "line": 491, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 19647, - "end": 20037, - "loc": { - "start": { - "line": 491, - "column": 16 - }, - "end": { - "line": 504, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 19647, - "end": 20004, - "loc": { - "start": { - "line": 491, - "column": 16 - }, - "end": { - "line": 504, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 19647, - "end": 19994, - "loc": { - "start": { - "line": 491, - "column": 16 - }, - "end": { - "line": 503, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 19647, - "end": 19667, - "loc": { - "start": { - "line": 491, - "column": 16 - }, - "end": { - "line": 492, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 19647, - "end": 19652, - "loc": { - "start": { - "line": 491, - "column": 16 - }, - "end": { - "line": 491, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 19660, - "end": 19667, - "loc": { - "start": { - "line": 492, - "column": 7 - }, - "end": { - "line": 492, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 19668, - "end": 19966, - "loc": { - "start": { - "line": 492, - "column": 15 - }, - "end": { - "line": 503, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 19668, - "end": 19687, - "loc": { - "start": { - "line": 492, - "column": 15 - }, - "end": { - "line": 492, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 19688, - "end": 19965, - "loc": { - "start": { - "line": 492, - "column": 35 - }, - "end": { - "line": 503, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 19698, - "end": 19711, - "loc": { - "start": { - "line": 493, - "column": 8 - }, - "end": { - "line": 493, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 19698, - "end": 19704, - "loc": { - "start": { - "line": 493, - "column": 8 - }, - "end": { - "line": 493, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 19706, - "end": 19711, - "loc": { - "start": { - "line": 493, - "column": 16 - }, - "end": { - "line": 493, - "column": 21 - } - }, - "extra": { - "rawValue": "PUT", - "raw": "'PUT'" - }, - "value": "PUT" - } - }, - { - "type": "ObjectProperty", - "start": 19721, - "end": 19744, - "loc": { - "start": { - "line": 494, - "column": 8 - }, - "end": { - "line": 494, - "column": 31 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 19721, - "end": 19725, - "loc": { - "start": { - "line": 494, - "column": 8 - }, - "end": { - "line": 494, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 19727, - "end": 19744, - "loc": { - "start": { - "line": 494, - "column": 14 - }, - "end": { - "line": 494, - "column": 31 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 19740, - "end": 19742, - "loc": { - "start": { - "line": 494, - "column": 27 - }, - "end": { - "line": 494, - "column": 29 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 19728, - "end": 19738, - "loc": { - "start": { - "line": 494, - "column": 15 - }, - "end": { - "line": 494, - "column": 25 - } - }, - "value": { - "raw": "/document/", - "cooked": "/document/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 19743, - "end": 19743, - "loc": { - "start": { - "line": 494, - "column": 30 - }, - "end": { - "line": 494, - "column": 30 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 19754, - "end": 19823, - "loc": { - "start": { - "line": 495, - "column": 8 - }, - "end": { - "line": 498, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 19754, - "end": 19767, - "loc": { - "start": { - "line": 495, - "column": 8 - }, - "end": { - "line": 495, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 19769, - "end": 19823, - "loc": { - "start": { - "line": 495, - "column": 23 - }, - "end": { - "line": 498, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 19781, - "end": 19795, - "loc": { - "start": { - "line": 496, - "column": 10 - }, - "end": { - "line": 496, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 19781, - "end": 19785, - "loc": { - "start": { - "line": 496, - "column": 10 - }, - "end": { - "line": 496, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 19787, - "end": 19795, - "loc": { - "start": { - "line": 496, - "column": 16 - }, - "end": { - "line": 496, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 19807, - "end": 19812, - "loc": { - "start": { - "line": 497, - "column": 10 - }, - "end": { - "line": 497, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 19807, - "end": 19812, - "loc": { - "start": { - "line": 497, - "column": 10 - }, - "end": { - "line": 497, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 19807, - "end": 19812, - "loc": { - "start": { - "line": 497, - "column": 10 - }, - "end": { - "line": 497, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 19833, - "end": 19956, - "loc": { - "start": { - "line": 499, - "column": 8 - }, - "end": { - "line": 502, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 19833, - "end": 19840, - "loc": { - "start": { - "line": 499, - "column": 8 - }, - "end": { - "line": 499, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 19842, - "end": 19956, - "loc": { - "start": { - "line": 499, - "column": 17 - }, - "end": { - "line": 502, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 19854, - "end": 19888, - "loc": { - "start": { - "line": 500, - "column": 10 - }, - "end": { - "line": 500, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 19854, - "end": 19868, - "loc": { - "start": { - "line": 500, - "column": 10 - }, - "end": { - "line": 500, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 19870, - "end": 19888, - "loc": { - "start": { - "line": 500, - "column": 26 - }, - "end": { - "line": 500, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 19900, - "end": 19945, - "loc": { - "start": { - "line": 501, - "column": 10 - }, - "end": { - "line": 501, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 19900, - "end": 19916, - "loc": { - "start": { - "line": 501, - "column": 10 - }, - "end": { - "line": 501, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 19918, - "end": 19945, - "loc": { - "start": { - "line": 501, - "column": 28 - }, - "end": { - "line": 501, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 19918, - "end": 19935, - "loc": { - "start": { - "line": 501, - "column": 28 - }, - "end": { - "line": 501, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 19918, - "end": 19924, - "loc": { - "start": { - "line": 501, - "column": 28 - }, - "end": { - "line": 501, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 19925, - "end": 19935, - "loc": { - "start": { - "line": 501, - "column": 35 - }, - "end": { - "line": 501, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 19936, - "end": 19944, - "loc": { - "start": { - "line": 501, - "column": 46 - }, - "end": { - "line": 501, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 19968, - "end": 19993, - "loc": { - "start": { - "line": 503, - "column": 10 - }, - "end": { - "line": 503, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 19968, - "end": 19983, - "loc": { - "start": { - "line": 503, - "column": 10 - }, - "end": { - "line": 503, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 19984, - "end": 19992, - "loc": { - "start": { - "line": 503, - "column": 26 - }, - "end": { - "line": 503, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 20002, - "end": 20004, - "loc": { - "start": { - "line": 504, - "column": 7 - }, - "end": { - "line": 504, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 20005, - "end": 20012, - "loc": { - "start": { - "line": 504, - "column": 10 - }, - "end": { - "line": 504, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 20014, - "end": 20036, - "loc": { - "start": { - "line": 504, - "column": 19 - }, - "end": { - "line": 504, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 20014, - "end": 20026, - "loc": { - "start": { - "line": 504, - "column": 19 - }, - "end": { - "line": 504, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 20027, - "end": 20035, - "loc": { - "start": { - "line": 504, - "column": 32 - }, - "end": { - "line": 504, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 20044, - "end": 20064, - "loc": { - "start": { - "line": 506, - "column": 4 - }, - "end": { - "line": 506, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 20044, - "end": 20063, - "loc": { - "start": { - "line": 506, - "column": 4 - }, - "end": { - "line": 506, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20044, - "end": 20053, - "loc": { - "start": { - "line": 506, - "column": 4 - }, - "end": { - "line": 506, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 20044, - "end": 20047, - "loc": { - "start": { - "line": 506, - "column": 4 - }, - "end": { - "line": 506, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 20048, - "end": 20053, - "loc": { - "start": { - "line": 506, - "column": 8 - }, - "end": { - "line": 506, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 20054, - "end": 20062, - "loc": { - "start": { - "line": 506, - "column": 14 - }, - "end": { - "line": 506, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 20069, - "end": 20079, - "loc": { - "start": { - "line": 507, - "column": 4 - }, - "end": { - "line": 507, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 20069, - "end": 20078, - "loc": { - "start": { - "line": 507, - "column": 4 - }, - "end": { - "line": 507, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20069, - "end": 20076, - "loc": { - "start": { - "line": 507, - "column": 4 - }, - "end": { - "line": 507, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 20069, - "end": 20072, - "loc": { - "start": { - "line": 507, - "column": 4 - }, - "end": { - "line": 507, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 20073, - "end": 20076, - "loc": { - "start": { - "line": 507, - "column": 8 - }, - "end": { - "line": 507, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} SignatureField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (signature)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} [label] - field label\n ", - "start": 11408, - "end": 11980, - "loc": { - "start": { - "line": 299, - "column": 2 - }, - "end": { - "line": 311, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} InitialsField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (initials)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} [label] - field label\n ", - "start": 11984, - "end": 12554, - "loc": { - "start": { - "line": 313, - "column": 2 - }, - "end": { - "line": 325, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} TextField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (text)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string|number} [prefilled_text] - prefilled field value\n * @property {string} [validator_id] - field value validator ID\n * @property {string} [label] - field label\n ", - "start": 12558, - "end": 13258, - "loc": { - "start": { - "line": 327, - "column": 2 - }, - "end": { - "line": 341, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} CheckField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (checkbox)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {boolean} [prefilled_text] - prefilled field value\n * @property {string} [label] - field label\n ", - "start": 13262, - "end": 13895, - "loc": { - "start": { - "line": 343, - "column": 2 - }, - "end": { - "line": 356, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} EnumerationField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (enumeration)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {Array} enumeration_options - choice options of enumerable field\n * @property {string|number} [prefilled_text] - prefilled field value\n * @property {string} [label] - field label\n * @property {boolean} [custom_defined_option=false] - if 'true' user can change values, if 'false' user can only read\n ", - "start": 13899, - "end": 14763, - "loc": { - "start": { - "line": 358, - "column": 2 - }, - "end": { - "line": 373, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} RadioButton\n * @property {number} page_number - page number of document\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} value - value of radio button\n * @property {string} checked - radio button check status\n * @property {number} created - redio button creation timestamp\n ", - "start": 14767, - "end": 15265, - "loc": { - "start": { - "line": 375, - "column": 2 - }, - "end": { - "line": 385, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} RadioButtonField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (radiobutton)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {RadioButton[]} radio - array of radio buttons\n * @property {string|number} [prefilled_text] - prefilled field value\n * @property {string} [label] - field label\n ", - "start": 15269, - "end": 15979, - "loc": { - "start": { - "line": 387, - "column": 2 - }, - "end": { - "line": 401, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} FormulaTreeBranchTerminator\n * @property {string} term - name of field which will participate in calculation formula\n ", - "start": 15983, - "end": 16134, - "loc": { - "start": { - "line": 403, - "column": 2 - }, - "end": { - "line": 406, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} FormulaTreeBranch\n * @property {FormulaTree} term - a part of formula parsed into tree\n ", - "start": 16138, - "end": 16259, - "loc": { - "start": { - "line": 408, - "column": 2 - }, - "end": { - "line": 411, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} FormulaTree\n * @property {string} operator - arithmetic operator's token\n * @property {FormulaTreeBranch|FormulaTreeBranchTerminator} left - left branch of formula tree\n * @property {FormulaTreeBranch|FormulaTreeBranchTerminator} right - right branch of formula tree\n ", - "start": 16263, - "end": 16568, - "loc": { - "start": { - "line": 413, - "column": 2 - }, - "end": { - "line": 418, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} CalculatedField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (text)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} formula - arithmetic formula, e.g. 'TextName+EnumerationName'\n * @property {FormulaTree} calculation_formula - formula parsed into tree\n * @property {number} calculation_precision - calculation precision\n * @property {string} [label] - field label\n * @property {boolean} [custom_defined_option=false] - if 'true' user can change values, if 'false' user can only read\n ", - "start": 16572, - "end": 17493, - "loc": { - "start": { - "line": 420, - "column": 2 - }, - "end": { - "line": 436, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} AttachmentField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (attachment)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} [label] - field label\n ", - "start": 17497, - "end": 18071, - "loc": { - "start": { - "line": 438, - "column": 2 - }, - "end": { - "line": 450, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} DocumentFields\n * @property {number} client_timestamp - local time of user\n * @property {Array} fields - all types of fields\n ", - "start": 18075, - "end": 18353, - "loc": { - "start": { - "line": 452, - "column": 2 - }, - "end": { - "line": 456, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update document payload\n * @typedef {Object} DocumentUpdateParams\n * @property {string} id - id of specific document\n * @property {DocumentFields} fields - set of fields\n * @property {string} token - your auth token\n ", - "start": 18357, - "end": 18595, - "loc": { - "start": { - "line": 458, - "column": 2 - }, - "end": { - "line": 464, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update document response data\n * @typedef {Object} DocumentUpdateResponse\n * @property {string} id - an id of document\n * @property {Object[]} signatures - signature and initial elements\n * @property {Object[]} texts - text and enumeration elements\n * @property {Object[]} checks - checkbox elements\n * @property {Object[]} attachments - attachment elements\n * @property {Object[]} radiobuttons - radiobutton elements\n ", - "start": 18599, - "end": 19045, - "loc": { - "start": { - "line": 466, - "column": 2 - }, - "end": { - "line": 475, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Updates an existing document.\n * Adds fields (signature, text, initials, checkbox, radiobutton group, calculated) and elements (signature, text, check).\n * Every call of this method will add only specified fields into document.\n * Old fields will be removed\n * @param {DocumentUpdateParams} data - update document request payload\n * @param {function(err: ApiErrorResponse, res: DocumentUpdateResponse)} [callback] - error first node.js callback\n ", - "start": 19049, - "end": 19518, - "loc": { - "start": { - "line": 477, - "column": 2 - }, - "end": { - "line": 484, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Download document optional settings\n * @typedef {Object} DocumentDownloadOptions\n * @property {boolean} [withAttachments=false] - if true document will be downloaded as zip package with its attachments\n * @property {boolean} [withHistory=false] - if true document will be downloaded with history\n ", - "start": 20087, - "end": 20403, - "loc": { - "start": { - "line": 510, - "column": 2 - }, - "end": { - "line": 515, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document download payload\n * @typedef {Object} DocumentDownloadParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n * @property {DocumentDownloadOptions} options - download document optional settings\n ", - "start": 20407, - "end": 20681, - "loc": { - "start": { - "line": 517, - "column": 2 - }, - "end": { - "line": 523, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document binary data\n * @typedef {Buffer} DocumentDownloadResponse\n ", - "start": 20685, - "end": 20768, - "loc": { - "start": { - "line": 525, - "column": 2 - }, - "end": { - "line": 528, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Downloads document with embedded fields and elements.\n * By default document is downloaded without history. To download document with history set `withHistory` option to `true`.\n * @param {DocumentDownloadParams} data - download document request payload\n * @param {function(err: ApiErrorResponse, res: DocumentDownloadResponse)} [callback] - error first node.js callback\n ", - "start": 20772, - "end": 21163, - "loc": { - "start": { - "line": 530, - "column": 2 - }, - "end": { - "line": 535, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 21166, - "end": 21871, - "loc": { - "start": { - "line": 536, - "column": 2 - }, - "end": { - "line": 561, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 21173, - "end": 21181, - "loc": { - "start": { - "line": 536, - "column": 9 - }, - "end": { - "line": 536, - "column": 17 - }, - "identifierName": "download" - }, - "name": "download" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 21183, - "end": 21292, - "loc": { - "start": { - "line": 536, - "column": 19 - }, - "end": { - "line": 543, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21189, - "end": 21191, - "loc": { - "start": { - "line": 537, - "column": 4 - }, - "end": { - "line": 537, - "column": 6 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 21189, - "end": 21191, - "loc": { - "start": { - "line": 537, - "column": 4 - }, - "end": { - "line": 537, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 21189, - "end": 21191, - "loc": { - "start": { - "line": 537, - "column": 4 - }, - "end": { - "line": 537, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 21197, - "end": 21202, - "loc": { - "start": { - "line": 538, - "column": 4 - }, - "end": { - "line": 538, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 21197, - "end": 21202, - "loc": { - "start": { - "line": 538, - "column": 4 - }, - "end": { - "line": 538, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 21197, - "end": 21202, - "loc": { - "start": { - "line": 538, - "column": 4 - }, - "end": { - "line": 538, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 21208, - "end": 21287, - "loc": { - "start": { - "line": 539, - "column": 4 - }, - "end": { - "line": 542, - "column": 10 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 21208, - "end": 21215, - "loc": { - "start": { - "line": 539, - "column": 4 - }, - "end": { - "line": 539, - "column": 11 - }, - "identifierName": "options" - }, - "name": "options" - }, - "value": { - "type": "AssignmentPattern", - "start": 21217, - "end": 21287, - "loc": { - "start": { - "line": 539, - "column": 13 - }, - "end": { - "line": 542, - "column": 10 - } - }, - "left": { - "type": "ObjectPattern", - "start": 21217, - "end": 21282, - "loc": { - "start": { - "line": 539, - "column": 13 - }, - "end": { - "line": 542, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21225, - "end": 21248, - "loc": { - "start": { - "line": 540, - "column": 6 - }, - "end": { - "line": 540, - "column": 29 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 21225, - "end": 21240, - "loc": { - "start": { - "line": 540, - "column": 6 - }, - "end": { - "line": 540, - "column": 21 - }, - "identifierName": "withAttachments" - }, - "name": "withAttachments" - }, - "value": { - "type": "AssignmentPattern", - "start": 21225, - "end": 21248, - "loc": { - "start": { - "line": 540, - "column": 6 - }, - "end": { - "line": 540, - "column": 29 - } - }, - "left": { - "type": "Identifier", - "start": 21225, - "end": 21240, - "loc": { - "start": { - "line": 540, - "column": 6 - }, - "end": { - "line": 540, - "column": 21 - }, - "identifierName": "withAttachments" - }, - "name": "withAttachments" - }, - "right": { - "type": "BooleanLiteral", - "start": 21243, - "end": 21248, - "loc": { - "start": { - "line": 540, - "column": 24 - }, - "end": { - "line": 540, - "column": 29 - } - }, - "value": false - } - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 21256, - "end": 21275, - "loc": { - "start": { - "line": 541, - "column": 6 - }, - "end": { - "line": 541, - "column": 25 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 21256, - "end": 21267, - "loc": { - "start": { - "line": 541, - "column": 6 - }, - "end": { - "line": 541, - "column": 17 - }, - "identifierName": "withHistory" - }, - "name": "withHistory" - }, - "value": { - "type": "AssignmentPattern", - "start": 21256, - "end": 21275, - "loc": { - "start": { - "line": 541, - "column": 6 - }, - "end": { - "line": 541, - "column": 25 - } - }, - "left": { - "type": "Identifier", - "start": 21256, - "end": 21267, - "loc": { - "start": { - "line": 541, - "column": 6 - }, - "end": { - "line": 541, - "column": 17 - }, - "identifierName": "withHistory" - }, - "name": "withHistory" - }, - "right": { - "type": "BooleanLiteral", - "start": 21270, - "end": 21275, - "loc": { - "start": { - "line": 541, - "column": 20 - }, - "end": { - "line": 541, - "column": 25 - } - }, - "value": false - } - }, - "extra": { - "shorthand": true - } - } - ] - }, - "right": { - "type": "ObjectExpression", - "start": 21285, - "end": 21287, - "loc": { - "start": { - "line": 542, - "column": 8 - }, - "end": { - "line": 542, - "column": 10 - } - }, - "properties": [] - } - } - } - ] - }, - { - "type": "Identifier", - "start": 21294, - "end": 21302, - "loc": { - "start": { - "line": 543, - "column": 5 - }, - "end": { - "line": 543, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 21304, - "end": 21871, - "loc": { - "start": { - "line": 543, - "column": 15 - }, - "end": { - "line": 561, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 21310, - "end": 21333, - "loc": { - "start": { - "line": 544, - "column": 4 - }, - "end": { - "line": 544, - "column": 27 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 21316, - "end": 21332, - "loc": { - "start": { - "line": 544, - "column": 10 - }, - "end": { - "line": 544, - "column": 26 - } - }, - "id": { - "type": "Identifier", - "start": 21316, - "end": 21327, - "loc": { - "start": { - "line": 544, - "column": 10 - }, - "end": { - "line": 544, - "column": 21 - }, - "identifierName": "queryParams" - }, - "name": "queryParams" - }, - "init": { - "type": "ObjectExpression", - "start": 21330, - "end": 21332, - "loc": { - "start": { - "line": 544, - "column": 24 - }, - "end": { - "line": 544, - "column": 26 - } - }, - "properties": [] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 21338, - "end": 21392, - "loc": { - "start": { - "line": 545, - "column": 4 - }, - "end": { - "line": 545, - "column": 58 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 21344, - "end": 21391, - "loc": { - "start": { - "line": 545, - "column": 10 - }, - "end": { - "line": 545, - "column": 57 - } - }, - "id": { - "type": "Identifier", - "start": 21344, - "end": 21359, - "loc": { - "start": { - "line": 545, - "column": 10 - }, - "end": { - "line": 545, - "column": 25 - }, - "identifierName": "clientTimestamp" - }, - "name": "clientTimestamp" - }, - "init": { - "type": "CallExpression", - "start": 21362, - "end": 21391, - "loc": { - "start": { - "line": 545, - "column": 28 - }, - "end": { - "line": 545, - "column": 57 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21362, - "end": 21372, - "loc": { - "start": { - "line": 545, - "column": 28 - }, - "end": { - "line": 545, - "column": 38 - } - }, - "object": { - "type": "Identifier", - "start": 21362, - "end": 21366, - "loc": { - "start": { - "line": 545, - "column": 28 - }, - "end": { - "line": 545, - "column": 32 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 21367, - "end": 21372, - "loc": { - "start": { - "line": 545, - "column": 33 - }, - "end": { - "line": 545, - "column": 38 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 21373, - "end": 21390, - "loc": { - "start": { - "line": 545, - "column": 39 - }, - "end": { - "line": 545, - "column": 56 - } - }, - "left": { - "type": "CallExpression", - "start": 21373, - "end": 21383, - "loc": { - "start": { - "line": 545, - "column": 39 - }, - "end": { - "line": 545, - "column": 49 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21373, - "end": 21381, - "loc": { - "start": { - "line": 545, - "column": 39 - }, - "end": { - "line": 545, - "column": 47 - } - }, - "object": { - "type": "Identifier", - "start": 21373, - "end": 21377, - "loc": { - "start": { - "line": 545, - "column": 39 - }, - "end": { - "line": 545, - "column": 43 - }, - "identifierName": "Date" - }, - "name": "Date" - }, - "property": { - "type": "Identifier", - "start": 21378, - "end": 21381, - "loc": { - "start": { - "line": 545, - "column": 44 - }, - "end": { - "line": 545, - "column": 47 - }, - "identifierName": "now" - }, - "name": "now" - }, - "computed": false - }, - "arguments": [] - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 21386, - "end": 21390, - "loc": { - "start": { - "line": 545, - "column": 52 - }, - "end": { - "line": 545, - "column": 56 - } - }, - "extra": { - "rawValue": 1000, - "raw": "1000" - }, - "value": 1000 - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 21398, - "end": 21455, - "loc": { - "start": { - "line": 547, - "column": 4 - }, - "end": { - "line": 547, - "column": 61 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 21398, - "end": 21454, - "loc": { - "start": { - "line": 547, - "column": 4 - }, - "end": { - "line": 547, - "column": 60 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 21398, - "end": 21414, - "loc": { - "start": { - "line": 547, - "column": 4 - }, - "end": { - "line": 547, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 21398, - "end": 21409, - "loc": { - "start": { - "line": 547, - "column": 4 - }, - "end": { - "line": 547, - "column": 15 - }, - "identifierName": "queryParams" - }, - "name": "queryParams" - }, - "property": { - "type": "Identifier", - "start": 21410, - "end": 21414, - "loc": { - "start": { - "line": 547, - "column": 16 - }, - "end": { - "line": 547, - "column": 20 - }, - "identifierName": "type" - }, - "name": "type" - }, - "computed": false - }, - "right": { - "type": "ConditionalExpression", - "start": 21417, - "end": 21454, - "loc": { - "start": { - "line": 547, - "column": 23 - }, - "end": { - "line": 547, - "column": 60 - } - }, - "test": { - "type": "Identifier", - "start": 21417, - "end": 21432, - "loc": { - "start": { - "line": 547, - "column": 23 - }, - "end": { - "line": 547, - "column": 38 - }, - "identifierName": "withAttachments" - }, - "name": "withAttachments" - }, - "consequent": { - "type": "StringLiteral", - "start": 21435, - "end": 21440, - "loc": { - "start": { - "line": 547, - "column": 41 - }, - "end": { - "line": 547, - "column": 46 - } - }, - "extra": { - "rawValue": "zip", - "raw": "'zip'" - }, - "value": "zip" - }, - "alternate": { - "type": "StringLiteral", - "start": 21443, - "end": 21454, - "loc": { - "start": { - "line": 547, - "column": 49 - }, - "end": { - "line": 547, - "column": 60 - } - }, - "extra": { - "rawValue": "collapsed", - "raw": "'collapsed'" - }, - "value": "collapsed" - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 21460, - "end": 21508, - "loc": { - "start": { - "line": 548, - "column": 4 - }, - "end": { - "line": 548, - "column": 52 - } - }, - "expression": { - "type": "LogicalExpression", - "start": 21460, - "end": 21507, - "loc": { - "start": { - "line": 548, - "column": 4 - }, - "end": { - "line": 548, - "column": 51 - } - }, - "left": { - "type": "Identifier", - "start": 21460, - "end": 21471, - "loc": { - "start": { - "line": 548, - "column": 4 - }, - "end": { - "line": 548, - "column": 15 - }, - "identifierName": "withHistory" - }, - "name": "withHistory" - }, - "operator": "&&", - "right": { - "type": "AssignmentExpression", - "start": 21476, - "end": 21506, - "loc": { - "start": { - "line": 548, - "column": 20 - }, - "end": { - "line": 548, - "column": 50 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 21476, - "end": 21500, - "loc": { - "start": { - "line": 548, - "column": 20 - }, - "end": { - "line": 548, - "column": 44 - } - }, - "object": { - "type": "Identifier", - "start": 21476, - "end": 21487, - "loc": { - "start": { - "line": 548, - "column": 20 - }, - "end": { - "line": 548, - "column": 31 - }, - "identifierName": "queryParams" - }, - "name": "queryParams" - }, - "property": { - "type": "Identifier", - "start": 21488, - "end": 21500, - "loc": { - "start": { - "line": 548, - "column": 32 - }, - "end": { - "line": 548, - "column": 44 - }, - "identifierName": "with_history" - }, - "name": "with_history" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 21503, - "end": 21506, - "loc": { - "start": { - "line": 548, - "column": 47 - }, - "end": { - "line": 548, - "column": 50 - } - }, - "extra": { - "rawValue": "1", - "raw": "'1'" - }, - "value": "1" - }, - "extra": { - "parenthesized": true, - "parenStart": 21475 - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 21514, - "end": 21867, - "loc": { - "start": { - "line": 550, - "column": 4 - }, - "end": { - "line": 560, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 21514, - "end": 21866, - "loc": { - "start": { - "line": 550, - "column": 4 - }, - "end": { - "line": 560, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21514, - "end": 21864, - "loc": { - "start": { - "line": 550, - "column": 4 - }, - "end": { - "line": 560, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 21514, - "end": 21853, - "loc": { - "start": { - "line": 550, - "column": 4 - }, - "end": { - "line": 559, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21514, - "end": 21820, - "loc": { - "start": { - "line": 550, - "column": 4 - }, - "end": { - "line": 559, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 21514, - "end": 21810, - "loc": { - "start": { - "line": 550, - "column": 4 - }, - "end": { - "line": 558, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21514, - "end": 21534, - "loc": { - "start": { - "line": 550, - "column": 4 - }, - "end": { - "line": 551, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 21514, - "end": 21519, - "loc": { - "start": { - "line": 550, - "column": 4 - }, - "end": { - "line": 550, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 21527, - "end": 21534, - "loc": { - "start": { - "line": 551, - "column": 7 - }, - "end": { - "line": 551, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 21535, - "end": 21782, - "loc": { - "start": { - "line": 551, - "column": 15 - }, - "end": { - "line": 558, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 21535, - "end": 21554, - "loc": { - "start": { - "line": 551, - "column": 15 - }, - "end": { - "line": 551, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 21555, - "end": 21781, - "loc": { - "start": { - "line": 551, - "column": 35 - }, - "end": { - "line": 558, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21565, - "end": 21578, - "loc": { - "start": { - "line": 552, - "column": 8 - }, - "end": { - "line": 552, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 21565, - "end": 21571, - "loc": { - "start": { - "line": 552, - "column": 8 - }, - "end": { - "line": 552, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 21573, - "end": 21578, - "loc": { - "start": { - "line": 552, - "column": 16 - }, - "end": { - "line": 552, - "column": 21 - } - }, - "extra": { - "rawValue": "GET", - "raw": "'GET'" - }, - "value": "GET" - } - }, - { - "type": "ObjectProperty", - "start": 21588, - "end": 21693, - "loc": { - "start": { - "line": 553, - "column": 8 - }, - "end": { - "line": 553, - "column": 113 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 21588, - "end": 21592, - "loc": { - "start": { - "line": 553, - "column": 8 - }, - "end": { - "line": 553, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 21594, - "end": 21693, - "loc": { - "start": { - "line": 553, - "column": 14 - }, - "end": { - "line": 553, - "column": 113 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 21607, - "end": 21609, - "loc": { - "start": { - "line": 553, - "column": 27 - }, - "end": { - "line": 553, - "column": 29 - }, - "identifierName": "id" - }, - "name": "id" - }, - { - "type": "Identifier", - "start": 21639, - "end": 21654, - "loc": { - "start": { - "line": 553, - "column": 59 - }, - "end": { - "line": 553, - "column": 74 - }, - "identifierName": "clientTimestamp" - }, - "name": "clientTimestamp" - }, - { - "type": "CallExpression", - "start": 21658, - "end": 21691, - "loc": { - "start": { - "line": 553, - "column": 78 - }, - "end": { - "line": 553, - "column": 111 - } - }, - "callee": { - "type": "Identifier", - "start": 21658, - "end": 21678, - "loc": { - "start": { - "line": 553, - "column": 78 - }, - "end": { - "line": 553, - "column": 98 - }, - "identifierName": "stringifyQueryParams" - }, - "name": "stringifyQueryParams" - }, - "arguments": [ - { - "type": "Identifier", - "start": 21679, - "end": 21690, - "loc": { - "start": { - "line": 553, - "column": 99 - }, - "end": { - "line": 553, - "column": 110 - }, - "identifierName": "queryParams" - }, - "name": "queryParams" - } - ] - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 21595, - "end": 21605, - "loc": { - "start": { - "line": 553, - "column": 15 - }, - "end": { - "line": 553, - "column": 25 - } - }, - "value": { - "raw": "/document/", - "cooked": "/document/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 21610, - "end": 21637, - "loc": { - "start": { - "line": 553, - "column": 30 - }, - "end": { - "line": 553, - "column": 57 - } - }, - "value": { - "raw": "/download?client_timestamp=", - "cooked": "/download?client_timestamp=" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 21655, - "end": 21656, - "loc": { - "start": { - "line": 553, - "column": 75 - }, - "end": { - "line": 553, - "column": 76 - } - }, - "value": { - "raw": "&", - "cooked": "&" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 21692, - "end": 21692, - "loc": { - "start": { - "line": 553, - "column": 112 - }, - "end": { - "line": 553, - "column": 112 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 21703, - "end": 21772, - "loc": { - "start": { - "line": 554, - "column": 8 - }, - "end": { - "line": 557, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 21703, - "end": 21716, - "loc": { - "start": { - "line": 554, - "column": 8 - }, - "end": { - "line": 554, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 21718, - "end": 21772, - "loc": { - "start": { - "line": 554, - "column": 23 - }, - "end": { - "line": 557, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21730, - "end": 21744, - "loc": { - "start": { - "line": 555, - "column": 10 - }, - "end": { - "line": 555, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 21730, - "end": 21734, - "loc": { - "start": { - "line": 555, - "column": 10 - }, - "end": { - "line": 555, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 21736, - "end": 21744, - "loc": { - "start": { - "line": 555, - "column": 16 - }, - "end": { - "line": 555, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 21756, - "end": 21761, - "loc": { - "start": { - "line": 556, - "column": 10 - }, - "end": { - "line": 556, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 21756, - "end": 21761, - "loc": { - "start": { - "line": 556, - "column": 10 - }, - "end": { - "line": 556, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 21756, - "end": 21761, - "loc": { - "start": { - "line": 556, - "column": 10 - }, - "end": { - "line": 556, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 21784, - "end": 21809, - "loc": { - "start": { - "line": 558, - "column": 10 - }, - "end": { - "line": 558, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 21784, - "end": 21799, - "loc": { - "start": { - "line": 558, - "column": 10 - }, - "end": { - "line": 558, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 21800, - "end": 21808, - "loc": { - "start": { - "line": 558, - "column": 26 - }, - "end": { - "line": 558, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 21818, - "end": 21820, - "loc": { - "start": { - "line": 559, - "column": 7 - }, - "end": { - "line": 559, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 21821, - "end": 21828, - "loc": { - "start": { - "line": 559, - "column": 10 - }, - "end": { - "line": 559, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 21830, - "end": 21852, - "loc": { - "start": { - "line": 559, - "column": 19 - }, - "end": { - "line": 559, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 21830, - "end": 21842, - "loc": { - "start": { - "line": 559, - "column": 19 - }, - "end": { - "line": 559, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 21843, - "end": 21851, - "loc": { - "start": { - "line": 559, - "column": 32 - }, - "end": { - "line": 559, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 21861, - "end": 21864, - "loc": { - "start": { - "line": 560, - "column": 7 - }, - "end": { - "line": 560, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Download document optional settings\n * @typedef {Object} DocumentDownloadOptions\n * @property {boolean} [withAttachments=false] - if true document will be downloaded as zip package with its attachments\n * @property {boolean} [withHistory=false] - if true document will be downloaded with history\n ", - "start": 20087, - "end": 20403, - "loc": { - "start": { - "line": 510, - "column": 2 - }, - "end": { - "line": 515, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document download payload\n * @typedef {Object} DocumentDownloadParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n * @property {DocumentDownloadOptions} options - download document optional settings\n ", - "start": 20407, - "end": 20681, - "loc": { - "start": { - "line": 517, - "column": 2 - }, - "end": { - "line": 523, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document binary data\n * @typedef {Buffer} DocumentDownloadResponse\n ", - "start": 20685, - "end": 20768, - "loc": { - "start": { - "line": 525, - "column": 2 - }, - "end": { - "line": 528, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Downloads document with embedded fields and elements.\n * By default document is downloaded without history. To download document with history set `withHistory` option to `true`.\n * @param {DocumentDownloadParams} data - download document request payload\n * @param {function(err: ApiErrorResponse, res: DocumentDownloadResponse)} [callback] - error first node.js callback\n ", - "start": 20772, - "end": 21163, - "loc": { - "start": { - "line": 530, - "column": 2 - }, - "end": { - "line": 535, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document share payload\n * @typedef {Object} DocumentShareParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 21875, - "end": 22056, - "loc": { - "start": { - "line": 563, - "column": 2 - }, - "end": { - "line": 568, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document share response data\n * @typedef {Object} DocumentShareResponse\n * @property {string} link - link to download specified document in PDF format\n ", - "start": 22060, - "end": 22229, - "loc": { - "start": { - "line": 570, - "column": 2 - }, - "end": { - "line": 574, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Requests a link to download document with embedded fields and elements\n * Link can be used once and then will expire\n * @param {DocumentShareParams} data - share document request payload\n * @param {function(err: ApiErrorResponse, res: DocumentShareResponse)} [callback] - error first node.js callback\n ", - "start": 22233, - "end": 22554, - "loc": { - "start": { - "line": 576, - "column": 2 - }, - "end": { - "line": 581, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 22557, - "end": 22892, - "loc": { - "start": { - "line": 582, - "column": 2 - }, - "end": { - "line": 594, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 22564, - "end": 22569, - "loc": { - "start": { - "line": 582, - "column": 9 - }, - "end": { - "line": 582, - "column": 14 - }, - "identifierName": "share" - }, - "name": "share" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 22571, - "end": 22584, - "loc": { - "start": { - "line": 582, - "column": 16 - }, - "end": { - "line": 582, - "column": 29 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 22573, - "end": 22575, - "loc": { - "start": { - "line": 582, - "column": 18 - }, - "end": { - "line": 582, - "column": 20 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 22573, - "end": 22575, - "loc": { - "start": { - "line": 582, - "column": 18 - }, - "end": { - "line": 582, - "column": 20 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 22573, - "end": 22575, - "loc": { - "start": { - "line": 582, - "column": 18 - }, - "end": { - "line": 582, - "column": 20 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 22577, - "end": 22582, - "loc": { - "start": { - "line": 582, - "column": 22 - }, - "end": { - "line": 582, - "column": 27 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 22577, - "end": 22582, - "loc": { - "start": { - "line": 582, - "column": 22 - }, - "end": { - "line": 582, - "column": 27 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 22577, - "end": 22582, - "loc": { - "start": { - "line": 582, - "column": 22 - }, - "end": { - "line": 582, - "column": 27 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 22586, - "end": 22594, - "loc": { - "start": { - "line": 582, - "column": 31 - }, - "end": { - "line": 582, - "column": 39 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 22596, - "end": 22892, - "loc": { - "start": { - "line": 582, - "column": 41 - }, - "end": { - "line": 594, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 22602, - "end": 22888, - "loc": { - "start": { - "line": 583, - "column": 4 - }, - "end": { - "line": 593, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 22602, - "end": 22887, - "loc": { - "start": { - "line": 583, - "column": 4 - }, - "end": { - "line": 593, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 22602, - "end": 22885, - "loc": { - "start": { - "line": 583, - "column": 4 - }, - "end": { - "line": 593, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 22602, - "end": 22874, - "loc": { - "start": { - "line": 583, - "column": 4 - }, - "end": { - "line": 592, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 22602, - "end": 22841, - "loc": { - "start": { - "line": 583, - "column": 4 - }, - "end": { - "line": 592, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 22602, - "end": 22831, - "loc": { - "start": { - "line": 583, - "column": 4 - }, - "end": { - "line": 591, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 22602, - "end": 22622, - "loc": { - "start": { - "line": 583, - "column": 4 - }, - "end": { - "line": 584, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 22602, - "end": 22607, - "loc": { - "start": { - "line": 583, - "column": 4 - }, - "end": { - "line": 583, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 22615, - "end": 22622, - "loc": { - "start": { - "line": 584, - "column": 7 - }, - "end": { - "line": 584, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 22623, - "end": 22803, - "loc": { - "start": { - "line": 584, - "column": 15 - }, - "end": { - "line": 591, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 22623, - "end": 22642, - "loc": { - "start": { - "line": 584, - "column": 15 - }, - "end": { - "line": 584, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 22643, - "end": 22802, - "loc": { - "start": { - "line": 584, - "column": 35 - }, - "end": { - "line": 591, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 22653, - "end": 22667, - "loc": { - "start": { - "line": 585, - "column": 8 - }, - "end": { - "line": 585, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 22653, - "end": 22659, - "loc": { - "start": { - "line": 585, - "column": 8 - }, - "end": { - "line": 585, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 22661, - "end": 22667, - "loc": { - "start": { - "line": 585, - "column": 16 - }, - "end": { - "line": 585, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 22677, - "end": 22714, - "loc": { - "start": { - "line": 586, - "column": 8 - }, - "end": { - "line": 586, - "column": 45 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 22677, - "end": 22681, - "loc": { - "start": { - "line": 586, - "column": 8 - }, - "end": { - "line": 586, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 22683, - "end": 22714, - "loc": { - "start": { - "line": 586, - "column": 14 - }, - "end": { - "line": 586, - "column": 45 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 22696, - "end": 22698, - "loc": { - "start": { - "line": 586, - "column": 27 - }, - "end": { - "line": 586, - "column": 29 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 22684, - "end": 22694, - "loc": { - "start": { - "line": 586, - "column": 15 - }, - "end": { - "line": 586, - "column": 25 - } - }, - "value": { - "raw": "/document/", - "cooked": "/document/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 22699, - "end": 22713, - "loc": { - "start": { - "line": 586, - "column": 30 - }, - "end": { - "line": 586, - "column": 44 - } - }, - "value": { - "raw": "/download/link", - "cooked": "/download/link" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 22724, - "end": 22793, - "loc": { - "start": { - "line": 587, - "column": 8 - }, - "end": { - "line": 590, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 22724, - "end": 22737, - "loc": { - "start": { - "line": 587, - "column": 8 - }, - "end": { - "line": 587, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 22739, - "end": 22793, - "loc": { - "start": { - "line": 587, - "column": 23 - }, - "end": { - "line": 590, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 22751, - "end": 22765, - "loc": { - "start": { - "line": 588, - "column": 10 - }, - "end": { - "line": 588, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 22751, - "end": 22755, - "loc": { - "start": { - "line": 588, - "column": 10 - }, - "end": { - "line": 588, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 22757, - "end": 22765, - "loc": { - "start": { - "line": 588, - "column": 16 - }, - "end": { - "line": 588, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 22777, - "end": 22782, - "loc": { - "start": { - "line": 589, - "column": 10 - }, - "end": { - "line": 589, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 22777, - "end": 22782, - "loc": { - "start": { - "line": 589, - "column": 10 - }, - "end": { - "line": 589, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 22777, - "end": 22782, - "loc": { - "start": { - "line": 589, - "column": 10 - }, - "end": { - "line": 589, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 22805, - "end": 22830, - "loc": { - "start": { - "line": 591, - "column": 10 - }, - "end": { - "line": 591, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 22805, - "end": 22820, - "loc": { - "start": { - "line": 591, - "column": 10 - }, - "end": { - "line": 591, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 22821, - "end": 22829, - "loc": { - "start": { - "line": 591, - "column": 26 - }, - "end": { - "line": 591, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 22839, - "end": 22841, - "loc": { - "start": { - "line": 592, - "column": 7 - }, - "end": { - "line": 592, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 22842, - "end": 22849, - "loc": { - "start": { - "line": 592, - "column": 10 - }, - "end": { - "line": 592, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 22851, - "end": 22873, - "loc": { - "start": { - "line": 592, - "column": 19 - }, - "end": { - "line": 592, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 22851, - "end": 22863, - "loc": { - "start": { - "line": 592, - "column": 19 - }, - "end": { - "line": 592, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 22864, - "end": 22872, - "loc": { - "start": { - "line": 592, - "column": 32 - }, - "end": { - "line": 592, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 22882, - "end": 22885, - "loc": { - "start": { - "line": 593, - "column": 7 - }, - "end": { - "line": 593, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document share payload\n * @typedef {Object} DocumentShareParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 21875, - "end": 22056, - "loc": { - "start": { - "line": 563, - "column": 2 - }, - "end": { - "line": 568, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document share response data\n * @typedef {Object} DocumentShareResponse\n * @property {string} link - link to download specified document in PDF format\n ", - "start": 22060, - "end": 22229, - "loc": { - "start": { - "line": 570, - "column": 2 - }, - "end": { - "line": 574, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Requests a link to download document with embedded fields and elements\n * Link can be used once and then will expire\n * @param {DocumentShareParams} data - share document request payload\n * @param {function(err: ApiErrorResponse, res: DocumentShareResponse)} [callback] - error first node.js callback\n ", - "start": 22233, - "end": 22554, - "loc": { - "start": { - "line": 576, - "column": 2 - }, - "end": { - "line": 581, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document invite signer settings\n * @typedef {Object} SignerSettings\n * @property {string} email - signer's email\n * @property {string} role - role name\n * @property {string} [role_id] - role unique id (can be discovered in document details)\n * @property {number} order - role signing order\n * @property {string} reassign - allow reassign signer\n * @property {string} decline_by_signature - signer can decline invite\n * @property {number} reminder - remind via email in days\n * @property {number} expiration_days - expiration of invite in days\n * @property {string} [subject] - specify subject of email\n * @property {string} [message] - specify body of email\n ", - "start": 22896, - "end": 23590, - "loc": { - "start": { - "line": 596, - "column": 2 - }, - "end": { - "line": 609, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document invite settings\n * @typedef {Object} DocumentInviteSettings\n * @property {string} from - email of sender\n * @property {SignerSettings[]|string} to - array of signers or email of single signer\n * @property {string} [document_id] - an id of document\n * @property {string[]} [cc] - array with emails of copy receivers\n * @property {string} [subject] - specify subject of email\n * @property {string} [message] - specify body of email\n * @property {string} [on_complete] - on signing complete action\n ", - "start": 23594, - "end": 24128, - "loc": { - "start": { - "line": 611, - "column": 2 - }, - "end": { - "line": 621, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document invite optional settings\n * @typedef {Object} DocumentInviteOptions\n * @property {string} [email] - ability to disable invitation by email. to disable email assign value 'disable'\n ", - "start": 24132, - "end": 24339, - "loc": { - "start": { - "line": 623, - "column": 2 - }, - "end": { - "line": 627, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document invite payload\n * @typedef {Object} DocumentInviteParams\n * @property {string} id - an id of document\n * @property {DocumentInviteSettings} data - document invite settings\n * @property {DocumentInviteOptions} [options] - document invite optional settings\n * @property {string} token - your auth token\n ", - "start": 24343, - "end": 24684, - "loc": { - "start": { - "line": 629, - "column": 2 - }, - "end": { - "line": 636, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document field invite response data\n * @typedef {Object} DocumentFieldInviteResponse\n * @property {string} status - status of invitation, e.g. 'success'\n ", - "start": 24688, - "end": 24866, - "loc": { - "start": { - "line": 638, - "column": 2 - }, - "end": { - "line": 642, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document free form invite response data\n * @typedef {Object} DocumentFreeformInviteResponse\n * @property {string} result - free form invitation result, e.g. 'success'\n * @property {string} id - unique id of invite\n * @property {string} callback_url - url for front-end redirect or 'none'\n ", - "start": 24870, - "end": 25187, - "loc": { - "start": { - "line": 644, - "column": 2 - }, - "end": { - "line": 650, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document invite response data\n * @typedef {DocumentFieldInviteResponse|DocumentFreeformInviteResponse} DocumentInviteResponse\n ", - "start": 25191, - "end": 25340, - "loc": { - "start": { - "line": 652, - "column": 2 - }, - "end": { - "line": 655, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates an invite to sign a document.\n * You can create a simple free form invite(s) or a role-based invite(s).\n * @param {DocumentInviteParams} data - create document invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentInviteResponse)} [callback] - error first node.js callback\n ", - "start": 25344, - "end": 25662, - "loc": { - "start": { - "line": 657, - "column": 2 - }, - "end": { - "line": 662, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 25665, - "end": 26428, - "loc": { - "start": { - "line": 663, - "column": 2 - }, - "end": { - "line": 695, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 25672, - "end": 25678, - "loc": { - "start": { - "line": 663, - "column": 9 - }, - "end": { - "line": 663, - "column": 15 - }, - "identifierName": "invite" - }, - "name": "invite" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 25680, - "end": 25743, - "loc": { - "start": { - "line": 663, - "column": 17 - }, - "end": { - "line": 668, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 25686, - "end": 25688, - "loc": { - "start": { - "line": 664, - "column": 4 - }, - "end": { - "line": 664, - "column": 6 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 25686, - "end": 25688, - "loc": { - "start": { - "line": 664, - "column": 4 - }, - "end": { - "line": 664, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 25686, - "end": 25688, - "loc": { - "start": { - "line": 664, - "column": 4 - }, - "end": { - "line": 664, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 25694, - "end": 25698, - "loc": { - "start": { - "line": 665, - "column": 4 - }, - "end": { - "line": 665, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 25694, - "end": 25698, - "loc": { - "start": { - "line": 665, - "column": 4 - }, - "end": { - "line": 665, - "column": 8 - }, - "identifierName": "data" - }, - "name": "data" - }, - "value": { - "type": "Identifier", - "start": 25694, - "end": 25698, - "loc": { - "start": { - "line": 665, - "column": 4 - }, - "end": { - "line": 665, - "column": 8 - }, - "identifierName": "data" - }, - "name": "data" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 25704, - "end": 25727, - "loc": { - "start": { - "line": 666, - "column": 4 - }, - "end": { - "line": 666, - "column": 27 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 25704, - "end": 25711, - "loc": { - "start": { - "line": 666, - "column": 4 - }, - "end": { - "line": 666, - "column": 11 - }, - "identifierName": "options" - }, - "name": "options" - }, - "value": { - "type": "AssignmentPattern", - "start": 25713, - "end": 25727, - "loc": { - "start": { - "line": 666, - "column": 13 - }, - "end": { - "line": 666, - "column": 27 - } - }, - "left": { - "type": "ObjectPattern", - "start": 25713, - "end": 25722, - "loc": { - "start": { - "line": 666, - "column": 13 - }, - "end": { - "line": 666, - "column": 22 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 25715, - "end": 25720, - "loc": { - "start": { - "line": 666, - "column": 15 - }, - "end": { - "line": 666, - "column": 20 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 25715, - "end": 25720, - "loc": { - "start": { - "line": 666, - "column": 15 - }, - "end": { - "line": 666, - "column": 20 - }, - "identifierName": "email" - }, - "name": "email" - }, - "value": { - "type": "Identifier", - "start": 25715, - "end": 25720, - "loc": { - "start": { - "line": 666, - "column": 15 - }, - "end": { - "line": 666, - "column": 20 - }, - "identifierName": "email" - }, - "name": "email" - }, - "extra": { - "shorthand": true - } - } - ] - }, - "right": { - "type": "ObjectExpression", - "start": 25725, - "end": 25727, - "loc": { - "start": { - "line": 666, - "column": 25 - }, - "end": { - "line": 666, - "column": 27 - } - }, - "properties": [] - } - } - }, - { - "type": "ObjectProperty", - "start": 25733, - "end": 25738, - "loc": { - "start": { - "line": 667, - "column": 4 - }, - "end": { - "line": 667, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 25733, - "end": 25738, - "loc": { - "start": { - "line": 667, - "column": 4 - }, - "end": { - "line": 667, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 25733, - "end": 25738, - "loc": { - "start": { - "line": 667, - "column": 4 - }, - "end": { - "line": 667, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 25745, - "end": 25753, - "loc": { - "start": { - "line": 668, - "column": 5 - }, - "end": { - "line": 668, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 25755, - "end": 26428, - "loc": { - "start": { - "line": 668, - "column": 15 - }, - "end": { - "line": 695, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 25761, - "end": 25825, - "loc": { - "start": { - "line": 669, - "column": 4 - }, - "end": { - "line": 669, - "column": 68 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 25767, - "end": 25824, - "loc": { - "start": { - "line": 669, - "column": 10 - }, - "end": { - "line": 669, - "column": 67 - } - }, - "id": { - "type": "Identifier", - "start": 25767, - "end": 25777, - "loc": { - "start": { - "line": 669, - "column": 10 - }, - "end": { - "line": 669, - "column": 20 - }, - "identifierName": "inviteData" - }, - "name": "inviteData" - }, - "init": { - "type": "CallExpression", - "start": 25780, - "end": 25824, - "loc": { - "start": { - "line": 669, - "column": 23 - }, - "end": { - "line": 669, - "column": 67 - } - }, - "callee": { - "type": "MemberExpression", - "start": 25780, - "end": 25793, - "loc": { - "start": { - "line": 669, - "column": 23 - }, - "end": { - "line": 669, - "column": 36 - } - }, - "object": { - "type": "Identifier", - "start": 25780, - "end": 25786, - "loc": { - "start": { - "line": 669, - "column": 23 - }, - "end": { - "line": 669, - "column": 29 - }, - "identifierName": "Object" - }, - "name": "Object" - }, - "property": { - "type": "Identifier", - "start": 25787, - "end": 25793, - "loc": { - "start": { - "line": 669, - "column": 30 - }, - "end": { - "line": 669, - "column": 36 - }, - "identifierName": "assign" - }, - "name": "assign" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 25794, - "end": 25796, - "loc": { - "start": { - "line": 669, - "column": 37 - }, - "end": { - "line": 669, - "column": 39 - } - }, - "properties": [] - }, - { - "type": "Identifier", - "start": 25798, - "end": 25802, - "loc": { - "start": { - "line": 669, - "column": 41 - }, - "end": { - "line": 669, - "column": 45 - }, - "identifierName": "data" - }, - "name": "data" - }, - { - "type": "ObjectExpression", - "start": 25804, - "end": 25823, - "loc": { - "start": { - "line": 669, - "column": 47 - }, - "end": { - "line": 669, - "column": 66 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 25806, - "end": 25821, - "loc": { - "start": { - "line": 669, - "column": 49 - }, - "end": { - "line": 669, - "column": 64 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 25806, - "end": 25817, - "loc": { - "start": { - "line": 669, - "column": 49 - }, - "end": { - "line": 669, - "column": 60 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "value": { - "type": "Identifier", - "start": 25819, - "end": 25821, - "loc": { - "start": { - "line": 669, - "column": 62 - }, - "end": { - "line": 669, - "column": 64 - }, - "identifierName": "id" - }, - "name": "id" - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 25831, - "end": 25875, - "loc": { - "start": { - "line": 671, - "column": 4 - }, - "end": { - "line": 671, - "column": 48 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 25837, - "end": 25874, - "loc": { - "start": { - "line": 671, - "column": 10 - }, - "end": { - "line": 671, - "column": 47 - } - }, - "id": { - "type": "Identifier", - "start": 25837, - "end": 25845, - "loc": { - "start": { - "line": 671, - "column": 10 - }, - "end": { - "line": 671, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 25848, - "end": 25874, - "loc": { - "start": { - "line": 671, - "column": 21 - }, - "end": { - "line": 671, - "column": 47 - } - }, - "callee": { - "type": "MemberExpression", - "start": 25848, - "end": 25862, - "loc": { - "start": { - "line": 671, - "column": 21 - }, - "end": { - "line": 671, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 25848, - "end": 25852, - "loc": { - "start": { - "line": 671, - "column": 21 - }, - "end": { - "line": 671, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 25853, - "end": 25862, - "loc": { - "start": { - "line": 671, - "column": 26 - }, - "end": { - "line": 671, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 25863, - "end": 25873, - "loc": { - "start": { - "line": 671, - "column": 36 - }, - "end": { - "line": 671, - "column": 46 - }, - "identifierName": "inviteData" - }, - "name": "inviteData" - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 25880, - "end": 25916, - "loc": { - "start": { - "line": 672, - "column": 4 - }, - "end": { - "line": 672, - "column": 40 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 25884, - "end": 25915, - "loc": { - "start": { - "line": 672, - "column": 8 - }, - "end": { - "line": 672, - "column": 39 - } - }, - "id": { - "type": "Identifier", - "start": 25884, - "end": 25888, - "loc": { - "start": { - "line": 672, - "column": 8 - }, - "end": { - "line": 672, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "init": { - "type": "TemplateLiteral", - "start": 25891, - "end": 25915, - "loc": { - "start": { - "line": 672, - "column": 15 - }, - "end": { - "line": 672, - "column": 39 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 25904, - "end": 25906, - "loc": { - "start": { - "line": 672, - "column": 28 - }, - "end": { - "line": 672, - "column": 30 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 25892, - "end": 25902, - "loc": { - "start": { - "line": 672, - "column": 16 - }, - "end": { - "line": 672, - "column": 26 - } - }, - "value": { - "raw": "/document/", - "cooked": "/document/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 25907, - "end": 25914, - "loc": { - "start": { - "line": 672, - "column": 31 - }, - "end": { - "line": 672, - "column": 38 - } - }, - "value": { - "raw": "/invite", - "cooked": "/invite" - }, - "tail": true - } - ] - } - } - ], - "kind": "let" - }, - { - "type": "IfStatement", - "start": 25922, - "end": 25992, - "loc": { - "start": { - "line": 674, - "column": 4 - }, - "end": { - "line": 676, - "column": 5 - } - }, - "test": { - "type": "BinaryExpression", - "start": 25926, - "end": 25945, - "loc": { - "start": { - "line": 674, - "column": 8 - }, - "end": { - "line": 674, - "column": 27 - } - }, - "left": { - "type": "Identifier", - "start": 25926, - "end": 25931, - "loc": { - "start": { - "line": 674, - "column": 8 - }, - "end": { - "line": 674, - "column": 13 - }, - "identifierName": "email" - }, - "name": "email" - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 25936, - "end": 25945, - "loc": { - "start": { - "line": 674, - "column": 18 - }, - "end": { - "line": 674, - "column": 27 - } - }, - "extra": { - "rawValue": "disable", - "raw": "'disable'" - }, - "value": "disable" - } - }, - "consequent": { - "type": "BlockStatement", - "start": 25947, - "end": 25992, - "loc": { - "start": { - "line": 674, - "column": 29 - }, - "end": { - "line": 676, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 25955, - "end": 25986, - "loc": { - "start": { - "line": 675, - "column": 6 - }, - "end": { - "line": 675, - "column": 37 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 25955, - "end": 25985, - "loc": { - "start": { - "line": 675, - "column": 6 - }, - "end": { - "line": 675, - "column": 36 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 25955, - "end": 25959, - "loc": { - "start": { - "line": 675, - "column": 6 - }, - "end": { - "line": 675, - "column": 10 - }, - "identifierName": "path" - }, - "name": "path" - }, - "right": { - "type": "TemplateLiteral", - "start": 25962, - "end": 25985, - "loc": { - "start": { - "line": 675, - "column": 13 - }, - "end": { - "line": 675, - "column": 36 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 25965, - "end": 25969, - "loc": { - "start": { - "line": 675, - "column": 16 - }, - "end": { - "line": 675, - "column": 20 - }, - "identifierName": "path" - }, - "name": "path" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 25963, - "end": 25963, - "loc": { - "start": { - "line": 675, - "column": 14 - }, - "end": { - "line": 675, - "column": 14 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 25970, - "end": 25984, - "loc": { - "start": { - "line": 675, - "column": 21 - }, - "end": { - "line": 675, - "column": 35 - } - }, - "value": { - "raw": "?email=disable", - "cooked": "?email=disable" - }, - "tail": true - } - ] - } - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "VariableDeclaration", - "start": 25998, - "end": 26383, - "loc": { - "start": { - "line": 678, - "column": 4 - }, - "end": { - "line": 691, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 26004, - "end": 26382, - "loc": { - "start": { - "line": 678, - "column": 10 - }, - "end": { - "line": 691, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 26004, - "end": 26007, - "loc": { - "start": { - "line": 678, - "column": 10 - }, - "end": { - "line": 678, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 26010, - "end": 26382, - "loc": { - "start": { - "line": 678, - "column": 16 - }, - "end": { - "line": 691, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 26010, - "end": 26349, - "loc": { - "start": { - "line": 678, - "column": 16 - }, - "end": { - "line": 691, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 26010, - "end": 26339, - "loc": { - "start": { - "line": 678, - "column": 16 - }, - "end": { - "line": 690, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 26010, - "end": 26030, - "loc": { - "start": { - "line": 678, - "column": 16 - }, - "end": { - "line": 679, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 26010, - "end": 26015, - "loc": { - "start": { - "line": 678, - "column": 16 - }, - "end": { - "line": 678, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 26023, - "end": 26030, - "loc": { - "start": { - "line": 679, - "column": 7 - }, - "end": { - "line": 679, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 26031, - "end": 26311, - "loc": { - "start": { - "line": 679, - "column": 15 - }, - "end": { - "line": 690, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 26031, - "end": 26050, - "loc": { - "start": { - "line": 679, - "column": 15 - }, - "end": { - "line": 679, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 26051, - "end": 26310, - "loc": { - "start": { - "line": 679, - "column": 35 - }, - "end": { - "line": 690, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 26061, - "end": 26075, - "loc": { - "start": { - "line": 680, - "column": 8 - }, - "end": { - "line": 680, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 26061, - "end": 26067, - "loc": { - "start": { - "line": 680, - "column": 8 - }, - "end": { - "line": 680, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 26069, - "end": 26075, - "loc": { - "start": { - "line": 680, - "column": 16 - }, - "end": { - "line": 680, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 26085, - "end": 26154, - "loc": { - "start": { - "line": 681, - "column": 8 - }, - "end": { - "line": 684, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 26085, - "end": 26098, - "loc": { - "start": { - "line": 681, - "column": 8 - }, - "end": { - "line": 681, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 26100, - "end": 26154, - "loc": { - "start": { - "line": 681, - "column": 23 - }, - "end": { - "line": 684, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 26112, - "end": 26126, - "loc": { - "start": { - "line": 682, - "column": 10 - }, - "end": { - "line": 682, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 26112, - "end": 26116, - "loc": { - "start": { - "line": 682, - "column": 10 - }, - "end": { - "line": 682, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 26118, - "end": 26126, - "loc": { - "start": { - "line": 682, - "column": 16 - }, - "end": { - "line": 682, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 26138, - "end": 26143, - "loc": { - "start": { - "line": 683, - "column": 10 - }, - "end": { - "line": 683, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 26138, - "end": 26143, - "loc": { - "start": { - "line": 683, - "column": 10 - }, - "end": { - "line": 683, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 26138, - "end": 26143, - "loc": { - "start": { - "line": 683, - "column": 10 - }, - "end": { - "line": 683, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 26164, - "end": 26287, - "loc": { - "start": { - "line": 685, - "column": 8 - }, - "end": { - "line": 688, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 26164, - "end": 26171, - "loc": { - "start": { - "line": 685, - "column": 8 - }, - "end": { - "line": 685, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 26173, - "end": 26287, - "loc": { - "start": { - "line": 685, - "column": 17 - }, - "end": { - "line": 688, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 26185, - "end": 26219, - "loc": { - "start": { - "line": 686, - "column": 10 - }, - "end": { - "line": 686, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 26185, - "end": 26199, - "loc": { - "start": { - "line": 686, - "column": 10 - }, - "end": { - "line": 686, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 26201, - "end": 26219, - "loc": { - "start": { - "line": 686, - "column": 26 - }, - "end": { - "line": 686, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 26231, - "end": 26276, - "loc": { - "start": { - "line": 687, - "column": 10 - }, - "end": { - "line": 687, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 26231, - "end": 26247, - "loc": { - "start": { - "line": 687, - "column": 10 - }, - "end": { - "line": 687, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 26249, - "end": 26276, - "loc": { - "start": { - "line": 687, - "column": 28 - }, - "end": { - "line": 687, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 26249, - "end": 26266, - "loc": { - "start": { - "line": 687, - "column": 28 - }, - "end": { - "line": 687, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 26249, - "end": 26255, - "loc": { - "start": { - "line": 687, - "column": 28 - }, - "end": { - "line": 687, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 26256, - "end": 26266, - "loc": { - "start": { - "line": 687, - "column": 35 - }, - "end": { - "line": 687, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 26267, - "end": 26275, - "loc": { - "start": { - "line": 687, - "column": 46 - }, - "end": { - "line": 687, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 26297, - "end": 26301, - "loc": { - "start": { - "line": 689, - "column": 8 - }, - "end": { - "line": 689, - "column": 12 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 26297, - "end": 26301, - "loc": { - "start": { - "line": 689, - "column": 8 - }, - "end": { - "line": 689, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "Identifier", - "start": 26297, - "end": 26301, - "loc": { - "start": { - "line": 689, - "column": 8 - }, - "end": { - "line": 689, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 26313, - "end": 26338, - "loc": { - "start": { - "line": 690, - "column": 10 - }, - "end": { - "line": 690, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 26313, - "end": 26328, - "loc": { - "start": { - "line": 690, - "column": 10 - }, - "end": { - "line": 690, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 26329, - "end": 26337, - "loc": { - "start": { - "line": 690, - "column": 26 - }, - "end": { - "line": 690, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 26347, - "end": 26349, - "loc": { - "start": { - "line": 691, - "column": 7 - }, - "end": { - "line": 691, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 26350, - "end": 26357, - "loc": { - "start": { - "line": 691, - "column": 10 - }, - "end": { - "line": 691, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 26359, - "end": 26381, - "loc": { - "start": { - "line": 691, - "column": 19 - }, - "end": { - "line": 691, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 26359, - "end": 26371, - "loc": { - "start": { - "line": 691, - "column": 19 - }, - "end": { - "line": 691, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 26372, - "end": 26380, - "loc": { - "start": { - "line": 691, - "column": 32 - }, - "end": { - "line": 691, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 26389, - "end": 26409, - "loc": { - "start": { - "line": 693, - "column": 4 - }, - "end": { - "line": 693, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 26389, - "end": 26408, - "loc": { - "start": { - "line": 693, - "column": 4 - }, - "end": { - "line": 693, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 26389, - "end": 26398, - "loc": { - "start": { - "line": 693, - "column": 4 - }, - "end": { - "line": 693, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 26389, - "end": 26392, - "loc": { - "start": { - "line": 693, - "column": 4 - }, - "end": { - "line": 693, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 26393, - "end": 26398, - "loc": { - "start": { - "line": 693, - "column": 8 - }, - "end": { - "line": 693, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 26399, - "end": 26407, - "loc": { - "start": { - "line": 693, - "column": 14 - }, - "end": { - "line": 693, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 26414, - "end": 26424, - "loc": { - "start": { - "line": 694, - "column": 4 - }, - "end": { - "line": 694, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 26414, - "end": 26423, - "loc": { - "start": { - "line": 694, - "column": 4 - }, - "end": { - "line": 694, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 26414, - "end": 26421, - "loc": { - "start": { - "line": 694, - "column": 4 - }, - "end": { - "line": 694, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 26414, - "end": 26417, - "loc": { - "start": { - "line": 694, - "column": 4 - }, - "end": { - "line": 694, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 26418, - "end": 26421, - "loc": { - "start": { - "line": 694, - "column": 8 - }, - "end": { - "line": 694, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document invite signer settings\n * @typedef {Object} SignerSettings\n * @property {string} email - signer's email\n * @property {string} role - role name\n * @property {string} [role_id] - role unique id (can be discovered in document details)\n * @property {number} order - role signing order\n * @property {string} reassign - allow reassign signer\n * @property {string} decline_by_signature - signer can decline invite\n * @property {number} reminder - remind via email in days\n * @property {number} expiration_days - expiration of invite in days\n * @property {string} [subject] - specify subject of email\n * @property {string} [message] - specify body of email\n ", - "start": 22896, - "end": 23590, - "loc": { - "start": { - "line": 596, - "column": 2 - }, - "end": { - "line": 609, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document invite settings\n * @typedef {Object} DocumentInviteSettings\n * @property {string} from - email of sender\n * @property {SignerSettings[]|string} to - array of signers or email of single signer\n * @property {string} [document_id] - an id of document\n * @property {string[]} [cc] - array with emails of copy receivers\n * @property {string} [subject] - specify subject of email\n * @property {string} [message] - specify body of email\n * @property {string} [on_complete] - on signing complete action\n ", - "start": 23594, - "end": 24128, - "loc": { - "start": { - "line": 611, - "column": 2 - }, - "end": { - "line": 621, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document invite optional settings\n * @typedef {Object} DocumentInviteOptions\n * @property {string} [email] - ability to disable invitation by email. to disable email assign value 'disable'\n ", - "start": 24132, - "end": 24339, - "loc": { - "start": { - "line": 623, - "column": 2 - }, - "end": { - "line": 627, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document invite payload\n * @typedef {Object} DocumentInviteParams\n * @property {string} id - an id of document\n * @property {DocumentInviteSettings} data - document invite settings\n * @property {DocumentInviteOptions} [options] - document invite optional settings\n * @property {string} token - your auth token\n ", - "start": 24343, - "end": 24684, - "loc": { - "start": { - "line": 629, - "column": 2 - }, - "end": { - "line": 636, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document field invite response data\n * @typedef {Object} DocumentFieldInviteResponse\n * @property {string} status - status of invitation, e.g. 'success'\n ", - "start": 24688, - "end": 24866, - "loc": { - "start": { - "line": 638, - "column": 2 - }, - "end": { - "line": 642, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document free form invite response data\n * @typedef {Object} DocumentFreeformInviteResponse\n * @property {string} result - free form invitation result, e.g. 'success'\n * @property {string} id - unique id of invite\n * @property {string} callback_url - url for front-end redirect or 'none'\n ", - "start": 24870, - "end": 25187, - "loc": { - "start": { - "line": 644, - "column": 2 - }, - "end": { - "line": 650, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document invite response data\n * @typedef {DocumentFieldInviteResponse|DocumentFreeformInviteResponse} DocumentInviteResponse\n ", - "start": 25191, - "end": 25340, - "loc": { - "start": { - "line": 652, - "column": 2 - }, - "end": { - "line": 655, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates an invite to sign a document.\n * You can create a simple free form invite(s) or a role-based invite(s).\n * @param {DocumentInviteParams} data - create document invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentInviteResponse)} [callback] - error first node.js callback\n ", - "start": 25344, - "end": 25662, - "loc": { - "start": { - "line": 657, - "column": 2 - }, - "end": { - "line": 662, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Cancel freeform invite payload\n * @typedef {Object} CancelFreeformInviteParams\n * @property {string} id - unique id of invite\n * @property {string} token - your auth token\n ", - "start": 26432, - "end": 26624, - "loc": { - "start": { - "line": 697, - "column": 2 - }, - "end": { - "line": 702, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancel freeform invite response data\n * @typedef {Object} CancelFreeformInviteResponse\n * @property {string} id - unique id of invite\n ", - "start": 26628, - "end": 26780, - "loc": { - "start": { - "line": 704, - "column": 2 - }, - "end": { - "line": 708, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancels sent freeform invite\n * @param {CancelFreeformInviteParams} data - cancel freeform invite payload\n * @param {function(err: ApiErrorResponse, res: CancelFreeformInviteResponse)} [callback] - error first node.js callback\n ", - "start": 26784, - "end": 27029, - "loc": { - "start": { - "line": 710, - "column": 2 - }, - "end": { - "line": 714, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 27032, - "end": 27372, - "loc": { - "start": { - "line": 715, - "column": 2 - }, - "end": { - "line": 727, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 27039, - "end": 27059, - "loc": { - "start": { - "line": 715, - "column": 9 - }, - "end": { - "line": 715, - "column": 29 - }, - "identifierName": "cancelFreeFormInvite" - }, - "name": "cancelFreeFormInvite" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 27061, - "end": 27074, - "loc": { - "start": { - "line": 715, - "column": 31 - }, - "end": { - "line": 715, - "column": 44 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 27063, - "end": 27065, - "loc": { - "start": { - "line": 715, - "column": 33 - }, - "end": { - "line": 715, - "column": 35 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 27063, - "end": 27065, - "loc": { - "start": { - "line": 715, - "column": 33 - }, - "end": { - "line": 715, - "column": 35 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 27063, - "end": 27065, - "loc": { - "start": { - "line": 715, - "column": 33 - }, - "end": { - "line": 715, - "column": 35 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 27067, - "end": 27072, - "loc": { - "start": { - "line": 715, - "column": 37 - }, - "end": { - "line": 715, - "column": 42 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 27067, - "end": 27072, - "loc": { - "start": { - "line": 715, - "column": 37 - }, - "end": { - "line": 715, - "column": 42 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 27067, - "end": 27072, - "loc": { - "start": { - "line": 715, - "column": 37 - }, - "end": { - "line": 715, - "column": 42 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 27076, - "end": 27084, - "loc": { - "start": { - "line": 715, - "column": 46 - }, - "end": { - "line": 715, - "column": 54 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 27086, - "end": 27372, - "loc": { - "start": { - "line": 715, - "column": 56 - }, - "end": { - "line": 727, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 27092, - "end": 27368, - "loc": { - "start": { - "line": 716, - "column": 4 - }, - "end": { - "line": 726, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 27092, - "end": 27367, - "loc": { - "start": { - "line": 716, - "column": 4 - }, - "end": { - "line": 726, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 27092, - "end": 27365, - "loc": { - "start": { - "line": 716, - "column": 4 - }, - "end": { - "line": 726, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 27092, - "end": 27354, - "loc": { - "start": { - "line": 716, - "column": 4 - }, - "end": { - "line": 725, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 27092, - "end": 27321, - "loc": { - "start": { - "line": 716, - "column": 4 - }, - "end": { - "line": 725, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 27092, - "end": 27311, - "loc": { - "start": { - "line": 716, - "column": 4 - }, - "end": { - "line": 724, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 27092, - "end": 27112, - "loc": { - "start": { - "line": 716, - "column": 4 - }, - "end": { - "line": 717, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 27092, - "end": 27097, - "loc": { - "start": { - "line": 716, - "column": 4 - }, - "end": { - "line": 716, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 27105, - "end": 27112, - "loc": { - "start": { - "line": 717, - "column": 7 - }, - "end": { - "line": 717, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 27113, - "end": 27283, - "loc": { - "start": { - "line": 717, - "column": 15 - }, - "end": { - "line": 724, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 27113, - "end": 27132, - "loc": { - "start": { - "line": 717, - "column": 15 - }, - "end": { - "line": 717, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 27133, - "end": 27282, - "loc": { - "start": { - "line": 717, - "column": 35 - }, - "end": { - "line": 724, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 27143, - "end": 27156, - "loc": { - "start": { - "line": 718, - "column": 8 - }, - "end": { - "line": 718, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 27143, - "end": 27149, - "loc": { - "start": { - "line": 718, - "column": 8 - }, - "end": { - "line": 718, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 27151, - "end": 27156, - "loc": { - "start": { - "line": 718, - "column": 16 - }, - "end": { - "line": 718, - "column": 21 - } - }, - "extra": { - "rawValue": "PUT", - "raw": "'PUT'" - }, - "value": "PUT" - } - }, - { - "type": "ObjectProperty", - "start": 27166, - "end": 27194, - "loc": { - "start": { - "line": 719, - "column": 8 - }, - "end": { - "line": 719, - "column": 36 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 27166, - "end": 27170, - "loc": { - "start": { - "line": 719, - "column": 8 - }, - "end": { - "line": 719, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 27172, - "end": 27194, - "loc": { - "start": { - "line": 719, - "column": 14 - }, - "end": { - "line": 719, - "column": 36 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 27183, - "end": 27185, - "loc": { - "start": { - "line": 719, - "column": 25 - }, - "end": { - "line": 719, - "column": 27 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 27173, - "end": 27181, - "loc": { - "start": { - "line": 719, - "column": 15 - }, - "end": { - "line": 719, - "column": 23 - } - }, - "value": { - "raw": "/invite/", - "cooked": "/invite/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 27186, - "end": 27193, - "loc": { - "start": { - "line": 719, - "column": 28 - }, - "end": { - "line": 719, - "column": 35 - } - }, - "value": { - "raw": "/cancel", - "cooked": "/cancel" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 27204, - "end": 27273, - "loc": { - "start": { - "line": 720, - "column": 8 - }, - "end": { - "line": 723, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 27204, - "end": 27217, - "loc": { - "start": { - "line": 720, - "column": 8 - }, - "end": { - "line": 720, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 27219, - "end": 27273, - "loc": { - "start": { - "line": 720, - "column": 23 - }, - "end": { - "line": 723, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 27231, - "end": 27245, - "loc": { - "start": { - "line": 721, - "column": 10 - }, - "end": { - "line": 721, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 27231, - "end": 27235, - "loc": { - "start": { - "line": 721, - "column": 10 - }, - "end": { - "line": 721, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 27237, - "end": 27245, - "loc": { - "start": { - "line": 721, - "column": 16 - }, - "end": { - "line": 721, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 27257, - "end": 27262, - "loc": { - "start": { - "line": 722, - "column": 10 - }, - "end": { - "line": 722, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 27257, - "end": 27262, - "loc": { - "start": { - "line": 722, - "column": 10 - }, - "end": { - "line": 722, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 27257, - "end": 27262, - "loc": { - "start": { - "line": 722, - "column": 10 - }, - "end": { - "line": 722, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 27285, - "end": 27310, - "loc": { - "start": { - "line": 724, - "column": 10 - }, - "end": { - "line": 724, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 27285, - "end": 27300, - "loc": { - "start": { - "line": 724, - "column": 10 - }, - "end": { - "line": 724, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 27301, - "end": 27309, - "loc": { - "start": { - "line": 724, - "column": 26 - }, - "end": { - "line": 724, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 27319, - "end": 27321, - "loc": { - "start": { - "line": 725, - "column": 7 - }, - "end": { - "line": 725, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 27322, - "end": 27329, - "loc": { - "start": { - "line": 725, - "column": 10 - }, - "end": { - "line": 725, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 27331, - "end": 27353, - "loc": { - "start": { - "line": 725, - "column": 19 - }, - "end": { - "line": 725, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 27331, - "end": 27343, - "loc": { - "start": { - "line": 725, - "column": 19 - }, - "end": { - "line": 725, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 27344, - "end": 27352, - "loc": { - "start": { - "line": 725, - "column": 32 - }, - "end": { - "line": 725, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 27362, - "end": 27365, - "loc": { - "start": { - "line": 726, - "column": 7 - }, - "end": { - "line": 726, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Cancel freeform invite payload\n * @typedef {Object} CancelFreeformInviteParams\n * @property {string} id - unique id of invite\n * @property {string} token - your auth token\n ", - "start": 26432, - "end": 26624, - "loc": { - "start": { - "line": 697, - "column": 2 - }, - "end": { - "line": 702, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancel freeform invite response data\n * @typedef {Object} CancelFreeformInviteResponse\n * @property {string} id - unique id of invite\n ", - "start": 26628, - "end": 26780, - "loc": { - "start": { - "line": 704, - "column": 2 - }, - "end": { - "line": 708, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancels sent freeform invite\n * @param {CancelFreeformInviteParams} data - cancel freeform invite payload\n * @param {function(err: ApiErrorResponse, res: CancelFreeformInviteResponse)} [callback] - error first node.js callback\n ", - "start": 26784, - "end": 27029, - "loc": { - "start": { - "line": 710, - "column": 2 - }, - "end": { - "line": 714, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Cancel document field invite payload\n * @typedef {Object} DocumentFieldInviteCancelParams\n * @property {string} id - an id of document\n * @property {string} token - your auth token\n ", - "start": 27376, - "end": 27577, - "loc": { - "start": { - "line": 729, - "column": 2 - }, - "end": { - "line": 734, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancel document field invite response data\n * @typedef {Object} DocumentFieldInviteCancelResponse\n * @property {string} status - status of field invite cancellation, e.g. 'success'\n ", - "start": 27581, - "end": 27780, - "loc": { - "start": { - "line": 736, - "column": 2 - }, - "end": { - "line": 740, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancels an invite to a document\n * @param {DocumentFieldInviteCancelParams} data - cancel field invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentFieldInviteCancelResponse)} [callback] - error first node.js callback\n ", - "start": 27784, - "end": 28039, - "loc": { - "start": { - "line": 742, - "column": 2 - }, - "end": { - "line": 746, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 28042, - "end": 28392, - "loc": { - "start": { - "line": 747, - "column": 2 - }, - "end": { - "line": 759, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 28049, - "end": 28066, - "loc": { - "start": { - "line": 747, - "column": 9 - }, - "end": { - "line": 747, - "column": 26 - }, - "identifierName": "cancelFieldInvite" - }, - "name": "cancelFieldInvite" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 28068, - "end": 28081, - "loc": { - "start": { - "line": 747, - "column": 28 - }, - "end": { - "line": 747, - "column": 41 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 28070, - "end": 28072, - "loc": { - "start": { - "line": 747, - "column": 30 - }, - "end": { - "line": 747, - "column": 32 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 28070, - "end": 28072, - "loc": { - "start": { - "line": 747, - "column": 30 - }, - "end": { - "line": 747, - "column": 32 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 28070, - "end": 28072, - "loc": { - "start": { - "line": 747, - "column": 30 - }, - "end": { - "line": 747, - "column": 32 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 28074, - "end": 28079, - "loc": { - "start": { - "line": 747, - "column": 34 - }, - "end": { - "line": 747, - "column": 39 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 28074, - "end": 28079, - "loc": { - "start": { - "line": 747, - "column": 34 - }, - "end": { - "line": 747, - "column": 39 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 28074, - "end": 28079, - "loc": { - "start": { - "line": 747, - "column": 34 - }, - "end": { - "line": 747, - "column": 39 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 28083, - "end": 28091, - "loc": { - "start": { - "line": 747, - "column": 43 - }, - "end": { - "line": 747, - "column": 51 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 28093, - "end": 28392, - "loc": { - "start": { - "line": 747, - "column": 53 - }, - "end": { - "line": 759, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 28099, - "end": 28388, - "loc": { - "start": { - "line": 748, - "column": 4 - }, - "end": { - "line": 758, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 28099, - "end": 28387, - "loc": { - "start": { - "line": 748, - "column": 4 - }, - "end": { - "line": 758, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 28099, - "end": 28385, - "loc": { - "start": { - "line": 748, - "column": 4 - }, - "end": { - "line": 758, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 28099, - "end": 28374, - "loc": { - "start": { - "line": 748, - "column": 4 - }, - "end": { - "line": 757, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 28099, - "end": 28341, - "loc": { - "start": { - "line": 748, - "column": 4 - }, - "end": { - "line": 757, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 28099, - "end": 28331, - "loc": { - "start": { - "line": 748, - "column": 4 - }, - "end": { - "line": 756, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 28099, - "end": 28119, - "loc": { - "start": { - "line": 748, - "column": 4 - }, - "end": { - "line": 749, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 28099, - "end": 28104, - "loc": { - "start": { - "line": 748, - "column": 4 - }, - "end": { - "line": 748, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 28112, - "end": 28119, - "loc": { - "start": { - "line": 749, - "column": 7 - }, - "end": { - "line": 749, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 28120, - "end": 28303, - "loc": { - "start": { - "line": 749, - "column": 15 - }, - "end": { - "line": 756, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 28120, - "end": 28139, - "loc": { - "start": { - "line": 749, - "column": 15 - }, - "end": { - "line": 749, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 28140, - "end": 28302, - "loc": { - "start": { - "line": 749, - "column": 35 - }, - "end": { - "line": 756, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 28150, - "end": 28163, - "loc": { - "start": { - "line": 750, - "column": 8 - }, - "end": { - "line": 750, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 28150, - "end": 28156, - "loc": { - "start": { - "line": 750, - "column": 8 - }, - "end": { - "line": 750, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 28158, - "end": 28163, - "loc": { - "start": { - "line": 750, - "column": 16 - }, - "end": { - "line": 750, - "column": 21 - } - }, - "extra": { - "rawValue": "PUT", - "raw": "'PUT'" - }, - "value": "PUT" - } - }, - { - "type": "ObjectProperty", - "start": 28173, - "end": 28214, - "loc": { - "start": { - "line": 751, - "column": 8 - }, - "end": { - "line": 751, - "column": 49 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 28173, - "end": 28177, - "loc": { - "start": { - "line": 751, - "column": 8 - }, - "end": { - "line": 751, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 28179, - "end": 28214, - "loc": { - "start": { - "line": 751, - "column": 14 - }, - "end": { - "line": 751, - "column": 49 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 28192, - "end": 28194, - "loc": { - "start": { - "line": 751, - "column": 27 - }, - "end": { - "line": 751, - "column": 29 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 28180, - "end": 28190, - "loc": { - "start": { - "line": 751, - "column": 15 - }, - "end": { - "line": 751, - "column": 25 - } - }, - "value": { - "raw": "/document/", - "cooked": "/document/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 28195, - "end": 28213, - "loc": { - "start": { - "line": 751, - "column": 30 - }, - "end": { - "line": 751, - "column": 48 - } - }, - "value": { - "raw": "/fieldinvitecancel", - "cooked": "/fieldinvitecancel" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 28224, - "end": 28293, - "loc": { - "start": { - "line": 752, - "column": 8 - }, - "end": { - "line": 755, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 28224, - "end": 28237, - "loc": { - "start": { - "line": 752, - "column": 8 - }, - "end": { - "line": 752, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 28239, - "end": 28293, - "loc": { - "start": { - "line": 752, - "column": 23 - }, - "end": { - "line": 755, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 28251, - "end": 28265, - "loc": { - "start": { - "line": 753, - "column": 10 - }, - "end": { - "line": 753, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 28251, - "end": 28255, - "loc": { - "start": { - "line": 753, - "column": 10 - }, - "end": { - "line": 753, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 28257, - "end": 28265, - "loc": { - "start": { - "line": 753, - "column": 16 - }, - "end": { - "line": 753, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 28277, - "end": 28282, - "loc": { - "start": { - "line": 754, - "column": 10 - }, - "end": { - "line": 754, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 28277, - "end": 28282, - "loc": { - "start": { - "line": 754, - "column": 10 - }, - "end": { - "line": 754, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 28277, - "end": 28282, - "loc": { - "start": { - "line": 754, - "column": 10 - }, - "end": { - "line": 754, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 28305, - "end": 28330, - "loc": { - "start": { - "line": 756, - "column": 10 - }, - "end": { - "line": 756, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 28305, - "end": 28320, - "loc": { - "start": { - "line": 756, - "column": 10 - }, - "end": { - "line": 756, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 28321, - "end": 28329, - "loc": { - "start": { - "line": 756, - "column": 26 - }, - "end": { - "line": 756, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 28339, - "end": 28341, - "loc": { - "start": { - "line": 757, - "column": 7 - }, - "end": { - "line": 757, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 28342, - "end": 28349, - "loc": { - "start": { - "line": 757, - "column": 10 - }, - "end": { - "line": 757, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 28351, - "end": 28373, - "loc": { - "start": { - "line": 757, - "column": 19 - }, - "end": { - "line": 757, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 28351, - "end": 28363, - "loc": { - "start": { - "line": 757, - "column": 19 - }, - "end": { - "line": 757, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 28364, - "end": 28372, - "loc": { - "start": { - "line": 757, - "column": 32 - }, - "end": { - "line": 757, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 28382, - "end": 28385, - "loc": { - "start": { - "line": 758, - "column": 7 - }, - "end": { - "line": 758, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Cancel document field invite payload\n * @typedef {Object} DocumentFieldInviteCancelParams\n * @property {string} id - an id of document\n * @property {string} token - your auth token\n ", - "start": 27376, - "end": 27577, - "loc": { - "start": { - "line": 729, - "column": 2 - }, - "end": { - "line": 734, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancel document field invite response data\n * @typedef {Object} DocumentFieldInviteCancelResponse\n * @property {string} status - status of field invite cancellation, e.g. 'success'\n ", - "start": 27581, - "end": 27780, - "loc": { - "start": { - "line": 736, - "column": 2 - }, - "end": { - "line": 740, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancels an invite to a document\n * @param {DocumentFieldInviteCancelParams} data - cancel field invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentFieldInviteCancelResponse)} [callback] - error first node.js callback\n ", - "start": 27784, - "end": 28039, - "loc": { - "start": { - "line": 742, - "column": 2 - }, - "end": { - "line": 746, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Cancels an invite to a document\n * @deprecated use Document.cancelFieldInvite instead of this\n * @param {DocumentFieldInviteCancelParams} data - cancel field invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentFieldInviteCancelResponse)} [callback] - error first node.js callback\n ", - "start": 28396, - "end": 28715, - "loc": { - "start": { - "line": 761, - "column": 2 - }, - "end": { - "line": 766, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 28718, - "end": 28843, - "loc": { - "start": { - "line": 767, - "column": 2 - }, - "end": { - "line": 772, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 28725, - "end": 28737, - "loc": { - "start": { - "line": 767, - "column": 9 - }, - "end": { - "line": 767, - "column": 21 - }, - "identifierName": "cancelInvite" - }, - "name": "cancelInvite" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 28739, - "end": 28752, - "loc": { - "start": { - "line": 767, - "column": 23 - }, - "end": { - "line": 767, - "column": 36 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 28741, - "end": 28743, - "loc": { - "start": { - "line": 767, - "column": 25 - }, - "end": { - "line": 767, - "column": 27 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 28741, - "end": 28743, - "loc": { - "start": { - "line": 767, - "column": 25 - }, - "end": { - "line": 767, - "column": 27 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 28741, - "end": 28743, - "loc": { - "start": { - "line": 767, - "column": 25 - }, - "end": { - "line": 767, - "column": 27 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 28745, - "end": 28750, - "loc": { - "start": { - "line": 767, - "column": 29 - }, - "end": { - "line": 767, - "column": 34 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 28745, - "end": 28750, - "loc": { - "start": { - "line": 767, - "column": 29 - }, - "end": { - "line": 767, - "column": 34 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 28745, - "end": 28750, - "loc": { - "start": { - "line": 767, - "column": 29 - }, - "end": { - "line": 767, - "column": 34 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 28754, - "end": 28762, - "loc": { - "start": { - "line": 767, - "column": 38 - }, - "end": { - "line": 767, - "column": 46 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 28764, - "end": 28843, - "loc": { - "start": { - "line": 767, - "column": 48 - }, - "end": { - "line": 772, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 28770, - "end": 28839, - "loc": { - "start": { - "line": 768, - "column": 4 - }, - "end": { - "line": 771, - "column": 17 - } - }, - "expression": { - "type": "CallExpression", - "start": 28770, - "end": 28838, - "loc": { - "start": { - "line": 768, - "column": 4 - }, - "end": { - "line": 771, - "column": 16 - } - }, - "callee": { - "type": "MemberExpression", - "start": 28770, - "end": 28796, - "loc": { - "start": { - "line": 768, - "column": 4 - }, - "end": { - "line": 768, - "column": 30 - } - }, - "object": { - "type": "Identifier", - "start": 28770, - "end": 28778, - "loc": { - "start": { - "line": 768, - "column": 4 - }, - "end": { - "line": 768, - "column": 12 - }, - "identifierName": "Document" - }, - "name": "Document" - }, - "property": { - "type": "Identifier", - "start": 28779, - "end": 28796, - "loc": { - "start": { - "line": 768, - "column": 13 - }, - "end": { - "line": 768, - "column": 30 - }, - "identifierName": "cancelFieldInvite" - }, - "name": "cancelFieldInvite" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 28797, - "end": 28827, - "loc": { - "start": { - "line": 768, - "column": 31 - }, - "end": { - "line": 771, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 28805, - "end": 28807, - "loc": { - "start": { - "line": 769, - "column": 6 - }, - "end": { - "line": 769, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 28805, - "end": 28807, - "loc": { - "start": { - "line": 769, - "column": 6 - }, - "end": { - "line": 769, - "column": 8 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 28805, - "end": 28807, - "loc": { - "start": { - "line": 769, - "column": 6 - }, - "end": { - "line": 769, - "column": 8 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 28815, - "end": 28820, - "loc": { - "start": { - "line": 770, - "column": 6 - }, - "end": { - "line": 770, - "column": 11 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 28815, - "end": 28820, - "loc": { - "start": { - "line": 770, - "column": 6 - }, - "end": { - "line": 770, - "column": 11 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 28815, - "end": 28820, - "loc": { - "start": { - "line": 770, - "column": 6 - }, - "end": { - "line": 770, - "column": 11 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 28829, - "end": 28837, - "loc": { - "start": { - "line": 771, - "column": 7 - }, - "end": { - "line": 771, - "column": 15 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Cancels an invite to a document\n * @deprecated use Document.cancelFieldInvite instead of this\n * @param {DocumentFieldInviteCancelParams} data - cancel field invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentFieldInviteCancelResponse)} [callback] - error first node.js callback\n ", - "start": 28396, - "end": 28715, - "loc": { - "start": { - "line": 761, - "column": 2 - }, - "end": { - "line": 766, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Merge documents optional settings\n * @typedef {Object} DocumentMergeOptions\n * @property {boolean} [removeOriginalDocuments=false] - if true original documents will be removed\n ", - "start": 28847, - "end": 29041, - "loc": { - "start": { - "line": 774, - "column": 2 - }, - "end": { - "line": 778, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Merge documents payload\n * @typedef {Object} DocumentMergeParams\n * @property {string} token - your auth token\n * @property {string} name - new name for merged document\n * @property {string[]} document_ids - an array of document IDs\n * @property {DocumentMergeOptions} options - merge documents optional settings\n ", - "start": 29045, - "end": 29382, - "loc": { - "start": { - "line": 780, - "column": 2 - }, - "end": { - "line": 787, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Merge documents response data\n * @typedef {Object} DocumentMergeResponse\n * @property {string} document_id - an ID of merged document\n ", - "start": 29386, - "end": 29538, - "loc": { - "start": { - "line": 789, - "column": 2 - }, - "end": { - "line": 793, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Merges existing documents into one.\n * By default original documents are not removed after merging. To remove original documents set `removeOriginalDocuments` option to `true`.\n * @param {DocumentMergeParams} data - merge documents payload\n * @param {function(err: ApiErrorResponse, res: DocumentMergeResponse)} [originalCallback] - error first node.js callback\n ", - "start": 29542, - "end": 29924, - "loc": { - "start": { - "line": 795, - "column": 2 - }, - "end": { - "line": 800, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 29927, - "end": 31898, - "loc": { - "start": { - "line": 801, - "column": 2 - }, - "end": { - "line": 874, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 29934, - "end": 29939, - "loc": { - "start": { - "line": 801, - "column": 9 - }, - "end": { - "line": 801, - "column": 14 - }, - "identifierName": "merge" - }, - "name": "merge" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 29941, - "end": 30040, - "loc": { - "start": { - "line": 801, - "column": 16 - }, - "end": { - "line": 806, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 29947, - "end": 29951, - "loc": { - "start": { - "line": 802, - "column": 4 - }, - "end": { - "line": 802, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 29947, - "end": 29951, - "loc": { - "start": { - "line": 802, - "column": 4 - }, - "end": { - "line": 802, - "column": 8 - }, - "identifierName": "name" - }, - "name": "name" - }, - "value": { - "type": "Identifier", - "start": 29947, - "end": 29951, - "loc": { - "start": { - "line": 802, - "column": 4 - }, - "end": { - "line": 802, - "column": 8 - }, - "identifierName": "name" - }, - "name": "name" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 29957, - "end": 29969, - "loc": { - "start": { - "line": 803, - "column": 4 - }, - "end": { - "line": 803, - "column": 16 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 29957, - "end": 29969, - "loc": { - "start": { - "line": 803, - "column": 4 - }, - "end": { - "line": 803, - "column": 16 - }, - "identifierName": "document_ids" - }, - "name": "document_ids" - }, - "value": { - "type": "Identifier", - "start": 29957, - "end": 29969, - "loc": { - "start": { - "line": 803, - "column": 4 - }, - "end": { - "line": 803, - "column": 16 - }, - "identifierName": "document_ids" - }, - "name": "document_ids" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 29975, - "end": 30024, - "loc": { - "start": { - "line": 804, - "column": 4 - }, - "end": { - "line": 804, - "column": 53 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 29975, - "end": 29982, - "loc": { - "start": { - "line": 804, - "column": 4 - }, - "end": { - "line": 804, - "column": 11 - }, - "identifierName": "options" - }, - "name": "options" - }, - "value": { - "type": "AssignmentPattern", - "start": 29984, - "end": 30024, - "loc": { - "start": { - "line": 804, - "column": 13 - }, - "end": { - "line": 804, - "column": 53 - } - }, - "left": { - "type": "ObjectPattern", - "start": 29984, - "end": 30019, - "loc": { - "start": { - "line": 804, - "column": 13 - }, - "end": { - "line": 804, - "column": 48 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 29986, - "end": 30017, - "loc": { - "start": { - "line": 804, - "column": 15 - }, - "end": { - "line": 804, - "column": 46 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 29986, - "end": 30009, - "loc": { - "start": { - "line": 804, - "column": 15 - }, - "end": { - "line": 804, - "column": 38 - }, - "identifierName": "removeOriginalDocuments" - }, - "name": "removeOriginalDocuments" - }, - "value": { - "type": "AssignmentPattern", - "start": 29986, - "end": 30017, - "loc": { - "start": { - "line": 804, - "column": 15 - }, - "end": { - "line": 804, - "column": 46 - } - }, - "left": { - "type": "Identifier", - "start": 29986, - "end": 30009, - "loc": { - "start": { - "line": 804, - "column": 15 - }, - "end": { - "line": 804, - "column": 38 - }, - "identifierName": "removeOriginalDocuments" - }, - "name": "removeOriginalDocuments" - }, - "right": { - "type": "BooleanLiteral", - "start": 30012, - "end": 30017, - "loc": { - "start": { - "line": 804, - "column": 41 - }, - "end": { - "line": 804, - "column": 46 - } - }, - "value": false - } - }, - "extra": { - "shorthand": true - } - } - ] - }, - "right": { - "type": "ObjectExpression", - "start": 30022, - "end": 30024, - "loc": { - "start": { - "line": 804, - "column": 51 - }, - "end": { - "line": 804, - "column": 53 - } - }, - "properties": [] - } - } - }, - { - "type": "ObjectProperty", - "start": 30030, - "end": 30035, - "loc": { - "start": { - "line": 805, - "column": 4 - }, - "end": { - "line": 805, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 30030, - "end": 30035, - "loc": { - "start": { - "line": 805, - "column": 4 - }, - "end": { - "line": 805, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 30030, - "end": 30035, - "loc": { - "start": { - "line": 805, - "column": 4 - }, - "end": { - "line": 805, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 30042, - "end": 30058, - "loc": { - "start": { - "line": 806, - "column": 5 - }, - "end": { - "line": 806, - "column": 21 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - } - ], - "body": { - "type": "BlockStatement", - "start": 30060, - "end": 31898, - "loc": { - "start": { - "line": 806, - "column": 23 - }, - "end": { - "line": 874, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 30066, - "end": 30168, - "loc": { - "start": { - "line": 807, - "column": 4 - }, - "end": { - "line": 811, - "column": 7 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 30072, - "end": 30167, - "loc": { - "start": { - "line": 807, - "column": 10 - }, - "end": { - "line": 811, - "column": 6 - } - }, - "id": { - "type": "Identifier", - "start": 30072, - "end": 30080, - "loc": { - "start": { - "line": 807, - "column": 10 - }, - "end": { - "line": 807, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 30083, - "end": 30167, - "loc": { - "start": { - "line": 807, - "column": 21 - }, - "end": { - "line": 811, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 30083, - "end": 30097, - "loc": { - "start": { - "line": 807, - "column": 21 - }, - "end": { - "line": 807, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 30083, - "end": 30087, - "loc": { - "start": { - "line": 807, - "column": 21 - }, - "end": { - "line": 807, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 30088, - "end": 30097, - "loc": { - "start": { - "line": 807, - "column": 26 - }, - "end": { - "line": 807, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 30098, - "end": 30166, - "loc": { - "start": { - "line": 807, - "column": 36 - }, - "end": { - "line": 811, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 30106, - "end": 30127, - "loc": { - "start": { - "line": 808, - "column": 6 - }, - "end": { - "line": 808, - "column": 27 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 30106, - "end": 30121, - "loc": { - "start": { - "line": 808, - "column": 6 - }, - "end": { - "line": 808, - "column": 21 - }, - "identifierName": "upload_document" - }, - "name": "upload_document" - }, - "value": { - "type": "BooleanLiteral", - "start": 30123, - "end": 30127, - "loc": { - "start": { - "line": 808, - "column": 23 - }, - "end": { - "line": 808, - "column": 27 - } - }, - "value": true - } - }, - { - "type": "ObjectProperty", - "start": 30135, - "end": 30147, - "loc": { - "start": { - "line": 809, - "column": 6 - }, - "end": { - "line": 809, - "column": 18 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 30135, - "end": 30147, - "loc": { - "start": { - "line": 809, - "column": 6 - }, - "end": { - "line": 809, - "column": 18 - }, - "identifierName": "document_ids" - }, - "name": "document_ids" - }, - "value": { - "type": "Identifier", - "start": 30135, - "end": 30147, - "loc": { - "start": { - "line": 809, - "column": 6 - }, - "end": { - "line": 809, - "column": 18 - }, - "identifierName": "document_ids" - }, - "name": "document_ids" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 30155, - "end": 30159, - "loc": { - "start": { - "line": 810, - "column": 6 - }, - "end": { - "line": 810, - "column": 10 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 30155, - "end": 30159, - "loc": { - "start": { - "line": 810, - "column": 6 - }, - "end": { - "line": 810, - "column": 10 - }, - "identifierName": "name" - }, - "name": "name" - }, - "value": { - "type": "Identifier", - "start": 30155, - "end": 30159, - "loc": { - "start": { - "line": 810, - "column": 6 - }, - "end": { - "line": 810, - "column": 10 - }, - "identifierName": "name" - }, - "name": "name" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 30174, - "end": 31326, - "loc": { - "start": { - "line": 813, - "column": 4 - }, - "end": { - "line": 851, - "column": 6 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 30180, - "end": 31325, - "loc": { - "start": { - "line": 813, - "column": 10 - }, - "end": { - "line": 851, - "column": 5 - } - }, - "id": { - "type": "Identifier", - "start": 30180, - "end": 30208, - "loc": { - "start": { - "line": 813, - "column": 10 - }, - "end": { - "line": 813, - "column": 38 - }, - "identifierName": "callbackWithDocumentDeletion" - }, - "name": "callbackWithDocumentDeletion" - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 30211, - "end": 31325, - "loc": { - "start": { - "line": 813, - "column": 41 - }, - "end": { - "line": 851, - "column": 5 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 30212, - "end": 30220, - "loc": { - "start": { - "line": 813, - "column": 42 - }, - "end": { - "line": 813, - "column": 50 - }, - "identifierName": "mergeErr" - }, - "name": "mergeErr" - }, - { - "type": "Identifier", - "start": 30222, - "end": 30230, - "loc": { - "start": { - "line": 813, - "column": 52 - }, - "end": { - "line": 813, - "column": 60 - }, - "identifierName": "mergeRes" - }, - "name": "mergeRes" - } - ], - "body": { - "type": "BlockStatement", - "start": 30235, - "end": 31325, - "loc": { - "start": { - "line": 813, - "column": 65 - }, - "end": { - "line": 851, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 30243, - "end": 31319, - "loc": { - "start": { - "line": 814, - "column": 6 - }, - "end": { - "line": 850, - "column": 7 - } - }, - "test": { - "type": "Identifier", - "start": 30247, - "end": 30255, - "loc": { - "start": { - "line": 814, - "column": 10 - }, - "end": { - "line": 814, - "column": 18 - }, - "identifierName": "mergeErr" - }, - "name": "mergeErr" - }, - "consequent": { - "type": "BlockStatement", - "start": 30257, - "end": 30318, - "loc": { - "start": { - "line": 814, - "column": 20 - }, - "end": { - "line": 817, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 30267, - "end": 30294, - "loc": { - "start": { - "line": 815, - "column": 8 - }, - "end": { - "line": 815, - "column": 35 - } - }, - "expression": { - "type": "CallExpression", - "start": 30267, - "end": 30293, - "loc": { - "start": { - "line": 815, - "column": 8 - }, - "end": { - "line": 815, - "column": 34 - } - }, - "callee": { - "type": "Identifier", - "start": 30267, - "end": 30283, - "loc": { - "start": { - "line": 815, - "column": 8 - }, - "end": { - "line": 815, - "column": 24 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 30284, - "end": 30292, - "loc": { - "start": { - "line": 815, - "column": 25 - }, - "end": { - "line": 815, - "column": 33 - }, - "identifierName": "mergeErr" - }, - "name": "mergeErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 30303, - "end": 30310, - "loc": { - "start": { - "line": 816, - "column": 8 - }, - "end": { - "line": 816, - "column": 15 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 30324, - "end": 31319, - "loc": { - "start": { - "line": 817, - "column": 13 - }, - "end": { - "line": 850, - "column": 7 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 30335, - "end": 30656, - "loc": { - "start": { - "line": 819, - "column": 8 - }, - "end": { - "line": 830, - "column": 11 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 30341, - "end": 30655, - "loc": { - "start": { - "line": 819, - "column": 14 - }, - "end": { - "line": 830, - "column": 10 - } - }, - "id": { - "type": "Identifier", - "start": 30341, - "end": 30355, - "loc": { - "start": { - "line": 819, - "column": 14 - }, - "end": { - "line": 819, - "column": 28 - }, - "identifierName": "removeDocument" - }, - "name": "removeDocument" - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 30358, - "end": 30655, - "loc": { - "start": { - "line": 819, - "column": 31 - }, - "end": { - "line": 830, - "column": 10 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 30359, - "end": 30365, - "loc": { - "start": { - "line": 819, - "column": 32 - }, - "end": { - "line": 819, - "column": 38 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 30361, - "end": 30363, - "loc": { - "start": { - "line": 819, - "column": 34 - }, - "end": { - "line": 819, - "column": 36 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 30361, - "end": 30363, - "loc": { - "start": { - "line": 819, - "column": 34 - }, - "end": { - "line": 819, - "column": 36 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 30361, - "end": 30363, - "loc": { - "start": { - "line": 819, - "column": 34 - }, - "end": { - "line": 819, - "column": 36 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - } - ] - } - ], - "body": { - "type": "NewExpression", - "start": 30370, - "end": 30655, - "loc": { - "start": { - "line": 819, - "column": 43 - }, - "end": { - "line": 830, - "column": 10 - } - }, - "callee": { - "type": "Identifier", - "start": 30374, - "end": 30381, - "loc": { - "start": { - "line": 819, - "column": 47 - }, - "end": { - "line": 819, - "column": 54 - }, - "identifierName": "Promise" - }, - "name": "Promise" - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 30382, - "end": 30654, - "loc": { - "start": { - "line": 819, - "column": 55 - }, - "end": { - "line": 830, - "column": 9 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 30383, - "end": 30390, - "loc": { - "start": { - "line": 819, - "column": 56 - }, - "end": { - "line": 819, - "column": 63 - }, - "identifierName": "resolve" - }, - "name": "resolve" - }, - { - "type": "Identifier", - "start": 30392, - "end": 30398, - "loc": { - "start": { - "line": 819, - "column": 65 - }, - "end": { - "line": 819, - "column": 71 - }, - "identifierName": "reject" - }, - "name": "reject" - } - ], - "body": { - "type": "BlockStatement", - "start": 30403, - "end": 30654, - "loc": { - "start": { - "line": 819, - "column": 76 - }, - "end": { - "line": 830, - "column": 9 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 30415, - "end": 30644, - "loc": { - "start": { - "line": 820, - "column": 10 - }, - "end": { - "line": 829, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 30415, - "end": 30643, - "loc": { - "start": { - "line": 820, - "column": 10 - }, - "end": { - "line": 829, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 30415, - "end": 30430, - "loc": { - "start": { - "line": 820, - "column": 10 - }, - "end": { - "line": 820, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 30415, - "end": 30423, - "loc": { - "start": { - "line": 820, - "column": 10 - }, - "end": { - "line": 820, - "column": 18 - }, - "identifierName": "Document" - }, - "name": "Document" - }, - "property": { - "type": "Identifier", - "start": 30424, - "end": 30430, - "loc": { - "start": { - "line": 820, - "column": 19 - }, - "end": { - "line": 820, - "column": 25 - }, - "identifierName": "remove" - }, - "name": "remove" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 30431, - "end": 30479, - "loc": { - "start": { - "line": 820, - "column": 26 - }, - "end": { - "line": 823, - "column": 11 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 30445, - "end": 30447, - "loc": { - "start": { - "line": 821, - "column": 12 - }, - "end": { - "line": 821, - "column": 14 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 30445, - "end": 30447, - "loc": { - "start": { - "line": 821, - "column": 12 - }, - "end": { - "line": 821, - "column": 14 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 30445, - "end": 30447, - "loc": { - "start": { - "line": 821, - "column": 12 - }, - "end": { - "line": 821, - "column": 14 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 30461, - "end": 30466, - "loc": { - "start": { - "line": 822, - "column": 12 - }, - "end": { - "line": 822, - "column": 17 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 30461, - "end": 30466, - "loc": { - "start": { - "line": 822, - "column": 12 - }, - "end": { - "line": 822, - "column": 17 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 30461, - "end": 30466, - "loc": { - "start": { - "line": 822, - "column": 12 - }, - "end": { - "line": 822, - "column": 17 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "ArrowFunctionExpression", - "start": 30481, - "end": 30642, - "loc": { - "start": { - "line": 823, - "column": 13 - }, - "end": { - "line": 829, - "column": 11 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 30482, - "end": 30485, - "loc": { - "start": { - "line": 823, - "column": 14 - }, - "end": { - "line": 823, - "column": 17 - }, - "identifierName": "err" - }, - "name": "err" - }, - { - "type": "Identifier", - "start": 30487, - "end": 30490, - "loc": { - "start": { - "line": 823, - "column": 19 - }, - "end": { - "line": 823, - "column": 22 - }, - "identifierName": "res" - }, - "name": "res" - } - ], - "body": { - "type": "BlockStatement", - "start": 30495, - "end": 30642, - "loc": { - "start": { - "line": 823, - "column": 27 - }, - "end": { - "line": 829, - "column": 11 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 30509, - "end": 30630, - "loc": { - "start": { - "line": 824, - "column": 12 - }, - "end": { - "line": 828, - "column": 13 - } - }, - "test": { - "type": "Identifier", - "start": 30513, - "end": 30516, - "loc": { - "start": { - "line": 824, - "column": 16 - }, - "end": { - "line": 824, - "column": 19 - }, - "identifierName": "err" - }, - "name": "err" - }, - "consequent": { - "type": "BlockStatement", - "start": 30518, - "end": 30560, - "loc": { - "start": { - "line": 824, - "column": 21 - }, - "end": { - "line": 826, - "column": 13 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 30534, - "end": 30546, - "loc": { - "start": { - "line": 825, - "column": 14 - }, - "end": { - "line": 825, - "column": 26 - } - }, - "expression": { - "type": "CallExpression", - "start": 30534, - "end": 30545, - "loc": { - "start": { - "line": 825, - "column": 14 - }, - "end": { - "line": 825, - "column": 25 - } - }, - "callee": { - "type": "Identifier", - "start": 30534, - "end": 30540, - "loc": { - "start": { - "line": 825, - "column": 14 - }, - "end": { - "line": 825, - "column": 20 - }, - "identifierName": "reject" - }, - "name": "reject" - }, - "arguments": [ - { - "type": "Identifier", - "start": 30541, - "end": 30544, - "loc": { - "start": { - "line": 825, - "column": 21 - }, - "end": { - "line": 825, - "column": 24 - }, - "identifierName": "err" - }, - "name": "err" - } - ] - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 30566, - "end": 30630, - "loc": { - "start": { - "line": 826, - "column": 19 - }, - "end": { - "line": 828, - "column": 13 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 30582, - "end": 30616, - "loc": { - "start": { - "line": 827, - "column": 14 - }, - "end": { - "line": 827, - "column": 48 - } - }, - "expression": { - "type": "CallExpression", - "start": 30582, - "end": 30615, - "loc": { - "start": { - "line": 827, - "column": 14 - }, - "end": { - "line": 827, - "column": 47 - } - }, - "callee": { - "type": "Identifier", - "start": 30582, - "end": 30589, - "loc": { - "start": { - "line": 827, - "column": 14 - }, - "end": { - "line": 827, - "column": 21 - }, - "identifierName": "resolve" - }, - "name": "resolve" - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 30590, - "end": 30614, - "loc": { - "start": { - "line": 827, - "column": 22 - }, - "end": { - "line": 827, - "column": 46 - } - }, - "left": { - "type": "MemberExpression", - "start": 30590, - "end": 30600, - "loc": { - "start": { - "line": 827, - "column": 22 - }, - "end": { - "line": 827, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 30590, - "end": 30593, - "loc": { - "start": { - "line": 827, - "column": 22 - }, - "end": { - "line": 827, - "column": 25 - }, - "identifierName": "res" - }, - "name": "res" - }, - "property": { - "type": "Identifier", - "start": 30594, - "end": 30600, - "loc": { - "start": { - "line": 827, - "column": 26 - }, - "end": { - "line": 827, - "column": 32 - }, - "identifierName": "status" - }, - "name": "status" - }, - "computed": false - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 30605, - "end": 30614, - "loc": { - "start": { - "line": 827, - "column": 37 - }, - "end": { - "line": 827, - "column": 46 - } - }, - "extra": { - "rawValue": "success", - "raw": "'success'" - }, - "value": "success" - } - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - } - } - ] - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 30666, - "end": 30749, - "loc": { - "start": { - "line": 832, - "column": 8 - }, - "end": { - "line": 833, - "column": 45 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 30672, - "end": 30748, - "loc": { - "start": { - "line": 832, - "column": 14 - }, - "end": { - "line": 833, - "column": 44 - } - }, - "id": { - "type": "Identifier", - "start": 30672, - "end": 30688, - "loc": { - "start": { - "line": 832, - "column": 14 - }, - "end": { - "line": 832, - "column": 30 - }, - "identifierName": "documentsDeleted" - }, - "name": "documentsDeleted" - }, - "init": { - "type": "CallExpression", - "start": 30691, - "end": 30748, - "loc": { - "start": { - "line": 832, - "column": 33 - }, - "end": { - "line": 833, - "column": 44 - } - }, - "callee": { - "type": "MemberExpression", - "start": 30691, - "end": 30718, - "loc": { - "start": { - "line": 832, - "column": 33 - }, - "end": { - "line": 833, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 30691, - "end": 30703, - "loc": { - "start": { - "line": 832, - "column": 33 - }, - "end": { - "line": 832, - "column": 45 - }, - "identifierName": "document_ids" - }, - "name": "document_ids" - }, - "property": { - "type": "Identifier", - "start": 30715, - "end": 30718, - "loc": { - "start": { - "line": 833, - "column": 11 - }, - "end": { - "line": 833, - "column": 14 - }, - "identifierName": "map" - }, - "name": "map" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 30719, - "end": 30747, - "loc": { - "start": { - "line": 833, - "column": 15 - }, - "end": { - "line": 833, - "column": 43 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 30719, - "end": 30721, - "loc": { - "start": { - "line": 833, - "column": 15 - }, - "end": { - "line": 833, - "column": 17 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "body": { - "type": "CallExpression", - "start": 30725, - "end": 30747, - "loc": { - "start": { - "line": 833, - "column": 21 - }, - "end": { - "line": 833, - "column": 43 - } - }, - "callee": { - "type": "Identifier", - "start": 30725, - "end": 30739, - "loc": { - "start": { - "line": 833, - "column": 21 - }, - "end": { - "line": 833, - "column": 35 - }, - "identifierName": "removeDocument" - }, - "name": "removeDocument" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 30740, - "end": 30746, - "loc": { - "start": { - "line": 833, - "column": 36 - }, - "end": { - "line": 833, - "column": 42 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 30742, - "end": 30744, - "loc": { - "start": { - "line": 833, - "column": 38 - }, - "end": { - "line": 833, - "column": 40 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 30742, - "end": 30744, - "loc": { - "start": { - "line": 833, - "column": 38 - }, - "end": { - "line": 833, - "column": 40 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 30742, - "end": 30744, - "loc": { - "start": { - "line": 833, - "column": 38 - }, - "end": { - "line": 833, - "column": 40 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 30759, - "end": 31310, - "loc": { - "start": { - "line": 835, - "column": 8 - }, - "end": { - "line": 848, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 30759, - "end": 31309, - "loc": { - "start": { - "line": 835, - "column": 8 - }, - "end": { - "line": 848, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 30759, - "end": 31220, - "loc": { - "start": { - "line": 835, - "column": 8 - }, - "end": { - "line": 845, - "column": 16 - } - }, - "object": { - "type": "CallExpression", - "start": 30759, - "end": 31203, - "loc": { - "start": { - "line": 835, - "column": 8 - }, - "end": { - "line": 844, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 30759, - "end": 30939, - "loc": { - "start": { - "line": 835, - "column": 8 - }, - "end": { - "line": 837, - "column": 15 - } - }, - "object": { - "type": "CallExpression", - "start": 30759, - "end": 30923, - "loc": { - "start": { - "line": 835, - "column": 8 - }, - "end": { - "line": 836, - "column": 134 - } - }, - "callee": { - "type": "MemberExpression", - "start": 30759, - "end": 30804, - "loc": { - "start": { - "line": 835, - "column": 8 - }, - "end": { - "line": 836, - "column": 15 - } - }, - "object": { - "type": "CallExpression", - "start": 30759, - "end": 30788, - "loc": { - "start": { - "line": 835, - "column": 8 - }, - "end": { - "line": 835, - "column": 37 - } - }, - "callee": { - "type": "MemberExpression", - "start": 30759, - "end": 30770, - "loc": { - "start": { - "line": 835, - "column": 8 - }, - "end": { - "line": 835, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 30759, - "end": 30766, - "loc": { - "start": { - "line": 835, - "column": 8 - }, - "end": { - "line": 835, - "column": 15 - }, - "identifierName": "Promise" - }, - "name": "Promise" - }, - "property": { - "type": "Identifier", - "start": 30767, - "end": 30770, - "loc": { - "start": { - "line": 835, - "column": 16 - }, - "end": { - "line": 835, - "column": 19 - }, - "identifierName": "all" - }, - "name": "all" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 30771, - "end": 30787, - "loc": { - "start": { - "line": 835, - "column": 20 - }, - "end": { - "line": 835, - "column": 36 - }, - "identifierName": "documentsDeleted" - }, - "name": "documentsDeleted" - } - ] - }, - "property": { - "type": "Identifier", - "start": 30800, - "end": 30804, - "loc": { - "start": { - "line": 836, - "column": 11 - }, - "end": { - "line": 836, - "column": 15 - }, - "identifierName": "then" - }, - "name": "then" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 30805, - "end": 30922, - "loc": { - "start": { - "line": 836, - "column": 16 - }, - "end": { - "line": 836, - "column": 133 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 30805, - "end": 30821, - "loc": { - "start": { - "line": 836, - "column": 16 - }, - "end": { - "line": 836, - "column": 32 - }, - "identifierName": "deletionStatuses" - }, - "name": "deletionStatuses" - } - ], - "body": { - "type": "CallExpression", - "start": 30825, - "end": 30922, - "loc": { - "start": { - "line": 836, - "column": 36 - }, - "end": { - "line": 836, - "column": 133 - } - }, - "callee": { - "type": "MemberExpression", - "start": 30825, - "end": 30848, - "loc": { - "start": { - "line": 836, - "column": 36 - }, - "end": { - "line": 836, - "column": 59 - } - }, - "object": { - "type": "Identifier", - "start": 30825, - "end": 30841, - "loc": { - "start": { - "line": 836, - "column": 36 - }, - "end": { - "line": 836, - "column": 52 - }, - "identifierName": "deletionStatuses" - }, - "name": "deletionStatuses" - }, - "property": { - "type": "Identifier", - "start": 30842, - "end": 30848, - "loc": { - "start": { - "line": 836, - "column": 53 - }, - "end": { - "line": 836, - "column": 59 - }, - "identifierName": "reduce" - }, - "name": "reduce" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 30849, - "end": 30915, - "loc": { - "start": { - "line": 836, - "column": 60 - }, - "end": { - "line": 836, - "column": 126 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 30850, - "end": 30863, - "loc": { - "start": { - "line": 836, - "column": 61 - }, - "end": { - "line": 836, - "column": 74 - }, - "identifierName": "generalStatus" - }, - "name": "generalStatus" - }, - { - "type": "Identifier", - "start": 30865, - "end": 30878, - "loc": { - "start": { - "line": 836, - "column": 76 - }, - "end": { - "line": 836, - "column": 89 - }, - "identifierName": "currentStatus" - }, - "name": "currentStatus" - } - ], - "body": { - "type": "LogicalExpression", - "start": 30884, - "end": 30914, - "loc": { - "start": { - "line": 836, - "column": 95 - }, - "end": { - "line": 836, - "column": 125 - } - }, - "left": { - "type": "Identifier", - "start": 30884, - "end": 30897, - "loc": { - "start": { - "line": 836, - "column": 95 - }, - "end": { - "line": 836, - "column": 108 - }, - "identifierName": "generalStatus" - }, - "name": "generalStatus" - }, - "operator": "&&", - "right": { - "type": "Identifier", - "start": 30901, - "end": 30914, - "loc": { - "start": { - "line": 836, - "column": 112 - }, - "end": { - "line": 836, - "column": 125 - }, - "identifierName": "currentStatus" - }, - "name": "currentStatus" - }, - "extra": { - "parenthesized": true, - "parenStart": 30883 - } - } - }, - { - "type": "BooleanLiteral", - "start": 30917, - "end": 30921, - "loc": { - "start": { - "line": 836, - "column": 128 - }, - "end": { - "line": 836, - "column": 132 - } - }, - "value": true - } - ] - } - } - ] - }, - "property": { - "type": "Identifier", - "start": 30935, - "end": 30939, - "loc": { - "start": { - "line": 837, - "column": 11 - }, - "end": { - "line": 837, - "column": 15 - }, - "identifierName": "then" - }, - "name": "then" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 30940, - "end": 31202, - "loc": { - "start": { - "line": 837, - "column": 16 - }, - "end": { - "line": 844, - "column": 11 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 30940, - "end": 30959, - "loc": { - "start": { - "line": 837, - "column": 16 - }, - "end": { - "line": 837, - "column": 35 - }, - "identifierName": "allDocumentsDeleted" - }, - "name": "allDocumentsDeleted" - } - ], - "body": { - "type": "BlockStatement", - "start": 30963, - "end": 31202, - "loc": { - "start": { - "line": 837, - "column": 39 - }, - "end": { - "line": 844, - "column": 11 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 30977, - "end": 31190, - "loc": { - "start": { - "line": 838, - "column": 12 - }, - "end": { - "line": 843, - "column": 13 - } - }, - "test": { - "type": "Identifier", - "start": 30981, - "end": 31000, - "loc": { - "start": { - "line": 838, - "column": 16 - }, - "end": { - "line": 838, - "column": 35 - }, - "identifierName": "allDocumentsDeleted" - }, - "name": "allDocumentsDeleted" - }, - "consequent": { - "type": "BlockStatement", - "start": 31002, - "end": 31087, - "loc": { - "start": { - "line": 838, - "column": 37 - }, - "end": { - "line": 841, - "column": 13 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 31018, - "end": 31051, - "loc": { - "start": { - "line": 839, - "column": 14 - }, - "end": { - "line": 839, - "column": 47 - } - }, - "expression": { - "type": "CallExpression", - "start": 31018, - "end": 31050, - "loc": { - "start": { - "line": 839, - "column": 14 - }, - "end": { - "line": 839, - "column": 46 - } - }, - "callee": { - "type": "Identifier", - "start": 31018, - "end": 31034, - "loc": { - "start": { - "line": 839, - "column": 14 - }, - "end": { - "line": 839, - "column": 30 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - }, - "arguments": [ - { - "type": "NullLiteral", - "start": 31035, - "end": 31039, - "loc": { - "start": { - "line": 839, - "column": 31 - }, - "end": { - "line": 839, - "column": 35 - } - } - }, - { - "type": "Identifier", - "start": 31041, - "end": 31049, - "loc": { - "start": { - "line": 839, - "column": 37 - }, - "end": { - "line": 839, - "column": 45 - }, - "identifierName": "mergeRes" - }, - "name": "mergeRes" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 31066, - "end": 31073, - "loc": { - "start": { - "line": 840, - "column": 14 - }, - "end": { - "line": 840, - "column": 21 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 31093, - "end": 31190, - "loc": { - "start": { - "line": 841, - "column": 19 - }, - "end": { - "line": 843, - "column": 13 - } - }, - "body": [ - { - "type": "ThrowStatement", - "start": 31109, - "end": 31176, - "loc": { - "start": { - "line": 842, - "column": 14 - }, - "end": { - "line": 842, - "column": 81 - } - }, - "argument": { - "type": "NewExpression", - "start": 31115, - "end": 31175, - "loc": { - "start": { - "line": 842, - "column": 20 - }, - "end": { - "line": 842, - "column": 80 - } - }, - "callee": { - "type": "Identifier", - "start": 31119, - "end": 31124, - "loc": { - "start": { - "line": 842, - "column": 24 - }, - "end": { - "line": 842, - "column": 29 - }, - "identifierName": "Error" - }, - "name": "Error" - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 31125, - "end": 31174, - "loc": { - "start": { - "line": 842, - "column": 30 - }, - "end": { - "line": 842, - "column": 79 - } - }, - "extra": { - "rawValue": "Some of the original documents were not removed", - "raw": "'Some of the original documents were not removed'" - }, - "value": "Some of the original documents were not removed" - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ] - }, - "property": { - "type": "Identifier", - "start": 31215, - "end": 31220, - "loc": { - "start": { - "line": 845, - "column": 11 - }, - "end": { - "line": 845, - "column": 16 - }, - "identifierName": "catch" - }, - "name": "catch" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 31221, - "end": 31308, - "loc": { - "start": { - "line": 845, - "column": 17 - }, - "end": { - "line": 848, - "column": 11 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 31221, - "end": 31230, - "loc": { - "start": { - "line": 845, - "column": 17 - }, - "end": { - "line": 845, - "column": 26 - }, - "identifierName": "removeErr" - }, - "name": "removeErr" - } - ], - "body": { - "type": "BlockStatement", - "start": 31234, - "end": 31308, - "loc": { - "start": { - "line": 845, - "column": 30 - }, - "end": { - "line": 848, - "column": 11 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 31248, - "end": 31276, - "loc": { - "start": { - "line": 846, - "column": 12 - }, - "end": { - "line": 846, - "column": 40 - } - }, - "expression": { - "type": "CallExpression", - "start": 31248, - "end": 31275, - "loc": { - "start": { - "line": 846, - "column": 12 - }, - "end": { - "line": 846, - "column": 39 - } - }, - "callee": { - "type": "Identifier", - "start": 31248, - "end": 31264, - "loc": { - "start": { - "line": 846, - "column": 12 - }, - "end": { - "line": 846, - "column": 28 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 31265, - "end": 31274, - "loc": { - "start": { - "line": 846, - "column": 29 - }, - "end": { - "line": 846, - "column": 38 - }, - "identifierName": "removeErr" - }, - "name": "removeErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 31289, - "end": 31296, - "loc": { - "start": { - "line": 847, - "column": 12 - }, - "end": { - "line": 847, - "column": 19 - } - }, - "argument": null - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 31332, - "end": 31435, - "loc": { - "start": { - "line": 853, - "column": 4 - }, - "end": { - "line": 855, - "column": 25 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 31338, - "end": 31434, - "loc": { - "start": { - "line": 853, - "column": 10 - }, - "end": { - "line": 855, - "column": 24 - } - }, - "id": { - "type": "Identifier", - "start": 31338, - "end": 31346, - "loc": { - "start": { - "line": 853, - "column": 10 - }, - "end": { - "line": 853, - "column": 18 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "init": { - "type": "ConditionalExpression", - "start": 31349, - "end": 31434, - "loc": { - "start": { - "line": 853, - "column": 21 - }, - "end": { - "line": 855, - "column": 24 - } - }, - "test": { - "type": "Identifier", - "start": 31349, - "end": 31372, - "loc": { - "start": { - "line": 853, - "column": 21 - }, - "end": { - "line": 853, - "column": 44 - }, - "identifierName": "removeOriginalDocuments" - }, - "name": "removeOriginalDocuments" - }, - "consequent": { - "type": "Identifier", - "start": 31381, - "end": 31409, - "loc": { - "start": { - "line": 854, - "column": 8 - }, - "end": { - "line": 854, - "column": 36 - }, - "identifierName": "callbackWithDocumentDeletion" - }, - "name": "callbackWithDocumentDeletion" - }, - "alternate": { - "type": "Identifier", - "start": 31418, - "end": 31434, - "loc": { - "start": { - "line": 855, - "column": 8 - }, - "end": { - "line": 855, - "column": 24 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 31441, - "end": 31853, - "loc": { - "start": { - "line": 857, - "column": 4 - }, - "end": { - "line": 870, - "column": 51 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 31447, - "end": 31852, - "loc": { - "start": { - "line": 857, - "column": 10 - }, - "end": { - "line": 870, - "column": 50 - } - }, - "id": { - "type": "Identifier", - "start": 31447, - "end": 31450, - "loc": { - "start": { - "line": 857, - "column": 10 - }, - "end": { - "line": 857, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 31453, - "end": 31852, - "loc": { - "start": { - "line": 857, - "column": 16 - }, - "end": { - "line": 870, - "column": 50 - } - }, - "callee": { - "type": "MemberExpression", - "start": 31453, - "end": 31811, - "loc": { - "start": { - "line": 857, - "column": 16 - }, - "end": { - "line": 870, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 31453, - "end": 31801, - "loc": { - "start": { - "line": 857, - "column": 16 - }, - "end": { - "line": 869, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 31453, - "end": 31473, - "loc": { - "start": { - "line": 857, - "column": 16 - }, - "end": { - "line": 858, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 31453, - "end": 31458, - "loc": { - "start": { - "line": 857, - "column": 16 - }, - "end": { - "line": 857, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 31466, - "end": 31473, - "loc": { - "start": { - "line": 858, - "column": 7 - }, - "end": { - "line": 858, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 31474, - "end": 31773, - "loc": { - "start": { - "line": 858, - "column": 15 - }, - "end": { - "line": 869, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 31474, - "end": 31493, - "loc": { - "start": { - "line": 858, - "column": 15 - }, - "end": { - "line": 858, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 31494, - "end": 31772, - "loc": { - "start": { - "line": 858, - "column": 35 - }, - "end": { - "line": 869, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 31504, - "end": 31518, - "loc": { - "start": { - "line": 859, - "column": 8 - }, - "end": { - "line": 859, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31504, - "end": 31510, - "loc": { - "start": { - "line": 859, - "column": 8 - }, - "end": { - "line": 859, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 31512, - "end": 31518, - "loc": { - "start": { - "line": 859, - "column": 16 - }, - "end": { - "line": 859, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 31528, - "end": 31551, - "loc": { - "start": { - "line": 860, - "column": 8 - }, - "end": { - "line": 860, - "column": 31 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31528, - "end": 31532, - "loc": { - "start": { - "line": 860, - "column": 8 - }, - "end": { - "line": 860, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 31534, - "end": 31551, - "loc": { - "start": { - "line": 860, - "column": 14 - }, - "end": { - "line": 860, - "column": 31 - } - }, - "extra": { - "rawValue": "/document/merge", - "raw": "'/document/merge'" - }, - "value": "/document/merge" - } - }, - { - "type": "ObjectProperty", - "start": 31561, - "end": 31630, - "loc": { - "start": { - "line": 861, - "column": 8 - }, - "end": { - "line": 864, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31561, - "end": 31574, - "loc": { - "start": { - "line": 861, - "column": 8 - }, - "end": { - "line": 861, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 31576, - "end": 31630, - "loc": { - "start": { - "line": 861, - "column": 23 - }, - "end": { - "line": 864, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 31588, - "end": 31602, - "loc": { - "start": { - "line": 862, - "column": 10 - }, - "end": { - "line": 862, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31588, - "end": 31592, - "loc": { - "start": { - "line": 862, - "column": 10 - }, - "end": { - "line": 862, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 31594, - "end": 31602, - "loc": { - "start": { - "line": 862, - "column": 16 - }, - "end": { - "line": 862, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 31614, - "end": 31619, - "loc": { - "start": { - "line": 863, - "column": 10 - }, - "end": { - "line": 863, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 31614, - "end": 31619, - "loc": { - "start": { - "line": 863, - "column": 10 - }, - "end": { - "line": 863, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 31614, - "end": 31619, - "loc": { - "start": { - "line": 863, - "column": 10 - }, - "end": { - "line": 863, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 31640, - "end": 31763, - "loc": { - "start": { - "line": 865, - "column": 8 - }, - "end": { - "line": 868, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31640, - "end": 31647, - "loc": { - "start": { - "line": 865, - "column": 8 - }, - "end": { - "line": 865, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 31649, - "end": 31763, - "loc": { - "start": { - "line": 865, - "column": 17 - }, - "end": { - "line": 868, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 31661, - "end": 31695, - "loc": { - "start": { - "line": 866, - "column": 10 - }, - "end": { - "line": 866, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 31661, - "end": 31675, - "loc": { - "start": { - "line": 866, - "column": 10 - }, - "end": { - "line": 866, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 31677, - "end": 31695, - "loc": { - "start": { - "line": 866, - "column": 26 - }, - "end": { - "line": 866, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 31707, - "end": 31752, - "loc": { - "start": { - "line": 867, - "column": 10 - }, - "end": { - "line": 867, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 31707, - "end": 31723, - "loc": { - "start": { - "line": 867, - "column": 10 - }, - "end": { - "line": 867, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 31725, - "end": 31752, - "loc": { - "start": { - "line": 867, - "column": 28 - }, - "end": { - "line": 867, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 31725, - "end": 31742, - "loc": { - "start": { - "line": 867, - "column": 28 - }, - "end": { - "line": 867, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 31725, - "end": 31731, - "loc": { - "start": { - "line": 867, - "column": 28 - }, - "end": { - "line": 867, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 31732, - "end": 31742, - "loc": { - "start": { - "line": 867, - "column": 35 - }, - "end": { - "line": 867, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 31743, - "end": 31751, - "loc": { - "start": { - "line": 867, - "column": 46 - }, - "end": { - "line": 867, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 31775, - "end": 31800, - "loc": { - "start": { - "line": 869, - "column": 10 - }, - "end": { - "line": 869, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 31775, - "end": 31790, - "loc": { - "start": { - "line": 869, - "column": 10 - }, - "end": { - "line": 869, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 31791, - "end": 31799, - "loc": { - "start": { - "line": 869, - "column": 26 - }, - "end": { - "line": 869, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 31809, - "end": 31811, - "loc": { - "start": { - "line": 870, - "column": 7 - }, - "end": { - "line": 870, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 31812, - "end": 31819, - "loc": { - "start": { - "line": 870, - "column": 10 - }, - "end": { - "line": 870, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 31821, - "end": 31851, - "loc": { - "start": { - "line": 870, - "column": 19 - }, - "end": { - "line": 870, - "column": 49 - } - }, - "callee": { - "type": "Identifier", - "start": 31821, - "end": 31833, - "loc": { - "start": { - "line": 870, - "column": 19 - }, - "end": { - "line": 870, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 31834, - "end": 31850, - "loc": { - "start": { - "line": 870, - "column": 32 - }, - "end": { - "line": 870, - "column": 48 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 31859, - "end": 31879, - "loc": { - "start": { - "line": 872, - "column": 4 - }, - "end": { - "line": 872, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 31859, - "end": 31878, - "loc": { - "start": { - "line": 872, - "column": 4 - }, - "end": { - "line": 872, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 31859, - "end": 31868, - "loc": { - "start": { - "line": 872, - "column": 4 - }, - "end": { - "line": 872, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 31859, - "end": 31862, - "loc": { - "start": { - "line": 872, - "column": 4 - }, - "end": { - "line": 872, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 31863, - "end": 31868, - "loc": { - "start": { - "line": 872, - "column": 8 - }, - "end": { - "line": 872, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 31869, - "end": 31877, - "loc": { - "start": { - "line": 872, - "column": 14 - }, - "end": { - "line": 872, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 31884, - "end": 31894, - "loc": { - "start": { - "line": 873, - "column": 4 - }, - "end": { - "line": 873, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 31884, - "end": 31893, - "loc": { - "start": { - "line": 873, - "column": 4 - }, - "end": { - "line": 873, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 31884, - "end": 31891, - "loc": { - "start": { - "line": 873, - "column": 4 - }, - "end": { - "line": 873, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 31884, - "end": 31887, - "loc": { - "start": { - "line": 873, - "column": 4 - }, - "end": { - "line": 873, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 31888, - "end": 31891, - "loc": { - "start": { - "line": 873, - "column": 8 - }, - "end": { - "line": 873, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Merge documents optional settings\n * @typedef {Object} DocumentMergeOptions\n * @property {boolean} [removeOriginalDocuments=false] - if true original documents will be removed\n ", - "start": 28847, - "end": 29041, - "loc": { - "start": { - "line": 774, - "column": 2 - }, - "end": { - "line": 778, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Merge documents payload\n * @typedef {Object} DocumentMergeParams\n * @property {string} token - your auth token\n * @property {string} name - new name for merged document\n * @property {string[]} document_ids - an array of document IDs\n * @property {DocumentMergeOptions} options - merge documents optional settings\n ", - "start": 29045, - "end": 29382, - "loc": { - "start": { - "line": 780, - "column": 2 - }, - "end": { - "line": 787, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Merge documents response data\n * @typedef {Object} DocumentMergeResponse\n * @property {string} document_id - an ID of merged document\n ", - "start": 29386, - "end": 29538, - "loc": { - "start": { - "line": 789, - "column": 2 - }, - "end": { - "line": 793, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Merges existing documents into one.\n * By default original documents are not removed after merging. To remove original documents set `removeOriginalDocuments` option to `true`.\n * @param {DocumentMergeParams} data - merge documents payload\n * @param {function(err: ApiErrorResponse, res: DocumentMergeResponse)} [originalCallback] - error first node.js callback\n ", - "start": 29542, - "end": 29924, - "loc": { - "start": { - "line": 795, - "column": 2 - }, - "end": { - "line": 800, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document history payload\n * @typedef {Object} DocumentHistoryParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 31902, - "end": 32087, - "loc": { - "start": { - "line": 876, - "column": 2 - }, - "end": { - "line": 881, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document action log item\n * @typedef {Object} DocumentEvent\n * @property {string} client_app_name - name of a client application\n * @property {?string} client_timestamp - client application timestamp\n * @property {string} created - timestamp of action creation\n * @property {string} email - email of an actor\n * @property {string} event - name of event\n * @property {string} ip_address - actor's IP address\n * @property {?string} element_id - an ID of specific element\n * @property {?string} field_id - an ID of specific field\n * @property {?string} json_attributes - field attributes (e.g. font, style, size etc.)\n * @property {string} [document_id] - an ID of specific document\n * @property {string} [origin] - an origin of document\n * @property {string} [unique_id] - an ID of event\n * @property {string} [user_agent] - user agent\n * @property {string} [user_id] - id of an actor\n * @property {string} [version] - version of signed document (incremented after each signature addition)\n ", - "start": 32091, - "end": 33125, - "loc": { - "start": { - "line": 883, - "column": 2 - }, - "end": { - "line": 901, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document history response data\n * @typedef {DocumentEvent[]} DocumentHistoryResponse\n ", - "start": 33129, - "end": 33230, - "loc": { - "start": { - "line": 903, - "column": 2 - }, - "end": { - "line": 906, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves a document action log (history) data\n * @param {DocumentHistoryParams} data - payload\n * @param {function(err: ApiErrorResponse, res: DocumentHistoryResponse)} [callback] - error first node.js callback\n ", - "start": 33234, - "end": 33465, - "loc": { - "start": { - "line": 908, - "column": 2 - }, - "end": { - "line": 912, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 33468, - "end": 33798, - "loc": { - "start": { - "line": 913, - "column": 2 - }, - "end": { - "line": 925, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 33475, - "end": 33482, - "loc": { - "start": { - "line": 913, - "column": 9 - }, - "end": { - "line": 913, - "column": 16 - }, - "identifierName": "history" - }, - "name": "history" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 33484, - "end": 33497, - "loc": { - "start": { - "line": 913, - "column": 18 - }, - "end": { - "line": 913, - "column": 31 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 33486, - "end": 33488, - "loc": { - "start": { - "line": 913, - "column": 20 - }, - "end": { - "line": 913, - "column": 22 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 33486, - "end": 33488, - "loc": { - "start": { - "line": 913, - "column": 20 - }, - "end": { - "line": 913, - "column": 22 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 33486, - "end": 33488, - "loc": { - "start": { - "line": 913, - "column": 20 - }, - "end": { - "line": 913, - "column": 22 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 33490, - "end": 33495, - "loc": { - "start": { - "line": 913, - "column": 24 - }, - "end": { - "line": 913, - "column": 29 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 33490, - "end": 33495, - "loc": { - "start": { - "line": 913, - "column": 24 - }, - "end": { - "line": 913, - "column": 29 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 33490, - "end": 33495, - "loc": { - "start": { - "line": 913, - "column": 24 - }, - "end": { - "line": 913, - "column": 29 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 33499, - "end": 33507, - "loc": { - "start": { - "line": 913, - "column": 33 - }, - "end": { - "line": 913, - "column": 41 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 33509, - "end": 33798, - "loc": { - "start": { - "line": 913, - "column": 43 - }, - "end": { - "line": 925, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 33515, - "end": 33794, - "loc": { - "start": { - "line": 914, - "column": 4 - }, - "end": { - "line": 924, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 33515, - "end": 33793, - "loc": { - "start": { - "line": 914, - "column": 4 - }, - "end": { - "line": 924, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 33515, - "end": 33791, - "loc": { - "start": { - "line": 914, - "column": 4 - }, - "end": { - "line": 924, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 33515, - "end": 33780, - "loc": { - "start": { - "line": 914, - "column": 4 - }, - "end": { - "line": 923, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 33515, - "end": 33747, - "loc": { - "start": { - "line": 914, - "column": 4 - }, - "end": { - "line": 923, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 33515, - "end": 33737, - "loc": { - "start": { - "line": 914, - "column": 4 - }, - "end": { - "line": 922, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 33515, - "end": 33535, - "loc": { - "start": { - "line": 914, - "column": 4 - }, - "end": { - "line": 915, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 33515, - "end": 33520, - "loc": { - "start": { - "line": 914, - "column": 4 - }, - "end": { - "line": 914, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 33528, - "end": 33535, - "loc": { - "start": { - "line": 915, - "column": 7 - }, - "end": { - "line": 915, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 33536, - "end": 33709, - "loc": { - "start": { - "line": 915, - "column": 15 - }, - "end": { - "line": 922, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 33536, - "end": 33555, - "loc": { - "start": { - "line": 915, - "column": 15 - }, - "end": { - "line": 915, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 33556, - "end": 33708, - "loc": { - "start": { - "line": 915, - "column": 35 - }, - "end": { - "line": 922, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 33566, - "end": 33579, - "loc": { - "start": { - "line": 916, - "column": 8 - }, - "end": { - "line": 916, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 33566, - "end": 33572, - "loc": { - "start": { - "line": 916, - "column": 8 - }, - "end": { - "line": 916, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 33574, - "end": 33579, - "loc": { - "start": { - "line": 916, - "column": 16 - }, - "end": { - "line": 916, - "column": 21 - } - }, - "extra": { - "rawValue": "GET", - "raw": "'GET'" - }, - "value": "GET" - } - }, - { - "type": "ObjectProperty", - "start": 33589, - "end": 33620, - "loc": { - "start": { - "line": 917, - "column": 8 - }, - "end": { - "line": 917, - "column": 39 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 33589, - "end": 33593, - "loc": { - "start": { - "line": 917, - "column": 8 - }, - "end": { - "line": 917, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 33595, - "end": 33620, - "loc": { - "start": { - "line": 917, - "column": 14 - }, - "end": { - "line": 917, - "column": 39 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 33608, - "end": 33610, - "loc": { - "start": { - "line": 917, - "column": 27 - }, - "end": { - "line": 917, - "column": 29 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 33596, - "end": 33606, - "loc": { - "start": { - "line": 917, - "column": 15 - }, - "end": { - "line": 917, - "column": 25 - } - }, - "value": { - "raw": "/document/", - "cooked": "/document/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 33611, - "end": 33619, - "loc": { - "start": { - "line": 917, - "column": 30 - }, - "end": { - "line": 917, - "column": 38 - } - }, - "value": { - "raw": "/history", - "cooked": "/history" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 33630, - "end": 33699, - "loc": { - "start": { - "line": 918, - "column": 8 - }, - "end": { - "line": 921, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 33630, - "end": 33643, - "loc": { - "start": { - "line": 918, - "column": 8 - }, - "end": { - "line": 918, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 33645, - "end": 33699, - "loc": { - "start": { - "line": 918, - "column": 23 - }, - "end": { - "line": 921, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 33657, - "end": 33671, - "loc": { - "start": { - "line": 919, - "column": 10 - }, - "end": { - "line": 919, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 33657, - "end": 33661, - "loc": { - "start": { - "line": 919, - "column": 10 - }, - "end": { - "line": 919, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 33663, - "end": 33671, - "loc": { - "start": { - "line": 919, - "column": 16 - }, - "end": { - "line": 919, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 33683, - "end": 33688, - "loc": { - "start": { - "line": 920, - "column": 10 - }, - "end": { - "line": 920, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 33683, - "end": 33688, - "loc": { - "start": { - "line": 920, - "column": 10 - }, - "end": { - "line": 920, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 33683, - "end": 33688, - "loc": { - "start": { - "line": 920, - "column": 10 - }, - "end": { - "line": 920, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 33711, - "end": 33736, - "loc": { - "start": { - "line": 922, - "column": 10 - }, - "end": { - "line": 922, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 33711, - "end": 33726, - "loc": { - "start": { - "line": 922, - "column": 10 - }, - "end": { - "line": 922, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 33727, - "end": 33735, - "loc": { - "start": { - "line": 922, - "column": 26 - }, - "end": { - "line": 922, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 33745, - "end": 33747, - "loc": { - "start": { - "line": 923, - "column": 7 - }, - "end": { - "line": 923, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 33748, - "end": 33755, - "loc": { - "start": { - "line": 923, - "column": 10 - }, - "end": { - "line": 923, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 33757, - "end": 33779, - "loc": { - "start": { - "line": 923, - "column": 19 - }, - "end": { - "line": 923, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 33757, - "end": 33769, - "loc": { - "start": { - "line": 923, - "column": 19 - }, - "end": { - "line": 923, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 33770, - "end": 33778, - "loc": { - "start": { - "line": 923, - "column": 32 - }, - "end": { - "line": 923, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 33788, - "end": 33791, - "loc": { - "start": { - "line": 924, - "column": 7 - }, - "end": { - "line": 924, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document history payload\n * @typedef {Object} DocumentHistoryParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 31902, - "end": 32087, - "loc": { - "start": { - "line": 876, - "column": 2 - }, - "end": { - "line": 881, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document action log item\n * @typedef {Object} DocumentEvent\n * @property {string} client_app_name - name of a client application\n * @property {?string} client_timestamp - client application timestamp\n * @property {string} created - timestamp of action creation\n * @property {string} email - email of an actor\n * @property {string} event - name of event\n * @property {string} ip_address - actor's IP address\n * @property {?string} element_id - an ID of specific element\n * @property {?string} field_id - an ID of specific field\n * @property {?string} json_attributes - field attributes (e.g. font, style, size etc.)\n * @property {string} [document_id] - an ID of specific document\n * @property {string} [origin] - an origin of document\n * @property {string} [unique_id] - an ID of event\n * @property {string} [user_agent] - user agent\n * @property {string} [user_id] - id of an actor\n * @property {string} [version] - version of signed document (incremented after each signature addition)\n ", - "start": 32091, - "end": 33125, - "loc": { - "start": { - "line": 883, - "column": 2 - }, - "end": { - "line": 901, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document history response data\n * @typedef {DocumentEvent[]} DocumentHistoryResponse\n ", - "start": 33129, - "end": 33230, - "loc": { - "start": { - "line": 903, - "column": 2 - }, - "end": { - "line": 906, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves a document action log (history) data\n * @param {DocumentHistoryParams} data - payload\n * @param {function(err: ApiErrorResponse, res: DocumentHistoryResponse)} [callback] - error first node.js callback\n ", - "start": 33234, - "end": 33465, - "loc": { - "start": { - "line": 908, - "column": 2 - }, - "end": { - "line": 912, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document remove optional settings\n * @typedef {Object} DocumentRemoveOptions\n * @property {boolean} [cancelInvites=false] - ability to cancel all document invites during deletion\n ", - "start": 33802, - "end": 33999, - "loc": { - "start": { - "line": 927, - "column": 2 - }, - "end": { - "line": 931, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Remove document payload\n * @typedef {Object} DocumentRemoveParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n * @property {DocumentRemoveOptions} [options] - document remove optional settings\n ", - "start": 34003, - "end": 34271, - "loc": { - "start": { - "line": 933, - "column": 2 - }, - "end": { - "line": 939, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Remove document response data\n * @typedef {Object} DocumentRemoveResponse\n * @property {string} status - status of deletion, e.g. 'success'\n ", - "start": 34275, - "end": 34433, - "loc": { - "start": { - "line": 941, - "column": 2 - }, - "end": { - "line": 945, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Removes a specified document from folder\n * @param {DocumentRemoveParams} data - remove document payload\n * @param {function(err: ApiErrorResponse, res: DocumentRemoveResponse)} [originalCallback] - error first node.js callback\n ", - "start": 34437, - "end": 34683, - "loc": { - "start": { - "line": 947, - "column": 2 - }, - "end": { - "line": 951, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 34686, - "end": 37066, - "loc": { - "start": { - "line": 952, - "column": 2 - }, - "end": { - "line": 1030, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 34693, - "end": 34699, - "loc": { - "start": { - "line": 952, - "column": 9 - }, - "end": { - "line": 952, - "column": 15 - }, - "identifierName": "remove" - }, - "name": "remove" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 34701, - "end": 34782, - "loc": { - "start": { - "line": 952, - "column": 17 - }, - "end": { - "line": 956, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 34707, - "end": 34721, - "loc": { - "start": { - "line": 953, - "column": 4 - }, - "end": { - "line": 953, - "column": 18 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 34707, - "end": 34709, - "loc": { - "start": { - "line": 953, - "column": 4 - }, - "end": { - "line": 953, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 34711, - "end": 34721, - "loc": { - "start": { - "line": 953, - "column": 8 - }, - "end": { - "line": 953, - "column": 18 - }, - "identifierName": "documentId" - }, - "name": "documentId" - } - }, - { - "type": "ObjectProperty", - "start": 34727, - "end": 34732, - "loc": { - "start": { - "line": 954, - "column": 4 - }, - "end": { - "line": 954, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 34727, - "end": 34732, - "loc": { - "start": { - "line": 954, - "column": 4 - }, - "end": { - "line": 954, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 34727, - "end": 34732, - "loc": { - "start": { - "line": 954, - "column": 4 - }, - "end": { - "line": 954, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 34738, - "end": 34777, - "loc": { - "start": { - "line": 955, - "column": 4 - }, - "end": { - "line": 955, - "column": 43 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 34738, - "end": 34745, - "loc": { - "start": { - "line": 955, - "column": 4 - }, - "end": { - "line": 955, - "column": 11 - }, - "identifierName": "options" - }, - "name": "options" - }, - "value": { - "type": "AssignmentPattern", - "start": 34747, - "end": 34777, - "loc": { - "start": { - "line": 955, - "column": 13 - }, - "end": { - "line": 955, - "column": 43 - } - }, - "left": { - "type": "ObjectPattern", - "start": 34747, - "end": 34772, - "loc": { - "start": { - "line": 955, - "column": 13 - }, - "end": { - "line": 955, - "column": 38 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 34749, - "end": 34770, - "loc": { - "start": { - "line": 955, - "column": 15 - }, - "end": { - "line": 955, - "column": 36 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 34749, - "end": 34762, - "loc": { - "start": { - "line": 955, - "column": 15 - }, - "end": { - "line": 955, - "column": 28 - }, - "identifierName": "cancelInvites" - }, - "name": "cancelInvites" - }, - "value": { - "type": "AssignmentPattern", - "start": 34749, - "end": 34770, - "loc": { - "start": { - "line": 955, - "column": 15 - }, - "end": { - "line": 955, - "column": 36 - } - }, - "left": { - "type": "Identifier", - "start": 34749, - "end": 34762, - "loc": { - "start": { - "line": 955, - "column": 15 - }, - "end": { - "line": 955, - "column": 28 - }, - "identifierName": "cancelInvites" - }, - "name": "cancelInvites" - }, - "right": { - "type": "BooleanLiteral", - "start": 34765, - "end": 34770, - "loc": { - "start": { - "line": 955, - "column": 31 - }, - "end": { - "line": 955, - "column": 36 - } - }, - "value": false - } - }, - "extra": { - "shorthand": true - } - } - ] - }, - "right": { - "type": "ObjectExpression", - "start": 34775, - "end": 34777, - "loc": { - "start": { - "line": 955, - "column": 41 - }, - "end": { - "line": 955, - "column": 43 - } - }, - "properties": [] - } - } - } - ] - }, - { - "type": "Identifier", - "start": 34784, - "end": 34800, - "loc": { - "start": { - "line": 956, - "column": 5 - }, - "end": { - "line": 956, - "column": 21 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - } - ], - "body": { - "type": "BlockStatement", - "start": 34802, - "end": 37066, - "loc": { - "start": { - "line": 956, - "column": 23 - }, - "end": { - "line": 1030, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 34808, - "end": 36665, - "loc": { - "start": { - "line": 957, - "column": 4 - }, - "end": { - "line": 1013, - "column": 6 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 34814, - "end": 36664, - "loc": { - "start": { - "line": 957, - "column": 10 - }, - "end": { - "line": 1013, - "column": 5 - } - }, - "id": { - "type": "Identifier", - "start": 34814, - "end": 34844, - "loc": { - "start": { - "line": 957, - "column": 10 - }, - "end": { - "line": 957, - "column": 40 - }, - "identifierName": "callbackWithInviteCancellation" - }, - "name": "callbackWithInviteCancellation" - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 34847, - "end": 36664, - "loc": { - "start": { - "line": 957, - "column": 43 - }, - "end": { - "line": 1013, - "column": 5 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 34848, - "end": 34857, - "loc": { - "start": { - "line": 957, - "column": 44 - }, - "end": { - "line": 957, - "column": 53 - }, - "identifierName": "removeErr" - }, - "name": "removeErr" - }, - { - "type": "Identifier", - "start": 34859, - "end": 34868, - "loc": { - "start": { - "line": 957, - "column": 55 - }, - "end": { - "line": 957, - "column": 64 - }, - "identifierName": "removeRes" - }, - "name": "removeRes" - } - ], - "body": { - "type": "BlockStatement", - "start": 34873, - "end": 36664, - "loc": { - "start": { - "line": 957, - "column": 69 - }, - "end": { - "line": 1013, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 34881, - "end": 36658, - "loc": { - "start": { - "line": 958, - "column": 6 - }, - "end": { - "line": 1012, - "column": 7 - } - }, - "test": { - "type": "Identifier", - "start": 34885, - "end": 34894, - "loc": { - "start": { - "line": 958, - "column": 10 - }, - "end": { - "line": 958, - "column": 19 - }, - "identifierName": "removeErr" - }, - "name": "removeErr" - }, - "consequent": { - "type": "BlockStatement", - "start": 34896, - "end": 34958, - "loc": { - "start": { - "line": 958, - "column": 21 - }, - "end": { - "line": 961, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 34906, - "end": 34934, - "loc": { - "start": { - "line": 959, - "column": 8 - }, - "end": { - "line": 959, - "column": 36 - } - }, - "expression": { - "type": "CallExpression", - "start": 34906, - "end": 34933, - "loc": { - "start": { - "line": 959, - "column": 8 - }, - "end": { - "line": 959, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 34906, - "end": 34922, - "loc": { - "start": { - "line": 959, - "column": 8 - }, - "end": { - "line": 959, - "column": 24 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 34923, - "end": 34932, - "loc": { - "start": { - "line": 959, - "column": 25 - }, - "end": { - "line": 959, - "column": 34 - }, - "identifierName": "removeErr" - }, - "name": "removeErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 34943, - "end": 34950, - "loc": { - "start": { - "line": 960, - "column": 8 - }, - "end": { - "line": 960, - "column": 15 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 34964, - "end": 36658, - "loc": { - "start": { - "line": 961, - "column": 13 - }, - "end": { - "line": 1012, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 34974, - "end": 36650, - "loc": { - "start": { - "line": 962, - "column": 8 - }, - "end": { - "line": 1011, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 34974, - "end": 36649, - "loc": { - "start": { - "line": 962, - "column": 8 - }, - "end": { - "line": 1011, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 34974, - "end": 35297, - "loc": { - "start": { - "line": 962, - "column": 8 - }, - "end": { - "line": 973, - "column": 15 - } - }, - "object": { - "type": "CallExpression", - "start": 34974, - "end": 35281, - "loc": { - "start": { - "line": 962, - "column": 8 - }, - "end": { - "line": 972, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 34974, - "end": 35070, - "loc": { - "start": { - "line": 962, - "column": 8 - }, - "end": { - "line": 966, - "column": 15 - } - }, - "object": { - "type": "CallExpression", - "start": 34974, - "end": 35054, - "loc": { - "start": { - "line": 962, - "column": 8 - }, - "end": { - "line": 965, - "column": 10 - } - }, - "callee": { - "type": "CallExpression", - "start": 34974, - "end": 34998, - "loc": { - "start": { - "line": 962, - "column": 8 - }, - "end": { - "line": 962, - "column": 32 - } - }, - "callee": { - "type": "Identifier", - "start": 34974, - "end": 34983, - "loc": { - "start": { - "line": 962, - "column": 8 - }, - "end": { - "line": 962, - "column": 17 - }, - "identifierName": "promisify" - }, - "name": "promisify" - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 34984, - "end": 34997, - "loc": { - "start": { - "line": 962, - "column": 18 - }, - "end": { - "line": 962, - "column": 31 - } - }, - "object": { - "type": "Identifier", - "start": 34984, - "end": 34992, - "loc": { - "start": { - "line": 962, - "column": 18 - }, - "end": { - "line": 962, - "column": 26 - }, - "identifierName": "Document" - }, - "name": "Document" - }, - "property": { - "type": "Identifier", - "start": 34993, - "end": 34997, - "loc": { - "start": { - "line": 962, - "column": 27 - }, - "end": { - "line": 962, - "column": 31 - }, - "identifierName": "view" - }, - "name": "view" - }, - "computed": false - } - ] - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 34999, - "end": 35053, - "loc": { - "start": { - "line": 962, - "column": 33 - }, - "end": { - "line": 965, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 35011, - "end": 35025, - "loc": { - "start": { - "line": 963, - "column": 10 - }, - "end": { - "line": 963, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 35011, - "end": 35013, - "loc": { - "start": { - "line": 963, - "column": 10 - }, - "end": { - "line": 963, - "column": 12 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 35015, - "end": 35025, - "loc": { - "start": { - "line": 963, - "column": 14 - }, - "end": { - "line": 963, - "column": 24 - }, - "identifierName": "documentId" - }, - "name": "documentId" - } - }, - { - "type": "ObjectProperty", - "start": 35037, - "end": 35042, - "loc": { - "start": { - "line": 964, - "column": 10 - }, - "end": { - "line": 964, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 35037, - "end": 35042, - "loc": { - "start": { - "line": 964, - "column": 10 - }, - "end": { - "line": 964, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 35037, - "end": 35042, - "loc": { - "start": { - "line": 964, - "column": 10 - }, - "end": { - "line": 964, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 35066, - "end": 35070, - "loc": { - "start": { - "line": 966, - "column": 11 - }, - "end": { - "line": 966, - "column": 15 - }, - "identifierName": "then" - }, - "name": "then" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 35071, - "end": 35280, - "loc": { - "start": { - "line": 966, - "column": 16 - }, - "end": { - "line": 972, - "column": 11 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 35071, - "end": 35079, - "loc": { - "start": { - "line": 966, - "column": 16 - }, - "end": { - "line": 966, - "column": 24 - }, - "identifierName": "document" - }, - "name": "document" - } - ], - "body": { - "type": "BlockStatement", - "start": 35083, - "end": 35280, - "loc": { - "start": { - "line": 966, - "column": 28 - }, - "end": { - "line": 972, - "column": 11 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 35097, - "end": 35173, - "loc": { - "start": { - "line": 967, - "column": 12 - }, - "end": { - "line": 967, - "column": 88 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 35103, - "end": 35172, - "loc": { - "start": { - "line": 967, - "column": 18 - }, - "end": { - "line": 967, - "column": 87 - } - }, - "id": { - "type": "ObjectPattern", - "start": 35103, - "end": 35161, - "loc": { - "start": { - "line": 967, - "column": 18 - }, - "end": { - "line": 967, - "column": 76 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 35105, - "end": 35132, - "loc": { - "start": { - "line": 967, - "column": 20 - }, - "end": { - "line": 967, - "column": 47 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 35105, - "end": 35118, - "loc": { - "start": { - "line": 967, - "column": 20 - }, - "end": { - "line": 967, - "column": 33 - }, - "identifierName": "field_invites" - }, - "name": "field_invites" - }, - "value": { - "type": "Identifier", - "start": 35120, - "end": 35132, - "loc": { - "start": { - "line": 967, - "column": 35 - }, - "end": { - "line": 967, - "column": 47 - }, - "identifierName": "fieldInvites" - }, - "name": "fieldInvites" - } - }, - { - "type": "ObjectProperty", - "start": 35134, - "end": 35159, - "loc": { - "start": { - "line": 967, - "column": 49 - }, - "end": { - "line": 967, - "column": 74 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 35134, - "end": 35142, - "loc": { - "start": { - "line": 967, - "column": 49 - }, - "end": { - "line": 967, - "column": 57 - }, - "identifierName": "requests" - }, - "name": "requests" - }, - "value": { - "type": "Identifier", - "start": 35144, - "end": 35159, - "loc": { - "start": { - "line": 967, - "column": 59 - }, - "end": { - "line": 967, - "column": 74 - }, - "identifierName": "freeformInvites" - }, - "name": "freeformInvites" - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 35164, - "end": 35172, - "loc": { - "start": { - "line": 967, - "column": 79 - }, - "end": { - "line": 967, - "column": 87 - }, - "identifierName": "document" - }, - "name": "document" - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 35186, - "end": 35268, - "loc": { - "start": { - "line": 968, - "column": 12 - }, - "end": { - "line": 971, - "column": 14 - } - }, - "argument": { - "type": "ObjectExpression", - "start": 35193, - "end": 35267, - "loc": { - "start": { - "line": 968, - "column": 19 - }, - "end": { - "line": 971, - "column": 13 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 35209, - "end": 35221, - "loc": { - "start": { - "line": 969, - "column": 14 - }, - "end": { - "line": 969, - "column": 26 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 35209, - "end": 35221, - "loc": { - "start": { - "line": 969, - "column": 14 - }, - "end": { - "line": 969, - "column": 26 - }, - "identifierName": "fieldInvites" - }, - "name": "fieldInvites" - }, - "value": { - "type": "Identifier", - "start": 35209, - "end": 35221, - "loc": { - "start": { - "line": 969, - "column": 14 - }, - "end": { - "line": 969, - "column": 26 - }, - "identifierName": "fieldInvites" - }, - "name": "fieldInvites" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 35237, - "end": 35252, - "loc": { - "start": { - "line": 970, - "column": 14 - }, - "end": { - "line": 970, - "column": 29 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 35237, - "end": 35252, - "loc": { - "start": { - "line": 970, - "column": 14 - }, - "end": { - "line": 970, - "column": 29 - }, - "identifierName": "freeformInvites" - }, - "name": "freeformInvites" - }, - "value": { - "type": "Identifier", - "start": 35237, - "end": 35252, - "loc": { - "start": { - "line": 970, - "column": 14 - }, - "end": { - "line": 970, - "column": 29 - }, - "identifierName": "freeformInvites" - }, - "name": "freeformInvites" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ], - "directives": [] - } - } - ] - }, - "property": { - "type": "Identifier", - "start": 35293, - "end": 35297, - "loc": { - "start": { - "line": 973, - "column": 11 - }, - "end": { - "line": 973, - "column": 15 - }, - "identifierName": "then" - }, - "name": "then" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 35298, - "end": 36648, - "loc": { - "start": { - "line": 973, - "column": 16 - }, - "end": { - "line": 1011, - "column": 11 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 35299, - "end": 35332, - "loc": { - "start": { - "line": 973, - "column": 17 - }, - "end": { - "line": 973, - "column": 50 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 35301, - "end": 35313, - "loc": { - "start": { - "line": 973, - "column": 19 - }, - "end": { - "line": 973, - "column": 31 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 35301, - "end": 35313, - "loc": { - "start": { - "line": 973, - "column": 19 - }, - "end": { - "line": 973, - "column": 31 - }, - "identifierName": "fieldInvites" - }, - "name": "fieldInvites" - }, - "value": { - "type": "Identifier", - "start": 35301, - "end": 35313, - "loc": { - "start": { - "line": 973, - "column": 19 - }, - "end": { - "line": 973, - "column": 31 - }, - "identifierName": "fieldInvites" - }, - "name": "fieldInvites" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 35315, - "end": 35330, - "loc": { - "start": { - "line": 973, - "column": 33 - }, - "end": { - "line": 973, - "column": 48 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 35315, - "end": 35330, - "loc": { - "start": { - "line": 973, - "column": 33 - }, - "end": { - "line": 973, - "column": 48 - }, - "identifierName": "freeformInvites" - }, - "name": "freeformInvites" - }, - "value": { - "type": "Identifier", - "start": 35315, - "end": 35330, - "loc": { - "start": { - "line": 973, - "column": 33 - }, - "end": { - "line": 973, - "column": 48 - }, - "identifierName": "freeformInvites" - }, - "name": "freeformInvites" - }, - "extra": { - "shorthand": true - } - } - ] - } - ], - "body": { - "type": "BlockStatement", - "start": 35337, - "end": 36648, - "loc": { - "start": { - "line": 973, - "column": 55 - }, - "end": { - "line": 1011, - "column": 11 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 35351, - "end": 35782, - "loc": { - "start": { - "line": 974, - "column": 12 - }, - "end": { - "line": 984, - "column": 58 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 35357, - "end": 35781, - "loc": { - "start": { - "line": 974, - "column": 18 - }, - "end": { - "line": 984, - "column": 57 - } - }, - "id": { - "type": "Identifier", - "start": 35357, - "end": 35378, - "loc": { - "start": { - "line": 974, - "column": 18 - }, - "end": { - "line": 974, - "column": 39 - }, - "identifierName": "fieldInvitesCancelled" - }, - "name": "fieldInvitesCancelled" - }, - "init": { - "type": "CallExpression", - "start": 35381, - "end": 35781, - "loc": { - "start": { - "line": 974, - "column": 42 - }, - "end": { - "line": 984, - "column": 57 - } - }, - "callee": { - "type": "MemberExpression", - "start": 35381, - "end": 35743, - "loc": { - "start": { - "line": 974, - "column": 42 - }, - "end": { - "line": 984, - "column": 19 - } - }, - "object": { - "type": "NewExpression", - "start": 35381, - "end": 35723, - "loc": { - "start": { - "line": 974, - "column": 42 - }, - "end": { - "line": 983, - "column": 14 - } - }, - "callee": { - "type": "Identifier", - "start": 35385, - "end": 35392, - "loc": { - "start": { - "line": 974, - "column": 46 - }, - "end": { - "line": 974, - "column": 53 - }, - "identifierName": "Promise" - }, - "name": "Promise" - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 35393, - "end": 35722, - "loc": { - "start": { - "line": 974, - "column": 54 - }, - "end": { - "line": 983, - "column": 13 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 35393, - "end": 35400, - "loc": { - "start": { - "line": 974, - "column": 54 - }, - "end": { - "line": 974, - "column": 61 - }, - "identifierName": "resolve" - }, - "name": "resolve" - } - ], - "body": { - "type": "BlockStatement", - "start": 35404, - "end": 35722, - "loc": { - "start": { - "line": 974, - "column": 65 - }, - "end": { - "line": 983, - "column": 13 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 35420, - "end": 35708, - "loc": { - "start": { - "line": 975, - "column": 14 - }, - "end": { - "line": 982, - "column": 15 - } - }, - "test": { - "type": "LogicalExpression", - "start": 35424, - "end": 35474, - "loc": { - "start": { - "line": 975, - "column": 18 - }, - "end": { - "line": 975, - "column": 68 - } - }, - "left": { - "type": "CallExpression", - "start": 35424, - "end": 35451, - "loc": { - "start": { - "line": 975, - "column": 18 - }, - "end": { - "line": 975, - "column": 45 - } - }, - "callee": { - "type": "MemberExpression", - "start": 35424, - "end": 35437, - "loc": { - "start": { - "line": 975, - "column": 18 - }, - "end": { - "line": 975, - "column": 31 - } - }, - "object": { - "type": "Identifier", - "start": 35424, - "end": 35429, - "loc": { - "start": { - "line": 975, - "column": 18 - }, - "end": { - "line": 975, - "column": 23 - }, - "identifierName": "Array" - }, - "name": "Array" - }, - "property": { - "type": "Identifier", - "start": 35430, - "end": 35437, - "loc": { - "start": { - "line": 975, - "column": 24 - }, - "end": { - "line": 975, - "column": 31 - }, - "identifierName": "isArray" - }, - "name": "isArray" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 35438, - "end": 35450, - "loc": { - "start": { - "line": 975, - "column": 32 - }, - "end": { - "line": 975, - "column": 44 - }, - "identifierName": "fieldInvites" - }, - "name": "fieldInvites" - } - ] - }, - "operator": "&&", - "right": { - "type": "MemberExpression", - "start": 35455, - "end": 35474, - "loc": { - "start": { - "line": 975, - "column": 49 - }, - "end": { - "line": 975, - "column": 68 - } - }, - "object": { - "type": "Identifier", - "start": 35455, - "end": 35467, - "loc": { - "start": { - "line": 975, - "column": 49 - }, - "end": { - "line": 975, - "column": 61 - }, - "identifierName": "fieldInvites" - }, - "name": "fieldInvites" - }, - "property": { - "type": "Identifier", - "start": 35468, - "end": 35474, - "loc": { - "start": { - "line": 975, - "column": 62 - }, - "end": { - "line": 975, - "column": 68 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - } - }, - "consequent": { - "type": "BlockStatement", - "start": 35476, - "end": 35637, - "loc": { - "start": { - "line": 975, - "column": 70 - }, - "end": { - "line": 980, - "column": 15 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 35494, - "end": 35621, - "loc": { - "start": { - "line": 976, - "column": 16 - }, - "end": { - "line": 979, - "column": 20 - } - }, - "expression": { - "type": "CallExpression", - "start": 35494, - "end": 35620, - "loc": { - "start": { - "line": 976, - "column": 16 - }, - "end": { - "line": 979, - "column": 19 - } - }, - "callee": { - "type": "Identifier", - "start": 35494, - "end": 35501, - "loc": { - "start": { - "line": 976, - "column": 16 - }, - "end": { - "line": 976, - "column": 23 - }, - "identifierName": "resolve" - }, - "name": "resolve" - }, - "arguments": [ - { - "type": "CallExpression", - "start": 35502, - "end": 35619, - "loc": { - "start": { - "line": 976, - "column": 24 - }, - "end": { - "line": 979, - "column": 18 - } - }, - "callee": { - "type": "CallExpression", - "start": 35502, - "end": 35539, - "loc": { - "start": { - "line": 976, - "column": 24 - }, - "end": { - "line": 976, - "column": 61 - } - }, - "callee": { - "type": "Identifier", - "start": 35502, - "end": 35511, - "loc": { - "start": { - "line": 976, - "column": 24 - }, - "end": { - "line": 976, - "column": 33 - }, - "identifierName": "promisify" - }, - "name": "promisify" - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 35512, - "end": 35538, - "loc": { - "start": { - "line": 976, - "column": 34 - }, - "end": { - "line": 976, - "column": 60 - } - }, - "object": { - "type": "Identifier", - "start": 35512, - "end": 35520, - "loc": { - "start": { - "line": 976, - "column": 34 - }, - "end": { - "line": 976, - "column": 42 - }, - "identifierName": "Document" - }, - "name": "Document" - }, - "property": { - "type": "Identifier", - "start": 35521, - "end": 35538, - "loc": { - "start": { - "line": 976, - "column": 43 - }, - "end": { - "line": 976, - "column": 60 - }, - "identifierName": "cancelFieldInvite" - }, - "name": "cancelFieldInvite" - }, - "computed": false - } - ] - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 35540, - "end": 35618, - "loc": { - "start": { - "line": 976, - "column": 62 - }, - "end": { - "line": 979, - "column": 17 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 35560, - "end": 35574, - "loc": { - "start": { - "line": 977, - "column": 18 - }, - "end": { - "line": 977, - "column": 32 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 35560, - "end": 35562, - "loc": { - "start": { - "line": 977, - "column": 18 - }, - "end": { - "line": 977, - "column": 20 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 35564, - "end": 35574, - "loc": { - "start": { - "line": 977, - "column": 22 - }, - "end": { - "line": 977, - "column": 32 - }, - "identifierName": "documentId" - }, - "name": "documentId" - } - }, - { - "type": "ObjectProperty", - "start": 35594, - "end": 35599, - "loc": { - "start": { - "line": 978, - "column": 18 - }, - "end": { - "line": 978, - "column": 23 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 35594, - "end": 35599, - "loc": { - "start": { - "line": 978, - "column": 18 - }, - "end": { - "line": 978, - "column": 23 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 35594, - "end": 35599, - "loc": { - "start": { - "line": 978, - "column": 18 - }, - "end": { - "line": 978, - "column": 23 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - ] - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 35643, - "end": 35708, - "loc": { - "start": { - "line": 980, - "column": 21 - }, - "end": { - "line": 982, - "column": 15 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 35661, - "end": 35692, - "loc": { - "start": { - "line": 981, - "column": 16 - }, - "end": { - "line": 981, - "column": 47 - } - }, - "expression": { - "type": "CallExpression", - "start": 35661, - "end": 35691, - "loc": { - "start": { - "line": 981, - "column": 16 - }, - "end": { - "line": 981, - "column": 46 - } - }, - "callee": { - "type": "Identifier", - "start": 35661, - "end": 35668, - "loc": { - "start": { - "line": 981, - "column": 16 - }, - "end": { - "line": 981, - "column": 23 - }, - "identifierName": "resolve" - }, - "name": "resolve" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 35669, - "end": 35690, - "loc": { - "start": { - "line": 981, - "column": 24 - }, - "end": { - "line": 981, - "column": 45 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 35671, - "end": 35688, - "loc": { - "start": { - "line": 981, - "column": 26 - }, - "end": { - "line": 981, - "column": 43 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 35671, - "end": 35677, - "loc": { - "start": { - "line": 981, - "column": 26 - }, - "end": { - "line": 981, - "column": 32 - }, - "identifierName": "status" - }, - "name": "status" - }, - "value": { - "type": "StringLiteral", - "start": 35679, - "end": 35688, - "loc": { - "start": { - "line": 981, - "column": 34 - }, - "end": { - "line": 981, - "column": 43 - } - }, - "extra": { - "rawValue": "success", - "raw": "'success'" - }, - "value": "success" - } - } - ] - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ] - }, - "property": { - "type": "Identifier", - "start": 35739, - "end": 35743, - "loc": { - "start": { - "line": 984, - "column": 15 - }, - "end": { - "line": 984, - "column": 19 - }, - "identifierName": "then" - }, - "name": "then" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 35744, - "end": 35780, - "loc": { - "start": { - "line": 984, - "column": 20 - }, - "end": { - "line": 984, - "column": 56 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 35745, - "end": 35755, - "loc": { - "start": { - "line": 984, - "column": 21 - }, - "end": { - "line": 984, - "column": 31 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 35747, - "end": 35753, - "loc": { - "start": { - "line": 984, - "column": 23 - }, - "end": { - "line": 984, - "column": 29 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 35747, - "end": 35753, - "loc": { - "start": { - "line": 984, - "column": 23 - }, - "end": { - "line": 984, - "column": 29 - }, - "identifierName": "status" - }, - "name": "status" - }, - "value": { - "type": "Identifier", - "start": 35747, - "end": 35753, - "loc": { - "start": { - "line": 984, - "column": 23 - }, - "end": { - "line": 984, - "column": 29 - }, - "identifierName": "status" - }, - "name": "status" - }, - "extra": { - "shorthand": true - } - } - ] - } - ], - "body": { - "type": "BinaryExpression", - "start": 35760, - "end": 35780, - "loc": { - "start": { - "line": 984, - "column": 36 - }, - "end": { - "line": 984, - "column": 56 - } - }, - "left": { - "type": "Identifier", - "start": 35760, - "end": 35766, - "loc": { - "start": { - "line": 984, - "column": 36 - }, - "end": { - "line": 984, - "column": 42 - }, - "identifierName": "status" - }, - "name": "status" - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 35771, - "end": 35780, - "loc": { - "start": { - "line": 984, - "column": 47 - }, - "end": { - "line": 984, - "column": 56 - } - }, - "extra": { - "rawValue": "success", - "raw": "'success'" - }, - "value": "success" - } - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 35796, - "end": 36090, - "loc": { - "start": { - "line": 986, - "column": 12 - }, - "end": { - "line": 993, - "column": 17 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 35802, - "end": 36089, - "loc": { - "start": { - "line": 986, - "column": 18 - }, - "end": { - "line": 993, - "column": 16 - } - }, - "id": { - "type": "Identifier", - "start": 35802, - "end": 35826, - "loc": { - "start": { - "line": 986, - "column": 18 - }, - "end": { - "line": 986, - "column": 42 - }, - "identifierName": "freeformInvitesCancelled" - }, - "name": "freeformInvitesCancelled" - }, - "init": { - "type": "CallExpression", - "start": 35829, - "end": 36089, - "loc": { - "start": { - "line": 986, - "column": 45 - }, - "end": { - "line": 993, - "column": 16 - } - }, - "callee": { - "type": "MemberExpression", - "start": 35829, - "end": 35863, - "loc": { - "start": { - "line": 986, - "column": 45 - }, - "end": { - "line": 987, - "column": 18 - } - }, - "object": { - "type": "Identifier", - "start": 35829, - "end": 35844, - "loc": { - "start": { - "line": 986, - "column": 45 - }, - "end": { - "line": 986, - "column": 60 - }, - "identifierName": "freeformInvites" - }, - "name": "freeformInvites" - }, - "property": { - "type": "Identifier", - "start": 35860, - "end": 35863, - "loc": { - "start": { - "line": 987, - "column": 15 - }, - "end": { - "line": 987, - "column": 18 - }, - "identifierName": "map" - }, - "name": "map" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 35864, - "end": 36088, - "loc": { - "start": { - "line": 987, - "column": 19 - }, - "end": { - "line": 993, - "column": 15 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 35865, - "end": 35881, - "loc": { - "start": { - "line": 987, - "column": 20 - }, - "end": { - "line": 987, - "column": 36 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 35867, - "end": 35879, - "loc": { - "start": { - "line": 987, - "column": 22 - }, - "end": { - "line": 987, - "column": 34 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 35867, - "end": 35869, - "loc": { - "start": { - "line": 987, - "column": 22 - }, - "end": { - "line": 987, - "column": 24 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 35871, - "end": 35879, - "loc": { - "start": { - "line": 987, - "column": 26 - }, - "end": { - "line": 987, - "column": 34 - }, - "identifierName": "inviteId" - }, - "name": "inviteId" - } - } - ] - } - ], - "body": { - "type": "BlockStatement", - "start": 35886, - "end": 36088, - "loc": { - "start": { - "line": 987, - "column": 41 - }, - "end": { - "line": 993, - "column": 15 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 35904, - "end": 36072, - "loc": { - "start": { - "line": 988, - "column": 16 - }, - "end": { - "line": 992, - "column": 42 - } - }, - "argument": { - "type": "CallExpression", - "start": 35911, - "end": 36071, - "loc": { - "start": { - "line": 988, - "column": 23 - }, - "end": { - "line": 992, - "column": 41 - } - }, - "callee": { - "type": "MemberExpression", - "start": 35911, - "end": 36053, - "loc": { - "start": { - "line": 988, - "column": 23 - }, - "end": { - "line": 992, - "column": 23 - } - }, - "object": { - "type": "CallExpression", - "start": 35911, - "end": 36029, - "loc": { - "start": { - "line": 988, - "column": 23 - }, - "end": { - "line": 991, - "column": 18 - } - }, - "callee": { - "type": "CallExpression", - "start": 35911, - "end": 35951, - "loc": { - "start": { - "line": 988, - "column": 23 - }, - "end": { - "line": 988, - "column": 63 - } - }, - "callee": { - "type": "Identifier", - "start": 35911, - "end": 35920, - "loc": { - "start": { - "line": 988, - "column": 23 - }, - "end": { - "line": 988, - "column": 32 - }, - "identifierName": "promisify" - }, - "name": "promisify" - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 35921, - "end": 35950, - "loc": { - "start": { - "line": 988, - "column": 33 - }, - "end": { - "line": 988, - "column": 62 - } - }, - "object": { - "type": "Identifier", - "start": 35921, - "end": 35929, - "loc": { - "start": { - "line": 988, - "column": 33 - }, - "end": { - "line": 988, - "column": 41 - }, - "identifierName": "Document" - }, - "name": "Document" - }, - "property": { - "type": "Identifier", - "start": 35930, - "end": 35950, - "loc": { - "start": { - "line": 988, - "column": 42 - }, - "end": { - "line": 988, - "column": 62 - }, - "identifierName": "cancelFreeFormInvite" - }, - "name": "cancelFreeFormInvite" - }, - "computed": false - } - ] - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 35952, - "end": 36028, - "loc": { - "start": { - "line": 988, - "column": 64 - }, - "end": { - "line": 991, - "column": 17 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 35972, - "end": 35984, - "loc": { - "start": { - "line": 989, - "column": 18 - }, - "end": { - "line": 989, - "column": 30 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 35972, - "end": 35974, - "loc": { - "start": { - "line": 989, - "column": 18 - }, - "end": { - "line": 989, - "column": 20 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 35976, - "end": 35984, - "loc": { - "start": { - "line": 989, - "column": 22 - }, - "end": { - "line": 989, - "column": 30 - }, - "identifierName": "inviteId" - }, - "name": "inviteId" - } - }, - { - "type": "ObjectProperty", - "start": 36004, - "end": 36009, - "loc": { - "start": { - "line": 990, - "column": 18 - }, - "end": { - "line": 990, - "column": 23 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 36004, - "end": 36009, - "loc": { - "start": { - "line": 990, - "column": 18 - }, - "end": { - "line": 990, - "column": 23 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 36004, - "end": 36009, - "loc": { - "start": { - "line": 990, - "column": 18 - }, - "end": { - "line": 990, - "column": 23 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 36049, - "end": 36053, - "loc": { - "start": { - "line": 992, - "column": 19 - }, - "end": { - "line": 992, - "column": 23 - }, - "identifierName": "then" - }, - "name": "then" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 36054, - "end": 36070, - "loc": { - "start": { - "line": 992, - "column": 24 - }, - "end": { - "line": 992, - "column": 40 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 36055, - "end": 36061, - "loc": { - "start": { - "line": 992, - "column": 25 - }, - "end": { - "line": 992, - "column": 31 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 36057, - "end": 36059, - "loc": { - "start": { - "line": 992, - "column": 27 - }, - "end": { - "line": 992, - "column": 29 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 36057, - "end": 36059, - "loc": { - "start": { - "line": 992, - "column": 27 - }, - "end": { - "line": 992, - "column": 29 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 36057, - "end": 36059, - "loc": { - "start": { - "line": 992, - "column": 27 - }, - "end": { - "line": 992, - "column": 29 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - } - ] - } - ], - "body": { - "type": "UnaryExpression", - "start": 36066, - "end": 36070, - "loc": { - "start": { - "line": 992, - "column": 36 - }, - "end": { - "line": 992, - "column": 40 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "UnaryExpression", - "start": 36067, - "end": 36070, - "loc": { - "start": { - "line": 992, - "column": 37 - }, - "end": { - "line": 992, - "column": 40 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 36068, - "end": 36070, - "loc": { - "start": { - "line": 992, - "column": 38 - }, - "end": { - "line": 992, - "column": 40 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "parenthesizedArgument": false - } - }, - "extra": { - "parenthesizedArgument": false - } - } - } - ] - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 36104, - "end": 36636, - "loc": { - "start": { - "line": 995, - "column": 12 - }, - "end": { - "line": 1010, - "column": 17 - } - }, - "expression": { - "type": "CallExpression", - "start": 36104, - "end": 36635, - "loc": { - "start": { - "line": 995, - "column": 12 - }, - "end": { - "line": 1010, - "column": 16 - } - }, - "callee": { - "type": "MemberExpression", - "start": 36104, - "end": 36538, - "loc": { - "start": { - "line": 995, - "column": 12 - }, - "end": { - "line": 1007, - "column": 20 - } - }, - "object": { - "type": "CallExpression", - "start": 36104, - "end": 36517, - "loc": { - "start": { - "line": 995, - "column": 12 - }, - "end": { - "line": 1006, - "column": 16 - } - }, - "callee": { - "type": "MemberExpression", - "start": 36104, - "end": 36232, - "loc": { - "start": { - "line": 995, - "column": 12 - }, - "end": { - "line": 999, - "column": 19 - } - }, - "object": { - "type": "CallExpression", - "start": 36104, - "end": 36212, - "loc": { - "start": { - "line": 995, - "column": 12 - }, - "end": { - "line": 998, - "column": 14 - } - }, - "callee": { - "type": "MemberExpression", - "start": 36104, - "end": 36115, - "loc": { - "start": { - "line": 995, - "column": 12 - }, - "end": { - "line": 995, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 36104, - "end": 36111, - "loc": { - "start": { - "line": 995, - "column": 12 - }, - "end": { - "line": 995, - "column": 19 - }, - "identifierName": "Promise" - }, - "name": "Promise" - }, - "property": { - "type": "Identifier", - "start": 36112, - "end": 36115, - "loc": { - "start": { - "line": 995, - "column": 20 - }, - "end": { - "line": 995, - "column": 23 - }, - "identifierName": "all" - }, - "name": "all" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrayExpression", - "start": 36116, - "end": 36211, - "loc": { - "start": { - "line": 995, - "column": 24 - }, - "end": { - "line": 998, - "column": 13 - } - }, - "elements": [ - { - "type": "Identifier", - "start": 36132, - "end": 36153, - "loc": { - "start": { - "line": 996, - "column": 14 - }, - "end": { - "line": 996, - "column": 35 - }, - "identifierName": "fieldInvitesCancelled" - }, - "name": "fieldInvitesCancelled" - }, - { - "type": "SpreadElement", - "start": 36169, - "end": 36196, - "loc": { - "start": { - "line": 997, - "column": 14 - }, - "end": { - "line": 997, - "column": 41 - } - }, - "argument": { - "type": "Identifier", - "start": 36172, - "end": 36196, - "loc": { - "start": { - "line": 997, - "column": 17 - }, - "end": { - "line": 997, - "column": 41 - }, - "identifierName": "freeformInvitesCancelled" - }, - "name": "freeformInvitesCancelled" - } - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 36228, - "end": 36232, - "loc": { - "start": { - "line": 999, - "column": 15 - }, - "end": { - "line": 999, - "column": 19 - }, - "identifierName": "then" - }, - "name": "then" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 36233, - "end": 36516, - "loc": { - "start": { - "line": 999, - "column": 20 - }, - "end": { - "line": 1006, - "column": 15 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 36233, - "end": 36252, - "loc": { - "start": { - "line": 999, - "column": 20 - }, - "end": { - "line": 999, - "column": 39 - }, - "identifierName": "allInvitesCancelled" - }, - "name": "allInvitesCancelled" - } - ], - "body": { - "type": "BlockStatement", - "start": 36256, - "end": 36516, - "loc": { - "start": { - "line": 999, - "column": 43 - }, - "end": { - "line": 1006, - "column": 15 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 36274, - "end": 36500, - "loc": { - "start": { - "line": 1000, - "column": 16 - }, - "end": { - "line": 1005, - "column": 17 - } - }, - "test": { - "type": "Identifier", - "start": 36278, - "end": 36297, - "loc": { - "start": { - "line": 1000, - "column": 20 - }, - "end": { - "line": 1000, - "column": 39 - }, - "identifierName": "allInvitesCancelled" - }, - "name": "allInvitesCancelled" - }, - "consequent": { - "type": "BlockStatement", - "start": 36299, - "end": 36397, - "loc": { - "start": { - "line": 1000, - "column": 41 - }, - "end": { - "line": 1003, - "column": 17 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 36319, - "end": 36353, - "loc": { - "start": { - "line": 1001, - "column": 18 - }, - "end": { - "line": 1001, - "column": 52 - } - }, - "expression": { - "type": "CallExpression", - "start": 36319, - "end": 36352, - "loc": { - "start": { - "line": 1001, - "column": 18 - }, - "end": { - "line": 1001, - "column": 51 - } - }, - "callee": { - "type": "Identifier", - "start": 36319, - "end": 36335, - "loc": { - "start": { - "line": 1001, - "column": 18 - }, - "end": { - "line": 1001, - "column": 34 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - }, - "arguments": [ - { - "type": "NullLiteral", - "start": 36336, - "end": 36340, - "loc": { - "start": { - "line": 1001, - "column": 35 - }, - "end": { - "line": 1001, - "column": 39 - } - } - }, - { - "type": "Identifier", - "start": 36342, - "end": 36351, - "loc": { - "start": { - "line": 1001, - "column": 41 - }, - "end": { - "line": 1001, - "column": 50 - }, - "identifierName": "removeRes" - }, - "name": "removeRes" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 36372, - "end": 36379, - "loc": { - "start": { - "line": 1002, - "column": 18 - }, - "end": { - "line": 1002, - "column": 25 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 36403, - "end": 36500, - "loc": { - "start": { - "line": 1003, - "column": 23 - }, - "end": { - "line": 1005, - "column": 17 - } - }, - "body": [ - { - "type": "ThrowStatement", - "start": 36423, - "end": 36482, - "loc": { - "start": { - "line": 1004, - "column": 18 - }, - "end": { - "line": 1004, - "column": 77 - } - }, - "argument": { - "type": "NewExpression", - "start": 36429, - "end": 36481, - "loc": { - "start": { - "line": 1004, - "column": 24 - }, - "end": { - "line": 1004, - "column": 76 - } - }, - "callee": { - "type": "Identifier", - "start": 36433, - "end": 36438, - "loc": { - "start": { - "line": 1004, - "column": 28 - }, - "end": { - "line": 1004, - "column": 33 - }, - "identifierName": "Error" - }, - "name": "Error" - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 36439, - "end": 36480, - "loc": { - "start": { - "line": 1004, - "column": 34 - }, - "end": { - "line": 1004, - "column": 75 - } - }, - "extra": { - "rawValue": "Some of invites have not been cancelled", - "raw": "'Some of invites have not been cancelled'" - }, - "value": "Some of invites have not been cancelled" - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ] - }, - "property": { - "type": "Identifier", - "start": 36533, - "end": 36538, - "loc": { - "start": { - "line": 1007, - "column": 15 - }, - "end": { - "line": 1007, - "column": 20 - }, - "identifierName": "catch" - }, - "name": "catch" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 36539, - "end": 36634, - "loc": { - "start": { - "line": 1007, - "column": 21 - }, - "end": { - "line": 1010, - "column": 15 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 36539, - "end": 36542, - "loc": { - "start": { - "line": 1007, - "column": 21 - }, - "end": { - "line": 1007, - "column": 24 - }, - "identifierName": "err" - }, - "name": "err" - } - ], - "body": { - "type": "BlockStatement", - "start": 36546, - "end": 36634, - "loc": { - "start": { - "line": 1007, - "column": 28 - }, - "end": { - "line": 1010, - "column": 15 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 36564, - "end": 36594, - "loc": { - "start": { - "line": 1008, - "column": 16 - }, - "end": { - "line": 1008, - "column": 46 - } - }, - "expression": { - "type": "CallExpression", - "start": 36564, - "end": 36593, - "loc": { - "start": { - "line": 1008, - "column": 16 - }, - "end": { - "line": 1008, - "column": 45 - } - }, - "callee": { - "type": "Identifier", - "start": 36564, - "end": 36580, - "loc": { - "start": { - "line": 1008, - "column": 16 - }, - "end": { - "line": 1008, - "column": 32 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 36581, - "end": 36592, - "loc": { - "start": { - "line": 1008, - "column": 33 - }, - "end": { - "line": 1008, - "column": 44 - } - }, - "object": { - "type": "Identifier", - "start": 36581, - "end": 36584, - "loc": { - "start": { - "line": 1008, - "column": 33 - }, - "end": { - "line": 1008, - "column": 36 - }, - "identifierName": "err" - }, - "name": "err" - }, - "property": { - "type": "Identifier", - "start": 36585, - "end": 36592, - "loc": { - "start": { - "line": 1008, - "column": 37 - }, - "end": { - "line": 1008, - "column": 44 - }, - "identifierName": "message" - }, - "name": "message" - }, - "computed": false - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 36611, - "end": 36618, - "loc": { - "start": { - "line": 1009, - "column": 16 - }, - "end": { - "line": 1009, - "column": 23 - } - }, - "argument": null - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 36671, - "end": 36766, - "loc": { - "start": { - "line": 1015, - "column": 4 - }, - "end": { - "line": 1017, - "column": 25 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 36677, - "end": 36765, - "loc": { - "start": { - "line": 1015, - "column": 10 - }, - "end": { - "line": 1017, - "column": 24 - } - }, - "id": { - "type": "Identifier", - "start": 36677, - "end": 36685, - "loc": { - "start": { - "line": 1015, - "column": 10 - }, - "end": { - "line": 1015, - "column": 18 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "init": { - "type": "ConditionalExpression", - "start": 36688, - "end": 36765, - "loc": { - "start": { - "line": 1015, - "column": 21 - }, - "end": { - "line": 1017, - "column": 24 - } - }, - "test": { - "type": "Identifier", - "start": 36688, - "end": 36701, - "loc": { - "start": { - "line": 1015, - "column": 21 - }, - "end": { - "line": 1015, - "column": 34 - }, - "identifierName": "cancelInvites" - }, - "name": "cancelInvites" - }, - "consequent": { - "type": "Identifier", - "start": 36710, - "end": 36740, - "loc": { - "start": { - "line": 1016, - "column": 8 - }, - "end": { - "line": 1016, - "column": 38 - }, - "identifierName": "callbackWithInviteCancellation" - }, - "name": "callbackWithInviteCancellation" - }, - "alternate": { - "type": "Identifier", - "start": 36749, - "end": 36765, - "loc": { - "start": { - "line": 1017, - "column": 8 - }, - "end": { - "line": 1017, - "column": 24 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - } - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 36772, - "end": 37062, - "loc": { - "start": { - "line": 1019, - "column": 4 - }, - "end": { - "line": 1029, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 36772, - "end": 37061, - "loc": { - "start": { - "line": 1019, - "column": 4 - }, - "end": { - "line": 1029, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 36772, - "end": 37059, - "loc": { - "start": { - "line": 1019, - "column": 4 - }, - "end": { - "line": 1029, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 36772, - "end": 37048, - "loc": { - "start": { - "line": 1019, - "column": 4 - }, - "end": { - "line": 1028, - "column": 50 - } - }, - "callee": { - "type": "MemberExpression", - "start": 36772, - "end": 37007, - "loc": { - "start": { - "line": 1019, - "column": 4 - }, - "end": { - "line": 1028, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 36772, - "end": 36997, - "loc": { - "start": { - "line": 1019, - "column": 4 - }, - "end": { - "line": 1027, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 36772, - "end": 36792, - "loc": { - "start": { - "line": 1019, - "column": 4 - }, - "end": { - "line": 1020, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 36772, - "end": 36777, - "loc": { - "start": { - "line": 1019, - "column": 4 - }, - "end": { - "line": 1019, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 36785, - "end": 36792, - "loc": { - "start": { - "line": 1020, - "column": 7 - }, - "end": { - "line": 1020, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 36793, - "end": 36969, - "loc": { - "start": { - "line": 1020, - "column": 15 - }, - "end": { - "line": 1027, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 36793, - "end": 36812, - "loc": { - "start": { - "line": 1020, - "column": 15 - }, - "end": { - "line": 1020, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 36813, - "end": 36968, - "loc": { - "start": { - "line": 1020, - "column": 35 - }, - "end": { - "line": 1027, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 36823, - "end": 36839, - "loc": { - "start": { - "line": 1021, - "column": 8 - }, - "end": { - "line": 1021, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 36823, - "end": 36829, - "loc": { - "start": { - "line": 1021, - "column": 8 - }, - "end": { - "line": 1021, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 36831, - "end": 36839, - "loc": { - "start": { - "line": 1021, - "column": 16 - }, - "end": { - "line": 1021, - "column": 24 - } - }, - "extra": { - "rawValue": "DELETE", - "raw": "'DELETE'" - }, - "value": "DELETE" - } - }, - { - "type": "ObjectProperty", - "start": 36849, - "end": 36880, - "loc": { - "start": { - "line": 1022, - "column": 8 - }, - "end": { - "line": 1022, - "column": 39 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 36849, - "end": 36853, - "loc": { - "start": { - "line": 1022, - "column": 8 - }, - "end": { - "line": 1022, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 36855, - "end": 36880, - "loc": { - "start": { - "line": 1022, - "column": 14 - }, - "end": { - "line": 1022, - "column": 39 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 36868, - "end": 36878, - "loc": { - "start": { - "line": 1022, - "column": 27 - }, - "end": { - "line": 1022, - "column": 37 - }, - "identifierName": "documentId" - }, - "name": "documentId" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 36856, - "end": 36866, - "loc": { - "start": { - "line": 1022, - "column": 15 - }, - "end": { - "line": 1022, - "column": 25 - } - }, - "value": { - "raw": "/document/", - "cooked": "/document/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 36879, - "end": 36879, - "loc": { - "start": { - "line": 1022, - "column": 38 - }, - "end": { - "line": 1022, - "column": 38 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 36890, - "end": 36959, - "loc": { - "start": { - "line": 1023, - "column": 8 - }, - "end": { - "line": 1026, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 36890, - "end": 36903, - "loc": { - "start": { - "line": 1023, - "column": 8 - }, - "end": { - "line": 1023, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 36905, - "end": 36959, - "loc": { - "start": { - "line": 1023, - "column": 23 - }, - "end": { - "line": 1026, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 36917, - "end": 36931, - "loc": { - "start": { - "line": 1024, - "column": 10 - }, - "end": { - "line": 1024, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 36917, - "end": 36921, - "loc": { - "start": { - "line": 1024, - "column": 10 - }, - "end": { - "line": 1024, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 36923, - "end": 36931, - "loc": { - "start": { - "line": 1024, - "column": 16 - }, - "end": { - "line": 1024, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 36943, - "end": 36948, - "loc": { - "start": { - "line": 1025, - "column": 10 - }, - "end": { - "line": 1025, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 36943, - "end": 36948, - "loc": { - "start": { - "line": 1025, - "column": 10 - }, - "end": { - "line": 1025, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 36943, - "end": 36948, - "loc": { - "start": { - "line": 1025, - "column": 10 - }, - "end": { - "line": 1025, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 36971, - "end": 36996, - "loc": { - "start": { - "line": 1027, - "column": 10 - }, - "end": { - "line": 1027, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 36971, - "end": 36986, - "loc": { - "start": { - "line": 1027, - "column": 10 - }, - "end": { - "line": 1027, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 36987, - "end": 36995, - "loc": { - "start": { - "line": 1027, - "column": 26 - }, - "end": { - "line": 1027, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 37005, - "end": 37007, - "loc": { - "start": { - "line": 1028, - "column": 7 - }, - "end": { - "line": 1028, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 37008, - "end": 37015, - "loc": { - "start": { - "line": 1028, - "column": 10 - }, - "end": { - "line": 1028, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 37017, - "end": 37047, - "loc": { - "start": { - "line": 1028, - "column": 19 - }, - "end": { - "line": 1028, - "column": 49 - } - }, - "callee": { - "type": "Identifier", - "start": 37017, - "end": 37029, - "loc": { - "start": { - "line": 1028, - "column": 19 - }, - "end": { - "line": 1028, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 37030, - "end": 37046, - "loc": { - "start": { - "line": 1028, - "column": 32 - }, - "end": { - "line": 1028, - "column": 48 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 37056, - "end": 37059, - "loc": { - "start": { - "line": 1029, - "column": 7 - }, - "end": { - "line": 1029, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document remove optional settings\n * @typedef {Object} DocumentRemoveOptions\n * @property {boolean} [cancelInvites=false] - ability to cancel all document invites during deletion\n ", - "start": 33802, - "end": 33999, - "loc": { - "start": { - "line": 927, - "column": 2 - }, - "end": { - "line": 931, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Remove document payload\n * @typedef {Object} DocumentRemoveParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n * @property {DocumentRemoveOptions} [options] - document remove optional settings\n ", - "start": 34003, - "end": 34271, - "loc": { - "start": { - "line": 933, - "column": 2 - }, - "end": { - "line": 939, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Remove document response data\n * @typedef {Object} DocumentRemoveResponse\n * @property {string} status - status of deletion, e.g. 'success'\n ", - "start": 34275, - "end": 34433, - "loc": { - "start": { - "line": 941, - "column": 2 - }, - "end": { - "line": 945, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Removes a specified document from folder\n * @param {DocumentRemoveParams} data - remove document payload\n * @param {function(err: ApiErrorResponse, res: DocumentRemoveResponse)} [originalCallback] - error first node.js callback\n ", - "start": 34437, - "end": 34683, - "loc": { - "start": { - "line": 947, - "column": 2 - }, - "end": { - "line": 951, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Get Document Signers optional settings\n * @typedef {Object} DocumentSignersOptions\n * @property {boolean} [allSignatures=true] - if true receive all document signers email\n * @property {boolean} [freeFormInvites=false] - if `true` return free from invite signer emails\n * @property {?string[]} [fieldInvitesStatus=null] - return signers according to specified field invite status(es)\n * Accepts list of statuses or a single status.\n * Acceptable statuses: all, pending, declined, fulfilled, created, skipped.\n * @property {?string[]} [paymentRequestsStatus=null] - return signers according to specified to payment request status(es)\n * Accepts list of statuses or a single status.\n * Available statuses: all, pending, fulfilled, created, skipped.\n ", - "start": 37070, - "end": 37849, - "loc": { - "start": { - "line": 1032, - "column": 2 - }, - "end": { - "line": 1043, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Get Document Signers payload\n * @typedef {Object} DocumentSignersParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n * @property {DocumentSignersOptions} [options] - document signers optional settings,\n ", - "start": 37853, - "end": 38130, - "loc": { - "start": { - "line": 1045, - "column": 2 - }, - "end": { - "line": 1051, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Get Document Signers response data\n * @typedef {Object} DocumentSignersResponse\n * @property {string[]} - emails of document signers\n ", - "start": 38134, - "end": 38286, - "loc": { - "start": { - "line": 1053, - "column": 2 - }, - "end": { - "line": 1057, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves all signers of specific document\n * @experimental this class includes breaking change.\n * @param {DocumentSignersParams} data - get document signers payload\n * @param {function(err: ApiErrorResponse, res: DocumentSignersResponse)} [callback] - error first node.js callback\n ", - "start": 38290, - "end": 38593, - "loc": { - "start": { - "line": 1059, - "column": 2 - }, - "end": { - "line": 1064, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 38596, - "end": 40223, - "loc": { - "start": { - "line": 1065, - "column": 2 - }, - "end": { - "line": 1123, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 38603, - "end": 38610, - "loc": { - "start": { - "line": 1065, - "column": 9 - }, - "end": { - "line": 1065, - "column": 16 - }, - "identifierName": "signers" - }, - "name": "signers" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 38612, - "end": 38654, - "loc": { - "start": { - "line": 1065, - "column": 18 - }, - "end": { - "line": 1069, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 38618, - "end": 38620, - "loc": { - "start": { - "line": 1066, - "column": 4 - }, - "end": { - "line": 1066, - "column": 6 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 38618, - "end": 38620, - "loc": { - "start": { - "line": 1066, - "column": 4 - }, - "end": { - "line": 1066, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 38618, - "end": 38620, - "loc": { - "start": { - "line": 1066, - "column": 4 - }, - "end": { - "line": 1066, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 38626, - "end": 38631, - "loc": { - "start": { - "line": 1067, - "column": 4 - }, - "end": { - "line": 1067, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 38626, - "end": 38631, - "loc": { - "start": { - "line": 1067, - "column": 4 - }, - "end": { - "line": 1067, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 38626, - "end": 38631, - "loc": { - "start": { - "line": 1067, - "column": 4 - }, - "end": { - "line": 1067, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 38637, - "end": 38649, - "loc": { - "start": { - "line": 1068, - "column": 4 - }, - "end": { - "line": 1068, - "column": 16 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 38637, - "end": 38644, - "loc": { - "start": { - "line": 1068, - "column": 4 - }, - "end": { - "line": 1068, - "column": 11 - }, - "identifierName": "options" - }, - "name": "options" - }, - "value": { - "type": "AssignmentPattern", - "start": 38637, - "end": 38649, - "loc": { - "start": { - "line": 1068, - "column": 4 - }, - "end": { - "line": 1068, - "column": 16 - } - }, - "left": { - "type": "Identifier", - "start": 38637, - "end": 38644, - "loc": { - "start": { - "line": 1068, - "column": 4 - }, - "end": { - "line": 1068, - "column": 11 - }, - "identifierName": "options" - }, - "name": "options" - }, - "right": { - "type": "ObjectExpression", - "start": 38647, - "end": 38649, - "loc": { - "start": { - "line": 1068, - "column": 14 - }, - "end": { - "line": 1068, - "column": 16 - } - }, - "properties": [] - } - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 38656, - "end": 38664, - "loc": { - "start": { - "line": 1069, - "column": 5 - }, - "end": { - "line": 1069, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 38666, - "end": 40223, - "loc": { - "start": { - "line": 1069, - "column": 15 - }, - "end": { - "line": 1123, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 38672, - "end": 40219, - "loc": { - "start": { - "line": 1070, - "column": 4 - }, - "end": { - "line": 1122, - "column": 35 - } - }, - "expression": { - "type": "CallExpression", - "start": 38672, - "end": 40218, - "loc": { - "start": { - "line": 1070, - "column": 4 - }, - "end": { - "line": 1122, - "column": 34 - } - }, - "callee": { - "type": "MemberExpression", - "start": 38672, - "end": 40196, - "loc": { - "start": { - "line": 1070, - "column": 4 - }, - "end": { - "line": 1122, - "column": 12 - } - }, - "object": { - "type": "CallExpression", - "start": 38672, - "end": 40183, - "loc": { - "start": { - "line": 1070, - "column": 4 - }, - "end": { - "line": 1121, - "column": 8 - } - }, - "callee": { - "type": "MemberExpression", - "start": 38672, - "end": 38740, - "loc": { - "start": { - "line": 1070, - "column": 4 - }, - "end": { - "line": 1074, - "column": 11 - } - }, - "object": { - "type": "CallExpression", - "start": 38672, - "end": 38728, - "loc": { - "start": { - "line": 1070, - "column": 4 - }, - "end": { - "line": 1073, - "column": 6 - } - }, - "callee": { - "type": "CallExpression", - "start": 38672, - "end": 38696, - "loc": { - "start": { - "line": 1070, - "column": 4 - }, - "end": { - "line": 1070, - "column": 28 - } - }, - "callee": { - "type": "Identifier", - "start": 38672, - "end": 38681, - "loc": { - "start": { - "line": 1070, - "column": 4 - }, - "end": { - "line": 1070, - "column": 13 - }, - "identifierName": "promisify" - }, - "name": "promisify" - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 38682, - "end": 38695, - "loc": { - "start": { - "line": 1070, - "column": 14 - }, - "end": { - "line": 1070, - "column": 27 - } - }, - "object": { - "type": "Identifier", - "start": 38682, - "end": 38690, - "loc": { - "start": { - "line": 1070, - "column": 14 - }, - "end": { - "line": 1070, - "column": 22 - }, - "identifierName": "Document" - }, - "name": "Document" - }, - "property": { - "type": "Identifier", - "start": 38691, - "end": 38695, - "loc": { - "start": { - "line": 1070, - "column": 23 - }, - "end": { - "line": 1070, - "column": 27 - }, - "identifierName": "view" - }, - "name": "view" - }, - "computed": false - } - ] - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 38697, - "end": 38727, - "loc": { - "start": { - "line": 1070, - "column": 29 - }, - "end": { - "line": 1073, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 38705, - "end": 38707, - "loc": { - "start": { - "line": 1071, - "column": 6 - }, - "end": { - "line": 1071, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 38705, - "end": 38707, - "loc": { - "start": { - "line": 1071, - "column": 6 - }, - "end": { - "line": 1071, - "column": 8 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 38705, - "end": 38707, - "loc": { - "start": { - "line": 1071, - "column": 6 - }, - "end": { - "line": 1071, - "column": 8 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 38715, - "end": 38720, - "loc": { - "start": { - "line": 1072, - "column": 6 - }, - "end": { - "line": 1072, - "column": 11 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 38715, - "end": 38720, - "loc": { - "start": { - "line": 1072, - "column": 6 - }, - "end": { - "line": 1072, - "column": 11 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 38715, - "end": 38720, - "loc": { - "start": { - "line": 1072, - "column": 6 - }, - "end": { - "line": 1072, - "column": 11 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 38736, - "end": 38740, - "loc": { - "start": { - "line": 1074, - "column": 7 - }, - "end": { - "line": 1074, - "column": 11 - }, - "identifierName": "then" - }, - "name": "then" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 38741, - "end": 40182, - "loc": { - "start": { - "line": 1074, - "column": 12 - }, - "end": { - "line": 1121, - "column": 7 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 38741, - "end": 38749, - "loc": { - "start": { - "line": 1074, - "column": 12 - }, - "end": { - "line": 1074, - "column": 20 - }, - "identifierName": "document" - }, - "name": "document" - } - ], - "body": { - "type": "BlockStatement", - "start": 38753, - "end": 40182, - "loc": { - "start": { - "line": 1074, - "column": 24 - }, - "end": { - "line": 1121, - "column": 7 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 38763, - "end": 38837, - "loc": { - "start": { - "line": 1075, - "column": 8 - }, - "end": { - "line": 1078, - "column": 21 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 38769, - "end": 38836, - "loc": { - "start": { - "line": 1075, - "column": 14 - }, - "end": { - "line": 1078, - "column": 20 - } - }, - "id": { - "type": "ObjectPattern", - "start": 38769, - "end": 38825, - "loc": { - "start": { - "line": 1075, - "column": 14 - }, - "end": { - "line": 1078, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 38781, - "end": 38789, - "loc": { - "start": { - "line": 1076, - "column": 10 - }, - "end": { - "line": 1076, - "column": 18 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 38781, - "end": 38789, - "loc": { - "start": { - "line": 1076, - "column": 10 - }, - "end": { - "line": 1076, - "column": 18 - }, - "identifierName": "requests" - }, - "name": "requests" - }, - "value": { - "type": "Identifier", - "start": 38781, - "end": 38789, - "loc": { - "start": { - "line": 1076, - "column": 10 - }, - "end": { - "line": 1076, - "column": 18 - }, - "identifierName": "requests" - }, - "name": "requests" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 38801, - "end": 38814, - "loc": { - "start": { - "line": 1077, - "column": 10 - }, - "end": { - "line": 1077, - "column": 23 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 38801, - "end": 38814, - "loc": { - "start": { - "line": 1077, - "column": 10 - }, - "end": { - "line": 1077, - "column": 23 - }, - "identifierName": "field_invites" - }, - "name": "field_invites" - }, - "value": { - "type": "Identifier", - "start": 38801, - "end": 38814, - "loc": { - "start": { - "line": 1077, - "column": 10 - }, - "end": { - "line": 1077, - "column": 23 - }, - "identifierName": "field_invites" - }, - "name": "field_invites" - }, - "extra": { - "shorthand": true - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 38828, - "end": 38836, - "loc": { - "start": { - "line": 1078, - "column": 12 - }, - "end": { - "line": 1078, - "column": 20 - }, - "identifierName": "document" - }, - "name": "document" - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 38847, - "end": 38985, - "loc": { - "start": { - "line": 1080, - "column": 8 - }, - "end": { - "line": 1084, - "column": 20 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 38853, - "end": 38984, - "loc": { - "start": { - "line": 1080, - "column": 14 - }, - "end": { - "line": 1084, - "column": 19 - } - }, - "id": { - "type": "ObjectPattern", - "start": 38853, - "end": 38974, - "loc": { - "start": { - "line": 1080, - "column": 14 - }, - "end": { - "line": 1084, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 38865, - "end": 38888, - "loc": { - "start": { - "line": 1081, - "column": 10 - }, - "end": { - "line": 1081, - "column": 33 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 38865, - "end": 38880, - "loc": { - "start": { - "line": 1081, - "column": 10 - }, - "end": { - "line": 1081, - "column": 25 - }, - "identifierName": "freeFormInvites" - }, - "name": "freeFormInvites" - }, - "value": { - "type": "AssignmentPattern", - "start": 38865, - "end": 38888, - "loc": { - "start": { - "line": 1081, - "column": 10 - }, - "end": { - "line": 1081, - "column": 33 - } - }, - "left": { - "type": "Identifier", - "start": 38865, - "end": 38880, - "loc": { - "start": { - "line": 1081, - "column": 10 - }, - "end": { - "line": 1081, - "column": 25 - }, - "identifierName": "freeFormInvites" - }, - "name": "freeFormInvites" - }, - "right": { - "type": "BooleanLiteral", - "start": 38883, - "end": 38888, - "loc": { - "start": { - "line": 1081, - "column": 28 - }, - "end": { - "line": 1081, - "column": 33 - } - }, - "value": false - } - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 38900, - "end": 38924, - "loc": { - "start": { - "line": 1082, - "column": 10 - }, - "end": { - "line": 1082, - "column": 34 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 38900, - "end": 38917, - "loc": { - "start": { - "line": 1082, - "column": 10 - }, - "end": { - "line": 1082, - "column": 27 - }, - "identifierName": "fieldInviteStatus" - }, - "name": "fieldInviteStatus" - }, - "value": { - "type": "AssignmentPattern", - "start": 38900, - "end": 38924, - "loc": { - "start": { - "line": 1082, - "column": 10 - }, - "end": { - "line": 1082, - "column": 34 - } - }, - "left": { - "type": "Identifier", - "start": 38900, - "end": 38917, - "loc": { - "start": { - "line": 1082, - "column": 10 - }, - "end": { - "line": 1082, - "column": 27 - }, - "identifierName": "fieldInviteStatus" - }, - "name": "fieldInviteStatus" - }, - "right": { - "type": "NullLiteral", - "start": 38920, - "end": 38924, - "loc": { - "start": { - "line": 1082, - "column": 30 - }, - "end": { - "line": 1082, - "column": 34 - } - } - } - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 38936, - "end": 38963, - "loc": { - "start": { - "line": 1083, - "column": 10 - }, - "end": { - "line": 1083, - "column": 37 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 38936, - "end": 38956, - "loc": { - "start": { - "line": 1083, - "column": 10 - }, - "end": { - "line": 1083, - "column": 30 - }, - "identifierName": "paymentRequestStatus" - }, - "name": "paymentRequestStatus" - }, - "value": { - "type": "AssignmentPattern", - "start": 38936, - "end": 38963, - "loc": { - "start": { - "line": 1083, - "column": 10 - }, - "end": { - "line": 1083, - "column": 37 - } - }, - "left": { - "type": "Identifier", - "start": 38936, - "end": 38956, - "loc": { - "start": { - "line": 1083, - "column": 10 - }, - "end": { - "line": 1083, - "column": 30 - }, - "identifierName": "paymentRequestStatus" - }, - "name": "paymentRequestStatus" - }, - "right": { - "type": "NullLiteral", - "start": 38959, - "end": 38963, - "loc": { - "start": { - "line": 1083, - "column": 33 - }, - "end": { - "line": 1083, - "column": 37 - } - } - } - }, - "extra": { - "shorthand": true - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 38977, - "end": 38984, - "loc": { - "start": { - "line": 1084, - "column": 12 - }, - "end": { - "line": 1084, - "column": 19 - }, - "identifierName": "options" - }, - "name": "options" - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 38995, - "end": 39013, - "loc": { - "start": { - "line": 1086, - "column": 8 - }, - "end": { - "line": 1086, - "column": 26 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 39001, - "end": 39012, - "loc": { - "start": { - "line": 1086, - "column": 14 - }, - "end": { - "line": 1086, - "column": 25 - } - }, - "id": { - "type": "Identifier", - "start": 39001, - "end": 39007, - "loc": { - "start": { - "line": 1086, - "column": 14 - }, - "end": { - "line": 1086, - "column": 20 - }, - "identifierName": "emails" - }, - "name": "emails" - }, - "init": { - "type": "ArrayExpression", - "start": 39010, - "end": 39012, - "loc": { - "start": { - "line": 1086, - "column": 23 - }, - "end": { - "line": 1086, - "column": 25 - } - }, - "elements": [] - } - } - ], - "kind": "const" - }, - { - "type": "IfStatement", - "start": 39023, - "end": 39342, - "loc": { - "start": { - "line": 1088, - "column": 8 - }, - "end": { - "line": 1094, - "column": 9 - } - }, - "test": { - "type": "BinaryExpression", - "start": 39027, - "end": 39060, - "loc": { - "start": { - "line": 1088, - "column": 12 - }, - "end": { - "line": 1088, - "column": 45 - } - }, - "left": { - "type": "MemberExpression", - "start": 39027, - "end": 39054, - "loc": { - "start": { - "line": 1088, - "column": 12 - }, - "end": { - "line": 1088, - "column": 39 - } - }, - "object": { - "type": "CallExpression", - "start": 39027, - "end": 39047, - "loc": { - "start": { - "line": 1088, - "column": 12 - }, - "end": { - "line": 1088, - "column": 32 - } - }, - "callee": { - "type": "MemberExpression", - "start": 39027, - "end": 39038, - "loc": { - "start": { - "line": 1088, - "column": 12 - }, - "end": { - "line": 1088, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 39027, - "end": 39033, - "loc": { - "start": { - "line": 1088, - "column": 12 - }, - "end": { - "line": 1088, - "column": 18 - }, - "identifierName": "Object" - }, - "name": "Object" - }, - "property": { - "type": "Identifier", - "start": 39034, - "end": 39038, - "loc": { - "start": { - "line": 1088, - "column": 19 - }, - "end": { - "line": 1088, - "column": 23 - }, - "identifierName": "keys" - }, - "name": "keys" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 39039, - "end": 39046, - "loc": { - "start": { - "line": 1088, - "column": 24 - }, - "end": { - "line": 1088, - "column": 31 - }, - "identifierName": "options" - }, - "name": "options" - } - ] - }, - "property": { - "type": "Identifier", - "start": 39048, - "end": 39054, - "loc": { - "start": { - "line": 1088, - "column": 33 - }, - "end": { - "line": 1088, - "column": 39 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 39059, - "end": 39060, - "loc": { - "start": { - "line": 1088, - "column": 44 - }, - "end": { - "line": 1088, - "column": 45 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - "consequent": { - "type": "BlockStatement", - "start": 39062, - "end": 39342, - "loc": { - "start": { - "line": 1088, - "column": 47 - }, - "end": { - "line": 1094, - "column": 9 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 39074, - "end": 39147, - "loc": { - "start": { - "line": 1089, - "column": 10 - }, - "end": { - "line": 1089, - "column": 83 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 39080, - "end": 39146, - "loc": { - "start": { - "line": 1089, - "column": 16 - }, - "end": { - "line": 1089, - "column": 82 - } - }, - "id": { - "type": "Identifier", - "start": 39080, - "end": 39098, - "loc": { - "start": { - "line": 1089, - "column": 16 - }, - "end": { - "line": 1089, - "column": 34 - }, - "identifierName": "fieldInvitesEmails" - }, - "name": "fieldInvitesEmails" - }, - "init": { - "type": "LogicalExpression", - "start": 39101, - "end": 39146, - "loc": { - "start": { - "line": 1089, - "column": 37 - }, - "end": { - "line": 1089, - "column": 82 - } - }, - "left": { - "type": "CallExpression", - "start": 39101, - "end": 39140, - "loc": { - "start": { - "line": 1089, - "column": 37 - }, - "end": { - "line": 1089, - "column": 76 - } - }, - "callee": { - "type": "Identifier", - "start": 39101, - "end": 39116, - "loc": { - "start": { - "line": 1089, - "column": 37 - }, - "end": { - "line": 1089, - "column": 52 - }, - "identifierName": "getSignerEmails" - }, - "name": "getSignerEmails" - }, - "arguments": [ - { - "type": "Identifier", - "start": 39117, - "end": 39130, - "loc": { - "start": { - "line": 1089, - "column": 53 - }, - "end": { - "line": 1089, - "column": 66 - }, - "identifierName": "field_invites" - }, - "name": "field_invites" - }, - { - "type": "StringLiteral", - "start": 39132, - "end": 39139, - "loc": { - "start": { - "line": 1089, - "column": 68 - }, - "end": { - "line": 1089, - "column": 75 - } - }, - "extra": { - "rawValue": "email", - "raw": "'email'" - }, - "value": "email" - } - ] - }, - "operator": "||", - "right": { - "type": "ArrayExpression", - "start": 39144, - "end": 39146, - "loc": { - "start": { - "line": 1089, - "column": 80 - }, - "end": { - "line": 1089, - "column": 82 - } - }, - "elements": [] - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 39158, - "end": 39236, - "loc": { - "start": { - "line": 1090, - "column": 10 - }, - "end": { - "line": 1090, - "column": 88 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 39164, - "end": 39235, - "loc": { - "start": { - "line": 1090, - "column": 16 - }, - "end": { - "line": 1090, - "column": 87 - } - }, - "id": { - "type": "Identifier", - "start": 39164, - "end": 39185, - "loc": { - "start": { - "line": 1090, - "column": 16 - }, - "end": { - "line": 1090, - "column": 37 - }, - "identifierName": "freeFormInvitesEmails" - }, - "name": "freeFormInvitesEmails" - }, - "init": { - "type": "LogicalExpression", - "start": 39188, - "end": 39235, - "loc": { - "start": { - "line": 1090, - "column": 40 - }, - "end": { - "line": 1090, - "column": 87 - } - }, - "left": { - "type": "CallExpression", - "start": 39188, - "end": 39229, - "loc": { - "start": { - "line": 1090, - "column": 40 - }, - "end": { - "line": 1090, - "column": 81 - } - }, - "callee": { - "type": "Identifier", - "start": 39188, - "end": 39203, - "loc": { - "start": { - "line": 1090, - "column": 40 - }, - "end": { - "line": 1090, - "column": 55 - }, - "identifierName": "getSignerEmails" - }, - "name": "getSignerEmails" - }, - "arguments": [ - { - "type": "Identifier", - "start": 39204, - "end": 39212, - "loc": { - "start": { - "line": 1090, - "column": 56 - }, - "end": { - "line": 1090, - "column": 64 - }, - "identifierName": "requests" - }, - "name": "requests" - }, - { - "type": "StringLiteral", - "start": 39214, - "end": 39228, - "loc": { - "start": { - "line": 1090, - "column": 66 - }, - "end": { - "line": 1090, - "column": 80 - } - }, - "extra": { - "rawValue": "signer_email", - "raw": "'signer_email'" - }, - "value": "signer_email" - } - ] - }, - "operator": "||", - "right": { - "type": "ArrayExpression", - "start": 39233, - "end": 39235, - "loc": { - "start": { - "line": 1090, - "column": 85 - }, - "end": { - "line": 1090, - "column": 87 - } - }, - "elements": [] - } - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 39248, - "end": 39283, - "loc": { - "start": { - "line": 1092, - "column": 10 - }, - "end": { - "line": 1092, - "column": 45 - } - }, - "expression": { - "type": "CallExpression", - "start": 39248, - "end": 39282, - "loc": { - "start": { - "line": 1092, - "column": 10 - }, - "end": { - "line": 1092, - "column": 44 - } - }, - "callee": { - "type": "MemberExpression", - "start": 39248, - "end": 39259, - "loc": { - "start": { - "line": 1092, - "column": 10 - }, - "end": { - "line": 1092, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 39248, - "end": 39254, - "loc": { - "start": { - "line": 1092, - "column": 10 - }, - "end": { - "line": 1092, - "column": 16 - }, - "identifierName": "emails" - }, - "name": "emails" - }, - "property": { - "type": "Identifier", - "start": 39255, - "end": 39259, - "loc": { - "start": { - "line": 1092, - "column": 17 - }, - "end": { - "line": 1092, - "column": 21 - }, - "identifierName": "push" - }, - "name": "push" - }, - "computed": false - }, - "arguments": [ - { - "type": "SpreadElement", - "start": 39260, - "end": 39281, - "loc": { - "start": { - "line": 1092, - "column": 22 - }, - "end": { - "line": 1092, - "column": 43 - } - }, - "argument": { - "type": "Identifier", - "start": 39263, - "end": 39281, - "loc": { - "start": { - "line": 1092, - "column": 25 - }, - "end": { - "line": 1092, - "column": 43 - }, - "identifierName": "fieldInvitesEmails" - }, - "name": "fieldInvitesEmails" - } - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 39294, - "end": 39332, - "loc": { - "start": { - "line": 1093, - "column": 10 - }, - "end": { - "line": 1093, - "column": 48 - } - }, - "expression": { - "type": "CallExpression", - "start": 39294, - "end": 39331, - "loc": { - "start": { - "line": 1093, - "column": 10 - }, - "end": { - "line": 1093, - "column": 47 - } - }, - "callee": { - "type": "MemberExpression", - "start": 39294, - "end": 39305, - "loc": { - "start": { - "line": 1093, - "column": 10 - }, - "end": { - "line": 1093, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 39294, - "end": 39300, - "loc": { - "start": { - "line": 1093, - "column": 10 - }, - "end": { - "line": 1093, - "column": 16 - }, - "identifierName": "emails" - }, - "name": "emails" - }, - "property": { - "type": "Identifier", - "start": 39301, - "end": 39305, - "loc": { - "start": { - "line": 1093, - "column": 17 - }, - "end": { - "line": 1093, - "column": 21 - }, - "identifierName": "push" - }, - "name": "push" - }, - "computed": false - }, - "arguments": [ - { - "type": "SpreadElement", - "start": 39306, - "end": 39330, - "loc": { - "start": { - "line": 1093, - "column": 22 - }, - "end": { - "line": 1093, - "column": 46 - } - }, - "argument": { - "type": "Identifier", - "start": 39309, - "end": 39330, - "loc": { - "start": { - "line": 1093, - "column": 25 - }, - "end": { - "line": 1093, - "column": 46 - }, - "identifierName": "freeFormInvitesEmails" - }, - "name": "freeFormInvitesEmails" - } - } - ] - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 39352, - "end": 39509, - "loc": { - "start": { - "line": 1096, - "column": 8 - }, - "end": { - "line": 1100, - "column": 9 - } - }, - "test": { - "type": "Identifier", - "start": 39356, - "end": 39371, - "loc": { - "start": { - "line": 1096, - "column": 12 - }, - "end": { - "line": 1096, - "column": 27 - }, - "identifierName": "freeFormInvites" - }, - "name": "freeFormInvites" - }, - "consequent": { - "type": "BlockStatement", - "start": 39373, - "end": 39509, - "loc": { - "start": { - "line": 1096, - "column": 29 - }, - "end": { - "line": 1100, - "column": 9 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 39385, - "end": 39456, - "loc": { - "start": { - "line": 1097, - "column": 10 - }, - "end": { - "line": 1097, - "column": 81 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 39391, - "end": 39455, - "loc": { - "start": { - "line": 1097, - "column": 16 - }, - "end": { - "line": 1097, - "column": 80 - } - }, - "id": { - "type": "Identifier", - "start": 39391, - "end": 39405, - "loc": { - "start": { - "line": 1097, - "column": 16 - }, - "end": { - "line": 1097, - "column": 30 - }, - "identifierName": "freeFomInvites" - }, - "name": "freeFomInvites" - }, - "init": { - "type": "LogicalExpression", - "start": 39408, - "end": 39455, - "loc": { - "start": { - "line": 1097, - "column": 33 - }, - "end": { - "line": 1097, - "column": 80 - } - }, - "left": { - "type": "CallExpression", - "start": 39408, - "end": 39449, - "loc": { - "start": { - "line": 1097, - "column": 33 - }, - "end": { - "line": 1097, - "column": 74 - } - }, - "callee": { - "type": "Identifier", - "start": 39408, - "end": 39423, - "loc": { - "start": { - "line": 1097, - "column": 33 - }, - "end": { - "line": 1097, - "column": 48 - }, - "identifierName": "getSignerEmails" - }, - "name": "getSignerEmails" - }, - "arguments": [ - { - "type": "Identifier", - "start": 39424, - "end": 39432, - "loc": { - "start": { - "line": 1097, - "column": 49 - }, - "end": { - "line": 1097, - "column": 57 - }, - "identifierName": "requests" - }, - "name": "requests" - }, - { - "type": "StringLiteral", - "start": 39434, - "end": 39448, - "loc": { - "start": { - "line": 1097, - "column": 59 - }, - "end": { - "line": 1097, - "column": 73 - } - }, - "extra": { - "rawValue": "signer_email", - "raw": "'signer_email'" - }, - "value": "signer_email" - } - ] - }, - "operator": "||", - "right": { - "type": "ArrayExpression", - "start": 39453, - "end": 39455, - "loc": { - "start": { - "line": 1097, - "column": 78 - }, - "end": { - "line": 1097, - "column": 80 - } - }, - "elements": [] - } - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 39468, - "end": 39499, - "loc": { - "start": { - "line": 1099, - "column": 10 - }, - "end": { - "line": 1099, - "column": 41 - } - }, - "expression": { - "type": "CallExpression", - "start": 39468, - "end": 39498, - "loc": { - "start": { - "line": 1099, - "column": 10 - }, - "end": { - "line": 1099, - "column": 40 - } - }, - "callee": { - "type": "MemberExpression", - "start": 39468, - "end": 39479, - "loc": { - "start": { - "line": 1099, - "column": 10 - }, - "end": { - "line": 1099, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 39468, - "end": 39474, - "loc": { - "start": { - "line": 1099, - "column": 10 - }, - "end": { - "line": 1099, - "column": 16 - }, - "identifierName": "emails" - }, - "name": "emails" - }, - "property": { - "type": "Identifier", - "start": 39475, - "end": 39479, - "loc": { - "start": { - "line": 1099, - "column": 17 - }, - "end": { - "line": 1099, - "column": 21 - }, - "identifierName": "push" - }, - "name": "push" - }, - "computed": false - }, - "arguments": [ - { - "type": "SpreadElement", - "start": 39480, - "end": 39497, - "loc": { - "start": { - "line": 1099, - "column": 22 - }, - "end": { - "line": 1099, - "column": 39 - } - }, - "argument": { - "type": "Identifier", - "start": 39483, - "end": 39497, - "loc": { - "start": { - "line": 1099, - "column": 25 - }, - "end": { - "line": 1099, - "column": 39 - }, - "identifierName": "freeFomInvites" - }, - "name": "freeFomInvites" - } - } - ] - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 39519, - "end": 39933, - "loc": { - "start": { - "line": 1102, - "column": 8 - }, - "end": { - "line": 1112, - "column": 9 - } - }, - "test": { - "type": "Identifier", - "start": 39523, - "end": 39540, - "loc": { - "start": { - "line": 1102, - "column": 12 - }, - "end": { - "line": 1102, - "column": 29 - }, - "identifierName": "fieldInviteStatus" - }, - "name": "fieldInviteStatus" - }, - "consequent": { - "type": "BlockStatement", - "start": 39542, - "end": 39933, - "loc": { - "start": { - "line": 1102, - "column": 31 - }, - "end": { - "line": 1112, - "column": 9 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 39554, - "end": 39640, - "loc": { - "start": { - "line": 1103, - "column": 10 - }, - "end": { - "line": 1103, - "column": 96 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 39560, - "end": 39639, - "loc": { - "start": { - "line": 1103, - "column": 16 - }, - "end": { - "line": 1103, - "column": 95 - } - }, - "id": { - "type": "Identifier", - "start": 39560, - "end": 39572, - "loc": { - "start": { - "line": 1103, - "column": 16 - }, - "end": { - "line": 1103, - "column": 28 - }, - "identifierName": "fieldInvites" - }, - "name": "fieldInvites" - }, - "init": { - "type": "LogicalExpression", - "start": 39575, - "end": 39639, - "loc": { - "start": { - "line": 1103, - "column": 31 - }, - "end": { - "line": 1103, - "column": 95 - } - }, - "left": { - "type": "CallExpression", - "start": 39575, - "end": 39633, - "loc": { - "start": { - "line": 1103, - "column": 31 - }, - "end": { - "line": 1103, - "column": 89 - } - }, - "callee": { - "type": "Identifier", - "start": 39575, - "end": 39590, - "loc": { - "start": { - "line": 1103, - "column": 31 - }, - "end": { - "line": 1103, - "column": 46 - }, - "identifierName": "getSignerEmails" - }, - "name": "getSignerEmails" - }, - "arguments": [ - { - "type": "Identifier", - "start": 39591, - "end": 39604, - "loc": { - "start": { - "line": 1103, - "column": 47 - }, - "end": { - "line": 1103, - "column": 60 - }, - "identifierName": "field_invites" - }, - "name": "field_invites" - }, - { - "type": "StringLiteral", - "start": 39606, - "end": 39613, - "loc": { - "start": { - "line": 1103, - "column": 62 - }, - "end": { - "line": 1103, - "column": 69 - } - }, - "extra": { - "rawValue": "email", - "raw": "'email'" - }, - "value": "email" - }, - { - "type": "Identifier", - "start": 39615, - "end": 39632, - "loc": { - "start": { - "line": 1103, - "column": 71 - }, - "end": { - "line": 1103, - "column": 88 - }, - "identifierName": "fieldInviteStatus" - }, - "name": "fieldInviteStatus" - } - ] - }, - "operator": "||", - "right": { - "type": "ArrayExpression", - "start": 39637, - "end": 39639, - "loc": { - "start": { - "line": 1103, - "column": 93 - }, - "end": { - "line": 1103, - "column": 95 - } - }, - "elements": [] - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 39651, - "end": 39728, - "loc": { - "start": { - "line": 1104, - "column": 10 - }, - "end": { - "line": 1104, - "column": 87 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 39657, - "end": 39727, - "loc": { - "start": { - "line": 1104, - "column": 16 - }, - "end": { - "line": 1104, - "column": 86 - } - }, - "id": { - "type": "Identifier", - "start": 39657, - "end": 39665, - "loc": { - "start": { - "line": 1104, - "column": 16 - }, - "end": { - "line": 1104, - "column": 24 - }, - "identifierName": "declined" - }, - "name": "declined" - }, - "init": { - "type": "LogicalExpression", - "start": 39668, - "end": 39727, - "loc": { - "start": { - "line": 1104, - "column": 27 - }, - "end": { - "line": 1104, - "column": 86 - } - }, - "left": { - "type": "CallExpression", - "start": 39668, - "end": 39721, - "loc": { - "start": { - "line": 1104, - "column": 27 - }, - "end": { - "line": 1104, - "column": 80 - } - }, - "callee": { - "type": "Identifier", - "start": 39668, - "end": 39687, - "loc": { - "start": { - "line": 1104, - "column": 27 - }, - "end": { - "line": 1104, - "column": 46 - }, - "identifierName": "getByDeclinedStatus" - }, - "name": "getByDeclinedStatus" - }, - "arguments": [ - { - "type": "Identifier", - "start": 39688, - "end": 39701, - "loc": { - "start": { - "line": 1104, - "column": 47 - }, - "end": { - "line": 1104, - "column": 60 - }, - "identifierName": "field_invites" - }, - "name": "field_invites" - }, - { - "type": "Identifier", - "start": 39703, - "end": 39720, - "loc": { - "start": { - "line": 1104, - "column": 62 - }, - "end": { - "line": 1104, - "column": 79 - }, - "identifierName": "fieldInviteStatus" - }, - "name": "fieldInviteStatus" - } - ] - }, - "operator": "||", - "right": { - "type": "ArrayExpression", - "start": 39725, - "end": 39727, - "loc": { - "start": { - "line": 1104, - "column": 84 - }, - "end": { - "line": 1104, - "column": 86 - } - }, - "elements": [] - } - } - } - ], - "kind": "const" - }, - { - "type": "IfStatement", - "start": 39740, - "end": 39923, - "loc": { - "start": { - "line": 1106, - "column": 10 - }, - "end": { - "line": 1111, - "column": 11 - } - }, - "test": { - "type": "BinaryExpression", - "start": 39744, - "end": 39767, - "loc": { - "start": { - "line": 1106, - "column": 14 - }, - "end": { - "line": 1106, - "column": 37 - } - }, - "left": { - "type": "MemberExpression", - "start": 39744, - "end": 39763, - "loc": { - "start": { - "line": 1106, - "column": 14 - }, - "end": { - "line": 1106, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 39744, - "end": 39756, - "loc": { - "start": { - "line": 1106, - "column": 14 - }, - "end": { - "line": 1106, - "column": 26 - }, - "identifierName": "fieldInvites" - }, - "name": "fieldInvites" - }, - "property": { - "type": "Identifier", - "start": 39757, - "end": 39763, - "loc": { - "start": { - "line": 1106, - "column": 27 - }, - "end": { - "line": 1106, - "column": 33 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - }, - "operator": ">", - "right": { - "type": "NumericLiteral", - "start": 39766, - "end": 39767, - "loc": { - "start": { - "line": 1106, - "column": 36 - }, - "end": { - "line": 1106, - "column": 37 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - "consequent": { - "type": "BlockStatement", - "start": 39769, - "end": 39824, - "loc": { - "start": { - "line": 1106, - "column": 39 - }, - "end": { - "line": 1108, - "column": 11 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 39783, - "end": 39812, - "loc": { - "start": { - "line": 1107, - "column": 12 - }, - "end": { - "line": 1107, - "column": 41 - } - }, - "expression": { - "type": "CallExpression", - "start": 39783, - "end": 39811, - "loc": { - "start": { - "line": 1107, - "column": 12 - }, - "end": { - "line": 1107, - "column": 40 - } - }, - "callee": { - "type": "MemberExpression", - "start": 39783, - "end": 39794, - "loc": { - "start": { - "line": 1107, - "column": 12 - }, - "end": { - "line": 1107, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 39783, - "end": 39789, - "loc": { - "start": { - "line": 1107, - "column": 12 - }, - "end": { - "line": 1107, - "column": 18 - }, - "identifierName": "emails" - }, - "name": "emails" - }, - "property": { - "type": "Identifier", - "start": 39790, - "end": 39794, - "loc": { - "start": { - "line": 1107, - "column": 19 - }, - "end": { - "line": 1107, - "column": 23 - }, - "identifierName": "push" - }, - "name": "push" - }, - "computed": false - }, - "arguments": [ - { - "type": "SpreadElement", - "start": 39795, - "end": 39810, - "loc": { - "start": { - "line": 1107, - "column": 24 - }, - "end": { - "line": 1107, - "column": 39 - } - }, - "argument": { - "type": "Identifier", - "start": 39798, - "end": 39810, - "loc": { - "start": { - "line": 1107, - "column": 27 - }, - "end": { - "line": 1107, - "column": 39 - }, - "identifierName": "fieldInvites" - }, - "name": "fieldInvites" - } - } - ] - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 39830, - "end": 39923, - "loc": { - "start": { - "line": 1108, - "column": 17 - }, - "end": { - "line": 1111, - "column": 11 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 39844, - "end": 39873, - "loc": { - "start": { - "line": 1109, - "column": 12 - }, - "end": { - "line": 1109, - "column": 41 - } - }, - "expression": { - "type": "CallExpression", - "start": 39844, - "end": 39872, - "loc": { - "start": { - "line": 1109, - "column": 12 - }, - "end": { - "line": 1109, - "column": 40 - } - }, - "callee": { - "type": "MemberExpression", - "start": 39844, - "end": 39855, - "loc": { - "start": { - "line": 1109, - "column": 12 - }, - "end": { - "line": 1109, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 39844, - "end": 39850, - "loc": { - "start": { - "line": 1109, - "column": 12 - }, - "end": { - "line": 1109, - "column": 18 - }, - "identifierName": "emails" - }, - "name": "emails" - }, - "property": { - "type": "Identifier", - "start": 39851, - "end": 39855, - "loc": { - "start": { - "line": 1109, - "column": 19 - }, - "end": { - "line": 1109, - "column": 23 - }, - "identifierName": "push" - }, - "name": "push" - }, - "computed": false - }, - "arguments": [ - { - "type": "SpreadElement", - "start": 39856, - "end": 39871, - "loc": { - "start": { - "line": 1109, - "column": 24 - }, - "end": { - "line": 1109, - "column": 39 - } - }, - "argument": { - "type": "Identifier", - "start": 39859, - "end": 39871, - "loc": { - "start": { - "line": 1109, - "column": 27 - }, - "end": { - "line": 1109, - "column": 39 - }, - "identifierName": "fieldInvites" - }, - "name": "fieldInvites" - } - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 39886, - "end": 39911, - "loc": { - "start": { - "line": 1110, - "column": 12 - }, - "end": { - "line": 1110, - "column": 37 - } - }, - "expression": { - "type": "CallExpression", - "start": 39886, - "end": 39910, - "loc": { - "start": { - "line": 1110, - "column": 12 - }, - "end": { - "line": 1110, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 39886, - "end": 39897, - "loc": { - "start": { - "line": 1110, - "column": 12 - }, - "end": { - "line": 1110, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 39886, - "end": 39892, - "loc": { - "start": { - "line": 1110, - "column": 12 - }, - "end": { - "line": 1110, - "column": 18 - }, - "identifierName": "emails" - }, - "name": "emails" - }, - "property": { - "type": "Identifier", - "start": 39893, - "end": 39897, - "loc": { - "start": { - "line": 1110, - "column": 19 - }, - "end": { - "line": 1110, - "column": 23 - }, - "identifierName": "push" - }, - "name": "push" - }, - "computed": false - }, - "arguments": [ - { - "type": "SpreadElement", - "start": 39898, - "end": 39909, - "loc": { - "start": { - "line": 1110, - "column": 24 - }, - "end": { - "line": 1110, - "column": 35 - } - }, - "argument": { - "type": "Identifier", - "start": 39901, - "end": 39909, - "loc": { - "start": { - "line": 1110, - "column": 27 - }, - "end": { - "line": 1110, - "column": 35 - }, - "identifierName": "declined" - }, - "name": "declined" - } - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 39943, - "end": 40127, - "loc": { - "start": { - "line": 1114, - "column": 8 - }, - "end": { - "line": 1118, - "column": 9 - } - }, - "test": { - "type": "Identifier", - "start": 39947, - "end": 39967, - "loc": { - "start": { - "line": 1114, - "column": 12 - }, - "end": { - "line": 1114, - "column": 32 - }, - "identifierName": "paymentRequestStatus" - }, - "name": "paymentRequestStatus" - }, - "consequent": { - "type": "BlockStatement", - "start": 39969, - "end": 40127, - "loc": { - "start": { - "line": 1114, - "column": 34 - }, - "end": { - "line": 1118, - "column": 9 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 39981, - "end": 40073, - "loc": { - "start": { - "line": 1115, - "column": 10 - }, - "end": { - "line": 1115, - "column": 102 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 39987, - "end": 40072, - "loc": { - "start": { - "line": 1115, - "column": 16 - }, - "end": { - "line": 1115, - "column": 101 - } - }, - "id": { - "type": "Identifier", - "start": 39987, - "end": 40002, - "loc": { - "start": { - "line": 1115, - "column": 16 - }, - "end": { - "line": 1115, - "column": 31 - }, - "identifierName": "paymentRequests" - }, - "name": "paymentRequests" - }, - "init": { - "type": "LogicalExpression", - "start": 40005, - "end": 40072, - "loc": { - "start": { - "line": 1115, - "column": 34 - }, - "end": { - "line": 1115, - "column": 101 - } - }, - "left": { - "type": "CallExpression", - "start": 40005, - "end": 40066, - "loc": { - "start": { - "line": 1115, - "column": 34 - }, - "end": { - "line": 1115, - "column": 95 - } - }, - "callee": { - "type": "Identifier", - "start": 40005, - "end": 40020, - "loc": { - "start": { - "line": 1115, - "column": 34 - }, - "end": { - "line": 1115, - "column": 49 - }, - "identifierName": "getSignerEmails" - }, - "name": "getSignerEmails" - }, - "arguments": [ - { - "type": "Identifier", - "start": 40021, - "end": 40034, - "loc": { - "start": { - "line": 1115, - "column": 50 - }, - "end": { - "line": 1115, - "column": 63 - }, - "identifierName": "field_invites" - }, - "name": "field_invites" - }, - { - "type": "StringLiteral", - "start": 40036, - "end": 40043, - "loc": { - "start": { - "line": 1115, - "column": 65 - }, - "end": { - "line": 1115, - "column": 72 - } - }, - "extra": { - "rawValue": "email", - "raw": "'email'" - }, - "value": "email" - }, - { - "type": "Identifier", - "start": 40045, - "end": 40065, - "loc": { - "start": { - "line": 1115, - "column": 74 - }, - "end": { - "line": 1115, - "column": 94 - }, - "identifierName": "paymentRequestStatus" - }, - "name": "paymentRequestStatus" - } - ] - }, - "operator": "||", - "right": { - "type": "ArrayExpression", - "start": 40070, - "end": 40072, - "loc": { - "start": { - "line": 1115, - "column": 99 - }, - "end": { - "line": 1115, - "column": 101 - } - }, - "elements": [] - } - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 40085, - "end": 40117, - "loc": { - "start": { - "line": 1117, - "column": 10 - }, - "end": { - "line": 1117, - "column": 42 - } - }, - "expression": { - "type": "CallExpression", - "start": 40085, - "end": 40116, - "loc": { - "start": { - "line": 1117, - "column": 10 - }, - "end": { - "line": 1117, - "column": 41 - } - }, - "callee": { - "type": "MemberExpression", - "start": 40085, - "end": 40096, - "loc": { - "start": { - "line": 1117, - "column": 10 - }, - "end": { - "line": 1117, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 40085, - "end": 40091, - "loc": { - "start": { - "line": 1117, - "column": 10 - }, - "end": { - "line": 1117, - "column": 16 - }, - "identifierName": "emails" - }, - "name": "emails" - }, - "property": { - "type": "Identifier", - "start": 40092, - "end": 40096, - "loc": { - "start": { - "line": 1117, - "column": 17 - }, - "end": { - "line": 1117, - "column": 21 - }, - "identifierName": "push" - }, - "name": "push" - }, - "computed": false - }, - "arguments": [ - { - "type": "SpreadElement", - "start": 40097, - "end": 40115, - "loc": { - "start": { - "line": 1117, - "column": 22 - }, - "end": { - "line": 1117, - "column": 40 - } - }, - "argument": { - "type": "Identifier", - "start": 40100, - "end": 40115, - "loc": { - "start": { - "line": 1117, - "column": 25 - }, - "end": { - "line": 1117, - "column": 40 - }, - "identifierName": "paymentRequests" - }, - "name": "paymentRequests" - } - } - ] - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "ExpressionStatement", - "start": 40137, - "end": 40174, - "loc": { - "start": { - "line": 1120, - "column": 8 - }, - "end": { - "line": 1120, - "column": 45 - } - }, - "expression": { - "type": "CallExpression", - "start": 40137, - "end": 40173, - "loc": { - "start": { - "line": 1120, - "column": 8 - }, - "end": { - "line": 1120, - "column": 44 - } - }, - "callee": { - "type": "Identifier", - "start": 40137, - "end": 40145, - "loc": { - "start": { - "line": 1120, - "column": 8 - }, - "end": { - "line": 1120, - "column": 16 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "NullLiteral", - "start": 40146, - "end": 40150, - "loc": { - "start": { - "line": 1120, - "column": 17 - }, - "end": { - "line": 1120, - "column": 21 - } - } - }, - { - "type": "ArrayExpression", - "start": 40152, - "end": 40172, - "loc": { - "start": { - "line": 1120, - "column": 23 - }, - "end": { - "line": 1120, - "column": 43 - } - }, - "elements": [ - { - "type": "SpreadElement", - "start": 40153, - "end": 40171, - "loc": { - "start": { - "line": 1120, - "column": 24 - }, - "end": { - "line": 1120, - "column": 42 - } - }, - "argument": { - "type": "NewExpression", - "start": 40156, - "end": 40171, - "loc": { - "start": { - "line": 1120, - "column": 27 - }, - "end": { - "line": 1120, - "column": 42 - } - }, - "callee": { - "type": "Identifier", - "start": 40160, - "end": 40163, - "loc": { - "start": { - "line": 1120, - "column": 31 - }, - "end": { - "line": 1120, - "column": 34 - }, - "identifierName": "Set" - }, - "name": "Set" - }, - "arguments": [ - { - "type": "Identifier", - "start": 40164, - "end": 40170, - "loc": { - "start": { - "line": 1120, - "column": 35 - }, - "end": { - "line": 1120, - "column": 41 - }, - "identifierName": "emails" - }, - "name": "emails" - } - ] - } - } - ] - } - ] - } - } - ], - "directives": [] - } - } - ] - }, - "property": { - "type": "Identifier", - "start": 40191, - "end": 40196, - "loc": { - "start": { - "line": 1122, - "column": 7 - }, - "end": { - "line": 1122, - "column": 12 - }, - "identifierName": "catch" - }, - "name": "catch" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 40197, - "end": 40217, - "loc": { - "start": { - "line": 1122, - "column": 13 - }, - "end": { - "line": 1122, - "column": 33 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 40197, - "end": 40200, - "loc": { - "start": { - "line": 1122, - "column": 13 - }, - "end": { - "line": 1122, - "column": 16 - }, - "identifierName": "err" - }, - "name": "err" - } - ], - "body": { - "type": "CallExpression", - "start": 40204, - "end": 40217, - "loc": { - "start": { - "line": 1122, - "column": 20 - }, - "end": { - "line": 1122, - "column": 33 - } - }, - "callee": { - "type": "Identifier", - "start": 40204, - "end": 40212, - "loc": { - "start": { - "line": 1122, - "column": 20 - }, - "end": { - "line": 1122, - "column": 28 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 40213, - "end": 40216, - "loc": { - "start": { - "line": 1122, - "column": 29 - }, - "end": { - "line": 1122, - "column": 32 - }, - "identifierName": "err" - }, - "name": "err" - } - ] - } - } - ] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Get Document Signers optional settings\n * @typedef {Object} DocumentSignersOptions\n * @property {boolean} [allSignatures=true] - if true receive all document signers email\n * @property {boolean} [freeFormInvites=false] - if `true` return free from invite signer emails\n * @property {?string[]} [fieldInvitesStatus=null] - return signers according to specified field invite status(es)\n * Accepts list of statuses or a single status.\n * Acceptable statuses: all, pending, declined, fulfilled, created, skipped.\n * @property {?string[]} [paymentRequestsStatus=null] - return signers according to specified to payment request status(es)\n * Accepts list of statuses or a single status.\n * Available statuses: all, pending, fulfilled, created, skipped.\n ", - "start": 37070, - "end": 37849, - "loc": { - "start": { - "line": 1032, - "column": 2 - }, - "end": { - "line": 1043, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Get Document Signers payload\n * @typedef {Object} DocumentSignersParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n * @property {DocumentSignersOptions} [options] - document signers optional settings,\n ", - "start": 37853, - "end": 38130, - "loc": { - "start": { - "line": 1045, - "column": 2 - }, - "end": { - "line": 1051, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Get Document Signers response data\n * @typedef {Object} DocumentSignersResponse\n * @property {string[]} - emails of document signers\n ", - "start": 38134, - "end": 38286, - "loc": { - "start": { - "line": 1053, - "column": 2 - }, - "end": { - "line": 1057, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves all signers of specific document\n * @experimental this class includes breaking change.\n * @param {DocumentSignersParams} data - get document signers payload\n * @param {function(err: ApiErrorResponse, res: DocumentSignersResponse)} [callback] - error first node.js callback\n ", - "start": 38290, - "end": 38593, - "loc": { - "start": { - "line": 1059, - "column": 2 - }, - "end": { - "line": 1064, - "column": 5 - } - } - } - ] - } - ] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document methods\n ", - "start": 394, - "end": 421, - "loc": { - "start": { - "line": 18, - "column": 0 - }, - "end": { - "line": 20, - "column": 3 - } - } - } - ], - "__PseudoExport__": false, - "trailingComments": [] - }, - "leadingComments": null - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "value": "use strict", - "extra": { - "raw": "'use strict'", - "rawValue": "use strict" - } - } - } - ] - }, - "comments": [ - { - "type": "CommentBlock", - "value": "*\n * Document methods\n ", - "start": 394, - "end": 421, - "loc": { - "start": { - "line": 18, - "column": 0 - }, - "end": { - "line": 20, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document payload\n * @typedef {Object} DocumentCreateParams\n * @property {string} filepath - path to file to be uploaded\n * @property {string} token - your auth token\n ", - "start": 442, - "end": 635, - "loc": { - "start": { - "line": 23, - "column": 2 - }, - "end": { - "line": 28, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document response data\n * @typedef {Object} DocumentCreateResponse\n * @property {string} id - an id of created document\n ", - "start": 639, - "end": 784, - "loc": { - "start": { - "line": 30, - "column": 2 - }, - "end": { - "line": 34, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Uploads a file and creates a document.\n * This endpoint accepts .pdf, .doc, .docx, .odt, .rtf, .png, .jpg, .jpeg, .gif, .bmp, .xml, .xls, .xlsx, .ppt, .pptx file types\n * @param {DocumentCreateParams} data - create document payload\n * @param {function(err: ApiErrorResponse, res: DocumentCreateResponse)} [callback] - error first node.js callback\n ", - "start": 788, - "end": 1155, - "loc": { - "start": { - "line": 36, - "column": 2 - }, - "end": { - "line": 41, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Upload document with field extract payload\n * @typedef {Object} DocumentFieldExtractParams\n * @property {string} filepath - path to file to be uploaded\n * @property {string} token - your auth token\n ", - "start": 2523, - "end": 2741, - "loc": { - "start": { - "line": 91, - "column": 2 - }, - "end": { - "line": 96, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Upload document with field extract response data\n * @typedef {Object} DocumentFieldExtractResponse\n * @property {string} id - an id of created document\n ", - "start": 2745, - "end": 2915, - "loc": { - "start": { - "line": 98, - "column": 2 - }, - "end": { - "line": 102, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Uploads a file that contains SignNow Document Field Tags.\n * This endpoint only accepts .pdf (you may convert the document from .doc or .docx to .pdf)\n * @param {DocumentFieldExtractParams} data - upload document with field extract payload\n * @param {function(err: ApiErrorResponse, res: DocumentFieldExtractResponse)} [callback] - error first node.js callback\n ", - "start": 2919, - "end": 3300, - "loc": { - "start": { - "line": 104, - "column": 2 - }, - "end": { - "line": 109, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Payload to receive user's document list\n * @typedef {Object} DocumentListParams\n * @property {string} token - your auth token\n ", - "start": 4710, - "end": 4854, - "loc": { - "start": { - "line": 159, - "column": 2 - }, - "end": { - "line": 163, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document list response item\n * @typedef {Object} DocumentListItem\n * @property {string} id - id of specific document\n * @property {string} user_id - id of user that uploaded document\n * @property {string} document_name - name of document\n * @property {string} page_count - amount of pages in the document\n * @property {string} created - timestamp document was created\n * @property {string} updated - timestamp document was updated\n * @property {string} original_filename - original filename with document format (.pdf, .doc, etc...)\n * @property {?string} origin_document_id - an id of original document (if document is a copy)\n * @property {string} owner - email of document owner\n * @property {boolean} template - is document a template or not\n * @property {?string} origin_user_id - id of user who created document\n * @property {DocumentThumbnails} thumbnail - thumbnail urls with different sizes (small, medium, large)\n * @property {Object[]} signatures - signature signed elements\n * @property {Object[]} texts - text and enumeration filled elements\n * @property {Object[]} checks - checkbox checked elements\n * @property {Object[]} tags - field types document contains\n * @property {Object[]} fields - all document fillable fields\n * @property {Object[]} requests - requests for signing document\n * @property {Object[]} roles - document signer roles\n * @property {Object[]} field_invites - sent invites data\n * @property {number} version_time - document updated timestamp\n * @property {Object[]} enumeration_options - dropdown options\n * @property {Object[]} attachments - attachments in document\n * @property {Object[]} routing_details - signing steps routing details\n * @property {Object[]} integrations - document integrations\n * @property {Object[]} hyperlinks - document hyperlinks\n * @property {Object[]} radiobuttons - checked radiobuttons after document was signed\n * @property {Object[]} document_group_template_info - document group templates data\n * @property {Object[]} document_group_info - document group template's data\n * @property {Object[]} originator_organization_settings - specific organization settings for document\n * @property {Object[]} field_validators - validation rules for fields (date fields, payment fields etc.)\n * @property {Object} settings - specific document settings\n ", - "start": 4858, - "end": 7248, - "loc": { - "start": { - "line": 165, - "column": 2 - }, - "end": { - "line": 200, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * User's Document list response\n * @typedef {DocumentListItem[]} DocumentListResponse\n ", - "start": 7252, - "end": 7352, - "loc": { - "start": { - "line": 202, - "column": 2 - }, - "end": { - "line": 205, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieve user's document list\n * @param {DocumentListParams} data - payload to receive user's document list\n * @param {function(err: ApiErrorResponse, res: DocumentListItem)} [callback] - error first node.js callback\n ", - "start": 7356, - "end": 7591, - "loc": { - "start": { - "line": 207, - "column": 2 - }, - "end": { - "line": 211, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document view payload\n * @typedef {Object} DocumentViewParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 7915, - "end": 8094, - "loc": { - "start": { - "line": 226, - "column": 2 - }, - "end": { - "line": 231, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document thumbnail urls with different sizes (small, medium, large)\n * @typedef {Object} DocumentThumbnails\n * @property {string} large\n * @property {string} medium\n * @property {string} small\n ", - "start": 8098, - "end": 8313, - "loc": { - "start": { - "line": 233, - "column": 2 - }, - "end": { - "line": 239, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document view response of specific document\n * @typedef {Object} DocumentViewResponse\n * @property {string} id - id of specific document\n * @property {string} user_id - id of user that uploaded document\n * @property {string} document_name - name of document\n * @property {string} page_count - amount of pages in the document\n * @property {string} created - timestamp document was created\n * @property {string} updated - timestamp document was updated\n * @property {string} original_filename - original filename with document format (.pdf, .doc, etc...)\n * @property {?string} origin_document_id - an id of original document (if document is a copy)\n * @property {string} owner - email of document owner\n * @property {boolean} template - is document a template or not\n * @property {DocumentThumbnails} thumbnail - thumbnail urls with different sizes (small, medium, large)\n * @property {Object[]} signatures - signature signed elements\n * @property {Object[]} texts - text and enumeration filled elements\n * @property {Object[]} checks - checkbox checked elements\n * @property {Object[]} tags - field types document contains\n * @property {Object[]} fields - all document fillable fields\n * @property {Object[]} requests - requests for signing document\n * @property {Object[]} roles - document signer roles\n * @property {Object[]} field_invites - sent invites data\n * @property {number} version_time - document updated timestamp\n * @property {Object[]} enumeration_options - dropdown options\n * @property {Object[]} attachments - attachments in document\n * @property {Object[]} routing_details - signing steps routing details\n * @property {Object[]} integrations - document integrations\n * @property {Object[]} hyperlinks - document hyperlinks\n * @property {Object[]} radiobuttons - checked radiobuttons after document was signed\n * @property {Object[]} document_group_template_info - document group template's data\n * @property {Object[]} document_group_info - document group's data\n * @property {Object[]} originator_organization_settings - specific organization settings for document\n * @property {Object[]} field_validators - validation rules for fields (date fields, payment fields etc.)\n * @property {Object} settings - specific document settings\n * @property {string} parent_id - id of document folder\n * @property {string} originator_logo - logo url\n * @property {Object[]} pages - list of document pages with page sources and page size.\n ", - "start": 8317, - "end": 10844, - "loc": { - "start": { - "line": 241, - "column": 2 - }, - "end": { - "line": 278, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves a document detailed data\n * @param {DocumentViewParams} data - view document details payload\n * @param {function(err: ApiErrorResponse, res: DocumentViewResponse)} [callback] - error first node.js callback\n ", - "start": 10848, - "end": 11082, - "loc": { - "start": { - "line": 280, - "column": 2 - }, - "end": { - "line": 284, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} SignatureField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (signature)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} [label] - field label\n ", - "start": 11408, - "end": 11980, - "loc": { - "start": { - "line": 299, - "column": 2 - }, - "end": { - "line": 311, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} InitialsField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (initials)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} [label] - field label\n ", - "start": 11984, - "end": 12554, - "loc": { - "start": { - "line": 313, - "column": 2 - }, - "end": { - "line": 325, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} TextField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (text)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string|number} [prefilled_text] - prefilled field value\n * @property {string} [validator_id] - field value validator ID\n * @property {string} [label] - field label\n ", - "start": 12558, - "end": 13258, - "loc": { - "start": { - "line": 327, - "column": 2 - }, - "end": { - "line": 341, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} CheckField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (checkbox)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {boolean} [prefilled_text] - prefilled field value\n * @property {string} [label] - field label\n ", - "start": 13262, - "end": 13895, - "loc": { - "start": { - "line": 343, - "column": 2 - }, - "end": { - "line": 356, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} EnumerationField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (enumeration)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {Array} enumeration_options - choice options of enumerable field\n * @property {string|number} [prefilled_text] - prefilled field value\n * @property {string} [label] - field label\n * @property {boolean} [custom_defined_option=false] - if 'true' user can change values, if 'false' user can only read\n ", - "start": 13899, - "end": 14763, - "loc": { - "start": { - "line": 358, - "column": 2 - }, - "end": { - "line": 373, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} RadioButton\n * @property {number} page_number - page number of document\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} value - value of radio button\n * @property {string} checked - radio button check status\n * @property {number} created - redio button creation timestamp\n ", - "start": 14767, - "end": 15265, - "loc": { - "start": { - "line": 375, - "column": 2 - }, - "end": { - "line": 385, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} RadioButtonField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (radiobutton)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {RadioButton[]} radio - array of radio buttons\n * @property {string|number} [prefilled_text] - prefilled field value\n * @property {string} [label] - field label\n ", - "start": 15269, - "end": 15979, - "loc": { - "start": { - "line": 387, - "column": 2 - }, - "end": { - "line": 401, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} FormulaTreeBranchTerminator\n * @property {string} term - name of field which will participate in calculation formula\n ", - "start": 15983, - "end": 16134, - "loc": { - "start": { - "line": 403, - "column": 2 - }, - "end": { - "line": 406, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} FormulaTreeBranch\n * @property {FormulaTree} term - a part of formula parsed into tree\n ", - "start": 16138, - "end": 16259, - "loc": { - "start": { - "line": 408, - "column": 2 - }, - "end": { - "line": 411, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} FormulaTree\n * @property {string} operator - arithmetic operator's token\n * @property {FormulaTreeBranch|FormulaTreeBranchTerminator} left - left branch of formula tree\n * @property {FormulaTreeBranch|FormulaTreeBranchTerminator} right - right branch of formula tree\n ", - "start": 16263, - "end": 16568, - "loc": { - "start": { - "line": 413, - "column": 2 - }, - "end": { - "line": 418, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} CalculatedField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (text)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} formula - arithmetic formula, e.g. 'TextName+EnumerationName'\n * @property {FormulaTree} calculation_formula - formula parsed into tree\n * @property {number} calculation_precision - calculation precision\n * @property {string} [label] - field label\n * @property {boolean} [custom_defined_option=false] - if 'true' user can change values, if 'false' user can only read\n ", - "start": 16572, - "end": 17493, - "loc": { - "start": { - "line": 420, - "column": 2 - }, - "end": { - "line": 436, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} AttachmentField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (attachment)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} [label] - field label\n ", - "start": 17497, - "end": 18071, - "loc": { - "start": { - "line": 438, - "column": 2 - }, - "end": { - "line": 450, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} DocumentFields\n * @property {number} client_timestamp - local time of user\n * @property {Array} fields - all types of fields\n ", - "start": 18075, - "end": 18353, - "loc": { - "start": { - "line": 452, - "column": 2 - }, - "end": { - "line": 456, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update document payload\n * @typedef {Object} DocumentUpdateParams\n * @property {string} id - id of specific document\n * @property {DocumentFields} fields - set of fields\n * @property {string} token - your auth token\n ", - "start": 18357, - "end": 18595, - "loc": { - "start": { - "line": 458, - "column": 2 - }, - "end": { - "line": 464, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update document response data\n * @typedef {Object} DocumentUpdateResponse\n * @property {string} id - an id of document\n * @property {Object[]} signatures - signature and initial elements\n * @property {Object[]} texts - text and enumeration elements\n * @property {Object[]} checks - checkbox elements\n * @property {Object[]} attachments - attachment elements\n * @property {Object[]} radiobuttons - radiobutton elements\n ", - "start": 18599, - "end": 19045, - "loc": { - "start": { - "line": 466, - "column": 2 - }, - "end": { - "line": 475, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Updates an existing document.\n * Adds fields (signature, text, initials, checkbox, radiobutton group, calculated) and elements (signature, text, check).\n * Every call of this method will add only specified fields into document.\n * Old fields will be removed\n * @param {DocumentUpdateParams} data - update document request payload\n * @param {function(err: ApiErrorResponse, res: DocumentUpdateResponse)} [callback] - error first node.js callback\n ", - "start": 19049, - "end": 19518, - "loc": { - "start": { - "line": 477, - "column": 2 - }, - "end": { - "line": 484, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Download document optional settings\n * @typedef {Object} DocumentDownloadOptions\n * @property {boolean} [withAttachments=false] - if true document will be downloaded as zip package with its attachments\n * @property {boolean} [withHistory=false] - if true document will be downloaded with history\n ", - "start": 20087, - "end": 20403, - "loc": { - "start": { - "line": 510, - "column": 2 - }, - "end": { - "line": 515, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document download payload\n * @typedef {Object} DocumentDownloadParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n * @property {DocumentDownloadOptions} options - download document optional settings\n ", - "start": 20407, - "end": 20681, - "loc": { - "start": { - "line": 517, - "column": 2 - }, - "end": { - "line": 523, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document binary data\n * @typedef {Buffer} DocumentDownloadResponse\n ", - "start": 20685, - "end": 20768, - "loc": { - "start": { - "line": 525, - "column": 2 - }, - "end": { - "line": 528, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Downloads document with embedded fields and elements.\n * By default document is downloaded without history. To download document with history set `withHistory` option to `true`.\n * @param {DocumentDownloadParams} data - download document request payload\n * @param {function(err: ApiErrorResponse, res: DocumentDownloadResponse)} [callback] - error first node.js callback\n ", - "start": 20772, - "end": 21163, - "loc": { - "start": { - "line": 530, - "column": 2 - }, - "end": { - "line": 535, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document share payload\n * @typedef {Object} DocumentShareParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 21875, - "end": 22056, - "loc": { - "start": { - "line": 563, - "column": 2 - }, - "end": { - "line": 568, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document share response data\n * @typedef {Object} DocumentShareResponse\n * @property {string} link - link to download specified document in PDF format\n ", - "start": 22060, - "end": 22229, - "loc": { - "start": { - "line": 570, - "column": 2 - }, - "end": { - "line": 574, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Requests a link to download document with embedded fields and elements\n * Link can be used once and then will expire\n * @param {DocumentShareParams} data - share document request payload\n * @param {function(err: ApiErrorResponse, res: DocumentShareResponse)} [callback] - error first node.js callback\n ", - "start": 22233, - "end": 22554, - "loc": { - "start": { - "line": 576, - "column": 2 - }, - "end": { - "line": 581, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document invite signer settings\n * @typedef {Object} SignerSettings\n * @property {string} email - signer's email\n * @property {string} role - role name\n * @property {string} [role_id] - role unique id (can be discovered in document details)\n * @property {number} order - role signing order\n * @property {string} reassign - allow reassign signer\n * @property {string} decline_by_signature - signer can decline invite\n * @property {number} reminder - remind via email in days\n * @property {number} expiration_days - expiration of invite in days\n * @property {string} [subject] - specify subject of email\n * @property {string} [message] - specify body of email\n ", - "start": 22896, - "end": 23590, - "loc": { - "start": { - "line": 596, - "column": 2 - }, - "end": { - "line": 609, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document invite settings\n * @typedef {Object} DocumentInviteSettings\n * @property {string} from - email of sender\n * @property {SignerSettings[]|string} to - array of signers or email of single signer\n * @property {string} [document_id] - an id of document\n * @property {string[]} [cc] - array with emails of copy receivers\n * @property {string} [subject] - specify subject of email\n * @property {string} [message] - specify body of email\n * @property {string} [on_complete] - on signing complete action\n ", - "start": 23594, - "end": 24128, - "loc": { - "start": { - "line": 611, - "column": 2 - }, - "end": { - "line": 621, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document invite optional settings\n * @typedef {Object} DocumentInviteOptions\n * @property {string} [email] - ability to disable invitation by email. to disable email assign value 'disable'\n ", - "start": 24132, - "end": 24339, - "loc": { - "start": { - "line": 623, - "column": 2 - }, - "end": { - "line": 627, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document invite payload\n * @typedef {Object} DocumentInviteParams\n * @property {string} id - an id of document\n * @property {DocumentInviteSettings} data - document invite settings\n * @property {DocumentInviteOptions} [options] - document invite optional settings\n * @property {string} token - your auth token\n ", - "start": 24343, - "end": 24684, - "loc": { - "start": { - "line": 629, - "column": 2 - }, - "end": { - "line": 636, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document field invite response data\n * @typedef {Object} DocumentFieldInviteResponse\n * @property {string} status - status of invitation, e.g. 'success'\n ", - "start": 24688, - "end": 24866, - "loc": { - "start": { - "line": 638, - "column": 2 - }, - "end": { - "line": 642, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document free form invite response data\n * @typedef {Object} DocumentFreeformInviteResponse\n * @property {string} result - free form invitation result, e.g. 'success'\n * @property {string} id - unique id of invite\n * @property {string} callback_url - url for front-end redirect or 'none'\n ", - "start": 24870, - "end": 25187, - "loc": { - "start": { - "line": 644, - "column": 2 - }, - "end": { - "line": 650, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document invite response data\n * @typedef {DocumentFieldInviteResponse|DocumentFreeformInviteResponse} DocumentInviteResponse\n ", - "start": 25191, - "end": 25340, - "loc": { - "start": { - "line": 652, - "column": 2 - }, - "end": { - "line": 655, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates an invite to sign a document.\n * You can create a simple free form invite(s) or a role-based invite(s).\n * @param {DocumentInviteParams} data - create document invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentInviteResponse)} [callback] - error first node.js callback\n ", - "start": 25344, - "end": 25662, - "loc": { - "start": { - "line": 657, - "column": 2 - }, - "end": { - "line": 662, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancel freeform invite payload\n * @typedef {Object} CancelFreeformInviteParams\n * @property {string} id - unique id of invite\n * @property {string} token - your auth token\n ", - "start": 26432, - "end": 26624, - "loc": { - "start": { - "line": 697, - "column": 2 - }, - "end": { - "line": 702, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancel freeform invite response data\n * @typedef {Object} CancelFreeformInviteResponse\n * @property {string} id - unique id of invite\n ", - "start": 26628, - "end": 26780, - "loc": { - "start": { - "line": 704, - "column": 2 - }, - "end": { - "line": 708, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancels sent freeform invite\n * @param {CancelFreeformInviteParams} data - cancel freeform invite payload\n * @param {function(err: ApiErrorResponse, res: CancelFreeformInviteResponse)} [callback] - error first node.js callback\n ", - "start": 26784, - "end": 27029, - "loc": { - "start": { - "line": 710, - "column": 2 - }, - "end": { - "line": 714, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancel document field invite payload\n * @typedef {Object} DocumentFieldInviteCancelParams\n * @property {string} id - an id of document\n * @property {string} token - your auth token\n ", - "start": 27376, - "end": 27577, - "loc": { - "start": { - "line": 729, - "column": 2 - }, - "end": { - "line": 734, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancel document field invite response data\n * @typedef {Object} DocumentFieldInviteCancelResponse\n * @property {string} status - status of field invite cancellation, e.g. 'success'\n ", - "start": 27581, - "end": 27780, - "loc": { - "start": { - "line": 736, - "column": 2 - }, - "end": { - "line": 740, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancels an invite to a document\n * @param {DocumentFieldInviteCancelParams} data - cancel field invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentFieldInviteCancelResponse)} [callback] - error first node.js callback\n ", - "start": 27784, - "end": 28039, - "loc": { - "start": { - "line": 742, - "column": 2 - }, - "end": { - "line": 746, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancels an invite to a document\n * @deprecated use Document.cancelFieldInvite instead of this\n * @param {DocumentFieldInviteCancelParams} data - cancel field invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentFieldInviteCancelResponse)} [callback] - error first node.js callback\n ", - "start": 28396, - "end": 28715, - "loc": { - "start": { - "line": 761, - "column": 2 - }, - "end": { - "line": 766, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Merge documents optional settings\n * @typedef {Object} DocumentMergeOptions\n * @property {boolean} [removeOriginalDocuments=false] - if true original documents will be removed\n ", - "start": 28847, - "end": 29041, - "loc": { - "start": { - "line": 774, - "column": 2 - }, - "end": { - "line": 778, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Merge documents payload\n * @typedef {Object} DocumentMergeParams\n * @property {string} token - your auth token\n * @property {string} name - new name for merged document\n * @property {string[]} document_ids - an array of document IDs\n * @property {DocumentMergeOptions} options - merge documents optional settings\n ", - "start": 29045, - "end": 29382, - "loc": { - "start": { - "line": 780, - "column": 2 - }, - "end": { - "line": 787, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Merge documents response data\n * @typedef {Object} DocumentMergeResponse\n * @property {string} document_id - an ID of merged document\n ", - "start": 29386, - "end": 29538, - "loc": { - "start": { - "line": 789, - "column": 2 - }, - "end": { - "line": 793, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Merges existing documents into one.\n * By default original documents are not removed after merging. To remove original documents set `removeOriginalDocuments` option to `true`.\n * @param {DocumentMergeParams} data - merge documents payload\n * @param {function(err: ApiErrorResponse, res: DocumentMergeResponse)} [originalCallback] - error first node.js callback\n ", - "start": 29542, - "end": 29924, - "loc": { - "start": { - "line": 795, - "column": 2 - }, - "end": { - "line": 800, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document history payload\n * @typedef {Object} DocumentHistoryParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 31902, - "end": 32087, - "loc": { - "start": { - "line": 876, - "column": 2 - }, - "end": { - "line": 881, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document action log item\n * @typedef {Object} DocumentEvent\n * @property {string} client_app_name - name of a client application\n * @property {?string} client_timestamp - client application timestamp\n * @property {string} created - timestamp of action creation\n * @property {string} email - email of an actor\n * @property {string} event - name of event\n * @property {string} ip_address - actor's IP address\n * @property {?string} element_id - an ID of specific element\n * @property {?string} field_id - an ID of specific field\n * @property {?string} json_attributes - field attributes (e.g. font, style, size etc.)\n * @property {string} [document_id] - an ID of specific document\n * @property {string} [origin] - an origin of document\n * @property {string} [unique_id] - an ID of event\n * @property {string} [user_agent] - user agent\n * @property {string} [user_id] - id of an actor\n * @property {string} [version] - version of signed document (incremented after each signature addition)\n ", - "start": 32091, - "end": 33125, - "loc": { - "start": { - "line": 883, - "column": 2 - }, - "end": { - "line": 901, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document history response data\n * @typedef {DocumentEvent[]} DocumentHistoryResponse\n ", - "start": 33129, - "end": 33230, - "loc": { - "start": { - "line": 903, - "column": 2 - }, - "end": { - "line": 906, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves a document action log (history) data\n * @param {DocumentHistoryParams} data - payload\n * @param {function(err: ApiErrorResponse, res: DocumentHistoryResponse)} [callback] - error first node.js callback\n ", - "start": 33234, - "end": 33465, - "loc": { - "start": { - "line": 908, - "column": 2 - }, - "end": { - "line": 912, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document remove optional settings\n * @typedef {Object} DocumentRemoveOptions\n * @property {boolean} [cancelInvites=false] - ability to cancel all document invites during deletion\n ", - "start": 33802, - "end": 33999, - "loc": { - "start": { - "line": 927, - "column": 2 - }, - "end": { - "line": 931, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Remove document payload\n * @typedef {Object} DocumentRemoveParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n * @property {DocumentRemoveOptions} [options] - document remove optional settings\n ", - "start": 34003, - "end": 34271, - "loc": { - "start": { - "line": 933, - "column": 2 - }, - "end": { - "line": 939, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Remove document response data\n * @typedef {Object} DocumentRemoveResponse\n * @property {string} status - status of deletion, e.g. 'success'\n ", - "start": 34275, - "end": 34433, - "loc": { - "start": { - "line": 941, - "column": 2 - }, - "end": { - "line": 945, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Removes a specified document from folder\n * @param {DocumentRemoveParams} data - remove document payload\n * @param {function(err: ApiErrorResponse, res: DocumentRemoveResponse)} [originalCallback] - error first node.js callback\n ", - "start": 34437, - "end": 34683, - "loc": { - "start": { - "line": 947, - "column": 2 - }, - "end": { - "line": 951, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Get Document Signers optional settings\n * @typedef {Object} DocumentSignersOptions\n * @property {boolean} [allSignatures=true] - if true receive all document signers email\n * @property {boolean} [freeFormInvites=false] - if `true` return free from invite signer emails\n * @property {?string[]} [fieldInvitesStatus=null] - return signers according to specified field invite status(es)\n * Accepts list of statuses or a single status.\n * Acceptable statuses: all, pending, declined, fulfilled, created, skipped.\n * @property {?string[]} [paymentRequestsStatus=null] - return signers according to specified to payment request status(es)\n * Accepts list of statuses or a single status.\n * Available statuses: all, pending, fulfilled, created, skipped.\n ", - "start": 37070, - "end": 37849, - "loc": { - "start": { - "line": 1032, - "column": 2 - }, - "end": { - "line": 1043, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Get Document Signers payload\n * @typedef {Object} DocumentSignersParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n * @property {DocumentSignersOptions} [options] - document signers optional settings,\n ", - "start": 37853, - "end": 38130, - "loc": { - "start": { - "line": 1045, - "column": 2 - }, - "end": { - "line": 1051, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Get Document Signers response data\n * @typedef {Object} DocumentSignersResponse\n * @property {string[]} - emails of document signers\n ", - "start": 38134, - "end": 38286, - "loc": { - "start": { - "line": 1053, - "column": 2 - }, - "end": { - "line": 1057, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves all signers of specific document\n * @experimental this class includes breaking change.\n * @param {DocumentSignersParams} data - get document signers payload\n * @param {function(err: ApiErrorResponse, res: DocumentSignersResponse)} [callback] - error first node.js callback\n ", - "start": 38290, - "end": 38593, - "loc": { - "start": { - "line": 1059, - "column": 2 - }, - "end": { - "line": 1064, - "column": 5 - } - } - } - ], - "tokens": [ - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "use strict", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 12 - }, - "end": { - "line": 1, - "column": 13 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 14, - "end": 20, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 27, - "end": 31, - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 17 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "https", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 18 - }, - "end": { - "line": 2, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39, - "end": 40, - "loc": { - "start": { - "line": 2, - "column": 25 - }, - "end": { - "line": 2, - "column": 26 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 41, - "end": 47, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 48, - "end": 49, - "loc": { - "start": { - "line": 3, - "column": 7 - }, - "end": { - "line": 3, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "readFileSync", - "start": 50, - "end": 62, - "loc": { - "start": { - "line": 3, - "column": 9 - }, - "end": { - "line": 3, - "column": 21 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 63, - "end": 64, - "loc": { - "start": { - "line": 3, - "column": 22 - }, - "end": { - "line": 3, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 65, - "end": 69, - "loc": { - "start": { - "line": 3, - "column": 24 - }, - "end": { - "line": 3, - "column": 28 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "fs", - "start": 70, - "end": 74, - "loc": { - "start": { - "line": 3, - "column": 29 - }, - "end": { - "line": 3, - "column": 33 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 74, - "end": 75, - "loc": { - "start": { - "line": 3, - "column": 33 - }, - "end": { - "line": 3, - "column": 34 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 76, - "end": 82, - "loc": { - "start": { - "line": 4, - "column": 0 - }, - "end": { - "line": 4, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 83, - "end": 84, - "loc": { - "start": { - "line": 4, - "column": 7 - }, - "end": { - "line": 4, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "basename", - "start": 85, - "end": 93, - "loc": { - "start": { - "line": 4, - "column": 9 - }, - "end": { - "line": 4, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 93, - "end": 94, - "loc": { - "start": { - "line": 4, - "column": 17 - }, - "end": { - "line": 4, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "extname", - "start": 95, - "end": 102, - "loc": { - "start": { - "line": 4, - "column": 19 - }, - "end": { - "line": 4, - "column": 26 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 103, - "end": 104, - "loc": { - "start": { - "line": 4, - "column": 27 - }, - "end": { - "line": 4, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 105, - "end": 109, - "loc": { - "start": { - "line": 4, - "column": 29 - }, - "end": { - "line": 4, - "column": 33 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "path", - "start": 110, - "end": 116, - "loc": { - "start": { - "line": 4, - "column": 34 - }, - "end": { - "line": 4, - "column": 40 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 116, - "end": 117, - "loc": { - "start": { - "line": 4, - "column": 40 - }, - "end": { - "line": 4, - "column": 41 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 118, - "end": 124, - "loc": { - "start": { - "line": 5, - "column": 0 - }, - "end": { - "line": 5, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 125, - "end": 126, - "loc": { - "start": { - "line": 5, - "column": 7 - }, - "end": { - "line": 5, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 129, - "end": 144, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 144, - "end": 145, - "loc": { - "start": { - "line": 6, - "column": 17 - }, - "end": { - "line": 6, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 148, - "end": 160, - "loc": { - "start": { - "line": 7, - "column": 2 - }, - "end": { - "line": 7, - "column": 14 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 160, - "end": 161, - "loc": { - "start": { - "line": 7, - "column": 14 - }, - "end": { - "line": 7, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 164, - "end": 183, - "loc": { - "start": { - "line": 8, - "column": 2 - }, - "end": { - "line": 8, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 183, - "end": 184, - "loc": { - "start": { - "line": 8, - "column": 21 - }, - "end": { - "line": 8, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "stringifyQueryParams", - "start": 187, - "end": 207, - "loc": { - "start": { - "line": 9, - "column": 2 - }, - "end": { - "line": 9, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 207, - "end": 208, - "loc": { - "start": { - "line": 9, - "column": 22 - }, - "end": { - "line": 9, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getMimeTypeByFileExtension", - "start": 211, - "end": 237, - "loc": { - "start": { - "line": 10, - "column": 2 - }, - "end": { - "line": 10, - "column": 28 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 237, - "end": 238, - "loc": { - "start": { - "line": 10, - "column": 28 - }, - "end": { - "line": 10, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "isDocumentTypeAcceptable", - "start": 241, - "end": 265, - "loc": { - "start": { - "line": 11, - "column": 2 - }, - "end": { - "line": 11, - "column": 26 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 265, - "end": 266, - "loc": { - "start": { - "line": 11, - "column": 26 - }, - "end": { - "line": 11, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getFormDataBoundary", - "start": 269, - "end": 288, - "loc": { - "start": { - "line": 12, - "column": 2 - }, - "end": { - "line": 12, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 288, - "end": 289, - "loc": { - "start": { - "line": 12, - "column": 21 - }, - "end": { - "line": 12, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getByDeclinedStatus", - "start": 292, - "end": 311, - "loc": { - "start": { - "line": 13, - "column": 2 - }, - "end": { - "line": 13, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 311, - "end": 312, - "loc": { - "start": { - "line": 13, - "column": 21 - }, - "end": { - "line": 13, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getSignerEmails", - "start": 315, - "end": 330, - "loc": { - "start": { - "line": 14, - "column": 2 - }, - "end": { - "line": 14, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 330, - "end": 331, - "loc": { - "start": { - "line": 14, - "column": 17 - }, - "end": { - "line": 14, - "column": 18 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 332, - "end": 333, - "loc": { - "start": { - "line": 15, - "column": 0 - }, - "end": { - "line": 15, - "column": 1 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 334, - "end": 338, - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 15, - "column": 6 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "../common", - "start": 339, - "end": 350, - "loc": { - "start": { - "line": 15, - "column": 7 - }, - "end": { - "line": 15, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 350, - "end": 351, - "loc": { - "start": { - "line": 15, - "column": 18 - }, - "end": { - "line": 15, - "column": 19 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 352, - "end": 358, - "loc": { - "start": { - "line": 16, - "column": 0 - }, - "end": { - "line": 16, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 359, - "end": 360, - "loc": { - "start": { - "line": 16, - "column": 7 - }, - "end": { - "line": 16, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "promisify", - "start": 361, - "end": 370, - "loc": { - "start": { - "line": 16, - "column": 9 - }, - "end": { - "line": 16, - "column": 18 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 371, - "end": 372, - "loc": { - "start": { - "line": 16, - "column": 19 - }, - "end": { - "line": 16, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 373, - "end": 377, - "loc": { - "start": { - "line": 16, - "column": 21 - }, - "end": { - "line": 16, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "../../utils", - "start": 378, - "end": 391, - "loc": { - "start": { - "line": 16, - "column": 26 - }, - "end": { - "line": 16, - "column": 39 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 391, - "end": 392, - "loc": { - "start": { - "line": 16, - "column": 39 - }, - "end": { - "line": 16, - "column": 40 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document methods\n ", - "start": 394, - "end": 421, - "loc": { - "start": { - "line": 18, - "column": 0 - }, - "end": { - "line": 20, - "column": 3 - } - } - }, - { - "type": { - "label": "class", - "keyword": "class", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "class", - "start": 422, - "end": 427, - "loc": { - "start": { - "line": 21, - "column": 0 - }, - "end": { - "line": 21, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Document", - "start": 428, - "end": 436, - "loc": { - "start": { - "line": 21, - "column": 6 - }, - "end": { - "line": 21, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 437, - "end": 438, - "loc": { - "start": { - "line": 21, - "column": 15 - }, - "end": { - "line": 21, - "column": 16 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document payload\n * @typedef {Object} DocumentCreateParams\n * @property {string} filepath - path to file to be uploaded\n * @property {string} token - your auth token\n ", - "start": 442, - "end": 635, - "loc": { - "start": { - "line": 23, - "column": 2 - }, - "end": { - "line": 28, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document response data\n * @typedef {Object} DocumentCreateResponse\n * @property {string} id - an id of created document\n ", - "start": 639, - "end": 784, - "loc": { - "start": { - "line": 30, - "column": 2 - }, - "end": { - "line": 34, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Uploads a file and creates a document.\n * This endpoint accepts .pdf, .doc, .docx, .odt, .rtf, .png, .jpg, .jpeg, .gif, .bmp, .xml, .xls, .xlsx, .ppt, .pptx file types\n * @param {DocumentCreateParams} data - create document payload\n * @param {function(err: ApiErrorResponse, res: DocumentCreateResponse)} [callback] - error first node.js callback\n ", - "start": 788, - "end": 1155, - "loc": { - "start": { - "line": 36, - "column": 2 - }, - "end": { - "line": 41, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 1158, - "end": 1164, - "loc": { - "start": { - "line": 42, - "column": 2 - }, - "end": { - "line": 42, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "create", - "start": 1165, - "end": 1171, - "loc": { - "start": { - "line": 42, - "column": 9 - }, - "end": { - "line": 42, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1172, - "end": 1173, - "loc": { - "start": { - "line": 42, - "column": 16 - }, - "end": { - "line": 42, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1173, - "end": 1174, - "loc": { - "start": { - "line": 42, - "column": 17 - }, - "end": { - "line": 42, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "filepath", - "start": 1175, - "end": 1183, - "loc": { - "start": { - "line": 42, - "column": 19 - }, - "end": { - "line": 42, - "column": 27 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1183, - "end": 1184, - "loc": { - "start": { - "line": 42, - "column": 27 - }, - "end": { - "line": 42, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 1185, - "end": 1190, - "loc": { - "start": { - "line": 42, - "column": 29 - }, - "end": { - "line": 42, - "column": 34 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1191, - "end": 1192, - "loc": { - "start": { - "line": 42, - "column": 35 - }, - "end": { - "line": 42, - "column": 36 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1192, - "end": 1193, - "loc": { - "start": { - "line": 42, - "column": 36 - }, - "end": { - "line": 42, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 1194, - "end": 1202, - "loc": { - "start": { - "line": 42, - "column": 38 - }, - "end": { - "line": 42, - "column": 46 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1202, - "end": 1203, - "loc": { - "start": { - "line": 42, - "column": 46 - }, - "end": { - "line": 42, - "column": 47 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1204, - "end": 1205, - "loc": { - "start": { - "line": 42, - "column": 48 - }, - "end": { - "line": 42, - "column": 49 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1210, - "end": 1215, - "loc": { - "start": { - "line": 43, - "column": 4 - }, - "end": { - "line": 43, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fileExt", - "start": 1216, - "end": 1223, - "loc": { - "start": { - "line": 43, - "column": 10 - }, - "end": { - "line": 43, - "column": 17 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1224, - "end": 1225, - "loc": { - "start": { - "line": 43, - "column": 18 - }, - "end": { - "line": 43, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "extname", - "start": 1226, - "end": 1233, - "loc": { - "start": { - "line": 43, - "column": 20 - }, - "end": { - "line": 43, - "column": 27 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1233, - "end": 1234, - "loc": { - "start": { - "line": 43, - "column": 27 - }, - "end": { - "line": 43, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "filepath", - "start": 1234, - "end": 1242, - "loc": { - "start": { - "line": 43, - "column": 28 - }, - "end": { - "line": 43, - "column": 36 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1242, - "end": 1243, - "loc": { - "start": { - "line": 43, - "column": 36 - }, - "end": { - "line": 43, - "column": 37 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1243, - "end": 1244, - "loc": { - "start": { - "line": 43, - "column": 37 - }, - "end": { - "line": 43, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "substr", - "start": 1244, - "end": 1250, - "loc": { - "start": { - "line": 43, - "column": 38 - }, - "end": { - "line": 43, - "column": 44 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1250, - "end": 1251, - "loc": { - "start": { - "line": 43, - "column": 44 - }, - "end": { - "line": 43, - "column": 45 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 1251, - "end": 1252, - "loc": { - "start": { - "line": 43, - "column": 45 - }, - "end": { - "line": 43, - "column": 46 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1252, - "end": 1253, - "loc": { - "start": { - "line": 43, - "column": 46 - }, - "end": { - "line": 43, - "column": 47 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1253, - "end": 1254, - "loc": { - "start": { - "line": 43, - "column": 47 - }, - "end": { - "line": 43, - "column": 48 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 1260, - "end": 1262, - "loc": { - "start": { - "line": 45, - "column": 4 - }, - "end": { - "line": 45, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1263, - "end": 1264, - "loc": { - "start": { - "line": 45, - "column": 7 - }, - "end": { - "line": 45, - "column": 8 - } - } - }, - { - "type": { - "label": "prefix", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "!", - "start": 1264, - "end": 1265, - "loc": { - "start": { - "line": 45, - "column": 8 - }, - "end": { - "line": 45, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "isDocumentTypeAcceptable", - "start": 1265, - "end": 1289, - "loc": { - "start": { - "line": 45, - "column": 9 - }, - "end": { - "line": 45, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1289, - "end": 1290, - "loc": { - "start": { - "line": 45, - "column": 33 - }, - "end": { - "line": 45, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fileExt", - "start": 1290, - "end": 1297, - "loc": { - "start": { - "line": 45, - "column": 34 - }, - "end": { - "line": 45, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1297, - "end": 1298, - "loc": { - "start": { - "line": 45, - "column": 41 - }, - "end": { - "line": 45, - "column": 42 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1298, - "end": 1299, - "loc": { - "start": { - "line": 45, - "column": 42 - }, - "end": { - "line": 45, - "column": 43 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1300, - "end": 1301, - "loc": { - "start": { - "line": 45, - "column": 44 - }, - "end": { - "line": 45, - "column": 45 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 1308, - "end": 1316, - "loc": { - "start": { - "line": 46, - "column": 6 - }, - "end": { - "line": 46, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1316, - "end": 1317, - "loc": { - "start": { - "line": 46, - "column": 14 - }, - "end": { - "line": 46, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "File type isn't supported.", - "start": 1317, - "end": 1346, - "loc": { - "start": { - "line": 46, - "column": 15 - }, - "end": { - "line": 46, - "column": 44 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1346, - "end": 1347, - "loc": { - "start": { - "line": 46, - "column": 44 - }, - "end": { - "line": 46, - "column": 45 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1347, - "end": 1348, - "loc": { - "start": { - "line": 46, - "column": 45 - }, - "end": { - "line": 46, - "column": 46 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 1355, - "end": 1361, - "loc": { - "start": { - "line": 47, - "column": 6 - }, - "end": { - "line": 47, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1361, - "end": 1362, - "loc": { - "start": { - "line": 47, - "column": 12 - }, - "end": { - "line": 47, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1367, - "end": 1368, - "loc": { - "start": { - "line": 48, - "column": 4 - }, - "end": { - "line": 48, - "column": 5 - } - } - }, - { - "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "let", - "start": 1374, - "end": 1377, - "loc": { - "start": { - "line": 50, - "column": 4 - }, - "end": { - "line": 50, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fileContent", - "start": 1378, - "end": 1389, - "loc": { - "start": { - "line": 50, - "column": 8 - }, - "end": { - "line": 50, - "column": 19 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1389, - "end": 1390, - "loc": { - "start": { - "line": 50, - "column": 19 - }, - "end": { - "line": 50, - "column": 20 - } - } - }, - { - "type": { - "label": "try", - "keyword": "try", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "try", - "start": 1396, - "end": 1399, - "loc": { - "start": { - "line": 52, - "column": 4 - }, - "end": { - "line": 52, - "column": 7 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1400, - "end": 1401, - "loc": { - "start": { - "line": 52, - "column": 8 - }, - "end": { - "line": 52, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fileContent", - "start": 1408, - "end": 1419, - "loc": { - "start": { - "line": 53, - "column": 6 - }, - "end": { - "line": 53, - "column": 17 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1420, - "end": 1421, - "loc": { - "start": { - "line": 53, - "column": 18 - }, - "end": { - "line": 53, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "readFileSync", - "start": 1422, - "end": 1434, - "loc": { - "start": { - "line": 53, - "column": 20 - }, - "end": { - "line": 53, - "column": 32 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1434, - "end": 1435, - "loc": { - "start": { - "line": 53, - "column": 32 - }, - "end": { - "line": 53, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "filepath", - "start": 1435, - "end": 1443, - "loc": { - "start": { - "line": 53, - "column": 33 - }, - "end": { - "line": 53, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1443, - "end": 1444, - "loc": { - "start": { - "line": 53, - "column": 41 - }, - "end": { - "line": 53, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1444, - "end": 1445, - "loc": { - "start": { - "line": 53, - "column": 42 - }, - "end": { - "line": 53, - "column": 43 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1450, - "end": 1451, - "loc": { - "start": { - "line": 54, - "column": 4 - }, - "end": { - "line": 54, - "column": 5 - } - } - }, - { - "type": { - "label": "catch", - "keyword": "catch", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "catch", - "start": 1452, - "end": 1457, - "loc": { - "start": { - "line": 54, - "column": 6 - }, - "end": { - "line": 54, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1458, - "end": 1459, - "loc": { - "start": { - "line": 54, - "column": 12 - }, - "end": { - "line": 54, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 1459, - "end": 1462, - "loc": { - "start": { - "line": 54, - "column": 13 - }, - "end": { - "line": 54, - "column": 16 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1462, - "end": 1463, - "loc": { - "start": { - "line": 54, - "column": 16 - }, - "end": { - "line": 54, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1464, - "end": 1465, - "loc": { - "start": { - "line": 54, - "column": 18 - }, - "end": { - "line": 54, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 1472, - "end": 1480, - "loc": { - "start": { - "line": 55, - "column": 6 - }, - "end": { - "line": 55, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1480, - "end": 1481, - "loc": { - "start": { - "line": 55, - "column": 14 - }, - "end": { - "line": 55, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 1481, - "end": 1484, - "loc": { - "start": { - "line": 55, - "column": 15 - }, - "end": { - "line": 55, - "column": 18 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1484, - "end": 1485, - "loc": { - "start": { - "line": 55, - "column": 18 - }, - "end": { - "line": 55, - "column": 19 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1485, - "end": 1486, - "loc": { - "start": { - "line": 55, - "column": 19 - }, - "end": { - "line": 55, - "column": 20 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 1493, - "end": 1499, - "loc": { - "start": { - "line": 56, - "column": 6 - }, - "end": { - "line": 56, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1499, - "end": 1500, - "loc": { - "start": { - "line": 56, - "column": 12 - }, - "end": { - "line": 56, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1505, - "end": 1506, - "loc": { - "start": { - "line": 57, - "column": 4 - }, - "end": { - "line": 57, - "column": 5 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1512, - "end": 1517, - "loc": { - "start": { - "line": 59, - "column": 4 - }, - "end": { - "line": 59, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "mimeType", - "start": 1518, - "end": 1526, - "loc": { - "start": { - "line": 59, - "column": 10 - }, - "end": { - "line": 59, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1527, - "end": 1528, - "loc": { - "start": { - "line": 59, - "column": 19 - }, - "end": { - "line": 59, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getMimeTypeByFileExtension", - "start": 1529, - "end": 1555, - "loc": { - "start": { - "line": 59, - "column": 21 - }, - "end": { - "line": 59, - "column": 47 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1555, - "end": 1556, - "loc": { - "start": { - "line": 59, - "column": 47 - }, - "end": { - "line": 59, - "column": 48 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fileExt", - "start": 1556, - "end": 1563, - "loc": { - "start": { - "line": 59, - "column": 48 - }, - "end": { - "line": 59, - "column": 55 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1563, - "end": 1564, - "loc": { - "start": { - "line": 59, - "column": 55 - }, - "end": { - "line": 59, - "column": 56 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1564, - "end": 1565, - "loc": { - "start": { - "line": 59, - "column": 56 - }, - "end": { - "line": 59, - "column": 57 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1570, - "end": 1575, - "loc": { - "start": { - "line": 60, - "column": 4 - }, - "end": { - "line": 60, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "formDataBoundary", - "start": 1576, - "end": 1592, - "loc": { - "start": { - "line": 60, - "column": 10 - }, - "end": { - "line": 60, - "column": 26 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1593, - "end": 1594, - "loc": { - "start": { - "line": 60, - "column": 27 - }, - "end": { - "line": 60, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getFormDataBoundary", - "start": 1595, - "end": 1614, - "loc": { - "start": { - "line": 60, - "column": 29 - }, - "end": { - "line": 60, - "column": 48 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1614, - "end": 1615, - "loc": { - "start": { - "line": 60, - "column": 48 - }, - "end": { - "line": 60, - "column": 49 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1615, - "end": 1616, - "loc": { - "start": { - "line": 60, - "column": 49 - }, - "end": { - "line": 60, - "column": 50 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1616, - "end": 1617, - "loc": { - "start": { - "line": 60, - "column": 50 - }, - "end": { - "line": 60, - "column": 51 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1622, - "end": 1627, - "loc": { - "start": { - "line": 61, - "column": 4 - }, - "end": { - "line": 61, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "formDataBeginning", - "start": 1628, - "end": 1645, - "loc": { - "start": { - "line": 61, - "column": 10 - }, - "end": { - "line": 61, - "column": 27 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1646, - "end": 1647, - "loc": { - "start": { - "line": 61, - "column": 28 - }, - "end": { - "line": 61, - "column": 29 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1648, - "end": 1649, - "loc": { - "start": { - "line": 61, - "column": 30 - }, - "end": { - "line": 61, - "column": 31 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "--", - "start": 1649, - "end": 1651, - "loc": { - "start": { - "line": 61, - "column": 31 - }, - "end": { - "line": 61, - "column": 33 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1651, - "end": 1653, - "loc": { - "start": { - "line": 61, - "column": 33 - }, - "end": { - "line": 61, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "formDataBoundary", - "start": 1653, - "end": 1669, - "loc": { - "start": { - "line": 61, - "column": 35 - }, - "end": { - "line": 61, - "column": 51 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1669, - "end": 1670, - "loc": { - "start": { - "line": 61, - "column": 51 - }, - "end": { - "line": 61, - "column": 52 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\r\n", - "start": 1670, - "end": 1674, - "loc": { - "start": { - "line": 61, - "column": 52 - }, - "end": { - "line": 61, - "column": 56 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1674, - "end": 1675, - "loc": { - "start": { - "line": 61, - "column": 56 - }, - "end": { - "line": 61, - "column": 57 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1682, - "end": 1683, - "loc": { - "start": { - "line": 62, - "column": 6 - }, - "end": { - "line": 62, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "concat", - "start": 1683, - "end": 1689, - "loc": { - "start": { - "line": 62, - "column": 7 - }, - "end": { - "line": 62, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1689, - "end": 1690, - "loc": { - "start": { - "line": 62, - "column": 13 - }, - "end": { - "line": 62, - "column": 14 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1690, - "end": 1691, - "loc": { - "start": { - "line": 62, - "column": 14 - }, - "end": { - "line": 62, - "column": 15 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Disposition: form-data; name=\"file\"; filename=\"", - "start": 1691, - "end": 1746, - "loc": { - "start": { - "line": 62, - "column": 15 - }, - "end": { - "line": 62, - "column": 70 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1746, - "end": 1748, - "loc": { - "start": { - "line": 62, - "column": 70 - }, - "end": { - "line": 62, - "column": 72 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "basename", - "start": 1748, - "end": 1756, - "loc": { - "start": { - "line": 62, - "column": 72 - }, - "end": { - "line": 62, - "column": 80 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1756, - "end": 1757, - "loc": { - "start": { - "line": 62, - "column": 80 - }, - "end": { - "line": 62, - "column": 81 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "filepath", - "start": 1757, - "end": 1765, - "loc": { - "start": { - "line": 62, - "column": 81 - }, - "end": { - "line": 62, - "column": 89 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1765, - "end": 1766, - "loc": { - "start": { - "line": 62, - "column": 89 - }, - "end": { - "line": 62, - "column": 90 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1766, - "end": 1767, - "loc": { - "start": { - "line": 62, - "column": 90 - }, - "end": { - "line": 62, - "column": 91 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\"\r\n", - "start": 1767, - "end": 1772, - "loc": { - "start": { - "line": 62, - "column": 91 - }, - "end": { - "line": 62, - "column": 96 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1772, - "end": 1773, - "loc": { - "start": { - "line": 62, - "column": 96 - }, - "end": { - "line": 62, - "column": 97 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1773, - "end": 1774, - "loc": { - "start": { - "line": 62, - "column": 97 - }, - "end": { - "line": 62, - "column": 98 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1781, - "end": 1782, - "loc": { - "start": { - "line": 63, - "column": 6 - }, - "end": { - "line": 63, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "concat", - "start": 1782, - "end": 1788, - "loc": { - "start": { - "line": 63, - "column": 7 - }, - "end": { - "line": 63, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1788, - "end": 1789, - "loc": { - "start": { - "line": 63, - "column": 13 - }, - "end": { - "line": 63, - "column": 14 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1789, - "end": 1790, - "loc": { - "start": { - "line": 63, - "column": 14 - }, - "end": { - "line": 63, - "column": 15 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type: ", - "start": 1790, - "end": 1804, - "loc": { - "start": { - "line": 63, - "column": 15 - }, - "end": { - "line": 63, - "column": 29 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1804, - "end": 1806, - "loc": { - "start": { - "line": 63, - "column": 29 - }, - "end": { - "line": 63, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "mimeType", - "start": 1806, - "end": 1814, - "loc": { - "start": { - "line": 63, - "column": 31 - }, - "end": { - "line": 63, - "column": 39 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1814, - "end": 1815, - "loc": { - "start": { - "line": 63, - "column": 39 - }, - "end": { - "line": 63, - "column": 40 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\r\n\r\n", - "start": 1815, - "end": 1823, - "loc": { - "start": { - "line": 63, - "column": 40 - }, - "end": { - "line": 63, - "column": 48 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1823, - "end": 1824, - "loc": { - "start": { - "line": 63, - "column": 48 - }, - "end": { - "line": 63, - "column": 49 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1824, - "end": 1825, - "loc": { - "start": { - "line": 63, - "column": 49 - }, - "end": { - "line": 63, - "column": 50 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1825, - "end": 1826, - "loc": { - "start": { - "line": 63, - "column": 50 - }, - "end": { - "line": 63, - "column": 51 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1831, - "end": 1836, - "loc": { - "start": { - "line": 64, - "column": 4 - }, - "end": { - "line": 64, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "formDataEnding", - "start": 1837, - "end": 1851, - "loc": { - "start": { - "line": 64, - "column": 10 - }, - "end": { - "line": 64, - "column": 24 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1852, - "end": 1853, - "loc": { - "start": { - "line": 64, - "column": 25 - }, - "end": { - "line": 64, - "column": 26 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1854, - "end": 1855, - "loc": { - "start": { - "line": 64, - "column": 27 - }, - "end": { - "line": 64, - "column": 28 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\r\n--", - "start": 1855, - "end": 1861, - "loc": { - "start": { - "line": 64, - "column": 28 - }, - "end": { - "line": 64, - "column": 34 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1861, - "end": 1863, - "loc": { - "start": { - "line": 64, - "column": 34 - }, - "end": { - "line": 64, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "formDataBoundary", - "start": 1863, - "end": 1879, - "loc": { - "start": { - "line": 64, - "column": 36 - }, - "end": { - "line": 64, - "column": 52 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1879, - "end": 1880, - "loc": { - "start": { - "line": 64, - "column": 52 - }, - "end": { - "line": 64, - "column": 53 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\r\n", - "start": 1880, - "end": 1884, - "loc": { - "start": { - "line": 64, - "column": 53 - }, - "end": { - "line": 64, - "column": 57 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1884, - "end": 1885, - "loc": { - "start": { - "line": 64, - "column": 57 - }, - "end": { - "line": 64, - "column": 58 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1885, - "end": 1886, - "loc": { - "start": { - "line": 64, - "column": 58 - }, - "end": { - "line": 64, - "column": 59 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1892, - "end": 1897, - "loc": { - "start": { - "line": 66, - "column": 4 - }, - "end": { - "line": 66, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "payload", - "start": 1898, - "end": 1905, - "loc": { - "start": { - "line": 66, - "column": 10 - }, - "end": { - "line": 66, - "column": 17 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1906, - "end": 1907, - "loc": { - "start": { - "line": 66, - "column": 18 - }, - "end": { - "line": 66, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 1908, - "end": 1914, - "loc": { - "start": { - "line": 66, - "column": 20 - }, - "end": { - "line": 66, - "column": 26 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1914, - "end": 1915, - "loc": { - "start": { - "line": 66, - "column": 26 - }, - "end": { - "line": 66, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "concat", - "start": 1915, - "end": 1921, - "loc": { - "start": { - "line": 66, - "column": 27 - }, - "end": { - "line": 66, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1921, - "end": 1922, - "loc": { - "start": { - "line": 66, - "column": 33 - }, - "end": { - "line": 66, - "column": 34 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1922, - "end": 1923, - "loc": { - "start": { - "line": 66, - "column": 34 - }, - "end": { - "line": 66, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 1930, - "end": 1936, - "loc": { - "start": { - "line": 67, - "column": 6 - }, - "end": { - "line": 67, - "column": 12 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1936, - "end": 1937, - "loc": { - "start": { - "line": 67, - "column": 12 - }, - "end": { - "line": 67, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 1937, - "end": 1941, - "loc": { - "start": { - "line": 67, - "column": 13 - }, - "end": { - "line": 67, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1941, - "end": 1942, - "loc": { - "start": { - "line": 67, - "column": 17 - }, - "end": { - "line": 67, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "formDataBeginning", - "start": 1942, - "end": 1959, - "loc": { - "start": { - "line": 67, - "column": 18 - }, - "end": { - "line": 67, - "column": 35 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1959, - "end": 1960, - "loc": { - "start": { - "line": 67, - "column": 35 - }, - "end": { - "line": 67, - "column": 36 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "utf8", - "start": 1961, - "end": 1967, - "loc": { - "start": { - "line": 67, - "column": 37 - }, - "end": { - "line": 67, - "column": 43 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1967, - "end": 1968, - "loc": { - "start": { - "line": 67, - "column": 43 - }, - "end": { - "line": 67, - "column": 44 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1968, - "end": 1969, - "loc": { - "start": { - "line": 67, - "column": 44 - }, - "end": { - "line": 67, - "column": 45 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fileContent", - "start": 1976, - "end": 1987, - "loc": { - "start": { - "line": 68, - "column": 6 - }, - "end": { - "line": 68, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1987, - "end": 1988, - "loc": { - "start": { - "line": 68, - "column": 17 - }, - "end": { - "line": 68, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 1995, - "end": 2001, - "loc": { - "start": { - "line": 69, - "column": 6 - }, - "end": { - "line": 69, - "column": 12 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2001, - "end": 2002, - "loc": { - "start": { - "line": 69, - "column": 12 - }, - "end": { - "line": 69, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 2002, - "end": 2006, - "loc": { - "start": { - "line": 69, - "column": 13 - }, - "end": { - "line": 69, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2006, - "end": 2007, - "loc": { - "start": { - "line": 69, - "column": 17 - }, - "end": { - "line": 69, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "formDataEnding", - "start": 2007, - "end": 2021, - "loc": { - "start": { - "line": 69, - "column": 18 - }, - "end": { - "line": 69, - "column": 32 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2021, - "end": 2022, - "loc": { - "start": { - "line": 69, - "column": 32 - }, - "end": { - "line": 69, - "column": 33 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "utf8", - "start": 2023, - "end": 2029, - "loc": { - "start": { - "line": 69, - "column": 34 - }, - "end": { - "line": 69, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2029, - "end": 2030, - "loc": { - "start": { - "line": 69, - "column": 40 - }, - "end": { - "line": 69, - "column": 41 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2030, - "end": 2031, - "loc": { - "start": { - "line": 69, - "column": 41 - }, - "end": { - "line": 69, - "column": 42 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2036, - "end": 2037, - "loc": { - "start": { - "line": 70, - "column": 4 - }, - "end": { - "line": 70, - "column": 5 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2037, - "end": 2038, - "loc": { - "start": { - "line": 70, - "column": 5 - }, - "end": { - "line": 70, - "column": 6 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2038, - "end": 2039, - "loc": { - "start": { - "line": 70, - "column": 6 - }, - "end": { - "line": 70, - "column": 7 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 2045, - "end": 2050, - "loc": { - "start": { - "line": 72, - "column": 4 - }, - "end": { - "line": 72, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 2051, - "end": 2054, - "loc": { - "start": { - "line": 72, - "column": 10 - }, - "end": { - "line": 72, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 2055, - "end": 2056, - "loc": { - "start": { - "line": 72, - "column": 14 - }, - "end": { - "line": 72, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 2057, - "end": 2062, - "loc": { - "start": { - "line": 72, - "column": 16 - }, - "end": { - "line": 72, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2069, - "end": 2070, - "loc": { - "start": { - "line": 73, - "column": 6 - }, - "end": { - "line": 73, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 2070, - "end": 2077, - "loc": { - "start": { - "line": 73, - "column": 7 - }, - "end": { - "line": 73, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2077, - "end": 2078, - "loc": { - "start": { - "line": 73, - "column": 14 - }, - "end": { - "line": 73, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 2078, - "end": 2097, - "loc": { - "start": { - "line": 73, - "column": 15 - }, - "end": { - "line": 73, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2097, - "end": 2098, - "loc": { - "start": { - "line": 73, - "column": 34 - }, - "end": { - "line": 73, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2098, - "end": 2099, - "loc": { - "start": { - "line": 73, - "column": 35 - }, - "end": { - "line": 73, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 2108, - "end": 2114, - "loc": { - "start": { - "line": 74, - "column": 8 - }, - "end": { - "line": 74, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2114, - "end": 2115, - "loc": { - "start": { - "line": 74, - "column": 14 - }, - "end": { - "line": 74, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "POST", - "start": 2116, - "end": 2122, - "loc": { - "start": { - "line": 74, - "column": 16 - }, - "end": { - "line": 74, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2122, - "end": 2123, - "loc": { - "start": { - "line": 74, - "column": 22 - }, - "end": { - "line": 74, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 2132, - "end": 2136, - "loc": { - "start": { - "line": 75, - "column": 8 - }, - "end": { - "line": 75, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2136, - "end": 2137, - "loc": { - "start": { - "line": 75, - "column": 12 - }, - "end": { - "line": 75, - "column": 13 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/document", - "start": 2138, - "end": 2149, - "loc": { - "start": { - "line": 75, - "column": 14 - }, - "end": { - "line": 75, - "column": 25 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2149, - "end": 2150, - "loc": { - "start": { - "line": 75, - "column": 25 - }, - "end": { - "line": 75, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 2159, - "end": 2172, - "loc": { - "start": { - "line": 76, - "column": 8 - }, - "end": { - "line": 76, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2172, - "end": 2173, - "loc": { - "start": { - "line": 76, - "column": 21 - }, - "end": { - "line": 76, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2174, - "end": 2175, - "loc": { - "start": { - "line": 76, - "column": 23 - }, - "end": { - "line": 76, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 2186, - "end": 2190, - "loc": { - "start": { - "line": 77, - "column": 10 - }, - "end": { - "line": 77, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2190, - "end": 2191, - "loc": { - "start": { - "line": 77, - "column": 14 - }, - "end": { - "line": 77, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 2192, - "end": 2200, - "loc": { - "start": { - "line": 77, - "column": 16 - }, - "end": { - "line": 77, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2200, - "end": 2201, - "loc": { - "start": { - "line": 77, - "column": 24 - }, - "end": { - "line": 77, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 2212, - "end": 2217, - "loc": { - "start": { - "line": 78, - "column": 10 - }, - "end": { - "line": 78, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2217, - "end": 2218, - "loc": { - "start": { - "line": 78, - "column": 15 - }, - "end": { - "line": 78, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2227, - "end": 2228, - "loc": { - "start": { - "line": 79, - "column": 8 - }, - "end": { - "line": 79, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2228, - "end": 2229, - "loc": { - "start": { - "line": 79, - "column": 9 - }, - "end": { - "line": 79, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 2238, - "end": 2245, - "loc": { - "start": { - "line": 80, - "column": 8 - }, - "end": { - "line": 80, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2245, - "end": 2246, - "loc": { - "start": { - "line": 80, - "column": 15 - }, - "end": { - "line": 80, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2247, - "end": 2248, - "loc": { - "start": { - "line": 80, - "column": 17 - }, - "end": { - "line": 80, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type", - "start": 2259, - "end": 2273, - "loc": { - "start": { - "line": 81, - "column": 10 - }, - "end": { - "line": 81, - "column": 24 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2273, - "end": 2274, - "loc": { - "start": { - "line": 81, - "column": 24 - }, - "end": { - "line": 81, - "column": 25 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2275, - "end": 2276, - "loc": { - "start": { - "line": 81, - "column": 26 - }, - "end": { - "line": 81, - "column": 27 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "multipart/form-data; boundary=", - "start": 2276, - "end": 2306, - "loc": { - "start": { - "line": 81, - "column": 27 - }, - "end": { - "line": 81, - "column": 57 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2306, - "end": 2308, - "loc": { - "start": { - "line": 81, - "column": 57 - }, - "end": { - "line": 81, - "column": 59 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "formDataBoundary", - "start": 2308, - "end": 2324, - "loc": { - "start": { - "line": 81, - "column": 59 - }, - "end": { - "line": 81, - "column": 75 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2324, - "end": 2325, - "loc": { - "start": { - "line": 81, - "column": 75 - }, - "end": { - "line": 81, - "column": 76 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 2325, - "end": 2325, - "loc": { - "start": { - "line": 81, - "column": 76 - }, - "end": { - "line": 81, - "column": 76 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2325, - "end": 2326, - "loc": { - "start": { - "line": 81, - "column": 76 - }, - "end": { - "line": 81, - "column": 77 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2326, - "end": 2327, - "loc": { - "start": { - "line": 81, - "column": 77 - }, - "end": { - "line": 81, - "column": 78 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Length", - "start": 2338, - "end": 2354, - "loc": { - "start": { - "line": 82, - "column": 10 - }, - "end": { - "line": 82, - "column": 26 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2354, - "end": 2355, - "loc": { - "start": { - "line": 82, - "column": 26 - }, - "end": { - "line": 82, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 2356, - "end": 2362, - "loc": { - "start": { - "line": 82, - "column": 28 - }, - "end": { - "line": 82, - "column": 34 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2362, - "end": 2363, - "loc": { - "start": { - "line": 82, - "column": 34 - }, - "end": { - "line": 82, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "byteLength", - "start": 2363, - "end": 2373, - "loc": { - "start": { - "line": 82, - "column": 35 - }, - "end": { - "line": 82, - "column": 45 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2373, - "end": 2374, - "loc": { - "start": { - "line": 82, - "column": 45 - }, - "end": { - "line": 82, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "payload", - "start": 2374, - "end": 2381, - "loc": { - "start": { - "line": 82, - "column": 46 - }, - "end": { - "line": 82, - "column": 53 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2381, - "end": 2382, - "loc": { - "start": { - "line": 82, - "column": 53 - }, - "end": { - "line": 82, - "column": 54 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2382, - "end": 2383, - "loc": { - "start": { - "line": 82, - "column": 54 - }, - "end": { - "line": 82, - "column": 55 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2392, - "end": 2393, - "loc": { - "start": { - "line": 83, - "column": 8 - }, - "end": { - "line": 83, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2393, - "end": 2394, - "loc": { - "start": { - "line": 83, - "column": 9 - }, - "end": { - "line": 83, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2401, - "end": 2402, - "loc": { - "start": { - "line": 84, - "column": 6 - }, - "end": { - "line": 84, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2402, - "end": 2403, - "loc": { - "start": { - "line": 84, - "column": 7 - }, - "end": { - "line": 84, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2403, - "end": 2404, - "loc": { - "start": { - "line": 84, - "column": 8 - }, - "end": { - "line": 84, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 2405, - "end": 2420, - "loc": { - "start": { - "line": 84, - "column": 10 - }, - "end": { - "line": 84, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2420, - "end": 2421, - "loc": { - "start": { - "line": 84, - "column": 25 - }, - "end": { - "line": 84, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 2421, - "end": 2429, - "loc": { - "start": { - "line": 84, - "column": 26 - }, - "end": { - "line": 84, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2429, - "end": 2430, - "loc": { - "start": { - "line": 84, - "column": 34 - }, - "end": { - "line": 84, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2430, - "end": 2431, - "loc": { - "start": { - "line": 84, - "column": 35 - }, - "end": { - "line": 84, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2438, - "end": 2439, - "loc": { - "start": { - "line": 85, - "column": 6 - }, - "end": { - "line": 85, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 2439, - "end": 2441, - "loc": { - "start": { - "line": 85, - "column": 7 - }, - "end": { - "line": 85, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2441, - "end": 2442, - "loc": { - "start": { - "line": 85, - "column": 9 - }, - "end": { - "line": 85, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 2442, - "end": 2449, - "loc": { - "start": { - "line": 85, - "column": 10 - }, - "end": { - "line": 85, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2449, - "end": 2450, - "loc": { - "start": { - "line": 85, - "column": 17 - }, - "end": { - "line": 85, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 2451, - "end": 2463, - "loc": { - "start": { - "line": 85, - "column": 19 - }, - "end": { - "line": 85, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2463, - "end": 2464, - "loc": { - "start": { - "line": 85, - "column": 31 - }, - "end": { - "line": 85, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 2464, - "end": 2472, - "loc": { - "start": { - "line": 85, - "column": 32 - }, - "end": { - "line": 85, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2472, - "end": 2473, - "loc": { - "start": { - "line": 85, - "column": 40 - }, - "end": { - "line": 85, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2473, - "end": 2474, - "loc": { - "start": { - "line": 85, - "column": 41 - }, - "end": { - "line": 85, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2474, - "end": 2475, - "loc": { - "start": { - "line": 85, - "column": 42 - }, - "end": { - "line": 85, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 2481, - "end": 2484, - "loc": { - "start": { - "line": 87, - "column": 4 - }, - "end": { - "line": 87, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2484, - "end": 2485, - "loc": { - "start": { - "line": 87, - "column": 7 - }, - "end": { - "line": 87, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "write", - "start": 2485, - "end": 2490, - "loc": { - "start": { - "line": 87, - "column": 8 - }, - "end": { - "line": 87, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2490, - "end": 2491, - "loc": { - "start": { - "line": 87, - "column": 13 - }, - "end": { - "line": 87, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "payload", - "start": 2491, - "end": 2498, - "loc": { - "start": { - "line": 87, - "column": 14 - }, - "end": { - "line": 87, - "column": 21 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2498, - "end": 2499, - "loc": { - "start": { - "line": 87, - "column": 21 - }, - "end": { - "line": 87, - "column": 22 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2499, - "end": 2500, - "loc": { - "start": { - "line": 87, - "column": 22 - }, - "end": { - "line": 87, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 2505, - "end": 2508, - "loc": { - "start": { - "line": 88, - "column": 4 - }, - "end": { - "line": 88, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2508, - "end": 2509, - "loc": { - "start": { - "line": 88, - "column": 7 - }, - "end": { - "line": 88, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 2509, - "end": 2512, - "loc": { - "start": { - "line": 88, - "column": 8 - }, - "end": { - "line": 88, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2512, - "end": 2513, - "loc": { - "start": { - "line": 88, - "column": 11 - }, - "end": { - "line": 88, - "column": 12 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2513, - "end": 2514, - "loc": { - "start": { - "line": 88, - "column": 12 - }, - "end": { - "line": 88, - "column": 13 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2514, - "end": 2515, - "loc": { - "start": { - "line": 88, - "column": 13 - }, - "end": { - "line": 88, - "column": 14 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2518, - "end": 2519, - "loc": { - "start": { - "line": 89, - "column": 2 - }, - "end": { - "line": 89, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Upload document with field extract payload\n * @typedef {Object} DocumentFieldExtractParams\n * @property {string} filepath - path to file to be uploaded\n * @property {string} token - your auth token\n ", - "start": 2523, - "end": 2741, - "loc": { - "start": { - "line": 91, - "column": 2 - }, - "end": { - "line": 96, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Upload document with field extract response data\n * @typedef {Object} DocumentFieldExtractResponse\n * @property {string} id - an id of created document\n ", - "start": 2745, - "end": 2915, - "loc": { - "start": { - "line": 98, - "column": 2 - }, - "end": { - "line": 102, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Uploads a file that contains SignNow Document Field Tags.\n * This endpoint only accepts .pdf (you may convert the document from .doc or .docx to .pdf)\n * @param {DocumentFieldExtractParams} data - upload document with field extract payload\n * @param {function(err: ApiErrorResponse, res: DocumentFieldExtractResponse)} [callback] - error first node.js callback\n ", - "start": 2919, - "end": 3300, - "loc": { - "start": { - "line": 104, - "column": 2 - }, - "end": { - "line": 109, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 3303, - "end": 3309, - "loc": { - "start": { - "line": 110, - "column": 2 - }, - "end": { - "line": 110, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fieldextract", - "start": 3310, - "end": 3322, - "loc": { - "start": { - "line": 110, - "column": 9 - }, - "end": { - "line": 110, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3323, - "end": 3324, - "loc": { - "start": { - "line": 110, - "column": 22 - }, - "end": { - "line": 110, - "column": 23 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3324, - "end": 3325, - "loc": { - "start": { - "line": 110, - "column": 23 - }, - "end": { - "line": 110, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "filepath", - "start": 3326, - "end": 3334, - "loc": { - "start": { - "line": 110, - "column": 25 - }, - "end": { - "line": 110, - "column": 33 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3334, - "end": 3335, - "loc": { - "start": { - "line": 110, - "column": 33 - }, - "end": { - "line": 110, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 3336, - "end": 3341, - "loc": { - "start": { - "line": 110, - "column": 35 - }, - "end": { - "line": 110, - "column": 40 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3342, - "end": 3343, - "loc": { - "start": { - "line": 110, - "column": 41 - }, - "end": { - "line": 110, - "column": 42 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3343, - "end": 3344, - "loc": { - "start": { - "line": 110, - "column": 42 - }, - "end": { - "line": 110, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 3345, - "end": 3353, - "loc": { - "start": { - "line": 110, - "column": 44 - }, - "end": { - "line": 110, - "column": 52 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3353, - "end": 3354, - "loc": { - "start": { - "line": 110, - "column": 52 - }, - "end": { - "line": 110, - "column": 53 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3355, - "end": 3356, - "loc": { - "start": { - "line": 110, - "column": 54 - }, - "end": { - "line": 110, - "column": 55 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 3361, - "end": 3366, - "loc": { - "start": { - "line": 111, - "column": 4 - }, - "end": { - "line": 111, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fileExt", - "start": 3367, - "end": 3374, - "loc": { - "start": { - "line": 111, - "column": 10 - }, - "end": { - "line": 111, - "column": 17 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 3375, - "end": 3376, - "loc": { - "start": { - "line": 111, - "column": 18 - }, - "end": { - "line": 111, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "extname", - "start": 3377, - "end": 3384, - "loc": { - "start": { - "line": 111, - "column": 20 - }, - "end": { - "line": 111, - "column": 27 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3384, - "end": 3385, - "loc": { - "start": { - "line": 111, - "column": 27 - }, - "end": { - "line": 111, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "filepath", - "start": 3385, - "end": 3393, - "loc": { - "start": { - "line": 111, - "column": 28 - }, - "end": { - "line": 111, - "column": 36 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3393, - "end": 3394, - "loc": { - "start": { - "line": 111, - "column": 36 - }, - "end": { - "line": 111, - "column": 37 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3394, - "end": 3395, - "loc": { - "start": { - "line": 111, - "column": 37 - }, - "end": { - "line": 111, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "substr", - "start": 3395, - "end": 3401, - "loc": { - "start": { - "line": 111, - "column": 38 - }, - "end": { - "line": 111, - "column": 44 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3401, - "end": 3402, - "loc": { - "start": { - "line": 111, - "column": 44 - }, - "end": { - "line": 111, - "column": 45 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 3402, - "end": 3403, - "loc": { - "start": { - "line": 111, - "column": 45 - }, - "end": { - "line": 111, - "column": 46 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3403, - "end": 3404, - "loc": { - "start": { - "line": 111, - "column": 46 - }, - "end": { - "line": 111, - "column": 47 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3404, - "end": 3405, - "loc": { - "start": { - "line": 111, - "column": 47 - }, - "end": { - "line": 111, - "column": 48 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 3411, - "end": 3413, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 113, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3414, - "end": 3415, - "loc": { - "start": { - "line": 113, - "column": 7 - }, - "end": { - "line": 113, - "column": 8 - } - } - }, - { - "type": { - "label": "prefix", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "!", - "start": 3415, - "end": 3416, - "loc": { - "start": { - "line": 113, - "column": 8 - }, - "end": { - "line": 113, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "isDocumentTypeAcceptable", - "start": 3416, - "end": 3440, - "loc": { - "start": { - "line": 113, - "column": 9 - }, - "end": { - "line": 113, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3440, - "end": 3441, - "loc": { - "start": { - "line": 113, - "column": 33 - }, - "end": { - "line": 113, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fileExt", - "start": 3441, - "end": 3448, - "loc": { - "start": { - "line": 113, - "column": 34 - }, - "end": { - "line": 113, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3448, - "end": 3449, - "loc": { - "start": { - "line": 113, - "column": 41 - }, - "end": { - "line": 113, - "column": 42 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3449, - "end": 3450, - "loc": { - "start": { - "line": 113, - "column": 42 - }, - "end": { - "line": 113, - "column": 43 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3451, - "end": 3452, - "loc": { - "start": { - "line": 113, - "column": 44 - }, - "end": { - "line": 113, - "column": 45 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 3459, - "end": 3467, - "loc": { - "start": { - "line": 114, - "column": 6 - }, - "end": { - "line": 114, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3467, - "end": 3468, - "loc": { - "start": { - "line": 114, - "column": 14 - }, - "end": { - "line": 114, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "File type isn't supported.", - "start": 3468, - "end": 3497, - "loc": { - "start": { - "line": 114, - "column": 15 - }, - "end": { - "line": 114, - "column": 44 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3497, - "end": 3498, - "loc": { - "start": { - "line": 114, - "column": 44 - }, - "end": { - "line": 114, - "column": 45 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3498, - "end": 3499, - "loc": { - "start": { - "line": 114, - "column": 45 - }, - "end": { - "line": 114, - "column": 46 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 3506, - "end": 3512, - "loc": { - "start": { - "line": 115, - "column": 6 - }, - "end": { - "line": 115, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3512, - "end": 3513, - "loc": { - "start": { - "line": 115, - "column": 12 - }, - "end": { - "line": 115, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3518, - "end": 3519, - "loc": { - "start": { - "line": 116, - "column": 4 - }, - "end": { - "line": 116, - "column": 5 - } - } - }, - { - "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "let", - "start": 3525, - "end": 3528, - "loc": { - "start": { - "line": 118, - "column": 4 - }, - "end": { - "line": 118, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fileContent", - "start": 3529, - "end": 3540, - "loc": { - "start": { - "line": 118, - "column": 8 - }, - "end": { - "line": 118, - "column": 19 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3540, - "end": 3541, - "loc": { - "start": { - "line": 118, - "column": 19 - }, - "end": { - "line": 118, - "column": 20 - } - } - }, - { - "type": { - "label": "try", - "keyword": "try", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "try", - "start": 3547, - "end": 3550, - "loc": { - "start": { - "line": 120, - "column": 4 - }, - "end": { - "line": 120, - "column": 7 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3551, - "end": 3552, - "loc": { - "start": { - "line": 120, - "column": 8 - }, - "end": { - "line": 120, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fileContent", - "start": 3559, - "end": 3570, - "loc": { - "start": { - "line": 121, - "column": 6 - }, - "end": { - "line": 121, - "column": 17 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 3571, - "end": 3572, - "loc": { - "start": { - "line": 121, - "column": 18 - }, - "end": { - "line": 121, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "readFileSync", - "start": 3573, - "end": 3585, - "loc": { - "start": { - "line": 121, - "column": 20 - }, - "end": { - "line": 121, - "column": 32 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3585, - "end": 3586, - "loc": { - "start": { - "line": 121, - "column": 32 - }, - "end": { - "line": 121, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "filepath", - "start": 3586, - "end": 3594, - "loc": { - "start": { - "line": 121, - "column": 33 - }, - "end": { - "line": 121, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3594, - "end": 3595, - "loc": { - "start": { - "line": 121, - "column": 41 - }, - "end": { - "line": 121, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3595, - "end": 3596, - "loc": { - "start": { - "line": 121, - "column": 42 - }, - "end": { - "line": 121, - "column": 43 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3601, - "end": 3602, - "loc": { - "start": { - "line": 122, - "column": 4 - }, - "end": { - "line": 122, - "column": 5 - } - } - }, - { - "type": { - "label": "catch", - "keyword": "catch", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "catch", - "start": 3603, - "end": 3608, - "loc": { - "start": { - "line": 122, - "column": 6 - }, - "end": { - "line": 122, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3609, - "end": 3610, - "loc": { - "start": { - "line": 122, - "column": 12 - }, - "end": { - "line": 122, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 3610, - "end": 3613, - "loc": { - "start": { - "line": 122, - "column": 13 - }, - "end": { - "line": 122, - "column": 16 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3613, - "end": 3614, - "loc": { - "start": { - "line": 122, - "column": 16 - }, - "end": { - "line": 122, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3615, - "end": 3616, - "loc": { - "start": { - "line": 122, - "column": 18 - }, - "end": { - "line": 122, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 3623, - "end": 3631, - "loc": { - "start": { - "line": 123, - "column": 6 - }, - "end": { - "line": 123, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3631, - "end": 3632, - "loc": { - "start": { - "line": 123, - "column": 14 - }, - "end": { - "line": 123, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 3632, - "end": 3635, - "loc": { - "start": { - "line": 123, - "column": 15 - }, - "end": { - "line": 123, - "column": 18 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3635, - "end": 3636, - "loc": { - "start": { - "line": 123, - "column": 18 - }, - "end": { - "line": 123, - "column": 19 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3636, - "end": 3637, - "loc": { - "start": { - "line": 123, - "column": 19 - }, - "end": { - "line": 123, - "column": 20 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 3644, - "end": 3650, - "loc": { - "start": { - "line": 124, - "column": 6 - }, - "end": { - "line": 124, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3650, - "end": 3651, - "loc": { - "start": { - "line": 124, - "column": 12 - }, - "end": { - "line": 124, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3656, - "end": 3657, - "loc": { - "start": { - "line": 125, - "column": 4 - }, - "end": { - "line": 125, - "column": 5 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 3663, - "end": 3668, - "loc": { - "start": { - "line": 127, - "column": 4 - }, - "end": { - "line": 127, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "mimeType", - "start": 3669, - "end": 3677, - "loc": { - "start": { - "line": 127, - "column": 10 - }, - "end": { - "line": 127, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 3678, - "end": 3679, - "loc": { - "start": { - "line": 127, - "column": 19 - }, - "end": { - "line": 127, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getMimeTypeByFileExtension", - "start": 3680, - "end": 3706, - "loc": { - "start": { - "line": 127, - "column": 21 - }, - "end": { - "line": 127, - "column": 47 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3706, - "end": 3707, - "loc": { - "start": { - "line": 127, - "column": 47 - }, - "end": { - "line": 127, - "column": 48 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fileExt", - "start": 3707, - "end": 3714, - "loc": { - "start": { - "line": 127, - "column": 48 - }, - "end": { - "line": 127, - "column": 55 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3714, - "end": 3715, - "loc": { - "start": { - "line": 127, - "column": 55 - }, - "end": { - "line": 127, - "column": 56 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3715, - "end": 3716, - "loc": { - "start": { - "line": 127, - "column": 56 - }, - "end": { - "line": 127, - "column": 57 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 3721, - "end": 3726, - "loc": { - "start": { - "line": 128, - "column": 4 - }, - "end": { - "line": 128, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "formDataBoundary", - "start": 3727, - "end": 3743, - "loc": { - "start": { - "line": 128, - "column": 10 - }, - "end": { - "line": 128, - "column": 26 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 3744, - "end": 3745, - "loc": { - "start": { - "line": 128, - "column": 27 - }, - "end": { - "line": 128, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getFormDataBoundary", - "start": 3746, - "end": 3765, - "loc": { - "start": { - "line": 128, - "column": 29 - }, - "end": { - "line": 128, - "column": 48 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3765, - "end": 3766, - "loc": { - "start": { - "line": 128, - "column": 48 - }, - "end": { - "line": 128, - "column": 49 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3766, - "end": 3767, - "loc": { - "start": { - "line": 128, - "column": 49 - }, - "end": { - "line": 128, - "column": 50 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3767, - "end": 3768, - "loc": { - "start": { - "line": 128, - "column": 50 - }, - "end": { - "line": 128, - "column": 51 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 3773, - "end": 3778, - "loc": { - "start": { - "line": 129, - "column": 4 - }, - "end": { - "line": 129, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "formDataBeginning", - "start": 3779, - "end": 3796, - "loc": { - "start": { - "line": 129, - "column": 10 - }, - "end": { - "line": 129, - "column": 27 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 3797, - "end": 3798, - "loc": { - "start": { - "line": 129, - "column": 28 - }, - "end": { - "line": 129, - "column": 29 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3799, - "end": 3800, - "loc": { - "start": { - "line": 129, - "column": 30 - }, - "end": { - "line": 129, - "column": 31 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "--", - "start": 3800, - "end": 3802, - "loc": { - "start": { - "line": 129, - "column": 31 - }, - "end": { - "line": 129, - "column": 33 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3802, - "end": 3804, - "loc": { - "start": { - "line": 129, - "column": 33 - }, - "end": { - "line": 129, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "formDataBoundary", - "start": 3804, - "end": 3820, - "loc": { - "start": { - "line": 129, - "column": 35 - }, - "end": { - "line": 129, - "column": 51 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3820, - "end": 3821, - "loc": { - "start": { - "line": 129, - "column": 51 - }, - "end": { - "line": 129, - "column": 52 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\r\n", - "start": 3821, - "end": 3825, - "loc": { - "start": { - "line": 129, - "column": 52 - }, - "end": { - "line": 129, - "column": 56 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3825, - "end": 3826, - "loc": { - "start": { - "line": 129, - "column": 56 - }, - "end": { - "line": 129, - "column": 57 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3833, - "end": 3834, - "loc": { - "start": { - "line": 130, - "column": 6 - }, - "end": { - "line": 130, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "concat", - "start": 3834, - "end": 3840, - "loc": { - "start": { - "line": 130, - "column": 7 - }, - "end": { - "line": 130, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3840, - "end": 3841, - "loc": { - "start": { - "line": 130, - "column": 13 - }, - "end": { - "line": 130, - "column": 14 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3841, - "end": 3842, - "loc": { - "start": { - "line": 130, - "column": 14 - }, - "end": { - "line": 130, - "column": 15 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Disposition: form-data; name=\"file\"; filename=\"", - "start": 3842, - "end": 3897, - "loc": { - "start": { - "line": 130, - "column": 15 - }, - "end": { - "line": 130, - "column": 70 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3897, - "end": 3899, - "loc": { - "start": { - "line": 130, - "column": 70 - }, - "end": { - "line": 130, - "column": 72 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "basename", - "start": 3899, - "end": 3907, - "loc": { - "start": { - "line": 130, - "column": 72 - }, - "end": { - "line": 130, - "column": 80 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3907, - "end": 3908, - "loc": { - "start": { - "line": 130, - "column": 80 - }, - "end": { - "line": 130, - "column": 81 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "filepath", - "start": 3908, - "end": 3916, - "loc": { - "start": { - "line": 130, - "column": 81 - }, - "end": { - "line": 130, - "column": 89 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3916, - "end": 3917, - "loc": { - "start": { - "line": 130, - "column": 89 - }, - "end": { - "line": 130, - "column": 90 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3917, - "end": 3918, - "loc": { - "start": { - "line": 130, - "column": 90 - }, - "end": { - "line": 130, - "column": 91 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\"\r\n", - "start": 3918, - "end": 3923, - "loc": { - "start": { - "line": 130, - "column": 91 - }, - "end": { - "line": 130, - "column": 96 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3923, - "end": 3924, - "loc": { - "start": { - "line": 130, - "column": 96 - }, - "end": { - "line": 130, - "column": 97 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3924, - "end": 3925, - "loc": { - "start": { - "line": 130, - "column": 97 - }, - "end": { - "line": 130, - "column": 98 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3932, - "end": 3933, - "loc": { - "start": { - "line": 131, - "column": 6 - }, - "end": { - "line": 131, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "concat", - "start": 3933, - "end": 3939, - "loc": { - "start": { - "line": 131, - "column": 7 - }, - "end": { - "line": 131, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3939, - "end": 3940, - "loc": { - "start": { - "line": 131, - "column": 13 - }, - "end": { - "line": 131, - "column": 14 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3940, - "end": 3941, - "loc": { - "start": { - "line": 131, - "column": 14 - }, - "end": { - "line": 131, - "column": 15 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type: ", - "start": 3941, - "end": 3955, - "loc": { - "start": { - "line": 131, - "column": 15 - }, - "end": { - "line": 131, - "column": 29 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3955, - "end": 3957, - "loc": { - "start": { - "line": 131, - "column": 29 - }, - "end": { - "line": 131, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "mimeType", - "start": 3957, - "end": 3965, - "loc": { - "start": { - "line": 131, - "column": 31 - }, - "end": { - "line": 131, - "column": 39 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3965, - "end": 3966, - "loc": { - "start": { - "line": 131, - "column": 39 - }, - "end": { - "line": 131, - "column": 40 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\r\n\r\n", - "start": 3966, - "end": 3974, - "loc": { - "start": { - "line": 131, - "column": 40 - }, - "end": { - "line": 131, - "column": 48 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3974, - "end": 3975, - "loc": { - "start": { - "line": 131, - "column": 48 - }, - "end": { - "line": 131, - "column": 49 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3975, - "end": 3976, - "loc": { - "start": { - "line": 131, - "column": 49 - }, - "end": { - "line": 131, - "column": 50 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3976, - "end": 3977, - "loc": { - "start": { - "line": 131, - "column": 50 - }, - "end": { - "line": 131, - "column": 51 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 3982, - "end": 3987, - "loc": { - "start": { - "line": 132, - "column": 4 - }, - "end": { - "line": 132, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "formDataEnding", - "start": 3988, - "end": 4002, - "loc": { - "start": { - "line": 132, - "column": 10 - }, - "end": { - "line": 132, - "column": 24 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 4003, - "end": 4004, - "loc": { - "start": { - "line": 132, - "column": 25 - }, - "end": { - "line": 132, - "column": 26 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4005, - "end": 4006, - "loc": { - "start": { - "line": 132, - "column": 27 - }, - "end": { - "line": 132, - "column": 28 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\r\n--", - "start": 4006, - "end": 4012, - "loc": { - "start": { - "line": 132, - "column": 28 - }, - "end": { - "line": 132, - "column": 34 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4012, - "end": 4014, - "loc": { - "start": { - "line": 132, - "column": 34 - }, - "end": { - "line": 132, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "formDataBoundary", - "start": 4014, - "end": 4030, - "loc": { - "start": { - "line": 132, - "column": 36 - }, - "end": { - "line": 132, - "column": 52 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4030, - "end": 4031, - "loc": { - "start": { - "line": 132, - "column": 52 - }, - "end": { - "line": 132, - "column": 53 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\r\n", - "start": 4031, - "end": 4035, - "loc": { - "start": { - "line": 132, - "column": 53 - }, - "end": { - "line": 132, - "column": 57 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4035, - "end": 4036, - "loc": { - "start": { - "line": 132, - "column": 57 - }, - "end": { - "line": 132, - "column": 58 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4036, - "end": 4037, - "loc": { - "start": { - "line": 132, - "column": 58 - }, - "end": { - "line": 132, - "column": 59 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 4043, - "end": 4048, - "loc": { - "start": { - "line": 134, - "column": 4 - }, - "end": { - "line": 134, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "payload", - "start": 4049, - "end": 4056, - "loc": { - "start": { - "line": 134, - "column": 10 - }, - "end": { - "line": 134, - "column": 17 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 4057, - "end": 4058, - "loc": { - "start": { - "line": 134, - "column": 18 - }, - "end": { - "line": 134, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 4059, - "end": 4065, - "loc": { - "start": { - "line": 134, - "column": 20 - }, - "end": { - "line": 134, - "column": 26 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4065, - "end": 4066, - "loc": { - "start": { - "line": 134, - "column": 26 - }, - "end": { - "line": 134, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "concat", - "start": 4066, - "end": 4072, - "loc": { - "start": { - "line": 134, - "column": 27 - }, - "end": { - "line": 134, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4072, - "end": 4073, - "loc": { - "start": { - "line": 134, - "column": 33 - }, - "end": { - "line": 134, - "column": 34 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4073, - "end": 4074, - "loc": { - "start": { - "line": 134, - "column": 34 - }, - "end": { - "line": 134, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 4081, - "end": 4087, - "loc": { - "start": { - "line": 135, - "column": 6 - }, - "end": { - "line": 135, - "column": 12 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4087, - "end": 4088, - "loc": { - "start": { - "line": 135, - "column": 12 - }, - "end": { - "line": 135, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 4088, - "end": 4092, - "loc": { - "start": { - "line": 135, - "column": 13 - }, - "end": { - "line": 135, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4092, - "end": 4093, - "loc": { - "start": { - "line": 135, - "column": 17 - }, - "end": { - "line": 135, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "formDataBeginning", - "start": 4093, - "end": 4110, - "loc": { - "start": { - "line": 135, - "column": 18 - }, - "end": { - "line": 135, - "column": 35 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4110, - "end": 4111, - "loc": { - "start": { - "line": 135, - "column": 35 - }, - "end": { - "line": 135, - "column": 36 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "utf8", - "start": 4112, - "end": 4118, - "loc": { - "start": { - "line": 135, - "column": 37 - }, - "end": { - "line": 135, - "column": 43 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4118, - "end": 4119, - "loc": { - "start": { - "line": 135, - "column": 43 - }, - "end": { - "line": 135, - "column": 44 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4119, - "end": 4120, - "loc": { - "start": { - "line": 135, - "column": 44 - }, - "end": { - "line": 135, - "column": 45 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 4127, - "end": 4133, - "loc": { - "start": { - "line": 136, - "column": 6 - }, - "end": { - "line": 136, - "column": 12 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4133, - "end": 4134, - "loc": { - "start": { - "line": 136, - "column": 12 - }, - "end": { - "line": 136, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 4134, - "end": 4138, - "loc": { - "start": { - "line": 136, - "column": 13 - }, - "end": { - "line": 136, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4138, - "end": 4139, - "loc": { - "start": { - "line": 136, - "column": 17 - }, - "end": { - "line": 136, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fileContent", - "start": 4139, - "end": 4150, - "loc": { - "start": { - "line": 136, - "column": 18 - }, - "end": { - "line": 136, - "column": 29 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4150, - "end": 4151, - "loc": { - "start": { - "line": 136, - "column": 29 - }, - "end": { - "line": 136, - "column": 30 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "binary", - "start": 4152, - "end": 4160, - "loc": { - "start": { - "line": 136, - "column": 31 - }, - "end": { - "line": 136, - "column": 39 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4160, - "end": 4161, - "loc": { - "start": { - "line": 136, - "column": 39 - }, - "end": { - "line": 136, - "column": 40 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4161, - "end": 4162, - "loc": { - "start": { - "line": 136, - "column": 40 - }, - "end": { - "line": 136, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 4169, - "end": 4175, - "loc": { - "start": { - "line": 137, - "column": 6 - }, - "end": { - "line": 137, - "column": 12 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4175, - "end": 4176, - "loc": { - "start": { - "line": 137, - "column": 12 - }, - "end": { - "line": 137, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 4176, - "end": 4180, - "loc": { - "start": { - "line": 137, - "column": 13 - }, - "end": { - "line": 137, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4180, - "end": 4181, - "loc": { - "start": { - "line": 137, - "column": 17 - }, - "end": { - "line": 137, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "formDataEnding", - "start": 4181, - "end": 4195, - "loc": { - "start": { - "line": 137, - "column": 18 - }, - "end": { - "line": 137, - "column": 32 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4195, - "end": 4196, - "loc": { - "start": { - "line": 137, - "column": 32 - }, - "end": { - "line": 137, - "column": 33 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "utf8", - "start": 4197, - "end": 4203, - "loc": { - "start": { - "line": 137, - "column": 34 - }, - "end": { - "line": 137, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4203, - "end": 4204, - "loc": { - "start": { - "line": 137, - "column": 40 - }, - "end": { - "line": 137, - "column": 41 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4204, - "end": 4205, - "loc": { - "start": { - "line": 137, - "column": 41 - }, - "end": { - "line": 137, - "column": 42 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4210, - "end": 4211, - "loc": { - "start": { - "line": 138, - "column": 4 - }, - "end": { - "line": 138, - "column": 5 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4211, - "end": 4212, - "loc": { - "start": { - "line": 138, - "column": 5 - }, - "end": { - "line": 138, - "column": 6 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4212, - "end": 4213, - "loc": { - "start": { - "line": 138, - "column": 6 - }, - "end": { - "line": 138, - "column": 7 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 4219, - "end": 4224, - "loc": { - "start": { - "line": 140, - "column": 4 - }, - "end": { - "line": 140, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 4225, - "end": 4228, - "loc": { - "start": { - "line": 140, - "column": 10 - }, - "end": { - "line": 140, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 4229, - "end": 4230, - "loc": { - "start": { - "line": 140, - "column": 14 - }, - "end": { - "line": 140, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 4231, - "end": 4236, - "loc": { - "start": { - "line": 140, - "column": 16 - }, - "end": { - "line": 140, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4243, - "end": 4244, - "loc": { - "start": { - "line": 141, - "column": 6 - }, - "end": { - "line": 141, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 4244, - "end": 4251, - "loc": { - "start": { - "line": 141, - "column": 7 - }, - "end": { - "line": 141, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4251, - "end": 4252, - "loc": { - "start": { - "line": 141, - "column": 14 - }, - "end": { - "line": 141, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 4252, - "end": 4271, - "loc": { - "start": { - "line": 141, - "column": 15 - }, - "end": { - "line": 141, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4271, - "end": 4272, - "loc": { - "start": { - "line": 141, - "column": 34 - }, - "end": { - "line": 141, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4272, - "end": 4273, - "loc": { - "start": { - "line": 141, - "column": 35 - }, - "end": { - "line": 141, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 4282, - "end": 4288, - "loc": { - "start": { - "line": 142, - "column": 8 - }, - "end": { - "line": 142, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4288, - "end": 4289, - "loc": { - "start": { - "line": 142, - "column": 14 - }, - "end": { - "line": 142, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "POST", - "start": 4290, - "end": 4296, - "loc": { - "start": { - "line": 142, - "column": 16 - }, - "end": { - "line": 142, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4296, - "end": 4297, - "loc": { - "start": { - "line": 142, - "column": 22 - }, - "end": { - "line": 142, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 4306, - "end": 4310, - "loc": { - "start": { - "line": 143, - "column": 8 - }, - "end": { - "line": 143, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4310, - "end": 4311, - "loc": { - "start": { - "line": 143, - "column": 12 - }, - "end": { - "line": 143, - "column": 13 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/document/fieldextract", - "start": 4312, - "end": 4336, - "loc": { - "start": { - "line": 143, - "column": 14 - }, - "end": { - "line": 143, - "column": 38 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4336, - "end": 4337, - "loc": { - "start": { - "line": 143, - "column": 38 - }, - "end": { - "line": 143, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 4346, - "end": 4359, - "loc": { - "start": { - "line": 144, - "column": 8 - }, - "end": { - "line": 144, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4359, - "end": 4360, - "loc": { - "start": { - "line": 144, - "column": 21 - }, - "end": { - "line": 144, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4361, - "end": 4362, - "loc": { - "start": { - "line": 144, - "column": 23 - }, - "end": { - "line": 144, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 4373, - "end": 4377, - "loc": { - "start": { - "line": 145, - "column": 10 - }, - "end": { - "line": 145, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4377, - "end": 4378, - "loc": { - "start": { - "line": 145, - "column": 14 - }, - "end": { - "line": 145, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 4379, - "end": 4387, - "loc": { - "start": { - "line": 145, - "column": 16 - }, - "end": { - "line": 145, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4387, - "end": 4388, - "loc": { - "start": { - "line": 145, - "column": 24 - }, - "end": { - "line": 145, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 4399, - "end": 4404, - "loc": { - "start": { - "line": 146, - "column": 10 - }, - "end": { - "line": 146, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4404, - "end": 4405, - "loc": { - "start": { - "line": 146, - "column": 15 - }, - "end": { - "line": 146, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4414, - "end": 4415, - "loc": { - "start": { - "line": 147, - "column": 8 - }, - "end": { - "line": 147, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4415, - "end": 4416, - "loc": { - "start": { - "line": 147, - "column": 9 - }, - "end": { - "line": 147, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 4425, - "end": 4432, - "loc": { - "start": { - "line": 148, - "column": 8 - }, - "end": { - "line": 148, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4432, - "end": 4433, - "loc": { - "start": { - "line": 148, - "column": 15 - }, - "end": { - "line": 148, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4434, - "end": 4435, - "loc": { - "start": { - "line": 148, - "column": 17 - }, - "end": { - "line": 148, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type", - "start": 4446, - "end": 4460, - "loc": { - "start": { - "line": 149, - "column": 10 - }, - "end": { - "line": 149, - "column": 24 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4460, - "end": 4461, - "loc": { - "start": { - "line": 149, - "column": 24 - }, - "end": { - "line": 149, - "column": 25 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4462, - "end": 4463, - "loc": { - "start": { - "line": 149, - "column": 26 - }, - "end": { - "line": 149, - "column": 27 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "multipart/form-data; boundary=", - "start": 4463, - "end": 4493, - "loc": { - "start": { - "line": 149, - "column": 27 - }, - "end": { - "line": 149, - "column": 57 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4493, - "end": 4495, - "loc": { - "start": { - "line": 149, - "column": 57 - }, - "end": { - "line": 149, - "column": 59 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "formDataBoundary", - "start": 4495, - "end": 4511, - "loc": { - "start": { - "line": 149, - "column": 59 - }, - "end": { - "line": 149, - "column": 75 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4511, - "end": 4512, - "loc": { - "start": { - "line": 149, - "column": 75 - }, - "end": { - "line": 149, - "column": 76 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 4512, - "end": 4512, - "loc": { - "start": { - "line": 149, - "column": 76 - }, - "end": { - "line": 149, - "column": 76 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4512, - "end": 4513, - "loc": { - "start": { - "line": 149, - "column": 76 - }, - "end": { - "line": 149, - "column": 77 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4513, - "end": 4514, - "loc": { - "start": { - "line": 149, - "column": 77 - }, - "end": { - "line": 149, - "column": 78 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Length", - "start": 4525, - "end": 4541, - "loc": { - "start": { - "line": 150, - "column": 10 - }, - "end": { - "line": 150, - "column": 26 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4541, - "end": 4542, - "loc": { - "start": { - "line": 150, - "column": 26 - }, - "end": { - "line": 150, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 4543, - "end": 4549, - "loc": { - "start": { - "line": 150, - "column": 28 - }, - "end": { - "line": 150, - "column": 34 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4549, - "end": 4550, - "loc": { - "start": { - "line": 150, - "column": 34 - }, - "end": { - "line": 150, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "byteLength", - "start": 4550, - "end": 4560, - "loc": { - "start": { - "line": 150, - "column": 35 - }, - "end": { - "line": 150, - "column": 45 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4560, - "end": 4561, - "loc": { - "start": { - "line": 150, - "column": 45 - }, - "end": { - "line": 150, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "payload", - "start": 4561, - "end": 4568, - "loc": { - "start": { - "line": 150, - "column": 46 - }, - "end": { - "line": 150, - "column": 53 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4568, - "end": 4569, - "loc": { - "start": { - "line": 150, - "column": 53 - }, - "end": { - "line": 150, - "column": 54 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4569, - "end": 4570, - "loc": { - "start": { - "line": 150, - "column": 54 - }, - "end": { - "line": 150, - "column": 55 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4579, - "end": 4580, - "loc": { - "start": { - "line": 151, - "column": 8 - }, - "end": { - "line": 151, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4580, - "end": 4581, - "loc": { - "start": { - "line": 151, - "column": 9 - }, - "end": { - "line": 151, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4588, - "end": 4589, - "loc": { - "start": { - "line": 152, - "column": 6 - }, - "end": { - "line": 152, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4589, - "end": 4590, - "loc": { - "start": { - "line": 152, - "column": 7 - }, - "end": { - "line": 152, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4590, - "end": 4591, - "loc": { - "start": { - "line": 152, - "column": 8 - }, - "end": { - "line": 152, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 4592, - "end": 4607, - "loc": { - "start": { - "line": 152, - "column": 10 - }, - "end": { - "line": 152, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4607, - "end": 4608, - "loc": { - "start": { - "line": 152, - "column": 25 - }, - "end": { - "line": 152, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 4608, - "end": 4616, - "loc": { - "start": { - "line": 152, - "column": 26 - }, - "end": { - "line": 152, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4616, - "end": 4617, - "loc": { - "start": { - "line": 152, - "column": 34 - }, - "end": { - "line": 152, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4617, - "end": 4618, - "loc": { - "start": { - "line": 152, - "column": 35 - }, - "end": { - "line": 152, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4625, - "end": 4626, - "loc": { - "start": { - "line": 153, - "column": 6 - }, - "end": { - "line": 153, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 4626, - "end": 4628, - "loc": { - "start": { - "line": 153, - "column": 7 - }, - "end": { - "line": 153, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4628, - "end": 4629, - "loc": { - "start": { - "line": 153, - "column": 9 - }, - "end": { - "line": 153, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 4629, - "end": 4636, - "loc": { - "start": { - "line": 153, - "column": 10 - }, - "end": { - "line": 153, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4636, - "end": 4637, - "loc": { - "start": { - "line": 153, - "column": 17 - }, - "end": { - "line": 153, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 4638, - "end": 4650, - "loc": { - "start": { - "line": 153, - "column": 19 - }, - "end": { - "line": 153, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4650, - "end": 4651, - "loc": { - "start": { - "line": 153, - "column": 31 - }, - "end": { - "line": 153, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 4651, - "end": 4659, - "loc": { - "start": { - "line": 153, - "column": 32 - }, - "end": { - "line": 153, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4659, - "end": 4660, - "loc": { - "start": { - "line": 153, - "column": 40 - }, - "end": { - "line": 153, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4660, - "end": 4661, - "loc": { - "start": { - "line": 153, - "column": 41 - }, - "end": { - "line": 153, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4661, - "end": 4662, - "loc": { - "start": { - "line": 153, - "column": 42 - }, - "end": { - "line": 153, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 4668, - "end": 4671, - "loc": { - "start": { - "line": 155, - "column": 4 - }, - "end": { - "line": 155, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4671, - "end": 4672, - "loc": { - "start": { - "line": 155, - "column": 7 - }, - "end": { - "line": 155, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "write", - "start": 4672, - "end": 4677, - "loc": { - "start": { - "line": 155, - "column": 8 - }, - "end": { - "line": 155, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4677, - "end": 4678, - "loc": { - "start": { - "line": 155, - "column": 13 - }, - "end": { - "line": 155, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "payload", - "start": 4678, - "end": 4685, - "loc": { - "start": { - "line": 155, - "column": 14 - }, - "end": { - "line": 155, - "column": 21 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4685, - "end": 4686, - "loc": { - "start": { - "line": 155, - "column": 21 - }, - "end": { - "line": 155, - "column": 22 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4686, - "end": 4687, - "loc": { - "start": { - "line": 155, - "column": 22 - }, - "end": { - "line": 155, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 4692, - "end": 4695, - "loc": { - "start": { - "line": 156, - "column": 4 - }, - "end": { - "line": 156, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4695, - "end": 4696, - "loc": { - "start": { - "line": 156, - "column": 7 - }, - "end": { - "line": 156, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 4696, - "end": 4699, - "loc": { - "start": { - "line": 156, - "column": 8 - }, - "end": { - "line": 156, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4699, - "end": 4700, - "loc": { - "start": { - "line": 156, - "column": 11 - }, - "end": { - "line": 156, - "column": 12 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4700, - "end": 4701, - "loc": { - "start": { - "line": 156, - "column": 12 - }, - "end": { - "line": 156, - "column": 13 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4701, - "end": 4702, - "loc": { - "start": { - "line": 156, - "column": 13 - }, - "end": { - "line": 156, - "column": 14 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4705, - "end": 4706, - "loc": { - "start": { - "line": 157, - "column": 2 - }, - "end": { - "line": 157, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Payload to receive user's document list\n * @typedef {Object} DocumentListParams\n * @property {string} token - your auth token\n ", - "start": 4710, - "end": 4854, - "loc": { - "start": { - "line": 159, - "column": 2 - }, - "end": { - "line": 163, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document list response item\n * @typedef {Object} DocumentListItem\n * @property {string} id - id of specific document\n * @property {string} user_id - id of user that uploaded document\n * @property {string} document_name - name of document\n * @property {string} page_count - amount of pages in the document\n * @property {string} created - timestamp document was created\n * @property {string} updated - timestamp document was updated\n * @property {string} original_filename - original filename with document format (.pdf, .doc, etc...)\n * @property {?string} origin_document_id - an id of original document (if document is a copy)\n * @property {string} owner - email of document owner\n * @property {boolean} template - is document a template or not\n * @property {?string} origin_user_id - id of user who created document\n * @property {DocumentThumbnails} thumbnail - thumbnail urls with different sizes (small, medium, large)\n * @property {Object[]} signatures - signature signed elements\n * @property {Object[]} texts - text and enumeration filled elements\n * @property {Object[]} checks - checkbox checked elements\n * @property {Object[]} tags - field types document contains\n * @property {Object[]} fields - all document fillable fields\n * @property {Object[]} requests - requests for signing document\n * @property {Object[]} roles - document signer roles\n * @property {Object[]} field_invites - sent invites data\n * @property {number} version_time - document updated timestamp\n * @property {Object[]} enumeration_options - dropdown options\n * @property {Object[]} attachments - attachments in document\n * @property {Object[]} routing_details - signing steps routing details\n * @property {Object[]} integrations - document integrations\n * @property {Object[]} hyperlinks - document hyperlinks\n * @property {Object[]} radiobuttons - checked radiobuttons after document was signed\n * @property {Object[]} document_group_template_info - document group templates data\n * @property {Object[]} document_group_info - document group template's data\n * @property {Object[]} originator_organization_settings - specific organization settings for document\n * @property {Object[]} field_validators - validation rules for fields (date fields, payment fields etc.)\n * @property {Object} settings - specific document settings\n ", - "start": 4858, - "end": 7248, - "loc": { - "start": { - "line": 165, - "column": 2 - }, - "end": { - "line": 200, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * User's Document list response\n * @typedef {DocumentListItem[]} DocumentListResponse\n ", - "start": 7252, - "end": 7352, - "loc": { - "start": { - "line": 202, - "column": 2 - }, - "end": { - "line": 205, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieve user's document list\n * @param {DocumentListParams} data - payload to receive user's document list\n * @param {function(err: ApiErrorResponse, res: DocumentListItem)} [callback] - error first node.js callback\n ", - "start": 7356, - "end": 7591, - "loc": { - "start": { - "line": 207, - "column": 2 - }, - "end": { - "line": 211, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 7594, - "end": 7600, - "loc": { - "start": { - "line": 212, - "column": 2 - }, - "end": { - "line": 212, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "list", - "start": 7601, - "end": 7605, - "loc": { - "start": { - "line": 212, - "column": 9 - }, - "end": { - "line": 212, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7606, - "end": 7607, - "loc": { - "start": { - "line": 212, - "column": 14 - }, - "end": { - "line": 212, - "column": 15 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7607, - "end": 7608, - "loc": { - "start": { - "line": 212, - "column": 15 - }, - "end": { - "line": 212, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 7609, - "end": 7614, - "loc": { - "start": { - "line": 212, - "column": 17 - }, - "end": { - "line": 212, - "column": 22 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7615, - "end": 7616, - "loc": { - "start": { - "line": 212, - "column": 23 - }, - "end": { - "line": 212, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7616, - "end": 7617, - "loc": { - "start": { - "line": 212, - "column": 24 - }, - "end": { - "line": 212, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 7618, - "end": 7626, - "loc": { - "start": { - "line": 212, - "column": 26 - }, - "end": { - "line": 212, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7626, - "end": 7627, - "loc": { - "start": { - "line": 212, - "column": 34 - }, - "end": { - "line": 212, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7628, - "end": 7629, - "loc": { - "start": { - "line": 212, - "column": 36 - }, - "end": { - "line": 212, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 7634, - "end": 7639, - "loc": { - "start": { - "line": 213, - "column": 4 - }, - "end": { - "line": 213, - "column": 9 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7646, - "end": 7647, - "loc": { - "start": { - "line": 214, - "column": 6 - }, - "end": { - "line": 214, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 7647, - "end": 7654, - "loc": { - "start": { - "line": 214, - "column": 7 - }, - "end": { - "line": 214, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7654, - "end": 7655, - "loc": { - "start": { - "line": 214, - "column": 14 - }, - "end": { - "line": 214, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 7655, - "end": 7674, - "loc": { - "start": { - "line": 214, - "column": 15 - }, - "end": { - "line": 214, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7674, - "end": 7675, - "loc": { - "start": { - "line": 214, - "column": 34 - }, - "end": { - "line": 214, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7675, - "end": 7676, - "loc": { - "start": { - "line": 214, - "column": 35 - }, - "end": { - "line": 214, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 7685, - "end": 7691, - "loc": { - "start": { - "line": 215, - "column": 8 - }, - "end": { - "line": 215, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7691, - "end": 7692, - "loc": { - "start": { - "line": 215, - "column": 14 - }, - "end": { - "line": 215, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "GET", - "start": 7693, - "end": 7698, - "loc": { - "start": { - "line": 215, - "column": 16 - }, - "end": { - "line": 215, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7698, - "end": 7699, - "loc": { - "start": { - "line": 215, - "column": 21 - }, - "end": { - "line": 215, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 7708, - "end": 7712, - "loc": { - "start": { - "line": 216, - "column": 8 - }, - "end": { - "line": 216, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7712, - "end": 7713, - "loc": { - "start": { - "line": 216, - "column": 12 - }, - "end": { - "line": 216, - "column": 13 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/user/documentsv2", - "start": 7714, - "end": 7733, - "loc": { - "start": { - "line": 216, - "column": 14 - }, - "end": { - "line": 216, - "column": 33 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7733, - "end": 7734, - "loc": { - "start": { - "line": 216, - "column": 33 - }, - "end": { - "line": 216, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 7743, - "end": 7756, - "loc": { - "start": { - "line": 217, - "column": 8 - }, - "end": { - "line": 217, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7756, - "end": 7757, - "loc": { - "start": { - "line": 217, - "column": 21 - }, - "end": { - "line": 217, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7758, - "end": 7759, - "loc": { - "start": { - "line": 217, - "column": 23 - }, - "end": { - "line": 217, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 7770, - "end": 7774, - "loc": { - "start": { - "line": 218, - "column": 10 - }, - "end": { - "line": 218, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7774, - "end": 7775, - "loc": { - "start": { - "line": 218, - "column": 14 - }, - "end": { - "line": 218, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 7776, - "end": 7784, - "loc": { - "start": { - "line": 218, - "column": 16 - }, - "end": { - "line": 218, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7784, - "end": 7785, - "loc": { - "start": { - "line": 218, - "column": 24 - }, - "end": { - "line": 218, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 7796, - "end": 7801, - "loc": { - "start": { - "line": 219, - "column": 10 - }, - "end": { - "line": 219, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7801, - "end": 7802, - "loc": { - "start": { - "line": 219, - "column": 15 - }, - "end": { - "line": 219, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7811, - "end": 7812, - "loc": { - "start": { - "line": 220, - "column": 8 - }, - "end": { - "line": 220, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7812, - "end": 7813, - "loc": { - "start": { - "line": 220, - "column": 9 - }, - "end": { - "line": 220, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7820, - "end": 7821, - "loc": { - "start": { - "line": 221, - "column": 6 - }, - "end": { - "line": 221, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7821, - "end": 7822, - "loc": { - "start": { - "line": 221, - "column": 7 - }, - "end": { - "line": 221, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7822, - "end": 7823, - "loc": { - "start": { - "line": 221, - "column": 8 - }, - "end": { - "line": 221, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 7824, - "end": 7839, - "loc": { - "start": { - "line": 221, - "column": 10 - }, - "end": { - "line": 221, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7839, - "end": 7840, - "loc": { - "start": { - "line": 221, - "column": 25 - }, - "end": { - "line": 221, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 7840, - "end": 7848, - "loc": { - "start": { - "line": 221, - "column": 26 - }, - "end": { - "line": 221, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7848, - "end": 7849, - "loc": { - "start": { - "line": 221, - "column": 34 - }, - "end": { - "line": 221, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7849, - "end": 7850, - "loc": { - "start": { - "line": 221, - "column": 35 - }, - "end": { - "line": 221, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7857, - "end": 7858, - "loc": { - "start": { - "line": 222, - "column": 6 - }, - "end": { - "line": 222, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 7858, - "end": 7860, - "loc": { - "start": { - "line": 222, - "column": 7 - }, - "end": { - "line": 222, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7860, - "end": 7861, - "loc": { - "start": { - "line": 222, - "column": 9 - }, - "end": { - "line": 222, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 7861, - "end": 7868, - "loc": { - "start": { - "line": 222, - "column": 10 - }, - "end": { - "line": 222, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7868, - "end": 7869, - "loc": { - "start": { - "line": 222, - "column": 17 - }, - "end": { - "line": 222, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 7870, - "end": 7882, - "loc": { - "start": { - "line": 222, - "column": 19 - }, - "end": { - "line": 222, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7882, - "end": 7883, - "loc": { - "start": { - "line": 222, - "column": 31 - }, - "end": { - "line": 222, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 7883, - "end": 7891, - "loc": { - "start": { - "line": 222, - "column": 32 - }, - "end": { - "line": 222, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7891, - "end": 7892, - "loc": { - "start": { - "line": 222, - "column": 40 - }, - "end": { - "line": 222, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7892, - "end": 7893, - "loc": { - "start": { - "line": 222, - "column": 41 - }, - "end": { - "line": 222, - "column": 42 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7900, - "end": 7901, - "loc": { - "start": { - "line": 223, - "column": 6 - }, - "end": { - "line": 223, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 7901, - "end": 7904, - "loc": { - "start": { - "line": 223, - "column": 7 - }, - "end": { - "line": 223, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7904, - "end": 7905, - "loc": { - "start": { - "line": 223, - "column": 10 - }, - "end": { - "line": 223, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7905, - "end": 7906, - "loc": { - "start": { - "line": 223, - "column": 11 - }, - "end": { - "line": 223, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7906, - "end": 7907, - "loc": { - "start": { - "line": 223, - "column": 12 - }, - "end": { - "line": 223, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7910, - "end": 7911, - "loc": { - "start": { - "line": 224, - "column": 2 - }, - "end": { - "line": 224, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document view payload\n * @typedef {Object} DocumentViewParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 7915, - "end": 8094, - "loc": { - "start": { - "line": 226, - "column": 2 - }, - "end": { - "line": 231, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document thumbnail urls with different sizes (small, medium, large)\n * @typedef {Object} DocumentThumbnails\n * @property {string} large\n * @property {string} medium\n * @property {string} small\n ", - "start": 8098, - "end": 8313, - "loc": { - "start": { - "line": 233, - "column": 2 - }, - "end": { - "line": 239, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document view response of specific document\n * @typedef {Object} DocumentViewResponse\n * @property {string} id - id of specific document\n * @property {string} user_id - id of user that uploaded document\n * @property {string} document_name - name of document\n * @property {string} page_count - amount of pages in the document\n * @property {string} created - timestamp document was created\n * @property {string} updated - timestamp document was updated\n * @property {string} original_filename - original filename with document format (.pdf, .doc, etc...)\n * @property {?string} origin_document_id - an id of original document (if document is a copy)\n * @property {string} owner - email of document owner\n * @property {boolean} template - is document a template or not\n * @property {DocumentThumbnails} thumbnail - thumbnail urls with different sizes (small, medium, large)\n * @property {Object[]} signatures - signature signed elements\n * @property {Object[]} texts - text and enumeration filled elements\n * @property {Object[]} checks - checkbox checked elements\n * @property {Object[]} tags - field types document contains\n * @property {Object[]} fields - all document fillable fields\n * @property {Object[]} requests - requests for signing document\n * @property {Object[]} roles - document signer roles\n * @property {Object[]} field_invites - sent invites data\n * @property {number} version_time - document updated timestamp\n * @property {Object[]} enumeration_options - dropdown options\n * @property {Object[]} attachments - attachments in document\n * @property {Object[]} routing_details - signing steps routing details\n * @property {Object[]} integrations - document integrations\n * @property {Object[]} hyperlinks - document hyperlinks\n * @property {Object[]} radiobuttons - checked radiobuttons after document was signed\n * @property {Object[]} document_group_template_info - document group template's data\n * @property {Object[]} document_group_info - document group's data\n * @property {Object[]} originator_organization_settings - specific organization settings for document\n * @property {Object[]} field_validators - validation rules for fields (date fields, payment fields etc.)\n * @property {Object} settings - specific document settings\n * @property {string} parent_id - id of document folder\n * @property {string} originator_logo - logo url\n * @property {Object[]} pages - list of document pages with page sources and page size.\n ", - "start": 8317, - "end": 10844, - "loc": { - "start": { - "line": 241, - "column": 2 - }, - "end": { - "line": 278, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves a document detailed data\n * @param {DocumentViewParams} data - view document details payload\n * @param {function(err: ApiErrorResponse, res: DocumentViewResponse)} [callback] - error first node.js callback\n ", - "start": 10848, - "end": 11082, - "loc": { - "start": { - "line": 280, - "column": 2 - }, - "end": { - "line": 284, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 11085, - "end": 11091, - "loc": { - "start": { - "line": 285, - "column": 2 - }, - "end": { - "line": 285, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "view", - "start": 11092, - "end": 11096, - "loc": { - "start": { - "line": 285, - "column": 9 - }, - "end": { - "line": 285, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11097, - "end": 11098, - "loc": { - "start": { - "line": 285, - "column": 14 - }, - "end": { - "line": 285, - "column": 15 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11098, - "end": 11099, - "loc": { - "start": { - "line": 285, - "column": 15 - }, - "end": { - "line": 285, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 11100, - "end": 11102, - "loc": { - "start": { - "line": 285, - "column": 17 - }, - "end": { - "line": 285, - "column": 19 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11102, - "end": 11103, - "loc": { - "start": { - "line": 285, - "column": 19 - }, - "end": { - "line": 285, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 11104, - "end": 11109, - "loc": { - "start": { - "line": 285, - "column": 21 - }, - "end": { - "line": 285, - "column": 26 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11110, - "end": 11111, - "loc": { - "start": { - "line": 285, - "column": 27 - }, - "end": { - "line": 285, - "column": 28 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11111, - "end": 11112, - "loc": { - "start": { - "line": 285, - "column": 28 - }, - "end": { - "line": 285, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 11113, - "end": 11121, - "loc": { - "start": { - "line": 285, - "column": 30 - }, - "end": { - "line": 285, - "column": 38 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11121, - "end": 11122, - "loc": { - "start": { - "line": 285, - "column": 38 - }, - "end": { - "line": 285, - "column": 39 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11123, - "end": 11124, - "loc": { - "start": { - "line": 285, - "column": 40 - }, - "end": { - "line": 285, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 11129, - "end": 11134, - "loc": { - "start": { - "line": 286, - "column": 4 - }, - "end": { - "line": 286, - "column": 9 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11141, - "end": 11142, - "loc": { - "start": { - "line": 287, - "column": 6 - }, - "end": { - "line": 287, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 11142, - "end": 11149, - "loc": { - "start": { - "line": 287, - "column": 7 - }, - "end": { - "line": 287, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11149, - "end": 11150, - "loc": { - "start": { - "line": 287, - "column": 14 - }, - "end": { - "line": 287, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 11150, - "end": 11169, - "loc": { - "start": { - "line": 287, - "column": 15 - }, - "end": { - "line": 287, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11169, - "end": 11170, - "loc": { - "start": { - "line": 287, - "column": 34 - }, - "end": { - "line": 287, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11170, - "end": 11171, - "loc": { - "start": { - "line": 287, - "column": 35 - }, - "end": { - "line": 287, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 11180, - "end": 11186, - "loc": { - "start": { - "line": 288, - "column": 8 - }, - "end": { - "line": 288, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11186, - "end": 11187, - "loc": { - "start": { - "line": 288, - "column": 14 - }, - "end": { - "line": 288, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "GET", - "start": 11188, - "end": 11193, - "loc": { - "start": { - "line": 288, - "column": 16 - }, - "end": { - "line": 288, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11193, - "end": 11194, - "loc": { - "start": { - "line": 288, - "column": 21 - }, - "end": { - "line": 288, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 11203, - "end": 11207, - "loc": { - "start": { - "line": 289, - "column": 8 - }, - "end": { - "line": 289, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11207, - "end": 11208, - "loc": { - "start": { - "line": 289, - "column": 12 - }, - "end": { - "line": 289, - "column": 13 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11209, - "end": 11210, - "loc": { - "start": { - "line": 289, - "column": 14 - }, - "end": { - "line": 289, - "column": 15 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/document/", - "start": 11210, - "end": 11220, - "loc": { - "start": { - "line": 289, - "column": 15 - }, - "end": { - "line": 289, - "column": 25 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11220, - "end": 11222, - "loc": { - "start": { - "line": 289, - "column": 25 - }, - "end": { - "line": 289, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 11222, - "end": 11224, - "loc": { - "start": { - "line": 289, - "column": 27 - }, - "end": { - "line": 289, - "column": 29 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11224, - "end": 11225, - "loc": { - "start": { - "line": 289, - "column": 29 - }, - "end": { - "line": 289, - "column": 30 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 11225, - "end": 11225, - "loc": { - "start": { - "line": 289, - "column": 30 - }, - "end": { - "line": 289, - "column": 30 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11225, - "end": 11226, - "loc": { - "start": { - "line": 289, - "column": 30 - }, - "end": { - "line": 289, - "column": 31 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11226, - "end": 11227, - "loc": { - "start": { - "line": 289, - "column": 31 - }, - "end": { - "line": 289, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 11236, - "end": 11249, - "loc": { - "start": { - "line": 290, - "column": 8 - }, - "end": { - "line": 290, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11249, - "end": 11250, - "loc": { - "start": { - "line": 290, - "column": 21 - }, - "end": { - "line": 290, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11251, - "end": 11252, - "loc": { - "start": { - "line": 290, - "column": 23 - }, - "end": { - "line": 290, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 11263, - "end": 11267, - "loc": { - "start": { - "line": 291, - "column": 10 - }, - "end": { - "line": 291, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11267, - "end": 11268, - "loc": { - "start": { - "line": 291, - "column": 14 - }, - "end": { - "line": 291, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 11269, - "end": 11277, - "loc": { - "start": { - "line": 291, - "column": 16 - }, - "end": { - "line": 291, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11277, - "end": 11278, - "loc": { - "start": { - "line": 291, - "column": 24 - }, - "end": { - "line": 291, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 11289, - "end": 11294, - "loc": { - "start": { - "line": 292, - "column": 10 - }, - "end": { - "line": 292, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11294, - "end": 11295, - "loc": { - "start": { - "line": 292, - "column": 15 - }, - "end": { - "line": 292, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11304, - "end": 11305, - "loc": { - "start": { - "line": 293, - "column": 8 - }, - "end": { - "line": 293, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11305, - "end": 11306, - "loc": { - "start": { - "line": 293, - "column": 9 - }, - "end": { - "line": 293, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11313, - "end": 11314, - "loc": { - "start": { - "line": 294, - "column": 6 - }, - "end": { - "line": 294, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11314, - "end": 11315, - "loc": { - "start": { - "line": 294, - "column": 7 - }, - "end": { - "line": 294, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11315, - "end": 11316, - "loc": { - "start": { - "line": 294, - "column": 8 - }, - "end": { - "line": 294, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 11317, - "end": 11332, - "loc": { - "start": { - "line": 294, - "column": 10 - }, - "end": { - "line": 294, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11332, - "end": 11333, - "loc": { - "start": { - "line": 294, - "column": 25 - }, - "end": { - "line": 294, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 11333, - "end": 11341, - "loc": { - "start": { - "line": 294, - "column": 26 - }, - "end": { - "line": 294, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11341, - "end": 11342, - "loc": { - "start": { - "line": 294, - "column": 34 - }, - "end": { - "line": 294, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11342, - "end": 11343, - "loc": { - "start": { - "line": 294, - "column": 35 - }, - "end": { - "line": 294, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11350, - "end": 11351, - "loc": { - "start": { - "line": 295, - "column": 6 - }, - "end": { - "line": 295, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 11351, - "end": 11353, - "loc": { - "start": { - "line": 295, - "column": 7 - }, - "end": { - "line": 295, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11353, - "end": 11354, - "loc": { - "start": { - "line": 295, - "column": 9 - }, - "end": { - "line": 295, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 11354, - "end": 11361, - "loc": { - "start": { - "line": 295, - "column": 10 - }, - "end": { - "line": 295, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11361, - "end": 11362, - "loc": { - "start": { - "line": 295, - "column": 17 - }, - "end": { - "line": 295, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 11363, - "end": 11375, - "loc": { - "start": { - "line": 295, - "column": 19 - }, - "end": { - "line": 295, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11375, - "end": 11376, - "loc": { - "start": { - "line": 295, - "column": 31 - }, - "end": { - "line": 295, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 11376, - "end": 11384, - "loc": { - "start": { - "line": 295, - "column": 32 - }, - "end": { - "line": 295, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11384, - "end": 11385, - "loc": { - "start": { - "line": 295, - "column": 40 - }, - "end": { - "line": 295, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11385, - "end": 11386, - "loc": { - "start": { - "line": 295, - "column": 41 - }, - "end": { - "line": 295, - "column": 42 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11393, - "end": 11394, - "loc": { - "start": { - "line": 296, - "column": 6 - }, - "end": { - "line": 296, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 11394, - "end": 11397, - "loc": { - "start": { - "line": 296, - "column": 7 - }, - "end": { - "line": 296, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11397, - "end": 11398, - "loc": { - "start": { - "line": 296, - "column": 10 - }, - "end": { - "line": 296, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11398, - "end": 11399, - "loc": { - "start": { - "line": 296, - "column": 11 - }, - "end": { - "line": 296, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11399, - "end": 11400, - "loc": { - "start": { - "line": 296, - "column": 12 - }, - "end": { - "line": 296, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11403, - "end": 11404, - "loc": { - "start": { - "line": 297, - "column": 2 - }, - "end": { - "line": 297, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} SignatureField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (signature)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} [label] - field label\n ", - "start": 11408, - "end": 11980, - "loc": { - "start": { - "line": 299, - "column": 2 - }, - "end": { - "line": 311, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} InitialsField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (initials)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} [label] - field label\n ", - "start": 11984, - "end": 12554, - "loc": { - "start": { - "line": 313, - "column": 2 - }, - "end": { - "line": 325, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} TextField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (text)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string|number} [prefilled_text] - prefilled field value\n * @property {string} [validator_id] - field value validator ID\n * @property {string} [label] - field label\n ", - "start": 12558, - "end": 13258, - "loc": { - "start": { - "line": 327, - "column": 2 - }, - "end": { - "line": 341, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} CheckField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (checkbox)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {boolean} [prefilled_text] - prefilled field value\n * @property {string} [label] - field label\n ", - "start": 13262, - "end": 13895, - "loc": { - "start": { - "line": 343, - "column": 2 - }, - "end": { - "line": 356, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} EnumerationField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (enumeration)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {Array} enumeration_options - choice options of enumerable field\n * @property {string|number} [prefilled_text] - prefilled field value\n * @property {string} [label] - field label\n * @property {boolean} [custom_defined_option=false] - if 'true' user can change values, if 'false' user can only read\n ", - "start": 13899, - "end": 14763, - "loc": { - "start": { - "line": 358, - "column": 2 - }, - "end": { - "line": 373, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} RadioButton\n * @property {number} page_number - page number of document\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} value - value of radio button\n * @property {string} checked - radio button check status\n * @property {number} created - redio button creation timestamp\n ", - "start": 14767, - "end": 15265, - "loc": { - "start": { - "line": 375, - "column": 2 - }, - "end": { - "line": 385, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} RadioButtonField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (radiobutton)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {RadioButton[]} radio - array of radio buttons\n * @property {string|number} [prefilled_text] - prefilled field value\n * @property {string} [label] - field label\n ", - "start": 15269, - "end": 15979, - "loc": { - "start": { - "line": 387, - "column": 2 - }, - "end": { - "line": 401, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} FormulaTreeBranchTerminator\n * @property {string} term - name of field which will participate in calculation formula\n ", - "start": 15983, - "end": 16134, - "loc": { - "start": { - "line": 403, - "column": 2 - }, - "end": { - "line": 406, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} FormulaTreeBranch\n * @property {FormulaTree} term - a part of formula parsed into tree\n ", - "start": 16138, - "end": 16259, - "loc": { - "start": { - "line": 408, - "column": 2 - }, - "end": { - "line": 411, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} FormulaTree\n * @property {string} operator - arithmetic operator's token\n * @property {FormulaTreeBranch|FormulaTreeBranchTerminator} left - left branch of formula tree\n * @property {FormulaTreeBranch|FormulaTreeBranchTerminator} right - right branch of formula tree\n ", - "start": 16263, - "end": 16568, - "loc": { - "start": { - "line": 413, - "column": 2 - }, - "end": { - "line": 418, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} CalculatedField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (text)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} formula - arithmetic formula, e.g. 'TextName+EnumerationName'\n * @property {FormulaTree} calculation_formula - formula parsed into tree\n * @property {number} calculation_precision - calculation precision\n * @property {string} [label] - field label\n * @property {boolean} [custom_defined_option=false] - if 'true' user can change values, if 'false' user can only read\n ", - "start": 16572, - "end": 17493, - "loc": { - "start": { - "line": 420, - "column": 2 - }, - "end": { - "line": 436, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} AttachmentField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (attachment)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} [label] - field label\n ", - "start": 17497, - "end": 18071, - "loc": { - "start": { - "line": 438, - "column": 2 - }, - "end": { - "line": 450, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @typedef {Object} DocumentFields\n * @property {number} client_timestamp - local time of user\n * @property {Array} fields - all types of fields\n ", - "start": 18075, - "end": 18353, - "loc": { - "start": { - "line": 452, - "column": 2 - }, - "end": { - "line": 456, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update document payload\n * @typedef {Object} DocumentUpdateParams\n * @property {string} id - id of specific document\n * @property {DocumentFields} fields - set of fields\n * @property {string} token - your auth token\n ", - "start": 18357, - "end": 18595, - "loc": { - "start": { - "line": 458, - "column": 2 - }, - "end": { - "line": 464, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update document response data\n * @typedef {Object} DocumentUpdateResponse\n * @property {string} id - an id of document\n * @property {Object[]} signatures - signature and initial elements\n * @property {Object[]} texts - text and enumeration elements\n * @property {Object[]} checks - checkbox elements\n * @property {Object[]} attachments - attachment elements\n * @property {Object[]} radiobuttons - radiobutton elements\n ", - "start": 18599, - "end": 19045, - "loc": { - "start": { - "line": 466, - "column": 2 - }, - "end": { - "line": 475, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Updates an existing document.\n * Adds fields (signature, text, initials, checkbox, radiobutton group, calculated) and elements (signature, text, check).\n * Every call of this method will add only specified fields into document.\n * Old fields will be removed\n * @param {DocumentUpdateParams} data - update document request payload\n * @param {function(err: ApiErrorResponse, res: DocumentUpdateResponse)} [callback] - error first node.js callback\n ", - "start": 19049, - "end": 19518, - "loc": { - "start": { - "line": 477, - "column": 2 - }, - "end": { - "line": 484, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 19521, - "end": 19527, - "loc": { - "start": { - "line": 485, - "column": 2 - }, - "end": { - "line": 485, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "update", - "start": 19528, - "end": 19534, - "loc": { - "start": { - "line": 485, - "column": 9 - }, - "end": { - "line": 485, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19535, - "end": 19536, - "loc": { - "start": { - "line": 485, - "column": 16 - }, - "end": { - "line": 485, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19536, - "end": 19537, - "loc": { - "start": { - "line": 485, - "column": 17 - }, - "end": { - "line": 485, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 19542, - "end": 19544, - "loc": { - "start": { - "line": 486, - "column": 4 - }, - "end": { - "line": 486, - "column": 6 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19544, - "end": 19545, - "loc": { - "start": { - "line": 486, - "column": 6 - }, - "end": { - "line": 486, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fields", - "start": 19550, - "end": 19556, - "loc": { - "start": { - "line": 487, - "column": 4 - }, - "end": { - "line": 487, - "column": 10 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19556, - "end": 19557, - "loc": { - "start": { - "line": 487, - "column": 10 - }, - "end": { - "line": 487, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 19562, - "end": 19567, - "loc": { - "start": { - "line": 488, - "column": 4 - }, - "end": { - "line": 488, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19567, - "end": 19568, - "loc": { - "start": { - "line": 488, - "column": 9 - }, - "end": { - "line": 488, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19571, - "end": 19572, - "loc": { - "start": { - "line": 489, - "column": 2 - }, - "end": { - "line": 489, - "column": 3 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19572, - "end": 19573, - "loc": { - "start": { - "line": 489, - "column": 3 - }, - "end": { - "line": 489, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 19574, - "end": 19582, - "loc": { - "start": { - "line": 489, - "column": 5 - }, - "end": { - "line": 489, - "column": 13 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19582, - "end": 19583, - "loc": { - "start": { - "line": 489, - "column": 13 - }, - "end": { - "line": 489, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19584, - "end": 19585, - "loc": { - "start": { - "line": 489, - "column": 15 - }, - "end": { - "line": 489, - "column": 16 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 19590, - "end": 19595, - "loc": { - "start": { - "line": 490, - "column": 4 - }, - "end": { - "line": 490, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 19596, - "end": 19604, - "loc": { - "start": { - "line": 490, - "column": 10 - }, - "end": { - "line": 490, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 19605, - "end": 19606, - "loc": { - "start": { - "line": 490, - "column": 19 - }, - "end": { - "line": 490, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSON", - "start": 19607, - "end": 19611, - "loc": { - "start": { - "line": 490, - "column": 21 - }, - "end": { - "line": 490, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19611, - "end": 19612, - "loc": { - "start": { - "line": 490, - "column": 25 - }, - "end": { - "line": 490, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "stringify", - "start": 19612, - "end": 19621, - "loc": { - "start": { - "line": 490, - "column": 26 - }, - "end": { - "line": 490, - "column": 35 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19621, - "end": 19622, - "loc": { - "start": { - "line": 490, - "column": 35 - }, - "end": { - "line": 490, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fields", - "start": 19622, - "end": 19628, - "loc": { - "start": { - "line": 490, - "column": 36 - }, - "end": { - "line": 490, - "column": 42 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19628, - "end": 19629, - "loc": { - "start": { - "line": 490, - "column": 42 - }, - "end": { - "line": 490, - "column": 43 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19629, - "end": 19630, - "loc": { - "start": { - "line": 490, - "column": 43 - }, - "end": { - "line": 490, - "column": 44 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 19635, - "end": 19640, - "loc": { - "start": { - "line": 491, - "column": 4 - }, - "end": { - "line": 491, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 19641, - "end": 19644, - "loc": { - "start": { - "line": 491, - "column": 10 - }, - "end": { - "line": 491, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 19645, - "end": 19646, - "loc": { - "start": { - "line": 491, - "column": 14 - }, - "end": { - "line": 491, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 19647, - "end": 19652, - "loc": { - "start": { - "line": 491, - "column": 16 - }, - "end": { - "line": 491, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19659, - "end": 19660, - "loc": { - "start": { - "line": 492, - "column": 6 - }, - "end": { - "line": 492, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 19660, - "end": 19667, - "loc": { - "start": { - "line": 492, - "column": 7 - }, - "end": { - "line": 492, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19667, - "end": 19668, - "loc": { - "start": { - "line": 492, - "column": 14 - }, - "end": { - "line": 492, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 19668, - "end": 19687, - "loc": { - "start": { - "line": 492, - "column": 15 - }, - "end": { - "line": 492, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19687, - "end": 19688, - "loc": { - "start": { - "line": 492, - "column": 34 - }, - "end": { - "line": 492, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19688, - "end": 19689, - "loc": { - "start": { - "line": 492, - "column": 35 - }, - "end": { - "line": 492, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 19698, - "end": 19704, - "loc": { - "start": { - "line": 493, - "column": 8 - }, - "end": { - "line": 493, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19704, - "end": 19705, - "loc": { - "start": { - "line": 493, - "column": 14 - }, - "end": { - "line": 493, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "PUT", - "start": 19706, - "end": 19711, - "loc": { - "start": { - "line": 493, - "column": 16 - }, - "end": { - "line": 493, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19711, - "end": 19712, - "loc": { - "start": { - "line": 493, - "column": 21 - }, - "end": { - "line": 493, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 19721, - "end": 19725, - "loc": { - "start": { - "line": 494, - "column": 8 - }, - "end": { - "line": 494, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19725, - "end": 19726, - "loc": { - "start": { - "line": 494, - "column": 12 - }, - "end": { - "line": 494, - "column": 13 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19727, - "end": 19728, - "loc": { - "start": { - "line": 494, - "column": 14 - }, - "end": { - "line": 494, - "column": 15 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/document/", - "start": 19728, - "end": 19738, - "loc": { - "start": { - "line": 494, - "column": 15 - }, - "end": { - "line": 494, - "column": 25 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19738, - "end": 19740, - "loc": { - "start": { - "line": 494, - "column": 25 - }, - "end": { - "line": 494, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 19740, - "end": 19742, - "loc": { - "start": { - "line": 494, - "column": 27 - }, - "end": { - "line": 494, - "column": 29 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19742, - "end": 19743, - "loc": { - "start": { - "line": 494, - "column": 29 - }, - "end": { - "line": 494, - "column": 30 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 19743, - "end": 19743, - "loc": { - "start": { - "line": 494, - "column": 30 - }, - "end": { - "line": 494, - "column": 30 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19743, - "end": 19744, - "loc": { - "start": { - "line": 494, - "column": 30 - }, - "end": { - "line": 494, - "column": 31 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19744, - "end": 19745, - "loc": { - "start": { - "line": 494, - "column": 31 - }, - "end": { - "line": 494, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 19754, - "end": 19767, - "loc": { - "start": { - "line": 495, - "column": 8 - }, - "end": { - "line": 495, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19767, - "end": 19768, - "loc": { - "start": { - "line": 495, - "column": 21 - }, - "end": { - "line": 495, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19769, - "end": 19770, - "loc": { - "start": { - "line": 495, - "column": 23 - }, - "end": { - "line": 495, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 19781, - "end": 19785, - "loc": { - "start": { - "line": 496, - "column": 10 - }, - "end": { - "line": 496, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19785, - "end": 19786, - "loc": { - "start": { - "line": 496, - "column": 14 - }, - "end": { - "line": 496, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 19787, - "end": 19795, - "loc": { - "start": { - "line": 496, - "column": 16 - }, - "end": { - "line": 496, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19795, - "end": 19796, - "loc": { - "start": { - "line": 496, - "column": 24 - }, - "end": { - "line": 496, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 19807, - "end": 19812, - "loc": { - "start": { - "line": 497, - "column": 10 - }, - "end": { - "line": 497, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19812, - "end": 19813, - "loc": { - "start": { - "line": 497, - "column": 15 - }, - "end": { - "line": 497, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19822, - "end": 19823, - "loc": { - "start": { - "line": 498, - "column": 8 - }, - "end": { - "line": 498, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19823, - "end": 19824, - "loc": { - "start": { - "line": 498, - "column": 9 - }, - "end": { - "line": 498, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 19833, - "end": 19840, - "loc": { - "start": { - "line": 499, - "column": 8 - }, - "end": { - "line": 499, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19840, - "end": 19841, - "loc": { - "start": { - "line": 499, - "column": 15 - }, - "end": { - "line": 499, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19842, - "end": 19843, - "loc": { - "start": { - "line": 499, - "column": 17 - }, - "end": { - "line": 499, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type", - "start": 19854, - "end": 19868, - "loc": { - "start": { - "line": 500, - "column": 10 - }, - "end": { - "line": 500, - "column": 24 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19868, - "end": 19869, - "loc": { - "start": { - "line": 500, - "column": 24 - }, - "end": { - "line": 500, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/json", - "start": 19870, - "end": 19888, - "loc": { - "start": { - "line": 500, - "column": 26 - }, - "end": { - "line": 500, - "column": 44 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19888, - "end": 19889, - "loc": { - "start": { - "line": 500, - "column": 44 - }, - "end": { - "line": 500, - "column": 45 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Length", - "start": 19900, - "end": 19916, - "loc": { - "start": { - "line": 501, - "column": 10 - }, - "end": { - "line": 501, - "column": 26 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19916, - "end": 19917, - "loc": { - "start": { - "line": 501, - "column": 26 - }, - "end": { - "line": 501, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 19918, - "end": 19924, - "loc": { - "start": { - "line": 501, - "column": 28 - }, - "end": { - "line": 501, - "column": 34 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19924, - "end": 19925, - "loc": { - "start": { - "line": 501, - "column": 34 - }, - "end": { - "line": 501, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "byteLength", - "start": 19925, - "end": 19935, - "loc": { - "start": { - "line": 501, - "column": 35 - }, - "end": { - "line": 501, - "column": 45 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19935, - "end": 19936, - "loc": { - "start": { - "line": 501, - "column": 45 - }, - "end": { - "line": 501, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 19936, - "end": 19944, - "loc": { - "start": { - "line": 501, - "column": 46 - }, - "end": { - "line": 501, - "column": 54 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19944, - "end": 19945, - "loc": { - "start": { - "line": 501, - "column": 54 - }, - "end": { - "line": 501, - "column": 55 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19945, - "end": 19946, - "loc": { - "start": { - "line": 501, - "column": 55 - }, - "end": { - "line": 501, - "column": 56 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19955, - "end": 19956, - "loc": { - "start": { - "line": 502, - "column": 8 - }, - "end": { - "line": 502, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19956, - "end": 19957, - "loc": { - "start": { - "line": 502, - "column": 9 - }, - "end": { - "line": 502, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19964, - "end": 19965, - "loc": { - "start": { - "line": 503, - "column": 6 - }, - "end": { - "line": 503, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19965, - "end": 19966, - "loc": { - "start": { - "line": 503, - "column": 7 - }, - "end": { - "line": 503, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19966, - "end": 19967, - "loc": { - "start": { - "line": 503, - "column": 8 - }, - "end": { - "line": 503, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 19968, - "end": 19983, - "loc": { - "start": { - "line": 503, - "column": 10 - }, - "end": { - "line": 503, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19983, - "end": 19984, - "loc": { - "start": { - "line": 503, - "column": 25 - }, - "end": { - "line": 503, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 19984, - "end": 19992, - "loc": { - "start": { - "line": 503, - "column": 26 - }, - "end": { - "line": 503, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19992, - "end": 19993, - "loc": { - "start": { - "line": 503, - "column": 34 - }, - "end": { - "line": 503, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19993, - "end": 19994, - "loc": { - "start": { - "line": 503, - "column": 35 - }, - "end": { - "line": 503, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20001, - "end": 20002, - "loc": { - "start": { - "line": 504, - "column": 6 - }, - "end": { - "line": 504, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 20002, - "end": 20004, - "loc": { - "start": { - "line": 504, - "column": 7 - }, - "end": { - "line": 504, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20004, - "end": 20005, - "loc": { - "start": { - "line": 504, - "column": 9 - }, - "end": { - "line": 504, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 20005, - "end": 20012, - "loc": { - "start": { - "line": 504, - "column": 10 - }, - "end": { - "line": 504, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20012, - "end": 20013, - "loc": { - "start": { - "line": 504, - "column": 17 - }, - "end": { - "line": 504, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 20014, - "end": 20026, - "loc": { - "start": { - "line": 504, - "column": 19 - }, - "end": { - "line": 504, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20026, - "end": 20027, - "loc": { - "start": { - "line": 504, - "column": 31 - }, - "end": { - "line": 504, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 20027, - "end": 20035, - "loc": { - "start": { - "line": 504, - "column": 32 - }, - "end": { - "line": 504, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20035, - "end": 20036, - "loc": { - "start": { - "line": 504, - "column": 40 - }, - "end": { - "line": 504, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20036, - "end": 20037, - "loc": { - "start": { - "line": 504, - "column": 41 - }, - "end": { - "line": 504, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20037, - "end": 20038, - "loc": { - "start": { - "line": 504, - "column": 42 - }, - "end": { - "line": 504, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 20044, - "end": 20047, - "loc": { - "start": { - "line": 506, - "column": 4 - }, - "end": { - "line": 506, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20047, - "end": 20048, - "loc": { - "start": { - "line": 506, - "column": 7 - }, - "end": { - "line": 506, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "write", - "start": 20048, - "end": 20053, - "loc": { - "start": { - "line": 506, - "column": 8 - }, - "end": { - "line": 506, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20053, - "end": 20054, - "loc": { - "start": { - "line": 506, - "column": 13 - }, - "end": { - "line": 506, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 20054, - "end": 20062, - "loc": { - "start": { - "line": 506, - "column": 14 - }, - "end": { - "line": 506, - "column": 22 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20062, - "end": 20063, - "loc": { - "start": { - "line": 506, - "column": 22 - }, - "end": { - "line": 506, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20063, - "end": 20064, - "loc": { - "start": { - "line": 506, - "column": 23 - }, - "end": { - "line": 506, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 20069, - "end": 20072, - "loc": { - "start": { - "line": 507, - "column": 4 - }, - "end": { - "line": 507, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20072, - "end": 20073, - "loc": { - "start": { - "line": 507, - "column": 7 - }, - "end": { - "line": 507, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 20073, - "end": 20076, - "loc": { - "start": { - "line": 507, - "column": 8 - }, - "end": { - "line": 507, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20076, - "end": 20077, - "loc": { - "start": { - "line": 507, - "column": 11 - }, - "end": { - "line": 507, - "column": 12 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20077, - "end": 20078, - "loc": { - "start": { - "line": 507, - "column": 12 - }, - "end": { - "line": 507, - "column": 13 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20078, - "end": 20079, - "loc": { - "start": { - "line": 507, - "column": 13 - }, - "end": { - "line": 507, - "column": 14 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20082, - "end": 20083, - "loc": { - "start": { - "line": 508, - "column": 2 - }, - "end": { - "line": 508, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Download document optional settings\n * @typedef {Object} DocumentDownloadOptions\n * @property {boolean} [withAttachments=false] - if true document will be downloaded as zip package with its attachments\n * @property {boolean} [withHistory=false] - if true document will be downloaded with history\n ", - "start": 20087, - "end": 20403, - "loc": { - "start": { - "line": 510, - "column": 2 - }, - "end": { - "line": 515, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document download payload\n * @typedef {Object} DocumentDownloadParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n * @property {DocumentDownloadOptions} options - download document optional settings\n ", - "start": 20407, - "end": 20681, - "loc": { - "start": { - "line": 517, - "column": 2 - }, - "end": { - "line": 523, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document binary data\n * @typedef {Buffer} DocumentDownloadResponse\n ", - "start": 20685, - "end": 20768, - "loc": { - "start": { - "line": 525, - "column": 2 - }, - "end": { - "line": 528, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Downloads document with embedded fields and elements.\n * By default document is downloaded without history. To download document with history set `withHistory` option to `true`.\n * @param {DocumentDownloadParams} data - download document request payload\n * @param {function(err: ApiErrorResponse, res: DocumentDownloadResponse)} [callback] - error first node.js callback\n ", - "start": 20772, - "end": 21163, - "loc": { - "start": { - "line": 530, - "column": 2 - }, - "end": { - "line": 535, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 21166, - "end": 21172, - "loc": { - "start": { - "line": 536, - "column": 2 - }, - "end": { - "line": 536, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "download", - "start": 21173, - "end": 21181, - "loc": { - "start": { - "line": 536, - "column": 9 - }, - "end": { - "line": 536, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21182, - "end": 21183, - "loc": { - "start": { - "line": 536, - "column": 18 - }, - "end": { - "line": 536, - "column": 19 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21183, - "end": 21184, - "loc": { - "start": { - "line": 536, - "column": 19 - }, - "end": { - "line": 536, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 21189, - "end": 21191, - "loc": { - "start": { - "line": 537, - "column": 4 - }, - "end": { - "line": 537, - "column": 6 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21191, - "end": 21192, - "loc": { - "start": { - "line": 537, - "column": 6 - }, - "end": { - "line": 537, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 21197, - "end": 21202, - "loc": { - "start": { - "line": 538, - "column": 4 - }, - "end": { - "line": 538, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21202, - "end": 21203, - "loc": { - "start": { - "line": 538, - "column": 9 - }, - "end": { - "line": 538, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "options", - "start": 21208, - "end": 21215, - "loc": { - "start": { - "line": 539, - "column": 4 - }, - "end": { - "line": 539, - "column": 11 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21215, - "end": 21216, - "loc": { - "start": { - "line": 539, - "column": 11 - }, - "end": { - "line": 539, - "column": 12 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21217, - "end": 21218, - "loc": { - "start": { - "line": 539, - "column": 13 - }, - "end": { - "line": 539, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "withAttachments", - "start": 21225, - "end": 21240, - "loc": { - "start": { - "line": 540, - "column": 6 - }, - "end": { - "line": 540, - "column": 21 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 21241, - "end": 21242, - "loc": { - "start": { - "line": 540, - "column": 22 - }, - "end": { - "line": 540, - "column": 23 - } - } - }, - { - "type": { - "label": "false", - "keyword": "false", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "false", - "start": 21243, - "end": 21248, - "loc": { - "start": { - "line": 540, - "column": 24 - }, - "end": { - "line": 540, - "column": 29 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21248, - "end": 21249, - "loc": { - "start": { - "line": 540, - "column": 29 - }, - "end": { - "line": 540, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "withHistory", - "start": 21256, - "end": 21267, - "loc": { - "start": { - "line": 541, - "column": 6 - }, - "end": { - "line": 541, - "column": 17 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 21268, - "end": 21269, - "loc": { - "start": { - "line": 541, - "column": 18 - }, - "end": { - "line": 541, - "column": 19 - } - } - }, - { - "type": { - "label": "false", - "keyword": "false", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "false", - "start": 21270, - "end": 21275, - "loc": { - "start": { - "line": 541, - "column": 20 - }, - "end": { - "line": 541, - "column": 25 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21275, - "end": 21276, - "loc": { - "start": { - "line": 541, - "column": 25 - }, - "end": { - "line": 541, - "column": 26 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21281, - "end": 21282, - "loc": { - "start": { - "line": 542, - "column": 4 - }, - "end": { - "line": 542, - "column": 5 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 21283, - "end": 21284, - "loc": { - "start": { - "line": 542, - "column": 6 - }, - "end": { - "line": 542, - "column": 7 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21285, - "end": 21286, - "loc": { - "start": { - "line": 542, - "column": 8 - }, - "end": { - "line": 542, - "column": 9 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21286, - "end": 21287, - "loc": { - "start": { - "line": 542, - "column": 9 - }, - "end": { - "line": 542, - "column": 10 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21287, - "end": 21288, - "loc": { - "start": { - "line": 542, - "column": 10 - }, - "end": { - "line": 542, - "column": 11 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21291, - "end": 21292, - "loc": { - "start": { - "line": 543, - "column": 2 - }, - "end": { - "line": 543, - "column": 3 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21292, - "end": 21293, - "loc": { - "start": { - "line": 543, - "column": 3 - }, - "end": { - "line": 543, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 21294, - "end": 21302, - "loc": { - "start": { - "line": 543, - "column": 5 - }, - "end": { - "line": 543, - "column": 13 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21302, - "end": 21303, - "loc": { - "start": { - "line": 543, - "column": 13 - }, - "end": { - "line": 543, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21304, - "end": 21305, - "loc": { - "start": { - "line": 543, - "column": 15 - }, - "end": { - "line": 543, - "column": 16 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 21310, - "end": 21315, - "loc": { - "start": { - "line": 544, - "column": 4 - }, - "end": { - "line": 544, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "queryParams", - "start": 21316, - "end": 21327, - "loc": { - "start": { - "line": 544, - "column": 10 - }, - "end": { - "line": 544, - "column": 21 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 21328, - "end": 21329, - "loc": { - "start": { - "line": 544, - "column": 22 - }, - "end": { - "line": 544, - "column": 23 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21330, - "end": 21331, - "loc": { - "start": { - "line": 544, - "column": 24 - }, - "end": { - "line": 544, - "column": 25 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21331, - "end": 21332, - "loc": { - "start": { - "line": 544, - "column": 25 - }, - "end": { - "line": 544, - "column": 26 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21332, - "end": 21333, - "loc": { - "start": { - "line": 544, - "column": 26 - }, - "end": { - "line": 544, - "column": 27 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 21338, - "end": 21343, - "loc": { - "start": { - "line": 545, - "column": 4 - }, - "end": { - "line": 545, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "clientTimestamp", - "start": 21344, - "end": 21359, - "loc": { - "start": { - "line": 545, - "column": 10 - }, - "end": { - "line": 545, - "column": 25 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 21360, - "end": 21361, - "loc": { - "start": { - "line": 545, - "column": 26 - }, - "end": { - "line": 545, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 21362, - "end": 21366, - "loc": { - "start": { - "line": 545, - "column": 28 - }, - "end": { - "line": 545, - "column": 32 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21366, - "end": 21367, - "loc": { - "start": { - "line": 545, - "column": 32 - }, - "end": { - "line": 545, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "floor", - "start": 21367, - "end": 21372, - "loc": { - "start": { - "line": 545, - "column": 33 - }, - "end": { - "line": 545, - "column": 38 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21372, - "end": 21373, - "loc": { - "start": { - "line": 545, - "column": 38 - }, - "end": { - "line": 545, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Date", - "start": 21373, - "end": 21377, - "loc": { - "start": { - "line": 545, - "column": 39 - }, - "end": { - "line": 545, - "column": 43 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21377, - "end": 21378, - "loc": { - "start": { - "line": 545, - "column": 43 - }, - "end": { - "line": 545, - "column": 44 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "now", - "start": 21378, - "end": 21381, - "loc": { - "start": { - "line": 545, - "column": 44 - }, - "end": { - "line": 545, - "column": 47 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21381, - "end": 21382, - "loc": { - "start": { - "line": 545, - "column": 47 - }, - "end": { - "line": 545, - "column": 48 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21382, - "end": 21383, - "loc": { - "start": { - "line": 545, - "column": 48 - }, - "end": { - "line": 545, - "column": 49 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 21384, - "end": 21385, - "loc": { - "start": { - "line": 545, - "column": 50 - }, - "end": { - "line": 545, - "column": 51 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1000, - "start": 21386, - "end": 21390, - "loc": { - "start": { - "line": 545, - "column": 52 - }, - "end": { - "line": 545, - "column": 56 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21390, - "end": 21391, - "loc": { - "start": { - "line": 545, - "column": 56 - }, - "end": { - "line": 545, - "column": 57 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21391, - "end": 21392, - "loc": { - "start": { - "line": 545, - "column": 57 - }, - "end": { - "line": 545, - "column": 58 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "queryParams", - "start": 21398, - "end": 21409, - "loc": { - "start": { - "line": 547, - "column": 4 - }, - "end": { - "line": 547, - "column": 15 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21409, - "end": 21410, - "loc": { - "start": { - "line": 547, - "column": 15 - }, - "end": { - "line": 547, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 21410, - "end": 21414, - "loc": { - "start": { - "line": 547, - "column": 16 - }, - "end": { - "line": 547, - "column": 20 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 21415, - "end": 21416, - "loc": { - "start": { - "line": 547, - "column": 21 - }, - "end": { - "line": 547, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "withAttachments", - "start": 21417, - "end": 21432, - "loc": { - "start": { - "line": 547, - "column": 23 - }, - "end": { - "line": 547, - "column": 38 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21433, - "end": 21434, - "loc": { - "start": { - "line": 547, - "column": 39 - }, - "end": { - "line": 547, - "column": 40 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "zip", - "start": 21435, - "end": 21440, - "loc": { - "start": { - "line": 547, - "column": 41 - }, - "end": { - "line": 547, - "column": 46 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21441, - "end": 21442, - "loc": { - "start": { - "line": 547, - "column": 47 - }, - "end": { - "line": 547, - "column": 48 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "collapsed", - "start": 21443, - "end": 21454, - "loc": { - "start": { - "line": 547, - "column": 49 - }, - "end": { - "line": 547, - "column": 60 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21454, - "end": 21455, - "loc": { - "start": { - "line": 547, - "column": 60 - }, - "end": { - "line": 547, - "column": 61 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "withHistory", - "start": 21460, - "end": 21471, - "loc": { - "start": { - "line": 548, - "column": 4 - }, - "end": { - "line": 548, - "column": 15 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 21472, - "end": 21474, - "loc": { - "start": { - "line": 548, - "column": 16 - }, - "end": { - "line": 548, - "column": 18 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21475, - "end": 21476, - "loc": { - "start": { - "line": 548, - "column": 19 - }, - "end": { - "line": 548, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "queryParams", - "start": 21476, - "end": 21487, - "loc": { - "start": { - "line": 548, - "column": 20 - }, - "end": { - "line": 548, - "column": 31 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21487, - "end": 21488, - "loc": { - "start": { - "line": 548, - "column": 31 - }, - "end": { - "line": 548, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "with_history", - "start": 21488, - "end": 21500, - "loc": { - "start": { - "line": 548, - "column": 32 - }, - "end": { - "line": 548, - "column": 44 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 21501, - "end": 21502, - "loc": { - "start": { - "line": 548, - "column": 45 - }, - "end": { - "line": 548, - "column": 46 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "1", - "start": 21503, - "end": 21506, - "loc": { - "start": { - "line": 548, - "column": 47 - }, - "end": { - "line": 548, - "column": 50 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21506, - "end": 21507, - "loc": { - "start": { - "line": 548, - "column": 50 - }, - "end": { - "line": 548, - "column": 51 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21507, - "end": 21508, - "loc": { - "start": { - "line": 548, - "column": 51 - }, - "end": { - "line": 548, - "column": 52 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 21514, - "end": 21519, - "loc": { - "start": { - "line": 550, - "column": 4 - }, - "end": { - "line": 550, - "column": 9 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21526, - "end": 21527, - "loc": { - "start": { - "line": 551, - "column": 6 - }, - "end": { - "line": 551, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 21527, - "end": 21534, - "loc": { - "start": { - "line": 551, - "column": 7 - }, - "end": { - "line": 551, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21534, - "end": 21535, - "loc": { - "start": { - "line": 551, - "column": 14 - }, - "end": { - "line": 551, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 21535, - "end": 21554, - "loc": { - "start": { - "line": 551, - "column": 15 - }, - "end": { - "line": 551, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21554, - "end": 21555, - "loc": { - "start": { - "line": 551, - "column": 34 - }, - "end": { - "line": 551, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21555, - "end": 21556, - "loc": { - "start": { - "line": 551, - "column": 35 - }, - "end": { - "line": 551, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 21565, - "end": 21571, - "loc": { - "start": { - "line": 552, - "column": 8 - }, - "end": { - "line": 552, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21571, - "end": 21572, - "loc": { - "start": { - "line": 552, - "column": 14 - }, - "end": { - "line": 552, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "GET", - "start": 21573, - "end": 21578, - "loc": { - "start": { - "line": 552, - "column": 16 - }, - "end": { - "line": 552, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21578, - "end": 21579, - "loc": { - "start": { - "line": 552, - "column": 21 - }, - "end": { - "line": 552, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 21588, - "end": 21592, - "loc": { - "start": { - "line": 553, - "column": 8 - }, - "end": { - "line": 553, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21592, - "end": 21593, - "loc": { - "start": { - "line": 553, - "column": 12 - }, - "end": { - "line": 553, - "column": 13 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21594, - "end": 21595, - "loc": { - "start": { - "line": 553, - "column": 14 - }, - "end": { - "line": 553, - "column": 15 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/document/", - "start": 21595, - "end": 21605, - "loc": { - "start": { - "line": 553, - "column": 15 - }, - "end": { - "line": 553, - "column": 25 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21605, - "end": 21607, - "loc": { - "start": { - "line": 553, - "column": 25 - }, - "end": { - "line": 553, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 21607, - "end": 21609, - "loc": { - "start": { - "line": 553, - "column": 27 - }, - "end": { - "line": 553, - "column": 29 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21609, - "end": 21610, - "loc": { - "start": { - "line": 553, - "column": 29 - }, - "end": { - "line": 553, - "column": 30 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/download?client_timestamp=", - "start": 21610, - "end": 21637, - "loc": { - "start": { - "line": 553, - "column": 30 - }, - "end": { - "line": 553, - "column": 57 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21637, - "end": 21639, - "loc": { - "start": { - "line": 553, - "column": 57 - }, - "end": { - "line": 553, - "column": 59 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "clientTimestamp", - "start": 21639, - "end": 21654, - "loc": { - "start": { - "line": 553, - "column": 59 - }, - "end": { - "line": 553, - "column": 74 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21654, - "end": 21655, - "loc": { - "start": { - "line": 553, - "column": 74 - }, - "end": { - "line": 553, - "column": 75 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "&", - "start": 21655, - "end": 21656, - "loc": { - "start": { - "line": 553, - "column": 75 - }, - "end": { - "line": 553, - "column": 76 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21656, - "end": 21658, - "loc": { - "start": { - "line": 553, - "column": 76 - }, - "end": { - "line": 553, - "column": 78 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "stringifyQueryParams", - "start": 21658, - "end": 21678, - "loc": { - "start": { - "line": 553, - "column": 78 - }, - "end": { - "line": 553, - "column": 98 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21678, - "end": 21679, - "loc": { - "start": { - "line": 553, - "column": 98 - }, - "end": { - "line": 553, - "column": 99 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "queryParams", - "start": 21679, - "end": 21690, - "loc": { - "start": { - "line": 553, - "column": 99 - }, - "end": { - "line": 553, - "column": 110 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21690, - "end": 21691, - "loc": { - "start": { - "line": 553, - "column": 110 - }, - "end": { - "line": 553, - "column": 111 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21691, - "end": 21692, - "loc": { - "start": { - "line": 553, - "column": 111 - }, - "end": { - "line": 553, - "column": 112 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 21692, - "end": 21692, - "loc": { - "start": { - "line": 553, - "column": 112 - }, - "end": { - "line": 553, - "column": 112 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21692, - "end": 21693, - "loc": { - "start": { - "line": 553, - "column": 112 - }, - "end": { - "line": 553, - "column": 113 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21693, - "end": 21694, - "loc": { - "start": { - "line": 553, - "column": 113 - }, - "end": { - "line": 553, - "column": 114 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 21703, - "end": 21716, - "loc": { - "start": { - "line": 554, - "column": 8 - }, - "end": { - "line": 554, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21716, - "end": 21717, - "loc": { - "start": { - "line": 554, - "column": 21 - }, - "end": { - "line": 554, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21718, - "end": 21719, - "loc": { - "start": { - "line": 554, - "column": 23 - }, - "end": { - "line": 554, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 21730, - "end": 21734, - "loc": { - "start": { - "line": 555, - "column": 10 - }, - "end": { - "line": 555, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21734, - "end": 21735, - "loc": { - "start": { - "line": 555, - "column": 14 - }, - "end": { - "line": 555, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 21736, - "end": 21744, - "loc": { - "start": { - "line": 555, - "column": 16 - }, - "end": { - "line": 555, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21744, - "end": 21745, - "loc": { - "start": { - "line": 555, - "column": 24 - }, - "end": { - "line": 555, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 21756, - "end": 21761, - "loc": { - "start": { - "line": 556, - "column": 10 - }, - "end": { - "line": 556, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21761, - "end": 21762, - "loc": { - "start": { - "line": 556, - "column": 15 - }, - "end": { - "line": 556, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21771, - "end": 21772, - "loc": { - "start": { - "line": 557, - "column": 8 - }, - "end": { - "line": 557, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21772, - "end": 21773, - "loc": { - "start": { - "line": 557, - "column": 9 - }, - "end": { - "line": 557, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21780, - "end": 21781, - "loc": { - "start": { - "line": 558, - "column": 6 - }, - "end": { - "line": 558, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21781, - "end": 21782, - "loc": { - "start": { - "line": 558, - "column": 7 - }, - "end": { - "line": 558, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21782, - "end": 21783, - "loc": { - "start": { - "line": 558, - "column": 8 - }, - "end": { - "line": 558, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 21784, - "end": 21799, - "loc": { - "start": { - "line": 558, - "column": 10 - }, - "end": { - "line": 558, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21799, - "end": 21800, - "loc": { - "start": { - "line": 558, - "column": 25 - }, - "end": { - "line": 558, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 21800, - "end": 21808, - "loc": { - "start": { - "line": 558, - "column": 26 - }, - "end": { - "line": 558, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21808, - "end": 21809, - "loc": { - "start": { - "line": 558, - "column": 34 - }, - "end": { - "line": 558, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21809, - "end": 21810, - "loc": { - "start": { - "line": 558, - "column": 35 - }, - "end": { - "line": 558, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21817, - "end": 21818, - "loc": { - "start": { - "line": 559, - "column": 6 - }, - "end": { - "line": 559, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 21818, - "end": 21820, - "loc": { - "start": { - "line": 559, - "column": 7 - }, - "end": { - "line": 559, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21820, - "end": 21821, - "loc": { - "start": { - "line": 559, - "column": 9 - }, - "end": { - "line": 559, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 21821, - "end": 21828, - "loc": { - "start": { - "line": 559, - "column": 10 - }, - "end": { - "line": 559, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21828, - "end": 21829, - "loc": { - "start": { - "line": 559, - "column": 17 - }, - "end": { - "line": 559, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 21830, - "end": 21842, - "loc": { - "start": { - "line": 559, - "column": 19 - }, - "end": { - "line": 559, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21842, - "end": 21843, - "loc": { - "start": { - "line": 559, - "column": 31 - }, - "end": { - "line": 559, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 21843, - "end": 21851, - "loc": { - "start": { - "line": 559, - "column": 32 - }, - "end": { - "line": 559, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21851, - "end": 21852, - "loc": { - "start": { - "line": 559, - "column": 40 - }, - "end": { - "line": 559, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21852, - "end": 21853, - "loc": { - "start": { - "line": 559, - "column": 41 - }, - "end": { - "line": 559, - "column": 42 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21860, - "end": 21861, - "loc": { - "start": { - "line": 560, - "column": 6 - }, - "end": { - "line": 560, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 21861, - "end": 21864, - "loc": { - "start": { - "line": 560, - "column": 7 - }, - "end": { - "line": 560, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21864, - "end": 21865, - "loc": { - "start": { - "line": 560, - "column": 10 - }, - "end": { - "line": 560, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21865, - "end": 21866, - "loc": { - "start": { - "line": 560, - "column": 11 - }, - "end": { - "line": 560, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21866, - "end": 21867, - "loc": { - "start": { - "line": 560, - "column": 12 - }, - "end": { - "line": 560, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21870, - "end": 21871, - "loc": { - "start": { - "line": 561, - "column": 2 - }, - "end": { - "line": 561, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document share payload\n * @typedef {Object} DocumentShareParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 21875, - "end": 22056, - "loc": { - "start": { - "line": 563, - "column": 2 - }, - "end": { - "line": 568, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document share response data\n * @typedef {Object} DocumentShareResponse\n * @property {string} link - link to download specified document in PDF format\n ", - "start": 22060, - "end": 22229, - "loc": { - "start": { - "line": 570, - "column": 2 - }, - "end": { - "line": 574, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Requests a link to download document with embedded fields and elements\n * Link can be used once and then will expire\n * @param {DocumentShareParams} data - share document request payload\n * @param {function(err: ApiErrorResponse, res: DocumentShareResponse)} [callback] - error first node.js callback\n ", - "start": 22233, - "end": 22554, - "loc": { - "start": { - "line": 576, - "column": 2 - }, - "end": { - "line": 581, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 22557, - "end": 22563, - "loc": { - "start": { - "line": 582, - "column": 2 - }, - "end": { - "line": 582, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "share", - "start": 22564, - "end": 22569, - "loc": { - "start": { - "line": 582, - "column": 9 - }, - "end": { - "line": 582, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22570, - "end": 22571, - "loc": { - "start": { - "line": 582, - "column": 15 - }, - "end": { - "line": 582, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22571, - "end": 22572, - "loc": { - "start": { - "line": 582, - "column": 16 - }, - "end": { - "line": 582, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 22573, - "end": 22575, - "loc": { - "start": { - "line": 582, - "column": 18 - }, - "end": { - "line": 582, - "column": 20 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22575, - "end": 22576, - "loc": { - "start": { - "line": 582, - "column": 20 - }, - "end": { - "line": 582, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 22577, - "end": 22582, - "loc": { - "start": { - "line": 582, - "column": 22 - }, - "end": { - "line": 582, - "column": 27 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22583, - "end": 22584, - "loc": { - "start": { - "line": 582, - "column": 28 - }, - "end": { - "line": 582, - "column": 29 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22584, - "end": 22585, - "loc": { - "start": { - "line": 582, - "column": 29 - }, - "end": { - "line": 582, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 22586, - "end": 22594, - "loc": { - "start": { - "line": 582, - "column": 31 - }, - "end": { - "line": 582, - "column": 39 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22594, - "end": 22595, - "loc": { - "start": { - "line": 582, - "column": 39 - }, - "end": { - "line": 582, - "column": 40 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22596, - "end": 22597, - "loc": { - "start": { - "line": 582, - "column": 41 - }, - "end": { - "line": 582, - "column": 42 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 22602, - "end": 22607, - "loc": { - "start": { - "line": 583, - "column": 4 - }, - "end": { - "line": 583, - "column": 9 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22614, - "end": 22615, - "loc": { - "start": { - "line": 584, - "column": 6 - }, - "end": { - "line": 584, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 22615, - "end": 22622, - "loc": { - "start": { - "line": 584, - "column": 7 - }, - "end": { - "line": 584, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22622, - "end": 22623, - "loc": { - "start": { - "line": 584, - "column": 14 - }, - "end": { - "line": 584, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 22623, - "end": 22642, - "loc": { - "start": { - "line": 584, - "column": 15 - }, - "end": { - "line": 584, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22642, - "end": 22643, - "loc": { - "start": { - "line": 584, - "column": 34 - }, - "end": { - "line": 584, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22643, - "end": 22644, - "loc": { - "start": { - "line": 584, - "column": 35 - }, - "end": { - "line": 584, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 22653, - "end": 22659, - "loc": { - "start": { - "line": 585, - "column": 8 - }, - "end": { - "line": 585, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22659, - "end": 22660, - "loc": { - "start": { - "line": 585, - "column": 14 - }, - "end": { - "line": 585, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "POST", - "start": 22661, - "end": 22667, - "loc": { - "start": { - "line": 585, - "column": 16 - }, - "end": { - "line": 585, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22667, - "end": 22668, - "loc": { - "start": { - "line": 585, - "column": 22 - }, - "end": { - "line": 585, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 22677, - "end": 22681, - "loc": { - "start": { - "line": 586, - "column": 8 - }, - "end": { - "line": 586, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22681, - "end": 22682, - "loc": { - "start": { - "line": 586, - "column": 12 - }, - "end": { - "line": 586, - "column": 13 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22683, - "end": 22684, - "loc": { - "start": { - "line": 586, - "column": 14 - }, - "end": { - "line": 586, - "column": 15 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/document/", - "start": 22684, - "end": 22694, - "loc": { - "start": { - "line": 586, - "column": 15 - }, - "end": { - "line": 586, - "column": 25 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22694, - "end": 22696, - "loc": { - "start": { - "line": 586, - "column": 25 - }, - "end": { - "line": 586, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 22696, - "end": 22698, - "loc": { - "start": { - "line": 586, - "column": 27 - }, - "end": { - "line": 586, - "column": 29 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22698, - "end": 22699, - "loc": { - "start": { - "line": 586, - "column": 29 - }, - "end": { - "line": 586, - "column": 30 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/download/link", - "start": 22699, - "end": 22713, - "loc": { - "start": { - "line": 586, - "column": 30 - }, - "end": { - "line": 586, - "column": 44 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22713, - "end": 22714, - "loc": { - "start": { - "line": 586, - "column": 44 - }, - "end": { - "line": 586, - "column": 45 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22714, - "end": 22715, - "loc": { - "start": { - "line": 586, - "column": 45 - }, - "end": { - "line": 586, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 22724, - "end": 22737, - "loc": { - "start": { - "line": 587, - "column": 8 - }, - "end": { - "line": 587, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22737, - "end": 22738, - "loc": { - "start": { - "line": 587, - "column": 21 - }, - "end": { - "line": 587, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22739, - "end": 22740, - "loc": { - "start": { - "line": 587, - "column": 23 - }, - "end": { - "line": 587, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 22751, - "end": 22755, - "loc": { - "start": { - "line": 588, - "column": 10 - }, - "end": { - "line": 588, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22755, - "end": 22756, - "loc": { - "start": { - "line": 588, - "column": 14 - }, - "end": { - "line": 588, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 22757, - "end": 22765, - "loc": { - "start": { - "line": 588, - "column": 16 - }, - "end": { - "line": 588, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22765, - "end": 22766, - "loc": { - "start": { - "line": 588, - "column": 24 - }, - "end": { - "line": 588, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 22777, - "end": 22782, - "loc": { - "start": { - "line": 589, - "column": 10 - }, - "end": { - "line": 589, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22782, - "end": 22783, - "loc": { - "start": { - "line": 589, - "column": 15 - }, - "end": { - "line": 589, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22792, - "end": 22793, - "loc": { - "start": { - "line": 590, - "column": 8 - }, - "end": { - "line": 590, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22793, - "end": 22794, - "loc": { - "start": { - "line": 590, - "column": 9 - }, - "end": { - "line": 590, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22801, - "end": 22802, - "loc": { - "start": { - "line": 591, - "column": 6 - }, - "end": { - "line": 591, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22802, - "end": 22803, - "loc": { - "start": { - "line": 591, - "column": 7 - }, - "end": { - "line": 591, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22803, - "end": 22804, - "loc": { - "start": { - "line": 591, - "column": 8 - }, - "end": { - "line": 591, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 22805, - "end": 22820, - "loc": { - "start": { - "line": 591, - "column": 10 - }, - "end": { - "line": 591, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22820, - "end": 22821, - "loc": { - "start": { - "line": 591, - "column": 25 - }, - "end": { - "line": 591, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 22821, - "end": 22829, - "loc": { - "start": { - "line": 591, - "column": 26 - }, - "end": { - "line": 591, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22829, - "end": 22830, - "loc": { - "start": { - "line": 591, - "column": 34 - }, - "end": { - "line": 591, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22830, - "end": 22831, - "loc": { - "start": { - "line": 591, - "column": 35 - }, - "end": { - "line": 591, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22838, - "end": 22839, - "loc": { - "start": { - "line": 592, - "column": 6 - }, - "end": { - "line": 592, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 22839, - "end": 22841, - "loc": { - "start": { - "line": 592, - "column": 7 - }, - "end": { - "line": 592, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22841, - "end": 22842, - "loc": { - "start": { - "line": 592, - "column": 9 - }, - "end": { - "line": 592, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 22842, - "end": 22849, - "loc": { - "start": { - "line": 592, - "column": 10 - }, - "end": { - "line": 592, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22849, - "end": 22850, - "loc": { - "start": { - "line": 592, - "column": 17 - }, - "end": { - "line": 592, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 22851, - "end": 22863, - "loc": { - "start": { - "line": 592, - "column": 19 - }, - "end": { - "line": 592, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22863, - "end": 22864, - "loc": { - "start": { - "line": 592, - "column": 31 - }, - "end": { - "line": 592, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 22864, - "end": 22872, - "loc": { - "start": { - "line": 592, - "column": 32 - }, - "end": { - "line": 592, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22872, - "end": 22873, - "loc": { - "start": { - "line": 592, - "column": 40 - }, - "end": { - "line": 592, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22873, - "end": 22874, - "loc": { - "start": { - "line": 592, - "column": 41 - }, - "end": { - "line": 592, - "column": 42 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22881, - "end": 22882, - "loc": { - "start": { - "line": 593, - "column": 6 - }, - "end": { - "line": 593, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 22882, - "end": 22885, - "loc": { - "start": { - "line": 593, - "column": 7 - }, - "end": { - "line": 593, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22885, - "end": 22886, - "loc": { - "start": { - "line": 593, - "column": 10 - }, - "end": { - "line": 593, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22886, - "end": 22887, - "loc": { - "start": { - "line": 593, - "column": 11 - }, - "end": { - "line": 593, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22887, - "end": 22888, - "loc": { - "start": { - "line": 593, - "column": 12 - }, - "end": { - "line": 593, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22891, - "end": 22892, - "loc": { - "start": { - "line": 594, - "column": 2 - }, - "end": { - "line": 594, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document invite signer settings\n * @typedef {Object} SignerSettings\n * @property {string} email - signer's email\n * @property {string} role - role name\n * @property {string} [role_id] - role unique id (can be discovered in document details)\n * @property {number} order - role signing order\n * @property {string} reassign - allow reassign signer\n * @property {string} decline_by_signature - signer can decline invite\n * @property {number} reminder - remind via email in days\n * @property {number} expiration_days - expiration of invite in days\n * @property {string} [subject] - specify subject of email\n * @property {string} [message] - specify body of email\n ", - "start": 22896, - "end": 23590, - "loc": { - "start": { - "line": 596, - "column": 2 - }, - "end": { - "line": 609, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document invite settings\n * @typedef {Object} DocumentInviteSettings\n * @property {string} from - email of sender\n * @property {SignerSettings[]|string} to - array of signers or email of single signer\n * @property {string} [document_id] - an id of document\n * @property {string[]} [cc] - array with emails of copy receivers\n * @property {string} [subject] - specify subject of email\n * @property {string} [message] - specify body of email\n * @property {string} [on_complete] - on signing complete action\n ", - "start": 23594, - "end": 24128, - "loc": { - "start": { - "line": 611, - "column": 2 - }, - "end": { - "line": 621, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document invite optional settings\n * @typedef {Object} DocumentInviteOptions\n * @property {string} [email] - ability to disable invitation by email. to disable email assign value 'disable'\n ", - "start": 24132, - "end": 24339, - "loc": { - "start": { - "line": 623, - "column": 2 - }, - "end": { - "line": 627, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document invite payload\n * @typedef {Object} DocumentInviteParams\n * @property {string} id - an id of document\n * @property {DocumentInviteSettings} data - document invite settings\n * @property {DocumentInviteOptions} [options] - document invite optional settings\n * @property {string} token - your auth token\n ", - "start": 24343, - "end": 24684, - "loc": { - "start": { - "line": 629, - "column": 2 - }, - "end": { - "line": 636, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document field invite response data\n * @typedef {Object} DocumentFieldInviteResponse\n * @property {string} status - status of invitation, e.g. 'success'\n ", - "start": 24688, - "end": 24866, - "loc": { - "start": { - "line": 638, - "column": 2 - }, - "end": { - "line": 642, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document free form invite response data\n * @typedef {Object} DocumentFreeformInviteResponse\n * @property {string} result - free form invitation result, e.g. 'success'\n * @property {string} id - unique id of invite\n * @property {string} callback_url - url for front-end redirect or 'none'\n ", - "start": 24870, - "end": 25187, - "loc": { - "start": { - "line": 644, - "column": 2 - }, - "end": { - "line": 650, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document invite response data\n * @typedef {DocumentFieldInviteResponse|DocumentFreeformInviteResponse} DocumentInviteResponse\n ", - "start": 25191, - "end": 25340, - "loc": { - "start": { - "line": 652, - "column": 2 - }, - "end": { - "line": 655, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates an invite to sign a document.\n * You can create a simple free form invite(s) or a role-based invite(s).\n * @param {DocumentInviteParams} data - create document invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentInviteResponse)} [callback] - error first node.js callback\n ", - "start": 25344, - "end": 25662, - "loc": { - "start": { - "line": 657, - "column": 2 - }, - "end": { - "line": 662, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 25665, - "end": 25671, - "loc": { - "start": { - "line": 663, - "column": 2 - }, - "end": { - "line": 663, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "invite", - "start": 25672, - "end": 25678, - "loc": { - "start": { - "line": 663, - "column": 9 - }, - "end": { - "line": 663, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25679, - "end": 25680, - "loc": { - "start": { - "line": 663, - "column": 16 - }, - "end": { - "line": 663, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25680, - "end": 25681, - "loc": { - "start": { - "line": 663, - "column": 17 - }, - "end": { - "line": 663, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 25686, - "end": 25688, - "loc": { - "start": { - "line": 664, - "column": 4 - }, - "end": { - "line": 664, - "column": 6 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25688, - "end": 25689, - "loc": { - "start": { - "line": 664, - "column": 6 - }, - "end": { - "line": 664, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 25694, - "end": 25698, - "loc": { - "start": { - "line": 665, - "column": 4 - }, - "end": { - "line": 665, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25698, - "end": 25699, - "loc": { - "start": { - "line": 665, - "column": 8 - }, - "end": { - "line": 665, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "options", - "start": 25704, - "end": 25711, - "loc": { - "start": { - "line": 666, - "column": 4 - }, - "end": { - "line": 666, - "column": 11 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25711, - "end": 25712, - "loc": { - "start": { - "line": 666, - "column": 11 - }, - "end": { - "line": 666, - "column": 12 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25713, - "end": 25714, - "loc": { - "start": { - "line": 666, - "column": 13 - }, - "end": { - "line": 666, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "email", - "start": 25715, - "end": 25720, - "loc": { - "start": { - "line": 666, - "column": 15 - }, - "end": { - "line": 666, - "column": 20 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25721, - "end": 25722, - "loc": { - "start": { - "line": 666, - "column": 21 - }, - "end": { - "line": 666, - "column": 22 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 25723, - "end": 25724, - "loc": { - "start": { - "line": 666, - "column": 23 - }, - "end": { - "line": 666, - "column": 24 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25725, - "end": 25726, - "loc": { - "start": { - "line": 666, - "column": 25 - }, - "end": { - "line": 666, - "column": 26 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25726, - "end": 25727, - "loc": { - "start": { - "line": 666, - "column": 26 - }, - "end": { - "line": 666, - "column": 27 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25727, - "end": 25728, - "loc": { - "start": { - "line": 666, - "column": 27 - }, - "end": { - "line": 666, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 25733, - "end": 25738, - "loc": { - "start": { - "line": 667, - "column": 4 - }, - "end": { - "line": 667, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25738, - "end": 25739, - "loc": { - "start": { - "line": 667, - "column": 9 - }, - "end": { - "line": 667, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25742, - "end": 25743, - "loc": { - "start": { - "line": 668, - "column": 2 - }, - "end": { - "line": 668, - "column": 3 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25743, - "end": 25744, - "loc": { - "start": { - "line": 668, - "column": 3 - }, - "end": { - "line": 668, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 25745, - "end": 25753, - "loc": { - "start": { - "line": 668, - "column": 5 - }, - "end": { - "line": 668, - "column": 13 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25753, - "end": 25754, - "loc": { - "start": { - "line": 668, - "column": 13 - }, - "end": { - "line": 668, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25755, - "end": 25756, - "loc": { - "start": { - "line": 668, - "column": 15 - }, - "end": { - "line": 668, - "column": 16 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 25761, - "end": 25766, - "loc": { - "start": { - "line": 669, - "column": 4 - }, - "end": { - "line": 669, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "inviteData", - "start": 25767, - "end": 25777, - "loc": { - "start": { - "line": 669, - "column": 10 - }, - "end": { - "line": 669, - "column": 20 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 25778, - "end": 25779, - "loc": { - "start": { - "line": 669, - "column": 21 - }, - "end": { - "line": 669, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Object", - "start": 25780, - "end": 25786, - "loc": { - "start": { - "line": 669, - "column": 23 - }, - "end": { - "line": 669, - "column": 29 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25786, - "end": 25787, - "loc": { - "start": { - "line": 669, - "column": 29 - }, - "end": { - "line": 669, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "assign", - "start": 25787, - "end": 25793, - "loc": { - "start": { - "line": 669, - "column": 30 - }, - "end": { - "line": 669, - "column": 36 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25793, - "end": 25794, - "loc": { - "start": { - "line": 669, - "column": 36 - }, - "end": { - "line": 669, - "column": 37 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25794, - "end": 25795, - "loc": { - "start": { - "line": 669, - "column": 37 - }, - "end": { - "line": 669, - "column": 38 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25795, - "end": 25796, - "loc": { - "start": { - "line": 669, - "column": 38 - }, - "end": { - "line": 669, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25796, - "end": 25797, - "loc": { - "start": { - "line": 669, - "column": 39 - }, - "end": { - "line": 669, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 25798, - "end": 25802, - "loc": { - "start": { - "line": 669, - "column": 41 - }, - "end": { - "line": 669, - "column": 45 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25802, - "end": 25803, - "loc": { - "start": { - "line": 669, - "column": 45 - }, - "end": { - "line": 669, - "column": 46 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25804, - "end": 25805, - "loc": { - "start": { - "line": 669, - "column": 47 - }, - "end": { - "line": 669, - "column": 48 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_id", - "start": 25806, - "end": 25817, - "loc": { - "start": { - "line": 669, - "column": 49 - }, - "end": { - "line": 669, - "column": 60 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25817, - "end": 25818, - "loc": { - "start": { - "line": 669, - "column": 60 - }, - "end": { - "line": 669, - "column": 61 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 25819, - "end": 25821, - "loc": { - "start": { - "line": 669, - "column": 62 - }, - "end": { - "line": 669, - "column": 64 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25822, - "end": 25823, - "loc": { - "start": { - "line": 669, - "column": 65 - }, - "end": { - "line": 669, - "column": 66 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25823, - "end": 25824, - "loc": { - "start": { - "line": 669, - "column": 66 - }, - "end": { - "line": 669, - "column": 67 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25824, - "end": 25825, - "loc": { - "start": { - "line": 669, - "column": 67 - }, - "end": { - "line": 669, - "column": 68 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 25831, - "end": 25836, - "loc": { - "start": { - "line": 671, - "column": 4 - }, - "end": { - "line": 671, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 25837, - "end": 25845, - "loc": { - "start": { - "line": 671, - "column": 10 - }, - "end": { - "line": 671, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 25846, - "end": 25847, - "loc": { - "start": { - "line": 671, - "column": 19 - }, - "end": { - "line": 671, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSON", - "start": 25848, - "end": 25852, - "loc": { - "start": { - "line": 671, - "column": 21 - }, - "end": { - "line": 671, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25852, - "end": 25853, - "loc": { - "start": { - "line": 671, - "column": 25 - }, - "end": { - "line": 671, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "stringify", - "start": 25853, - "end": 25862, - "loc": { - "start": { - "line": 671, - "column": 26 - }, - "end": { - "line": 671, - "column": 35 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25862, - "end": 25863, - "loc": { - "start": { - "line": 671, - "column": 35 - }, - "end": { - "line": 671, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "inviteData", - "start": 25863, - "end": 25873, - "loc": { - "start": { - "line": 671, - "column": 36 - }, - "end": { - "line": 671, - "column": 46 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25873, - "end": 25874, - "loc": { - "start": { - "line": 671, - "column": 46 - }, - "end": { - "line": 671, - "column": 47 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25874, - "end": 25875, - "loc": { - "start": { - "line": 671, - "column": 47 - }, - "end": { - "line": 671, - "column": 48 - } - } - }, - { - "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "let", - "start": 25880, - "end": 25883, - "loc": { - "start": { - "line": 672, - "column": 4 - }, - "end": { - "line": 672, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 25884, - "end": 25888, - "loc": { - "start": { - "line": 672, - "column": 8 - }, - "end": { - "line": 672, - "column": 12 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 25889, - "end": 25890, - "loc": { - "start": { - "line": 672, - "column": 13 - }, - "end": { - "line": 672, - "column": 14 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25891, - "end": 25892, - "loc": { - "start": { - "line": 672, - "column": 15 - }, - "end": { - "line": 672, - "column": 16 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/document/", - "start": 25892, - "end": 25902, - "loc": { - "start": { - "line": 672, - "column": 16 - }, - "end": { - "line": 672, - "column": 26 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25902, - "end": 25904, - "loc": { - "start": { - "line": 672, - "column": 26 - }, - "end": { - "line": 672, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 25904, - "end": 25906, - "loc": { - "start": { - "line": 672, - "column": 28 - }, - "end": { - "line": 672, - "column": 30 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25906, - "end": 25907, - "loc": { - "start": { - "line": 672, - "column": 30 - }, - "end": { - "line": 672, - "column": 31 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/invite", - "start": 25907, - "end": 25914, - "loc": { - "start": { - "line": 672, - "column": 31 - }, - "end": { - "line": 672, - "column": 38 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25914, - "end": 25915, - "loc": { - "start": { - "line": 672, - "column": 38 - }, - "end": { - "line": 672, - "column": 39 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25915, - "end": 25916, - "loc": { - "start": { - "line": 672, - "column": 39 - }, - "end": { - "line": 672, - "column": 40 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 25922, - "end": 25924, - "loc": { - "start": { - "line": 674, - "column": 4 - }, - "end": { - "line": 674, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25925, - "end": 25926, - "loc": { - "start": { - "line": 674, - "column": 7 - }, - "end": { - "line": 674, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "email", - "start": 25926, - "end": 25931, - "loc": { - "start": { - "line": 674, - "column": 8 - }, - "end": { - "line": 674, - "column": 13 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 25932, - "end": 25935, - "loc": { - "start": { - "line": 674, - "column": 14 - }, - "end": { - "line": 674, - "column": 17 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "disable", - "start": 25936, - "end": 25945, - "loc": { - "start": { - "line": 674, - "column": 18 - }, - "end": { - "line": 674, - "column": 27 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25945, - "end": 25946, - "loc": { - "start": { - "line": 674, - "column": 27 - }, - "end": { - "line": 674, - "column": 28 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25947, - "end": 25948, - "loc": { - "start": { - "line": 674, - "column": 29 - }, - "end": { - "line": 674, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 25955, - "end": 25959, - "loc": { - "start": { - "line": 675, - "column": 6 - }, - "end": { - "line": 675, - "column": 10 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 25960, - "end": 25961, - "loc": { - "start": { - "line": 675, - "column": 11 - }, - "end": { - "line": 675, - "column": 12 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25962, - "end": 25963, - "loc": { - "start": { - "line": 675, - "column": 13 - }, - "end": { - "line": 675, - "column": 14 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 25963, - "end": 25963, - "loc": { - "start": { - "line": 675, - "column": 14 - }, - "end": { - "line": 675, - "column": 14 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25963, - "end": 25965, - "loc": { - "start": { - "line": 675, - "column": 14 - }, - "end": { - "line": 675, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 25965, - "end": 25969, - "loc": { - "start": { - "line": 675, - "column": 16 - }, - "end": { - "line": 675, - "column": 20 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25969, - "end": 25970, - "loc": { - "start": { - "line": 675, - "column": 20 - }, - "end": { - "line": 675, - "column": 21 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "?email=disable", - "start": 25970, - "end": 25984, - "loc": { - "start": { - "line": 675, - "column": 21 - }, - "end": { - "line": 675, - "column": 35 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25984, - "end": 25985, - "loc": { - "start": { - "line": 675, - "column": 35 - }, - "end": { - "line": 675, - "column": 36 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25985, - "end": 25986, - "loc": { - "start": { - "line": 675, - "column": 36 - }, - "end": { - "line": 675, - "column": 37 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25991, - "end": 25992, - "loc": { - "start": { - "line": 676, - "column": 4 - }, - "end": { - "line": 676, - "column": 5 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 25998, - "end": 26003, - "loc": { - "start": { - "line": 678, - "column": 4 - }, - "end": { - "line": 678, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 26004, - "end": 26007, - "loc": { - "start": { - "line": 678, - "column": 10 - }, - "end": { - "line": 678, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 26008, - "end": 26009, - "loc": { - "start": { - "line": 678, - "column": 14 - }, - "end": { - "line": 678, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 26010, - "end": 26015, - "loc": { - "start": { - "line": 678, - "column": 16 - }, - "end": { - "line": 678, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26022, - "end": 26023, - "loc": { - "start": { - "line": 679, - "column": 6 - }, - "end": { - "line": 679, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 26023, - "end": 26030, - "loc": { - "start": { - "line": 679, - "column": 7 - }, - "end": { - "line": 679, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26030, - "end": 26031, - "loc": { - "start": { - "line": 679, - "column": 14 - }, - "end": { - "line": 679, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 26031, - "end": 26050, - "loc": { - "start": { - "line": 679, - "column": 15 - }, - "end": { - "line": 679, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26050, - "end": 26051, - "loc": { - "start": { - "line": 679, - "column": 34 - }, - "end": { - "line": 679, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26051, - "end": 26052, - "loc": { - "start": { - "line": 679, - "column": 35 - }, - "end": { - "line": 679, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 26061, - "end": 26067, - "loc": { - "start": { - "line": 680, - "column": 8 - }, - "end": { - "line": 680, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26067, - "end": 26068, - "loc": { - "start": { - "line": 680, - "column": 14 - }, - "end": { - "line": 680, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "POST", - "start": 26069, - "end": 26075, - "loc": { - "start": { - "line": 680, - "column": 16 - }, - "end": { - "line": 680, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26075, - "end": 26076, - "loc": { - "start": { - "line": 680, - "column": 22 - }, - "end": { - "line": 680, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 26085, - "end": 26098, - "loc": { - "start": { - "line": 681, - "column": 8 - }, - "end": { - "line": 681, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26098, - "end": 26099, - "loc": { - "start": { - "line": 681, - "column": 21 - }, - "end": { - "line": 681, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26100, - "end": 26101, - "loc": { - "start": { - "line": 681, - "column": 23 - }, - "end": { - "line": 681, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 26112, - "end": 26116, - "loc": { - "start": { - "line": 682, - "column": 10 - }, - "end": { - "line": 682, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26116, - "end": 26117, - "loc": { - "start": { - "line": 682, - "column": 14 - }, - "end": { - "line": 682, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 26118, - "end": 26126, - "loc": { - "start": { - "line": 682, - "column": 16 - }, - "end": { - "line": 682, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26126, - "end": 26127, - "loc": { - "start": { - "line": 682, - "column": 24 - }, - "end": { - "line": 682, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 26138, - "end": 26143, - "loc": { - "start": { - "line": 683, - "column": 10 - }, - "end": { - "line": 683, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26143, - "end": 26144, - "loc": { - "start": { - "line": 683, - "column": 15 - }, - "end": { - "line": 683, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26153, - "end": 26154, - "loc": { - "start": { - "line": 684, - "column": 8 - }, - "end": { - "line": 684, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26154, - "end": 26155, - "loc": { - "start": { - "line": 684, - "column": 9 - }, - "end": { - "line": 684, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 26164, - "end": 26171, - "loc": { - "start": { - "line": 685, - "column": 8 - }, - "end": { - "line": 685, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26171, - "end": 26172, - "loc": { - "start": { - "line": 685, - "column": 15 - }, - "end": { - "line": 685, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26173, - "end": 26174, - "loc": { - "start": { - "line": 685, - "column": 17 - }, - "end": { - "line": 685, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type", - "start": 26185, - "end": 26199, - "loc": { - "start": { - "line": 686, - "column": 10 - }, - "end": { - "line": 686, - "column": 24 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26199, - "end": 26200, - "loc": { - "start": { - "line": 686, - "column": 24 - }, - "end": { - "line": 686, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/json", - "start": 26201, - "end": 26219, - "loc": { - "start": { - "line": 686, - "column": 26 - }, - "end": { - "line": 686, - "column": 44 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26219, - "end": 26220, - "loc": { - "start": { - "line": 686, - "column": 44 - }, - "end": { - "line": 686, - "column": 45 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Length", - "start": 26231, - "end": 26247, - "loc": { - "start": { - "line": 687, - "column": 10 - }, - "end": { - "line": 687, - "column": 26 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26247, - "end": 26248, - "loc": { - "start": { - "line": 687, - "column": 26 - }, - "end": { - "line": 687, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 26249, - "end": 26255, - "loc": { - "start": { - "line": 687, - "column": 28 - }, - "end": { - "line": 687, - "column": 34 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26255, - "end": 26256, - "loc": { - "start": { - "line": 687, - "column": 34 - }, - "end": { - "line": 687, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "byteLength", - "start": 26256, - "end": 26266, - "loc": { - "start": { - "line": 687, - "column": 35 - }, - "end": { - "line": 687, - "column": 45 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26266, - "end": 26267, - "loc": { - "start": { - "line": 687, - "column": 45 - }, - "end": { - "line": 687, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 26267, - "end": 26275, - "loc": { - "start": { - "line": 687, - "column": 46 - }, - "end": { - "line": 687, - "column": 54 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26275, - "end": 26276, - "loc": { - "start": { - "line": 687, - "column": 54 - }, - "end": { - "line": 687, - "column": 55 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26276, - "end": 26277, - "loc": { - "start": { - "line": 687, - "column": 55 - }, - "end": { - "line": 687, - "column": 56 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26286, - "end": 26287, - "loc": { - "start": { - "line": 688, - "column": 8 - }, - "end": { - "line": 688, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26287, - "end": 26288, - "loc": { - "start": { - "line": 688, - "column": 9 - }, - "end": { - "line": 688, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 26297, - "end": 26301, - "loc": { - "start": { - "line": 689, - "column": 8 - }, - "end": { - "line": 689, - "column": 12 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26301, - "end": 26302, - "loc": { - "start": { - "line": 689, - "column": 12 - }, - "end": { - "line": 689, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26309, - "end": 26310, - "loc": { - "start": { - "line": 690, - "column": 6 - }, - "end": { - "line": 690, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26310, - "end": 26311, - "loc": { - "start": { - "line": 690, - "column": 7 - }, - "end": { - "line": 690, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26311, - "end": 26312, - "loc": { - "start": { - "line": 690, - "column": 8 - }, - "end": { - "line": 690, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 26313, - "end": 26328, - "loc": { - "start": { - "line": 690, - "column": 10 - }, - "end": { - "line": 690, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26328, - "end": 26329, - "loc": { - "start": { - "line": 690, - "column": 25 - }, - "end": { - "line": 690, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 26329, - "end": 26337, - "loc": { - "start": { - "line": 690, - "column": 26 - }, - "end": { - "line": 690, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26337, - "end": 26338, - "loc": { - "start": { - "line": 690, - "column": 34 - }, - "end": { - "line": 690, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26338, - "end": 26339, - "loc": { - "start": { - "line": 690, - "column": 35 - }, - "end": { - "line": 690, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26346, - "end": 26347, - "loc": { - "start": { - "line": 691, - "column": 6 - }, - "end": { - "line": 691, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 26347, - "end": 26349, - "loc": { - "start": { - "line": 691, - "column": 7 - }, - "end": { - "line": 691, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26349, - "end": 26350, - "loc": { - "start": { - "line": 691, - "column": 9 - }, - "end": { - "line": 691, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 26350, - "end": 26357, - "loc": { - "start": { - "line": 691, - "column": 10 - }, - "end": { - "line": 691, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26357, - "end": 26358, - "loc": { - "start": { - "line": 691, - "column": 17 - }, - "end": { - "line": 691, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 26359, - "end": 26371, - "loc": { - "start": { - "line": 691, - "column": 19 - }, - "end": { - "line": 691, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26371, - "end": 26372, - "loc": { - "start": { - "line": 691, - "column": 31 - }, - "end": { - "line": 691, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 26372, - "end": 26380, - "loc": { - "start": { - "line": 691, - "column": 32 - }, - "end": { - "line": 691, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26380, - "end": 26381, - "loc": { - "start": { - "line": 691, - "column": 40 - }, - "end": { - "line": 691, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26381, - "end": 26382, - "loc": { - "start": { - "line": 691, - "column": 41 - }, - "end": { - "line": 691, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26382, - "end": 26383, - "loc": { - "start": { - "line": 691, - "column": 42 - }, - "end": { - "line": 691, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 26389, - "end": 26392, - "loc": { - "start": { - "line": 693, - "column": 4 - }, - "end": { - "line": 693, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26392, - "end": 26393, - "loc": { - "start": { - "line": 693, - "column": 7 - }, - "end": { - "line": 693, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "write", - "start": 26393, - "end": 26398, - "loc": { - "start": { - "line": 693, - "column": 8 - }, - "end": { - "line": 693, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26398, - "end": 26399, - "loc": { - "start": { - "line": 693, - "column": 13 - }, - "end": { - "line": 693, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 26399, - "end": 26407, - "loc": { - "start": { - "line": 693, - "column": 14 - }, - "end": { - "line": 693, - "column": 22 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26407, - "end": 26408, - "loc": { - "start": { - "line": 693, - "column": 22 - }, - "end": { - "line": 693, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26408, - "end": 26409, - "loc": { - "start": { - "line": 693, - "column": 23 - }, - "end": { - "line": 693, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 26414, - "end": 26417, - "loc": { - "start": { - "line": 694, - "column": 4 - }, - "end": { - "line": 694, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26417, - "end": 26418, - "loc": { - "start": { - "line": 694, - "column": 7 - }, - "end": { - "line": 694, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 26418, - "end": 26421, - "loc": { - "start": { - "line": 694, - "column": 8 - }, - "end": { - "line": 694, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26421, - "end": 26422, - "loc": { - "start": { - "line": 694, - "column": 11 - }, - "end": { - "line": 694, - "column": 12 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26422, - "end": 26423, - "loc": { - "start": { - "line": 694, - "column": 12 - }, - "end": { - "line": 694, - "column": 13 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26423, - "end": 26424, - "loc": { - "start": { - "line": 694, - "column": 13 - }, - "end": { - "line": 694, - "column": 14 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26427, - "end": 26428, - "loc": { - "start": { - "line": 695, - "column": 2 - }, - "end": { - "line": 695, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancel freeform invite payload\n * @typedef {Object} CancelFreeformInviteParams\n * @property {string} id - unique id of invite\n * @property {string} token - your auth token\n ", - "start": 26432, - "end": 26624, - "loc": { - "start": { - "line": 697, - "column": 2 - }, - "end": { - "line": 702, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancel freeform invite response data\n * @typedef {Object} CancelFreeformInviteResponse\n * @property {string} id - unique id of invite\n ", - "start": 26628, - "end": 26780, - "loc": { - "start": { - "line": 704, - "column": 2 - }, - "end": { - "line": 708, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancels sent freeform invite\n * @param {CancelFreeformInviteParams} data - cancel freeform invite payload\n * @param {function(err: ApiErrorResponse, res: CancelFreeformInviteResponse)} [callback] - error first node.js callback\n ", - "start": 26784, - "end": 27029, - "loc": { - "start": { - "line": 710, - "column": 2 - }, - "end": { - "line": 714, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 27032, - "end": 27038, - "loc": { - "start": { - "line": 715, - "column": 2 - }, - "end": { - "line": 715, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cancelFreeFormInvite", - "start": 27039, - "end": 27059, - "loc": { - "start": { - "line": 715, - "column": 9 - }, - "end": { - "line": 715, - "column": 29 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27060, - "end": 27061, - "loc": { - "start": { - "line": 715, - "column": 30 - }, - "end": { - "line": 715, - "column": 31 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27061, - "end": 27062, - "loc": { - "start": { - "line": 715, - "column": 31 - }, - "end": { - "line": 715, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 27063, - "end": 27065, - "loc": { - "start": { - "line": 715, - "column": 33 - }, - "end": { - "line": 715, - "column": 35 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27065, - "end": 27066, - "loc": { - "start": { - "line": 715, - "column": 35 - }, - "end": { - "line": 715, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 27067, - "end": 27072, - "loc": { - "start": { - "line": 715, - "column": 37 - }, - "end": { - "line": 715, - "column": 42 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27073, - "end": 27074, - "loc": { - "start": { - "line": 715, - "column": 43 - }, - "end": { - "line": 715, - "column": 44 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27074, - "end": 27075, - "loc": { - "start": { - "line": 715, - "column": 44 - }, - "end": { - "line": 715, - "column": 45 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 27076, - "end": 27084, - "loc": { - "start": { - "line": 715, - "column": 46 - }, - "end": { - "line": 715, - "column": 54 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27084, - "end": 27085, - "loc": { - "start": { - "line": 715, - "column": 54 - }, - "end": { - "line": 715, - "column": 55 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27086, - "end": 27087, - "loc": { - "start": { - "line": 715, - "column": 56 - }, - "end": { - "line": 715, - "column": 57 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 27092, - "end": 27097, - "loc": { - "start": { - "line": 716, - "column": 4 - }, - "end": { - "line": 716, - "column": 9 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27104, - "end": 27105, - "loc": { - "start": { - "line": 717, - "column": 6 - }, - "end": { - "line": 717, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 27105, - "end": 27112, - "loc": { - "start": { - "line": 717, - "column": 7 - }, - "end": { - "line": 717, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27112, - "end": 27113, - "loc": { - "start": { - "line": 717, - "column": 14 - }, - "end": { - "line": 717, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 27113, - "end": 27132, - "loc": { - "start": { - "line": 717, - "column": 15 - }, - "end": { - "line": 717, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27132, - "end": 27133, - "loc": { - "start": { - "line": 717, - "column": 34 - }, - "end": { - "line": 717, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27133, - "end": 27134, - "loc": { - "start": { - "line": 717, - "column": 35 - }, - "end": { - "line": 717, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 27143, - "end": 27149, - "loc": { - "start": { - "line": 718, - "column": 8 - }, - "end": { - "line": 718, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27149, - "end": 27150, - "loc": { - "start": { - "line": 718, - "column": 14 - }, - "end": { - "line": 718, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "PUT", - "start": 27151, - "end": 27156, - "loc": { - "start": { - "line": 718, - "column": 16 - }, - "end": { - "line": 718, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27156, - "end": 27157, - "loc": { - "start": { - "line": 718, - "column": 21 - }, - "end": { - "line": 718, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 27166, - "end": 27170, - "loc": { - "start": { - "line": 719, - "column": 8 - }, - "end": { - "line": 719, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27170, - "end": 27171, - "loc": { - "start": { - "line": 719, - "column": 12 - }, - "end": { - "line": 719, - "column": 13 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27172, - "end": 27173, - "loc": { - "start": { - "line": 719, - "column": 14 - }, - "end": { - "line": 719, - "column": 15 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/invite/", - "start": 27173, - "end": 27181, - "loc": { - "start": { - "line": 719, - "column": 15 - }, - "end": { - "line": 719, - "column": 23 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27181, - "end": 27183, - "loc": { - "start": { - "line": 719, - "column": 23 - }, - "end": { - "line": 719, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 27183, - "end": 27185, - "loc": { - "start": { - "line": 719, - "column": 25 - }, - "end": { - "line": 719, - "column": 27 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27185, - "end": 27186, - "loc": { - "start": { - "line": 719, - "column": 27 - }, - "end": { - "line": 719, - "column": 28 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/cancel", - "start": 27186, - "end": 27193, - "loc": { - "start": { - "line": 719, - "column": 28 - }, - "end": { - "line": 719, - "column": 35 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27193, - "end": 27194, - "loc": { - "start": { - "line": 719, - "column": 35 - }, - "end": { - "line": 719, - "column": 36 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27194, - "end": 27195, - "loc": { - "start": { - "line": 719, - "column": 36 - }, - "end": { - "line": 719, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 27204, - "end": 27217, - "loc": { - "start": { - "line": 720, - "column": 8 - }, - "end": { - "line": 720, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27217, - "end": 27218, - "loc": { - "start": { - "line": 720, - "column": 21 - }, - "end": { - "line": 720, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27219, - "end": 27220, - "loc": { - "start": { - "line": 720, - "column": 23 - }, - "end": { - "line": 720, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 27231, - "end": 27235, - "loc": { - "start": { - "line": 721, - "column": 10 - }, - "end": { - "line": 721, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27235, - "end": 27236, - "loc": { - "start": { - "line": 721, - "column": 14 - }, - "end": { - "line": 721, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 27237, - "end": 27245, - "loc": { - "start": { - "line": 721, - "column": 16 - }, - "end": { - "line": 721, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27245, - "end": 27246, - "loc": { - "start": { - "line": 721, - "column": 24 - }, - "end": { - "line": 721, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 27257, - "end": 27262, - "loc": { - "start": { - "line": 722, - "column": 10 - }, - "end": { - "line": 722, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27262, - "end": 27263, - "loc": { - "start": { - "line": 722, - "column": 15 - }, - "end": { - "line": 722, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27272, - "end": 27273, - "loc": { - "start": { - "line": 723, - "column": 8 - }, - "end": { - "line": 723, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27273, - "end": 27274, - "loc": { - "start": { - "line": 723, - "column": 9 - }, - "end": { - "line": 723, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27281, - "end": 27282, - "loc": { - "start": { - "line": 724, - "column": 6 - }, - "end": { - "line": 724, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27282, - "end": 27283, - "loc": { - "start": { - "line": 724, - "column": 7 - }, - "end": { - "line": 724, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27283, - "end": 27284, - "loc": { - "start": { - "line": 724, - "column": 8 - }, - "end": { - "line": 724, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 27285, - "end": 27300, - "loc": { - "start": { - "line": 724, - "column": 10 - }, - "end": { - "line": 724, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27300, - "end": 27301, - "loc": { - "start": { - "line": 724, - "column": 25 - }, - "end": { - "line": 724, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 27301, - "end": 27309, - "loc": { - "start": { - "line": 724, - "column": 26 - }, - "end": { - "line": 724, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27309, - "end": 27310, - "loc": { - "start": { - "line": 724, - "column": 34 - }, - "end": { - "line": 724, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27310, - "end": 27311, - "loc": { - "start": { - "line": 724, - "column": 35 - }, - "end": { - "line": 724, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27318, - "end": 27319, - "loc": { - "start": { - "line": 725, - "column": 6 - }, - "end": { - "line": 725, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 27319, - "end": 27321, - "loc": { - "start": { - "line": 725, - "column": 7 - }, - "end": { - "line": 725, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27321, - "end": 27322, - "loc": { - "start": { - "line": 725, - "column": 9 - }, - "end": { - "line": 725, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 27322, - "end": 27329, - "loc": { - "start": { - "line": 725, - "column": 10 - }, - "end": { - "line": 725, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27329, - "end": 27330, - "loc": { - "start": { - "line": 725, - "column": 17 - }, - "end": { - "line": 725, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 27331, - "end": 27343, - "loc": { - "start": { - "line": 725, - "column": 19 - }, - "end": { - "line": 725, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27343, - "end": 27344, - "loc": { - "start": { - "line": 725, - "column": 31 - }, - "end": { - "line": 725, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 27344, - "end": 27352, - "loc": { - "start": { - "line": 725, - "column": 32 - }, - "end": { - "line": 725, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27352, - "end": 27353, - "loc": { - "start": { - "line": 725, - "column": 40 - }, - "end": { - "line": 725, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27353, - "end": 27354, - "loc": { - "start": { - "line": 725, - "column": 41 - }, - "end": { - "line": 725, - "column": 42 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27361, - "end": 27362, - "loc": { - "start": { - "line": 726, - "column": 6 - }, - "end": { - "line": 726, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 27362, - "end": 27365, - "loc": { - "start": { - "line": 726, - "column": 7 - }, - "end": { - "line": 726, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27365, - "end": 27366, - "loc": { - "start": { - "line": 726, - "column": 10 - }, - "end": { - "line": 726, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27366, - "end": 27367, - "loc": { - "start": { - "line": 726, - "column": 11 - }, - "end": { - "line": 726, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27367, - "end": 27368, - "loc": { - "start": { - "line": 726, - "column": 12 - }, - "end": { - "line": 726, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27371, - "end": 27372, - "loc": { - "start": { - "line": 727, - "column": 2 - }, - "end": { - "line": 727, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancel document field invite payload\n * @typedef {Object} DocumentFieldInviteCancelParams\n * @property {string} id - an id of document\n * @property {string} token - your auth token\n ", - "start": 27376, - "end": 27577, - "loc": { - "start": { - "line": 729, - "column": 2 - }, - "end": { - "line": 734, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancel document field invite response data\n * @typedef {Object} DocumentFieldInviteCancelResponse\n * @property {string} status - status of field invite cancellation, e.g. 'success'\n ", - "start": 27581, - "end": 27780, - "loc": { - "start": { - "line": 736, - "column": 2 - }, - "end": { - "line": 740, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancels an invite to a document\n * @param {DocumentFieldInviteCancelParams} data - cancel field invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentFieldInviteCancelResponse)} [callback] - error first node.js callback\n ", - "start": 27784, - "end": 28039, - "loc": { - "start": { - "line": 742, - "column": 2 - }, - "end": { - "line": 746, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 28042, - "end": 28048, - "loc": { - "start": { - "line": 747, - "column": 2 - }, - "end": { - "line": 747, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cancelFieldInvite", - "start": 28049, - "end": 28066, - "loc": { - "start": { - "line": 747, - "column": 9 - }, - "end": { - "line": 747, - "column": 26 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28067, - "end": 28068, - "loc": { - "start": { - "line": 747, - "column": 27 - }, - "end": { - "line": 747, - "column": 28 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28068, - "end": 28069, - "loc": { - "start": { - "line": 747, - "column": 28 - }, - "end": { - "line": 747, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 28070, - "end": 28072, - "loc": { - "start": { - "line": 747, - "column": 30 - }, - "end": { - "line": 747, - "column": 32 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28072, - "end": 28073, - "loc": { - "start": { - "line": 747, - "column": 32 - }, - "end": { - "line": 747, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 28074, - "end": 28079, - "loc": { - "start": { - "line": 747, - "column": 34 - }, - "end": { - "line": 747, - "column": 39 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28080, - "end": 28081, - "loc": { - "start": { - "line": 747, - "column": 40 - }, - "end": { - "line": 747, - "column": 41 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28081, - "end": 28082, - "loc": { - "start": { - "line": 747, - "column": 41 - }, - "end": { - "line": 747, - "column": 42 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 28083, - "end": 28091, - "loc": { - "start": { - "line": 747, - "column": 43 - }, - "end": { - "line": 747, - "column": 51 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28091, - "end": 28092, - "loc": { - "start": { - "line": 747, - "column": 51 - }, - "end": { - "line": 747, - "column": 52 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28093, - "end": 28094, - "loc": { - "start": { - "line": 747, - "column": 53 - }, - "end": { - "line": 747, - "column": 54 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 28099, - "end": 28104, - "loc": { - "start": { - "line": 748, - "column": 4 - }, - "end": { - "line": 748, - "column": 9 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28111, - "end": 28112, - "loc": { - "start": { - "line": 749, - "column": 6 - }, - "end": { - "line": 749, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 28112, - "end": 28119, - "loc": { - "start": { - "line": 749, - "column": 7 - }, - "end": { - "line": 749, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28119, - "end": 28120, - "loc": { - "start": { - "line": 749, - "column": 14 - }, - "end": { - "line": 749, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 28120, - "end": 28139, - "loc": { - "start": { - "line": 749, - "column": 15 - }, - "end": { - "line": 749, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28139, - "end": 28140, - "loc": { - "start": { - "line": 749, - "column": 34 - }, - "end": { - "line": 749, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28140, - "end": 28141, - "loc": { - "start": { - "line": 749, - "column": 35 - }, - "end": { - "line": 749, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 28150, - "end": 28156, - "loc": { - "start": { - "line": 750, - "column": 8 - }, - "end": { - "line": 750, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28156, - "end": 28157, - "loc": { - "start": { - "line": 750, - "column": 14 - }, - "end": { - "line": 750, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "PUT", - "start": 28158, - "end": 28163, - "loc": { - "start": { - "line": 750, - "column": 16 - }, - "end": { - "line": 750, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28163, - "end": 28164, - "loc": { - "start": { - "line": 750, - "column": 21 - }, - "end": { - "line": 750, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 28173, - "end": 28177, - "loc": { - "start": { - "line": 751, - "column": 8 - }, - "end": { - "line": 751, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28177, - "end": 28178, - "loc": { - "start": { - "line": 751, - "column": 12 - }, - "end": { - "line": 751, - "column": 13 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28179, - "end": 28180, - "loc": { - "start": { - "line": 751, - "column": 14 - }, - "end": { - "line": 751, - "column": 15 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/document/", - "start": 28180, - "end": 28190, - "loc": { - "start": { - "line": 751, - "column": 15 - }, - "end": { - "line": 751, - "column": 25 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28190, - "end": 28192, - "loc": { - "start": { - "line": 751, - "column": 25 - }, - "end": { - "line": 751, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 28192, - "end": 28194, - "loc": { - "start": { - "line": 751, - "column": 27 - }, - "end": { - "line": 751, - "column": 29 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28194, - "end": 28195, - "loc": { - "start": { - "line": 751, - "column": 29 - }, - "end": { - "line": 751, - "column": 30 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/fieldinvitecancel", - "start": 28195, - "end": 28213, - "loc": { - "start": { - "line": 751, - "column": 30 - }, - "end": { - "line": 751, - "column": 48 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28213, - "end": 28214, - "loc": { - "start": { - "line": 751, - "column": 48 - }, - "end": { - "line": 751, - "column": 49 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28214, - "end": 28215, - "loc": { - "start": { - "line": 751, - "column": 49 - }, - "end": { - "line": 751, - "column": 50 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 28224, - "end": 28237, - "loc": { - "start": { - "line": 752, - "column": 8 - }, - "end": { - "line": 752, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28237, - "end": 28238, - "loc": { - "start": { - "line": 752, - "column": 21 - }, - "end": { - "line": 752, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28239, - "end": 28240, - "loc": { - "start": { - "line": 752, - "column": 23 - }, - "end": { - "line": 752, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 28251, - "end": 28255, - "loc": { - "start": { - "line": 753, - "column": 10 - }, - "end": { - "line": 753, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28255, - "end": 28256, - "loc": { - "start": { - "line": 753, - "column": 14 - }, - "end": { - "line": 753, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 28257, - "end": 28265, - "loc": { - "start": { - "line": 753, - "column": 16 - }, - "end": { - "line": 753, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28265, - "end": 28266, - "loc": { - "start": { - "line": 753, - "column": 24 - }, - "end": { - "line": 753, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 28277, - "end": 28282, - "loc": { - "start": { - "line": 754, - "column": 10 - }, - "end": { - "line": 754, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28282, - "end": 28283, - "loc": { - "start": { - "line": 754, - "column": 15 - }, - "end": { - "line": 754, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28292, - "end": 28293, - "loc": { - "start": { - "line": 755, - "column": 8 - }, - "end": { - "line": 755, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28293, - "end": 28294, - "loc": { - "start": { - "line": 755, - "column": 9 - }, - "end": { - "line": 755, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28301, - "end": 28302, - "loc": { - "start": { - "line": 756, - "column": 6 - }, - "end": { - "line": 756, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28302, - "end": 28303, - "loc": { - "start": { - "line": 756, - "column": 7 - }, - "end": { - "line": 756, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28303, - "end": 28304, - "loc": { - "start": { - "line": 756, - "column": 8 - }, - "end": { - "line": 756, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 28305, - "end": 28320, - "loc": { - "start": { - "line": 756, - "column": 10 - }, - "end": { - "line": 756, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28320, - "end": 28321, - "loc": { - "start": { - "line": 756, - "column": 25 - }, - "end": { - "line": 756, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 28321, - "end": 28329, - "loc": { - "start": { - "line": 756, - "column": 26 - }, - "end": { - "line": 756, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28329, - "end": 28330, - "loc": { - "start": { - "line": 756, - "column": 34 - }, - "end": { - "line": 756, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28330, - "end": 28331, - "loc": { - "start": { - "line": 756, - "column": 35 - }, - "end": { - "line": 756, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28338, - "end": 28339, - "loc": { - "start": { - "line": 757, - "column": 6 - }, - "end": { - "line": 757, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 28339, - "end": 28341, - "loc": { - "start": { - "line": 757, - "column": 7 - }, - "end": { - "line": 757, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28341, - "end": 28342, - "loc": { - "start": { - "line": 757, - "column": 9 - }, - "end": { - "line": 757, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 28342, - "end": 28349, - "loc": { - "start": { - "line": 757, - "column": 10 - }, - "end": { - "line": 757, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28349, - "end": 28350, - "loc": { - "start": { - "line": 757, - "column": 17 - }, - "end": { - "line": 757, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 28351, - "end": 28363, - "loc": { - "start": { - "line": 757, - "column": 19 - }, - "end": { - "line": 757, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28363, - "end": 28364, - "loc": { - "start": { - "line": 757, - "column": 31 - }, - "end": { - "line": 757, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 28364, - "end": 28372, - "loc": { - "start": { - "line": 757, - "column": 32 - }, - "end": { - "line": 757, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28372, - "end": 28373, - "loc": { - "start": { - "line": 757, - "column": 40 - }, - "end": { - "line": 757, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28373, - "end": 28374, - "loc": { - "start": { - "line": 757, - "column": 41 - }, - "end": { - "line": 757, - "column": 42 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28381, - "end": 28382, - "loc": { - "start": { - "line": 758, - "column": 6 - }, - "end": { - "line": 758, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 28382, - "end": 28385, - "loc": { - "start": { - "line": 758, - "column": 7 - }, - "end": { - "line": 758, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28385, - "end": 28386, - "loc": { - "start": { - "line": 758, - "column": 10 - }, - "end": { - "line": 758, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28386, - "end": 28387, - "loc": { - "start": { - "line": 758, - "column": 11 - }, - "end": { - "line": 758, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28387, - "end": 28388, - "loc": { - "start": { - "line": 758, - "column": 12 - }, - "end": { - "line": 758, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28391, - "end": 28392, - "loc": { - "start": { - "line": 759, - "column": 2 - }, - "end": { - "line": 759, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Cancels an invite to a document\n * @deprecated use Document.cancelFieldInvite instead of this\n * @param {DocumentFieldInviteCancelParams} data - cancel field invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentFieldInviteCancelResponse)} [callback] - error first node.js callback\n ", - "start": 28396, - "end": 28715, - "loc": { - "start": { - "line": 761, - "column": 2 - }, - "end": { - "line": 766, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 28718, - "end": 28724, - "loc": { - "start": { - "line": 767, - "column": 2 - }, - "end": { - "line": 767, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cancelInvite", - "start": 28725, - "end": 28737, - "loc": { - "start": { - "line": 767, - "column": 9 - }, - "end": { - "line": 767, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28738, - "end": 28739, - "loc": { - "start": { - "line": 767, - "column": 22 - }, - "end": { - "line": 767, - "column": 23 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28739, - "end": 28740, - "loc": { - "start": { - "line": 767, - "column": 23 - }, - "end": { - "line": 767, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 28741, - "end": 28743, - "loc": { - "start": { - "line": 767, - "column": 25 - }, - "end": { - "line": 767, - "column": 27 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28743, - "end": 28744, - "loc": { - "start": { - "line": 767, - "column": 27 - }, - "end": { - "line": 767, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 28745, - "end": 28750, - "loc": { - "start": { - "line": 767, - "column": 29 - }, - "end": { - "line": 767, - "column": 34 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28751, - "end": 28752, - "loc": { - "start": { - "line": 767, - "column": 35 - }, - "end": { - "line": 767, - "column": 36 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28752, - "end": 28753, - "loc": { - "start": { - "line": 767, - "column": 36 - }, - "end": { - "line": 767, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 28754, - "end": 28762, - "loc": { - "start": { - "line": 767, - "column": 38 - }, - "end": { - "line": 767, - "column": 46 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28762, - "end": 28763, - "loc": { - "start": { - "line": 767, - "column": 46 - }, - "end": { - "line": 767, - "column": 47 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28764, - "end": 28765, - "loc": { - "start": { - "line": 767, - "column": 48 - }, - "end": { - "line": 767, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Document", - "start": 28770, - "end": 28778, - "loc": { - "start": { - "line": 768, - "column": 4 - }, - "end": { - "line": 768, - "column": 12 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28778, - "end": 28779, - "loc": { - "start": { - "line": 768, - "column": 12 - }, - "end": { - "line": 768, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cancelFieldInvite", - "start": 28779, - "end": 28796, - "loc": { - "start": { - "line": 768, - "column": 13 - }, - "end": { - "line": 768, - "column": 30 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28796, - "end": 28797, - "loc": { - "start": { - "line": 768, - "column": 30 - }, - "end": { - "line": 768, - "column": 31 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28797, - "end": 28798, - "loc": { - "start": { - "line": 768, - "column": 31 - }, - "end": { - "line": 768, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 28805, - "end": 28807, - "loc": { - "start": { - "line": 769, - "column": 6 - }, - "end": { - "line": 769, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28807, - "end": 28808, - "loc": { - "start": { - "line": 769, - "column": 8 - }, - "end": { - "line": 769, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 28815, - "end": 28820, - "loc": { - "start": { - "line": 770, - "column": 6 - }, - "end": { - "line": 770, - "column": 11 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28820, - "end": 28821, - "loc": { - "start": { - "line": 770, - "column": 11 - }, - "end": { - "line": 770, - "column": 12 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28826, - "end": 28827, - "loc": { - "start": { - "line": 771, - "column": 4 - }, - "end": { - "line": 771, - "column": 5 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28827, - "end": 28828, - "loc": { - "start": { - "line": 771, - "column": 5 - }, - "end": { - "line": 771, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 28829, - "end": 28837, - "loc": { - "start": { - "line": 771, - "column": 7 - }, - "end": { - "line": 771, - "column": 15 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28837, - "end": 28838, - "loc": { - "start": { - "line": 771, - "column": 15 - }, - "end": { - "line": 771, - "column": 16 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28838, - "end": 28839, - "loc": { - "start": { - "line": 771, - "column": 16 - }, - "end": { - "line": 771, - "column": 17 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28842, - "end": 28843, - "loc": { - "start": { - "line": 772, - "column": 2 - }, - "end": { - "line": 772, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Merge documents optional settings\n * @typedef {Object} DocumentMergeOptions\n * @property {boolean} [removeOriginalDocuments=false] - if true original documents will be removed\n ", - "start": 28847, - "end": 29041, - "loc": { - "start": { - "line": 774, - "column": 2 - }, - "end": { - "line": 778, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Merge documents payload\n * @typedef {Object} DocumentMergeParams\n * @property {string} token - your auth token\n * @property {string} name - new name for merged document\n * @property {string[]} document_ids - an array of document IDs\n * @property {DocumentMergeOptions} options - merge documents optional settings\n ", - "start": 29045, - "end": 29382, - "loc": { - "start": { - "line": 780, - "column": 2 - }, - "end": { - "line": 787, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Merge documents response data\n * @typedef {Object} DocumentMergeResponse\n * @property {string} document_id - an ID of merged document\n ", - "start": 29386, - "end": 29538, - "loc": { - "start": { - "line": 789, - "column": 2 - }, - "end": { - "line": 793, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Merges existing documents into one.\n * By default original documents are not removed after merging. To remove original documents set `removeOriginalDocuments` option to `true`.\n * @param {DocumentMergeParams} data - merge documents payload\n * @param {function(err: ApiErrorResponse, res: DocumentMergeResponse)} [originalCallback] - error first node.js callback\n ", - "start": 29542, - "end": 29924, - "loc": { - "start": { - "line": 795, - "column": 2 - }, - "end": { - "line": 800, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 29927, - "end": 29933, - "loc": { - "start": { - "line": 801, - "column": 2 - }, - "end": { - "line": 801, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "merge", - "start": 29934, - "end": 29939, - "loc": { - "start": { - "line": 801, - "column": 9 - }, - "end": { - "line": 801, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 29940, - "end": 29941, - "loc": { - "start": { - "line": 801, - "column": 15 - }, - "end": { - "line": 801, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 29941, - "end": 29942, - "loc": { - "start": { - "line": 801, - "column": 16 - }, - "end": { - "line": 801, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "name", - "start": 29947, - "end": 29951, - "loc": { - "start": { - "line": 802, - "column": 4 - }, - "end": { - "line": 802, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29951, - "end": 29952, - "loc": { - "start": { - "line": 802, - "column": 8 - }, - "end": { - "line": 802, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_ids", - "start": 29957, - "end": 29969, - "loc": { - "start": { - "line": 803, - "column": 4 - }, - "end": { - "line": 803, - "column": 16 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29969, - "end": 29970, - "loc": { - "start": { - "line": 803, - "column": 16 - }, - "end": { - "line": 803, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "options", - "start": 29975, - "end": 29982, - "loc": { - "start": { - "line": 804, - "column": 4 - }, - "end": { - "line": 804, - "column": 11 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29982, - "end": 29983, - "loc": { - "start": { - "line": 804, - "column": 11 - }, - "end": { - "line": 804, - "column": 12 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 29984, - "end": 29985, - "loc": { - "start": { - "line": 804, - "column": 13 - }, - "end": { - "line": 804, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "removeOriginalDocuments", - "start": 29986, - "end": 30009, - "loc": { - "start": { - "line": 804, - "column": 15 - }, - "end": { - "line": 804, - "column": 38 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 30010, - "end": 30011, - "loc": { - "start": { - "line": 804, - "column": 39 - }, - "end": { - "line": 804, - "column": 40 - } - } - }, - { - "type": { - "label": "false", - "keyword": "false", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "false", - "start": 30012, - "end": 30017, - "loc": { - "start": { - "line": 804, - "column": 41 - }, - "end": { - "line": 804, - "column": 46 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30018, - "end": 30019, - "loc": { - "start": { - "line": 804, - "column": 47 - }, - "end": { - "line": 804, - "column": 48 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 30020, - "end": 30021, - "loc": { - "start": { - "line": 804, - "column": 49 - }, - "end": { - "line": 804, - "column": 50 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30022, - "end": 30023, - "loc": { - "start": { - "line": 804, - "column": 51 - }, - "end": { - "line": 804, - "column": 52 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30023, - "end": 30024, - "loc": { - "start": { - "line": 804, - "column": 52 - }, - "end": { - "line": 804, - "column": 53 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30024, - "end": 30025, - "loc": { - "start": { - "line": 804, - "column": 53 - }, - "end": { - "line": 804, - "column": 54 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 30030, - "end": 30035, - "loc": { - "start": { - "line": 805, - "column": 4 - }, - "end": { - "line": 805, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30035, - "end": 30036, - "loc": { - "start": { - "line": 805, - "column": 9 - }, - "end": { - "line": 805, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30039, - "end": 30040, - "loc": { - "start": { - "line": 806, - "column": 2 - }, - "end": { - "line": 806, - "column": 3 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30040, - "end": 30041, - "loc": { - "start": { - "line": 806, - "column": 3 - }, - "end": { - "line": 806, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "originalCallback", - "start": 30042, - "end": 30058, - "loc": { - "start": { - "line": 806, - "column": 5 - }, - "end": { - "line": 806, - "column": 21 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30058, - "end": 30059, - "loc": { - "start": { - "line": 806, - "column": 21 - }, - "end": { - "line": 806, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30060, - "end": 30061, - "loc": { - "start": { - "line": 806, - "column": 23 - }, - "end": { - "line": 806, - "column": 24 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 30066, - "end": 30071, - "loc": { - "start": { - "line": 807, - "column": 4 - }, - "end": { - "line": 807, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 30072, - "end": 30080, - "loc": { - "start": { - "line": 807, - "column": 10 - }, - "end": { - "line": 807, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 30081, - "end": 30082, - "loc": { - "start": { - "line": 807, - "column": 19 - }, - "end": { - "line": 807, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSON", - "start": 30083, - "end": 30087, - "loc": { - "start": { - "line": 807, - "column": 21 - }, - "end": { - "line": 807, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30087, - "end": 30088, - "loc": { - "start": { - "line": 807, - "column": 25 - }, - "end": { - "line": 807, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "stringify", - "start": 30088, - "end": 30097, - "loc": { - "start": { - "line": 807, - "column": 26 - }, - "end": { - "line": 807, - "column": 35 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30097, - "end": 30098, - "loc": { - "start": { - "line": 807, - "column": 35 - }, - "end": { - "line": 807, - "column": 36 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30098, - "end": 30099, - "loc": { - "start": { - "line": 807, - "column": 36 - }, - "end": { - "line": 807, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "upload_document", - "start": 30106, - "end": 30121, - "loc": { - "start": { - "line": 808, - "column": 6 - }, - "end": { - "line": 808, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30121, - "end": 30122, - "loc": { - "start": { - "line": 808, - "column": 21 - }, - "end": { - "line": 808, - "column": 22 - } - } - }, - { - "type": { - "label": "true", - "keyword": "true", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "true", - "start": 30123, - "end": 30127, - "loc": { - "start": { - "line": 808, - "column": 23 - }, - "end": { - "line": 808, - "column": 27 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30127, - "end": 30128, - "loc": { - "start": { - "line": 808, - "column": 27 - }, - "end": { - "line": 808, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_ids", - "start": 30135, - "end": 30147, - "loc": { - "start": { - "line": 809, - "column": 6 - }, - "end": { - "line": 809, - "column": 18 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30147, - "end": 30148, - "loc": { - "start": { - "line": 809, - "column": 18 - }, - "end": { - "line": 809, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "name", - "start": 30155, - "end": 30159, - "loc": { - "start": { - "line": 810, - "column": 6 - }, - "end": { - "line": 810, - "column": 10 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30159, - "end": 30160, - "loc": { - "start": { - "line": 810, - "column": 10 - }, - "end": { - "line": 810, - "column": 11 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30165, - "end": 30166, - "loc": { - "start": { - "line": 811, - "column": 4 - }, - "end": { - "line": 811, - "column": 5 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30166, - "end": 30167, - "loc": { - "start": { - "line": 811, - "column": 5 - }, - "end": { - "line": 811, - "column": 6 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30167, - "end": 30168, - "loc": { - "start": { - "line": 811, - "column": 6 - }, - "end": { - "line": 811, - "column": 7 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 30174, - "end": 30179, - "loc": { - "start": { - "line": 813, - "column": 4 - }, - "end": { - "line": 813, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callbackWithDocumentDeletion", - "start": 30180, - "end": 30208, - "loc": { - "start": { - "line": 813, - "column": 10 - }, - "end": { - "line": 813, - "column": 38 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 30209, - "end": 30210, - "loc": { - "start": { - "line": 813, - "column": 39 - }, - "end": { - "line": 813, - "column": 40 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30211, - "end": 30212, - "loc": { - "start": { - "line": 813, - "column": 41 - }, - "end": { - "line": 813, - "column": 42 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "mergeErr", - "start": 30212, - "end": 30220, - "loc": { - "start": { - "line": 813, - "column": 42 - }, - "end": { - "line": 813, - "column": 50 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30220, - "end": 30221, - "loc": { - "start": { - "line": 813, - "column": 50 - }, - "end": { - "line": 813, - "column": 51 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "mergeRes", - "start": 30222, - "end": 30230, - "loc": { - "start": { - "line": 813, - "column": 52 - }, - "end": { - "line": 813, - "column": 60 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30230, - "end": 30231, - "loc": { - "start": { - "line": 813, - "column": 60 - }, - "end": { - "line": 813, - "column": 61 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30232, - "end": 30234, - "loc": { - "start": { - "line": 813, - "column": 62 - }, - "end": { - "line": 813, - "column": 64 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30235, - "end": 30236, - "loc": { - "start": { - "line": 813, - "column": 65 - }, - "end": { - "line": 813, - "column": 66 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 30243, - "end": 30245, - "loc": { - "start": { - "line": 814, - "column": 6 - }, - "end": { - "line": 814, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30246, - "end": 30247, - "loc": { - "start": { - "line": 814, - "column": 9 - }, - "end": { - "line": 814, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "mergeErr", - "start": 30247, - "end": 30255, - "loc": { - "start": { - "line": 814, - "column": 10 - }, - "end": { - "line": 814, - "column": 18 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30255, - "end": 30256, - "loc": { - "start": { - "line": 814, - "column": 18 - }, - "end": { - "line": 814, - "column": 19 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30257, - "end": 30258, - "loc": { - "start": { - "line": 814, - "column": 20 - }, - "end": { - "line": 814, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "originalCallback", - "start": 30267, - "end": 30283, - "loc": { - "start": { - "line": 815, - "column": 8 - }, - "end": { - "line": 815, - "column": 24 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30283, - "end": 30284, - "loc": { - "start": { - "line": 815, - "column": 24 - }, - "end": { - "line": 815, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "mergeErr", - "start": 30284, - "end": 30292, - "loc": { - "start": { - "line": 815, - "column": 25 - }, - "end": { - "line": 815, - "column": 33 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30292, - "end": 30293, - "loc": { - "start": { - "line": 815, - "column": 33 - }, - "end": { - "line": 815, - "column": 34 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30293, - "end": 30294, - "loc": { - "start": { - "line": 815, - "column": 34 - }, - "end": { - "line": 815, - "column": 35 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 30303, - "end": 30309, - "loc": { - "start": { - "line": 816, - "column": 8 - }, - "end": { - "line": 816, - "column": 14 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30309, - "end": 30310, - "loc": { - "start": { - "line": 816, - "column": 14 - }, - "end": { - "line": 816, - "column": 15 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30317, - "end": 30318, - "loc": { - "start": { - "line": 817, - "column": 6 - }, - "end": { - "line": 817, - "column": 7 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 30319, - "end": 30323, - "loc": { - "start": { - "line": 817, - "column": 8 - }, - "end": { - "line": 817, - "column": 12 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30324, - "end": 30325, - "loc": { - "start": { - "line": 817, - "column": 13 - }, - "end": { - "line": 817, - "column": 14 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 30335, - "end": 30340, - "loc": { - "start": { - "line": 819, - "column": 8 - }, - "end": { - "line": 819, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "removeDocument", - "start": 30341, - "end": 30355, - "loc": { - "start": { - "line": 819, - "column": 14 - }, - "end": { - "line": 819, - "column": 28 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 30356, - "end": 30357, - "loc": { - "start": { - "line": 819, - "column": 29 - }, - "end": { - "line": 819, - "column": 30 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30358, - "end": 30359, - "loc": { - "start": { - "line": 819, - "column": 31 - }, - "end": { - "line": 819, - "column": 32 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30359, - "end": 30360, - "loc": { - "start": { - "line": 819, - "column": 32 - }, - "end": { - "line": 819, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 30361, - "end": 30363, - "loc": { - "start": { - "line": 819, - "column": 34 - }, - "end": { - "line": 819, - "column": 36 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30364, - "end": 30365, - "loc": { - "start": { - "line": 819, - "column": 37 - }, - "end": { - "line": 819, - "column": 38 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30365, - "end": 30366, - "loc": { - "start": { - "line": 819, - "column": 38 - }, - "end": { - "line": 819, - "column": 39 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30367, - "end": 30369, - "loc": { - "start": { - "line": 819, - "column": 40 - }, - "end": { - "line": 819, - "column": 42 - } - } - }, - { - "type": { - "label": "new", - "keyword": "new", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "new", - "start": 30370, - "end": 30373, - "loc": { - "start": { - "line": 819, - "column": 43 - }, - "end": { - "line": 819, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Promise", - "start": 30374, - "end": 30381, - "loc": { - "start": { - "line": 819, - "column": 47 - }, - "end": { - "line": 819, - "column": 54 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30381, - "end": 30382, - "loc": { - "start": { - "line": 819, - "column": 54 - }, - "end": { - "line": 819, - "column": 55 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30382, - "end": 30383, - "loc": { - "start": { - "line": 819, - "column": 55 - }, - "end": { - "line": 819, - "column": 56 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "resolve", - "start": 30383, - "end": 30390, - "loc": { - "start": { - "line": 819, - "column": 56 - }, - "end": { - "line": 819, - "column": 63 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30390, - "end": 30391, - "loc": { - "start": { - "line": 819, - "column": 63 - }, - "end": { - "line": 819, - "column": 64 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "reject", - "start": 30392, - "end": 30398, - "loc": { - "start": { - "line": 819, - "column": 65 - }, - "end": { - "line": 819, - "column": 71 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30398, - "end": 30399, - "loc": { - "start": { - "line": 819, - "column": 71 - }, - "end": { - "line": 819, - "column": 72 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30400, - "end": 30402, - "loc": { - "start": { - "line": 819, - "column": 73 - }, - "end": { - "line": 819, - "column": 75 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30403, - "end": 30404, - "loc": { - "start": { - "line": 819, - "column": 76 - }, - "end": { - "line": 819, - "column": 77 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Document", - "start": 30415, - "end": 30423, - "loc": { - "start": { - "line": 820, - "column": 10 - }, - "end": { - "line": 820, - "column": 18 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30423, - "end": 30424, - "loc": { - "start": { - "line": 820, - "column": 18 - }, - "end": { - "line": 820, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "remove", - "start": 30424, - "end": 30430, - "loc": { - "start": { - "line": 820, - "column": 19 - }, - "end": { - "line": 820, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30430, - "end": 30431, - "loc": { - "start": { - "line": 820, - "column": 25 - }, - "end": { - "line": 820, - "column": 26 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30431, - "end": 30432, - "loc": { - "start": { - "line": 820, - "column": 26 - }, - "end": { - "line": 820, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 30445, - "end": 30447, - "loc": { - "start": { - "line": 821, - "column": 12 - }, - "end": { - "line": 821, - "column": 14 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30447, - "end": 30448, - "loc": { - "start": { - "line": 821, - "column": 14 - }, - "end": { - "line": 821, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 30461, - "end": 30466, - "loc": { - "start": { - "line": 822, - "column": 12 - }, - "end": { - "line": 822, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30466, - "end": 30467, - "loc": { - "start": { - "line": 822, - "column": 17 - }, - "end": { - "line": 822, - "column": 18 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30478, - "end": 30479, - "loc": { - "start": { - "line": 823, - "column": 10 - }, - "end": { - "line": 823, - "column": 11 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30479, - "end": 30480, - "loc": { - "start": { - "line": 823, - "column": 11 - }, - "end": { - "line": 823, - "column": 12 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30481, - "end": 30482, - "loc": { - "start": { - "line": 823, - "column": 13 - }, - "end": { - "line": 823, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 30482, - "end": 30485, - "loc": { - "start": { - "line": 823, - "column": 14 - }, - "end": { - "line": 823, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30485, - "end": 30486, - "loc": { - "start": { - "line": 823, - "column": 17 - }, - "end": { - "line": 823, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "res", - "start": 30487, - "end": 30490, - "loc": { - "start": { - "line": 823, - "column": 19 - }, - "end": { - "line": 823, - "column": 22 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30490, - "end": 30491, - "loc": { - "start": { - "line": 823, - "column": 22 - }, - "end": { - "line": 823, - "column": 23 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30492, - "end": 30494, - "loc": { - "start": { - "line": 823, - "column": 24 - }, - "end": { - "line": 823, - "column": 26 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30495, - "end": 30496, - "loc": { - "start": { - "line": 823, - "column": 27 - }, - "end": { - "line": 823, - "column": 28 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 30509, - "end": 30511, - "loc": { - "start": { - "line": 824, - "column": 12 - }, - "end": { - "line": 824, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30512, - "end": 30513, - "loc": { - "start": { - "line": 824, - "column": 15 - }, - "end": { - "line": 824, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 30513, - "end": 30516, - "loc": { - "start": { - "line": 824, - "column": 16 - }, - "end": { - "line": 824, - "column": 19 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30516, - "end": 30517, - "loc": { - "start": { - "line": 824, - "column": 19 - }, - "end": { - "line": 824, - "column": 20 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30518, - "end": 30519, - "loc": { - "start": { - "line": 824, - "column": 21 - }, - "end": { - "line": 824, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "reject", - "start": 30534, - "end": 30540, - "loc": { - "start": { - "line": 825, - "column": 14 - }, - "end": { - "line": 825, - "column": 20 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30540, - "end": 30541, - "loc": { - "start": { - "line": 825, - "column": 20 - }, - "end": { - "line": 825, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 30541, - "end": 30544, - "loc": { - "start": { - "line": 825, - "column": 21 - }, - "end": { - "line": 825, - "column": 24 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30544, - "end": 30545, - "loc": { - "start": { - "line": 825, - "column": 24 - }, - "end": { - "line": 825, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30545, - "end": 30546, - "loc": { - "start": { - "line": 825, - "column": 25 - }, - "end": { - "line": 825, - "column": 26 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30559, - "end": 30560, - "loc": { - "start": { - "line": 826, - "column": 12 - }, - "end": { - "line": 826, - "column": 13 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 30561, - "end": 30565, - "loc": { - "start": { - "line": 826, - "column": 14 - }, - "end": { - "line": 826, - "column": 18 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30566, - "end": 30567, - "loc": { - "start": { - "line": 826, - "column": 19 - }, - "end": { - "line": 826, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "resolve", - "start": 30582, - "end": 30589, - "loc": { - "start": { - "line": 827, - "column": 14 - }, - "end": { - "line": 827, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30589, - "end": 30590, - "loc": { - "start": { - "line": 827, - "column": 21 - }, - "end": { - "line": 827, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "res", - "start": 30590, - "end": 30593, - "loc": { - "start": { - "line": 827, - "column": 22 - }, - "end": { - "line": 827, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30593, - "end": 30594, - "loc": { - "start": { - "line": 827, - "column": 25 - }, - "end": { - "line": 827, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "status", - "start": 30594, - "end": 30600, - "loc": { - "start": { - "line": 827, - "column": 26 - }, - "end": { - "line": 827, - "column": 32 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 30601, - "end": 30604, - "loc": { - "start": { - "line": 827, - "column": 33 - }, - "end": { - "line": 827, - "column": 36 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "success", - "start": 30605, - "end": 30614, - "loc": { - "start": { - "line": 827, - "column": 37 - }, - "end": { - "line": 827, - "column": 46 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30614, - "end": 30615, - "loc": { - "start": { - "line": 827, - "column": 46 - }, - "end": { - "line": 827, - "column": 47 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30615, - "end": 30616, - "loc": { - "start": { - "line": 827, - "column": 47 - }, - "end": { - "line": 827, - "column": 48 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30629, - "end": 30630, - "loc": { - "start": { - "line": 828, - "column": 12 - }, - "end": { - "line": 828, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30641, - "end": 30642, - "loc": { - "start": { - "line": 829, - "column": 10 - }, - "end": { - "line": 829, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30642, - "end": 30643, - "loc": { - "start": { - "line": 829, - "column": 11 - }, - "end": { - "line": 829, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30643, - "end": 30644, - "loc": { - "start": { - "line": 829, - "column": 12 - }, - "end": { - "line": 829, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30653, - "end": 30654, - "loc": { - "start": { - "line": 830, - "column": 8 - }, - "end": { - "line": 830, - "column": 9 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30654, - "end": 30655, - "loc": { - "start": { - "line": 830, - "column": 9 - }, - "end": { - "line": 830, - "column": 10 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30655, - "end": 30656, - "loc": { - "start": { - "line": 830, - "column": 10 - }, - "end": { - "line": 830, - "column": 11 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 30666, - "end": 30671, - "loc": { - "start": { - "line": 832, - "column": 8 - }, - "end": { - "line": 832, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documentsDeleted", - "start": 30672, - "end": 30688, - "loc": { - "start": { - "line": 832, - "column": 14 - }, - "end": { - "line": 832, - "column": 30 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 30689, - "end": 30690, - "loc": { - "start": { - "line": 832, - "column": 31 - }, - "end": { - "line": 832, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_ids", - "start": 30691, - "end": 30703, - "loc": { - "start": { - "line": 832, - "column": 33 - }, - "end": { - "line": 832, - "column": 45 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30714, - "end": 30715, - "loc": { - "start": { - "line": 833, - "column": 10 - }, - "end": { - "line": 833, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "map", - "start": 30715, - "end": 30718, - "loc": { - "start": { - "line": 833, - "column": 11 - }, - "end": { - "line": 833, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30718, - "end": 30719, - "loc": { - "start": { - "line": 833, - "column": 14 - }, - "end": { - "line": 833, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 30719, - "end": 30721, - "loc": { - "start": { - "line": 833, - "column": 15 - }, - "end": { - "line": 833, - "column": 17 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30722, - "end": 30724, - "loc": { - "start": { - "line": 833, - "column": 18 - }, - "end": { - "line": 833, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "removeDocument", - "start": 30725, - "end": 30739, - "loc": { - "start": { - "line": 833, - "column": 21 - }, - "end": { - "line": 833, - "column": 35 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30739, - "end": 30740, - "loc": { - "start": { - "line": 833, - "column": 35 - }, - "end": { - "line": 833, - "column": 36 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30740, - "end": 30741, - "loc": { - "start": { - "line": 833, - "column": 36 - }, - "end": { - "line": 833, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 30742, - "end": 30744, - "loc": { - "start": { - "line": 833, - "column": 38 - }, - "end": { - "line": 833, - "column": 40 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30745, - "end": 30746, - "loc": { - "start": { - "line": 833, - "column": 41 - }, - "end": { - "line": 833, - "column": 42 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30746, - "end": 30747, - "loc": { - "start": { - "line": 833, - "column": 42 - }, - "end": { - "line": 833, - "column": 43 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30747, - "end": 30748, - "loc": { - "start": { - "line": 833, - "column": 43 - }, - "end": { - "line": 833, - "column": 44 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30748, - "end": 30749, - "loc": { - "start": { - "line": 833, - "column": 44 - }, - "end": { - "line": 833, - "column": 45 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Promise", - "start": 30759, - "end": 30766, - "loc": { - "start": { - "line": 835, - "column": 8 - }, - "end": { - "line": 835, - "column": 15 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30766, - "end": 30767, - "loc": { - "start": { - "line": 835, - "column": 15 - }, - "end": { - "line": 835, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "all", - "start": 30767, - "end": 30770, - "loc": { - "start": { - "line": 835, - "column": 16 - }, - "end": { - "line": 835, - "column": 19 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30770, - "end": 30771, - "loc": { - "start": { - "line": 835, - "column": 19 - }, - "end": { - "line": 835, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documentsDeleted", - "start": 30771, - "end": 30787, - "loc": { - "start": { - "line": 835, - "column": 20 - }, - "end": { - "line": 835, - "column": 36 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30787, - "end": 30788, - "loc": { - "start": { - "line": 835, - "column": 36 - }, - "end": { - "line": 835, - "column": 37 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30799, - "end": 30800, - "loc": { - "start": { - "line": 836, - "column": 10 - }, - "end": { - "line": 836, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "then", - "start": 30800, - "end": 30804, - "loc": { - "start": { - "line": 836, - "column": 11 - }, - "end": { - "line": 836, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30804, - "end": 30805, - "loc": { - "start": { - "line": 836, - "column": 15 - }, - "end": { - "line": 836, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "deletionStatuses", - "start": 30805, - "end": 30821, - "loc": { - "start": { - "line": 836, - "column": 16 - }, - "end": { - "line": 836, - "column": 32 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30822, - "end": 30824, - "loc": { - "start": { - "line": 836, - "column": 33 - }, - "end": { - "line": 836, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "deletionStatuses", - "start": 30825, - "end": 30841, - "loc": { - "start": { - "line": 836, - "column": 36 - }, - "end": { - "line": 836, - "column": 52 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30841, - "end": 30842, - "loc": { - "start": { - "line": 836, - "column": 52 - }, - "end": { - "line": 836, - "column": 53 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "reduce", - "start": 30842, - "end": 30848, - "loc": { - "start": { - "line": 836, - "column": 53 - }, - "end": { - "line": 836, - "column": 59 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30848, - "end": 30849, - "loc": { - "start": { - "line": 836, - "column": 59 - }, - "end": { - "line": 836, - "column": 60 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30849, - "end": 30850, - "loc": { - "start": { - "line": 836, - "column": 60 - }, - "end": { - "line": 836, - "column": 61 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "generalStatus", - "start": 30850, - "end": 30863, - "loc": { - "start": { - "line": 836, - "column": 61 - }, - "end": { - "line": 836, - "column": 74 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30863, - "end": 30864, - "loc": { - "start": { - "line": 836, - "column": 74 - }, - "end": { - "line": 836, - "column": 75 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "currentStatus", - "start": 30865, - "end": 30878, - "loc": { - "start": { - "line": 836, - "column": 76 - }, - "end": { - "line": 836, - "column": 89 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30878, - "end": 30879, - "loc": { - "start": { - "line": 836, - "column": 89 - }, - "end": { - "line": 836, - "column": 90 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30880, - "end": 30882, - "loc": { - "start": { - "line": 836, - "column": 91 - }, - "end": { - "line": 836, - "column": 93 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30883, - "end": 30884, - "loc": { - "start": { - "line": 836, - "column": 94 - }, - "end": { - "line": 836, - "column": 95 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "generalStatus", - "start": 30884, - "end": 30897, - "loc": { - "start": { - "line": 836, - "column": 95 - }, - "end": { - "line": 836, - "column": 108 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 30898, - "end": 30900, - "loc": { - "start": { - "line": 836, - "column": 109 - }, - "end": { - "line": 836, - "column": 111 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "currentStatus", - "start": 30901, - "end": 30914, - "loc": { - "start": { - "line": 836, - "column": 112 - }, - "end": { - "line": 836, - "column": 125 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30914, - "end": 30915, - "loc": { - "start": { - "line": 836, - "column": 125 - }, - "end": { - "line": 836, - "column": 126 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30915, - "end": 30916, - "loc": { - "start": { - "line": 836, - "column": 126 - }, - "end": { - "line": 836, - "column": 127 - } - } - }, - { - "type": { - "label": "true", - "keyword": "true", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "true", - "start": 30917, - "end": 30921, - "loc": { - "start": { - "line": 836, - "column": 128 - }, - "end": { - "line": 836, - "column": 132 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30921, - "end": 30922, - "loc": { - "start": { - "line": 836, - "column": 132 - }, - "end": { - "line": 836, - "column": 133 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30922, - "end": 30923, - "loc": { - "start": { - "line": 836, - "column": 133 - }, - "end": { - "line": 836, - "column": 134 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30934, - "end": 30935, - "loc": { - "start": { - "line": 837, - "column": 10 - }, - "end": { - "line": 837, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "then", - "start": 30935, - "end": 30939, - "loc": { - "start": { - "line": 837, - "column": 11 - }, - "end": { - "line": 837, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30939, - "end": 30940, - "loc": { - "start": { - "line": 837, - "column": 15 - }, - "end": { - "line": 837, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "allDocumentsDeleted", - "start": 30940, - "end": 30959, - "loc": { - "start": { - "line": 837, - "column": 16 - }, - "end": { - "line": 837, - "column": 35 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30960, - "end": 30962, - "loc": { - "start": { - "line": 837, - "column": 36 - }, - "end": { - "line": 837, - "column": 38 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30963, - "end": 30964, - "loc": { - "start": { - "line": 837, - "column": 39 - }, - "end": { - "line": 837, - "column": 40 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 30977, - "end": 30979, - "loc": { - "start": { - "line": 838, - "column": 12 - }, - "end": { - "line": 838, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30980, - "end": 30981, - "loc": { - "start": { - "line": 838, - "column": 15 - }, - "end": { - "line": 838, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "allDocumentsDeleted", - "start": 30981, - "end": 31000, - "loc": { - "start": { - "line": 838, - "column": 16 - }, - "end": { - "line": 838, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31000, - "end": 31001, - "loc": { - "start": { - "line": 838, - "column": 35 - }, - "end": { - "line": 838, - "column": 36 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31002, - "end": 31003, - "loc": { - "start": { - "line": 838, - "column": 37 - }, - "end": { - "line": 838, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "originalCallback", - "start": 31018, - "end": 31034, - "loc": { - "start": { - "line": 839, - "column": 14 - }, - "end": { - "line": 839, - "column": 30 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31034, - "end": 31035, - "loc": { - "start": { - "line": 839, - "column": 30 - }, - "end": { - "line": 839, - "column": 31 - } - } - }, - { - "type": { - "label": "null", - "keyword": "null", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "null", - "start": 31035, - "end": 31039, - "loc": { - "start": { - "line": 839, - "column": 31 - }, - "end": { - "line": 839, - "column": 35 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31039, - "end": 31040, - "loc": { - "start": { - "line": 839, - "column": 35 - }, - "end": { - "line": 839, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "mergeRes", - "start": 31041, - "end": 31049, - "loc": { - "start": { - "line": 839, - "column": 37 - }, - "end": { - "line": 839, - "column": 45 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31049, - "end": 31050, - "loc": { - "start": { - "line": 839, - "column": 45 - }, - "end": { - "line": 839, - "column": 46 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31050, - "end": 31051, - "loc": { - "start": { - "line": 839, - "column": 46 - }, - "end": { - "line": 839, - "column": 47 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 31066, - "end": 31072, - "loc": { - "start": { - "line": 840, - "column": 14 - }, - "end": { - "line": 840, - "column": 20 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31072, - "end": 31073, - "loc": { - "start": { - "line": 840, - "column": 20 - }, - "end": { - "line": 840, - "column": 21 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31086, - "end": 31087, - "loc": { - "start": { - "line": 841, - "column": 12 - }, - "end": { - "line": 841, - "column": 13 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 31088, - "end": 31092, - "loc": { - "start": { - "line": 841, - "column": 14 - }, - "end": { - "line": 841, - "column": 18 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31093, - "end": 31094, - "loc": { - "start": { - "line": 841, - "column": 19 - }, - "end": { - "line": 841, - "column": 20 - } - } - }, - { - "type": { - "label": "throw", - "keyword": "throw", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "throw", - "start": 31109, - "end": 31114, - "loc": { - "start": { - "line": 842, - "column": 14 - }, - "end": { - "line": 842, - "column": 19 - } - } - }, - { - "type": { - "label": "new", - "keyword": "new", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "new", - "start": 31115, - "end": 31118, - "loc": { - "start": { - "line": 842, - "column": 20 - }, - "end": { - "line": 842, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Error", - "start": 31119, - "end": 31124, - "loc": { - "start": { - "line": 842, - "column": 24 - }, - "end": { - "line": 842, - "column": 29 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31124, - "end": 31125, - "loc": { - "start": { - "line": 842, - "column": 29 - }, - "end": { - "line": 842, - "column": 30 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Some of the original documents were not removed", - "start": 31125, - "end": 31174, - "loc": { - "start": { - "line": 842, - "column": 30 - }, - "end": { - "line": 842, - "column": 79 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31174, - "end": 31175, - "loc": { - "start": { - "line": 842, - "column": 79 - }, - "end": { - "line": 842, - "column": 80 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31175, - "end": 31176, - "loc": { - "start": { - "line": 842, - "column": 80 - }, - "end": { - "line": 842, - "column": 81 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31189, - "end": 31190, - "loc": { - "start": { - "line": 843, - "column": 12 - }, - "end": { - "line": 843, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31201, - "end": 31202, - "loc": { - "start": { - "line": 844, - "column": 10 - }, - "end": { - "line": 844, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31202, - "end": 31203, - "loc": { - "start": { - "line": 844, - "column": 11 - }, - "end": { - "line": 844, - "column": 12 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31214, - "end": 31215, - "loc": { - "start": { - "line": 845, - "column": 10 - }, - "end": { - "line": 845, - "column": 11 - } - } - }, - { - "type": { - "label": "catch", - "keyword": "catch", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "catch", - "start": 31215, - "end": 31220, - "loc": { - "start": { - "line": 845, - "column": 11 - }, - "end": { - "line": 845, - "column": 16 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31220, - "end": 31221, - "loc": { - "start": { - "line": 845, - "column": 16 - }, - "end": { - "line": 845, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "removeErr", - "start": 31221, - "end": 31230, - "loc": { - "start": { - "line": 845, - "column": 17 - }, - "end": { - "line": 845, - "column": 26 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31231, - "end": 31233, - "loc": { - "start": { - "line": 845, - "column": 27 - }, - "end": { - "line": 845, - "column": 29 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31234, - "end": 31235, - "loc": { - "start": { - "line": 845, - "column": 30 - }, - "end": { - "line": 845, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "originalCallback", - "start": 31248, - "end": 31264, - "loc": { - "start": { - "line": 846, - "column": 12 - }, - "end": { - "line": 846, - "column": 28 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31264, - "end": 31265, - "loc": { - "start": { - "line": 846, - "column": 28 - }, - "end": { - "line": 846, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "removeErr", - "start": 31265, - "end": 31274, - "loc": { - "start": { - "line": 846, - "column": 29 - }, - "end": { - "line": 846, - "column": 38 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31274, - "end": 31275, - "loc": { - "start": { - "line": 846, - "column": 38 - }, - "end": { - "line": 846, - "column": 39 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31275, - "end": 31276, - "loc": { - "start": { - "line": 846, - "column": 39 - }, - "end": { - "line": 846, - "column": 40 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 31289, - "end": 31295, - "loc": { - "start": { - "line": 847, - "column": 12 - }, - "end": { - "line": 847, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31295, - "end": 31296, - "loc": { - "start": { - "line": 847, - "column": 18 - }, - "end": { - "line": 847, - "column": 19 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31307, - "end": 31308, - "loc": { - "start": { - "line": 848, - "column": 10 - }, - "end": { - "line": 848, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31308, - "end": 31309, - "loc": { - "start": { - "line": 848, - "column": 11 - }, - "end": { - "line": 848, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31309, - "end": 31310, - "loc": { - "start": { - "line": 848, - "column": 12 - }, - "end": { - "line": 848, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31318, - "end": 31319, - "loc": { - "start": { - "line": 850, - "column": 6 - }, - "end": { - "line": 850, - "column": 7 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31324, - "end": 31325, - "loc": { - "start": { - "line": 851, - "column": 4 - }, - "end": { - "line": 851, - "column": 5 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31325, - "end": 31326, - "loc": { - "start": { - "line": 851, - "column": 5 - }, - "end": { - "line": 851, - "column": 6 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 31332, - "end": 31337, - "loc": { - "start": { - "line": 853, - "column": 4 - }, - "end": { - "line": 853, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 31338, - "end": 31346, - "loc": { - "start": { - "line": 853, - "column": 10 - }, - "end": { - "line": 853, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 31347, - "end": 31348, - "loc": { - "start": { - "line": 853, - "column": 19 - }, - "end": { - "line": 853, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "removeOriginalDocuments", - "start": 31349, - "end": 31372, - "loc": { - "start": { - "line": 853, - "column": 21 - }, - "end": { - "line": 853, - "column": 44 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31379, - "end": 31380, - "loc": { - "start": { - "line": 854, - "column": 6 - }, - "end": { - "line": 854, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callbackWithDocumentDeletion", - "start": 31381, - "end": 31409, - "loc": { - "start": { - "line": 854, - "column": 8 - }, - "end": { - "line": 854, - "column": 36 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31416, - "end": 31417, - "loc": { - "start": { - "line": 855, - "column": 6 - }, - "end": { - "line": 855, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "originalCallback", - "start": 31418, - "end": 31434, - "loc": { - "start": { - "line": 855, - "column": 8 - }, - "end": { - "line": 855, - "column": 24 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31434, - "end": 31435, - "loc": { - "start": { - "line": 855, - "column": 24 - }, - "end": { - "line": 855, - "column": 25 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 31441, - "end": 31446, - "loc": { - "start": { - "line": 857, - "column": 4 - }, - "end": { - "line": 857, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 31447, - "end": 31450, - "loc": { - "start": { - "line": 857, - "column": 10 - }, - "end": { - "line": 857, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 31451, - "end": 31452, - "loc": { - "start": { - "line": 857, - "column": 14 - }, - "end": { - "line": 857, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 31453, - "end": 31458, - "loc": { - "start": { - "line": 857, - "column": 16 - }, - "end": { - "line": 857, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31465, - "end": 31466, - "loc": { - "start": { - "line": 858, - "column": 6 - }, - "end": { - "line": 858, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 31466, - "end": 31473, - "loc": { - "start": { - "line": 858, - "column": 7 - }, - "end": { - "line": 858, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31473, - "end": 31474, - "loc": { - "start": { - "line": 858, - "column": 14 - }, - "end": { - "line": 858, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 31474, - "end": 31493, - "loc": { - "start": { - "line": 858, - "column": 15 - }, - "end": { - "line": 858, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31493, - "end": 31494, - "loc": { - "start": { - "line": 858, - "column": 34 - }, - "end": { - "line": 858, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31494, - "end": 31495, - "loc": { - "start": { - "line": 858, - "column": 35 - }, - "end": { - "line": 858, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 31504, - "end": 31510, - "loc": { - "start": { - "line": 859, - "column": 8 - }, - "end": { - "line": 859, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31510, - "end": 31511, - "loc": { - "start": { - "line": 859, - "column": 14 - }, - "end": { - "line": 859, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "POST", - "start": 31512, - "end": 31518, - "loc": { - "start": { - "line": 859, - "column": 16 - }, - "end": { - "line": 859, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31518, - "end": 31519, - "loc": { - "start": { - "line": 859, - "column": 22 - }, - "end": { - "line": 859, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 31528, - "end": 31532, - "loc": { - "start": { - "line": 860, - "column": 8 - }, - "end": { - "line": 860, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31532, - "end": 31533, - "loc": { - "start": { - "line": 860, - "column": 12 - }, - "end": { - "line": 860, - "column": 13 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/document/merge", - "start": 31534, - "end": 31551, - "loc": { - "start": { - "line": 860, - "column": 14 - }, - "end": { - "line": 860, - "column": 31 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31551, - "end": 31552, - "loc": { - "start": { - "line": 860, - "column": 31 - }, - "end": { - "line": 860, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 31561, - "end": 31574, - "loc": { - "start": { - "line": 861, - "column": 8 - }, - "end": { - "line": 861, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31574, - "end": 31575, - "loc": { - "start": { - "line": 861, - "column": 21 - }, - "end": { - "line": 861, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31576, - "end": 31577, - "loc": { - "start": { - "line": 861, - "column": 23 - }, - "end": { - "line": 861, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 31588, - "end": 31592, - "loc": { - "start": { - "line": 862, - "column": 10 - }, - "end": { - "line": 862, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31592, - "end": 31593, - "loc": { - "start": { - "line": 862, - "column": 14 - }, - "end": { - "line": 862, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 31594, - "end": 31602, - "loc": { - "start": { - "line": 862, - "column": 16 - }, - "end": { - "line": 862, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31602, - "end": 31603, - "loc": { - "start": { - "line": 862, - "column": 24 - }, - "end": { - "line": 862, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 31614, - "end": 31619, - "loc": { - "start": { - "line": 863, - "column": 10 - }, - "end": { - "line": 863, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31619, - "end": 31620, - "loc": { - "start": { - "line": 863, - "column": 15 - }, - "end": { - "line": 863, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31629, - "end": 31630, - "loc": { - "start": { - "line": 864, - "column": 8 - }, - "end": { - "line": 864, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31630, - "end": 31631, - "loc": { - "start": { - "line": 864, - "column": 9 - }, - "end": { - "line": 864, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 31640, - "end": 31647, - "loc": { - "start": { - "line": 865, - "column": 8 - }, - "end": { - "line": 865, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31647, - "end": 31648, - "loc": { - "start": { - "line": 865, - "column": 15 - }, - "end": { - "line": 865, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31649, - "end": 31650, - "loc": { - "start": { - "line": 865, - "column": 17 - }, - "end": { - "line": 865, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type", - "start": 31661, - "end": 31675, - "loc": { - "start": { - "line": 866, - "column": 10 - }, - "end": { - "line": 866, - "column": 24 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31675, - "end": 31676, - "loc": { - "start": { - "line": 866, - "column": 24 - }, - "end": { - "line": 866, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/json", - "start": 31677, - "end": 31695, - "loc": { - "start": { - "line": 866, - "column": 26 - }, - "end": { - "line": 866, - "column": 44 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31695, - "end": 31696, - "loc": { - "start": { - "line": 866, - "column": 44 - }, - "end": { - "line": 866, - "column": 45 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Length", - "start": 31707, - "end": 31723, - "loc": { - "start": { - "line": 867, - "column": 10 - }, - "end": { - "line": 867, - "column": 26 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31723, - "end": 31724, - "loc": { - "start": { - "line": 867, - "column": 26 - }, - "end": { - "line": 867, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 31725, - "end": 31731, - "loc": { - "start": { - "line": 867, - "column": 28 - }, - "end": { - "line": 867, - "column": 34 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31731, - "end": 31732, - "loc": { - "start": { - "line": 867, - "column": 34 - }, - "end": { - "line": 867, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "byteLength", - "start": 31732, - "end": 31742, - "loc": { - "start": { - "line": 867, - "column": 35 - }, - "end": { - "line": 867, - "column": 45 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31742, - "end": 31743, - "loc": { - "start": { - "line": 867, - "column": 45 - }, - "end": { - "line": 867, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 31743, - "end": 31751, - "loc": { - "start": { - "line": 867, - "column": 46 - }, - "end": { - "line": 867, - "column": 54 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31751, - "end": 31752, - "loc": { - "start": { - "line": 867, - "column": 54 - }, - "end": { - "line": 867, - "column": 55 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31752, - "end": 31753, - "loc": { - "start": { - "line": 867, - "column": 55 - }, - "end": { - "line": 867, - "column": 56 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31762, - "end": 31763, - "loc": { - "start": { - "line": 868, - "column": 8 - }, - "end": { - "line": 868, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31763, - "end": 31764, - "loc": { - "start": { - "line": 868, - "column": 9 - }, - "end": { - "line": 868, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31771, - "end": 31772, - "loc": { - "start": { - "line": 869, - "column": 6 - }, - "end": { - "line": 869, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31772, - "end": 31773, - "loc": { - "start": { - "line": 869, - "column": 7 - }, - "end": { - "line": 869, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31773, - "end": 31774, - "loc": { - "start": { - "line": 869, - "column": 8 - }, - "end": { - "line": 869, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 31775, - "end": 31790, - "loc": { - "start": { - "line": 869, - "column": 10 - }, - "end": { - "line": 869, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31790, - "end": 31791, - "loc": { - "start": { - "line": 869, - "column": 25 - }, - "end": { - "line": 869, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 31791, - "end": 31799, - "loc": { - "start": { - "line": 869, - "column": 26 - }, - "end": { - "line": 869, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31799, - "end": 31800, - "loc": { - "start": { - "line": 869, - "column": 34 - }, - "end": { - "line": 869, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31800, - "end": 31801, - "loc": { - "start": { - "line": 869, - "column": 35 - }, - "end": { - "line": 869, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31808, - "end": 31809, - "loc": { - "start": { - "line": 870, - "column": 6 - }, - "end": { - "line": 870, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 31809, - "end": 31811, - "loc": { - "start": { - "line": 870, - "column": 7 - }, - "end": { - "line": 870, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31811, - "end": 31812, - "loc": { - "start": { - "line": 870, - "column": 9 - }, - "end": { - "line": 870, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 31812, - "end": 31819, - "loc": { - "start": { - "line": 870, - "column": 10 - }, - "end": { - "line": 870, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31819, - "end": 31820, - "loc": { - "start": { - "line": 870, - "column": 17 - }, - "end": { - "line": 870, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 31821, - "end": 31833, - "loc": { - "start": { - "line": 870, - "column": 19 - }, - "end": { - "line": 870, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31833, - "end": 31834, - "loc": { - "start": { - "line": 870, - "column": 31 - }, - "end": { - "line": 870, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "originalCallback", - "start": 31834, - "end": 31850, - "loc": { - "start": { - "line": 870, - "column": 32 - }, - "end": { - "line": 870, - "column": 48 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31850, - "end": 31851, - "loc": { - "start": { - "line": 870, - "column": 48 - }, - "end": { - "line": 870, - "column": 49 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31851, - "end": 31852, - "loc": { - "start": { - "line": 870, - "column": 49 - }, - "end": { - "line": 870, - "column": 50 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31852, - "end": 31853, - "loc": { - "start": { - "line": 870, - "column": 50 - }, - "end": { - "line": 870, - "column": 51 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 31859, - "end": 31862, - "loc": { - "start": { - "line": 872, - "column": 4 - }, - "end": { - "line": 872, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31862, - "end": 31863, - "loc": { - "start": { - "line": 872, - "column": 7 - }, - "end": { - "line": 872, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "write", - "start": 31863, - "end": 31868, - "loc": { - "start": { - "line": 872, - "column": 8 - }, - "end": { - "line": 872, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31868, - "end": 31869, - "loc": { - "start": { - "line": 872, - "column": 13 - }, - "end": { - "line": 872, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 31869, - "end": 31877, - "loc": { - "start": { - "line": 872, - "column": 14 - }, - "end": { - "line": 872, - "column": 22 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31877, - "end": 31878, - "loc": { - "start": { - "line": 872, - "column": 22 - }, - "end": { - "line": 872, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31878, - "end": 31879, - "loc": { - "start": { - "line": 872, - "column": 23 - }, - "end": { - "line": 872, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 31884, - "end": 31887, - "loc": { - "start": { - "line": 873, - "column": 4 - }, - "end": { - "line": 873, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31887, - "end": 31888, - "loc": { - "start": { - "line": 873, - "column": 7 - }, - "end": { - "line": 873, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 31888, - "end": 31891, - "loc": { - "start": { - "line": 873, - "column": 8 - }, - "end": { - "line": 873, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31891, - "end": 31892, - "loc": { - "start": { - "line": 873, - "column": 11 - }, - "end": { - "line": 873, - "column": 12 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31892, - "end": 31893, - "loc": { - "start": { - "line": 873, - "column": 12 - }, - "end": { - "line": 873, - "column": 13 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31893, - "end": 31894, - "loc": { - "start": { - "line": 873, - "column": 13 - }, - "end": { - "line": 873, - "column": 14 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31897, - "end": 31898, - "loc": { - "start": { - "line": 874, - "column": 2 - }, - "end": { - "line": 874, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document history payload\n * @typedef {Object} DocumentHistoryParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 31902, - "end": 32087, - "loc": { - "start": { - "line": 876, - "column": 2 - }, - "end": { - "line": 881, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document action log item\n * @typedef {Object} DocumentEvent\n * @property {string} client_app_name - name of a client application\n * @property {?string} client_timestamp - client application timestamp\n * @property {string} created - timestamp of action creation\n * @property {string} email - email of an actor\n * @property {string} event - name of event\n * @property {string} ip_address - actor's IP address\n * @property {?string} element_id - an ID of specific element\n * @property {?string} field_id - an ID of specific field\n * @property {?string} json_attributes - field attributes (e.g. font, style, size etc.)\n * @property {string} [document_id] - an ID of specific document\n * @property {string} [origin] - an origin of document\n * @property {string} [unique_id] - an ID of event\n * @property {string} [user_agent] - user agent\n * @property {string} [user_id] - id of an actor\n * @property {string} [version] - version of signed document (incremented after each signature addition)\n ", - "start": 32091, - "end": 33125, - "loc": { - "start": { - "line": 883, - "column": 2 - }, - "end": { - "line": 901, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document history response data\n * @typedef {DocumentEvent[]} DocumentHistoryResponse\n ", - "start": 33129, - "end": 33230, - "loc": { - "start": { - "line": 903, - "column": 2 - }, - "end": { - "line": 906, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves a document action log (history) data\n * @param {DocumentHistoryParams} data - payload\n * @param {function(err: ApiErrorResponse, res: DocumentHistoryResponse)} [callback] - error first node.js callback\n ", - "start": 33234, - "end": 33465, - "loc": { - "start": { - "line": 908, - "column": 2 - }, - "end": { - "line": 912, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 33468, - "end": 33474, - "loc": { - "start": { - "line": 913, - "column": 2 - }, - "end": { - "line": 913, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "history", - "start": 33475, - "end": 33482, - "loc": { - "start": { - "line": 913, - "column": 9 - }, - "end": { - "line": 913, - "column": 16 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 33483, - "end": 33484, - "loc": { - "start": { - "line": 913, - "column": 17 - }, - "end": { - "line": 913, - "column": 18 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 33484, - "end": 33485, - "loc": { - "start": { - "line": 913, - "column": 18 - }, - "end": { - "line": 913, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 33486, - "end": 33488, - "loc": { - "start": { - "line": 913, - "column": 20 - }, - "end": { - "line": 913, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 33488, - "end": 33489, - "loc": { - "start": { - "line": 913, - "column": 22 - }, - "end": { - "line": 913, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 33490, - "end": 33495, - "loc": { - "start": { - "line": 913, - "column": 24 - }, - "end": { - "line": 913, - "column": 29 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 33496, - "end": 33497, - "loc": { - "start": { - "line": 913, - "column": 30 - }, - "end": { - "line": 913, - "column": 31 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 33497, - "end": 33498, - "loc": { - "start": { - "line": 913, - "column": 31 - }, - "end": { - "line": 913, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 33499, - "end": 33507, - "loc": { - "start": { - "line": 913, - "column": 33 - }, - "end": { - "line": 913, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 33507, - "end": 33508, - "loc": { - "start": { - "line": 913, - "column": 41 - }, - "end": { - "line": 913, - "column": 42 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 33509, - "end": 33510, - "loc": { - "start": { - "line": 913, - "column": 43 - }, - "end": { - "line": 913, - "column": 44 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 33515, - "end": 33520, - "loc": { - "start": { - "line": 914, - "column": 4 - }, - "end": { - "line": 914, - "column": 9 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 33527, - "end": 33528, - "loc": { - "start": { - "line": 915, - "column": 6 - }, - "end": { - "line": 915, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 33528, - "end": 33535, - "loc": { - "start": { - "line": 915, - "column": 7 - }, - "end": { - "line": 915, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 33535, - "end": 33536, - "loc": { - "start": { - "line": 915, - "column": 14 - }, - "end": { - "line": 915, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 33536, - "end": 33555, - "loc": { - "start": { - "line": 915, - "column": 15 - }, - "end": { - "line": 915, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 33555, - "end": 33556, - "loc": { - "start": { - "line": 915, - "column": 34 - }, - "end": { - "line": 915, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 33556, - "end": 33557, - "loc": { - "start": { - "line": 915, - "column": 35 - }, - "end": { - "line": 915, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 33566, - "end": 33572, - "loc": { - "start": { - "line": 916, - "column": 8 - }, - "end": { - "line": 916, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 33572, - "end": 33573, - "loc": { - "start": { - "line": 916, - "column": 14 - }, - "end": { - "line": 916, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "GET", - "start": 33574, - "end": 33579, - "loc": { - "start": { - "line": 916, - "column": 16 - }, - "end": { - "line": 916, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 33579, - "end": 33580, - "loc": { - "start": { - "line": 916, - "column": 21 - }, - "end": { - "line": 916, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 33589, - "end": 33593, - "loc": { - "start": { - "line": 917, - "column": 8 - }, - "end": { - "line": 917, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 33593, - "end": 33594, - "loc": { - "start": { - "line": 917, - "column": 12 - }, - "end": { - "line": 917, - "column": 13 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 33595, - "end": 33596, - "loc": { - "start": { - "line": 917, - "column": 14 - }, - "end": { - "line": 917, - "column": 15 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/document/", - "start": 33596, - "end": 33606, - "loc": { - "start": { - "line": 917, - "column": 15 - }, - "end": { - "line": 917, - "column": 25 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 33606, - "end": 33608, - "loc": { - "start": { - "line": 917, - "column": 25 - }, - "end": { - "line": 917, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 33608, - "end": 33610, - "loc": { - "start": { - "line": 917, - "column": 27 - }, - "end": { - "line": 917, - "column": 29 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 33610, - "end": 33611, - "loc": { - "start": { - "line": 917, - "column": 29 - }, - "end": { - "line": 917, - "column": 30 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/history", - "start": 33611, - "end": 33619, - "loc": { - "start": { - "line": 917, - "column": 30 - }, - "end": { - "line": 917, - "column": 38 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 33619, - "end": 33620, - "loc": { - "start": { - "line": 917, - "column": 38 - }, - "end": { - "line": 917, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 33620, - "end": 33621, - "loc": { - "start": { - "line": 917, - "column": 39 - }, - "end": { - "line": 917, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 33630, - "end": 33643, - "loc": { - "start": { - "line": 918, - "column": 8 - }, - "end": { - "line": 918, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 33643, - "end": 33644, - "loc": { - "start": { - "line": 918, - "column": 21 - }, - "end": { - "line": 918, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 33645, - "end": 33646, - "loc": { - "start": { - "line": 918, - "column": 23 - }, - "end": { - "line": 918, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 33657, - "end": 33661, - "loc": { - "start": { - "line": 919, - "column": 10 - }, - "end": { - "line": 919, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 33661, - "end": 33662, - "loc": { - "start": { - "line": 919, - "column": 14 - }, - "end": { - "line": 919, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 33663, - "end": 33671, - "loc": { - "start": { - "line": 919, - "column": 16 - }, - "end": { - "line": 919, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 33671, - "end": 33672, - "loc": { - "start": { - "line": 919, - "column": 24 - }, - "end": { - "line": 919, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 33683, - "end": 33688, - "loc": { - "start": { - "line": 920, - "column": 10 - }, - "end": { - "line": 920, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 33688, - "end": 33689, - "loc": { - "start": { - "line": 920, - "column": 15 - }, - "end": { - "line": 920, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 33698, - "end": 33699, - "loc": { - "start": { - "line": 921, - "column": 8 - }, - "end": { - "line": 921, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 33699, - "end": 33700, - "loc": { - "start": { - "line": 921, - "column": 9 - }, - "end": { - "line": 921, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 33707, - "end": 33708, - "loc": { - "start": { - "line": 922, - "column": 6 - }, - "end": { - "line": 922, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 33708, - "end": 33709, - "loc": { - "start": { - "line": 922, - "column": 7 - }, - "end": { - "line": 922, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 33709, - "end": 33710, - "loc": { - "start": { - "line": 922, - "column": 8 - }, - "end": { - "line": 922, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 33711, - "end": 33726, - "loc": { - "start": { - "line": 922, - "column": 10 - }, - "end": { - "line": 922, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 33726, - "end": 33727, - "loc": { - "start": { - "line": 922, - "column": 25 - }, - "end": { - "line": 922, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 33727, - "end": 33735, - "loc": { - "start": { - "line": 922, - "column": 26 - }, - "end": { - "line": 922, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 33735, - "end": 33736, - "loc": { - "start": { - "line": 922, - "column": 34 - }, - "end": { - "line": 922, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 33736, - "end": 33737, - "loc": { - "start": { - "line": 922, - "column": 35 - }, - "end": { - "line": 922, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 33744, - "end": 33745, - "loc": { - "start": { - "line": 923, - "column": 6 - }, - "end": { - "line": 923, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 33745, - "end": 33747, - "loc": { - "start": { - "line": 923, - "column": 7 - }, - "end": { - "line": 923, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 33747, - "end": 33748, - "loc": { - "start": { - "line": 923, - "column": 9 - }, - "end": { - "line": 923, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 33748, - "end": 33755, - "loc": { - "start": { - "line": 923, - "column": 10 - }, - "end": { - "line": 923, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 33755, - "end": 33756, - "loc": { - "start": { - "line": 923, - "column": 17 - }, - "end": { - "line": 923, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 33757, - "end": 33769, - "loc": { - "start": { - "line": 923, - "column": 19 - }, - "end": { - "line": 923, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 33769, - "end": 33770, - "loc": { - "start": { - "line": 923, - "column": 31 - }, - "end": { - "line": 923, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 33770, - "end": 33778, - "loc": { - "start": { - "line": 923, - "column": 32 - }, - "end": { - "line": 923, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 33778, - "end": 33779, - "loc": { - "start": { - "line": 923, - "column": 40 - }, - "end": { - "line": 923, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 33779, - "end": 33780, - "loc": { - "start": { - "line": 923, - "column": 41 - }, - "end": { - "line": 923, - "column": 42 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 33787, - "end": 33788, - "loc": { - "start": { - "line": 924, - "column": 6 - }, - "end": { - "line": 924, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 33788, - "end": 33791, - "loc": { - "start": { - "line": 924, - "column": 7 - }, - "end": { - "line": 924, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 33791, - "end": 33792, - "loc": { - "start": { - "line": 924, - "column": 10 - }, - "end": { - "line": 924, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 33792, - "end": 33793, - "loc": { - "start": { - "line": 924, - "column": 11 - }, - "end": { - "line": 924, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 33793, - "end": 33794, - "loc": { - "start": { - "line": 924, - "column": 12 - }, - "end": { - "line": 924, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 33797, - "end": 33798, - "loc": { - "start": { - "line": 925, - "column": 2 - }, - "end": { - "line": 925, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document remove optional settings\n * @typedef {Object} DocumentRemoveOptions\n * @property {boolean} [cancelInvites=false] - ability to cancel all document invites during deletion\n ", - "start": 33802, - "end": 33999, - "loc": { - "start": { - "line": 927, - "column": 2 - }, - "end": { - "line": 931, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Remove document payload\n * @typedef {Object} DocumentRemoveParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n * @property {DocumentRemoveOptions} [options] - document remove optional settings\n ", - "start": 34003, - "end": 34271, - "loc": { - "start": { - "line": 933, - "column": 2 - }, - "end": { - "line": 939, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Remove document response data\n * @typedef {Object} DocumentRemoveResponse\n * @property {string} status - status of deletion, e.g. 'success'\n ", - "start": 34275, - "end": 34433, - "loc": { - "start": { - "line": 941, - "column": 2 - }, - "end": { - "line": 945, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Removes a specified document from folder\n * @param {DocumentRemoveParams} data - remove document payload\n * @param {function(err: ApiErrorResponse, res: DocumentRemoveResponse)} [originalCallback] - error first node.js callback\n ", - "start": 34437, - "end": 34683, - "loc": { - "start": { - "line": 947, - "column": 2 - }, - "end": { - "line": 951, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 34686, - "end": 34692, - "loc": { - "start": { - "line": 952, - "column": 2 - }, - "end": { - "line": 952, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "remove", - "start": 34693, - "end": 34699, - "loc": { - "start": { - "line": 952, - "column": 9 - }, - "end": { - "line": 952, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 34700, - "end": 34701, - "loc": { - "start": { - "line": 952, - "column": 16 - }, - "end": { - "line": 952, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 34701, - "end": 34702, - "loc": { - "start": { - "line": 952, - "column": 17 - }, - "end": { - "line": 952, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 34707, - "end": 34709, - "loc": { - "start": { - "line": 953, - "column": 4 - }, - "end": { - "line": 953, - "column": 6 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 34709, - "end": 34710, - "loc": { - "start": { - "line": 953, - "column": 6 - }, - "end": { - "line": 953, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documentId", - "start": 34711, - "end": 34721, - "loc": { - "start": { - "line": 953, - "column": 8 - }, - "end": { - "line": 953, - "column": 18 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 34721, - "end": 34722, - "loc": { - "start": { - "line": 953, - "column": 18 - }, - "end": { - "line": 953, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 34727, - "end": 34732, - "loc": { - "start": { - "line": 954, - "column": 4 - }, - "end": { - "line": 954, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 34732, - "end": 34733, - "loc": { - "start": { - "line": 954, - "column": 9 - }, - "end": { - "line": 954, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "options", - "start": 34738, - "end": 34745, - "loc": { - "start": { - "line": 955, - "column": 4 - }, - "end": { - "line": 955, - "column": 11 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 34745, - "end": 34746, - "loc": { - "start": { - "line": 955, - "column": 11 - }, - "end": { - "line": 955, - "column": 12 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 34747, - "end": 34748, - "loc": { - "start": { - "line": 955, - "column": 13 - }, - "end": { - "line": 955, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cancelInvites", - "start": 34749, - "end": 34762, - "loc": { - "start": { - "line": 955, - "column": 15 - }, - "end": { - "line": 955, - "column": 28 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 34763, - "end": 34764, - "loc": { - "start": { - "line": 955, - "column": 29 - }, - "end": { - "line": 955, - "column": 30 - } - } - }, - { - "type": { - "label": "false", - "keyword": "false", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "false", - "start": 34765, - "end": 34770, - "loc": { - "start": { - "line": 955, - "column": 31 - }, - "end": { - "line": 955, - "column": 36 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 34771, - "end": 34772, - "loc": { - "start": { - "line": 955, - "column": 37 - }, - "end": { - "line": 955, - "column": 38 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 34773, - "end": 34774, - "loc": { - "start": { - "line": 955, - "column": 39 - }, - "end": { - "line": 955, - "column": 40 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 34775, - "end": 34776, - "loc": { - "start": { - "line": 955, - "column": 41 - }, - "end": { - "line": 955, - "column": 42 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 34776, - "end": 34777, - "loc": { - "start": { - "line": 955, - "column": 42 - }, - "end": { - "line": 955, - "column": 43 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 34777, - "end": 34778, - "loc": { - "start": { - "line": 955, - "column": 43 - }, - "end": { - "line": 955, - "column": 44 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 34781, - "end": 34782, - "loc": { - "start": { - "line": 956, - "column": 2 - }, - "end": { - "line": 956, - "column": 3 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 34782, - "end": 34783, - "loc": { - "start": { - "line": 956, - "column": 3 - }, - "end": { - "line": 956, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "originalCallback", - "start": 34784, - "end": 34800, - "loc": { - "start": { - "line": 956, - "column": 5 - }, - "end": { - "line": 956, - "column": 21 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 34800, - "end": 34801, - "loc": { - "start": { - "line": 956, - "column": 21 - }, - "end": { - "line": 956, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 34802, - "end": 34803, - "loc": { - "start": { - "line": 956, - "column": 23 - }, - "end": { - "line": 956, - "column": 24 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 34808, - "end": 34813, - "loc": { - "start": { - "line": 957, - "column": 4 - }, - "end": { - "line": 957, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callbackWithInviteCancellation", - "start": 34814, - "end": 34844, - "loc": { - "start": { - "line": 957, - "column": 10 - }, - "end": { - "line": 957, - "column": 40 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 34845, - "end": 34846, - "loc": { - "start": { - "line": 957, - "column": 41 - }, - "end": { - "line": 957, - "column": 42 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 34847, - "end": 34848, - "loc": { - "start": { - "line": 957, - "column": 43 - }, - "end": { - "line": 957, - "column": 44 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "removeErr", - "start": 34848, - "end": 34857, - "loc": { - "start": { - "line": 957, - "column": 44 - }, - "end": { - "line": 957, - "column": 53 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 34857, - "end": 34858, - "loc": { - "start": { - "line": 957, - "column": 53 - }, - "end": { - "line": 957, - "column": 54 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "removeRes", - "start": 34859, - "end": 34868, - "loc": { - "start": { - "line": 957, - "column": 55 - }, - "end": { - "line": 957, - "column": 64 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 34868, - "end": 34869, - "loc": { - "start": { - "line": 957, - "column": 64 - }, - "end": { - "line": 957, - "column": 65 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 34870, - "end": 34872, - "loc": { - "start": { - "line": 957, - "column": 66 - }, - "end": { - "line": 957, - "column": 68 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 34873, - "end": 34874, - "loc": { - "start": { - "line": 957, - "column": 69 - }, - "end": { - "line": 957, - "column": 70 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 34881, - "end": 34883, - "loc": { - "start": { - "line": 958, - "column": 6 - }, - "end": { - "line": 958, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 34884, - "end": 34885, - "loc": { - "start": { - "line": 958, - "column": 9 - }, - "end": { - "line": 958, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "removeErr", - "start": 34885, - "end": 34894, - "loc": { - "start": { - "line": 958, - "column": 10 - }, - "end": { - "line": 958, - "column": 19 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 34894, - "end": 34895, - "loc": { - "start": { - "line": 958, - "column": 19 - }, - "end": { - "line": 958, - "column": 20 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 34896, - "end": 34897, - "loc": { - "start": { - "line": 958, - "column": 21 - }, - "end": { - "line": 958, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "originalCallback", - "start": 34906, - "end": 34922, - "loc": { - "start": { - "line": 959, - "column": 8 - }, - "end": { - "line": 959, - "column": 24 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 34922, - "end": 34923, - "loc": { - "start": { - "line": 959, - "column": 24 - }, - "end": { - "line": 959, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "removeErr", - "start": 34923, - "end": 34932, - "loc": { - "start": { - "line": 959, - "column": 25 - }, - "end": { - "line": 959, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 34932, - "end": 34933, - "loc": { - "start": { - "line": 959, - "column": 34 - }, - "end": { - "line": 959, - "column": 35 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 34933, - "end": 34934, - "loc": { - "start": { - "line": 959, - "column": 35 - }, - "end": { - "line": 959, - "column": 36 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 34943, - "end": 34949, - "loc": { - "start": { - "line": 960, - "column": 8 - }, - "end": { - "line": 960, - "column": 14 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 34949, - "end": 34950, - "loc": { - "start": { - "line": 960, - "column": 14 - }, - "end": { - "line": 960, - "column": 15 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 34957, - "end": 34958, - "loc": { - "start": { - "line": 961, - "column": 6 - }, - "end": { - "line": 961, - "column": 7 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 34959, - "end": 34963, - "loc": { - "start": { - "line": 961, - "column": 8 - }, - "end": { - "line": 961, - "column": 12 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 34964, - "end": 34965, - "loc": { - "start": { - "line": 961, - "column": 13 - }, - "end": { - "line": 961, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "promisify", - "start": 34974, - "end": 34983, - "loc": { - "start": { - "line": 962, - "column": 8 - }, - "end": { - "line": 962, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 34983, - "end": 34984, - "loc": { - "start": { - "line": 962, - "column": 17 - }, - "end": { - "line": 962, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Document", - "start": 34984, - "end": 34992, - "loc": { - "start": { - "line": 962, - "column": 18 - }, - "end": { - "line": 962, - "column": 26 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 34992, - "end": 34993, - "loc": { - "start": { - "line": 962, - "column": 26 - }, - "end": { - "line": 962, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "view", - "start": 34993, - "end": 34997, - "loc": { - "start": { - "line": 962, - "column": 27 - }, - "end": { - "line": 962, - "column": 31 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 34997, - "end": 34998, - "loc": { - "start": { - "line": 962, - "column": 31 - }, - "end": { - "line": 962, - "column": 32 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 34998, - "end": 34999, - "loc": { - "start": { - "line": 962, - "column": 32 - }, - "end": { - "line": 962, - "column": 33 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 34999, - "end": 35000, - "loc": { - "start": { - "line": 962, - "column": 33 - }, - "end": { - "line": 962, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 35011, - "end": 35013, - "loc": { - "start": { - "line": 963, - "column": 10 - }, - "end": { - "line": 963, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 35013, - "end": 35014, - "loc": { - "start": { - "line": 963, - "column": 12 - }, - "end": { - "line": 963, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documentId", - "start": 35015, - "end": 35025, - "loc": { - "start": { - "line": 963, - "column": 14 - }, - "end": { - "line": 963, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 35025, - "end": 35026, - "loc": { - "start": { - "line": 963, - "column": 24 - }, - "end": { - "line": 963, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 35037, - "end": 35042, - "loc": { - "start": { - "line": 964, - "column": 10 - }, - "end": { - "line": 964, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 35042, - "end": 35043, - "loc": { - "start": { - "line": 964, - "column": 15 - }, - "end": { - "line": 964, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35052, - "end": 35053, - "loc": { - "start": { - "line": 965, - "column": 8 - }, - "end": { - "line": 965, - "column": 9 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35053, - "end": 35054, - "loc": { - "start": { - "line": 965, - "column": 9 - }, - "end": { - "line": 965, - "column": 10 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 35065, - "end": 35066, - "loc": { - "start": { - "line": 966, - "column": 10 - }, - "end": { - "line": 966, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "then", - "start": 35066, - "end": 35070, - "loc": { - "start": { - "line": 966, - "column": 11 - }, - "end": { - "line": 966, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35070, - "end": 35071, - "loc": { - "start": { - "line": 966, - "column": 15 - }, - "end": { - "line": 966, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document", - "start": 35071, - "end": 35079, - "loc": { - "start": { - "line": 966, - "column": 16 - }, - "end": { - "line": 966, - "column": 24 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 35080, - "end": 35082, - "loc": { - "start": { - "line": 966, - "column": 25 - }, - "end": { - "line": 966, - "column": 27 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35083, - "end": 35084, - "loc": { - "start": { - "line": 966, - "column": 28 - }, - "end": { - "line": 966, - "column": 29 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 35097, - "end": 35102, - "loc": { - "start": { - "line": 967, - "column": 12 - }, - "end": { - "line": 967, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35103, - "end": 35104, - "loc": { - "start": { - "line": 967, - "column": 18 - }, - "end": { - "line": 967, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "field_invites", - "start": 35105, - "end": 35118, - "loc": { - "start": { - "line": 967, - "column": 20 - }, - "end": { - "line": 967, - "column": 33 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 35118, - "end": 35119, - "loc": { - "start": { - "line": 967, - "column": 33 - }, - "end": { - "line": 967, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fieldInvites", - "start": 35120, - "end": 35132, - "loc": { - "start": { - "line": 967, - "column": 35 - }, - "end": { - "line": 967, - "column": 47 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 35132, - "end": 35133, - "loc": { - "start": { - "line": 967, - "column": 47 - }, - "end": { - "line": 967, - "column": 48 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "requests", - "start": 35134, - "end": 35142, - "loc": { - "start": { - "line": 967, - "column": 49 - }, - "end": { - "line": 967, - "column": 57 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 35142, - "end": 35143, - "loc": { - "start": { - "line": 967, - "column": 57 - }, - "end": { - "line": 967, - "column": 58 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "freeformInvites", - "start": 35144, - "end": 35159, - "loc": { - "start": { - "line": 967, - "column": 59 - }, - "end": { - "line": 967, - "column": 74 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35160, - "end": 35161, - "loc": { - "start": { - "line": 967, - "column": 75 - }, - "end": { - "line": 967, - "column": 76 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 35162, - "end": 35163, - "loc": { - "start": { - "line": 967, - "column": 77 - }, - "end": { - "line": 967, - "column": 78 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document", - "start": 35164, - "end": 35172, - "loc": { - "start": { - "line": 967, - "column": 79 - }, - "end": { - "line": 967, - "column": 87 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 35172, - "end": 35173, - "loc": { - "start": { - "line": 967, - "column": 87 - }, - "end": { - "line": 967, - "column": 88 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 35186, - "end": 35192, - "loc": { - "start": { - "line": 968, - "column": 12 - }, - "end": { - "line": 968, - "column": 18 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35193, - "end": 35194, - "loc": { - "start": { - "line": 968, - "column": 19 - }, - "end": { - "line": 968, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fieldInvites", - "start": 35209, - "end": 35221, - "loc": { - "start": { - "line": 969, - "column": 14 - }, - "end": { - "line": 969, - "column": 26 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 35221, - "end": 35222, - "loc": { - "start": { - "line": 969, - "column": 26 - }, - "end": { - "line": 969, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "freeformInvites", - "start": 35237, - "end": 35252, - "loc": { - "start": { - "line": 970, - "column": 14 - }, - "end": { - "line": 970, - "column": 29 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 35252, - "end": 35253, - "loc": { - "start": { - "line": 970, - "column": 29 - }, - "end": { - "line": 970, - "column": 30 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35266, - "end": 35267, - "loc": { - "start": { - "line": 971, - "column": 12 - }, - "end": { - "line": 971, - "column": 13 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 35267, - "end": 35268, - "loc": { - "start": { - "line": 971, - "column": 13 - }, - "end": { - "line": 971, - "column": 14 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35279, - "end": 35280, - "loc": { - "start": { - "line": 972, - "column": 10 - }, - "end": { - "line": 972, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35280, - "end": 35281, - "loc": { - "start": { - "line": 972, - "column": 11 - }, - "end": { - "line": 972, - "column": 12 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 35292, - "end": 35293, - "loc": { - "start": { - "line": 973, - "column": 10 - }, - "end": { - "line": 973, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "then", - "start": 35293, - "end": 35297, - "loc": { - "start": { - "line": 973, - "column": 11 - }, - "end": { - "line": 973, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35297, - "end": 35298, - "loc": { - "start": { - "line": 973, - "column": 15 - }, - "end": { - "line": 973, - "column": 16 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35298, - "end": 35299, - "loc": { - "start": { - "line": 973, - "column": 16 - }, - "end": { - "line": 973, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35299, - "end": 35300, - "loc": { - "start": { - "line": 973, - "column": 17 - }, - "end": { - "line": 973, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fieldInvites", - "start": 35301, - "end": 35313, - "loc": { - "start": { - "line": 973, - "column": 19 - }, - "end": { - "line": 973, - "column": 31 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 35313, - "end": 35314, - "loc": { - "start": { - "line": 973, - "column": 31 - }, - "end": { - "line": 973, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "freeformInvites", - "start": 35315, - "end": 35330, - "loc": { - "start": { - "line": 973, - "column": 33 - }, - "end": { - "line": 973, - "column": 48 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35331, - "end": 35332, - "loc": { - "start": { - "line": 973, - "column": 49 - }, - "end": { - "line": 973, - "column": 50 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35332, - "end": 35333, - "loc": { - "start": { - "line": 973, - "column": 50 - }, - "end": { - "line": 973, - "column": 51 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 35334, - "end": 35336, - "loc": { - "start": { - "line": 973, - "column": 52 - }, - "end": { - "line": 973, - "column": 54 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35337, - "end": 35338, - "loc": { - "start": { - "line": 973, - "column": 55 - }, - "end": { - "line": 973, - "column": 56 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 35351, - "end": 35356, - "loc": { - "start": { - "line": 974, - "column": 12 - }, - "end": { - "line": 974, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fieldInvitesCancelled", - "start": 35357, - "end": 35378, - "loc": { - "start": { - "line": 974, - "column": 18 - }, - "end": { - "line": 974, - "column": 39 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 35379, - "end": 35380, - "loc": { - "start": { - "line": 974, - "column": 40 - }, - "end": { - "line": 974, - "column": 41 - } - } - }, - { - "type": { - "label": "new", - "keyword": "new", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "new", - "start": 35381, - "end": 35384, - "loc": { - "start": { - "line": 974, - "column": 42 - }, - "end": { - "line": 974, - "column": 45 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Promise", - "start": 35385, - "end": 35392, - "loc": { - "start": { - "line": 974, - "column": 46 - }, - "end": { - "line": 974, - "column": 53 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35392, - "end": 35393, - "loc": { - "start": { - "line": 974, - "column": 53 - }, - "end": { - "line": 974, - "column": 54 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "resolve", - "start": 35393, - "end": 35400, - "loc": { - "start": { - "line": 974, - "column": 54 - }, - "end": { - "line": 974, - "column": 61 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 35401, - "end": 35403, - "loc": { - "start": { - "line": 974, - "column": 62 - }, - "end": { - "line": 974, - "column": 64 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35404, - "end": 35405, - "loc": { - "start": { - "line": 974, - "column": 65 - }, - "end": { - "line": 974, - "column": 66 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 35420, - "end": 35422, - "loc": { - "start": { - "line": 975, - "column": 14 - }, - "end": { - "line": 975, - "column": 16 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35423, - "end": 35424, - "loc": { - "start": { - "line": 975, - "column": 17 - }, - "end": { - "line": 975, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Array", - "start": 35424, - "end": 35429, - "loc": { - "start": { - "line": 975, - "column": 18 - }, - "end": { - "line": 975, - "column": 23 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 35429, - "end": 35430, - "loc": { - "start": { - "line": 975, - "column": 23 - }, - "end": { - "line": 975, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "isArray", - "start": 35430, - "end": 35437, - "loc": { - "start": { - "line": 975, - "column": 24 - }, - "end": { - "line": 975, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35437, - "end": 35438, - "loc": { - "start": { - "line": 975, - "column": 31 - }, - "end": { - "line": 975, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fieldInvites", - "start": 35438, - "end": 35450, - "loc": { - "start": { - "line": 975, - "column": 32 - }, - "end": { - "line": 975, - "column": 44 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35450, - "end": 35451, - "loc": { - "start": { - "line": 975, - "column": 44 - }, - "end": { - "line": 975, - "column": 45 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 35452, - "end": 35454, - "loc": { - "start": { - "line": 975, - "column": 46 - }, - "end": { - "line": 975, - "column": 48 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fieldInvites", - "start": 35455, - "end": 35467, - "loc": { - "start": { - "line": 975, - "column": 49 - }, - "end": { - "line": 975, - "column": 61 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 35467, - "end": 35468, - "loc": { - "start": { - "line": 975, - "column": 61 - }, - "end": { - "line": 975, - "column": 62 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "length", - "start": 35468, - "end": 35474, - "loc": { - "start": { - "line": 975, - "column": 62 - }, - "end": { - "line": 975, - "column": 68 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35474, - "end": 35475, - "loc": { - "start": { - "line": 975, - "column": 68 - }, - "end": { - "line": 975, - "column": 69 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35476, - "end": 35477, - "loc": { - "start": { - "line": 975, - "column": 70 - }, - "end": { - "line": 975, - "column": 71 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "resolve", - "start": 35494, - "end": 35501, - "loc": { - "start": { - "line": 976, - "column": 16 - }, - "end": { - "line": 976, - "column": 23 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35501, - "end": 35502, - "loc": { - "start": { - "line": 976, - "column": 23 - }, - "end": { - "line": 976, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "promisify", - "start": 35502, - "end": 35511, - "loc": { - "start": { - "line": 976, - "column": 24 - }, - "end": { - "line": 976, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35511, - "end": 35512, - "loc": { - "start": { - "line": 976, - "column": 33 - }, - "end": { - "line": 976, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Document", - "start": 35512, - "end": 35520, - "loc": { - "start": { - "line": 976, - "column": 34 - }, - "end": { - "line": 976, - "column": 42 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 35520, - "end": 35521, - "loc": { - "start": { - "line": 976, - "column": 42 - }, - "end": { - "line": 976, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cancelFieldInvite", - "start": 35521, - "end": 35538, - "loc": { - "start": { - "line": 976, - "column": 43 - }, - "end": { - "line": 976, - "column": 60 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35538, - "end": 35539, - "loc": { - "start": { - "line": 976, - "column": 60 - }, - "end": { - "line": 976, - "column": 61 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35539, - "end": 35540, - "loc": { - "start": { - "line": 976, - "column": 61 - }, - "end": { - "line": 976, - "column": 62 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35540, - "end": 35541, - "loc": { - "start": { - "line": 976, - "column": 62 - }, - "end": { - "line": 976, - "column": 63 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 35560, - "end": 35562, - "loc": { - "start": { - "line": 977, - "column": 18 - }, - "end": { - "line": 977, - "column": 20 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 35562, - "end": 35563, - "loc": { - "start": { - "line": 977, - "column": 20 - }, - "end": { - "line": 977, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documentId", - "start": 35564, - "end": 35574, - "loc": { - "start": { - "line": 977, - "column": 22 - }, - "end": { - "line": 977, - "column": 32 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 35574, - "end": 35575, - "loc": { - "start": { - "line": 977, - "column": 32 - }, - "end": { - "line": 977, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 35594, - "end": 35599, - "loc": { - "start": { - "line": 978, - "column": 18 - }, - "end": { - "line": 978, - "column": 23 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 35599, - "end": 35600, - "loc": { - "start": { - "line": 978, - "column": 23 - }, - "end": { - "line": 978, - "column": 24 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35617, - "end": 35618, - "loc": { - "start": { - "line": 979, - "column": 16 - }, - "end": { - "line": 979, - "column": 17 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35618, - "end": 35619, - "loc": { - "start": { - "line": 979, - "column": 17 - }, - "end": { - "line": 979, - "column": 18 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35619, - "end": 35620, - "loc": { - "start": { - "line": 979, - "column": 18 - }, - "end": { - "line": 979, - "column": 19 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 35620, - "end": 35621, - "loc": { - "start": { - "line": 979, - "column": 19 - }, - "end": { - "line": 979, - "column": 20 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35636, - "end": 35637, - "loc": { - "start": { - "line": 980, - "column": 14 - }, - "end": { - "line": 980, - "column": 15 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 35638, - "end": 35642, - "loc": { - "start": { - "line": 980, - "column": 16 - }, - "end": { - "line": 980, - "column": 20 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35643, - "end": 35644, - "loc": { - "start": { - "line": 980, - "column": 21 - }, - "end": { - "line": 980, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "resolve", - "start": 35661, - "end": 35668, - "loc": { - "start": { - "line": 981, - "column": 16 - }, - "end": { - "line": 981, - "column": 23 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35668, - "end": 35669, - "loc": { - "start": { - "line": 981, - "column": 23 - }, - "end": { - "line": 981, - "column": 24 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35669, - "end": 35670, - "loc": { - "start": { - "line": 981, - "column": 24 - }, - "end": { - "line": 981, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "status", - "start": 35671, - "end": 35677, - "loc": { - "start": { - "line": 981, - "column": 26 - }, - "end": { - "line": 981, - "column": 32 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 35677, - "end": 35678, - "loc": { - "start": { - "line": 981, - "column": 32 - }, - "end": { - "line": 981, - "column": 33 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "success", - "start": 35679, - "end": 35688, - "loc": { - "start": { - "line": 981, - "column": 34 - }, - "end": { - "line": 981, - "column": 43 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35689, - "end": 35690, - "loc": { - "start": { - "line": 981, - "column": 44 - }, - "end": { - "line": 981, - "column": 45 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35690, - "end": 35691, - "loc": { - "start": { - "line": 981, - "column": 45 - }, - "end": { - "line": 981, - "column": 46 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 35691, - "end": 35692, - "loc": { - "start": { - "line": 981, - "column": 46 - }, - "end": { - "line": 981, - "column": 47 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35707, - "end": 35708, - "loc": { - "start": { - "line": 982, - "column": 14 - }, - "end": { - "line": 982, - "column": 15 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35721, - "end": 35722, - "loc": { - "start": { - "line": 983, - "column": 12 - }, - "end": { - "line": 983, - "column": 13 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35722, - "end": 35723, - "loc": { - "start": { - "line": 983, - "column": 13 - }, - "end": { - "line": 983, - "column": 14 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 35738, - "end": 35739, - "loc": { - "start": { - "line": 984, - "column": 14 - }, - "end": { - "line": 984, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "then", - "start": 35739, - "end": 35743, - "loc": { - "start": { - "line": 984, - "column": 15 - }, - "end": { - "line": 984, - "column": 19 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35743, - "end": 35744, - "loc": { - "start": { - "line": 984, - "column": 19 - }, - "end": { - "line": 984, - "column": 20 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35744, - "end": 35745, - "loc": { - "start": { - "line": 984, - "column": 20 - }, - "end": { - "line": 984, - "column": 21 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35745, - "end": 35746, - "loc": { - "start": { - "line": 984, - "column": 21 - }, - "end": { - "line": 984, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "status", - "start": 35747, - "end": 35753, - "loc": { - "start": { - "line": 984, - "column": 23 - }, - "end": { - "line": 984, - "column": 29 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35754, - "end": 35755, - "loc": { - "start": { - "line": 984, - "column": 30 - }, - "end": { - "line": 984, - "column": 31 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35755, - "end": 35756, - "loc": { - "start": { - "line": 984, - "column": 31 - }, - "end": { - "line": 984, - "column": 32 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 35757, - "end": 35759, - "loc": { - "start": { - "line": 984, - "column": 33 - }, - "end": { - "line": 984, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "status", - "start": 35760, - "end": 35766, - "loc": { - "start": { - "line": 984, - "column": 36 - }, - "end": { - "line": 984, - "column": 42 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 35767, - "end": 35770, - "loc": { - "start": { - "line": 984, - "column": 43 - }, - "end": { - "line": 984, - "column": 46 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "success", - "start": 35771, - "end": 35780, - "loc": { - "start": { - "line": 984, - "column": 47 - }, - "end": { - "line": 984, - "column": 56 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35780, - "end": 35781, - "loc": { - "start": { - "line": 984, - "column": 56 - }, - "end": { - "line": 984, - "column": 57 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 35781, - "end": 35782, - "loc": { - "start": { - "line": 984, - "column": 57 - }, - "end": { - "line": 984, - "column": 58 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 35796, - "end": 35801, - "loc": { - "start": { - "line": 986, - "column": 12 - }, - "end": { - "line": 986, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "freeformInvitesCancelled", - "start": 35802, - "end": 35826, - "loc": { - "start": { - "line": 986, - "column": 18 - }, - "end": { - "line": 986, - "column": 42 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 35827, - "end": 35828, - "loc": { - "start": { - "line": 986, - "column": 43 - }, - "end": { - "line": 986, - "column": 44 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "freeformInvites", - "start": 35829, - "end": 35844, - "loc": { - "start": { - "line": 986, - "column": 45 - }, - "end": { - "line": 986, - "column": 60 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 35859, - "end": 35860, - "loc": { - "start": { - "line": 987, - "column": 14 - }, - "end": { - "line": 987, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "map", - "start": 35860, - "end": 35863, - "loc": { - "start": { - "line": 987, - "column": 15 - }, - "end": { - "line": 987, - "column": 18 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35863, - "end": 35864, - "loc": { - "start": { - "line": 987, - "column": 18 - }, - "end": { - "line": 987, - "column": 19 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35864, - "end": 35865, - "loc": { - "start": { - "line": 987, - "column": 19 - }, - "end": { - "line": 987, - "column": 20 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35865, - "end": 35866, - "loc": { - "start": { - "line": 987, - "column": 20 - }, - "end": { - "line": 987, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 35867, - "end": 35869, - "loc": { - "start": { - "line": 987, - "column": 22 - }, - "end": { - "line": 987, - "column": 24 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 35869, - "end": 35870, - "loc": { - "start": { - "line": 987, - "column": 24 - }, - "end": { - "line": 987, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "inviteId", - "start": 35871, - "end": 35879, - "loc": { - "start": { - "line": 987, - "column": 26 - }, - "end": { - "line": 987, - "column": 34 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35880, - "end": 35881, - "loc": { - "start": { - "line": 987, - "column": 35 - }, - "end": { - "line": 987, - "column": 36 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35881, - "end": 35882, - "loc": { - "start": { - "line": 987, - "column": 36 - }, - "end": { - "line": 987, - "column": 37 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 35883, - "end": 35885, - "loc": { - "start": { - "line": 987, - "column": 38 - }, - "end": { - "line": 987, - "column": 40 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35886, - "end": 35887, - "loc": { - "start": { - "line": 987, - "column": 41 - }, - "end": { - "line": 987, - "column": 42 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 35904, - "end": 35910, - "loc": { - "start": { - "line": 988, - "column": 16 - }, - "end": { - "line": 988, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "promisify", - "start": 35911, - "end": 35920, - "loc": { - "start": { - "line": 988, - "column": 23 - }, - "end": { - "line": 988, - "column": 32 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35920, - "end": 35921, - "loc": { - "start": { - "line": 988, - "column": 32 - }, - "end": { - "line": 988, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Document", - "start": 35921, - "end": 35929, - "loc": { - "start": { - "line": 988, - "column": 33 - }, - "end": { - "line": 988, - "column": 41 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 35929, - "end": 35930, - "loc": { - "start": { - "line": 988, - "column": 41 - }, - "end": { - "line": 988, - "column": 42 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cancelFreeFormInvite", - "start": 35930, - "end": 35950, - "loc": { - "start": { - "line": 988, - "column": 42 - }, - "end": { - "line": 988, - "column": 62 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35950, - "end": 35951, - "loc": { - "start": { - "line": 988, - "column": 62 - }, - "end": { - "line": 988, - "column": 63 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35951, - "end": 35952, - "loc": { - "start": { - "line": 988, - "column": 63 - }, - "end": { - "line": 988, - "column": 64 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 35952, - "end": 35953, - "loc": { - "start": { - "line": 988, - "column": 64 - }, - "end": { - "line": 988, - "column": 65 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 35972, - "end": 35974, - "loc": { - "start": { - "line": 989, - "column": 18 - }, - "end": { - "line": 989, - "column": 20 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 35974, - "end": 35975, - "loc": { - "start": { - "line": 989, - "column": 20 - }, - "end": { - "line": 989, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "inviteId", - "start": 35976, - "end": 35984, - "loc": { - "start": { - "line": 989, - "column": 22 - }, - "end": { - "line": 989, - "column": 30 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 35984, - "end": 35985, - "loc": { - "start": { - "line": 989, - "column": 30 - }, - "end": { - "line": 989, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 36004, - "end": 36009, - "loc": { - "start": { - "line": 990, - "column": 18 - }, - "end": { - "line": 990, - "column": 23 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 36009, - "end": 36010, - "loc": { - "start": { - "line": 990, - "column": 23 - }, - "end": { - "line": 990, - "column": 24 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36027, - "end": 36028, - "loc": { - "start": { - "line": 991, - "column": 16 - }, - "end": { - "line": 991, - "column": 17 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36028, - "end": 36029, - "loc": { - "start": { - "line": 991, - "column": 17 - }, - "end": { - "line": 991, - "column": 18 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 36048, - "end": 36049, - "loc": { - "start": { - "line": 992, - "column": 18 - }, - "end": { - "line": 992, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "then", - "start": 36049, - "end": 36053, - "loc": { - "start": { - "line": 992, - "column": 19 - }, - "end": { - "line": 992, - "column": 23 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36053, - "end": 36054, - "loc": { - "start": { - "line": 992, - "column": 23 - }, - "end": { - "line": 992, - "column": 24 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36054, - "end": 36055, - "loc": { - "start": { - "line": 992, - "column": 24 - }, - "end": { - "line": 992, - "column": 25 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36055, - "end": 36056, - "loc": { - "start": { - "line": 992, - "column": 25 - }, - "end": { - "line": 992, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 36057, - "end": 36059, - "loc": { - "start": { - "line": 992, - "column": 27 - }, - "end": { - "line": 992, - "column": 29 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36060, - "end": 36061, - "loc": { - "start": { - "line": 992, - "column": 30 - }, - "end": { - "line": 992, - "column": 31 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36061, - "end": 36062, - "loc": { - "start": { - "line": 992, - "column": 31 - }, - "end": { - "line": 992, - "column": 32 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 36063, - "end": 36065, - "loc": { - "start": { - "line": 992, - "column": 33 - }, - "end": { - "line": 992, - "column": 35 - } - } - }, - { - "type": { - "label": "prefix", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "!", - "start": 36066, - "end": 36067, - "loc": { - "start": { - "line": 992, - "column": 36 - }, - "end": { - "line": 992, - "column": 37 - } - } - }, - { - "type": { - "label": "prefix", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "!", - "start": 36067, - "end": 36068, - "loc": { - "start": { - "line": 992, - "column": 37 - }, - "end": { - "line": 992, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 36068, - "end": 36070, - "loc": { - "start": { - "line": 992, - "column": 38 - }, - "end": { - "line": 992, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36070, - "end": 36071, - "loc": { - "start": { - "line": 992, - "column": 40 - }, - "end": { - "line": 992, - "column": 41 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 36071, - "end": 36072, - "loc": { - "start": { - "line": 992, - "column": 41 - }, - "end": { - "line": 992, - "column": 42 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36087, - "end": 36088, - "loc": { - "start": { - "line": 993, - "column": 14 - }, - "end": { - "line": 993, - "column": 15 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36088, - "end": 36089, - "loc": { - "start": { - "line": 993, - "column": 15 - }, - "end": { - "line": 993, - "column": 16 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 36089, - "end": 36090, - "loc": { - "start": { - "line": 993, - "column": 16 - }, - "end": { - "line": 993, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Promise", - "start": 36104, - "end": 36111, - "loc": { - "start": { - "line": 995, - "column": 12 - }, - "end": { - "line": 995, - "column": 19 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 36111, - "end": 36112, - "loc": { - "start": { - "line": 995, - "column": 19 - }, - "end": { - "line": 995, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "all", - "start": 36112, - "end": 36115, - "loc": { - "start": { - "line": 995, - "column": 20 - }, - "end": { - "line": 995, - "column": 23 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36115, - "end": 36116, - "loc": { - "start": { - "line": 995, - "column": 23 - }, - "end": { - "line": 995, - "column": 24 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 36116, - "end": 36117, - "loc": { - "start": { - "line": 995, - "column": 24 - }, - "end": { - "line": 995, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fieldInvitesCancelled", - "start": 36132, - "end": 36153, - "loc": { - "start": { - "line": 996, - "column": 14 - }, - "end": { - "line": 996, - "column": 35 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 36153, - "end": 36154, - "loc": { - "start": { - "line": 996, - "column": 35 - }, - "end": { - "line": 996, - "column": 36 - } - } - }, - { - "type": { - "label": "...", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 36169, - "end": 36172, - "loc": { - "start": { - "line": 997, - "column": 14 - }, - "end": { - "line": 997, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "freeformInvitesCancelled", - "start": 36172, - "end": 36196, - "loc": { - "start": { - "line": 997, - "column": 17 - }, - "end": { - "line": 997, - "column": 41 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 36196, - "end": 36197, - "loc": { - "start": { - "line": 997, - "column": 41 - }, - "end": { - "line": 997, - "column": 42 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 36210, - "end": 36211, - "loc": { - "start": { - "line": 998, - "column": 12 - }, - "end": { - "line": 998, - "column": 13 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36211, - "end": 36212, - "loc": { - "start": { - "line": 998, - "column": 13 - }, - "end": { - "line": 998, - "column": 14 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 36227, - "end": 36228, - "loc": { - "start": { - "line": 999, - "column": 14 - }, - "end": { - "line": 999, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "then", - "start": 36228, - "end": 36232, - "loc": { - "start": { - "line": 999, - "column": 15 - }, - "end": { - "line": 999, - "column": 19 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36232, - "end": 36233, - "loc": { - "start": { - "line": 999, - "column": 19 - }, - "end": { - "line": 999, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "allInvitesCancelled", - "start": 36233, - "end": 36252, - "loc": { - "start": { - "line": 999, - "column": 20 - }, - "end": { - "line": 999, - "column": 39 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 36253, - "end": 36255, - "loc": { - "start": { - "line": 999, - "column": 40 - }, - "end": { - "line": 999, - "column": 42 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36256, - "end": 36257, - "loc": { - "start": { - "line": 999, - "column": 43 - }, - "end": { - "line": 999, - "column": 44 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 36274, - "end": 36276, - "loc": { - "start": { - "line": 1000, - "column": 16 - }, - "end": { - "line": 1000, - "column": 18 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36277, - "end": 36278, - "loc": { - "start": { - "line": 1000, - "column": 19 - }, - "end": { - "line": 1000, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "allInvitesCancelled", - "start": 36278, - "end": 36297, - "loc": { - "start": { - "line": 1000, - "column": 20 - }, - "end": { - "line": 1000, - "column": 39 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36297, - "end": 36298, - "loc": { - "start": { - "line": 1000, - "column": 39 - }, - "end": { - "line": 1000, - "column": 40 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36299, - "end": 36300, - "loc": { - "start": { - "line": 1000, - "column": 41 - }, - "end": { - "line": 1000, - "column": 42 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "originalCallback", - "start": 36319, - "end": 36335, - "loc": { - "start": { - "line": 1001, - "column": 18 - }, - "end": { - "line": 1001, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36335, - "end": 36336, - "loc": { - "start": { - "line": 1001, - "column": 34 - }, - "end": { - "line": 1001, - "column": 35 - } - } - }, - { - "type": { - "label": "null", - "keyword": "null", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "null", - "start": 36336, - "end": 36340, - "loc": { - "start": { - "line": 1001, - "column": 35 - }, - "end": { - "line": 1001, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 36340, - "end": 36341, - "loc": { - "start": { - "line": 1001, - "column": 39 - }, - "end": { - "line": 1001, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "removeRes", - "start": 36342, - "end": 36351, - "loc": { - "start": { - "line": 1001, - "column": 41 - }, - "end": { - "line": 1001, - "column": 50 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36351, - "end": 36352, - "loc": { - "start": { - "line": 1001, - "column": 50 - }, - "end": { - "line": 1001, - "column": 51 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 36352, - "end": 36353, - "loc": { - "start": { - "line": 1001, - "column": 51 - }, - "end": { - "line": 1001, - "column": 52 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 36372, - "end": 36378, - "loc": { - "start": { - "line": 1002, - "column": 18 - }, - "end": { - "line": 1002, - "column": 24 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 36378, - "end": 36379, - "loc": { - "start": { - "line": 1002, - "column": 24 - }, - "end": { - "line": 1002, - "column": 25 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36396, - "end": 36397, - "loc": { - "start": { - "line": 1003, - "column": 16 - }, - "end": { - "line": 1003, - "column": 17 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 36398, - "end": 36402, - "loc": { - "start": { - "line": 1003, - "column": 18 - }, - "end": { - "line": 1003, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36403, - "end": 36404, - "loc": { - "start": { - "line": 1003, - "column": 23 - }, - "end": { - "line": 1003, - "column": 24 - } - } - }, - { - "type": { - "label": "throw", - "keyword": "throw", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "throw", - "start": 36423, - "end": 36428, - "loc": { - "start": { - "line": 1004, - "column": 18 - }, - "end": { - "line": 1004, - "column": 23 - } - } - }, - { - "type": { - "label": "new", - "keyword": "new", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "new", - "start": 36429, - "end": 36432, - "loc": { - "start": { - "line": 1004, - "column": 24 - }, - "end": { - "line": 1004, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Error", - "start": 36433, - "end": 36438, - "loc": { - "start": { - "line": 1004, - "column": 28 - }, - "end": { - "line": 1004, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36438, - "end": 36439, - "loc": { - "start": { - "line": 1004, - "column": 33 - }, - "end": { - "line": 1004, - "column": 34 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Some of invites have not been cancelled", - "start": 36439, - "end": 36480, - "loc": { - "start": { - "line": 1004, - "column": 34 - }, - "end": { - "line": 1004, - "column": 75 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36480, - "end": 36481, - "loc": { - "start": { - "line": 1004, - "column": 75 - }, - "end": { - "line": 1004, - "column": 76 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 36481, - "end": 36482, - "loc": { - "start": { - "line": 1004, - "column": 76 - }, - "end": { - "line": 1004, - "column": 77 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36499, - "end": 36500, - "loc": { - "start": { - "line": 1005, - "column": 16 - }, - "end": { - "line": 1005, - "column": 17 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36515, - "end": 36516, - "loc": { - "start": { - "line": 1006, - "column": 14 - }, - "end": { - "line": 1006, - "column": 15 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36516, - "end": 36517, - "loc": { - "start": { - "line": 1006, - "column": 15 - }, - "end": { - "line": 1006, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 36532, - "end": 36533, - "loc": { - "start": { - "line": 1007, - "column": 14 - }, - "end": { - "line": 1007, - "column": 15 - } - } - }, - { - "type": { - "label": "catch", - "keyword": "catch", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "catch", - "start": 36533, - "end": 36538, - "loc": { - "start": { - "line": 1007, - "column": 15 - }, - "end": { - "line": 1007, - "column": 20 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36538, - "end": 36539, - "loc": { - "start": { - "line": 1007, - "column": 20 - }, - "end": { - "line": 1007, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 36539, - "end": 36542, - "loc": { - "start": { - "line": 1007, - "column": 21 - }, - "end": { - "line": 1007, - "column": 24 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 36543, - "end": 36545, - "loc": { - "start": { - "line": 1007, - "column": 25 - }, - "end": { - "line": 1007, - "column": 27 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36546, - "end": 36547, - "loc": { - "start": { - "line": 1007, - "column": 28 - }, - "end": { - "line": 1007, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "originalCallback", - "start": 36564, - "end": 36580, - "loc": { - "start": { - "line": 1008, - "column": 16 - }, - "end": { - "line": 1008, - "column": 32 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36580, - "end": 36581, - "loc": { - "start": { - "line": 1008, - "column": 32 - }, - "end": { - "line": 1008, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 36581, - "end": 36584, - "loc": { - "start": { - "line": 1008, - "column": 33 - }, - "end": { - "line": 1008, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 36584, - "end": 36585, - "loc": { - "start": { - "line": 1008, - "column": 36 - }, - "end": { - "line": 1008, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "message", - "start": 36585, - "end": 36592, - "loc": { - "start": { - "line": 1008, - "column": 37 - }, - "end": { - "line": 1008, - "column": 44 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36592, - "end": 36593, - "loc": { - "start": { - "line": 1008, - "column": 44 - }, - "end": { - "line": 1008, - "column": 45 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 36593, - "end": 36594, - "loc": { - "start": { - "line": 1008, - "column": 45 - }, - "end": { - "line": 1008, - "column": 46 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 36611, - "end": 36617, - "loc": { - "start": { - "line": 1009, - "column": 16 - }, - "end": { - "line": 1009, - "column": 22 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 36617, - "end": 36618, - "loc": { - "start": { - "line": 1009, - "column": 22 - }, - "end": { - "line": 1009, - "column": 23 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36633, - "end": 36634, - "loc": { - "start": { - "line": 1010, - "column": 14 - }, - "end": { - "line": 1010, - "column": 15 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36634, - "end": 36635, - "loc": { - "start": { - "line": 1010, - "column": 15 - }, - "end": { - "line": 1010, - "column": 16 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 36635, - "end": 36636, - "loc": { - "start": { - "line": 1010, - "column": 16 - }, - "end": { - "line": 1010, - "column": 17 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36647, - "end": 36648, - "loc": { - "start": { - "line": 1011, - "column": 10 - }, - "end": { - "line": 1011, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36648, - "end": 36649, - "loc": { - "start": { - "line": 1011, - "column": 11 - }, - "end": { - "line": 1011, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 36649, - "end": 36650, - "loc": { - "start": { - "line": 1011, - "column": 12 - }, - "end": { - "line": 1011, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36657, - "end": 36658, - "loc": { - "start": { - "line": 1012, - "column": 6 - }, - "end": { - "line": 1012, - "column": 7 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36663, - "end": 36664, - "loc": { - "start": { - "line": 1013, - "column": 4 - }, - "end": { - "line": 1013, - "column": 5 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 36664, - "end": 36665, - "loc": { - "start": { - "line": 1013, - "column": 5 - }, - "end": { - "line": 1013, - "column": 6 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 36671, - "end": 36676, - "loc": { - "start": { - "line": 1015, - "column": 4 - }, - "end": { - "line": 1015, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 36677, - "end": 36685, - "loc": { - "start": { - "line": 1015, - "column": 10 - }, - "end": { - "line": 1015, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 36686, - "end": 36687, - "loc": { - "start": { - "line": 1015, - "column": 19 - }, - "end": { - "line": 1015, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cancelInvites", - "start": 36688, - "end": 36701, - "loc": { - "start": { - "line": 1015, - "column": 21 - }, - "end": { - "line": 1015, - "column": 34 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 36708, - "end": 36709, - "loc": { - "start": { - "line": 1016, - "column": 6 - }, - "end": { - "line": 1016, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callbackWithInviteCancellation", - "start": 36710, - "end": 36740, - "loc": { - "start": { - "line": 1016, - "column": 8 - }, - "end": { - "line": 1016, - "column": 38 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 36747, - "end": 36748, - "loc": { - "start": { - "line": 1017, - "column": 6 - }, - "end": { - "line": 1017, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "originalCallback", - "start": 36749, - "end": 36765, - "loc": { - "start": { - "line": 1017, - "column": 8 - }, - "end": { - "line": 1017, - "column": 24 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 36765, - "end": 36766, - "loc": { - "start": { - "line": 1017, - "column": 24 - }, - "end": { - "line": 1017, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 36772, - "end": 36777, - "loc": { - "start": { - "line": 1019, - "column": 4 - }, - "end": { - "line": 1019, - "column": 9 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 36784, - "end": 36785, - "loc": { - "start": { - "line": 1020, - "column": 6 - }, - "end": { - "line": 1020, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 36785, - "end": 36792, - "loc": { - "start": { - "line": 1020, - "column": 7 - }, - "end": { - "line": 1020, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36792, - "end": 36793, - "loc": { - "start": { - "line": 1020, - "column": 14 - }, - "end": { - "line": 1020, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 36793, - "end": 36812, - "loc": { - "start": { - "line": 1020, - "column": 15 - }, - "end": { - "line": 1020, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36812, - "end": 36813, - "loc": { - "start": { - "line": 1020, - "column": 34 - }, - "end": { - "line": 1020, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36813, - "end": 36814, - "loc": { - "start": { - "line": 1020, - "column": 35 - }, - "end": { - "line": 1020, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 36823, - "end": 36829, - "loc": { - "start": { - "line": 1021, - "column": 8 - }, - "end": { - "line": 1021, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 36829, - "end": 36830, - "loc": { - "start": { - "line": 1021, - "column": 14 - }, - "end": { - "line": 1021, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "DELETE", - "start": 36831, - "end": 36839, - "loc": { - "start": { - "line": 1021, - "column": 16 - }, - "end": { - "line": 1021, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 36839, - "end": 36840, - "loc": { - "start": { - "line": 1021, - "column": 24 - }, - "end": { - "line": 1021, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 36849, - "end": 36853, - "loc": { - "start": { - "line": 1022, - "column": 8 - }, - "end": { - "line": 1022, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 36853, - "end": 36854, - "loc": { - "start": { - "line": 1022, - "column": 12 - }, - "end": { - "line": 1022, - "column": 13 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36855, - "end": 36856, - "loc": { - "start": { - "line": 1022, - "column": 14 - }, - "end": { - "line": 1022, - "column": 15 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/document/", - "start": 36856, - "end": 36866, - "loc": { - "start": { - "line": 1022, - "column": 15 - }, - "end": { - "line": 1022, - "column": 25 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36866, - "end": 36868, - "loc": { - "start": { - "line": 1022, - "column": 25 - }, - "end": { - "line": 1022, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documentId", - "start": 36868, - "end": 36878, - "loc": { - "start": { - "line": 1022, - "column": 27 - }, - "end": { - "line": 1022, - "column": 37 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36878, - "end": 36879, - "loc": { - "start": { - "line": 1022, - "column": 37 - }, - "end": { - "line": 1022, - "column": 38 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 36879, - "end": 36879, - "loc": { - "start": { - "line": 1022, - "column": 38 - }, - "end": { - "line": 1022, - "column": 38 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36879, - "end": 36880, - "loc": { - "start": { - "line": 1022, - "column": 38 - }, - "end": { - "line": 1022, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 36880, - "end": 36881, - "loc": { - "start": { - "line": 1022, - "column": 39 - }, - "end": { - "line": 1022, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 36890, - "end": 36903, - "loc": { - "start": { - "line": 1023, - "column": 8 - }, - "end": { - "line": 1023, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 36903, - "end": 36904, - "loc": { - "start": { - "line": 1023, - "column": 21 - }, - "end": { - "line": 1023, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36905, - "end": 36906, - "loc": { - "start": { - "line": 1023, - "column": 23 - }, - "end": { - "line": 1023, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 36917, - "end": 36921, - "loc": { - "start": { - "line": 1024, - "column": 10 - }, - "end": { - "line": 1024, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 36921, - "end": 36922, - "loc": { - "start": { - "line": 1024, - "column": 14 - }, - "end": { - "line": 1024, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 36923, - "end": 36931, - "loc": { - "start": { - "line": 1024, - "column": 16 - }, - "end": { - "line": 1024, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 36931, - "end": 36932, - "loc": { - "start": { - "line": 1024, - "column": 24 - }, - "end": { - "line": 1024, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 36943, - "end": 36948, - "loc": { - "start": { - "line": 1025, - "column": 10 - }, - "end": { - "line": 1025, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 36948, - "end": 36949, - "loc": { - "start": { - "line": 1025, - "column": 15 - }, - "end": { - "line": 1025, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36958, - "end": 36959, - "loc": { - "start": { - "line": 1026, - "column": 8 - }, - "end": { - "line": 1026, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 36959, - "end": 36960, - "loc": { - "start": { - "line": 1026, - "column": 9 - }, - "end": { - "line": 1026, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36967, - "end": 36968, - "loc": { - "start": { - "line": 1027, - "column": 6 - }, - "end": { - "line": 1027, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36968, - "end": 36969, - "loc": { - "start": { - "line": 1027, - "column": 7 - }, - "end": { - "line": 1027, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 36969, - "end": 36970, - "loc": { - "start": { - "line": 1027, - "column": 8 - }, - "end": { - "line": 1027, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 36971, - "end": 36986, - "loc": { - "start": { - "line": 1027, - "column": 10 - }, - "end": { - "line": 1027, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36986, - "end": 36987, - "loc": { - "start": { - "line": 1027, - "column": 25 - }, - "end": { - "line": 1027, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 36987, - "end": 36995, - "loc": { - "start": { - "line": 1027, - "column": 26 - }, - "end": { - "line": 1027, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36995, - "end": 36996, - "loc": { - "start": { - "line": 1027, - "column": 34 - }, - "end": { - "line": 1027, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 36996, - "end": 36997, - "loc": { - "start": { - "line": 1027, - "column": 35 - }, - "end": { - "line": 1027, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 37004, - "end": 37005, - "loc": { - "start": { - "line": 1028, - "column": 6 - }, - "end": { - "line": 1028, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 37005, - "end": 37007, - "loc": { - "start": { - "line": 1028, - "column": 7 - }, - "end": { - "line": 1028, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 37007, - "end": 37008, - "loc": { - "start": { - "line": 1028, - "column": 9 - }, - "end": { - "line": 1028, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 37008, - "end": 37015, - "loc": { - "start": { - "line": 1028, - "column": 10 - }, - "end": { - "line": 1028, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 37015, - "end": 37016, - "loc": { - "start": { - "line": 1028, - "column": 17 - }, - "end": { - "line": 1028, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 37017, - "end": 37029, - "loc": { - "start": { - "line": 1028, - "column": 19 - }, - "end": { - "line": 1028, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 37029, - "end": 37030, - "loc": { - "start": { - "line": 1028, - "column": 31 - }, - "end": { - "line": 1028, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "originalCallback", - "start": 37030, - "end": 37046, - "loc": { - "start": { - "line": 1028, - "column": 32 - }, - "end": { - "line": 1028, - "column": 48 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 37046, - "end": 37047, - "loc": { - "start": { - "line": 1028, - "column": 48 - }, - "end": { - "line": 1028, - "column": 49 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 37047, - "end": 37048, - "loc": { - "start": { - "line": 1028, - "column": 49 - }, - "end": { - "line": 1028, - "column": 50 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 37055, - "end": 37056, - "loc": { - "start": { - "line": 1029, - "column": 6 - }, - "end": { - "line": 1029, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 37056, - "end": 37059, - "loc": { - "start": { - "line": 1029, - "column": 7 - }, - "end": { - "line": 1029, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 37059, - "end": 37060, - "loc": { - "start": { - "line": 1029, - "column": 10 - }, - "end": { - "line": 1029, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 37060, - "end": 37061, - "loc": { - "start": { - "line": 1029, - "column": 11 - }, - "end": { - "line": 1029, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 37061, - "end": 37062, - "loc": { - "start": { - "line": 1029, - "column": 12 - }, - "end": { - "line": 1029, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 37065, - "end": 37066, - "loc": { - "start": { - "line": 1030, - "column": 2 - }, - "end": { - "line": 1030, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Get Document Signers optional settings\n * @typedef {Object} DocumentSignersOptions\n * @property {boolean} [allSignatures=true] - if true receive all document signers email\n * @property {boolean} [freeFormInvites=false] - if `true` return free from invite signer emails\n * @property {?string[]} [fieldInvitesStatus=null] - return signers according to specified field invite status(es)\n * Accepts list of statuses or a single status.\n * Acceptable statuses: all, pending, declined, fulfilled, created, skipped.\n * @property {?string[]} [paymentRequestsStatus=null] - return signers according to specified to payment request status(es)\n * Accepts list of statuses or a single status.\n * Available statuses: all, pending, fulfilled, created, skipped.\n ", - "start": 37070, - "end": 37849, - "loc": { - "start": { - "line": 1032, - "column": 2 - }, - "end": { - "line": 1043, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Get Document Signers payload\n * @typedef {Object} DocumentSignersParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n * @property {DocumentSignersOptions} [options] - document signers optional settings,\n ", - "start": 37853, - "end": 38130, - "loc": { - "start": { - "line": 1045, - "column": 2 - }, - "end": { - "line": 1051, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Get Document Signers response data\n * @typedef {Object} DocumentSignersResponse\n * @property {string[]} - emails of document signers\n ", - "start": 38134, - "end": 38286, - "loc": { - "start": { - "line": 1053, - "column": 2 - }, - "end": { - "line": 1057, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves all signers of specific document\n * @experimental this class includes breaking change.\n * @param {DocumentSignersParams} data - get document signers payload\n * @param {function(err: ApiErrorResponse, res: DocumentSignersResponse)} [callback] - error first node.js callback\n ", - "start": 38290, - "end": 38593, - "loc": { - "start": { - "line": 1059, - "column": 2 - }, - "end": { - "line": 1064, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 38596, - "end": 38602, - "loc": { - "start": { - "line": 1065, - "column": 2 - }, - "end": { - "line": 1065, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "signers", - "start": 38603, - "end": 38610, - "loc": { - "start": { - "line": 1065, - "column": 9 - }, - "end": { - "line": 1065, - "column": 16 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 38611, - "end": 38612, - "loc": { - "start": { - "line": 1065, - "column": 17 - }, - "end": { - "line": 1065, - "column": 18 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 38612, - "end": 38613, - "loc": { - "start": { - "line": 1065, - "column": 18 - }, - "end": { - "line": 1065, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 38618, - "end": 38620, - "loc": { - "start": { - "line": 1066, - "column": 4 - }, - "end": { - "line": 1066, - "column": 6 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 38620, - "end": 38621, - "loc": { - "start": { - "line": 1066, - "column": 6 - }, - "end": { - "line": 1066, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 38626, - "end": 38631, - "loc": { - "start": { - "line": 1067, - "column": 4 - }, - "end": { - "line": 1067, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 38631, - "end": 38632, - "loc": { - "start": { - "line": 1067, - "column": 9 - }, - "end": { - "line": 1067, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "options", - "start": 38637, - "end": 38644, - "loc": { - "start": { - "line": 1068, - "column": 4 - }, - "end": { - "line": 1068, - "column": 11 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 38645, - "end": 38646, - "loc": { - "start": { - "line": 1068, - "column": 12 - }, - "end": { - "line": 1068, - "column": 13 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 38647, - "end": 38648, - "loc": { - "start": { - "line": 1068, - "column": 14 - }, - "end": { - "line": 1068, - "column": 15 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 38648, - "end": 38649, - "loc": { - "start": { - "line": 1068, - "column": 15 - }, - "end": { - "line": 1068, - "column": 16 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 38649, - "end": 38650, - "loc": { - "start": { - "line": 1068, - "column": 16 - }, - "end": { - "line": 1068, - "column": 17 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 38653, - "end": 38654, - "loc": { - "start": { - "line": 1069, - "column": 2 - }, - "end": { - "line": 1069, - "column": 3 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 38654, - "end": 38655, - "loc": { - "start": { - "line": 1069, - "column": 3 - }, - "end": { - "line": 1069, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 38656, - "end": 38664, - "loc": { - "start": { - "line": 1069, - "column": 5 - }, - "end": { - "line": 1069, - "column": 13 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 38664, - "end": 38665, - "loc": { - "start": { - "line": 1069, - "column": 13 - }, - "end": { - "line": 1069, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 38666, - "end": 38667, - "loc": { - "start": { - "line": 1069, - "column": 15 - }, - "end": { - "line": 1069, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "promisify", - "start": 38672, - "end": 38681, - "loc": { - "start": { - "line": 1070, - "column": 4 - }, - "end": { - "line": 1070, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 38681, - "end": 38682, - "loc": { - "start": { - "line": 1070, - "column": 13 - }, - "end": { - "line": 1070, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Document", - "start": 38682, - "end": 38690, - "loc": { - "start": { - "line": 1070, - "column": 14 - }, - "end": { - "line": 1070, - "column": 22 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 38690, - "end": 38691, - "loc": { - "start": { - "line": 1070, - "column": 22 - }, - "end": { - "line": 1070, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "view", - "start": 38691, - "end": 38695, - "loc": { - "start": { - "line": 1070, - "column": 23 - }, - "end": { - "line": 1070, - "column": 27 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 38695, - "end": 38696, - "loc": { - "start": { - "line": 1070, - "column": 27 - }, - "end": { - "line": 1070, - "column": 28 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 38696, - "end": 38697, - "loc": { - "start": { - "line": 1070, - "column": 28 - }, - "end": { - "line": 1070, - "column": 29 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 38697, - "end": 38698, - "loc": { - "start": { - "line": 1070, - "column": 29 - }, - "end": { - "line": 1070, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 38705, - "end": 38707, - "loc": { - "start": { - "line": 1071, - "column": 6 - }, - "end": { - "line": 1071, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 38707, - "end": 38708, - "loc": { - "start": { - "line": 1071, - "column": 8 - }, - "end": { - "line": 1071, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 38715, - "end": 38720, - "loc": { - "start": { - "line": 1072, - "column": 6 - }, - "end": { - "line": 1072, - "column": 11 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 38720, - "end": 38721, - "loc": { - "start": { - "line": 1072, - "column": 11 - }, - "end": { - "line": 1072, - "column": 12 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 38726, - "end": 38727, - "loc": { - "start": { - "line": 1073, - "column": 4 - }, - "end": { - "line": 1073, - "column": 5 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 38727, - "end": 38728, - "loc": { - "start": { - "line": 1073, - "column": 5 - }, - "end": { - "line": 1073, - "column": 6 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 38735, - "end": 38736, - "loc": { - "start": { - "line": 1074, - "column": 6 - }, - "end": { - "line": 1074, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "then", - "start": 38736, - "end": 38740, - "loc": { - "start": { - "line": 1074, - "column": 7 - }, - "end": { - "line": 1074, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 38740, - "end": 38741, - "loc": { - "start": { - "line": 1074, - "column": 11 - }, - "end": { - "line": 1074, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document", - "start": 38741, - "end": 38749, - "loc": { - "start": { - "line": 1074, - "column": 12 - }, - "end": { - "line": 1074, - "column": 20 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 38750, - "end": 38752, - "loc": { - "start": { - "line": 1074, - "column": 21 - }, - "end": { - "line": 1074, - "column": 23 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 38753, - "end": 38754, - "loc": { - "start": { - "line": 1074, - "column": 24 - }, - "end": { - "line": 1074, - "column": 25 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 38763, - "end": 38768, - "loc": { - "start": { - "line": 1075, - "column": 8 - }, - "end": { - "line": 1075, - "column": 13 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 38769, - "end": 38770, - "loc": { - "start": { - "line": 1075, - "column": 14 - }, - "end": { - "line": 1075, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "requests", - "start": 38781, - "end": 38789, - "loc": { - "start": { - "line": 1076, - "column": 10 - }, - "end": { - "line": 1076, - "column": 18 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 38789, - "end": 38790, - "loc": { - "start": { - "line": 1076, - "column": 18 - }, - "end": { - "line": 1076, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "field_invites", - "start": 38801, - "end": 38814, - "loc": { - "start": { - "line": 1077, - "column": 10 - }, - "end": { - "line": 1077, - "column": 23 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 38814, - "end": 38815, - "loc": { - "start": { - "line": 1077, - "column": 23 - }, - "end": { - "line": 1077, - "column": 24 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 38824, - "end": 38825, - "loc": { - "start": { - "line": 1078, - "column": 8 - }, - "end": { - "line": 1078, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 38826, - "end": 38827, - "loc": { - "start": { - "line": 1078, - "column": 10 - }, - "end": { - "line": 1078, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document", - "start": 38828, - "end": 38836, - "loc": { - "start": { - "line": 1078, - "column": 12 - }, - "end": { - "line": 1078, - "column": 20 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 38836, - "end": 38837, - "loc": { - "start": { - "line": 1078, - "column": 20 - }, - "end": { - "line": 1078, - "column": 21 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 38847, - "end": 38852, - "loc": { - "start": { - "line": 1080, - "column": 8 - }, - "end": { - "line": 1080, - "column": 13 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 38853, - "end": 38854, - "loc": { - "start": { - "line": 1080, - "column": 14 - }, - "end": { - "line": 1080, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "freeFormInvites", - "start": 38865, - "end": 38880, - "loc": { - "start": { - "line": 1081, - "column": 10 - }, - "end": { - "line": 1081, - "column": 25 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 38881, - "end": 38882, - "loc": { - "start": { - "line": 1081, - "column": 26 - }, - "end": { - "line": 1081, - "column": 27 - } - } - }, - { - "type": { - "label": "false", - "keyword": "false", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "false", - "start": 38883, - "end": 38888, - "loc": { - "start": { - "line": 1081, - "column": 28 - }, - "end": { - "line": 1081, - "column": 33 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 38888, - "end": 38889, - "loc": { - "start": { - "line": 1081, - "column": 33 - }, - "end": { - "line": 1081, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fieldInviteStatus", - "start": 38900, - "end": 38917, - "loc": { - "start": { - "line": 1082, - "column": 10 - }, - "end": { - "line": 1082, - "column": 27 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 38918, - "end": 38919, - "loc": { - "start": { - "line": 1082, - "column": 28 - }, - "end": { - "line": 1082, - "column": 29 - } - } - }, - { - "type": { - "label": "null", - "keyword": "null", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "null", - "start": 38920, - "end": 38924, - "loc": { - "start": { - "line": 1082, - "column": 30 - }, - "end": { - "line": 1082, - "column": 34 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 38924, - "end": 38925, - "loc": { - "start": { - "line": 1082, - "column": 34 - }, - "end": { - "line": 1082, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "paymentRequestStatus", - "start": 38936, - "end": 38956, - "loc": { - "start": { - "line": 1083, - "column": 10 - }, - "end": { - "line": 1083, - "column": 30 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 38957, - "end": 38958, - "loc": { - "start": { - "line": 1083, - "column": 31 - }, - "end": { - "line": 1083, - "column": 32 - } - } - }, - { - "type": { - "label": "null", - "keyword": "null", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "null", - "start": 38959, - "end": 38963, - "loc": { - "start": { - "line": 1083, - "column": 33 - }, - "end": { - "line": 1083, - "column": 37 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 38963, - "end": 38964, - "loc": { - "start": { - "line": 1083, - "column": 37 - }, - "end": { - "line": 1083, - "column": 38 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 38973, - "end": 38974, - "loc": { - "start": { - "line": 1084, - "column": 8 - }, - "end": { - "line": 1084, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 38975, - "end": 38976, - "loc": { - "start": { - "line": 1084, - "column": 10 - }, - "end": { - "line": 1084, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "options", - "start": 38977, - "end": 38984, - "loc": { - "start": { - "line": 1084, - "column": 12 - }, - "end": { - "line": 1084, - "column": 19 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 38984, - "end": 38985, - "loc": { - "start": { - "line": 1084, - "column": 19 - }, - "end": { - "line": 1084, - "column": 20 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 38995, - "end": 39000, - "loc": { - "start": { - "line": 1086, - "column": 8 - }, - "end": { - "line": 1086, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "emails", - "start": 39001, - "end": 39007, - "loc": { - "start": { - "line": 1086, - "column": 14 - }, - "end": { - "line": 1086, - "column": 20 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 39008, - "end": 39009, - "loc": { - "start": { - "line": 1086, - "column": 21 - }, - "end": { - "line": 1086, - "column": 22 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39010, - "end": 39011, - "loc": { - "start": { - "line": 1086, - "column": 23 - }, - "end": { - "line": 1086, - "column": 24 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39011, - "end": 39012, - "loc": { - "start": { - "line": 1086, - "column": 24 - }, - "end": { - "line": 1086, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39012, - "end": 39013, - "loc": { - "start": { - "line": 1086, - "column": 25 - }, - "end": { - "line": 1086, - "column": 26 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 39023, - "end": 39025, - "loc": { - "start": { - "line": 1088, - "column": 8 - }, - "end": { - "line": 1088, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39026, - "end": 39027, - "loc": { - "start": { - "line": 1088, - "column": 11 - }, - "end": { - "line": 1088, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Object", - "start": 39027, - "end": 39033, - "loc": { - "start": { - "line": 1088, - "column": 12 - }, - "end": { - "line": 1088, - "column": 18 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39033, - "end": 39034, - "loc": { - "start": { - "line": 1088, - "column": 18 - }, - "end": { - "line": 1088, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "keys", - "start": 39034, - "end": 39038, - "loc": { - "start": { - "line": 1088, - "column": 19 - }, - "end": { - "line": 1088, - "column": 23 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39038, - "end": 39039, - "loc": { - "start": { - "line": 1088, - "column": 23 - }, - "end": { - "line": 1088, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "options", - "start": 39039, - "end": 39046, - "loc": { - "start": { - "line": 1088, - "column": 24 - }, - "end": { - "line": 1088, - "column": 31 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39046, - "end": 39047, - "loc": { - "start": { - "line": 1088, - "column": 31 - }, - "end": { - "line": 1088, - "column": 32 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39047, - "end": 39048, - "loc": { - "start": { - "line": 1088, - "column": 32 - }, - "end": { - "line": 1088, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "length", - "start": 39048, - "end": 39054, - "loc": { - "start": { - "line": 1088, - "column": 33 - }, - "end": { - "line": 1088, - "column": 39 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 39055, - "end": 39058, - "loc": { - "start": { - "line": 1088, - "column": 40 - }, - "end": { - "line": 1088, - "column": 43 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 39059, - "end": 39060, - "loc": { - "start": { - "line": 1088, - "column": 44 - }, - "end": { - "line": 1088, - "column": 45 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39060, - "end": 39061, - "loc": { - "start": { - "line": 1088, - "column": 45 - }, - "end": { - "line": 1088, - "column": 46 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39062, - "end": 39063, - "loc": { - "start": { - "line": 1088, - "column": 47 - }, - "end": { - "line": 1088, - "column": 48 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 39074, - "end": 39079, - "loc": { - "start": { - "line": 1089, - "column": 10 - }, - "end": { - "line": 1089, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fieldInvitesEmails", - "start": 39080, - "end": 39098, - "loc": { - "start": { - "line": 1089, - "column": 16 - }, - "end": { - "line": 1089, - "column": 34 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 39099, - "end": 39100, - "loc": { - "start": { - "line": 1089, - "column": 35 - }, - "end": { - "line": 1089, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getSignerEmails", - "start": 39101, - "end": 39116, - "loc": { - "start": { - "line": 1089, - "column": 37 - }, - "end": { - "line": 1089, - "column": 52 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39116, - "end": 39117, - "loc": { - "start": { - "line": 1089, - "column": 52 - }, - "end": { - "line": 1089, - "column": 53 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "field_invites", - "start": 39117, - "end": 39130, - "loc": { - "start": { - "line": 1089, - "column": 53 - }, - "end": { - "line": 1089, - "column": 66 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39130, - "end": 39131, - "loc": { - "start": { - "line": 1089, - "column": 66 - }, - "end": { - "line": 1089, - "column": 67 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "email", - "start": 39132, - "end": 39139, - "loc": { - "start": { - "line": 1089, - "column": 68 - }, - "end": { - "line": 1089, - "column": 75 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39139, - "end": 39140, - "loc": { - "start": { - "line": 1089, - "column": 75 - }, - "end": { - "line": 1089, - "column": 76 - } - } - }, - { - "type": { - "label": "||", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 1, - "updateContext": null - }, - "value": "||", - "start": 39141, - "end": 39143, - "loc": { - "start": { - "line": 1089, - "column": 77 - }, - "end": { - "line": 1089, - "column": 79 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39144, - "end": 39145, - "loc": { - "start": { - "line": 1089, - "column": 80 - }, - "end": { - "line": 1089, - "column": 81 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39145, - "end": 39146, - "loc": { - "start": { - "line": 1089, - "column": 81 - }, - "end": { - "line": 1089, - "column": 82 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39146, - "end": 39147, - "loc": { - "start": { - "line": 1089, - "column": 82 - }, - "end": { - "line": 1089, - "column": 83 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 39158, - "end": 39163, - "loc": { - "start": { - "line": 1090, - "column": 10 - }, - "end": { - "line": 1090, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "freeFormInvitesEmails", - "start": 39164, - "end": 39185, - "loc": { - "start": { - "line": 1090, - "column": 16 - }, - "end": { - "line": 1090, - "column": 37 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 39186, - "end": 39187, - "loc": { - "start": { - "line": 1090, - "column": 38 - }, - "end": { - "line": 1090, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getSignerEmails", - "start": 39188, - "end": 39203, - "loc": { - "start": { - "line": 1090, - "column": 40 - }, - "end": { - "line": 1090, - "column": 55 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39203, - "end": 39204, - "loc": { - "start": { - "line": 1090, - "column": 55 - }, - "end": { - "line": 1090, - "column": 56 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "requests", - "start": 39204, - "end": 39212, - "loc": { - "start": { - "line": 1090, - "column": 56 - }, - "end": { - "line": 1090, - "column": 64 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39212, - "end": 39213, - "loc": { - "start": { - "line": 1090, - "column": 64 - }, - "end": { - "line": 1090, - "column": 65 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "signer_email", - "start": 39214, - "end": 39228, - "loc": { - "start": { - "line": 1090, - "column": 66 - }, - "end": { - "line": 1090, - "column": 80 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39228, - "end": 39229, - "loc": { - "start": { - "line": 1090, - "column": 80 - }, - "end": { - "line": 1090, - "column": 81 - } - } - }, - { - "type": { - "label": "||", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 1, - "updateContext": null - }, - "value": "||", - "start": 39230, - "end": 39232, - "loc": { - "start": { - "line": 1090, - "column": 82 - }, - "end": { - "line": 1090, - "column": 84 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39233, - "end": 39234, - "loc": { - "start": { - "line": 1090, - "column": 85 - }, - "end": { - "line": 1090, - "column": 86 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39234, - "end": 39235, - "loc": { - "start": { - "line": 1090, - "column": 86 - }, - "end": { - "line": 1090, - "column": 87 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39235, - "end": 39236, - "loc": { - "start": { - "line": 1090, - "column": 87 - }, - "end": { - "line": 1090, - "column": 88 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "emails", - "start": 39248, - "end": 39254, - "loc": { - "start": { - "line": 1092, - "column": 10 - }, - "end": { - "line": 1092, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39254, - "end": 39255, - "loc": { - "start": { - "line": 1092, - "column": 16 - }, - "end": { - "line": 1092, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "push", - "start": 39255, - "end": 39259, - "loc": { - "start": { - "line": 1092, - "column": 17 - }, - "end": { - "line": 1092, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39259, - "end": 39260, - "loc": { - "start": { - "line": 1092, - "column": 21 - }, - "end": { - "line": 1092, - "column": 22 - } - } - }, - { - "type": { - "label": "...", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39260, - "end": 39263, - "loc": { - "start": { - "line": 1092, - "column": 22 - }, - "end": { - "line": 1092, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fieldInvitesEmails", - "start": 39263, - "end": 39281, - "loc": { - "start": { - "line": 1092, - "column": 25 - }, - "end": { - "line": 1092, - "column": 43 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39281, - "end": 39282, - "loc": { - "start": { - "line": 1092, - "column": 43 - }, - "end": { - "line": 1092, - "column": 44 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39282, - "end": 39283, - "loc": { - "start": { - "line": 1092, - "column": 44 - }, - "end": { - "line": 1092, - "column": 45 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "emails", - "start": 39294, - "end": 39300, - "loc": { - "start": { - "line": 1093, - "column": 10 - }, - "end": { - "line": 1093, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39300, - "end": 39301, - "loc": { - "start": { - "line": 1093, - "column": 16 - }, - "end": { - "line": 1093, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "push", - "start": 39301, - "end": 39305, - "loc": { - "start": { - "line": 1093, - "column": 17 - }, - "end": { - "line": 1093, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39305, - "end": 39306, - "loc": { - "start": { - "line": 1093, - "column": 21 - }, - "end": { - "line": 1093, - "column": 22 - } - } - }, - { - "type": { - "label": "...", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39306, - "end": 39309, - "loc": { - "start": { - "line": 1093, - "column": 22 - }, - "end": { - "line": 1093, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "freeFormInvitesEmails", - "start": 39309, - "end": 39330, - "loc": { - "start": { - "line": 1093, - "column": 25 - }, - "end": { - "line": 1093, - "column": 46 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39330, - "end": 39331, - "loc": { - "start": { - "line": 1093, - "column": 46 - }, - "end": { - "line": 1093, - "column": 47 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39331, - "end": 39332, - "loc": { - "start": { - "line": 1093, - "column": 47 - }, - "end": { - "line": 1093, - "column": 48 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39341, - "end": 39342, - "loc": { - "start": { - "line": 1094, - "column": 8 - }, - "end": { - "line": 1094, - "column": 9 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 39352, - "end": 39354, - "loc": { - "start": { - "line": 1096, - "column": 8 - }, - "end": { - "line": 1096, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39355, - "end": 39356, - "loc": { - "start": { - "line": 1096, - "column": 11 - }, - "end": { - "line": 1096, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "freeFormInvites", - "start": 39356, - "end": 39371, - "loc": { - "start": { - "line": 1096, - "column": 12 - }, - "end": { - "line": 1096, - "column": 27 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39371, - "end": 39372, - "loc": { - "start": { - "line": 1096, - "column": 27 - }, - "end": { - "line": 1096, - "column": 28 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39373, - "end": 39374, - "loc": { - "start": { - "line": 1096, - "column": 29 - }, - "end": { - "line": 1096, - "column": 30 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 39385, - "end": 39390, - "loc": { - "start": { - "line": 1097, - "column": 10 - }, - "end": { - "line": 1097, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "freeFomInvites", - "start": 39391, - "end": 39405, - "loc": { - "start": { - "line": 1097, - "column": 16 - }, - "end": { - "line": 1097, - "column": 30 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 39406, - "end": 39407, - "loc": { - "start": { - "line": 1097, - "column": 31 - }, - "end": { - "line": 1097, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getSignerEmails", - "start": 39408, - "end": 39423, - "loc": { - "start": { - "line": 1097, - "column": 33 - }, - "end": { - "line": 1097, - "column": 48 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39423, - "end": 39424, - "loc": { - "start": { - "line": 1097, - "column": 48 - }, - "end": { - "line": 1097, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "requests", - "start": 39424, - "end": 39432, - "loc": { - "start": { - "line": 1097, - "column": 49 - }, - "end": { - "line": 1097, - "column": 57 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39432, - "end": 39433, - "loc": { - "start": { - "line": 1097, - "column": 57 - }, - "end": { - "line": 1097, - "column": 58 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "signer_email", - "start": 39434, - "end": 39448, - "loc": { - "start": { - "line": 1097, - "column": 59 - }, - "end": { - "line": 1097, - "column": 73 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39448, - "end": 39449, - "loc": { - "start": { - "line": 1097, - "column": 73 - }, - "end": { - "line": 1097, - "column": 74 - } - } - }, - { - "type": { - "label": "||", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 1, - "updateContext": null - }, - "value": "||", - "start": 39450, - "end": 39452, - "loc": { - "start": { - "line": 1097, - "column": 75 - }, - "end": { - "line": 1097, - "column": 77 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39453, - "end": 39454, - "loc": { - "start": { - "line": 1097, - "column": 78 - }, - "end": { - "line": 1097, - "column": 79 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39454, - "end": 39455, - "loc": { - "start": { - "line": 1097, - "column": 79 - }, - "end": { - "line": 1097, - "column": 80 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39455, - "end": 39456, - "loc": { - "start": { - "line": 1097, - "column": 80 - }, - "end": { - "line": 1097, - "column": 81 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "emails", - "start": 39468, - "end": 39474, - "loc": { - "start": { - "line": 1099, - "column": 10 - }, - "end": { - "line": 1099, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39474, - "end": 39475, - "loc": { - "start": { - "line": 1099, - "column": 16 - }, - "end": { - "line": 1099, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "push", - "start": 39475, - "end": 39479, - "loc": { - "start": { - "line": 1099, - "column": 17 - }, - "end": { - "line": 1099, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39479, - "end": 39480, - "loc": { - "start": { - "line": 1099, - "column": 21 - }, - "end": { - "line": 1099, - "column": 22 - } - } - }, - { - "type": { - "label": "...", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39480, - "end": 39483, - "loc": { - "start": { - "line": 1099, - "column": 22 - }, - "end": { - "line": 1099, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "freeFomInvites", - "start": 39483, - "end": 39497, - "loc": { - "start": { - "line": 1099, - "column": 25 - }, - "end": { - "line": 1099, - "column": 39 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39497, - "end": 39498, - "loc": { - "start": { - "line": 1099, - "column": 39 - }, - "end": { - "line": 1099, - "column": 40 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39498, - "end": 39499, - "loc": { - "start": { - "line": 1099, - "column": 40 - }, - "end": { - "line": 1099, - "column": 41 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39508, - "end": 39509, - "loc": { - "start": { - "line": 1100, - "column": 8 - }, - "end": { - "line": 1100, - "column": 9 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 39519, - "end": 39521, - "loc": { - "start": { - "line": 1102, - "column": 8 - }, - "end": { - "line": 1102, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39522, - "end": 39523, - "loc": { - "start": { - "line": 1102, - "column": 11 - }, - "end": { - "line": 1102, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fieldInviteStatus", - "start": 39523, - "end": 39540, - "loc": { - "start": { - "line": 1102, - "column": 12 - }, - "end": { - "line": 1102, - "column": 29 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39540, - "end": 39541, - "loc": { - "start": { - "line": 1102, - "column": 29 - }, - "end": { - "line": 1102, - "column": 30 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39542, - "end": 39543, - "loc": { - "start": { - "line": 1102, - "column": 31 - }, - "end": { - "line": 1102, - "column": 32 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 39554, - "end": 39559, - "loc": { - "start": { - "line": 1103, - "column": 10 - }, - "end": { - "line": 1103, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fieldInvites", - "start": 39560, - "end": 39572, - "loc": { - "start": { - "line": 1103, - "column": 16 - }, - "end": { - "line": 1103, - "column": 28 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 39573, - "end": 39574, - "loc": { - "start": { - "line": 1103, - "column": 29 - }, - "end": { - "line": 1103, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getSignerEmails", - "start": 39575, - "end": 39590, - "loc": { - "start": { - "line": 1103, - "column": 31 - }, - "end": { - "line": 1103, - "column": 46 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39590, - "end": 39591, - "loc": { - "start": { - "line": 1103, - "column": 46 - }, - "end": { - "line": 1103, - "column": 47 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "field_invites", - "start": 39591, - "end": 39604, - "loc": { - "start": { - "line": 1103, - "column": 47 - }, - "end": { - "line": 1103, - "column": 60 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39604, - "end": 39605, - "loc": { - "start": { - "line": 1103, - "column": 60 - }, - "end": { - "line": 1103, - "column": 61 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "email", - "start": 39606, - "end": 39613, - "loc": { - "start": { - "line": 1103, - "column": 62 - }, - "end": { - "line": 1103, - "column": 69 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39613, - "end": 39614, - "loc": { - "start": { - "line": 1103, - "column": 69 - }, - "end": { - "line": 1103, - "column": 70 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fieldInviteStatus", - "start": 39615, - "end": 39632, - "loc": { - "start": { - "line": 1103, - "column": 71 - }, - "end": { - "line": 1103, - "column": 88 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39632, - "end": 39633, - "loc": { - "start": { - "line": 1103, - "column": 88 - }, - "end": { - "line": 1103, - "column": 89 - } - } - }, - { - "type": { - "label": "||", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 1, - "updateContext": null - }, - "value": "||", - "start": 39634, - "end": 39636, - "loc": { - "start": { - "line": 1103, - "column": 90 - }, - "end": { - "line": 1103, - "column": 92 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39637, - "end": 39638, - "loc": { - "start": { - "line": 1103, - "column": 93 - }, - "end": { - "line": 1103, - "column": 94 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39638, - "end": 39639, - "loc": { - "start": { - "line": 1103, - "column": 94 - }, - "end": { - "line": 1103, - "column": 95 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39639, - "end": 39640, - "loc": { - "start": { - "line": 1103, - "column": 95 - }, - "end": { - "line": 1103, - "column": 96 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 39651, - "end": 39656, - "loc": { - "start": { - "line": 1104, - "column": 10 - }, - "end": { - "line": 1104, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "declined", - "start": 39657, - "end": 39665, - "loc": { - "start": { - "line": 1104, - "column": 16 - }, - "end": { - "line": 1104, - "column": 24 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 39666, - "end": 39667, - "loc": { - "start": { - "line": 1104, - "column": 25 - }, - "end": { - "line": 1104, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getByDeclinedStatus", - "start": 39668, - "end": 39687, - "loc": { - "start": { - "line": 1104, - "column": 27 - }, - "end": { - "line": 1104, - "column": 46 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39687, - "end": 39688, - "loc": { - "start": { - "line": 1104, - "column": 46 - }, - "end": { - "line": 1104, - "column": 47 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "field_invites", - "start": 39688, - "end": 39701, - "loc": { - "start": { - "line": 1104, - "column": 47 - }, - "end": { - "line": 1104, - "column": 60 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39701, - "end": 39702, - "loc": { - "start": { - "line": 1104, - "column": 60 - }, - "end": { - "line": 1104, - "column": 61 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fieldInviteStatus", - "start": 39703, - "end": 39720, - "loc": { - "start": { - "line": 1104, - "column": 62 - }, - "end": { - "line": 1104, - "column": 79 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39720, - "end": 39721, - "loc": { - "start": { - "line": 1104, - "column": 79 - }, - "end": { - "line": 1104, - "column": 80 - } - } - }, - { - "type": { - "label": "||", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 1, - "updateContext": null - }, - "value": "||", - "start": 39722, - "end": 39724, - "loc": { - "start": { - "line": 1104, - "column": 81 - }, - "end": { - "line": 1104, - "column": 83 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39725, - "end": 39726, - "loc": { - "start": { - "line": 1104, - "column": 84 - }, - "end": { - "line": 1104, - "column": 85 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39726, - "end": 39727, - "loc": { - "start": { - "line": 1104, - "column": 85 - }, - "end": { - "line": 1104, - "column": 86 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39727, - "end": 39728, - "loc": { - "start": { - "line": 1104, - "column": 86 - }, - "end": { - "line": 1104, - "column": 87 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 39740, - "end": 39742, - "loc": { - "start": { - "line": 1106, - "column": 10 - }, - "end": { - "line": 1106, - "column": 12 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39743, - "end": 39744, - "loc": { - "start": { - "line": 1106, - "column": 13 - }, - "end": { - "line": 1106, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fieldInvites", - "start": 39744, - "end": 39756, - "loc": { - "start": { - "line": 1106, - "column": 14 - }, - "end": { - "line": 1106, - "column": 26 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39756, - "end": 39757, - "loc": { - "start": { - "line": 1106, - "column": 26 - }, - "end": { - "line": 1106, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "length", - "start": 39757, - "end": 39763, - "loc": { - "start": { - "line": 1106, - "column": 27 - }, - "end": { - "line": 1106, - "column": 33 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": ">", - "start": 39764, - "end": 39765, - "loc": { - "start": { - "line": 1106, - "column": 34 - }, - "end": { - "line": 1106, - "column": 35 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 39766, - "end": 39767, - "loc": { - "start": { - "line": 1106, - "column": 36 - }, - "end": { - "line": 1106, - "column": 37 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39767, - "end": 39768, - "loc": { - "start": { - "line": 1106, - "column": 37 - }, - "end": { - "line": 1106, - "column": 38 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39769, - "end": 39770, - "loc": { - "start": { - "line": 1106, - "column": 39 - }, - "end": { - "line": 1106, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "emails", - "start": 39783, - "end": 39789, - "loc": { - "start": { - "line": 1107, - "column": 12 - }, - "end": { - "line": 1107, - "column": 18 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39789, - "end": 39790, - "loc": { - "start": { - "line": 1107, - "column": 18 - }, - "end": { - "line": 1107, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "push", - "start": 39790, - "end": 39794, - "loc": { - "start": { - "line": 1107, - "column": 19 - }, - "end": { - "line": 1107, - "column": 23 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39794, - "end": 39795, - "loc": { - "start": { - "line": 1107, - "column": 23 - }, - "end": { - "line": 1107, - "column": 24 - } - } - }, - { - "type": { - "label": "...", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39795, - "end": 39798, - "loc": { - "start": { - "line": 1107, - "column": 24 - }, - "end": { - "line": 1107, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fieldInvites", - "start": 39798, - "end": 39810, - "loc": { - "start": { - "line": 1107, - "column": 27 - }, - "end": { - "line": 1107, - "column": 39 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39810, - "end": 39811, - "loc": { - "start": { - "line": 1107, - "column": 39 - }, - "end": { - "line": 1107, - "column": 40 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39811, - "end": 39812, - "loc": { - "start": { - "line": 1107, - "column": 40 - }, - "end": { - "line": 1107, - "column": 41 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39823, - "end": 39824, - "loc": { - "start": { - "line": 1108, - "column": 10 - }, - "end": { - "line": 1108, - "column": 11 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 39825, - "end": 39829, - "loc": { - "start": { - "line": 1108, - "column": 12 - }, - "end": { - "line": 1108, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39830, - "end": 39831, - "loc": { - "start": { - "line": 1108, - "column": 17 - }, - "end": { - "line": 1108, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "emails", - "start": 39844, - "end": 39850, - "loc": { - "start": { - "line": 1109, - "column": 12 - }, - "end": { - "line": 1109, - "column": 18 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39850, - "end": 39851, - "loc": { - "start": { - "line": 1109, - "column": 18 - }, - "end": { - "line": 1109, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "push", - "start": 39851, - "end": 39855, - "loc": { - "start": { - "line": 1109, - "column": 19 - }, - "end": { - "line": 1109, - "column": 23 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39855, - "end": 39856, - "loc": { - "start": { - "line": 1109, - "column": 23 - }, - "end": { - "line": 1109, - "column": 24 - } - } - }, - { - "type": { - "label": "...", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39856, - "end": 39859, - "loc": { - "start": { - "line": 1109, - "column": 24 - }, - "end": { - "line": 1109, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fieldInvites", - "start": 39859, - "end": 39871, - "loc": { - "start": { - "line": 1109, - "column": 27 - }, - "end": { - "line": 1109, - "column": 39 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39871, - "end": 39872, - "loc": { - "start": { - "line": 1109, - "column": 39 - }, - "end": { - "line": 1109, - "column": 40 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39872, - "end": 39873, - "loc": { - "start": { - "line": 1109, - "column": 40 - }, - "end": { - "line": 1109, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "emails", - "start": 39886, - "end": 39892, - "loc": { - "start": { - "line": 1110, - "column": 12 - }, - "end": { - "line": 1110, - "column": 18 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39892, - "end": 39893, - "loc": { - "start": { - "line": 1110, - "column": 18 - }, - "end": { - "line": 1110, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "push", - "start": 39893, - "end": 39897, - "loc": { - "start": { - "line": 1110, - "column": 19 - }, - "end": { - "line": 1110, - "column": 23 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39897, - "end": 39898, - "loc": { - "start": { - "line": 1110, - "column": 23 - }, - "end": { - "line": 1110, - "column": 24 - } - } - }, - { - "type": { - "label": "...", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39898, - "end": 39901, - "loc": { - "start": { - "line": 1110, - "column": 24 - }, - "end": { - "line": 1110, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "declined", - "start": 39901, - "end": 39909, - "loc": { - "start": { - "line": 1110, - "column": 27 - }, - "end": { - "line": 1110, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39909, - "end": 39910, - "loc": { - "start": { - "line": 1110, - "column": 35 - }, - "end": { - "line": 1110, - "column": 36 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39910, - "end": 39911, - "loc": { - "start": { - "line": 1110, - "column": 36 - }, - "end": { - "line": 1110, - "column": 37 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39922, - "end": 39923, - "loc": { - "start": { - "line": 1111, - "column": 10 - }, - "end": { - "line": 1111, - "column": 11 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39932, - "end": 39933, - "loc": { - "start": { - "line": 1112, - "column": 8 - }, - "end": { - "line": 1112, - "column": 9 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 39943, - "end": 39945, - "loc": { - "start": { - "line": 1114, - "column": 8 - }, - "end": { - "line": 1114, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39946, - "end": 39947, - "loc": { - "start": { - "line": 1114, - "column": 11 - }, - "end": { - "line": 1114, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "paymentRequestStatus", - "start": 39947, - "end": 39967, - "loc": { - "start": { - "line": 1114, - "column": 12 - }, - "end": { - "line": 1114, - "column": 32 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39967, - "end": 39968, - "loc": { - "start": { - "line": 1114, - "column": 32 - }, - "end": { - "line": 1114, - "column": 33 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 39969, - "end": 39970, - "loc": { - "start": { - "line": 1114, - "column": 34 - }, - "end": { - "line": 1114, - "column": 35 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 39981, - "end": 39986, - "loc": { - "start": { - "line": 1115, - "column": 10 - }, - "end": { - "line": 1115, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "paymentRequests", - "start": 39987, - "end": 40002, - "loc": { - "start": { - "line": 1115, - "column": 16 - }, - "end": { - "line": 1115, - "column": 31 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 40003, - "end": 40004, - "loc": { - "start": { - "line": 1115, - "column": 32 - }, - "end": { - "line": 1115, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getSignerEmails", - "start": 40005, - "end": 40020, - "loc": { - "start": { - "line": 1115, - "column": 34 - }, - "end": { - "line": 1115, - "column": 49 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 40020, - "end": 40021, - "loc": { - "start": { - "line": 1115, - "column": 49 - }, - "end": { - "line": 1115, - "column": 50 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "field_invites", - "start": 40021, - "end": 40034, - "loc": { - "start": { - "line": 1115, - "column": 50 - }, - "end": { - "line": 1115, - "column": 63 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 40034, - "end": 40035, - "loc": { - "start": { - "line": 1115, - "column": 63 - }, - "end": { - "line": 1115, - "column": 64 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "email", - "start": 40036, - "end": 40043, - "loc": { - "start": { - "line": 1115, - "column": 65 - }, - "end": { - "line": 1115, - "column": 72 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 40043, - "end": 40044, - "loc": { - "start": { - "line": 1115, - "column": 72 - }, - "end": { - "line": 1115, - "column": 73 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "paymentRequestStatus", - "start": 40045, - "end": 40065, - "loc": { - "start": { - "line": 1115, - "column": 74 - }, - "end": { - "line": 1115, - "column": 94 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 40065, - "end": 40066, - "loc": { - "start": { - "line": 1115, - "column": 94 - }, - "end": { - "line": 1115, - "column": 95 - } - } - }, - { - "type": { - "label": "||", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 1, - "updateContext": null - }, - "value": "||", - "start": 40067, - "end": 40069, - "loc": { - "start": { - "line": 1115, - "column": 96 - }, - "end": { - "line": 1115, - "column": 98 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 40070, - "end": 40071, - "loc": { - "start": { - "line": 1115, - "column": 99 - }, - "end": { - "line": 1115, - "column": 100 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 40071, - "end": 40072, - "loc": { - "start": { - "line": 1115, - "column": 100 - }, - "end": { - "line": 1115, - "column": 101 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 40072, - "end": 40073, - "loc": { - "start": { - "line": 1115, - "column": 101 - }, - "end": { - "line": 1115, - "column": 102 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "emails", - "start": 40085, - "end": 40091, - "loc": { - "start": { - "line": 1117, - "column": 10 - }, - "end": { - "line": 1117, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 40091, - "end": 40092, - "loc": { - "start": { - "line": 1117, - "column": 16 - }, - "end": { - "line": 1117, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "push", - "start": 40092, - "end": 40096, - "loc": { - "start": { - "line": 1117, - "column": 17 - }, - "end": { - "line": 1117, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 40096, - "end": 40097, - "loc": { - "start": { - "line": 1117, - "column": 21 - }, - "end": { - "line": 1117, - "column": 22 - } - } - }, - { - "type": { - "label": "...", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 40097, - "end": 40100, - "loc": { - "start": { - "line": 1117, - "column": 22 - }, - "end": { - "line": 1117, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "paymentRequests", - "start": 40100, - "end": 40115, - "loc": { - "start": { - "line": 1117, - "column": 25 - }, - "end": { - "line": 1117, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 40115, - "end": 40116, - "loc": { - "start": { - "line": 1117, - "column": 40 - }, - "end": { - "line": 1117, - "column": 41 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 40116, - "end": 40117, - "loc": { - "start": { - "line": 1117, - "column": 41 - }, - "end": { - "line": 1117, - "column": 42 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 40126, - "end": 40127, - "loc": { - "start": { - "line": 1118, - "column": 8 - }, - "end": { - "line": 1118, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 40137, - "end": 40145, - "loc": { - "start": { - "line": 1120, - "column": 8 - }, - "end": { - "line": 1120, - "column": 16 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 40145, - "end": 40146, - "loc": { - "start": { - "line": 1120, - "column": 16 - }, - "end": { - "line": 1120, - "column": 17 - } - } - }, - { - "type": { - "label": "null", - "keyword": "null", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "null", - "start": 40146, - "end": 40150, - "loc": { - "start": { - "line": 1120, - "column": 17 - }, - "end": { - "line": 1120, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 40150, - "end": 40151, - "loc": { - "start": { - "line": 1120, - "column": 21 - }, - "end": { - "line": 1120, - "column": 22 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 40152, - "end": 40153, - "loc": { - "start": { - "line": 1120, - "column": 23 - }, - "end": { - "line": 1120, - "column": 24 - } - } - }, - { - "type": { - "label": "...", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 40153, - "end": 40156, - "loc": { - "start": { - "line": 1120, - "column": 24 - }, - "end": { - "line": 1120, - "column": 27 - } - } - }, - { - "type": { - "label": "new", - "keyword": "new", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "new", - "start": 40156, - "end": 40159, - "loc": { - "start": { - "line": 1120, - "column": 27 - }, - "end": { - "line": 1120, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Set", - "start": 40160, - "end": 40163, - "loc": { - "start": { - "line": 1120, - "column": 31 - }, - "end": { - "line": 1120, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 40163, - "end": 40164, - "loc": { - "start": { - "line": 1120, - "column": 34 - }, - "end": { - "line": 1120, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "emails", - "start": 40164, - "end": 40170, - "loc": { - "start": { - "line": 1120, - "column": 35 - }, - "end": { - "line": 1120, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 40170, - "end": 40171, - "loc": { - "start": { - "line": 1120, - "column": 41 - }, - "end": { - "line": 1120, - "column": 42 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 40171, - "end": 40172, - "loc": { - "start": { - "line": 1120, - "column": 42 - }, - "end": { - "line": 1120, - "column": 43 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 40172, - "end": 40173, - "loc": { - "start": { - "line": 1120, - "column": 43 - }, - "end": { - "line": 1120, - "column": 44 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 40173, - "end": 40174, - "loc": { - "start": { - "line": 1120, - "column": 44 - }, - "end": { - "line": 1120, - "column": 45 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 40181, - "end": 40182, - "loc": { - "start": { - "line": 1121, - "column": 6 - }, - "end": { - "line": 1121, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 40182, - "end": 40183, - "loc": { - "start": { - "line": 1121, - "column": 7 - }, - "end": { - "line": 1121, - "column": 8 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 40190, - "end": 40191, - "loc": { - "start": { - "line": 1122, - "column": 6 - }, - "end": { - "line": 1122, - "column": 7 - } - } - }, - { - "type": { - "label": "catch", - "keyword": "catch", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "catch", - "start": 40191, - "end": 40196, - "loc": { - "start": { - "line": 1122, - "column": 7 - }, - "end": { - "line": 1122, - "column": 12 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 40196, - "end": 40197, - "loc": { - "start": { - "line": 1122, - "column": 12 - }, - "end": { - "line": 1122, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 40197, - "end": 40200, - "loc": { - "start": { - "line": 1122, - "column": 13 - }, - "end": { - "line": 1122, - "column": 16 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 40201, - "end": 40203, - "loc": { - "start": { - "line": 1122, - "column": 17 - }, - "end": { - "line": 1122, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 40204, - "end": 40212, - "loc": { - "start": { - "line": 1122, - "column": 20 - }, - "end": { - "line": 1122, - "column": 28 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 40212, - "end": 40213, - "loc": { - "start": { - "line": 1122, - "column": 28 - }, - "end": { - "line": 1122, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 40213, - "end": 40216, - "loc": { - "start": { - "line": 1122, - "column": 29 - }, - "end": { - "line": 1122, - "column": 32 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 40216, - "end": 40217, - "loc": { - "start": { - "line": 1122, - "column": 32 - }, - "end": { - "line": 1122, - "column": 33 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 40217, - "end": 40218, - "loc": { - "start": { - "line": 1122, - "column": 33 - }, - "end": { - "line": 1122, - "column": 34 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 40218, - "end": 40219, - "loc": { - "start": { - "line": 1122, - "column": 34 - }, - "end": { - "line": 1122, - "column": 35 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 40222, - "end": 40223, - "loc": { - "start": { - "line": 1123, - "column": 2 - }, - "end": { - "line": 1123, - "column": 3 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 40224, - "end": 40225, - "loc": { - "start": { - "line": 1124, - "column": 0 - }, - "end": { - "line": 1124, - "column": 1 - } - } - }, - { - "type": { - "label": "export", - "keyword": "export", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "export", - "start": 40227, - "end": 40233, - "loc": { - "start": { - "line": 1126, - "column": 0 - }, - "end": { - "line": 1126, - "column": 6 - } - } - }, - { - "type": { - "label": "default", - "keyword": "default", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "default", - "start": 40234, - "end": 40241, - "loc": { - "start": { - "line": 1126, - "column": 7 - }, - "end": { - "line": 1126, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Document", - "start": 40242, - "end": 40250, - "loc": { - "start": { - "line": 1126, - "column": 15 - }, - "end": { - "line": 1126, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 40250, - "end": 40251, - "loc": { - "start": { - "line": 1126, - "column": 23 - }, - "end": { - "line": 1126, - "column": 24 - } - } - }, - { - "type": { - "label": "eof", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 40252, - "end": 40252, - "loc": { - "start": { - "line": 1127, - "column": 0 - }, - "end": { - "line": 1127, - "column": 0 - } - } - } - ] -} \ No newline at end of file diff --git a/docs/ast/source/documentGroup.js.json b/docs/ast/source/documentGroup.js.json deleted file mode 100644 index 1115e1ca..00000000 --- a/docs/ast/source/documentGroup.js.json +++ /dev/null @@ -1,29695 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 9226, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 293, - "column": 0 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 9226, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 293, - "column": 0 - } - }, - "sourceType": "module", - "body": [ - { - "type": "ImportDeclaration", - "start": 15, - "end": 41, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 26 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 22, - "end": 27, - "loc": { - "start": { - "line": 3, - "column": 7 - }, - "end": { - "line": 3, - "column": 12 - } - }, - "local": { - "type": "Identifier", - "start": 22, - "end": 27, - "loc": { - "start": { - "line": 3, - "column": 7 - }, - "end": { - "line": 3, - "column": 12 - }, - "identifierName": "https" - }, - "name": "https" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 33, - "end": 40, - "loc": { - "start": { - "line": 3, - "column": 18 - }, - "end": { - "line": 3, - "column": 25 - } - }, - "extra": { - "rawValue": "https", - "raw": "'https'" - }, - "value": "https" - } - }, - { - "type": "ImportDeclaration", - "start": 42, - "end": 127, - "loc": { - "start": { - "line": 4, - "column": 0 - }, - "end": { - "line": 8, - "column": 18 - } - }, - "specifiers": [ - { - "type": "ImportSpecifier", - "start": 53, - "end": 68, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 17 - } - }, - "imported": { - "type": "Identifier", - "start": 53, - "end": 68, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "local": { - "type": "Identifier", - "start": 53, - "end": 68, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - } - }, - { - "type": "ImportSpecifier", - "start": 72, - "end": 84, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 14 - } - }, - "imported": { - "type": "Identifier", - "start": 72, - "end": 84, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 14 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "local": { - "type": "Identifier", - "start": 72, - "end": 84, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 14 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - } - }, - { - "type": "ImportSpecifier", - "start": 88, - "end": 107, - "loc": { - "start": { - "line": 7, - "column": 2 - }, - "end": { - "line": 7, - "column": 21 - } - }, - "imported": { - "type": "Identifier", - "start": 88, - "end": 107, - "loc": { - "start": { - "line": 7, - "column": 2 - }, - "end": { - "line": 7, - "column": 21 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "local": { - "type": "Identifier", - "start": 88, - "end": 107, - "loc": { - "start": { - "line": 7, - "column": 2 - }, - "end": { - "line": 7, - "column": 21 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 116, - "end": 126, - "loc": { - "start": { - "line": 8, - "column": 7 - }, - "end": { - "line": 8, - "column": 17 - } - }, - "extra": { - "rawValue": "./common", - "raw": "'./common'" - }, - "value": "./common" - } - }, - { - "type": "ImportDeclaration", - "start": 128, - "end": 162, - "loc": { - "start": { - "line": 9, - "column": 0 - }, - "end": { - "line": 9, - "column": 34 - } - }, - "specifiers": [ - { - "type": "ImportSpecifier", - "start": 137, - "end": 141, - "loc": { - "start": { - "line": 9, - "column": 9 - }, - "end": { - "line": 9, - "column": 13 - } - }, - "imported": { - "type": "Identifier", - "start": 137, - "end": 141, - "loc": { - "start": { - "line": 9, - "column": 9 - }, - "end": { - "line": 9, - "column": 13 - }, - "identifierName": "view" - }, - "name": "view" - }, - "local": { - "type": "Identifier", - "start": 137, - "end": 141, - "loc": { - "start": { - "line": 9, - "column": 9 - }, - "end": { - "line": 9, - "column": 13 - }, - "identifierName": "view" - }, - "name": "view" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 149, - "end": 161, - "loc": { - "start": { - "line": 9, - "column": 21 - }, - "end": { - "line": 9, - "column": 33 - } - }, - "extra": { - "rawValue": "./document", - "raw": "'./document'" - }, - "value": "./document" - } - }, - { - "type": "ImportDeclaration", - "start": 163, - "end": 202, - "loc": { - "start": { - "line": 10, - "column": 0 - }, - "end": { - "line": 10, - "column": 39 - } - }, - "specifiers": [ - { - "type": "ImportSpecifier", - "start": 172, - "end": 181, - "loc": { - "start": { - "line": 10, - "column": 9 - }, - "end": { - "line": 10, - "column": 18 - } - }, - "imported": { - "type": "Identifier", - "start": 172, - "end": 181, - "loc": { - "start": { - "line": 10, - "column": 9 - }, - "end": { - "line": 10, - "column": 18 - }, - "identifierName": "duplicate" - }, - "name": "duplicate" - }, - "local": { - "type": "Identifier", - "start": 172, - "end": 181, - "loc": { - "start": { - "line": 10, - "column": 9 - }, - "end": { - "line": 10, - "column": 18 - }, - "identifierName": "duplicate" - }, - "name": "duplicate" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 189, - "end": 201, - "loc": { - "start": { - "line": 10, - "column": 26 - }, - "end": { - "line": 10, - "column": 38 - } - }, - "extra": { - "rawValue": "./template", - "raw": "'./template'" - }, - "value": "./template" - }, - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewParams} data - view document with field extract payload\n * @return {Promise}\n ", - "start": 204, - "end": 371, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 16, - "column": 3 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 372, - "end": 584, - "loc": { - "start": { - "line": 17, - "column": 0 - }, - "end": { - "line": 28, - "column": 3 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 378, - "end": 583, - "loc": { - "start": { - "line": 17, - "column": 6 - }, - "end": { - "line": 28, - "column": 2 - } - }, - "id": { - "type": "Identifier", - "start": 378, - "end": 396, - "loc": { - "start": { - "line": 17, - "column": 6 - }, - "end": { - "line": 17, - "column": 24 - }, - "identifierName": "getDocumentDetails" - }, - "name": "getDocumentDetails", - "leadingComments": null - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 399, - "end": 583, - "loc": { - "start": { - "line": 17, - "column": 27 - }, - "end": { - "line": 28, - "column": 2 - } - }, - "id": { - "type": "Identifier", - "start": 378, - "end": 396, - "loc": { - "start": { - "line": 17, - "column": 6 - }, - "end": { - "line": 17, - "column": 24 - }, - "identifierName": "getDocumentDetails" - }, - "name": "getDocumentDetails", - "leadingComments": null - }, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 400, - "end": 413, - "loc": { - "start": { - "line": 17, - "column": 28 - }, - "end": { - "line": 17, - "column": 41 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 402, - "end": 404, - "loc": { - "start": { - "line": 17, - "column": 30 - }, - "end": { - "line": 17, - "column": 32 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 402, - "end": 404, - "loc": { - "start": { - "line": 17, - "column": 30 - }, - "end": { - "line": 17, - "column": 32 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 402, - "end": 404, - "loc": { - "start": { - "line": 17, - "column": 30 - }, - "end": { - "line": 17, - "column": 32 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 406, - "end": 411, - "loc": { - "start": { - "line": 17, - "column": 34 - }, - "end": { - "line": 17, - "column": 39 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 406, - "end": 411, - "loc": { - "start": { - "line": 17, - "column": 34 - }, - "end": { - "line": 17, - "column": 39 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 406, - "end": 411, - "loc": { - "start": { - "line": 17, - "column": 34 - }, - "end": { - "line": 17, - "column": 39 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - ], - "body": { - "type": "NewExpression", - "start": 418, - "end": 583, - "loc": { - "start": { - "line": 17, - "column": 46 - }, - "end": { - "line": 28, - "column": 2 - } - }, - "callee": { - "type": "Identifier", - "start": 422, - "end": 429, - "loc": { - "start": { - "line": 17, - "column": 50 - }, - "end": { - "line": 17, - "column": 57 - }, - "identifierName": "Promise" - }, - "name": "Promise" - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 430, - "end": 582, - "loc": { - "start": { - "line": 17, - "column": 58 - }, - "end": { - "line": 28, - "column": 1 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 431, - "end": 438, - "loc": { - "start": { - "line": 17, - "column": 59 - }, - "end": { - "line": 17, - "column": 66 - }, - "identifierName": "resolve" - }, - "name": "resolve" - }, - { - "type": "Identifier", - "start": 440, - "end": 446, - "loc": { - "start": { - "line": 17, - "column": 68 - }, - "end": { - "line": 17, - "column": 74 - }, - "identifierName": "reject" - }, - "name": "reject" - } - ], - "body": { - "type": "BlockStatement", - "start": 451, - "end": 582, - "loc": { - "start": { - "line": 17, - "column": 79 - }, - "end": { - "line": 28, - "column": 1 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 455, - "end": 580, - "loc": { - "start": { - "line": 18, - "column": 2 - }, - "end": { - "line": 27, - "column": 5 - } - }, - "expression": { - "type": "CallExpression", - "start": 455, - "end": 579, - "loc": { - "start": { - "line": 18, - "column": 2 - }, - "end": { - "line": 27, - "column": 4 - } - }, - "callee": { - "type": "Identifier", - "start": 455, - "end": 459, - "loc": { - "start": { - "line": 18, - "column": 2 - }, - "end": { - "line": 18, - "column": 6 - }, - "identifierName": "view" - }, - "name": "view" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 460, - "end": 484, - "loc": { - "start": { - "line": 18, - "column": 7 - }, - "end": { - "line": 21, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 466, - "end": 468, - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 19, - "column": 6 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 466, - "end": 468, - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 19, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 466, - "end": 468, - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 19, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 474, - "end": 479, - "loc": { - "start": { - "line": 20, - "column": 4 - }, - "end": { - "line": 20, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 474, - "end": 479, - "loc": { - "start": { - "line": 20, - "column": 4 - }, - "end": { - "line": 20, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 474, - "end": 479, - "loc": { - "start": { - "line": 20, - "column": 4 - }, - "end": { - "line": 20, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "ArrowFunctionExpression", - "start": 486, - "end": 578, - "loc": { - "start": { - "line": 21, - "column": 5 - }, - "end": { - "line": 27, - "column": 3 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 487, - "end": 490, - "loc": { - "start": { - "line": 21, - "column": 6 - }, - "end": { - "line": 21, - "column": 9 - }, - "identifierName": "err" - }, - "name": "err" - }, - { - "type": "Identifier", - "start": 492, - "end": 495, - "loc": { - "start": { - "line": 21, - "column": 11 - }, - "end": { - "line": 21, - "column": 14 - }, - "identifierName": "res" - }, - "name": "res" - } - ], - "body": { - "type": "BlockStatement", - "start": 500, - "end": 578, - "loc": { - "start": { - "line": 21, - "column": 19 - }, - "end": { - "line": 27, - "column": 3 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 506, - "end": 574, - "loc": { - "start": { - "line": 22, - "column": 4 - }, - "end": { - "line": 26, - "column": 5 - } - }, - "test": { - "type": "Identifier", - "start": 510, - "end": 513, - "loc": { - "start": { - "line": 22, - "column": 8 - }, - "end": { - "line": 22, - "column": 11 - }, - "identifierName": "err" - }, - "name": "err" - }, - "consequent": { - "type": "BlockStatement", - "start": 515, - "end": 541, - "loc": { - "start": { - "line": 22, - "column": 13 - }, - "end": { - "line": 24, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 523, - "end": 535, - "loc": { - "start": { - "line": 23, - "column": 6 - }, - "end": { - "line": 23, - "column": 18 - } - }, - "expression": { - "type": "CallExpression", - "start": 523, - "end": 534, - "loc": { - "start": { - "line": 23, - "column": 6 - }, - "end": { - "line": 23, - "column": 17 - } - }, - "callee": { - "type": "Identifier", - "start": 523, - "end": 529, - "loc": { - "start": { - "line": 23, - "column": 6 - }, - "end": { - "line": 23, - "column": 12 - }, - "identifierName": "reject" - }, - "name": "reject" - }, - "arguments": [ - { - "type": "Identifier", - "start": 530, - "end": 533, - "loc": { - "start": { - "line": 23, - "column": 13 - }, - "end": { - "line": 23, - "column": 16 - }, - "identifierName": "err" - }, - "name": "err" - } - ] - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 547, - "end": 574, - "loc": { - "start": { - "line": 24, - "column": 11 - }, - "end": { - "line": 26, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 555, - "end": 568, - "loc": { - "start": { - "line": 25, - "column": 6 - }, - "end": { - "line": 25, - "column": 19 - } - }, - "expression": { - "type": "CallExpression", - "start": 555, - "end": 567, - "loc": { - "start": { - "line": 25, - "column": 6 - }, - "end": { - "line": 25, - "column": 18 - } - }, - "callee": { - "type": "Identifier", - "start": 555, - "end": 562, - "loc": { - "start": { - "line": 25, - "column": 6 - }, - "end": { - "line": 25, - "column": 13 - }, - "identifierName": "resolve" - }, - "name": "resolve" - }, - "arguments": [ - { - "type": "Identifier", - "start": 563, - "end": 566, - "loc": { - "start": { - "line": 25, - "column": 14 - }, - "end": { - "line": 25, - "column": 17 - }, - "identifierName": "res" - }, - "name": "res" - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - } - } - ] - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewParams} data - view document with field extract payload\n * @return {Promise}\n ", - "start": 204, - "end": 371, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 16, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewResponse} document\n * @return {boolean} is there any siganture request in given document\n ", - "start": 586, - "end": 725, - "loc": { - "start": { - "line": 30, - "column": 0 - }, - "end": { - "line": 34, - "column": 3 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 726, - "end": 795, - "loc": { - "start": { - "line": 35, - "column": 0 - }, - "end": { - "line": 35, - "column": 69 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 732, - "end": 794, - "loc": { - "start": { - "line": 35, - "column": 6 - }, - "end": { - "line": 35, - "column": 68 - } - }, - "id": { - "type": "Identifier", - "start": 732, - "end": 751, - "loc": { - "start": { - "line": 35, - "column": 6 - }, - "end": { - "line": 35, - "column": 25 - }, - "identifierName": "hasSignatureInvites" - }, - "name": "hasSignatureInvites", - "leadingComments": null - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 754, - "end": 794, - "loc": { - "start": { - "line": 35, - "column": 28 - }, - "end": { - "line": 35, - "column": 68 - } - }, - "id": { - "type": "Identifier", - "start": 732, - "end": 751, - "loc": { - "start": { - "line": 35, - "column": 6 - }, - "end": { - "line": 35, - "column": 25 - }, - "identifierName": "hasSignatureInvites" - }, - "name": "hasSignatureInvites", - "leadingComments": null - }, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 754, - "end": 762, - "loc": { - "start": { - "line": 35, - "column": 28 - }, - "end": { - "line": 35, - "column": 36 - }, - "identifierName": "document" - }, - "name": "document" - } - ], - "body": { - "type": "BinaryExpression", - "start": 766, - "end": 794, - "loc": { - "start": { - "line": 35, - "column": 40 - }, - "end": { - "line": 35, - "column": 68 - } - }, - "left": { - "type": "MemberExpression", - "start": 766, - "end": 790, - "loc": { - "start": { - "line": 35, - "column": 40 - }, - "end": { - "line": 35, - "column": 64 - } - }, - "object": { - "type": "MemberExpression", - "start": 766, - "end": 783, - "loc": { - "start": { - "line": 35, - "column": 40 - }, - "end": { - "line": 35, - "column": 57 - } - }, - "object": { - "type": "Identifier", - "start": 766, - "end": 774, - "loc": { - "start": { - "line": 35, - "column": 40 - }, - "end": { - "line": 35, - "column": 48 - }, - "identifierName": "document" - }, - "name": "document" - }, - "property": { - "type": "Identifier", - "start": 775, - "end": 783, - "loc": { - "start": { - "line": 35, - "column": 49 - }, - "end": { - "line": 35, - "column": 57 - }, - "identifierName": "requests" - }, - "name": "requests" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 784, - "end": 790, - "loc": { - "start": { - "line": 35, - "column": 58 - }, - "end": { - "line": 35, - "column": 64 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - }, - "operator": ">", - "right": { - "type": "NumericLiteral", - "start": 793, - "end": 794, - "loc": { - "start": { - "line": 35, - "column": 67 - }, - "end": { - "line": 35, - "column": 68 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewResponse} document\n * @return {boolean} is there any siganture request in given document\n ", - "start": 586, - "end": 725, - "loc": { - "start": { - "line": 30, - "column": 0 - }, - "end": { - "line": 34, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewResponse} document\n * @return {boolean} is there any field invite in given document\n ", - "start": 797, - "end": 931, - "loc": { - "start": { - "line": 37, - "column": 0 - }, - "end": { - "line": 41, - "column": 3 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 932, - "end": 1002, - "loc": { - "start": { - "line": 42, - "column": 0 - }, - "end": { - "line": 42, - "column": 70 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 938, - "end": 1001, - "loc": { - "start": { - "line": 42, - "column": 6 - }, - "end": { - "line": 42, - "column": 69 - } - }, - "id": { - "type": "Identifier", - "start": 938, - "end": 953, - "loc": { - "start": { - "line": 42, - "column": 6 - }, - "end": { - "line": 42, - "column": 21 - }, - "identifierName": "hasFieldInvites" - }, - "name": "hasFieldInvites", - "leadingComments": null - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 956, - "end": 1001, - "loc": { - "start": { - "line": 42, - "column": 24 - }, - "end": { - "line": 42, - "column": 69 - } - }, - "id": { - "type": "Identifier", - "start": 938, - "end": 953, - "loc": { - "start": { - "line": 42, - "column": 6 - }, - "end": { - "line": 42, - "column": 21 - }, - "identifierName": "hasFieldInvites" - }, - "name": "hasFieldInvites", - "leadingComments": null - }, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 956, - "end": 964, - "loc": { - "start": { - "line": 42, - "column": 24 - }, - "end": { - "line": 42, - "column": 32 - }, - "identifierName": "document" - }, - "name": "document" - } - ], - "body": { - "type": "BinaryExpression", - "start": 968, - "end": 1001, - "loc": { - "start": { - "line": 42, - "column": 36 - }, - "end": { - "line": 42, - "column": 69 - } - }, - "left": { - "type": "MemberExpression", - "start": 968, - "end": 997, - "loc": { - "start": { - "line": 42, - "column": 36 - }, - "end": { - "line": 42, - "column": 65 - } - }, - "object": { - "type": "MemberExpression", - "start": 968, - "end": 990, - "loc": { - "start": { - "line": 42, - "column": 36 - }, - "end": { - "line": 42, - "column": 58 - } - }, - "object": { - "type": "Identifier", - "start": 968, - "end": 976, - "loc": { - "start": { - "line": 42, - "column": 36 - }, - "end": { - "line": 42, - "column": 44 - }, - "identifierName": "document" - }, - "name": "document" - }, - "property": { - "type": "Identifier", - "start": 977, - "end": 990, - "loc": { - "start": { - "line": 42, - "column": 45 - }, - "end": { - "line": 42, - "column": 58 - }, - "identifierName": "field_invites" - }, - "name": "field_invites" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 991, - "end": 997, - "loc": { - "start": { - "line": 42, - "column": 59 - }, - "end": { - "line": 42, - "column": 65 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - }, - "operator": ">", - "right": { - "type": "NumericLiteral", - "start": 1000, - "end": 1001, - "loc": { - "start": { - "line": 42, - "column": 68 - }, - "end": { - "line": 42, - "column": 69 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewResponse} document\n * @return {boolean} is there any field invite in given document\n ", - "start": 797, - "end": 931, - "loc": { - "start": { - "line": 37, - "column": 0 - }, - "end": { - "line": 41, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewResponse} document\n * @return {boolean} is there any signature in given document\n ", - "start": 1004, - "end": 1135, - "loc": { - "start": { - "line": 44, - "column": 0 - }, - "end": { - "line": 48, - "column": 3 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 1136, - "end": 1201, - "loc": { - "start": { - "line": 49, - "column": 0 - }, - "end": { - "line": 49, - "column": 65 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1142, - "end": 1200, - "loc": { - "start": { - "line": 49, - "column": 6 - }, - "end": { - "line": 49, - "column": 64 - } - }, - "id": { - "type": "Identifier", - "start": 1142, - "end": 1155, - "loc": { - "start": { - "line": 49, - "column": 6 - }, - "end": { - "line": 49, - "column": 19 - }, - "identifierName": "hasSignatures" - }, - "name": "hasSignatures", - "leadingComments": null - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 1158, - "end": 1200, - "loc": { - "start": { - "line": 49, - "column": 22 - }, - "end": { - "line": 49, - "column": 64 - } - }, - "id": { - "type": "Identifier", - "start": 1142, - "end": 1155, - "loc": { - "start": { - "line": 49, - "column": 6 - }, - "end": { - "line": 49, - "column": 19 - }, - "identifierName": "hasSignatures" - }, - "name": "hasSignatures", - "leadingComments": null - }, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1158, - "end": 1166, - "loc": { - "start": { - "line": 49, - "column": 22 - }, - "end": { - "line": 49, - "column": 30 - }, - "identifierName": "document" - }, - "name": "document" - } - ], - "body": { - "type": "BinaryExpression", - "start": 1170, - "end": 1200, - "loc": { - "start": { - "line": 49, - "column": 34 - }, - "end": { - "line": 49, - "column": 64 - } - }, - "left": { - "type": "MemberExpression", - "start": 1170, - "end": 1196, - "loc": { - "start": { - "line": 49, - "column": 34 - }, - "end": { - "line": 49, - "column": 60 - } - }, - "object": { - "type": "MemberExpression", - "start": 1170, - "end": 1189, - "loc": { - "start": { - "line": 49, - "column": 34 - }, - "end": { - "line": 49, - "column": 53 - } - }, - "object": { - "type": "Identifier", - "start": 1170, - "end": 1178, - "loc": { - "start": { - "line": 49, - "column": 34 - }, - "end": { - "line": 49, - "column": 42 - }, - "identifierName": "document" - }, - "name": "document" - }, - "property": { - "type": "Identifier", - "start": 1179, - "end": 1189, - "loc": { - "start": { - "line": 49, - "column": 43 - }, - "end": { - "line": 49, - "column": 53 - }, - "identifierName": "signatures" - }, - "name": "signatures" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 1190, - "end": 1196, - "loc": { - "start": { - "line": 49, - "column": 54 - }, - "end": { - "line": 49, - "column": 60 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - }, - "operator": ">", - "right": { - "type": "NumericLiteral", - "start": 1199, - "end": 1200, - "loc": { - "start": { - "line": 49, - "column": 63 - }, - "end": { - "line": 49, - "column": 64 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewResponse} document\n * @return {boolean} is there any signature in given document\n ", - "start": 1004, - "end": 1135, - "loc": { - "start": { - "line": 44, - "column": 0 - }, - "end": { - "line": 48, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewResponse} document\n * @return {boolean} is document a template or not\n ", - "start": 1203, - "end": 1323, - "loc": { - "start": { - "line": 51, - "column": 0 - }, - "end": { - "line": 55, - "column": 3 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 1324, - "end": 1382, - "loc": { - "start": { - "line": 56, - "column": 0 - }, - "end": { - "line": 56, - "column": 58 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1330, - "end": 1381, - "loc": { - "start": { - "line": 56, - "column": 6 - }, - "end": { - "line": 56, - "column": 57 - } - }, - "id": { - "type": "Identifier", - "start": 1330, - "end": 1340, - "loc": { - "start": { - "line": 56, - "column": 6 - }, - "end": { - "line": 56, - "column": 16 - }, - "identifierName": "isTemplate" - }, - "name": "isTemplate", - "leadingComments": null - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 1343, - "end": 1381, - "loc": { - "start": { - "line": 56, - "column": 19 - }, - "end": { - "line": 56, - "column": 57 - } - }, - "id": { - "type": "Identifier", - "start": 1330, - "end": 1340, - "loc": { - "start": { - "line": 56, - "column": 6 - }, - "end": { - "line": 56, - "column": 16 - }, - "identifierName": "isTemplate" - }, - "name": "isTemplate", - "leadingComments": null - }, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1343, - "end": 1351, - "loc": { - "start": { - "line": 56, - "column": 19 - }, - "end": { - "line": 56, - "column": 27 - }, - "identifierName": "document" - }, - "name": "document" - } - ], - "body": { - "type": "BinaryExpression", - "start": 1355, - "end": 1381, - "loc": { - "start": { - "line": 56, - "column": 31 - }, - "end": { - "line": 56, - "column": 57 - } - }, - "left": { - "type": "MemberExpression", - "start": 1355, - "end": 1372, - "loc": { - "start": { - "line": 56, - "column": 31 - }, - "end": { - "line": 56, - "column": 48 - } - }, - "object": { - "type": "Identifier", - "start": 1355, - "end": 1363, - "loc": { - "start": { - "line": 56, - "column": 31 - }, - "end": { - "line": 56, - "column": 39 - }, - "identifierName": "document" - }, - "name": "document" - }, - "property": { - "type": "Identifier", - "start": 1364, - "end": 1372, - "loc": { - "start": { - "line": 56, - "column": 40 - }, - "end": { - "line": 56, - "column": 48 - }, - "identifierName": "template" - }, - "name": "template" - }, - "computed": false - }, - "operator": "===", - "right": { - "type": "BooleanLiteral", - "start": 1377, - "end": 1381, - "loc": { - "start": { - "line": 56, - "column": 53 - }, - "end": { - "line": 56, - "column": 57 - } - }, - "value": true - } - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewResponse} document\n * @return {boolean} is document a template or not\n ", - "start": 1203, - "end": 1323, - "loc": { - "start": { - "line": 51, - "column": 0 - }, - "end": { - "line": 55, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewResponse} document\n * @return {boolean} can document be used for Document Group creation or not\n ", - "start": 1384, - "end": 1530, - "loc": { - "start": { - "line": 58, - "column": 0 - }, - "end": { - "line": 62, - "column": 3 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 1531, - "end": 1676, - "loc": { - "start": { - "line": 63, - "column": 0 - }, - "end": { - "line": 67, - "column": 2 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1537, - "end": 1675, - "loc": { - "start": { - "line": 63, - "column": 6 - }, - "end": { - "line": 67, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 1537, - "end": 1562, - "loc": { - "start": { - "line": 63, - "column": 6 - }, - "end": { - "line": 63, - "column": 31 - }, - "identifierName": "canBeAddedToDocumentGroup" - }, - "name": "canBeAddedToDocumentGroup", - "leadingComments": null - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 1565, - "end": 1675, - "loc": { - "start": { - "line": 63, - "column": 34 - }, - "end": { - "line": 67, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 1537, - "end": 1562, - "loc": { - "start": { - "line": 63, - "column": 6 - }, - "end": { - "line": 63, - "column": 31 - }, - "identifierName": "canBeAddedToDocumentGroup" - }, - "name": "canBeAddedToDocumentGroup", - "leadingComments": null - }, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1565, - "end": 1573, - "loc": { - "start": { - "line": 63, - "column": 34 - }, - "end": { - "line": 63, - "column": 42 - }, - "identifierName": "document" - }, - "name": "document" - } - ], - "body": { - "type": "LogicalExpression", - "start": 1581, - "end": 1673, - "loc": { - "start": { - "line": 64, - "column": 2 - }, - "end": { - "line": 66, - "column": 29 - } - }, - "left": { - "type": "LogicalExpression", - "start": 1581, - "end": 1643, - "loc": { - "start": { - "line": 64, - "column": 2 - }, - "end": { - "line": 65, - "column": 31 - } - }, - "left": { - "type": "UnaryExpression", - "start": 1581, - "end": 1611, - "loc": { - "start": { - "line": 64, - "column": 2 - }, - "end": { - "line": 64, - "column": 32 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "CallExpression", - "start": 1582, - "end": 1611, - "loc": { - "start": { - "line": 64, - "column": 3 - }, - "end": { - "line": 64, - "column": 32 - } - }, - "callee": { - "type": "Identifier", - "start": 1582, - "end": 1601, - "loc": { - "start": { - "line": 64, - "column": 3 - }, - "end": { - "line": 64, - "column": 22 - }, - "identifierName": "hasSignatureInvites" - }, - "name": "hasSignatureInvites" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1602, - "end": 1610, - "loc": { - "start": { - "line": 64, - "column": 23 - }, - "end": { - "line": 64, - "column": 31 - }, - "identifierName": "document" - }, - "name": "document" - } - ] - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "&&", - "right": { - "type": "UnaryExpression", - "start": 1617, - "end": 1643, - "loc": { - "start": { - "line": 65, - "column": 5 - }, - "end": { - "line": 65, - "column": 31 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "CallExpression", - "start": 1618, - "end": 1643, - "loc": { - "start": { - "line": 65, - "column": 6 - }, - "end": { - "line": 65, - "column": 31 - } - }, - "callee": { - "type": "Identifier", - "start": 1618, - "end": 1633, - "loc": { - "start": { - "line": 65, - "column": 6 - }, - "end": { - "line": 65, - "column": 21 - }, - "identifierName": "hasFieldInvites" - }, - "name": "hasFieldInvites" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1634, - "end": 1642, - "loc": { - "start": { - "line": 65, - "column": 22 - }, - "end": { - "line": 65, - "column": 30 - }, - "identifierName": "document" - }, - "name": "document" - } - ] - }, - "extra": { - "parenthesizedArgument": false - } - } - }, - "operator": "&&", - "right": { - "type": "UnaryExpression", - "start": 1649, - "end": 1673, - "loc": { - "start": { - "line": 66, - "column": 5 - }, - "end": { - "line": 66, - "column": 29 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "CallExpression", - "start": 1650, - "end": 1673, - "loc": { - "start": { - "line": 66, - "column": 6 - }, - "end": { - "line": 66, - "column": 29 - } - }, - "callee": { - "type": "Identifier", - "start": 1650, - "end": 1663, - "loc": { - "start": { - "line": 66, - "column": 6 - }, - "end": { - "line": 66, - "column": 19 - }, - "identifierName": "hasSignatures" - }, - "name": "hasSignatures" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1664, - "end": 1672, - "loc": { - "start": { - "line": 66, - "column": 20 - }, - "end": { - "line": 66, - "column": 28 - }, - "identifierName": "document" - }, - "name": "document" - } - ] - }, - "extra": { - "parenthesizedArgument": false - } - }, - "extra": { - "parenthesized": true, - "parenStart": 1577 - } - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewResponse} document\n * @return {boolean} can document be used for Document Group creation or not\n ", - "start": 1384, - "end": 1530, - "loc": { - "start": { - "line": 58, - "column": 0 - }, - "end": { - "line": 62, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {TemplateDuplicateParams} data - duplicate template payload\n * @return {Promise} resolves with id of new document\n ", - "start": 1678, - "end": 1855, - "loc": { - "start": { - "line": 69, - "column": 0 - }, - "end": { - "line": 73, - "column": 3 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 1856, - "end": 2082, - "loc": { - "start": { - "line": 74, - "column": 0 - }, - "end": { - "line": 85, - "column": 3 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1862, - "end": 2081, - "loc": { - "start": { - "line": 74, - "column": 6 - }, - "end": { - "line": 85, - "column": 2 - } - }, - "id": { - "type": "Identifier", - "start": 1862, - "end": 1886, - "loc": { - "start": { - "line": 74, - "column": 6 - }, - "end": { - "line": 74, - "column": 30 - }, - "identifierName": "makeDocumentFromTemplate" - }, - "name": "makeDocumentFromTemplate", - "leadingComments": null - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 1889, - "end": 2081, - "loc": { - "start": { - "line": 74, - "column": 33 - }, - "end": { - "line": 85, - "column": 2 - } - }, - "id": { - "type": "Identifier", - "start": 1862, - "end": 1886, - "loc": { - "start": { - "line": 74, - "column": 6 - }, - "end": { - "line": 74, - "column": 30 - }, - "identifierName": "makeDocumentFromTemplate" - }, - "name": "makeDocumentFromTemplate", - "leadingComments": null - }, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 1890, - "end": 1903, - "loc": { - "start": { - "line": 74, - "column": 34 - }, - "end": { - "line": 74, - "column": 47 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1892, - "end": 1894, - "loc": { - "start": { - "line": 74, - "column": 36 - }, - "end": { - "line": 74, - "column": 38 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1892, - "end": 1894, - "loc": { - "start": { - "line": 74, - "column": 36 - }, - "end": { - "line": 74, - "column": 38 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 1892, - "end": 1894, - "loc": { - "start": { - "line": 74, - "column": 36 - }, - "end": { - "line": 74, - "column": 38 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1896, - "end": 1901, - "loc": { - "start": { - "line": 74, - "column": 40 - }, - "end": { - "line": 74, - "column": 45 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1896, - "end": 1901, - "loc": { - "start": { - "line": 74, - "column": 40 - }, - "end": { - "line": 74, - "column": 45 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 1896, - "end": 1901, - "loc": { - "start": { - "line": 74, - "column": 40 - }, - "end": { - "line": 74, - "column": 45 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - ], - "body": { - "type": "NewExpression", - "start": 1908, - "end": 2081, - "loc": { - "start": { - "line": 74, - "column": 52 - }, - "end": { - "line": 85, - "column": 2 - } - }, - "callee": { - "type": "Identifier", - "start": 1912, - "end": 1919, - "loc": { - "start": { - "line": 74, - "column": 56 - }, - "end": { - "line": 74, - "column": 63 - }, - "identifierName": "Promise" - }, - "name": "Promise" - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 1920, - "end": 2080, - "loc": { - "start": { - "line": 74, - "column": 64 - }, - "end": { - "line": 85, - "column": 1 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1921, - "end": 1928, - "loc": { - "start": { - "line": 74, - "column": 65 - }, - "end": { - "line": 74, - "column": 72 - }, - "identifierName": "resolve" - }, - "name": "resolve" - }, - { - "type": "Identifier", - "start": 1930, - "end": 1936, - "loc": { - "start": { - "line": 74, - "column": 74 - }, - "end": { - "line": 74, - "column": 80 - }, - "identifierName": "reject" - }, - "name": "reject" - } - ], - "body": { - "type": "BlockStatement", - "start": 1941, - "end": 2080, - "loc": { - "start": { - "line": 74, - "column": 85 - }, - "end": { - "line": 85, - "column": 1 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1945, - "end": 2078, - "loc": { - "start": { - "line": 75, - "column": 2 - }, - "end": { - "line": 84, - "column": 5 - } - }, - "expression": { - "type": "CallExpression", - "start": 1945, - "end": 2077, - "loc": { - "start": { - "line": 75, - "column": 2 - }, - "end": { - "line": 84, - "column": 4 - } - }, - "callee": { - "type": "Identifier", - "start": 1945, - "end": 1954, - "loc": { - "start": { - "line": 75, - "column": 2 - }, - "end": { - "line": 75, - "column": 11 - }, - "identifierName": "duplicate" - }, - "name": "duplicate" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 1955, - "end": 1979, - "loc": { - "start": { - "line": 75, - "column": 12 - }, - "end": { - "line": 78, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1961, - "end": 1963, - "loc": { - "start": { - "line": 76, - "column": 4 - }, - "end": { - "line": 76, - "column": 6 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1961, - "end": 1963, - "loc": { - "start": { - "line": 76, - "column": 4 - }, - "end": { - "line": 76, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 1961, - "end": 1963, - "loc": { - "start": { - "line": 76, - "column": 4 - }, - "end": { - "line": 76, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1969, - "end": 1974, - "loc": { - "start": { - "line": 77, - "column": 4 - }, - "end": { - "line": 77, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1969, - "end": 1974, - "loc": { - "start": { - "line": 77, - "column": 4 - }, - "end": { - "line": 77, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 1969, - "end": 1974, - "loc": { - "start": { - "line": 77, - "column": 4 - }, - "end": { - "line": 77, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "ArrowFunctionExpression", - "start": 1981, - "end": 2076, - "loc": { - "start": { - "line": 78, - "column": 5 - }, - "end": { - "line": 84, - "column": 3 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1982, - "end": 1985, - "loc": { - "start": { - "line": 78, - "column": 6 - }, - "end": { - "line": 78, - "column": 9 - }, - "identifierName": "err" - }, - "name": "err" - }, - { - "type": "Identifier", - "start": 1987, - "end": 1990, - "loc": { - "start": { - "line": 78, - "column": 11 - }, - "end": { - "line": 78, - "column": 14 - }, - "identifierName": "res" - }, - "name": "res" - } - ], - "body": { - "type": "BlockStatement", - "start": 1995, - "end": 2076, - "loc": { - "start": { - "line": 78, - "column": 19 - }, - "end": { - "line": 84, - "column": 3 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 2001, - "end": 2072, - "loc": { - "start": { - "line": 79, - "column": 4 - }, - "end": { - "line": 83, - "column": 5 - } - }, - "test": { - "type": "Identifier", - "start": 2005, - "end": 2008, - "loc": { - "start": { - "line": 79, - "column": 8 - }, - "end": { - "line": 79, - "column": 11 - }, - "identifierName": "err" - }, - "name": "err" - }, - "consequent": { - "type": "BlockStatement", - "start": 2010, - "end": 2036, - "loc": { - "start": { - "line": 79, - "column": 13 - }, - "end": { - "line": 81, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2018, - "end": 2030, - "loc": { - "start": { - "line": 80, - "column": 6 - }, - "end": { - "line": 80, - "column": 18 - } - }, - "expression": { - "type": "CallExpression", - "start": 2018, - "end": 2029, - "loc": { - "start": { - "line": 80, - "column": 6 - }, - "end": { - "line": 80, - "column": 17 - } - }, - "callee": { - "type": "Identifier", - "start": 2018, - "end": 2024, - "loc": { - "start": { - "line": 80, - "column": 6 - }, - "end": { - "line": 80, - "column": 12 - }, - "identifierName": "reject" - }, - "name": "reject" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2025, - "end": 2028, - "loc": { - "start": { - "line": 80, - "column": 13 - }, - "end": { - "line": 80, - "column": 16 - }, - "identifierName": "err" - }, - "name": "err" - } - ] - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 2042, - "end": 2072, - "loc": { - "start": { - "line": 81, - "column": 11 - }, - "end": { - "line": 83, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2050, - "end": 2066, - "loc": { - "start": { - "line": 82, - "column": 6 - }, - "end": { - "line": 82, - "column": 22 - } - }, - "expression": { - "type": "CallExpression", - "start": 2050, - "end": 2065, - "loc": { - "start": { - "line": 82, - "column": 6 - }, - "end": { - "line": 82, - "column": 21 - } - }, - "callee": { - "type": "Identifier", - "start": 2050, - "end": 2057, - "loc": { - "start": { - "line": 82, - "column": 6 - }, - "end": { - "line": 82, - "column": 13 - }, - "identifierName": "resolve" - }, - "name": "resolve" - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 2058, - "end": 2064, - "loc": { - "start": { - "line": 82, - "column": 14 - }, - "end": { - "line": 82, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 2058, - "end": 2061, - "loc": { - "start": { - "line": 82, - "column": 14 - }, - "end": { - "line": 82, - "column": 17 - }, - "identifierName": "res" - }, - "name": "res" - }, - "property": { - "type": "Identifier", - "start": 2062, - "end": 2064, - "loc": { - "start": { - "line": 82, - "column": 18 - }, - "end": { - "line": 82, - "column": 20 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": false - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - } - } - ] - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {TemplateDuplicateParams} data - duplicate template payload\n * @return {Promise} resolves with id of new document\n ", - "start": 1678, - "end": 1855, - "loc": { - "start": { - "line": 69, - "column": 0 - }, - "end": { - "line": 73, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document Group methods\n ", - "start": 2084, - "end": 2117, - "loc": { - "start": { - "line": 87, - "column": 0 - }, - "end": { - "line": 89, - "column": 3 - } - } - } - ] - }, - { - "type": "Identifier", - "start": 2118, - "end": 9194, - "loc": { - "start": { - "line": 90, - "column": 0 - }, - "end": { - "line": 290, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 2124, - "end": 2137, - "loc": { - "start": { - "line": 90, - "column": 6 - }, - "end": { - "line": 90, - "column": 19 - }, - "identifierName": "DocumentGroup" - }, - "name": "DocumentGroup", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 2138, - "end": 9194, - "loc": { - "start": { - "line": 90, - "column": 20 - }, - "end": { - "line": 290, - "column": 1 - } - }, - "body": [ - { - "type": "ClassMethod", - "start": 3023, - "end": 4446, - "loc": { - "start": { - "line": 112, - "column": 2 - }, - "end": { - "line": 167, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3030, - "end": 3036, - "loc": { - "start": { - "line": 112, - "column": 9 - }, - "end": { - "line": 112, - "column": 15 - }, - "identifierName": "create" - }, - "name": "create" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 3038, - "end": 3079, - "loc": { - "start": { - "line": 112, - "column": 17 - }, - "end": { - "line": 116, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3044, - "end": 3049, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 113, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3044, - "end": 3049, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 113, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 3044, - "end": 3049, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 113, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3055, - "end": 3058, - "loc": { - "start": { - "line": 114, - "column": 4 - }, - "end": { - "line": 114, - "column": 7 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3055, - "end": 3058, - "loc": { - "start": { - "line": 114, - "column": 4 - }, - "end": { - "line": 114, - "column": 7 - }, - "identifierName": "ids" - }, - "name": "ids" - }, - "value": { - "type": "Identifier", - "start": 3055, - "end": 3058, - "loc": { - "start": { - "line": 114, - "column": 4 - }, - "end": { - "line": 114, - "column": 7 - }, - "identifierName": "ids" - }, - "name": "ids" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3064, - "end": 3074, - "loc": { - "start": { - "line": 115, - "column": 4 - }, - "end": { - "line": 115, - "column": 14 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3064, - "end": 3074, - "loc": { - "start": { - "line": 115, - "column": 4 - }, - "end": { - "line": 115, - "column": 14 - }, - "identifierName": "group_name" - }, - "name": "group_name" - }, - "value": { - "type": "Identifier", - "start": 3064, - "end": 3074, - "loc": { - "start": { - "line": 115, - "column": 4 - }, - "end": { - "line": 115, - "column": 14 - }, - "identifierName": "group_name" - }, - "name": "group_name" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 3081, - "end": 3089, - "loc": { - "start": { - "line": 116, - "column": 5 - }, - "end": { - "line": 116, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 3091, - "end": 4446, - "loc": { - "start": { - "line": 116, - "column": 15 - }, - "end": { - "line": 167, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 3097, - "end": 3675, - "loc": { - "start": { - "line": 117, - "column": 4 - }, - "end": { - "line": 135, - "column": 9 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3103, - "end": 3674, - "loc": { - "start": { - "line": 117, - "column": 10 - }, - "end": { - "line": 135, - "column": 8 - } - }, - "id": { - "type": "Identifier", - "start": 3103, - "end": 3118, - "loc": { - "start": { - "line": 117, - "column": 10 - }, - "end": { - "line": 117, - "column": 25 - }, - "identifierName": "realDocumentIDs" - }, - "name": "realDocumentIDs" - }, - "init": { - "type": "CallExpression", - "start": 3121, - "end": 3674, - "loc": { - "start": { - "line": 117, - "column": 28 - }, - "end": { - "line": 135, - "column": 8 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3121, - "end": 3135, - "loc": { - "start": { - "line": 117, - "column": 28 - }, - "end": { - "line": 118, - "column": 10 - } - }, - "object": { - "type": "Identifier", - "start": 3121, - "end": 3124, - "loc": { - "start": { - "line": 117, - "column": 28 - }, - "end": { - "line": 117, - "column": 31 - }, - "identifierName": "ids" - }, - "name": "ids" - }, - "property": { - "type": "Identifier", - "start": 3132, - "end": 3135, - "loc": { - "start": { - "line": 118, - "column": 7 - }, - "end": { - "line": 118, - "column": 10 - }, - "identifierName": "map" - }, - "name": "map" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 3136, - "end": 3673, - "loc": { - "start": { - "line": 118, - "column": 11 - }, - "end": { - "line": 135, - "column": 7 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 3136, - "end": 3138, - "loc": { - "start": { - "line": 118, - "column": 11 - }, - "end": { - "line": 118, - "column": 13 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "body": { - "type": "BlockStatement", - "start": 3142, - "end": 3673, - "loc": { - "start": { - "line": 118, - "column": 17 - }, - "end": { - "line": 135, - "column": 7 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 3152, - "end": 3665, - "loc": { - "start": { - "line": 119, - "column": 8 - }, - "end": { - "line": 134, - "column": 13 - } - }, - "argument": { - "type": "CallExpression", - "start": 3159, - "end": 3664, - "loc": { - "start": { - "line": 119, - "column": 15 - }, - "end": { - "line": 134, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3159, - "end": 3237, - "loc": { - "start": { - "line": 119, - "column": 15 - }, - "end": { - "line": 123, - "column": 15 - } - }, - "object": { - "type": "CallExpression", - "start": 3159, - "end": 3221, - "loc": { - "start": { - "line": 119, - "column": 15 - }, - "end": { - "line": 122, - "column": 10 - } - }, - "callee": { - "type": "Identifier", - "start": 3159, - "end": 3177, - "loc": { - "start": { - "line": 119, - "column": 15 - }, - "end": { - "line": 119, - "column": 33 - }, - "identifierName": "getDocumentDetails" - }, - "name": "getDocumentDetails" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 3178, - "end": 3220, - "loc": { - "start": { - "line": 119, - "column": 34 - }, - "end": { - "line": 122, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3190, - "end": 3192, - "loc": { - "start": { - "line": 120, - "column": 10 - }, - "end": { - "line": 120, - "column": 12 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3190, - "end": 3192, - "loc": { - "start": { - "line": 120, - "column": 10 - }, - "end": { - "line": 120, - "column": 12 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 3190, - "end": 3192, - "loc": { - "start": { - "line": 120, - "column": 10 - }, - "end": { - "line": 120, - "column": 12 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3204, - "end": 3209, - "loc": { - "start": { - "line": 121, - "column": 10 - }, - "end": { - "line": 121, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3204, - "end": 3209, - "loc": { - "start": { - "line": 121, - "column": 10 - }, - "end": { - "line": 121, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 3204, - "end": 3209, - "loc": { - "start": { - "line": 121, - "column": 10 - }, - "end": { - "line": 121, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 3233, - "end": 3237, - "loc": { - "start": { - "line": 123, - "column": 11 - }, - "end": { - "line": 123, - "column": 15 - }, - "identifierName": "then" - }, - "name": "then" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 3238, - "end": 3663, - "loc": { - "start": { - "line": 123, - "column": 16 - }, - "end": { - "line": 134, - "column": 11 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 3238, - "end": 3246, - "loc": { - "start": { - "line": 123, - "column": 16 - }, - "end": { - "line": 123, - "column": 24 - }, - "identifierName": "document" - }, - "name": "document" - } - ], - "body": { - "type": "BlockStatement", - "start": 3250, - "end": 3663, - "loc": { - "start": { - "line": 123, - "column": 28 - }, - "end": { - "line": 134, - "column": 11 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 3264, - "end": 3651, - "loc": { - "start": { - "line": 124, - "column": 12 - }, - "end": { - "line": 133, - "column": 13 - } - }, - "test": { - "type": "CallExpression", - "start": 3268, - "end": 3288, - "loc": { - "start": { - "line": 124, - "column": 16 - }, - "end": { - "line": 124, - "column": 36 - } - }, - "callee": { - "type": "Identifier", - "start": 3268, - "end": 3278, - "loc": { - "start": { - "line": 124, - "column": 16 - }, - "end": { - "line": 124, - "column": 26 - }, - "identifierName": "isTemplate" - }, - "name": "isTemplate" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3279, - "end": 3287, - "loc": { - "start": { - "line": 124, - "column": 27 - }, - "end": { - "line": 124, - "column": 35 - }, - "identifierName": "document" - }, - "name": "document" - } - ] - }, - "consequent": { - "type": "BlockStatement", - "start": 3290, - "end": 3414, - "loc": { - "start": { - "line": 124, - "column": 38 - }, - "end": { - "line": 129, - "column": 13 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 3306, - "end": 3400, - "loc": { - "start": { - "line": 125, - "column": 14 - }, - "end": { - "line": 128, - "column": 17 - } - }, - "argument": { - "type": "CallExpression", - "start": 3313, - "end": 3399, - "loc": { - "start": { - "line": 125, - "column": 21 - }, - "end": { - "line": 128, - "column": 16 - } - }, - "callee": { - "type": "Identifier", - "start": 3313, - "end": 3337, - "loc": { - "start": { - "line": 125, - "column": 21 - }, - "end": { - "line": 125, - "column": 45 - }, - "identifierName": "makeDocumentFromTemplate" - }, - "name": "makeDocumentFromTemplate" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 3338, - "end": 3398, - "loc": { - "start": { - "line": 125, - "column": 46 - }, - "end": { - "line": 128, - "column": 15 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3356, - "end": 3358, - "loc": { - "start": { - "line": 126, - "column": 16 - }, - "end": { - "line": 126, - "column": 18 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3356, - "end": 3358, - "loc": { - "start": { - "line": 126, - "column": 16 - }, - "end": { - "line": 126, - "column": 18 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 3356, - "end": 3358, - "loc": { - "start": { - "line": 126, - "column": 16 - }, - "end": { - "line": 126, - "column": 18 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3376, - "end": 3381, - "loc": { - "start": { - "line": 127, - "column": 16 - }, - "end": { - "line": 127, - "column": 21 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3376, - "end": 3381, - "loc": { - "start": { - "line": 127, - "column": 16 - }, - "end": { - "line": 127, - "column": 21 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 3376, - "end": 3381, - "loc": { - "start": { - "line": 127, - "column": 16 - }, - "end": { - "line": 127, - "column": 21 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "directives": [] - }, - "alternate": { - "type": "IfStatement", - "start": 3420, - "end": 3651, - "loc": { - "start": { - "line": 129, - "column": 19 - }, - "end": { - "line": 133, - "column": 13 - } - }, - "test": { - "type": "CallExpression", - "start": 3424, - "end": 3459, - "loc": { - "start": { - "line": 129, - "column": 23 - }, - "end": { - "line": 129, - "column": 58 - } - }, - "callee": { - "type": "Identifier", - "start": 3424, - "end": 3449, - "loc": { - "start": { - "line": 129, - "column": 23 - }, - "end": { - "line": 129, - "column": 48 - }, - "identifierName": "canBeAddedToDocumentGroup" - }, - "name": "canBeAddedToDocumentGroup" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3450, - "end": 3458, - "loc": { - "start": { - "line": 129, - "column": 49 - }, - "end": { - "line": 129, - "column": 57 - }, - "identifierName": "document" - }, - "name": "document" - } - ] - }, - "consequent": { - "type": "BlockStatement", - "start": 3461, - "end": 3501, - "loc": { - "start": { - "line": 129, - "column": 60 - }, - "end": { - "line": 131, - "column": 13 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 3477, - "end": 3487, - "loc": { - "start": { - "line": 130, - "column": 14 - }, - "end": { - "line": 130, - "column": 24 - } - }, - "argument": { - "type": "Identifier", - "start": 3484, - "end": 3486, - "loc": { - "start": { - "line": 130, - "column": 21 - }, - "end": { - "line": 130, - "column": 23 - }, - "identifierName": "id" - }, - "name": "id" - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 3507, - "end": 3651, - "loc": { - "start": { - "line": 131, - "column": 19 - }, - "end": { - "line": 133, - "column": 13 - } - }, - "body": [ - { - "type": "ThrowStatement", - "start": 3523, - "end": 3637, - "loc": { - "start": { - "line": 132, - "column": 14 - }, - "end": { - "line": 132, - "column": 128 - } - }, - "argument": { - "type": "NewExpression", - "start": 3529, - "end": 3636, - "loc": { - "start": { - "line": 132, - "column": 20 - }, - "end": { - "line": 132, - "column": 127 - } - }, - "callee": { - "type": "Identifier", - "start": 3533, - "end": 3538, - "loc": { - "start": { - "line": 132, - "column": 24 - }, - "end": { - "line": 132, - "column": 29 - }, - "identifierName": "Error" - }, - "name": "Error" - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 3539, - "end": 3635, - "loc": { - "start": { - "line": 132, - "column": 30 - }, - "end": { - "line": 132, - "column": 126 - } - }, - "extra": { - "rawValue": "Document in the group must have no pending invites, signature requests or completed signatures", - "raw": "'Document in the group must have no pending invites, signature requests or completed signatures'" - }, - "value": "Document in the group must have no pending invites, signature requests or completed signatures" - } - ] - } - } - ], - "directives": [] - } - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 3681, - "end": 4441, - "loc": { - "start": { - "line": 137, - "column": 4 - }, - "end": { - "line": 165, - "column": 9 - } - }, - "expression": { - "type": "CallExpression", - "start": 3681, - "end": 4440, - "loc": { - "start": { - "line": 137, - "column": 4 - }, - "end": { - "line": 165, - "column": 8 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3681, - "end": 4375, - "loc": { - "start": { - "line": 137, - "column": 4 - }, - "end": { - "line": 162, - "column": 12 - } - }, - "object": { - "type": "CallExpression", - "start": 3681, - "end": 4362, - "loc": { - "start": { - "line": 137, - "column": 4 - }, - "end": { - "line": 161, - "column": 8 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3681, - "end": 3721, - "loc": { - "start": { - "line": 137, - "column": 4 - }, - "end": { - "line": 138, - "column": 11 - } - }, - "object": { - "type": "CallExpression", - "start": 3681, - "end": 3709, - "loc": { - "start": { - "line": 137, - "column": 4 - }, - "end": { - "line": 137, - "column": 32 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3681, - "end": 3692, - "loc": { - "start": { - "line": 137, - "column": 4 - }, - "end": { - "line": 137, - "column": 15 - } - }, - "object": { - "type": "Identifier", - "start": 3681, - "end": 3688, - "loc": { - "start": { - "line": 137, - "column": 4 - }, - "end": { - "line": 137, - "column": 11 - }, - "identifierName": "Promise" - }, - "name": "Promise" - }, - "property": { - "type": "Identifier", - "start": 3689, - "end": 3692, - "loc": { - "start": { - "line": 137, - "column": 12 - }, - "end": { - "line": 137, - "column": 15 - }, - "identifierName": "all" - }, - "name": "all" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 3693, - "end": 3708, - "loc": { - "start": { - "line": 137, - "column": 16 - }, - "end": { - "line": 137, - "column": 31 - }, - "identifierName": "realDocumentIDs" - }, - "name": "realDocumentIDs" - } - ] - }, - "property": { - "type": "Identifier", - "start": 3717, - "end": 3721, - "loc": { - "start": { - "line": 138, - "column": 7 - }, - "end": { - "line": 138, - "column": 11 - }, - "identifierName": "then" - }, - "name": "then" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 3722, - "end": 4361, - "loc": { - "start": { - "line": 138, - "column": 12 - }, - "end": { - "line": 161, - "column": 7 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 3722, - "end": 3734, - "loc": { - "start": { - "line": 138, - "column": 12 - }, - "end": { - "line": 138, - "column": 24 - }, - "identifierName": "document_ids" - }, - "name": "document_ids" - } - ], - "body": { - "type": "BlockStatement", - "start": 3738, - "end": 4361, - "loc": { - "start": { - "line": 138, - "column": 28 - }, - "end": { - "line": 161, - "column": 7 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 3748, - "end": 3839, - "loc": { - "start": { - "line": 139, - "column": 8 - }, - "end": { - "line": 142, - "column": 11 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3754, - "end": 3838, - "loc": { - "start": { - "line": 139, - "column": 14 - }, - "end": { - "line": 142, - "column": 10 - } - }, - "id": { - "type": "Identifier", - "start": 3754, - "end": 3762, - "loc": { - "start": { - "line": 139, - "column": 14 - }, - "end": { - "line": 139, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 3765, - "end": 3838, - "loc": { - "start": { - "line": 139, - "column": 25 - }, - "end": { - "line": 142, - "column": 10 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3765, - "end": 3779, - "loc": { - "start": { - "line": 139, - "column": 25 - }, - "end": { - "line": 139, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 3765, - "end": 3769, - "loc": { - "start": { - "line": 139, - "column": 25 - }, - "end": { - "line": 139, - "column": 29 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 3770, - "end": 3779, - "loc": { - "start": { - "line": 139, - "column": 30 - }, - "end": { - "line": 139, - "column": 39 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 3780, - "end": 3837, - "loc": { - "start": { - "line": 139, - "column": 40 - }, - "end": { - "line": 142, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3792, - "end": 3804, - "loc": { - "start": { - "line": 140, - "column": 10 - }, - "end": { - "line": 140, - "column": 22 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3792, - "end": 3804, - "loc": { - "start": { - "line": 140, - "column": 10 - }, - "end": { - "line": 140, - "column": 22 - }, - "identifierName": "document_ids" - }, - "name": "document_ids" - }, - "value": { - "type": "Identifier", - "start": 3792, - "end": 3804, - "loc": { - "start": { - "line": 140, - "column": 10 - }, - "end": { - "line": 140, - "column": 22 - }, - "identifierName": "document_ids" - }, - "name": "document_ids" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3816, - "end": 3826, - "loc": { - "start": { - "line": 141, - "column": 10 - }, - "end": { - "line": 141, - "column": 20 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3816, - "end": 3826, - "loc": { - "start": { - "line": 141, - "column": 10 - }, - "end": { - "line": 141, - "column": 20 - }, - "identifierName": "group_name" - }, - "name": "group_name" - }, - "value": { - "type": "Identifier", - "start": 3816, - "end": 3826, - "loc": { - "start": { - "line": 141, - "column": 10 - }, - "end": { - "line": 141, - "column": 20 - }, - "identifierName": "group_name" - }, - "name": "group_name" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 3849, - "end": 4304, - "loc": { - "start": { - "line": 144, - "column": 8 - }, - "end": { - "line": 157, - "column": 47 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3855, - "end": 4303, - "loc": { - "start": { - "line": 144, - "column": 14 - }, - "end": { - "line": 157, - "column": 46 - } - }, - "id": { - "type": "Identifier", - "start": 3855, - "end": 3858, - "loc": { - "start": { - "line": 144, - "column": 14 - }, - "end": { - "line": 144, - "column": 17 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 3861, - "end": 4303, - "loc": { - "start": { - "line": 144, - "column": 20 - }, - "end": { - "line": 157, - "column": 46 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3861, - "end": 4270, - "loc": { - "start": { - "line": 144, - "column": 20 - }, - "end": { - "line": 157, - "column": 13 - } - }, - "object": { - "type": "CallExpression", - "start": 3861, - "end": 4256, - "loc": { - "start": { - "line": 144, - "column": 20 - }, - "end": { - "line": 156, - "column": 40 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3861, - "end": 3885, - "loc": { - "start": { - "line": 144, - "column": 20 - }, - "end": { - "line": 145, - "column": 18 - } - }, - "object": { - "type": "Identifier", - "start": 3861, - "end": 3866, - "loc": { - "start": { - "line": 144, - "column": 20 - }, - "end": { - "line": 144, - "column": 25 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 3878, - "end": 3885, - "loc": { - "start": { - "line": 145, - "column": 11 - }, - "end": { - "line": 145, - "column": 18 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 3886, - "end": 4228, - "loc": { - "start": { - "line": 145, - "column": 19 - }, - "end": { - "line": 156, - "column": 12 - } - }, - "callee": { - "type": "Identifier", - "start": 3886, - "end": 3905, - "loc": { - "start": { - "line": 145, - "column": 19 - }, - "end": { - "line": 145, - "column": 38 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 3906, - "end": 4227, - "loc": { - "start": { - "line": 145, - "column": 39 - }, - "end": { - "line": 156, - "column": 11 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3920, - "end": 3934, - "loc": { - "start": { - "line": 146, - "column": 12 - }, - "end": { - "line": 146, - "column": 26 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3920, - "end": 3926, - "loc": { - "start": { - "line": 146, - "column": 12 - }, - "end": { - "line": 146, - "column": 18 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 3928, - "end": 3934, - "loc": { - "start": { - "line": 146, - "column": 20 - }, - "end": { - "line": 146, - "column": 26 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 3948, - "end": 3970, - "loc": { - "start": { - "line": 147, - "column": 12 - }, - "end": { - "line": 147, - "column": 34 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3948, - "end": 3952, - "loc": { - "start": { - "line": 147, - "column": 12 - }, - "end": { - "line": 147, - "column": 16 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 3954, - "end": 3970, - "loc": { - "start": { - "line": 147, - "column": 18 - }, - "end": { - "line": 147, - "column": 34 - } - }, - "extra": { - "rawValue": "/documentgroup", - "raw": "'/documentgroup'" - }, - "value": "/documentgroup" - } - }, - { - "type": "ObjectProperty", - "start": 3984, - "end": 4065, - "loc": { - "start": { - "line": 148, - "column": 12 - }, - "end": { - "line": 151, - "column": 13 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3984, - "end": 3997, - "loc": { - "start": { - "line": 148, - "column": 12 - }, - "end": { - "line": 148, - "column": 25 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 3999, - "end": 4065, - "loc": { - "start": { - "line": 148, - "column": 27 - }, - "end": { - "line": 151, - "column": 13 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4015, - "end": 4029, - "loc": { - "start": { - "line": 149, - "column": 14 - }, - "end": { - "line": 149, - "column": 28 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4015, - "end": 4019, - "loc": { - "start": { - "line": 149, - "column": 14 - }, - "end": { - "line": 149, - "column": 18 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 4021, - "end": 4029, - "loc": { - "start": { - "line": 149, - "column": 20 - }, - "end": { - "line": 149, - "column": 28 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 4045, - "end": 4050, - "loc": { - "start": { - "line": 150, - "column": 14 - }, - "end": { - "line": 150, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 4045, - "end": 4050, - "loc": { - "start": { - "line": 150, - "column": 14 - }, - "end": { - "line": 150, - "column": 19 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 4045, - "end": 4050, - "loc": { - "start": { - "line": 150, - "column": 14 - }, - "end": { - "line": 150, - "column": 19 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 4079, - "end": 4214, - "loc": { - "start": { - "line": 152, - "column": 12 - }, - "end": { - "line": 155, - "column": 13 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4079, - "end": 4086, - "loc": { - "start": { - "line": 152, - "column": 12 - }, - "end": { - "line": 152, - "column": 19 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 4088, - "end": 4214, - "loc": { - "start": { - "line": 152, - "column": 21 - }, - "end": { - "line": 155, - "column": 13 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4104, - "end": 4138, - "loc": { - "start": { - "line": 153, - "column": 14 - }, - "end": { - "line": 153, - "column": 48 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 4104, - "end": 4118, - "loc": { - "start": { - "line": 153, - "column": 14 - }, - "end": { - "line": 153, - "column": 28 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 4120, - "end": 4138, - "loc": { - "start": { - "line": 153, - "column": 30 - }, - "end": { - "line": 153, - "column": 48 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 4154, - "end": 4199, - "loc": { - "start": { - "line": 154, - "column": 14 - }, - "end": { - "line": 154, - "column": 59 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 4154, - "end": 4170, - "loc": { - "start": { - "line": 154, - "column": 14 - }, - "end": { - "line": 154, - "column": 30 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 4172, - "end": 4199, - "loc": { - "start": { - "line": 154, - "column": 32 - }, - "end": { - "line": 154, - "column": 59 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4172, - "end": 4189, - "loc": { - "start": { - "line": 154, - "column": 32 - }, - "end": { - "line": 154, - "column": 49 - } - }, - "object": { - "type": "Identifier", - "start": 4172, - "end": 4178, - "loc": { - "start": { - "line": 154, - "column": 32 - }, - "end": { - "line": 154, - "column": 38 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 4179, - "end": 4189, - "loc": { - "start": { - "line": 154, - "column": 39 - }, - "end": { - "line": 154, - "column": 49 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 4190, - "end": 4198, - "loc": { - "start": { - "line": 154, - "column": 50 - }, - "end": { - "line": 154, - "column": 58 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 4230, - "end": 4255, - "loc": { - "start": { - "line": 156, - "column": 14 - }, - "end": { - "line": 156, - "column": 39 - } - }, - "callee": { - "type": "Identifier", - "start": 4230, - "end": 4245, - "loc": { - "start": { - "line": 156, - "column": 14 - }, - "end": { - "line": 156, - "column": 29 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 4246, - "end": 4254, - "loc": { - "start": { - "line": 156, - "column": 30 - }, - "end": { - "line": 156, - "column": 38 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 4268, - "end": 4270, - "loc": { - "start": { - "line": 157, - "column": 11 - }, - "end": { - "line": 157, - "column": 13 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 4271, - "end": 4278, - "loc": { - "start": { - "line": 157, - "column": 14 - }, - "end": { - "line": 157, - "column": 21 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 4280, - "end": 4302, - "loc": { - "start": { - "line": 157, - "column": 23 - }, - "end": { - "line": 157, - "column": 45 - } - }, - "callee": { - "type": "Identifier", - "start": 4280, - "end": 4292, - "loc": { - "start": { - "line": 157, - "column": 23 - }, - "end": { - "line": 157, - "column": 35 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 4293, - "end": 4301, - "loc": { - "start": { - "line": 157, - "column": 36 - }, - "end": { - "line": 157, - "column": 44 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 4314, - "end": 4334, - "loc": { - "start": { - "line": 159, - "column": 8 - }, - "end": { - "line": 159, - "column": 28 - } - }, - "expression": { - "type": "CallExpression", - "start": 4314, - "end": 4333, - "loc": { - "start": { - "line": 159, - "column": 8 - }, - "end": { - "line": 159, - "column": 27 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4314, - "end": 4323, - "loc": { - "start": { - "line": 159, - "column": 8 - }, - "end": { - "line": 159, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 4314, - "end": 4317, - "loc": { - "start": { - "line": 159, - "column": 8 - }, - "end": { - "line": 159, - "column": 11 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 4318, - "end": 4323, - "loc": { - "start": { - "line": 159, - "column": 12 - }, - "end": { - "line": 159, - "column": 17 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 4324, - "end": 4332, - "loc": { - "start": { - "line": 159, - "column": 18 - }, - "end": { - "line": 159, - "column": 26 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 4343, - "end": 4353, - "loc": { - "start": { - "line": 160, - "column": 8 - }, - "end": { - "line": 160, - "column": 18 - } - }, - "expression": { - "type": "CallExpression", - "start": 4343, - "end": 4352, - "loc": { - "start": { - "line": 160, - "column": 8 - }, - "end": { - "line": 160, - "column": 17 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4343, - "end": 4350, - "loc": { - "start": { - "line": 160, - "column": 8 - }, - "end": { - "line": 160, - "column": 15 - } - }, - "object": { - "type": "Identifier", - "start": 4343, - "end": 4346, - "loc": { - "start": { - "line": 160, - "column": 8 - }, - "end": { - "line": 160, - "column": 11 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 4347, - "end": 4350, - "loc": { - "start": { - "line": 160, - "column": 12 - }, - "end": { - "line": 160, - "column": 15 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - } - } - ] - }, - "property": { - "type": "Identifier", - "start": 4370, - "end": 4375, - "loc": { - "start": { - "line": 162, - "column": 7 - }, - "end": { - "line": 162, - "column": 12 - }, - "identifierName": "catch" - }, - "name": "catch" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 4376, - "end": 4439, - "loc": { - "start": { - "line": 162, - "column": 13 - }, - "end": { - "line": 165, - "column": 7 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 4376, - "end": 4379, - "loc": { - "start": { - "line": 162, - "column": 13 - }, - "end": { - "line": 162, - "column": 16 - }, - "identifierName": "err" - }, - "name": "err" - } - ], - "body": { - "type": "BlockStatement", - "start": 4383, - "end": 4439, - "loc": { - "start": { - "line": 162, - "column": 20 - }, - "end": { - "line": 165, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 4393, - "end": 4415, - "loc": { - "start": { - "line": 163, - "column": 8 - }, - "end": { - "line": 163, - "column": 30 - } - }, - "expression": { - "type": "CallExpression", - "start": 4393, - "end": 4414, - "loc": { - "start": { - "line": 163, - "column": 8 - }, - "end": { - "line": 163, - "column": 29 - } - }, - "callee": { - "type": "Identifier", - "start": 4393, - "end": 4401, - "loc": { - "start": { - "line": 163, - "column": 8 - }, - "end": { - "line": 163, - "column": 16 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 4402, - "end": 4413, - "loc": { - "start": { - "line": 163, - "column": 17 - }, - "end": { - "line": 163, - "column": 28 - } - }, - "object": { - "type": "Identifier", - "start": 4402, - "end": 4405, - "loc": { - "start": { - "line": 163, - "column": 17 - }, - "end": { - "line": 163, - "column": 20 - }, - "identifierName": "err" - }, - "name": "err" - }, - "property": { - "type": "Identifier", - "start": 4406, - "end": 4413, - "loc": { - "start": { - "line": 163, - "column": 21 - }, - "end": { - "line": 163, - "column": 28 - }, - "identifierName": "message" - }, - "name": "message" - }, - "computed": false - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 4424, - "end": 4431, - "loc": { - "start": { - "line": 164, - "column": 8 - }, - "end": { - "line": 164, - "column": 15 - } - }, - "argument": null - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Create document group payload\n * @typedef {Object} DocumentGroupCreateParams\n * @property {string} token - your auth token\n * @property {string[]} ids - array of document or template ids for document group creation\n * @property {string} group_name - new name of document group\n ", - "start": 2143, - "end": 2442, - "loc": { - "start": { - "line": 92, - "column": 2 - }, - "end": { - "line": 98, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document group response data\n * @typedef {Object} DocumentGroupCreateResponse\n * @property {string} id - document group unique id\n ", - "start": 2446, - "end": 2601, - "loc": { - "start": { - "line": 100, - "column": 2 - }, - "end": { - "line": 104, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates document group with specified documents or templates.\n * At least one document or template must contain fields. Documents should not be signed, contain epending invites or signature requests.\n * @param {DocumentGroupCreateParams} data - create document group payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupCreateResponse)} [callback] - error first node.js callback\n ", - "start": 2605, - "end": 3020, - "loc": { - "start": { - "line": 106, - "column": 2 - }, - "end": { - "line": 111, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document Group invite email congfigurations\n * @typedef {Object} DocumentGroupInviteEmail\n * @property {string} email - signer's email\n * @property {string} [subject] - subject of invitation email\n * @property {string} [message] - content of invitation email\n * @property {number} [expiration_days] - expiration of invite in days\n * @property {number} [reminder] - number of days in which to remind about invitation via email\n ", - "start": 4450, - "end": 4902, - "loc": { - "start": { - "line": 169, - "column": 2 - }, - "end": { - "line": 177, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group signer's authentication with password config\n * @typedef {Object} DocumentGroupInviteAuthenticationPassword\n * @property {string} type - set `password` to authenticate signer with password\n * @property {string} value - authentication password value\n ", - "start": 4906, - "end": 5190, - "loc": { - "start": { - "line": 179, - "column": 2 - }, - "end": { - "line": 184, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group signer's authentication with phone call config\n * @typedef {Object} DocumentGroupInviteAuthenticationPhoneCall\n * @property {string} type - set `phone` to authenticate signer with phone call\n * @property {string} method - set `phone_call` to authenticate signer with phone call\n * @property {string} phone - phone number\n ", - "start": 5194, - "end": 5552, - "loc": { - "start": { - "line": 186, - "column": 2 - }, - "end": { - "line": 192, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group signer's authentication with phone SMS config\n * @typedef {Object} DocumentGroupInviteAuthenticationPhoneSMS\n * @property {string} type - set `phone` to authenticate signer with phone SMS\n * @property {string} method - set `sms` to authenticate signer with phone SMS\n * @property {string} phone - phone number\n ", - "start": 5556, - "end": 5903, - "loc": { - "start": { - "line": 194, - "column": 2 - }, - "end": { - "line": 200, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite action congfigurations\n * @typedef {Object} DocumentGroupInviteAction\n * @property {string} email - signer's email\n * @property {string} role_name - signer's role name\n * @property {string} action - name of action with document in signing step\n * @property {string} document_id - ID of document in specific signing step\n * @property {string} [allow_reassign] - allow reassigning of signer\n * @property {string} [decline_by_signature] - signer can decline invite\n * @property {DocumentGroupInviteAuthenticationPassword|DocumentGroupInviteAuthenticationPhoneCall|DocumentGroupInviteAuthenticationPhoneSMS} [authentication] - signer's authentication configuration\n ", - "start": 5907, - "end": 6620, - "loc": { - "start": { - "line": 202, - "column": 2 - }, - "end": { - "line": 212, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite step congfigurations\n * @typedef {Object} DocumentGroupInviteStep\n * @property {number} order - an order number of invitation step\n * @property {DocumentGroupInviteEmail[]} [invite_emails] - Document Group invite emails settings\n * @property {DocumentGroupInviteAction[]} invite_actions - Document Group invite actions settings\n ", - "start": 6624, - "end": 6996, - "loc": { - "start": { - "line": 214, - "column": 2 - }, - "end": { - "line": 220, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite completion email configuration\n * @typedef {Object} DocumentGroupInviteCompletionEmailConfig\n * @property {string} email - email for completion (only from the signers and document owner emails)\n * @property {number} disable_document_attachment - disable attachment of signed document group to completion email (values: 0|1)\n ", - "start": 7000, - "end": 7366, - "loc": { - "start": { - "line": 222, - "column": 2 - }, - "end": { - "line": 227, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite settings\n * @typedef {Object} DocumentGroupInviteSettings\n * @property {DocumentGroupInviteStep[]} invite_steps - Document Group invite steps settings\n * @property {DocumentGroupInviteCompletionEmailConfig[]} [completion_emails] - set of completion email configutrations\n ", - "start": 7370, - "end": 7683, - "loc": { - "start": { - "line": 229, - "column": 2 - }, - "end": { - "line": 234, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create Document Group invite payload\n * @typedef {Object} DocumentGroupInviteParams\n * @property {string} id - ID of specific Document Group\n * @property {DocumentGroupInviteSettings} data - Document Group invite settings data\n * @property {string} token - your auth token\n ", - "start": 7687, - "end": 7982, - "loc": { - "start": { - "line": 236, - "column": 2 - }, - "end": { - "line": 242, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document invite response data\n * @typedef {Object} DocumentGroupInviteResponse\n * @property {string} id - ID of created Document Group invitation\n * @property {?string} pending_invite_link - pending invite link\n ", - "start": 7986, - "end": 8224, - "loc": { - "start": { - "line": 244, - "column": 2 - }, - "end": { - "line": 249, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates an invite to sign a document group\n * @param {DocumentGroupInviteParams} data - create Document Group invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupInviteResponse)} [callback] - error first node.js callback\n ", - "start": 8228, - "end": 8491, - "loc": { - "start": { - "line": 251, - "column": 2 - }, - "end": { - "line": 255, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 8494, - "end": 9191, - "loc": { - "start": { - "line": 256, - "column": 2 - }, - "end": { - "line": 288, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8501, - "end": 8507, - "loc": { - "start": { - "line": 256, - "column": 9 - }, - "end": { - "line": 256, - "column": 15 - }, - "identifierName": "invite" - }, - "name": "invite" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 8509, - "end": 8543, - "loc": { - "start": { - "line": 256, - "column": 17 - }, - "end": { - "line": 260, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 8515, - "end": 8517, - "loc": { - "start": { - "line": 257, - "column": 4 - }, - "end": { - "line": 257, - "column": 6 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8515, - "end": 8517, - "loc": { - "start": { - "line": 257, - "column": 4 - }, - "end": { - "line": 257, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 8515, - "end": 8517, - "loc": { - "start": { - "line": 257, - "column": 4 - }, - "end": { - "line": 257, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 8523, - "end": 8527, - "loc": { - "start": { - "line": 258, - "column": 4 - }, - "end": { - "line": 258, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8523, - "end": 8527, - "loc": { - "start": { - "line": 258, - "column": 4 - }, - "end": { - "line": 258, - "column": 8 - }, - "identifierName": "data" - }, - "name": "data" - }, - "value": { - "type": "Identifier", - "start": 8523, - "end": 8527, - "loc": { - "start": { - "line": 258, - "column": 4 - }, - "end": { - "line": 258, - "column": 8 - }, - "identifierName": "data" - }, - "name": "data" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 8533, - "end": 8538, - "loc": { - "start": { - "line": 259, - "column": 4 - }, - "end": { - "line": 259, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8533, - "end": 8538, - "loc": { - "start": { - "line": 259, - "column": 4 - }, - "end": { - "line": 259, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 8533, - "end": 8538, - "loc": { - "start": { - "line": 259, - "column": 4 - }, - "end": { - "line": 259, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 8545, - "end": 8553, - "loc": { - "start": { - "line": 260, - "column": 5 - }, - "end": { - "line": 260, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 8555, - "end": 9191, - "loc": { - "start": { - "line": 260, - "column": 15 - }, - "end": { - "line": 288, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 8561, - "end": 8627, - "loc": { - "start": { - "line": 261, - "column": 4 - }, - "end": { - "line": 264, - "column": 13 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 8567, - "end": 8626, - "loc": { - "start": { - "line": 261, - "column": 10 - }, - "end": { - "line": 264, - "column": 12 - } - }, - "id": { - "type": "ObjectPattern", - "start": 8567, - "end": 8619, - "loc": { - "start": { - "line": 261, - "column": 10 - }, - "end": { - "line": 264, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 8575, - "end": 8587, - "loc": { - "start": { - "line": 262, - "column": 6 - }, - "end": { - "line": 262, - "column": 18 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8575, - "end": 8587, - "loc": { - "start": { - "line": 262, - "column": 6 - }, - "end": { - "line": 262, - "column": 18 - }, - "identifierName": "invite_steps" - }, - "name": "invite_steps" - }, - "value": { - "type": "Identifier", - "start": 8575, - "end": 8587, - "loc": { - "start": { - "line": 262, - "column": 6 - }, - "end": { - "line": 262, - "column": 18 - }, - "identifierName": "invite_steps" - }, - "name": "invite_steps" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 8595, - "end": 8612, - "loc": { - "start": { - "line": 263, - "column": 6 - }, - "end": { - "line": 263, - "column": 23 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8595, - "end": 8612, - "loc": { - "start": { - "line": 263, - "column": 6 - }, - "end": { - "line": 263, - "column": 23 - }, - "identifierName": "completion_emails" - }, - "name": "completion_emails" - }, - "value": { - "type": "Identifier", - "start": 8595, - "end": 8612, - "loc": { - "start": { - "line": 263, - "column": 6 - }, - "end": { - "line": 263, - "column": 23 - }, - "identifierName": "completion_emails" - }, - "name": "completion_emails" - }, - "extra": { - "shorthand": true - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 8622, - "end": 8626, - "loc": { - "start": { - "line": 264, - "column": 8 - }, - "end": { - "line": 264, - "column": 12 - }, - "identifierName": "data" - }, - "name": "data" - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 8633, - "end": 8719, - "loc": { - "start": { - "line": 266, - "column": 4 - }, - "end": { - "line": 269, - "column": 7 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 8639, - "end": 8718, - "loc": { - "start": { - "line": 266, - "column": 10 - }, - "end": { - "line": 269, - "column": 6 - } - }, - "id": { - "type": "Identifier", - "start": 8639, - "end": 8647, - "loc": { - "start": { - "line": 266, - "column": 10 - }, - "end": { - "line": 266, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 8650, - "end": 8718, - "loc": { - "start": { - "line": 266, - "column": 21 - }, - "end": { - "line": 269, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 8650, - "end": 8664, - "loc": { - "start": { - "line": 266, - "column": 21 - }, - "end": { - "line": 266, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 8650, - "end": 8654, - "loc": { - "start": { - "line": 266, - "column": 21 - }, - "end": { - "line": 266, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 8655, - "end": 8664, - "loc": { - "start": { - "line": 266, - "column": 26 - }, - "end": { - "line": 266, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 8665, - "end": 8717, - "loc": { - "start": { - "line": 266, - "column": 36 - }, - "end": { - "line": 269, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 8673, - "end": 8685, - "loc": { - "start": { - "line": 267, - "column": 6 - }, - "end": { - "line": 267, - "column": 18 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8673, - "end": 8685, - "loc": { - "start": { - "line": 267, - "column": 6 - }, - "end": { - "line": 267, - "column": 18 - }, - "identifierName": "invite_steps" - }, - "name": "invite_steps" - }, - "value": { - "type": "Identifier", - "start": 8673, - "end": 8685, - "loc": { - "start": { - "line": 267, - "column": 6 - }, - "end": { - "line": 267, - "column": 18 - }, - "identifierName": "invite_steps" - }, - "name": "invite_steps" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 8693, - "end": 8710, - "loc": { - "start": { - "line": 268, - "column": 6 - }, - "end": { - "line": 268, - "column": 23 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8693, - "end": 8710, - "loc": { - "start": { - "line": 268, - "column": 6 - }, - "end": { - "line": 268, - "column": 23 - }, - "identifierName": "completion_emails" - }, - "name": "completion_emails" - }, - "value": { - "type": "Identifier", - "start": 8693, - "end": 8710, - "loc": { - "start": { - "line": 268, - "column": 6 - }, - "end": { - "line": 268, - "column": 23 - }, - "identifierName": "completion_emails" - }, - "name": "completion_emails" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 8725, - "end": 9146, - "loc": { - "start": { - "line": 271, - "column": 4 - }, - "end": { - "line": 284, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 8731, - "end": 9145, - "loc": { - "start": { - "line": 271, - "column": 10 - }, - "end": { - "line": 284, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 8731, - "end": 8734, - "loc": { - "start": { - "line": 271, - "column": 10 - }, - "end": { - "line": 271, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 8737, - "end": 9145, - "loc": { - "start": { - "line": 271, - "column": 16 - }, - "end": { - "line": 284, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 8737, - "end": 9112, - "loc": { - "start": { - "line": 271, - "column": 16 - }, - "end": { - "line": 284, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 8737, - "end": 9102, - "loc": { - "start": { - "line": 271, - "column": 16 - }, - "end": { - "line": 283, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 8737, - "end": 8757, - "loc": { - "start": { - "line": 271, - "column": 16 - }, - "end": { - "line": 272, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 8737, - "end": 8742, - "loc": { - "start": { - "line": 271, - "column": 16 - }, - "end": { - "line": 271, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 8750, - "end": 8757, - "loc": { - "start": { - "line": 272, - "column": 7 - }, - "end": { - "line": 272, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 8758, - "end": 9074, - "loc": { - "start": { - "line": 272, - "column": 15 - }, - "end": { - "line": 283, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 8758, - "end": 8777, - "loc": { - "start": { - "line": 272, - "column": 15 - }, - "end": { - "line": 272, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 8778, - "end": 9073, - "loc": { - "start": { - "line": 272, - "column": 35 - }, - "end": { - "line": 283, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 8788, - "end": 8802, - "loc": { - "start": { - "line": 273, - "column": 8 - }, - "end": { - "line": 273, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 8788, - "end": 8794, - "loc": { - "start": { - "line": 273, - "column": 8 - }, - "end": { - "line": 273, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 8796, - "end": 8802, - "loc": { - "start": { - "line": 273, - "column": 16 - }, - "end": { - "line": 273, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 8812, - "end": 8852, - "loc": { - "start": { - "line": 274, - "column": 8 - }, - "end": { - "line": 274, - "column": 48 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 8812, - "end": 8816, - "loc": { - "start": { - "line": 274, - "column": 8 - }, - "end": { - "line": 274, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 8818, - "end": 8852, - "loc": { - "start": { - "line": 274, - "column": 14 - }, - "end": { - "line": 274, - "column": 48 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 8836, - "end": 8838, - "loc": { - "start": { - "line": 274, - "column": 32 - }, - "end": { - "line": 274, - "column": 34 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 8819, - "end": 8834, - "loc": { - "start": { - "line": 274, - "column": 15 - }, - "end": { - "line": 274, - "column": 30 - } - }, - "value": { - "raw": "/documentgroup/", - "cooked": "/documentgroup/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 8839, - "end": 8851, - "loc": { - "start": { - "line": 274, - "column": 35 - }, - "end": { - "line": 274, - "column": 47 - } - }, - "value": { - "raw": "/groupinvite", - "cooked": "/groupinvite" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 8862, - "end": 8931, - "loc": { - "start": { - "line": 275, - "column": 8 - }, - "end": { - "line": 278, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 8862, - "end": 8875, - "loc": { - "start": { - "line": 275, - "column": 8 - }, - "end": { - "line": 275, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 8877, - "end": 8931, - "loc": { - "start": { - "line": 275, - "column": 23 - }, - "end": { - "line": 278, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 8889, - "end": 8903, - "loc": { - "start": { - "line": 276, - "column": 10 - }, - "end": { - "line": 276, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 8889, - "end": 8893, - "loc": { - "start": { - "line": 276, - "column": 10 - }, - "end": { - "line": 276, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 8895, - "end": 8903, - "loc": { - "start": { - "line": 276, - "column": 16 - }, - "end": { - "line": 276, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 8915, - "end": 8920, - "loc": { - "start": { - "line": 277, - "column": 10 - }, - "end": { - "line": 277, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8915, - "end": 8920, - "loc": { - "start": { - "line": 277, - "column": 10 - }, - "end": { - "line": 277, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 8915, - "end": 8920, - "loc": { - "start": { - "line": 277, - "column": 10 - }, - "end": { - "line": 277, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 8941, - "end": 9064, - "loc": { - "start": { - "line": 279, - "column": 8 - }, - "end": { - "line": 282, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 8941, - "end": 8948, - "loc": { - "start": { - "line": 279, - "column": 8 - }, - "end": { - "line": 279, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 8950, - "end": 9064, - "loc": { - "start": { - "line": 279, - "column": 17 - }, - "end": { - "line": 282, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 8962, - "end": 8996, - "loc": { - "start": { - "line": 280, - "column": 10 - }, - "end": { - "line": 280, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 8962, - "end": 8976, - "loc": { - "start": { - "line": 280, - "column": 10 - }, - "end": { - "line": 280, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 8978, - "end": 8996, - "loc": { - "start": { - "line": 280, - "column": 26 - }, - "end": { - "line": 280, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 9008, - "end": 9053, - "loc": { - "start": { - "line": 281, - "column": 10 - }, - "end": { - "line": 281, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 9008, - "end": 9024, - "loc": { - "start": { - "line": 281, - "column": 10 - }, - "end": { - "line": 281, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 9026, - "end": 9053, - "loc": { - "start": { - "line": 281, - "column": 28 - }, - "end": { - "line": 281, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9026, - "end": 9043, - "loc": { - "start": { - "line": 281, - "column": 28 - }, - "end": { - "line": 281, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 9026, - "end": 9032, - "loc": { - "start": { - "line": 281, - "column": 28 - }, - "end": { - "line": 281, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 9033, - "end": 9043, - "loc": { - "start": { - "line": 281, - "column": 35 - }, - "end": { - "line": 281, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 9044, - "end": 9052, - "loc": { - "start": { - "line": 281, - "column": 46 - }, - "end": { - "line": 281, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 9076, - "end": 9101, - "loc": { - "start": { - "line": 283, - "column": 10 - }, - "end": { - "line": 283, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 9076, - "end": 9091, - "loc": { - "start": { - "line": 283, - "column": 10 - }, - "end": { - "line": 283, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 9092, - "end": 9100, - "loc": { - "start": { - "line": 283, - "column": 26 - }, - "end": { - "line": 283, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 9110, - "end": 9112, - "loc": { - "start": { - "line": 284, - "column": 7 - }, - "end": { - "line": 284, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 9113, - "end": 9120, - "loc": { - "start": { - "line": 284, - "column": 10 - }, - "end": { - "line": 284, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 9122, - "end": 9144, - "loc": { - "start": { - "line": 284, - "column": 19 - }, - "end": { - "line": 284, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 9122, - "end": 9134, - "loc": { - "start": { - "line": 284, - "column": 19 - }, - "end": { - "line": 284, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 9135, - "end": 9143, - "loc": { - "start": { - "line": 284, - "column": 32 - }, - "end": { - "line": 284, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 9152, - "end": 9172, - "loc": { - "start": { - "line": 286, - "column": 4 - }, - "end": { - "line": 286, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 9152, - "end": 9171, - "loc": { - "start": { - "line": 286, - "column": 4 - }, - "end": { - "line": 286, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9152, - "end": 9161, - "loc": { - "start": { - "line": 286, - "column": 4 - }, - "end": { - "line": 286, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 9152, - "end": 9155, - "loc": { - "start": { - "line": 286, - "column": 4 - }, - "end": { - "line": 286, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 9156, - "end": 9161, - "loc": { - "start": { - "line": 286, - "column": 8 - }, - "end": { - "line": 286, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 9162, - "end": 9170, - "loc": { - "start": { - "line": 286, - "column": 14 - }, - "end": { - "line": 286, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 9177, - "end": 9187, - "loc": { - "start": { - "line": 287, - "column": 4 - }, - "end": { - "line": 287, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 9177, - "end": 9186, - "loc": { - "start": { - "line": 287, - "column": 4 - }, - "end": { - "line": 287, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9177, - "end": 9184, - "loc": { - "start": { - "line": 287, - "column": 4 - }, - "end": { - "line": 287, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 9177, - "end": 9180, - "loc": { - "start": { - "line": 287, - "column": 4 - }, - "end": { - "line": 287, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 9181, - "end": 9184, - "loc": { - "start": { - "line": 287, - "column": 8 - }, - "end": { - "line": 287, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document Group invite email congfigurations\n * @typedef {Object} DocumentGroupInviteEmail\n * @property {string} email - signer's email\n * @property {string} [subject] - subject of invitation email\n * @property {string} [message] - content of invitation email\n * @property {number} [expiration_days] - expiration of invite in days\n * @property {number} [reminder] - number of days in which to remind about invitation via email\n ", - "start": 4450, - "end": 4902, - "loc": { - "start": { - "line": 169, - "column": 2 - }, - "end": { - "line": 177, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group signer's authentication with password config\n * @typedef {Object} DocumentGroupInviteAuthenticationPassword\n * @property {string} type - set `password` to authenticate signer with password\n * @property {string} value - authentication password value\n ", - "start": 4906, - "end": 5190, - "loc": { - "start": { - "line": 179, - "column": 2 - }, - "end": { - "line": 184, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group signer's authentication with phone call config\n * @typedef {Object} DocumentGroupInviteAuthenticationPhoneCall\n * @property {string} type - set `phone` to authenticate signer with phone call\n * @property {string} method - set `phone_call` to authenticate signer with phone call\n * @property {string} phone - phone number\n ", - "start": 5194, - "end": 5552, - "loc": { - "start": { - "line": 186, - "column": 2 - }, - "end": { - "line": 192, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group signer's authentication with phone SMS config\n * @typedef {Object} DocumentGroupInviteAuthenticationPhoneSMS\n * @property {string} type - set `phone` to authenticate signer with phone SMS\n * @property {string} method - set `sms` to authenticate signer with phone SMS\n * @property {string} phone - phone number\n ", - "start": 5556, - "end": 5903, - "loc": { - "start": { - "line": 194, - "column": 2 - }, - "end": { - "line": 200, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite action congfigurations\n * @typedef {Object} DocumentGroupInviteAction\n * @property {string} email - signer's email\n * @property {string} role_name - signer's role name\n * @property {string} action - name of action with document in signing step\n * @property {string} document_id - ID of document in specific signing step\n * @property {string} [allow_reassign] - allow reassigning of signer\n * @property {string} [decline_by_signature] - signer can decline invite\n * @property {DocumentGroupInviteAuthenticationPassword|DocumentGroupInviteAuthenticationPhoneCall|DocumentGroupInviteAuthenticationPhoneSMS} [authentication] - signer's authentication configuration\n ", - "start": 5907, - "end": 6620, - "loc": { - "start": { - "line": 202, - "column": 2 - }, - "end": { - "line": 212, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite step congfigurations\n * @typedef {Object} DocumentGroupInviteStep\n * @property {number} order - an order number of invitation step\n * @property {DocumentGroupInviteEmail[]} [invite_emails] - Document Group invite emails settings\n * @property {DocumentGroupInviteAction[]} invite_actions - Document Group invite actions settings\n ", - "start": 6624, - "end": 6996, - "loc": { - "start": { - "line": 214, - "column": 2 - }, - "end": { - "line": 220, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite completion email configuration\n * @typedef {Object} DocumentGroupInviteCompletionEmailConfig\n * @property {string} email - email for completion (only from the signers and document owner emails)\n * @property {number} disable_document_attachment - disable attachment of signed document group to completion email (values: 0|1)\n ", - "start": 7000, - "end": 7366, - "loc": { - "start": { - "line": 222, - "column": 2 - }, - "end": { - "line": 227, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite settings\n * @typedef {Object} DocumentGroupInviteSettings\n * @property {DocumentGroupInviteStep[]} invite_steps - Document Group invite steps settings\n * @property {DocumentGroupInviteCompletionEmailConfig[]} [completion_emails] - set of completion email configutrations\n ", - "start": 7370, - "end": 7683, - "loc": { - "start": { - "line": 229, - "column": 2 - }, - "end": { - "line": 234, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create Document Group invite payload\n * @typedef {Object} DocumentGroupInviteParams\n * @property {string} id - ID of specific Document Group\n * @property {DocumentGroupInviteSettings} data - Document Group invite settings data\n * @property {string} token - your auth token\n ", - "start": 7687, - "end": 7982, - "loc": { - "start": { - "line": 236, - "column": 2 - }, - "end": { - "line": 242, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document invite response data\n * @typedef {Object} DocumentGroupInviteResponse\n * @property {string} id - ID of created Document Group invitation\n * @property {?string} pending_invite_link - pending invite link\n ", - "start": 7986, - "end": 8224, - "loc": { - "start": { - "line": 244, - "column": 2 - }, - "end": { - "line": 249, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates an invite to sign a document group\n * @param {DocumentGroupInviteParams} data - create Document Group invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupInviteResponse)} [callback] - error first node.js callback\n ", - "start": 8228, - "end": 8491, - "loc": { - "start": { - "line": 251, - "column": 2 - }, - "end": { - "line": 255, - "column": 5 - } - } - } - ] - } - ] - }, - "leadingComments": [], - "name": "_", - "trailingComments": [] - }, - { - "type": "Identifier", - "start": 9196, - "end": 9225, - "loc": { - "start": { - "line": 292, - "column": 0 - }, - "end": { - "line": 292, - "column": 29 - } - }, - "declaration": { - "type": "Identifier", - "start": 9211, - "end": 9224, - "loc": { - "start": { - "line": 292, - "column": 15 - }, - "end": { - "line": 292, - "column": 28 - }, - "identifierName": "DocumentGroup" - }, - "name": "DocumentGroup" - }, - "name": "_", - "leadingComments": [], - "trailingComments": [] - }, - { - "type": "ExportDefaultDeclaration", - "start": 9196, - "end": 9225, - "loc": { - "start": { - "line": 292, - "column": 0 - }, - "end": { - "line": 292, - "column": 29 - } - }, - "declaration": { - "type": "ClassDeclaration", - "start": 2118, - "end": 9194, - "loc": { - "start": { - "line": 90, - "column": 0 - }, - "end": { - "line": 290, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 2124, - "end": 2137, - "loc": { - "start": { - "line": 90, - "column": 6 - }, - "end": { - "line": 90, - "column": 19 - }, - "identifierName": "DocumentGroup" - }, - "name": "DocumentGroup", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 2138, - "end": 9194, - "loc": { - "start": { - "line": 90, - "column": 20 - }, - "end": { - "line": 290, - "column": 1 - } - }, - "body": [ - { - "type": "ClassMethod", - "start": 3023, - "end": 4446, - "loc": { - "start": { - "line": 112, - "column": 2 - }, - "end": { - "line": 167, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3030, - "end": 3036, - "loc": { - "start": { - "line": 112, - "column": 9 - }, - "end": { - "line": 112, - "column": 15 - }, - "identifierName": "create" - }, - "name": "create" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 3038, - "end": 3079, - "loc": { - "start": { - "line": 112, - "column": 17 - }, - "end": { - "line": 116, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3044, - "end": 3049, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 113, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3044, - "end": 3049, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 113, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 3044, - "end": 3049, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 113, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3055, - "end": 3058, - "loc": { - "start": { - "line": 114, - "column": 4 - }, - "end": { - "line": 114, - "column": 7 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3055, - "end": 3058, - "loc": { - "start": { - "line": 114, - "column": 4 - }, - "end": { - "line": 114, - "column": 7 - }, - "identifierName": "ids" - }, - "name": "ids" - }, - "value": { - "type": "Identifier", - "start": 3055, - "end": 3058, - "loc": { - "start": { - "line": 114, - "column": 4 - }, - "end": { - "line": 114, - "column": 7 - }, - "identifierName": "ids" - }, - "name": "ids" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3064, - "end": 3074, - "loc": { - "start": { - "line": 115, - "column": 4 - }, - "end": { - "line": 115, - "column": 14 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3064, - "end": 3074, - "loc": { - "start": { - "line": 115, - "column": 4 - }, - "end": { - "line": 115, - "column": 14 - }, - "identifierName": "group_name" - }, - "name": "group_name" - }, - "value": { - "type": "Identifier", - "start": 3064, - "end": 3074, - "loc": { - "start": { - "line": 115, - "column": 4 - }, - "end": { - "line": 115, - "column": 14 - }, - "identifierName": "group_name" - }, - "name": "group_name" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 3081, - "end": 3089, - "loc": { - "start": { - "line": 116, - "column": 5 - }, - "end": { - "line": 116, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 3091, - "end": 4446, - "loc": { - "start": { - "line": 116, - "column": 15 - }, - "end": { - "line": 167, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 3097, - "end": 3675, - "loc": { - "start": { - "line": 117, - "column": 4 - }, - "end": { - "line": 135, - "column": 9 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3103, - "end": 3674, - "loc": { - "start": { - "line": 117, - "column": 10 - }, - "end": { - "line": 135, - "column": 8 - } - }, - "id": { - "type": "Identifier", - "start": 3103, - "end": 3118, - "loc": { - "start": { - "line": 117, - "column": 10 - }, - "end": { - "line": 117, - "column": 25 - }, - "identifierName": "realDocumentIDs" - }, - "name": "realDocumentIDs" - }, - "init": { - "type": "CallExpression", - "start": 3121, - "end": 3674, - "loc": { - "start": { - "line": 117, - "column": 28 - }, - "end": { - "line": 135, - "column": 8 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3121, - "end": 3135, - "loc": { - "start": { - "line": 117, - "column": 28 - }, - "end": { - "line": 118, - "column": 10 - } - }, - "object": { - "type": "Identifier", - "start": 3121, - "end": 3124, - "loc": { - "start": { - "line": 117, - "column": 28 - }, - "end": { - "line": 117, - "column": 31 - }, - "identifierName": "ids" - }, - "name": "ids" - }, - "property": { - "type": "Identifier", - "start": 3132, - "end": 3135, - "loc": { - "start": { - "line": 118, - "column": 7 - }, - "end": { - "line": 118, - "column": 10 - }, - "identifierName": "map" - }, - "name": "map" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 3136, - "end": 3673, - "loc": { - "start": { - "line": 118, - "column": 11 - }, - "end": { - "line": 135, - "column": 7 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 3136, - "end": 3138, - "loc": { - "start": { - "line": 118, - "column": 11 - }, - "end": { - "line": 118, - "column": 13 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "body": { - "type": "BlockStatement", - "start": 3142, - "end": 3673, - "loc": { - "start": { - "line": 118, - "column": 17 - }, - "end": { - "line": 135, - "column": 7 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 3152, - "end": 3665, - "loc": { - "start": { - "line": 119, - "column": 8 - }, - "end": { - "line": 134, - "column": 13 - } - }, - "argument": { - "type": "CallExpression", - "start": 3159, - "end": 3664, - "loc": { - "start": { - "line": 119, - "column": 15 - }, - "end": { - "line": 134, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3159, - "end": 3237, - "loc": { - "start": { - "line": 119, - "column": 15 - }, - "end": { - "line": 123, - "column": 15 - } - }, - "object": { - "type": "CallExpression", - "start": 3159, - "end": 3221, - "loc": { - "start": { - "line": 119, - "column": 15 - }, - "end": { - "line": 122, - "column": 10 - } - }, - "callee": { - "type": "Identifier", - "start": 3159, - "end": 3177, - "loc": { - "start": { - "line": 119, - "column": 15 - }, - "end": { - "line": 119, - "column": 33 - }, - "identifierName": "getDocumentDetails" - }, - "name": "getDocumentDetails" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 3178, - "end": 3220, - "loc": { - "start": { - "line": 119, - "column": 34 - }, - "end": { - "line": 122, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3190, - "end": 3192, - "loc": { - "start": { - "line": 120, - "column": 10 - }, - "end": { - "line": 120, - "column": 12 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3190, - "end": 3192, - "loc": { - "start": { - "line": 120, - "column": 10 - }, - "end": { - "line": 120, - "column": 12 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 3190, - "end": 3192, - "loc": { - "start": { - "line": 120, - "column": 10 - }, - "end": { - "line": 120, - "column": 12 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3204, - "end": 3209, - "loc": { - "start": { - "line": 121, - "column": 10 - }, - "end": { - "line": 121, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3204, - "end": 3209, - "loc": { - "start": { - "line": 121, - "column": 10 - }, - "end": { - "line": 121, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 3204, - "end": 3209, - "loc": { - "start": { - "line": 121, - "column": 10 - }, - "end": { - "line": 121, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 3233, - "end": 3237, - "loc": { - "start": { - "line": 123, - "column": 11 - }, - "end": { - "line": 123, - "column": 15 - }, - "identifierName": "then" - }, - "name": "then" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 3238, - "end": 3663, - "loc": { - "start": { - "line": 123, - "column": 16 - }, - "end": { - "line": 134, - "column": 11 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 3238, - "end": 3246, - "loc": { - "start": { - "line": 123, - "column": 16 - }, - "end": { - "line": 123, - "column": 24 - }, - "identifierName": "document" - }, - "name": "document" - } - ], - "body": { - "type": "BlockStatement", - "start": 3250, - "end": 3663, - "loc": { - "start": { - "line": 123, - "column": 28 - }, - "end": { - "line": 134, - "column": 11 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 3264, - "end": 3651, - "loc": { - "start": { - "line": 124, - "column": 12 - }, - "end": { - "line": 133, - "column": 13 - } - }, - "test": { - "type": "CallExpression", - "start": 3268, - "end": 3288, - "loc": { - "start": { - "line": 124, - "column": 16 - }, - "end": { - "line": 124, - "column": 36 - } - }, - "callee": { - "type": "Identifier", - "start": 3268, - "end": 3278, - "loc": { - "start": { - "line": 124, - "column": 16 - }, - "end": { - "line": 124, - "column": 26 - }, - "identifierName": "isTemplate" - }, - "name": "isTemplate" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3279, - "end": 3287, - "loc": { - "start": { - "line": 124, - "column": 27 - }, - "end": { - "line": 124, - "column": 35 - }, - "identifierName": "document" - }, - "name": "document" - } - ] - }, - "consequent": { - "type": "BlockStatement", - "start": 3290, - "end": 3414, - "loc": { - "start": { - "line": 124, - "column": 38 - }, - "end": { - "line": 129, - "column": 13 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 3306, - "end": 3400, - "loc": { - "start": { - "line": 125, - "column": 14 - }, - "end": { - "line": 128, - "column": 17 - } - }, - "argument": { - "type": "CallExpression", - "start": 3313, - "end": 3399, - "loc": { - "start": { - "line": 125, - "column": 21 - }, - "end": { - "line": 128, - "column": 16 - } - }, - "callee": { - "type": "Identifier", - "start": 3313, - "end": 3337, - "loc": { - "start": { - "line": 125, - "column": 21 - }, - "end": { - "line": 125, - "column": 45 - }, - "identifierName": "makeDocumentFromTemplate" - }, - "name": "makeDocumentFromTemplate" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 3338, - "end": 3398, - "loc": { - "start": { - "line": 125, - "column": 46 - }, - "end": { - "line": 128, - "column": 15 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3356, - "end": 3358, - "loc": { - "start": { - "line": 126, - "column": 16 - }, - "end": { - "line": 126, - "column": 18 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3356, - "end": 3358, - "loc": { - "start": { - "line": 126, - "column": 16 - }, - "end": { - "line": 126, - "column": 18 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 3356, - "end": 3358, - "loc": { - "start": { - "line": 126, - "column": 16 - }, - "end": { - "line": 126, - "column": 18 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3376, - "end": 3381, - "loc": { - "start": { - "line": 127, - "column": 16 - }, - "end": { - "line": 127, - "column": 21 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3376, - "end": 3381, - "loc": { - "start": { - "line": 127, - "column": 16 - }, - "end": { - "line": 127, - "column": 21 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 3376, - "end": 3381, - "loc": { - "start": { - "line": 127, - "column": 16 - }, - "end": { - "line": 127, - "column": 21 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "directives": [] - }, - "alternate": { - "type": "IfStatement", - "start": 3420, - "end": 3651, - "loc": { - "start": { - "line": 129, - "column": 19 - }, - "end": { - "line": 133, - "column": 13 - } - }, - "test": { - "type": "CallExpression", - "start": 3424, - "end": 3459, - "loc": { - "start": { - "line": 129, - "column": 23 - }, - "end": { - "line": 129, - "column": 58 - } - }, - "callee": { - "type": "Identifier", - "start": 3424, - "end": 3449, - "loc": { - "start": { - "line": 129, - "column": 23 - }, - "end": { - "line": 129, - "column": 48 - }, - "identifierName": "canBeAddedToDocumentGroup" - }, - "name": "canBeAddedToDocumentGroup" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3450, - "end": 3458, - "loc": { - "start": { - "line": 129, - "column": 49 - }, - "end": { - "line": 129, - "column": 57 - }, - "identifierName": "document" - }, - "name": "document" - } - ] - }, - "consequent": { - "type": "BlockStatement", - "start": 3461, - "end": 3501, - "loc": { - "start": { - "line": 129, - "column": 60 - }, - "end": { - "line": 131, - "column": 13 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 3477, - "end": 3487, - "loc": { - "start": { - "line": 130, - "column": 14 - }, - "end": { - "line": 130, - "column": 24 - } - }, - "argument": { - "type": "Identifier", - "start": 3484, - "end": 3486, - "loc": { - "start": { - "line": 130, - "column": 21 - }, - "end": { - "line": 130, - "column": 23 - }, - "identifierName": "id" - }, - "name": "id" - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 3507, - "end": 3651, - "loc": { - "start": { - "line": 131, - "column": 19 - }, - "end": { - "line": 133, - "column": 13 - } - }, - "body": [ - { - "type": "ThrowStatement", - "start": 3523, - "end": 3637, - "loc": { - "start": { - "line": 132, - "column": 14 - }, - "end": { - "line": 132, - "column": 128 - } - }, - "argument": { - "type": "NewExpression", - "start": 3529, - "end": 3636, - "loc": { - "start": { - "line": 132, - "column": 20 - }, - "end": { - "line": 132, - "column": 127 - } - }, - "callee": { - "type": "Identifier", - "start": 3533, - "end": 3538, - "loc": { - "start": { - "line": 132, - "column": 24 - }, - "end": { - "line": 132, - "column": 29 - }, - "identifierName": "Error" - }, - "name": "Error" - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 3539, - "end": 3635, - "loc": { - "start": { - "line": 132, - "column": 30 - }, - "end": { - "line": 132, - "column": 126 - } - }, - "extra": { - "rawValue": "Document in the group must have no pending invites, signature requests or completed signatures", - "raw": "'Document in the group must have no pending invites, signature requests or completed signatures'" - }, - "value": "Document in the group must have no pending invites, signature requests or completed signatures" - } - ] - } - } - ], - "directives": [] - } - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 3681, - "end": 4441, - "loc": { - "start": { - "line": 137, - "column": 4 - }, - "end": { - "line": 165, - "column": 9 - } - }, - "expression": { - "type": "CallExpression", - "start": 3681, - "end": 4440, - "loc": { - "start": { - "line": 137, - "column": 4 - }, - "end": { - "line": 165, - "column": 8 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3681, - "end": 4375, - "loc": { - "start": { - "line": 137, - "column": 4 - }, - "end": { - "line": 162, - "column": 12 - } - }, - "object": { - "type": "CallExpression", - "start": 3681, - "end": 4362, - "loc": { - "start": { - "line": 137, - "column": 4 - }, - "end": { - "line": 161, - "column": 8 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3681, - "end": 3721, - "loc": { - "start": { - "line": 137, - "column": 4 - }, - "end": { - "line": 138, - "column": 11 - } - }, - "object": { - "type": "CallExpression", - "start": 3681, - "end": 3709, - "loc": { - "start": { - "line": 137, - "column": 4 - }, - "end": { - "line": 137, - "column": 32 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3681, - "end": 3692, - "loc": { - "start": { - "line": 137, - "column": 4 - }, - "end": { - "line": 137, - "column": 15 - } - }, - "object": { - "type": "Identifier", - "start": 3681, - "end": 3688, - "loc": { - "start": { - "line": 137, - "column": 4 - }, - "end": { - "line": 137, - "column": 11 - }, - "identifierName": "Promise" - }, - "name": "Promise" - }, - "property": { - "type": "Identifier", - "start": 3689, - "end": 3692, - "loc": { - "start": { - "line": 137, - "column": 12 - }, - "end": { - "line": 137, - "column": 15 - }, - "identifierName": "all" - }, - "name": "all" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 3693, - "end": 3708, - "loc": { - "start": { - "line": 137, - "column": 16 - }, - "end": { - "line": 137, - "column": 31 - }, - "identifierName": "realDocumentIDs" - }, - "name": "realDocumentIDs" - } - ] - }, - "property": { - "type": "Identifier", - "start": 3717, - "end": 3721, - "loc": { - "start": { - "line": 138, - "column": 7 - }, - "end": { - "line": 138, - "column": 11 - }, - "identifierName": "then" - }, - "name": "then" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 3722, - "end": 4361, - "loc": { - "start": { - "line": 138, - "column": 12 - }, - "end": { - "line": 161, - "column": 7 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 3722, - "end": 3734, - "loc": { - "start": { - "line": 138, - "column": 12 - }, - "end": { - "line": 138, - "column": 24 - }, - "identifierName": "document_ids" - }, - "name": "document_ids" - } - ], - "body": { - "type": "BlockStatement", - "start": 3738, - "end": 4361, - "loc": { - "start": { - "line": 138, - "column": 28 - }, - "end": { - "line": 161, - "column": 7 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 3748, - "end": 3839, - "loc": { - "start": { - "line": 139, - "column": 8 - }, - "end": { - "line": 142, - "column": 11 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3754, - "end": 3838, - "loc": { - "start": { - "line": 139, - "column": 14 - }, - "end": { - "line": 142, - "column": 10 - } - }, - "id": { - "type": "Identifier", - "start": 3754, - "end": 3762, - "loc": { - "start": { - "line": 139, - "column": 14 - }, - "end": { - "line": 139, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 3765, - "end": 3838, - "loc": { - "start": { - "line": 139, - "column": 25 - }, - "end": { - "line": 142, - "column": 10 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3765, - "end": 3779, - "loc": { - "start": { - "line": 139, - "column": 25 - }, - "end": { - "line": 139, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 3765, - "end": 3769, - "loc": { - "start": { - "line": 139, - "column": 25 - }, - "end": { - "line": 139, - "column": 29 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 3770, - "end": 3779, - "loc": { - "start": { - "line": 139, - "column": 30 - }, - "end": { - "line": 139, - "column": 39 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 3780, - "end": 3837, - "loc": { - "start": { - "line": 139, - "column": 40 - }, - "end": { - "line": 142, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3792, - "end": 3804, - "loc": { - "start": { - "line": 140, - "column": 10 - }, - "end": { - "line": 140, - "column": 22 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3792, - "end": 3804, - "loc": { - "start": { - "line": 140, - "column": 10 - }, - "end": { - "line": 140, - "column": 22 - }, - "identifierName": "document_ids" - }, - "name": "document_ids" - }, - "value": { - "type": "Identifier", - "start": 3792, - "end": 3804, - "loc": { - "start": { - "line": 140, - "column": 10 - }, - "end": { - "line": 140, - "column": 22 - }, - "identifierName": "document_ids" - }, - "name": "document_ids" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3816, - "end": 3826, - "loc": { - "start": { - "line": 141, - "column": 10 - }, - "end": { - "line": 141, - "column": 20 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3816, - "end": 3826, - "loc": { - "start": { - "line": 141, - "column": 10 - }, - "end": { - "line": 141, - "column": 20 - }, - "identifierName": "group_name" - }, - "name": "group_name" - }, - "value": { - "type": "Identifier", - "start": 3816, - "end": 3826, - "loc": { - "start": { - "line": 141, - "column": 10 - }, - "end": { - "line": 141, - "column": 20 - }, - "identifierName": "group_name" - }, - "name": "group_name" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 3849, - "end": 4304, - "loc": { - "start": { - "line": 144, - "column": 8 - }, - "end": { - "line": 157, - "column": 47 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3855, - "end": 4303, - "loc": { - "start": { - "line": 144, - "column": 14 - }, - "end": { - "line": 157, - "column": 46 - } - }, - "id": { - "type": "Identifier", - "start": 3855, - "end": 3858, - "loc": { - "start": { - "line": 144, - "column": 14 - }, - "end": { - "line": 144, - "column": 17 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 3861, - "end": 4303, - "loc": { - "start": { - "line": 144, - "column": 20 - }, - "end": { - "line": 157, - "column": 46 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3861, - "end": 4270, - "loc": { - "start": { - "line": 144, - "column": 20 - }, - "end": { - "line": 157, - "column": 13 - } - }, - "object": { - "type": "CallExpression", - "start": 3861, - "end": 4256, - "loc": { - "start": { - "line": 144, - "column": 20 - }, - "end": { - "line": 156, - "column": 40 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3861, - "end": 3885, - "loc": { - "start": { - "line": 144, - "column": 20 - }, - "end": { - "line": 145, - "column": 18 - } - }, - "object": { - "type": "Identifier", - "start": 3861, - "end": 3866, - "loc": { - "start": { - "line": 144, - "column": 20 - }, - "end": { - "line": 144, - "column": 25 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 3878, - "end": 3885, - "loc": { - "start": { - "line": 145, - "column": 11 - }, - "end": { - "line": 145, - "column": 18 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 3886, - "end": 4228, - "loc": { - "start": { - "line": 145, - "column": 19 - }, - "end": { - "line": 156, - "column": 12 - } - }, - "callee": { - "type": "Identifier", - "start": 3886, - "end": 3905, - "loc": { - "start": { - "line": 145, - "column": 19 - }, - "end": { - "line": 145, - "column": 38 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 3906, - "end": 4227, - "loc": { - "start": { - "line": 145, - "column": 39 - }, - "end": { - "line": 156, - "column": 11 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3920, - "end": 3934, - "loc": { - "start": { - "line": 146, - "column": 12 - }, - "end": { - "line": 146, - "column": 26 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3920, - "end": 3926, - "loc": { - "start": { - "line": 146, - "column": 12 - }, - "end": { - "line": 146, - "column": 18 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 3928, - "end": 3934, - "loc": { - "start": { - "line": 146, - "column": 20 - }, - "end": { - "line": 146, - "column": 26 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 3948, - "end": 3970, - "loc": { - "start": { - "line": 147, - "column": 12 - }, - "end": { - "line": 147, - "column": 34 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3948, - "end": 3952, - "loc": { - "start": { - "line": 147, - "column": 12 - }, - "end": { - "line": 147, - "column": 16 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 3954, - "end": 3970, - "loc": { - "start": { - "line": 147, - "column": 18 - }, - "end": { - "line": 147, - "column": 34 - } - }, - "extra": { - "rawValue": "/documentgroup", - "raw": "'/documentgroup'" - }, - "value": "/documentgroup" - } - }, - { - "type": "ObjectProperty", - "start": 3984, - "end": 4065, - "loc": { - "start": { - "line": 148, - "column": 12 - }, - "end": { - "line": 151, - "column": 13 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3984, - "end": 3997, - "loc": { - "start": { - "line": 148, - "column": 12 - }, - "end": { - "line": 148, - "column": 25 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 3999, - "end": 4065, - "loc": { - "start": { - "line": 148, - "column": 27 - }, - "end": { - "line": 151, - "column": 13 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4015, - "end": 4029, - "loc": { - "start": { - "line": 149, - "column": 14 - }, - "end": { - "line": 149, - "column": 28 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4015, - "end": 4019, - "loc": { - "start": { - "line": 149, - "column": 14 - }, - "end": { - "line": 149, - "column": 18 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 4021, - "end": 4029, - "loc": { - "start": { - "line": 149, - "column": 20 - }, - "end": { - "line": 149, - "column": 28 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 4045, - "end": 4050, - "loc": { - "start": { - "line": 150, - "column": 14 - }, - "end": { - "line": 150, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 4045, - "end": 4050, - "loc": { - "start": { - "line": 150, - "column": 14 - }, - "end": { - "line": 150, - "column": 19 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 4045, - "end": 4050, - "loc": { - "start": { - "line": 150, - "column": 14 - }, - "end": { - "line": 150, - "column": 19 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 4079, - "end": 4214, - "loc": { - "start": { - "line": 152, - "column": 12 - }, - "end": { - "line": 155, - "column": 13 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4079, - "end": 4086, - "loc": { - "start": { - "line": 152, - "column": 12 - }, - "end": { - "line": 152, - "column": 19 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 4088, - "end": 4214, - "loc": { - "start": { - "line": 152, - "column": 21 - }, - "end": { - "line": 155, - "column": 13 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4104, - "end": 4138, - "loc": { - "start": { - "line": 153, - "column": 14 - }, - "end": { - "line": 153, - "column": 48 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 4104, - "end": 4118, - "loc": { - "start": { - "line": 153, - "column": 14 - }, - "end": { - "line": 153, - "column": 28 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 4120, - "end": 4138, - "loc": { - "start": { - "line": 153, - "column": 30 - }, - "end": { - "line": 153, - "column": 48 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 4154, - "end": 4199, - "loc": { - "start": { - "line": 154, - "column": 14 - }, - "end": { - "line": 154, - "column": 59 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 4154, - "end": 4170, - "loc": { - "start": { - "line": 154, - "column": 14 - }, - "end": { - "line": 154, - "column": 30 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 4172, - "end": 4199, - "loc": { - "start": { - "line": 154, - "column": 32 - }, - "end": { - "line": 154, - "column": 59 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4172, - "end": 4189, - "loc": { - "start": { - "line": 154, - "column": 32 - }, - "end": { - "line": 154, - "column": 49 - } - }, - "object": { - "type": "Identifier", - "start": 4172, - "end": 4178, - "loc": { - "start": { - "line": 154, - "column": 32 - }, - "end": { - "line": 154, - "column": 38 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 4179, - "end": 4189, - "loc": { - "start": { - "line": 154, - "column": 39 - }, - "end": { - "line": 154, - "column": 49 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 4190, - "end": 4198, - "loc": { - "start": { - "line": 154, - "column": 50 - }, - "end": { - "line": 154, - "column": 58 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 4230, - "end": 4255, - "loc": { - "start": { - "line": 156, - "column": 14 - }, - "end": { - "line": 156, - "column": 39 - } - }, - "callee": { - "type": "Identifier", - "start": 4230, - "end": 4245, - "loc": { - "start": { - "line": 156, - "column": 14 - }, - "end": { - "line": 156, - "column": 29 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 4246, - "end": 4254, - "loc": { - "start": { - "line": 156, - "column": 30 - }, - "end": { - "line": 156, - "column": 38 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 4268, - "end": 4270, - "loc": { - "start": { - "line": 157, - "column": 11 - }, - "end": { - "line": 157, - "column": 13 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 4271, - "end": 4278, - "loc": { - "start": { - "line": 157, - "column": 14 - }, - "end": { - "line": 157, - "column": 21 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 4280, - "end": 4302, - "loc": { - "start": { - "line": 157, - "column": 23 - }, - "end": { - "line": 157, - "column": 45 - } - }, - "callee": { - "type": "Identifier", - "start": 4280, - "end": 4292, - "loc": { - "start": { - "line": 157, - "column": 23 - }, - "end": { - "line": 157, - "column": 35 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 4293, - "end": 4301, - "loc": { - "start": { - "line": 157, - "column": 36 - }, - "end": { - "line": 157, - "column": 44 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 4314, - "end": 4334, - "loc": { - "start": { - "line": 159, - "column": 8 - }, - "end": { - "line": 159, - "column": 28 - } - }, - "expression": { - "type": "CallExpression", - "start": 4314, - "end": 4333, - "loc": { - "start": { - "line": 159, - "column": 8 - }, - "end": { - "line": 159, - "column": 27 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4314, - "end": 4323, - "loc": { - "start": { - "line": 159, - "column": 8 - }, - "end": { - "line": 159, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 4314, - "end": 4317, - "loc": { - "start": { - "line": 159, - "column": 8 - }, - "end": { - "line": 159, - "column": 11 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 4318, - "end": 4323, - "loc": { - "start": { - "line": 159, - "column": 12 - }, - "end": { - "line": 159, - "column": 17 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 4324, - "end": 4332, - "loc": { - "start": { - "line": 159, - "column": 18 - }, - "end": { - "line": 159, - "column": 26 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 4343, - "end": 4353, - "loc": { - "start": { - "line": 160, - "column": 8 - }, - "end": { - "line": 160, - "column": 18 - } - }, - "expression": { - "type": "CallExpression", - "start": 4343, - "end": 4352, - "loc": { - "start": { - "line": 160, - "column": 8 - }, - "end": { - "line": 160, - "column": 17 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4343, - "end": 4350, - "loc": { - "start": { - "line": 160, - "column": 8 - }, - "end": { - "line": 160, - "column": 15 - } - }, - "object": { - "type": "Identifier", - "start": 4343, - "end": 4346, - "loc": { - "start": { - "line": 160, - "column": 8 - }, - "end": { - "line": 160, - "column": 11 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 4347, - "end": 4350, - "loc": { - "start": { - "line": 160, - "column": 12 - }, - "end": { - "line": 160, - "column": 15 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - } - } - ] - }, - "property": { - "type": "Identifier", - "start": 4370, - "end": 4375, - "loc": { - "start": { - "line": 162, - "column": 7 - }, - "end": { - "line": 162, - "column": 12 - }, - "identifierName": "catch" - }, - "name": "catch" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 4376, - "end": 4439, - "loc": { - "start": { - "line": 162, - "column": 13 - }, - "end": { - "line": 165, - "column": 7 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 4376, - "end": 4379, - "loc": { - "start": { - "line": 162, - "column": 13 - }, - "end": { - "line": 162, - "column": 16 - }, - "identifierName": "err" - }, - "name": "err" - } - ], - "body": { - "type": "BlockStatement", - "start": 4383, - "end": 4439, - "loc": { - "start": { - "line": 162, - "column": 20 - }, - "end": { - "line": 165, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 4393, - "end": 4415, - "loc": { - "start": { - "line": 163, - "column": 8 - }, - "end": { - "line": 163, - "column": 30 - } - }, - "expression": { - "type": "CallExpression", - "start": 4393, - "end": 4414, - "loc": { - "start": { - "line": 163, - "column": 8 - }, - "end": { - "line": 163, - "column": 29 - } - }, - "callee": { - "type": "Identifier", - "start": 4393, - "end": 4401, - "loc": { - "start": { - "line": 163, - "column": 8 - }, - "end": { - "line": 163, - "column": 16 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 4402, - "end": 4413, - "loc": { - "start": { - "line": 163, - "column": 17 - }, - "end": { - "line": 163, - "column": 28 - } - }, - "object": { - "type": "Identifier", - "start": 4402, - "end": 4405, - "loc": { - "start": { - "line": 163, - "column": 17 - }, - "end": { - "line": 163, - "column": 20 - }, - "identifierName": "err" - }, - "name": "err" - }, - "property": { - "type": "Identifier", - "start": 4406, - "end": 4413, - "loc": { - "start": { - "line": 163, - "column": 21 - }, - "end": { - "line": 163, - "column": 28 - }, - "identifierName": "message" - }, - "name": "message" - }, - "computed": false - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 4424, - "end": 4431, - "loc": { - "start": { - "line": 164, - "column": 8 - }, - "end": { - "line": 164, - "column": 15 - } - }, - "argument": null - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Create document group payload\n * @typedef {Object} DocumentGroupCreateParams\n * @property {string} token - your auth token\n * @property {string[]} ids - array of document or template ids for document group creation\n * @property {string} group_name - new name of document group\n ", - "start": 2143, - "end": 2442, - "loc": { - "start": { - "line": 92, - "column": 2 - }, - "end": { - "line": 98, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document group response data\n * @typedef {Object} DocumentGroupCreateResponse\n * @property {string} id - document group unique id\n ", - "start": 2446, - "end": 2601, - "loc": { - "start": { - "line": 100, - "column": 2 - }, - "end": { - "line": 104, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates document group with specified documents or templates.\n * At least one document or template must contain fields. Documents should not be signed, contain epending invites or signature requests.\n * @param {DocumentGroupCreateParams} data - create document group payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupCreateResponse)} [callback] - error first node.js callback\n ", - "start": 2605, - "end": 3020, - "loc": { - "start": { - "line": 106, - "column": 2 - }, - "end": { - "line": 111, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document Group invite email congfigurations\n * @typedef {Object} DocumentGroupInviteEmail\n * @property {string} email - signer's email\n * @property {string} [subject] - subject of invitation email\n * @property {string} [message] - content of invitation email\n * @property {number} [expiration_days] - expiration of invite in days\n * @property {number} [reminder] - number of days in which to remind about invitation via email\n ", - "start": 4450, - "end": 4902, - "loc": { - "start": { - "line": 169, - "column": 2 - }, - "end": { - "line": 177, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group signer's authentication with password config\n * @typedef {Object} DocumentGroupInviteAuthenticationPassword\n * @property {string} type - set `password` to authenticate signer with password\n * @property {string} value - authentication password value\n ", - "start": 4906, - "end": 5190, - "loc": { - "start": { - "line": 179, - "column": 2 - }, - "end": { - "line": 184, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group signer's authentication with phone call config\n * @typedef {Object} DocumentGroupInviteAuthenticationPhoneCall\n * @property {string} type - set `phone` to authenticate signer with phone call\n * @property {string} method - set `phone_call` to authenticate signer with phone call\n * @property {string} phone - phone number\n ", - "start": 5194, - "end": 5552, - "loc": { - "start": { - "line": 186, - "column": 2 - }, - "end": { - "line": 192, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group signer's authentication with phone SMS config\n * @typedef {Object} DocumentGroupInviteAuthenticationPhoneSMS\n * @property {string} type - set `phone` to authenticate signer with phone SMS\n * @property {string} method - set `sms` to authenticate signer with phone SMS\n * @property {string} phone - phone number\n ", - "start": 5556, - "end": 5903, - "loc": { - "start": { - "line": 194, - "column": 2 - }, - "end": { - "line": 200, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite action congfigurations\n * @typedef {Object} DocumentGroupInviteAction\n * @property {string} email - signer's email\n * @property {string} role_name - signer's role name\n * @property {string} action - name of action with document in signing step\n * @property {string} document_id - ID of document in specific signing step\n * @property {string} [allow_reassign] - allow reassigning of signer\n * @property {string} [decline_by_signature] - signer can decline invite\n * @property {DocumentGroupInviteAuthenticationPassword|DocumentGroupInviteAuthenticationPhoneCall|DocumentGroupInviteAuthenticationPhoneSMS} [authentication] - signer's authentication configuration\n ", - "start": 5907, - "end": 6620, - "loc": { - "start": { - "line": 202, - "column": 2 - }, - "end": { - "line": 212, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite step congfigurations\n * @typedef {Object} DocumentGroupInviteStep\n * @property {number} order - an order number of invitation step\n * @property {DocumentGroupInviteEmail[]} [invite_emails] - Document Group invite emails settings\n * @property {DocumentGroupInviteAction[]} invite_actions - Document Group invite actions settings\n ", - "start": 6624, - "end": 6996, - "loc": { - "start": { - "line": 214, - "column": 2 - }, - "end": { - "line": 220, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite completion email configuration\n * @typedef {Object} DocumentGroupInviteCompletionEmailConfig\n * @property {string} email - email for completion (only from the signers and document owner emails)\n * @property {number} disable_document_attachment - disable attachment of signed document group to completion email (values: 0|1)\n ", - "start": 7000, - "end": 7366, - "loc": { - "start": { - "line": 222, - "column": 2 - }, - "end": { - "line": 227, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite settings\n * @typedef {Object} DocumentGroupInviteSettings\n * @property {DocumentGroupInviteStep[]} invite_steps - Document Group invite steps settings\n * @property {DocumentGroupInviteCompletionEmailConfig[]} [completion_emails] - set of completion email configutrations\n ", - "start": 7370, - "end": 7683, - "loc": { - "start": { - "line": 229, - "column": 2 - }, - "end": { - "line": 234, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create Document Group invite payload\n * @typedef {Object} DocumentGroupInviteParams\n * @property {string} id - ID of specific Document Group\n * @property {DocumentGroupInviteSettings} data - Document Group invite settings data\n * @property {string} token - your auth token\n ", - "start": 7687, - "end": 7982, - "loc": { - "start": { - "line": 236, - "column": 2 - }, - "end": { - "line": 242, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document invite response data\n * @typedef {Object} DocumentGroupInviteResponse\n * @property {string} id - ID of created Document Group invitation\n * @property {?string} pending_invite_link - pending invite link\n ", - "start": 7986, - "end": 8224, - "loc": { - "start": { - "line": 244, - "column": 2 - }, - "end": { - "line": 249, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates an invite to sign a document group\n * @param {DocumentGroupInviteParams} data - create Document Group invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupInviteResponse)} [callback] - error first node.js callback\n ", - "start": 8228, - "end": 8491, - "loc": { - "start": { - "line": 251, - "column": 2 - }, - "end": { - "line": 255, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 8494, - "end": 9191, - "loc": { - "start": { - "line": 256, - "column": 2 - }, - "end": { - "line": 288, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8501, - "end": 8507, - "loc": { - "start": { - "line": 256, - "column": 9 - }, - "end": { - "line": 256, - "column": 15 - }, - "identifierName": "invite" - }, - "name": "invite" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 8509, - "end": 8543, - "loc": { - "start": { - "line": 256, - "column": 17 - }, - "end": { - "line": 260, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 8515, - "end": 8517, - "loc": { - "start": { - "line": 257, - "column": 4 - }, - "end": { - "line": 257, - "column": 6 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8515, - "end": 8517, - "loc": { - "start": { - "line": 257, - "column": 4 - }, - "end": { - "line": 257, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 8515, - "end": 8517, - "loc": { - "start": { - "line": 257, - "column": 4 - }, - "end": { - "line": 257, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 8523, - "end": 8527, - "loc": { - "start": { - "line": 258, - "column": 4 - }, - "end": { - "line": 258, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8523, - "end": 8527, - "loc": { - "start": { - "line": 258, - "column": 4 - }, - "end": { - "line": 258, - "column": 8 - }, - "identifierName": "data" - }, - "name": "data" - }, - "value": { - "type": "Identifier", - "start": 8523, - "end": 8527, - "loc": { - "start": { - "line": 258, - "column": 4 - }, - "end": { - "line": 258, - "column": 8 - }, - "identifierName": "data" - }, - "name": "data" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 8533, - "end": 8538, - "loc": { - "start": { - "line": 259, - "column": 4 - }, - "end": { - "line": 259, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8533, - "end": 8538, - "loc": { - "start": { - "line": 259, - "column": 4 - }, - "end": { - "line": 259, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 8533, - "end": 8538, - "loc": { - "start": { - "line": 259, - "column": 4 - }, - "end": { - "line": 259, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 8545, - "end": 8553, - "loc": { - "start": { - "line": 260, - "column": 5 - }, - "end": { - "line": 260, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 8555, - "end": 9191, - "loc": { - "start": { - "line": 260, - "column": 15 - }, - "end": { - "line": 288, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 8561, - "end": 8627, - "loc": { - "start": { - "line": 261, - "column": 4 - }, - "end": { - "line": 264, - "column": 13 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 8567, - "end": 8626, - "loc": { - "start": { - "line": 261, - "column": 10 - }, - "end": { - "line": 264, - "column": 12 - } - }, - "id": { - "type": "ObjectPattern", - "start": 8567, - "end": 8619, - "loc": { - "start": { - "line": 261, - "column": 10 - }, - "end": { - "line": 264, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 8575, - "end": 8587, - "loc": { - "start": { - "line": 262, - "column": 6 - }, - "end": { - "line": 262, - "column": 18 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8575, - "end": 8587, - "loc": { - "start": { - "line": 262, - "column": 6 - }, - "end": { - "line": 262, - "column": 18 - }, - "identifierName": "invite_steps" - }, - "name": "invite_steps" - }, - "value": { - "type": "Identifier", - "start": 8575, - "end": 8587, - "loc": { - "start": { - "line": 262, - "column": 6 - }, - "end": { - "line": 262, - "column": 18 - }, - "identifierName": "invite_steps" - }, - "name": "invite_steps" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 8595, - "end": 8612, - "loc": { - "start": { - "line": 263, - "column": 6 - }, - "end": { - "line": 263, - "column": 23 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8595, - "end": 8612, - "loc": { - "start": { - "line": 263, - "column": 6 - }, - "end": { - "line": 263, - "column": 23 - }, - "identifierName": "completion_emails" - }, - "name": "completion_emails" - }, - "value": { - "type": "Identifier", - "start": 8595, - "end": 8612, - "loc": { - "start": { - "line": 263, - "column": 6 - }, - "end": { - "line": 263, - "column": 23 - }, - "identifierName": "completion_emails" - }, - "name": "completion_emails" - }, - "extra": { - "shorthand": true - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 8622, - "end": 8626, - "loc": { - "start": { - "line": 264, - "column": 8 - }, - "end": { - "line": 264, - "column": 12 - }, - "identifierName": "data" - }, - "name": "data" - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 8633, - "end": 8719, - "loc": { - "start": { - "line": 266, - "column": 4 - }, - "end": { - "line": 269, - "column": 7 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 8639, - "end": 8718, - "loc": { - "start": { - "line": 266, - "column": 10 - }, - "end": { - "line": 269, - "column": 6 - } - }, - "id": { - "type": "Identifier", - "start": 8639, - "end": 8647, - "loc": { - "start": { - "line": 266, - "column": 10 - }, - "end": { - "line": 266, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 8650, - "end": 8718, - "loc": { - "start": { - "line": 266, - "column": 21 - }, - "end": { - "line": 269, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 8650, - "end": 8664, - "loc": { - "start": { - "line": 266, - "column": 21 - }, - "end": { - "line": 266, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 8650, - "end": 8654, - "loc": { - "start": { - "line": 266, - "column": 21 - }, - "end": { - "line": 266, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 8655, - "end": 8664, - "loc": { - "start": { - "line": 266, - "column": 26 - }, - "end": { - "line": 266, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 8665, - "end": 8717, - "loc": { - "start": { - "line": 266, - "column": 36 - }, - "end": { - "line": 269, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 8673, - "end": 8685, - "loc": { - "start": { - "line": 267, - "column": 6 - }, - "end": { - "line": 267, - "column": 18 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8673, - "end": 8685, - "loc": { - "start": { - "line": 267, - "column": 6 - }, - "end": { - "line": 267, - "column": 18 - }, - "identifierName": "invite_steps" - }, - "name": "invite_steps" - }, - "value": { - "type": "Identifier", - "start": 8673, - "end": 8685, - "loc": { - "start": { - "line": 267, - "column": 6 - }, - "end": { - "line": 267, - "column": 18 - }, - "identifierName": "invite_steps" - }, - "name": "invite_steps" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 8693, - "end": 8710, - "loc": { - "start": { - "line": 268, - "column": 6 - }, - "end": { - "line": 268, - "column": 23 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8693, - "end": 8710, - "loc": { - "start": { - "line": 268, - "column": 6 - }, - "end": { - "line": 268, - "column": 23 - }, - "identifierName": "completion_emails" - }, - "name": "completion_emails" - }, - "value": { - "type": "Identifier", - "start": 8693, - "end": 8710, - "loc": { - "start": { - "line": 268, - "column": 6 - }, - "end": { - "line": 268, - "column": 23 - }, - "identifierName": "completion_emails" - }, - "name": "completion_emails" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 8725, - "end": 9146, - "loc": { - "start": { - "line": 271, - "column": 4 - }, - "end": { - "line": 284, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 8731, - "end": 9145, - "loc": { - "start": { - "line": 271, - "column": 10 - }, - "end": { - "line": 284, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 8731, - "end": 8734, - "loc": { - "start": { - "line": 271, - "column": 10 - }, - "end": { - "line": 271, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 8737, - "end": 9145, - "loc": { - "start": { - "line": 271, - "column": 16 - }, - "end": { - "line": 284, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 8737, - "end": 9112, - "loc": { - "start": { - "line": 271, - "column": 16 - }, - "end": { - "line": 284, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 8737, - "end": 9102, - "loc": { - "start": { - "line": 271, - "column": 16 - }, - "end": { - "line": 283, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 8737, - "end": 8757, - "loc": { - "start": { - "line": 271, - "column": 16 - }, - "end": { - "line": 272, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 8737, - "end": 8742, - "loc": { - "start": { - "line": 271, - "column": 16 - }, - "end": { - "line": 271, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 8750, - "end": 8757, - "loc": { - "start": { - "line": 272, - "column": 7 - }, - "end": { - "line": 272, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 8758, - "end": 9074, - "loc": { - "start": { - "line": 272, - "column": 15 - }, - "end": { - "line": 283, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 8758, - "end": 8777, - "loc": { - "start": { - "line": 272, - "column": 15 - }, - "end": { - "line": 272, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 8778, - "end": 9073, - "loc": { - "start": { - "line": 272, - "column": 35 - }, - "end": { - "line": 283, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 8788, - "end": 8802, - "loc": { - "start": { - "line": 273, - "column": 8 - }, - "end": { - "line": 273, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 8788, - "end": 8794, - "loc": { - "start": { - "line": 273, - "column": 8 - }, - "end": { - "line": 273, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 8796, - "end": 8802, - "loc": { - "start": { - "line": 273, - "column": 16 - }, - "end": { - "line": 273, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 8812, - "end": 8852, - "loc": { - "start": { - "line": 274, - "column": 8 - }, - "end": { - "line": 274, - "column": 48 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 8812, - "end": 8816, - "loc": { - "start": { - "line": 274, - "column": 8 - }, - "end": { - "line": 274, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 8818, - "end": 8852, - "loc": { - "start": { - "line": 274, - "column": 14 - }, - "end": { - "line": 274, - "column": 48 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 8836, - "end": 8838, - "loc": { - "start": { - "line": 274, - "column": 32 - }, - "end": { - "line": 274, - "column": 34 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 8819, - "end": 8834, - "loc": { - "start": { - "line": 274, - "column": 15 - }, - "end": { - "line": 274, - "column": 30 - } - }, - "value": { - "raw": "/documentgroup/", - "cooked": "/documentgroup/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 8839, - "end": 8851, - "loc": { - "start": { - "line": 274, - "column": 35 - }, - "end": { - "line": 274, - "column": 47 - } - }, - "value": { - "raw": "/groupinvite", - "cooked": "/groupinvite" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 8862, - "end": 8931, - "loc": { - "start": { - "line": 275, - "column": 8 - }, - "end": { - "line": 278, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 8862, - "end": 8875, - "loc": { - "start": { - "line": 275, - "column": 8 - }, - "end": { - "line": 275, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 8877, - "end": 8931, - "loc": { - "start": { - "line": 275, - "column": 23 - }, - "end": { - "line": 278, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 8889, - "end": 8903, - "loc": { - "start": { - "line": 276, - "column": 10 - }, - "end": { - "line": 276, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 8889, - "end": 8893, - "loc": { - "start": { - "line": 276, - "column": 10 - }, - "end": { - "line": 276, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 8895, - "end": 8903, - "loc": { - "start": { - "line": 276, - "column": 16 - }, - "end": { - "line": 276, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 8915, - "end": 8920, - "loc": { - "start": { - "line": 277, - "column": 10 - }, - "end": { - "line": 277, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8915, - "end": 8920, - "loc": { - "start": { - "line": 277, - "column": 10 - }, - "end": { - "line": 277, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 8915, - "end": 8920, - "loc": { - "start": { - "line": 277, - "column": 10 - }, - "end": { - "line": 277, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 8941, - "end": 9064, - "loc": { - "start": { - "line": 279, - "column": 8 - }, - "end": { - "line": 282, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 8941, - "end": 8948, - "loc": { - "start": { - "line": 279, - "column": 8 - }, - "end": { - "line": 279, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 8950, - "end": 9064, - "loc": { - "start": { - "line": 279, - "column": 17 - }, - "end": { - "line": 282, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 8962, - "end": 8996, - "loc": { - "start": { - "line": 280, - "column": 10 - }, - "end": { - "line": 280, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 8962, - "end": 8976, - "loc": { - "start": { - "line": 280, - "column": 10 - }, - "end": { - "line": 280, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 8978, - "end": 8996, - "loc": { - "start": { - "line": 280, - "column": 26 - }, - "end": { - "line": 280, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 9008, - "end": 9053, - "loc": { - "start": { - "line": 281, - "column": 10 - }, - "end": { - "line": 281, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 9008, - "end": 9024, - "loc": { - "start": { - "line": 281, - "column": 10 - }, - "end": { - "line": 281, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 9026, - "end": 9053, - "loc": { - "start": { - "line": 281, - "column": 28 - }, - "end": { - "line": 281, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9026, - "end": 9043, - "loc": { - "start": { - "line": 281, - "column": 28 - }, - "end": { - "line": 281, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 9026, - "end": 9032, - "loc": { - "start": { - "line": 281, - "column": 28 - }, - "end": { - "line": 281, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 9033, - "end": 9043, - "loc": { - "start": { - "line": 281, - "column": 35 - }, - "end": { - "line": 281, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 9044, - "end": 9052, - "loc": { - "start": { - "line": 281, - "column": 46 - }, - "end": { - "line": 281, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 9076, - "end": 9101, - "loc": { - "start": { - "line": 283, - "column": 10 - }, - "end": { - "line": 283, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 9076, - "end": 9091, - "loc": { - "start": { - "line": 283, - "column": 10 - }, - "end": { - "line": 283, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 9092, - "end": 9100, - "loc": { - "start": { - "line": 283, - "column": 26 - }, - "end": { - "line": 283, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 9110, - "end": 9112, - "loc": { - "start": { - "line": 284, - "column": 7 - }, - "end": { - "line": 284, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 9113, - "end": 9120, - "loc": { - "start": { - "line": 284, - "column": 10 - }, - "end": { - "line": 284, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 9122, - "end": 9144, - "loc": { - "start": { - "line": 284, - "column": 19 - }, - "end": { - "line": 284, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 9122, - "end": 9134, - "loc": { - "start": { - "line": 284, - "column": 19 - }, - "end": { - "line": 284, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 9135, - "end": 9143, - "loc": { - "start": { - "line": 284, - "column": 32 - }, - "end": { - "line": 284, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 9152, - "end": 9172, - "loc": { - "start": { - "line": 286, - "column": 4 - }, - "end": { - "line": 286, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 9152, - "end": 9171, - "loc": { - "start": { - "line": 286, - "column": 4 - }, - "end": { - "line": 286, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9152, - "end": 9161, - "loc": { - "start": { - "line": 286, - "column": 4 - }, - "end": { - "line": 286, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 9152, - "end": 9155, - "loc": { - "start": { - "line": 286, - "column": 4 - }, - "end": { - "line": 286, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 9156, - "end": 9161, - "loc": { - "start": { - "line": 286, - "column": 8 - }, - "end": { - "line": 286, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 9162, - "end": 9170, - "loc": { - "start": { - "line": 286, - "column": 14 - }, - "end": { - "line": 286, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 9177, - "end": 9187, - "loc": { - "start": { - "line": 287, - "column": 4 - }, - "end": { - "line": 287, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 9177, - "end": 9186, - "loc": { - "start": { - "line": 287, - "column": 4 - }, - "end": { - "line": 287, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9177, - "end": 9184, - "loc": { - "start": { - "line": 287, - "column": 4 - }, - "end": { - "line": 287, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 9177, - "end": 9180, - "loc": { - "start": { - "line": 287, - "column": 4 - }, - "end": { - "line": 287, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 9181, - "end": 9184, - "loc": { - "start": { - "line": 287, - "column": 8 - }, - "end": { - "line": 287, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document Group invite email congfigurations\n * @typedef {Object} DocumentGroupInviteEmail\n * @property {string} email - signer's email\n * @property {string} [subject] - subject of invitation email\n * @property {string} [message] - content of invitation email\n * @property {number} [expiration_days] - expiration of invite in days\n * @property {number} [reminder] - number of days in which to remind about invitation via email\n ", - "start": 4450, - "end": 4902, - "loc": { - "start": { - "line": 169, - "column": 2 - }, - "end": { - "line": 177, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group signer's authentication with password config\n * @typedef {Object} DocumentGroupInviteAuthenticationPassword\n * @property {string} type - set `password` to authenticate signer with password\n * @property {string} value - authentication password value\n ", - "start": 4906, - "end": 5190, - "loc": { - "start": { - "line": 179, - "column": 2 - }, - "end": { - "line": 184, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group signer's authentication with phone call config\n * @typedef {Object} DocumentGroupInviteAuthenticationPhoneCall\n * @property {string} type - set `phone` to authenticate signer with phone call\n * @property {string} method - set `phone_call` to authenticate signer with phone call\n * @property {string} phone - phone number\n ", - "start": 5194, - "end": 5552, - "loc": { - "start": { - "line": 186, - "column": 2 - }, - "end": { - "line": 192, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group signer's authentication with phone SMS config\n * @typedef {Object} DocumentGroupInviteAuthenticationPhoneSMS\n * @property {string} type - set `phone` to authenticate signer with phone SMS\n * @property {string} method - set `sms` to authenticate signer with phone SMS\n * @property {string} phone - phone number\n ", - "start": 5556, - "end": 5903, - "loc": { - "start": { - "line": 194, - "column": 2 - }, - "end": { - "line": 200, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite action congfigurations\n * @typedef {Object} DocumentGroupInviteAction\n * @property {string} email - signer's email\n * @property {string} role_name - signer's role name\n * @property {string} action - name of action with document in signing step\n * @property {string} document_id - ID of document in specific signing step\n * @property {string} [allow_reassign] - allow reassigning of signer\n * @property {string} [decline_by_signature] - signer can decline invite\n * @property {DocumentGroupInviteAuthenticationPassword|DocumentGroupInviteAuthenticationPhoneCall|DocumentGroupInviteAuthenticationPhoneSMS} [authentication] - signer's authentication configuration\n ", - "start": 5907, - "end": 6620, - "loc": { - "start": { - "line": 202, - "column": 2 - }, - "end": { - "line": 212, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite step congfigurations\n * @typedef {Object} DocumentGroupInviteStep\n * @property {number} order - an order number of invitation step\n * @property {DocumentGroupInviteEmail[]} [invite_emails] - Document Group invite emails settings\n * @property {DocumentGroupInviteAction[]} invite_actions - Document Group invite actions settings\n ", - "start": 6624, - "end": 6996, - "loc": { - "start": { - "line": 214, - "column": 2 - }, - "end": { - "line": 220, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite completion email configuration\n * @typedef {Object} DocumentGroupInviteCompletionEmailConfig\n * @property {string} email - email for completion (only from the signers and document owner emails)\n * @property {number} disable_document_attachment - disable attachment of signed document group to completion email (values: 0|1)\n ", - "start": 7000, - "end": 7366, - "loc": { - "start": { - "line": 222, - "column": 2 - }, - "end": { - "line": 227, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite settings\n * @typedef {Object} DocumentGroupInviteSettings\n * @property {DocumentGroupInviteStep[]} invite_steps - Document Group invite steps settings\n * @property {DocumentGroupInviteCompletionEmailConfig[]} [completion_emails] - set of completion email configutrations\n ", - "start": 7370, - "end": 7683, - "loc": { - "start": { - "line": 229, - "column": 2 - }, - "end": { - "line": 234, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create Document Group invite payload\n * @typedef {Object} DocumentGroupInviteParams\n * @property {string} id - ID of specific Document Group\n * @property {DocumentGroupInviteSettings} data - Document Group invite settings data\n * @property {string} token - your auth token\n ", - "start": 7687, - "end": 7982, - "loc": { - "start": { - "line": 236, - "column": 2 - }, - "end": { - "line": 242, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document invite response data\n * @typedef {Object} DocumentGroupInviteResponse\n * @property {string} id - ID of created Document Group invitation\n * @property {?string} pending_invite_link - pending invite link\n ", - "start": 7986, - "end": 8224, - "loc": { - "start": { - "line": 244, - "column": 2 - }, - "end": { - "line": 249, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates an invite to sign a document group\n * @param {DocumentGroupInviteParams} data - create Document Group invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupInviteResponse)} [callback] - error first node.js callback\n ", - "start": 8228, - "end": 8491, - "loc": { - "start": { - "line": 251, - "column": 2 - }, - "end": { - "line": 255, - "column": 5 - } - } - } - ] - } - ] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document Group methods\n ", - "start": 2084, - "end": 2117, - "loc": { - "start": { - "line": 87, - "column": 0 - }, - "end": { - "line": 89, - "column": 3 - } - } - } - ], - "__PseudoExport__": false, - "trailingComments": [] - }, - "leadingComments": null - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "value": "use strict", - "extra": { - "raw": "'use strict'", - "rawValue": "use strict" - } - } - } - ] - }, - "comments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewParams} data - view document with field extract payload\n * @return {Promise}\n ", - "start": 204, - "end": 371, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 16, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewResponse} document\n * @return {boolean} is there any siganture request in given document\n ", - "start": 586, - "end": 725, - "loc": { - "start": { - "line": 30, - "column": 0 - }, - "end": { - "line": 34, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewResponse} document\n * @return {boolean} is there any field invite in given document\n ", - "start": 797, - "end": 931, - "loc": { - "start": { - "line": 37, - "column": 0 - }, - "end": { - "line": 41, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewResponse} document\n * @return {boolean} is there any signature in given document\n ", - "start": 1004, - "end": 1135, - "loc": { - "start": { - "line": 44, - "column": 0 - }, - "end": { - "line": 48, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewResponse} document\n * @return {boolean} is document a template or not\n ", - "start": 1203, - "end": 1323, - "loc": { - "start": { - "line": 51, - "column": 0 - }, - "end": { - "line": 55, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewResponse} document\n * @return {boolean} can document be used for Document Group creation or not\n ", - "start": 1384, - "end": 1530, - "loc": { - "start": { - "line": 58, - "column": 0 - }, - "end": { - "line": 62, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {TemplateDuplicateParams} data - duplicate template payload\n * @return {Promise} resolves with id of new document\n ", - "start": 1678, - "end": 1855, - "loc": { - "start": { - "line": 69, - "column": 0 - }, - "end": { - "line": 73, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group methods\n ", - "start": 2084, - "end": 2117, - "loc": { - "start": { - "line": 87, - "column": 0 - }, - "end": { - "line": 89, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document group payload\n * @typedef {Object} DocumentGroupCreateParams\n * @property {string} token - your auth token\n * @property {string[]} ids - array of document or template ids for document group creation\n * @property {string} group_name - new name of document group\n ", - "start": 2143, - "end": 2442, - "loc": { - "start": { - "line": 92, - "column": 2 - }, - "end": { - "line": 98, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document group response data\n * @typedef {Object} DocumentGroupCreateResponse\n * @property {string} id - document group unique id\n ", - "start": 2446, - "end": 2601, - "loc": { - "start": { - "line": 100, - "column": 2 - }, - "end": { - "line": 104, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates document group with specified documents or templates.\n * At least one document or template must contain fields. Documents should not be signed, contain epending invites or signature requests.\n * @param {DocumentGroupCreateParams} data - create document group payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupCreateResponse)} [callback] - error first node.js callback\n ", - "start": 2605, - "end": 3020, - "loc": { - "start": { - "line": 106, - "column": 2 - }, - "end": { - "line": 111, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite email congfigurations\n * @typedef {Object} DocumentGroupInviteEmail\n * @property {string} email - signer's email\n * @property {string} [subject] - subject of invitation email\n * @property {string} [message] - content of invitation email\n * @property {number} [expiration_days] - expiration of invite in days\n * @property {number} [reminder] - number of days in which to remind about invitation via email\n ", - "start": 4450, - "end": 4902, - "loc": { - "start": { - "line": 169, - "column": 2 - }, - "end": { - "line": 177, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group signer's authentication with password config\n * @typedef {Object} DocumentGroupInviteAuthenticationPassword\n * @property {string} type - set `password` to authenticate signer with password\n * @property {string} value - authentication password value\n ", - "start": 4906, - "end": 5190, - "loc": { - "start": { - "line": 179, - "column": 2 - }, - "end": { - "line": 184, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group signer's authentication with phone call config\n * @typedef {Object} DocumentGroupInviteAuthenticationPhoneCall\n * @property {string} type - set `phone` to authenticate signer with phone call\n * @property {string} method - set `phone_call` to authenticate signer with phone call\n * @property {string} phone - phone number\n ", - "start": 5194, - "end": 5552, - "loc": { - "start": { - "line": 186, - "column": 2 - }, - "end": { - "line": 192, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group signer's authentication with phone SMS config\n * @typedef {Object} DocumentGroupInviteAuthenticationPhoneSMS\n * @property {string} type - set `phone` to authenticate signer with phone SMS\n * @property {string} method - set `sms` to authenticate signer with phone SMS\n * @property {string} phone - phone number\n ", - "start": 5556, - "end": 5903, - "loc": { - "start": { - "line": 194, - "column": 2 - }, - "end": { - "line": 200, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite action congfigurations\n * @typedef {Object} DocumentGroupInviteAction\n * @property {string} email - signer's email\n * @property {string} role_name - signer's role name\n * @property {string} action - name of action with document in signing step\n * @property {string} document_id - ID of document in specific signing step\n * @property {string} [allow_reassign] - allow reassigning of signer\n * @property {string} [decline_by_signature] - signer can decline invite\n * @property {DocumentGroupInviteAuthenticationPassword|DocumentGroupInviteAuthenticationPhoneCall|DocumentGroupInviteAuthenticationPhoneSMS} [authentication] - signer's authentication configuration\n ", - "start": 5907, - "end": 6620, - "loc": { - "start": { - "line": 202, - "column": 2 - }, - "end": { - "line": 212, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite step congfigurations\n * @typedef {Object} DocumentGroupInviteStep\n * @property {number} order - an order number of invitation step\n * @property {DocumentGroupInviteEmail[]} [invite_emails] - Document Group invite emails settings\n * @property {DocumentGroupInviteAction[]} invite_actions - Document Group invite actions settings\n ", - "start": 6624, - "end": 6996, - "loc": { - "start": { - "line": 214, - "column": 2 - }, - "end": { - "line": 220, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite completion email configuration\n * @typedef {Object} DocumentGroupInviteCompletionEmailConfig\n * @property {string} email - email for completion (only from the signers and document owner emails)\n * @property {number} disable_document_attachment - disable attachment of signed document group to completion email (values: 0|1)\n ", - "start": 7000, - "end": 7366, - "loc": { - "start": { - "line": 222, - "column": 2 - }, - "end": { - "line": 227, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite settings\n * @typedef {Object} DocumentGroupInviteSettings\n * @property {DocumentGroupInviteStep[]} invite_steps - Document Group invite steps settings\n * @property {DocumentGroupInviteCompletionEmailConfig[]} [completion_emails] - set of completion email configutrations\n ", - "start": 7370, - "end": 7683, - "loc": { - "start": { - "line": 229, - "column": 2 - }, - "end": { - "line": 234, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create Document Group invite payload\n * @typedef {Object} DocumentGroupInviteParams\n * @property {string} id - ID of specific Document Group\n * @property {DocumentGroupInviteSettings} data - Document Group invite settings data\n * @property {string} token - your auth token\n ", - "start": 7687, - "end": 7982, - "loc": { - "start": { - "line": 236, - "column": 2 - }, - "end": { - "line": 242, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document invite response data\n * @typedef {Object} DocumentGroupInviteResponse\n * @property {string} id - ID of created Document Group invitation\n * @property {?string} pending_invite_link - pending invite link\n ", - "start": 7986, - "end": 8224, - "loc": { - "start": { - "line": 244, - "column": 2 - }, - "end": { - "line": 249, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates an invite to sign a document group\n * @param {DocumentGroupInviteParams} data - create Document Group invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupInviteResponse)} [callback] - error first node.js callback\n ", - "start": 8228, - "end": 8491, - "loc": { - "start": { - "line": 251, - "column": 2 - }, - "end": { - "line": 255, - "column": 5 - } - } - } - ], - "tokens": [ - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "use strict", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 12 - }, - "end": { - "line": 1, - "column": 13 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 15, - "end": 21, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 22, - "end": 27, - "loc": { - "start": { - "line": 3, - "column": 7 - }, - "end": { - "line": 3, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 28, - "end": 32, - "loc": { - "start": { - "line": 3, - "column": 13 - }, - "end": { - "line": 3, - "column": 17 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "https", - "start": 33, - "end": 40, - "loc": { - "start": { - "line": 3, - "column": 18 - }, - "end": { - "line": 3, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 40, - "end": 41, - "loc": { - "start": { - "line": 3, - "column": 25 - }, - "end": { - "line": 3, - "column": 26 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 42, - "end": 48, - "loc": { - "start": { - "line": 4, - "column": 0 - }, - "end": { - "line": 4, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 49, - "end": 50, - "loc": { - "start": { - "line": 4, - "column": 7 - }, - "end": { - "line": 4, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 53, - "end": 68, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 68, - "end": 69, - "loc": { - "start": { - "line": 5, - "column": 17 - }, - "end": { - "line": 5, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 72, - "end": 84, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 14 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 84, - "end": 85, - "loc": { - "start": { - "line": 6, - "column": 14 - }, - "end": { - "line": 6, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 88, - "end": 107, - "loc": { - "start": { - "line": 7, - "column": 2 - }, - "end": { - "line": 7, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 107, - "end": 108, - "loc": { - "start": { - "line": 7, - "column": 21 - }, - "end": { - "line": 7, - "column": 22 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 109, - "end": 110, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 8, - "column": 1 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 111, - "end": 115, - "loc": { - "start": { - "line": 8, - "column": 2 - }, - "end": { - "line": 8, - "column": 6 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "./common", - "start": 116, - "end": 126, - "loc": { - "start": { - "line": 8, - "column": 7 - }, - "end": { - "line": 8, - "column": 17 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 126, - "end": 127, - "loc": { - "start": { - "line": 8, - "column": 17 - }, - "end": { - "line": 8, - "column": 18 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 128, - "end": 134, - "loc": { - "start": { - "line": 9, - "column": 0 - }, - "end": { - "line": 9, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 135, - "end": 136, - "loc": { - "start": { - "line": 9, - "column": 7 - }, - "end": { - "line": 9, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "view", - "start": 137, - "end": 141, - "loc": { - "start": { - "line": 9, - "column": 9 - }, - "end": { - "line": 9, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 142, - "end": 143, - "loc": { - "start": { - "line": 9, - "column": 14 - }, - "end": { - "line": 9, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 144, - "end": 148, - "loc": { - "start": { - "line": 9, - "column": 16 - }, - "end": { - "line": 9, - "column": 20 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "./document", - "start": 149, - "end": 161, - "loc": { - "start": { - "line": 9, - "column": 21 - }, - "end": { - "line": 9, - "column": 33 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 161, - "end": 162, - "loc": { - "start": { - "line": 9, - "column": 33 - }, - "end": { - "line": 9, - "column": 34 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 163, - "end": 169, - "loc": { - "start": { - "line": 10, - "column": 0 - }, - "end": { - "line": 10, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 170, - "end": 171, - "loc": { - "start": { - "line": 10, - "column": 7 - }, - "end": { - "line": 10, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "duplicate", - "start": 172, - "end": 181, - "loc": { - "start": { - "line": 10, - "column": 9 - }, - "end": { - "line": 10, - "column": 18 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 182, - "end": 183, - "loc": { - "start": { - "line": 10, - "column": 19 - }, - "end": { - "line": 10, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 184, - "end": 188, - "loc": { - "start": { - "line": 10, - "column": 21 - }, - "end": { - "line": 10, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "./template", - "start": 189, - "end": 201, - "loc": { - "start": { - "line": 10, - "column": 26 - }, - "end": { - "line": 10, - "column": 38 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 201, - "end": 202, - "loc": { - "start": { - "line": 10, - "column": 38 - }, - "end": { - "line": 10, - "column": 39 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewParams} data - view document with field extract payload\n * @return {Promise}\n ", - "start": 204, - "end": 371, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 16, - "column": 3 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 372, - "end": 377, - "loc": { - "start": { - "line": 17, - "column": 0 - }, - "end": { - "line": 17, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getDocumentDetails", - "start": 378, - "end": 396, - "loc": { - "start": { - "line": 17, - "column": 6 - }, - "end": { - "line": 17, - "column": 24 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 397, - "end": 398, - "loc": { - "start": { - "line": 17, - "column": 25 - }, - "end": { - "line": 17, - "column": 26 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 399, - "end": 400, - "loc": { - "start": { - "line": 17, - "column": 27 - }, - "end": { - "line": 17, - "column": 28 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 400, - "end": 401, - "loc": { - "start": { - "line": 17, - "column": 28 - }, - "end": { - "line": 17, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 402, - "end": 404, - "loc": { - "start": { - "line": 17, - "column": 30 - }, - "end": { - "line": 17, - "column": 32 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 404, - "end": 405, - "loc": { - "start": { - "line": 17, - "column": 32 - }, - "end": { - "line": 17, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 406, - "end": 411, - "loc": { - "start": { - "line": 17, - "column": 34 - }, - "end": { - "line": 17, - "column": 39 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 412, - "end": 413, - "loc": { - "start": { - "line": 17, - "column": 40 - }, - "end": { - "line": 17, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 413, - "end": 414, - "loc": { - "start": { - "line": 17, - "column": 41 - }, - "end": { - "line": 17, - "column": 42 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 415, - "end": 417, - "loc": { - "start": { - "line": 17, - "column": 43 - }, - "end": { - "line": 17, - "column": 45 - } - } - }, - { - "type": { - "label": "new", - "keyword": "new", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "new", - "start": 418, - "end": 421, - "loc": { - "start": { - "line": 17, - "column": 46 - }, - "end": { - "line": 17, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Promise", - "start": 422, - "end": 429, - "loc": { - "start": { - "line": 17, - "column": 50 - }, - "end": { - "line": 17, - "column": 57 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 429, - "end": 430, - "loc": { - "start": { - "line": 17, - "column": 57 - }, - "end": { - "line": 17, - "column": 58 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 430, - "end": 431, - "loc": { - "start": { - "line": 17, - "column": 58 - }, - "end": { - "line": 17, - "column": 59 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "resolve", - "start": 431, - "end": 438, - "loc": { - "start": { - "line": 17, - "column": 59 - }, - "end": { - "line": 17, - "column": 66 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 438, - "end": 439, - "loc": { - "start": { - "line": 17, - "column": 66 - }, - "end": { - "line": 17, - "column": 67 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "reject", - "start": 440, - "end": 446, - "loc": { - "start": { - "line": 17, - "column": 68 - }, - "end": { - "line": 17, - "column": 74 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 446, - "end": 447, - "loc": { - "start": { - "line": 17, - "column": 74 - }, - "end": { - "line": 17, - "column": 75 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 448, - "end": 450, - "loc": { - "start": { - "line": 17, - "column": 76 - }, - "end": { - "line": 17, - "column": 78 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 451, - "end": 452, - "loc": { - "start": { - "line": 17, - "column": 79 - }, - "end": { - "line": 17, - "column": 80 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "view", - "start": 455, - "end": 459, - "loc": { - "start": { - "line": 18, - "column": 2 - }, - "end": { - "line": 18, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 459, - "end": 460, - "loc": { - "start": { - "line": 18, - "column": 6 - }, - "end": { - "line": 18, - "column": 7 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 460, - "end": 461, - "loc": { - "start": { - "line": 18, - "column": 7 - }, - "end": { - "line": 18, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 466, - "end": 468, - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 19, - "column": 6 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 468, - "end": 469, - "loc": { - "start": { - "line": 19, - "column": 6 - }, - "end": { - "line": 19, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 474, - "end": 479, - "loc": { - "start": { - "line": 20, - "column": 4 - }, - "end": { - "line": 20, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 479, - "end": 480, - "loc": { - "start": { - "line": 20, - "column": 9 - }, - "end": { - "line": 20, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 483, - "end": 484, - "loc": { - "start": { - "line": 21, - "column": 2 - }, - "end": { - "line": 21, - "column": 3 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 484, - "end": 485, - "loc": { - "start": { - "line": 21, - "column": 3 - }, - "end": { - "line": 21, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 486, - "end": 487, - "loc": { - "start": { - "line": 21, - "column": 5 - }, - "end": { - "line": 21, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 487, - "end": 490, - "loc": { - "start": { - "line": 21, - "column": 6 - }, - "end": { - "line": 21, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 490, - "end": 491, - "loc": { - "start": { - "line": 21, - "column": 9 - }, - "end": { - "line": 21, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "res", - "start": 492, - "end": 495, - "loc": { - "start": { - "line": 21, - "column": 11 - }, - "end": { - "line": 21, - "column": 14 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 495, - "end": 496, - "loc": { - "start": { - "line": 21, - "column": 14 - }, - "end": { - "line": 21, - "column": 15 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 497, - "end": 499, - "loc": { - "start": { - "line": 21, - "column": 16 - }, - "end": { - "line": 21, - "column": 18 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 500, - "end": 501, - "loc": { - "start": { - "line": 21, - "column": 19 - }, - "end": { - "line": 21, - "column": 20 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 506, - "end": 508, - "loc": { - "start": { - "line": 22, - "column": 4 - }, - "end": { - "line": 22, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 509, - "end": 510, - "loc": { - "start": { - "line": 22, - "column": 7 - }, - "end": { - "line": 22, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 510, - "end": 513, - "loc": { - "start": { - "line": 22, - "column": 8 - }, - "end": { - "line": 22, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 513, - "end": 514, - "loc": { - "start": { - "line": 22, - "column": 11 - }, - "end": { - "line": 22, - "column": 12 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 515, - "end": 516, - "loc": { - "start": { - "line": 22, - "column": 13 - }, - "end": { - "line": 22, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "reject", - "start": 523, - "end": 529, - "loc": { - "start": { - "line": 23, - "column": 6 - }, - "end": { - "line": 23, - "column": 12 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 529, - "end": 530, - "loc": { - "start": { - "line": 23, - "column": 12 - }, - "end": { - "line": 23, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 530, - "end": 533, - "loc": { - "start": { - "line": 23, - "column": 13 - }, - "end": { - "line": 23, - "column": 16 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 533, - "end": 534, - "loc": { - "start": { - "line": 23, - "column": 16 - }, - "end": { - "line": 23, - "column": 17 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 534, - "end": 535, - "loc": { - "start": { - "line": 23, - "column": 17 - }, - "end": { - "line": 23, - "column": 18 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 540, - "end": 541, - "loc": { - "start": { - "line": 24, - "column": 4 - }, - "end": { - "line": 24, - "column": 5 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 542, - "end": 546, - "loc": { - "start": { - "line": 24, - "column": 6 - }, - "end": { - "line": 24, - "column": 10 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 547, - "end": 548, - "loc": { - "start": { - "line": 24, - "column": 11 - }, - "end": { - "line": 24, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "resolve", - "start": 555, - "end": 562, - "loc": { - "start": { - "line": 25, - "column": 6 - }, - "end": { - "line": 25, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 562, - "end": 563, - "loc": { - "start": { - "line": 25, - "column": 13 - }, - "end": { - "line": 25, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "res", - "start": 563, - "end": 566, - "loc": { - "start": { - "line": 25, - "column": 14 - }, - "end": { - "line": 25, - "column": 17 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 566, - "end": 567, - "loc": { - "start": { - "line": 25, - "column": 17 - }, - "end": { - "line": 25, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 567, - "end": 568, - "loc": { - "start": { - "line": 25, - "column": 18 - }, - "end": { - "line": 25, - "column": 19 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 573, - "end": 574, - "loc": { - "start": { - "line": 26, - "column": 4 - }, - "end": { - "line": 26, - "column": 5 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 577, - "end": 578, - "loc": { - "start": { - "line": 27, - "column": 2 - }, - "end": { - "line": 27, - "column": 3 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 578, - "end": 579, - "loc": { - "start": { - "line": 27, - "column": 3 - }, - "end": { - "line": 27, - "column": 4 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 579, - "end": 580, - "loc": { - "start": { - "line": 27, - "column": 4 - }, - "end": { - "line": 27, - "column": 5 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 581, - "end": 582, - "loc": { - "start": { - "line": 28, - "column": 0 - }, - "end": { - "line": 28, - "column": 1 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 582, - "end": 583, - "loc": { - "start": { - "line": 28, - "column": 1 - }, - "end": { - "line": 28, - "column": 2 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 583, - "end": 584, - "loc": { - "start": { - "line": 28, - "column": 2 - }, - "end": { - "line": 28, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewResponse} document\n * @return {boolean} is there any siganture request in given document\n ", - "start": 586, - "end": 725, - "loc": { - "start": { - "line": 30, - "column": 0 - }, - "end": { - "line": 34, - "column": 3 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 726, - "end": 731, - "loc": { - "start": { - "line": 35, - "column": 0 - }, - "end": { - "line": 35, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hasSignatureInvites", - "start": 732, - "end": 751, - "loc": { - "start": { - "line": 35, - "column": 6 - }, - "end": { - "line": 35, - "column": 25 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 752, - "end": 753, - "loc": { - "start": { - "line": 35, - "column": 26 - }, - "end": { - "line": 35, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document", - "start": 754, - "end": 762, - "loc": { - "start": { - "line": 35, - "column": 28 - }, - "end": { - "line": 35, - "column": 36 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 763, - "end": 765, - "loc": { - "start": { - "line": 35, - "column": 37 - }, - "end": { - "line": 35, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document", - "start": 766, - "end": 774, - "loc": { - "start": { - "line": 35, - "column": 40 - }, - "end": { - "line": 35, - "column": 48 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 774, - "end": 775, - "loc": { - "start": { - "line": 35, - "column": 48 - }, - "end": { - "line": 35, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "requests", - "start": 775, - "end": 783, - "loc": { - "start": { - "line": 35, - "column": 49 - }, - "end": { - "line": 35, - "column": 57 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 783, - "end": 784, - "loc": { - "start": { - "line": 35, - "column": 57 - }, - "end": { - "line": 35, - "column": 58 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "length", - "start": 784, - "end": 790, - "loc": { - "start": { - "line": 35, - "column": 58 - }, - "end": { - "line": 35, - "column": 64 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": ">", - "start": 791, - "end": 792, - "loc": { - "start": { - "line": 35, - "column": 65 - }, - "end": { - "line": 35, - "column": 66 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 793, - "end": 794, - "loc": { - "start": { - "line": 35, - "column": 67 - }, - "end": { - "line": 35, - "column": 68 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 794, - "end": 795, - "loc": { - "start": { - "line": 35, - "column": 68 - }, - "end": { - "line": 35, - "column": 69 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewResponse} document\n * @return {boolean} is there any field invite in given document\n ", - "start": 797, - "end": 931, - "loc": { - "start": { - "line": 37, - "column": 0 - }, - "end": { - "line": 41, - "column": 3 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 932, - "end": 937, - "loc": { - "start": { - "line": 42, - "column": 0 - }, - "end": { - "line": 42, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hasFieldInvites", - "start": 938, - "end": 953, - "loc": { - "start": { - "line": 42, - "column": 6 - }, - "end": { - "line": 42, - "column": 21 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 954, - "end": 955, - "loc": { - "start": { - "line": 42, - "column": 22 - }, - "end": { - "line": 42, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document", - "start": 956, - "end": 964, - "loc": { - "start": { - "line": 42, - "column": 24 - }, - "end": { - "line": 42, - "column": 32 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 965, - "end": 967, - "loc": { - "start": { - "line": 42, - "column": 33 - }, - "end": { - "line": 42, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document", - "start": 968, - "end": 976, - "loc": { - "start": { - "line": 42, - "column": 36 - }, - "end": { - "line": 42, - "column": 44 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 976, - "end": 977, - "loc": { - "start": { - "line": 42, - "column": 44 - }, - "end": { - "line": 42, - "column": 45 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "field_invites", - "start": 977, - "end": 990, - "loc": { - "start": { - "line": 42, - "column": 45 - }, - "end": { - "line": 42, - "column": 58 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 990, - "end": 991, - "loc": { - "start": { - "line": 42, - "column": 58 - }, - "end": { - "line": 42, - "column": 59 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "length", - "start": 991, - "end": 997, - "loc": { - "start": { - "line": 42, - "column": 59 - }, - "end": { - "line": 42, - "column": 65 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": ">", - "start": 998, - "end": 999, - "loc": { - "start": { - "line": 42, - "column": 66 - }, - "end": { - "line": 42, - "column": 67 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 1000, - "end": 1001, - "loc": { - "start": { - "line": 42, - "column": 68 - }, - "end": { - "line": 42, - "column": 69 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1001, - "end": 1002, - "loc": { - "start": { - "line": 42, - "column": 69 - }, - "end": { - "line": 42, - "column": 70 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewResponse} document\n * @return {boolean} is there any signature in given document\n ", - "start": 1004, - "end": 1135, - "loc": { - "start": { - "line": 44, - "column": 0 - }, - "end": { - "line": 48, - "column": 3 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1136, - "end": 1141, - "loc": { - "start": { - "line": 49, - "column": 0 - }, - "end": { - "line": 49, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hasSignatures", - "start": 1142, - "end": 1155, - "loc": { - "start": { - "line": 49, - "column": 6 - }, - "end": { - "line": 49, - "column": 19 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1156, - "end": 1157, - "loc": { - "start": { - "line": 49, - "column": 20 - }, - "end": { - "line": 49, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document", - "start": 1158, - "end": 1166, - "loc": { - "start": { - "line": 49, - "column": 22 - }, - "end": { - "line": 49, - "column": 30 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1167, - "end": 1169, - "loc": { - "start": { - "line": 49, - "column": 31 - }, - "end": { - "line": 49, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document", - "start": 1170, - "end": 1178, - "loc": { - "start": { - "line": 49, - "column": 34 - }, - "end": { - "line": 49, - "column": 42 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1178, - "end": 1179, - "loc": { - "start": { - "line": 49, - "column": 42 - }, - "end": { - "line": 49, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "signatures", - "start": 1179, - "end": 1189, - "loc": { - "start": { - "line": 49, - "column": 43 - }, - "end": { - "line": 49, - "column": 53 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1189, - "end": 1190, - "loc": { - "start": { - "line": 49, - "column": 53 - }, - "end": { - "line": 49, - "column": 54 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "length", - "start": 1190, - "end": 1196, - "loc": { - "start": { - "line": 49, - "column": 54 - }, - "end": { - "line": 49, - "column": 60 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": ">", - "start": 1197, - "end": 1198, - "loc": { - "start": { - "line": 49, - "column": 61 - }, - "end": { - "line": 49, - "column": 62 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 1199, - "end": 1200, - "loc": { - "start": { - "line": 49, - "column": 63 - }, - "end": { - "line": 49, - "column": 64 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1200, - "end": 1201, - "loc": { - "start": { - "line": 49, - "column": 64 - }, - "end": { - "line": 49, - "column": 65 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewResponse} document\n * @return {boolean} is document a template or not\n ", - "start": 1203, - "end": 1323, - "loc": { - "start": { - "line": 51, - "column": 0 - }, - "end": { - "line": 55, - "column": 3 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1324, - "end": 1329, - "loc": { - "start": { - "line": 56, - "column": 0 - }, - "end": { - "line": 56, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "isTemplate", - "start": 1330, - "end": 1340, - "loc": { - "start": { - "line": 56, - "column": 6 - }, - "end": { - "line": 56, - "column": 16 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1341, - "end": 1342, - "loc": { - "start": { - "line": 56, - "column": 17 - }, - "end": { - "line": 56, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document", - "start": 1343, - "end": 1351, - "loc": { - "start": { - "line": 56, - "column": 19 - }, - "end": { - "line": 56, - "column": 27 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1352, - "end": 1354, - "loc": { - "start": { - "line": 56, - "column": 28 - }, - "end": { - "line": 56, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document", - "start": 1355, - "end": 1363, - "loc": { - "start": { - "line": 56, - "column": 31 - }, - "end": { - "line": 56, - "column": 39 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1363, - "end": 1364, - "loc": { - "start": { - "line": 56, - "column": 39 - }, - "end": { - "line": 56, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "template", - "start": 1364, - "end": 1372, - "loc": { - "start": { - "line": 56, - "column": 40 - }, - "end": { - "line": 56, - "column": 48 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 1373, - "end": 1376, - "loc": { - "start": { - "line": 56, - "column": 49 - }, - "end": { - "line": 56, - "column": 52 - } - } - }, - { - "type": { - "label": "true", - "keyword": "true", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "true", - "start": 1377, - "end": 1381, - "loc": { - "start": { - "line": 56, - "column": 53 - }, - "end": { - "line": 56, - "column": 57 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1381, - "end": 1382, - "loc": { - "start": { - "line": 56, - "column": 57 - }, - "end": { - "line": 56, - "column": 58 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewResponse} document\n * @return {boolean} can document be used for Document Group creation or not\n ", - "start": 1384, - "end": 1530, - "loc": { - "start": { - "line": 58, - "column": 0 - }, - "end": { - "line": 62, - "column": 3 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1531, - "end": 1536, - "loc": { - "start": { - "line": 63, - "column": 0 - }, - "end": { - "line": 63, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "canBeAddedToDocumentGroup", - "start": 1537, - "end": 1562, - "loc": { - "start": { - "line": 63, - "column": 6 - }, - "end": { - "line": 63, - "column": 31 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1563, - "end": 1564, - "loc": { - "start": { - "line": 63, - "column": 32 - }, - "end": { - "line": 63, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document", - "start": 1565, - "end": 1573, - "loc": { - "start": { - "line": 63, - "column": 34 - }, - "end": { - "line": 63, - "column": 42 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1574, - "end": 1576, - "loc": { - "start": { - "line": 63, - "column": 43 - }, - "end": { - "line": 63, - "column": 45 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1577, - "end": 1578, - "loc": { - "start": { - "line": 63, - "column": 46 - }, - "end": { - "line": 63, - "column": 47 - } - } - }, - { - "type": { - "label": "prefix", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "!", - "start": 1581, - "end": 1582, - "loc": { - "start": { - "line": 64, - "column": 2 - }, - "end": { - "line": 64, - "column": 3 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hasSignatureInvites", - "start": 1582, - "end": 1601, - "loc": { - "start": { - "line": 64, - "column": 3 - }, - "end": { - "line": 64, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1601, - "end": 1602, - "loc": { - "start": { - "line": 64, - "column": 22 - }, - "end": { - "line": 64, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document", - "start": 1602, - "end": 1610, - "loc": { - "start": { - "line": 64, - "column": 23 - }, - "end": { - "line": 64, - "column": 31 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1610, - "end": 1611, - "loc": { - "start": { - "line": 64, - "column": 31 - }, - "end": { - "line": 64, - "column": 32 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 1614, - "end": 1616, - "loc": { - "start": { - "line": 65, - "column": 2 - }, - "end": { - "line": 65, - "column": 4 - } - } - }, - { - "type": { - "label": "prefix", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "!", - "start": 1617, - "end": 1618, - "loc": { - "start": { - "line": 65, - "column": 5 - }, - "end": { - "line": 65, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hasFieldInvites", - "start": 1618, - "end": 1633, - "loc": { - "start": { - "line": 65, - "column": 6 - }, - "end": { - "line": 65, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1633, - "end": 1634, - "loc": { - "start": { - "line": 65, - "column": 21 - }, - "end": { - "line": 65, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document", - "start": 1634, - "end": 1642, - "loc": { - "start": { - "line": 65, - "column": 22 - }, - "end": { - "line": 65, - "column": 30 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1642, - "end": 1643, - "loc": { - "start": { - "line": 65, - "column": 30 - }, - "end": { - "line": 65, - "column": 31 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 1646, - "end": 1648, - "loc": { - "start": { - "line": 66, - "column": 2 - }, - "end": { - "line": 66, - "column": 4 - } - } - }, - { - "type": { - "label": "prefix", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "!", - "start": 1649, - "end": 1650, - "loc": { - "start": { - "line": 66, - "column": 5 - }, - "end": { - "line": 66, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hasSignatures", - "start": 1650, - "end": 1663, - "loc": { - "start": { - "line": 66, - "column": 6 - }, - "end": { - "line": 66, - "column": 19 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1663, - "end": 1664, - "loc": { - "start": { - "line": 66, - "column": 19 - }, - "end": { - "line": 66, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document", - "start": 1664, - "end": 1672, - "loc": { - "start": { - "line": 66, - "column": 20 - }, - "end": { - "line": 66, - "column": 28 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1672, - "end": 1673, - "loc": { - "start": { - "line": 66, - "column": 28 - }, - "end": { - "line": 66, - "column": 29 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1674, - "end": 1675, - "loc": { - "start": { - "line": 67, - "column": 0 - }, - "end": { - "line": 67, - "column": 1 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1675, - "end": 1676, - "loc": { - "start": { - "line": 67, - "column": 1 - }, - "end": { - "line": 67, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {TemplateDuplicateParams} data - duplicate template payload\n * @return {Promise} resolves with id of new document\n ", - "start": 1678, - "end": 1855, - "loc": { - "start": { - "line": 69, - "column": 0 - }, - "end": { - "line": 73, - "column": 3 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1856, - "end": 1861, - "loc": { - "start": { - "line": 74, - "column": 0 - }, - "end": { - "line": 74, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "makeDocumentFromTemplate", - "start": 1862, - "end": 1886, - "loc": { - "start": { - "line": 74, - "column": 6 - }, - "end": { - "line": 74, - "column": 30 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1887, - "end": 1888, - "loc": { - "start": { - "line": 74, - "column": 31 - }, - "end": { - "line": 74, - "column": 32 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1889, - "end": 1890, - "loc": { - "start": { - "line": 74, - "column": 33 - }, - "end": { - "line": 74, - "column": 34 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1890, - "end": 1891, - "loc": { - "start": { - "line": 74, - "column": 34 - }, - "end": { - "line": 74, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 1892, - "end": 1894, - "loc": { - "start": { - "line": 74, - "column": 36 - }, - "end": { - "line": 74, - "column": 38 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1894, - "end": 1895, - "loc": { - "start": { - "line": 74, - "column": 38 - }, - "end": { - "line": 74, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 1896, - "end": 1901, - "loc": { - "start": { - "line": 74, - "column": 40 - }, - "end": { - "line": 74, - "column": 45 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1902, - "end": 1903, - "loc": { - "start": { - "line": 74, - "column": 46 - }, - "end": { - "line": 74, - "column": 47 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1903, - "end": 1904, - "loc": { - "start": { - "line": 74, - "column": 47 - }, - "end": { - "line": 74, - "column": 48 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1905, - "end": 1907, - "loc": { - "start": { - "line": 74, - "column": 49 - }, - "end": { - "line": 74, - "column": 51 - } - } - }, - { - "type": { - "label": "new", - "keyword": "new", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "new", - "start": 1908, - "end": 1911, - "loc": { - "start": { - "line": 74, - "column": 52 - }, - "end": { - "line": 74, - "column": 55 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Promise", - "start": 1912, - "end": 1919, - "loc": { - "start": { - "line": 74, - "column": 56 - }, - "end": { - "line": 74, - "column": 63 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1919, - "end": 1920, - "loc": { - "start": { - "line": 74, - "column": 63 - }, - "end": { - "line": 74, - "column": 64 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1920, - "end": 1921, - "loc": { - "start": { - "line": 74, - "column": 64 - }, - "end": { - "line": 74, - "column": 65 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "resolve", - "start": 1921, - "end": 1928, - "loc": { - "start": { - "line": 74, - "column": 65 - }, - "end": { - "line": 74, - "column": 72 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1928, - "end": 1929, - "loc": { - "start": { - "line": 74, - "column": 72 - }, - "end": { - "line": 74, - "column": 73 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "reject", - "start": 1930, - "end": 1936, - "loc": { - "start": { - "line": 74, - "column": 74 - }, - "end": { - "line": 74, - "column": 80 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1936, - "end": 1937, - "loc": { - "start": { - "line": 74, - "column": 80 - }, - "end": { - "line": 74, - "column": 81 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1938, - "end": 1940, - "loc": { - "start": { - "line": 74, - "column": 82 - }, - "end": { - "line": 74, - "column": 84 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1941, - "end": 1942, - "loc": { - "start": { - "line": 74, - "column": 85 - }, - "end": { - "line": 74, - "column": 86 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "duplicate", - "start": 1945, - "end": 1954, - "loc": { - "start": { - "line": 75, - "column": 2 - }, - "end": { - "line": 75, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1954, - "end": 1955, - "loc": { - "start": { - "line": 75, - "column": 11 - }, - "end": { - "line": 75, - "column": 12 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1955, - "end": 1956, - "loc": { - "start": { - "line": 75, - "column": 12 - }, - "end": { - "line": 75, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 1961, - "end": 1963, - "loc": { - "start": { - "line": 76, - "column": 4 - }, - "end": { - "line": 76, - "column": 6 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1963, - "end": 1964, - "loc": { - "start": { - "line": 76, - "column": 6 - }, - "end": { - "line": 76, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 1969, - "end": 1974, - "loc": { - "start": { - "line": 77, - "column": 4 - }, - "end": { - "line": 77, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1974, - "end": 1975, - "loc": { - "start": { - "line": 77, - "column": 9 - }, - "end": { - "line": 77, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1978, - "end": 1979, - "loc": { - "start": { - "line": 78, - "column": 2 - }, - "end": { - "line": 78, - "column": 3 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1979, - "end": 1980, - "loc": { - "start": { - "line": 78, - "column": 3 - }, - "end": { - "line": 78, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1981, - "end": 1982, - "loc": { - "start": { - "line": 78, - "column": 5 - }, - "end": { - "line": 78, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 1982, - "end": 1985, - "loc": { - "start": { - "line": 78, - "column": 6 - }, - "end": { - "line": 78, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1985, - "end": 1986, - "loc": { - "start": { - "line": 78, - "column": 9 - }, - "end": { - "line": 78, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "res", - "start": 1987, - "end": 1990, - "loc": { - "start": { - "line": 78, - "column": 11 - }, - "end": { - "line": 78, - "column": 14 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1990, - "end": 1991, - "loc": { - "start": { - "line": 78, - "column": 14 - }, - "end": { - "line": 78, - "column": 15 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1992, - "end": 1994, - "loc": { - "start": { - "line": 78, - "column": 16 - }, - "end": { - "line": 78, - "column": 18 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1995, - "end": 1996, - "loc": { - "start": { - "line": 78, - "column": 19 - }, - "end": { - "line": 78, - "column": 20 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 2001, - "end": 2003, - "loc": { - "start": { - "line": 79, - "column": 4 - }, - "end": { - "line": 79, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2004, - "end": 2005, - "loc": { - "start": { - "line": 79, - "column": 7 - }, - "end": { - "line": 79, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 2005, - "end": 2008, - "loc": { - "start": { - "line": 79, - "column": 8 - }, - "end": { - "line": 79, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2008, - "end": 2009, - "loc": { - "start": { - "line": 79, - "column": 11 - }, - "end": { - "line": 79, - "column": 12 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2010, - "end": 2011, - "loc": { - "start": { - "line": 79, - "column": 13 - }, - "end": { - "line": 79, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "reject", - "start": 2018, - "end": 2024, - "loc": { - "start": { - "line": 80, - "column": 6 - }, - "end": { - "line": 80, - "column": 12 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2024, - "end": 2025, - "loc": { - "start": { - "line": 80, - "column": 12 - }, - "end": { - "line": 80, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 2025, - "end": 2028, - "loc": { - "start": { - "line": 80, - "column": 13 - }, - "end": { - "line": 80, - "column": 16 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2028, - "end": 2029, - "loc": { - "start": { - "line": 80, - "column": 16 - }, - "end": { - "line": 80, - "column": 17 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2029, - "end": 2030, - "loc": { - "start": { - "line": 80, - "column": 17 - }, - "end": { - "line": 80, - "column": 18 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2035, - "end": 2036, - "loc": { - "start": { - "line": 81, - "column": 4 - }, - "end": { - "line": 81, - "column": 5 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 2037, - "end": 2041, - "loc": { - "start": { - "line": 81, - "column": 6 - }, - "end": { - "line": 81, - "column": 10 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2042, - "end": 2043, - "loc": { - "start": { - "line": 81, - "column": 11 - }, - "end": { - "line": 81, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "resolve", - "start": 2050, - "end": 2057, - "loc": { - "start": { - "line": 82, - "column": 6 - }, - "end": { - "line": 82, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2057, - "end": 2058, - "loc": { - "start": { - "line": 82, - "column": 13 - }, - "end": { - "line": 82, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "res", - "start": 2058, - "end": 2061, - "loc": { - "start": { - "line": 82, - "column": 14 - }, - "end": { - "line": 82, - "column": 17 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2061, - "end": 2062, - "loc": { - "start": { - "line": 82, - "column": 17 - }, - "end": { - "line": 82, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 2062, - "end": 2064, - "loc": { - "start": { - "line": 82, - "column": 18 - }, - "end": { - "line": 82, - "column": 20 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2064, - "end": 2065, - "loc": { - "start": { - "line": 82, - "column": 20 - }, - "end": { - "line": 82, - "column": 21 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2065, - "end": 2066, - "loc": { - "start": { - "line": 82, - "column": 21 - }, - "end": { - "line": 82, - "column": 22 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2071, - "end": 2072, - "loc": { - "start": { - "line": 83, - "column": 4 - }, - "end": { - "line": 83, - "column": 5 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2075, - "end": 2076, - "loc": { - "start": { - "line": 84, - "column": 2 - }, - "end": { - "line": 84, - "column": 3 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2076, - "end": 2077, - "loc": { - "start": { - "line": 84, - "column": 3 - }, - "end": { - "line": 84, - "column": 4 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2077, - "end": 2078, - "loc": { - "start": { - "line": 84, - "column": 4 - }, - "end": { - "line": 84, - "column": 5 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2079, - "end": 2080, - "loc": { - "start": { - "line": 85, - "column": 0 - }, - "end": { - "line": 85, - "column": 1 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2080, - "end": 2081, - "loc": { - "start": { - "line": 85, - "column": 1 - }, - "end": { - "line": 85, - "column": 2 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2081, - "end": 2082, - "loc": { - "start": { - "line": 85, - "column": 2 - }, - "end": { - "line": 85, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group methods\n ", - "start": 2084, - "end": 2117, - "loc": { - "start": { - "line": 87, - "column": 0 - }, - "end": { - "line": 89, - "column": 3 - } - } - }, - { - "type": { - "label": "class", - "keyword": "class", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "class", - "start": 2118, - "end": 2123, - "loc": { - "start": { - "line": 90, - "column": 0 - }, - "end": { - "line": 90, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "DocumentGroup", - "start": 2124, - "end": 2137, - "loc": { - "start": { - "line": 90, - "column": 6 - }, - "end": { - "line": 90, - "column": 19 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2138, - "end": 2139, - "loc": { - "start": { - "line": 90, - "column": 20 - }, - "end": { - "line": 90, - "column": 21 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document group payload\n * @typedef {Object} DocumentGroupCreateParams\n * @property {string} token - your auth token\n * @property {string[]} ids - array of document or template ids for document group creation\n * @property {string} group_name - new name of document group\n ", - "start": 2143, - "end": 2442, - "loc": { - "start": { - "line": 92, - "column": 2 - }, - "end": { - "line": 98, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document group response data\n * @typedef {Object} DocumentGroupCreateResponse\n * @property {string} id - document group unique id\n ", - "start": 2446, - "end": 2601, - "loc": { - "start": { - "line": 100, - "column": 2 - }, - "end": { - "line": 104, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates document group with specified documents or templates.\n * At least one document or template must contain fields. Documents should not be signed, contain epending invites or signature requests.\n * @param {DocumentGroupCreateParams} data - create document group payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupCreateResponse)} [callback] - error first node.js callback\n ", - "start": 2605, - "end": 3020, - "loc": { - "start": { - "line": 106, - "column": 2 - }, - "end": { - "line": 111, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 3023, - "end": 3029, - "loc": { - "start": { - "line": 112, - "column": 2 - }, - "end": { - "line": 112, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "create", - "start": 3030, - "end": 3036, - "loc": { - "start": { - "line": 112, - "column": 9 - }, - "end": { - "line": 112, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3037, - "end": 3038, - "loc": { - "start": { - "line": 112, - "column": 16 - }, - "end": { - "line": 112, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3038, - "end": 3039, - "loc": { - "start": { - "line": 112, - "column": 17 - }, - "end": { - "line": 112, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 3044, - "end": 3049, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 113, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3049, - "end": 3050, - "loc": { - "start": { - "line": 113, - "column": 9 - }, - "end": { - "line": 113, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "ids", - "start": 3055, - "end": 3058, - "loc": { - "start": { - "line": 114, - "column": 4 - }, - "end": { - "line": 114, - "column": 7 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3058, - "end": 3059, - "loc": { - "start": { - "line": 114, - "column": 7 - }, - "end": { - "line": 114, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "group_name", - "start": 3064, - "end": 3074, - "loc": { - "start": { - "line": 115, - "column": 4 - }, - "end": { - "line": 115, - "column": 14 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3074, - "end": 3075, - "loc": { - "start": { - "line": 115, - "column": 14 - }, - "end": { - "line": 115, - "column": 15 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3078, - "end": 3079, - "loc": { - "start": { - "line": 116, - "column": 2 - }, - "end": { - "line": 116, - "column": 3 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3079, - "end": 3080, - "loc": { - "start": { - "line": 116, - "column": 3 - }, - "end": { - "line": 116, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 3081, - "end": 3089, - "loc": { - "start": { - "line": 116, - "column": 5 - }, - "end": { - "line": 116, - "column": 13 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3089, - "end": 3090, - "loc": { - "start": { - "line": 116, - "column": 13 - }, - "end": { - "line": 116, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3091, - "end": 3092, - "loc": { - "start": { - "line": 116, - "column": 15 - }, - "end": { - "line": 116, - "column": 16 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 3097, - "end": 3102, - "loc": { - "start": { - "line": 117, - "column": 4 - }, - "end": { - "line": 117, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "realDocumentIDs", - "start": 3103, - "end": 3118, - "loc": { - "start": { - "line": 117, - "column": 10 - }, - "end": { - "line": 117, - "column": 25 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 3119, - "end": 3120, - "loc": { - "start": { - "line": 117, - "column": 26 - }, - "end": { - "line": 117, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "ids", - "start": 3121, - "end": 3124, - "loc": { - "start": { - "line": 117, - "column": 28 - }, - "end": { - "line": 117, - "column": 31 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3131, - "end": 3132, - "loc": { - "start": { - "line": 118, - "column": 6 - }, - "end": { - "line": 118, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "map", - "start": 3132, - "end": 3135, - "loc": { - "start": { - "line": 118, - "column": 7 - }, - "end": { - "line": 118, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3135, - "end": 3136, - "loc": { - "start": { - "line": 118, - "column": 10 - }, - "end": { - "line": 118, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 3136, - "end": 3138, - "loc": { - "start": { - "line": 118, - "column": 11 - }, - "end": { - "line": 118, - "column": 13 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3139, - "end": 3141, - "loc": { - "start": { - "line": 118, - "column": 14 - }, - "end": { - "line": 118, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3142, - "end": 3143, - "loc": { - "start": { - "line": 118, - "column": 17 - }, - "end": { - "line": 118, - "column": 18 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 3152, - "end": 3158, - "loc": { - "start": { - "line": 119, - "column": 8 - }, - "end": { - "line": 119, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getDocumentDetails", - "start": 3159, - "end": 3177, - "loc": { - "start": { - "line": 119, - "column": 15 - }, - "end": { - "line": 119, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3177, - "end": 3178, - "loc": { - "start": { - "line": 119, - "column": 33 - }, - "end": { - "line": 119, - "column": 34 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3178, - "end": 3179, - "loc": { - "start": { - "line": 119, - "column": 34 - }, - "end": { - "line": 119, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 3190, - "end": 3192, - "loc": { - "start": { - "line": 120, - "column": 10 - }, - "end": { - "line": 120, - "column": 12 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3192, - "end": 3193, - "loc": { - "start": { - "line": 120, - "column": 12 - }, - "end": { - "line": 120, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 3204, - "end": 3209, - "loc": { - "start": { - "line": 121, - "column": 10 - }, - "end": { - "line": 121, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3209, - "end": 3210, - "loc": { - "start": { - "line": 121, - "column": 15 - }, - "end": { - "line": 121, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3219, - "end": 3220, - "loc": { - "start": { - "line": 122, - "column": 8 - }, - "end": { - "line": 122, - "column": 9 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3220, - "end": 3221, - "loc": { - "start": { - "line": 122, - "column": 9 - }, - "end": { - "line": 122, - "column": 10 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3232, - "end": 3233, - "loc": { - "start": { - "line": 123, - "column": 10 - }, - "end": { - "line": 123, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "then", - "start": 3233, - "end": 3237, - "loc": { - "start": { - "line": 123, - "column": 11 - }, - "end": { - "line": 123, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3237, - "end": 3238, - "loc": { - "start": { - "line": 123, - "column": 15 - }, - "end": { - "line": 123, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document", - "start": 3238, - "end": 3246, - "loc": { - "start": { - "line": 123, - "column": 16 - }, - "end": { - "line": 123, - "column": 24 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3247, - "end": 3249, - "loc": { - "start": { - "line": 123, - "column": 25 - }, - "end": { - "line": 123, - "column": 27 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3250, - "end": 3251, - "loc": { - "start": { - "line": 123, - "column": 28 - }, - "end": { - "line": 123, - "column": 29 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 3264, - "end": 3266, - "loc": { - "start": { - "line": 124, - "column": 12 - }, - "end": { - "line": 124, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3267, - "end": 3268, - "loc": { - "start": { - "line": 124, - "column": 15 - }, - "end": { - "line": 124, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "isTemplate", - "start": 3268, - "end": 3278, - "loc": { - "start": { - "line": 124, - "column": 16 - }, - "end": { - "line": 124, - "column": 26 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3278, - "end": 3279, - "loc": { - "start": { - "line": 124, - "column": 26 - }, - "end": { - "line": 124, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document", - "start": 3279, - "end": 3287, - "loc": { - "start": { - "line": 124, - "column": 27 - }, - "end": { - "line": 124, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3287, - "end": 3288, - "loc": { - "start": { - "line": 124, - "column": 35 - }, - "end": { - "line": 124, - "column": 36 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3288, - "end": 3289, - "loc": { - "start": { - "line": 124, - "column": 36 - }, - "end": { - "line": 124, - "column": 37 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3290, - "end": 3291, - "loc": { - "start": { - "line": 124, - "column": 38 - }, - "end": { - "line": 124, - "column": 39 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 3306, - "end": 3312, - "loc": { - "start": { - "line": 125, - "column": 14 - }, - "end": { - "line": 125, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "makeDocumentFromTemplate", - "start": 3313, - "end": 3337, - "loc": { - "start": { - "line": 125, - "column": 21 - }, - "end": { - "line": 125, - "column": 45 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3337, - "end": 3338, - "loc": { - "start": { - "line": 125, - "column": 45 - }, - "end": { - "line": 125, - "column": 46 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3338, - "end": 3339, - "loc": { - "start": { - "line": 125, - "column": 46 - }, - "end": { - "line": 125, - "column": 47 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 3356, - "end": 3358, - "loc": { - "start": { - "line": 126, - "column": 16 - }, - "end": { - "line": 126, - "column": 18 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3358, - "end": 3359, - "loc": { - "start": { - "line": 126, - "column": 18 - }, - "end": { - "line": 126, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 3376, - "end": 3381, - "loc": { - "start": { - "line": 127, - "column": 16 - }, - "end": { - "line": 127, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3381, - "end": 3382, - "loc": { - "start": { - "line": 127, - "column": 21 - }, - "end": { - "line": 127, - "column": 22 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3397, - "end": 3398, - "loc": { - "start": { - "line": 128, - "column": 14 - }, - "end": { - "line": 128, - "column": 15 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3398, - "end": 3399, - "loc": { - "start": { - "line": 128, - "column": 15 - }, - "end": { - "line": 128, - "column": 16 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3399, - "end": 3400, - "loc": { - "start": { - "line": 128, - "column": 16 - }, - "end": { - "line": 128, - "column": 17 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3413, - "end": 3414, - "loc": { - "start": { - "line": 129, - "column": 12 - }, - "end": { - "line": 129, - "column": 13 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 3415, - "end": 3419, - "loc": { - "start": { - "line": 129, - "column": 14 - }, - "end": { - "line": 129, - "column": 18 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 3420, - "end": 3422, - "loc": { - "start": { - "line": 129, - "column": 19 - }, - "end": { - "line": 129, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3423, - "end": 3424, - "loc": { - "start": { - "line": 129, - "column": 22 - }, - "end": { - "line": 129, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "canBeAddedToDocumentGroup", - "start": 3424, - "end": 3449, - "loc": { - "start": { - "line": 129, - "column": 23 - }, - "end": { - "line": 129, - "column": 48 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3449, - "end": 3450, - "loc": { - "start": { - "line": 129, - "column": 48 - }, - "end": { - "line": 129, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document", - "start": 3450, - "end": 3458, - "loc": { - "start": { - "line": 129, - "column": 49 - }, - "end": { - "line": 129, - "column": 57 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3458, - "end": 3459, - "loc": { - "start": { - "line": 129, - "column": 57 - }, - "end": { - "line": 129, - "column": 58 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3459, - "end": 3460, - "loc": { - "start": { - "line": 129, - "column": 58 - }, - "end": { - "line": 129, - "column": 59 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3461, - "end": 3462, - "loc": { - "start": { - "line": 129, - "column": 60 - }, - "end": { - "line": 129, - "column": 61 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 3477, - "end": 3483, - "loc": { - "start": { - "line": 130, - "column": 14 - }, - "end": { - "line": 130, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 3484, - "end": 3486, - "loc": { - "start": { - "line": 130, - "column": 21 - }, - "end": { - "line": 130, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3486, - "end": 3487, - "loc": { - "start": { - "line": 130, - "column": 23 - }, - "end": { - "line": 130, - "column": 24 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3500, - "end": 3501, - "loc": { - "start": { - "line": 131, - "column": 12 - }, - "end": { - "line": 131, - "column": 13 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 3502, - "end": 3506, - "loc": { - "start": { - "line": 131, - "column": 14 - }, - "end": { - "line": 131, - "column": 18 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3507, - "end": 3508, - "loc": { - "start": { - "line": 131, - "column": 19 - }, - "end": { - "line": 131, - "column": 20 - } - } - }, - { - "type": { - "label": "throw", - "keyword": "throw", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "throw", - "start": 3523, - "end": 3528, - "loc": { - "start": { - "line": 132, - "column": 14 - }, - "end": { - "line": 132, - "column": 19 - } - } - }, - { - "type": { - "label": "new", - "keyword": "new", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "new", - "start": 3529, - "end": 3532, - "loc": { - "start": { - "line": 132, - "column": 20 - }, - "end": { - "line": 132, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Error", - "start": 3533, - "end": 3538, - "loc": { - "start": { - "line": 132, - "column": 24 - }, - "end": { - "line": 132, - "column": 29 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3538, - "end": 3539, - "loc": { - "start": { - "line": 132, - "column": 29 - }, - "end": { - "line": 132, - "column": 30 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Document in the group must have no pending invites, signature requests or completed signatures", - "start": 3539, - "end": 3635, - "loc": { - "start": { - "line": 132, - "column": 30 - }, - "end": { - "line": 132, - "column": 126 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3635, - "end": 3636, - "loc": { - "start": { - "line": 132, - "column": 126 - }, - "end": { - "line": 132, - "column": 127 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3636, - "end": 3637, - "loc": { - "start": { - "line": 132, - "column": 127 - }, - "end": { - "line": 132, - "column": 128 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3650, - "end": 3651, - "loc": { - "start": { - "line": 133, - "column": 12 - }, - "end": { - "line": 133, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3662, - "end": 3663, - "loc": { - "start": { - "line": 134, - "column": 10 - }, - "end": { - "line": 134, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3663, - "end": 3664, - "loc": { - "start": { - "line": 134, - "column": 11 - }, - "end": { - "line": 134, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3664, - "end": 3665, - "loc": { - "start": { - "line": 134, - "column": 12 - }, - "end": { - "line": 134, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3672, - "end": 3673, - "loc": { - "start": { - "line": 135, - "column": 6 - }, - "end": { - "line": 135, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3673, - "end": 3674, - "loc": { - "start": { - "line": 135, - "column": 7 - }, - "end": { - "line": 135, - "column": 8 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3674, - "end": 3675, - "loc": { - "start": { - "line": 135, - "column": 8 - }, - "end": { - "line": 135, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Promise", - "start": 3681, - "end": 3688, - "loc": { - "start": { - "line": 137, - "column": 4 - }, - "end": { - "line": 137, - "column": 11 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3688, - "end": 3689, - "loc": { - "start": { - "line": 137, - "column": 11 - }, - "end": { - "line": 137, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "all", - "start": 3689, - "end": 3692, - "loc": { - "start": { - "line": 137, - "column": 12 - }, - "end": { - "line": 137, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3692, - "end": 3693, - "loc": { - "start": { - "line": 137, - "column": 15 - }, - "end": { - "line": 137, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "realDocumentIDs", - "start": 3693, - "end": 3708, - "loc": { - "start": { - "line": 137, - "column": 16 - }, - "end": { - "line": 137, - "column": 31 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3708, - "end": 3709, - "loc": { - "start": { - "line": 137, - "column": 31 - }, - "end": { - "line": 137, - "column": 32 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3716, - "end": 3717, - "loc": { - "start": { - "line": 138, - "column": 6 - }, - "end": { - "line": 138, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "then", - "start": 3717, - "end": 3721, - "loc": { - "start": { - "line": 138, - "column": 7 - }, - "end": { - "line": 138, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3721, - "end": 3722, - "loc": { - "start": { - "line": 138, - "column": 11 - }, - "end": { - "line": 138, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_ids", - "start": 3722, - "end": 3734, - "loc": { - "start": { - "line": 138, - "column": 12 - }, - "end": { - "line": 138, - "column": 24 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3735, - "end": 3737, - "loc": { - "start": { - "line": 138, - "column": 25 - }, - "end": { - "line": 138, - "column": 27 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3738, - "end": 3739, - "loc": { - "start": { - "line": 138, - "column": 28 - }, - "end": { - "line": 138, - "column": 29 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 3748, - "end": 3753, - "loc": { - "start": { - "line": 139, - "column": 8 - }, - "end": { - "line": 139, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 3754, - "end": 3762, - "loc": { - "start": { - "line": 139, - "column": 14 - }, - "end": { - "line": 139, - "column": 22 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 3763, - "end": 3764, - "loc": { - "start": { - "line": 139, - "column": 23 - }, - "end": { - "line": 139, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSON", - "start": 3765, - "end": 3769, - "loc": { - "start": { - "line": 139, - "column": 25 - }, - "end": { - "line": 139, - "column": 29 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3769, - "end": 3770, - "loc": { - "start": { - "line": 139, - "column": 29 - }, - "end": { - "line": 139, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "stringify", - "start": 3770, - "end": 3779, - "loc": { - "start": { - "line": 139, - "column": 30 - }, - "end": { - "line": 139, - "column": 39 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3779, - "end": 3780, - "loc": { - "start": { - "line": 139, - "column": 39 - }, - "end": { - "line": 139, - "column": 40 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3780, - "end": 3781, - "loc": { - "start": { - "line": 139, - "column": 40 - }, - "end": { - "line": 139, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_ids", - "start": 3792, - "end": 3804, - "loc": { - "start": { - "line": 140, - "column": 10 - }, - "end": { - "line": 140, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3804, - "end": 3805, - "loc": { - "start": { - "line": 140, - "column": 22 - }, - "end": { - "line": 140, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "group_name", - "start": 3816, - "end": 3826, - "loc": { - "start": { - "line": 141, - "column": 10 - }, - "end": { - "line": 141, - "column": 20 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3826, - "end": 3827, - "loc": { - "start": { - "line": 141, - "column": 20 - }, - "end": { - "line": 141, - "column": 21 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3836, - "end": 3837, - "loc": { - "start": { - "line": 142, - "column": 8 - }, - "end": { - "line": 142, - "column": 9 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3837, - "end": 3838, - "loc": { - "start": { - "line": 142, - "column": 9 - }, - "end": { - "line": 142, - "column": 10 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3838, - "end": 3839, - "loc": { - "start": { - "line": 142, - "column": 10 - }, - "end": { - "line": 142, - "column": 11 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 3849, - "end": 3854, - "loc": { - "start": { - "line": 144, - "column": 8 - }, - "end": { - "line": 144, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 3855, - "end": 3858, - "loc": { - "start": { - "line": 144, - "column": 14 - }, - "end": { - "line": 144, - "column": 17 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 3859, - "end": 3860, - "loc": { - "start": { - "line": 144, - "column": 18 - }, - "end": { - "line": 144, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 3861, - "end": 3866, - "loc": { - "start": { - "line": 144, - "column": 20 - }, - "end": { - "line": 144, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3877, - "end": 3878, - "loc": { - "start": { - "line": 145, - "column": 10 - }, - "end": { - "line": 145, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 3878, - "end": 3885, - "loc": { - "start": { - "line": 145, - "column": 11 - }, - "end": { - "line": 145, - "column": 18 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3885, - "end": 3886, - "loc": { - "start": { - "line": 145, - "column": 18 - }, - "end": { - "line": 145, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 3886, - "end": 3905, - "loc": { - "start": { - "line": 145, - "column": 19 - }, - "end": { - "line": 145, - "column": 38 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3905, - "end": 3906, - "loc": { - "start": { - "line": 145, - "column": 38 - }, - "end": { - "line": 145, - "column": 39 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3906, - "end": 3907, - "loc": { - "start": { - "line": 145, - "column": 39 - }, - "end": { - "line": 145, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 3920, - "end": 3926, - "loc": { - "start": { - "line": 146, - "column": 12 - }, - "end": { - "line": 146, - "column": 18 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3926, - "end": 3927, - "loc": { - "start": { - "line": 146, - "column": 18 - }, - "end": { - "line": 146, - "column": 19 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "POST", - "start": 3928, - "end": 3934, - "loc": { - "start": { - "line": 146, - "column": 20 - }, - "end": { - "line": 146, - "column": 26 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3934, - "end": 3935, - "loc": { - "start": { - "line": 146, - "column": 26 - }, - "end": { - "line": 146, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 3948, - "end": 3952, - "loc": { - "start": { - "line": 147, - "column": 12 - }, - "end": { - "line": 147, - "column": 16 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3952, - "end": 3953, - "loc": { - "start": { - "line": 147, - "column": 16 - }, - "end": { - "line": 147, - "column": 17 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/documentgroup", - "start": 3954, - "end": 3970, - "loc": { - "start": { - "line": 147, - "column": 18 - }, - "end": { - "line": 147, - "column": 34 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3970, - "end": 3971, - "loc": { - "start": { - "line": 147, - "column": 34 - }, - "end": { - "line": 147, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 3984, - "end": 3997, - "loc": { - "start": { - "line": 148, - "column": 12 - }, - "end": { - "line": 148, - "column": 25 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3997, - "end": 3998, - "loc": { - "start": { - "line": 148, - "column": 25 - }, - "end": { - "line": 148, - "column": 26 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3999, - "end": 4000, - "loc": { - "start": { - "line": 148, - "column": 27 - }, - "end": { - "line": 148, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 4015, - "end": 4019, - "loc": { - "start": { - "line": 149, - "column": 14 - }, - "end": { - "line": 149, - "column": 18 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4019, - "end": 4020, - "loc": { - "start": { - "line": 149, - "column": 18 - }, - "end": { - "line": 149, - "column": 19 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 4021, - "end": 4029, - "loc": { - "start": { - "line": 149, - "column": 20 - }, - "end": { - "line": 149, - "column": 28 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4029, - "end": 4030, - "loc": { - "start": { - "line": 149, - "column": 28 - }, - "end": { - "line": 149, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 4045, - "end": 4050, - "loc": { - "start": { - "line": 150, - "column": 14 - }, - "end": { - "line": 150, - "column": 19 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4050, - "end": 4051, - "loc": { - "start": { - "line": 150, - "column": 19 - }, - "end": { - "line": 150, - "column": 20 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4064, - "end": 4065, - "loc": { - "start": { - "line": 151, - "column": 12 - }, - "end": { - "line": 151, - "column": 13 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4065, - "end": 4066, - "loc": { - "start": { - "line": 151, - "column": 13 - }, - "end": { - "line": 151, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 4079, - "end": 4086, - "loc": { - "start": { - "line": 152, - "column": 12 - }, - "end": { - "line": 152, - "column": 19 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4086, - "end": 4087, - "loc": { - "start": { - "line": 152, - "column": 19 - }, - "end": { - "line": 152, - "column": 20 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4088, - "end": 4089, - "loc": { - "start": { - "line": 152, - "column": 21 - }, - "end": { - "line": 152, - "column": 22 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type", - "start": 4104, - "end": 4118, - "loc": { - "start": { - "line": 153, - "column": 14 - }, - "end": { - "line": 153, - "column": 28 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4118, - "end": 4119, - "loc": { - "start": { - "line": 153, - "column": 28 - }, - "end": { - "line": 153, - "column": 29 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/json", - "start": 4120, - "end": 4138, - "loc": { - "start": { - "line": 153, - "column": 30 - }, - "end": { - "line": 153, - "column": 48 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4138, - "end": 4139, - "loc": { - "start": { - "line": 153, - "column": 48 - }, - "end": { - "line": 153, - "column": 49 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Length", - "start": 4154, - "end": 4170, - "loc": { - "start": { - "line": 154, - "column": 14 - }, - "end": { - "line": 154, - "column": 30 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4170, - "end": 4171, - "loc": { - "start": { - "line": 154, - "column": 30 - }, - "end": { - "line": 154, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 4172, - "end": 4178, - "loc": { - "start": { - "line": 154, - "column": 32 - }, - "end": { - "line": 154, - "column": 38 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4178, - "end": 4179, - "loc": { - "start": { - "line": 154, - "column": 38 - }, - "end": { - "line": 154, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "byteLength", - "start": 4179, - "end": 4189, - "loc": { - "start": { - "line": 154, - "column": 39 - }, - "end": { - "line": 154, - "column": 49 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4189, - "end": 4190, - "loc": { - "start": { - "line": 154, - "column": 49 - }, - "end": { - "line": 154, - "column": 50 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 4190, - "end": 4198, - "loc": { - "start": { - "line": 154, - "column": 50 - }, - "end": { - "line": 154, - "column": 58 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4198, - "end": 4199, - "loc": { - "start": { - "line": 154, - "column": 58 - }, - "end": { - "line": 154, - "column": 59 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4199, - "end": 4200, - "loc": { - "start": { - "line": 154, - "column": 59 - }, - "end": { - "line": 154, - "column": 60 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4213, - "end": 4214, - "loc": { - "start": { - "line": 155, - "column": 12 - }, - "end": { - "line": 155, - "column": 13 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4214, - "end": 4215, - "loc": { - "start": { - "line": 155, - "column": 13 - }, - "end": { - "line": 155, - "column": 14 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4226, - "end": 4227, - "loc": { - "start": { - "line": 156, - "column": 10 - }, - "end": { - "line": 156, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4227, - "end": 4228, - "loc": { - "start": { - "line": 156, - "column": 11 - }, - "end": { - "line": 156, - "column": 12 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4228, - "end": 4229, - "loc": { - "start": { - "line": 156, - "column": 12 - }, - "end": { - "line": 156, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 4230, - "end": 4245, - "loc": { - "start": { - "line": 156, - "column": 14 - }, - "end": { - "line": 156, - "column": 29 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4245, - "end": 4246, - "loc": { - "start": { - "line": 156, - "column": 29 - }, - "end": { - "line": 156, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 4246, - "end": 4254, - "loc": { - "start": { - "line": 156, - "column": 30 - }, - "end": { - "line": 156, - "column": 38 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4254, - "end": 4255, - "loc": { - "start": { - "line": 156, - "column": 38 - }, - "end": { - "line": 156, - "column": 39 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4255, - "end": 4256, - "loc": { - "start": { - "line": 156, - "column": 39 - }, - "end": { - "line": 156, - "column": 40 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4267, - "end": 4268, - "loc": { - "start": { - "line": 157, - "column": 10 - }, - "end": { - "line": 157, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 4268, - "end": 4270, - "loc": { - "start": { - "line": 157, - "column": 11 - }, - "end": { - "line": 157, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4270, - "end": 4271, - "loc": { - "start": { - "line": 157, - "column": 13 - }, - "end": { - "line": 157, - "column": 14 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 4271, - "end": 4278, - "loc": { - "start": { - "line": 157, - "column": 14 - }, - "end": { - "line": 157, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4278, - "end": 4279, - "loc": { - "start": { - "line": 157, - "column": 21 - }, - "end": { - "line": 157, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 4280, - "end": 4292, - "loc": { - "start": { - "line": 157, - "column": 23 - }, - "end": { - "line": 157, - "column": 35 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4292, - "end": 4293, - "loc": { - "start": { - "line": 157, - "column": 35 - }, - "end": { - "line": 157, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 4293, - "end": 4301, - "loc": { - "start": { - "line": 157, - "column": 36 - }, - "end": { - "line": 157, - "column": 44 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4301, - "end": 4302, - "loc": { - "start": { - "line": 157, - "column": 44 - }, - "end": { - "line": 157, - "column": 45 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4302, - "end": 4303, - "loc": { - "start": { - "line": 157, - "column": 45 - }, - "end": { - "line": 157, - "column": 46 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4303, - "end": 4304, - "loc": { - "start": { - "line": 157, - "column": 46 - }, - "end": { - "line": 157, - "column": 47 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 4314, - "end": 4317, - "loc": { - "start": { - "line": 159, - "column": 8 - }, - "end": { - "line": 159, - "column": 11 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4317, - "end": 4318, - "loc": { - "start": { - "line": 159, - "column": 11 - }, - "end": { - "line": 159, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "write", - "start": 4318, - "end": 4323, - "loc": { - "start": { - "line": 159, - "column": 12 - }, - "end": { - "line": 159, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4323, - "end": 4324, - "loc": { - "start": { - "line": 159, - "column": 17 - }, - "end": { - "line": 159, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 4324, - "end": 4332, - "loc": { - "start": { - "line": 159, - "column": 18 - }, - "end": { - "line": 159, - "column": 26 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4332, - "end": 4333, - "loc": { - "start": { - "line": 159, - "column": 26 - }, - "end": { - "line": 159, - "column": 27 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4333, - "end": 4334, - "loc": { - "start": { - "line": 159, - "column": 27 - }, - "end": { - "line": 159, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 4343, - "end": 4346, - "loc": { - "start": { - "line": 160, - "column": 8 - }, - "end": { - "line": 160, - "column": 11 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4346, - "end": 4347, - "loc": { - "start": { - "line": 160, - "column": 11 - }, - "end": { - "line": 160, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 4347, - "end": 4350, - "loc": { - "start": { - "line": 160, - "column": 12 - }, - "end": { - "line": 160, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4350, - "end": 4351, - "loc": { - "start": { - "line": 160, - "column": 15 - }, - "end": { - "line": 160, - "column": 16 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4351, - "end": 4352, - "loc": { - "start": { - "line": 160, - "column": 16 - }, - "end": { - "line": 160, - "column": 17 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4352, - "end": 4353, - "loc": { - "start": { - "line": 160, - "column": 17 - }, - "end": { - "line": 160, - "column": 18 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4360, - "end": 4361, - "loc": { - "start": { - "line": 161, - "column": 6 - }, - "end": { - "line": 161, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4361, - "end": 4362, - "loc": { - "start": { - "line": 161, - "column": 7 - }, - "end": { - "line": 161, - "column": 8 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4369, - "end": 4370, - "loc": { - "start": { - "line": 162, - "column": 6 - }, - "end": { - "line": 162, - "column": 7 - } - } - }, - { - "type": { - "label": "catch", - "keyword": "catch", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "catch", - "start": 4370, - "end": 4375, - "loc": { - "start": { - "line": 162, - "column": 7 - }, - "end": { - "line": 162, - "column": 12 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4375, - "end": 4376, - "loc": { - "start": { - "line": 162, - "column": 12 - }, - "end": { - "line": 162, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 4376, - "end": 4379, - "loc": { - "start": { - "line": 162, - "column": 13 - }, - "end": { - "line": 162, - "column": 16 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4380, - "end": 4382, - "loc": { - "start": { - "line": 162, - "column": 17 - }, - "end": { - "line": 162, - "column": 19 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4383, - "end": 4384, - "loc": { - "start": { - "line": 162, - "column": 20 - }, - "end": { - "line": 162, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 4393, - "end": 4401, - "loc": { - "start": { - "line": 163, - "column": 8 - }, - "end": { - "line": 163, - "column": 16 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4401, - "end": 4402, - "loc": { - "start": { - "line": 163, - "column": 16 - }, - "end": { - "line": 163, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 4402, - "end": 4405, - "loc": { - "start": { - "line": 163, - "column": 17 - }, - "end": { - "line": 163, - "column": 20 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4405, - "end": 4406, - "loc": { - "start": { - "line": 163, - "column": 20 - }, - "end": { - "line": 163, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "message", - "start": 4406, - "end": 4413, - "loc": { - "start": { - "line": 163, - "column": 21 - }, - "end": { - "line": 163, - "column": 28 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4413, - "end": 4414, - "loc": { - "start": { - "line": 163, - "column": 28 - }, - "end": { - "line": 163, - "column": 29 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4414, - "end": 4415, - "loc": { - "start": { - "line": 163, - "column": 29 - }, - "end": { - "line": 163, - "column": 30 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 4424, - "end": 4430, - "loc": { - "start": { - "line": 164, - "column": 8 - }, - "end": { - "line": 164, - "column": 14 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4430, - "end": 4431, - "loc": { - "start": { - "line": 164, - "column": 14 - }, - "end": { - "line": 164, - "column": 15 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4438, - "end": 4439, - "loc": { - "start": { - "line": 165, - "column": 6 - }, - "end": { - "line": 165, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4439, - "end": 4440, - "loc": { - "start": { - "line": 165, - "column": 7 - }, - "end": { - "line": 165, - "column": 8 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4440, - "end": 4441, - "loc": { - "start": { - "line": 165, - "column": 8 - }, - "end": { - "line": 165, - "column": 9 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4445, - "end": 4446, - "loc": { - "start": { - "line": 167, - "column": 2 - }, - "end": { - "line": 167, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite email congfigurations\n * @typedef {Object} DocumentGroupInviteEmail\n * @property {string} email - signer's email\n * @property {string} [subject] - subject of invitation email\n * @property {string} [message] - content of invitation email\n * @property {number} [expiration_days] - expiration of invite in days\n * @property {number} [reminder] - number of days in which to remind about invitation via email\n ", - "start": 4450, - "end": 4902, - "loc": { - "start": { - "line": 169, - "column": 2 - }, - "end": { - "line": 177, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group signer's authentication with password config\n * @typedef {Object} DocumentGroupInviteAuthenticationPassword\n * @property {string} type - set `password` to authenticate signer with password\n * @property {string} value - authentication password value\n ", - "start": 4906, - "end": 5190, - "loc": { - "start": { - "line": 179, - "column": 2 - }, - "end": { - "line": 184, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group signer's authentication with phone call config\n * @typedef {Object} DocumentGroupInviteAuthenticationPhoneCall\n * @property {string} type - set `phone` to authenticate signer with phone call\n * @property {string} method - set `phone_call` to authenticate signer with phone call\n * @property {string} phone - phone number\n ", - "start": 5194, - "end": 5552, - "loc": { - "start": { - "line": 186, - "column": 2 - }, - "end": { - "line": 192, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group signer's authentication with phone SMS config\n * @typedef {Object} DocumentGroupInviteAuthenticationPhoneSMS\n * @property {string} type - set `phone` to authenticate signer with phone SMS\n * @property {string} method - set `sms` to authenticate signer with phone SMS\n * @property {string} phone - phone number\n ", - "start": 5556, - "end": 5903, - "loc": { - "start": { - "line": 194, - "column": 2 - }, - "end": { - "line": 200, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite action congfigurations\n * @typedef {Object} DocumentGroupInviteAction\n * @property {string} email - signer's email\n * @property {string} role_name - signer's role name\n * @property {string} action - name of action with document in signing step\n * @property {string} document_id - ID of document in specific signing step\n * @property {string} [allow_reassign] - allow reassigning of signer\n * @property {string} [decline_by_signature] - signer can decline invite\n * @property {DocumentGroupInviteAuthenticationPassword|DocumentGroupInviteAuthenticationPhoneCall|DocumentGroupInviteAuthenticationPhoneSMS} [authentication] - signer's authentication configuration\n ", - "start": 5907, - "end": 6620, - "loc": { - "start": { - "line": 202, - "column": 2 - }, - "end": { - "line": 212, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite step congfigurations\n * @typedef {Object} DocumentGroupInviteStep\n * @property {number} order - an order number of invitation step\n * @property {DocumentGroupInviteEmail[]} [invite_emails] - Document Group invite emails settings\n * @property {DocumentGroupInviteAction[]} invite_actions - Document Group invite actions settings\n ", - "start": 6624, - "end": 6996, - "loc": { - "start": { - "line": 214, - "column": 2 - }, - "end": { - "line": 220, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite completion email configuration\n * @typedef {Object} DocumentGroupInviteCompletionEmailConfig\n * @property {string} email - email for completion (only from the signers and document owner emails)\n * @property {number} disable_document_attachment - disable attachment of signed document group to completion email (values: 0|1)\n ", - "start": 7000, - "end": 7366, - "loc": { - "start": { - "line": 222, - "column": 2 - }, - "end": { - "line": 227, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group invite settings\n * @typedef {Object} DocumentGroupInviteSettings\n * @property {DocumentGroupInviteStep[]} invite_steps - Document Group invite steps settings\n * @property {DocumentGroupInviteCompletionEmailConfig[]} [completion_emails] - set of completion email configutrations\n ", - "start": 7370, - "end": 7683, - "loc": { - "start": { - "line": 229, - "column": 2 - }, - "end": { - "line": 234, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create Document Group invite payload\n * @typedef {Object} DocumentGroupInviteParams\n * @property {string} id - ID of specific Document Group\n * @property {DocumentGroupInviteSettings} data - Document Group invite settings data\n * @property {string} token - your auth token\n ", - "start": 7687, - "end": 7982, - "loc": { - "start": { - "line": 236, - "column": 2 - }, - "end": { - "line": 242, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create document invite response data\n * @typedef {Object} DocumentGroupInviteResponse\n * @property {string} id - ID of created Document Group invitation\n * @property {?string} pending_invite_link - pending invite link\n ", - "start": 7986, - "end": 8224, - "loc": { - "start": { - "line": 244, - "column": 2 - }, - "end": { - "line": 249, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates an invite to sign a document group\n * @param {DocumentGroupInviteParams} data - create Document Group invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupInviteResponse)} [callback] - error first node.js callback\n ", - "start": 8228, - "end": 8491, - "loc": { - "start": { - "line": 251, - "column": 2 - }, - "end": { - "line": 255, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 8494, - "end": 8500, - "loc": { - "start": { - "line": 256, - "column": 2 - }, - "end": { - "line": 256, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "invite", - "start": 8501, - "end": 8507, - "loc": { - "start": { - "line": 256, - "column": 9 - }, - "end": { - "line": 256, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8508, - "end": 8509, - "loc": { - "start": { - "line": 256, - "column": 16 - }, - "end": { - "line": 256, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8509, - "end": 8510, - "loc": { - "start": { - "line": 256, - "column": 17 - }, - "end": { - "line": 256, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 8515, - "end": 8517, - "loc": { - "start": { - "line": 257, - "column": 4 - }, - "end": { - "line": 257, - "column": 6 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8517, - "end": 8518, - "loc": { - "start": { - "line": 257, - "column": 6 - }, - "end": { - "line": 257, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 8523, - "end": 8527, - "loc": { - "start": { - "line": 258, - "column": 4 - }, - "end": { - "line": 258, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8527, - "end": 8528, - "loc": { - "start": { - "line": 258, - "column": 8 - }, - "end": { - "line": 258, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 8533, - "end": 8538, - "loc": { - "start": { - "line": 259, - "column": 4 - }, - "end": { - "line": 259, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8538, - "end": 8539, - "loc": { - "start": { - "line": 259, - "column": 9 - }, - "end": { - "line": 259, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8542, - "end": 8543, - "loc": { - "start": { - "line": 260, - "column": 2 - }, - "end": { - "line": 260, - "column": 3 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8543, - "end": 8544, - "loc": { - "start": { - "line": 260, - "column": 3 - }, - "end": { - "line": 260, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 8545, - "end": 8553, - "loc": { - "start": { - "line": 260, - "column": 5 - }, - "end": { - "line": 260, - "column": 13 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8553, - "end": 8554, - "loc": { - "start": { - "line": 260, - "column": 13 - }, - "end": { - "line": 260, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8555, - "end": 8556, - "loc": { - "start": { - "line": 260, - "column": 15 - }, - "end": { - "line": 260, - "column": 16 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 8561, - "end": 8566, - "loc": { - "start": { - "line": 261, - "column": 4 - }, - "end": { - "line": 261, - "column": 9 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8567, - "end": 8568, - "loc": { - "start": { - "line": 261, - "column": 10 - }, - "end": { - "line": 261, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "invite_steps", - "start": 8575, - "end": 8587, - "loc": { - "start": { - "line": 262, - "column": 6 - }, - "end": { - "line": 262, - "column": 18 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8587, - "end": 8588, - "loc": { - "start": { - "line": 262, - "column": 18 - }, - "end": { - "line": 262, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "completion_emails", - "start": 8595, - "end": 8612, - "loc": { - "start": { - "line": 263, - "column": 6 - }, - "end": { - "line": 263, - "column": 23 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8612, - "end": 8613, - "loc": { - "start": { - "line": 263, - "column": 23 - }, - "end": { - "line": 263, - "column": 24 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8618, - "end": 8619, - "loc": { - "start": { - "line": 264, - "column": 4 - }, - "end": { - "line": 264, - "column": 5 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 8620, - "end": 8621, - "loc": { - "start": { - "line": 264, - "column": 6 - }, - "end": { - "line": 264, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 8622, - "end": 8626, - "loc": { - "start": { - "line": 264, - "column": 8 - }, - "end": { - "line": 264, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8626, - "end": 8627, - "loc": { - "start": { - "line": 264, - "column": 12 - }, - "end": { - "line": 264, - "column": 13 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 8633, - "end": 8638, - "loc": { - "start": { - "line": 266, - "column": 4 - }, - "end": { - "line": 266, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 8639, - "end": 8647, - "loc": { - "start": { - "line": 266, - "column": 10 - }, - "end": { - "line": 266, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 8648, - "end": 8649, - "loc": { - "start": { - "line": 266, - "column": 19 - }, - "end": { - "line": 266, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSON", - "start": 8650, - "end": 8654, - "loc": { - "start": { - "line": 266, - "column": 21 - }, - "end": { - "line": 266, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8654, - "end": 8655, - "loc": { - "start": { - "line": 266, - "column": 25 - }, - "end": { - "line": 266, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "stringify", - "start": 8655, - "end": 8664, - "loc": { - "start": { - "line": 266, - "column": 26 - }, - "end": { - "line": 266, - "column": 35 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8664, - "end": 8665, - "loc": { - "start": { - "line": 266, - "column": 35 - }, - "end": { - "line": 266, - "column": 36 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8665, - "end": 8666, - "loc": { - "start": { - "line": 266, - "column": 36 - }, - "end": { - "line": 266, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "invite_steps", - "start": 8673, - "end": 8685, - "loc": { - "start": { - "line": 267, - "column": 6 - }, - "end": { - "line": 267, - "column": 18 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8685, - "end": 8686, - "loc": { - "start": { - "line": 267, - "column": 18 - }, - "end": { - "line": 267, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "completion_emails", - "start": 8693, - "end": 8710, - "loc": { - "start": { - "line": 268, - "column": 6 - }, - "end": { - "line": 268, - "column": 23 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8710, - "end": 8711, - "loc": { - "start": { - "line": 268, - "column": 23 - }, - "end": { - "line": 268, - "column": 24 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8716, - "end": 8717, - "loc": { - "start": { - "line": 269, - "column": 4 - }, - "end": { - "line": 269, - "column": 5 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8717, - "end": 8718, - "loc": { - "start": { - "line": 269, - "column": 5 - }, - "end": { - "line": 269, - "column": 6 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8718, - "end": 8719, - "loc": { - "start": { - "line": 269, - "column": 6 - }, - "end": { - "line": 269, - "column": 7 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 8725, - "end": 8730, - "loc": { - "start": { - "line": 271, - "column": 4 - }, - "end": { - "line": 271, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 8731, - "end": 8734, - "loc": { - "start": { - "line": 271, - "column": 10 - }, - "end": { - "line": 271, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 8735, - "end": 8736, - "loc": { - "start": { - "line": 271, - "column": 14 - }, - "end": { - "line": 271, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 8737, - "end": 8742, - "loc": { - "start": { - "line": 271, - "column": 16 - }, - "end": { - "line": 271, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8749, - "end": 8750, - "loc": { - "start": { - "line": 272, - "column": 6 - }, - "end": { - "line": 272, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 8750, - "end": 8757, - "loc": { - "start": { - "line": 272, - "column": 7 - }, - "end": { - "line": 272, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8757, - "end": 8758, - "loc": { - "start": { - "line": 272, - "column": 14 - }, - "end": { - "line": 272, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 8758, - "end": 8777, - "loc": { - "start": { - "line": 272, - "column": 15 - }, - "end": { - "line": 272, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8777, - "end": 8778, - "loc": { - "start": { - "line": 272, - "column": 34 - }, - "end": { - "line": 272, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8778, - "end": 8779, - "loc": { - "start": { - "line": 272, - "column": 35 - }, - "end": { - "line": 272, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 8788, - "end": 8794, - "loc": { - "start": { - "line": 273, - "column": 8 - }, - "end": { - "line": 273, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8794, - "end": 8795, - "loc": { - "start": { - "line": 273, - "column": 14 - }, - "end": { - "line": 273, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "POST", - "start": 8796, - "end": 8802, - "loc": { - "start": { - "line": 273, - "column": 16 - }, - "end": { - "line": 273, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8802, - "end": 8803, - "loc": { - "start": { - "line": 273, - "column": 22 - }, - "end": { - "line": 273, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 8812, - "end": 8816, - "loc": { - "start": { - "line": 274, - "column": 8 - }, - "end": { - "line": 274, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8816, - "end": 8817, - "loc": { - "start": { - "line": 274, - "column": 12 - }, - "end": { - "line": 274, - "column": 13 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8818, - "end": 8819, - "loc": { - "start": { - "line": 274, - "column": 14 - }, - "end": { - "line": 274, - "column": 15 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/documentgroup/", - "start": 8819, - "end": 8834, - "loc": { - "start": { - "line": 274, - "column": 15 - }, - "end": { - "line": 274, - "column": 30 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8834, - "end": 8836, - "loc": { - "start": { - "line": 274, - "column": 30 - }, - "end": { - "line": 274, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 8836, - "end": 8838, - "loc": { - "start": { - "line": 274, - "column": 32 - }, - "end": { - "line": 274, - "column": 34 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8838, - "end": 8839, - "loc": { - "start": { - "line": 274, - "column": 34 - }, - "end": { - "line": 274, - "column": 35 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/groupinvite", - "start": 8839, - "end": 8851, - "loc": { - "start": { - "line": 274, - "column": 35 - }, - "end": { - "line": 274, - "column": 47 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8851, - "end": 8852, - "loc": { - "start": { - "line": 274, - "column": 47 - }, - "end": { - "line": 274, - "column": 48 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8852, - "end": 8853, - "loc": { - "start": { - "line": 274, - "column": 48 - }, - "end": { - "line": 274, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 8862, - "end": 8875, - "loc": { - "start": { - "line": 275, - "column": 8 - }, - "end": { - "line": 275, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8875, - "end": 8876, - "loc": { - "start": { - "line": 275, - "column": 21 - }, - "end": { - "line": 275, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8877, - "end": 8878, - "loc": { - "start": { - "line": 275, - "column": 23 - }, - "end": { - "line": 275, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 8889, - "end": 8893, - "loc": { - "start": { - "line": 276, - "column": 10 - }, - "end": { - "line": 276, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8893, - "end": 8894, - "loc": { - "start": { - "line": 276, - "column": 14 - }, - "end": { - "line": 276, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 8895, - "end": 8903, - "loc": { - "start": { - "line": 276, - "column": 16 - }, - "end": { - "line": 276, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8903, - "end": 8904, - "loc": { - "start": { - "line": 276, - "column": 24 - }, - "end": { - "line": 276, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 8915, - "end": 8920, - "loc": { - "start": { - "line": 277, - "column": 10 - }, - "end": { - "line": 277, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8920, - "end": 8921, - "loc": { - "start": { - "line": 277, - "column": 15 - }, - "end": { - "line": 277, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8930, - "end": 8931, - "loc": { - "start": { - "line": 278, - "column": 8 - }, - "end": { - "line": 278, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8931, - "end": 8932, - "loc": { - "start": { - "line": 278, - "column": 9 - }, - "end": { - "line": 278, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 8941, - "end": 8948, - "loc": { - "start": { - "line": 279, - "column": 8 - }, - "end": { - "line": 279, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8948, - "end": 8949, - "loc": { - "start": { - "line": 279, - "column": 15 - }, - "end": { - "line": 279, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8950, - "end": 8951, - "loc": { - "start": { - "line": 279, - "column": 17 - }, - "end": { - "line": 279, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type", - "start": 8962, - "end": 8976, - "loc": { - "start": { - "line": 280, - "column": 10 - }, - "end": { - "line": 280, - "column": 24 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8976, - "end": 8977, - "loc": { - "start": { - "line": 280, - "column": 24 - }, - "end": { - "line": 280, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/json", - "start": 8978, - "end": 8996, - "loc": { - "start": { - "line": 280, - "column": 26 - }, - "end": { - "line": 280, - "column": 44 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8996, - "end": 8997, - "loc": { - "start": { - "line": 280, - "column": 44 - }, - "end": { - "line": 280, - "column": 45 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Length", - "start": 9008, - "end": 9024, - "loc": { - "start": { - "line": 281, - "column": 10 - }, - "end": { - "line": 281, - "column": 26 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9024, - "end": 9025, - "loc": { - "start": { - "line": 281, - "column": 26 - }, - "end": { - "line": 281, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 9026, - "end": 9032, - "loc": { - "start": { - "line": 281, - "column": 28 - }, - "end": { - "line": 281, - "column": 34 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9032, - "end": 9033, - "loc": { - "start": { - "line": 281, - "column": 34 - }, - "end": { - "line": 281, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "byteLength", - "start": 9033, - "end": 9043, - "loc": { - "start": { - "line": 281, - "column": 35 - }, - "end": { - "line": 281, - "column": 45 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9043, - "end": 9044, - "loc": { - "start": { - "line": 281, - "column": 45 - }, - "end": { - "line": 281, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 9044, - "end": 9052, - "loc": { - "start": { - "line": 281, - "column": 46 - }, - "end": { - "line": 281, - "column": 54 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9052, - "end": 9053, - "loc": { - "start": { - "line": 281, - "column": 54 - }, - "end": { - "line": 281, - "column": 55 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9053, - "end": 9054, - "loc": { - "start": { - "line": 281, - "column": 55 - }, - "end": { - "line": 281, - "column": 56 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9063, - "end": 9064, - "loc": { - "start": { - "line": 282, - "column": 8 - }, - "end": { - "line": 282, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9064, - "end": 9065, - "loc": { - "start": { - "line": 282, - "column": 9 - }, - "end": { - "line": 282, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9072, - "end": 9073, - "loc": { - "start": { - "line": 283, - "column": 6 - }, - "end": { - "line": 283, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9073, - "end": 9074, - "loc": { - "start": { - "line": 283, - "column": 7 - }, - "end": { - "line": 283, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9074, - "end": 9075, - "loc": { - "start": { - "line": 283, - "column": 8 - }, - "end": { - "line": 283, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 9076, - "end": 9091, - "loc": { - "start": { - "line": 283, - "column": 10 - }, - "end": { - "line": 283, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9091, - "end": 9092, - "loc": { - "start": { - "line": 283, - "column": 25 - }, - "end": { - "line": 283, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 9092, - "end": 9100, - "loc": { - "start": { - "line": 283, - "column": 26 - }, - "end": { - "line": 283, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9100, - "end": 9101, - "loc": { - "start": { - "line": 283, - "column": 34 - }, - "end": { - "line": 283, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9101, - "end": 9102, - "loc": { - "start": { - "line": 283, - "column": 35 - }, - "end": { - "line": 283, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9109, - "end": 9110, - "loc": { - "start": { - "line": 284, - "column": 6 - }, - "end": { - "line": 284, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 9110, - "end": 9112, - "loc": { - "start": { - "line": 284, - "column": 7 - }, - "end": { - "line": 284, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9112, - "end": 9113, - "loc": { - "start": { - "line": 284, - "column": 9 - }, - "end": { - "line": 284, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 9113, - "end": 9120, - "loc": { - "start": { - "line": 284, - "column": 10 - }, - "end": { - "line": 284, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9120, - "end": 9121, - "loc": { - "start": { - "line": 284, - "column": 17 - }, - "end": { - "line": 284, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 9122, - "end": 9134, - "loc": { - "start": { - "line": 284, - "column": 19 - }, - "end": { - "line": 284, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9134, - "end": 9135, - "loc": { - "start": { - "line": 284, - "column": 31 - }, - "end": { - "line": 284, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 9135, - "end": 9143, - "loc": { - "start": { - "line": 284, - "column": 32 - }, - "end": { - "line": 284, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9143, - "end": 9144, - "loc": { - "start": { - "line": 284, - "column": 40 - }, - "end": { - "line": 284, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9144, - "end": 9145, - "loc": { - "start": { - "line": 284, - "column": 41 - }, - "end": { - "line": 284, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9145, - "end": 9146, - "loc": { - "start": { - "line": 284, - "column": 42 - }, - "end": { - "line": 284, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 9152, - "end": 9155, - "loc": { - "start": { - "line": 286, - "column": 4 - }, - "end": { - "line": 286, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9155, - "end": 9156, - "loc": { - "start": { - "line": 286, - "column": 7 - }, - "end": { - "line": 286, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "write", - "start": 9156, - "end": 9161, - "loc": { - "start": { - "line": 286, - "column": 8 - }, - "end": { - "line": 286, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9161, - "end": 9162, - "loc": { - "start": { - "line": 286, - "column": 13 - }, - "end": { - "line": 286, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 9162, - "end": 9170, - "loc": { - "start": { - "line": 286, - "column": 14 - }, - "end": { - "line": 286, - "column": 22 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9170, - "end": 9171, - "loc": { - "start": { - "line": 286, - "column": 22 - }, - "end": { - "line": 286, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9171, - "end": 9172, - "loc": { - "start": { - "line": 286, - "column": 23 - }, - "end": { - "line": 286, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 9177, - "end": 9180, - "loc": { - "start": { - "line": 287, - "column": 4 - }, - "end": { - "line": 287, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9180, - "end": 9181, - "loc": { - "start": { - "line": 287, - "column": 7 - }, - "end": { - "line": 287, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 9181, - "end": 9184, - "loc": { - "start": { - "line": 287, - "column": 8 - }, - "end": { - "line": 287, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9184, - "end": 9185, - "loc": { - "start": { - "line": 287, - "column": 11 - }, - "end": { - "line": 287, - "column": 12 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9185, - "end": 9186, - "loc": { - "start": { - "line": 287, - "column": 12 - }, - "end": { - "line": 287, - "column": 13 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9186, - "end": 9187, - "loc": { - "start": { - "line": 287, - "column": 13 - }, - "end": { - "line": 287, - "column": 14 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9190, - "end": 9191, - "loc": { - "start": { - "line": 288, - "column": 2 - }, - "end": { - "line": 288, - "column": 3 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9193, - "end": 9194, - "loc": { - "start": { - "line": 290, - "column": 0 - }, - "end": { - "line": 290, - "column": 1 - } - } - }, - { - "type": { - "label": "export", - "keyword": "export", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "export", - "start": 9196, - "end": 9202, - "loc": { - "start": { - "line": 292, - "column": 0 - }, - "end": { - "line": 292, - "column": 6 - } - } - }, - { - "type": { - "label": "default", - "keyword": "default", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "default", - "start": 9203, - "end": 9210, - "loc": { - "start": { - "line": 292, - "column": 7 - }, - "end": { - "line": 292, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "DocumentGroup", - "start": 9211, - "end": 9224, - "loc": { - "start": { - "line": 292, - "column": 15 - }, - "end": { - "line": 292, - "column": 28 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9224, - "end": 9225, - "loc": { - "start": { - "line": 292, - "column": 28 - }, - "end": { - "line": 292, - "column": 29 - } - } - }, - { - "type": { - "label": "eof", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9226, - "end": 9226, - "loc": { - "start": { - "line": 293, - "column": 0 - }, - "end": { - "line": 293, - "column": 0 - } - } - } - ] -} \ No newline at end of file diff --git a/docs/ast/source/documentGroupTemplate.js.json b/docs/ast/source/documentGroupTemplate.js.json deleted file mode 100644 index 22a9194b..00000000 --- a/docs/ast/source/documentGroupTemplate.js.json +++ /dev/null @@ -1,7959 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 3911, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 106, - "column": 0 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 3911, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 106, - "column": 0 - } - }, - "sourceType": "module", - "body": [ - { - "type": "ImportDeclaration", - "start": 14, - "end": 40, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 26 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - } - }, - "local": { - "type": "Identifier", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - }, - "identifierName": "https" - }, - "name": "https" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 18 - }, - "end": { - "line": 2, - "column": 25 - } - }, - "extra": { - "rawValue": "https", - "raw": "'https'" - }, - "value": "https" - } - }, - { - "type": "ImportDeclaration", - "start": 41, - "end": 122, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 5, - "column": 18 - } - }, - "specifiers": [ - { - "type": "ImportSpecifier", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - } - }, - "imported": { - "type": "Identifier", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "local": { - "type": "Identifier", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - } - }, - { - "type": "ImportSpecifier", - "start": 69, - "end": 81, - "loc": { - "start": { - "line": 4, - "column": 19 - }, - "end": { - "line": 4, - "column": 31 - } - }, - "imported": { - "type": "Identifier", - "start": 69, - "end": 81, - "loc": { - "start": { - "line": 4, - "column": 19 - }, - "end": { - "line": 4, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "local": { - "type": "Identifier", - "start": 69, - "end": 81, - "loc": { - "start": { - "line": 4, - "column": 19 - }, - "end": { - "line": 4, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - } - }, - { - "type": "ImportSpecifier", - "start": 83, - "end": 102, - "loc": { - "start": { - "line": 4, - "column": 33 - }, - "end": { - "line": 4, - "column": 52 - } - }, - "imported": { - "type": "Identifier", - "start": 83, - "end": 102, - "loc": { - "start": { - "line": 4, - "column": 33 - }, - "end": { - "line": 4, - "column": 52 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "local": { - "type": "Identifier", - "start": 83, - "end": 102, - "loc": { - "start": { - "line": 4, - "column": 33 - }, - "end": { - "line": 4, - "column": 52 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 111, - "end": 121, - "loc": { - "start": { - "line": 5, - "column": 7 - }, - "end": { - "line": 5, - "column": 17 - } - }, - "extra": { - "rawValue": "./common", - "raw": "'./common'" - }, - "value": "./common" - }, - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document Group Template methods\n ", - "start": 125, - "end": 167, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 10, - "column": 3 - } - } - } - ] - }, - { - "type": "Identifier", - "start": 168, - "end": 3870, - "loc": { - "start": { - "line": 11, - "column": 0 - }, - "end": { - "line": 102, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 174, - "end": 195, - "loc": { - "start": { - "line": 11, - "column": 6 - }, - "end": { - "line": 11, - "column": 27 - }, - "identifierName": "DocumentGroupTemplate" - }, - "name": "DocumentGroupTemplate", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 196, - "end": 3870, - "loc": { - "start": { - "line": 11, - "column": 28 - }, - "end": { - "line": 102, - "column": 1 - } - }, - "body": [ - { - "type": "ClassMethod", - "start": 3182, - "end": 3868, - "loc": { - "start": { - "line": 73, - "column": 2 - }, - "end": { - "line": 101, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3189, - "end": 3195, - "loc": { - "start": { - "line": 73, - "column": 9 - }, - "end": { - "line": 73, - "column": 15 - }, - "identifierName": "create" - }, - "name": "create" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 3197, - "end": 3277, - "loc": { - "start": { - "line": 73, - "column": 17 - }, - "end": { - "line": 78, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3203, - "end": 3208, - "loc": { - "start": { - "line": 74, - "column": 4 - }, - "end": { - "line": 74, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3203, - "end": 3208, - "loc": { - "start": { - "line": 74, - "column": 4 - }, - "end": { - "line": 74, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 3203, - "end": 3208, - "loc": { - "start": { - "line": 74, - "column": 4 - }, - "end": { - "line": 74, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3214, - "end": 3226, - "loc": { - "start": { - "line": 75, - "column": 4 - }, - "end": { - "line": 75, - "column": 16 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3214, - "end": 3226, - "loc": { - "start": { - "line": 75, - "column": 4 - }, - "end": { - "line": 75, - "column": 16 - }, - "identifierName": "template_ids" - }, - "name": "template_ids" - }, - "value": { - "type": "Identifier", - "start": 3214, - "end": 3226, - "loc": { - "start": { - "line": 75, - "column": 4 - }, - "end": { - "line": 75, - "column": 16 - }, - "identifierName": "template_ids" - }, - "name": "template_ids" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3232, - "end": 3251, - "loc": { - "start": { - "line": 76, - "column": 4 - }, - "end": { - "line": 76, - "column": 23 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3232, - "end": 3251, - "loc": { - "start": { - "line": 76, - "column": 4 - }, - "end": { - "line": 76, - "column": 23 - }, - "identifierName": "template_group_name" - }, - "name": "template_group_name" - }, - "value": { - "type": "Identifier", - "start": 3232, - "end": 3251, - "loc": { - "start": { - "line": 76, - "column": 4 - }, - "end": { - "line": 76, - "column": 23 - }, - "identifierName": "template_group_name" - }, - "name": "template_group_name" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3257, - "end": 3272, - "loc": { - "start": { - "line": 77, - "column": 4 - }, - "end": { - "line": 77, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3257, - "end": 3272, - "loc": { - "start": { - "line": 77, - "column": 4 - }, - "end": { - "line": 77, - "column": 19 - }, - "identifierName": "routing_details" - }, - "name": "routing_details" - }, - "value": { - "type": "Identifier", - "start": 3257, - "end": 3272, - "loc": { - "start": { - "line": 77, - "column": 4 - }, - "end": { - "line": 77, - "column": 19 - }, - "identifierName": "routing_details" - }, - "name": "routing_details" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 3279, - "end": 3287, - "loc": { - "start": { - "line": 78, - "column": 5 - }, - "end": { - "line": 78, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 3289, - "end": 3868, - "loc": { - "start": { - "line": 78, - "column": 15 - }, - "end": { - "line": 101, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 3295, - "end": 3406, - "loc": { - "start": { - "line": 79, - "column": 4 - }, - "end": { - "line": 83, - "column": 7 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3301, - "end": 3405, - "loc": { - "start": { - "line": 79, - "column": 10 - }, - "end": { - "line": 83, - "column": 6 - } - }, - "id": { - "type": "Identifier", - "start": 3301, - "end": 3309, - "loc": { - "start": { - "line": 79, - "column": 10 - }, - "end": { - "line": 79, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 3312, - "end": 3405, - "loc": { - "start": { - "line": 79, - "column": 21 - }, - "end": { - "line": 83, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3312, - "end": 3326, - "loc": { - "start": { - "line": 79, - "column": 21 - }, - "end": { - "line": 79, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 3312, - "end": 3316, - "loc": { - "start": { - "line": 79, - "column": 21 - }, - "end": { - "line": 79, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 3317, - "end": 3326, - "loc": { - "start": { - "line": 79, - "column": 26 - }, - "end": { - "line": 79, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 3327, - "end": 3404, - "loc": { - "start": { - "line": 79, - "column": 36 - }, - "end": { - "line": 83, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3335, - "end": 3347, - "loc": { - "start": { - "line": 80, - "column": 6 - }, - "end": { - "line": 80, - "column": 18 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3335, - "end": 3347, - "loc": { - "start": { - "line": 80, - "column": 6 - }, - "end": { - "line": 80, - "column": 18 - }, - "identifierName": "template_ids" - }, - "name": "template_ids" - }, - "value": { - "type": "Identifier", - "start": 3335, - "end": 3347, - "loc": { - "start": { - "line": 80, - "column": 6 - }, - "end": { - "line": 80, - "column": 18 - }, - "identifierName": "template_ids" - }, - "name": "template_ids" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3355, - "end": 3374, - "loc": { - "start": { - "line": 81, - "column": 6 - }, - "end": { - "line": 81, - "column": 25 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3355, - "end": 3374, - "loc": { - "start": { - "line": 81, - "column": 6 - }, - "end": { - "line": 81, - "column": 25 - }, - "identifierName": "template_group_name" - }, - "name": "template_group_name" - }, - "value": { - "type": "Identifier", - "start": 3355, - "end": 3374, - "loc": { - "start": { - "line": 81, - "column": 6 - }, - "end": { - "line": 81, - "column": 25 - }, - "identifierName": "template_group_name" - }, - "name": "template_group_name" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3382, - "end": 3397, - "loc": { - "start": { - "line": 82, - "column": 6 - }, - "end": { - "line": 82, - "column": 21 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3382, - "end": 3397, - "loc": { - "start": { - "line": 82, - "column": 6 - }, - "end": { - "line": 82, - "column": 21 - }, - "identifierName": "routing_details" - }, - "name": "routing_details" - }, - "value": { - "type": "Identifier", - "start": 3382, - "end": 3397, - "loc": { - "start": { - "line": 82, - "column": 6 - }, - "end": { - "line": 82, - "column": 21 - }, - "identifierName": "routing_details" - }, - "name": "routing_details" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 3411, - "end": 3823, - "loc": { - "start": { - "line": 84, - "column": 4 - }, - "end": { - "line": 97, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3417, - "end": 3822, - "loc": { - "start": { - "line": 84, - "column": 10 - }, - "end": { - "line": 97, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 3417, - "end": 3420, - "loc": { - "start": { - "line": 84, - "column": 10 - }, - "end": { - "line": 84, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 3423, - "end": 3822, - "loc": { - "start": { - "line": 84, - "column": 16 - }, - "end": { - "line": 97, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3423, - "end": 3789, - "loc": { - "start": { - "line": 84, - "column": 16 - }, - "end": { - "line": 97, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 3423, - "end": 3779, - "loc": { - "start": { - "line": 84, - "column": 16 - }, - "end": { - "line": 96, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3423, - "end": 3443, - "loc": { - "start": { - "line": 84, - "column": 16 - }, - "end": { - "line": 85, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 3423, - "end": 3428, - "loc": { - "start": { - "line": 84, - "column": 16 - }, - "end": { - "line": 84, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 3436, - "end": 3443, - "loc": { - "start": { - "line": 85, - "column": 7 - }, - "end": { - "line": 85, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 3444, - "end": 3751, - "loc": { - "start": { - "line": 85, - "column": 15 - }, - "end": { - "line": 96, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 3444, - "end": 3463, - "loc": { - "start": { - "line": 85, - "column": 15 - }, - "end": { - "line": 85, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 3464, - "end": 3750, - "loc": { - "start": { - "line": 85, - "column": 35 - }, - "end": { - "line": 96, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3474, - "end": 3488, - "loc": { - "start": { - "line": 86, - "column": 8 - }, - "end": { - "line": 86, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3474, - "end": 3480, - "loc": { - "start": { - "line": 86, - "column": 8 - }, - "end": { - "line": 86, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 3482, - "end": 3488, - "loc": { - "start": { - "line": 86, - "column": 16 - }, - "end": { - "line": 86, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 3498, - "end": 3529, - "loc": { - "start": { - "line": 87, - "column": 8 - }, - "end": { - "line": 87, - "column": 39 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3498, - "end": 3502, - "loc": { - "start": { - "line": 87, - "column": 8 - }, - "end": { - "line": 87, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 3504, - "end": 3529, - "loc": { - "start": { - "line": 87, - "column": 14 - }, - "end": { - "line": 87, - "column": 39 - } - }, - "extra": { - "rawValue": "/documentgroup/template", - "raw": "'/documentgroup/template'" - }, - "value": "/documentgroup/template" - } - }, - { - "type": "ObjectProperty", - "start": 3539, - "end": 3608, - "loc": { - "start": { - "line": 88, - "column": 8 - }, - "end": { - "line": 91, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3539, - "end": 3552, - "loc": { - "start": { - "line": 88, - "column": 8 - }, - "end": { - "line": 88, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 3554, - "end": 3608, - "loc": { - "start": { - "line": 88, - "column": 23 - }, - "end": { - "line": 91, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3566, - "end": 3580, - "loc": { - "start": { - "line": 89, - "column": 10 - }, - "end": { - "line": 89, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3566, - "end": 3570, - "loc": { - "start": { - "line": 89, - "column": 10 - }, - "end": { - "line": 89, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 3572, - "end": 3580, - "loc": { - "start": { - "line": 89, - "column": 16 - }, - "end": { - "line": 89, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 3592, - "end": 3597, - "loc": { - "start": { - "line": 90, - "column": 10 - }, - "end": { - "line": 90, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3592, - "end": 3597, - "loc": { - "start": { - "line": 90, - "column": 10 - }, - "end": { - "line": 90, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 3592, - "end": 3597, - "loc": { - "start": { - "line": 90, - "column": 10 - }, - "end": { - "line": 90, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 3618, - "end": 3741, - "loc": { - "start": { - "line": 92, - "column": 8 - }, - "end": { - "line": 95, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3618, - "end": 3625, - "loc": { - "start": { - "line": 92, - "column": 8 - }, - "end": { - "line": 92, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 3627, - "end": 3741, - "loc": { - "start": { - "line": 92, - "column": 17 - }, - "end": { - "line": 95, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3639, - "end": 3673, - "loc": { - "start": { - "line": 93, - "column": 10 - }, - "end": { - "line": 93, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 3639, - "end": 3653, - "loc": { - "start": { - "line": 93, - "column": 10 - }, - "end": { - "line": 93, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 3655, - "end": 3673, - "loc": { - "start": { - "line": 93, - "column": 26 - }, - "end": { - "line": 93, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 3685, - "end": 3730, - "loc": { - "start": { - "line": 94, - "column": 10 - }, - "end": { - "line": 94, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 3685, - "end": 3701, - "loc": { - "start": { - "line": 94, - "column": 10 - }, - "end": { - "line": 94, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 3703, - "end": 3730, - "loc": { - "start": { - "line": 94, - "column": 28 - }, - "end": { - "line": 94, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3703, - "end": 3720, - "loc": { - "start": { - "line": 94, - "column": 28 - }, - "end": { - "line": 94, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 3703, - "end": 3709, - "loc": { - "start": { - "line": 94, - "column": 28 - }, - "end": { - "line": 94, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 3710, - "end": 3720, - "loc": { - "start": { - "line": 94, - "column": 35 - }, - "end": { - "line": 94, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 3721, - "end": 3729, - "loc": { - "start": { - "line": 94, - "column": 46 - }, - "end": { - "line": 94, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 3753, - "end": 3778, - "loc": { - "start": { - "line": 96, - "column": 10 - }, - "end": { - "line": 96, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 3753, - "end": 3768, - "loc": { - "start": { - "line": 96, - "column": 10 - }, - "end": { - "line": 96, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3769, - "end": 3777, - "loc": { - "start": { - "line": 96, - "column": 26 - }, - "end": { - "line": 96, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 3787, - "end": 3789, - "loc": { - "start": { - "line": 97, - "column": 7 - }, - "end": { - "line": 97, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 3790, - "end": 3797, - "loc": { - "start": { - "line": 97, - "column": 10 - }, - "end": { - "line": 97, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 3799, - "end": 3821, - "loc": { - "start": { - "line": 97, - "column": 19 - }, - "end": { - "line": 97, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 3799, - "end": 3811, - "loc": { - "start": { - "line": 97, - "column": 19 - }, - "end": { - "line": 97, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3812, - "end": 3820, - "loc": { - "start": { - "line": 97, - "column": 32 - }, - "end": { - "line": 97, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 3829, - "end": 3849, - "loc": { - "start": { - "line": 99, - "column": 4 - }, - "end": { - "line": 99, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 3829, - "end": 3848, - "loc": { - "start": { - "line": 99, - "column": 4 - }, - "end": { - "line": 99, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3829, - "end": 3838, - "loc": { - "start": { - "line": 99, - "column": 4 - }, - "end": { - "line": 99, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 3829, - "end": 3832, - "loc": { - "start": { - "line": 99, - "column": 4 - }, - "end": { - "line": 99, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 3833, - "end": 3838, - "loc": { - "start": { - "line": 99, - "column": 8 - }, - "end": { - "line": 99, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 3839, - "end": 3847, - "loc": { - "start": { - "line": 99, - "column": 14 - }, - "end": { - "line": 99, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 3854, - "end": 3864, - "loc": { - "start": { - "line": 100, - "column": 4 - }, - "end": { - "line": 100, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 3854, - "end": 3863, - "loc": { - "start": { - "line": 100, - "column": 4 - }, - "end": { - "line": 100, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3854, - "end": 3861, - "loc": { - "start": { - "line": 100, - "column": 4 - }, - "end": { - "line": 100, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 3854, - "end": 3857, - "loc": { - "start": { - "line": 100, - "column": 4 - }, - "end": { - "line": 100, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 3858, - "end": 3861, - "loc": { - "start": { - "line": 100, - "column": 8 - }, - "end": { - "line": 100, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document Group Template invite email congfigurations\n * @typedef {Object} DocumentGroupTemplateInviteEmail\n * @property {string} [email] - signer's email\n * @property {string} [subject] - subject of invitation email\n * @property {string} [message] - content of invitation email\n * @property {number} [expiration_days] - expiration of invite in days\n * @property {number} [reminder] - number of days in which to remind about invite via email\n * @property {boolean} [hasSignActions] - does signer need to sign documents of document group\n * @property {string} [allow_reassign] - allow reassigning of signer\n ", - "start": 201, - "end": 836, - "loc": { - "start": { - "line": 13, - "column": 2 - }, - "end": { - "line": 23, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group Template invite action congfigurations\n * @typedef {Object} DocumentGroupTemplateInviteAction\n * @property {string} [email] - signer's email\n * @property {string} [role_name] - signer's role name\n * @property {string} [action] - name of action with document in signing step\n * @property {string} [document_id] - ID of document in specific signing step\n * @property {string} [document_name] - name of document in specific signing step\n * @property {string} [role_viewName] - signer's role display name\n * @property {string} [allow_reassign] - allow reassigning of signer\n * @property {string} decline_by_signature - signer can decline invite\n ", - "start": 840, - "end": 1528, - "loc": { - "start": { - "line": 25, - "column": 2 - }, - "end": { - "line": 36, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group Template invite step congfigurations\n * @typedef {Object} DocumentGroupTemplateInviteStep\n * @property {number} [order] - an order number of invitation step\n * @property {DocumentGroupTemplateInviteEmail[]} [invite_emails] - Document Group Template invite emails settings\n * @property {DocumentGroupTemplateInviteAction[]} invite_actions - Document Group Template invite actions settings\n ", - "start": 1532, - "end": 1957, - "loc": { - "start": { - "line": 38, - "column": 2 - }, - "end": { - "line": 44, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group Template invite congfigurations\n * @typedef {Object} DocumentGroupTemplateRoutingDetails\n * @property {DocumentGroupTemplateInviteStep[]} invite_steps - Document Group Template invite steps settings\n * @property {number} [include_email_attachments] - TODO:\n ", - "start": 1961, - "end": 2253, - "loc": { - "start": { - "line": 46, - "column": 2 - }, - "end": { - "line": 51, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create Document Group Template payload\n * @typedef {Object} DocumentGroupTemplateCreateParams\n * @property {string} token - your auth token\n * @property {string[]} template_ids - array of template ids for Document Group Template creation\n * @property {string} template_group_name - new name of document group\n * @property {DocumentGroupTemplateRoutingDetails} routing_details - invite congfigurations\n ", - "start": 2257, - "end": 2682, - "loc": { - "start": { - "line": 53, - "column": 2 - }, - "end": { - "line": 60, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create Document Group Template response data\n * @typedef {Object} DocumentGroupTemplateCreateResponse\n * @property {string} id - Document Group Template unique id\n ", - "start": 2686, - "end": 2867, - "loc": { - "start": { - "line": 62, - "column": 2 - }, - "end": { - "line": 66, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates Document Group Template with specified templates and settings\n * @param {DocumentGroupTemplateCreateParams} data - create Document Group Template payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupTemplateCreateResponse)} [callback] - error first node.js callback\n ", - "start": 2871, - "end": 3179, - "loc": { - "start": { - "line": 68, - "column": 2 - }, - "end": { - "line": 72, - "column": 5 - } - } - } - ] - } - ] - }, - "leadingComments": [], - "name": "_", - "trailingComments": [] - }, - { - "type": "Identifier", - "start": 3873, - "end": 3910, - "loc": { - "start": { - "line": 105, - "column": 0 - }, - "end": { - "line": 105, - "column": 37 - } - }, - "declaration": { - "type": "Identifier", - "start": 3888, - "end": 3909, - "loc": { - "start": { - "line": 105, - "column": 15 - }, - "end": { - "line": 105, - "column": 36 - }, - "identifierName": "DocumentGroupTemplate" - }, - "name": "DocumentGroupTemplate" - }, - "name": "_", - "leadingComments": [], - "trailingComments": [] - }, - { - "type": "ExportDefaultDeclaration", - "start": 3873, - "end": 3910, - "loc": { - "start": { - "line": 105, - "column": 0 - }, - "end": { - "line": 105, - "column": 37 - } - }, - "declaration": { - "type": "ClassDeclaration", - "start": 168, - "end": 3870, - "loc": { - "start": { - "line": 11, - "column": 0 - }, - "end": { - "line": 102, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 174, - "end": 195, - "loc": { - "start": { - "line": 11, - "column": 6 - }, - "end": { - "line": 11, - "column": 27 - }, - "identifierName": "DocumentGroupTemplate" - }, - "name": "DocumentGroupTemplate", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 196, - "end": 3870, - "loc": { - "start": { - "line": 11, - "column": 28 - }, - "end": { - "line": 102, - "column": 1 - } - }, - "body": [ - { - "type": "ClassMethod", - "start": 3182, - "end": 3868, - "loc": { - "start": { - "line": 73, - "column": 2 - }, - "end": { - "line": 101, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3189, - "end": 3195, - "loc": { - "start": { - "line": 73, - "column": 9 - }, - "end": { - "line": 73, - "column": 15 - }, - "identifierName": "create" - }, - "name": "create" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 3197, - "end": 3277, - "loc": { - "start": { - "line": 73, - "column": 17 - }, - "end": { - "line": 78, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3203, - "end": 3208, - "loc": { - "start": { - "line": 74, - "column": 4 - }, - "end": { - "line": 74, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3203, - "end": 3208, - "loc": { - "start": { - "line": 74, - "column": 4 - }, - "end": { - "line": 74, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 3203, - "end": 3208, - "loc": { - "start": { - "line": 74, - "column": 4 - }, - "end": { - "line": 74, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3214, - "end": 3226, - "loc": { - "start": { - "line": 75, - "column": 4 - }, - "end": { - "line": 75, - "column": 16 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3214, - "end": 3226, - "loc": { - "start": { - "line": 75, - "column": 4 - }, - "end": { - "line": 75, - "column": 16 - }, - "identifierName": "template_ids" - }, - "name": "template_ids" - }, - "value": { - "type": "Identifier", - "start": 3214, - "end": 3226, - "loc": { - "start": { - "line": 75, - "column": 4 - }, - "end": { - "line": 75, - "column": 16 - }, - "identifierName": "template_ids" - }, - "name": "template_ids" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3232, - "end": 3251, - "loc": { - "start": { - "line": 76, - "column": 4 - }, - "end": { - "line": 76, - "column": 23 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3232, - "end": 3251, - "loc": { - "start": { - "line": 76, - "column": 4 - }, - "end": { - "line": 76, - "column": 23 - }, - "identifierName": "template_group_name" - }, - "name": "template_group_name" - }, - "value": { - "type": "Identifier", - "start": 3232, - "end": 3251, - "loc": { - "start": { - "line": 76, - "column": 4 - }, - "end": { - "line": 76, - "column": 23 - }, - "identifierName": "template_group_name" - }, - "name": "template_group_name" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3257, - "end": 3272, - "loc": { - "start": { - "line": 77, - "column": 4 - }, - "end": { - "line": 77, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3257, - "end": 3272, - "loc": { - "start": { - "line": 77, - "column": 4 - }, - "end": { - "line": 77, - "column": 19 - }, - "identifierName": "routing_details" - }, - "name": "routing_details" - }, - "value": { - "type": "Identifier", - "start": 3257, - "end": 3272, - "loc": { - "start": { - "line": 77, - "column": 4 - }, - "end": { - "line": 77, - "column": 19 - }, - "identifierName": "routing_details" - }, - "name": "routing_details" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 3279, - "end": 3287, - "loc": { - "start": { - "line": 78, - "column": 5 - }, - "end": { - "line": 78, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 3289, - "end": 3868, - "loc": { - "start": { - "line": 78, - "column": 15 - }, - "end": { - "line": 101, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 3295, - "end": 3406, - "loc": { - "start": { - "line": 79, - "column": 4 - }, - "end": { - "line": 83, - "column": 7 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3301, - "end": 3405, - "loc": { - "start": { - "line": 79, - "column": 10 - }, - "end": { - "line": 83, - "column": 6 - } - }, - "id": { - "type": "Identifier", - "start": 3301, - "end": 3309, - "loc": { - "start": { - "line": 79, - "column": 10 - }, - "end": { - "line": 79, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 3312, - "end": 3405, - "loc": { - "start": { - "line": 79, - "column": 21 - }, - "end": { - "line": 83, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3312, - "end": 3326, - "loc": { - "start": { - "line": 79, - "column": 21 - }, - "end": { - "line": 79, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 3312, - "end": 3316, - "loc": { - "start": { - "line": 79, - "column": 21 - }, - "end": { - "line": 79, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 3317, - "end": 3326, - "loc": { - "start": { - "line": 79, - "column": 26 - }, - "end": { - "line": 79, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 3327, - "end": 3404, - "loc": { - "start": { - "line": 79, - "column": 36 - }, - "end": { - "line": 83, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3335, - "end": 3347, - "loc": { - "start": { - "line": 80, - "column": 6 - }, - "end": { - "line": 80, - "column": 18 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3335, - "end": 3347, - "loc": { - "start": { - "line": 80, - "column": 6 - }, - "end": { - "line": 80, - "column": 18 - }, - "identifierName": "template_ids" - }, - "name": "template_ids" - }, - "value": { - "type": "Identifier", - "start": 3335, - "end": 3347, - "loc": { - "start": { - "line": 80, - "column": 6 - }, - "end": { - "line": 80, - "column": 18 - }, - "identifierName": "template_ids" - }, - "name": "template_ids" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3355, - "end": 3374, - "loc": { - "start": { - "line": 81, - "column": 6 - }, - "end": { - "line": 81, - "column": 25 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3355, - "end": 3374, - "loc": { - "start": { - "line": 81, - "column": 6 - }, - "end": { - "line": 81, - "column": 25 - }, - "identifierName": "template_group_name" - }, - "name": "template_group_name" - }, - "value": { - "type": "Identifier", - "start": 3355, - "end": 3374, - "loc": { - "start": { - "line": 81, - "column": 6 - }, - "end": { - "line": 81, - "column": 25 - }, - "identifierName": "template_group_name" - }, - "name": "template_group_name" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3382, - "end": 3397, - "loc": { - "start": { - "line": 82, - "column": 6 - }, - "end": { - "line": 82, - "column": 21 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3382, - "end": 3397, - "loc": { - "start": { - "line": 82, - "column": 6 - }, - "end": { - "line": 82, - "column": 21 - }, - "identifierName": "routing_details" - }, - "name": "routing_details" - }, - "value": { - "type": "Identifier", - "start": 3382, - "end": 3397, - "loc": { - "start": { - "line": 82, - "column": 6 - }, - "end": { - "line": 82, - "column": 21 - }, - "identifierName": "routing_details" - }, - "name": "routing_details" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 3411, - "end": 3823, - "loc": { - "start": { - "line": 84, - "column": 4 - }, - "end": { - "line": 97, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3417, - "end": 3822, - "loc": { - "start": { - "line": 84, - "column": 10 - }, - "end": { - "line": 97, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 3417, - "end": 3420, - "loc": { - "start": { - "line": 84, - "column": 10 - }, - "end": { - "line": 84, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 3423, - "end": 3822, - "loc": { - "start": { - "line": 84, - "column": 16 - }, - "end": { - "line": 97, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3423, - "end": 3789, - "loc": { - "start": { - "line": 84, - "column": 16 - }, - "end": { - "line": 97, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 3423, - "end": 3779, - "loc": { - "start": { - "line": 84, - "column": 16 - }, - "end": { - "line": 96, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3423, - "end": 3443, - "loc": { - "start": { - "line": 84, - "column": 16 - }, - "end": { - "line": 85, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 3423, - "end": 3428, - "loc": { - "start": { - "line": 84, - "column": 16 - }, - "end": { - "line": 84, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 3436, - "end": 3443, - "loc": { - "start": { - "line": 85, - "column": 7 - }, - "end": { - "line": 85, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 3444, - "end": 3751, - "loc": { - "start": { - "line": 85, - "column": 15 - }, - "end": { - "line": 96, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 3444, - "end": 3463, - "loc": { - "start": { - "line": 85, - "column": 15 - }, - "end": { - "line": 85, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 3464, - "end": 3750, - "loc": { - "start": { - "line": 85, - "column": 35 - }, - "end": { - "line": 96, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3474, - "end": 3488, - "loc": { - "start": { - "line": 86, - "column": 8 - }, - "end": { - "line": 86, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3474, - "end": 3480, - "loc": { - "start": { - "line": 86, - "column": 8 - }, - "end": { - "line": 86, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 3482, - "end": 3488, - "loc": { - "start": { - "line": 86, - "column": 16 - }, - "end": { - "line": 86, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 3498, - "end": 3529, - "loc": { - "start": { - "line": 87, - "column": 8 - }, - "end": { - "line": 87, - "column": 39 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3498, - "end": 3502, - "loc": { - "start": { - "line": 87, - "column": 8 - }, - "end": { - "line": 87, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 3504, - "end": 3529, - "loc": { - "start": { - "line": 87, - "column": 14 - }, - "end": { - "line": 87, - "column": 39 - } - }, - "extra": { - "rawValue": "/documentgroup/template", - "raw": "'/documentgroup/template'" - }, - "value": "/documentgroup/template" - } - }, - { - "type": "ObjectProperty", - "start": 3539, - "end": 3608, - "loc": { - "start": { - "line": 88, - "column": 8 - }, - "end": { - "line": 91, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3539, - "end": 3552, - "loc": { - "start": { - "line": 88, - "column": 8 - }, - "end": { - "line": 88, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 3554, - "end": 3608, - "loc": { - "start": { - "line": 88, - "column": 23 - }, - "end": { - "line": 91, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3566, - "end": 3580, - "loc": { - "start": { - "line": 89, - "column": 10 - }, - "end": { - "line": 89, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3566, - "end": 3570, - "loc": { - "start": { - "line": 89, - "column": 10 - }, - "end": { - "line": 89, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 3572, - "end": 3580, - "loc": { - "start": { - "line": 89, - "column": 16 - }, - "end": { - "line": 89, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 3592, - "end": 3597, - "loc": { - "start": { - "line": 90, - "column": 10 - }, - "end": { - "line": 90, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3592, - "end": 3597, - "loc": { - "start": { - "line": 90, - "column": 10 - }, - "end": { - "line": 90, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 3592, - "end": 3597, - "loc": { - "start": { - "line": 90, - "column": 10 - }, - "end": { - "line": 90, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 3618, - "end": 3741, - "loc": { - "start": { - "line": 92, - "column": 8 - }, - "end": { - "line": 95, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3618, - "end": 3625, - "loc": { - "start": { - "line": 92, - "column": 8 - }, - "end": { - "line": 92, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 3627, - "end": 3741, - "loc": { - "start": { - "line": 92, - "column": 17 - }, - "end": { - "line": 95, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3639, - "end": 3673, - "loc": { - "start": { - "line": 93, - "column": 10 - }, - "end": { - "line": 93, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 3639, - "end": 3653, - "loc": { - "start": { - "line": 93, - "column": 10 - }, - "end": { - "line": 93, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 3655, - "end": 3673, - "loc": { - "start": { - "line": 93, - "column": 26 - }, - "end": { - "line": 93, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 3685, - "end": 3730, - "loc": { - "start": { - "line": 94, - "column": 10 - }, - "end": { - "line": 94, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 3685, - "end": 3701, - "loc": { - "start": { - "line": 94, - "column": 10 - }, - "end": { - "line": 94, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 3703, - "end": 3730, - "loc": { - "start": { - "line": 94, - "column": 28 - }, - "end": { - "line": 94, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3703, - "end": 3720, - "loc": { - "start": { - "line": 94, - "column": 28 - }, - "end": { - "line": 94, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 3703, - "end": 3709, - "loc": { - "start": { - "line": 94, - "column": 28 - }, - "end": { - "line": 94, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 3710, - "end": 3720, - "loc": { - "start": { - "line": 94, - "column": 35 - }, - "end": { - "line": 94, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 3721, - "end": 3729, - "loc": { - "start": { - "line": 94, - "column": 46 - }, - "end": { - "line": 94, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 3753, - "end": 3778, - "loc": { - "start": { - "line": 96, - "column": 10 - }, - "end": { - "line": 96, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 3753, - "end": 3768, - "loc": { - "start": { - "line": 96, - "column": 10 - }, - "end": { - "line": 96, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3769, - "end": 3777, - "loc": { - "start": { - "line": 96, - "column": 26 - }, - "end": { - "line": 96, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 3787, - "end": 3789, - "loc": { - "start": { - "line": 97, - "column": 7 - }, - "end": { - "line": 97, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 3790, - "end": 3797, - "loc": { - "start": { - "line": 97, - "column": 10 - }, - "end": { - "line": 97, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 3799, - "end": 3821, - "loc": { - "start": { - "line": 97, - "column": 19 - }, - "end": { - "line": 97, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 3799, - "end": 3811, - "loc": { - "start": { - "line": 97, - "column": 19 - }, - "end": { - "line": 97, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3812, - "end": 3820, - "loc": { - "start": { - "line": 97, - "column": 32 - }, - "end": { - "line": 97, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 3829, - "end": 3849, - "loc": { - "start": { - "line": 99, - "column": 4 - }, - "end": { - "line": 99, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 3829, - "end": 3848, - "loc": { - "start": { - "line": 99, - "column": 4 - }, - "end": { - "line": 99, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3829, - "end": 3838, - "loc": { - "start": { - "line": 99, - "column": 4 - }, - "end": { - "line": 99, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 3829, - "end": 3832, - "loc": { - "start": { - "line": 99, - "column": 4 - }, - "end": { - "line": 99, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 3833, - "end": 3838, - "loc": { - "start": { - "line": 99, - "column": 8 - }, - "end": { - "line": 99, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 3839, - "end": 3847, - "loc": { - "start": { - "line": 99, - "column": 14 - }, - "end": { - "line": 99, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 3854, - "end": 3864, - "loc": { - "start": { - "line": 100, - "column": 4 - }, - "end": { - "line": 100, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 3854, - "end": 3863, - "loc": { - "start": { - "line": 100, - "column": 4 - }, - "end": { - "line": 100, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3854, - "end": 3861, - "loc": { - "start": { - "line": 100, - "column": 4 - }, - "end": { - "line": 100, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 3854, - "end": 3857, - "loc": { - "start": { - "line": 100, - "column": 4 - }, - "end": { - "line": 100, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 3858, - "end": 3861, - "loc": { - "start": { - "line": 100, - "column": 8 - }, - "end": { - "line": 100, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document Group Template invite email congfigurations\n * @typedef {Object} DocumentGroupTemplateInviteEmail\n * @property {string} [email] - signer's email\n * @property {string} [subject] - subject of invitation email\n * @property {string} [message] - content of invitation email\n * @property {number} [expiration_days] - expiration of invite in days\n * @property {number} [reminder] - number of days in which to remind about invite via email\n * @property {boolean} [hasSignActions] - does signer need to sign documents of document group\n * @property {string} [allow_reassign] - allow reassigning of signer\n ", - "start": 201, - "end": 836, - "loc": { - "start": { - "line": 13, - "column": 2 - }, - "end": { - "line": 23, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group Template invite action congfigurations\n * @typedef {Object} DocumentGroupTemplateInviteAction\n * @property {string} [email] - signer's email\n * @property {string} [role_name] - signer's role name\n * @property {string} [action] - name of action with document in signing step\n * @property {string} [document_id] - ID of document in specific signing step\n * @property {string} [document_name] - name of document in specific signing step\n * @property {string} [role_viewName] - signer's role display name\n * @property {string} [allow_reassign] - allow reassigning of signer\n * @property {string} decline_by_signature - signer can decline invite\n ", - "start": 840, - "end": 1528, - "loc": { - "start": { - "line": 25, - "column": 2 - }, - "end": { - "line": 36, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group Template invite step congfigurations\n * @typedef {Object} DocumentGroupTemplateInviteStep\n * @property {number} [order] - an order number of invitation step\n * @property {DocumentGroupTemplateInviteEmail[]} [invite_emails] - Document Group Template invite emails settings\n * @property {DocumentGroupTemplateInviteAction[]} invite_actions - Document Group Template invite actions settings\n ", - "start": 1532, - "end": 1957, - "loc": { - "start": { - "line": 38, - "column": 2 - }, - "end": { - "line": 44, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group Template invite congfigurations\n * @typedef {Object} DocumentGroupTemplateRoutingDetails\n * @property {DocumentGroupTemplateInviteStep[]} invite_steps - Document Group Template invite steps settings\n * @property {number} [include_email_attachments] - TODO:\n ", - "start": 1961, - "end": 2253, - "loc": { - "start": { - "line": 46, - "column": 2 - }, - "end": { - "line": 51, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create Document Group Template payload\n * @typedef {Object} DocumentGroupTemplateCreateParams\n * @property {string} token - your auth token\n * @property {string[]} template_ids - array of template ids for Document Group Template creation\n * @property {string} template_group_name - new name of document group\n * @property {DocumentGroupTemplateRoutingDetails} routing_details - invite congfigurations\n ", - "start": 2257, - "end": 2682, - "loc": { - "start": { - "line": 53, - "column": 2 - }, - "end": { - "line": 60, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create Document Group Template response data\n * @typedef {Object} DocumentGroupTemplateCreateResponse\n * @property {string} id - Document Group Template unique id\n ", - "start": 2686, - "end": 2867, - "loc": { - "start": { - "line": 62, - "column": 2 - }, - "end": { - "line": 66, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates Document Group Template with specified templates and settings\n * @param {DocumentGroupTemplateCreateParams} data - create Document Group Template payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupTemplateCreateResponse)} [callback] - error first node.js callback\n ", - "start": 2871, - "end": 3179, - "loc": { - "start": { - "line": 68, - "column": 2 - }, - "end": { - "line": 72, - "column": 5 - } - } - } - ] - } - ] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document Group Template methods\n ", - "start": 125, - "end": 167, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 10, - "column": 3 - } - } - } - ], - "__PseudoExport__": false, - "trailingComments": [] - }, - "leadingComments": null - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "value": "use strict", - "extra": { - "raw": "'use strict'", - "rawValue": "use strict" - } - } - } - ] - }, - "comments": [ - { - "type": "CommentBlock", - "value": "*\n * Document Group Template methods\n ", - "start": 125, - "end": 167, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 10, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group Template invite email congfigurations\n * @typedef {Object} DocumentGroupTemplateInviteEmail\n * @property {string} [email] - signer's email\n * @property {string} [subject] - subject of invitation email\n * @property {string} [message] - content of invitation email\n * @property {number} [expiration_days] - expiration of invite in days\n * @property {number} [reminder] - number of days in which to remind about invite via email\n * @property {boolean} [hasSignActions] - does signer need to sign documents of document group\n * @property {string} [allow_reassign] - allow reassigning of signer\n ", - "start": 201, - "end": 836, - "loc": { - "start": { - "line": 13, - "column": 2 - }, - "end": { - "line": 23, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group Template invite action congfigurations\n * @typedef {Object} DocumentGroupTemplateInviteAction\n * @property {string} [email] - signer's email\n * @property {string} [role_name] - signer's role name\n * @property {string} [action] - name of action with document in signing step\n * @property {string} [document_id] - ID of document in specific signing step\n * @property {string} [document_name] - name of document in specific signing step\n * @property {string} [role_viewName] - signer's role display name\n * @property {string} [allow_reassign] - allow reassigning of signer\n * @property {string} decline_by_signature - signer can decline invite\n ", - "start": 840, - "end": 1528, - "loc": { - "start": { - "line": 25, - "column": 2 - }, - "end": { - "line": 36, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group Template invite step congfigurations\n * @typedef {Object} DocumentGroupTemplateInviteStep\n * @property {number} [order] - an order number of invitation step\n * @property {DocumentGroupTemplateInviteEmail[]} [invite_emails] - Document Group Template invite emails settings\n * @property {DocumentGroupTemplateInviteAction[]} invite_actions - Document Group Template invite actions settings\n ", - "start": 1532, - "end": 1957, - "loc": { - "start": { - "line": 38, - "column": 2 - }, - "end": { - "line": 44, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group Template invite congfigurations\n * @typedef {Object} DocumentGroupTemplateRoutingDetails\n * @property {DocumentGroupTemplateInviteStep[]} invite_steps - Document Group Template invite steps settings\n * @property {number} [include_email_attachments] - TODO:\n ", - "start": 1961, - "end": 2253, - "loc": { - "start": { - "line": 46, - "column": 2 - }, - "end": { - "line": 51, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create Document Group Template payload\n * @typedef {Object} DocumentGroupTemplateCreateParams\n * @property {string} token - your auth token\n * @property {string[]} template_ids - array of template ids for Document Group Template creation\n * @property {string} template_group_name - new name of document group\n * @property {DocumentGroupTemplateRoutingDetails} routing_details - invite congfigurations\n ", - "start": 2257, - "end": 2682, - "loc": { - "start": { - "line": 53, - "column": 2 - }, - "end": { - "line": 60, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create Document Group Template response data\n * @typedef {Object} DocumentGroupTemplateCreateResponse\n * @property {string} id - Document Group Template unique id\n ", - "start": 2686, - "end": 2867, - "loc": { - "start": { - "line": 62, - "column": 2 - }, - "end": { - "line": 66, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates Document Group Template with specified templates and settings\n * @param {DocumentGroupTemplateCreateParams} data - create Document Group Template payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupTemplateCreateResponse)} [callback] - error first node.js callback\n ", - "start": 2871, - "end": 3179, - "loc": { - "start": { - "line": 68, - "column": 2 - }, - "end": { - "line": 72, - "column": 5 - } - } - } - ], - "tokens": [ - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "use strict", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 12 - }, - "end": { - "line": 1, - "column": 13 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 14, - "end": 20, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 27, - "end": 31, - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 17 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "https", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 18 - }, - "end": { - "line": 2, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39, - "end": 40, - "loc": { - "start": { - "line": 2, - "column": 25 - }, - "end": { - "line": 2, - "column": 26 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 41, - "end": 47, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 48, - "end": 49, - "loc": { - "start": { - "line": 3, - "column": 7 - }, - "end": { - "line": 3, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 67, - "end": 68, - "loc": { - "start": { - "line": 4, - "column": 17 - }, - "end": { - "line": 4, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 69, - "end": 81, - "loc": { - "start": { - "line": 4, - "column": 19 - }, - "end": { - "line": 4, - "column": 31 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 81, - "end": 82, - "loc": { - "start": { - "line": 4, - "column": 31 - }, - "end": { - "line": 4, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 83, - "end": 102, - "loc": { - "start": { - "line": 4, - "column": 33 - }, - "end": { - "line": 4, - "column": 52 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 102, - "end": 103, - "loc": { - "start": { - "line": 4, - "column": 52 - }, - "end": { - "line": 4, - "column": 53 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 104, - "end": 105, - "loc": { - "start": { - "line": 5, - "column": 0 - }, - "end": { - "line": 5, - "column": 1 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 106, - "end": 110, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 6 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "./common", - "start": 111, - "end": 121, - "loc": { - "start": { - "line": 5, - "column": 7 - }, - "end": { - "line": 5, - "column": 17 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 121, - "end": 122, - "loc": { - "start": { - "line": 5, - "column": 17 - }, - "end": { - "line": 5, - "column": 18 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group Template methods\n ", - "start": 125, - "end": 167, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 10, - "column": 3 - } - } - }, - { - "type": { - "label": "class", - "keyword": "class", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "class", - "start": 168, - "end": 173, - "loc": { - "start": { - "line": 11, - "column": 0 - }, - "end": { - "line": 11, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "DocumentGroupTemplate", - "start": 174, - "end": 195, - "loc": { - "start": { - "line": 11, - "column": 6 - }, - "end": { - "line": 11, - "column": 27 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 196, - "end": 197, - "loc": { - "start": { - "line": 11, - "column": 28 - }, - "end": { - "line": 11, - "column": 29 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group Template invite email congfigurations\n * @typedef {Object} DocumentGroupTemplateInviteEmail\n * @property {string} [email] - signer's email\n * @property {string} [subject] - subject of invitation email\n * @property {string} [message] - content of invitation email\n * @property {number} [expiration_days] - expiration of invite in days\n * @property {number} [reminder] - number of days in which to remind about invite via email\n * @property {boolean} [hasSignActions] - does signer need to sign documents of document group\n * @property {string} [allow_reassign] - allow reassigning of signer\n ", - "start": 201, - "end": 836, - "loc": { - "start": { - "line": 13, - "column": 2 - }, - "end": { - "line": 23, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group Template invite action congfigurations\n * @typedef {Object} DocumentGroupTemplateInviteAction\n * @property {string} [email] - signer's email\n * @property {string} [role_name] - signer's role name\n * @property {string} [action] - name of action with document in signing step\n * @property {string} [document_id] - ID of document in specific signing step\n * @property {string} [document_name] - name of document in specific signing step\n * @property {string} [role_viewName] - signer's role display name\n * @property {string} [allow_reassign] - allow reassigning of signer\n * @property {string} decline_by_signature - signer can decline invite\n ", - "start": 840, - "end": 1528, - "loc": { - "start": { - "line": 25, - "column": 2 - }, - "end": { - "line": 36, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group Template invite step congfigurations\n * @typedef {Object} DocumentGroupTemplateInviteStep\n * @property {number} [order] - an order number of invitation step\n * @property {DocumentGroupTemplateInviteEmail[]} [invite_emails] - Document Group Template invite emails settings\n * @property {DocumentGroupTemplateInviteAction[]} invite_actions - Document Group Template invite actions settings\n ", - "start": 1532, - "end": 1957, - "loc": { - "start": { - "line": 38, - "column": 2 - }, - "end": { - "line": 44, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document Group Template invite congfigurations\n * @typedef {Object} DocumentGroupTemplateRoutingDetails\n * @property {DocumentGroupTemplateInviteStep[]} invite_steps - Document Group Template invite steps settings\n * @property {number} [include_email_attachments] - TODO:\n ", - "start": 1961, - "end": 2253, - "loc": { - "start": { - "line": 46, - "column": 2 - }, - "end": { - "line": 51, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create Document Group Template payload\n * @typedef {Object} DocumentGroupTemplateCreateParams\n * @property {string} token - your auth token\n * @property {string[]} template_ids - array of template ids for Document Group Template creation\n * @property {string} template_group_name - new name of document group\n * @property {DocumentGroupTemplateRoutingDetails} routing_details - invite congfigurations\n ", - "start": 2257, - "end": 2682, - "loc": { - "start": { - "line": 53, - "column": 2 - }, - "end": { - "line": 60, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create Document Group Template response data\n * @typedef {Object} DocumentGroupTemplateCreateResponse\n * @property {string} id - Document Group Template unique id\n ", - "start": 2686, - "end": 2867, - "loc": { - "start": { - "line": 62, - "column": 2 - }, - "end": { - "line": 66, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates Document Group Template with specified templates and settings\n * @param {DocumentGroupTemplateCreateParams} data - create Document Group Template payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupTemplateCreateResponse)} [callback] - error first node.js callback\n ", - "start": 2871, - "end": 3179, - "loc": { - "start": { - "line": 68, - "column": 2 - }, - "end": { - "line": 72, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 3182, - "end": 3188, - "loc": { - "start": { - "line": 73, - "column": 2 - }, - "end": { - "line": 73, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "create", - "start": 3189, - "end": 3195, - "loc": { - "start": { - "line": 73, - "column": 9 - }, - "end": { - "line": 73, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3196, - "end": 3197, - "loc": { - "start": { - "line": 73, - "column": 16 - }, - "end": { - "line": 73, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3197, - "end": 3198, - "loc": { - "start": { - "line": 73, - "column": 17 - }, - "end": { - "line": 73, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 3203, - "end": 3208, - "loc": { - "start": { - "line": 74, - "column": 4 - }, - "end": { - "line": 74, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3208, - "end": 3209, - "loc": { - "start": { - "line": 74, - "column": 9 - }, - "end": { - "line": 74, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "template_ids", - "start": 3214, - "end": 3226, - "loc": { - "start": { - "line": 75, - "column": 4 - }, - "end": { - "line": 75, - "column": 16 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3226, - "end": 3227, - "loc": { - "start": { - "line": 75, - "column": 16 - }, - "end": { - "line": 75, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "template_group_name", - "start": 3232, - "end": 3251, - "loc": { - "start": { - "line": 76, - "column": 4 - }, - "end": { - "line": 76, - "column": 23 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3251, - "end": 3252, - "loc": { - "start": { - "line": 76, - "column": 23 - }, - "end": { - "line": 76, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "routing_details", - "start": 3257, - "end": 3272, - "loc": { - "start": { - "line": 77, - "column": 4 - }, - "end": { - "line": 77, - "column": 19 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3272, - "end": 3273, - "loc": { - "start": { - "line": 77, - "column": 19 - }, - "end": { - "line": 77, - "column": 20 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3276, - "end": 3277, - "loc": { - "start": { - "line": 78, - "column": 2 - }, - "end": { - "line": 78, - "column": 3 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3277, - "end": 3278, - "loc": { - "start": { - "line": 78, - "column": 3 - }, - "end": { - "line": 78, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 3279, - "end": 3287, - "loc": { - "start": { - "line": 78, - "column": 5 - }, - "end": { - "line": 78, - "column": 13 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3287, - "end": 3288, - "loc": { - "start": { - "line": 78, - "column": 13 - }, - "end": { - "line": 78, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3289, - "end": 3290, - "loc": { - "start": { - "line": 78, - "column": 15 - }, - "end": { - "line": 78, - "column": 16 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 3295, - "end": 3300, - "loc": { - "start": { - "line": 79, - "column": 4 - }, - "end": { - "line": 79, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 3301, - "end": 3309, - "loc": { - "start": { - "line": 79, - "column": 10 - }, - "end": { - "line": 79, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 3310, - "end": 3311, - "loc": { - "start": { - "line": 79, - "column": 19 - }, - "end": { - "line": 79, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSON", - "start": 3312, - "end": 3316, - "loc": { - "start": { - "line": 79, - "column": 21 - }, - "end": { - "line": 79, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3316, - "end": 3317, - "loc": { - "start": { - "line": 79, - "column": 25 - }, - "end": { - "line": 79, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "stringify", - "start": 3317, - "end": 3326, - "loc": { - "start": { - "line": 79, - "column": 26 - }, - "end": { - "line": 79, - "column": 35 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3326, - "end": 3327, - "loc": { - "start": { - "line": 79, - "column": 35 - }, - "end": { - "line": 79, - "column": 36 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3327, - "end": 3328, - "loc": { - "start": { - "line": 79, - "column": 36 - }, - "end": { - "line": 79, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "template_ids", - "start": 3335, - "end": 3347, - "loc": { - "start": { - "line": 80, - "column": 6 - }, - "end": { - "line": 80, - "column": 18 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3347, - "end": 3348, - "loc": { - "start": { - "line": 80, - "column": 18 - }, - "end": { - "line": 80, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "template_group_name", - "start": 3355, - "end": 3374, - "loc": { - "start": { - "line": 81, - "column": 6 - }, - "end": { - "line": 81, - "column": 25 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3374, - "end": 3375, - "loc": { - "start": { - "line": 81, - "column": 25 - }, - "end": { - "line": 81, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "routing_details", - "start": 3382, - "end": 3397, - "loc": { - "start": { - "line": 82, - "column": 6 - }, - "end": { - "line": 82, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3397, - "end": 3398, - "loc": { - "start": { - "line": 82, - "column": 21 - }, - "end": { - "line": 82, - "column": 22 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3403, - "end": 3404, - "loc": { - "start": { - "line": 83, - "column": 4 - }, - "end": { - "line": 83, - "column": 5 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3404, - "end": 3405, - "loc": { - "start": { - "line": 83, - "column": 5 - }, - "end": { - "line": 83, - "column": 6 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3405, - "end": 3406, - "loc": { - "start": { - "line": 83, - "column": 6 - }, - "end": { - "line": 83, - "column": 7 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 3411, - "end": 3416, - "loc": { - "start": { - "line": 84, - "column": 4 - }, - "end": { - "line": 84, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 3417, - "end": 3420, - "loc": { - "start": { - "line": 84, - "column": 10 - }, - "end": { - "line": 84, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 3421, - "end": 3422, - "loc": { - "start": { - "line": 84, - "column": 14 - }, - "end": { - "line": 84, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 3423, - "end": 3428, - "loc": { - "start": { - "line": 84, - "column": 16 - }, - "end": { - "line": 84, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3435, - "end": 3436, - "loc": { - "start": { - "line": 85, - "column": 6 - }, - "end": { - "line": 85, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 3436, - "end": 3443, - "loc": { - "start": { - "line": 85, - "column": 7 - }, - "end": { - "line": 85, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3443, - "end": 3444, - "loc": { - "start": { - "line": 85, - "column": 14 - }, - "end": { - "line": 85, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 3444, - "end": 3463, - "loc": { - "start": { - "line": 85, - "column": 15 - }, - "end": { - "line": 85, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3463, - "end": 3464, - "loc": { - "start": { - "line": 85, - "column": 34 - }, - "end": { - "line": 85, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3464, - "end": 3465, - "loc": { - "start": { - "line": 85, - "column": 35 - }, - "end": { - "line": 85, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 3474, - "end": 3480, - "loc": { - "start": { - "line": 86, - "column": 8 - }, - "end": { - "line": 86, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3480, - "end": 3481, - "loc": { - "start": { - "line": 86, - "column": 14 - }, - "end": { - "line": 86, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "POST", - "start": 3482, - "end": 3488, - "loc": { - "start": { - "line": 86, - "column": 16 - }, - "end": { - "line": 86, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3488, - "end": 3489, - "loc": { - "start": { - "line": 86, - "column": 22 - }, - "end": { - "line": 86, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 3498, - "end": 3502, - "loc": { - "start": { - "line": 87, - "column": 8 - }, - "end": { - "line": 87, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3502, - "end": 3503, - "loc": { - "start": { - "line": 87, - "column": 12 - }, - "end": { - "line": 87, - "column": 13 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/documentgroup/template", - "start": 3504, - "end": 3529, - "loc": { - "start": { - "line": 87, - "column": 14 - }, - "end": { - "line": 87, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3529, - "end": 3530, - "loc": { - "start": { - "line": 87, - "column": 39 - }, - "end": { - "line": 87, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 3539, - "end": 3552, - "loc": { - "start": { - "line": 88, - "column": 8 - }, - "end": { - "line": 88, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3552, - "end": 3553, - "loc": { - "start": { - "line": 88, - "column": 21 - }, - "end": { - "line": 88, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3554, - "end": 3555, - "loc": { - "start": { - "line": 88, - "column": 23 - }, - "end": { - "line": 88, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 3566, - "end": 3570, - "loc": { - "start": { - "line": 89, - "column": 10 - }, - "end": { - "line": 89, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3570, - "end": 3571, - "loc": { - "start": { - "line": 89, - "column": 14 - }, - "end": { - "line": 89, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 3572, - "end": 3580, - "loc": { - "start": { - "line": 89, - "column": 16 - }, - "end": { - "line": 89, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3580, - "end": 3581, - "loc": { - "start": { - "line": 89, - "column": 24 - }, - "end": { - "line": 89, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 3592, - "end": 3597, - "loc": { - "start": { - "line": 90, - "column": 10 - }, - "end": { - "line": 90, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3597, - "end": 3598, - "loc": { - "start": { - "line": 90, - "column": 15 - }, - "end": { - "line": 90, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3607, - "end": 3608, - "loc": { - "start": { - "line": 91, - "column": 8 - }, - "end": { - "line": 91, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3608, - "end": 3609, - "loc": { - "start": { - "line": 91, - "column": 9 - }, - "end": { - "line": 91, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 3618, - "end": 3625, - "loc": { - "start": { - "line": 92, - "column": 8 - }, - "end": { - "line": 92, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3625, - "end": 3626, - "loc": { - "start": { - "line": 92, - "column": 15 - }, - "end": { - "line": 92, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3627, - "end": 3628, - "loc": { - "start": { - "line": 92, - "column": 17 - }, - "end": { - "line": 92, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type", - "start": 3639, - "end": 3653, - "loc": { - "start": { - "line": 93, - "column": 10 - }, - "end": { - "line": 93, - "column": 24 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3653, - "end": 3654, - "loc": { - "start": { - "line": 93, - "column": 24 - }, - "end": { - "line": 93, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/json", - "start": 3655, - "end": 3673, - "loc": { - "start": { - "line": 93, - "column": 26 - }, - "end": { - "line": 93, - "column": 44 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3673, - "end": 3674, - "loc": { - "start": { - "line": 93, - "column": 44 - }, - "end": { - "line": 93, - "column": 45 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Length", - "start": 3685, - "end": 3701, - "loc": { - "start": { - "line": 94, - "column": 10 - }, - "end": { - "line": 94, - "column": 26 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3701, - "end": 3702, - "loc": { - "start": { - "line": 94, - "column": 26 - }, - "end": { - "line": 94, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 3703, - "end": 3709, - "loc": { - "start": { - "line": 94, - "column": 28 - }, - "end": { - "line": 94, - "column": 34 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3709, - "end": 3710, - "loc": { - "start": { - "line": 94, - "column": 34 - }, - "end": { - "line": 94, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "byteLength", - "start": 3710, - "end": 3720, - "loc": { - "start": { - "line": 94, - "column": 35 - }, - "end": { - "line": 94, - "column": 45 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3720, - "end": 3721, - "loc": { - "start": { - "line": 94, - "column": 45 - }, - "end": { - "line": 94, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 3721, - "end": 3729, - "loc": { - "start": { - "line": 94, - "column": 46 - }, - "end": { - "line": 94, - "column": 54 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3729, - "end": 3730, - "loc": { - "start": { - "line": 94, - "column": 54 - }, - "end": { - "line": 94, - "column": 55 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3730, - "end": 3731, - "loc": { - "start": { - "line": 94, - "column": 55 - }, - "end": { - "line": 94, - "column": 56 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3740, - "end": 3741, - "loc": { - "start": { - "line": 95, - "column": 8 - }, - "end": { - "line": 95, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3741, - "end": 3742, - "loc": { - "start": { - "line": 95, - "column": 9 - }, - "end": { - "line": 95, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3749, - "end": 3750, - "loc": { - "start": { - "line": 96, - "column": 6 - }, - "end": { - "line": 96, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3750, - "end": 3751, - "loc": { - "start": { - "line": 96, - "column": 7 - }, - "end": { - "line": 96, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3751, - "end": 3752, - "loc": { - "start": { - "line": 96, - "column": 8 - }, - "end": { - "line": 96, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 3753, - "end": 3768, - "loc": { - "start": { - "line": 96, - "column": 10 - }, - "end": { - "line": 96, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3768, - "end": 3769, - "loc": { - "start": { - "line": 96, - "column": 25 - }, - "end": { - "line": 96, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 3769, - "end": 3777, - "loc": { - "start": { - "line": 96, - "column": 26 - }, - "end": { - "line": 96, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3777, - "end": 3778, - "loc": { - "start": { - "line": 96, - "column": 34 - }, - "end": { - "line": 96, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3778, - "end": 3779, - "loc": { - "start": { - "line": 96, - "column": 35 - }, - "end": { - "line": 96, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3786, - "end": 3787, - "loc": { - "start": { - "line": 97, - "column": 6 - }, - "end": { - "line": 97, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 3787, - "end": 3789, - "loc": { - "start": { - "line": 97, - "column": 7 - }, - "end": { - "line": 97, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3789, - "end": 3790, - "loc": { - "start": { - "line": 97, - "column": 9 - }, - "end": { - "line": 97, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 3790, - "end": 3797, - "loc": { - "start": { - "line": 97, - "column": 10 - }, - "end": { - "line": 97, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3797, - "end": 3798, - "loc": { - "start": { - "line": 97, - "column": 17 - }, - "end": { - "line": 97, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 3799, - "end": 3811, - "loc": { - "start": { - "line": 97, - "column": 19 - }, - "end": { - "line": 97, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3811, - "end": 3812, - "loc": { - "start": { - "line": 97, - "column": 31 - }, - "end": { - "line": 97, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 3812, - "end": 3820, - "loc": { - "start": { - "line": 97, - "column": 32 - }, - "end": { - "line": 97, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3820, - "end": 3821, - "loc": { - "start": { - "line": 97, - "column": 40 - }, - "end": { - "line": 97, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3821, - "end": 3822, - "loc": { - "start": { - "line": 97, - "column": 41 - }, - "end": { - "line": 97, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3822, - "end": 3823, - "loc": { - "start": { - "line": 97, - "column": 42 - }, - "end": { - "line": 97, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 3829, - "end": 3832, - "loc": { - "start": { - "line": 99, - "column": 4 - }, - "end": { - "line": 99, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3832, - "end": 3833, - "loc": { - "start": { - "line": 99, - "column": 7 - }, - "end": { - "line": 99, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "write", - "start": 3833, - "end": 3838, - "loc": { - "start": { - "line": 99, - "column": 8 - }, - "end": { - "line": 99, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3838, - "end": 3839, - "loc": { - "start": { - "line": 99, - "column": 13 - }, - "end": { - "line": 99, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 3839, - "end": 3847, - "loc": { - "start": { - "line": 99, - "column": 14 - }, - "end": { - "line": 99, - "column": 22 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3847, - "end": 3848, - "loc": { - "start": { - "line": 99, - "column": 22 - }, - "end": { - "line": 99, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3848, - "end": 3849, - "loc": { - "start": { - "line": 99, - "column": 23 - }, - "end": { - "line": 99, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 3854, - "end": 3857, - "loc": { - "start": { - "line": 100, - "column": 4 - }, - "end": { - "line": 100, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3857, - "end": 3858, - "loc": { - "start": { - "line": 100, - "column": 7 - }, - "end": { - "line": 100, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 3858, - "end": 3861, - "loc": { - "start": { - "line": 100, - "column": 8 - }, - "end": { - "line": 100, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3861, - "end": 3862, - "loc": { - "start": { - "line": 100, - "column": 11 - }, - "end": { - "line": 100, - "column": 12 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3862, - "end": 3863, - "loc": { - "start": { - "line": 100, - "column": 12 - }, - "end": { - "line": 100, - "column": 13 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3863, - "end": 3864, - "loc": { - "start": { - "line": 100, - "column": 13 - }, - "end": { - "line": 100, - "column": 14 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3867, - "end": 3868, - "loc": { - "start": { - "line": 101, - "column": 2 - }, - "end": { - "line": 101, - "column": 3 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3869, - "end": 3870, - "loc": { - "start": { - "line": 102, - "column": 0 - }, - "end": { - "line": 102, - "column": 1 - } - } - }, - { - "type": { - "label": "export", - "keyword": "export", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "export", - "start": 3873, - "end": 3879, - "loc": { - "start": { - "line": 105, - "column": 0 - }, - "end": { - "line": 105, - "column": 6 - } - } - }, - { - "type": { - "label": "default", - "keyword": "default", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "default", - "start": 3880, - "end": 3887, - "loc": { - "start": { - "line": 105, - "column": 7 - }, - "end": { - "line": 105, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "DocumentGroupTemplate", - "start": 3888, - "end": 3909, - "loc": { - "start": { - "line": 105, - "column": 15 - }, - "end": { - "line": 105, - "column": 36 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3909, - "end": 3910, - "loc": { - "start": { - "line": 105, - "column": 36 - }, - "end": { - "line": 105, - "column": 37 - } - } - }, - { - "type": { - "label": "eof", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3911, - "end": 3911, - "loc": { - "start": { - "line": 106, - "column": 0 - }, - "end": { - "line": 106, - "column": 0 - } - } - } - ] -} \ No newline at end of file diff --git a/docs/ast/source/embedded/index.js.json b/docs/ast/source/embedded/index.js.json deleted file mode 100644 index 0487e352..00000000 --- a/docs/ast/source/embedded/index.js.json +++ /dev/null @@ -1,19147 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 5318, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 163, - "column": 0 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 5318, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 163, - "column": 0 - } - }, - "sourceType": "module", - "body": [ - { - "type": "ImportDeclaration", - "start": 14, - "end": 40, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 26 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - } - }, - "local": { - "type": "Identifier", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - }, - "identifierName": "https" - }, - "name": "https" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 18 - }, - "end": { - "line": 2, - "column": 25 - } - }, - "extra": { - "rawValue": "https", - "raw": "'https'" - }, - "value": "https" - } - }, - { - "type": "ImportDeclaration", - "start": 41, - "end": 127, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 7, - "column": 19 - } - }, - "specifiers": [ - { - "type": "ImportSpecifier", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - } - }, - "imported": { - "type": "Identifier", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "local": { - "type": "Identifier", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - } - }, - { - "type": "ImportSpecifier", - "start": 71, - "end": 83, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 14 - } - }, - "imported": { - "type": "Identifier", - "start": 71, - "end": 83, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 14 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "local": { - "type": "Identifier", - "start": 71, - "end": 83, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 14 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - } - }, - { - "type": "ImportSpecifier", - "start": 87, - "end": 106, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 21 - } - }, - "imported": { - "type": "Identifier", - "start": 87, - "end": 106, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 21 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "local": { - "type": "Identifier", - "start": 87, - "end": 106, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 21 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 115, - "end": 126, - "loc": { - "start": { - "line": 7, - "column": 7 - }, - "end": { - "line": 7, - "column": 18 - } - }, - "extra": { - "rawValue": "../common", - "raw": "'../common'" - }, - "value": "../common" - }, - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Embedded methods\n ", - "start": 129, - "end": 156, - "loc": { - "start": { - "line": 9, - "column": 0 - }, - "end": { - "line": 11, - "column": 3 - } - } - } - ] - }, - { - "type": "Identifier", - "start": 157, - "end": 5291, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 160, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 163, - "end": 171, - "loc": { - "start": { - "line": 12, - "column": 6 - }, - "end": { - "line": 12, - "column": 14 - }, - "identifierName": "Embedded" - }, - "name": "Embedded", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 172, - "end": 5291, - "loc": { - "start": { - "line": 12, - "column": 15 - }, - "end": { - "line": 160, - "column": 1 - } - }, - "body": [ - { - "type": "ClassMethod", - "start": 1681, - "end": 2287, - "loc": { - "start": { - "line": 52, - "column": 2 - }, - "end": { - "line": 73, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1688, - "end": 1700, - "loc": { - "start": { - "line": 52, - "column": 9 - }, - "end": { - "line": 52, - "column": 21 - }, - "identifierName": "createInvite" - }, - "name": "createInvite" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 1702, - "end": 1740, - "loc": { - "start": { - "line": 52, - "column": 23 - }, - "end": { - "line": 54, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1708, - "end": 1713, - "loc": { - "start": { - "line": 53, - "column": 4 - }, - "end": { - "line": 53, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1708, - "end": 1713, - "loc": { - "start": { - "line": 53, - "column": 4 - }, - "end": { - "line": 53, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 1708, - "end": 1713, - "loc": { - "start": { - "line": 53, - "column": 4 - }, - "end": { - "line": 53, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1715, - "end": 1726, - "loc": { - "start": { - "line": 53, - "column": 11 - }, - "end": { - "line": 53, - "column": 22 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1715, - "end": 1726, - "loc": { - "start": { - "line": 53, - "column": 11 - }, - "end": { - "line": 53, - "column": 22 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "value": { - "type": "Identifier", - "start": 1715, - "end": 1726, - "loc": { - "start": { - "line": 53, - "column": 11 - }, - "end": { - "line": 53, - "column": 22 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1728, - "end": 1735, - "loc": { - "start": { - "line": 53, - "column": 24 - }, - "end": { - "line": 53, - "column": 31 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1728, - "end": 1735, - "loc": { - "start": { - "line": 53, - "column": 24 - }, - "end": { - "line": 53, - "column": 31 - }, - "identifierName": "invites" - }, - "name": "invites" - }, - "value": { - "type": "Identifier", - "start": 1728, - "end": 1735, - "loc": { - "start": { - "line": 53, - "column": 24 - }, - "end": { - "line": 53, - "column": 31 - }, - "identifierName": "invites" - }, - "name": "invites" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 1742, - "end": 1750, - "loc": { - "start": { - "line": 54, - "column": 5 - }, - "end": { - "line": 54, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 1752, - "end": 2287, - "loc": { - "start": { - "line": 54, - "column": 15 - }, - "end": { - "line": 73, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 1758, - "end": 1803, - "loc": { - "start": { - "line": 55, - "column": 4 - }, - "end": { - "line": 55, - "column": 49 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1764, - "end": 1802, - "loc": { - "start": { - "line": 55, - "column": 10 - }, - "end": { - "line": 55, - "column": 48 - } - }, - "id": { - "type": "Identifier", - "start": 1764, - "end": 1772, - "loc": { - "start": { - "line": 55, - "column": 10 - }, - "end": { - "line": 55, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 1775, - "end": 1802, - "loc": { - "start": { - "line": 55, - "column": 21 - }, - "end": { - "line": 55, - "column": 48 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1775, - "end": 1789, - "loc": { - "start": { - "line": 55, - "column": 21 - }, - "end": { - "line": 55, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 1775, - "end": 1779, - "loc": { - "start": { - "line": 55, - "column": 21 - }, - "end": { - "line": 55, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 1780, - "end": 1789, - "loc": { - "start": { - "line": 55, - "column": 26 - }, - "end": { - "line": 55, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 1790, - "end": 1801, - "loc": { - "start": { - "line": 55, - "column": 36 - }, - "end": { - "line": 55, - "column": 47 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1792, - "end": 1799, - "loc": { - "start": { - "line": 55, - "column": 38 - }, - "end": { - "line": 55, - "column": 45 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1792, - "end": 1799, - "loc": { - "start": { - "line": 55, - "column": 38 - }, - "end": { - "line": 55, - "column": 45 - }, - "identifierName": "invites" - }, - "name": "invites" - }, - "value": { - "type": "Identifier", - "start": 1792, - "end": 1799, - "loc": { - "start": { - "line": 55, - "column": 38 - }, - "end": { - "line": 55, - "column": 45 - }, - "identifierName": "invites" - }, - "name": "invites" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 1808, - "end": 2242, - "loc": { - "start": { - "line": 56, - "column": 4 - }, - "end": { - "line": 69, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1814, - "end": 2241, - "loc": { - "start": { - "line": 56, - "column": 10 - }, - "end": { - "line": 69, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 1814, - "end": 1817, - "loc": { - "start": { - "line": 56, - "column": 10 - }, - "end": { - "line": 56, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 1820, - "end": 2241, - "loc": { - "start": { - "line": 56, - "column": 16 - }, - "end": { - "line": 69, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1820, - "end": 2208, - "loc": { - "start": { - "line": 56, - "column": 16 - }, - "end": { - "line": 69, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 1820, - "end": 2198, - "loc": { - "start": { - "line": 56, - "column": 16 - }, - "end": { - "line": 68, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1820, - "end": 1840, - "loc": { - "start": { - "line": 56, - "column": 16 - }, - "end": { - "line": 57, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 1820, - "end": 1825, - "loc": { - "start": { - "line": 56, - "column": 16 - }, - "end": { - "line": 56, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 1833, - "end": 1840, - "loc": { - "start": { - "line": 57, - "column": 7 - }, - "end": { - "line": 57, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 1841, - "end": 2170, - "loc": { - "start": { - "line": 57, - "column": 15 - }, - "end": { - "line": 68, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 1841, - "end": 1860, - "loc": { - "start": { - "line": 57, - "column": 15 - }, - "end": { - "line": 57, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 1861, - "end": 2169, - "loc": { - "start": { - "line": 57, - "column": 35 - }, - "end": { - "line": 68, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1871, - "end": 1885, - "loc": { - "start": { - "line": 58, - "column": 8 - }, - "end": { - "line": 58, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1871, - "end": 1877, - "loc": { - "start": { - "line": 58, - "column": 8 - }, - "end": { - "line": 58, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 1879, - "end": 1885, - "loc": { - "start": { - "line": 58, - "column": 16 - }, - "end": { - "line": 58, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 1895, - "end": 1948, - "loc": { - "start": { - "line": 59, - "column": 8 - }, - "end": { - "line": 59, - "column": 61 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1895, - "end": 1899, - "loc": { - "start": { - "line": 59, - "column": 8 - }, - "end": { - "line": 59, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 1901, - "end": 1948, - "loc": { - "start": { - "line": 59, - "column": 14 - }, - "end": { - "line": 59, - "column": 61 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 1918, - "end": 1929, - "loc": { - "start": { - "line": 59, - "column": 31 - }, - "end": { - "line": 59, - "column": 42 - }, - "identifierName": "document_id" - }, - "name": "document_id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 1902, - "end": 1916, - "loc": { - "start": { - "line": 59, - "column": 15 - }, - "end": { - "line": 59, - "column": 29 - } - }, - "value": { - "raw": "/v2/documents/", - "cooked": "/v2/documents/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 1930, - "end": 1947, - "loc": { - "start": { - "line": 59, - "column": 43 - }, - "end": { - "line": 59, - "column": 60 - } - }, - "value": { - "raw": "/embedded-invites", - "cooked": "/embedded-invites" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 1958, - "end": 2027, - "loc": { - "start": { - "line": 60, - "column": 8 - }, - "end": { - "line": 63, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1958, - "end": 1971, - "loc": { - "start": { - "line": 60, - "column": 8 - }, - "end": { - "line": 60, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 1973, - "end": 2027, - "loc": { - "start": { - "line": 60, - "column": 23 - }, - "end": { - "line": 63, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1985, - "end": 1999, - "loc": { - "start": { - "line": 61, - "column": 10 - }, - "end": { - "line": 61, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1985, - "end": 1989, - "loc": { - "start": { - "line": 61, - "column": 10 - }, - "end": { - "line": 61, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 1991, - "end": 1999, - "loc": { - "start": { - "line": 61, - "column": 16 - }, - "end": { - "line": 61, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 2011, - "end": 2016, - "loc": { - "start": { - "line": 62, - "column": 10 - }, - "end": { - "line": 62, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2011, - "end": 2016, - "loc": { - "start": { - "line": 62, - "column": 10 - }, - "end": { - "line": 62, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 2011, - "end": 2016, - "loc": { - "start": { - "line": 62, - "column": 10 - }, - "end": { - "line": 62, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 2037, - "end": 2160, - "loc": { - "start": { - "line": 64, - "column": 8 - }, - "end": { - "line": 67, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2037, - "end": 2044, - "loc": { - "start": { - "line": 64, - "column": 8 - }, - "end": { - "line": 64, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 2046, - "end": 2160, - "loc": { - "start": { - "line": 64, - "column": 17 - }, - "end": { - "line": 67, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2058, - "end": 2092, - "loc": { - "start": { - "line": 65, - "column": 10 - }, - "end": { - "line": 65, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 2058, - "end": 2072, - "loc": { - "start": { - "line": 65, - "column": 10 - }, - "end": { - "line": 65, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 2074, - "end": 2092, - "loc": { - "start": { - "line": 65, - "column": 26 - }, - "end": { - "line": 65, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 2104, - "end": 2149, - "loc": { - "start": { - "line": 66, - "column": 10 - }, - "end": { - "line": 66, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 2104, - "end": 2120, - "loc": { - "start": { - "line": 66, - "column": 10 - }, - "end": { - "line": 66, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 2122, - "end": 2149, - "loc": { - "start": { - "line": 66, - "column": 28 - }, - "end": { - "line": 66, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2122, - "end": 2139, - "loc": { - "start": { - "line": 66, - "column": 28 - }, - "end": { - "line": 66, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 2122, - "end": 2128, - "loc": { - "start": { - "line": 66, - "column": 28 - }, - "end": { - "line": 66, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 2129, - "end": 2139, - "loc": { - "start": { - "line": 66, - "column": 35 - }, - "end": { - "line": 66, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2140, - "end": 2148, - "loc": { - "start": { - "line": 66, - "column": 46 - }, - "end": { - "line": 66, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 2172, - "end": 2197, - "loc": { - "start": { - "line": 68, - "column": 10 - }, - "end": { - "line": 68, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 2172, - "end": 2187, - "loc": { - "start": { - "line": 68, - "column": 10 - }, - "end": { - "line": 68, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2188, - "end": 2196, - "loc": { - "start": { - "line": 68, - "column": 26 - }, - "end": { - "line": 68, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 2206, - "end": 2208, - "loc": { - "start": { - "line": 69, - "column": 7 - }, - "end": { - "line": 69, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2209, - "end": 2216, - "loc": { - "start": { - "line": 69, - "column": 10 - }, - "end": { - "line": 69, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 2218, - "end": 2240, - "loc": { - "start": { - "line": 69, - "column": 19 - }, - "end": { - "line": 69, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 2218, - "end": 2230, - "loc": { - "start": { - "line": 69, - "column": 19 - }, - "end": { - "line": 69, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2231, - "end": 2239, - "loc": { - "start": { - "line": 69, - "column": 32 - }, - "end": { - "line": 69, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 2248, - "end": 2268, - "loc": { - "start": { - "line": 71, - "column": 4 - }, - "end": { - "line": 71, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 2248, - "end": 2267, - "loc": { - "start": { - "line": 71, - "column": 4 - }, - "end": { - "line": 71, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2248, - "end": 2257, - "loc": { - "start": { - "line": 71, - "column": 4 - }, - "end": { - "line": 71, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 2248, - "end": 2251, - "loc": { - "start": { - "line": 71, - "column": 4 - }, - "end": { - "line": 71, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 2252, - "end": 2257, - "loc": { - "start": { - "line": 71, - "column": 8 - }, - "end": { - "line": 71, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2258, - "end": 2266, - "loc": { - "start": { - "line": 71, - "column": 14 - }, - "end": { - "line": 71, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 2273, - "end": 2283, - "loc": { - "start": { - "line": 72, - "column": 4 - }, - "end": { - "line": 72, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 2273, - "end": 2282, - "loc": { - "start": { - "line": 72, - "column": 4 - }, - "end": { - "line": 72, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2273, - "end": 2280, - "loc": { - "start": { - "line": 72, - "column": 4 - }, - "end": { - "line": 72, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 2273, - "end": 2276, - "loc": { - "start": { - "line": 72, - "column": 4 - }, - "end": { - "line": 72, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 2277, - "end": 2280, - "loc": { - "start": { - "line": 72, - "column": 8 - }, - "end": { - "line": 72, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Create embedded signing invite payload\n * @typedef {Object} EmbeddedSigningInvite\n * @property {string} email - Signer's email address\n * @property {number} role_id - Signer's role ID\n * @property {number} order - Order of signing. Cannot be 0\n * @property {string} auth_method - Signer authentication method. One of (password, email, mfa, social, biometric, other, none)\n ", - "start": 177, - "end": 573, - "loc": { - "start": { - "line": 14, - "column": 2 - }, - "end": { - "line": 21, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create embedded signing invites payload\n * @typedef {Object} EmbeddedCreateInvitesPayload\n * @property {string} token - Access token.\n * @property {string} document_id - ID of the requested document.\n * @property {EmbeddedSigningInvite[]} invites - Array of invites\n ", - "start": 577, - "end": 865, - "loc": { - "start": { - "line": 23, - "column": 2 - }, - "end": { - "line": 29, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Response EmbeddedInvite\n * @typedef {Object} EmbeddedInvite\n * @property {string} id - ID of the sending invite\n * @property {string} email - Signer's email address\n * @property {number} role_id - Signer's role ID\n * @property {number} order - Order of signing\n * @property {string} status - Status of the invite\n ", - "start": 869, - "end": 1209, - "loc": { - "start": { - "line": 31, - "column": 2 - }, - "end": { - "line": 39, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create embedded signing invites response data\n * @typedef {Object} EmbeddedCreateInvitesResponse\n * @property {EmbeddedInvite[]} data - Array sending of invites\n ", - "start": 1213, - "end": 1392, - "loc": { - "start": { - "line": 41, - "column": 2 - }, - "end": { - "line": 45, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create embedded signing invites for a document without sending emails.\n * @param {EmbeddedCreateInvitesPayload} data - Create invites payload\n * @param {function(err: ApiErrorResponse, res: EmbeddedCreateInvitesResponse)} [callback] - error first node.js callback\n ", - "start": 1396, - "end": 1678, - "loc": { - "start": { - "line": 47, - "column": 2 - }, - "end": { - "line": 51, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Generate embedded invite link payload\n * @typedef {Object} EmbeddedGenerateLinkPayload\n * @property {string} token - Access token.\n * @property {string} document_id - ID of the requested document.\n * @property {string} field_invite_unique_id - ID of the signature invite you'd like to embed.\n * @property {number} link_expiration - In how many minutes the link expires, ranges from 15 to 45 minutes or null.\n * @property {string} auth_method - Signer authentication method.\n ", - "start": 2291, - "end": 2791, - "loc": { - "start": { - "line": 75, - "column": 2 - }, - "end": { - "line": 83, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Response EmbeddedGeneratedLink\n * @typedef {Object} EmbeddedGeneratedLink\n * @property {string} link - Returns a link for embedded invite\n ", - "start": 2795, - "end": 2951, - "loc": { - "start": { - "line": 85, - "column": 2 - }, - "end": { - "line": 89, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Generate a link for the embedded invite response data\n * @typedef {Object} EmbeddedGenerateLinkResponse\n * @property {EmbeddedGeneratedLink} data - Response data\n ", - "start": 2955, - "end": 3135, - "loc": { - "start": { - "line": 91, - "column": 2 - }, - "end": { - "line": 95, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Generate a link for the embedded invite.\n * @param {EmbeddedGenerateLinkPayload} data - Generate embedded invite link payload\n * @param {function(err: ApiErrorResponse, res: EmbeddedGenerateLinkResponse)} [callback] - error first node.js callback\n ", - "start": 3139, - "end": 3404, - "loc": { - "start": { - "line": 97, - "column": 2 - }, - "end": { - "line": 101, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 3407, - "end": 4133, - "loc": { - "start": { - "line": 102, - "column": 2 - }, - "end": { - "line": 126, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3414, - "end": 3432, - "loc": { - "start": { - "line": 102, - "column": 9 - }, - "end": { - "line": 102, - "column": 27 - }, - "identifierName": "generateInviteLink" - }, - "name": "generateInviteLink" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 3434, - "end": 3517, - "loc": { - "start": { - "line": 102, - "column": 29 - }, - "end": { - "line": 104, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3440, - "end": 3445, - "loc": { - "start": { - "line": 103, - "column": 4 - }, - "end": { - "line": 103, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3440, - "end": 3445, - "loc": { - "start": { - "line": 103, - "column": 4 - }, - "end": { - "line": 103, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 3440, - "end": 3445, - "loc": { - "start": { - "line": 103, - "column": 4 - }, - "end": { - "line": 103, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3447, - "end": 3458, - "loc": { - "start": { - "line": 103, - "column": 11 - }, - "end": { - "line": 103, - "column": 22 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3447, - "end": 3458, - "loc": { - "start": { - "line": 103, - "column": 11 - }, - "end": { - "line": 103, - "column": 22 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "value": { - "type": "Identifier", - "start": 3447, - "end": 3458, - "loc": { - "start": { - "line": 103, - "column": 11 - }, - "end": { - "line": 103, - "column": 22 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3460, - "end": 3482, - "loc": { - "start": { - "line": 103, - "column": 24 - }, - "end": { - "line": 103, - "column": 46 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3460, - "end": 3482, - "loc": { - "start": { - "line": 103, - "column": 24 - }, - "end": { - "line": 103, - "column": 46 - }, - "identifierName": "field_invite_unique_id" - }, - "name": "field_invite_unique_id" - }, - "value": { - "type": "Identifier", - "start": 3460, - "end": 3482, - "loc": { - "start": { - "line": 103, - "column": 24 - }, - "end": { - "line": 103, - "column": 46 - }, - "identifierName": "field_invite_unique_id" - }, - "name": "field_invite_unique_id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3484, - "end": 3499, - "loc": { - "start": { - "line": 103, - "column": 48 - }, - "end": { - "line": 103, - "column": 63 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3484, - "end": 3499, - "loc": { - "start": { - "line": 103, - "column": 48 - }, - "end": { - "line": 103, - "column": 63 - }, - "identifierName": "link_expiration" - }, - "name": "link_expiration" - }, - "value": { - "type": "Identifier", - "start": 3484, - "end": 3499, - "loc": { - "start": { - "line": 103, - "column": 48 - }, - "end": { - "line": 103, - "column": 63 - }, - "identifierName": "link_expiration" - }, - "name": "link_expiration" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3501, - "end": 3512, - "loc": { - "start": { - "line": 103, - "column": 65 - }, - "end": { - "line": 103, - "column": 76 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3501, - "end": 3512, - "loc": { - "start": { - "line": 103, - "column": 65 - }, - "end": { - "line": 103, - "column": 76 - }, - "identifierName": "auth_method" - }, - "name": "auth_method" - }, - "value": { - "type": "Identifier", - "start": 3501, - "end": 3512, - "loc": { - "start": { - "line": 103, - "column": 65 - }, - "end": { - "line": 103, - "column": 76 - }, - "identifierName": "auth_method" - }, - "name": "auth_method" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 3519, - "end": 3527, - "loc": { - "start": { - "line": 104, - "column": 5 - }, - "end": { - "line": 104, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 3529, - "end": 4133, - "loc": { - "start": { - "line": 104, - "column": 15 - }, - "end": { - "line": 126, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 3535, - "end": 3618, - "loc": { - "start": { - "line": 105, - "column": 4 - }, - "end": { - "line": 108, - "column": 7 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3541, - "end": 3617, - "loc": { - "start": { - "line": 105, - "column": 10 - }, - "end": { - "line": 108, - "column": 6 - } - }, - "id": { - "type": "Identifier", - "start": 3541, - "end": 3549, - "loc": { - "start": { - "line": 105, - "column": 10 - }, - "end": { - "line": 105, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 3552, - "end": 3617, - "loc": { - "start": { - "line": 105, - "column": 21 - }, - "end": { - "line": 108, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3552, - "end": 3566, - "loc": { - "start": { - "line": 105, - "column": 21 - }, - "end": { - "line": 105, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 3552, - "end": 3556, - "loc": { - "start": { - "line": 105, - "column": 21 - }, - "end": { - "line": 105, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 3557, - "end": 3566, - "loc": { - "start": { - "line": 105, - "column": 26 - }, - "end": { - "line": 105, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 3567, - "end": 3616, - "loc": { - "start": { - "line": 105, - "column": 36 - }, - "end": { - "line": 108, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3575, - "end": 3590, - "loc": { - "start": { - "line": 106, - "column": 6 - }, - "end": { - "line": 106, - "column": 21 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3575, - "end": 3590, - "loc": { - "start": { - "line": 106, - "column": 6 - }, - "end": { - "line": 106, - "column": 21 - }, - "identifierName": "link_expiration" - }, - "name": "link_expiration" - }, - "value": { - "type": "Identifier", - "start": 3575, - "end": 3590, - "loc": { - "start": { - "line": 106, - "column": 6 - }, - "end": { - "line": 106, - "column": 21 - }, - "identifierName": "link_expiration" - }, - "name": "link_expiration" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3598, - "end": 3609, - "loc": { - "start": { - "line": 107, - "column": 6 - }, - "end": { - "line": 107, - "column": 17 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3598, - "end": 3609, - "loc": { - "start": { - "line": 107, - "column": 6 - }, - "end": { - "line": 107, - "column": 17 - }, - "identifierName": "auth_method" - }, - "name": "auth_method" - }, - "value": { - "type": "Identifier", - "start": 3598, - "end": 3609, - "loc": { - "start": { - "line": 107, - "column": 6 - }, - "end": { - "line": 107, - "column": 17 - }, - "identifierName": "auth_method" - }, - "name": "auth_method" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 3623, - "end": 4088, - "loc": { - "start": { - "line": 109, - "column": 4 - }, - "end": { - "line": 122, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3629, - "end": 4087, - "loc": { - "start": { - "line": 109, - "column": 10 - }, - "end": { - "line": 122, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 3629, - "end": 3632, - "loc": { - "start": { - "line": 109, - "column": 10 - }, - "end": { - "line": 109, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 3635, - "end": 4087, - "loc": { - "start": { - "line": 109, - "column": 16 - }, - "end": { - "line": 122, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3635, - "end": 4054, - "loc": { - "start": { - "line": 109, - "column": 16 - }, - "end": { - "line": 122, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 3635, - "end": 4044, - "loc": { - "start": { - "line": 109, - "column": 16 - }, - "end": { - "line": 121, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3635, - "end": 3655, - "loc": { - "start": { - "line": 109, - "column": 16 - }, - "end": { - "line": 110, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 3635, - "end": 3640, - "loc": { - "start": { - "line": 109, - "column": 16 - }, - "end": { - "line": 109, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 3648, - "end": 3655, - "loc": { - "start": { - "line": 110, - "column": 7 - }, - "end": { - "line": 110, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 3656, - "end": 4016, - "loc": { - "start": { - "line": 110, - "column": 15 - }, - "end": { - "line": 121, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 3656, - "end": 3675, - "loc": { - "start": { - "line": 110, - "column": 15 - }, - "end": { - "line": 110, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 3676, - "end": 4015, - "loc": { - "start": { - "line": 110, - "column": 35 - }, - "end": { - "line": 121, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3686, - "end": 3700, - "loc": { - "start": { - "line": 111, - "column": 8 - }, - "end": { - "line": 111, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3686, - "end": 3692, - "loc": { - "start": { - "line": 111, - "column": 8 - }, - "end": { - "line": 111, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 3694, - "end": 3700, - "loc": { - "start": { - "line": 111, - "column": 16 - }, - "end": { - "line": 111, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 3710, - "end": 3794, - "loc": { - "start": { - "line": 112, - "column": 8 - }, - "end": { - "line": 112, - "column": 92 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3710, - "end": 3714, - "loc": { - "start": { - "line": 112, - "column": 8 - }, - "end": { - "line": 112, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 3716, - "end": 3794, - "loc": { - "start": { - "line": 112, - "column": 14 - }, - "end": { - "line": 112, - "column": 92 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 3733, - "end": 3744, - "loc": { - "start": { - "line": 112, - "column": 31 - }, - "end": { - "line": 112, - "column": 42 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - { - "type": "Identifier", - "start": 3765, - "end": 3787, - "loc": { - "start": { - "line": 112, - "column": 63 - }, - "end": { - "line": 112, - "column": 85 - }, - "identifierName": "field_invite_unique_id" - }, - "name": "field_invite_unique_id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 3717, - "end": 3731, - "loc": { - "start": { - "line": 112, - "column": 15 - }, - "end": { - "line": 112, - "column": 29 - } - }, - "value": { - "raw": "/v2/documents/", - "cooked": "/v2/documents/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 3745, - "end": 3763, - "loc": { - "start": { - "line": 112, - "column": 43 - }, - "end": { - "line": 112, - "column": 61 - } - }, - "value": { - "raw": "/embedded-invites/", - "cooked": "/embedded-invites/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 3788, - "end": 3793, - "loc": { - "start": { - "line": 112, - "column": 86 - }, - "end": { - "line": 112, - "column": 91 - } - }, - "value": { - "raw": "/link", - "cooked": "/link" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 3804, - "end": 3873, - "loc": { - "start": { - "line": 113, - "column": 8 - }, - "end": { - "line": 116, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3804, - "end": 3817, - "loc": { - "start": { - "line": 113, - "column": 8 - }, - "end": { - "line": 113, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 3819, - "end": 3873, - "loc": { - "start": { - "line": 113, - "column": 23 - }, - "end": { - "line": 116, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3831, - "end": 3845, - "loc": { - "start": { - "line": 114, - "column": 10 - }, - "end": { - "line": 114, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3831, - "end": 3835, - "loc": { - "start": { - "line": 114, - "column": 10 - }, - "end": { - "line": 114, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 3837, - "end": 3845, - "loc": { - "start": { - "line": 114, - "column": 16 - }, - "end": { - "line": 114, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 3857, - "end": 3862, - "loc": { - "start": { - "line": 115, - "column": 10 - }, - "end": { - "line": 115, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3857, - "end": 3862, - "loc": { - "start": { - "line": 115, - "column": 10 - }, - "end": { - "line": 115, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 3857, - "end": 3862, - "loc": { - "start": { - "line": 115, - "column": 10 - }, - "end": { - "line": 115, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 3883, - "end": 4006, - "loc": { - "start": { - "line": 117, - "column": 8 - }, - "end": { - "line": 120, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3883, - "end": 3890, - "loc": { - "start": { - "line": 117, - "column": 8 - }, - "end": { - "line": 117, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 3892, - "end": 4006, - "loc": { - "start": { - "line": 117, - "column": 17 - }, - "end": { - "line": 120, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3904, - "end": 3938, - "loc": { - "start": { - "line": 118, - "column": 10 - }, - "end": { - "line": 118, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 3904, - "end": 3918, - "loc": { - "start": { - "line": 118, - "column": 10 - }, - "end": { - "line": 118, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 3920, - "end": 3938, - "loc": { - "start": { - "line": 118, - "column": 26 - }, - "end": { - "line": 118, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 3950, - "end": 3995, - "loc": { - "start": { - "line": 119, - "column": 10 - }, - "end": { - "line": 119, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 3950, - "end": 3966, - "loc": { - "start": { - "line": 119, - "column": 10 - }, - "end": { - "line": 119, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 3968, - "end": 3995, - "loc": { - "start": { - "line": 119, - "column": 28 - }, - "end": { - "line": 119, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3968, - "end": 3985, - "loc": { - "start": { - "line": 119, - "column": 28 - }, - "end": { - "line": 119, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 3968, - "end": 3974, - "loc": { - "start": { - "line": 119, - "column": 28 - }, - "end": { - "line": 119, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 3975, - "end": 3985, - "loc": { - "start": { - "line": 119, - "column": 35 - }, - "end": { - "line": 119, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 3986, - "end": 3994, - "loc": { - "start": { - "line": 119, - "column": 46 - }, - "end": { - "line": 119, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 4018, - "end": 4043, - "loc": { - "start": { - "line": 121, - "column": 10 - }, - "end": { - "line": 121, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 4018, - "end": 4033, - "loc": { - "start": { - "line": 121, - "column": 10 - }, - "end": { - "line": 121, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 4034, - "end": 4042, - "loc": { - "start": { - "line": 121, - "column": 26 - }, - "end": { - "line": 121, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 4052, - "end": 4054, - "loc": { - "start": { - "line": 122, - "column": 7 - }, - "end": { - "line": 122, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 4055, - "end": 4062, - "loc": { - "start": { - "line": 122, - "column": 10 - }, - "end": { - "line": 122, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 4064, - "end": 4086, - "loc": { - "start": { - "line": 122, - "column": 19 - }, - "end": { - "line": 122, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 4064, - "end": 4076, - "loc": { - "start": { - "line": 122, - "column": 19 - }, - "end": { - "line": 122, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 4077, - "end": 4085, - "loc": { - "start": { - "line": 122, - "column": 32 - }, - "end": { - "line": 122, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 4094, - "end": 4114, - "loc": { - "start": { - "line": 124, - "column": 4 - }, - "end": { - "line": 124, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 4094, - "end": 4113, - "loc": { - "start": { - "line": 124, - "column": 4 - }, - "end": { - "line": 124, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4094, - "end": 4103, - "loc": { - "start": { - "line": 124, - "column": 4 - }, - "end": { - "line": 124, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 4094, - "end": 4097, - "loc": { - "start": { - "line": 124, - "column": 4 - }, - "end": { - "line": 124, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 4098, - "end": 4103, - "loc": { - "start": { - "line": 124, - "column": 8 - }, - "end": { - "line": 124, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 4104, - "end": 4112, - "loc": { - "start": { - "line": 124, - "column": 14 - }, - "end": { - "line": 124, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 4119, - "end": 4129, - "loc": { - "start": { - "line": 125, - "column": 4 - }, - "end": { - "line": 125, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 4119, - "end": 4128, - "loc": { - "start": { - "line": 125, - "column": 4 - }, - "end": { - "line": 125, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4119, - "end": 4126, - "loc": { - "start": { - "line": 125, - "column": 4 - }, - "end": { - "line": 125, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 4119, - "end": 4122, - "loc": { - "start": { - "line": 125, - "column": 4 - }, - "end": { - "line": 125, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 4123, - "end": 4126, - "loc": { - "start": { - "line": 125, - "column": 8 - }, - "end": { - "line": 125, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Generate embedded invite link payload\n * @typedef {Object} EmbeddedGenerateLinkPayload\n * @property {string} token - Access token.\n * @property {string} document_id - ID of the requested document.\n * @property {string} field_invite_unique_id - ID of the signature invite you'd like to embed.\n * @property {number} link_expiration - In how many minutes the link expires, ranges from 15 to 45 minutes or null.\n * @property {string} auth_method - Signer authentication method.\n ", - "start": 2291, - "end": 2791, - "loc": { - "start": { - "line": 75, - "column": 2 - }, - "end": { - "line": 83, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Response EmbeddedGeneratedLink\n * @typedef {Object} EmbeddedGeneratedLink\n * @property {string} link - Returns a link for embedded invite\n ", - "start": 2795, - "end": 2951, - "loc": { - "start": { - "line": 85, - "column": 2 - }, - "end": { - "line": 89, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Generate a link for the embedded invite response data\n * @typedef {Object} EmbeddedGenerateLinkResponse\n * @property {EmbeddedGeneratedLink} data - Response data\n ", - "start": 2955, - "end": 3135, - "loc": { - "start": { - "line": 91, - "column": 2 - }, - "end": { - "line": 95, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Generate a link for the embedded invite.\n * @param {EmbeddedGenerateLinkPayload} data - Generate embedded invite link payload\n * @param {function(err: ApiErrorResponse, res: EmbeddedGenerateLinkResponse)} [callback] - error first node.js callback\n ", - "start": 3139, - "end": 3404, - "loc": { - "start": { - "line": 97, - "column": 2 - }, - "end": { - "line": 101, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Delete embedded invites for a document payload\n * @typedef {Object} EmbeddedCancelInvitePayload\n * @property {string} token - Access token.\n * @property {string} document_id - ID of the requested document.\n ", - "start": 4137, - "end": 4363, - "loc": { - "start": { - "line": 128, - "column": 2 - }, - "end": { - "line": 133, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Generate a link for the embedded invite response data\n * @typedef {Object} EmbeddedCancelInviteResponse\n * @property {string} status - Returns success when all parameters are correct\n ", - "start": 4367, - "end": 4568, - "loc": { - "start": { - "line": 135, - "column": 2 - }, - "end": { - "line": 139, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Delete embedded invites for a document.\n * @param {EmbeddedCancelInvitePayload} data - Delete embedded invites for a document payload\n * @param {function(err: ApiErrorResponse, res: EmbeddedCancelInviteResponse)} [callback] - error first node.js callback\n ", - "start": 4572, - "end": 4845, - "loc": { - "start": { - "line": 141, - "column": 2 - }, - "end": { - "line": 145, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 4848, - "end": 5289, - "loc": { - "start": { - "line": 146, - "column": 2 - }, - "end": { - "line": 159, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 4855, - "end": 4868, - "loc": { - "start": { - "line": 146, - "column": 9 - }, - "end": { - "line": 146, - "column": 22 - }, - "identifierName": "cancelInvites" - }, - "name": "cancelInvites" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 4870, - "end": 4892, - "loc": { - "start": { - "line": 146, - "column": 24 - }, - "end": { - "line": 146, - "column": 46 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4872, - "end": 4877, - "loc": { - "start": { - "line": 146, - "column": 26 - }, - "end": { - "line": 146, - "column": 31 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 4872, - "end": 4877, - "loc": { - "start": { - "line": 146, - "column": 26 - }, - "end": { - "line": 146, - "column": 31 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 4872, - "end": 4877, - "loc": { - "start": { - "line": 146, - "column": 26 - }, - "end": { - "line": 146, - "column": 31 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 4879, - "end": 4890, - "loc": { - "start": { - "line": 146, - "column": 33 - }, - "end": { - "line": 146, - "column": 44 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 4879, - "end": 4890, - "loc": { - "start": { - "line": 146, - "column": 33 - }, - "end": { - "line": 146, - "column": 44 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "value": { - "type": "Identifier", - "start": 4879, - "end": 4890, - "loc": { - "start": { - "line": 146, - "column": 33 - }, - "end": { - "line": 146, - "column": 44 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 4894, - "end": 4902, - "loc": { - "start": { - "line": 146, - "column": 48 - }, - "end": { - "line": 146, - "column": 56 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 4904, - "end": 5289, - "loc": { - "start": { - "line": 146, - "column": 58 - }, - "end": { - "line": 159, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 4910, - "end": 5270, - "loc": { - "start": { - "line": 147, - "column": 4 - }, - "end": { - "line": 157, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 4916, - "end": 5269, - "loc": { - "start": { - "line": 147, - "column": 10 - }, - "end": { - "line": 157, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 4916, - "end": 4919, - "loc": { - "start": { - "line": 147, - "column": 10 - }, - "end": { - "line": 147, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 4922, - "end": 5269, - "loc": { - "start": { - "line": 147, - "column": 16 - }, - "end": { - "line": 157, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4922, - "end": 5236, - "loc": { - "start": { - "line": 147, - "column": 16 - }, - "end": { - "line": 157, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 4922, - "end": 5226, - "loc": { - "start": { - "line": 147, - "column": 16 - }, - "end": { - "line": 156, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4922, - "end": 4942, - "loc": { - "start": { - "line": 147, - "column": 16 - }, - "end": { - "line": 148, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 4922, - "end": 4927, - "loc": { - "start": { - "line": 147, - "column": 16 - }, - "end": { - "line": 147, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 4935, - "end": 4942, - "loc": { - "start": { - "line": 148, - "column": 7 - }, - "end": { - "line": 148, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 4943, - "end": 5198, - "loc": { - "start": { - "line": 148, - "column": 15 - }, - "end": { - "line": 156, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 4943, - "end": 4962, - "loc": { - "start": { - "line": 148, - "column": 15 - }, - "end": { - "line": 148, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 4963, - "end": 5197, - "loc": { - "start": { - "line": 148, - "column": 35 - }, - "end": { - "line": 156, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4973, - "end": 4989, - "loc": { - "start": { - "line": 149, - "column": 8 - }, - "end": { - "line": 149, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4973, - "end": 4979, - "loc": { - "start": { - "line": 149, - "column": 8 - }, - "end": { - "line": 149, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 4981, - "end": 4989, - "loc": { - "start": { - "line": 149, - "column": 16 - }, - "end": { - "line": 149, - "column": 24 - } - }, - "extra": { - "rawValue": "DELETE", - "raw": "'DELETE'" - }, - "value": "DELETE" - } - }, - { - "type": "ObjectProperty", - "start": 4999, - "end": 5052, - "loc": { - "start": { - "line": 150, - "column": 8 - }, - "end": { - "line": 150, - "column": 61 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4999, - "end": 5003, - "loc": { - "start": { - "line": 150, - "column": 8 - }, - "end": { - "line": 150, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 5005, - "end": 5052, - "loc": { - "start": { - "line": 150, - "column": 14 - }, - "end": { - "line": 150, - "column": 61 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 5022, - "end": 5033, - "loc": { - "start": { - "line": 150, - "column": 31 - }, - "end": { - "line": 150, - "column": 42 - }, - "identifierName": "document_id" - }, - "name": "document_id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 5006, - "end": 5020, - "loc": { - "start": { - "line": 150, - "column": 15 - }, - "end": { - "line": 150, - "column": 29 - } - }, - "value": { - "raw": "/v2/documents/", - "cooked": "/v2/documents/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 5034, - "end": 5051, - "loc": { - "start": { - "line": 150, - "column": 43 - }, - "end": { - "line": 150, - "column": 60 - } - }, - "value": { - "raw": "/embedded-invites", - "cooked": "/embedded-invites" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 5062, - "end": 5131, - "loc": { - "start": { - "line": 151, - "column": 8 - }, - "end": { - "line": 154, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5062, - "end": 5075, - "loc": { - "start": { - "line": 151, - "column": 8 - }, - "end": { - "line": 151, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 5077, - "end": 5131, - "loc": { - "start": { - "line": 151, - "column": 23 - }, - "end": { - "line": 154, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5089, - "end": 5103, - "loc": { - "start": { - "line": 152, - "column": 10 - }, - "end": { - "line": 152, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5089, - "end": 5093, - "loc": { - "start": { - "line": 152, - "column": 10 - }, - "end": { - "line": 152, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 5095, - "end": 5103, - "loc": { - "start": { - "line": 152, - "column": 16 - }, - "end": { - "line": 152, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 5115, - "end": 5120, - "loc": { - "start": { - "line": 153, - "column": 10 - }, - "end": { - "line": 153, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5115, - "end": 5120, - "loc": { - "start": { - "line": 153, - "column": 10 - }, - "end": { - "line": 153, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 5115, - "end": 5120, - "loc": { - "start": { - "line": 153, - "column": 10 - }, - "end": { - "line": 153, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 5141, - "end": 5188, - "loc": { - "start": { - "line": 155, - "column": 8 - }, - "end": { - "line": 155, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5141, - "end": 5148, - "loc": { - "start": { - "line": 155, - "column": 8 - }, - "end": { - "line": 155, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 5150, - "end": 5188, - "loc": { - "start": { - "line": 155, - "column": 17 - }, - "end": { - "line": 155, - "column": 55 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5152, - "end": 5186, - "loc": { - "start": { - "line": 155, - "column": 19 - }, - "end": { - "line": 155, - "column": 53 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 5152, - "end": 5166, - "loc": { - "start": { - "line": 155, - "column": 19 - }, - "end": { - "line": 155, - "column": 33 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 5168, - "end": 5186, - "loc": { - "start": { - "line": 155, - "column": 35 - }, - "end": { - "line": 155, - "column": 53 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 5200, - "end": 5225, - "loc": { - "start": { - "line": 156, - "column": 10 - }, - "end": { - "line": 156, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 5200, - "end": 5215, - "loc": { - "start": { - "line": 156, - "column": 10 - }, - "end": { - "line": 156, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 5216, - "end": 5224, - "loc": { - "start": { - "line": 156, - "column": 26 - }, - "end": { - "line": 156, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 5234, - "end": 5236, - "loc": { - "start": { - "line": 157, - "column": 7 - }, - "end": { - "line": 157, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 5237, - "end": 5244, - "loc": { - "start": { - "line": 157, - "column": 10 - }, - "end": { - "line": 157, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 5246, - "end": 5268, - "loc": { - "start": { - "line": 157, - "column": 19 - }, - "end": { - "line": 157, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 5246, - "end": 5258, - "loc": { - "start": { - "line": 157, - "column": 19 - }, - "end": { - "line": 157, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 5259, - "end": 5267, - "loc": { - "start": { - "line": 157, - "column": 32 - }, - "end": { - "line": 157, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 5275, - "end": 5285, - "loc": { - "start": { - "line": 158, - "column": 4 - }, - "end": { - "line": 158, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 5275, - "end": 5284, - "loc": { - "start": { - "line": 158, - "column": 4 - }, - "end": { - "line": 158, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5275, - "end": 5282, - "loc": { - "start": { - "line": 158, - "column": 4 - }, - "end": { - "line": 158, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 5275, - "end": 5278, - "loc": { - "start": { - "line": 158, - "column": 4 - }, - "end": { - "line": 158, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 5279, - "end": 5282, - "loc": { - "start": { - "line": 158, - "column": 8 - }, - "end": { - "line": 158, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Delete embedded invites for a document payload\n * @typedef {Object} EmbeddedCancelInvitePayload\n * @property {string} token - Access token.\n * @property {string} document_id - ID of the requested document.\n ", - "start": 4137, - "end": 4363, - "loc": { - "start": { - "line": 128, - "column": 2 - }, - "end": { - "line": 133, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Generate a link for the embedded invite response data\n * @typedef {Object} EmbeddedCancelInviteResponse\n * @property {string} status - Returns success when all parameters are correct\n ", - "start": 4367, - "end": 4568, - "loc": { - "start": { - "line": 135, - "column": 2 - }, - "end": { - "line": 139, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Delete embedded invites for a document.\n * @param {EmbeddedCancelInvitePayload} data - Delete embedded invites for a document payload\n * @param {function(err: ApiErrorResponse, res: EmbeddedCancelInviteResponse)} [callback] - error first node.js callback\n ", - "start": 4572, - "end": 4845, - "loc": { - "start": { - "line": 141, - "column": 2 - }, - "end": { - "line": 145, - "column": 5 - } - } - } - ] - } - ] - }, - "leadingComments": [], - "name": "_", - "trailingComments": [] - }, - { - "type": "Identifier", - "start": 5293, - "end": 5317, - "loc": { - "start": { - "line": 162, - "column": 0 - }, - "end": { - "line": 162, - "column": 24 - } - }, - "declaration": { - "type": "Identifier", - "start": 5308, - "end": 5316, - "loc": { - "start": { - "line": 162, - "column": 15 - }, - "end": { - "line": 162, - "column": 23 - }, - "identifierName": "Embedded" - }, - "name": "Embedded" - }, - "name": "_", - "leadingComments": [], - "trailingComments": [] - }, - { - "type": "ExportDefaultDeclaration", - "start": 5293, - "end": 5317, - "loc": { - "start": { - "line": 162, - "column": 0 - }, - "end": { - "line": 162, - "column": 24 - } - }, - "declaration": { - "type": "ClassDeclaration", - "start": 157, - "end": 5291, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 160, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 163, - "end": 171, - "loc": { - "start": { - "line": 12, - "column": 6 - }, - "end": { - "line": 12, - "column": 14 - }, - "identifierName": "Embedded" - }, - "name": "Embedded", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 172, - "end": 5291, - "loc": { - "start": { - "line": 12, - "column": 15 - }, - "end": { - "line": 160, - "column": 1 - } - }, - "body": [ - { - "type": "ClassMethod", - "start": 1681, - "end": 2287, - "loc": { - "start": { - "line": 52, - "column": 2 - }, - "end": { - "line": 73, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1688, - "end": 1700, - "loc": { - "start": { - "line": 52, - "column": 9 - }, - "end": { - "line": 52, - "column": 21 - }, - "identifierName": "createInvite" - }, - "name": "createInvite" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 1702, - "end": 1740, - "loc": { - "start": { - "line": 52, - "column": 23 - }, - "end": { - "line": 54, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1708, - "end": 1713, - "loc": { - "start": { - "line": 53, - "column": 4 - }, - "end": { - "line": 53, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1708, - "end": 1713, - "loc": { - "start": { - "line": 53, - "column": 4 - }, - "end": { - "line": 53, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 1708, - "end": 1713, - "loc": { - "start": { - "line": 53, - "column": 4 - }, - "end": { - "line": 53, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1715, - "end": 1726, - "loc": { - "start": { - "line": 53, - "column": 11 - }, - "end": { - "line": 53, - "column": 22 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1715, - "end": 1726, - "loc": { - "start": { - "line": 53, - "column": 11 - }, - "end": { - "line": 53, - "column": 22 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "value": { - "type": "Identifier", - "start": 1715, - "end": 1726, - "loc": { - "start": { - "line": 53, - "column": 11 - }, - "end": { - "line": 53, - "column": 22 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1728, - "end": 1735, - "loc": { - "start": { - "line": 53, - "column": 24 - }, - "end": { - "line": 53, - "column": 31 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1728, - "end": 1735, - "loc": { - "start": { - "line": 53, - "column": 24 - }, - "end": { - "line": 53, - "column": 31 - }, - "identifierName": "invites" - }, - "name": "invites" - }, - "value": { - "type": "Identifier", - "start": 1728, - "end": 1735, - "loc": { - "start": { - "line": 53, - "column": 24 - }, - "end": { - "line": 53, - "column": 31 - }, - "identifierName": "invites" - }, - "name": "invites" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 1742, - "end": 1750, - "loc": { - "start": { - "line": 54, - "column": 5 - }, - "end": { - "line": 54, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 1752, - "end": 2287, - "loc": { - "start": { - "line": 54, - "column": 15 - }, - "end": { - "line": 73, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 1758, - "end": 1803, - "loc": { - "start": { - "line": 55, - "column": 4 - }, - "end": { - "line": 55, - "column": 49 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1764, - "end": 1802, - "loc": { - "start": { - "line": 55, - "column": 10 - }, - "end": { - "line": 55, - "column": 48 - } - }, - "id": { - "type": "Identifier", - "start": 1764, - "end": 1772, - "loc": { - "start": { - "line": 55, - "column": 10 - }, - "end": { - "line": 55, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 1775, - "end": 1802, - "loc": { - "start": { - "line": 55, - "column": 21 - }, - "end": { - "line": 55, - "column": 48 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1775, - "end": 1789, - "loc": { - "start": { - "line": 55, - "column": 21 - }, - "end": { - "line": 55, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 1775, - "end": 1779, - "loc": { - "start": { - "line": 55, - "column": 21 - }, - "end": { - "line": 55, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 1780, - "end": 1789, - "loc": { - "start": { - "line": 55, - "column": 26 - }, - "end": { - "line": 55, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 1790, - "end": 1801, - "loc": { - "start": { - "line": 55, - "column": 36 - }, - "end": { - "line": 55, - "column": 47 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1792, - "end": 1799, - "loc": { - "start": { - "line": 55, - "column": 38 - }, - "end": { - "line": 55, - "column": 45 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1792, - "end": 1799, - "loc": { - "start": { - "line": 55, - "column": 38 - }, - "end": { - "line": 55, - "column": 45 - }, - "identifierName": "invites" - }, - "name": "invites" - }, - "value": { - "type": "Identifier", - "start": 1792, - "end": 1799, - "loc": { - "start": { - "line": 55, - "column": 38 - }, - "end": { - "line": 55, - "column": 45 - }, - "identifierName": "invites" - }, - "name": "invites" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 1808, - "end": 2242, - "loc": { - "start": { - "line": 56, - "column": 4 - }, - "end": { - "line": 69, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1814, - "end": 2241, - "loc": { - "start": { - "line": 56, - "column": 10 - }, - "end": { - "line": 69, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 1814, - "end": 1817, - "loc": { - "start": { - "line": 56, - "column": 10 - }, - "end": { - "line": 56, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 1820, - "end": 2241, - "loc": { - "start": { - "line": 56, - "column": 16 - }, - "end": { - "line": 69, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1820, - "end": 2208, - "loc": { - "start": { - "line": 56, - "column": 16 - }, - "end": { - "line": 69, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 1820, - "end": 2198, - "loc": { - "start": { - "line": 56, - "column": 16 - }, - "end": { - "line": 68, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1820, - "end": 1840, - "loc": { - "start": { - "line": 56, - "column": 16 - }, - "end": { - "line": 57, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 1820, - "end": 1825, - "loc": { - "start": { - "line": 56, - "column": 16 - }, - "end": { - "line": 56, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 1833, - "end": 1840, - "loc": { - "start": { - "line": 57, - "column": 7 - }, - "end": { - "line": 57, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 1841, - "end": 2170, - "loc": { - "start": { - "line": 57, - "column": 15 - }, - "end": { - "line": 68, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 1841, - "end": 1860, - "loc": { - "start": { - "line": 57, - "column": 15 - }, - "end": { - "line": 57, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 1861, - "end": 2169, - "loc": { - "start": { - "line": 57, - "column": 35 - }, - "end": { - "line": 68, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1871, - "end": 1885, - "loc": { - "start": { - "line": 58, - "column": 8 - }, - "end": { - "line": 58, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1871, - "end": 1877, - "loc": { - "start": { - "line": 58, - "column": 8 - }, - "end": { - "line": 58, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 1879, - "end": 1885, - "loc": { - "start": { - "line": 58, - "column": 16 - }, - "end": { - "line": 58, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 1895, - "end": 1948, - "loc": { - "start": { - "line": 59, - "column": 8 - }, - "end": { - "line": 59, - "column": 61 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1895, - "end": 1899, - "loc": { - "start": { - "line": 59, - "column": 8 - }, - "end": { - "line": 59, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 1901, - "end": 1948, - "loc": { - "start": { - "line": 59, - "column": 14 - }, - "end": { - "line": 59, - "column": 61 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 1918, - "end": 1929, - "loc": { - "start": { - "line": 59, - "column": 31 - }, - "end": { - "line": 59, - "column": 42 - }, - "identifierName": "document_id" - }, - "name": "document_id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 1902, - "end": 1916, - "loc": { - "start": { - "line": 59, - "column": 15 - }, - "end": { - "line": 59, - "column": 29 - } - }, - "value": { - "raw": "/v2/documents/", - "cooked": "/v2/documents/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 1930, - "end": 1947, - "loc": { - "start": { - "line": 59, - "column": 43 - }, - "end": { - "line": 59, - "column": 60 - } - }, - "value": { - "raw": "/embedded-invites", - "cooked": "/embedded-invites" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 1958, - "end": 2027, - "loc": { - "start": { - "line": 60, - "column": 8 - }, - "end": { - "line": 63, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1958, - "end": 1971, - "loc": { - "start": { - "line": 60, - "column": 8 - }, - "end": { - "line": 60, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 1973, - "end": 2027, - "loc": { - "start": { - "line": 60, - "column": 23 - }, - "end": { - "line": 63, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1985, - "end": 1999, - "loc": { - "start": { - "line": 61, - "column": 10 - }, - "end": { - "line": 61, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1985, - "end": 1989, - "loc": { - "start": { - "line": 61, - "column": 10 - }, - "end": { - "line": 61, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 1991, - "end": 1999, - "loc": { - "start": { - "line": 61, - "column": 16 - }, - "end": { - "line": 61, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 2011, - "end": 2016, - "loc": { - "start": { - "line": 62, - "column": 10 - }, - "end": { - "line": 62, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2011, - "end": 2016, - "loc": { - "start": { - "line": 62, - "column": 10 - }, - "end": { - "line": 62, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 2011, - "end": 2016, - "loc": { - "start": { - "line": 62, - "column": 10 - }, - "end": { - "line": 62, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 2037, - "end": 2160, - "loc": { - "start": { - "line": 64, - "column": 8 - }, - "end": { - "line": 67, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2037, - "end": 2044, - "loc": { - "start": { - "line": 64, - "column": 8 - }, - "end": { - "line": 64, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 2046, - "end": 2160, - "loc": { - "start": { - "line": 64, - "column": 17 - }, - "end": { - "line": 67, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2058, - "end": 2092, - "loc": { - "start": { - "line": 65, - "column": 10 - }, - "end": { - "line": 65, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 2058, - "end": 2072, - "loc": { - "start": { - "line": 65, - "column": 10 - }, - "end": { - "line": 65, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 2074, - "end": 2092, - "loc": { - "start": { - "line": 65, - "column": 26 - }, - "end": { - "line": 65, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 2104, - "end": 2149, - "loc": { - "start": { - "line": 66, - "column": 10 - }, - "end": { - "line": 66, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 2104, - "end": 2120, - "loc": { - "start": { - "line": 66, - "column": 10 - }, - "end": { - "line": 66, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 2122, - "end": 2149, - "loc": { - "start": { - "line": 66, - "column": 28 - }, - "end": { - "line": 66, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2122, - "end": 2139, - "loc": { - "start": { - "line": 66, - "column": 28 - }, - "end": { - "line": 66, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 2122, - "end": 2128, - "loc": { - "start": { - "line": 66, - "column": 28 - }, - "end": { - "line": 66, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 2129, - "end": 2139, - "loc": { - "start": { - "line": 66, - "column": 35 - }, - "end": { - "line": 66, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2140, - "end": 2148, - "loc": { - "start": { - "line": 66, - "column": 46 - }, - "end": { - "line": 66, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 2172, - "end": 2197, - "loc": { - "start": { - "line": 68, - "column": 10 - }, - "end": { - "line": 68, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 2172, - "end": 2187, - "loc": { - "start": { - "line": 68, - "column": 10 - }, - "end": { - "line": 68, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2188, - "end": 2196, - "loc": { - "start": { - "line": 68, - "column": 26 - }, - "end": { - "line": 68, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 2206, - "end": 2208, - "loc": { - "start": { - "line": 69, - "column": 7 - }, - "end": { - "line": 69, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2209, - "end": 2216, - "loc": { - "start": { - "line": 69, - "column": 10 - }, - "end": { - "line": 69, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 2218, - "end": 2240, - "loc": { - "start": { - "line": 69, - "column": 19 - }, - "end": { - "line": 69, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 2218, - "end": 2230, - "loc": { - "start": { - "line": 69, - "column": 19 - }, - "end": { - "line": 69, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2231, - "end": 2239, - "loc": { - "start": { - "line": 69, - "column": 32 - }, - "end": { - "line": 69, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 2248, - "end": 2268, - "loc": { - "start": { - "line": 71, - "column": 4 - }, - "end": { - "line": 71, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 2248, - "end": 2267, - "loc": { - "start": { - "line": 71, - "column": 4 - }, - "end": { - "line": 71, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2248, - "end": 2257, - "loc": { - "start": { - "line": 71, - "column": 4 - }, - "end": { - "line": 71, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 2248, - "end": 2251, - "loc": { - "start": { - "line": 71, - "column": 4 - }, - "end": { - "line": 71, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 2252, - "end": 2257, - "loc": { - "start": { - "line": 71, - "column": 8 - }, - "end": { - "line": 71, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2258, - "end": 2266, - "loc": { - "start": { - "line": 71, - "column": 14 - }, - "end": { - "line": 71, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 2273, - "end": 2283, - "loc": { - "start": { - "line": 72, - "column": 4 - }, - "end": { - "line": 72, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 2273, - "end": 2282, - "loc": { - "start": { - "line": 72, - "column": 4 - }, - "end": { - "line": 72, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2273, - "end": 2280, - "loc": { - "start": { - "line": 72, - "column": 4 - }, - "end": { - "line": 72, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 2273, - "end": 2276, - "loc": { - "start": { - "line": 72, - "column": 4 - }, - "end": { - "line": 72, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 2277, - "end": 2280, - "loc": { - "start": { - "line": 72, - "column": 8 - }, - "end": { - "line": 72, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Create embedded signing invite payload\n * @typedef {Object} EmbeddedSigningInvite\n * @property {string} email - Signer's email address\n * @property {number} role_id - Signer's role ID\n * @property {number} order - Order of signing. Cannot be 0\n * @property {string} auth_method - Signer authentication method. One of (password, email, mfa, social, biometric, other, none)\n ", - "start": 177, - "end": 573, - "loc": { - "start": { - "line": 14, - "column": 2 - }, - "end": { - "line": 21, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create embedded signing invites payload\n * @typedef {Object} EmbeddedCreateInvitesPayload\n * @property {string} token - Access token.\n * @property {string} document_id - ID of the requested document.\n * @property {EmbeddedSigningInvite[]} invites - Array of invites\n ", - "start": 577, - "end": 865, - "loc": { - "start": { - "line": 23, - "column": 2 - }, - "end": { - "line": 29, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Response EmbeddedInvite\n * @typedef {Object} EmbeddedInvite\n * @property {string} id - ID of the sending invite\n * @property {string} email - Signer's email address\n * @property {number} role_id - Signer's role ID\n * @property {number} order - Order of signing\n * @property {string} status - Status of the invite\n ", - "start": 869, - "end": 1209, - "loc": { - "start": { - "line": 31, - "column": 2 - }, - "end": { - "line": 39, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create embedded signing invites response data\n * @typedef {Object} EmbeddedCreateInvitesResponse\n * @property {EmbeddedInvite[]} data - Array sending of invites\n ", - "start": 1213, - "end": 1392, - "loc": { - "start": { - "line": 41, - "column": 2 - }, - "end": { - "line": 45, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create embedded signing invites for a document without sending emails.\n * @param {EmbeddedCreateInvitesPayload} data - Create invites payload\n * @param {function(err: ApiErrorResponse, res: EmbeddedCreateInvitesResponse)} [callback] - error first node.js callback\n ", - "start": 1396, - "end": 1678, - "loc": { - "start": { - "line": 47, - "column": 2 - }, - "end": { - "line": 51, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Generate embedded invite link payload\n * @typedef {Object} EmbeddedGenerateLinkPayload\n * @property {string} token - Access token.\n * @property {string} document_id - ID of the requested document.\n * @property {string} field_invite_unique_id - ID of the signature invite you'd like to embed.\n * @property {number} link_expiration - In how many minutes the link expires, ranges from 15 to 45 minutes or null.\n * @property {string} auth_method - Signer authentication method.\n ", - "start": 2291, - "end": 2791, - "loc": { - "start": { - "line": 75, - "column": 2 - }, - "end": { - "line": 83, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Response EmbeddedGeneratedLink\n * @typedef {Object} EmbeddedGeneratedLink\n * @property {string} link - Returns a link for embedded invite\n ", - "start": 2795, - "end": 2951, - "loc": { - "start": { - "line": 85, - "column": 2 - }, - "end": { - "line": 89, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Generate a link for the embedded invite response data\n * @typedef {Object} EmbeddedGenerateLinkResponse\n * @property {EmbeddedGeneratedLink} data - Response data\n ", - "start": 2955, - "end": 3135, - "loc": { - "start": { - "line": 91, - "column": 2 - }, - "end": { - "line": 95, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Generate a link for the embedded invite.\n * @param {EmbeddedGenerateLinkPayload} data - Generate embedded invite link payload\n * @param {function(err: ApiErrorResponse, res: EmbeddedGenerateLinkResponse)} [callback] - error first node.js callback\n ", - "start": 3139, - "end": 3404, - "loc": { - "start": { - "line": 97, - "column": 2 - }, - "end": { - "line": 101, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 3407, - "end": 4133, - "loc": { - "start": { - "line": 102, - "column": 2 - }, - "end": { - "line": 126, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3414, - "end": 3432, - "loc": { - "start": { - "line": 102, - "column": 9 - }, - "end": { - "line": 102, - "column": 27 - }, - "identifierName": "generateInviteLink" - }, - "name": "generateInviteLink" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 3434, - "end": 3517, - "loc": { - "start": { - "line": 102, - "column": 29 - }, - "end": { - "line": 104, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3440, - "end": 3445, - "loc": { - "start": { - "line": 103, - "column": 4 - }, - "end": { - "line": 103, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3440, - "end": 3445, - "loc": { - "start": { - "line": 103, - "column": 4 - }, - "end": { - "line": 103, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 3440, - "end": 3445, - "loc": { - "start": { - "line": 103, - "column": 4 - }, - "end": { - "line": 103, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3447, - "end": 3458, - "loc": { - "start": { - "line": 103, - "column": 11 - }, - "end": { - "line": 103, - "column": 22 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3447, - "end": 3458, - "loc": { - "start": { - "line": 103, - "column": 11 - }, - "end": { - "line": 103, - "column": 22 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "value": { - "type": "Identifier", - "start": 3447, - "end": 3458, - "loc": { - "start": { - "line": 103, - "column": 11 - }, - "end": { - "line": 103, - "column": 22 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3460, - "end": 3482, - "loc": { - "start": { - "line": 103, - "column": 24 - }, - "end": { - "line": 103, - "column": 46 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3460, - "end": 3482, - "loc": { - "start": { - "line": 103, - "column": 24 - }, - "end": { - "line": 103, - "column": 46 - }, - "identifierName": "field_invite_unique_id" - }, - "name": "field_invite_unique_id" - }, - "value": { - "type": "Identifier", - "start": 3460, - "end": 3482, - "loc": { - "start": { - "line": 103, - "column": 24 - }, - "end": { - "line": 103, - "column": 46 - }, - "identifierName": "field_invite_unique_id" - }, - "name": "field_invite_unique_id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3484, - "end": 3499, - "loc": { - "start": { - "line": 103, - "column": 48 - }, - "end": { - "line": 103, - "column": 63 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3484, - "end": 3499, - "loc": { - "start": { - "line": 103, - "column": 48 - }, - "end": { - "line": 103, - "column": 63 - }, - "identifierName": "link_expiration" - }, - "name": "link_expiration" - }, - "value": { - "type": "Identifier", - "start": 3484, - "end": 3499, - "loc": { - "start": { - "line": 103, - "column": 48 - }, - "end": { - "line": 103, - "column": 63 - }, - "identifierName": "link_expiration" - }, - "name": "link_expiration" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3501, - "end": 3512, - "loc": { - "start": { - "line": 103, - "column": 65 - }, - "end": { - "line": 103, - "column": 76 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3501, - "end": 3512, - "loc": { - "start": { - "line": 103, - "column": 65 - }, - "end": { - "line": 103, - "column": 76 - }, - "identifierName": "auth_method" - }, - "name": "auth_method" - }, - "value": { - "type": "Identifier", - "start": 3501, - "end": 3512, - "loc": { - "start": { - "line": 103, - "column": 65 - }, - "end": { - "line": 103, - "column": 76 - }, - "identifierName": "auth_method" - }, - "name": "auth_method" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 3519, - "end": 3527, - "loc": { - "start": { - "line": 104, - "column": 5 - }, - "end": { - "line": 104, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 3529, - "end": 4133, - "loc": { - "start": { - "line": 104, - "column": 15 - }, - "end": { - "line": 126, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 3535, - "end": 3618, - "loc": { - "start": { - "line": 105, - "column": 4 - }, - "end": { - "line": 108, - "column": 7 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3541, - "end": 3617, - "loc": { - "start": { - "line": 105, - "column": 10 - }, - "end": { - "line": 108, - "column": 6 - } - }, - "id": { - "type": "Identifier", - "start": 3541, - "end": 3549, - "loc": { - "start": { - "line": 105, - "column": 10 - }, - "end": { - "line": 105, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 3552, - "end": 3617, - "loc": { - "start": { - "line": 105, - "column": 21 - }, - "end": { - "line": 108, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3552, - "end": 3566, - "loc": { - "start": { - "line": 105, - "column": 21 - }, - "end": { - "line": 105, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 3552, - "end": 3556, - "loc": { - "start": { - "line": 105, - "column": 21 - }, - "end": { - "line": 105, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 3557, - "end": 3566, - "loc": { - "start": { - "line": 105, - "column": 26 - }, - "end": { - "line": 105, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 3567, - "end": 3616, - "loc": { - "start": { - "line": 105, - "column": 36 - }, - "end": { - "line": 108, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3575, - "end": 3590, - "loc": { - "start": { - "line": 106, - "column": 6 - }, - "end": { - "line": 106, - "column": 21 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3575, - "end": 3590, - "loc": { - "start": { - "line": 106, - "column": 6 - }, - "end": { - "line": 106, - "column": 21 - }, - "identifierName": "link_expiration" - }, - "name": "link_expiration" - }, - "value": { - "type": "Identifier", - "start": 3575, - "end": 3590, - "loc": { - "start": { - "line": 106, - "column": 6 - }, - "end": { - "line": 106, - "column": 21 - }, - "identifierName": "link_expiration" - }, - "name": "link_expiration" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3598, - "end": 3609, - "loc": { - "start": { - "line": 107, - "column": 6 - }, - "end": { - "line": 107, - "column": 17 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3598, - "end": 3609, - "loc": { - "start": { - "line": 107, - "column": 6 - }, - "end": { - "line": 107, - "column": 17 - }, - "identifierName": "auth_method" - }, - "name": "auth_method" - }, - "value": { - "type": "Identifier", - "start": 3598, - "end": 3609, - "loc": { - "start": { - "line": 107, - "column": 6 - }, - "end": { - "line": 107, - "column": 17 - }, - "identifierName": "auth_method" - }, - "name": "auth_method" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 3623, - "end": 4088, - "loc": { - "start": { - "line": 109, - "column": 4 - }, - "end": { - "line": 122, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3629, - "end": 4087, - "loc": { - "start": { - "line": 109, - "column": 10 - }, - "end": { - "line": 122, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 3629, - "end": 3632, - "loc": { - "start": { - "line": 109, - "column": 10 - }, - "end": { - "line": 109, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 3635, - "end": 4087, - "loc": { - "start": { - "line": 109, - "column": 16 - }, - "end": { - "line": 122, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3635, - "end": 4054, - "loc": { - "start": { - "line": 109, - "column": 16 - }, - "end": { - "line": 122, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 3635, - "end": 4044, - "loc": { - "start": { - "line": 109, - "column": 16 - }, - "end": { - "line": 121, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3635, - "end": 3655, - "loc": { - "start": { - "line": 109, - "column": 16 - }, - "end": { - "line": 110, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 3635, - "end": 3640, - "loc": { - "start": { - "line": 109, - "column": 16 - }, - "end": { - "line": 109, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 3648, - "end": 3655, - "loc": { - "start": { - "line": 110, - "column": 7 - }, - "end": { - "line": 110, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 3656, - "end": 4016, - "loc": { - "start": { - "line": 110, - "column": 15 - }, - "end": { - "line": 121, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 3656, - "end": 3675, - "loc": { - "start": { - "line": 110, - "column": 15 - }, - "end": { - "line": 110, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 3676, - "end": 4015, - "loc": { - "start": { - "line": 110, - "column": 35 - }, - "end": { - "line": 121, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3686, - "end": 3700, - "loc": { - "start": { - "line": 111, - "column": 8 - }, - "end": { - "line": 111, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3686, - "end": 3692, - "loc": { - "start": { - "line": 111, - "column": 8 - }, - "end": { - "line": 111, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 3694, - "end": 3700, - "loc": { - "start": { - "line": 111, - "column": 16 - }, - "end": { - "line": 111, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 3710, - "end": 3794, - "loc": { - "start": { - "line": 112, - "column": 8 - }, - "end": { - "line": 112, - "column": 92 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3710, - "end": 3714, - "loc": { - "start": { - "line": 112, - "column": 8 - }, - "end": { - "line": 112, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 3716, - "end": 3794, - "loc": { - "start": { - "line": 112, - "column": 14 - }, - "end": { - "line": 112, - "column": 92 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 3733, - "end": 3744, - "loc": { - "start": { - "line": 112, - "column": 31 - }, - "end": { - "line": 112, - "column": 42 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - { - "type": "Identifier", - "start": 3765, - "end": 3787, - "loc": { - "start": { - "line": 112, - "column": 63 - }, - "end": { - "line": 112, - "column": 85 - }, - "identifierName": "field_invite_unique_id" - }, - "name": "field_invite_unique_id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 3717, - "end": 3731, - "loc": { - "start": { - "line": 112, - "column": 15 - }, - "end": { - "line": 112, - "column": 29 - } - }, - "value": { - "raw": "/v2/documents/", - "cooked": "/v2/documents/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 3745, - "end": 3763, - "loc": { - "start": { - "line": 112, - "column": 43 - }, - "end": { - "line": 112, - "column": 61 - } - }, - "value": { - "raw": "/embedded-invites/", - "cooked": "/embedded-invites/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 3788, - "end": 3793, - "loc": { - "start": { - "line": 112, - "column": 86 - }, - "end": { - "line": 112, - "column": 91 - } - }, - "value": { - "raw": "/link", - "cooked": "/link" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 3804, - "end": 3873, - "loc": { - "start": { - "line": 113, - "column": 8 - }, - "end": { - "line": 116, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3804, - "end": 3817, - "loc": { - "start": { - "line": 113, - "column": 8 - }, - "end": { - "line": 113, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 3819, - "end": 3873, - "loc": { - "start": { - "line": 113, - "column": 23 - }, - "end": { - "line": 116, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3831, - "end": 3845, - "loc": { - "start": { - "line": 114, - "column": 10 - }, - "end": { - "line": 114, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3831, - "end": 3835, - "loc": { - "start": { - "line": 114, - "column": 10 - }, - "end": { - "line": 114, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 3837, - "end": 3845, - "loc": { - "start": { - "line": 114, - "column": 16 - }, - "end": { - "line": 114, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 3857, - "end": 3862, - "loc": { - "start": { - "line": 115, - "column": 10 - }, - "end": { - "line": 115, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3857, - "end": 3862, - "loc": { - "start": { - "line": 115, - "column": 10 - }, - "end": { - "line": 115, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 3857, - "end": 3862, - "loc": { - "start": { - "line": 115, - "column": 10 - }, - "end": { - "line": 115, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 3883, - "end": 4006, - "loc": { - "start": { - "line": 117, - "column": 8 - }, - "end": { - "line": 120, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3883, - "end": 3890, - "loc": { - "start": { - "line": 117, - "column": 8 - }, - "end": { - "line": 117, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 3892, - "end": 4006, - "loc": { - "start": { - "line": 117, - "column": 17 - }, - "end": { - "line": 120, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3904, - "end": 3938, - "loc": { - "start": { - "line": 118, - "column": 10 - }, - "end": { - "line": 118, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 3904, - "end": 3918, - "loc": { - "start": { - "line": 118, - "column": 10 - }, - "end": { - "line": 118, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 3920, - "end": 3938, - "loc": { - "start": { - "line": 118, - "column": 26 - }, - "end": { - "line": 118, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 3950, - "end": 3995, - "loc": { - "start": { - "line": 119, - "column": 10 - }, - "end": { - "line": 119, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 3950, - "end": 3966, - "loc": { - "start": { - "line": 119, - "column": 10 - }, - "end": { - "line": 119, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 3968, - "end": 3995, - "loc": { - "start": { - "line": 119, - "column": 28 - }, - "end": { - "line": 119, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3968, - "end": 3985, - "loc": { - "start": { - "line": 119, - "column": 28 - }, - "end": { - "line": 119, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 3968, - "end": 3974, - "loc": { - "start": { - "line": 119, - "column": 28 - }, - "end": { - "line": 119, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 3975, - "end": 3985, - "loc": { - "start": { - "line": 119, - "column": 35 - }, - "end": { - "line": 119, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 3986, - "end": 3994, - "loc": { - "start": { - "line": 119, - "column": 46 - }, - "end": { - "line": 119, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 4018, - "end": 4043, - "loc": { - "start": { - "line": 121, - "column": 10 - }, - "end": { - "line": 121, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 4018, - "end": 4033, - "loc": { - "start": { - "line": 121, - "column": 10 - }, - "end": { - "line": 121, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 4034, - "end": 4042, - "loc": { - "start": { - "line": 121, - "column": 26 - }, - "end": { - "line": 121, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 4052, - "end": 4054, - "loc": { - "start": { - "line": 122, - "column": 7 - }, - "end": { - "line": 122, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 4055, - "end": 4062, - "loc": { - "start": { - "line": 122, - "column": 10 - }, - "end": { - "line": 122, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 4064, - "end": 4086, - "loc": { - "start": { - "line": 122, - "column": 19 - }, - "end": { - "line": 122, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 4064, - "end": 4076, - "loc": { - "start": { - "line": 122, - "column": 19 - }, - "end": { - "line": 122, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 4077, - "end": 4085, - "loc": { - "start": { - "line": 122, - "column": 32 - }, - "end": { - "line": 122, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 4094, - "end": 4114, - "loc": { - "start": { - "line": 124, - "column": 4 - }, - "end": { - "line": 124, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 4094, - "end": 4113, - "loc": { - "start": { - "line": 124, - "column": 4 - }, - "end": { - "line": 124, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4094, - "end": 4103, - "loc": { - "start": { - "line": 124, - "column": 4 - }, - "end": { - "line": 124, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 4094, - "end": 4097, - "loc": { - "start": { - "line": 124, - "column": 4 - }, - "end": { - "line": 124, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 4098, - "end": 4103, - "loc": { - "start": { - "line": 124, - "column": 8 - }, - "end": { - "line": 124, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 4104, - "end": 4112, - "loc": { - "start": { - "line": 124, - "column": 14 - }, - "end": { - "line": 124, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 4119, - "end": 4129, - "loc": { - "start": { - "line": 125, - "column": 4 - }, - "end": { - "line": 125, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 4119, - "end": 4128, - "loc": { - "start": { - "line": 125, - "column": 4 - }, - "end": { - "line": 125, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4119, - "end": 4126, - "loc": { - "start": { - "line": 125, - "column": 4 - }, - "end": { - "line": 125, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 4119, - "end": 4122, - "loc": { - "start": { - "line": 125, - "column": 4 - }, - "end": { - "line": 125, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 4123, - "end": 4126, - "loc": { - "start": { - "line": 125, - "column": 8 - }, - "end": { - "line": 125, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Generate embedded invite link payload\n * @typedef {Object} EmbeddedGenerateLinkPayload\n * @property {string} token - Access token.\n * @property {string} document_id - ID of the requested document.\n * @property {string} field_invite_unique_id - ID of the signature invite you'd like to embed.\n * @property {number} link_expiration - In how many minutes the link expires, ranges from 15 to 45 minutes or null.\n * @property {string} auth_method - Signer authentication method.\n ", - "start": 2291, - "end": 2791, - "loc": { - "start": { - "line": 75, - "column": 2 - }, - "end": { - "line": 83, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Response EmbeddedGeneratedLink\n * @typedef {Object} EmbeddedGeneratedLink\n * @property {string} link - Returns a link for embedded invite\n ", - "start": 2795, - "end": 2951, - "loc": { - "start": { - "line": 85, - "column": 2 - }, - "end": { - "line": 89, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Generate a link for the embedded invite response data\n * @typedef {Object} EmbeddedGenerateLinkResponse\n * @property {EmbeddedGeneratedLink} data - Response data\n ", - "start": 2955, - "end": 3135, - "loc": { - "start": { - "line": 91, - "column": 2 - }, - "end": { - "line": 95, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Generate a link for the embedded invite.\n * @param {EmbeddedGenerateLinkPayload} data - Generate embedded invite link payload\n * @param {function(err: ApiErrorResponse, res: EmbeddedGenerateLinkResponse)} [callback] - error first node.js callback\n ", - "start": 3139, - "end": 3404, - "loc": { - "start": { - "line": 97, - "column": 2 - }, - "end": { - "line": 101, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Delete embedded invites for a document payload\n * @typedef {Object} EmbeddedCancelInvitePayload\n * @property {string} token - Access token.\n * @property {string} document_id - ID of the requested document.\n ", - "start": 4137, - "end": 4363, - "loc": { - "start": { - "line": 128, - "column": 2 - }, - "end": { - "line": 133, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Generate a link for the embedded invite response data\n * @typedef {Object} EmbeddedCancelInviteResponse\n * @property {string} status - Returns success when all parameters are correct\n ", - "start": 4367, - "end": 4568, - "loc": { - "start": { - "line": 135, - "column": 2 - }, - "end": { - "line": 139, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Delete embedded invites for a document.\n * @param {EmbeddedCancelInvitePayload} data - Delete embedded invites for a document payload\n * @param {function(err: ApiErrorResponse, res: EmbeddedCancelInviteResponse)} [callback] - error first node.js callback\n ", - "start": 4572, - "end": 4845, - "loc": { - "start": { - "line": 141, - "column": 2 - }, - "end": { - "line": 145, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 4848, - "end": 5289, - "loc": { - "start": { - "line": 146, - "column": 2 - }, - "end": { - "line": 159, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 4855, - "end": 4868, - "loc": { - "start": { - "line": 146, - "column": 9 - }, - "end": { - "line": 146, - "column": 22 - }, - "identifierName": "cancelInvites" - }, - "name": "cancelInvites" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 4870, - "end": 4892, - "loc": { - "start": { - "line": 146, - "column": 24 - }, - "end": { - "line": 146, - "column": 46 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4872, - "end": 4877, - "loc": { - "start": { - "line": 146, - "column": 26 - }, - "end": { - "line": 146, - "column": 31 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 4872, - "end": 4877, - "loc": { - "start": { - "line": 146, - "column": 26 - }, - "end": { - "line": 146, - "column": 31 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 4872, - "end": 4877, - "loc": { - "start": { - "line": 146, - "column": 26 - }, - "end": { - "line": 146, - "column": 31 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 4879, - "end": 4890, - "loc": { - "start": { - "line": 146, - "column": 33 - }, - "end": { - "line": 146, - "column": 44 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 4879, - "end": 4890, - "loc": { - "start": { - "line": 146, - "column": 33 - }, - "end": { - "line": 146, - "column": 44 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "value": { - "type": "Identifier", - "start": 4879, - "end": 4890, - "loc": { - "start": { - "line": 146, - "column": 33 - }, - "end": { - "line": 146, - "column": 44 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 4894, - "end": 4902, - "loc": { - "start": { - "line": 146, - "column": 48 - }, - "end": { - "line": 146, - "column": 56 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 4904, - "end": 5289, - "loc": { - "start": { - "line": 146, - "column": 58 - }, - "end": { - "line": 159, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 4910, - "end": 5270, - "loc": { - "start": { - "line": 147, - "column": 4 - }, - "end": { - "line": 157, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 4916, - "end": 5269, - "loc": { - "start": { - "line": 147, - "column": 10 - }, - "end": { - "line": 157, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 4916, - "end": 4919, - "loc": { - "start": { - "line": 147, - "column": 10 - }, - "end": { - "line": 147, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 4922, - "end": 5269, - "loc": { - "start": { - "line": 147, - "column": 16 - }, - "end": { - "line": 157, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4922, - "end": 5236, - "loc": { - "start": { - "line": 147, - "column": 16 - }, - "end": { - "line": 157, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 4922, - "end": 5226, - "loc": { - "start": { - "line": 147, - "column": 16 - }, - "end": { - "line": 156, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4922, - "end": 4942, - "loc": { - "start": { - "line": 147, - "column": 16 - }, - "end": { - "line": 148, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 4922, - "end": 4927, - "loc": { - "start": { - "line": 147, - "column": 16 - }, - "end": { - "line": 147, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 4935, - "end": 4942, - "loc": { - "start": { - "line": 148, - "column": 7 - }, - "end": { - "line": 148, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 4943, - "end": 5198, - "loc": { - "start": { - "line": 148, - "column": 15 - }, - "end": { - "line": 156, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 4943, - "end": 4962, - "loc": { - "start": { - "line": 148, - "column": 15 - }, - "end": { - "line": 148, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 4963, - "end": 5197, - "loc": { - "start": { - "line": 148, - "column": 35 - }, - "end": { - "line": 156, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4973, - "end": 4989, - "loc": { - "start": { - "line": 149, - "column": 8 - }, - "end": { - "line": 149, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4973, - "end": 4979, - "loc": { - "start": { - "line": 149, - "column": 8 - }, - "end": { - "line": 149, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 4981, - "end": 4989, - "loc": { - "start": { - "line": 149, - "column": 16 - }, - "end": { - "line": 149, - "column": 24 - } - }, - "extra": { - "rawValue": "DELETE", - "raw": "'DELETE'" - }, - "value": "DELETE" - } - }, - { - "type": "ObjectProperty", - "start": 4999, - "end": 5052, - "loc": { - "start": { - "line": 150, - "column": 8 - }, - "end": { - "line": 150, - "column": 61 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4999, - "end": 5003, - "loc": { - "start": { - "line": 150, - "column": 8 - }, - "end": { - "line": 150, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 5005, - "end": 5052, - "loc": { - "start": { - "line": 150, - "column": 14 - }, - "end": { - "line": 150, - "column": 61 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 5022, - "end": 5033, - "loc": { - "start": { - "line": 150, - "column": 31 - }, - "end": { - "line": 150, - "column": 42 - }, - "identifierName": "document_id" - }, - "name": "document_id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 5006, - "end": 5020, - "loc": { - "start": { - "line": 150, - "column": 15 - }, - "end": { - "line": 150, - "column": 29 - } - }, - "value": { - "raw": "/v2/documents/", - "cooked": "/v2/documents/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 5034, - "end": 5051, - "loc": { - "start": { - "line": 150, - "column": 43 - }, - "end": { - "line": 150, - "column": 60 - } - }, - "value": { - "raw": "/embedded-invites", - "cooked": "/embedded-invites" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 5062, - "end": 5131, - "loc": { - "start": { - "line": 151, - "column": 8 - }, - "end": { - "line": 154, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5062, - "end": 5075, - "loc": { - "start": { - "line": 151, - "column": 8 - }, - "end": { - "line": 151, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 5077, - "end": 5131, - "loc": { - "start": { - "line": 151, - "column": 23 - }, - "end": { - "line": 154, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5089, - "end": 5103, - "loc": { - "start": { - "line": 152, - "column": 10 - }, - "end": { - "line": 152, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5089, - "end": 5093, - "loc": { - "start": { - "line": 152, - "column": 10 - }, - "end": { - "line": 152, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 5095, - "end": 5103, - "loc": { - "start": { - "line": 152, - "column": 16 - }, - "end": { - "line": 152, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 5115, - "end": 5120, - "loc": { - "start": { - "line": 153, - "column": 10 - }, - "end": { - "line": 153, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5115, - "end": 5120, - "loc": { - "start": { - "line": 153, - "column": 10 - }, - "end": { - "line": 153, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 5115, - "end": 5120, - "loc": { - "start": { - "line": 153, - "column": 10 - }, - "end": { - "line": 153, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 5141, - "end": 5188, - "loc": { - "start": { - "line": 155, - "column": 8 - }, - "end": { - "line": 155, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5141, - "end": 5148, - "loc": { - "start": { - "line": 155, - "column": 8 - }, - "end": { - "line": 155, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 5150, - "end": 5188, - "loc": { - "start": { - "line": 155, - "column": 17 - }, - "end": { - "line": 155, - "column": 55 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5152, - "end": 5186, - "loc": { - "start": { - "line": 155, - "column": 19 - }, - "end": { - "line": 155, - "column": 53 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 5152, - "end": 5166, - "loc": { - "start": { - "line": 155, - "column": 19 - }, - "end": { - "line": 155, - "column": 33 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 5168, - "end": 5186, - "loc": { - "start": { - "line": 155, - "column": 35 - }, - "end": { - "line": 155, - "column": 53 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 5200, - "end": 5225, - "loc": { - "start": { - "line": 156, - "column": 10 - }, - "end": { - "line": 156, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 5200, - "end": 5215, - "loc": { - "start": { - "line": 156, - "column": 10 - }, - "end": { - "line": 156, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 5216, - "end": 5224, - "loc": { - "start": { - "line": 156, - "column": 26 - }, - "end": { - "line": 156, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 5234, - "end": 5236, - "loc": { - "start": { - "line": 157, - "column": 7 - }, - "end": { - "line": 157, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 5237, - "end": 5244, - "loc": { - "start": { - "line": 157, - "column": 10 - }, - "end": { - "line": 157, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 5246, - "end": 5268, - "loc": { - "start": { - "line": 157, - "column": 19 - }, - "end": { - "line": 157, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 5246, - "end": 5258, - "loc": { - "start": { - "line": 157, - "column": 19 - }, - "end": { - "line": 157, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 5259, - "end": 5267, - "loc": { - "start": { - "line": 157, - "column": 32 - }, - "end": { - "line": 157, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 5275, - "end": 5285, - "loc": { - "start": { - "line": 158, - "column": 4 - }, - "end": { - "line": 158, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 5275, - "end": 5284, - "loc": { - "start": { - "line": 158, - "column": 4 - }, - "end": { - "line": 158, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5275, - "end": 5282, - "loc": { - "start": { - "line": 158, - "column": 4 - }, - "end": { - "line": 158, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 5275, - "end": 5278, - "loc": { - "start": { - "line": 158, - "column": 4 - }, - "end": { - "line": 158, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 5279, - "end": 5282, - "loc": { - "start": { - "line": 158, - "column": 8 - }, - "end": { - "line": 158, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Delete embedded invites for a document payload\n * @typedef {Object} EmbeddedCancelInvitePayload\n * @property {string} token - Access token.\n * @property {string} document_id - ID of the requested document.\n ", - "start": 4137, - "end": 4363, - "loc": { - "start": { - "line": 128, - "column": 2 - }, - "end": { - "line": 133, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Generate a link for the embedded invite response data\n * @typedef {Object} EmbeddedCancelInviteResponse\n * @property {string} status - Returns success when all parameters are correct\n ", - "start": 4367, - "end": 4568, - "loc": { - "start": { - "line": 135, - "column": 2 - }, - "end": { - "line": 139, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Delete embedded invites for a document.\n * @param {EmbeddedCancelInvitePayload} data - Delete embedded invites for a document payload\n * @param {function(err: ApiErrorResponse, res: EmbeddedCancelInviteResponse)} [callback] - error first node.js callback\n ", - "start": 4572, - "end": 4845, - "loc": { - "start": { - "line": 141, - "column": 2 - }, - "end": { - "line": 145, - "column": 5 - } - } - } - ] - } - ] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Embedded methods\n ", - "start": 129, - "end": 156, - "loc": { - "start": { - "line": 9, - "column": 0 - }, - "end": { - "line": 11, - "column": 3 - } - } - } - ], - "__PseudoExport__": false, - "trailingComments": [] - }, - "leadingComments": null - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "value": "use strict", - "extra": { - "raw": "'use strict'", - "rawValue": "use strict" - } - } - } - ] - }, - "comments": [ - { - "type": "CommentBlock", - "value": "*\n * Embedded methods\n ", - "start": 129, - "end": 156, - "loc": { - "start": { - "line": 9, - "column": 0 - }, - "end": { - "line": 11, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create embedded signing invite payload\n * @typedef {Object} EmbeddedSigningInvite\n * @property {string} email - Signer's email address\n * @property {number} role_id - Signer's role ID\n * @property {number} order - Order of signing. Cannot be 0\n * @property {string} auth_method - Signer authentication method. One of (password, email, mfa, social, biometric, other, none)\n ", - "start": 177, - "end": 573, - "loc": { - "start": { - "line": 14, - "column": 2 - }, - "end": { - "line": 21, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create embedded signing invites payload\n * @typedef {Object} EmbeddedCreateInvitesPayload\n * @property {string} token - Access token.\n * @property {string} document_id - ID of the requested document.\n * @property {EmbeddedSigningInvite[]} invites - Array of invites\n ", - "start": 577, - "end": 865, - "loc": { - "start": { - "line": 23, - "column": 2 - }, - "end": { - "line": 29, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Response EmbeddedInvite\n * @typedef {Object} EmbeddedInvite\n * @property {string} id - ID of the sending invite\n * @property {string} email - Signer's email address\n * @property {number} role_id - Signer's role ID\n * @property {number} order - Order of signing\n * @property {string} status - Status of the invite\n ", - "start": 869, - "end": 1209, - "loc": { - "start": { - "line": 31, - "column": 2 - }, - "end": { - "line": 39, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create embedded signing invites response data\n * @typedef {Object} EmbeddedCreateInvitesResponse\n * @property {EmbeddedInvite[]} data - Array sending of invites\n ", - "start": 1213, - "end": 1392, - "loc": { - "start": { - "line": 41, - "column": 2 - }, - "end": { - "line": 45, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create embedded signing invites for a document without sending emails.\n * @param {EmbeddedCreateInvitesPayload} data - Create invites payload\n * @param {function(err: ApiErrorResponse, res: EmbeddedCreateInvitesResponse)} [callback] - error first node.js callback\n ", - "start": 1396, - "end": 1678, - "loc": { - "start": { - "line": 47, - "column": 2 - }, - "end": { - "line": 51, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Generate embedded invite link payload\n * @typedef {Object} EmbeddedGenerateLinkPayload\n * @property {string} token - Access token.\n * @property {string} document_id - ID of the requested document.\n * @property {string} field_invite_unique_id - ID of the signature invite you'd like to embed.\n * @property {number} link_expiration - In how many minutes the link expires, ranges from 15 to 45 minutes or null.\n * @property {string} auth_method - Signer authentication method.\n ", - "start": 2291, - "end": 2791, - "loc": { - "start": { - "line": 75, - "column": 2 - }, - "end": { - "line": 83, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Response EmbeddedGeneratedLink\n * @typedef {Object} EmbeddedGeneratedLink\n * @property {string} link - Returns a link for embedded invite\n ", - "start": 2795, - "end": 2951, - "loc": { - "start": { - "line": 85, - "column": 2 - }, - "end": { - "line": 89, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Generate a link for the embedded invite response data\n * @typedef {Object} EmbeddedGenerateLinkResponse\n * @property {EmbeddedGeneratedLink} data - Response data\n ", - "start": 2955, - "end": 3135, - "loc": { - "start": { - "line": 91, - "column": 2 - }, - "end": { - "line": 95, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Generate a link for the embedded invite.\n * @param {EmbeddedGenerateLinkPayload} data - Generate embedded invite link payload\n * @param {function(err: ApiErrorResponse, res: EmbeddedGenerateLinkResponse)} [callback] - error first node.js callback\n ", - "start": 3139, - "end": 3404, - "loc": { - "start": { - "line": 97, - "column": 2 - }, - "end": { - "line": 101, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Delete embedded invites for a document payload\n * @typedef {Object} EmbeddedCancelInvitePayload\n * @property {string} token - Access token.\n * @property {string} document_id - ID of the requested document.\n ", - "start": 4137, - "end": 4363, - "loc": { - "start": { - "line": 128, - "column": 2 - }, - "end": { - "line": 133, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Generate a link for the embedded invite response data\n * @typedef {Object} EmbeddedCancelInviteResponse\n * @property {string} status - Returns success when all parameters are correct\n ", - "start": 4367, - "end": 4568, - "loc": { - "start": { - "line": 135, - "column": 2 - }, - "end": { - "line": 139, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Delete embedded invites for a document.\n * @param {EmbeddedCancelInvitePayload} data - Delete embedded invites for a document payload\n * @param {function(err: ApiErrorResponse, res: EmbeddedCancelInviteResponse)} [callback] - error first node.js callback\n ", - "start": 4572, - "end": 4845, - "loc": { - "start": { - "line": 141, - "column": 2 - }, - "end": { - "line": 145, - "column": 5 - } - } - } - ], - "tokens": [ - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "use strict", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 12 - }, - "end": { - "line": 1, - "column": 13 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 14, - "end": 20, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 27, - "end": 31, - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 17 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "https", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 18 - }, - "end": { - "line": 2, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39, - "end": 40, - "loc": { - "start": { - "line": 2, - "column": 25 - }, - "end": { - "line": 2, - "column": 26 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 41, - "end": 47, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 48, - "end": 49, - "loc": { - "start": { - "line": 3, - "column": 7 - }, - "end": { - "line": 3, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 67, - "end": 68, - "loc": { - "start": { - "line": 4, - "column": 17 - }, - "end": { - "line": 4, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 71, - "end": 83, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 14 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 83, - "end": 84, - "loc": { - "start": { - "line": 5, - "column": 14 - }, - "end": { - "line": 5, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 87, - "end": 106, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 106, - "end": 107, - "loc": { - "start": { - "line": 6, - "column": 21 - }, - "end": { - "line": 6, - "column": 22 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 108, - "end": 109, - "loc": { - "start": { - "line": 7, - "column": 0 - }, - "end": { - "line": 7, - "column": 1 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 110, - "end": 114, - "loc": { - "start": { - "line": 7, - "column": 2 - }, - "end": { - "line": 7, - "column": 6 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "../common", - "start": 115, - "end": 126, - "loc": { - "start": { - "line": 7, - "column": 7 - }, - "end": { - "line": 7, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 126, - "end": 127, - "loc": { - "start": { - "line": 7, - "column": 18 - }, - "end": { - "line": 7, - "column": 19 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Embedded methods\n ", - "start": 129, - "end": 156, - "loc": { - "start": { - "line": 9, - "column": 0 - }, - "end": { - "line": 11, - "column": 3 - } - } - }, - { - "type": { - "label": "class", - "keyword": "class", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "class", - "start": 157, - "end": 162, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 12, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Embedded", - "start": 163, - "end": 171, - "loc": { - "start": { - "line": 12, - "column": 6 - }, - "end": { - "line": 12, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 172, - "end": 173, - "loc": { - "start": { - "line": 12, - "column": 15 - }, - "end": { - "line": 12, - "column": 16 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create embedded signing invite payload\n * @typedef {Object} EmbeddedSigningInvite\n * @property {string} email - Signer's email address\n * @property {number} role_id - Signer's role ID\n * @property {number} order - Order of signing. Cannot be 0\n * @property {string} auth_method - Signer authentication method. One of (password, email, mfa, social, biometric, other, none)\n ", - "start": 177, - "end": 573, - "loc": { - "start": { - "line": 14, - "column": 2 - }, - "end": { - "line": 21, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create embedded signing invites payload\n * @typedef {Object} EmbeddedCreateInvitesPayload\n * @property {string} token - Access token.\n * @property {string} document_id - ID of the requested document.\n * @property {EmbeddedSigningInvite[]} invites - Array of invites\n ", - "start": 577, - "end": 865, - "loc": { - "start": { - "line": 23, - "column": 2 - }, - "end": { - "line": 29, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Response EmbeddedInvite\n * @typedef {Object} EmbeddedInvite\n * @property {string} id - ID of the sending invite\n * @property {string} email - Signer's email address\n * @property {number} role_id - Signer's role ID\n * @property {number} order - Order of signing\n * @property {string} status - Status of the invite\n ", - "start": 869, - "end": 1209, - "loc": { - "start": { - "line": 31, - "column": 2 - }, - "end": { - "line": 39, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create embedded signing invites response data\n * @typedef {Object} EmbeddedCreateInvitesResponse\n * @property {EmbeddedInvite[]} data - Array sending of invites\n ", - "start": 1213, - "end": 1392, - "loc": { - "start": { - "line": 41, - "column": 2 - }, - "end": { - "line": 45, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create embedded signing invites for a document without sending emails.\n * @param {EmbeddedCreateInvitesPayload} data - Create invites payload\n * @param {function(err: ApiErrorResponse, res: EmbeddedCreateInvitesResponse)} [callback] - error first node.js callback\n ", - "start": 1396, - "end": 1678, - "loc": { - "start": { - "line": 47, - "column": 2 - }, - "end": { - "line": 51, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 1681, - "end": 1687, - "loc": { - "start": { - "line": 52, - "column": 2 - }, - "end": { - "line": 52, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "createInvite", - "start": 1688, - "end": 1700, - "loc": { - "start": { - "line": 52, - "column": 9 - }, - "end": { - "line": 52, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1701, - "end": 1702, - "loc": { - "start": { - "line": 52, - "column": 22 - }, - "end": { - "line": 52, - "column": 23 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1702, - "end": 1703, - "loc": { - "start": { - "line": 52, - "column": 23 - }, - "end": { - "line": 52, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 1708, - "end": 1713, - "loc": { - "start": { - "line": 53, - "column": 4 - }, - "end": { - "line": 53, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1713, - "end": 1714, - "loc": { - "start": { - "line": 53, - "column": 9 - }, - "end": { - "line": 53, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_id", - "start": 1715, - "end": 1726, - "loc": { - "start": { - "line": 53, - "column": 11 - }, - "end": { - "line": 53, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1726, - "end": 1727, - "loc": { - "start": { - "line": 53, - "column": 22 - }, - "end": { - "line": 53, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "invites", - "start": 1728, - "end": 1735, - "loc": { - "start": { - "line": 53, - "column": 24 - }, - "end": { - "line": 53, - "column": 31 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1735, - "end": 1736, - "loc": { - "start": { - "line": 53, - "column": 31 - }, - "end": { - "line": 53, - "column": 32 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1739, - "end": 1740, - "loc": { - "start": { - "line": 54, - "column": 2 - }, - "end": { - "line": 54, - "column": 3 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1740, - "end": 1741, - "loc": { - "start": { - "line": 54, - "column": 3 - }, - "end": { - "line": 54, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 1742, - "end": 1750, - "loc": { - "start": { - "line": 54, - "column": 5 - }, - "end": { - "line": 54, - "column": 13 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1750, - "end": 1751, - "loc": { - "start": { - "line": 54, - "column": 13 - }, - "end": { - "line": 54, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1752, - "end": 1753, - "loc": { - "start": { - "line": 54, - "column": 15 - }, - "end": { - "line": 54, - "column": 16 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1758, - "end": 1763, - "loc": { - "start": { - "line": 55, - "column": 4 - }, - "end": { - "line": 55, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 1764, - "end": 1772, - "loc": { - "start": { - "line": 55, - "column": 10 - }, - "end": { - "line": 55, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1773, - "end": 1774, - "loc": { - "start": { - "line": 55, - "column": 19 - }, - "end": { - "line": 55, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSON", - "start": 1775, - "end": 1779, - "loc": { - "start": { - "line": 55, - "column": 21 - }, - "end": { - "line": 55, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1779, - "end": 1780, - "loc": { - "start": { - "line": 55, - "column": 25 - }, - "end": { - "line": 55, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "stringify", - "start": 1780, - "end": 1789, - "loc": { - "start": { - "line": 55, - "column": 26 - }, - "end": { - "line": 55, - "column": 35 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1789, - "end": 1790, - "loc": { - "start": { - "line": 55, - "column": 35 - }, - "end": { - "line": 55, - "column": 36 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1790, - "end": 1791, - "loc": { - "start": { - "line": 55, - "column": 36 - }, - "end": { - "line": 55, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "invites", - "start": 1792, - "end": 1799, - "loc": { - "start": { - "line": 55, - "column": 38 - }, - "end": { - "line": 55, - "column": 45 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1800, - "end": 1801, - "loc": { - "start": { - "line": 55, - "column": 46 - }, - "end": { - "line": 55, - "column": 47 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1801, - "end": 1802, - "loc": { - "start": { - "line": 55, - "column": 47 - }, - "end": { - "line": 55, - "column": 48 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1802, - "end": 1803, - "loc": { - "start": { - "line": 55, - "column": 48 - }, - "end": { - "line": 55, - "column": 49 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1808, - "end": 1813, - "loc": { - "start": { - "line": 56, - "column": 4 - }, - "end": { - "line": 56, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 1814, - "end": 1817, - "loc": { - "start": { - "line": 56, - "column": 10 - }, - "end": { - "line": 56, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1818, - "end": 1819, - "loc": { - "start": { - "line": 56, - "column": 14 - }, - "end": { - "line": 56, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 1820, - "end": 1825, - "loc": { - "start": { - "line": 56, - "column": 16 - }, - "end": { - "line": 56, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1832, - "end": 1833, - "loc": { - "start": { - "line": 57, - "column": 6 - }, - "end": { - "line": 57, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 1833, - "end": 1840, - "loc": { - "start": { - "line": 57, - "column": 7 - }, - "end": { - "line": 57, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1840, - "end": 1841, - "loc": { - "start": { - "line": 57, - "column": 14 - }, - "end": { - "line": 57, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 1841, - "end": 1860, - "loc": { - "start": { - "line": 57, - "column": 15 - }, - "end": { - "line": 57, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1860, - "end": 1861, - "loc": { - "start": { - "line": 57, - "column": 34 - }, - "end": { - "line": 57, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1861, - "end": 1862, - "loc": { - "start": { - "line": 57, - "column": 35 - }, - "end": { - "line": 57, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 1871, - "end": 1877, - "loc": { - "start": { - "line": 58, - "column": 8 - }, - "end": { - "line": 58, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1877, - "end": 1878, - "loc": { - "start": { - "line": 58, - "column": 14 - }, - "end": { - "line": 58, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "POST", - "start": 1879, - "end": 1885, - "loc": { - "start": { - "line": 58, - "column": 16 - }, - "end": { - "line": 58, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1885, - "end": 1886, - "loc": { - "start": { - "line": 58, - "column": 22 - }, - "end": { - "line": 58, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 1895, - "end": 1899, - "loc": { - "start": { - "line": 59, - "column": 8 - }, - "end": { - "line": 59, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1899, - "end": 1900, - "loc": { - "start": { - "line": 59, - "column": 12 - }, - "end": { - "line": 59, - "column": 13 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1901, - "end": 1902, - "loc": { - "start": { - "line": 59, - "column": 14 - }, - "end": { - "line": 59, - "column": 15 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/v2/documents/", - "start": 1902, - "end": 1916, - "loc": { - "start": { - "line": 59, - "column": 15 - }, - "end": { - "line": 59, - "column": 29 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1916, - "end": 1918, - "loc": { - "start": { - "line": 59, - "column": 29 - }, - "end": { - "line": 59, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_id", - "start": 1918, - "end": 1929, - "loc": { - "start": { - "line": 59, - "column": 31 - }, - "end": { - "line": 59, - "column": 42 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1929, - "end": 1930, - "loc": { - "start": { - "line": 59, - "column": 42 - }, - "end": { - "line": 59, - "column": 43 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/embedded-invites", - "start": 1930, - "end": 1947, - "loc": { - "start": { - "line": 59, - "column": 43 - }, - "end": { - "line": 59, - "column": 60 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1947, - "end": 1948, - "loc": { - "start": { - "line": 59, - "column": 60 - }, - "end": { - "line": 59, - "column": 61 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1948, - "end": 1949, - "loc": { - "start": { - "line": 59, - "column": 61 - }, - "end": { - "line": 59, - "column": 62 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 1958, - "end": 1971, - "loc": { - "start": { - "line": 60, - "column": 8 - }, - "end": { - "line": 60, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1971, - "end": 1972, - "loc": { - "start": { - "line": 60, - "column": 21 - }, - "end": { - "line": 60, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1973, - "end": 1974, - "loc": { - "start": { - "line": 60, - "column": 23 - }, - "end": { - "line": 60, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 1985, - "end": 1989, - "loc": { - "start": { - "line": 61, - "column": 10 - }, - "end": { - "line": 61, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1989, - "end": 1990, - "loc": { - "start": { - "line": 61, - "column": 14 - }, - "end": { - "line": 61, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 1991, - "end": 1999, - "loc": { - "start": { - "line": 61, - "column": 16 - }, - "end": { - "line": 61, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1999, - "end": 2000, - "loc": { - "start": { - "line": 61, - "column": 24 - }, - "end": { - "line": 61, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 2011, - "end": 2016, - "loc": { - "start": { - "line": 62, - "column": 10 - }, - "end": { - "line": 62, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2016, - "end": 2017, - "loc": { - "start": { - "line": 62, - "column": 15 - }, - "end": { - "line": 62, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2026, - "end": 2027, - "loc": { - "start": { - "line": 63, - "column": 8 - }, - "end": { - "line": 63, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2027, - "end": 2028, - "loc": { - "start": { - "line": 63, - "column": 9 - }, - "end": { - "line": 63, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 2037, - "end": 2044, - "loc": { - "start": { - "line": 64, - "column": 8 - }, - "end": { - "line": 64, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2044, - "end": 2045, - "loc": { - "start": { - "line": 64, - "column": 15 - }, - "end": { - "line": 64, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2046, - "end": 2047, - "loc": { - "start": { - "line": 64, - "column": 17 - }, - "end": { - "line": 64, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type", - "start": 2058, - "end": 2072, - "loc": { - "start": { - "line": 65, - "column": 10 - }, - "end": { - "line": 65, - "column": 24 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2072, - "end": 2073, - "loc": { - "start": { - "line": 65, - "column": 24 - }, - "end": { - "line": 65, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/json", - "start": 2074, - "end": 2092, - "loc": { - "start": { - "line": 65, - "column": 26 - }, - "end": { - "line": 65, - "column": 44 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2092, - "end": 2093, - "loc": { - "start": { - "line": 65, - "column": 44 - }, - "end": { - "line": 65, - "column": 45 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Length", - "start": 2104, - "end": 2120, - "loc": { - "start": { - "line": 66, - "column": 10 - }, - "end": { - "line": 66, - "column": 26 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2120, - "end": 2121, - "loc": { - "start": { - "line": 66, - "column": 26 - }, - "end": { - "line": 66, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 2122, - "end": 2128, - "loc": { - "start": { - "line": 66, - "column": 28 - }, - "end": { - "line": 66, - "column": 34 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2128, - "end": 2129, - "loc": { - "start": { - "line": 66, - "column": 34 - }, - "end": { - "line": 66, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "byteLength", - "start": 2129, - "end": 2139, - "loc": { - "start": { - "line": 66, - "column": 35 - }, - "end": { - "line": 66, - "column": 45 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2139, - "end": 2140, - "loc": { - "start": { - "line": 66, - "column": 45 - }, - "end": { - "line": 66, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 2140, - "end": 2148, - "loc": { - "start": { - "line": 66, - "column": 46 - }, - "end": { - "line": 66, - "column": 54 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2148, - "end": 2149, - "loc": { - "start": { - "line": 66, - "column": 54 - }, - "end": { - "line": 66, - "column": 55 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2149, - "end": 2150, - "loc": { - "start": { - "line": 66, - "column": 55 - }, - "end": { - "line": 66, - "column": 56 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2159, - "end": 2160, - "loc": { - "start": { - "line": 67, - "column": 8 - }, - "end": { - "line": 67, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2160, - "end": 2161, - "loc": { - "start": { - "line": 67, - "column": 9 - }, - "end": { - "line": 67, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2168, - "end": 2169, - "loc": { - "start": { - "line": 68, - "column": 6 - }, - "end": { - "line": 68, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2169, - "end": 2170, - "loc": { - "start": { - "line": 68, - "column": 7 - }, - "end": { - "line": 68, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2170, - "end": 2171, - "loc": { - "start": { - "line": 68, - "column": 8 - }, - "end": { - "line": 68, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 2172, - "end": 2187, - "loc": { - "start": { - "line": 68, - "column": 10 - }, - "end": { - "line": 68, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2187, - "end": 2188, - "loc": { - "start": { - "line": 68, - "column": 25 - }, - "end": { - "line": 68, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 2188, - "end": 2196, - "loc": { - "start": { - "line": 68, - "column": 26 - }, - "end": { - "line": 68, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2196, - "end": 2197, - "loc": { - "start": { - "line": 68, - "column": 34 - }, - "end": { - "line": 68, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2197, - "end": 2198, - "loc": { - "start": { - "line": 68, - "column": 35 - }, - "end": { - "line": 68, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2205, - "end": 2206, - "loc": { - "start": { - "line": 69, - "column": 6 - }, - "end": { - "line": 69, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 2206, - "end": 2208, - "loc": { - "start": { - "line": 69, - "column": 7 - }, - "end": { - "line": 69, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2208, - "end": 2209, - "loc": { - "start": { - "line": 69, - "column": 9 - }, - "end": { - "line": 69, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 2209, - "end": 2216, - "loc": { - "start": { - "line": 69, - "column": 10 - }, - "end": { - "line": 69, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2216, - "end": 2217, - "loc": { - "start": { - "line": 69, - "column": 17 - }, - "end": { - "line": 69, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 2218, - "end": 2230, - "loc": { - "start": { - "line": 69, - "column": 19 - }, - "end": { - "line": 69, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2230, - "end": 2231, - "loc": { - "start": { - "line": 69, - "column": 31 - }, - "end": { - "line": 69, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 2231, - "end": 2239, - "loc": { - "start": { - "line": 69, - "column": 32 - }, - "end": { - "line": 69, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2239, - "end": 2240, - "loc": { - "start": { - "line": 69, - "column": 40 - }, - "end": { - "line": 69, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2240, - "end": 2241, - "loc": { - "start": { - "line": 69, - "column": 41 - }, - "end": { - "line": 69, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2241, - "end": 2242, - "loc": { - "start": { - "line": 69, - "column": 42 - }, - "end": { - "line": 69, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 2248, - "end": 2251, - "loc": { - "start": { - "line": 71, - "column": 4 - }, - "end": { - "line": 71, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2251, - "end": 2252, - "loc": { - "start": { - "line": 71, - "column": 7 - }, - "end": { - "line": 71, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "write", - "start": 2252, - "end": 2257, - "loc": { - "start": { - "line": 71, - "column": 8 - }, - "end": { - "line": 71, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2257, - "end": 2258, - "loc": { - "start": { - "line": 71, - "column": 13 - }, - "end": { - "line": 71, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 2258, - "end": 2266, - "loc": { - "start": { - "line": 71, - "column": 14 - }, - "end": { - "line": 71, - "column": 22 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2266, - "end": 2267, - "loc": { - "start": { - "line": 71, - "column": 22 - }, - "end": { - "line": 71, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2267, - "end": 2268, - "loc": { - "start": { - "line": 71, - "column": 23 - }, - "end": { - "line": 71, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 2273, - "end": 2276, - "loc": { - "start": { - "line": 72, - "column": 4 - }, - "end": { - "line": 72, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2276, - "end": 2277, - "loc": { - "start": { - "line": 72, - "column": 7 - }, - "end": { - "line": 72, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 2277, - "end": 2280, - "loc": { - "start": { - "line": 72, - "column": 8 - }, - "end": { - "line": 72, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2280, - "end": 2281, - "loc": { - "start": { - "line": 72, - "column": 11 - }, - "end": { - "line": 72, - "column": 12 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2281, - "end": 2282, - "loc": { - "start": { - "line": 72, - "column": 12 - }, - "end": { - "line": 72, - "column": 13 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2282, - "end": 2283, - "loc": { - "start": { - "line": 72, - "column": 13 - }, - "end": { - "line": 72, - "column": 14 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2286, - "end": 2287, - "loc": { - "start": { - "line": 73, - "column": 2 - }, - "end": { - "line": 73, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Generate embedded invite link payload\n * @typedef {Object} EmbeddedGenerateLinkPayload\n * @property {string} token - Access token.\n * @property {string} document_id - ID of the requested document.\n * @property {string} field_invite_unique_id - ID of the signature invite you'd like to embed.\n * @property {number} link_expiration - In how many minutes the link expires, ranges from 15 to 45 minutes or null.\n * @property {string} auth_method - Signer authentication method.\n ", - "start": 2291, - "end": 2791, - "loc": { - "start": { - "line": 75, - "column": 2 - }, - "end": { - "line": 83, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Response EmbeddedGeneratedLink\n * @typedef {Object} EmbeddedGeneratedLink\n * @property {string} link - Returns a link for embedded invite\n ", - "start": 2795, - "end": 2951, - "loc": { - "start": { - "line": 85, - "column": 2 - }, - "end": { - "line": 89, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Generate a link for the embedded invite response data\n * @typedef {Object} EmbeddedGenerateLinkResponse\n * @property {EmbeddedGeneratedLink} data - Response data\n ", - "start": 2955, - "end": 3135, - "loc": { - "start": { - "line": 91, - "column": 2 - }, - "end": { - "line": 95, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Generate a link for the embedded invite.\n * @param {EmbeddedGenerateLinkPayload} data - Generate embedded invite link payload\n * @param {function(err: ApiErrorResponse, res: EmbeddedGenerateLinkResponse)} [callback] - error first node.js callback\n ", - "start": 3139, - "end": 3404, - "loc": { - "start": { - "line": 97, - "column": 2 - }, - "end": { - "line": 101, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 3407, - "end": 3413, - "loc": { - "start": { - "line": 102, - "column": 2 - }, - "end": { - "line": 102, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "generateInviteLink", - "start": 3414, - "end": 3432, - "loc": { - "start": { - "line": 102, - "column": 9 - }, - "end": { - "line": 102, - "column": 27 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3433, - "end": 3434, - "loc": { - "start": { - "line": 102, - "column": 28 - }, - "end": { - "line": 102, - "column": 29 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3434, - "end": 3435, - "loc": { - "start": { - "line": 102, - "column": 29 - }, - "end": { - "line": 102, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 3440, - "end": 3445, - "loc": { - "start": { - "line": 103, - "column": 4 - }, - "end": { - "line": 103, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3445, - "end": 3446, - "loc": { - "start": { - "line": 103, - "column": 9 - }, - "end": { - "line": 103, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_id", - "start": 3447, - "end": 3458, - "loc": { - "start": { - "line": 103, - "column": 11 - }, - "end": { - "line": 103, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3458, - "end": 3459, - "loc": { - "start": { - "line": 103, - "column": 22 - }, - "end": { - "line": 103, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "field_invite_unique_id", - "start": 3460, - "end": 3482, - "loc": { - "start": { - "line": 103, - "column": 24 - }, - "end": { - "line": 103, - "column": 46 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3482, - "end": 3483, - "loc": { - "start": { - "line": 103, - "column": 46 - }, - "end": { - "line": 103, - "column": 47 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "link_expiration", - "start": 3484, - "end": 3499, - "loc": { - "start": { - "line": 103, - "column": 48 - }, - "end": { - "line": 103, - "column": 63 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3499, - "end": 3500, - "loc": { - "start": { - "line": 103, - "column": 63 - }, - "end": { - "line": 103, - "column": 64 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "auth_method", - "start": 3501, - "end": 3512, - "loc": { - "start": { - "line": 103, - "column": 65 - }, - "end": { - "line": 103, - "column": 76 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3512, - "end": 3513, - "loc": { - "start": { - "line": 103, - "column": 76 - }, - "end": { - "line": 103, - "column": 77 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3516, - "end": 3517, - "loc": { - "start": { - "line": 104, - "column": 2 - }, - "end": { - "line": 104, - "column": 3 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3517, - "end": 3518, - "loc": { - "start": { - "line": 104, - "column": 3 - }, - "end": { - "line": 104, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 3519, - "end": 3527, - "loc": { - "start": { - "line": 104, - "column": 5 - }, - "end": { - "line": 104, - "column": 13 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3527, - "end": 3528, - "loc": { - "start": { - "line": 104, - "column": 13 - }, - "end": { - "line": 104, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3529, - "end": 3530, - "loc": { - "start": { - "line": 104, - "column": 15 - }, - "end": { - "line": 104, - "column": 16 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 3535, - "end": 3540, - "loc": { - "start": { - "line": 105, - "column": 4 - }, - "end": { - "line": 105, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 3541, - "end": 3549, - "loc": { - "start": { - "line": 105, - "column": 10 - }, - "end": { - "line": 105, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 3550, - "end": 3551, - "loc": { - "start": { - "line": 105, - "column": 19 - }, - "end": { - "line": 105, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSON", - "start": 3552, - "end": 3556, - "loc": { - "start": { - "line": 105, - "column": 21 - }, - "end": { - "line": 105, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3556, - "end": 3557, - "loc": { - "start": { - "line": 105, - "column": 25 - }, - "end": { - "line": 105, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "stringify", - "start": 3557, - "end": 3566, - "loc": { - "start": { - "line": 105, - "column": 26 - }, - "end": { - "line": 105, - "column": 35 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3566, - "end": 3567, - "loc": { - "start": { - "line": 105, - "column": 35 - }, - "end": { - "line": 105, - "column": 36 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3567, - "end": 3568, - "loc": { - "start": { - "line": 105, - "column": 36 - }, - "end": { - "line": 105, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "link_expiration", - "start": 3575, - "end": 3590, - "loc": { - "start": { - "line": 106, - "column": 6 - }, - "end": { - "line": 106, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3590, - "end": 3591, - "loc": { - "start": { - "line": 106, - "column": 21 - }, - "end": { - "line": 106, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "auth_method", - "start": 3598, - "end": 3609, - "loc": { - "start": { - "line": 107, - "column": 6 - }, - "end": { - "line": 107, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3609, - "end": 3610, - "loc": { - "start": { - "line": 107, - "column": 17 - }, - "end": { - "line": 107, - "column": 18 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3615, - "end": 3616, - "loc": { - "start": { - "line": 108, - "column": 4 - }, - "end": { - "line": 108, - "column": 5 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3616, - "end": 3617, - "loc": { - "start": { - "line": 108, - "column": 5 - }, - "end": { - "line": 108, - "column": 6 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3617, - "end": 3618, - "loc": { - "start": { - "line": 108, - "column": 6 - }, - "end": { - "line": 108, - "column": 7 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 3623, - "end": 3628, - "loc": { - "start": { - "line": 109, - "column": 4 - }, - "end": { - "line": 109, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 3629, - "end": 3632, - "loc": { - "start": { - "line": 109, - "column": 10 - }, - "end": { - "line": 109, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 3633, - "end": 3634, - "loc": { - "start": { - "line": 109, - "column": 14 - }, - "end": { - "line": 109, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 3635, - "end": 3640, - "loc": { - "start": { - "line": 109, - "column": 16 - }, - "end": { - "line": 109, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3647, - "end": 3648, - "loc": { - "start": { - "line": 110, - "column": 6 - }, - "end": { - "line": 110, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 3648, - "end": 3655, - "loc": { - "start": { - "line": 110, - "column": 7 - }, - "end": { - "line": 110, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3655, - "end": 3656, - "loc": { - "start": { - "line": 110, - "column": 14 - }, - "end": { - "line": 110, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 3656, - "end": 3675, - "loc": { - "start": { - "line": 110, - "column": 15 - }, - "end": { - "line": 110, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3675, - "end": 3676, - "loc": { - "start": { - "line": 110, - "column": 34 - }, - "end": { - "line": 110, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3676, - "end": 3677, - "loc": { - "start": { - "line": 110, - "column": 35 - }, - "end": { - "line": 110, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 3686, - "end": 3692, - "loc": { - "start": { - "line": 111, - "column": 8 - }, - "end": { - "line": 111, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3692, - "end": 3693, - "loc": { - "start": { - "line": 111, - "column": 14 - }, - "end": { - "line": 111, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "POST", - "start": 3694, - "end": 3700, - "loc": { - "start": { - "line": 111, - "column": 16 - }, - "end": { - "line": 111, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3700, - "end": 3701, - "loc": { - "start": { - "line": 111, - "column": 22 - }, - "end": { - "line": 111, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 3710, - "end": 3714, - "loc": { - "start": { - "line": 112, - "column": 8 - }, - "end": { - "line": 112, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3714, - "end": 3715, - "loc": { - "start": { - "line": 112, - "column": 12 - }, - "end": { - "line": 112, - "column": 13 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3716, - "end": 3717, - "loc": { - "start": { - "line": 112, - "column": 14 - }, - "end": { - "line": 112, - "column": 15 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/v2/documents/", - "start": 3717, - "end": 3731, - "loc": { - "start": { - "line": 112, - "column": 15 - }, - "end": { - "line": 112, - "column": 29 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3731, - "end": 3733, - "loc": { - "start": { - "line": 112, - "column": 29 - }, - "end": { - "line": 112, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_id", - "start": 3733, - "end": 3744, - "loc": { - "start": { - "line": 112, - "column": 31 - }, - "end": { - "line": 112, - "column": 42 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3744, - "end": 3745, - "loc": { - "start": { - "line": 112, - "column": 42 - }, - "end": { - "line": 112, - "column": 43 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/embedded-invites/", - "start": 3745, - "end": 3763, - "loc": { - "start": { - "line": 112, - "column": 43 - }, - "end": { - "line": 112, - "column": 61 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3763, - "end": 3765, - "loc": { - "start": { - "line": 112, - "column": 61 - }, - "end": { - "line": 112, - "column": 63 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "field_invite_unique_id", - "start": 3765, - "end": 3787, - "loc": { - "start": { - "line": 112, - "column": 63 - }, - "end": { - "line": 112, - "column": 85 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3787, - "end": 3788, - "loc": { - "start": { - "line": 112, - "column": 85 - }, - "end": { - "line": 112, - "column": 86 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/link", - "start": 3788, - "end": 3793, - "loc": { - "start": { - "line": 112, - "column": 86 - }, - "end": { - "line": 112, - "column": 91 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3793, - "end": 3794, - "loc": { - "start": { - "line": 112, - "column": 91 - }, - "end": { - "line": 112, - "column": 92 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3794, - "end": 3795, - "loc": { - "start": { - "line": 112, - "column": 92 - }, - "end": { - "line": 112, - "column": 93 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 3804, - "end": 3817, - "loc": { - "start": { - "line": 113, - "column": 8 - }, - "end": { - "line": 113, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3817, - "end": 3818, - "loc": { - "start": { - "line": 113, - "column": 21 - }, - "end": { - "line": 113, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3819, - "end": 3820, - "loc": { - "start": { - "line": 113, - "column": 23 - }, - "end": { - "line": 113, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 3831, - "end": 3835, - "loc": { - "start": { - "line": 114, - "column": 10 - }, - "end": { - "line": 114, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3835, - "end": 3836, - "loc": { - "start": { - "line": 114, - "column": 14 - }, - "end": { - "line": 114, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 3837, - "end": 3845, - "loc": { - "start": { - "line": 114, - "column": 16 - }, - "end": { - "line": 114, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3845, - "end": 3846, - "loc": { - "start": { - "line": 114, - "column": 24 - }, - "end": { - "line": 114, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 3857, - "end": 3862, - "loc": { - "start": { - "line": 115, - "column": 10 - }, - "end": { - "line": 115, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3862, - "end": 3863, - "loc": { - "start": { - "line": 115, - "column": 15 - }, - "end": { - "line": 115, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3872, - "end": 3873, - "loc": { - "start": { - "line": 116, - "column": 8 - }, - "end": { - "line": 116, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3873, - "end": 3874, - "loc": { - "start": { - "line": 116, - "column": 9 - }, - "end": { - "line": 116, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 3883, - "end": 3890, - "loc": { - "start": { - "line": 117, - "column": 8 - }, - "end": { - "line": 117, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3890, - "end": 3891, - "loc": { - "start": { - "line": 117, - "column": 15 - }, - "end": { - "line": 117, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3892, - "end": 3893, - "loc": { - "start": { - "line": 117, - "column": 17 - }, - "end": { - "line": 117, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type", - "start": 3904, - "end": 3918, - "loc": { - "start": { - "line": 118, - "column": 10 - }, - "end": { - "line": 118, - "column": 24 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3918, - "end": 3919, - "loc": { - "start": { - "line": 118, - "column": 24 - }, - "end": { - "line": 118, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/json", - "start": 3920, - "end": 3938, - "loc": { - "start": { - "line": 118, - "column": 26 - }, - "end": { - "line": 118, - "column": 44 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3938, - "end": 3939, - "loc": { - "start": { - "line": 118, - "column": 44 - }, - "end": { - "line": 118, - "column": 45 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Length", - "start": 3950, - "end": 3966, - "loc": { - "start": { - "line": 119, - "column": 10 - }, - "end": { - "line": 119, - "column": 26 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3966, - "end": 3967, - "loc": { - "start": { - "line": 119, - "column": 26 - }, - "end": { - "line": 119, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 3968, - "end": 3974, - "loc": { - "start": { - "line": 119, - "column": 28 - }, - "end": { - "line": 119, - "column": 34 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3974, - "end": 3975, - "loc": { - "start": { - "line": 119, - "column": 34 - }, - "end": { - "line": 119, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "byteLength", - "start": 3975, - "end": 3985, - "loc": { - "start": { - "line": 119, - "column": 35 - }, - "end": { - "line": 119, - "column": 45 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3985, - "end": 3986, - "loc": { - "start": { - "line": 119, - "column": 45 - }, - "end": { - "line": 119, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 3986, - "end": 3994, - "loc": { - "start": { - "line": 119, - "column": 46 - }, - "end": { - "line": 119, - "column": 54 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3994, - "end": 3995, - "loc": { - "start": { - "line": 119, - "column": 54 - }, - "end": { - "line": 119, - "column": 55 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3995, - "end": 3996, - "loc": { - "start": { - "line": 119, - "column": 55 - }, - "end": { - "line": 119, - "column": 56 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4005, - "end": 4006, - "loc": { - "start": { - "line": 120, - "column": 8 - }, - "end": { - "line": 120, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4006, - "end": 4007, - "loc": { - "start": { - "line": 120, - "column": 9 - }, - "end": { - "line": 120, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4014, - "end": 4015, - "loc": { - "start": { - "line": 121, - "column": 6 - }, - "end": { - "line": 121, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4015, - "end": 4016, - "loc": { - "start": { - "line": 121, - "column": 7 - }, - "end": { - "line": 121, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4016, - "end": 4017, - "loc": { - "start": { - "line": 121, - "column": 8 - }, - "end": { - "line": 121, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 4018, - "end": 4033, - "loc": { - "start": { - "line": 121, - "column": 10 - }, - "end": { - "line": 121, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4033, - "end": 4034, - "loc": { - "start": { - "line": 121, - "column": 25 - }, - "end": { - "line": 121, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 4034, - "end": 4042, - "loc": { - "start": { - "line": 121, - "column": 26 - }, - "end": { - "line": 121, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4042, - "end": 4043, - "loc": { - "start": { - "line": 121, - "column": 34 - }, - "end": { - "line": 121, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4043, - "end": 4044, - "loc": { - "start": { - "line": 121, - "column": 35 - }, - "end": { - "line": 121, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4051, - "end": 4052, - "loc": { - "start": { - "line": 122, - "column": 6 - }, - "end": { - "line": 122, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 4052, - "end": 4054, - "loc": { - "start": { - "line": 122, - "column": 7 - }, - "end": { - "line": 122, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4054, - "end": 4055, - "loc": { - "start": { - "line": 122, - "column": 9 - }, - "end": { - "line": 122, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 4055, - "end": 4062, - "loc": { - "start": { - "line": 122, - "column": 10 - }, - "end": { - "line": 122, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4062, - "end": 4063, - "loc": { - "start": { - "line": 122, - "column": 17 - }, - "end": { - "line": 122, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 4064, - "end": 4076, - "loc": { - "start": { - "line": 122, - "column": 19 - }, - "end": { - "line": 122, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4076, - "end": 4077, - "loc": { - "start": { - "line": 122, - "column": 31 - }, - "end": { - "line": 122, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 4077, - "end": 4085, - "loc": { - "start": { - "line": 122, - "column": 32 - }, - "end": { - "line": 122, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4085, - "end": 4086, - "loc": { - "start": { - "line": 122, - "column": 40 - }, - "end": { - "line": 122, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4086, - "end": 4087, - "loc": { - "start": { - "line": 122, - "column": 41 - }, - "end": { - "line": 122, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4087, - "end": 4088, - "loc": { - "start": { - "line": 122, - "column": 42 - }, - "end": { - "line": 122, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 4094, - "end": 4097, - "loc": { - "start": { - "line": 124, - "column": 4 - }, - "end": { - "line": 124, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4097, - "end": 4098, - "loc": { - "start": { - "line": 124, - "column": 7 - }, - "end": { - "line": 124, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "write", - "start": 4098, - "end": 4103, - "loc": { - "start": { - "line": 124, - "column": 8 - }, - "end": { - "line": 124, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4103, - "end": 4104, - "loc": { - "start": { - "line": 124, - "column": 13 - }, - "end": { - "line": 124, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 4104, - "end": 4112, - "loc": { - "start": { - "line": 124, - "column": 14 - }, - "end": { - "line": 124, - "column": 22 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4112, - "end": 4113, - "loc": { - "start": { - "line": 124, - "column": 22 - }, - "end": { - "line": 124, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4113, - "end": 4114, - "loc": { - "start": { - "line": 124, - "column": 23 - }, - "end": { - "line": 124, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 4119, - "end": 4122, - "loc": { - "start": { - "line": 125, - "column": 4 - }, - "end": { - "line": 125, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4122, - "end": 4123, - "loc": { - "start": { - "line": 125, - "column": 7 - }, - "end": { - "line": 125, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 4123, - "end": 4126, - "loc": { - "start": { - "line": 125, - "column": 8 - }, - "end": { - "line": 125, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4126, - "end": 4127, - "loc": { - "start": { - "line": 125, - "column": 11 - }, - "end": { - "line": 125, - "column": 12 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4127, - "end": 4128, - "loc": { - "start": { - "line": 125, - "column": 12 - }, - "end": { - "line": 125, - "column": 13 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4128, - "end": 4129, - "loc": { - "start": { - "line": 125, - "column": 13 - }, - "end": { - "line": 125, - "column": 14 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4132, - "end": 4133, - "loc": { - "start": { - "line": 126, - "column": 2 - }, - "end": { - "line": 126, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Delete embedded invites for a document payload\n * @typedef {Object} EmbeddedCancelInvitePayload\n * @property {string} token - Access token.\n * @property {string} document_id - ID of the requested document.\n ", - "start": 4137, - "end": 4363, - "loc": { - "start": { - "line": 128, - "column": 2 - }, - "end": { - "line": 133, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Generate a link for the embedded invite response data\n * @typedef {Object} EmbeddedCancelInviteResponse\n * @property {string} status - Returns success when all parameters are correct\n ", - "start": 4367, - "end": 4568, - "loc": { - "start": { - "line": 135, - "column": 2 - }, - "end": { - "line": 139, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Delete embedded invites for a document.\n * @param {EmbeddedCancelInvitePayload} data - Delete embedded invites for a document payload\n * @param {function(err: ApiErrorResponse, res: EmbeddedCancelInviteResponse)} [callback] - error first node.js callback\n ", - "start": 4572, - "end": 4845, - "loc": { - "start": { - "line": 141, - "column": 2 - }, - "end": { - "line": 145, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 4848, - "end": 4854, - "loc": { - "start": { - "line": 146, - "column": 2 - }, - "end": { - "line": 146, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cancelInvites", - "start": 4855, - "end": 4868, - "loc": { - "start": { - "line": 146, - "column": 9 - }, - "end": { - "line": 146, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4869, - "end": 4870, - "loc": { - "start": { - "line": 146, - "column": 23 - }, - "end": { - "line": 146, - "column": 24 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4870, - "end": 4871, - "loc": { - "start": { - "line": 146, - "column": 24 - }, - "end": { - "line": 146, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 4872, - "end": 4877, - "loc": { - "start": { - "line": 146, - "column": 26 - }, - "end": { - "line": 146, - "column": 31 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4877, - "end": 4878, - "loc": { - "start": { - "line": 146, - "column": 31 - }, - "end": { - "line": 146, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_id", - "start": 4879, - "end": 4890, - "loc": { - "start": { - "line": 146, - "column": 33 - }, - "end": { - "line": 146, - "column": 44 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4891, - "end": 4892, - "loc": { - "start": { - "line": 146, - "column": 45 - }, - "end": { - "line": 146, - "column": 46 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4892, - "end": 4893, - "loc": { - "start": { - "line": 146, - "column": 46 - }, - "end": { - "line": 146, - "column": 47 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 4894, - "end": 4902, - "loc": { - "start": { - "line": 146, - "column": 48 - }, - "end": { - "line": 146, - "column": 56 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4902, - "end": 4903, - "loc": { - "start": { - "line": 146, - "column": 56 - }, - "end": { - "line": 146, - "column": 57 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4904, - "end": 4905, - "loc": { - "start": { - "line": 146, - "column": 58 - }, - "end": { - "line": 146, - "column": 59 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 4910, - "end": 4915, - "loc": { - "start": { - "line": 147, - "column": 4 - }, - "end": { - "line": 147, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 4916, - "end": 4919, - "loc": { - "start": { - "line": 147, - "column": 10 - }, - "end": { - "line": 147, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 4920, - "end": 4921, - "loc": { - "start": { - "line": 147, - "column": 14 - }, - "end": { - "line": 147, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 4922, - "end": 4927, - "loc": { - "start": { - "line": 147, - "column": 16 - }, - "end": { - "line": 147, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4934, - "end": 4935, - "loc": { - "start": { - "line": 148, - "column": 6 - }, - "end": { - "line": 148, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 4935, - "end": 4942, - "loc": { - "start": { - "line": 148, - "column": 7 - }, - "end": { - "line": 148, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4942, - "end": 4943, - "loc": { - "start": { - "line": 148, - "column": 14 - }, - "end": { - "line": 148, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 4943, - "end": 4962, - "loc": { - "start": { - "line": 148, - "column": 15 - }, - "end": { - "line": 148, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4962, - "end": 4963, - "loc": { - "start": { - "line": 148, - "column": 34 - }, - "end": { - "line": 148, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4963, - "end": 4964, - "loc": { - "start": { - "line": 148, - "column": 35 - }, - "end": { - "line": 148, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 4973, - "end": 4979, - "loc": { - "start": { - "line": 149, - "column": 8 - }, - "end": { - "line": 149, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4979, - "end": 4980, - "loc": { - "start": { - "line": 149, - "column": 14 - }, - "end": { - "line": 149, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "DELETE", - "start": 4981, - "end": 4989, - "loc": { - "start": { - "line": 149, - "column": 16 - }, - "end": { - "line": 149, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4989, - "end": 4990, - "loc": { - "start": { - "line": 149, - "column": 24 - }, - "end": { - "line": 149, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 4999, - "end": 5003, - "loc": { - "start": { - "line": 150, - "column": 8 - }, - "end": { - "line": 150, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5003, - "end": 5004, - "loc": { - "start": { - "line": 150, - "column": 12 - }, - "end": { - "line": 150, - "column": 13 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5005, - "end": 5006, - "loc": { - "start": { - "line": 150, - "column": 14 - }, - "end": { - "line": 150, - "column": 15 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/v2/documents/", - "start": 5006, - "end": 5020, - "loc": { - "start": { - "line": 150, - "column": 15 - }, - "end": { - "line": 150, - "column": 29 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5020, - "end": 5022, - "loc": { - "start": { - "line": 150, - "column": 29 - }, - "end": { - "line": 150, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_id", - "start": 5022, - "end": 5033, - "loc": { - "start": { - "line": 150, - "column": 31 - }, - "end": { - "line": 150, - "column": 42 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5033, - "end": 5034, - "loc": { - "start": { - "line": 150, - "column": 42 - }, - "end": { - "line": 150, - "column": 43 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/embedded-invites", - "start": 5034, - "end": 5051, - "loc": { - "start": { - "line": 150, - "column": 43 - }, - "end": { - "line": 150, - "column": 60 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5051, - "end": 5052, - "loc": { - "start": { - "line": 150, - "column": 60 - }, - "end": { - "line": 150, - "column": 61 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5052, - "end": 5053, - "loc": { - "start": { - "line": 150, - "column": 61 - }, - "end": { - "line": 150, - "column": 62 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 5062, - "end": 5075, - "loc": { - "start": { - "line": 151, - "column": 8 - }, - "end": { - "line": 151, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5075, - "end": 5076, - "loc": { - "start": { - "line": 151, - "column": 21 - }, - "end": { - "line": 151, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5077, - "end": 5078, - "loc": { - "start": { - "line": 151, - "column": 23 - }, - "end": { - "line": 151, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 5089, - "end": 5093, - "loc": { - "start": { - "line": 152, - "column": 10 - }, - "end": { - "line": 152, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5093, - "end": 5094, - "loc": { - "start": { - "line": 152, - "column": 14 - }, - "end": { - "line": 152, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 5095, - "end": 5103, - "loc": { - "start": { - "line": 152, - "column": 16 - }, - "end": { - "line": 152, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5103, - "end": 5104, - "loc": { - "start": { - "line": 152, - "column": 24 - }, - "end": { - "line": 152, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 5115, - "end": 5120, - "loc": { - "start": { - "line": 153, - "column": 10 - }, - "end": { - "line": 153, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5120, - "end": 5121, - "loc": { - "start": { - "line": 153, - "column": 15 - }, - "end": { - "line": 153, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5130, - "end": 5131, - "loc": { - "start": { - "line": 154, - "column": 8 - }, - "end": { - "line": 154, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5131, - "end": 5132, - "loc": { - "start": { - "line": 154, - "column": 9 - }, - "end": { - "line": 154, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 5141, - "end": 5148, - "loc": { - "start": { - "line": 155, - "column": 8 - }, - "end": { - "line": 155, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5148, - "end": 5149, - "loc": { - "start": { - "line": 155, - "column": 15 - }, - "end": { - "line": 155, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5150, - "end": 5151, - "loc": { - "start": { - "line": 155, - "column": 17 - }, - "end": { - "line": 155, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type", - "start": 5152, - "end": 5166, - "loc": { - "start": { - "line": 155, - "column": 19 - }, - "end": { - "line": 155, - "column": 33 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5166, - "end": 5167, - "loc": { - "start": { - "line": 155, - "column": 33 - }, - "end": { - "line": 155, - "column": 34 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/json", - "start": 5168, - "end": 5186, - "loc": { - "start": { - "line": 155, - "column": 35 - }, - "end": { - "line": 155, - "column": 53 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5187, - "end": 5188, - "loc": { - "start": { - "line": 155, - "column": 54 - }, - "end": { - "line": 155, - "column": 55 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5188, - "end": 5189, - "loc": { - "start": { - "line": 155, - "column": 55 - }, - "end": { - "line": 155, - "column": 56 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5196, - "end": 5197, - "loc": { - "start": { - "line": 156, - "column": 6 - }, - "end": { - "line": 156, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5197, - "end": 5198, - "loc": { - "start": { - "line": 156, - "column": 7 - }, - "end": { - "line": 156, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5198, - "end": 5199, - "loc": { - "start": { - "line": 156, - "column": 8 - }, - "end": { - "line": 156, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 5200, - "end": 5215, - "loc": { - "start": { - "line": 156, - "column": 10 - }, - "end": { - "line": 156, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5215, - "end": 5216, - "loc": { - "start": { - "line": 156, - "column": 25 - }, - "end": { - "line": 156, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 5216, - "end": 5224, - "loc": { - "start": { - "line": 156, - "column": 26 - }, - "end": { - "line": 156, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5224, - "end": 5225, - "loc": { - "start": { - "line": 156, - "column": 34 - }, - "end": { - "line": 156, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5225, - "end": 5226, - "loc": { - "start": { - "line": 156, - "column": 35 - }, - "end": { - "line": 156, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5233, - "end": 5234, - "loc": { - "start": { - "line": 157, - "column": 6 - }, - "end": { - "line": 157, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 5234, - "end": 5236, - "loc": { - "start": { - "line": 157, - "column": 7 - }, - "end": { - "line": 157, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5236, - "end": 5237, - "loc": { - "start": { - "line": 157, - "column": 9 - }, - "end": { - "line": 157, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 5237, - "end": 5244, - "loc": { - "start": { - "line": 157, - "column": 10 - }, - "end": { - "line": 157, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5244, - "end": 5245, - "loc": { - "start": { - "line": 157, - "column": 17 - }, - "end": { - "line": 157, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 5246, - "end": 5258, - "loc": { - "start": { - "line": 157, - "column": 19 - }, - "end": { - "line": 157, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5258, - "end": 5259, - "loc": { - "start": { - "line": 157, - "column": 31 - }, - "end": { - "line": 157, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 5259, - "end": 5267, - "loc": { - "start": { - "line": 157, - "column": 32 - }, - "end": { - "line": 157, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5267, - "end": 5268, - "loc": { - "start": { - "line": 157, - "column": 40 - }, - "end": { - "line": 157, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5268, - "end": 5269, - "loc": { - "start": { - "line": 157, - "column": 41 - }, - "end": { - "line": 157, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5269, - "end": 5270, - "loc": { - "start": { - "line": 157, - "column": 42 - }, - "end": { - "line": 157, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 5275, - "end": 5278, - "loc": { - "start": { - "line": 158, - "column": 4 - }, - "end": { - "line": 158, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5278, - "end": 5279, - "loc": { - "start": { - "line": 158, - "column": 7 - }, - "end": { - "line": 158, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 5279, - "end": 5282, - "loc": { - "start": { - "line": 158, - "column": 8 - }, - "end": { - "line": 158, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5282, - "end": 5283, - "loc": { - "start": { - "line": 158, - "column": 11 - }, - "end": { - "line": 158, - "column": 12 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5283, - "end": 5284, - "loc": { - "start": { - "line": 158, - "column": 12 - }, - "end": { - "line": 158, - "column": 13 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5284, - "end": 5285, - "loc": { - "start": { - "line": 158, - "column": 13 - }, - "end": { - "line": 158, - "column": 14 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5288, - "end": 5289, - "loc": { - "start": { - "line": 159, - "column": 2 - }, - "end": { - "line": 159, - "column": 3 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5290, - "end": 5291, - "loc": { - "start": { - "line": 160, - "column": 0 - }, - "end": { - "line": 160, - "column": 1 - } - } - }, - { - "type": { - "label": "export", - "keyword": "export", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "export", - "start": 5293, - "end": 5299, - "loc": { - "start": { - "line": 162, - "column": 0 - }, - "end": { - "line": 162, - "column": 6 - } - } - }, - { - "type": { - "label": "default", - "keyword": "default", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "default", - "start": 5300, - "end": 5307, - "loc": { - "start": { - "line": 162, - "column": 7 - }, - "end": { - "line": 162, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Embedded", - "start": 5308, - "end": 5316, - "loc": { - "start": { - "line": 162, - "column": 15 - }, - "end": { - "line": 162, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5316, - "end": 5317, - "loc": { - "start": { - "line": 162, - "column": 23 - }, - "end": { - "line": 162, - "column": 24 - } - } - }, - { - "type": { - "label": "eof", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5318, - "end": 5318, - "loc": { - "start": { - "line": 163, - "column": 0 - }, - "end": { - "line": 163, - "column": 0 - } - } - } - ] -} \ No newline at end of file diff --git a/docs/ast/source/enumerations.js.json b/docs/ast/source/enumerations.js.json deleted file mode 100644 index b9e36b45..00000000 --- a/docs/ast/source/enumerations.js.json +++ /dev/null @@ -1,7681 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 1203, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 51, - "column": 0 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 1203, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 51, - "column": 0 - } - }, - "sourceType": "module", - "body": [ - { - "type": "ImportDeclaration", - "start": 14, - "end": 40, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 26 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - } - }, - "local": { - "type": "Identifier", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - }, - "identifierName": "https" - }, - "name": "https" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 18 - }, - "end": { - "line": 2, - "column": 25 - } - }, - "extra": { - "rawValue": "https", - "raw": "'https'" - }, - "value": "https" - } - }, - { - "type": "ImportDeclaration", - "start": 41, - "end": 122, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 5, - "column": 18 - } - }, - "specifiers": [ - { - "type": "ImportSpecifier", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - } - }, - "imported": { - "type": "Identifier", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "local": { - "type": "Identifier", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - } - }, - { - "type": "ImportSpecifier", - "start": 69, - "end": 81, - "loc": { - "start": { - "line": 4, - "column": 19 - }, - "end": { - "line": 4, - "column": 31 - } - }, - "imported": { - "type": "Identifier", - "start": 69, - "end": 81, - "loc": { - "start": { - "line": 4, - "column": 19 - }, - "end": { - "line": 4, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "local": { - "type": "Identifier", - "start": 69, - "end": 81, - "loc": { - "start": { - "line": 4, - "column": 19 - }, - "end": { - "line": 4, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - } - }, - { - "type": "ImportSpecifier", - "start": 83, - "end": 102, - "loc": { - "start": { - "line": 4, - "column": 33 - }, - "end": { - "line": 4, - "column": 52 - } - }, - "imported": { - "type": "Identifier", - "start": 83, - "end": 102, - "loc": { - "start": { - "line": 4, - "column": 33 - }, - "end": { - "line": 4, - "column": 52 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "local": { - "type": "Identifier", - "start": 83, - "end": 102, - "loc": { - "start": { - "line": 4, - "column": 33 - }, - "end": { - "line": 4, - "column": 52 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 111, - "end": 121, - "loc": { - "start": { - "line": 5, - "column": 7 - }, - "end": { - "line": 5, - "column": 17 - } - }, - "extra": { - "rawValue": "./common", - "raw": "'./common'" - }, - "value": "./common" - }, - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Enumeration Methods\n ", - "start": 125, - "end": 155, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 10, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "\n * add an enumeration field(drop down) to a document.\n * NOTE: must be used with POST /enumeration_options () or the API will not recognize it\n ", - "start": 157, - "end": 306, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 15, - "column": 3 - } - } - } - ] - }, - { - "type": "ExportNamedDeclaration", - "start": 308, - "end": 659, - "loc": { - "start": { - "line": 17, - "column": 0 - }, - "end": { - "line": 30, - "column": 2 - } - }, - "specifiers": [], - "source": null, - "declaration": { - "type": "VariableDeclaration", - "start": 315, - "end": 659, - "loc": { - "start": { - "line": 17, - "column": 7 - }, - "end": { - "line": 30, - "column": 2 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 319, - "end": 658, - "loc": { - "start": { - "line": 17, - "column": 11 - }, - "end": { - "line": 30, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 319, - "end": 327, - "loc": { - "start": { - "line": 17, - "column": 11 - }, - "end": { - "line": 17, - "column": 19 - }, - "identifierName": "addField" - }, - "name": "addField", - "leadingComments": null - }, - "init": { - "type": "FunctionExpression", - "start": 330, - "end": 658, - "loc": { - "start": { - "line": 17, - "column": 22 - }, - "end": { - "line": 30, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 319, - "end": 327, - "loc": { - "start": { - "line": 17, - "column": 11 - }, - "end": { - "line": 17, - "column": 19 - }, - "identifierName": "addField" - }, - "name": "addField", - "leadingComments": null - }, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 339, - "end": 342, - "loc": { - "start": { - "line": 17, - "column": 31 - }, - "end": { - "line": 17, - "column": 34 - }, - "identifierName": "obj" - }, - "name": "obj" - }, - { - "type": "Identifier", - "start": 344, - "end": 352, - "loc": { - "start": { - "line": 17, - "column": 36 - }, - "end": { - "line": 17, - "column": 44 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 354, - "end": 658, - "loc": { - "start": { - "line": 17, - "column": 46 - }, - "end": { - "line": 30, - "column": 1 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 358, - "end": 565, - "loc": { - "start": { - "line": 18, - "column": 2 - }, - "end": { - "line": 25, - "column": 33 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 364, - "end": 564, - "loc": { - "start": { - "line": 18, - "column": 8 - }, - "end": { - "line": 25, - "column": 32 - } - }, - "id": { - "type": "Identifier", - "start": 364, - "end": 367, - "loc": { - "start": { - "line": 18, - "column": 8 - }, - "end": { - "line": 18, - "column": 11 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 370, - "end": 564, - "loc": { - "start": { - "line": 18, - "column": 14 - }, - "end": { - "line": 25, - "column": 32 - } - }, - "callee": { - "type": "MemberExpression", - "start": 370, - "end": 383, - "loc": { - "start": { - "line": 18, - "column": 14 - }, - "end": { - "line": 18, - "column": 27 - } - }, - "object": { - "type": "Identifier", - "start": 370, - "end": 375, - "loc": { - "start": { - "line": 18, - "column": 14 - }, - "end": { - "line": 18, - "column": 19 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 376, - "end": 383, - "loc": { - "start": { - "line": 18, - "column": 20 - }, - "end": { - "line": 18, - "column": 27 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 384, - "end": 536, - "loc": { - "start": { - "line": 18, - "column": 28 - }, - "end": { - "line": 25, - "column": 4 - } - }, - "callee": { - "type": "Identifier", - "start": 384, - "end": 403, - "loc": { - "start": { - "line": 18, - "column": 28 - }, - "end": { - "line": 18, - "column": 47 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 404, - "end": 535, - "loc": { - "start": { - "line": 18, - "column": 48 - }, - "end": { - "line": 25, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 410, - "end": 424, - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 19, - "column": 18 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 410, - "end": 416, - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 19, - "column": 10 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 418, - "end": 424, - "loc": { - "start": { - "line": 19, - "column": 12 - }, - "end": { - "line": 19, - "column": 18 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 430, - "end": 456, - "loc": { - "start": { - "line": 20, - "column": 4 - }, - "end": { - "line": 20, - "column": 30 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 430, - "end": 434, - "loc": { - "start": { - "line": 20, - "column": 4 - }, - "end": { - "line": 20, - "column": 8 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 436, - "end": 456, - "loc": { - "start": { - "line": 20, - "column": 10 - }, - "end": { - "line": 20, - "column": 30 - } - }, - "extra": { - "rawValue": "/enumeration_field", - "raw": "'/enumeration_field'" - }, - "value": "/enumeration_field" - } - }, - { - "type": "ObjectProperty", - "start": 462, - "end": 530, - "loc": { - "start": { - "line": 21, - "column": 4 - }, - "end": { - "line": 24, - "column": 5 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 462, - "end": 475, - "loc": { - "start": { - "line": 21, - "column": 4 - }, - "end": { - "line": 21, - "column": 17 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 477, - "end": 530, - "loc": { - "start": { - "line": 21, - "column": 19 - }, - "end": { - "line": 24, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 485, - "end": 499, - "loc": { - "start": { - "line": 22, - "column": 6 - }, - "end": { - "line": 22, - "column": 20 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 485, - "end": 489, - "loc": { - "start": { - "line": 22, - "column": 6 - }, - "end": { - "line": 22, - "column": 10 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 491, - "end": 499, - "loc": { - "start": { - "line": 22, - "column": 12 - }, - "end": { - "line": 22, - "column": 20 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 507, - "end": 523, - "loc": { - "start": { - "line": 23, - "column": 6 - }, - "end": { - "line": 23, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 507, - "end": 512, - "loc": { - "start": { - "line": 23, - "column": 6 - }, - "end": { - "line": 23, - "column": 11 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "MemberExpression", - "start": 514, - "end": 523, - "loc": { - "start": { - "line": 23, - "column": 13 - }, - "end": { - "line": 23, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 514, - "end": 517, - "loc": { - "start": { - "line": 23, - "column": 13 - }, - "end": { - "line": 23, - "column": 16 - }, - "identifierName": "obj" - }, - "name": "obj" - }, - "property": { - "type": "Identifier", - "start": 518, - "end": 523, - "loc": { - "start": { - "line": 23, - "column": 17 - }, - "end": { - "line": 23, - "column": 22 - }, - "identifierName": "token" - }, - "name": "token" - }, - "computed": false - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 538, - "end": 563, - "loc": { - "start": { - "line": 25, - "column": 6 - }, - "end": { - "line": 25, - "column": 31 - } - }, - "callee": { - "type": "Identifier", - "start": 538, - "end": 553, - "loc": { - "start": { - "line": 25, - "column": 6 - }, - "end": { - "line": 25, - "column": 21 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 554, - "end": 562, - "loc": { - "start": { - "line": 25, - "column": 22 - }, - "end": { - "line": 25, - "column": 30 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 569, - "end": 609, - "loc": { - "start": { - "line": 27, - "column": 2 - }, - "end": { - "line": 27, - "column": 42 - } - }, - "expression": { - "type": "CallExpression", - "start": 569, - "end": 608, - "loc": { - "start": { - "line": 27, - "column": 2 - }, - "end": { - "line": 27, - "column": 41 - } - }, - "callee": { - "type": "MemberExpression", - "start": 569, - "end": 575, - "loc": { - "start": { - "line": 27, - "column": 2 - }, - "end": { - "line": 27, - "column": 8 - } - }, - "object": { - "type": "Identifier", - "start": 569, - "end": 572, - "loc": { - "start": { - "line": 27, - "column": 2 - }, - "end": { - "line": 27, - "column": 5 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 573, - "end": 575, - "loc": { - "start": { - "line": 27, - "column": 6 - }, - "end": { - "line": 27, - "column": 8 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 576, - "end": 583, - "loc": { - "start": { - "line": 27, - "column": 9 - }, - "end": { - "line": 27, - "column": 16 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 585, - "end": 607, - "loc": { - "start": { - "line": 27, - "column": 18 - }, - "end": { - "line": 27, - "column": 40 - } - }, - "callee": { - "type": "Identifier", - "start": 585, - "end": 597, - "loc": { - "start": { - "line": 27, - "column": 18 - }, - "end": { - "line": 27, - "column": 30 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 598, - "end": 606, - "loc": { - "start": { - "line": 27, - "column": 31 - }, - "end": { - "line": 27, - "column": 39 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 612, - "end": 643, - "loc": { - "start": { - "line": 28, - "column": 2 - }, - "end": { - "line": 28, - "column": 33 - } - }, - "expression": { - "type": "CallExpression", - "start": 612, - "end": 642, - "loc": { - "start": { - "line": 28, - "column": 2 - }, - "end": { - "line": 28, - "column": 32 - } - }, - "callee": { - "type": "MemberExpression", - "start": 612, - "end": 621, - "loc": { - "start": { - "line": 28, - "column": 2 - }, - "end": { - "line": 28, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 612, - "end": 615, - "loc": { - "start": { - "line": 28, - "column": 2 - }, - "end": { - "line": 28, - "column": 5 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 616, - "end": 621, - "loc": { - "start": { - "line": 28, - "column": 6 - }, - "end": { - "line": 28, - "column": 11 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 622, - "end": 641, - "loc": { - "start": { - "line": 28, - "column": 12 - }, - "end": { - "line": 28, - "column": 31 - } - }, - "callee": { - "type": "MemberExpression", - "start": 622, - "end": 636, - "loc": { - "start": { - "line": 28, - "column": 12 - }, - "end": { - "line": 28, - "column": 26 - } - }, - "object": { - "type": "Identifier", - "start": 622, - "end": 626, - "loc": { - "start": { - "line": 28, - "column": 12 - }, - "end": { - "line": 28, - "column": 16 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 627, - "end": 636, - "loc": { - "start": { - "line": 28, - "column": 17 - }, - "end": { - "line": 28, - "column": 26 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 637, - "end": 640, - "loc": { - "start": { - "line": 28, - "column": 27 - }, - "end": { - "line": 28, - "column": 30 - }, - "identifierName": "obj" - }, - "name": "obj" - } - ] - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 646, - "end": 656, - "loc": { - "start": { - "line": 29, - "column": 2 - }, - "end": { - "line": 29, - "column": 12 - } - }, - "expression": { - "type": "CallExpression", - "start": 646, - "end": 655, - "loc": { - "start": { - "line": 29, - "column": 2 - }, - "end": { - "line": 29, - "column": 11 - } - }, - "callee": { - "type": "MemberExpression", - "start": 646, - "end": 653, - "loc": { - "start": { - "line": 29, - "column": 2 - }, - "end": { - "line": 29, - "column": 9 - } - }, - "object": { - "type": "Identifier", - "start": 646, - "end": 649, - "loc": { - "start": { - "line": 29, - "column": 2 - }, - "end": { - "line": 29, - "column": 5 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 650, - "end": 653, - "loc": { - "start": { - "line": 29, - "column": 6 - }, - "end": { - "line": 29, - "column": 9 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - } - }, - "leadingComments": null - } - ], - "kind": "let", - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Enumeration Methods\n ", - "start": 125, - "end": 155, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 10, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "\n * add an enumeration field(drop down) to a document.\n * NOTE: must be used with POST /enumeration_options () or the API will not recognize it\n ", - "start": 157, - "end": 306, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 15, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "\n * add enumeration options to the field that was created using the REST call above.\n * NOTE: must be used with POST /enumeration_field () or the API will not recognize the field\n ", - "start": 661, - "end": 845, - "loc": { - "start": { - "line": 32, - "column": 0 - }, - "end": { - "line": 35, - "column": 3 - } - } - } - ] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Enumeration Methods\n ", - "start": 125, - "end": 155, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 10, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "\n * add an enumeration field(drop down) to a document.\n * NOTE: must be used with POST /enumeration_options () or the API will not recognize it\n ", - "start": 157, - "end": 306, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 15, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "\n * add enumeration options to the field that was created using the REST call above.\n * NOTE: must be used with POST /enumeration_field () or the API will not recognize the field\n ", - "start": 661, - "end": 845, - "loc": { - "start": { - "line": 32, - "column": 0 - }, - "end": { - "line": 35, - "column": 3 - } - } - } - ] - }, - { - "type": "ExportNamedDeclaration", - "start": 847, - "end": 1202, - "loc": { - "start": { - "line": 37, - "column": 0 - }, - "end": { - "line": 50, - "column": 2 - } - }, - "specifiers": [], - "source": null, - "declaration": { - "type": "VariableDeclaration", - "start": 854, - "end": 1202, - "loc": { - "start": { - "line": 37, - "column": 7 - }, - "end": { - "line": 50, - "column": 2 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 858, - "end": 1201, - "loc": { - "start": { - "line": 37, - "column": 11 - }, - "end": { - "line": 50, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 858, - "end": 868, - "loc": { - "start": { - "line": 37, - "column": 11 - }, - "end": { - "line": 37, - "column": 21 - }, - "identifierName": "addOptions" - }, - "name": "addOptions", - "leadingComments": null - }, - "init": { - "type": "FunctionExpression", - "start": 871, - "end": 1201, - "loc": { - "start": { - "line": 37, - "column": 24 - }, - "end": { - "line": 50, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 858, - "end": 868, - "loc": { - "start": { - "line": 37, - "column": 11 - }, - "end": { - "line": 37, - "column": 21 - }, - "identifierName": "addOptions" - }, - "name": "addOptions", - "leadingComments": null - }, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 880, - "end": 883, - "loc": { - "start": { - "line": 37, - "column": 33 - }, - "end": { - "line": 37, - "column": 36 - }, - "identifierName": "obj" - }, - "name": "obj" - }, - { - "type": "Identifier", - "start": 885, - "end": 893, - "loc": { - "start": { - "line": 37, - "column": 38 - }, - "end": { - "line": 37, - "column": 46 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 895, - "end": 1201, - "loc": { - "start": { - "line": 37, - "column": 48 - }, - "end": { - "line": 50, - "column": 1 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 899, - "end": 1108, - "loc": { - "start": { - "line": 38, - "column": 2 - }, - "end": { - "line": 45, - "column": 33 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 905, - "end": 1107, - "loc": { - "start": { - "line": 38, - "column": 8 - }, - "end": { - "line": 45, - "column": 32 - } - }, - "id": { - "type": "Identifier", - "start": 905, - "end": 908, - "loc": { - "start": { - "line": 38, - "column": 8 - }, - "end": { - "line": 38, - "column": 11 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 911, - "end": 1107, - "loc": { - "start": { - "line": 38, - "column": 14 - }, - "end": { - "line": 45, - "column": 32 - } - }, - "callee": { - "type": "MemberExpression", - "start": 911, - "end": 924, - "loc": { - "start": { - "line": 38, - "column": 14 - }, - "end": { - "line": 38, - "column": 27 - } - }, - "object": { - "type": "Identifier", - "start": 911, - "end": 916, - "loc": { - "start": { - "line": 38, - "column": 14 - }, - "end": { - "line": 38, - "column": 19 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 917, - "end": 924, - "loc": { - "start": { - "line": 38, - "column": 20 - }, - "end": { - "line": 38, - "column": 27 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 925, - "end": 1079, - "loc": { - "start": { - "line": 38, - "column": 28 - }, - "end": { - "line": 45, - "column": 4 - } - }, - "callee": { - "type": "Identifier", - "start": 925, - "end": 944, - "loc": { - "start": { - "line": 38, - "column": 28 - }, - "end": { - "line": 38, - "column": 47 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 945, - "end": 1078, - "loc": { - "start": { - "line": 38, - "column": 48 - }, - "end": { - "line": 45, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 951, - "end": 965, - "loc": { - "start": { - "line": 39, - "column": 4 - }, - "end": { - "line": 39, - "column": 18 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 951, - "end": 957, - "loc": { - "start": { - "line": 39, - "column": 4 - }, - "end": { - "line": 39, - "column": 10 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 959, - "end": 965, - "loc": { - "start": { - "line": 39, - "column": 12 - }, - "end": { - "line": 39, - "column": 18 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 971, - "end": 999, - "loc": { - "start": { - "line": 40, - "column": 4 - }, - "end": { - "line": 40, - "column": 32 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 971, - "end": 975, - "loc": { - "start": { - "line": 40, - "column": 4 - }, - "end": { - "line": 40, - "column": 8 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 977, - "end": 999, - "loc": { - "start": { - "line": 40, - "column": 10 - }, - "end": { - "line": 40, - "column": 32 - } - }, - "extra": { - "rawValue": "/enumeration_options", - "raw": "'/enumeration_options'" - }, - "value": "/enumeration_options" - } - }, - { - "type": "ObjectProperty", - "start": 1005, - "end": 1073, - "loc": { - "start": { - "line": 41, - "column": 4 - }, - "end": { - "line": 44, - "column": 5 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1005, - "end": 1018, - "loc": { - "start": { - "line": 41, - "column": 4 - }, - "end": { - "line": 41, - "column": 17 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 1020, - "end": 1073, - "loc": { - "start": { - "line": 41, - "column": 19 - }, - "end": { - "line": 44, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1028, - "end": 1042, - "loc": { - "start": { - "line": 42, - "column": 6 - }, - "end": { - "line": 42, - "column": 20 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1028, - "end": 1032, - "loc": { - "start": { - "line": 42, - "column": 6 - }, - "end": { - "line": 42, - "column": 10 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 1034, - "end": 1042, - "loc": { - "start": { - "line": 42, - "column": 12 - }, - "end": { - "line": 42, - "column": 20 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 1050, - "end": 1066, - "loc": { - "start": { - "line": 43, - "column": 6 - }, - "end": { - "line": 43, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1050, - "end": 1055, - "loc": { - "start": { - "line": 43, - "column": 6 - }, - "end": { - "line": 43, - "column": 11 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "MemberExpression", - "start": 1057, - "end": 1066, - "loc": { - "start": { - "line": 43, - "column": 13 - }, - "end": { - "line": 43, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 1057, - "end": 1060, - "loc": { - "start": { - "line": 43, - "column": 13 - }, - "end": { - "line": 43, - "column": 16 - }, - "identifierName": "obj" - }, - "name": "obj" - }, - "property": { - "type": "Identifier", - "start": 1061, - "end": 1066, - "loc": { - "start": { - "line": 43, - "column": 17 - }, - "end": { - "line": 43, - "column": 22 - }, - "identifierName": "token" - }, - "name": "token" - }, - "computed": false - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 1081, - "end": 1106, - "loc": { - "start": { - "line": 45, - "column": 6 - }, - "end": { - "line": 45, - "column": 31 - } - }, - "callee": { - "type": "Identifier", - "start": 1081, - "end": 1096, - "loc": { - "start": { - "line": 45, - "column": 6 - }, - "end": { - "line": 45, - "column": 21 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1097, - "end": 1105, - "loc": { - "start": { - "line": 45, - "column": 22 - }, - "end": { - "line": 45, - "column": 30 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 1112, - "end": 1152, - "loc": { - "start": { - "line": 47, - "column": 2 - }, - "end": { - "line": 47, - "column": 42 - } - }, - "expression": { - "type": "CallExpression", - "start": 1112, - "end": 1151, - "loc": { - "start": { - "line": 47, - "column": 2 - }, - "end": { - "line": 47, - "column": 41 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1112, - "end": 1118, - "loc": { - "start": { - "line": 47, - "column": 2 - }, - "end": { - "line": 47, - "column": 8 - } - }, - "object": { - "type": "Identifier", - "start": 1112, - "end": 1115, - "loc": { - "start": { - "line": 47, - "column": 2 - }, - "end": { - "line": 47, - "column": 5 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 1116, - "end": 1118, - "loc": { - "start": { - "line": 47, - "column": 6 - }, - "end": { - "line": 47, - "column": 8 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 1119, - "end": 1126, - "loc": { - "start": { - "line": 47, - "column": 9 - }, - "end": { - "line": 47, - "column": 16 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 1128, - "end": 1150, - "loc": { - "start": { - "line": 47, - "column": 18 - }, - "end": { - "line": 47, - "column": 40 - } - }, - "callee": { - "type": "Identifier", - "start": 1128, - "end": 1140, - "loc": { - "start": { - "line": 47, - "column": 18 - }, - "end": { - "line": 47, - "column": 30 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1141, - "end": 1149, - "loc": { - "start": { - "line": 47, - "column": 31 - }, - "end": { - "line": 47, - "column": 39 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 1155, - "end": 1186, - "loc": { - "start": { - "line": 48, - "column": 2 - }, - "end": { - "line": 48, - "column": 33 - } - }, - "expression": { - "type": "CallExpression", - "start": 1155, - "end": 1185, - "loc": { - "start": { - "line": 48, - "column": 2 - }, - "end": { - "line": 48, - "column": 32 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1155, - "end": 1164, - "loc": { - "start": { - "line": 48, - "column": 2 - }, - "end": { - "line": 48, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 1155, - "end": 1158, - "loc": { - "start": { - "line": 48, - "column": 2 - }, - "end": { - "line": 48, - "column": 5 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 1159, - "end": 1164, - "loc": { - "start": { - "line": 48, - "column": 6 - }, - "end": { - "line": 48, - "column": 11 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 1165, - "end": 1184, - "loc": { - "start": { - "line": 48, - "column": 12 - }, - "end": { - "line": 48, - "column": 31 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1165, - "end": 1179, - "loc": { - "start": { - "line": 48, - "column": 12 - }, - "end": { - "line": 48, - "column": 26 - } - }, - "object": { - "type": "Identifier", - "start": 1165, - "end": 1169, - "loc": { - "start": { - "line": 48, - "column": 12 - }, - "end": { - "line": 48, - "column": 16 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 1170, - "end": 1179, - "loc": { - "start": { - "line": 48, - "column": 17 - }, - "end": { - "line": 48, - "column": 26 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1180, - "end": 1183, - "loc": { - "start": { - "line": 48, - "column": 27 - }, - "end": { - "line": 48, - "column": 30 - }, - "identifierName": "obj" - }, - "name": "obj" - } - ] - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 1189, - "end": 1199, - "loc": { - "start": { - "line": 49, - "column": 2 - }, - "end": { - "line": 49, - "column": 12 - } - }, - "expression": { - "type": "CallExpression", - "start": 1189, - "end": 1198, - "loc": { - "start": { - "line": 49, - "column": 2 - }, - "end": { - "line": 49, - "column": 11 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1189, - "end": 1196, - "loc": { - "start": { - "line": 49, - "column": 2 - }, - "end": { - "line": 49, - "column": 9 - } - }, - "object": { - "type": "Identifier", - "start": 1189, - "end": 1192, - "loc": { - "start": { - "line": 49, - "column": 2 - }, - "end": { - "line": 49, - "column": 5 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 1193, - "end": 1196, - "loc": { - "start": { - "line": 49, - "column": 6 - }, - "end": { - "line": 49, - "column": 9 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - } - }, - "leadingComments": null - } - ], - "kind": "let", - "leadingComments": [ - { - "type": "CommentBlock", - "value": "\n * add enumeration options to the field that was created using the REST call above.\n * NOTE: must be used with POST /enumeration_field () or the API will not recognize the field\n ", - "start": 661, - "end": 845, - "loc": { - "start": { - "line": 32, - "column": 0 - }, - "end": { - "line": 35, - "column": 3 - } - } - } - ], - "trailingComments": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "\n * add enumeration options to the field that was created using the REST call above.\n * NOTE: must be used with POST /enumeration_field () or the API will not recognize the field\n ", - "start": 661, - "end": 845, - "loc": { - "start": { - "line": 32, - "column": 0 - }, - "end": { - "line": 35, - "column": 3 - } - } - } - ] - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "value": "use strict", - "extra": { - "raw": "'use strict'", - "rawValue": "use strict" - } - } - } - ] - }, - "comments": [ - { - "type": "CommentBlock", - "value": "*\n * Enumeration Methods\n ", - "start": 125, - "end": 155, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 10, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "\n * add an enumeration field(drop down) to a document.\n * NOTE: must be used with POST /enumeration_options () or the API will not recognize it\n ", - "start": 157, - "end": 306, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 15, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "\n * add enumeration options to the field that was created using the REST call above.\n * NOTE: must be used with POST /enumeration_field () or the API will not recognize the field\n ", - "start": 661, - "end": 845, - "loc": { - "start": { - "line": 32, - "column": 0 - }, - "end": { - "line": 35, - "column": 3 - } - } - } - ], - "tokens": [ - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "use strict", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 12 - }, - "end": { - "line": 1, - "column": 13 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 14, - "end": 20, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 27, - "end": 31, - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 17 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "https", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 18 - }, - "end": { - "line": 2, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39, - "end": 40, - "loc": { - "start": { - "line": 2, - "column": 25 - }, - "end": { - "line": 2, - "column": 26 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 41, - "end": 47, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 48, - "end": 49, - "loc": { - "start": { - "line": 3, - "column": 7 - }, - "end": { - "line": 3, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 67, - "end": 68, - "loc": { - "start": { - "line": 4, - "column": 17 - }, - "end": { - "line": 4, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 69, - "end": 81, - "loc": { - "start": { - "line": 4, - "column": 19 - }, - "end": { - "line": 4, - "column": 31 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 81, - "end": 82, - "loc": { - "start": { - "line": 4, - "column": 31 - }, - "end": { - "line": 4, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 83, - "end": 102, - "loc": { - "start": { - "line": 4, - "column": 33 - }, - "end": { - "line": 4, - "column": 52 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 102, - "end": 103, - "loc": { - "start": { - "line": 4, - "column": 52 - }, - "end": { - "line": 4, - "column": 53 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 104, - "end": 105, - "loc": { - "start": { - "line": 5, - "column": 0 - }, - "end": { - "line": 5, - "column": 1 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 106, - "end": 110, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 6 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "./common", - "start": 111, - "end": 121, - "loc": { - "start": { - "line": 5, - "column": 7 - }, - "end": { - "line": 5, - "column": 17 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 121, - "end": 122, - "loc": { - "start": { - "line": 5, - "column": 17 - }, - "end": { - "line": 5, - "column": 18 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Enumeration Methods\n ", - "start": 125, - "end": 155, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 10, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "\n * add an enumeration field(drop down) to a document.\n * NOTE: must be used with POST /enumeration_options () or the API will not recognize it\n ", - "start": 157, - "end": 306, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 15, - "column": 3 - } - } - }, - { - "type": { - "label": "export", - "keyword": "export", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "export", - "start": 308, - "end": 314, - "loc": { - "start": { - "line": 17, - "column": 0 - }, - "end": { - "line": 17, - "column": 6 - } - } - }, - { - "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "let", - "start": 315, - "end": 318, - "loc": { - "start": { - "line": 17, - "column": 7 - }, - "end": { - "line": 17, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "addField", - "start": 319, - "end": 327, - "loc": { - "start": { - "line": 17, - "column": 11 - }, - "end": { - "line": 17, - "column": 19 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 328, - "end": 329, - "loc": { - "start": { - "line": 17, - "column": 20 - }, - "end": { - "line": 17, - "column": 21 - } - } - }, - { - "type": { - "label": "function", - "keyword": "function", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "function", - "start": 330, - "end": 338, - "loc": { - "start": { - "line": 17, - "column": 22 - }, - "end": { - "line": 17, - "column": 30 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 338, - "end": 339, - "loc": { - "start": { - "line": 17, - "column": 30 - }, - "end": { - "line": 17, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "obj", - "start": 339, - "end": 342, - "loc": { - "start": { - "line": 17, - "column": 31 - }, - "end": { - "line": 17, - "column": 34 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 342, - "end": 343, - "loc": { - "start": { - "line": 17, - "column": 34 - }, - "end": { - "line": 17, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 344, - "end": 352, - "loc": { - "start": { - "line": 17, - "column": 36 - }, - "end": { - "line": 17, - "column": 44 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 352, - "end": 353, - "loc": { - "start": { - "line": 17, - "column": 44 - }, - "end": { - "line": 17, - "column": 45 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 354, - "end": 355, - "loc": { - "start": { - "line": 17, - "column": 46 - }, - "end": { - "line": 17, - "column": 47 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 358, - "end": 363, - "loc": { - "start": { - "line": 18, - "column": 2 - }, - "end": { - "line": 18, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 364, - "end": 367, - "loc": { - "start": { - "line": 18, - "column": 8 - }, - "end": { - "line": 18, - "column": 11 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 368, - "end": 369, - "loc": { - "start": { - "line": 18, - "column": 12 - }, - "end": { - "line": 18, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 370, - "end": 375, - "loc": { - "start": { - "line": 18, - "column": 14 - }, - "end": { - "line": 18, - "column": 19 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 375, - "end": 376, - "loc": { - "start": { - "line": 18, - "column": 19 - }, - "end": { - "line": 18, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 376, - "end": 383, - "loc": { - "start": { - "line": 18, - "column": 20 - }, - "end": { - "line": 18, - "column": 27 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 383, - "end": 384, - "loc": { - "start": { - "line": 18, - "column": 27 - }, - "end": { - "line": 18, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 384, - "end": 403, - "loc": { - "start": { - "line": 18, - "column": 28 - }, - "end": { - "line": 18, - "column": 47 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 403, - "end": 404, - "loc": { - "start": { - "line": 18, - "column": 47 - }, - "end": { - "line": 18, - "column": 48 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 404, - "end": 405, - "loc": { - "start": { - "line": 18, - "column": 48 - }, - "end": { - "line": 18, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 410, - "end": 416, - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 19, - "column": 10 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 416, - "end": 417, - "loc": { - "start": { - "line": 19, - "column": 10 - }, - "end": { - "line": 19, - "column": 11 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "POST", - "start": 418, - "end": 424, - "loc": { - "start": { - "line": 19, - "column": 12 - }, - "end": { - "line": 19, - "column": 18 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 424, - "end": 425, - "loc": { - "start": { - "line": 19, - "column": 18 - }, - "end": { - "line": 19, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 430, - "end": 434, - "loc": { - "start": { - "line": 20, - "column": 4 - }, - "end": { - "line": 20, - "column": 8 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 434, - "end": 435, - "loc": { - "start": { - "line": 20, - "column": 8 - }, - "end": { - "line": 20, - "column": 9 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/enumeration_field", - "start": 436, - "end": 456, - "loc": { - "start": { - "line": 20, - "column": 10 - }, - "end": { - "line": 20, - "column": 30 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 456, - "end": 457, - "loc": { - "start": { - "line": 20, - "column": 30 - }, - "end": { - "line": 20, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 462, - "end": 475, - "loc": { - "start": { - "line": 21, - "column": 4 - }, - "end": { - "line": 21, - "column": 17 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 475, - "end": 476, - "loc": { - "start": { - "line": 21, - "column": 17 - }, - "end": { - "line": 21, - "column": 18 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 477, - "end": 478, - "loc": { - "start": { - "line": 21, - "column": 19 - }, - "end": { - "line": 21, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 485, - "end": 489, - "loc": { - "start": { - "line": 22, - "column": 6 - }, - "end": { - "line": 22, - "column": 10 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 489, - "end": 490, - "loc": { - "start": { - "line": 22, - "column": 10 - }, - "end": { - "line": 22, - "column": 11 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 491, - "end": 499, - "loc": { - "start": { - "line": 22, - "column": 12 - }, - "end": { - "line": 22, - "column": 20 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 499, - "end": 500, - "loc": { - "start": { - "line": 22, - "column": 20 - }, - "end": { - "line": 22, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 507, - "end": 512, - "loc": { - "start": { - "line": 23, - "column": 6 - }, - "end": { - "line": 23, - "column": 11 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 512, - "end": 513, - "loc": { - "start": { - "line": 23, - "column": 11 - }, - "end": { - "line": 23, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "obj", - "start": 514, - "end": 517, - "loc": { - "start": { - "line": 23, - "column": 13 - }, - "end": { - "line": 23, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 517, - "end": 518, - "loc": { - "start": { - "line": 23, - "column": 16 - }, - "end": { - "line": 23, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 518, - "end": 523, - "loc": { - "start": { - "line": 23, - "column": 17 - }, - "end": { - "line": 23, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 523, - "end": 524, - "loc": { - "start": { - "line": 23, - "column": 22 - }, - "end": { - "line": 23, - "column": 23 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 529, - "end": 530, - "loc": { - "start": { - "line": 24, - "column": 4 - }, - "end": { - "line": 24, - "column": 5 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 530, - "end": 531, - "loc": { - "start": { - "line": 24, - "column": 5 - }, - "end": { - "line": 24, - "column": 6 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 534, - "end": 535, - "loc": { - "start": { - "line": 25, - "column": 2 - }, - "end": { - "line": 25, - "column": 3 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 535, - "end": 536, - "loc": { - "start": { - "line": 25, - "column": 3 - }, - "end": { - "line": 25, - "column": 4 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 536, - "end": 537, - "loc": { - "start": { - "line": 25, - "column": 4 - }, - "end": { - "line": 25, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 538, - "end": 553, - "loc": { - "start": { - "line": 25, - "column": 6 - }, - "end": { - "line": 25, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 553, - "end": 554, - "loc": { - "start": { - "line": 25, - "column": 21 - }, - "end": { - "line": 25, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 554, - "end": 562, - "loc": { - "start": { - "line": 25, - "column": 22 - }, - "end": { - "line": 25, - "column": 30 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 562, - "end": 563, - "loc": { - "start": { - "line": 25, - "column": 30 - }, - "end": { - "line": 25, - "column": 31 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 563, - "end": 564, - "loc": { - "start": { - "line": 25, - "column": 31 - }, - "end": { - "line": 25, - "column": 32 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 564, - "end": 565, - "loc": { - "start": { - "line": 25, - "column": 32 - }, - "end": { - "line": 25, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 569, - "end": 572, - "loc": { - "start": { - "line": 27, - "column": 2 - }, - "end": { - "line": 27, - "column": 5 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 572, - "end": 573, - "loc": { - "start": { - "line": 27, - "column": 5 - }, - "end": { - "line": 27, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 573, - "end": 575, - "loc": { - "start": { - "line": 27, - "column": 6 - }, - "end": { - "line": 27, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 575, - "end": 576, - "loc": { - "start": { - "line": 27, - "column": 8 - }, - "end": { - "line": 27, - "column": 9 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 576, - "end": 583, - "loc": { - "start": { - "line": 27, - "column": 9 - }, - "end": { - "line": 27, - "column": 16 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 583, - "end": 584, - "loc": { - "start": { - "line": 27, - "column": 16 - }, - "end": { - "line": 27, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 585, - "end": 597, - "loc": { - "start": { - "line": 27, - "column": 18 - }, - "end": { - "line": 27, - "column": 30 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 597, - "end": 598, - "loc": { - "start": { - "line": 27, - "column": 30 - }, - "end": { - "line": 27, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 598, - "end": 606, - "loc": { - "start": { - "line": 27, - "column": 31 - }, - "end": { - "line": 27, - "column": 39 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 606, - "end": 607, - "loc": { - "start": { - "line": 27, - "column": 39 - }, - "end": { - "line": 27, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 607, - "end": 608, - "loc": { - "start": { - "line": 27, - "column": 40 - }, - "end": { - "line": 27, - "column": 41 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 608, - "end": 609, - "loc": { - "start": { - "line": 27, - "column": 41 - }, - "end": { - "line": 27, - "column": 42 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 612, - "end": 615, - "loc": { - "start": { - "line": 28, - "column": 2 - }, - "end": { - "line": 28, - "column": 5 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 615, - "end": 616, - "loc": { - "start": { - "line": 28, - "column": 5 - }, - "end": { - "line": 28, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "write", - "start": 616, - "end": 621, - "loc": { - "start": { - "line": 28, - "column": 6 - }, - "end": { - "line": 28, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 621, - "end": 622, - "loc": { - "start": { - "line": 28, - "column": 11 - }, - "end": { - "line": 28, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSON", - "start": 622, - "end": 626, - "loc": { - "start": { - "line": 28, - "column": 12 - }, - "end": { - "line": 28, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 626, - "end": 627, - "loc": { - "start": { - "line": 28, - "column": 16 - }, - "end": { - "line": 28, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "stringify", - "start": 627, - "end": 636, - "loc": { - "start": { - "line": 28, - "column": 17 - }, - "end": { - "line": 28, - "column": 26 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 636, - "end": 637, - "loc": { - "start": { - "line": 28, - "column": 26 - }, - "end": { - "line": 28, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "obj", - "start": 637, - "end": 640, - "loc": { - "start": { - "line": 28, - "column": 27 - }, - "end": { - "line": 28, - "column": 30 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 640, - "end": 641, - "loc": { - "start": { - "line": 28, - "column": 30 - }, - "end": { - "line": 28, - "column": 31 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 641, - "end": 642, - "loc": { - "start": { - "line": 28, - "column": 31 - }, - "end": { - "line": 28, - "column": 32 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 642, - "end": 643, - "loc": { - "start": { - "line": 28, - "column": 32 - }, - "end": { - "line": 28, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 646, - "end": 649, - "loc": { - "start": { - "line": 29, - "column": 2 - }, - "end": { - "line": 29, - "column": 5 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 649, - "end": 650, - "loc": { - "start": { - "line": 29, - "column": 5 - }, - "end": { - "line": 29, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 650, - "end": 653, - "loc": { - "start": { - "line": 29, - "column": 6 - }, - "end": { - "line": 29, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 653, - "end": 654, - "loc": { - "start": { - "line": 29, - "column": 9 - }, - "end": { - "line": 29, - "column": 10 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 654, - "end": 655, - "loc": { - "start": { - "line": 29, - "column": 10 - }, - "end": { - "line": 29, - "column": 11 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 655, - "end": 656, - "loc": { - "start": { - "line": 29, - "column": 11 - }, - "end": { - "line": 29, - "column": 12 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 657, - "end": 658, - "loc": { - "start": { - "line": 30, - "column": 0 - }, - "end": { - "line": 30, - "column": 1 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 658, - "end": 659, - "loc": { - "start": { - "line": 30, - "column": 1 - }, - "end": { - "line": 30, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "\n * add enumeration options to the field that was created using the REST call above.\n * NOTE: must be used with POST /enumeration_field () or the API will not recognize the field\n ", - "start": 661, - "end": 845, - "loc": { - "start": { - "line": 32, - "column": 0 - }, - "end": { - "line": 35, - "column": 3 - } - } - }, - { - "type": { - "label": "export", - "keyword": "export", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "export", - "start": 847, - "end": 853, - "loc": { - "start": { - "line": 37, - "column": 0 - }, - "end": { - "line": 37, - "column": 6 - } - } - }, - { - "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "let", - "start": 854, - "end": 857, - "loc": { - "start": { - "line": 37, - "column": 7 - }, - "end": { - "line": 37, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "addOptions", - "start": 858, - "end": 868, - "loc": { - "start": { - "line": 37, - "column": 11 - }, - "end": { - "line": 37, - "column": 21 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 869, - "end": 870, - "loc": { - "start": { - "line": 37, - "column": 22 - }, - "end": { - "line": 37, - "column": 23 - } - } - }, - { - "type": { - "label": "function", - "keyword": "function", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "function", - "start": 871, - "end": 879, - "loc": { - "start": { - "line": 37, - "column": 24 - }, - "end": { - "line": 37, - "column": 32 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 879, - "end": 880, - "loc": { - "start": { - "line": 37, - "column": 32 - }, - "end": { - "line": 37, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "obj", - "start": 880, - "end": 883, - "loc": { - "start": { - "line": 37, - "column": 33 - }, - "end": { - "line": 37, - "column": 36 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 883, - "end": 884, - "loc": { - "start": { - "line": 37, - "column": 36 - }, - "end": { - "line": 37, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 885, - "end": 893, - "loc": { - "start": { - "line": 37, - "column": 38 - }, - "end": { - "line": 37, - "column": 46 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 893, - "end": 894, - "loc": { - "start": { - "line": 37, - "column": 46 - }, - "end": { - "line": 37, - "column": 47 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 895, - "end": 896, - "loc": { - "start": { - "line": 37, - "column": 48 - }, - "end": { - "line": 37, - "column": 49 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 899, - "end": 904, - "loc": { - "start": { - "line": 38, - "column": 2 - }, - "end": { - "line": 38, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 905, - "end": 908, - "loc": { - "start": { - "line": 38, - "column": 8 - }, - "end": { - "line": 38, - "column": 11 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 909, - "end": 910, - "loc": { - "start": { - "line": 38, - "column": 12 - }, - "end": { - "line": 38, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 911, - "end": 916, - "loc": { - "start": { - "line": 38, - "column": 14 - }, - "end": { - "line": 38, - "column": 19 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 916, - "end": 917, - "loc": { - "start": { - "line": 38, - "column": 19 - }, - "end": { - "line": 38, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 917, - "end": 924, - "loc": { - "start": { - "line": 38, - "column": 20 - }, - "end": { - "line": 38, - "column": 27 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 924, - "end": 925, - "loc": { - "start": { - "line": 38, - "column": 27 - }, - "end": { - "line": 38, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 925, - "end": 944, - "loc": { - "start": { - "line": 38, - "column": 28 - }, - "end": { - "line": 38, - "column": 47 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 944, - "end": 945, - "loc": { - "start": { - "line": 38, - "column": 47 - }, - "end": { - "line": 38, - "column": 48 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 945, - "end": 946, - "loc": { - "start": { - "line": 38, - "column": 48 - }, - "end": { - "line": 38, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 951, - "end": 957, - "loc": { - "start": { - "line": 39, - "column": 4 - }, - "end": { - "line": 39, - "column": 10 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 957, - "end": 958, - "loc": { - "start": { - "line": 39, - "column": 10 - }, - "end": { - "line": 39, - "column": 11 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "POST", - "start": 959, - "end": 965, - "loc": { - "start": { - "line": 39, - "column": 12 - }, - "end": { - "line": 39, - "column": 18 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 965, - "end": 966, - "loc": { - "start": { - "line": 39, - "column": 18 - }, - "end": { - "line": 39, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 971, - "end": 975, - "loc": { - "start": { - "line": 40, - "column": 4 - }, - "end": { - "line": 40, - "column": 8 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 975, - "end": 976, - "loc": { - "start": { - "line": 40, - "column": 8 - }, - "end": { - "line": 40, - "column": 9 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/enumeration_options", - "start": 977, - "end": 999, - "loc": { - "start": { - "line": 40, - "column": 10 - }, - "end": { - "line": 40, - "column": 32 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 999, - "end": 1000, - "loc": { - "start": { - "line": 40, - "column": 32 - }, - "end": { - "line": 40, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 1005, - "end": 1018, - "loc": { - "start": { - "line": 41, - "column": 4 - }, - "end": { - "line": 41, - "column": 17 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1018, - "end": 1019, - "loc": { - "start": { - "line": 41, - "column": 17 - }, - "end": { - "line": 41, - "column": 18 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1020, - "end": 1021, - "loc": { - "start": { - "line": 41, - "column": 19 - }, - "end": { - "line": 41, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 1028, - "end": 1032, - "loc": { - "start": { - "line": 42, - "column": 6 - }, - "end": { - "line": 42, - "column": 10 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1032, - "end": 1033, - "loc": { - "start": { - "line": 42, - "column": 10 - }, - "end": { - "line": 42, - "column": 11 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 1034, - "end": 1042, - "loc": { - "start": { - "line": 42, - "column": 12 - }, - "end": { - "line": 42, - "column": 20 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1042, - "end": 1043, - "loc": { - "start": { - "line": 42, - "column": 20 - }, - "end": { - "line": 42, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 1050, - "end": 1055, - "loc": { - "start": { - "line": 43, - "column": 6 - }, - "end": { - "line": 43, - "column": 11 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1055, - "end": 1056, - "loc": { - "start": { - "line": 43, - "column": 11 - }, - "end": { - "line": 43, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "obj", - "start": 1057, - "end": 1060, - "loc": { - "start": { - "line": 43, - "column": 13 - }, - "end": { - "line": 43, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1060, - "end": 1061, - "loc": { - "start": { - "line": 43, - "column": 16 - }, - "end": { - "line": 43, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 1061, - "end": 1066, - "loc": { - "start": { - "line": 43, - "column": 17 - }, - "end": { - "line": 43, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1066, - "end": 1067, - "loc": { - "start": { - "line": 43, - "column": 22 - }, - "end": { - "line": 43, - "column": 23 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1072, - "end": 1073, - "loc": { - "start": { - "line": 44, - "column": 4 - }, - "end": { - "line": 44, - "column": 5 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1073, - "end": 1074, - "loc": { - "start": { - "line": 44, - "column": 5 - }, - "end": { - "line": 44, - "column": 6 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1077, - "end": 1078, - "loc": { - "start": { - "line": 45, - "column": 2 - }, - "end": { - "line": 45, - "column": 3 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1078, - "end": 1079, - "loc": { - "start": { - "line": 45, - "column": 3 - }, - "end": { - "line": 45, - "column": 4 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1079, - "end": 1080, - "loc": { - "start": { - "line": 45, - "column": 4 - }, - "end": { - "line": 45, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 1081, - "end": 1096, - "loc": { - "start": { - "line": 45, - "column": 6 - }, - "end": { - "line": 45, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1096, - "end": 1097, - "loc": { - "start": { - "line": 45, - "column": 21 - }, - "end": { - "line": 45, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 1097, - "end": 1105, - "loc": { - "start": { - "line": 45, - "column": 22 - }, - "end": { - "line": 45, - "column": 30 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1105, - "end": 1106, - "loc": { - "start": { - "line": 45, - "column": 30 - }, - "end": { - "line": 45, - "column": 31 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1106, - "end": 1107, - "loc": { - "start": { - "line": 45, - "column": 31 - }, - "end": { - "line": 45, - "column": 32 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1107, - "end": 1108, - "loc": { - "start": { - "line": 45, - "column": 32 - }, - "end": { - "line": 45, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 1112, - "end": 1115, - "loc": { - "start": { - "line": 47, - "column": 2 - }, - "end": { - "line": 47, - "column": 5 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1115, - "end": 1116, - "loc": { - "start": { - "line": 47, - "column": 5 - }, - "end": { - "line": 47, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 1116, - "end": 1118, - "loc": { - "start": { - "line": 47, - "column": 6 - }, - "end": { - "line": 47, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1118, - "end": 1119, - "loc": { - "start": { - "line": 47, - "column": 8 - }, - "end": { - "line": 47, - "column": 9 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 1119, - "end": 1126, - "loc": { - "start": { - "line": 47, - "column": 9 - }, - "end": { - "line": 47, - "column": 16 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1126, - "end": 1127, - "loc": { - "start": { - "line": 47, - "column": 16 - }, - "end": { - "line": 47, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 1128, - "end": 1140, - "loc": { - "start": { - "line": 47, - "column": 18 - }, - "end": { - "line": 47, - "column": 30 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1140, - "end": 1141, - "loc": { - "start": { - "line": 47, - "column": 30 - }, - "end": { - "line": 47, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 1141, - "end": 1149, - "loc": { - "start": { - "line": 47, - "column": 31 - }, - "end": { - "line": 47, - "column": 39 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1149, - "end": 1150, - "loc": { - "start": { - "line": 47, - "column": 39 - }, - "end": { - "line": 47, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1150, - "end": 1151, - "loc": { - "start": { - "line": 47, - "column": 40 - }, - "end": { - "line": 47, - "column": 41 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1151, - "end": 1152, - "loc": { - "start": { - "line": 47, - "column": 41 - }, - "end": { - "line": 47, - "column": 42 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 1155, - "end": 1158, - "loc": { - "start": { - "line": 48, - "column": 2 - }, - "end": { - "line": 48, - "column": 5 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1158, - "end": 1159, - "loc": { - "start": { - "line": 48, - "column": 5 - }, - "end": { - "line": 48, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "write", - "start": 1159, - "end": 1164, - "loc": { - "start": { - "line": 48, - "column": 6 - }, - "end": { - "line": 48, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1164, - "end": 1165, - "loc": { - "start": { - "line": 48, - "column": 11 - }, - "end": { - "line": 48, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSON", - "start": 1165, - "end": 1169, - "loc": { - "start": { - "line": 48, - "column": 12 - }, - "end": { - "line": 48, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1169, - "end": 1170, - "loc": { - "start": { - "line": 48, - "column": 16 - }, - "end": { - "line": 48, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "stringify", - "start": 1170, - "end": 1179, - "loc": { - "start": { - "line": 48, - "column": 17 - }, - "end": { - "line": 48, - "column": 26 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1179, - "end": 1180, - "loc": { - "start": { - "line": 48, - "column": 26 - }, - "end": { - "line": 48, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "obj", - "start": 1180, - "end": 1183, - "loc": { - "start": { - "line": 48, - "column": 27 - }, - "end": { - "line": 48, - "column": 30 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1183, - "end": 1184, - "loc": { - "start": { - "line": 48, - "column": 30 - }, - "end": { - "line": 48, - "column": 31 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1184, - "end": 1185, - "loc": { - "start": { - "line": 48, - "column": 31 - }, - "end": { - "line": 48, - "column": 32 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1185, - "end": 1186, - "loc": { - "start": { - "line": 48, - "column": 32 - }, - "end": { - "line": 48, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 1189, - "end": 1192, - "loc": { - "start": { - "line": 49, - "column": 2 - }, - "end": { - "line": 49, - "column": 5 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1192, - "end": 1193, - "loc": { - "start": { - "line": 49, - "column": 5 - }, - "end": { - "line": 49, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 1193, - "end": 1196, - "loc": { - "start": { - "line": 49, - "column": 6 - }, - "end": { - "line": 49, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1196, - "end": 1197, - "loc": { - "start": { - "line": 49, - "column": 9 - }, - "end": { - "line": 49, - "column": 10 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1197, - "end": 1198, - "loc": { - "start": { - "line": 49, - "column": 10 - }, - "end": { - "line": 49, - "column": 11 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1198, - "end": 1199, - "loc": { - "start": { - "line": 49, - "column": 11 - }, - "end": { - "line": 49, - "column": 12 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1200, - "end": 1201, - "loc": { - "start": { - "line": 50, - "column": 0 - }, - "end": { - "line": 50, - "column": 1 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1201, - "end": 1202, - "loc": { - "start": { - "line": 50, - "column": 1 - }, - "end": { - "line": 50, - "column": 2 - } - } - }, - { - "type": { - "label": "eof", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1203, - "end": 1203, - "loc": { - "start": { - "line": 51, - "column": 0 - }, - "end": { - "line": 51, - "column": 0 - } - } - } - ] -} \ No newline at end of file diff --git a/docs/ast/source/enumerations/index.js.json b/docs/ast/source/enumerations/index.js.json deleted file mode 100644 index 08a892af..00000000 --- a/docs/ast/source/enumerations/index.js.json +++ /dev/null @@ -1,12992 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 1751, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 74, - "column": 0 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 1751, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 74, - "column": 0 - } - }, - "sourceType": "module", - "body": [ - { - "type": "ImportDeclaration", - "start": 14, - "end": 40, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 26 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - } - }, - "local": { - "type": "Identifier", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - }, - "identifierName": "https" - }, - "name": "https" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 18 - }, - "end": { - "line": 2, - "column": 25 - } - }, - "extra": { - "rawValue": "https", - "raw": "'https'" - }, - "value": "https" - } - }, - { - "type": "ImportDeclaration", - "start": 41, - "end": 127, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 7, - "column": 19 - } - }, - "specifiers": [ - { - "type": "ImportSpecifier", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - } - }, - "imported": { - "type": "Identifier", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "local": { - "type": "Identifier", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - } - }, - { - "type": "ImportSpecifier", - "start": 71, - "end": 83, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 14 - } - }, - "imported": { - "type": "Identifier", - "start": 71, - "end": 83, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 14 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "local": { - "type": "Identifier", - "start": 71, - "end": 83, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 14 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - } - }, - { - "type": "ImportSpecifier", - "start": 87, - "end": 106, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 21 - } - }, - "imported": { - "type": "Identifier", - "start": 87, - "end": 106, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 21 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "local": { - "type": "Identifier", - "start": 87, - "end": 106, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 21 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 115, - "end": 126, - "loc": { - "start": { - "line": 7, - "column": 7 - }, - "end": { - "line": 7, - "column": 18 - } - }, - "extra": { - "rawValue": "../common", - "raw": "'../common'" - }, - "value": "../common" - }, - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Enumeration methods\n ", - "start": 130, - "end": 160, - "loc": { - "start": { - "line": 10, - "column": 0 - }, - "end": { - "line": 12, - "column": 3 - } - } - } - ] - }, - { - "type": "Identifier", - "start": 161, - "end": 1720, - "loc": { - "start": { - "line": 13, - "column": 0 - }, - "end": { - "line": 71, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 167, - "end": 179, - "loc": { - "start": { - "line": 13, - "column": 6 - }, - "end": { - "line": 13, - "column": 18 - }, - "identifierName": "Enumerations" - }, - "name": "Enumerations", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 180, - "end": 1720, - "loc": { - "start": { - "line": 13, - "column": 19 - }, - "end": { - "line": 71, - "column": 1 - } - }, - "body": [ - { - "type": "ClassMethod", - "start": 344, - "end": 930, - "loc": { - "start": { - "line": 19, - "column": 2 - }, - "end": { - "line": 41, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 351, - "end": 359, - "loc": { - "start": { - "line": 19, - "column": 9 - }, - "end": { - "line": 19, - "column": 17 - }, - "identifierName": "addField" - }, - "name": "addField" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 361, - "end": 365, - "loc": { - "start": { - "line": 19, - "column": 19 - }, - "end": { - "line": 19, - "column": 23 - }, - "identifierName": "data" - }, - "name": "data" - }, - { - "type": "Identifier", - "start": 367, - "end": 375, - "loc": { - "start": { - "line": 19, - "column": 25 - }, - "end": { - "line": 19, - "column": 33 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 377, - "end": 930, - "loc": { - "start": { - "line": 19, - "column": 35 - }, - "end": { - "line": 41, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 383, - "end": 406, - "loc": { - "start": { - "line": 20, - "column": 4 - }, - "end": { - "line": 20, - "column": 27 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 389, - "end": 405, - "loc": { - "start": { - "line": 20, - "column": 10 - }, - "end": { - "line": 20, - "column": 26 - } - }, - "id": { - "type": "ObjectPattern", - "start": 389, - "end": 398, - "loc": { - "start": { - "line": 20, - "column": 10 - }, - "end": { - "line": 20, - "column": 19 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 391, - "end": 396, - "loc": { - "start": { - "line": 20, - "column": 12 - }, - "end": { - "line": 20, - "column": 17 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 391, - "end": 396, - "loc": { - "start": { - "line": 20, - "column": 12 - }, - "end": { - "line": 20, - "column": 17 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 391, - "end": 396, - "loc": { - "start": { - "line": 20, - "column": 12 - }, - "end": { - "line": 20, - "column": 17 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 401, - "end": 405, - "loc": { - "start": { - "line": 20, - "column": 22 - }, - "end": { - "line": 20, - "column": 26 - }, - "identifierName": "data" - }, - "name": "data" - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 411, - "end": 429, - "loc": { - "start": { - "line": 21, - "column": 4 - }, - "end": { - "line": 21, - "column": 22 - } - }, - "expression": { - "type": "UnaryExpression", - "start": 411, - "end": 428, - "loc": { - "start": { - "line": 21, - "column": 4 - }, - "end": { - "line": 21, - "column": 21 - } - }, - "operator": "delete", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 418, - "end": 428, - "loc": { - "start": { - "line": 21, - "column": 11 - }, - "end": { - "line": 21, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 418, - "end": 422, - "loc": { - "start": { - "line": 21, - "column": 11 - }, - "end": { - "line": 21, - "column": 15 - }, - "identifierName": "data" - }, - "name": "data" - }, - "property": { - "type": "Identifier", - "start": 423, - "end": 428, - "loc": { - "start": { - "line": 21, - "column": 16 - }, - "end": { - "line": 21, - "column": 21 - }, - "identifierName": "token" - }, - "name": "token" - }, - "computed": false - }, - "extra": { - "parenthesizedArgument": false - } - } - }, - { - "type": "VariableDeclaration", - "start": 435, - "end": 473, - "loc": { - "start": { - "line": 23, - "column": 4 - }, - "end": { - "line": 23, - "column": 42 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 441, - "end": 472, - "loc": { - "start": { - "line": 23, - "column": 10 - }, - "end": { - "line": 23, - "column": 41 - } - }, - "id": { - "type": "Identifier", - "start": 441, - "end": 449, - "loc": { - "start": { - "line": 23, - "column": 10 - }, - "end": { - "line": 23, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 452, - "end": 472, - "loc": { - "start": { - "line": 23, - "column": 21 - }, - "end": { - "line": 23, - "column": 41 - } - }, - "callee": { - "type": "MemberExpression", - "start": 452, - "end": 466, - "loc": { - "start": { - "line": 23, - "column": 21 - }, - "end": { - "line": 23, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 452, - "end": 456, - "loc": { - "start": { - "line": 23, - "column": 21 - }, - "end": { - "line": 23, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 457, - "end": 466, - "loc": { - "start": { - "line": 23, - "column": 26 - }, - "end": { - "line": 23, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 467, - "end": 471, - "loc": { - "start": { - "line": 23, - "column": 36 - }, - "end": { - "line": 23, - "column": 40 - }, - "identifierName": "data" - }, - "name": "data" - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 478, - "end": 885, - "loc": { - "start": { - "line": 24, - "column": 4 - }, - "end": { - "line": 37, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 484, - "end": 884, - "loc": { - "start": { - "line": 24, - "column": 10 - }, - "end": { - "line": 37, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 484, - "end": 487, - "loc": { - "start": { - "line": 24, - "column": 10 - }, - "end": { - "line": 24, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 490, - "end": 884, - "loc": { - "start": { - "line": 24, - "column": 16 - }, - "end": { - "line": 37, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 490, - "end": 851, - "loc": { - "start": { - "line": 24, - "column": 16 - }, - "end": { - "line": 37, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 490, - "end": 841, - "loc": { - "start": { - "line": 24, - "column": 16 - }, - "end": { - "line": 36, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 490, - "end": 510, - "loc": { - "start": { - "line": 24, - "column": 16 - }, - "end": { - "line": 25, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 490, - "end": 495, - "loc": { - "start": { - "line": 24, - "column": 16 - }, - "end": { - "line": 24, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 503, - "end": 510, - "loc": { - "start": { - "line": 25, - "column": 7 - }, - "end": { - "line": 25, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 511, - "end": 813, - "loc": { - "start": { - "line": 25, - "column": 15 - }, - "end": { - "line": 36, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 511, - "end": 530, - "loc": { - "start": { - "line": 25, - "column": 15 - }, - "end": { - "line": 25, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 531, - "end": 812, - "loc": { - "start": { - "line": 25, - "column": 35 - }, - "end": { - "line": 36, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 541, - "end": 555, - "loc": { - "start": { - "line": 26, - "column": 8 - }, - "end": { - "line": 26, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 541, - "end": 547, - "loc": { - "start": { - "line": 26, - "column": 8 - }, - "end": { - "line": 26, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 549, - "end": 555, - "loc": { - "start": { - "line": 26, - "column": 16 - }, - "end": { - "line": 26, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 565, - "end": 591, - "loc": { - "start": { - "line": 27, - "column": 8 - }, - "end": { - "line": 27, - "column": 34 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 565, - "end": 569, - "loc": { - "start": { - "line": 27, - "column": 8 - }, - "end": { - "line": 27, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 571, - "end": 591, - "loc": { - "start": { - "line": 27, - "column": 14 - }, - "end": { - "line": 27, - "column": 34 - } - }, - "extra": { - "rawValue": "/enumeration_field", - "raw": "'/enumeration_field'" - }, - "value": "/enumeration_field" - } - }, - { - "type": "ObjectProperty", - "start": 601, - "end": 670, - "loc": { - "start": { - "line": 28, - "column": 8 - }, - "end": { - "line": 31, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 601, - "end": 614, - "loc": { - "start": { - "line": 28, - "column": 8 - }, - "end": { - "line": 28, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 616, - "end": 670, - "loc": { - "start": { - "line": 28, - "column": 23 - }, - "end": { - "line": 31, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 628, - "end": 642, - "loc": { - "start": { - "line": 29, - "column": 10 - }, - "end": { - "line": 29, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 628, - "end": 632, - "loc": { - "start": { - "line": 29, - "column": 10 - }, - "end": { - "line": 29, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 634, - "end": 642, - "loc": { - "start": { - "line": 29, - "column": 16 - }, - "end": { - "line": 29, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 654, - "end": 659, - "loc": { - "start": { - "line": 30, - "column": 10 - }, - "end": { - "line": 30, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 654, - "end": 659, - "loc": { - "start": { - "line": 30, - "column": 10 - }, - "end": { - "line": 30, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 654, - "end": 659, - "loc": { - "start": { - "line": 30, - "column": 10 - }, - "end": { - "line": 30, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 680, - "end": 803, - "loc": { - "start": { - "line": 32, - "column": 8 - }, - "end": { - "line": 35, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 680, - "end": 687, - "loc": { - "start": { - "line": 32, - "column": 8 - }, - "end": { - "line": 32, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 689, - "end": 803, - "loc": { - "start": { - "line": 32, - "column": 17 - }, - "end": { - "line": 35, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 701, - "end": 735, - "loc": { - "start": { - "line": 33, - "column": 10 - }, - "end": { - "line": 33, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 701, - "end": 715, - "loc": { - "start": { - "line": 33, - "column": 10 - }, - "end": { - "line": 33, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 717, - "end": 735, - "loc": { - "start": { - "line": 33, - "column": 26 - }, - "end": { - "line": 33, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 747, - "end": 792, - "loc": { - "start": { - "line": 34, - "column": 10 - }, - "end": { - "line": 34, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 747, - "end": 763, - "loc": { - "start": { - "line": 34, - "column": 10 - }, - "end": { - "line": 34, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 765, - "end": 792, - "loc": { - "start": { - "line": 34, - "column": 28 - }, - "end": { - "line": 34, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 765, - "end": 782, - "loc": { - "start": { - "line": 34, - "column": 28 - }, - "end": { - "line": 34, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 765, - "end": 771, - "loc": { - "start": { - "line": 34, - "column": 28 - }, - "end": { - "line": 34, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 772, - "end": 782, - "loc": { - "start": { - "line": 34, - "column": 35 - }, - "end": { - "line": 34, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 783, - "end": 791, - "loc": { - "start": { - "line": 34, - "column": 46 - }, - "end": { - "line": 34, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 815, - "end": 840, - "loc": { - "start": { - "line": 36, - "column": 10 - }, - "end": { - "line": 36, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 815, - "end": 830, - "loc": { - "start": { - "line": 36, - "column": 10 - }, - "end": { - "line": 36, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 831, - "end": 839, - "loc": { - "start": { - "line": 36, - "column": 26 - }, - "end": { - "line": 36, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 849, - "end": 851, - "loc": { - "start": { - "line": 37, - "column": 7 - }, - "end": { - "line": 37, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 852, - "end": 859, - "loc": { - "start": { - "line": 37, - "column": 10 - }, - "end": { - "line": 37, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 861, - "end": 883, - "loc": { - "start": { - "line": 37, - "column": 19 - }, - "end": { - "line": 37, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 861, - "end": 873, - "loc": { - "start": { - "line": 37, - "column": 19 - }, - "end": { - "line": 37, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 874, - "end": 882, - "loc": { - "start": { - "line": 37, - "column": 32 - }, - "end": { - "line": 37, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 891, - "end": 911, - "loc": { - "start": { - "line": 39, - "column": 4 - }, - "end": { - "line": 39, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 891, - "end": 910, - "loc": { - "start": { - "line": 39, - "column": 4 - }, - "end": { - "line": 39, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 891, - "end": 900, - "loc": { - "start": { - "line": 39, - "column": 4 - }, - "end": { - "line": 39, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 891, - "end": 894, - "loc": { - "start": { - "line": 39, - "column": 4 - }, - "end": { - "line": 39, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 895, - "end": 900, - "loc": { - "start": { - "line": 39, - "column": 8 - }, - "end": { - "line": 39, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 901, - "end": 909, - "loc": { - "start": { - "line": 39, - "column": 14 - }, - "end": { - "line": 39, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 916, - "end": 926, - "loc": { - "start": { - "line": 40, - "column": 4 - }, - "end": { - "line": 40, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 916, - "end": 925, - "loc": { - "start": { - "line": 40, - "column": 4 - }, - "end": { - "line": 40, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 916, - "end": 923, - "loc": { - "start": { - "line": 40, - "column": 4 - }, - "end": { - "line": 40, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 916, - "end": 919, - "loc": { - "start": { - "line": 40, - "column": 4 - }, - "end": { - "line": 40, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 920, - "end": 923, - "loc": { - "start": { - "line": 40, - "column": 8 - }, - "end": { - "line": 40, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "\n * add an enumeration field (drop down) to a document.\n * NOTE: must be used with POST /enumeration_options () or the API will not recognize it\n ", - "start": 185, - "end": 341, - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 18, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "\n * add enumeration options to the field that was created using the REST call above.\n * NOTE: must be used with POST /enumeration_field () or the API will not recognize the field\n ", - "start": 934, - "end": 1124, - "loc": { - "start": { - "line": 43, - "column": 2 - }, - "end": { - "line": 46, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 1127, - "end": 1717, - "loc": { - "start": { - "line": 47, - "column": 2 - }, - "end": { - "line": 69, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1134, - "end": 1144, - "loc": { - "start": { - "line": 47, - "column": 9 - }, - "end": { - "line": 47, - "column": 19 - }, - "identifierName": "addOptions" - }, - "name": "addOptions" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1146, - "end": 1150, - "loc": { - "start": { - "line": 47, - "column": 21 - }, - "end": { - "line": 47, - "column": 25 - }, - "identifierName": "data" - }, - "name": "data" - }, - { - "type": "Identifier", - "start": 1152, - "end": 1160, - "loc": { - "start": { - "line": 47, - "column": 27 - }, - "end": { - "line": 47, - "column": 35 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 1162, - "end": 1717, - "loc": { - "start": { - "line": 47, - "column": 37 - }, - "end": { - "line": 69, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 1168, - "end": 1191, - "loc": { - "start": { - "line": 48, - "column": 4 - }, - "end": { - "line": 48, - "column": 27 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1174, - "end": 1190, - "loc": { - "start": { - "line": 48, - "column": 10 - }, - "end": { - "line": 48, - "column": 26 - } - }, - "id": { - "type": "ObjectPattern", - "start": 1174, - "end": 1183, - "loc": { - "start": { - "line": 48, - "column": 10 - }, - "end": { - "line": 48, - "column": 19 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1176, - "end": 1181, - "loc": { - "start": { - "line": 48, - "column": 12 - }, - "end": { - "line": 48, - "column": 17 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1176, - "end": 1181, - "loc": { - "start": { - "line": 48, - "column": 12 - }, - "end": { - "line": 48, - "column": 17 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 1176, - "end": 1181, - "loc": { - "start": { - "line": 48, - "column": 12 - }, - "end": { - "line": 48, - "column": 17 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 1186, - "end": 1190, - "loc": { - "start": { - "line": 48, - "column": 22 - }, - "end": { - "line": 48, - "column": 26 - }, - "identifierName": "data" - }, - "name": "data" - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 1196, - "end": 1214, - "loc": { - "start": { - "line": 49, - "column": 4 - }, - "end": { - "line": 49, - "column": 22 - } - }, - "expression": { - "type": "UnaryExpression", - "start": 1196, - "end": 1213, - "loc": { - "start": { - "line": 49, - "column": 4 - }, - "end": { - "line": 49, - "column": 21 - } - }, - "operator": "delete", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 1203, - "end": 1213, - "loc": { - "start": { - "line": 49, - "column": 11 - }, - "end": { - "line": 49, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 1203, - "end": 1207, - "loc": { - "start": { - "line": 49, - "column": 11 - }, - "end": { - "line": 49, - "column": 15 - }, - "identifierName": "data" - }, - "name": "data" - }, - "property": { - "type": "Identifier", - "start": 1208, - "end": 1213, - "loc": { - "start": { - "line": 49, - "column": 16 - }, - "end": { - "line": 49, - "column": 21 - }, - "identifierName": "token" - }, - "name": "token" - }, - "computed": false - }, - "extra": { - "parenthesizedArgument": false - } - } - }, - { - "type": "VariableDeclaration", - "start": 1220, - "end": 1258, - "loc": { - "start": { - "line": 51, - "column": 4 - }, - "end": { - "line": 51, - "column": 42 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1226, - "end": 1257, - "loc": { - "start": { - "line": 51, - "column": 10 - }, - "end": { - "line": 51, - "column": 41 - } - }, - "id": { - "type": "Identifier", - "start": 1226, - "end": 1234, - "loc": { - "start": { - "line": 51, - "column": 10 - }, - "end": { - "line": 51, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 1237, - "end": 1257, - "loc": { - "start": { - "line": 51, - "column": 21 - }, - "end": { - "line": 51, - "column": 41 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1237, - "end": 1251, - "loc": { - "start": { - "line": 51, - "column": 21 - }, - "end": { - "line": 51, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 1237, - "end": 1241, - "loc": { - "start": { - "line": 51, - "column": 21 - }, - "end": { - "line": 51, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 1242, - "end": 1251, - "loc": { - "start": { - "line": 51, - "column": 26 - }, - "end": { - "line": 51, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1252, - "end": 1256, - "loc": { - "start": { - "line": 51, - "column": 36 - }, - "end": { - "line": 51, - "column": 40 - }, - "identifierName": "data" - }, - "name": "data" - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 1263, - "end": 1672, - "loc": { - "start": { - "line": 52, - "column": 4 - }, - "end": { - "line": 65, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1269, - "end": 1671, - "loc": { - "start": { - "line": 52, - "column": 10 - }, - "end": { - "line": 65, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 1269, - "end": 1272, - "loc": { - "start": { - "line": 52, - "column": 10 - }, - "end": { - "line": 52, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 1275, - "end": 1671, - "loc": { - "start": { - "line": 52, - "column": 16 - }, - "end": { - "line": 65, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1275, - "end": 1638, - "loc": { - "start": { - "line": 52, - "column": 16 - }, - "end": { - "line": 65, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 1275, - "end": 1628, - "loc": { - "start": { - "line": 52, - "column": 16 - }, - "end": { - "line": 64, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1275, - "end": 1295, - "loc": { - "start": { - "line": 52, - "column": 16 - }, - "end": { - "line": 53, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 1275, - "end": 1280, - "loc": { - "start": { - "line": 52, - "column": 16 - }, - "end": { - "line": 52, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 1288, - "end": 1295, - "loc": { - "start": { - "line": 53, - "column": 7 - }, - "end": { - "line": 53, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 1296, - "end": 1600, - "loc": { - "start": { - "line": 53, - "column": 15 - }, - "end": { - "line": 64, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 1296, - "end": 1315, - "loc": { - "start": { - "line": 53, - "column": 15 - }, - "end": { - "line": 53, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 1316, - "end": 1599, - "loc": { - "start": { - "line": 53, - "column": 35 - }, - "end": { - "line": 64, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1326, - "end": 1340, - "loc": { - "start": { - "line": 54, - "column": 8 - }, - "end": { - "line": 54, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1326, - "end": 1332, - "loc": { - "start": { - "line": 54, - "column": 8 - }, - "end": { - "line": 54, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 1334, - "end": 1340, - "loc": { - "start": { - "line": 54, - "column": 16 - }, - "end": { - "line": 54, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 1350, - "end": 1378, - "loc": { - "start": { - "line": 55, - "column": 8 - }, - "end": { - "line": 55, - "column": 36 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1350, - "end": 1354, - "loc": { - "start": { - "line": 55, - "column": 8 - }, - "end": { - "line": 55, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 1356, - "end": 1378, - "loc": { - "start": { - "line": 55, - "column": 14 - }, - "end": { - "line": 55, - "column": 36 - } - }, - "extra": { - "rawValue": "/enumeration_options", - "raw": "'/enumeration_options'" - }, - "value": "/enumeration_options" - } - }, - { - "type": "ObjectProperty", - "start": 1388, - "end": 1457, - "loc": { - "start": { - "line": 56, - "column": 8 - }, - "end": { - "line": 59, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1388, - "end": 1401, - "loc": { - "start": { - "line": 56, - "column": 8 - }, - "end": { - "line": 56, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 1403, - "end": 1457, - "loc": { - "start": { - "line": 56, - "column": 23 - }, - "end": { - "line": 59, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1415, - "end": 1429, - "loc": { - "start": { - "line": 57, - "column": 10 - }, - "end": { - "line": 57, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1415, - "end": 1419, - "loc": { - "start": { - "line": 57, - "column": 10 - }, - "end": { - "line": 57, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 1421, - "end": 1429, - "loc": { - "start": { - "line": 57, - "column": 16 - }, - "end": { - "line": 57, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 1441, - "end": 1446, - "loc": { - "start": { - "line": 58, - "column": 10 - }, - "end": { - "line": 58, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1441, - "end": 1446, - "loc": { - "start": { - "line": 58, - "column": 10 - }, - "end": { - "line": 58, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 1441, - "end": 1446, - "loc": { - "start": { - "line": 58, - "column": 10 - }, - "end": { - "line": 58, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 1467, - "end": 1590, - "loc": { - "start": { - "line": 60, - "column": 8 - }, - "end": { - "line": 63, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1467, - "end": 1474, - "loc": { - "start": { - "line": 60, - "column": 8 - }, - "end": { - "line": 60, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 1476, - "end": 1590, - "loc": { - "start": { - "line": 60, - "column": 17 - }, - "end": { - "line": 63, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1488, - "end": 1522, - "loc": { - "start": { - "line": 61, - "column": 10 - }, - "end": { - "line": 61, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 1488, - "end": 1502, - "loc": { - "start": { - "line": 61, - "column": 10 - }, - "end": { - "line": 61, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 1504, - "end": 1522, - "loc": { - "start": { - "line": 61, - "column": 26 - }, - "end": { - "line": 61, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 1534, - "end": 1579, - "loc": { - "start": { - "line": 62, - "column": 10 - }, - "end": { - "line": 62, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 1534, - "end": 1550, - "loc": { - "start": { - "line": 62, - "column": 10 - }, - "end": { - "line": 62, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 1552, - "end": 1579, - "loc": { - "start": { - "line": 62, - "column": 28 - }, - "end": { - "line": 62, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1552, - "end": 1569, - "loc": { - "start": { - "line": 62, - "column": 28 - }, - "end": { - "line": 62, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 1552, - "end": 1558, - "loc": { - "start": { - "line": 62, - "column": 28 - }, - "end": { - "line": 62, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 1559, - "end": 1569, - "loc": { - "start": { - "line": 62, - "column": 35 - }, - "end": { - "line": 62, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1570, - "end": 1578, - "loc": { - "start": { - "line": 62, - "column": 46 - }, - "end": { - "line": 62, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 1602, - "end": 1627, - "loc": { - "start": { - "line": 64, - "column": 10 - }, - "end": { - "line": 64, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 1602, - "end": 1617, - "loc": { - "start": { - "line": 64, - "column": 10 - }, - "end": { - "line": 64, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1618, - "end": 1626, - "loc": { - "start": { - "line": 64, - "column": 26 - }, - "end": { - "line": 64, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 1636, - "end": 1638, - "loc": { - "start": { - "line": 65, - "column": 7 - }, - "end": { - "line": 65, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 1639, - "end": 1646, - "loc": { - "start": { - "line": 65, - "column": 10 - }, - "end": { - "line": 65, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 1648, - "end": 1670, - "loc": { - "start": { - "line": 65, - "column": 19 - }, - "end": { - "line": 65, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 1648, - "end": 1660, - "loc": { - "start": { - "line": 65, - "column": 19 - }, - "end": { - "line": 65, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1661, - "end": 1669, - "loc": { - "start": { - "line": 65, - "column": 32 - }, - "end": { - "line": 65, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 1678, - "end": 1698, - "loc": { - "start": { - "line": 67, - "column": 4 - }, - "end": { - "line": 67, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 1678, - "end": 1697, - "loc": { - "start": { - "line": 67, - "column": 4 - }, - "end": { - "line": 67, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1678, - "end": 1687, - "loc": { - "start": { - "line": 67, - "column": 4 - }, - "end": { - "line": 67, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 1678, - "end": 1681, - "loc": { - "start": { - "line": 67, - "column": 4 - }, - "end": { - "line": 67, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 1682, - "end": 1687, - "loc": { - "start": { - "line": 67, - "column": 8 - }, - "end": { - "line": 67, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1688, - "end": 1696, - "loc": { - "start": { - "line": 67, - "column": 14 - }, - "end": { - "line": 67, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 1703, - "end": 1713, - "loc": { - "start": { - "line": 68, - "column": 4 - }, - "end": { - "line": 68, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 1703, - "end": 1712, - "loc": { - "start": { - "line": 68, - "column": 4 - }, - "end": { - "line": 68, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1703, - "end": 1710, - "loc": { - "start": { - "line": 68, - "column": 4 - }, - "end": { - "line": 68, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 1703, - "end": 1706, - "loc": { - "start": { - "line": 68, - "column": 4 - }, - "end": { - "line": 68, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 1707, - "end": 1710, - "loc": { - "start": { - "line": 68, - "column": 8 - }, - "end": { - "line": 68, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "\n * add enumeration options to the field that was created using the REST call above.\n * NOTE: must be used with POST /enumeration_field () or the API will not recognize the field\n ", - "start": 934, - "end": 1124, - "loc": { - "start": { - "line": 43, - "column": 2 - }, - "end": { - "line": 46, - "column": 5 - } - } - } - ] - } - ] - }, - "leadingComments": [], - "name": "_", - "trailingComments": [] - }, - { - "type": "Identifier", - "start": 1722, - "end": 1750, - "loc": { - "start": { - "line": 73, - "column": 0 - }, - "end": { - "line": 73, - "column": 28 - } - }, - "declaration": { - "type": "Identifier", - "start": 1737, - "end": 1749, - "loc": { - "start": { - "line": 73, - "column": 15 - }, - "end": { - "line": 73, - "column": 27 - }, - "identifierName": "Enumerations" - }, - "name": "Enumerations" - }, - "name": "_", - "leadingComments": [], - "trailingComments": [] - }, - { - "type": "ExportDefaultDeclaration", - "start": 1722, - "end": 1750, - "loc": { - "start": { - "line": 73, - "column": 0 - }, - "end": { - "line": 73, - "column": 28 - } - }, - "declaration": { - "type": "ClassDeclaration", - "start": 161, - "end": 1720, - "loc": { - "start": { - "line": 13, - "column": 0 - }, - "end": { - "line": 71, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 167, - "end": 179, - "loc": { - "start": { - "line": 13, - "column": 6 - }, - "end": { - "line": 13, - "column": 18 - }, - "identifierName": "Enumerations" - }, - "name": "Enumerations", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 180, - "end": 1720, - "loc": { - "start": { - "line": 13, - "column": 19 - }, - "end": { - "line": 71, - "column": 1 - } - }, - "body": [ - { - "type": "ClassMethod", - "start": 344, - "end": 930, - "loc": { - "start": { - "line": 19, - "column": 2 - }, - "end": { - "line": 41, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 351, - "end": 359, - "loc": { - "start": { - "line": 19, - "column": 9 - }, - "end": { - "line": 19, - "column": 17 - }, - "identifierName": "addField" - }, - "name": "addField" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 361, - "end": 365, - "loc": { - "start": { - "line": 19, - "column": 19 - }, - "end": { - "line": 19, - "column": 23 - }, - "identifierName": "data" - }, - "name": "data" - }, - { - "type": "Identifier", - "start": 367, - "end": 375, - "loc": { - "start": { - "line": 19, - "column": 25 - }, - "end": { - "line": 19, - "column": 33 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 377, - "end": 930, - "loc": { - "start": { - "line": 19, - "column": 35 - }, - "end": { - "line": 41, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 383, - "end": 406, - "loc": { - "start": { - "line": 20, - "column": 4 - }, - "end": { - "line": 20, - "column": 27 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 389, - "end": 405, - "loc": { - "start": { - "line": 20, - "column": 10 - }, - "end": { - "line": 20, - "column": 26 - } - }, - "id": { - "type": "ObjectPattern", - "start": 389, - "end": 398, - "loc": { - "start": { - "line": 20, - "column": 10 - }, - "end": { - "line": 20, - "column": 19 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 391, - "end": 396, - "loc": { - "start": { - "line": 20, - "column": 12 - }, - "end": { - "line": 20, - "column": 17 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 391, - "end": 396, - "loc": { - "start": { - "line": 20, - "column": 12 - }, - "end": { - "line": 20, - "column": 17 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 391, - "end": 396, - "loc": { - "start": { - "line": 20, - "column": 12 - }, - "end": { - "line": 20, - "column": 17 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 401, - "end": 405, - "loc": { - "start": { - "line": 20, - "column": 22 - }, - "end": { - "line": 20, - "column": 26 - }, - "identifierName": "data" - }, - "name": "data" - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 411, - "end": 429, - "loc": { - "start": { - "line": 21, - "column": 4 - }, - "end": { - "line": 21, - "column": 22 - } - }, - "expression": { - "type": "UnaryExpression", - "start": 411, - "end": 428, - "loc": { - "start": { - "line": 21, - "column": 4 - }, - "end": { - "line": 21, - "column": 21 - } - }, - "operator": "delete", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 418, - "end": 428, - "loc": { - "start": { - "line": 21, - "column": 11 - }, - "end": { - "line": 21, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 418, - "end": 422, - "loc": { - "start": { - "line": 21, - "column": 11 - }, - "end": { - "line": 21, - "column": 15 - }, - "identifierName": "data" - }, - "name": "data" - }, - "property": { - "type": "Identifier", - "start": 423, - "end": 428, - "loc": { - "start": { - "line": 21, - "column": 16 - }, - "end": { - "line": 21, - "column": 21 - }, - "identifierName": "token" - }, - "name": "token" - }, - "computed": false - }, - "extra": { - "parenthesizedArgument": false - } - } - }, - { - "type": "VariableDeclaration", - "start": 435, - "end": 473, - "loc": { - "start": { - "line": 23, - "column": 4 - }, - "end": { - "line": 23, - "column": 42 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 441, - "end": 472, - "loc": { - "start": { - "line": 23, - "column": 10 - }, - "end": { - "line": 23, - "column": 41 - } - }, - "id": { - "type": "Identifier", - "start": 441, - "end": 449, - "loc": { - "start": { - "line": 23, - "column": 10 - }, - "end": { - "line": 23, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 452, - "end": 472, - "loc": { - "start": { - "line": 23, - "column": 21 - }, - "end": { - "line": 23, - "column": 41 - } - }, - "callee": { - "type": "MemberExpression", - "start": 452, - "end": 466, - "loc": { - "start": { - "line": 23, - "column": 21 - }, - "end": { - "line": 23, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 452, - "end": 456, - "loc": { - "start": { - "line": 23, - "column": 21 - }, - "end": { - "line": 23, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 457, - "end": 466, - "loc": { - "start": { - "line": 23, - "column": 26 - }, - "end": { - "line": 23, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 467, - "end": 471, - "loc": { - "start": { - "line": 23, - "column": 36 - }, - "end": { - "line": 23, - "column": 40 - }, - "identifierName": "data" - }, - "name": "data" - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 478, - "end": 885, - "loc": { - "start": { - "line": 24, - "column": 4 - }, - "end": { - "line": 37, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 484, - "end": 884, - "loc": { - "start": { - "line": 24, - "column": 10 - }, - "end": { - "line": 37, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 484, - "end": 487, - "loc": { - "start": { - "line": 24, - "column": 10 - }, - "end": { - "line": 24, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 490, - "end": 884, - "loc": { - "start": { - "line": 24, - "column": 16 - }, - "end": { - "line": 37, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 490, - "end": 851, - "loc": { - "start": { - "line": 24, - "column": 16 - }, - "end": { - "line": 37, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 490, - "end": 841, - "loc": { - "start": { - "line": 24, - "column": 16 - }, - "end": { - "line": 36, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 490, - "end": 510, - "loc": { - "start": { - "line": 24, - "column": 16 - }, - "end": { - "line": 25, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 490, - "end": 495, - "loc": { - "start": { - "line": 24, - "column": 16 - }, - "end": { - "line": 24, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 503, - "end": 510, - "loc": { - "start": { - "line": 25, - "column": 7 - }, - "end": { - "line": 25, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 511, - "end": 813, - "loc": { - "start": { - "line": 25, - "column": 15 - }, - "end": { - "line": 36, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 511, - "end": 530, - "loc": { - "start": { - "line": 25, - "column": 15 - }, - "end": { - "line": 25, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 531, - "end": 812, - "loc": { - "start": { - "line": 25, - "column": 35 - }, - "end": { - "line": 36, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 541, - "end": 555, - "loc": { - "start": { - "line": 26, - "column": 8 - }, - "end": { - "line": 26, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 541, - "end": 547, - "loc": { - "start": { - "line": 26, - "column": 8 - }, - "end": { - "line": 26, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 549, - "end": 555, - "loc": { - "start": { - "line": 26, - "column": 16 - }, - "end": { - "line": 26, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 565, - "end": 591, - "loc": { - "start": { - "line": 27, - "column": 8 - }, - "end": { - "line": 27, - "column": 34 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 565, - "end": 569, - "loc": { - "start": { - "line": 27, - "column": 8 - }, - "end": { - "line": 27, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 571, - "end": 591, - "loc": { - "start": { - "line": 27, - "column": 14 - }, - "end": { - "line": 27, - "column": 34 - } - }, - "extra": { - "rawValue": "/enumeration_field", - "raw": "'/enumeration_field'" - }, - "value": "/enumeration_field" - } - }, - { - "type": "ObjectProperty", - "start": 601, - "end": 670, - "loc": { - "start": { - "line": 28, - "column": 8 - }, - "end": { - "line": 31, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 601, - "end": 614, - "loc": { - "start": { - "line": 28, - "column": 8 - }, - "end": { - "line": 28, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 616, - "end": 670, - "loc": { - "start": { - "line": 28, - "column": 23 - }, - "end": { - "line": 31, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 628, - "end": 642, - "loc": { - "start": { - "line": 29, - "column": 10 - }, - "end": { - "line": 29, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 628, - "end": 632, - "loc": { - "start": { - "line": 29, - "column": 10 - }, - "end": { - "line": 29, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 634, - "end": 642, - "loc": { - "start": { - "line": 29, - "column": 16 - }, - "end": { - "line": 29, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 654, - "end": 659, - "loc": { - "start": { - "line": 30, - "column": 10 - }, - "end": { - "line": 30, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 654, - "end": 659, - "loc": { - "start": { - "line": 30, - "column": 10 - }, - "end": { - "line": 30, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 654, - "end": 659, - "loc": { - "start": { - "line": 30, - "column": 10 - }, - "end": { - "line": 30, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 680, - "end": 803, - "loc": { - "start": { - "line": 32, - "column": 8 - }, - "end": { - "line": 35, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 680, - "end": 687, - "loc": { - "start": { - "line": 32, - "column": 8 - }, - "end": { - "line": 32, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 689, - "end": 803, - "loc": { - "start": { - "line": 32, - "column": 17 - }, - "end": { - "line": 35, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 701, - "end": 735, - "loc": { - "start": { - "line": 33, - "column": 10 - }, - "end": { - "line": 33, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 701, - "end": 715, - "loc": { - "start": { - "line": 33, - "column": 10 - }, - "end": { - "line": 33, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 717, - "end": 735, - "loc": { - "start": { - "line": 33, - "column": 26 - }, - "end": { - "line": 33, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 747, - "end": 792, - "loc": { - "start": { - "line": 34, - "column": 10 - }, - "end": { - "line": 34, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 747, - "end": 763, - "loc": { - "start": { - "line": 34, - "column": 10 - }, - "end": { - "line": 34, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 765, - "end": 792, - "loc": { - "start": { - "line": 34, - "column": 28 - }, - "end": { - "line": 34, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 765, - "end": 782, - "loc": { - "start": { - "line": 34, - "column": 28 - }, - "end": { - "line": 34, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 765, - "end": 771, - "loc": { - "start": { - "line": 34, - "column": 28 - }, - "end": { - "line": 34, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 772, - "end": 782, - "loc": { - "start": { - "line": 34, - "column": 35 - }, - "end": { - "line": 34, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 783, - "end": 791, - "loc": { - "start": { - "line": 34, - "column": 46 - }, - "end": { - "line": 34, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 815, - "end": 840, - "loc": { - "start": { - "line": 36, - "column": 10 - }, - "end": { - "line": 36, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 815, - "end": 830, - "loc": { - "start": { - "line": 36, - "column": 10 - }, - "end": { - "line": 36, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 831, - "end": 839, - "loc": { - "start": { - "line": 36, - "column": 26 - }, - "end": { - "line": 36, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 849, - "end": 851, - "loc": { - "start": { - "line": 37, - "column": 7 - }, - "end": { - "line": 37, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 852, - "end": 859, - "loc": { - "start": { - "line": 37, - "column": 10 - }, - "end": { - "line": 37, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 861, - "end": 883, - "loc": { - "start": { - "line": 37, - "column": 19 - }, - "end": { - "line": 37, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 861, - "end": 873, - "loc": { - "start": { - "line": 37, - "column": 19 - }, - "end": { - "line": 37, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 874, - "end": 882, - "loc": { - "start": { - "line": 37, - "column": 32 - }, - "end": { - "line": 37, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 891, - "end": 911, - "loc": { - "start": { - "line": 39, - "column": 4 - }, - "end": { - "line": 39, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 891, - "end": 910, - "loc": { - "start": { - "line": 39, - "column": 4 - }, - "end": { - "line": 39, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 891, - "end": 900, - "loc": { - "start": { - "line": 39, - "column": 4 - }, - "end": { - "line": 39, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 891, - "end": 894, - "loc": { - "start": { - "line": 39, - "column": 4 - }, - "end": { - "line": 39, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 895, - "end": 900, - "loc": { - "start": { - "line": 39, - "column": 8 - }, - "end": { - "line": 39, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 901, - "end": 909, - "loc": { - "start": { - "line": 39, - "column": 14 - }, - "end": { - "line": 39, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 916, - "end": 926, - "loc": { - "start": { - "line": 40, - "column": 4 - }, - "end": { - "line": 40, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 916, - "end": 925, - "loc": { - "start": { - "line": 40, - "column": 4 - }, - "end": { - "line": 40, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 916, - "end": 923, - "loc": { - "start": { - "line": 40, - "column": 4 - }, - "end": { - "line": 40, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 916, - "end": 919, - "loc": { - "start": { - "line": 40, - "column": 4 - }, - "end": { - "line": 40, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 920, - "end": 923, - "loc": { - "start": { - "line": 40, - "column": 8 - }, - "end": { - "line": 40, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "\n * add an enumeration field (drop down) to a document.\n * NOTE: must be used with POST /enumeration_options () or the API will not recognize it\n ", - "start": 185, - "end": 341, - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 18, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "\n * add enumeration options to the field that was created using the REST call above.\n * NOTE: must be used with POST /enumeration_field () or the API will not recognize the field\n ", - "start": 934, - "end": 1124, - "loc": { - "start": { - "line": 43, - "column": 2 - }, - "end": { - "line": 46, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 1127, - "end": 1717, - "loc": { - "start": { - "line": 47, - "column": 2 - }, - "end": { - "line": 69, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1134, - "end": 1144, - "loc": { - "start": { - "line": 47, - "column": 9 - }, - "end": { - "line": 47, - "column": 19 - }, - "identifierName": "addOptions" - }, - "name": "addOptions" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1146, - "end": 1150, - "loc": { - "start": { - "line": 47, - "column": 21 - }, - "end": { - "line": 47, - "column": 25 - }, - "identifierName": "data" - }, - "name": "data" - }, - { - "type": "Identifier", - "start": 1152, - "end": 1160, - "loc": { - "start": { - "line": 47, - "column": 27 - }, - "end": { - "line": 47, - "column": 35 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 1162, - "end": 1717, - "loc": { - "start": { - "line": 47, - "column": 37 - }, - "end": { - "line": 69, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 1168, - "end": 1191, - "loc": { - "start": { - "line": 48, - "column": 4 - }, - "end": { - "line": 48, - "column": 27 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1174, - "end": 1190, - "loc": { - "start": { - "line": 48, - "column": 10 - }, - "end": { - "line": 48, - "column": 26 - } - }, - "id": { - "type": "ObjectPattern", - "start": 1174, - "end": 1183, - "loc": { - "start": { - "line": 48, - "column": 10 - }, - "end": { - "line": 48, - "column": 19 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1176, - "end": 1181, - "loc": { - "start": { - "line": 48, - "column": 12 - }, - "end": { - "line": 48, - "column": 17 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1176, - "end": 1181, - "loc": { - "start": { - "line": 48, - "column": 12 - }, - "end": { - "line": 48, - "column": 17 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 1176, - "end": 1181, - "loc": { - "start": { - "line": 48, - "column": 12 - }, - "end": { - "line": 48, - "column": 17 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 1186, - "end": 1190, - "loc": { - "start": { - "line": 48, - "column": 22 - }, - "end": { - "line": 48, - "column": 26 - }, - "identifierName": "data" - }, - "name": "data" - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 1196, - "end": 1214, - "loc": { - "start": { - "line": 49, - "column": 4 - }, - "end": { - "line": 49, - "column": 22 - } - }, - "expression": { - "type": "UnaryExpression", - "start": 1196, - "end": 1213, - "loc": { - "start": { - "line": 49, - "column": 4 - }, - "end": { - "line": 49, - "column": 21 - } - }, - "operator": "delete", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 1203, - "end": 1213, - "loc": { - "start": { - "line": 49, - "column": 11 - }, - "end": { - "line": 49, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 1203, - "end": 1207, - "loc": { - "start": { - "line": 49, - "column": 11 - }, - "end": { - "line": 49, - "column": 15 - }, - "identifierName": "data" - }, - "name": "data" - }, - "property": { - "type": "Identifier", - "start": 1208, - "end": 1213, - "loc": { - "start": { - "line": 49, - "column": 16 - }, - "end": { - "line": 49, - "column": 21 - }, - "identifierName": "token" - }, - "name": "token" - }, - "computed": false - }, - "extra": { - "parenthesizedArgument": false - } - } - }, - { - "type": "VariableDeclaration", - "start": 1220, - "end": 1258, - "loc": { - "start": { - "line": 51, - "column": 4 - }, - "end": { - "line": 51, - "column": 42 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1226, - "end": 1257, - "loc": { - "start": { - "line": 51, - "column": 10 - }, - "end": { - "line": 51, - "column": 41 - } - }, - "id": { - "type": "Identifier", - "start": 1226, - "end": 1234, - "loc": { - "start": { - "line": 51, - "column": 10 - }, - "end": { - "line": 51, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 1237, - "end": 1257, - "loc": { - "start": { - "line": 51, - "column": 21 - }, - "end": { - "line": 51, - "column": 41 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1237, - "end": 1251, - "loc": { - "start": { - "line": 51, - "column": 21 - }, - "end": { - "line": 51, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 1237, - "end": 1241, - "loc": { - "start": { - "line": 51, - "column": 21 - }, - "end": { - "line": 51, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 1242, - "end": 1251, - "loc": { - "start": { - "line": 51, - "column": 26 - }, - "end": { - "line": 51, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1252, - "end": 1256, - "loc": { - "start": { - "line": 51, - "column": 36 - }, - "end": { - "line": 51, - "column": 40 - }, - "identifierName": "data" - }, - "name": "data" - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 1263, - "end": 1672, - "loc": { - "start": { - "line": 52, - "column": 4 - }, - "end": { - "line": 65, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1269, - "end": 1671, - "loc": { - "start": { - "line": 52, - "column": 10 - }, - "end": { - "line": 65, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 1269, - "end": 1272, - "loc": { - "start": { - "line": 52, - "column": 10 - }, - "end": { - "line": 52, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 1275, - "end": 1671, - "loc": { - "start": { - "line": 52, - "column": 16 - }, - "end": { - "line": 65, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1275, - "end": 1638, - "loc": { - "start": { - "line": 52, - "column": 16 - }, - "end": { - "line": 65, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 1275, - "end": 1628, - "loc": { - "start": { - "line": 52, - "column": 16 - }, - "end": { - "line": 64, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1275, - "end": 1295, - "loc": { - "start": { - "line": 52, - "column": 16 - }, - "end": { - "line": 53, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 1275, - "end": 1280, - "loc": { - "start": { - "line": 52, - "column": 16 - }, - "end": { - "line": 52, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 1288, - "end": 1295, - "loc": { - "start": { - "line": 53, - "column": 7 - }, - "end": { - "line": 53, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 1296, - "end": 1600, - "loc": { - "start": { - "line": 53, - "column": 15 - }, - "end": { - "line": 64, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 1296, - "end": 1315, - "loc": { - "start": { - "line": 53, - "column": 15 - }, - "end": { - "line": 53, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 1316, - "end": 1599, - "loc": { - "start": { - "line": 53, - "column": 35 - }, - "end": { - "line": 64, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1326, - "end": 1340, - "loc": { - "start": { - "line": 54, - "column": 8 - }, - "end": { - "line": 54, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1326, - "end": 1332, - "loc": { - "start": { - "line": 54, - "column": 8 - }, - "end": { - "line": 54, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 1334, - "end": 1340, - "loc": { - "start": { - "line": 54, - "column": 16 - }, - "end": { - "line": 54, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 1350, - "end": 1378, - "loc": { - "start": { - "line": 55, - "column": 8 - }, - "end": { - "line": 55, - "column": 36 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1350, - "end": 1354, - "loc": { - "start": { - "line": 55, - "column": 8 - }, - "end": { - "line": 55, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 1356, - "end": 1378, - "loc": { - "start": { - "line": 55, - "column": 14 - }, - "end": { - "line": 55, - "column": 36 - } - }, - "extra": { - "rawValue": "/enumeration_options", - "raw": "'/enumeration_options'" - }, - "value": "/enumeration_options" - } - }, - { - "type": "ObjectProperty", - "start": 1388, - "end": 1457, - "loc": { - "start": { - "line": 56, - "column": 8 - }, - "end": { - "line": 59, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1388, - "end": 1401, - "loc": { - "start": { - "line": 56, - "column": 8 - }, - "end": { - "line": 56, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 1403, - "end": 1457, - "loc": { - "start": { - "line": 56, - "column": 23 - }, - "end": { - "line": 59, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1415, - "end": 1429, - "loc": { - "start": { - "line": 57, - "column": 10 - }, - "end": { - "line": 57, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1415, - "end": 1419, - "loc": { - "start": { - "line": 57, - "column": 10 - }, - "end": { - "line": 57, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 1421, - "end": 1429, - "loc": { - "start": { - "line": 57, - "column": 16 - }, - "end": { - "line": 57, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 1441, - "end": 1446, - "loc": { - "start": { - "line": 58, - "column": 10 - }, - "end": { - "line": 58, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1441, - "end": 1446, - "loc": { - "start": { - "line": 58, - "column": 10 - }, - "end": { - "line": 58, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 1441, - "end": 1446, - "loc": { - "start": { - "line": 58, - "column": 10 - }, - "end": { - "line": 58, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 1467, - "end": 1590, - "loc": { - "start": { - "line": 60, - "column": 8 - }, - "end": { - "line": 63, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1467, - "end": 1474, - "loc": { - "start": { - "line": 60, - "column": 8 - }, - "end": { - "line": 60, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 1476, - "end": 1590, - "loc": { - "start": { - "line": 60, - "column": 17 - }, - "end": { - "line": 63, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1488, - "end": 1522, - "loc": { - "start": { - "line": 61, - "column": 10 - }, - "end": { - "line": 61, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 1488, - "end": 1502, - "loc": { - "start": { - "line": 61, - "column": 10 - }, - "end": { - "line": 61, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 1504, - "end": 1522, - "loc": { - "start": { - "line": 61, - "column": 26 - }, - "end": { - "line": 61, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 1534, - "end": 1579, - "loc": { - "start": { - "line": 62, - "column": 10 - }, - "end": { - "line": 62, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 1534, - "end": 1550, - "loc": { - "start": { - "line": 62, - "column": 10 - }, - "end": { - "line": 62, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 1552, - "end": 1579, - "loc": { - "start": { - "line": 62, - "column": 28 - }, - "end": { - "line": 62, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1552, - "end": 1569, - "loc": { - "start": { - "line": 62, - "column": 28 - }, - "end": { - "line": 62, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 1552, - "end": 1558, - "loc": { - "start": { - "line": 62, - "column": 28 - }, - "end": { - "line": 62, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 1559, - "end": 1569, - "loc": { - "start": { - "line": 62, - "column": 35 - }, - "end": { - "line": 62, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1570, - "end": 1578, - "loc": { - "start": { - "line": 62, - "column": 46 - }, - "end": { - "line": 62, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 1602, - "end": 1627, - "loc": { - "start": { - "line": 64, - "column": 10 - }, - "end": { - "line": 64, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 1602, - "end": 1617, - "loc": { - "start": { - "line": 64, - "column": 10 - }, - "end": { - "line": 64, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1618, - "end": 1626, - "loc": { - "start": { - "line": 64, - "column": 26 - }, - "end": { - "line": 64, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 1636, - "end": 1638, - "loc": { - "start": { - "line": 65, - "column": 7 - }, - "end": { - "line": 65, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 1639, - "end": 1646, - "loc": { - "start": { - "line": 65, - "column": 10 - }, - "end": { - "line": 65, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 1648, - "end": 1670, - "loc": { - "start": { - "line": 65, - "column": 19 - }, - "end": { - "line": 65, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 1648, - "end": 1660, - "loc": { - "start": { - "line": 65, - "column": 19 - }, - "end": { - "line": 65, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1661, - "end": 1669, - "loc": { - "start": { - "line": 65, - "column": 32 - }, - "end": { - "line": 65, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 1678, - "end": 1698, - "loc": { - "start": { - "line": 67, - "column": 4 - }, - "end": { - "line": 67, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 1678, - "end": 1697, - "loc": { - "start": { - "line": 67, - "column": 4 - }, - "end": { - "line": 67, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1678, - "end": 1687, - "loc": { - "start": { - "line": 67, - "column": 4 - }, - "end": { - "line": 67, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 1678, - "end": 1681, - "loc": { - "start": { - "line": 67, - "column": 4 - }, - "end": { - "line": 67, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 1682, - "end": 1687, - "loc": { - "start": { - "line": 67, - "column": 8 - }, - "end": { - "line": 67, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1688, - "end": 1696, - "loc": { - "start": { - "line": 67, - "column": 14 - }, - "end": { - "line": 67, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 1703, - "end": 1713, - "loc": { - "start": { - "line": 68, - "column": 4 - }, - "end": { - "line": 68, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 1703, - "end": 1712, - "loc": { - "start": { - "line": 68, - "column": 4 - }, - "end": { - "line": 68, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1703, - "end": 1710, - "loc": { - "start": { - "line": 68, - "column": 4 - }, - "end": { - "line": 68, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 1703, - "end": 1706, - "loc": { - "start": { - "line": 68, - "column": 4 - }, - "end": { - "line": 68, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 1707, - "end": 1710, - "loc": { - "start": { - "line": 68, - "column": 8 - }, - "end": { - "line": 68, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "\n * add enumeration options to the field that was created using the REST call above.\n * NOTE: must be used with POST /enumeration_field () or the API will not recognize the field\n ", - "start": 934, - "end": 1124, - "loc": { - "start": { - "line": 43, - "column": 2 - }, - "end": { - "line": 46, - "column": 5 - } - } - } - ] - } - ] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Enumeration methods\n ", - "start": 130, - "end": 160, - "loc": { - "start": { - "line": 10, - "column": 0 - }, - "end": { - "line": 12, - "column": 3 - } - } - } - ], - "__PseudoExport__": false, - "trailingComments": [] - }, - "leadingComments": null - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "value": "use strict", - "extra": { - "raw": "'use strict'", - "rawValue": "use strict" - } - } - } - ] - }, - "comments": [ - { - "type": "CommentBlock", - "value": "*\n * Enumeration methods\n ", - "start": 130, - "end": 160, - "loc": { - "start": { - "line": 10, - "column": 0 - }, - "end": { - "line": 12, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "\n * add an enumeration field (drop down) to a document.\n * NOTE: must be used with POST /enumeration_options () or the API will not recognize it\n ", - "start": 185, - "end": 341, - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 18, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "\n * add enumeration options to the field that was created using the REST call above.\n * NOTE: must be used with POST /enumeration_field () or the API will not recognize the field\n ", - "start": 934, - "end": 1124, - "loc": { - "start": { - "line": 43, - "column": 2 - }, - "end": { - "line": 46, - "column": 5 - } - } - } - ], - "tokens": [ - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "use strict", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 12 - }, - "end": { - "line": 1, - "column": 13 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 14, - "end": 20, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 27, - "end": 31, - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 17 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "https", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 18 - }, - "end": { - "line": 2, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39, - "end": 40, - "loc": { - "start": { - "line": 2, - "column": 25 - }, - "end": { - "line": 2, - "column": 26 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 41, - "end": 47, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 48, - "end": 49, - "loc": { - "start": { - "line": 3, - "column": 7 - }, - "end": { - "line": 3, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 67, - "end": 68, - "loc": { - "start": { - "line": 4, - "column": 17 - }, - "end": { - "line": 4, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 71, - "end": 83, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 14 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 83, - "end": 84, - "loc": { - "start": { - "line": 5, - "column": 14 - }, - "end": { - "line": 5, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 87, - "end": 106, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 106, - "end": 107, - "loc": { - "start": { - "line": 6, - "column": 21 - }, - "end": { - "line": 6, - "column": 22 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 108, - "end": 109, - "loc": { - "start": { - "line": 7, - "column": 0 - }, - "end": { - "line": 7, - "column": 1 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 110, - "end": 114, - "loc": { - "start": { - "line": 7, - "column": 2 - }, - "end": { - "line": 7, - "column": 6 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "../common", - "start": 115, - "end": 126, - "loc": { - "start": { - "line": 7, - "column": 7 - }, - "end": { - "line": 7, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 126, - "end": 127, - "loc": { - "start": { - "line": 7, - "column": 18 - }, - "end": { - "line": 7, - "column": 19 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Enumeration methods\n ", - "start": 130, - "end": 160, - "loc": { - "start": { - "line": 10, - "column": 0 - }, - "end": { - "line": 12, - "column": 3 - } - } - }, - { - "type": { - "label": "class", - "keyword": "class", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "class", - "start": 161, - "end": 166, - "loc": { - "start": { - "line": 13, - "column": 0 - }, - "end": { - "line": 13, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Enumerations", - "start": 167, - "end": 179, - "loc": { - "start": { - "line": 13, - "column": 6 - }, - "end": { - "line": 13, - "column": 18 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 180, - "end": 181, - "loc": { - "start": { - "line": 13, - "column": 19 - }, - "end": { - "line": 13, - "column": 20 - } - } - }, - { - "type": "CommentBlock", - "value": "\n * add an enumeration field (drop down) to a document.\n * NOTE: must be used with POST /enumeration_options () or the API will not recognize it\n ", - "start": 185, - "end": 341, - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 18, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 344, - "end": 350, - "loc": { - "start": { - "line": 19, - "column": 2 - }, - "end": { - "line": 19, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "addField", - "start": 351, - "end": 359, - "loc": { - "start": { - "line": 19, - "column": 9 - }, - "end": { - "line": 19, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 360, - "end": 361, - "loc": { - "start": { - "line": 19, - "column": 18 - }, - "end": { - "line": 19, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 361, - "end": 365, - "loc": { - "start": { - "line": 19, - "column": 19 - }, - "end": { - "line": 19, - "column": 23 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 365, - "end": 366, - "loc": { - "start": { - "line": 19, - "column": 23 - }, - "end": { - "line": 19, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 367, - "end": 375, - "loc": { - "start": { - "line": 19, - "column": 25 - }, - "end": { - "line": 19, - "column": 33 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 375, - "end": 376, - "loc": { - "start": { - "line": 19, - "column": 33 - }, - "end": { - "line": 19, - "column": 34 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 377, - "end": 378, - "loc": { - "start": { - "line": 19, - "column": 35 - }, - "end": { - "line": 19, - "column": 36 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 383, - "end": 388, - "loc": { - "start": { - "line": 20, - "column": 4 - }, - "end": { - "line": 20, - "column": 9 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 389, - "end": 390, - "loc": { - "start": { - "line": 20, - "column": 10 - }, - "end": { - "line": 20, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 391, - "end": 396, - "loc": { - "start": { - "line": 20, - "column": 12 - }, - "end": { - "line": 20, - "column": 17 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 397, - "end": 398, - "loc": { - "start": { - "line": 20, - "column": 18 - }, - "end": { - "line": 20, - "column": 19 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 399, - "end": 400, - "loc": { - "start": { - "line": 20, - "column": 20 - }, - "end": { - "line": 20, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 401, - "end": 405, - "loc": { - "start": { - "line": 20, - "column": 22 - }, - "end": { - "line": 20, - "column": 26 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 405, - "end": 406, - "loc": { - "start": { - "line": 20, - "column": 26 - }, - "end": { - "line": 20, - "column": 27 - } - } - }, - { - "type": { - "label": "delete", - "keyword": "delete", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "delete", - "start": 411, - "end": 417, - "loc": { - "start": { - "line": 21, - "column": 4 - }, - "end": { - "line": 21, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 418, - "end": 422, - "loc": { - "start": { - "line": 21, - "column": 11 - }, - "end": { - "line": 21, - "column": 15 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 422, - "end": 423, - "loc": { - "start": { - "line": 21, - "column": 15 - }, - "end": { - "line": 21, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 423, - "end": 428, - "loc": { - "start": { - "line": 21, - "column": 16 - }, - "end": { - "line": 21, - "column": 21 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 428, - "end": 429, - "loc": { - "start": { - "line": 21, - "column": 21 - }, - "end": { - "line": 21, - "column": 22 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 435, - "end": 440, - "loc": { - "start": { - "line": 23, - "column": 4 - }, - "end": { - "line": 23, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 441, - "end": 449, - "loc": { - "start": { - "line": 23, - "column": 10 - }, - "end": { - "line": 23, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 450, - "end": 451, - "loc": { - "start": { - "line": 23, - "column": 19 - }, - "end": { - "line": 23, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSON", - "start": 452, - "end": 456, - "loc": { - "start": { - "line": 23, - "column": 21 - }, - "end": { - "line": 23, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 456, - "end": 457, - "loc": { - "start": { - "line": 23, - "column": 25 - }, - "end": { - "line": 23, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "stringify", - "start": 457, - "end": 466, - "loc": { - "start": { - "line": 23, - "column": 26 - }, - "end": { - "line": 23, - "column": 35 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 466, - "end": 467, - "loc": { - "start": { - "line": 23, - "column": 35 - }, - "end": { - "line": 23, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 467, - "end": 471, - "loc": { - "start": { - "line": 23, - "column": 36 - }, - "end": { - "line": 23, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 471, - "end": 472, - "loc": { - "start": { - "line": 23, - "column": 40 - }, - "end": { - "line": 23, - "column": 41 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 472, - "end": 473, - "loc": { - "start": { - "line": 23, - "column": 41 - }, - "end": { - "line": 23, - "column": 42 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 478, - "end": 483, - "loc": { - "start": { - "line": 24, - "column": 4 - }, - "end": { - "line": 24, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 484, - "end": 487, - "loc": { - "start": { - "line": 24, - "column": 10 - }, - "end": { - "line": 24, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 488, - "end": 489, - "loc": { - "start": { - "line": 24, - "column": 14 - }, - "end": { - "line": 24, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 490, - "end": 495, - "loc": { - "start": { - "line": 24, - "column": 16 - }, - "end": { - "line": 24, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 502, - "end": 503, - "loc": { - "start": { - "line": 25, - "column": 6 - }, - "end": { - "line": 25, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 503, - "end": 510, - "loc": { - "start": { - "line": 25, - "column": 7 - }, - "end": { - "line": 25, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 510, - "end": 511, - "loc": { - "start": { - "line": 25, - "column": 14 - }, - "end": { - "line": 25, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 511, - "end": 530, - "loc": { - "start": { - "line": 25, - "column": 15 - }, - "end": { - "line": 25, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 530, - "end": 531, - "loc": { - "start": { - "line": 25, - "column": 34 - }, - "end": { - "line": 25, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 531, - "end": 532, - "loc": { - "start": { - "line": 25, - "column": 35 - }, - "end": { - "line": 25, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 541, - "end": 547, - "loc": { - "start": { - "line": 26, - "column": 8 - }, - "end": { - "line": 26, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 547, - "end": 548, - "loc": { - "start": { - "line": 26, - "column": 14 - }, - "end": { - "line": 26, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "POST", - "start": 549, - "end": 555, - "loc": { - "start": { - "line": 26, - "column": 16 - }, - "end": { - "line": 26, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 555, - "end": 556, - "loc": { - "start": { - "line": 26, - "column": 22 - }, - "end": { - "line": 26, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 565, - "end": 569, - "loc": { - "start": { - "line": 27, - "column": 8 - }, - "end": { - "line": 27, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 569, - "end": 570, - "loc": { - "start": { - "line": 27, - "column": 12 - }, - "end": { - "line": 27, - "column": 13 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/enumeration_field", - "start": 571, - "end": 591, - "loc": { - "start": { - "line": 27, - "column": 14 - }, - "end": { - "line": 27, - "column": 34 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 591, - "end": 592, - "loc": { - "start": { - "line": 27, - "column": 34 - }, - "end": { - "line": 27, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 601, - "end": 614, - "loc": { - "start": { - "line": 28, - "column": 8 - }, - "end": { - "line": 28, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 614, - "end": 615, - "loc": { - "start": { - "line": 28, - "column": 21 - }, - "end": { - "line": 28, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 616, - "end": 617, - "loc": { - "start": { - "line": 28, - "column": 23 - }, - "end": { - "line": 28, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 628, - "end": 632, - "loc": { - "start": { - "line": 29, - "column": 10 - }, - "end": { - "line": 29, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 632, - "end": 633, - "loc": { - "start": { - "line": 29, - "column": 14 - }, - "end": { - "line": 29, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 634, - "end": 642, - "loc": { - "start": { - "line": 29, - "column": 16 - }, - "end": { - "line": 29, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 642, - "end": 643, - "loc": { - "start": { - "line": 29, - "column": 24 - }, - "end": { - "line": 29, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 654, - "end": 659, - "loc": { - "start": { - "line": 30, - "column": 10 - }, - "end": { - "line": 30, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 659, - "end": 660, - "loc": { - "start": { - "line": 30, - "column": 15 - }, - "end": { - "line": 30, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 669, - "end": 670, - "loc": { - "start": { - "line": 31, - "column": 8 - }, - "end": { - "line": 31, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 670, - "end": 671, - "loc": { - "start": { - "line": 31, - "column": 9 - }, - "end": { - "line": 31, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 680, - "end": 687, - "loc": { - "start": { - "line": 32, - "column": 8 - }, - "end": { - "line": 32, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 687, - "end": 688, - "loc": { - "start": { - "line": 32, - "column": 15 - }, - "end": { - "line": 32, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 689, - "end": 690, - "loc": { - "start": { - "line": 32, - "column": 17 - }, - "end": { - "line": 32, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type", - "start": 701, - "end": 715, - "loc": { - "start": { - "line": 33, - "column": 10 - }, - "end": { - "line": 33, - "column": 24 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 715, - "end": 716, - "loc": { - "start": { - "line": 33, - "column": 24 - }, - "end": { - "line": 33, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/json", - "start": 717, - "end": 735, - "loc": { - "start": { - "line": 33, - "column": 26 - }, - "end": { - "line": 33, - "column": 44 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 735, - "end": 736, - "loc": { - "start": { - "line": 33, - "column": 44 - }, - "end": { - "line": 33, - "column": 45 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Length", - "start": 747, - "end": 763, - "loc": { - "start": { - "line": 34, - "column": 10 - }, - "end": { - "line": 34, - "column": 26 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 763, - "end": 764, - "loc": { - "start": { - "line": 34, - "column": 26 - }, - "end": { - "line": 34, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 765, - "end": 771, - "loc": { - "start": { - "line": 34, - "column": 28 - }, - "end": { - "line": 34, - "column": 34 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 771, - "end": 772, - "loc": { - "start": { - "line": 34, - "column": 34 - }, - "end": { - "line": 34, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "byteLength", - "start": 772, - "end": 782, - "loc": { - "start": { - "line": 34, - "column": 35 - }, - "end": { - "line": 34, - "column": 45 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 782, - "end": 783, - "loc": { - "start": { - "line": 34, - "column": 45 - }, - "end": { - "line": 34, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 783, - "end": 791, - "loc": { - "start": { - "line": 34, - "column": 46 - }, - "end": { - "line": 34, - "column": 54 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 791, - "end": 792, - "loc": { - "start": { - "line": 34, - "column": 54 - }, - "end": { - "line": 34, - "column": 55 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 792, - "end": 793, - "loc": { - "start": { - "line": 34, - "column": 55 - }, - "end": { - "line": 34, - "column": 56 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 802, - "end": 803, - "loc": { - "start": { - "line": 35, - "column": 8 - }, - "end": { - "line": 35, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 803, - "end": 804, - "loc": { - "start": { - "line": 35, - "column": 9 - }, - "end": { - "line": 35, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 811, - "end": 812, - "loc": { - "start": { - "line": 36, - "column": 6 - }, - "end": { - "line": 36, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 812, - "end": 813, - "loc": { - "start": { - "line": 36, - "column": 7 - }, - "end": { - "line": 36, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 813, - "end": 814, - "loc": { - "start": { - "line": 36, - "column": 8 - }, - "end": { - "line": 36, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 815, - "end": 830, - "loc": { - "start": { - "line": 36, - "column": 10 - }, - "end": { - "line": 36, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 830, - "end": 831, - "loc": { - "start": { - "line": 36, - "column": 25 - }, - "end": { - "line": 36, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 831, - "end": 839, - "loc": { - "start": { - "line": 36, - "column": 26 - }, - "end": { - "line": 36, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 839, - "end": 840, - "loc": { - "start": { - "line": 36, - "column": 34 - }, - "end": { - "line": 36, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 840, - "end": 841, - "loc": { - "start": { - "line": 36, - "column": 35 - }, - "end": { - "line": 36, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 848, - "end": 849, - "loc": { - "start": { - "line": 37, - "column": 6 - }, - "end": { - "line": 37, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 849, - "end": 851, - "loc": { - "start": { - "line": 37, - "column": 7 - }, - "end": { - "line": 37, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 851, - "end": 852, - "loc": { - "start": { - "line": 37, - "column": 9 - }, - "end": { - "line": 37, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 852, - "end": 859, - "loc": { - "start": { - "line": 37, - "column": 10 - }, - "end": { - "line": 37, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 859, - "end": 860, - "loc": { - "start": { - "line": 37, - "column": 17 - }, - "end": { - "line": 37, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 861, - "end": 873, - "loc": { - "start": { - "line": 37, - "column": 19 - }, - "end": { - "line": 37, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 873, - "end": 874, - "loc": { - "start": { - "line": 37, - "column": 31 - }, - "end": { - "line": 37, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 874, - "end": 882, - "loc": { - "start": { - "line": 37, - "column": 32 - }, - "end": { - "line": 37, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 882, - "end": 883, - "loc": { - "start": { - "line": 37, - "column": 40 - }, - "end": { - "line": 37, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 883, - "end": 884, - "loc": { - "start": { - "line": 37, - "column": 41 - }, - "end": { - "line": 37, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 884, - "end": 885, - "loc": { - "start": { - "line": 37, - "column": 42 - }, - "end": { - "line": 37, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 891, - "end": 894, - "loc": { - "start": { - "line": 39, - "column": 4 - }, - "end": { - "line": 39, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 894, - "end": 895, - "loc": { - "start": { - "line": 39, - "column": 7 - }, - "end": { - "line": 39, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "write", - "start": 895, - "end": 900, - "loc": { - "start": { - "line": 39, - "column": 8 - }, - "end": { - "line": 39, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 900, - "end": 901, - "loc": { - "start": { - "line": 39, - "column": 13 - }, - "end": { - "line": 39, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 901, - "end": 909, - "loc": { - "start": { - "line": 39, - "column": 14 - }, - "end": { - "line": 39, - "column": 22 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 909, - "end": 910, - "loc": { - "start": { - "line": 39, - "column": 22 - }, - "end": { - "line": 39, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 910, - "end": 911, - "loc": { - "start": { - "line": 39, - "column": 23 - }, - "end": { - "line": 39, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 916, - "end": 919, - "loc": { - "start": { - "line": 40, - "column": 4 - }, - "end": { - "line": 40, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 919, - "end": 920, - "loc": { - "start": { - "line": 40, - "column": 7 - }, - "end": { - "line": 40, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 920, - "end": 923, - "loc": { - "start": { - "line": 40, - "column": 8 - }, - "end": { - "line": 40, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 923, - "end": 924, - "loc": { - "start": { - "line": 40, - "column": 11 - }, - "end": { - "line": 40, - "column": 12 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 924, - "end": 925, - "loc": { - "start": { - "line": 40, - "column": 12 - }, - "end": { - "line": 40, - "column": 13 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 925, - "end": 926, - "loc": { - "start": { - "line": 40, - "column": 13 - }, - "end": { - "line": 40, - "column": 14 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 929, - "end": 930, - "loc": { - "start": { - "line": 41, - "column": 2 - }, - "end": { - "line": 41, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "\n * add enumeration options to the field that was created using the REST call above.\n * NOTE: must be used with POST /enumeration_field () or the API will not recognize the field\n ", - "start": 934, - "end": 1124, - "loc": { - "start": { - "line": 43, - "column": 2 - }, - "end": { - "line": 46, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 1127, - "end": 1133, - "loc": { - "start": { - "line": 47, - "column": 2 - }, - "end": { - "line": 47, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "addOptions", - "start": 1134, - "end": 1144, - "loc": { - "start": { - "line": 47, - "column": 9 - }, - "end": { - "line": 47, - "column": 19 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1145, - "end": 1146, - "loc": { - "start": { - "line": 47, - "column": 20 - }, - "end": { - "line": 47, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 1146, - "end": 1150, - "loc": { - "start": { - "line": 47, - "column": 21 - }, - "end": { - "line": 47, - "column": 25 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1150, - "end": 1151, - "loc": { - "start": { - "line": 47, - "column": 25 - }, - "end": { - "line": 47, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 1152, - "end": 1160, - "loc": { - "start": { - "line": 47, - "column": 27 - }, - "end": { - "line": 47, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1160, - "end": 1161, - "loc": { - "start": { - "line": 47, - "column": 35 - }, - "end": { - "line": 47, - "column": 36 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1162, - "end": 1163, - "loc": { - "start": { - "line": 47, - "column": 37 - }, - "end": { - "line": 47, - "column": 38 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1168, - "end": 1173, - "loc": { - "start": { - "line": 48, - "column": 4 - }, - "end": { - "line": 48, - "column": 9 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1174, - "end": 1175, - "loc": { - "start": { - "line": 48, - "column": 10 - }, - "end": { - "line": 48, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 1176, - "end": 1181, - "loc": { - "start": { - "line": 48, - "column": 12 - }, - "end": { - "line": 48, - "column": 17 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1182, - "end": 1183, - "loc": { - "start": { - "line": 48, - "column": 18 - }, - "end": { - "line": 48, - "column": 19 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1184, - "end": 1185, - "loc": { - "start": { - "line": 48, - "column": 20 - }, - "end": { - "line": 48, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 1186, - "end": 1190, - "loc": { - "start": { - "line": 48, - "column": 22 - }, - "end": { - "line": 48, - "column": 26 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1190, - "end": 1191, - "loc": { - "start": { - "line": 48, - "column": 26 - }, - "end": { - "line": 48, - "column": 27 - } - } - }, - { - "type": { - "label": "delete", - "keyword": "delete", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "delete", - "start": 1196, - "end": 1202, - "loc": { - "start": { - "line": 49, - "column": 4 - }, - "end": { - "line": 49, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 1203, - "end": 1207, - "loc": { - "start": { - "line": 49, - "column": 11 - }, - "end": { - "line": 49, - "column": 15 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1207, - "end": 1208, - "loc": { - "start": { - "line": 49, - "column": 15 - }, - "end": { - "line": 49, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 1208, - "end": 1213, - "loc": { - "start": { - "line": 49, - "column": 16 - }, - "end": { - "line": 49, - "column": 21 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1213, - "end": 1214, - "loc": { - "start": { - "line": 49, - "column": 21 - }, - "end": { - "line": 49, - "column": 22 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1220, - "end": 1225, - "loc": { - "start": { - "line": 51, - "column": 4 - }, - "end": { - "line": 51, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 1226, - "end": 1234, - "loc": { - "start": { - "line": 51, - "column": 10 - }, - "end": { - "line": 51, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1235, - "end": 1236, - "loc": { - "start": { - "line": 51, - "column": 19 - }, - "end": { - "line": 51, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSON", - "start": 1237, - "end": 1241, - "loc": { - "start": { - "line": 51, - "column": 21 - }, - "end": { - "line": 51, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1241, - "end": 1242, - "loc": { - "start": { - "line": 51, - "column": 25 - }, - "end": { - "line": 51, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "stringify", - "start": 1242, - "end": 1251, - "loc": { - "start": { - "line": 51, - "column": 26 - }, - "end": { - "line": 51, - "column": 35 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1251, - "end": 1252, - "loc": { - "start": { - "line": 51, - "column": 35 - }, - "end": { - "line": 51, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 1252, - "end": 1256, - "loc": { - "start": { - "line": 51, - "column": 36 - }, - "end": { - "line": 51, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1256, - "end": 1257, - "loc": { - "start": { - "line": 51, - "column": 40 - }, - "end": { - "line": 51, - "column": 41 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1257, - "end": 1258, - "loc": { - "start": { - "line": 51, - "column": 41 - }, - "end": { - "line": 51, - "column": 42 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1263, - "end": 1268, - "loc": { - "start": { - "line": 52, - "column": 4 - }, - "end": { - "line": 52, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 1269, - "end": 1272, - "loc": { - "start": { - "line": 52, - "column": 10 - }, - "end": { - "line": 52, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1273, - "end": 1274, - "loc": { - "start": { - "line": 52, - "column": 14 - }, - "end": { - "line": 52, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 1275, - "end": 1280, - "loc": { - "start": { - "line": 52, - "column": 16 - }, - "end": { - "line": 52, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1287, - "end": 1288, - "loc": { - "start": { - "line": 53, - "column": 6 - }, - "end": { - "line": 53, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 1288, - "end": 1295, - "loc": { - "start": { - "line": 53, - "column": 7 - }, - "end": { - "line": 53, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1295, - "end": 1296, - "loc": { - "start": { - "line": 53, - "column": 14 - }, - "end": { - "line": 53, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 1296, - "end": 1315, - "loc": { - "start": { - "line": 53, - "column": 15 - }, - "end": { - "line": 53, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1315, - "end": 1316, - "loc": { - "start": { - "line": 53, - "column": 34 - }, - "end": { - "line": 53, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1316, - "end": 1317, - "loc": { - "start": { - "line": 53, - "column": 35 - }, - "end": { - "line": 53, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 1326, - "end": 1332, - "loc": { - "start": { - "line": 54, - "column": 8 - }, - "end": { - "line": 54, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1332, - "end": 1333, - "loc": { - "start": { - "line": 54, - "column": 14 - }, - "end": { - "line": 54, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "POST", - "start": 1334, - "end": 1340, - "loc": { - "start": { - "line": 54, - "column": 16 - }, - "end": { - "line": 54, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1340, - "end": 1341, - "loc": { - "start": { - "line": 54, - "column": 22 - }, - "end": { - "line": 54, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 1350, - "end": 1354, - "loc": { - "start": { - "line": 55, - "column": 8 - }, - "end": { - "line": 55, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1354, - "end": 1355, - "loc": { - "start": { - "line": 55, - "column": 12 - }, - "end": { - "line": 55, - "column": 13 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/enumeration_options", - "start": 1356, - "end": 1378, - "loc": { - "start": { - "line": 55, - "column": 14 - }, - "end": { - "line": 55, - "column": 36 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1378, - "end": 1379, - "loc": { - "start": { - "line": 55, - "column": 36 - }, - "end": { - "line": 55, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 1388, - "end": 1401, - "loc": { - "start": { - "line": 56, - "column": 8 - }, - "end": { - "line": 56, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1401, - "end": 1402, - "loc": { - "start": { - "line": 56, - "column": 21 - }, - "end": { - "line": 56, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1403, - "end": 1404, - "loc": { - "start": { - "line": 56, - "column": 23 - }, - "end": { - "line": 56, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 1415, - "end": 1419, - "loc": { - "start": { - "line": 57, - "column": 10 - }, - "end": { - "line": 57, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1419, - "end": 1420, - "loc": { - "start": { - "line": 57, - "column": 14 - }, - "end": { - "line": 57, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 1421, - "end": 1429, - "loc": { - "start": { - "line": 57, - "column": 16 - }, - "end": { - "line": 57, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1429, - "end": 1430, - "loc": { - "start": { - "line": 57, - "column": 24 - }, - "end": { - "line": 57, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 1441, - "end": 1446, - "loc": { - "start": { - "line": 58, - "column": 10 - }, - "end": { - "line": 58, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1446, - "end": 1447, - "loc": { - "start": { - "line": 58, - "column": 15 - }, - "end": { - "line": 58, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1456, - "end": 1457, - "loc": { - "start": { - "line": 59, - "column": 8 - }, - "end": { - "line": 59, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1457, - "end": 1458, - "loc": { - "start": { - "line": 59, - "column": 9 - }, - "end": { - "line": 59, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 1467, - "end": 1474, - "loc": { - "start": { - "line": 60, - "column": 8 - }, - "end": { - "line": 60, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1474, - "end": 1475, - "loc": { - "start": { - "line": 60, - "column": 15 - }, - "end": { - "line": 60, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1476, - "end": 1477, - "loc": { - "start": { - "line": 60, - "column": 17 - }, - "end": { - "line": 60, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type", - "start": 1488, - "end": 1502, - "loc": { - "start": { - "line": 61, - "column": 10 - }, - "end": { - "line": 61, - "column": 24 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1502, - "end": 1503, - "loc": { - "start": { - "line": 61, - "column": 24 - }, - "end": { - "line": 61, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/json", - "start": 1504, - "end": 1522, - "loc": { - "start": { - "line": 61, - "column": 26 - }, - "end": { - "line": 61, - "column": 44 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1522, - "end": 1523, - "loc": { - "start": { - "line": 61, - "column": 44 - }, - "end": { - "line": 61, - "column": 45 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Length", - "start": 1534, - "end": 1550, - "loc": { - "start": { - "line": 62, - "column": 10 - }, - "end": { - "line": 62, - "column": 26 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1550, - "end": 1551, - "loc": { - "start": { - "line": 62, - "column": 26 - }, - "end": { - "line": 62, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 1552, - "end": 1558, - "loc": { - "start": { - "line": 62, - "column": 28 - }, - "end": { - "line": 62, - "column": 34 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1558, - "end": 1559, - "loc": { - "start": { - "line": 62, - "column": 34 - }, - "end": { - "line": 62, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "byteLength", - "start": 1559, - "end": 1569, - "loc": { - "start": { - "line": 62, - "column": 35 - }, - "end": { - "line": 62, - "column": 45 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1569, - "end": 1570, - "loc": { - "start": { - "line": 62, - "column": 45 - }, - "end": { - "line": 62, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 1570, - "end": 1578, - "loc": { - "start": { - "line": 62, - "column": 46 - }, - "end": { - "line": 62, - "column": 54 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1578, - "end": 1579, - "loc": { - "start": { - "line": 62, - "column": 54 - }, - "end": { - "line": 62, - "column": 55 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1579, - "end": 1580, - "loc": { - "start": { - "line": 62, - "column": 55 - }, - "end": { - "line": 62, - "column": 56 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1589, - "end": 1590, - "loc": { - "start": { - "line": 63, - "column": 8 - }, - "end": { - "line": 63, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1590, - "end": 1591, - "loc": { - "start": { - "line": 63, - "column": 9 - }, - "end": { - "line": 63, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1598, - "end": 1599, - "loc": { - "start": { - "line": 64, - "column": 6 - }, - "end": { - "line": 64, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1599, - "end": 1600, - "loc": { - "start": { - "line": 64, - "column": 7 - }, - "end": { - "line": 64, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1600, - "end": 1601, - "loc": { - "start": { - "line": 64, - "column": 8 - }, - "end": { - "line": 64, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 1602, - "end": 1617, - "loc": { - "start": { - "line": 64, - "column": 10 - }, - "end": { - "line": 64, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1617, - "end": 1618, - "loc": { - "start": { - "line": 64, - "column": 25 - }, - "end": { - "line": 64, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 1618, - "end": 1626, - "loc": { - "start": { - "line": 64, - "column": 26 - }, - "end": { - "line": 64, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1626, - "end": 1627, - "loc": { - "start": { - "line": 64, - "column": 34 - }, - "end": { - "line": 64, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1627, - "end": 1628, - "loc": { - "start": { - "line": 64, - "column": 35 - }, - "end": { - "line": 64, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1635, - "end": 1636, - "loc": { - "start": { - "line": 65, - "column": 6 - }, - "end": { - "line": 65, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 1636, - "end": 1638, - "loc": { - "start": { - "line": 65, - "column": 7 - }, - "end": { - "line": 65, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1638, - "end": 1639, - "loc": { - "start": { - "line": 65, - "column": 9 - }, - "end": { - "line": 65, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 1639, - "end": 1646, - "loc": { - "start": { - "line": 65, - "column": 10 - }, - "end": { - "line": 65, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1646, - "end": 1647, - "loc": { - "start": { - "line": 65, - "column": 17 - }, - "end": { - "line": 65, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 1648, - "end": 1660, - "loc": { - "start": { - "line": 65, - "column": 19 - }, - "end": { - "line": 65, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1660, - "end": 1661, - "loc": { - "start": { - "line": 65, - "column": 31 - }, - "end": { - "line": 65, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 1661, - "end": 1669, - "loc": { - "start": { - "line": 65, - "column": 32 - }, - "end": { - "line": 65, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1669, - "end": 1670, - "loc": { - "start": { - "line": 65, - "column": 40 - }, - "end": { - "line": 65, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1670, - "end": 1671, - "loc": { - "start": { - "line": 65, - "column": 41 - }, - "end": { - "line": 65, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1671, - "end": 1672, - "loc": { - "start": { - "line": 65, - "column": 42 - }, - "end": { - "line": 65, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 1678, - "end": 1681, - "loc": { - "start": { - "line": 67, - "column": 4 - }, - "end": { - "line": 67, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1681, - "end": 1682, - "loc": { - "start": { - "line": 67, - "column": 7 - }, - "end": { - "line": 67, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "write", - "start": 1682, - "end": 1687, - "loc": { - "start": { - "line": 67, - "column": 8 - }, - "end": { - "line": 67, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1687, - "end": 1688, - "loc": { - "start": { - "line": 67, - "column": 13 - }, - "end": { - "line": 67, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 1688, - "end": 1696, - "loc": { - "start": { - "line": 67, - "column": 14 - }, - "end": { - "line": 67, - "column": 22 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1696, - "end": 1697, - "loc": { - "start": { - "line": 67, - "column": 22 - }, - "end": { - "line": 67, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1697, - "end": 1698, - "loc": { - "start": { - "line": 67, - "column": 23 - }, - "end": { - "line": 67, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 1703, - "end": 1706, - "loc": { - "start": { - "line": 68, - "column": 4 - }, - "end": { - "line": 68, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1706, - "end": 1707, - "loc": { - "start": { - "line": 68, - "column": 7 - }, - "end": { - "line": 68, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 1707, - "end": 1710, - "loc": { - "start": { - "line": 68, - "column": 8 - }, - "end": { - "line": 68, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1710, - "end": 1711, - "loc": { - "start": { - "line": 68, - "column": 11 - }, - "end": { - "line": 68, - "column": 12 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1711, - "end": 1712, - "loc": { - "start": { - "line": 68, - "column": 12 - }, - "end": { - "line": 68, - "column": 13 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1712, - "end": 1713, - "loc": { - "start": { - "line": 68, - "column": 13 - }, - "end": { - "line": 68, - "column": 14 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1716, - "end": 1717, - "loc": { - "start": { - "line": 69, - "column": 2 - }, - "end": { - "line": 69, - "column": 3 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1719, - "end": 1720, - "loc": { - "start": { - "line": 71, - "column": 0 - }, - "end": { - "line": 71, - "column": 1 - } - } - }, - { - "type": { - "label": "export", - "keyword": "export", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "export", - "start": 1722, - "end": 1728, - "loc": { - "start": { - "line": 73, - "column": 0 - }, - "end": { - "line": 73, - "column": 6 - } - } - }, - { - "type": { - "label": "default", - "keyword": "default", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "default", - "start": 1729, - "end": 1736, - "loc": { - "start": { - "line": 73, - "column": 7 - }, - "end": { - "line": 73, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Enumerations", - "start": 1737, - "end": 1749, - "loc": { - "start": { - "line": 73, - "column": 15 - }, - "end": { - "line": 73, - "column": 27 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1749, - "end": 1750, - "loc": { - "start": { - "line": 73, - "column": 27 - }, - "end": { - "line": 73, - "column": 28 - } - } - }, - { - "type": { - "label": "eof", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1751, - "end": 1751, - "loc": { - "start": { - "line": 74, - "column": 0 - }, - "end": { - "line": 74, - "column": 0 - } - } - } - ] -} \ No newline at end of file diff --git a/docs/ast/source/folder.js.json b/docs/ast/source/folder.js.json deleted file mode 100644 index f61fc44b..00000000 --- a/docs/ast/source/folder.js.json +++ /dev/null @@ -1,15198 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 1547, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 67, - "column": 0 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 1547, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 67, - "column": 0 - } - }, - "sourceType": "module", - "body": [ - { - "type": "ImportDeclaration", - "start": 14, - "end": 40, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 26 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - } - }, - "local": { - "type": "Identifier", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - }, - "identifierName": "https" - }, - "name": "https" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 18 - }, - "end": { - "line": 2, - "column": 25 - } - }, - "extra": { - "rawValue": "https", - "raw": "'https'" - }, - "value": "https" - } - }, - { - "type": "ImportDeclaration", - "start": 41, - "end": 122, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 5, - "column": 18 - } - }, - "specifiers": [ - { - "type": "ImportSpecifier", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - } - }, - "imported": { - "type": "Identifier", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "local": { - "type": "Identifier", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - } - }, - { - "type": "ImportSpecifier", - "start": 69, - "end": 81, - "loc": { - "start": { - "line": 4, - "column": 19 - }, - "end": { - "line": 4, - "column": 31 - } - }, - "imported": { - "type": "Identifier", - "start": 69, - "end": 81, - "loc": { - "start": { - "line": 4, - "column": 19 - }, - "end": { - "line": 4, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "local": { - "type": "Identifier", - "start": 69, - "end": 81, - "loc": { - "start": { - "line": 4, - "column": 19 - }, - "end": { - "line": 4, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - } - }, - { - "type": "ImportSpecifier", - "start": 83, - "end": 102, - "loc": { - "start": { - "line": 4, - "column": 33 - }, - "end": { - "line": 4, - "column": 52 - } - }, - "imported": { - "type": "Identifier", - "start": 83, - "end": 102, - "loc": { - "start": { - "line": 4, - "column": 33 - }, - "end": { - "line": 4, - "column": 52 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "local": { - "type": "Identifier", - "start": 83, - "end": 102, - "loc": { - "start": { - "line": 4, - "column": 33 - }, - "end": { - "line": 4, - "column": 52 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 111, - "end": 121, - "loc": { - "start": { - "line": 5, - "column": 7 - }, - "end": { - "line": 5, - "column": 17 - } - }, - "extra": { - "rawValue": "./common", - "raw": "'./common'" - }, - "value": "./common" - }, - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Folder Methods\n ", - "start": 125, - "end": 150, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 10, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " list folders", - "start": 152, - "end": 167, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 12, - "column": 15 - } - } - } - ] - }, - { - "type": "ExportNamedDeclaration", - "start": 168, - "end": 469, - "loc": { - "start": { - "line": 13, - "column": 0 - }, - "end": { - "line": 25, - "column": 2 - } - }, - "specifiers": [], - "source": null, - "declaration": { - "type": "VariableDeclaration", - "start": 175, - "end": 469, - "loc": { - "start": { - "line": 13, - "column": 7 - }, - "end": { - "line": 25, - "column": 2 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 179, - "end": 468, - "loc": { - "start": { - "line": 13, - "column": 11 - }, - "end": { - "line": 25, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 179, - "end": 183, - "loc": { - "start": { - "line": 13, - "column": 11 - }, - "end": { - "line": 13, - "column": 15 - }, - "identifierName": "list" - }, - "name": "list", - "leadingComments": null - }, - "init": { - "type": "FunctionExpression", - "start": 186, - "end": 468, - "loc": { - "start": { - "line": 13, - "column": 18 - }, - "end": { - "line": 25, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 179, - "end": 183, - "loc": { - "start": { - "line": 13, - "column": 11 - }, - "end": { - "line": 13, - "column": 15 - }, - "identifierName": "list" - }, - "name": "list", - "leadingComments": null - }, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 195, - "end": 198, - "loc": { - "start": { - "line": 13, - "column": 27 - }, - "end": { - "line": 13, - "column": 30 - }, - "identifierName": "obj" - }, - "name": "obj" - }, - { - "type": "Identifier", - "start": 200, - "end": 208, - "loc": { - "start": { - "line": 13, - "column": 32 - }, - "end": { - "line": 13, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 210, - "end": 468, - "loc": { - "start": { - "line": 13, - "column": 42 - }, - "end": { - "line": 25, - "column": 1 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 214, - "end": 409, - "loc": { - "start": { - "line": 14, - "column": 2 - }, - "end": { - "line": 21, - "column": 33 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 220, - "end": 408, - "loc": { - "start": { - "line": 14, - "column": 8 - }, - "end": { - "line": 21, - "column": 32 - } - }, - "id": { - "type": "Identifier", - "start": 220, - "end": 223, - "loc": { - "start": { - "line": 14, - "column": 8 - }, - "end": { - "line": 14, - "column": 11 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 226, - "end": 408, - "loc": { - "start": { - "line": 14, - "column": 14 - }, - "end": { - "line": 21, - "column": 32 - } - }, - "callee": { - "type": "MemberExpression", - "start": 226, - "end": 239, - "loc": { - "start": { - "line": 14, - "column": 14 - }, - "end": { - "line": 14, - "column": 27 - } - }, - "object": { - "type": "Identifier", - "start": 226, - "end": 231, - "loc": { - "start": { - "line": 14, - "column": 14 - }, - "end": { - "line": 14, - "column": 19 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 232, - "end": 239, - "loc": { - "start": { - "line": 14, - "column": 20 - }, - "end": { - "line": 14, - "column": 27 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 240, - "end": 380, - "loc": { - "start": { - "line": 14, - "column": 28 - }, - "end": { - "line": 21, - "column": 4 - } - }, - "callee": { - "type": "Identifier", - "start": 240, - "end": 259, - "loc": { - "start": { - "line": 14, - "column": 28 - }, - "end": { - "line": 14, - "column": 47 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 260, - "end": 379, - "loc": { - "start": { - "line": 14, - "column": 48 - }, - "end": { - "line": 21, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 266, - "end": 279, - "loc": { - "start": { - "line": 15, - "column": 4 - }, - "end": { - "line": 15, - "column": 17 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 266, - "end": 272, - "loc": { - "start": { - "line": 15, - "column": 4 - }, - "end": { - "line": 15, - "column": 10 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 274, - "end": 279, - "loc": { - "start": { - "line": 15, - "column": 12 - }, - "end": { - "line": 15, - "column": 17 - } - }, - "extra": { - "rawValue": "GET", - "raw": "'GET'" - }, - "value": "GET" - } - }, - { - "type": "ObjectProperty", - "start": 285, - "end": 300, - "loc": { - "start": { - "line": 16, - "column": 4 - }, - "end": { - "line": 16, - "column": 19 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 285, - "end": 289, - "loc": { - "start": { - "line": 16, - "column": 4 - }, - "end": { - "line": 16, - "column": 8 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 291, - "end": 300, - "loc": { - "start": { - "line": 16, - "column": 10 - }, - "end": { - "line": 16, - "column": 19 - } - }, - "extra": { - "rawValue": "/folder", - "raw": "'/folder'" - }, - "value": "/folder" - } - }, - { - "type": "ObjectProperty", - "start": 306, - "end": 374, - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 20, - "column": 5 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 306, - "end": 319, - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 17, - "column": 17 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 321, - "end": 374, - "loc": { - "start": { - "line": 17, - "column": 19 - }, - "end": { - "line": 20, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 329, - "end": 343, - "loc": { - "start": { - "line": 18, - "column": 6 - }, - "end": { - "line": 18, - "column": 20 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 329, - "end": 333, - "loc": { - "start": { - "line": 18, - "column": 6 - }, - "end": { - "line": 18, - "column": 10 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 335, - "end": 343, - "loc": { - "start": { - "line": 18, - "column": 12 - }, - "end": { - "line": 18, - "column": 20 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 351, - "end": 367, - "loc": { - "start": { - "line": 19, - "column": 6 - }, - "end": { - "line": 19, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 351, - "end": 356, - "loc": { - "start": { - "line": 19, - "column": 6 - }, - "end": { - "line": 19, - "column": 11 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "MemberExpression", - "start": 358, - "end": 367, - "loc": { - "start": { - "line": 19, - "column": 13 - }, - "end": { - "line": 19, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 358, - "end": 361, - "loc": { - "start": { - "line": 19, - "column": 13 - }, - "end": { - "line": 19, - "column": 16 - }, - "identifierName": "obj" - }, - "name": "obj" - }, - "property": { - "type": "Identifier", - "start": 362, - "end": 367, - "loc": { - "start": { - "line": 19, - "column": 17 - }, - "end": { - "line": 19, - "column": 22 - }, - "identifierName": "token" - }, - "name": "token" - }, - "computed": false - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 382, - "end": 407, - "loc": { - "start": { - "line": 21, - "column": 6 - }, - "end": { - "line": 21, - "column": 31 - } - }, - "callee": { - "type": "Identifier", - "start": 382, - "end": 397, - "loc": { - "start": { - "line": 21, - "column": 6 - }, - "end": { - "line": 21, - "column": 21 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 398, - "end": 406, - "loc": { - "start": { - "line": 21, - "column": 22 - }, - "end": { - "line": 21, - "column": 30 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 413, - "end": 453, - "loc": { - "start": { - "line": 23, - "column": 2 - }, - "end": { - "line": 23, - "column": 42 - } - }, - "expression": { - "type": "CallExpression", - "start": 413, - "end": 452, - "loc": { - "start": { - "line": 23, - "column": 2 - }, - "end": { - "line": 23, - "column": 41 - } - }, - "callee": { - "type": "MemberExpression", - "start": 413, - "end": 419, - "loc": { - "start": { - "line": 23, - "column": 2 - }, - "end": { - "line": 23, - "column": 8 - } - }, - "object": { - "type": "Identifier", - "start": 413, - "end": 416, - "loc": { - "start": { - "line": 23, - "column": 2 - }, - "end": { - "line": 23, - "column": 5 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 417, - "end": 419, - "loc": { - "start": { - "line": 23, - "column": 6 - }, - "end": { - "line": 23, - "column": 8 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 420, - "end": 427, - "loc": { - "start": { - "line": 23, - "column": 9 - }, - "end": { - "line": 23, - "column": 16 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 429, - "end": 451, - "loc": { - "start": { - "line": 23, - "column": 18 - }, - "end": { - "line": 23, - "column": 40 - } - }, - "callee": { - "type": "Identifier", - "start": 429, - "end": 441, - "loc": { - "start": { - "line": 23, - "column": 18 - }, - "end": { - "line": 23, - "column": 30 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 442, - "end": 450, - "loc": { - "start": { - "line": 23, - "column": 31 - }, - "end": { - "line": 23, - "column": 39 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 456, - "end": 466, - "loc": { - "start": { - "line": 24, - "column": 2 - }, - "end": { - "line": 24, - "column": 12 - } - }, - "expression": { - "type": "CallExpression", - "start": 456, - "end": 465, - "loc": { - "start": { - "line": 24, - "column": 2 - }, - "end": { - "line": 24, - "column": 11 - } - }, - "callee": { - "type": "MemberExpression", - "start": 456, - "end": 463, - "loc": { - "start": { - "line": 24, - "column": 2 - }, - "end": { - "line": 24, - "column": 9 - } - }, - "object": { - "type": "Identifier", - "start": 456, - "end": 459, - "loc": { - "start": { - "line": 24, - "column": 2 - }, - "end": { - "line": 24, - "column": 5 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 460, - "end": 463, - "loc": { - "start": { - "line": 24, - "column": 6 - }, - "end": { - "line": 24, - "column": 9 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - } - }, - "leadingComments": null - } - ], - "kind": "let", - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Folder Methods\n ", - "start": 125, - "end": 150, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 10, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " list folders", - "start": 152, - "end": 167, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 12, - "column": 15 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " get documents in a folder", - "start": 471, - "end": 499, - "loc": { - "start": { - "line": 27, - "column": 0 - }, - "end": { - "line": 27, - "column": 28 - } - } - } - ] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Folder Methods\n ", - "start": 125, - "end": 150, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 10, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " list folders", - "start": 152, - "end": 167, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 12, - "column": 15 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " get documents in a folder", - "start": 471, - "end": 499, - "loc": { - "start": { - "line": 27, - "column": 0 - }, - "end": { - "line": 27, - "column": 28 - } - } - } - ] - }, - { - "type": "ExportNamedDeclaration", - "start": 500, - "end": 1546, - "loc": { - "start": { - "line": 28, - "column": 0 - }, - "end": { - "line": 66, - "column": 2 - } - }, - "specifiers": [], - "source": null, - "declaration": { - "type": "VariableDeclaration", - "start": 507, - "end": 1546, - "loc": { - "start": { - "line": 28, - "column": 7 - }, - "end": { - "line": 66, - "column": 2 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 511, - "end": 1545, - "loc": { - "start": { - "line": 28, - "column": 11 - }, - "end": { - "line": 66, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 511, - "end": 520, - "loc": { - "start": { - "line": 28, - "column": 11 - }, - "end": { - "line": 28, - "column": 20 - }, - "identifierName": "documents" - }, - "name": "documents", - "leadingComments": null - }, - "init": { - "type": "FunctionExpression", - "start": 523, - "end": 1545, - "loc": { - "start": { - "line": 28, - "column": 23 - }, - "end": { - "line": 66, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 511, - "end": 520, - "loc": { - "start": { - "line": 28, - "column": 11 - }, - "end": { - "line": 28, - "column": 20 - }, - "identifierName": "documents" - }, - "name": "documents", - "leadingComments": null - }, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 532, - "end": 535, - "loc": { - "start": { - "line": 28, - "column": 32 - }, - "end": { - "line": 28, - "column": 35 - }, - "identifierName": "obj" - }, - "name": "obj" - }, - { - "type": "Identifier", - "start": 537, - "end": 545, - "loc": { - "start": { - "line": 28, - "column": 37 - }, - "end": { - "line": 28, - "column": 45 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 547, - "end": 1545, - "loc": { - "start": { - "line": 28, - "column": 47 - }, - "end": { - "line": 66, - "column": 1 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 551, - "end": 582, - "loc": { - "start": { - "line": 29, - "column": 2 - }, - "end": { - "line": 29, - "column": 33 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 555, - "end": 581, - "loc": { - "start": { - "line": 29, - "column": 6 - }, - "end": { - "line": 29, - "column": 32 - } - }, - "id": { - "type": "Identifier", - "start": 555, - "end": 559, - "loc": { - "start": { - "line": 29, - "column": 6 - }, - "end": { - "line": 29, - "column": 10 - }, - "identifierName": "path" - }, - "name": "path" - }, - "init": { - "type": "TemplateLiteral", - "start": 562, - "end": 581, - "loc": { - "start": { - "line": 29, - "column": 13 - }, - "end": { - "line": 29, - "column": 32 - } - }, - "expressions": [ - { - "type": "MemberExpression", - "start": 573, - "end": 579, - "loc": { - "start": { - "line": 29, - "column": 24 - }, - "end": { - "line": 29, - "column": 30 - } - }, - "object": { - "type": "Identifier", - "start": 573, - "end": 576, - "loc": { - "start": { - "line": 29, - "column": 24 - }, - "end": { - "line": 29, - "column": 27 - }, - "identifierName": "obj" - }, - "name": "obj" - }, - "property": { - "type": "Identifier", - "start": 577, - "end": 579, - "loc": { - "start": { - "line": 29, - "column": 28 - }, - "end": { - "line": 29, - "column": 30 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": false - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 563, - "end": 571, - "loc": { - "start": { - "line": 29, - "column": 14 - }, - "end": { - "line": 29, - "column": 22 - } - }, - "value": { - "raw": "/folder/", - "cooked": "/folder/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 580, - "end": 580, - "loc": { - "start": { - "line": 29, - "column": 31 - }, - "end": { - "line": 29, - "column": 31 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 585, - "end": 604, - "loc": { - "start": { - "line": 30, - "column": 2 - }, - "end": { - "line": 30, - "column": 21 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 589, - "end": 603, - "loc": { - "start": { - "line": 30, - "column": 6 - }, - "end": { - "line": 30, - "column": 20 - } - }, - "id": { - "type": "Identifier", - "start": 589, - "end": 598, - "loc": { - "start": { - "line": 30, - "column": 6 - }, - "end": { - "line": 30, - "column": 15 - }, - "identifierName": "URLParams" - }, - "name": "URLParams" - }, - "init": { - "type": "StringLiteral", - "start": 601, - "end": 603, - "loc": { - "start": { - "line": 30, - "column": 18 - }, - "end": { - "line": 30, - "column": 20 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - } - ], - "kind": "let", - "trailingComments": [ - { - "type": "CommentLine", - "value": " build filters if supplied", - "start": 608, - "end": 636, - "loc": { - "start": { - "line": 32, - "column": 2 - }, - "end": { - "line": 32, - "column": 30 - } - } - } - ] - }, - { - "type": "IfStatement", - "start": 639, - "end": 1027, - "loc": { - "start": { - "line": 33, - "column": 2 - }, - "end": { - "line": 41, - "column": 3 - } - }, - "test": { - "type": "LogicalExpression", - "start": 643, - "end": 678, - "loc": { - "start": { - "line": 33, - "column": 6 - }, - "end": { - "line": 33, - "column": 41 - } - }, - "left": { - "type": "MemberExpression", - "start": 643, - "end": 653, - "loc": { - "start": { - "line": 33, - "column": 6 - }, - "end": { - "line": 33, - "column": 16 - } - }, - "object": { - "type": "Identifier", - "start": 643, - "end": 646, - "loc": { - "start": { - "line": 33, - "column": 6 - }, - "end": { - "line": 33, - "column": 9 - }, - "identifierName": "obj" - }, - "name": "obj", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 647, - "end": 653, - "loc": { - "start": { - "line": 33, - "column": 10 - }, - "end": { - "line": 33, - "column": 16 - }, - "identifierName": "filter" - }, - "name": "filter" - }, - "computed": false, - "leadingComments": null - }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 657, - "end": 678, - "loc": { - "start": { - "line": 33, - "column": 20 - }, - "end": { - "line": 33, - "column": 41 - } - }, - "left": { - "type": "MemberExpression", - "start": 657, - "end": 674, - "loc": { - "start": { - "line": 33, - "column": 20 - }, - "end": { - "line": 33, - "column": 37 - } - }, - "object": { - "type": "MemberExpression", - "start": 657, - "end": 667, - "loc": { - "start": { - "line": 33, - "column": 20 - }, - "end": { - "line": 33, - "column": 30 - } - }, - "object": { - "type": "Identifier", - "start": 657, - "end": 660, - "loc": { - "start": { - "line": 33, - "column": 20 - }, - "end": { - "line": 33, - "column": 23 - }, - "identifierName": "obj" - }, - "name": "obj" - }, - "property": { - "type": "Identifier", - "start": 661, - "end": 667, - "loc": { - "start": { - "line": 33, - "column": 24 - }, - "end": { - "line": 33, - "column": 30 - }, - "identifierName": "filter" - }, - "name": "filter" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 668, - "end": 674, - "loc": { - "start": { - "line": 33, - "column": 31 - }, - "end": { - "line": 33, - "column": 37 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - }, - "operator": ">", - "right": { - "type": "NumericLiteral", - "start": 677, - "end": 678, - "loc": { - "start": { - "line": 33, - "column": 40 - }, - "end": { - "line": 33, - "column": 41 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - "leadingComments": null - }, - "consequent": { - "type": "BlockStatement", - "start": 680, - "end": 1027, - "loc": { - "start": { - "line": 33, - "column": 43 - }, - "end": { - "line": 41, - "column": 3 - } - }, - "body": [ - { - "type": "ForStatement", - "start": 686, - "end": 1023, - "loc": { - "start": { - "line": 34, - "column": 4 - }, - "end": { - "line": 40, - "column": 5 - } - }, - "init": { - "type": "VariableDeclaration", - "start": 691, - "end": 698, - "loc": { - "start": { - "line": 34, - "column": 9 - }, - "end": { - "line": 34, - "column": 16 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 695, - "end": 698, - "loc": { - "start": { - "line": 34, - "column": 13 - }, - "end": { - "line": 34, - "column": 16 - } - }, - "id": { - "type": "Identifier", - "start": 695, - "end": 696, - "loc": { - "start": { - "line": 34, - "column": 13 - }, - "end": { - "line": 34, - "column": 14 - }, - "identifierName": "i" - }, - "name": "i" - }, - "init": { - "type": "NumericLiteral", - "start": 697, - "end": 698, - "loc": { - "start": { - "line": 34, - "column": 15 - }, - "end": { - "line": 34, - "column": 16 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "kind": "let" - }, - "test": { - "type": "BinaryExpression", - "start": 700, - "end": 721, - "loc": { - "start": { - "line": 34, - "column": 18 - }, - "end": { - "line": 34, - "column": 39 - } - }, - "left": { - "type": "Identifier", - "start": 700, - "end": 701, - "loc": { - "start": { - "line": 34, - "column": 18 - }, - "end": { - "line": 34, - "column": 19 - }, - "identifierName": "i" - }, - "name": "i" - }, - "operator": "<", - "right": { - "type": "MemberExpression", - "start": 704, - "end": 721, - "loc": { - "start": { - "line": 34, - "column": 22 - }, - "end": { - "line": 34, - "column": 39 - } - }, - "object": { - "type": "MemberExpression", - "start": 704, - "end": 714, - "loc": { - "start": { - "line": 34, - "column": 22 - }, - "end": { - "line": 34, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 704, - "end": 707, - "loc": { - "start": { - "line": 34, - "column": 22 - }, - "end": { - "line": 34, - "column": 25 - }, - "identifierName": "obj" - }, - "name": "obj" - }, - "property": { - "type": "Identifier", - "start": 708, - "end": 714, - "loc": { - "start": { - "line": 34, - "column": 26 - }, - "end": { - "line": 34, - "column": 32 - }, - "identifierName": "filter" - }, - "name": "filter" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 715, - "end": 721, - "loc": { - "start": { - "line": 34, - "column": 33 - }, - "end": { - "line": 34, - "column": 39 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - } - }, - "update": { - "type": "UpdateExpression", - "start": 723, - "end": 726, - "loc": { - "start": { - "line": 34, - "column": 41 - }, - "end": { - "line": 34, - "column": 44 - } - }, - "operator": "++", - "prefix": false, - "argument": { - "type": "Identifier", - "start": 723, - "end": 724, - "loc": { - "start": { - "line": 34, - "column": 41 - }, - "end": { - "line": 34, - "column": 42 - }, - "identifierName": "i" - }, - "name": "i" - } - }, - "body": { - "type": "BlockStatement", - "start": 728, - "end": 1023, - "loc": { - "start": { - "line": 34, - "column": 46 - }, - "end": { - "line": 40, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 736, - "end": 1017, - "loc": { - "start": { - "line": 35, - "column": 6 - }, - "end": { - "line": 39, - "column": 7 - } - }, - "test": { - "type": "BinaryExpression", - "start": 740, - "end": 747, - "loc": { - "start": { - "line": 35, - "column": 10 - }, - "end": { - "line": 35, - "column": 17 - } - }, - "left": { - "type": "Identifier", - "start": 740, - "end": 741, - "loc": { - "start": { - "line": 35, - "column": 10 - }, - "end": { - "line": 35, - "column": 11 - }, - "identifierName": "i" - }, - "name": "i" - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 746, - "end": 747, - "loc": { - "start": { - "line": 35, - "column": 16 - }, - "end": { - "line": 35, - "column": 17 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - "consequent": { - "type": "BlockStatement", - "start": 749, - "end": 880, - "loc": { - "start": { - "line": 35, - "column": 19 - }, - "end": { - "line": 37, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 759, - "end": 872, - "loc": { - "start": { - "line": 36, - "column": 8 - }, - "end": { - "line": 36, - "column": 121 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 759, - "end": 871, - "loc": { - "start": { - "line": 36, - "column": 8 - }, - "end": { - "line": 36, - "column": 120 - } - }, - "operator": "+=", - "left": { - "type": "Identifier", - "start": 759, - "end": 768, - "loc": { - "start": { - "line": 36, - "column": 8 - }, - "end": { - "line": 36, - "column": 17 - }, - "identifierName": "URLParams" - }, - "name": "URLParams" - }, - "right": { - "type": "TemplateLiteral", - "start": 772, - "end": 871, - "loc": { - "start": { - "line": 36, - "column": 21 - }, - "end": { - "line": 36, - "column": 120 - } - }, - "expressions": [ - { - "type": "CallExpression", - "start": 784, - "end": 810, - "loc": { - "start": { - "line": 36, - "column": 33 - }, - "end": { - "line": 36, - "column": 59 - } - }, - "callee": { - "type": "MemberExpression", - "start": 784, - "end": 795, - "loc": { - "start": { - "line": 36, - "column": 33 - }, - "end": { - "line": 36, - "column": 44 - } - }, - "object": { - "type": "Identifier", - "start": 784, - "end": 790, - "loc": { - "start": { - "line": 36, - "column": 33 - }, - "end": { - "line": 36, - "column": 39 - }, - "identifierName": "Object" - }, - "name": "Object" - }, - "property": { - "type": "Identifier", - "start": 791, - "end": 795, - "loc": { - "start": { - "line": 36, - "column": 40 - }, - "end": { - "line": 36, - "column": 44 - }, - "identifierName": "keys" - }, - "name": "keys" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 796, - "end": 809, - "loc": { - "start": { - "line": 36, - "column": 45 - }, - "end": { - "line": 36, - "column": 58 - } - }, - "object": { - "type": "MemberExpression", - "start": 796, - "end": 806, - "loc": { - "start": { - "line": 36, - "column": 45 - }, - "end": { - "line": 36, - "column": 55 - } - }, - "object": { - "type": "Identifier", - "start": 796, - "end": 799, - "loc": { - "start": { - "line": 36, - "column": 45 - }, - "end": { - "line": 36, - "column": 48 - }, - "identifierName": "obj" - }, - "name": "obj" - }, - "property": { - "type": "Identifier", - "start": 800, - "end": 806, - "loc": { - "start": { - "line": 36, - "column": 49 - }, - "end": { - "line": 36, - "column": 55 - }, - "identifierName": "filter" - }, - "name": "filter" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 807, - "end": 808, - "loc": { - "start": { - "line": 36, - "column": 56 - }, - "end": { - "line": 36, - "column": 57 - }, - "identifierName": "i" - }, - "name": "i" - }, - "computed": true - } - ] - }, - { - "type": "MemberExpression", - "start": 828, - "end": 869, - "loc": { - "start": { - "line": 36, - "column": 77 - }, - "end": { - "line": 36, - "column": 118 - } - }, - "object": { - "type": "MemberExpression", - "start": 828, - "end": 841, - "loc": { - "start": { - "line": 36, - "column": 77 - }, - "end": { - "line": 36, - "column": 90 - } - }, - "object": { - "type": "MemberExpression", - "start": 828, - "end": 838, - "loc": { - "start": { - "line": 36, - "column": 77 - }, - "end": { - "line": 36, - "column": 87 - } - }, - "object": { - "type": "Identifier", - "start": 828, - "end": 831, - "loc": { - "start": { - "line": 36, - "column": 77 - }, - "end": { - "line": 36, - "column": 80 - }, - "identifierName": "obj" - }, - "name": "obj" - }, - "property": { - "type": "Identifier", - "start": 832, - "end": 838, - "loc": { - "start": { - "line": 36, - "column": 81 - }, - "end": { - "line": 36, - "column": 87 - }, - "identifierName": "filter" - }, - "name": "filter" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 839, - "end": 840, - "loc": { - "start": { - "line": 36, - "column": 88 - }, - "end": { - "line": 36, - "column": 89 - }, - "identifierName": "i" - }, - "name": "i" - }, - "computed": true - }, - "property": { - "type": "CallExpression", - "start": 842, - "end": 868, - "loc": { - "start": { - "line": 36, - "column": 91 - }, - "end": { - "line": 36, - "column": 117 - } - }, - "callee": { - "type": "MemberExpression", - "start": 842, - "end": 853, - "loc": { - "start": { - "line": 36, - "column": 91 - }, - "end": { - "line": 36, - "column": 102 - } - }, - "object": { - "type": "Identifier", - "start": 842, - "end": 848, - "loc": { - "start": { - "line": 36, - "column": 91 - }, - "end": { - "line": 36, - "column": 97 - }, - "identifierName": "Object" - }, - "name": "Object" - }, - "property": { - "type": "Identifier", - "start": 849, - "end": 853, - "loc": { - "start": { - "line": 36, - "column": 98 - }, - "end": { - "line": 36, - "column": 102 - }, - "identifierName": "keys" - }, - "name": "keys" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 854, - "end": 867, - "loc": { - "start": { - "line": 36, - "column": 103 - }, - "end": { - "line": 36, - "column": 116 - } - }, - "object": { - "type": "MemberExpression", - "start": 854, - "end": 864, - "loc": { - "start": { - "line": 36, - "column": 103 - }, - "end": { - "line": 36, - "column": 113 - } - }, - "object": { - "type": "Identifier", - "start": 854, - "end": 857, - "loc": { - "start": { - "line": 36, - "column": 103 - }, - "end": { - "line": 36, - "column": 106 - }, - "identifierName": "obj" - }, - "name": "obj" - }, - "property": { - "type": "Identifier", - "start": 858, - "end": 864, - "loc": { - "start": { - "line": 36, - "column": 107 - }, - "end": { - "line": 36, - "column": 113 - }, - "identifierName": "filter" - }, - "name": "filter" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 865, - "end": 866, - "loc": { - "start": { - "line": 36, - "column": 114 - }, - "end": { - "line": 36, - "column": 115 - }, - "identifierName": "i" - }, - "name": "i" - }, - "computed": true - } - ] - }, - "computed": true - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 773, - "end": 782, - "loc": { - "start": { - "line": 36, - "column": 22 - }, - "end": { - "line": 36, - "column": 31 - } - }, - "value": { - "raw": "?filters=", - "cooked": "?filters=" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 811, - "end": 826, - "loc": { - "start": { - "line": 36, - "column": 60 - }, - "end": { - "line": 36, - "column": 75 - } - }, - "value": { - "raw": "&filter-values=", - "cooked": "&filter-values=" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 870, - "end": 870, - "loc": { - "start": { - "line": 36, - "column": 119 - }, - "end": { - "line": 36, - "column": 119 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 886, - "end": 1017, - "loc": { - "start": { - "line": 37, - "column": 13 - }, - "end": { - "line": 39, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 896, - "end": 1009, - "loc": { - "start": { - "line": 38, - "column": 8 - }, - "end": { - "line": 38, - "column": 121 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 896, - "end": 1008, - "loc": { - "start": { - "line": 38, - "column": 8 - }, - "end": { - "line": 38, - "column": 120 - } - }, - "operator": "+=", - "left": { - "type": "Identifier", - "start": 896, - "end": 905, - "loc": { - "start": { - "line": 38, - "column": 8 - }, - "end": { - "line": 38, - "column": 17 - }, - "identifierName": "URLParams" - }, - "name": "URLParams" - }, - "right": { - "type": "TemplateLiteral", - "start": 909, - "end": 1008, - "loc": { - "start": { - "line": 38, - "column": 21 - }, - "end": { - "line": 38, - "column": 120 - } - }, - "expressions": [ - { - "type": "CallExpression", - "start": 921, - "end": 947, - "loc": { - "start": { - "line": 38, - "column": 33 - }, - "end": { - "line": 38, - "column": 59 - } - }, - "callee": { - "type": "MemberExpression", - "start": 921, - "end": 932, - "loc": { - "start": { - "line": 38, - "column": 33 - }, - "end": { - "line": 38, - "column": 44 - } - }, - "object": { - "type": "Identifier", - "start": 921, - "end": 927, - "loc": { - "start": { - "line": 38, - "column": 33 - }, - "end": { - "line": 38, - "column": 39 - }, - "identifierName": "Object" - }, - "name": "Object" - }, - "property": { - "type": "Identifier", - "start": 928, - "end": 932, - "loc": { - "start": { - "line": 38, - "column": 40 - }, - "end": { - "line": 38, - "column": 44 - }, - "identifierName": "keys" - }, - "name": "keys" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 933, - "end": 946, - "loc": { - "start": { - "line": 38, - "column": 45 - }, - "end": { - "line": 38, - "column": 58 - } - }, - "object": { - "type": "MemberExpression", - "start": 933, - "end": 943, - "loc": { - "start": { - "line": 38, - "column": 45 - }, - "end": { - "line": 38, - "column": 55 - } - }, - "object": { - "type": "Identifier", - "start": 933, - "end": 936, - "loc": { - "start": { - "line": 38, - "column": 45 - }, - "end": { - "line": 38, - "column": 48 - }, - "identifierName": "obj" - }, - "name": "obj" - }, - "property": { - "type": "Identifier", - "start": 937, - "end": 943, - "loc": { - "start": { - "line": 38, - "column": 49 - }, - "end": { - "line": 38, - "column": 55 - }, - "identifierName": "filter" - }, - "name": "filter" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 944, - "end": 945, - "loc": { - "start": { - "line": 38, - "column": 56 - }, - "end": { - "line": 38, - "column": 57 - }, - "identifierName": "i" - }, - "name": "i" - }, - "computed": true - } - ] - }, - { - "type": "MemberExpression", - "start": 965, - "end": 1006, - "loc": { - "start": { - "line": 38, - "column": 77 - }, - "end": { - "line": 38, - "column": 118 - } - }, - "object": { - "type": "MemberExpression", - "start": 965, - "end": 978, - "loc": { - "start": { - "line": 38, - "column": 77 - }, - "end": { - "line": 38, - "column": 90 - } - }, - "object": { - "type": "MemberExpression", - "start": 965, - "end": 975, - "loc": { - "start": { - "line": 38, - "column": 77 - }, - "end": { - "line": 38, - "column": 87 - } - }, - "object": { - "type": "Identifier", - "start": 965, - "end": 968, - "loc": { - "start": { - "line": 38, - "column": 77 - }, - "end": { - "line": 38, - "column": 80 - }, - "identifierName": "obj" - }, - "name": "obj" - }, - "property": { - "type": "Identifier", - "start": 969, - "end": 975, - "loc": { - "start": { - "line": 38, - "column": 81 - }, - "end": { - "line": 38, - "column": 87 - }, - "identifierName": "filter" - }, - "name": "filter" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 976, - "end": 977, - "loc": { - "start": { - "line": 38, - "column": 88 - }, - "end": { - "line": 38, - "column": 89 - }, - "identifierName": "i" - }, - "name": "i" - }, - "computed": true - }, - "property": { - "type": "CallExpression", - "start": 979, - "end": 1005, - "loc": { - "start": { - "line": 38, - "column": 91 - }, - "end": { - "line": 38, - "column": 117 - } - }, - "callee": { - "type": "MemberExpression", - "start": 979, - "end": 990, - "loc": { - "start": { - "line": 38, - "column": 91 - }, - "end": { - "line": 38, - "column": 102 - } - }, - "object": { - "type": "Identifier", - "start": 979, - "end": 985, - "loc": { - "start": { - "line": 38, - "column": 91 - }, - "end": { - "line": 38, - "column": 97 - }, - "identifierName": "Object" - }, - "name": "Object" - }, - "property": { - "type": "Identifier", - "start": 986, - "end": 990, - "loc": { - "start": { - "line": 38, - "column": 98 - }, - "end": { - "line": 38, - "column": 102 - }, - "identifierName": "keys" - }, - "name": "keys" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 991, - "end": 1004, - "loc": { - "start": { - "line": 38, - "column": 103 - }, - "end": { - "line": 38, - "column": 116 - } - }, - "object": { - "type": "MemberExpression", - "start": 991, - "end": 1001, - "loc": { - "start": { - "line": 38, - "column": 103 - }, - "end": { - "line": 38, - "column": 113 - } - }, - "object": { - "type": "Identifier", - "start": 991, - "end": 994, - "loc": { - "start": { - "line": 38, - "column": 103 - }, - "end": { - "line": 38, - "column": 106 - }, - "identifierName": "obj" - }, - "name": "obj" - }, - "property": { - "type": "Identifier", - "start": 995, - "end": 1001, - "loc": { - "start": { - "line": 38, - "column": 107 - }, - "end": { - "line": 38, - "column": 113 - }, - "identifierName": "filter" - }, - "name": "filter" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 1002, - "end": 1003, - "loc": { - "start": { - "line": 38, - "column": 114 - }, - "end": { - "line": 38, - "column": 115 - }, - "identifierName": "i" - }, - "name": "i" - }, - "computed": true - } - ] - }, - "computed": true - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 910, - "end": 919, - "loc": { - "start": { - "line": 38, - "column": 22 - }, - "end": { - "line": 38, - "column": 31 - } - }, - "value": { - "raw": "&filters=", - "cooked": "&filters=" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 948, - "end": 963, - "loc": { - "start": { - "line": 38, - "column": 60 - }, - "end": { - "line": 38, - "column": 75 - } - }, - "value": { - "raw": "&filter-values=", - "cooked": "&filter-values=" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 1007, - "end": 1007, - "loc": { - "start": { - "line": 38, - "column": 119 - }, - "end": { - "line": 38, - "column": 119 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "alternate": null, - "leadingComments": [ - { - "type": "CommentLine", - "value": " build filters if supplied", - "start": 608, - "end": 636, - "loc": { - "start": { - "line": 32, - "column": 2 - }, - "end": { - "line": 32, - "column": 30 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " build sort if supplied", - "start": 1031, - "end": 1056, - "loc": { - "start": { - "line": 43, - "column": 2 - }, - "end": { - "line": 43, - "column": 27 - } - } - } - ] - }, - { - "type": "IfStatement", - "start": 1059, - "end": 1270, - "loc": { - "start": { - "line": 44, - "column": 2 - }, - "end": { - "line": 51, - "column": 3 - } - }, - "test": { - "type": "MemberExpression", - "start": 1063, - "end": 1071, - "loc": { - "start": { - "line": 44, - "column": 6 - }, - "end": { - "line": 44, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 1063, - "end": 1066, - "loc": { - "start": { - "line": 44, - "column": 6 - }, - "end": { - "line": 44, - "column": 9 - }, - "identifierName": "obj" - }, - "name": "obj", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 1067, - "end": 1071, - "loc": { - "start": { - "line": 44, - "column": 10 - }, - "end": { - "line": 44, - "column": 14 - }, - "identifierName": "sort" - }, - "name": "sort" - }, - "computed": false, - "leadingComments": null - }, - "consequent": { - "type": "BlockStatement", - "start": 1073, - "end": 1270, - "loc": { - "start": { - "line": 44, - "column": 16 - }, - "end": { - "line": 51, - "column": 3 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 1079, - "end": 1173, - "loc": { - "start": { - "line": 45, - "column": 4 - }, - "end": { - "line": 49, - "column": 5 - } - }, - "test": { - "type": "BinaryExpression", - "start": 1083, - "end": 1103, - "loc": { - "start": { - "line": 45, - "column": 8 - }, - "end": { - "line": 45, - "column": 28 - } - }, - "left": { - "type": "MemberExpression", - "start": 1083, - "end": 1099, - "loc": { - "start": { - "line": 45, - "column": 8 - }, - "end": { - "line": 45, - "column": 24 - } - }, - "object": { - "type": "Identifier", - "start": 1083, - "end": 1092, - "loc": { - "start": { - "line": 45, - "column": 8 - }, - "end": { - "line": 45, - "column": 17 - }, - "identifierName": "URLParams" - }, - "name": "URLParams" - }, - "property": { - "type": "Identifier", - "start": 1093, - "end": 1099, - "loc": { - "start": { - "line": 45, - "column": 18 - }, - "end": { - "line": 45, - "column": 24 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - }, - "operator": ">", - "right": { - "type": "NumericLiteral", - "start": 1102, - "end": 1103, - "loc": { - "start": { - "line": 45, - "column": 27 - }, - "end": { - "line": 45, - "column": 28 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - "consequent": { - "type": "BlockStatement", - "start": 1105, - "end": 1136, - "loc": { - "start": { - "line": 45, - "column": 30 - }, - "end": { - "line": 47, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1113, - "end": 1130, - "loc": { - "start": { - "line": 46, - "column": 6 - }, - "end": { - "line": 46, - "column": 23 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 1113, - "end": 1129, - "loc": { - "start": { - "line": 46, - "column": 6 - }, - "end": { - "line": 46, - "column": 22 - } - }, - "operator": "+=", - "left": { - "type": "Identifier", - "start": 1113, - "end": 1122, - "loc": { - "start": { - "line": 46, - "column": 6 - }, - "end": { - "line": 46, - "column": 15 - }, - "identifierName": "URLParams" - }, - "name": "URLParams" - }, - "right": { - "type": "StringLiteral", - "start": 1126, - "end": 1129, - "loc": { - "start": { - "line": 46, - "column": 19 - }, - "end": { - "line": 46, - "column": 22 - } - }, - "extra": { - "rawValue": "&", - "raw": "'&'" - }, - "value": "&" - } - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 1142, - "end": 1173, - "loc": { - "start": { - "line": 47, - "column": 11 - }, - "end": { - "line": 49, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1150, - "end": 1167, - "loc": { - "start": { - "line": 48, - "column": 6 - }, - "end": { - "line": 48, - "column": 23 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 1150, - "end": 1166, - "loc": { - "start": { - "line": 48, - "column": 6 - }, - "end": { - "line": 48, - "column": 22 - } - }, - "operator": "+=", - "left": { - "type": "Identifier", - "start": 1150, - "end": 1159, - "loc": { - "start": { - "line": 48, - "column": 6 - }, - "end": { - "line": 48, - "column": 15 - }, - "identifierName": "URLParams" - }, - "name": "URLParams" - }, - "right": { - "type": "StringLiteral", - "start": 1163, - "end": 1166, - "loc": { - "start": { - "line": 48, - "column": 19 - }, - "end": { - "line": 48, - "column": 22 - } - }, - "extra": { - "rawValue": "?", - "raw": "'?'" - }, - "value": "?" - } - } - } - ], - "directives": [] - } - }, - { - "type": "ExpressionStatement", - "start": 1178, - "end": 1266, - "loc": { - "start": { - "line": 50, - "column": 4 - }, - "end": { - "line": 50, - "column": 92 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 1178, - "end": 1265, - "loc": { - "start": { - "line": 50, - "column": 4 - }, - "end": { - "line": 50, - "column": 91 - } - }, - "operator": "+=", - "left": { - "type": "Identifier", - "start": 1178, - "end": 1187, - "loc": { - "start": { - "line": 50, - "column": 4 - }, - "end": { - "line": 50, - "column": 13 - }, - "identifierName": "URLParams" - }, - "name": "URLParams" - }, - "right": { - "type": "TemplateLiteral", - "start": 1191, - "end": 1265, - "loc": { - "start": { - "line": 50, - "column": 17 - }, - "end": { - "line": 50, - "column": 91 - } - }, - "expressions": [ - { - "type": "CallExpression", - "start": 1201, - "end": 1222, - "loc": { - "start": { - "line": 50, - "column": 27 - }, - "end": { - "line": 50, - "column": 48 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1201, - "end": 1212, - "loc": { - "start": { - "line": 50, - "column": 27 - }, - "end": { - "line": 50, - "column": 38 - } - }, - "object": { - "type": "Identifier", - "start": 1201, - "end": 1207, - "loc": { - "start": { - "line": 50, - "column": 27 - }, - "end": { - "line": 50, - "column": 33 - }, - "identifierName": "Object" - }, - "name": "Object" - }, - "property": { - "type": "Identifier", - "start": 1208, - "end": 1212, - "loc": { - "start": { - "line": 50, - "column": 34 - }, - "end": { - "line": 50, - "column": 38 - }, - "identifierName": "keys" - }, - "name": "keys" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 1213, - "end": 1221, - "loc": { - "start": { - "line": 50, - "column": 39 - }, - "end": { - "line": 50, - "column": 47 - } - }, - "object": { - "type": "Identifier", - "start": 1213, - "end": 1216, - "loc": { - "start": { - "line": 50, - "column": 39 - }, - "end": { - "line": 50, - "column": 42 - }, - "identifierName": "obj" - }, - "name": "obj" - }, - "property": { - "type": "Identifier", - "start": 1217, - "end": 1221, - "loc": { - "start": { - "line": 50, - "column": 43 - }, - "end": { - "line": 50, - "column": 47 - }, - "identifierName": "sort" - }, - "name": "sort" - }, - "computed": false - } - ] - }, - { - "type": "MemberExpression", - "start": 1232, - "end": 1263, - "loc": { - "start": { - "line": 50, - "column": 58 - }, - "end": { - "line": 50, - "column": 89 - } - }, - "object": { - "type": "MemberExpression", - "start": 1232, - "end": 1240, - "loc": { - "start": { - "line": 50, - "column": 58 - }, - "end": { - "line": 50, - "column": 66 - } - }, - "object": { - "type": "Identifier", - "start": 1232, - "end": 1235, - "loc": { - "start": { - "line": 50, - "column": 58 - }, - "end": { - "line": 50, - "column": 61 - }, - "identifierName": "obj" - }, - "name": "obj" - }, - "property": { - "type": "Identifier", - "start": 1236, - "end": 1240, - "loc": { - "start": { - "line": 50, - "column": 62 - }, - "end": { - "line": 50, - "column": 66 - }, - "identifierName": "sort" - }, - "name": "sort" - }, - "computed": false - }, - "property": { - "type": "CallExpression", - "start": 1241, - "end": 1262, - "loc": { - "start": { - "line": 50, - "column": 67 - }, - "end": { - "line": 50, - "column": 88 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1241, - "end": 1252, - "loc": { - "start": { - "line": 50, - "column": 67 - }, - "end": { - "line": 50, - "column": 78 - } - }, - "object": { - "type": "Identifier", - "start": 1241, - "end": 1247, - "loc": { - "start": { - "line": 50, - "column": 67 - }, - "end": { - "line": 50, - "column": 73 - }, - "identifierName": "Object" - }, - "name": "Object" - }, - "property": { - "type": "Identifier", - "start": 1248, - "end": 1252, - "loc": { - "start": { - "line": 50, - "column": 74 - }, - "end": { - "line": 50, - "column": 78 - }, - "identifierName": "keys" - }, - "name": "keys" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 1253, - "end": 1261, - "loc": { - "start": { - "line": 50, - "column": 79 - }, - "end": { - "line": 50, - "column": 87 - } - }, - "object": { - "type": "Identifier", - "start": 1253, - "end": 1256, - "loc": { - "start": { - "line": 50, - "column": 79 - }, - "end": { - "line": 50, - "column": 82 - }, - "identifierName": "obj" - }, - "name": "obj" - }, - "property": { - "type": "Identifier", - "start": 1257, - "end": 1261, - "loc": { - "start": { - "line": 50, - "column": 83 - }, - "end": { - "line": 50, - "column": 87 - }, - "identifierName": "sort" - }, - "name": "sort" - }, - "computed": false - } - ] - }, - "computed": true - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 1192, - "end": 1199, - "loc": { - "start": { - "line": 50, - "column": 18 - }, - "end": { - "line": 50, - "column": 25 - } - }, - "value": { - "raw": "sortby=", - "cooked": "sortby=" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 1223, - "end": 1230, - "loc": { - "start": { - "line": 50, - "column": 49 - }, - "end": { - "line": 50, - "column": 56 - } - }, - "value": { - "raw": "&order=", - "cooked": "&order=" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 1264, - "end": 1264, - "loc": { - "start": { - "line": 50, - "column": 90 - }, - "end": { - "line": 50, - "column": 90 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - } - } - ], - "directives": [] - }, - "alternate": null, - "leadingComments": [ - { - "type": "CommentLine", - "value": " build sort if supplied", - "start": 1031, - "end": 1056, - "loc": { - "start": { - "line": 43, - "column": 2 - }, - "end": { - "line": 43, - "column": 27 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 1274, - "end": 1298, - "loc": { - "start": { - "line": 53, - "column": 2 - }, - "end": { - "line": 53, - "column": 26 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 1274, - "end": 1297, - "loc": { - "start": { - "line": 53, - "column": 2 - }, - "end": { - "line": 53, - "column": 25 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 1274, - "end": 1278, - "loc": { - "start": { - "line": 53, - "column": 2 - }, - "end": { - "line": 53, - "column": 6 - }, - "identifierName": "path" - }, - "name": "path" - }, - "right": { - "type": "BinaryExpression", - "start": 1281, - "end": 1297, - "loc": { - "start": { - "line": 53, - "column": 9 - }, - "end": { - "line": 53, - "column": 25 - } - }, - "left": { - "type": "Identifier", - "start": 1281, - "end": 1285, - "loc": { - "start": { - "line": 53, - "column": 9 - }, - "end": { - "line": 53, - "column": 13 - }, - "identifierName": "path" - }, - "name": "path" - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 1288, - "end": 1297, - "loc": { - "start": { - "line": 53, - "column": 16 - }, - "end": { - "line": 53, - "column": 25 - }, - "identifierName": "URLParams" - }, - "name": "URLParams" - } - } - } - }, - { - "type": "VariableDeclaration", - "start": 1302, - "end": 1486, - "loc": { - "start": { - "line": 55, - "column": 2 - }, - "end": { - "line": 62, - "column": 33 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1308, - "end": 1485, - "loc": { - "start": { - "line": 55, - "column": 8 - }, - "end": { - "line": 62, - "column": 32 - } - }, - "id": { - "type": "Identifier", - "start": 1308, - "end": 1311, - "loc": { - "start": { - "line": 55, - "column": 8 - }, - "end": { - "line": 55, - "column": 11 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 1314, - "end": 1485, - "loc": { - "start": { - "line": 55, - "column": 14 - }, - "end": { - "line": 62, - "column": 32 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1314, - "end": 1327, - "loc": { - "start": { - "line": 55, - "column": 14 - }, - "end": { - "line": 55, - "column": 27 - } - }, - "object": { - "type": "Identifier", - "start": 1314, - "end": 1319, - "loc": { - "start": { - "line": 55, - "column": 14 - }, - "end": { - "line": 55, - "column": 19 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 1320, - "end": 1327, - "loc": { - "start": { - "line": 55, - "column": 20 - }, - "end": { - "line": 55, - "column": 27 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 1328, - "end": 1457, - "loc": { - "start": { - "line": 55, - "column": 28 - }, - "end": { - "line": 62, - "column": 4 - } - }, - "callee": { - "type": "Identifier", - "start": 1328, - "end": 1347, - "loc": { - "start": { - "line": 55, - "column": 28 - }, - "end": { - "line": 55, - "column": 47 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 1348, - "end": 1456, - "loc": { - "start": { - "line": 55, - "column": 48 - }, - "end": { - "line": 62, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1354, - "end": 1367, - "loc": { - "start": { - "line": 56, - "column": 4 - }, - "end": { - "line": 56, - "column": 17 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1354, - "end": 1360, - "loc": { - "start": { - "line": 56, - "column": 4 - }, - "end": { - "line": 56, - "column": 10 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 1362, - "end": 1367, - "loc": { - "start": { - "line": 56, - "column": 12 - }, - "end": { - "line": 56, - "column": 17 - } - }, - "extra": { - "rawValue": "GET", - "raw": "'GET'" - }, - "value": "GET" - } - }, - { - "type": "ObjectProperty", - "start": 1373, - "end": 1441, - "loc": { - "start": { - "line": 57, - "column": 4 - }, - "end": { - "line": 60, - "column": 5 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1373, - "end": 1386, - "loc": { - "start": { - "line": 57, - "column": 4 - }, - "end": { - "line": 57, - "column": 17 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 1388, - "end": 1441, - "loc": { - "start": { - "line": 57, - "column": 19 - }, - "end": { - "line": 60, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1396, - "end": 1410, - "loc": { - "start": { - "line": 58, - "column": 6 - }, - "end": { - "line": 58, - "column": 20 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1396, - "end": 1400, - "loc": { - "start": { - "line": 58, - "column": 6 - }, - "end": { - "line": 58, - "column": 10 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 1402, - "end": 1410, - "loc": { - "start": { - "line": 58, - "column": 12 - }, - "end": { - "line": 58, - "column": 20 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 1418, - "end": 1434, - "loc": { - "start": { - "line": 59, - "column": 6 - }, - "end": { - "line": 59, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1418, - "end": 1423, - "loc": { - "start": { - "line": 59, - "column": 6 - }, - "end": { - "line": 59, - "column": 11 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "MemberExpression", - "start": 1425, - "end": 1434, - "loc": { - "start": { - "line": 59, - "column": 13 - }, - "end": { - "line": 59, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 1425, - "end": 1428, - "loc": { - "start": { - "line": 59, - "column": 13 - }, - "end": { - "line": 59, - "column": 16 - }, - "identifierName": "obj" - }, - "name": "obj" - }, - "property": { - "type": "Identifier", - "start": 1429, - "end": 1434, - "loc": { - "start": { - "line": 59, - "column": 17 - }, - "end": { - "line": 59, - "column": 22 - }, - "identifierName": "token" - }, - "name": "token" - }, - "computed": false - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 1447, - "end": 1451, - "loc": { - "start": { - "line": 61, - "column": 4 - }, - "end": { - "line": 61, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1447, - "end": 1451, - "loc": { - "start": { - "line": 61, - "column": 4 - }, - "end": { - "line": 61, - "column": 8 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "Identifier", - "start": 1447, - "end": 1451, - "loc": { - "start": { - "line": 61, - "column": 4 - }, - "end": { - "line": 61, - "column": 8 - }, - "identifierName": "path" - }, - "name": "path" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 1459, - "end": 1484, - "loc": { - "start": { - "line": 62, - "column": 6 - }, - "end": { - "line": 62, - "column": 31 - } - }, - "callee": { - "type": "Identifier", - "start": 1459, - "end": 1474, - "loc": { - "start": { - "line": 62, - "column": 6 - }, - "end": { - "line": 62, - "column": 21 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1475, - "end": 1483, - "loc": { - "start": { - "line": 62, - "column": 22 - }, - "end": { - "line": 62, - "column": 30 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 1490, - "end": 1530, - "loc": { - "start": { - "line": 64, - "column": 2 - }, - "end": { - "line": 64, - "column": 42 - } - }, - "expression": { - "type": "CallExpression", - "start": 1490, - "end": 1529, - "loc": { - "start": { - "line": 64, - "column": 2 - }, - "end": { - "line": 64, - "column": 41 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1490, - "end": 1496, - "loc": { - "start": { - "line": 64, - "column": 2 - }, - "end": { - "line": 64, - "column": 8 - } - }, - "object": { - "type": "Identifier", - "start": 1490, - "end": 1493, - "loc": { - "start": { - "line": 64, - "column": 2 - }, - "end": { - "line": 64, - "column": 5 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 1494, - "end": 1496, - "loc": { - "start": { - "line": 64, - "column": 6 - }, - "end": { - "line": 64, - "column": 8 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 1497, - "end": 1504, - "loc": { - "start": { - "line": 64, - "column": 9 - }, - "end": { - "line": 64, - "column": 16 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 1506, - "end": 1528, - "loc": { - "start": { - "line": 64, - "column": 18 - }, - "end": { - "line": 64, - "column": 40 - } - }, - "callee": { - "type": "Identifier", - "start": 1506, - "end": 1518, - "loc": { - "start": { - "line": 64, - "column": 18 - }, - "end": { - "line": 64, - "column": 30 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1519, - "end": 1527, - "loc": { - "start": { - "line": 64, - "column": 31 - }, - "end": { - "line": 64, - "column": 39 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 1533, - "end": 1543, - "loc": { - "start": { - "line": 65, - "column": 2 - }, - "end": { - "line": 65, - "column": 12 - } - }, - "expression": { - "type": "CallExpression", - "start": 1533, - "end": 1542, - "loc": { - "start": { - "line": 65, - "column": 2 - }, - "end": { - "line": 65, - "column": 11 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1533, - "end": 1540, - "loc": { - "start": { - "line": 65, - "column": 2 - }, - "end": { - "line": 65, - "column": 9 - } - }, - "object": { - "type": "Identifier", - "start": 1533, - "end": 1536, - "loc": { - "start": { - "line": 65, - "column": 2 - }, - "end": { - "line": 65, - "column": 5 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 1537, - "end": 1540, - "loc": { - "start": { - "line": 65, - "column": 6 - }, - "end": { - "line": 65, - "column": 9 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - } - }, - "leadingComments": null - } - ], - "kind": "let", - "leadingComments": [ - { - "type": "CommentLine", - "value": " get documents in a folder", - "start": 471, - "end": 499, - "loc": { - "start": { - "line": 27, - "column": 0 - }, - "end": { - "line": 27, - "column": 28 - } - } - } - ], - "trailingComments": [] - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " get documents in a folder", - "start": 471, - "end": 499, - "loc": { - "start": { - "line": 27, - "column": 0 - }, - "end": { - "line": 27, - "column": 28 - } - } - } - ] - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "value": "use strict", - "extra": { - "raw": "'use strict'", - "rawValue": "use strict" - } - } - } - ] - }, - "comments": [ - { - "type": "CommentBlock", - "value": "*\n * Folder Methods\n ", - "start": 125, - "end": 150, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 10, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " list folders", - "start": 152, - "end": 167, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 12, - "column": 15 - } - } - }, - { - "type": "CommentLine", - "value": " get documents in a folder", - "start": 471, - "end": 499, - "loc": { - "start": { - "line": 27, - "column": 0 - }, - "end": { - "line": 27, - "column": 28 - } - } - }, - { - "type": "CommentLine", - "value": " build filters if supplied", - "start": 608, - "end": 636, - "loc": { - "start": { - "line": 32, - "column": 2 - }, - "end": { - "line": 32, - "column": 30 - } - } - }, - { - "type": "CommentLine", - "value": " build sort if supplied", - "start": 1031, - "end": 1056, - "loc": { - "start": { - "line": 43, - "column": 2 - }, - "end": { - "line": 43, - "column": 27 - } - } - } - ], - "tokens": [ - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "use strict", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 12 - }, - "end": { - "line": 1, - "column": 13 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 14, - "end": 20, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 27, - "end": 31, - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 17 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "https", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 18 - }, - "end": { - "line": 2, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39, - "end": 40, - "loc": { - "start": { - "line": 2, - "column": 25 - }, - "end": { - "line": 2, - "column": 26 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 41, - "end": 47, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 48, - "end": 49, - "loc": { - "start": { - "line": 3, - "column": 7 - }, - "end": { - "line": 3, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 67, - "end": 68, - "loc": { - "start": { - "line": 4, - "column": 17 - }, - "end": { - "line": 4, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 69, - "end": 81, - "loc": { - "start": { - "line": 4, - "column": 19 - }, - "end": { - "line": 4, - "column": 31 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 81, - "end": 82, - "loc": { - "start": { - "line": 4, - "column": 31 - }, - "end": { - "line": 4, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 83, - "end": 102, - "loc": { - "start": { - "line": 4, - "column": 33 - }, - "end": { - "line": 4, - "column": 52 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 102, - "end": 103, - "loc": { - "start": { - "line": 4, - "column": 52 - }, - "end": { - "line": 4, - "column": 53 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 104, - "end": 105, - "loc": { - "start": { - "line": 5, - "column": 0 - }, - "end": { - "line": 5, - "column": 1 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 106, - "end": 110, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 6 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "./common", - "start": 111, - "end": 121, - "loc": { - "start": { - "line": 5, - "column": 7 - }, - "end": { - "line": 5, - "column": 17 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 121, - "end": 122, - "loc": { - "start": { - "line": 5, - "column": 17 - }, - "end": { - "line": 5, - "column": 18 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Folder Methods\n ", - "start": 125, - "end": 150, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 10, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " list folders", - "start": 152, - "end": 167, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 12, - "column": 15 - } - } - }, - { - "type": { - "label": "export", - "keyword": "export", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "export", - "start": 168, - "end": 174, - "loc": { - "start": { - "line": 13, - "column": 0 - }, - "end": { - "line": 13, - "column": 6 - } - } - }, - { - "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "let", - "start": 175, - "end": 178, - "loc": { - "start": { - "line": 13, - "column": 7 - }, - "end": { - "line": 13, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "list", - "start": 179, - "end": 183, - "loc": { - "start": { - "line": 13, - "column": 11 - }, - "end": { - "line": 13, - "column": 15 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 184, - "end": 185, - "loc": { - "start": { - "line": 13, - "column": 16 - }, - "end": { - "line": 13, - "column": 17 - } - } - }, - { - "type": { - "label": "function", - "keyword": "function", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "function", - "start": 186, - "end": 194, - "loc": { - "start": { - "line": 13, - "column": 18 - }, - "end": { - "line": 13, - "column": 26 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 194, - "end": 195, - "loc": { - "start": { - "line": 13, - "column": 26 - }, - "end": { - "line": 13, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "obj", - "start": 195, - "end": 198, - "loc": { - "start": { - "line": 13, - "column": 27 - }, - "end": { - "line": 13, - "column": 30 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 198, - "end": 199, - "loc": { - "start": { - "line": 13, - "column": 30 - }, - "end": { - "line": 13, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 200, - "end": 208, - "loc": { - "start": { - "line": 13, - "column": 32 - }, - "end": { - "line": 13, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 208, - "end": 209, - "loc": { - "start": { - "line": 13, - "column": 40 - }, - "end": { - "line": 13, - "column": 41 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 210, - "end": 211, - "loc": { - "start": { - "line": 13, - "column": 42 - }, - "end": { - "line": 13, - "column": 43 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 214, - "end": 219, - "loc": { - "start": { - "line": 14, - "column": 2 - }, - "end": { - "line": 14, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 220, - "end": 223, - "loc": { - "start": { - "line": 14, - "column": 8 - }, - "end": { - "line": 14, - "column": 11 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 224, - "end": 225, - "loc": { - "start": { - "line": 14, - "column": 12 - }, - "end": { - "line": 14, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 226, - "end": 231, - "loc": { - "start": { - "line": 14, - "column": 14 - }, - "end": { - "line": 14, - "column": 19 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 231, - "end": 232, - "loc": { - "start": { - "line": 14, - "column": 19 - }, - "end": { - "line": 14, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 232, - "end": 239, - "loc": { - "start": { - "line": 14, - "column": 20 - }, - "end": { - "line": 14, - "column": 27 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 239, - "end": 240, - "loc": { - "start": { - "line": 14, - "column": 27 - }, - "end": { - "line": 14, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 240, - "end": 259, - "loc": { - "start": { - "line": 14, - "column": 28 - }, - "end": { - "line": 14, - "column": 47 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 259, - "end": 260, - "loc": { - "start": { - "line": 14, - "column": 47 - }, - "end": { - "line": 14, - "column": 48 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 260, - "end": 261, - "loc": { - "start": { - "line": 14, - "column": 48 - }, - "end": { - "line": 14, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 266, - "end": 272, - "loc": { - "start": { - "line": 15, - "column": 4 - }, - "end": { - "line": 15, - "column": 10 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 272, - "end": 273, - "loc": { - "start": { - "line": 15, - "column": 10 - }, - "end": { - "line": 15, - "column": 11 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "GET", - "start": 274, - "end": 279, - "loc": { - "start": { - "line": 15, - "column": 12 - }, - "end": { - "line": 15, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 279, - "end": 280, - "loc": { - "start": { - "line": 15, - "column": 17 - }, - "end": { - "line": 15, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 285, - "end": 289, - "loc": { - "start": { - "line": 16, - "column": 4 - }, - "end": { - "line": 16, - "column": 8 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 289, - "end": 290, - "loc": { - "start": { - "line": 16, - "column": 8 - }, - "end": { - "line": 16, - "column": 9 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/folder", - "start": 291, - "end": 300, - "loc": { - "start": { - "line": 16, - "column": 10 - }, - "end": { - "line": 16, - "column": 19 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 300, - "end": 301, - "loc": { - "start": { - "line": 16, - "column": 19 - }, - "end": { - "line": 16, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 306, - "end": 319, - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 17, - "column": 17 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 319, - "end": 320, - "loc": { - "start": { - "line": 17, - "column": 17 - }, - "end": { - "line": 17, - "column": 18 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 321, - "end": 322, - "loc": { - "start": { - "line": 17, - "column": 19 - }, - "end": { - "line": 17, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 329, - "end": 333, - "loc": { - "start": { - "line": 18, - "column": 6 - }, - "end": { - "line": 18, - "column": 10 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 333, - "end": 334, - "loc": { - "start": { - "line": 18, - "column": 10 - }, - "end": { - "line": 18, - "column": 11 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 335, - "end": 343, - "loc": { - "start": { - "line": 18, - "column": 12 - }, - "end": { - "line": 18, - "column": 20 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 343, - "end": 344, - "loc": { - "start": { - "line": 18, - "column": 20 - }, - "end": { - "line": 18, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 351, - "end": 356, - "loc": { - "start": { - "line": 19, - "column": 6 - }, - "end": { - "line": 19, - "column": 11 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 356, - "end": 357, - "loc": { - "start": { - "line": 19, - "column": 11 - }, - "end": { - "line": 19, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "obj", - "start": 358, - "end": 361, - "loc": { - "start": { - "line": 19, - "column": 13 - }, - "end": { - "line": 19, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 361, - "end": 362, - "loc": { - "start": { - "line": 19, - "column": 16 - }, - "end": { - "line": 19, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 362, - "end": 367, - "loc": { - "start": { - "line": 19, - "column": 17 - }, - "end": { - "line": 19, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 367, - "end": 368, - "loc": { - "start": { - "line": 19, - "column": 22 - }, - "end": { - "line": 19, - "column": 23 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 373, - "end": 374, - "loc": { - "start": { - "line": 20, - "column": 4 - }, - "end": { - "line": 20, - "column": 5 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 374, - "end": 375, - "loc": { - "start": { - "line": 20, - "column": 5 - }, - "end": { - "line": 20, - "column": 6 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 378, - "end": 379, - "loc": { - "start": { - "line": 21, - "column": 2 - }, - "end": { - "line": 21, - "column": 3 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 379, - "end": 380, - "loc": { - "start": { - "line": 21, - "column": 3 - }, - "end": { - "line": 21, - "column": 4 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 380, - "end": 381, - "loc": { - "start": { - "line": 21, - "column": 4 - }, - "end": { - "line": 21, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 382, - "end": 397, - "loc": { - "start": { - "line": 21, - "column": 6 - }, - "end": { - "line": 21, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 397, - "end": 398, - "loc": { - "start": { - "line": 21, - "column": 21 - }, - "end": { - "line": 21, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 398, - "end": 406, - "loc": { - "start": { - "line": 21, - "column": 22 - }, - "end": { - "line": 21, - "column": 30 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 406, - "end": 407, - "loc": { - "start": { - "line": 21, - "column": 30 - }, - "end": { - "line": 21, - "column": 31 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 407, - "end": 408, - "loc": { - "start": { - "line": 21, - "column": 31 - }, - "end": { - "line": 21, - "column": 32 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 408, - "end": 409, - "loc": { - "start": { - "line": 21, - "column": 32 - }, - "end": { - "line": 21, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 413, - "end": 416, - "loc": { - "start": { - "line": 23, - "column": 2 - }, - "end": { - "line": 23, - "column": 5 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 416, - "end": 417, - "loc": { - "start": { - "line": 23, - "column": 5 - }, - "end": { - "line": 23, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 417, - "end": 419, - "loc": { - "start": { - "line": 23, - "column": 6 - }, - "end": { - "line": 23, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 419, - "end": 420, - "loc": { - "start": { - "line": 23, - "column": 8 - }, - "end": { - "line": 23, - "column": 9 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 420, - "end": 427, - "loc": { - "start": { - "line": 23, - "column": 9 - }, - "end": { - "line": 23, - "column": 16 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 427, - "end": 428, - "loc": { - "start": { - "line": 23, - "column": 16 - }, - "end": { - "line": 23, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 429, - "end": 441, - "loc": { - "start": { - "line": 23, - "column": 18 - }, - "end": { - "line": 23, - "column": 30 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 441, - "end": 442, - "loc": { - "start": { - "line": 23, - "column": 30 - }, - "end": { - "line": 23, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 442, - "end": 450, - "loc": { - "start": { - "line": 23, - "column": 31 - }, - "end": { - "line": 23, - "column": 39 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 450, - "end": 451, - "loc": { - "start": { - "line": 23, - "column": 39 - }, - "end": { - "line": 23, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 451, - "end": 452, - "loc": { - "start": { - "line": 23, - "column": 40 - }, - "end": { - "line": 23, - "column": 41 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 452, - "end": 453, - "loc": { - "start": { - "line": 23, - "column": 41 - }, - "end": { - "line": 23, - "column": 42 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 456, - "end": 459, - "loc": { - "start": { - "line": 24, - "column": 2 - }, - "end": { - "line": 24, - "column": 5 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 459, - "end": 460, - "loc": { - "start": { - "line": 24, - "column": 5 - }, - "end": { - "line": 24, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 460, - "end": 463, - "loc": { - "start": { - "line": 24, - "column": 6 - }, - "end": { - "line": 24, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 463, - "end": 464, - "loc": { - "start": { - "line": 24, - "column": 9 - }, - "end": { - "line": 24, - "column": 10 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 464, - "end": 465, - "loc": { - "start": { - "line": 24, - "column": 10 - }, - "end": { - "line": 24, - "column": 11 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 465, - "end": 466, - "loc": { - "start": { - "line": 24, - "column": 11 - }, - "end": { - "line": 24, - "column": 12 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 467, - "end": 468, - "loc": { - "start": { - "line": 25, - "column": 0 - }, - "end": { - "line": 25, - "column": 1 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 468, - "end": 469, - "loc": { - "start": { - "line": 25, - "column": 1 - }, - "end": { - "line": 25, - "column": 2 - } - } - }, - { - "type": "CommentLine", - "value": " get documents in a folder", - "start": 471, - "end": 499, - "loc": { - "start": { - "line": 27, - "column": 0 - }, - "end": { - "line": 27, - "column": 28 - } - } - }, - { - "type": { - "label": "export", - "keyword": "export", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "export", - "start": 500, - "end": 506, - "loc": { - "start": { - "line": 28, - "column": 0 - }, - "end": { - "line": 28, - "column": 6 - } - } - }, - { - "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "let", - "start": 507, - "end": 510, - "loc": { - "start": { - "line": 28, - "column": 7 - }, - "end": { - "line": 28, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documents", - "start": 511, - "end": 520, - "loc": { - "start": { - "line": 28, - "column": 11 - }, - "end": { - "line": 28, - "column": 20 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 521, - "end": 522, - "loc": { - "start": { - "line": 28, - "column": 21 - }, - "end": { - "line": 28, - "column": 22 - } - } - }, - { - "type": { - "label": "function", - "keyword": "function", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "function", - "start": 523, - "end": 531, - "loc": { - "start": { - "line": 28, - "column": 23 - }, - "end": { - "line": 28, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 531, - "end": 532, - "loc": { - "start": { - "line": 28, - "column": 31 - }, - "end": { - "line": 28, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "obj", - "start": 532, - "end": 535, - "loc": { - "start": { - "line": 28, - "column": 32 - }, - "end": { - "line": 28, - "column": 35 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 535, - "end": 536, - "loc": { - "start": { - "line": 28, - "column": 35 - }, - "end": { - "line": 28, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 537, - "end": 545, - "loc": { - "start": { - "line": 28, - "column": 37 - }, - "end": { - "line": 28, - "column": 45 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 545, - "end": 546, - "loc": { - "start": { - "line": 28, - "column": 45 - }, - "end": { - "line": 28, - "column": 46 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 547, - "end": 548, - "loc": { - "start": { - "line": 28, - "column": 47 - }, - "end": { - "line": 28, - "column": 48 - } - } - }, - { - "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "let", - "start": 551, - "end": 554, - "loc": { - "start": { - "line": 29, - "column": 2 - }, - "end": { - "line": 29, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 555, - "end": 559, - "loc": { - "start": { - "line": 29, - "column": 6 - }, - "end": { - "line": 29, - "column": 10 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 560, - "end": 561, - "loc": { - "start": { - "line": 29, - "column": 11 - }, - "end": { - "line": 29, - "column": 12 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 562, - "end": 563, - "loc": { - "start": { - "line": 29, - "column": 13 - }, - "end": { - "line": 29, - "column": 14 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/folder/", - "start": 563, - "end": 571, - "loc": { - "start": { - "line": 29, - "column": 14 - }, - "end": { - "line": 29, - "column": 22 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 571, - "end": 573, - "loc": { - "start": { - "line": 29, - "column": 22 - }, - "end": { - "line": 29, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "obj", - "start": 573, - "end": 576, - "loc": { - "start": { - "line": 29, - "column": 24 - }, - "end": { - "line": 29, - "column": 27 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 576, - "end": 577, - "loc": { - "start": { - "line": 29, - "column": 27 - }, - "end": { - "line": 29, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 577, - "end": 579, - "loc": { - "start": { - "line": 29, - "column": 28 - }, - "end": { - "line": 29, - "column": 30 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 579, - "end": 580, - "loc": { - "start": { - "line": 29, - "column": 30 - }, - "end": { - "line": 29, - "column": 31 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 580, - "end": 580, - "loc": { - "start": { - "line": 29, - "column": 31 - }, - "end": { - "line": 29, - "column": 31 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 580, - "end": 581, - "loc": { - "start": { - "line": 29, - "column": 31 - }, - "end": { - "line": 29, - "column": 32 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 581, - "end": 582, - "loc": { - "start": { - "line": 29, - "column": 32 - }, - "end": { - "line": 29, - "column": 33 - } - } - }, - { - "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "let", - "start": 585, - "end": 588, - "loc": { - "start": { - "line": 30, - "column": 2 - }, - "end": { - "line": 30, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "URLParams", - "start": 589, - "end": 598, - "loc": { - "start": { - "line": 30, - "column": 6 - }, - "end": { - "line": 30, - "column": 15 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 599, - "end": 600, - "loc": { - "start": { - "line": 30, - "column": 16 - }, - "end": { - "line": 30, - "column": 17 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 601, - "end": 603, - "loc": { - "start": { - "line": 30, - "column": 18 - }, - "end": { - "line": 30, - "column": 20 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 603, - "end": 604, - "loc": { - "start": { - "line": 30, - "column": 20 - }, - "end": { - "line": 30, - "column": 21 - } - } - }, - { - "type": "CommentLine", - "value": " build filters if supplied", - "start": 608, - "end": 636, - "loc": { - "start": { - "line": 32, - "column": 2 - }, - "end": { - "line": 32, - "column": 30 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 639, - "end": 641, - "loc": { - "start": { - "line": 33, - "column": 2 - }, - "end": { - "line": 33, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 642, - "end": 643, - "loc": { - "start": { - "line": 33, - "column": 5 - }, - "end": { - "line": 33, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "obj", - "start": 643, - "end": 646, - "loc": { - "start": { - "line": 33, - "column": 6 - }, - "end": { - "line": 33, - "column": 9 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 646, - "end": 647, - "loc": { - "start": { - "line": 33, - "column": 9 - }, - "end": { - "line": 33, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "filter", - "start": 647, - "end": 653, - "loc": { - "start": { - "line": 33, - "column": 10 - }, - "end": { - "line": 33, - "column": 16 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 654, - "end": 656, - "loc": { - "start": { - "line": 33, - "column": 17 - }, - "end": { - "line": 33, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "obj", - "start": 657, - "end": 660, - "loc": { - "start": { - "line": 33, - "column": 20 - }, - "end": { - "line": 33, - "column": 23 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 660, - "end": 661, - "loc": { - "start": { - "line": 33, - "column": 23 - }, - "end": { - "line": 33, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "filter", - "start": 661, - "end": 667, - "loc": { - "start": { - "line": 33, - "column": 24 - }, - "end": { - "line": 33, - "column": 30 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 667, - "end": 668, - "loc": { - "start": { - "line": 33, - "column": 30 - }, - "end": { - "line": 33, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "length", - "start": 668, - "end": 674, - "loc": { - "start": { - "line": 33, - "column": 31 - }, - "end": { - "line": 33, - "column": 37 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": ">", - "start": 675, - "end": 676, - "loc": { - "start": { - "line": 33, - "column": 38 - }, - "end": { - "line": 33, - "column": 39 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 677, - "end": 678, - "loc": { - "start": { - "line": 33, - "column": 40 - }, - "end": { - "line": 33, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 678, - "end": 679, - "loc": { - "start": { - "line": 33, - "column": 41 - }, - "end": { - "line": 33, - "column": 42 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 680, - "end": 681, - "loc": { - "start": { - "line": 33, - "column": 43 - }, - "end": { - "line": 33, - "column": 44 - } - } - }, - { - "type": { - "label": "for", - "keyword": "for", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": true, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "for", - "start": 686, - "end": 689, - "loc": { - "start": { - "line": 34, - "column": 4 - }, - "end": { - "line": 34, - "column": 7 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 690, - "end": 691, - "loc": { - "start": { - "line": 34, - "column": 8 - }, - "end": { - "line": 34, - "column": 9 - } - } - }, - { - "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "let", - "start": 691, - "end": 694, - "loc": { - "start": { - "line": 34, - "column": 9 - }, - "end": { - "line": 34, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 695, - "end": 696, - "loc": { - "start": { - "line": 34, - "column": 13 - }, - "end": { - "line": 34, - "column": 14 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 696, - "end": 697, - "loc": { - "start": { - "line": 34, - "column": 14 - }, - "end": { - "line": 34, - "column": 15 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 697, - "end": 698, - "loc": { - "start": { - "line": 34, - "column": 15 - }, - "end": { - "line": 34, - "column": 16 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 698, - "end": 699, - "loc": { - "start": { - "line": 34, - "column": 16 - }, - "end": { - "line": 34, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 700, - "end": 701, - "loc": { - "start": { - "line": 34, - "column": 18 - }, - "end": { - "line": 34, - "column": 19 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": "<", - "start": 702, - "end": 703, - "loc": { - "start": { - "line": 34, - "column": 20 - }, - "end": { - "line": 34, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "obj", - "start": 704, - "end": 707, - "loc": { - "start": { - "line": 34, - "column": 22 - }, - "end": { - "line": 34, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 707, - "end": 708, - "loc": { - "start": { - "line": 34, - "column": 25 - }, - "end": { - "line": 34, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "filter", - "start": 708, - "end": 714, - "loc": { - "start": { - "line": 34, - "column": 26 - }, - "end": { - "line": 34, - "column": 32 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 714, - "end": 715, - "loc": { - "start": { - "line": 34, - "column": 32 - }, - "end": { - "line": 34, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "length", - "start": 715, - "end": 721, - "loc": { - "start": { - "line": 34, - "column": 33 - }, - "end": { - "line": 34, - "column": 39 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 721, - "end": 722, - "loc": { - "start": { - "line": 34, - "column": 39 - }, - "end": { - "line": 34, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 723, - "end": 724, - "loc": { - "start": { - "line": 34, - "column": 41 - }, - "end": { - "line": 34, - "column": 42 - } - } - }, - { - "type": { - "label": "++/--", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": true, - "binop": null - }, - "value": "++", - "start": 724, - "end": 726, - "loc": { - "start": { - "line": 34, - "column": 42 - }, - "end": { - "line": 34, - "column": 44 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 726, - "end": 727, - "loc": { - "start": { - "line": 34, - "column": 44 - }, - "end": { - "line": 34, - "column": 45 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 728, - "end": 729, - "loc": { - "start": { - "line": 34, - "column": 46 - }, - "end": { - "line": 34, - "column": 47 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 736, - "end": 738, - "loc": { - "start": { - "line": 35, - "column": 6 - }, - "end": { - "line": 35, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 739, - "end": 740, - "loc": { - "start": { - "line": 35, - "column": 9 - }, - "end": { - "line": 35, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 740, - "end": 741, - "loc": { - "start": { - "line": 35, - "column": 10 - }, - "end": { - "line": 35, - "column": 11 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 742, - "end": 745, - "loc": { - "start": { - "line": 35, - "column": 12 - }, - "end": { - "line": 35, - "column": 15 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 746, - "end": 747, - "loc": { - "start": { - "line": 35, - "column": 16 - }, - "end": { - "line": 35, - "column": 17 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 747, - "end": 748, - "loc": { - "start": { - "line": 35, - "column": 17 - }, - "end": { - "line": 35, - "column": 18 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 749, - "end": 750, - "loc": { - "start": { - "line": 35, - "column": 19 - }, - "end": { - "line": 35, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "URLParams", - "start": 759, - "end": 768, - "loc": { - "start": { - "line": 36, - "column": 8 - }, - "end": { - "line": 36, - "column": 17 - } - } - }, - { - "type": { - "label": "_=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "+=", - "start": 769, - "end": 771, - "loc": { - "start": { - "line": 36, - "column": 18 - }, - "end": { - "line": 36, - "column": 20 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 772, - "end": 773, - "loc": { - "start": { - "line": 36, - "column": 21 - }, - "end": { - "line": 36, - "column": 22 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "?filters=", - "start": 773, - "end": 782, - "loc": { - "start": { - "line": 36, - "column": 22 - }, - "end": { - "line": 36, - "column": 31 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 782, - "end": 784, - "loc": { - "start": { - "line": 36, - "column": 31 - }, - "end": { - "line": 36, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Object", - "start": 784, - "end": 790, - "loc": { - "start": { - "line": 36, - "column": 33 - }, - "end": { - "line": 36, - "column": 39 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 790, - "end": 791, - "loc": { - "start": { - "line": 36, - "column": 39 - }, - "end": { - "line": 36, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "keys", - "start": 791, - "end": 795, - "loc": { - "start": { - "line": 36, - "column": 40 - }, - "end": { - "line": 36, - "column": 44 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 795, - "end": 796, - "loc": { - "start": { - "line": 36, - "column": 44 - }, - "end": { - "line": 36, - "column": 45 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "obj", - "start": 796, - "end": 799, - "loc": { - "start": { - "line": 36, - "column": 45 - }, - "end": { - "line": 36, - "column": 48 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 799, - "end": 800, - "loc": { - "start": { - "line": 36, - "column": 48 - }, - "end": { - "line": 36, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "filter", - "start": 800, - "end": 806, - "loc": { - "start": { - "line": 36, - "column": 49 - }, - "end": { - "line": 36, - "column": 55 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 806, - "end": 807, - "loc": { - "start": { - "line": 36, - "column": 55 - }, - "end": { - "line": 36, - "column": 56 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 807, - "end": 808, - "loc": { - "start": { - "line": 36, - "column": 56 - }, - "end": { - "line": 36, - "column": 57 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 808, - "end": 809, - "loc": { - "start": { - "line": 36, - "column": 57 - }, - "end": { - "line": 36, - "column": 58 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 809, - "end": 810, - "loc": { - "start": { - "line": 36, - "column": 58 - }, - "end": { - "line": 36, - "column": 59 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 810, - "end": 811, - "loc": { - "start": { - "line": 36, - "column": 59 - }, - "end": { - "line": 36, - "column": 60 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "&filter-values=", - "start": 811, - "end": 826, - "loc": { - "start": { - "line": 36, - "column": 60 - }, - "end": { - "line": 36, - "column": 75 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 826, - "end": 828, - "loc": { - "start": { - "line": 36, - "column": 75 - }, - "end": { - "line": 36, - "column": 77 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "obj", - "start": 828, - "end": 831, - "loc": { - "start": { - "line": 36, - "column": 77 - }, - "end": { - "line": 36, - "column": 80 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 831, - "end": 832, - "loc": { - "start": { - "line": 36, - "column": 80 - }, - "end": { - "line": 36, - "column": 81 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "filter", - "start": 832, - "end": 838, - "loc": { - "start": { - "line": 36, - "column": 81 - }, - "end": { - "line": 36, - "column": 87 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 838, - "end": 839, - "loc": { - "start": { - "line": 36, - "column": 87 - }, - "end": { - "line": 36, - "column": 88 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 839, - "end": 840, - "loc": { - "start": { - "line": 36, - "column": 88 - }, - "end": { - "line": 36, - "column": 89 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 840, - "end": 841, - "loc": { - "start": { - "line": 36, - "column": 89 - }, - "end": { - "line": 36, - "column": 90 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 841, - "end": 842, - "loc": { - "start": { - "line": 36, - "column": 90 - }, - "end": { - "line": 36, - "column": 91 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Object", - "start": 842, - "end": 848, - "loc": { - "start": { - "line": 36, - "column": 91 - }, - "end": { - "line": 36, - "column": 97 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 848, - "end": 849, - "loc": { - "start": { - "line": 36, - "column": 97 - }, - "end": { - "line": 36, - "column": 98 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "keys", - "start": 849, - "end": 853, - "loc": { - "start": { - "line": 36, - "column": 98 - }, - "end": { - "line": 36, - "column": 102 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 853, - "end": 854, - "loc": { - "start": { - "line": 36, - "column": 102 - }, - "end": { - "line": 36, - "column": 103 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "obj", - "start": 854, - "end": 857, - "loc": { - "start": { - "line": 36, - "column": 103 - }, - "end": { - "line": 36, - "column": 106 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 857, - "end": 858, - "loc": { - "start": { - "line": 36, - "column": 106 - }, - "end": { - "line": 36, - "column": 107 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "filter", - "start": 858, - "end": 864, - "loc": { - "start": { - "line": 36, - "column": 107 - }, - "end": { - "line": 36, - "column": 113 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 864, - "end": 865, - "loc": { - "start": { - "line": 36, - "column": 113 - }, - "end": { - "line": 36, - "column": 114 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 865, - "end": 866, - "loc": { - "start": { - "line": 36, - "column": 114 - }, - "end": { - "line": 36, - "column": 115 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 866, - "end": 867, - "loc": { - "start": { - "line": 36, - "column": 115 - }, - "end": { - "line": 36, - "column": 116 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 867, - "end": 868, - "loc": { - "start": { - "line": 36, - "column": 116 - }, - "end": { - "line": 36, - "column": 117 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 868, - "end": 869, - "loc": { - "start": { - "line": 36, - "column": 117 - }, - "end": { - "line": 36, - "column": 118 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 869, - "end": 870, - "loc": { - "start": { - "line": 36, - "column": 118 - }, - "end": { - "line": 36, - "column": 119 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 870, - "end": 870, - "loc": { - "start": { - "line": 36, - "column": 119 - }, - "end": { - "line": 36, - "column": 119 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 870, - "end": 871, - "loc": { - "start": { - "line": 36, - "column": 119 - }, - "end": { - "line": 36, - "column": 120 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 871, - "end": 872, - "loc": { - "start": { - "line": 36, - "column": 120 - }, - "end": { - "line": 36, - "column": 121 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 879, - "end": 880, - "loc": { - "start": { - "line": 37, - "column": 6 - }, - "end": { - "line": 37, - "column": 7 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 881, - "end": 885, - "loc": { - "start": { - "line": 37, - "column": 8 - }, - "end": { - "line": 37, - "column": 12 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 886, - "end": 887, - "loc": { - "start": { - "line": 37, - "column": 13 - }, - "end": { - "line": 37, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "URLParams", - "start": 896, - "end": 905, - "loc": { - "start": { - "line": 38, - "column": 8 - }, - "end": { - "line": 38, - "column": 17 - } - } - }, - { - "type": { - "label": "_=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "+=", - "start": 906, - "end": 908, - "loc": { - "start": { - "line": 38, - "column": 18 - }, - "end": { - "line": 38, - "column": 20 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 909, - "end": 910, - "loc": { - "start": { - "line": 38, - "column": 21 - }, - "end": { - "line": 38, - "column": 22 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "&filters=", - "start": 910, - "end": 919, - "loc": { - "start": { - "line": 38, - "column": 22 - }, - "end": { - "line": 38, - "column": 31 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 919, - "end": 921, - "loc": { - "start": { - "line": 38, - "column": 31 - }, - "end": { - "line": 38, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Object", - "start": 921, - "end": 927, - "loc": { - "start": { - "line": 38, - "column": 33 - }, - "end": { - "line": 38, - "column": 39 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 927, - "end": 928, - "loc": { - "start": { - "line": 38, - "column": 39 - }, - "end": { - "line": 38, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "keys", - "start": 928, - "end": 932, - "loc": { - "start": { - "line": 38, - "column": 40 - }, - "end": { - "line": 38, - "column": 44 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 932, - "end": 933, - "loc": { - "start": { - "line": 38, - "column": 44 - }, - "end": { - "line": 38, - "column": 45 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "obj", - "start": 933, - "end": 936, - "loc": { - "start": { - "line": 38, - "column": 45 - }, - "end": { - "line": 38, - "column": 48 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 936, - "end": 937, - "loc": { - "start": { - "line": 38, - "column": 48 - }, - "end": { - "line": 38, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "filter", - "start": 937, - "end": 943, - "loc": { - "start": { - "line": 38, - "column": 49 - }, - "end": { - "line": 38, - "column": 55 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 943, - "end": 944, - "loc": { - "start": { - "line": 38, - "column": 55 - }, - "end": { - "line": 38, - "column": 56 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 944, - "end": 945, - "loc": { - "start": { - "line": 38, - "column": 56 - }, - "end": { - "line": 38, - "column": 57 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 945, - "end": 946, - "loc": { - "start": { - "line": 38, - "column": 57 - }, - "end": { - "line": 38, - "column": 58 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 946, - "end": 947, - "loc": { - "start": { - "line": 38, - "column": 58 - }, - "end": { - "line": 38, - "column": 59 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 947, - "end": 948, - "loc": { - "start": { - "line": 38, - "column": 59 - }, - "end": { - "line": 38, - "column": 60 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "&filter-values=", - "start": 948, - "end": 963, - "loc": { - "start": { - "line": 38, - "column": 60 - }, - "end": { - "line": 38, - "column": 75 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 963, - "end": 965, - "loc": { - "start": { - "line": 38, - "column": 75 - }, - "end": { - "line": 38, - "column": 77 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "obj", - "start": 965, - "end": 968, - "loc": { - "start": { - "line": 38, - "column": 77 - }, - "end": { - "line": 38, - "column": 80 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 968, - "end": 969, - "loc": { - "start": { - "line": 38, - "column": 80 - }, - "end": { - "line": 38, - "column": 81 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "filter", - "start": 969, - "end": 975, - "loc": { - "start": { - "line": 38, - "column": 81 - }, - "end": { - "line": 38, - "column": 87 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 975, - "end": 976, - "loc": { - "start": { - "line": 38, - "column": 87 - }, - "end": { - "line": 38, - "column": 88 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 976, - "end": 977, - "loc": { - "start": { - "line": 38, - "column": 88 - }, - "end": { - "line": 38, - "column": 89 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 977, - "end": 978, - "loc": { - "start": { - "line": 38, - "column": 89 - }, - "end": { - "line": 38, - "column": 90 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 978, - "end": 979, - "loc": { - "start": { - "line": 38, - "column": 90 - }, - "end": { - "line": 38, - "column": 91 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Object", - "start": 979, - "end": 985, - "loc": { - "start": { - "line": 38, - "column": 91 - }, - "end": { - "line": 38, - "column": 97 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 985, - "end": 986, - "loc": { - "start": { - "line": 38, - "column": 97 - }, - "end": { - "line": 38, - "column": 98 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "keys", - "start": 986, - "end": 990, - "loc": { - "start": { - "line": 38, - "column": 98 - }, - "end": { - "line": 38, - "column": 102 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 990, - "end": 991, - "loc": { - "start": { - "line": 38, - "column": 102 - }, - "end": { - "line": 38, - "column": 103 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "obj", - "start": 991, - "end": 994, - "loc": { - "start": { - "line": 38, - "column": 103 - }, - "end": { - "line": 38, - "column": 106 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 994, - "end": 995, - "loc": { - "start": { - "line": 38, - "column": 106 - }, - "end": { - "line": 38, - "column": 107 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "filter", - "start": 995, - "end": 1001, - "loc": { - "start": { - "line": 38, - "column": 107 - }, - "end": { - "line": 38, - "column": 113 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1001, - "end": 1002, - "loc": { - "start": { - "line": 38, - "column": 113 - }, - "end": { - "line": 38, - "column": 114 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 1002, - "end": 1003, - "loc": { - "start": { - "line": 38, - "column": 114 - }, - "end": { - "line": 38, - "column": 115 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1003, - "end": 1004, - "loc": { - "start": { - "line": 38, - "column": 115 - }, - "end": { - "line": 38, - "column": 116 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1004, - "end": 1005, - "loc": { - "start": { - "line": 38, - "column": 116 - }, - "end": { - "line": 38, - "column": 117 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1005, - "end": 1006, - "loc": { - "start": { - "line": 38, - "column": 117 - }, - "end": { - "line": 38, - "column": 118 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1006, - "end": 1007, - "loc": { - "start": { - "line": 38, - "column": 118 - }, - "end": { - "line": 38, - "column": 119 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 1007, - "end": 1007, - "loc": { - "start": { - "line": 38, - "column": 119 - }, - "end": { - "line": 38, - "column": 119 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1007, - "end": 1008, - "loc": { - "start": { - "line": 38, - "column": 119 - }, - "end": { - "line": 38, - "column": 120 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1008, - "end": 1009, - "loc": { - "start": { - "line": 38, - "column": 120 - }, - "end": { - "line": 38, - "column": 121 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1016, - "end": 1017, - "loc": { - "start": { - "line": 39, - "column": 6 - }, - "end": { - "line": 39, - "column": 7 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1022, - "end": 1023, - "loc": { - "start": { - "line": 40, - "column": 4 - }, - "end": { - "line": 40, - "column": 5 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1026, - "end": 1027, - "loc": { - "start": { - "line": 41, - "column": 2 - }, - "end": { - "line": 41, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " build sort if supplied", - "start": 1031, - "end": 1056, - "loc": { - "start": { - "line": 43, - "column": 2 - }, - "end": { - "line": 43, - "column": 27 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 1059, - "end": 1061, - "loc": { - "start": { - "line": 44, - "column": 2 - }, - "end": { - "line": 44, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1062, - "end": 1063, - "loc": { - "start": { - "line": 44, - "column": 5 - }, - "end": { - "line": 44, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "obj", - "start": 1063, - "end": 1066, - "loc": { - "start": { - "line": 44, - "column": 6 - }, - "end": { - "line": 44, - "column": 9 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1066, - "end": 1067, - "loc": { - "start": { - "line": 44, - "column": 9 - }, - "end": { - "line": 44, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "sort", - "start": 1067, - "end": 1071, - "loc": { - "start": { - "line": 44, - "column": 10 - }, - "end": { - "line": 44, - "column": 14 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1071, - "end": 1072, - "loc": { - "start": { - "line": 44, - "column": 14 - }, - "end": { - "line": 44, - "column": 15 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1073, - "end": 1074, - "loc": { - "start": { - "line": 44, - "column": 16 - }, - "end": { - "line": 44, - "column": 17 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 1079, - "end": 1081, - "loc": { - "start": { - "line": 45, - "column": 4 - }, - "end": { - "line": 45, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1082, - "end": 1083, - "loc": { - "start": { - "line": 45, - "column": 7 - }, - "end": { - "line": 45, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "URLParams", - "start": 1083, - "end": 1092, - "loc": { - "start": { - "line": 45, - "column": 8 - }, - "end": { - "line": 45, - "column": 17 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1092, - "end": 1093, - "loc": { - "start": { - "line": 45, - "column": 17 - }, - "end": { - "line": 45, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "length", - "start": 1093, - "end": 1099, - "loc": { - "start": { - "line": 45, - "column": 18 - }, - "end": { - "line": 45, - "column": 24 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": ">", - "start": 1100, - "end": 1101, - "loc": { - "start": { - "line": 45, - "column": 25 - }, - "end": { - "line": 45, - "column": 26 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 1102, - "end": 1103, - "loc": { - "start": { - "line": 45, - "column": 27 - }, - "end": { - "line": 45, - "column": 28 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1103, - "end": 1104, - "loc": { - "start": { - "line": 45, - "column": 28 - }, - "end": { - "line": 45, - "column": 29 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1105, - "end": 1106, - "loc": { - "start": { - "line": 45, - "column": 30 - }, - "end": { - "line": 45, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "URLParams", - "start": 1113, - "end": 1122, - "loc": { - "start": { - "line": 46, - "column": 6 - }, - "end": { - "line": 46, - "column": 15 - } - } - }, - { - "type": { - "label": "_=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "+=", - "start": 1123, - "end": 1125, - "loc": { - "start": { - "line": 46, - "column": 16 - }, - "end": { - "line": 46, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "&", - "start": 1126, - "end": 1129, - "loc": { - "start": { - "line": 46, - "column": 19 - }, - "end": { - "line": 46, - "column": 22 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1129, - "end": 1130, - "loc": { - "start": { - "line": 46, - "column": 22 - }, - "end": { - "line": 46, - "column": 23 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1135, - "end": 1136, - "loc": { - "start": { - "line": 47, - "column": 4 - }, - "end": { - "line": 47, - "column": 5 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 1137, - "end": 1141, - "loc": { - "start": { - "line": 47, - "column": 6 - }, - "end": { - "line": 47, - "column": 10 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1142, - "end": 1143, - "loc": { - "start": { - "line": 47, - "column": 11 - }, - "end": { - "line": 47, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "URLParams", - "start": 1150, - "end": 1159, - "loc": { - "start": { - "line": 48, - "column": 6 - }, - "end": { - "line": 48, - "column": 15 - } - } - }, - { - "type": { - "label": "_=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "+=", - "start": 1160, - "end": 1162, - "loc": { - "start": { - "line": 48, - "column": 16 - }, - "end": { - "line": 48, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "?", - "start": 1163, - "end": 1166, - "loc": { - "start": { - "line": 48, - "column": 19 - }, - "end": { - "line": 48, - "column": 22 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1166, - "end": 1167, - "loc": { - "start": { - "line": 48, - "column": 22 - }, - "end": { - "line": 48, - "column": 23 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1172, - "end": 1173, - "loc": { - "start": { - "line": 49, - "column": 4 - }, - "end": { - "line": 49, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "URLParams", - "start": 1178, - "end": 1187, - "loc": { - "start": { - "line": 50, - "column": 4 - }, - "end": { - "line": 50, - "column": 13 - } - } - }, - { - "type": { - "label": "_=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "+=", - "start": 1188, - "end": 1190, - "loc": { - "start": { - "line": 50, - "column": 14 - }, - "end": { - "line": 50, - "column": 16 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1191, - "end": 1192, - "loc": { - "start": { - "line": 50, - "column": 17 - }, - "end": { - "line": 50, - "column": 18 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "sortby=", - "start": 1192, - "end": 1199, - "loc": { - "start": { - "line": 50, - "column": 18 - }, - "end": { - "line": 50, - "column": 25 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1199, - "end": 1201, - "loc": { - "start": { - "line": 50, - "column": 25 - }, - "end": { - "line": 50, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Object", - "start": 1201, - "end": 1207, - "loc": { - "start": { - "line": 50, - "column": 27 - }, - "end": { - "line": 50, - "column": 33 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1207, - "end": 1208, - "loc": { - "start": { - "line": 50, - "column": 33 - }, - "end": { - "line": 50, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "keys", - "start": 1208, - "end": 1212, - "loc": { - "start": { - "line": 50, - "column": 34 - }, - "end": { - "line": 50, - "column": 38 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1212, - "end": 1213, - "loc": { - "start": { - "line": 50, - "column": 38 - }, - "end": { - "line": 50, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "obj", - "start": 1213, - "end": 1216, - "loc": { - "start": { - "line": 50, - "column": 39 - }, - "end": { - "line": 50, - "column": 42 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1216, - "end": 1217, - "loc": { - "start": { - "line": 50, - "column": 42 - }, - "end": { - "line": 50, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "sort", - "start": 1217, - "end": 1221, - "loc": { - "start": { - "line": 50, - "column": 43 - }, - "end": { - "line": 50, - "column": 47 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1221, - "end": 1222, - "loc": { - "start": { - "line": 50, - "column": 47 - }, - "end": { - "line": 50, - "column": 48 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1222, - "end": 1223, - "loc": { - "start": { - "line": 50, - "column": 48 - }, - "end": { - "line": 50, - "column": 49 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "&order=", - "start": 1223, - "end": 1230, - "loc": { - "start": { - "line": 50, - "column": 49 - }, - "end": { - "line": 50, - "column": 56 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1230, - "end": 1232, - "loc": { - "start": { - "line": 50, - "column": 56 - }, - "end": { - "line": 50, - "column": 58 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "obj", - "start": 1232, - "end": 1235, - "loc": { - "start": { - "line": 50, - "column": 58 - }, - "end": { - "line": 50, - "column": 61 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1235, - "end": 1236, - "loc": { - "start": { - "line": 50, - "column": 61 - }, - "end": { - "line": 50, - "column": 62 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "sort", - "start": 1236, - "end": 1240, - "loc": { - "start": { - "line": 50, - "column": 62 - }, - "end": { - "line": 50, - "column": 66 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1240, - "end": 1241, - "loc": { - "start": { - "line": 50, - "column": 66 - }, - "end": { - "line": 50, - "column": 67 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Object", - "start": 1241, - "end": 1247, - "loc": { - "start": { - "line": 50, - "column": 67 - }, - "end": { - "line": 50, - "column": 73 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1247, - "end": 1248, - "loc": { - "start": { - "line": 50, - "column": 73 - }, - "end": { - "line": 50, - "column": 74 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "keys", - "start": 1248, - "end": 1252, - "loc": { - "start": { - "line": 50, - "column": 74 - }, - "end": { - "line": 50, - "column": 78 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1252, - "end": 1253, - "loc": { - "start": { - "line": 50, - "column": 78 - }, - "end": { - "line": 50, - "column": 79 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "obj", - "start": 1253, - "end": 1256, - "loc": { - "start": { - "line": 50, - "column": 79 - }, - "end": { - "line": 50, - "column": 82 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1256, - "end": 1257, - "loc": { - "start": { - "line": 50, - "column": 82 - }, - "end": { - "line": 50, - "column": 83 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "sort", - "start": 1257, - "end": 1261, - "loc": { - "start": { - "line": 50, - "column": 83 - }, - "end": { - "line": 50, - "column": 87 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1261, - "end": 1262, - "loc": { - "start": { - "line": 50, - "column": 87 - }, - "end": { - "line": 50, - "column": 88 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1262, - "end": 1263, - "loc": { - "start": { - "line": 50, - "column": 88 - }, - "end": { - "line": 50, - "column": 89 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1263, - "end": 1264, - "loc": { - "start": { - "line": 50, - "column": 89 - }, - "end": { - "line": 50, - "column": 90 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 1264, - "end": 1264, - "loc": { - "start": { - "line": 50, - "column": 90 - }, - "end": { - "line": 50, - "column": 90 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1264, - "end": 1265, - "loc": { - "start": { - "line": 50, - "column": 90 - }, - "end": { - "line": 50, - "column": 91 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1265, - "end": 1266, - "loc": { - "start": { - "line": 50, - "column": 91 - }, - "end": { - "line": 50, - "column": 92 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1269, - "end": 1270, - "loc": { - "start": { - "line": 51, - "column": 2 - }, - "end": { - "line": 51, - "column": 3 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 1274, - "end": 1278, - "loc": { - "start": { - "line": 53, - "column": 2 - }, - "end": { - "line": 53, - "column": 6 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1279, - "end": 1280, - "loc": { - "start": { - "line": 53, - "column": 7 - }, - "end": { - "line": 53, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 1281, - "end": 1285, - "loc": { - "start": { - "line": 53, - "column": 9 - }, - "end": { - "line": 53, - "column": 13 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 1286, - "end": 1287, - "loc": { - "start": { - "line": 53, - "column": 14 - }, - "end": { - "line": 53, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "URLParams", - "start": 1288, - "end": 1297, - "loc": { - "start": { - "line": 53, - "column": 16 - }, - "end": { - "line": 53, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1297, - "end": 1298, - "loc": { - "start": { - "line": 53, - "column": 25 - }, - "end": { - "line": 53, - "column": 26 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1302, - "end": 1307, - "loc": { - "start": { - "line": 55, - "column": 2 - }, - "end": { - "line": 55, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 1308, - "end": 1311, - "loc": { - "start": { - "line": 55, - "column": 8 - }, - "end": { - "line": 55, - "column": 11 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1312, - "end": 1313, - "loc": { - "start": { - "line": 55, - "column": 12 - }, - "end": { - "line": 55, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 1314, - "end": 1319, - "loc": { - "start": { - "line": 55, - "column": 14 - }, - "end": { - "line": 55, - "column": 19 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1319, - "end": 1320, - "loc": { - "start": { - "line": 55, - "column": 19 - }, - "end": { - "line": 55, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 1320, - "end": 1327, - "loc": { - "start": { - "line": 55, - "column": 20 - }, - "end": { - "line": 55, - "column": 27 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1327, - "end": 1328, - "loc": { - "start": { - "line": 55, - "column": 27 - }, - "end": { - "line": 55, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 1328, - "end": 1347, - "loc": { - "start": { - "line": 55, - "column": 28 - }, - "end": { - "line": 55, - "column": 47 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1347, - "end": 1348, - "loc": { - "start": { - "line": 55, - "column": 47 - }, - "end": { - "line": 55, - "column": 48 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1348, - "end": 1349, - "loc": { - "start": { - "line": 55, - "column": 48 - }, - "end": { - "line": 55, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 1354, - "end": 1360, - "loc": { - "start": { - "line": 56, - "column": 4 - }, - "end": { - "line": 56, - "column": 10 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1360, - "end": 1361, - "loc": { - "start": { - "line": 56, - "column": 10 - }, - "end": { - "line": 56, - "column": 11 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "GET", - "start": 1362, - "end": 1367, - "loc": { - "start": { - "line": 56, - "column": 12 - }, - "end": { - "line": 56, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1367, - "end": 1368, - "loc": { - "start": { - "line": 56, - "column": 17 - }, - "end": { - "line": 56, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 1373, - "end": 1386, - "loc": { - "start": { - "line": 57, - "column": 4 - }, - "end": { - "line": 57, - "column": 17 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1386, - "end": 1387, - "loc": { - "start": { - "line": 57, - "column": 17 - }, - "end": { - "line": 57, - "column": 18 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1388, - "end": 1389, - "loc": { - "start": { - "line": 57, - "column": 19 - }, - "end": { - "line": 57, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 1396, - "end": 1400, - "loc": { - "start": { - "line": 58, - "column": 6 - }, - "end": { - "line": 58, - "column": 10 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1400, - "end": 1401, - "loc": { - "start": { - "line": 58, - "column": 10 - }, - "end": { - "line": 58, - "column": 11 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 1402, - "end": 1410, - "loc": { - "start": { - "line": 58, - "column": 12 - }, - "end": { - "line": 58, - "column": 20 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1410, - "end": 1411, - "loc": { - "start": { - "line": 58, - "column": 20 - }, - "end": { - "line": 58, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 1418, - "end": 1423, - "loc": { - "start": { - "line": 59, - "column": 6 - }, - "end": { - "line": 59, - "column": 11 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1423, - "end": 1424, - "loc": { - "start": { - "line": 59, - "column": 11 - }, - "end": { - "line": 59, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "obj", - "start": 1425, - "end": 1428, - "loc": { - "start": { - "line": 59, - "column": 13 - }, - "end": { - "line": 59, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1428, - "end": 1429, - "loc": { - "start": { - "line": 59, - "column": 16 - }, - "end": { - "line": 59, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 1429, - "end": 1434, - "loc": { - "start": { - "line": 59, - "column": 17 - }, - "end": { - "line": 59, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1434, - "end": 1435, - "loc": { - "start": { - "line": 59, - "column": 22 - }, - "end": { - "line": 59, - "column": 23 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1440, - "end": 1441, - "loc": { - "start": { - "line": 60, - "column": 4 - }, - "end": { - "line": 60, - "column": 5 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1441, - "end": 1442, - "loc": { - "start": { - "line": 60, - "column": 5 - }, - "end": { - "line": 60, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 1447, - "end": 1451, - "loc": { - "start": { - "line": 61, - "column": 4 - }, - "end": { - "line": 61, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1451, - "end": 1452, - "loc": { - "start": { - "line": 61, - "column": 8 - }, - "end": { - "line": 61, - "column": 9 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1455, - "end": 1456, - "loc": { - "start": { - "line": 62, - "column": 2 - }, - "end": { - "line": 62, - "column": 3 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1456, - "end": 1457, - "loc": { - "start": { - "line": 62, - "column": 3 - }, - "end": { - "line": 62, - "column": 4 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1457, - "end": 1458, - "loc": { - "start": { - "line": 62, - "column": 4 - }, - "end": { - "line": 62, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 1459, - "end": 1474, - "loc": { - "start": { - "line": 62, - "column": 6 - }, - "end": { - "line": 62, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1474, - "end": 1475, - "loc": { - "start": { - "line": 62, - "column": 21 - }, - "end": { - "line": 62, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 1475, - "end": 1483, - "loc": { - "start": { - "line": 62, - "column": 22 - }, - "end": { - "line": 62, - "column": 30 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1483, - "end": 1484, - "loc": { - "start": { - "line": 62, - "column": 30 - }, - "end": { - "line": 62, - "column": 31 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1484, - "end": 1485, - "loc": { - "start": { - "line": 62, - "column": 31 - }, - "end": { - "line": 62, - "column": 32 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1485, - "end": 1486, - "loc": { - "start": { - "line": 62, - "column": 32 - }, - "end": { - "line": 62, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 1490, - "end": 1493, - "loc": { - "start": { - "line": 64, - "column": 2 - }, - "end": { - "line": 64, - "column": 5 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1493, - "end": 1494, - "loc": { - "start": { - "line": 64, - "column": 5 - }, - "end": { - "line": 64, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 1494, - "end": 1496, - "loc": { - "start": { - "line": 64, - "column": 6 - }, - "end": { - "line": 64, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1496, - "end": 1497, - "loc": { - "start": { - "line": 64, - "column": 8 - }, - "end": { - "line": 64, - "column": 9 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 1497, - "end": 1504, - "loc": { - "start": { - "line": 64, - "column": 9 - }, - "end": { - "line": 64, - "column": 16 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1504, - "end": 1505, - "loc": { - "start": { - "line": 64, - "column": 16 - }, - "end": { - "line": 64, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 1506, - "end": 1518, - "loc": { - "start": { - "line": 64, - "column": 18 - }, - "end": { - "line": 64, - "column": 30 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1518, - "end": 1519, - "loc": { - "start": { - "line": 64, - "column": 30 - }, - "end": { - "line": 64, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 1519, - "end": 1527, - "loc": { - "start": { - "line": 64, - "column": 31 - }, - "end": { - "line": 64, - "column": 39 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1527, - "end": 1528, - "loc": { - "start": { - "line": 64, - "column": 39 - }, - "end": { - "line": 64, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1528, - "end": 1529, - "loc": { - "start": { - "line": 64, - "column": 40 - }, - "end": { - "line": 64, - "column": 41 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1529, - "end": 1530, - "loc": { - "start": { - "line": 64, - "column": 41 - }, - "end": { - "line": 64, - "column": 42 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 1533, - "end": 1536, - "loc": { - "start": { - "line": 65, - "column": 2 - }, - "end": { - "line": 65, - "column": 5 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1536, - "end": 1537, - "loc": { - "start": { - "line": 65, - "column": 5 - }, - "end": { - "line": 65, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 1537, - "end": 1540, - "loc": { - "start": { - "line": 65, - "column": 6 - }, - "end": { - "line": 65, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1540, - "end": 1541, - "loc": { - "start": { - "line": 65, - "column": 9 - }, - "end": { - "line": 65, - "column": 10 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1541, - "end": 1542, - "loc": { - "start": { - "line": 65, - "column": 10 - }, - "end": { - "line": 65, - "column": 11 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1542, - "end": 1543, - "loc": { - "start": { - "line": 65, - "column": 11 - }, - "end": { - "line": 65, - "column": 12 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1544, - "end": 1545, - "loc": { - "start": { - "line": 66, - "column": 0 - }, - "end": { - "line": 66, - "column": 1 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1545, - "end": 1546, - "loc": { - "start": { - "line": 66, - "column": 1 - }, - "end": { - "line": 66, - "column": 2 - } - } - }, - { - "type": { - "label": "eof", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1547, - "end": 1547, - "loc": { - "start": { - "line": 67, - "column": 0 - }, - "end": { - "line": 67, - "column": 0 - } - } - } - ] -} \ No newline at end of file diff --git a/docs/ast/source/folder/index.js.json b/docs/ast/source/folder/index.js.json deleted file mode 100644 index ffb586fc..00000000 --- a/docs/ast/source/folder/index.js.json +++ /dev/null @@ -1,18048 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 1656, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 79, - "column": 0 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 1656, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 79, - "column": 0 - } - }, - "sourceType": "module", - "body": [ - { - "type": "ImportDeclaration", - "start": 14, - "end": 40, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 26 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - } - }, - "local": { - "type": "Identifier", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - }, - "identifierName": "https" - }, - "name": "https" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 18 - }, - "end": { - "line": 2, - "column": 25 - } - }, - "extra": { - "rawValue": "https", - "raw": "'https'" - }, - "value": "https" - } - }, - { - "type": "ImportDeclaration", - "start": 41, - "end": 127, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 7, - "column": 19 - } - }, - "specifiers": [ - { - "type": "ImportSpecifier", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - } - }, - "imported": { - "type": "Identifier", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "local": { - "type": "Identifier", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - } - }, - { - "type": "ImportSpecifier", - "start": 71, - "end": 83, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 14 - } - }, - "imported": { - "type": "Identifier", - "start": 71, - "end": 83, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 14 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "local": { - "type": "Identifier", - "start": 71, - "end": 83, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 14 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - } - }, - { - "type": "ImportSpecifier", - "start": 87, - "end": 106, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 21 - } - }, - "imported": { - "type": "Identifier", - "start": 87, - "end": 106, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 21 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "local": { - "type": "Identifier", - "start": 87, - "end": 106, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 21 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 115, - "end": 126, - "loc": { - "start": { - "line": 7, - "column": 7 - }, - "end": { - "line": 7, - "column": 18 - } - }, - "extra": { - "rawValue": "../common", - "raw": "'../common'" - }, - "value": "../common" - }, - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Folder methods\n ", - "start": 130, - "end": 155, - "loc": { - "start": { - "line": 10, - "column": 0 - }, - "end": { - "line": 12, - "column": 3 - } - } - } - ] - }, - { - "type": "Identifier", - "start": 156, - "end": 1631, - "loc": { - "start": { - "line": 13, - "column": 0 - }, - "end": { - "line": 76, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 162, - "end": 168, - "loc": { - "start": { - "line": 13, - "column": 6 - }, - "end": { - "line": 13, - "column": 12 - }, - "identifierName": "Folder" - }, - "name": "Folder", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 169, - "end": 1631, - "loc": { - "start": { - "line": 13, - "column": 13 - }, - "end": { - "line": 76, - "column": 1 - } - }, - "body": [ - { - "type": "ClassMethod", - "start": 192, - "end": 499, - "loc": { - "start": { - "line": 16, - "column": 2 - }, - "end": { - "line": 28, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 199, - "end": 203, - "loc": { - "start": { - "line": 16, - "column": 9 - }, - "end": { - "line": 16, - "column": 13 - }, - "identifierName": "list" - }, - "name": "list" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 205, - "end": 214, - "loc": { - "start": { - "line": 16, - "column": 15 - }, - "end": { - "line": 16, - "column": 24 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 207, - "end": 212, - "loc": { - "start": { - "line": 16, - "column": 17 - }, - "end": { - "line": 16, - "column": 22 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 207, - "end": 212, - "loc": { - "start": { - "line": 16, - "column": 17 - }, - "end": { - "line": 16, - "column": 22 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 207, - "end": 212, - "loc": { - "start": { - "line": 16, - "column": 17 - }, - "end": { - "line": 16, - "column": 22 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 216, - "end": 224, - "loc": { - "start": { - "line": 16, - "column": 26 - }, - "end": { - "line": 16, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 226, - "end": 499, - "loc": { - "start": { - "line": 16, - "column": 36 - }, - "end": { - "line": 28, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 232, - "end": 495, - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 27, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 232, - "end": 494, - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 27, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 232, - "end": 492, - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 27, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 232, - "end": 481, - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 26, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 232, - "end": 448, - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 26, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 232, - "end": 438, - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 25, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 232, - "end": 252, - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 18, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 232, - "end": 237, - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 17, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 245, - "end": 252, - "loc": { - "start": { - "line": 18, - "column": 7 - }, - "end": { - "line": 18, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 253, - "end": 410, - "loc": { - "start": { - "line": 18, - "column": 15 - }, - "end": { - "line": 25, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 253, - "end": 272, - "loc": { - "start": { - "line": 18, - "column": 15 - }, - "end": { - "line": 18, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 273, - "end": 409, - "loc": { - "start": { - "line": 18, - "column": 35 - }, - "end": { - "line": 25, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 283, - "end": 296, - "loc": { - "start": { - "line": 19, - "column": 8 - }, - "end": { - "line": 19, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 283, - "end": 289, - "loc": { - "start": { - "line": 19, - "column": 8 - }, - "end": { - "line": 19, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 291, - "end": 296, - "loc": { - "start": { - "line": 19, - "column": 16 - }, - "end": { - "line": 19, - "column": 21 - } - }, - "extra": { - "rawValue": "GET", - "raw": "'GET'" - }, - "value": "GET" - } - }, - { - "type": "ObjectProperty", - "start": 306, - "end": 321, - "loc": { - "start": { - "line": 20, - "column": 8 - }, - "end": { - "line": 20, - "column": 23 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 306, - "end": 310, - "loc": { - "start": { - "line": 20, - "column": 8 - }, - "end": { - "line": 20, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 312, - "end": 321, - "loc": { - "start": { - "line": 20, - "column": 14 - }, - "end": { - "line": 20, - "column": 23 - } - }, - "extra": { - "rawValue": "/folder", - "raw": "'/folder'" - }, - "value": "/folder" - } - }, - { - "type": "ObjectProperty", - "start": 331, - "end": 400, - "loc": { - "start": { - "line": 21, - "column": 8 - }, - "end": { - "line": 24, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 331, - "end": 344, - "loc": { - "start": { - "line": 21, - "column": 8 - }, - "end": { - "line": 21, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 346, - "end": 400, - "loc": { - "start": { - "line": 21, - "column": 23 - }, - "end": { - "line": 24, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 358, - "end": 372, - "loc": { - "start": { - "line": 22, - "column": 10 - }, - "end": { - "line": 22, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 358, - "end": 362, - "loc": { - "start": { - "line": 22, - "column": 10 - }, - "end": { - "line": 22, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 364, - "end": 372, - "loc": { - "start": { - "line": 22, - "column": 16 - }, - "end": { - "line": 22, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 384, - "end": 389, - "loc": { - "start": { - "line": 23, - "column": 10 - }, - "end": { - "line": 23, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 384, - "end": 389, - "loc": { - "start": { - "line": 23, - "column": 10 - }, - "end": { - "line": 23, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 384, - "end": 389, - "loc": { - "start": { - "line": 23, - "column": 10 - }, - "end": { - "line": 23, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 412, - "end": 437, - "loc": { - "start": { - "line": 25, - "column": 10 - }, - "end": { - "line": 25, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 412, - "end": 427, - "loc": { - "start": { - "line": 25, - "column": 10 - }, - "end": { - "line": 25, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 428, - "end": 436, - "loc": { - "start": { - "line": 25, - "column": 26 - }, - "end": { - "line": 25, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 446, - "end": 448, - "loc": { - "start": { - "line": 26, - "column": 7 - }, - "end": { - "line": 26, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 449, - "end": 456, - "loc": { - "start": { - "line": 26, - "column": 10 - }, - "end": { - "line": 26, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 458, - "end": 480, - "loc": { - "start": { - "line": 26, - "column": 19 - }, - "end": { - "line": 26, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 458, - "end": 470, - "loc": { - "start": { - "line": 26, - "column": 19 - }, - "end": { - "line": 26, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 471, - "end": 479, - "loc": { - "start": { - "line": 26, - "column": 32 - }, - "end": { - "line": 26, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 489, - "end": 492, - "loc": { - "start": { - "line": 27, - "column": 7 - }, - "end": { - "line": 27, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " list folders", - "start": 174, - "end": 189, - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 15, - "column": 17 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " get documents in a folder", - "start": 503, - "end": 531, - "loc": { - "start": { - "line": 30, - "column": 2 - }, - "end": { - "line": 30, - "column": 30 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 534, - "end": 1628, - "loc": { - "start": { - "line": 31, - "column": 2 - }, - "end": { - "line": 74, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 541, - "end": 550, - "loc": { - "start": { - "line": 31, - "column": 9 - }, - "end": { - "line": 31, - "column": 18 - }, - "identifierName": "documents" - }, - "name": "documents" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 552, - "end": 598, - "loc": { - "start": { - "line": 31, - "column": 20 - }, - "end": { - "line": 36, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 558, - "end": 560, - "loc": { - "start": { - "line": 32, - "column": 4 - }, - "end": { - "line": 32, - "column": 6 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 558, - "end": 560, - "loc": { - "start": { - "line": 32, - "column": 4 - }, - "end": { - "line": 32, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 558, - "end": 560, - "loc": { - "start": { - "line": 32, - "column": 4 - }, - "end": { - "line": 32, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 566, - "end": 572, - "loc": { - "start": { - "line": 33, - "column": 4 - }, - "end": { - "line": 33, - "column": 10 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 566, - "end": 572, - "loc": { - "start": { - "line": 33, - "column": 4 - }, - "end": { - "line": 33, - "column": 10 - }, - "identifierName": "filter" - }, - "name": "filter" - }, - "value": { - "type": "Identifier", - "start": 566, - "end": 572, - "loc": { - "start": { - "line": 33, - "column": 4 - }, - "end": { - "line": 33, - "column": 10 - }, - "identifierName": "filter" - }, - "name": "filter" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 578, - "end": 582, - "loc": { - "start": { - "line": 34, - "column": 4 - }, - "end": { - "line": 34, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 578, - "end": 582, - "loc": { - "start": { - "line": 34, - "column": 4 - }, - "end": { - "line": 34, - "column": 8 - }, - "identifierName": "sort" - }, - "name": "sort" - }, - "value": { - "type": "Identifier", - "start": 578, - "end": 582, - "loc": { - "start": { - "line": 34, - "column": 4 - }, - "end": { - "line": 34, - "column": 8 - }, - "identifierName": "sort" - }, - "name": "sort" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 588, - "end": 593, - "loc": { - "start": { - "line": 35, - "column": 4 - }, - "end": { - "line": 35, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 588, - "end": 593, - "loc": { - "start": { - "line": 35, - "column": 4 - }, - "end": { - "line": 35, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 588, - "end": 593, - "loc": { - "start": { - "line": 35, - "column": 4 - }, - "end": { - "line": 35, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 600, - "end": 608, - "loc": { - "start": { - "line": 36, - "column": 5 - }, - "end": { - "line": 36, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 610, - "end": 1628, - "loc": { - "start": { - "line": 36, - "column": 15 - }, - "end": { - "line": 74, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 616, - "end": 643, - "loc": { - "start": { - "line": 37, - "column": 4 - }, - "end": { - "line": 37, - "column": 31 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 620, - "end": 642, - "loc": { - "start": { - "line": 37, - "column": 8 - }, - "end": { - "line": 37, - "column": 30 - } - }, - "id": { - "type": "Identifier", - "start": 620, - "end": 624, - "loc": { - "start": { - "line": 37, - "column": 8 - }, - "end": { - "line": 37, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "init": { - "type": "TemplateLiteral", - "start": 627, - "end": 642, - "loc": { - "start": { - "line": 37, - "column": 15 - }, - "end": { - "line": 37, - "column": 30 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 638, - "end": 640, - "loc": { - "start": { - "line": 37, - "column": 26 - }, - "end": { - "line": 37, - "column": 28 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 628, - "end": 636, - "loc": { - "start": { - "line": 37, - "column": 16 - }, - "end": { - "line": 37, - "column": 24 - } - }, - "value": { - "raw": "/folder/", - "cooked": "/folder/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 641, - "end": 641, - "loc": { - "start": { - "line": 37, - "column": 29 - }, - "end": { - "line": 37, - "column": 29 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 648, - "end": 667, - "loc": { - "start": { - "line": 38, - "column": 4 - }, - "end": { - "line": 38, - "column": 23 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 652, - "end": 666, - "loc": { - "start": { - "line": 38, - "column": 8 - }, - "end": { - "line": 38, - "column": 22 - } - }, - "id": { - "type": "Identifier", - "start": 652, - "end": 661, - "loc": { - "start": { - "line": 38, - "column": 8 - }, - "end": { - "line": 38, - "column": 17 - }, - "identifierName": "URLParams" - }, - "name": "URLParams" - }, - "init": { - "type": "StringLiteral", - "start": 664, - "end": 666, - "loc": { - "start": { - "line": 38, - "column": 20 - }, - "end": { - "line": 38, - "column": 22 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - } - ], - "kind": "let", - "trailingComments": [ - { - "type": "CommentLine", - "value": " build filters if supplied", - "start": 673, - "end": 701, - "loc": { - "start": { - "line": 40, - "column": 4 - }, - "end": { - "line": 40, - "column": 32 - } - } - } - ] - }, - { - "type": "IfStatement", - "start": 706, - "end": 1091, - "loc": { - "start": { - "line": 41, - "column": 4 - }, - "end": { - "line": 49, - "column": 5 - } - }, - "test": { - "type": "LogicalExpression", - "start": 710, - "end": 752, - "loc": { - "start": { - "line": 41, - "column": 8 - }, - "end": { - "line": 41, - "column": 50 - } - }, - "left": { - "type": "CallExpression", - "start": 710, - "end": 731, - "loc": { - "start": { - "line": 41, - "column": 8 - }, - "end": { - "line": 41, - "column": 29 - } - }, - "callee": { - "type": "MemberExpression", - "start": 710, - "end": 723, - "loc": { - "start": { - "line": 41, - "column": 8 - }, - "end": { - "line": 41, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 710, - "end": 715, - "loc": { - "start": { - "line": 41, - "column": 8 - }, - "end": { - "line": 41, - "column": 13 - }, - "identifierName": "Array" - }, - "name": "Array", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 716, - "end": 723, - "loc": { - "start": { - "line": 41, - "column": 14 - }, - "end": { - "line": 41, - "column": 21 - }, - "identifierName": "isArray" - }, - "name": "isArray" - }, - "computed": false, - "leadingComments": null - }, - "arguments": [ - { - "type": "Identifier", - "start": 724, - "end": 730, - "loc": { - "start": { - "line": 41, - "column": 22 - }, - "end": { - "line": 41, - "column": 28 - }, - "identifierName": "filter" - }, - "name": "filter" - } - ], - "leadingComments": null - }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 735, - "end": 752, - "loc": { - "start": { - "line": 41, - "column": 33 - }, - "end": { - "line": 41, - "column": 50 - } - }, - "left": { - "type": "MemberExpression", - "start": 735, - "end": 748, - "loc": { - "start": { - "line": 41, - "column": 33 - }, - "end": { - "line": 41, - "column": 46 - } - }, - "object": { - "type": "Identifier", - "start": 735, - "end": 741, - "loc": { - "start": { - "line": 41, - "column": 33 - }, - "end": { - "line": 41, - "column": 39 - }, - "identifierName": "filter" - }, - "name": "filter" - }, - "property": { - "type": "Identifier", - "start": 742, - "end": 748, - "loc": { - "start": { - "line": 41, - "column": 40 - }, - "end": { - "line": 41, - "column": 46 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - }, - "operator": ">", - "right": { - "type": "NumericLiteral", - "start": 751, - "end": 752, - "loc": { - "start": { - "line": 41, - "column": 49 - }, - "end": { - "line": 41, - "column": 50 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - "leadingComments": null - }, - "consequent": { - "type": "BlockStatement", - "start": 754, - "end": 1091, - "loc": { - "start": { - "line": 41, - "column": 52 - }, - "end": { - "line": 49, - "column": 5 - } - }, - "body": [ - { - "type": "ForStatement", - "start": 762, - "end": 1085, - "loc": { - "start": { - "line": 42, - "column": 6 - }, - "end": { - "line": 48, - "column": 7 - } - }, - "init": { - "type": "VariableDeclaration", - "start": 767, - "end": 776, - "loc": { - "start": { - "line": 42, - "column": 11 - }, - "end": { - "line": 42, - "column": 20 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 771, - "end": 776, - "loc": { - "start": { - "line": 42, - "column": 15 - }, - "end": { - "line": 42, - "column": 20 - } - }, - "id": { - "type": "Identifier", - "start": 771, - "end": 772, - "loc": { - "start": { - "line": 42, - "column": 15 - }, - "end": { - "line": 42, - "column": 16 - }, - "identifierName": "i" - }, - "name": "i" - }, - "init": { - "type": "NumericLiteral", - "start": 775, - "end": 776, - "loc": { - "start": { - "line": 42, - "column": 19 - }, - "end": { - "line": 42, - "column": 20 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "kind": "let" - }, - "test": { - "type": "BinaryExpression", - "start": 778, - "end": 795, - "loc": { - "start": { - "line": 42, - "column": 22 - }, - "end": { - "line": 42, - "column": 39 - } - }, - "left": { - "type": "Identifier", - "start": 778, - "end": 779, - "loc": { - "start": { - "line": 42, - "column": 22 - }, - "end": { - "line": 42, - "column": 23 - }, - "identifierName": "i" - }, - "name": "i" - }, - "operator": "<", - "right": { - "type": "MemberExpression", - "start": 782, - "end": 795, - "loc": { - "start": { - "line": 42, - "column": 26 - }, - "end": { - "line": 42, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 782, - "end": 788, - "loc": { - "start": { - "line": 42, - "column": 26 - }, - "end": { - "line": 42, - "column": 32 - }, - "identifierName": "filter" - }, - "name": "filter" - }, - "property": { - "type": "Identifier", - "start": 789, - "end": 795, - "loc": { - "start": { - "line": 42, - "column": 33 - }, - "end": { - "line": 42, - "column": 39 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - } - }, - "update": { - "type": "UpdateExpression", - "start": 797, - "end": 800, - "loc": { - "start": { - "line": 42, - "column": 41 - }, - "end": { - "line": 42, - "column": 44 - } - }, - "operator": "++", - "prefix": false, - "argument": { - "type": "Identifier", - "start": 797, - "end": 798, - "loc": { - "start": { - "line": 42, - "column": 41 - }, - "end": { - "line": 42, - "column": 42 - }, - "identifierName": "i" - }, - "name": "i" - } - }, - "body": { - "type": "BlockStatement", - "start": 802, - "end": 1085, - "loc": { - "start": { - "line": 42, - "column": 46 - }, - "end": { - "line": 48, - "column": 7 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 812, - "end": 1077, - "loc": { - "start": { - "line": 43, - "column": 8 - }, - "end": { - "line": 47, - "column": 9 - } - }, - "test": { - "type": "BinaryExpression", - "start": 816, - "end": 823, - "loc": { - "start": { - "line": 43, - "column": 12 - }, - "end": { - "line": 43, - "column": 19 - } - }, - "left": { - "type": "Identifier", - "start": 816, - "end": 817, - "loc": { - "start": { - "line": 43, - "column": 12 - }, - "end": { - "line": 43, - "column": 13 - }, - "identifierName": "i" - }, - "name": "i" - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 822, - "end": 823, - "loc": { - "start": { - "line": 43, - "column": 18 - }, - "end": { - "line": 43, - "column": 19 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - "consequent": { - "type": "BlockStatement", - "start": 825, - "end": 948, - "loc": { - "start": { - "line": 43, - "column": 21 - }, - "end": { - "line": 45, - "column": 9 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 837, - "end": 938, - "loc": { - "start": { - "line": 44, - "column": 10 - }, - "end": { - "line": 44, - "column": 111 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 837, - "end": 937, - "loc": { - "start": { - "line": 44, - "column": 10 - }, - "end": { - "line": 44, - "column": 110 - } - }, - "operator": "+=", - "left": { - "type": "Identifier", - "start": 837, - "end": 846, - "loc": { - "start": { - "line": 44, - "column": 10 - }, - "end": { - "line": 44, - "column": 19 - }, - "identifierName": "URLParams" - }, - "name": "URLParams" - }, - "right": { - "type": "TemplateLiteral", - "start": 850, - "end": 937, - "loc": { - "start": { - "line": 44, - "column": 23 - }, - "end": { - "line": 44, - "column": 110 - } - }, - "expressions": [ - { - "type": "CallExpression", - "start": 862, - "end": 884, - "loc": { - "start": { - "line": 44, - "column": 35 - }, - "end": { - "line": 44, - "column": 57 - } - }, - "callee": { - "type": "MemberExpression", - "start": 862, - "end": 873, - "loc": { - "start": { - "line": 44, - "column": 35 - }, - "end": { - "line": 44, - "column": 46 - } - }, - "object": { - "type": "Identifier", - "start": 862, - "end": 868, - "loc": { - "start": { - "line": 44, - "column": 35 - }, - "end": { - "line": 44, - "column": 41 - }, - "identifierName": "Object" - }, - "name": "Object" - }, - "property": { - "type": "Identifier", - "start": 869, - "end": 873, - "loc": { - "start": { - "line": 44, - "column": 42 - }, - "end": { - "line": 44, - "column": 46 - }, - "identifierName": "keys" - }, - "name": "keys" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 874, - "end": 883, - "loc": { - "start": { - "line": 44, - "column": 47 - }, - "end": { - "line": 44, - "column": 56 - } - }, - "object": { - "type": "Identifier", - "start": 874, - "end": 880, - "loc": { - "start": { - "line": 44, - "column": 47 - }, - "end": { - "line": 44, - "column": 53 - }, - "identifierName": "filter" - }, - "name": "filter" - }, - "property": { - "type": "Identifier", - "start": 881, - "end": 882, - "loc": { - "start": { - "line": 44, - "column": 54 - }, - "end": { - "line": 44, - "column": 55 - }, - "identifierName": "i" - }, - "name": "i" - }, - "computed": true - } - ] - }, - { - "type": "MemberExpression", - "start": 902, - "end": 935, - "loc": { - "start": { - "line": 44, - "column": 75 - }, - "end": { - "line": 44, - "column": 108 - } - }, - "object": { - "type": "MemberExpression", - "start": 902, - "end": 911, - "loc": { - "start": { - "line": 44, - "column": 75 - }, - "end": { - "line": 44, - "column": 84 - } - }, - "object": { - "type": "Identifier", - "start": 902, - "end": 908, - "loc": { - "start": { - "line": 44, - "column": 75 - }, - "end": { - "line": 44, - "column": 81 - }, - "identifierName": "filter" - }, - "name": "filter" - }, - "property": { - "type": "Identifier", - "start": 909, - "end": 910, - "loc": { - "start": { - "line": 44, - "column": 82 - }, - "end": { - "line": 44, - "column": 83 - }, - "identifierName": "i" - }, - "name": "i" - }, - "computed": true - }, - "property": { - "type": "CallExpression", - "start": 912, - "end": 934, - "loc": { - "start": { - "line": 44, - "column": 85 - }, - "end": { - "line": 44, - "column": 107 - } - }, - "callee": { - "type": "MemberExpression", - "start": 912, - "end": 923, - "loc": { - "start": { - "line": 44, - "column": 85 - }, - "end": { - "line": 44, - "column": 96 - } - }, - "object": { - "type": "Identifier", - "start": 912, - "end": 918, - "loc": { - "start": { - "line": 44, - "column": 85 - }, - "end": { - "line": 44, - "column": 91 - }, - "identifierName": "Object" - }, - "name": "Object" - }, - "property": { - "type": "Identifier", - "start": 919, - "end": 923, - "loc": { - "start": { - "line": 44, - "column": 92 - }, - "end": { - "line": 44, - "column": 96 - }, - "identifierName": "keys" - }, - "name": "keys" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 924, - "end": 933, - "loc": { - "start": { - "line": 44, - "column": 97 - }, - "end": { - "line": 44, - "column": 106 - } - }, - "object": { - "type": "Identifier", - "start": 924, - "end": 930, - "loc": { - "start": { - "line": 44, - "column": 97 - }, - "end": { - "line": 44, - "column": 103 - }, - "identifierName": "filter" - }, - "name": "filter" - }, - "property": { - "type": "Identifier", - "start": 931, - "end": 932, - "loc": { - "start": { - "line": 44, - "column": 104 - }, - "end": { - "line": 44, - "column": 105 - }, - "identifierName": "i" - }, - "name": "i" - }, - "computed": true - } - ] - }, - "computed": true - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 851, - "end": 860, - "loc": { - "start": { - "line": 44, - "column": 24 - }, - "end": { - "line": 44, - "column": 33 - } - }, - "value": { - "raw": "?filters=", - "cooked": "?filters=" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 885, - "end": 900, - "loc": { - "start": { - "line": 44, - "column": 58 - }, - "end": { - "line": 44, - "column": 73 - } - }, - "value": { - "raw": "&filter-values=", - "cooked": "&filter-values=" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 936, - "end": 936, - "loc": { - "start": { - "line": 44, - "column": 109 - }, - "end": { - "line": 44, - "column": 109 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 954, - "end": 1077, - "loc": { - "start": { - "line": 45, - "column": 15 - }, - "end": { - "line": 47, - "column": 9 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 966, - "end": 1067, - "loc": { - "start": { - "line": 46, - "column": 10 - }, - "end": { - "line": 46, - "column": 111 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 966, - "end": 1066, - "loc": { - "start": { - "line": 46, - "column": 10 - }, - "end": { - "line": 46, - "column": 110 - } - }, - "operator": "+=", - "left": { - "type": "Identifier", - "start": 966, - "end": 975, - "loc": { - "start": { - "line": 46, - "column": 10 - }, - "end": { - "line": 46, - "column": 19 - }, - "identifierName": "URLParams" - }, - "name": "URLParams" - }, - "right": { - "type": "TemplateLiteral", - "start": 979, - "end": 1066, - "loc": { - "start": { - "line": 46, - "column": 23 - }, - "end": { - "line": 46, - "column": 110 - } - }, - "expressions": [ - { - "type": "CallExpression", - "start": 991, - "end": 1013, - "loc": { - "start": { - "line": 46, - "column": 35 - }, - "end": { - "line": 46, - "column": 57 - } - }, - "callee": { - "type": "MemberExpression", - "start": 991, - "end": 1002, - "loc": { - "start": { - "line": 46, - "column": 35 - }, - "end": { - "line": 46, - "column": 46 - } - }, - "object": { - "type": "Identifier", - "start": 991, - "end": 997, - "loc": { - "start": { - "line": 46, - "column": 35 - }, - "end": { - "line": 46, - "column": 41 - }, - "identifierName": "Object" - }, - "name": "Object" - }, - "property": { - "type": "Identifier", - "start": 998, - "end": 1002, - "loc": { - "start": { - "line": 46, - "column": 42 - }, - "end": { - "line": 46, - "column": 46 - }, - "identifierName": "keys" - }, - "name": "keys" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 1003, - "end": 1012, - "loc": { - "start": { - "line": 46, - "column": 47 - }, - "end": { - "line": 46, - "column": 56 - } - }, - "object": { - "type": "Identifier", - "start": 1003, - "end": 1009, - "loc": { - "start": { - "line": 46, - "column": 47 - }, - "end": { - "line": 46, - "column": 53 - }, - "identifierName": "filter" - }, - "name": "filter" - }, - "property": { - "type": "Identifier", - "start": 1010, - "end": 1011, - "loc": { - "start": { - "line": 46, - "column": 54 - }, - "end": { - "line": 46, - "column": 55 - }, - "identifierName": "i" - }, - "name": "i" - }, - "computed": true - } - ] - }, - { - "type": "MemberExpression", - "start": 1031, - "end": 1064, - "loc": { - "start": { - "line": 46, - "column": 75 - }, - "end": { - "line": 46, - "column": 108 - } - }, - "object": { - "type": "MemberExpression", - "start": 1031, - "end": 1040, - "loc": { - "start": { - "line": 46, - "column": 75 - }, - "end": { - "line": 46, - "column": 84 - } - }, - "object": { - "type": "Identifier", - "start": 1031, - "end": 1037, - "loc": { - "start": { - "line": 46, - "column": 75 - }, - "end": { - "line": 46, - "column": 81 - }, - "identifierName": "filter" - }, - "name": "filter" - }, - "property": { - "type": "Identifier", - "start": 1038, - "end": 1039, - "loc": { - "start": { - "line": 46, - "column": 82 - }, - "end": { - "line": 46, - "column": 83 - }, - "identifierName": "i" - }, - "name": "i" - }, - "computed": true - }, - "property": { - "type": "CallExpression", - "start": 1041, - "end": 1063, - "loc": { - "start": { - "line": 46, - "column": 85 - }, - "end": { - "line": 46, - "column": 107 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1041, - "end": 1052, - "loc": { - "start": { - "line": 46, - "column": 85 - }, - "end": { - "line": 46, - "column": 96 - } - }, - "object": { - "type": "Identifier", - "start": 1041, - "end": 1047, - "loc": { - "start": { - "line": 46, - "column": 85 - }, - "end": { - "line": 46, - "column": 91 - }, - "identifierName": "Object" - }, - "name": "Object" - }, - "property": { - "type": "Identifier", - "start": 1048, - "end": 1052, - "loc": { - "start": { - "line": 46, - "column": 92 - }, - "end": { - "line": 46, - "column": 96 - }, - "identifierName": "keys" - }, - "name": "keys" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 1053, - "end": 1062, - "loc": { - "start": { - "line": 46, - "column": 97 - }, - "end": { - "line": 46, - "column": 106 - } - }, - "object": { - "type": "Identifier", - "start": 1053, - "end": 1059, - "loc": { - "start": { - "line": 46, - "column": 97 - }, - "end": { - "line": 46, - "column": 103 - }, - "identifierName": "filter" - }, - "name": "filter" - }, - "property": { - "type": "Identifier", - "start": 1060, - "end": 1061, - "loc": { - "start": { - "line": 46, - "column": 104 - }, - "end": { - "line": 46, - "column": 105 - }, - "identifierName": "i" - }, - "name": "i" - }, - "computed": true - } - ] - }, - "computed": true - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 980, - "end": 989, - "loc": { - "start": { - "line": 46, - "column": 24 - }, - "end": { - "line": 46, - "column": 33 - } - }, - "value": { - "raw": "&filters=", - "cooked": "&filters=" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 1014, - "end": 1029, - "loc": { - "start": { - "line": 46, - "column": 58 - }, - "end": { - "line": 46, - "column": 73 - } - }, - "value": { - "raw": "&filter-values=", - "cooked": "&filter-values=" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 1065, - "end": 1065, - "loc": { - "start": { - "line": 46, - "column": 109 - }, - "end": { - "line": 46, - "column": 109 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "alternate": null, - "leadingComments": [ - { - "type": "CommentLine", - "value": " build filters if supplied", - "start": 673, - "end": 701, - "loc": { - "start": { - "line": 40, - "column": 4 - }, - "end": { - "line": 40, - "column": 32 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " build sort if supplied", - "start": 1097, - "end": 1122, - "loc": { - "start": { - "line": 51, - "column": 4 - }, - "end": { - "line": 51, - "column": 29 - } - } - } - ] - }, - { - "type": "IfStatement", - "start": 1127, - "end": 1336, - "loc": { - "start": { - "line": 52, - "column": 4 - }, - "end": { - "line": 59, - "column": 5 - } - }, - "test": { - "type": "Identifier", - "start": 1131, - "end": 1135, - "loc": { - "start": { - "line": 52, - "column": 8 - }, - "end": { - "line": 52, - "column": 12 - }, - "identifierName": "sort" - }, - "name": "sort", - "leadingComments": null - }, - "consequent": { - "type": "BlockStatement", - "start": 1137, - "end": 1336, - "loc": { - "start": { - "line": 52, - "column": 14 - }, - "end": { - "line": 59, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 1145, - "end": 1247, - "loc": { - "start": { - "line": 53, - "column": 6 - }, - "end": { - "line": 57, - "column": 7 - } - }, - "test": { - "type": "BinaryExpression", - "start": 1149, - "end": 1169, - "loc": { - "start": { - "line": 53, - "column": 10 - }, - "end": { - "line": 53, - "column": 30 - } - }, - "left": { - "type": "MemberExpression", - "start": 1149, - "end": 1165, - "loc": { - "start": { - "line": 53, - "column": 10 - }, - "end": { - "line": 53, - "column": 26 - } - }, - "object": { - "type": "Identifier", - "start": 1149, - "end": 1158, - "loc": { - "start": { - "line": 53, - "column": 10 - }, - "end": { - "line": 53, - "column": 19 - }, - "identifierName": "URLParams" - }, - "name": "URLParams" - }, - "property": { - "type": "Identifier", - "start": 1159, - "end": 1165, - "loc": { - "start": { - "line": 53, - "column": 20 - }, - "end": { - "line": 53, - "column": 26 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - }, - "operator": ">", - "right": { - "type": "NumericLiteral", - "start": 1168, - "end": 1169, - "loc": { - "start": { - "line": 53, - "column": 29 - }, - "end": { - "line": 53, - "column": 30 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - "consequent": { - "type": "BlockStatement", - "start": 1171, - "end": 1206, - "loc": { - "start": { - "line": 53, - "column": 32 - }, - "end": { - "line": 55, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1181, - "end": 1198, - "loc": { - "start": { - "line": 54, - "column": 8 - }, - "end": { - "line": 54, - "column": 25 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 1181, - "end": 1197, - "loc": { - "start": { - "line": 54, - "column": 8 - }, - "end": { - "line": 54, - "column": 24 - } - }, - "operator": "+=", - "left": { - "type": "Identifier", - "start": 1181, - "end": 1190, - "loc": { - "start": { - "line": 54, - "column": 8 - }, - "end": { - "line": 54, - "column": 17 - }, - "identifierName": "URLParams" - }, - "name": "URLParams" - }, - "right": { - "type": "StringLiteral", - "start": 1194, - "end": 1197, - "loc": { - "start": { - "line": 54, - "column": 21 - }, - "end": { - "line": 54, - "column": 24 - } - }, - "extra": { - "rawValue": "&", - "raw": "'&'" - }, - "value": "&" - } - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 1212, - "end": 1247, - "loc": { - "start": { - "line": 55, - "column": 13 - }, - "end": { - "line": 57, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1222, - "end": 1239, - "loc": { - "start": { - "line": 56, - "column": 8 - }, - "end": { - "line": 56, - "column": 25 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 1222, - "end": 1238, - "loc": { - "start": { - "line": 56, - "column": 8 - }, - "end": { - "line": 56, - "column": 24 - } - }, - "operator": "+=", - "left": { - "type": "Identifier", - "start": 1222, - "end": 1231, - "loc": { - "start": { - "line": 56, - "column": 8 - }, - "end": { - "line": 56, - "column": 17 - }, - "identifierName": "URLParams" - }, - "name": "URLParams" - }, - "right": { - "type": "StringLiteral", - "start": 1235, - "end": 1238, - "loc": { - "start": { - "line": 56, - "column": 21 - }, - "end": { - "line": 56, - "column": 24 - } - }, - "extra": { - "rawValue": "?", - "raw": "'?'" - }, - "value": "?" - } - } - } - ], - "directives": [] - } - }, - { - "type": "ExpressionStatement", - "start": 1254, - "end": 1330, - "loc": { - "start": { - "line": 58, - "column": 6 - }, - "end": { - "line": 58, - "column": 82 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 1254, - "end": 1329, - "loc": { - "start": { - "line": 58, - "column": 6 - }, - "end": { - "line": 58, - "column": 81 - } - }, - "operator": "+=", - "left": { - "type": "Identifier", - "start": 1254, - "end": 1263, - "loc": { - "start": { - "line": 58, - "column": 6 - }, - "end": { - "line": 58, - "column": 15 - }, - "identifierName": "URLParams" - }, - "name": "URLParams" - }, - "right": { - "type": "TemplateLiteral", - "start": 1267, - "end": 1329, - "loc": { - "start": { - "line": 58, - "column": 19 - }, - "end": { - "line": 58, - "column": 81 - } - }, - "expressions": [ - { - "type": "CallExpression", - "start": 1277, - "end": 1294, - "loc": { - "start": { - "line": 58, - "column": 29 - }, - "end": { - "line": 58, - "column": 46 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1277, - "end": 1288, - "loc": { - "start": { - "line": 58, - "column": 29 - }, - "end": { - "line": 58, - "column": 40 - } - }, - "object": { - "type": "Identifier", - "start": 1277, - "end": 1283, - "loc": { - "start": { - "line": 58, - "column": 29 - }, - "end": { - "line": 58, - "column": 35 - }, - "identifierName": "Object" - }, - "name": "Object" - }, - "property": { - "type": "Identifier", - "start": 1284, - "end": 1288, - "loc": { - "start": { - "line": 58, - "column": 36 - }, - "end": { - "line": 58, - "column": 40 - }, - "identifierName": "keys" - }, - "name": "keys" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1289, - "end": 1293, - "loc": { - "start": { - "line": 58, - "column": 41 - }, - "end": { - "line": 58, - "column": 45 - }, - "identifierName": "sort" - }, - "name": "sort" - } - ] - }, - { - "type": "MemberExpression", - "start": 1304, - "end": 1327, - "loc": { - "start": { - "line": 58, - "column": 56 - }, - "end": { - "line": 58, - "column": 79 - } - }, - "object": { - "type": "Identifier", - "start": 1304, - "end": 1308, - "loc": { - "start": { - "line": 58, - "column": 56 - }, - "end": { - "line": 58, - "column": 60 - }, - "identifierName": "sort" - }, - "name": "sort" - }, - "property": { - "type": "CallExpression", - "start": 1309, - "end": 1326, - "loc": { - "start": { - "line": 58, - "column": 61 - }, - "end": { - "line": 58, - "column": 78 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1309, - "end": 1320, - "loc": { - "start": { - "line": 58, - "column": 61 - }, - "end": { - "line": 58, - "column": 72 - } - }, - "object": { - "type": "Identifier", - "start": 1309, - "end": 1315, - "loc": { - "start": { - "line": 58, - "column": 61 - }, - "end": { - "line": 58, - "column": 67 - }, - "identifierName": "Object" - }, - "name": "Object" - }, - "property": { - "type": "Identifier", - "start": 1316, - "end": 1320, - "loc": { - "start": { - "line": 58, - "column": 68 - }, - "end": { - "line": 58, - "column": 72 - }, - "identifierName": "keys" - }, - "name": "keys" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1321, - "end": 1325, - "loc": { - "start": { - "line": 58, - "column": 73 - }, - "end": { - "line": 58, - "column": 77 - }, - "identifierName": "sort" - }, - "name": "sort" - } - ] - }, - "computed": true - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 1268, - "end": 1275, - "loc": { - "start": { - "line": 58, - "column": 20 - }, - "end": { - "line": 58, - "column": 27 - } - }, - "value": { - "raw": "sortby=", - "cooked": "sortby=" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 1295, - "end": 1302, - "loc": { - "start": { - "line": 58, - "column": 47 - }, - "end": { - "line": 58, - "column": 54 - } - }, - "value": { - "raw": "&order=", - "cooked": "&order=" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 1328, - "end": 1328, - "loc": { - "start": { - "line": 58, - "column": 80 - }, - "end": { - "line": 58, - "column": 80 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - } - } - ], - "directives": [] - }, - "alternate": null, - "leadingComments": [ - { - "type": "CommentLine", - "value": " build sort if supplied", - "start": 1097, - "end": 1122, - "loc": { - "start": { - "line": 51, - "column": 4 - }, - "end": { - "line": 51, - "column": 29 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 1342, - "end": 1366, - "loc": { - "start": { - "line": 61, - "column": 4 - }, - "end": { - "line": 61, - "column": 28 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 1342, - "end": 1365, - "loc": { - "start": { - "line": 61, - "column": 4 - }, - "end": { - "line": 61, - "column": 27 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 1342, - "end": 1346, - "loc": { - "start": { - "line": 61, - "column": 4 - }, - "end": { - "line": 61, - "column": 8 - }, - "identifierName": "path" - }, - "name": "path" - }, - "right": { - "type": "BinaryExpression", - "start": 1349, - "end": 1365, - "loc": { - "start": { - "line": 61, - "column": 11 - }, - "end": { - "line": 61, - "column": 27 - } - }, - "left": { - "type": "Identifier", - "start": 1349, - "end": 1353, - "loc": { - "start": { - "line": 61, - "column": 11 - }, - "end": { - "line": 61, - "column": 15 - }, - "identifierName": "path" - }, - "name": "path" - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 1356, - "end": 1365, - "loc": { - "start": { - "line": 61, - "column": 18 - }, - "end": { - "line": 61, - "column": 27 - }, - "identifierName": "URLParams" - }, - "name": "URLParams" - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 1372, - "end": 1624, - "loc": { - "start": { - "line": 63, - "column": 4 - }, - "end": { - "line": 73, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 1372, - "end": 1623, - "loc": { - "start": { - "line": 63, - "column": 4 - }, - "end": { - "line": 73, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1372, - "end": 1621, - "loc": { - "start": { - "line": 63, - "column": 4 - }, - "end": { - "line": 73, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 1372, - "end": 1610, - "loc": { - "start": { - "line": 63, - "column": 4 - }, - "end": { - "line": 72, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1372, - "end": 1577, - "loc": { - "start": { - "line": 63, - "column": 4 - }, - "end": { - "line": 72, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 1372, - "end": 1567, - "loc": { - "start": { - "line": 63, - "column": 4 - }, - "end": { - "line": 71, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1372, - "end": 1392, - "loc": { - "start": { - "line": 63, - "column": 4 - }, - "end": { - "line": 64, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 1372, - "end": 1377, - "loc": { - "start": { - "line": 63, - "column": 4 - }, - "end": { - "line": 63, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 1385, - "end": 1392, - "loc": { - "start": { - "line": 64, - "column": 7 - }, - "end": { - "line": 64, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 1393, - "end": 1539, - "loc": { - "start": { - "line": 64, - "column": 15 - }, - "end": { - "line": 71, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 1393, - "end": 1412, - "loc": { - "start": { - "line": 64, - "column": 15 - }, - "end": { - "line": 64, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 1413, - "end": 1538, - "loc": { - "start": { - "line": 64, - "column": 35 - }, - "end": { - "line": 71, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1423, - "end": 1436, - "loc": { - "start": { - "line": 65, - "column": 8 - }, - "end": { - "line": 65, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1423, - "end": 1429, - "loc": { - "start": { - "line": 65, - "column": 8 - }, - "end": { - "line": 65, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 1431, - "end": 1436, - "loc": { - "start": { - "line": 65, - "column": 16 - }, - "end": { - "line": 65, - "column": 21 - } - }, - "extra": { - "rawValue": "GET", - "raw": "'GET'" - }, - "value": "GET" - } - }, - { - "type": "ObjectProperty", - "start": 1446, - "end": 1515, - "loc": { - "start": { - "line": 66, - "column": 8 - }, - "end": { - "line": 69, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1446, - "end": 1459, - "loc": { - "start": { - "line": 66, - "column": 8 - }, - "end": { - "line": 66, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 1461, - "end": 1515, - "loc": { - "start": { - "line": 66, - "column": 23 - }, - "end": { - "line": 69, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1473, - "end": 1487, - "loc": { - "start": { - "line": 67, - "column": 10 - }, - "end": { - "line": 67, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1473, - "end": 1477, - "loc": { - "start": { - "line": 67, - "column": 10 - }, - "end": { - "line": 67, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 1479, - "end": 1487, - "loc": { - "start": { - "line": 67, - "column": 16 - }, - "end": { - "line": 67, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 1499, - "end": 1504, - "loc": { - "start": { - "line": 68, - "column": 10 - }, - "end": { - "line": 68, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1499, - "end": 1504, - "loc": { - "start": { - "line": 68, - "column": 10 - }, - "end": { - "line": 68, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 1499, - "end": 1504, - "loc": { - "start": { - "line": 68, - "column": 10 - }, - "end": { - "line": 68, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 1525, - "end": 1529, - "loc": { - "start": { - "line": 70, - "column": 8 - }, - "end": { - "line": 70, - "column": 12 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1525, - "end": 1529, - "loc": { - "start": { - "line": 70, - "column": 8 - }, - "end": { - "line": 70, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "Identifier", - "start": 1525, - "end": 1529, - "loc": { - "start": { - "line": 70, - "column": 8 - }, - "end": { - "line": 70, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 1541, - "end": 1566, - "loc": { - "start": { - "line": 71, - "column": 10 - }, - "end": { - "line": 71, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 1541, - "end": 1556, - "loc": { - "start": { - "line": 71, - "column": 10 - }, - "end": { - "line": 71, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1557, - "end": 1565, - "loc": { - "start": { - "line": 71, - "column": 26 - }, - "end": { - "line": 71, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 1575, - "end": 1577, - "loc": { - "start": { - "line": 72, - "column": 7 - }, - "end": { - "line": 72, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 1578, - "end": 1585, - "loc": { - "start": { - "line": 72, - "column": 10 - }, - "end": { - "line": 72, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 1587, - "end": 1609, - "loc": { - "start": { - "line": 72, - "column": 19 - }, - "end": { - "line": 72, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 1587, - "end": 1599, - "loc": { - "start": { - "line": 72, - "column": 19 - }, - "end": { - "line": 72, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1600, - "end": 1608, - "loc": { - "start": { - "line": 72, - "column": 32 - }, - "end": { - "line": 72, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 1618, - "end": 1621, - "loc": { - "start": { - "line": 73, - "column": 7 - }, - "end": { - "line": 73, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " get documents in a folder", - "start": 503, - "end": 531, - "loc": { - "start": { - "line": 30, - "column": 2 - }, - "end": { - "line": 30, - "column": 30 - } - } - } - ] - } - ] - }, - "leadingComments": [], - "name": "_", - "trailingComments": [] - }, - { - "type": "Identifier", - "start": 1633, - "end": 1655, - "loc": { - "start": { - "line": 78, - "column": 0 - }, - "end": { - "line": 78, - "column": 22 - } - }, - "declaration": { - "type": "Identifier", - "start": 1648, - "end": 1654, - "loc": { - "start": { - "line": 78, - "column": 15 - }, - "end": { - "line": 78, - "column": 21 - }, - "identifierName": "Folder" - }, - "name": "Folder" - }, - "name": "_", - "leadingComments": [], - "trailingComments": [] - }, - { - "type": "ExportDefaultDeclaration", - "start": 1633, - "end": 1655, - "loc": { - "start": { - "line": 78, - "column": 0 - }, - "end": { - "line": 78, - "column": 22 - } - }, - "declaration": { - "type": "ClassDeclaration", - "start": 156, - "end": 1631, - "loc": { - "start": { - "line": 13, - "column": 0 - }, - "end": { - "line": 76, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 162, - "end": 168, - "loc": { - "start": { - "line": 13, - "column": 6 - }, - "end": { - "line": 13, - "column": 12 - }, - "identifierName": "Folder" - }, - "name": "Folder", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 169, - "end": 1631, - "loc": { - "start": { - "line": 13, - "column": 13 - }, - "end": { - "line": 76, - "column": 1 - } - }, - "body": [ - { - "type": "ClassMethod", - "start": 192, - "end": 499, - "loc": { - "start": { - "line": 16, - "column": 2 - }, - "end": { - "line": 28, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 199, - "end": 203, - "loc": { - "start": { - "line": 16, - "column": 9 - }, - "end": { - "line": 16, - "column": 13 - }, - "identifierName": "list" - }, - "name": "list" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 205, - "end": 214, - "loc": { - "start": { - "line": 16, - "column": 15 - }, - "end": { - "line": 16, - "column": 24 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 207, - "end": 212, - "loc": { - "start": { - "line": 16, - "column": 17 - }, - "end": { - "line": 16, - "column": 22 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 207, - "end": 212, - "loc": { - "start": { - "line": 16, - "column": 17 - }, - "end": { - "line": 16, - "column": 22 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 207, - "end": 212, - "loc": { - "start": { - "line": 16, - "column": 17 - }, - "end": { - "line": 16, - "column": 22 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 216, - "end": 224, - "loc": { - "start": { - "line": 16, - "column": 26 - }, - "end": { - "line": 16, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 226, - "end": 499, - "loc": { - "start": { - "line": 16, - "column": 36 - }, - "end": { - "line": 28, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 232, - "end": 495, - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 27, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 232, - "end": 494, - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 27, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 232, - "end": 492, - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 27, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 232, - "end": 481, - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 26, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 232, - "end": 448, - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 26, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 232, - "end": 438, - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 25, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 232, - "end": 252, - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 18, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 232, - "end": 237, - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 17, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 245, - "end": 252, - "loc": { - "start": { - "line": 18, - "column": 7 - }, - "end": { - "line": 18, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 253, - "end": 410, - "loc": { - "start": { - "line": 18, - "column": 15 - }, - "end": { - "line": 25, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 253, - "end": 272, - "loc": { - "start": { - "line": 18, - "column": 15 - }, - "end": { - "line": 18, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 273, - "end": 409, - "loc": { - "start": { - "line": 18, - "column": 35 - }, - "end": { - "line": 25, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 283, - "end": 296, - "loc": { - "start": { - "line": 19, - "column": 8 - }, - "end": { - "line": 19, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 283, - "end": 289, - "loc": { - "start": { - "line": 19, - "column": 8 - }, - "end": { - "line": 19, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 291, - "end": 296, - "loc": { - "start": { - "line": 19, - "column": 16 - }, - "end": { - "line": 19, - "column": 21 - } - }, - "extra": { - "rawValue": "GET", - "raw": "'GET'" - }, - "value": "GET" - } - }, - { - "type": "ObjectProperty", - "start": 306, - "end": 321, - "loc": { - "start": { - "line": 20, - "column": 8 - }, - "end": { - "line": 20, - "column": 23 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 306, - "end": 310, - "loc": { - "start": { - "line": 20, - "column": 8 - }, - "end": { - "line": 20, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 312, - "end": 321, - "loc": { - "start": { - "line": 20, - "column": 14 - }, - "end": { - "line": 20, - "column": 23 - } - }, - "extra": { - "rawValue": "/folder", - "raw": "'/folder'" - }, - "value": "/folder" - } - }, - { - "type": "ObjectProperty", - "start": 331, - "end": 400, - "loc": { - "start": { - "line": 21, - "column": 8 - }, - "end": { - "line": 24, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 331, - "end": 344, - "loc": { - "start": { - "line": 21, - "column": 8 - }, - "end": { - "line": 21, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 346, - "end": 400, - "loc": { - "start": { - "line": 21, - "column": 23 - }, - "end": { - "line": 24, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 358, - "end": 372, - "loc": { - "start": { - "line": 22, - "column": 10 - }, - "end": { - "line": 22, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 358, - "end": 362, - "loc": { - "start": { - "line": 22, - "column": 10 - }, - "end": { - "line": 22, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 364, - "end": 372, - "loc": { - "start": { - "line": 22, - "column": 16 - }, - "end": { - "line": 22, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 384, - "end": 389, - "loc": { - "start": { - "line": 23, - "column": 10 - }, - "end": { - "line": 23, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 384, - "end": 389, - "loc": { - "start": { - "line": 23, - "column": 10 - }, - "end": { - "line": 23, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 384, - "end": 389, - "loc": { - "start": { - "line": 23, - "column": 10 - }, - "end": { - "line": 23, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 412, - "end": 437, - "loc": { - "start": { - "line": 25, - "column": 10 - }, - "end": { - "line": 25, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 412, - "end": 427, - "loc": { - "start": { - "line": 25, - "column": 10 - }, - "end": { - "line": 25, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 428, - "end": 436, - "loc": { - "start": { - "line": 25, - "column": 26 - }, - "end": { - "line": 25, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 446, - "end": 448, - "loc": { - "start": { - "line": 26, - "column": 7 - }, - "end": { - "line": 26, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 449, - "end": 456, - "loc": { - "start": { - "line": 26, - "column": 10 - }, - "end": { - "line": 26, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 458, - "end": 480, - "loc": { - "start": { - "line": 26, - "column": 19 - }, - "end": { - "line": 26, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 458, - "end": 470, - "loc": { - "start": { - "line": 26, - "column": 19 - }, - "end": { - "line": 26, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 471, - "end": 479, - "loc": { - "start": { - "line": 26, - "column": 32 - }, - "end": { - "line": 26, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 489, - "end": 492, - "loc": { - "start": { - "line": 27, - "column": 7 - }, - "end": { - "line": 27, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " list folders", - "start": 174, - "end": 189, - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 15, - "column": 17 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " get documents in a folder", - "start": 503, - "end": 531, - "loc": { - "start": { - "line": 30, - "column": 2 - }, - "end": { - "line": 30, - "column": 30 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 534, - "end": 1628, - "loc": { - "start": { - "line": 31, - "column": 2 - }, - "end": { - "line": 74, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 541, - "end": 550, - "loc": { - "start": { - "line": 31, - "column": 9 - }, - "end": { - "line": 31, - "column": 18 - }, - "identifierName": "documents" - }, - "name": "documents" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 552, - "end": 598, - "loc": { - "start": { - "line": 31, - "column": 20 - }, - "end": { - "line": 36, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 558, - "end": 560, - "loc": { - "start": { - "line": 32, - "column": 4 - }, - "end": { - "line": 32, - "column": 6 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 558, - "end": 560, - "loc": { - "start": { - "line": 32, - "column": 4 - }, - "end": { - "line": 32, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 558, - "end": 560, - "loc": { - "start": { - "line": 32, - "column": 4 - }, - "end": { - "line": 32, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 566, - "end": 572, - "loc": { - "start": { - "line": 33, - "column": 4 - }, - "end": { - "line": 33, - "column": 10 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 566, - "end": 572, - "loc": { - "start": { - "line": 33, - "column": 4 - }, - "end": { - "line": 33, - "column": 10 - }, - "identifierName": "filter" - }, - "name": "filter" - }, - "value": { - "type": "Identifier", - "start": 566, - "end": 572, - "loc": { - "start": { - "line": 33, - "column": 4 - }, - "end": { - "line": 33, - "column": 10 - }, - "identifierName": "filter" - }, - "name": "filter" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 578, - "end": 582, - "loc": { - "start": { - "line": 34, - "column": 4 - }, - "end": { - "line": 34, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 578, - "end": 582, - "loc": { - "start": { - "line": 34, - "column": 4 - }, - "end": { - "line": 34, - "column": 8 - }, - "identifierName": "sort" - }, - "name": "sort" - }, - "value": { - "type": "Identifier", - "start": 578, - "end": 582, - "loc": { - "start": { - "line": 34, - "column": 4 - }, - "end": { - "line": 34, - "column": 8 - }, - "identifierName": "sort" - }, - "name": "sort" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 588, - "end": 593, - "loc": { - "start": { - "line": 35, - "column": 4 - }, - "end": { - "line": 35, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 588, - "end": 593, - "loc": { - "start": { - "line": 35, - "column": 4 - }, - "end": { - "line": 35, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 588, - "end": 593, - "loc": { - "start": { - "line": 35, - "column": 4 - }, - "end": { - "line": 35, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 600, - "end": 608, - "loc": { - "start": { - "line": 36, - "column": 5 - }, - "end": { - "line": 36, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 610, - "end": 1628, - "loc": { - "start": { - "line": 36, - "column": 15 - }, - "end": { - "line": 74, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 616, - "end": 643, - "loc": { - "start": { - "line": 37, - "column": 4 - }, - "end": { - "line": 37, - "column": 31 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 620, - "end": 642, - "loc": { - "start": { - "line": 37, - "column": 8 - }, - "end": { - "line": 37, - "column": 30 - } - }, - "id": { - "type": "Identifier", - "start": 620, - "end": 624, - "loc": { - "start": { - "line": 37, - "column": 8 - }, - "end": { - "line": 37, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "init": { - "type": "TemplateLiteral", - "start": 627, - "end": 642, - "loc": { - "start": { - "line": 37, - "column": 15 - }, - "end": { - "line": 37, - "column": 30 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 638, - "end": 640, - "loc": { - "start": { - "line": 37, - "column": 26 - }, - "end": { - "line": 37, - "column": 28 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 628, - "end": 636, - "loc": { - "start": { - "line": 37, - "column": 16 - }, - "end": { - "line": 37, - "column": 24 - } - }, - "value": { - "raw": "/folder/", - "cooked": "/folder/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 641, - "end": 641, - "loc": { - "start": { - "line": 37, - "column": 29 - }, - "end": { - "line": 37, - "column": 29 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 648, - "end": 667, - "loc": { - "start": { - "line": 38, - "column": 4 - }, - "end": { - "line": 38, - "column": 23 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 652, - "end": 666, - "loc": { - "start": { - "line": 38, - "column": 8 - }, - "end": { - "line": 38, - "column": 22 - } - }, - "id": { - "type": "Identifier", - "start": 652, - "end": 661, - "loc": { - "start": { - "line": 38, - "column": 8 - }, - "end": { - "line": 38, - "column": 17 - }, - "identifierName": "URLParams" - }, - "name": "URLParams" - }, - "init": { - "type": "StringLiteral", - "start": 664, - "end": 666, - "loc": { - "start": { - "line": 38, - "column": 20 - }, - "end": { - "line": 38, - "column": 22 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - } - ], - "kind": "let", - "trailingComments": [ - { - "type": "CommentLine", - "value": " build filters if supplied", - "start": 673, - "end": 701, - "loc": { - "start": { - "line": 40, - "column": 4 - }, - "end": { - "line": 40, - "column": 32 - } - } - } - ] - }, - { - "type": "IfStatement", - "start": 706, - "end": 1091, - "loc": { - "start": { - "line": 41, - "column": 4 - }, - "end": { - "line": 49, - "column": 5 - } - }, - "test": { - "type": "LogicalExpression", - "start": 710, - "end": 752, - "loc": { - "start": { - "line": 41, - "column": 8 - }, - "end": { - "line": 41, - "column": 50 - } - }, - "left": { - "type": "CallExpression", - "start": 710, - "end": 731, - "loc": { - "start": { - "line": 41, - "column": 8 - }, - "end": { - "line": 41, - "column": 29 - } - }, - "callee": { - "type": "MemberExpression", - "start": 710, - "end": 723, - "loc": { - "start": { - "line": 41, - "column": 8 - }, - "end": { - "line": 41, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 710, - "end": 715, - "loc": { - "start": { - "line": 41, - "column": 8 - }, - "end": { - "line": 41, - "column": 13 - }, - "identifierName": "Array" - }, - "name": "Array", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 716, - "end": 723, - "loc": { - "start": { - "line": 41, - "column": 14 - }, - "end": { - "line": 41, - "column": 21 - }, - "identifierName": "isArray" - }, - "name": "isArray" - }, - "computed": false, - "leadingComments": null - }, - "arguments": [ - { - "type": "Identifier", - "start": 724, - "end": 730, - "loc": { - "start": { - "line": 41, - "column": 22 - }, - "end": { - "line": 41, - "column": 28 - }, - "identifierName": "filter" - }, - "name": "filter" - } - ], - "leadingComments": null - }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 735, - "end": 752, - "loc": { - "start": { - "line": 41, - "column": 33 - }, - "end": { - "line": 41, - "column": 50 - } - }, - "left": { - "type": "MemberExpression", - "start": 735, - "end": 748, - "loc": { - "start": { - "line": 41, - "column": 33 - }, - "end": { - "line": 41, - "column": 46 - } - }, - "object": { - "type": "Identifier", - "start": 735, - "end": 741, - "loc": { - "start": { - "line": 41, - "column": 33 - }, - "end": { - "line": 41, - "column": 39 - }, - "identifierName": "filter" - }, - "name": "filter" - }, - "property": { - "type": "Identifier", - "start": 742, - "end": 748, - "loc": { - "start": { - "line": 41, - "column": 40 - }, - "end": { - "line": 41, - "column": 46 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - }, - "operator": ">", - "right": { - "type": "NumericLiteral", - "start": 751, - "end": 752, - "loc": { - "start": { - "line": 41, - "column": 49 - }, - "end": { - "line": 41, - "column": 50 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - "leadingComments": null - }, - "consequent": { - "type": "BlockStatement", - "start": 754, - "end": 1091, - "loc": { - "start": { - "line": 41, - "column": 52 - }, - "end": { - "line": 49, - "column": 5 - } - }, - "body": [ - { - "type": "ForStatement", - "start": 762, - "end": 1085, - "loc": { - "start": { - "line": 42, - "column": 6 - }, - "end": { - "line": 48, - "column": 7 - } - }, - "init": { - "type": "VariableDeclaration", - "start": 767, - "end": 776, - "loc": { - "start": { - "line": 42, - "column": 11 - }, - "end": { - "line": 42, - "column": 20 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 771, - "end": 776, - "loc": { - "start": { - "line": 42, - "column": 15 - }, - "end": { - "line": 42, - "column": 20 - } - }, - "id": { - "type": "Identifier", - "start": 771, - "end": 772, - "loc": { - "start": { - "line": 42, - "column": 15 - }, - "end": { - "line": 42, - "column": 16 - }, - "identifierName": "i" - }, - "name": "i" - }, - "init": { - "type": "NumericLiteral", - "start": 775, - "end": 776, - "loc": { - "start": { - "line": 42, - "column": 19 - }, - "end": { - "line": 42, - "column": 20 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "kind": "let" - }, - "test": { - "type": "BinaryExpression", - "start": 778, - "end": 795, - "loc": { - "start": { - "line": 42, - "column": 22 - }, - "end": { - "line": 42, - "column": 39 - } - }, - "left": { - "type": "Identifier", - "start": 778, - "end": 779, - "loc": { - "start": { - "line": 42, - "column": 22 - }, - "end": { - "line": 42, - "column": 23 - }, - "identifierName": "i" - }, - "name": "i" - }, - "operator": "<", - "right": { - "type": "MemberExpression", - "start": 782, - "end": 795, - "loc": { - "start": { - "line": 42, - "column": 26 - }, - "end": { - "line": 42, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 782, - "end": 788, - "loc": { - "start": { - "line": 42, - "column": 26 - }, - "end": { - "line": 42, - "column": 32 - }, - "identifierName": "filter" - }, - "name": "filter" - }, - "property": { - "type": "Identifier", - "start": 789, - "end": 795, - "loc": { - "start": { - "line": 42, - "column": 33 - }, - "end": { - "line": 42, - "column": 39 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - } - }, - "update": { - "type": "UpdateExpression", - "start": 797, - "end": 800, - "loc": { - "start": { - "line": 42, - "column": 41 - }, - "end": { - "line": 42, - "column": 44 - } - }, - "operator": "++", - "prefix": false, - "argument": { - "type": "Identifier", - "start": 797, - "end": 798, - "loc": { - "start": { - "line": 42, - "column": 41 - }, - "end": { - "line": 42, - "column": 42 - }, - "identifierName": "i" - }, - "name": "i" - } - }, - "body": { - "type": "BlockStatement", - "start": 802, - "end": 1085, - "loc": { - "start": { - "line": 42, - "column": 46 - }, - "end": { - "line": 48, - "column": 7 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 812, - "end": 1077, - "loc": { - "start": { - "line": 43, - "column": 8 - }, - "end": { - "line": 47, - "column": 9 - } - }, - "test": { - "type": "BinaryExpression", - "start": 816, - "end": 823, - "loc": { - "start": { - "line": 43, - "column": 12 - }, - "end": { - "line": 43, - "column": 19 - } - }, - "left": { - "type": "Identifier", - "start": 816, - "end": 817, - "loc": { - "start": { - "line": 43, - "column": 12 - }, - "end": { - "line": 43, - "column": 13 - }, - "identifierName": "i" - }, - "name": "i" - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 822, - "end": 823, - "loc": { - "start": { - "line": 43, - "column": 18 - }, - "end": { - "line": 43, - "column": 19 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - "consequent": { - "type": "BlockStatement", - "start": 825, - "end": 948, - "loc": { - "start": { - "line": 43, - "column": 21 - }, - "end": { - "line": 45, - "column": 9 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 837, - "end": 938, - "loc": { - "start": { - "line": 44, - "column": 10 - }, - "end": { - "line": 44, - "column": 111 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 837, - "end": 937, - "loc": { - "start": { - "line": 44, - "column": 10 - }, - "end": { - "line": 44, - "column": 110 - } - }, - "operator": "+=", - "left": { - "type": "Identifier", - "start": 837, - "end": 846, - "loc": { - "start": { - "line": 44, - "column": 10 - }, - "end": { - "line": 44, - "column": 19 - }, - "identifierName": "URLParams" - }, - "name": "URLParams" - }, - "right": { - "type": "TemplateLiteral", - "start": 850, - "end": 937, - "loc": { - "start": { - "line": 44, - "column": 23 - }, - "end": { - "line": 44, - "column": 110 - } - }, - "expressions": [ - { - "type": "CallExpression", - "start": 862, - "end": 884, - "loc": { - "start": { - "line": 44, - "column": 35 - }, - "end": { - "line": 44, - "column": 57 - } - }, - "callee": { - "type": "MemberExpression", - "start": 862, - "end": 873, - "loc": { - "start": { - "line": 44, - "column": 35 - }, - "end": { - "line": 44, - "column": 46 - } - }, - "object": { - "type": "Identifier", - "start": 862, - "end": 868, - "loc": { - "start": { - "line": 44, - "column": 35 - }, - "end": { - "line": 44, - "column": 41 - }, - "identifierName": "Object" - }, - "name": "Object" - }, - "property": { - "type": "Identifier", - "start": 869, - "end": 873, - "loc": { - "start": { - "line": 44, - "column": 42 - }, - "end": { - "line": 44, - "column": 46 - }, - "identifierName": "keys" - }, - "name": "keys" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 874, - "end": 883, - "loc": { - "start": { - "line": 44, - "column": 47 - }, - "end": { - "line": 44, - "column": 56 - } - }, - "object": { - "type": "Identifier", - "start": 874, - "end": 880, - "loc": { - "start": { - "line": 44, - "column": 47 - }, - "end": { - "line": 44, - "column": 53 - }, - "identifierName": "filter" - }, - "name": "filter" - }, - "property": { - "type": "Identifier", - "start": 881, - "end": 882, - "loc": { - "start": { - "line": 44, - "column": 54 - }, - "end": { - "line": 44, - "column": 55 - }, - "identifierName": "i" - }, - "name": "i" - }, - "computed": true - } - ] - }, - { - "type": "MemberExpression", - "start": 902, - "end": 935, - "loc": { - "start": { - "line": 44, - "column": 75 - }, - "end": { - "line": 44, - "column": 108 - } - }, - "object": { - "type": "MemberExpression", - "start": 902, - "end": 911, - "loc": { - "start": { - "line": 44, - "column": 75 - }, - "end": { - "line": 44, - "column": 84 - } - }, - "object": { - "type": "Identifier", - "start": 902, - "end": 908, - "loc": { - "start": { - "line": 44, - "column": 75 - }, - "end": { - "line": 44, - "column": 81 - }, - "identifierName": "filter" - }, - "name": "filter" - }, - "property": { - "type": "Identifier", - "start": 909, - "end": 910, - "loc": { - "start": { - "line": 44, - "column": 82 - }, - "end": { - "line": 44, - "column": 83 - }, - "identifierName": "i" - }, - "name": "i" - }, - "computed": true - }, - "property": { - "type": "CallExpression", - "start": 912, - "end": 934, - "loc": { - "start": { - "line": 44, - "column": 85 - }, - "end": { - "line": 44, - "column": 107 - } - }, - "callee": { - "type": "MemberExpression", - "start": 912, - "end": 923, - "loc": { - "start": { - "line": 44, - "column": 85 - }, - "end": { - "line": 44, - "column": 96 - } - }, - "object": { - "type": "Identifier", - "start": 912, - "end": 918, - "loc": { - "start": { - "line": 44, - "column": 85 - }, - "end": { - "line": 44, - "column": 91 - }, - "identifierName": "Object" - }, - "name": "Object" - }, - "property": { - "type": "Identifier", - "start": 919, - "end": 923, - "loc": { - "start": { - "line": 44, - "column": 92 - }, - "end": { - "line": 44, - "column": 96 - }, - "identifierName": "keys" - }, - "name": "keys" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 924, - "end": 933, - "loc": { - "start": { - "line": 44, - "column": 97 - }, - "end": { - "line": 44, - "column": 106 - } - }, - "object": { - "type": "Identifier", - "start": 924, - "end": 930, - "loc": { - "start": { - "line": 44, - "column": 97 - }, - "end": { - "line": 44, - "column": 103 - }, - "identifierName": "filter" - }, - "name": "filter" - }, - "property": { - "type": "Identifier", - "start": 931, - "end": 932, - "loc": { - "start": { - "line": 44, - "column": 104 - }, - "end": { - "line": 44, - "column": 105 - }, - "identifierName": "i" - }, - "name": "i" - }, - "computed": true - } - ] - }, - "computed": true - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 851, - "end": 860, - "loc": { - "start": { - "line": 44, - "column": 24 - }, - "end": { - "line": 44, - "column": 33 - } - }, - "value": { - "raw": "?filters=", - "cooked": "?filters=" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 885, - "end": 900, - "loc": { - "start": { - "line": 44, - "column": 58 - }, - "end": { - "line": 44, - "column": 73 - } - }, - "value": { - "raw": "&filter-values=", - "cooked": "&filter-values=" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 936, - "end": 936, - "loc": { - "start": { - "line": 44, - "column": 109 - }, - "end": { - "line": 44, - "column": 109 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 954, - "end": 1077, - "loc": { - "start": { - "line": 45, - "column": 15 - }, - "end": { - "line": 47, - "column": 9 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 966, - "end": 1067, - "loc": { - "start": { - "line": 46, - "column": 10 - }, - "end": { - "line": 46, - "column": 111 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 966, - "end": 1066, - "loc": { - "start": { - "line": 46, - "column": 10 - }, - "end": { - "line": 46, - "column": 110 - } - }, - "operator": "+=", - "left": { - "type": "Identifier", - "start": 966, - "end": 975, - "loc": { - "start": { - "line": 46, - "column": 10 - }, - "end": { - "line": 46, - "column": 19 - }, - "identifierName": "URLParams" - }, - "name": "URLParams" - }, - "right": { - "type": "TemplateLiteral", - "start": 979, - "end": 1066, - "loc": { - "start": { - "line": 46, - "column": 23 - }, - "end": { - "line": 46, - "column": 110 - } - }, - "expressions": [ - { - "type": "CallExpression", - "start": 991, - "end": 1013, - "loc": { - "start": { - "line": 46, - "column": 35 - }, - "end": { - "line": 46, - "column": 57 - } - }, - "callee": { - "type": "MemberExpression", - "start": 991, - "end": 1002, - "loc": { - "start": { - "line": 46, - "column": 35 - }, - "end": { - "line": 46, - "column": 46 - } - }, - "object": { - "type": "Identifier", - "start": 991, - "end": 997, - "loc": { - "start": { - "line": 46, - "column": 35 - }, - "end": { - "line": 46, - "column": 41 - }, - "identifierName": "Object" - }, - "name": "Object" - }, - "property": { - "type": "Identifier", - "start": 998, - "end": 1002, - "loc": { - "start": { - "line": 46, - "column": 42 - }, - "end": { - "line": 46, - "column": 46 - }, - "identifierName": "keys" - }, - "name": "keys" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 1003, - "end": 1012, - "loc": { - "start": { - "line": 46, - "column": 47 - }, - "end": { - "line": 46, - "column": 56 - } - }, - "object": { - "type": "Identifier", - "start": 1003, - "end": 1009, - "loc": { - "start": { - "line": 46, - "column": 47 - }, - "end": { - "line": 46, - "column": 53 - }, - "identifierName": "filter" - }, - "name": "filter" - }, - "property": { - "type": "Identifier", - "start": 1010, - "end": 1011, - "loc": { - "start": { - "line": 46, - "column": 54 - }, - "end": { - "line": 46, - "column": 55 - }, - "identifierName": "i" - }, - "name": "i" - }, - "computed": true - } - ] - }, - { - "type": "MemberExpression", - "start": 1031, - "end": 1064, - "loc": { - "start": { - "line": 46, - "column": 75 - }, - "end": { - "line": 46, - "column": 108 - } - }, - "object": { - "type": "MemberExpression", - "start": 1031, - "end": 1040, - "loc": { - "start": { - "line": 46, - "column": 75 - }, - "end": { - "line": 46, - "column": 84 - } - }, - "object": { - "type": "Identifier", - "start": 1031, - "end": 1037, - "loc": { - "start": { - "line": 46, - "column": 75 - }, - "end": { - "line": 46, - "column": 81 - }, - "identifierName": "filter" - }, - "name": "filter" - }, - "property": { - "type": "Identifier", - "start": 1038, - "end": 1039, - "loc": { - "start": { - "line": 46, - "column": 82 - }, - "end": { - "line": 46, - "column": 83 - }, - "identifierName": "i" - }, - "name": "i" - }, - "computed": true - }, - "property": { - "type": "CallExpression", - "start": 1041, - "end": 1063, - "loc": { - "start": { - "line": 46, - "column": 85 - }, - "end": { - "line": 46, - "column": 107 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1041, - "end": 1052, - "loc": { - "start": { - "line": 46, - "column": 85 - }, - "end": { - "line": 46, - "column": 96 - } - }, - "object": { - "type": "Identifier", - "start": 1041, - "end": 1047, - "loc": { - "start": { - "line": 46, - "column": 85 - }, - "end": { - "line": 46, - "column": 91 - }, - "identifierName": "Object" - }, - "name": "Object" - }, - "property": { - "type": "Identifier", - "start": 1048, - "end": 1052, - "loc": { - "start": { - "line": 46, - "column": 92 - }, - "end": { - "line": 46, - "column": 96 - }, - "identifierName": "keys" - }, - "name": "keys" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 1053, - "end": 1062, - "loc": { - "start": { - "line": 46, - "column": 97 - }, - "end": { - "line": 46, - "column": 106 - } - }, - "object": { - "type": "Identifier", - "start": 1053, - "end": 1059, - "loc": { - "start": { - "line": 46, - "column": 97 - }, - "end": { - "line": 46, - "column": 103 - }, - "identifierName": "filter" - }, - "name": "filter" - }, - "property": { - "type": "Identifier", - "start": 1060, - "end": 1061, - "loc": { - "start": { - "line": 46, - "column": 104 - }, - "end": { - "line": 46, - "column": 105 - }, - "identifierName": "i" - }, - "name": "i" - }, - "computed": true - } - ] - }, - "computed": true - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 980, - "end": 989, - "loc": { - "start": { - "line": 46, - "column": 24 - }, - "end": { - "line": 46, - "column": 33 - } - }, - "value": { - "raw": "&filters=", - "cooked": "&filters=" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 1014, - "end": 1029, - "loc": { - "start": { - "line": 46, - "column": 58 - }, - "end": { - "line": 46, - "column": 73 - } - }, - "value": { - "raw": "&filter-values=", - "cooked": "&filter-values=" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 1065, - "end": 1065, - "loc": { - "start": { - "line": 46, - "column": 109 - }, - "end": { - "line": 46, - "column": 109 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "alternate": null, - "leadingComments": [ - { - "type": "CommentLine", - "value": " build filters if supplied", - "start": 673, - "end": 701, - "loc": { - "start": { - "line": 40, - "column": 4 - }, - "end": { - "line": 40, - "column": 32 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " build sort if supplied", - "start": 1097, - "end": 1122, - "loc": { - "start": { - "line": 51, - "column": 4 - }, - "end": { - "line": 51, - "column": 29 - } - } - } - ] - }, - { - "type": "IfStatement", - "start": 1127, - "end": 1336, - "loc": { - "start": { - "line": 52, - "column": 4 - }, - "end": { - "line": 59, - "column": 5 - } - }, - "test": { - "type": "Identifier", - "start": 1131, - "end": 1135, - "loc": { - "start": { - "line": 52, - "column": 8 - }, - "end": { - "line": 52, - "column": 12 - }, - "identifierName": "sort" - }, - "name": "sort", - "leadingComments": null - }, - "consequent": { - "type": "BlockStatement", - "start": 1137, - "end": 1336, - "loc": { - "start": { - "line": 52, - "column": 14 - }, - "end": { - "line": 59, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 1145, - "end": 1247, - "loc": { - "start": { - "line": 53, - "column": 6 - }, - "end": { - "line": 57, - "column": 7 - } - }, - "test": { - "type": "BinaryExpression", - "start": 1149, - "end": 1169, - "loc": { - "start": { - "line": 53, - "column": 10 - }, - "end": { - "line": 53, - "column": 30 - } - }, - "left": { - "type": "MemberExpression", - "start": 1149, - "end": 1165, - "loc": { - "start": { - "line": 53, - "column": 10 - }, - "end": { - "line": 53, - "column": 26 - } - }, - "object": { - "type": "Identifier", - "start": 1149, - "end": 1158, - "loc": { - "start": { - "line": 53, - "column": 10 - }, - "end": { - "line": 53, - "column": 19 - }, - "identifierName": "URLParams" - }, - "name": "URLParams" - }, - "property": { - "type": "Identifier", - "start": 1159, - "end": 1165, - "loc": { - "start": { - "line": 53, - "column": 20 - }, - "end": { - "line": 53, - "column": 26 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - }, - "operator": ">", - "right": { - "type": "NumericLiteral", - "start": 1168, - "end": 1169, - "loc": { - "start": { - "line": 53, - "column": 29 - }, - "end": { - "line": 53, - "column": 30 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - "consequent": { - "type": "BlockStatement", - "start": 1171, - "end": 1206, - "loc": { - "start": { - "line": 53, - "column": 32 - }, - "end": { - "line": 55, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1181, - "end": 1198, - "loc": { - "start": { - "line": 54, - "column": 8 - }, - "end": { - "line": 54, - "column": 25 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 1181, - "end": 1197, - "loc": { - "start": { - "line": 54, - "column": 8 - }, - "end": { - "line": 54, - "column": 24 - } - }, - "operator": "+=", - "left": { - "type": "Identifier", - "start": 1181, - "end": 1190, - "loc": { - "start": { - "line": 54, - "column": 8 - }, - "end": { - "line": 54, - "column": 17 - }, - "identifierName": "URLParams" - }, - "name": "URLParams" - }, - "right": { - "type": "StringLiteral", - "start": 1194, - "end": 1197, - "loc": { - "start": { - "line": 54, - "column": 21 - }, - "end": { - "line": 54, - "column": 24 - } - }, - "extra": { - "rawValue": "&", - "raw": "'&'" - }, - "value": "&" - } - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 1212, - "end": 1247, - "loc": { - "start": { - "line": 55, - "column": 13 - }, - "end": { - "line": 57, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1222, - "end": 1239, - "loc": { - "start": { - "line": 56, - "column": 8 - }, - "end": { - "line": 56, - "column": 25 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 1222, - "end": 1238, - "loc": { - "start": { - "line": 56, - "column": 8 - }, - "end": { - "line": 56, - "column": 24 - } - }, - "operator": "+=", - "left": { - "type": "Identifier", - "start": 1222, - "end": 1231, - "loc": { - "start": { - "line": 56, - "column": 8 - }, - "end": { - "line": 56, - "column": 17 - }, - "identifierName": "URLParams" - }, - "name": "URLParams" - }, - "right": { - "type": "StringLiteral", - "start": 1235, - "end": 1238, - "loc": { - "start": { - "line": 56, - "column": 21 - }, - "end": { - "line": 56, - "column": 24 - } - }, - "extra": { - "rawValue": "?", - "raw": "'?'" - }, - "value": "?" - } - } - } - ], - "directives": [] - } - }, - { - "type": "ExpressionStatement", - "start": 1254, - "end": 1330, - "loc": { - "start": { - "line": 58, - "column": 6 - }, - "end": { - "line": 58, - "column": 82 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 1254, - "end": 1329, - "loc": { - "start": { - "line": 58, - "column": 6 - }, - "end": { - "line": 58, - "column": 81 - } - }, - "operator": "+=", - "left": { - "type": "Identifier", - "start": 1254, - "end": 1263, - "loc": { - "start": { - "line": 58, - "column": 6 - }, - "end": { - "line": 58, - "column": 15 - }, - "identifierName": "URLParams" - }, - "name": "URLParams" - }, - "right": { - "type": "TemplateLiteral", - "start": 1267, - "end": 1329, - "loc": { - "start": { - "line": 58, - "column": 19 - }, - "end": { - "line": 58, - "column": 81 - } - }, - "expressions": [ - { - "type": "CallExpression", - "start": 1277, - "end": 1294, - "loc": { - "start": { - "line": 58, - "column": 29 - }, - "end": { - "line": 58, - "column": 46 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1277, - "end": 1288, - "loc": { - "start": { - "line": 58, - "column": 29 - }, - "end": { - "line": 58, - "column": 40 - } - }, - "object": { - "type": "Identifier", - "start": 1277, - "end": 1283, - "loc": { - "start": { - "line": 58, - "column": 29 - }, - "end": { - "line": 58, - "column": 35 - }, - "identifierName": "Object" - }, - "name": "Object" - }, - "property": { - "type": "Identifier", - "start": 1284, - "end": 1288, - "loc": { - "start": { - "line": 58, - "column": 36 - }, - "end": { - "line": 58, - "column": 40 - }, - "identifierName": "keys" - }, - "name": "keys" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1289, - "end": 1293, - "loc": { - "start": { - "line": 58, - "column": 41 - }, - "end": { - "line": 58, - "column": 45 - }, - "identifierName": "sort" - }, - "name": "sort" - } - ] - }, - { - "type": "MemberExpression", - "start": 1304, - "end": 1327, - "loc": { - "start": { - "line": 58, - "column": 56 - }, - "end": { - "line": 58, - "column": 79 - } - }, - "object": { - "type": "Identifier", - "start": 1304, - "end": 1308, - "loc": { - "start": { - "line": 58, - "column": 56 - }, - "end": { - "line": 58, - "column": 60 - }, - "identifierName": "sort" - }, - "name": "sort" - }, - "property": { - "type": "CallExpression", - "start": 1309, - "end": 1326, - "loc": { - "start": { - "line": 58, - "column": 61 - }, - "end": { - "line": 58, - "column": 78 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1309, - "end": 1320, - "loc": { - "start": { - "line": 58, - "column": 61 - }, - "end": { - "line": 58, - "column": 72 - } - }, - "object": { - "type": "Identifier", - "start": 1309, - "end": 1315, - "loc": { - "start": { - "line": 58, - "column": 61 - }, - "end": { - "line": 58, - "column": 67 - }, - "identifierName": "Object" - }, - "name": "Object" - }, - "property": { - "type": "Identifier", - "start": 1316, - "end": 1320, - "loc": { - "start": { - "line": 58, - "column": 68 - }, - "end": { - "line": 58, - "column": 72 - }, - "identifierName": "keys" - }, - "name": "keys" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1321, - "end": 1325, - "loc": { - "start": { - "line": 58, - "column": 73 - }, - "end": { - "line": 58, - "column": 77 - }, - "identifierName": "sort" - }, - "name": "sort" - } - ] - }, - "computed": true - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 1268, - "end": 1275, - "loc": { - "start": { - "line": 58, - "column": 20 - }, - "end": { - "line": 58, - "column": 27 - } - }, - "value": { - "raw": "sortby=", - "cooked": "sortby=" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 1295, - "end": 1302, - "loc": { - "start": { - "line": 58, - "column": 47 - }, - "end": { - "line": 58, - "column": 54 - } - }, - "value": { - "raw": "&order=", - "cooked": "&order=" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 1328, - "end": 1328, - "loc": { - "start": { - "line": 58, - "column": 80 - }, - "end": { - "line": 58, - "column": 80 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - } - } - ], - "directives": [] - }, - "alternate": null, - "leadingComments": [ - { - "type": "CommentLine", - "value": " build sort if supplied", - "start": 1097, - "end": 1122, - "loc": { - "start": { - "line": 51, - "column": 4 - }, - "end": { - "line": 51, - "column": 29 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 1342, - "end": 1366, - "loc": { - "start": { - "line": 61, - "column": 4 - }, - "end": { - "line": 61, - "column": 28 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 1342, - "end": 1365, - "loc": { - "start": { - "line": 61, - "column": 4 - }, - "end": { - "line": 61, - "column": 27 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 1342, - "end": 1346, - "loc": { - "start": { - "line": 61, - "column": 4 - }, - "end": { - "line": 61, - "column": 8 - }, - "identifierName": "path" - }, - "name": "path" - }, - "right": { - "type": "BinaryExpression", - "start": 1349, - "end": 1365, - "loc": { - "start": { - "line": 61, - "column": 11 - }, - "end": { - "line": 61, - "column": 27 - } - }, - "left": { - "type": "Identifier", - "start": 1349, - "end": 1353, - "loc": { - "start": { - "line": 61, - "column": 11 - }, - "end": { - "line": 61, - "column": 15 - }, - "identifierName": "path" - }, - "name": "path" - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 1356, - "end": 1365, - "loc": { - "start": { - "line": 61, - "column": 18 - }, - "end": { - "line": 61, - "column": 27 - }, - "identifierName": "URLParams" - }, - "name": "URLParams" - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 1372, - "end": 1624, - "loc": { - "start": { - "line": 63, - "column": 4 - }, - "end": { - "line": 73, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 1372, - "end": 1623, - "loc": { - "start": { - "line": 63, - "column": 4 - }, - "end": { - "line": 73, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1372, - "end": 1621, - "loc": { - "start": { - "line": 63, - "column": 4 - }, - "end": { - "line": 73, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 1372, - "end": 1610, - "loc": { - "start": { - "line": 63, - "column": 4 - }, - "end": { - "line": 72, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1372, - "end": 1577, - "loc": { - "start": { - "line": 63, - "column": 4 - }, - "end": { - "line": 72, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 1372, - "end": 1567, - "loc": { - "start": { - "line": 63, - "column": 4 - }, - "end": { - "line": 71, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1372, - "end": 1392, - "loc": { - "start": { - "line": 63, - "column": 4 - }, - "end": { - "line": 64, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 1372, - "end": 1377, - "loc": { - "start": { - "line": 63, - "column": 4 - }, - "end": { - "line": 63, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 1385, - "end": 1392, - "loc": { - "start": { - "line": 64, - "column": 7 - }, - "end": { - "line": 64, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 1393, - "end": 1539, - "loc": { - "start": { - "line": 64, - "column": 15 - }, - "end": { - "line": 71, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 1393, - "end": 1412, - "loc": { - "start": { - "line": 64, - "column": 15 - }, - "end": { - "line": 64, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 1413, - "end": 1538, - "loc": { - "start": { - "line": 64, - "column": 35 - }, - "end": { - "line": 71, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1423, - "end": 1436, - "loc": { - "start": { - "line": 65, - "column": 8 - }, - "end": { - "line": 65, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1423, - "end": 1429, - "loc": { - "start": { - "line": 65, - "column": 8 - }, - "end": { - "line": 65, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 1431, - "end": 1436, - "loc": { - "start": { - "line": 65, - "column": 16 - }, - "end": { - "line": 65, - "column": 21 - } - }, - "extra": { - "rawValue": "GET", - "raw": "'GET'" - }, - "value": "GET" - } - }, - { - "type": "ObjectProperty", - "start": 1446, - "end": 1515, - "loc": { - "start": { - "line": 66, - "column": 8 - }, - "end": { - "line": 69, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1446, - "end": 1459, - "loc": { - "start": { - "line": 66, - "column": 8 - }, - "end": { - "line": 66, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 1461, - "end": 1515, - "loc": { - "start": { - "line": 66, - "column": 23 - }, - "end": { - "line": 69, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1473, - "end": 1487, - "loc": { - "start": { - "line": 67, - "column": 10 - }, - "end": { - "line": 67, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1473, - "end": 1477, - "loc": { - "start": { - "line": 67, - "column": 10 - }, - "end": { - "line": 67, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 1479, - "end": 1487, - "loc": { - "start": { - "line": 67, - "column": 16 - }, - "end": { - "line": 67, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 1499, - "end": 1504, - "loc": { - "start": { - "line": 68, - "column": 10 - }, - "end": { - "line": 68, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1499, - "end": 1504, - "loc": { - "start": { - "line": 68, - "column": 10 - }, - "end": { - "line": 68, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 1499, - "end": 1504, - "loc": { - "start": { - "line": 68, - "column": 10 - }, - "end": { - "line": 68, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 1525, - "end": 1529, - "loc": { - "start": { - "line": 70, - "column": 8 - }, - "end": { - "line": 70, - "column": 12 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1525, - "end": 1529, - "loc": { - "start": { - "line": 70, - "column": 8 - }, - "end": { - "line": 70, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "Identifier", - "start": 1525, - "end": 1529, - "loc": { - "start": { - "line": 70, - "column": 8 - }, - "end": { - "line": 70, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 1541, - "end": 1566, - "loc": { - "start": { - "line": 71, - "column": 10 - }, - "end": { - "line": 71, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 1541, - "end": 1556, - "loc": { - "start": { - "line": 71, - "column": 10 - }, - "end": { - "line": 71, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1557, - "end": 1565, - "loc": { - "start": { - "line": 71, - "column": 26 - }, - "end": { - "line": 71, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 1575, - "end": 1577, - "loc": { - "start": { - "line": 72, - "column": 7 - }, - "end": { - "line": 72, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 1578, - "end": 1585, - "loc": { - "start": { - "line": 72, - "column": 10 - }, - "end": { - "line": 72, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 1587, - "end": 1609, - "loc": { - "start": { - "line": 72, - "column": 19 - }, - "end": { - "line": 72, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 1587, - "end": 1599, - "loc": { - "start": { - "line": 72, - "column": 19 - }, - "end": { - "line": 72, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1600, - "end": 1608, - "loc": { - "start": { - "line": 72, - "column": 32 - }, - "end": { - "line": 72, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 1618, - "end": 1621, - "loc": { - "start": { - "line": 73, - "column": 7 - }, - "end": { - "line": 73, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " get documents in a folder", - "start": 503, - "end": 531, - "loc": { - "start": { - "line": 30, - "column": 2 - }, - "end": { - "line": 30, - "column": 30 - } - } - } - ] - } - ] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Folder methods\n ", - "start": 130, - "end": 155, - "loc": { - "start": { - "line": 10, - "column": 0 - }, - "end": { - "line": 12, - "column": 3 - } - } - } - ], - "__PseudoExport__": false, - "trailingComments": [] - }, - "leadingComments": null - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "value": "use strict", - "extra": { - "raw": "'use strict'", - "rawValue": "use strict" - } - } - } - ] - }, - "comments": [ - { - "type": "CommentBlock", - "value": "*\n * Folder methods\n ", - "start": 130, - "end": 155, - "loc": { - "start": { - "line": 10, - "column": 0 - }, - "end": { - "line": 12, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " list folders", - "start": 174, - "end": 189, - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 15, - "column": 17 - } - } - }, - { - "type": "CommentLine", - "value": " get documents in a folder", - "start": 503, - "end": 531, - "loc": { - "start": { - "line": 30, - "column": 2 - }, - "end": { - "line": 30, - "column": 30 - } - } - }, - { - "type": "CommentLine", - "value": " build filters if supplied", - "start": 673, - "end": 701, - "loc": { - "start": { - "line": 40, - "column": 4 - }, - "end": { - "line": 40, - "column": 32 - } - } - }, - { - "type": "CommentLine", - "value": " build sort if supplied", - "start": 1097, - "end": 1122, - "loc": { - "start": { - "line": 51, - "column": 4 - }, - "end": { - "line": 51, - "column": 29 - } - } - } - ], - "tokens": [ - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "use strict", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 12 - }, - "end": { - "line": 1, - "column": 13 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 14, - "end": 20, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 27, - "end": 31, - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 17 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "https", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 18 - }, - "end": { - "line": 2, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39, - "end": 40, - "loc": { - "start": { - "line": 2, - "column": 25 - }, - "end": { - "line": 2, - "column": 26 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 41, - "end": 47, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 48, - "end": 49, - "loc": { - "start": { - "line": 3, - "column": 7 - }, - "end": { - "line": 3, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 67, - "end": 68, - "loc": { - "start": { - "line": 4, - "column": 17 - }, - "end": { - "line": 4, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 71, - "end": 83, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 14 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 83, - "end": 84, - "loc": { - "start": { - "line": 5, - "column": 14 - }, - "end": { - "line": 5, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 87, - "end": 106, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 106, - "end": 107, - "loc": { - "start": { - "line": 6, - "column": 21 - }, - "end": { - "line": 6, - "column": 22 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 108, - "end": 109, - "loc": { - "start": { - "line": 7, - "column": 0 - }, - "end": { - "line": 7, - "column": 1 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 110, - "end": 114, - "loc": { - "start": { - "line": 7, - "column": 2 - }, - "end": { - "line": 7, - "column": 6 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "../common", - "start": 115, - "end": 126, - "loc": { - "start": { - "line": 7, - "column": 7 - }, - "end": { - "line": 7, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 126, - "end": 127, - "loc": { - "start": { - "line": 7, - "column": 18 - }, - "end": { - "line": 7, - "column": 19 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Folder methods\n ", - "start": 130, - "end": 155, - "loc": { - "start": { - "line": 10, - "column": 0 - }, - "end": { - "line": 12, - "column": 3 - } - } - }, - { - "type": { - "label": "class", - "keyword": "class", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "class", - "start": 156, - "end": 161, - "loc": { - "start": { - "line": 13, - "column": 0 - }, - "end": { - "line": 13, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Folder", - "start": 162, - "end": 168, - "loc": { - "start": { - "line": 13, - "column": 6 - }, - "end": { - "line": 13, - "column": 12 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 169, - "end": 170, - "loc": { - "start": { - "line": 13, - "column": 13 - }, - "end": { - "line": 13, - "column": 14 - } - } - }, - { - "type": "CommentLine", - "value": " list folders", - "start": 174, - "end": 189, - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 15, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 192, - "end": 198, - "loc": { - "start": { - "line": 16, - "column": 2 - }, - "end": { - "line": 16, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "list", - "start": 199, - "end": 203, - "loc": { - "start": { - "line": 16, - "column": 9 - }, - "end": { - "line": 16, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 204, - "end": 205, - "loc": { - "start": { - "line": 16, - "column": 14 - }, - "end": { - "line": 16, - "column": 15 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 205, - "end": 206, - "loc": { - "start": { - "line": 16, - "column": 15 - }, - "end": { - "line": 16, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 207, - "end": 212, - "loc": { - "start": { - "line": 16, - "column": 17 - }, - "end": { - "line": 16, - "column": 22 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 213, - "end": 214, - "loc": { - "start": { - "line": 16, - "column": 23 - }, - "end": { - "line": 16, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 214, - "end": 215, - "loc": { - "start": { - "line": 16, - "column": 24 - }, - "end": { - "line": 16, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 216, - "end": 224, - "loc": { - "start": { - "line": 16, - "column": 26 - }, - "end": { - "line": 16, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 224, - "end": 225, - "loc": { - "start": { - "line": 16, - "column": 34 - }, - "end": { - "line": 16, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 226, - "end": 227, - "loc": { - "start": { - "line": 16, - "column": 36 - }, - "end": { - "line": 16, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 232, - "end": 237, - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 17, - "column": 9 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 244, - "end": 245, - "loc": { - "start": { - "line": 18, - "column": 6 - }, - "end": { - "line": 18, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 245, - "end": 252, - "loc": { - "start": { - "line": 18, - "column": 7 - }, - "end": { - "line": 18, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 252, - "end": 253, - "loc": { - "start": { - "line": 18, - "column": 14 - }, - "end": { - "line": 18, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 253, - "end": 272, - "loc": { - "start": { - "line": 18, - "column": 15 - }, - "end": { - "line": 18, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 272, - "end": 273, - "loc": { - "start": { - "line": 18, - "column": 34 - }, - "end": { - "line": 18, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 273, - "end": 274, - "loc": { - "start": { - "line": 18, - "column": 35 - }, - "end": { - "line": 18, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 283, - "end": 289, - "loc": { - "start": { - "line": 19, - "column": 8 - }, - "end": { - "line": 19, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 289, - "end": 290, - "loc": { - "start": { - "line": 19, - "column": 14 - }, - "end": { - "line": 19, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "GET", - "start": 291, - "end": 296, - "loc": { - "start": { - "line": 19, - "column": 16 - }, - "end": { - "line": 19, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 296, - "end": 297, - "loc": { - "start": { - "line": 19, - "column": 21 - }, - "end": { - "line": 19, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 306, - "end": 310, - "loc": { - "start": { - "line": 20, - "column": 8 - }, - "end": { - "line": 20, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 310, - "end": 311, - "loc": { - "start": { - "line": 20, - "column": 12 - }, - "end": { - "line": 20, - "column": 13 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/folder", - "start": 312, - "end": 321, - "loc": { - "start": { - "line": 20, - "column": 14 - }, - "end": { - "line": 20, - "column": 23 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 321, - "end": 322, - "loc": { - "start": { - "line": 20, - "column": 23 - }, - "end": { - "line": 20, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 331, - "end": 344, - "loc": { - "start": { - "line": 21, - "column": 8 - }, - "end": { - "line": 21, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 344, - "end": 345, - "loc": { - "start": { - "line": 21, - "column": 21 - }, - "end": { - "line": 21, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 346, - "end": 347, - "loc": { - "start": { - "line": 21, - "column": 23 - }, - "end": { - "line": 21, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 358, - "end": 362, - "loc": { - "start": { - "line": 22, - "column": 10 - }, - "end": { - "line": 22, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 362, - "end": 363, - "loc": { - "start": { - "line": 22, - "column": 14 - }, - "end": { - "line": 22, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 364, - "end": 372, - "loc": { - "start": { - "line": 22, - "column": 16 - }, - "end": { - "line": 22, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 372, - "end": 373, - "loc": { - "start": { - "line": 22, - "column": 24 - }, - "end": { - "line": 22, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 384, - "end": 389, - "loc": { - "start": { - "line": 23, - "column": 10 - }, - "end": { - "line": 23, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 389, - "end": 390, - "loc": { - "start": { - "line": 23, - "column": 15 - }, - "end": { - "line": 23, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 399, - "end": 400, - "loc": { - "start": { - "line": 24, - "column": 8 - }, - "end": { - "line": 24, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 400, - "end": 401, - "loc": { - "start": { - "line": 24, - "column": 9 - }, - "end": { - "line": 24, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 408, - "end": 409, - "loc": { - "start": { - "line": 25, - "column": 6 - }, - "end": { - "line": 25, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 409, - "end": 410, - "loc": { - "start": { - "line": 25, - "column": 7 - }, - "end": { - "line": 25, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 410, - "end": 411, - "loc": { - "start": { - "line": 25, - "column": 8 - }, - "end": { - "line": 25, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 412, - "end": 427, - "loc": { - "start": { - "line": 25, - "column": 10 - }, - "end": { - "line": 25, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 427, - "end": 428, - "loc": { - "start": { - "line": 25, - "column": 25 - }, - "end": { - "line": 25, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 428, - "end": 436, - "loc": { - "start": { - "line": 25, - "column": 26 - }, - "end": { - "line": 25, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 436, - "end": 437, - "loc": { - "start": { - "line": 25, - "column": 34 - }, - "end": { - "line": 25, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 437, - "end": 438, - "loc": { - "start": { - "line": 25, - "column": 35 - }, - "end": { - "line": 25, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 445, - "end": 446, - "loc": { - "start": { - "line": 26, - "column": 6 - }, - "end": { - "line": 26, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 446, - "end": 448, - "loc": { - "start": { - "line": 26, - "column": 7 - }, - "end": { - "line": 26, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 448, - "end": 449, - "loc": { - "start": { - "line": 26, - "column": 9 - }, - "end": { - "line": 26, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 449, - "end": 456, - "loc": { - "start": { - "line": 26, - "column": 10 - }, - "end": { - "line": 26, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 456, - "end": 457, - "loc": { - "start": { - "line": 26, - "column": 17 - }, - "end": { - "line": 26, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 458, - "end": 470, - "loc": { - "start": { - "line": 26, - "column": 19 - }, - "end": { - "line": 26, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 470, - "end": 471, - "loc": { - "start": { - "line": 26, - "column": 31 - }, - "end": { - "line": 26, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 471, - "end": 479, - "loc": { - "start": { - "line": 26, - "column": 32 - }, - "end": { - "line": 26, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 479, - "end": 480, - "loc": { - "start": { - "line": 26, - "column": 40 - }, - "end": { - "line": 26, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 480, - "end": 481, - "loc": { - "start": { - "line": 26, - "column": 41 - }, - "end": { - "line": 26, - "column": 42 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 488, - "end": 489, - "loc": { - "start": { - "line": 27, - "column": 6 - }, - "end": { - "line": 27, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 489, - "end": 492, - "loc": { - "start": { - "line": 27, - "column": 7 - }, - "end": { - "line": 27, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 492, - "end": 493, - "loc": { - "start": { - "line": 27, - "column": 10 - }, - "end": { - "line": 27, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 493, - "end": 494, - "loc": { - "start": { - "line": 27, - "column": 11 - }, - "end": { - "line": 27, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 494, - "end": 495, - "loc": { - "start": { - "line": 27, - "column": 12 - }, - "end": { - "line": 27, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 498, - "end": 499, - "loc": { - "start": { - "line": 28, - "column": 2 - }, - "end": { - "line": 28, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " get documents in a folder", - "start": 503, - "end": 531, - "loc": { - "start": { - "line": 30, - "column": 2 - }, - "end": { - "line": 30, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 534, - "end": 540, - "loc": { - "start": { - "line": 31, - "column": 2 - }, - "end": { - "line": 31, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documents", - "start": 541, - "end": 550, - "loc": { - "start": { - "line": 31, - "column": 9 - }, - "end": { - "line": 31, - "column": 18 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 551, - "end": 552, - "loc": { - "start": { - "line": 31, - "column": 19 - }, - "end": { - "line": 31, - "column": 20 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 552, - "end": 553, - "loc": { - "start": { - "line": 31, - "column": 20 - }, - "end": { - "line": 31, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 558, - "end": 560, - "loc": { - "start": { - "line": 32, - "column": 4 - }, - "end": { - "line": 32, - "column": 6 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 560, - "end": 561, - "loc": { - "start": { - "line": 32, - "column": 6 - }, - "end": { - "line": 32, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "filter", - "start": 566, - "end": 572, - "loc": { - "start": { - "line": 33, - "column": 4 - }, - "end": { - "line": 33, - "column": 10 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 572, - "end": 573, - "loc": { - "start": { - "line": 33, - "column": 10 - }, - "end": { - "line": 33, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "sort", - "start": 578, - "end": 582, - "loc": { - "start": { - "line": 34, - "column": 4 - }, - "end": { - "line": 34, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 582, - "end": 583, - "loc": { - "start": { - "line": 34, - "column": 8 - }, - "end": { - "line": 34, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 588, - "end": 593, - "loc": { - "start": { - "line": 35, - "column": 4 - }, - "end": { - "line": 35, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 593, - "end": 594, - "loc": { - "start": { - "line": 35, - "column": 9 - }, - "end": { - "line": 35, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 597, - "end": 598, - "loc": { - "start": { - "line": 36, - "column": 2 - }, - "end": { - "line": 36, - "column": 3 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 598, - "end": 599, - "loc": { - "start": { - "line": 36, - "column": 3 - }, - "end": { - "line": 36, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 600, - "end": 608, - "loc": { - "start": { - "line": 36, - "column": 5 - }, - "end": { - "line": 36, - "column": 13 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 608, - "end": 609, - "loc": { - "start": { - "line": 36, - "column": 13 - }, - "end": { - "line": 36, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 610, - "end": 611, - "loc": { - "start": { - "line": 36, - "column": 15 - }, - "end": { - "line": 36, - "column": 16 - } - } - }, - { - "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "let", - "start": 616, - "end": 619, - "loc": { - "start": { - "line": 37, - "column": 4 - }, - "end": { - "line": 37, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 620, - "end": 624, - "loc": { - "start": { - "line": 37, - "column": 8 - }, - "end": { - "line": 37, - "column": 12 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 625, - "end": 626, - "loc": { - "start": { - "line": 37, - "column": 13 - }, - "end": { - "line": 37, - "column": 14 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 627, - "end": 628, - "loc": { - "start": { - "line": 37, - "column": 15 - }, - "end": { - "line": 37, - "column": 16 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/folder/", - "start": 628, - "end": 636, - "loc": { - "start": { - "line": 37, - "column": 16 - }, - "end": { - "line": 37, - "column": 24 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 636, - "end": 638, - "loc": { - "start": { - "line": 37, - "column": 24 - }, - "end": { - "line": 37, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 638, - "end": 640, - "loc": { - "start": { - "line": 37, - "column": 26 - }, - "end": { - "line": 37, - "column": 28 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 640, - "end": 641, - "loc": { - "start": { - "line": 37, - "column": 28 - }, - "end": { - "line": 37, - "column": 29 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 641, - "end": 641, - "loc": { - "start": { - "line": 37, - "column": 29 - }, - "end": { - "line": 37, - "column": 29 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 641, - "end": 642, - "loc": { - "start": { - "line": 37, - "column": 29 - }, - "end": { - "line": 37, - "column": 30 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 642, - "end": 643, - "loc": { - "start": { - "line": 37, - "column": 30 - }, - "end": { - "line": 37, - "column": 31 - } - } - }, - { - "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "let", - "start": 648, - "end": 651, - "loc": { - "start": { - "line": 38, - "column": 4 - }, - "end": { - "line": 38, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "URLParams", - "start": 652, - "end": 661, - "loc": { - "start": { - "line": 38, - "column": 8 - }, - "end": { - "line": 38, - "column": 17 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 662, - "end": 663, - "loc": { - "start": { - "line": 38, - "column": 18 - }, - "end": { - "line": 38, - "column": 19 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 664, - "end": 666, - "loc": { - "start": { - "line": 38, - "column": 20 - }, - "end": { - "line": 38, - "column": 22 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 666, - "end": 667, - "loc": { - "start": { - "line": 38, - "column": 22 - }, - "end": { - "line": 38, - "column": 23 - } - } - }, - { - "type": "CommentLine", - "value": " build filters if supplied", - "start": 673, - "end": 701, - "loc": { - "start": { - "line": 40, - "column": 4 - }, - "end": { - "line": 40, - "column": 32 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 706, - "end": 708, - "loc": { - "start": { - "line": 41, - "column": 4 - }, - "end": { - "line": 41, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 709, - "end": 710, - "loc": { - "start": { - "line": 41, - "column": 7 - }, - "end": { - "line": 41, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Array", - "start": 710, - "end": 715, - "loc": { - "start": { - "line": 41, - "column": 8 - }, - "end": { - "line": 41, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 715, - "end": 716, - "loc": { - "start": { - "line": 41, - "column": 13 - }, - "end": { - "line": 41, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "isArray", - "start": 716, - "end": 723, - "loc": { - "start": { - "line": 41, - "column": 14 - }, - "end": { - "line": 41, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 723, - "end": 724, - "loc": { - "start": { - "line": 41, - "column": 21 - }, - "end": { - "line": 41, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "filter", - "start": 724, - "end": 730, - "loc": { - "start": { - "line": 41, - "column": 22 - }, - "end": { - "line": 41, - "column": 28 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 730, - "end": 731, - "loc": { - "start": { - "line": 41, - "column": 28 - }, - "end": { - "line": 41, - "column": 29 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 732, - "end": 734, - "loc": { - "start": { - "line": 41, - "column": 30 - }, - "end": { - "line": 41, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "filter", - "start": 735, - "end": 741, - "loc": { - "start": { - "line": 41, - "column": 33 - }, - "end": { - "line": 41, - "column": 39 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 741, - "end": 742, - "loc": { - "start": { - "line": 41, - "column": 39 - }, - "end": { - "line": 41, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "length", - "start": 742, - "end": 748, - "loc": { - "start": { - "line": 41, - "column": 40 - }, - "end": { - "line": 41, - "column": 46 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": ">", - "start": 749, - "end": 750, - "loc": { - "start": { - "line": 41, - "column": 47 - }, - "end": { - "line": 41, - "column": 48 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 751, - "end": 752, - "loc": { - "start": { - "line": 41, - "column": 49 - }, - "end": { - "line": 41, - "column": 50 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 752, - "end": 753, - "loc": { - "start": { - "line": 41, - "column": 50 - }, - "end": { - "line": 41, - "column": 51 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 754, - "end": 755, - "loc": { - "start": { - "line": 41, - "column": 52 - }, - "end": { - "line": 41, - "column": 53 - } - } - }, - { - "type": { - "label": "for", - "keyword": "for", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": true, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "for", - "start": 762, - "end": 765, - "loc": { - "start": { - "line": 42, - "column": 6 - }, - "end": { - "line": 42, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 766, - "end": 767, - "loc": { - "start": { - "line": 42, - "column": 10 - }, - "end": { - "line": 42, - "column": 11 - } - } - }, - { - "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "let", - "start": 767, - "end": 770, - "loc": { - "start": { - "line": 42, - "column": 11 - }, - "end": { - "line": 42, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 771, - "end": 772, - "loc": { - "start": { - "line": 42, - "column": 15 - }, - "end": { - "line": 42, - "column": 16 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 773, - "end": 774, - "loc": { - "start": { - "line": 42, - "column": 17 - }, - "end": { - "line": 42, - "column": 18 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 775, - "end": 776, - "loc": { - "start": { - "line": 42, - "column": 19 - }, - "end": { - "line": 42, - "column": 20 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 776, - "end": 777, - "loc": { - "start": { - "line": 42, - "column": 20 - }, - "end": { - "line": 42, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 778, - "end": 779, - "loc": { - "start": { - "line": 42, - "column": 22 - }, - "end": { - "line": 42, - "column": 23 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": "<", - "start": 780, - "end": 781, - "loc": { - "start": { - "line": 42, - "column": 24 - }, - "end": { - "line": 42, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "filter", - "start": 782, - "end": 788, - "loc": { - "start": { - "line": 42, - "column": 26 - }, - "end": { - "line": 42, - "column": 32 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 788, - "end": 789, - "loc": { - "start": { - "line": 42, - "column": 32 - }, - "end": { - "line": 42, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "length", - "start": 789, - "end": 795, - "loc": { - "start": { - "line": 42, - "column": 33 - }, - "end": { - "line": 42, - "column": 39 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 795, - "end": 796, - "loc": { - "start": { - "line": 42, - "column": 39 - }, - "end": { - "line": 42, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 797, - "end": 798, - "loc": { - "start": { - "line": 42, - "column": 41 - }, - "end": { - "line": 42, - "column": 42 - } - } - }, - { - "type": { - "label": "++/--", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": true, - "binop": null - }, - "value": "++", - "start": 798, - "end": 800, - "loc": { - "start": { - "line": 42, - "column": 42 - }, - "end": { - "line": 42, - "column": 44 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 800, - "end": 801, - "loc": { - "start": { - "line": 42, - "column": 44 - }, - "end": { - "line": 42, - "column": 45 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 802, - "end": 803, - "loc": { - "start": { - "line": 42, - "column": 46 - }, - "end": { - "line": 42, - "column": 47 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 812, - "end": 814, - "loc": { - "start": { - "line": 43, - "column": 8 - }, - "end": { - "line": 43, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 815, - "end": 816, - "loc": { - "start": { - "line": 43, - "column": 11 - }, - "end": { - "line": 43, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 816, - "end": 817, - "loc": { - "start": { - "line": 43, - "column": 12 - }, - "end": { - "line": 43, - "column": 13 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 818, - "end": 821, - "loc": { - "start": { - "line": 43, - "column": 14 - }, - "end": { - "line": 43, - "column": 17 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 822, - "end": 823, - "loc": { - "start": { - "line": 43, - "column": 18 - }, - "end": { - "line": 43, - "column": 19 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 823, - "end": 824, - "loc": { - "start": { - "line": 43, - "column": 19 - }, - "end": { - "line": 43, - "column": 20 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 825, - "end": 826, - "loc": { - "start": { - "line": 43, - "column": 21 - }, - "end": { - "line": 43, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "URLParams", - "start": 837, - "end": 846, - "loc": { - "start": { - "line": 44, - "column": 10 - }, - "end": { - "line": 44, - "column": 19 - } - } - }, - { - "type": { - "label": "_=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "+=", - "start": 847, - "end": 849, - "loc": { - "start": { - "line": 44, - "column": 20 - }, - "end": { - "line": 44, - "column": 22 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 850, - "end": 851, - "loc": { - "start": { - "line": 44, - "column": 23 - }, - "end": { - "line": 44, - "column": 24 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "?filters=", - "start": 851, - "end": 860, - "loc": { - "start": { - "line": 44, - "column": 24 - }, - "end": { - "line": 44, - "column": 33 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 860, - "end": 862, - "loc": { - "start": { - "line": 44, - "column": 33 - }, - "end": { - "line": 44, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Object", - "start": 862, - "end": 868, - "loc": { - "start": { - "line": 44, - "column": 35 - }, - "end": { - "line": 44, - "column": 41 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 868, - "end": 869, - "loc": { - "start": { - "line": 44, - "column": 41 - }, - "end": { - "line": 44, - "column": 42 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "keys", - "start": 869, - "end": 873, - "loc": { - "start": { - "line": 44, - "column": 42 - }, - "end": { - "line": 44, - "column": 46 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 873, - "end": 874, - "loc": { - "start": { - "line": 44, - "column": 46 - }, - "end": { - "line": 44, - "column": 47 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "filter", - "start": 874, - "end": 880, - "loc": { - "start": { - "line": 44, - "column": 47 - }, - "end": { - "line": 44, - "column": 53 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 880, - "end": 881, - "loc": { - "start": { - "line": 44, - "column": 53 - }, - "end": { - "line": 44, - "column": 54 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 881, - "end": 882, - "loc": { - "start": { - "line": 44, - "column": 54 - }, - "end": { - "line": 44, - "column": 55 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 882, - "end": 883, - "loc": { - "start": { - "line": 44, - "column": 55 - }, - "end": { - "line": 44, - "column": 56 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 883, - "end": 884, - "loc": { - "start": { - "line": 44, - "column": 56 - }, - "end": { - "line": 44, - "column": 57 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 884, - "end": 885, - "loc": { - "start": { - "line": 44, - "column": 57 - }, - "end": { - "line": 44, - "column": 58 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "&filter-values=", - "start": 885, - "end": 900, - "loc": { - "start": { - "line": 44, - "column": 58 - }, - "end": { - "line": 44, - "column": 73 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 900, - "end": 902, - "loc": { - "start": { - "line": 44, - "column": 73 - }, - "end": { - "line": 44, - "column": 75 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "filter", - "start": 902, - "end": 908, - "loc": { - "start": { - "line": 44, - "column": 75 - }, - "end": { - "line": 44, - "column": 81 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 908, - "end": 909, - "loc": { - "start": { - "line": 44, - "column": 81 - }, - "end": { - "line": 44, - "column": 82 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 909, - "end": 910, - "loc": { - "start": { - "line": 44, - "column": 82 - }, - "end": { - "line": 44, - "column": 83 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 910, - "end": 911, - "loc": { - "start": { - "line": 44, - "column": 83 - }, - "end": { - "line": 44, - "column": 84 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 911, - "end": 912, - "loc": { - "start": { - "line": 44, - "column": 84 - }, - "end": { - "line": 44, - "column": 85 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Object", - "start": 912, - "end": 918, - "loc": { - "start": { - "line": 44, - "column": 85 - }, - "end": { - "line": 44, - "column": 91 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 918, - "end": 919, - "loc": { - "start": { - "line": 44, - "column": 91 - }, - "end": { - "line": 44, - "column": 92 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "keys", - "start": 919, - "end": 923, - "loc": { - "start": { - "line": 44, - "column": 92 - }, - "end": { - "line": 44, - "column": 96 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 923, - "end": 924, - "loc": { - "start": { - "line": 44, - "column": 96 - }, - "end": { - "line": 44, - "column": 97 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "filter", - "start": 924, - "end": 930, - "loc": { - "start": { - "line": 44, - "column": 97 - }, - "end": { - "line": 44, - "column": 103 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 930, - "end": 931, - "loc": { - "start": { - "line": 44, - "column": 103 - }, - "end": { - "line": 44, - "column": 104 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 931, - "end": 932, - "loc": { - "start": { - "line": 44, - "column": 104 - }, - "end": { - "line": 44, - "column": 105 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 932, - "end": 933, - "loc": { - "start": { - "line": 44, - "column": 105 - }, - "end": { - "line": 44, - "column": 106 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 933, - "end": 934, - "loc": { - "start": { - "line": 44, - "column": 106 - }, - "end": { - "line": 44, - "column": 107 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 934, - "end": 935, - "loc": { - "start": { - "line": 44, - "column": 107 - }, - "end": { - "line": 44, - "column": 108 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 935, - "end": 936, - "loc": { - "start": { - "line": 44, - "column": 108 - }, - "end": { - "line": 44, - "column": 109 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 936, - "end": 936, - "loc": { - "start": { - "line": 44, - "column": 109 - }, - "end": { - "line": 44, - "column": 109 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 936, - "end": 937, - "loc": { - "start": { - "line": 44, - "column": 109 - }, - "end": { - "line": 44, - "column": 110 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 937, - "end": 938, - "loc": { - "start": { - "line": 44, - "column": 110 - }, - "end": { - "line": 44, - "column": 111 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 947, - "end": 948, - "loc": { - "start": { - "line": 45, - "column": 8 - }, - "end": { - "line": 45, - "column": 9 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 949, - "end": 953, - "loc": { - "start": { - "line": 45, - "column": 10 - }, - "end": { - "line": 45, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 954, - "end": 955, - "loc": { - "start": { - "line": 45, - "column": 15 - }, - "end": { - "line": 45, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "URLParams", - "start": 966, - "end": 975, - "loc": { - "start": { - "line": 46, - "column": 10 - }, - "end": { - "line": 46, - "column": 19 - } - } - }, - { - "type": { - "label": "_=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "+=", - "start": 976, - "end": 978, - "loc": { - "start": { - "line": 46, - "column": 20 - }, - "end": { - "line": 46, - "column": 22 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 979, - "end": 980, - "loc": { - "start": { - "line": 46, - "column": 23 - }, - "end": { - "line": 46, - "column": 24 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "&filters=", - "start": 980, - "end": 989, - "loc": { - "start": { - "line": 46, - "column": 24 - }, - "end": { - "line": 46, - "column": 33 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 989, - "end": 991, - "loc": { - "start": { - "line": 46, - "column": 33 - }, - "end": { - "line": 46, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Object", - "start": 991, - "end": 997, - "loc": { - "start": { - "line": 46, - "column": 35 - }, - "end": { - "line": 46, - "column": 41 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 997, - "end": 998, - "loc": { - "start": { - "line": 46, - "column": 41 - }, - "end": { - "line": 46, - "column": 42 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "keys", - "start": 998, - "end": 1002, - "loc": { - "start": { - "line": 46, - "column": 42 - }, - "end": { - "line": 46, - "column": 46 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1002, - "end": 1003, - "loc": { - "start": { - "line": 46, - "column": 46 - }, - "end": { - "line": 46, - "column": 47 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "filter", - "start": 1003, - "end": 1009, - "loc": { - "start": { - "line": 46, - "column": 47 - }, - "end": { - "line": 46, - "column": 53 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1009, - "end": 1010, - "loc": { - "start": { - "line": 46, - "column": 53 - }, - "end": { - "line": 46, - "column": 54 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 1010, - "end": 1011, - "loc": { - "start": { - "line": 46, - "column": 54 - }, - "end": { - "line": 46, - "column": 55 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1011, - "end": 1012, - "loc": { - "start": { - "line": 46, - "column": 55 - }, - "end": { - "line": 46, - "column": 56 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1012, - "end": 1013, - "loc": { - "start": { - "line": 46, - "column": 56 - }, - "end": { - "line": 46, - "column": 57 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1013, - "end": 1014, - "loc": { - "start": { - "line": 46, - "column": 57 - }, - "end": { - "line": 46, - "column": 58 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "&filter-values=", - "start": 1014, - "end": 1029, - "loc": { - "start": { - "line": 46, - "column": 58 - }, - "end": { - "line": 46, - "column": 73 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1029, - "end": 1031, - "loc": { - "start": { - "line": 46, - "column": 73 - }, - "end": { - "line": 46, - "column": 75 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "filter", - "start": 1031, - "end": 1037, - "loc": { - "start": { - "line": 46, - "column": 75 - }, - "end": { - "line": 46, - "column": 81 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1037, - "end": 1038, - "loc": { - "start": { - "line": 46, - "column": 81 - }, - "end": { - "line": 46, - "column": 82 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 1038, - "end": 1039, - "loc": { - "start": { - "line": 46, - "column": 82 - }, - "end": { - "line": 46, - "column": 83 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1039, - "end": 1040, - "loc": { - "start": { - "line": 46, - "column": 83 - }, - "end": { - "line": 46, - "column": 84 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1040, - "end": 1041, - "loc": { - "start": { - "line": 46, - "column": 84 - }, - "end": { - "line": 46, - "column": 85 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Object", - "start": 1041, - "end": 1047, - "loc": { - "start": { - "line": 46, - "column": 85 - }, - "end": { - "line": 46, - "column": 91 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1047, - "end": 1048, - "loc": { - "start": { - "line": 46, - "column": 91 - }, - "end": { - "line": 46, - "column": 92 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "keys", - "start": 1048, - "end": 1052, - "loc": { - "start": { - "line": 46, - "column": 92 - }, - "end": { - "line": 46, - "column": 96 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1052, - "end": 1053, - "loc": { - "start": { - "line": 46, - "column": 96 - }, - "end": { - "line": 46, - "column": 97 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "filter", - "start": 1053, - "end": 1059, - "loc": { - "start": { - "line": 46, - "column": 97 - }, - "end": { - "line": 46, - "column": 103 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1059, - "end": 1060, - "loc": { - "start": { - "line": 46, - "column": 103 - }, - "end": { - "line": 46, - "column": 104 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 1060, - "end": 1061, - "loc": { - "start": { - "line": 46, - "column": 104 - }, - "end": { - "line": 46, - "column": 105 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1061, - "end": 1062, - "loc": { - "start": { - "line": 46, - "column": 105 - }, - "end": { - "line": 46, - "column": 106 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1062, - "end": 1063, - "loc": { - "start": { - "line": 46, - "column": 106 - }, - "end": { - "line": 46, - "column": 107 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1063, - "end": 1064, - "loc": { - "start": { - "line": 46, - "column": 107 - }, - "end": { - "line": 46, - "column": 108 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1064, - "end": 1065, - "loc": { - "start": { - "line": 46, - "column": 108 - }, - "end": { - "line": 46, - "column": 109 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 1065, - "end": 1065, - "loc": { - "start": { - "line": 46, - "column": 109 - }, - "end": { - "line": 46, - "column": 109 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1065, - "end": 1066, - "loc": { - "start": { - "line": 46, - "column": 109 - }, - "end": { - "line": 46, - "column": 110 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1066, - "end": 1067, - "loc": { - "start": { - "line": 46, - "column": 110 - }, - "end": { - "line": 46, - "column": 111 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1076, - "end": 1077, - "loc": { - "start": { - "line": 47, - "column": 8 - }, - "end": { - "line": 47, - "column": 9 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1084, - "end": 1085, - "loc": { - "start": { - "line": 48, - "column": 6 - }, - "end": { - "line": 48, - "column": 7 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1090, - "end": 1091, - "loc": { - "start": { - "line": 49, - "column": 4 - }, - "end": { - "line": 49, - "column": 5 - } - } - }, - { - "type": "CommentLine", - "value": " build sort if supplied", - "start": 1097, - "end": 1122, - "loc": { - "start": { - "line": 51, - "column": 4 - }, - "end": { - "line": 51, - "column": 29 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 1127, - "end": 1129, - "loc": { - "start": { - "line": 52, - "column": 4 - }, - "end": { - "line": 52, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1130, - "end": 1131, - "loc": { - "start": { - "line": 52, - "column": 7 - }, - "end": { - "line": 52, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "sort", - "start": 1131, - "end": 1135, - "loc": { - "start": { - "line": 52, - "column": 8 - }, - "end": { - "line": 52, - "column": 12 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1135, - "end": 1136, - "loc": { - "start": { - "line": 52, - "column": 12 - }, - "end": { - "line": 52, - "column": 13 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1137, - "end": 1138, - "loc": { - "start": { - "line": 52, - "column": 14 - }, - "end": { - "line": 52, - "column": 15 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 1145, - "end": 1147, - "loc": { - "start": { - "line": 53, - "column": 6 - }, - "end": { - "line": 53, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1148, - "end": 1149, - "loc": { - "start": { - "line": 53, - "column": 9 - }, - "end": { - "line": 53, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "URLParams", - "start": 1149, - "end": 1158, - "loc": { - "start": { - "line": 53, - "column": 10 - }, - "end": { - "line": 53, - "column": 19 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1158, - "end": 1159, - "loc": { - "start": { - "line": 53, - "column": 19 - }, - "end": { - "line": 53, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "length", - "start": 1159, - "end": 1165, - "loc": { - "start": { - "line": 53, - "column": 20 - }, - "end": { - "line": 53, - "column": 26 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": ">", - "start": 1166, - "end": 1167, - "loc": { - "start": { - "line": 53, - "column": 27 - }, - "end": { - "line": 53, - "column": 28 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 1168, - "end": 1169, - "loc": { - "start": { - "line": 53, - "column": 29 - }, - "end": { - "line": 53, - "column": 30 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1169, - "end": 1170, - "loc": { - "start": { - "line": 53, - "column": 30 - }, - "end": { - "line": 53, - "column": 31 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1171, - "end": 1172, - "loc": { - "start": { - "line": 53, - "column": 32 - }, - "end": { - "line": 53, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "URLParams", - "start": 1181, - "end": 1190, - "loc": { - "start": { - "line": 54, - "column": 8 - }, - "end": { - "line": 54, - "column": 17 - } - } - }, - { - "type": { - "label": "_=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "+=", - "start": 1191, - "end": 1193, - "loc": { - "start": { - "line": 54, - "column": 18 - }, - "end": { - "line": 54, - "column": 20 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "&", - "start": 1194, - "end": 1197, - "loc": { - "start": { - "line": 54, - "column": 21 - }, - "end": { - "line": 54, - "column": 24 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1197, - "end": 1198, - "loc": { - "start": { - "line": 54, - "column": 24 - }, - "end": { - "line": 54, - "column": 25 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1205, - "end": 1206, - "loc": { - "start": { - "line": 55, - "column": 6 - }, - "end": { - "line": 55, - "column": 7 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 1207, - "end": 1211, - "loc": { - "start": { - "line": 55, - "column": 8 - }, - "end": { - "line": 55, - "column": 12 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1212, - "end": 1213, - "loc": { - "start": { - "line": 55, - "column": 13 - }, - "end": { - "line": 55, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "URLParams", - "start": 1222, - "end": 1231, - "loc": { - "start": { - "line": 56, - "column": 8 - }, - "end": { - "line": 56, - "column": 17 - } - } - }, - { - "type": { - "label": "_=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "+=", - "start": 1232, - "end": 1234, - "loc": { - "start": { - "line": 56, - "column": 18 - }, - "end": { - "line": 56, - "column": 20 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "?", - "start": 1235, - "end": 1238, - "loc": { - "start": { - "line": 56, - "column": 21 - }, - "end": { - "line": 56, - "column": 24 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1238, - "end": 1239, - "loc": { - "start": { - "line": 56, - "column": 24 - }, - "end": { - "line": 56, - "column": 25 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1246, - "end": 1247, - "loc": { - "start": { - "line": 57, - "column": 6 - }, - "end": { - "line": 57, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "URLParams", - "start": 1254, - "end": 1263, - "loc": { - "start": { - "line": 58, - "column": 6 - }, - "end": { - "line": 58, - "column": 15 - } - } - }, - { - "type": { - "label": "_=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "+=", - "start": 1264, - "end": 1266, - "loc": { - "start": { - "line": 58, - "column": 16 - }, - "end": { - "line": 58, - "column": 18 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1267, - "end": 1268, - "loc": { - "start": { - "line": 58, - "column": 19 - }, - "end": { - "line": 58, - "column": 20 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "sortby=", - "start": 1268, - "end": 1275, - "loc": { - "start": { - "line": 58, - "column": 20 - }, - "end": { - "line": 58, - "column": 27 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1275, - "end": 1277, - "loc": { - "start": { - "line": 58, - "column": 27 - }, - "end": { - "line": 58, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Object", - "start": 1277, - "end": 1283, - "loc": { - "start": { - "line": 58, - "column": 29 - }, - "end": { - "line": 58, - "column": 35 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1283, - "end": 1284, - "loc": { - "start": { - "line": 58, - "column": 35 - }, - "end": { - "line": 58, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "keys", - "start": 1284, - "end": 1288, - "loc": { - "start": { - "line": 58, - "column": 36 - }, - "end": { - "line": 58, - "column": 40 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1288, - "end": 1289, - "loc": { - "start": { - "line": 58, - "column": 40 - }, - "end": { - "line": 58, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "sort", - "start": 1289, - "end": 1293, - "loc": { - "start": { - "line": 58, - "column": 41 - }, - "end": { - "line": 58, - "column": 45 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1293, - "end": 1294, - "loc": { - "start": { - "line": 58, - "column": 45 - }, - "end": { - "line": 58, - "column": 46 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1294, - "end": 1295, - "loc": { - "start": { - "line": 58, - "column": 46 - }, - "end": { - "line": 58, - "column": 47 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "&order=", - "start": 1295, - "end": 1302, - "loc": { - "start": { - "line": 58, - "column": 47 - }, - "end": { - "line": 58, - "column": 54 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1302, - "end": 1304, - "loc": { - "start": { - "line": 58, - "column": 54 - }, - "end": { - "line": 58, - "column": 56 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "sort", - "start": 1304, - "end": 1308, - "loc": { - "start": { - "line": 58, - "column": 56 - }, - "end": { - "line": 58, - "column": 60 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1308, - "end": 1309, - "loc": { - "start": { - "line": 58, - "column": 60 - }, - "end": { - "line": 58, - "column": 61 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Object", - "start": 1309, - "end": 1315, - "loc": { - "start": { - "line": 58, - "column": 61 - }, - "end": { - "line": 58, - "column": 67 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1315, - "end": 1316, - "loc": { - "start": { - "line": 58, - "column": 67 - }, - "end": { - "line": 58, - "column": 68 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "keys", - "start": 1316, - "end": 1320, - "loc": { - "start": { - "line": 58, - "column": 68 - }, - "end": { - "line": 58, - "column": 72 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1320, - "end": 1321, - "loc": { - "start": { - "line": 58, - "column": 72 - }, - "end": { - "line": 58, - "column": 73 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "sort", - "start": 1321, - "end": 1325, - "loc": { - "start": { - "line": 58, - "column": 73 - }, - "end": { - "line": 58, - "column": 77 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1325, - "end": 1326, - "loc": { - "start": { - "line": 58, - "column": 77 - }, - "end": { - "line": 58, - "column": 78 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1326, - "end": 1327, - "loc": { - "start": { - "line": 58, - "column": 78 - }, - "end": { - "line": 58, - "column": 79 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1327, - "end": 1328, - "loc": { - "start": { - "line": 58, - "column": 79 - }, - "end": { - "line": 58, - "column": 80 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 1328, - "end": 1328, - "loc": { - "start": { - "line": 58, - "column": 80 - }, - "end": { - "line": 58, - "column": 80 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1328, - "end": 1329, - "loc": { - "start": { - "line": 58, - "column": 80 - }, - "end": { - "line": 58, - "column": 81 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1329, - "end": 1330, - "loc": { - "start": { - "line": 58, - "column": 81 - }, - "end": { - "line": 58, - "column": 82 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1335, - "end": 1336, - "loc": { - "start": { - "line": 59, - "column": 4 - }, - "end": { - "line": 59, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 1342, - "end": 1346, - "loc": { - "start": { - "line": 61, - "column": 4 - }, - "end": { - "line": 61, - "column": 8 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1347, - "end": 1348, - "loc": { - "start": { - "line": 61, - "column": 9 - }, - "end": { - "line": 61, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 1349, - "end": 1353, - "loc": { - "start": { - "line": 61, - "column": 11 - }, - "end": { - "line": 61, - "column": 15 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 1354, - "end": 1355, - "loc": { - "start": { - "line": 61, - "column": 16 - }, - "end": { - "line": 61, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "URLParams", - "start": 1356, - "end": 1365, - "loc": { - "start": { - "line": 61, - "column": 18 - }, - "end": { - "line": 61, - "column": 27 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1365, - "end": 1366, - "loc": { - "start": { - "line": 61, - "column": 27 - }, - "end": { - "line": 61, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 1372, - "end": 1377, - "loc": { - "start": { - "line": 63, - "column": 4 - }, - "end": { - "line": 63, - "column": 9 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1384, - "end": 1385, - "loc": { - "start": { - "line": 64, - "column": 6 - }, - "end": { - "line": 64, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 1385, - "end": 1392, - "loc": { - "start": { - "line": 64, - "column": 7 - }, - "end": { - "line": 64, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1392, - "end": 1393, - "loc": { - "start": { - "line": 64, - "column": 14 - }, - "end": { - "line": 64, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 1393, - "end": 1412, - "loc": { - "start": { - "line": 64, - "column": 15 - }, - "end": { - "line": 64, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1412, - "end": 1413, - "loc": { - "start": { - "line": 64, - "column": 34 - }, - "end": { - "line": 64, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1413, - "end": 1414, - "loc": { - "start": { - "line": 64, - "column": 35 - }, - "end": { - "line": 64, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 1423, - "end": 1429, - "loc": { - "start": { - "line": 65, - "column": 8 - }, - "end": { - "line": 65, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1429, - "end": 1430, - "loc": { - "start": { - "line": 65, - "column": 14 - }, - "end": { - "line": 65, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "GET", - "start": 1431, - "end": 1436, - "loc": { - "start": { - "line": 65, - "column": 16 - }, - "end": { - "line": 65, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1436, - "end": 1437, - "loc": { - "start": { - "line": 65, - "column": 21 - }, - "end": { - "line": 65, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 1446, - "end": 1459, - "loc": { - "start": { - "line": 66, - "column": 8 - }, - "end": { - "line": 66, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1459, - "end": 1460, - "loc": { - "start": { - "line": 66, - "column": 21 - }, - "end": { - "line": 66, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1461, - "end": 1462, - "loc": { - "start": { - "line": 66, - "column": 23 - }, - "end": { - "line": 66, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 1473, - "end": 1477, - "loc": { - "start": { - "line": 67, - "column": 10 - }, - "end": { - "line": 67, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1477, - "end": 1478, - "loc": { - "start": { - "line": 67, - "column": 14 - }, - "end": { - "line": 67, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 1479, - "end": 1487, - "loc": { - "start": { - "line": 67, - "column": 16 - }, - "end": { - "line": 67, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1487, - "end": 1488, - "loc": { - "start": { - "line": 67, - "column": 24 - }, - "end": { - "line": 67, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 1499, - "end": 1504, - "loc": { - "start": { - "line": 68, - "column": 10 - }, - "end": { - "line": 68, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1504, - "end": 1505, - "loc": { - "start": { - "line": 68, - "column": 15 - }, - "end": { - "line": 68, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1514, - "end": 1515, - "loc": { - "start": { - "line": 69, - "column": 8 - }, - "end": { - "line": 69, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1515, - "end": 1516, - "loc": { - "start": { - "line": 69, - "column": 9 - }, - "end": { - "line": 69, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 1525, - "end": 1529, - "loc": { - "start": { - "line": 70, - "column": 8 - }, - "end": { - "line": 70, - "column": 12 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1529, - "end": 1530, - "loc": { - "start": { - "line": 70, - "column": 12 - }, - "end": { - "line": 70, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1537, - "end": 1538, - "loc": { - "start": { - "line": 71, - "column": 6 - }, - "end": { - "line": 71, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1538, - "end": 1539, - "loc": { - "start": { - "line": 71, - "column": 7 - }, - "end": { - "line": 71, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1539, - "end": 1540, - "loc": { - "start": { - "line": 71, - "column": 8 - }, - "end": { - "line": 71, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 1541, - "end": 1556, - "loc": { - "start": { - "line": 71, - "column": 10 - }, - "end": { - "line": 71, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1556, - "end": 1557, - "loc": { - "start": { - "line": 71, - "column": 25 - }, - "end": { - "line": 71, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 1557, - "end": 1565, - "loc": { - "start": { - "line": 71, - "column": 26 - }, - "end": { - "line": 71, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1565, - "end": 1566, - "loc": { - "start": { - "line": 71, - "column": 34 - }, - "end": { - "line": 71, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1566, - "end": 1567, - "loc": { - "start": { - "line": 71, - "column": 35 - }, - "end": { - "line": 71, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1574, - "end": 1575, - "loc": { - "start": { - "line": 72, - "column": 6 - }, - "end": { - "line": 72, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 1575, - "end": 1577, - "loc": { - "start": { - "line": 72, - "column": 7 - }, - "end": { - "line": 72, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1577, - "end": 1578, - "loc": { - "start": { - "line": 72, - "column": 9 - }, - "end": { - "line": 72, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 1578, - "end": 1585, - "loc": { - "start": { - "line": 72, - "column": 10 - }, - "end": { - "line": 72, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1585, - "end": 1586, - "loc": { - "start": { - "line": 72, - "column": 17 - }, - "end": { - "line": 72, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 1587, - "end": 1599, - "loc": { - "start": { - "line": 72, - "column": 19 - }, - "end": { - "line": 72, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1599, - "end": 1600, - "loc": { - "start": { - "line": 72, - "column": 31 - }, - "end": { - "line": 72, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 1600, - "end": 1608, - "loc": { - "start": { - "line": 72, - "column": 32 - }, - "end": { - "line": 72, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1608, - "end": 1609, - "loc": { - "start": { - "line": 72, - "column": 40 - }, - "end": { - "line": 72, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1609, - "end": 1610, - "loc": { - "start": { - "line": 72, - "column": 41 - }, - "end": { - "line": 72, - "column": 42 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1617, - "end": 1618, - "loc": { - "start": { - "line": 73, - "column": 6 - }, - "end": { - "line": 73, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 1618, - "end": 1621, - "loc": { - "start": { - "line": 73, - "column": 7 - }, - "end": { - "line": 73, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1621, - "end": 1622, - "loc": { - "start": { - "line": 73, - "column": 10 - }, - "end": { - "line": 73, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1622, - "end": 1623, - "loc": { - "start": { - "line": 73, - "column": 11 - }, - "end": { - "line": 73, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1623, - "end": 1624, - "loc": { - "start": { - "line": 73, - "column": 12 - }, - "end": { - "line": 73, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1627, - "end": 1628, - "loc": { - "start": { - "line": 74, - "column": 2 - }, - "end": { - "line": 74, - "column": 3 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1630, - "end": 1631, - "loc": { - "start": { - "line": 76, - "column": 0 - }, - "end": { - "line": 76, - "column": 1 - } - } - }, - { - "type": { - "label": "export", - "keyword": "export", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "export", - "start": 1633, - "end": 1639, - "loc": { - "start": { - "line": 78, - "column": 0 - }, - "end": { - "line": 78, - "column": 6 - } - } - }, - { - "type": { - "label": "default", - "keyword": "default", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "default", - "start": 1640, - "end": 1647, - "loc": { - "start": { - "line": 78, - "column": 7 - }, - "end": { - "line": 78, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Folder", - "start": 1648, - "end": 1654, - "loc": { - "start": { - "line": 78, - "column": 15 - }, - "end": { - "line": 78, - "column": 21 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1654, - "end": 1655, - "loc": { - "start": { - "line": 78, - "column": 21 - }, - "end": { - "line": 78, - "column": 22 - } - } - }, - { - "type": { - "label": "eof", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1656, - "end": 1656, - "loc": { - "start": { - "line": 79, - "column": 0 - }, - "end": { - "line": 79, - "column": 0 - } - } - } - ] -} \ No newline at end of file diff --git a/docs/ast/source/index.js.json b/docs/ast/source/index.js.json deleted file mode 100644 index 40f23dd2..00000000 --- a/docs/ast/source/index.js.json +++ /dev/null @@ -1,6355 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 2106, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 81, - "column": 0 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 2106, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 81, - "column": 0 - } - }, - "sourceType": "module", - "body": [ - { - "type": "ImportDeclaration", - "start": 14, - "end": 40, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 26 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 21, - "end": 25, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 11 - } - }, - "local": { - "type": "Identifier", - "start": 21, - "end": 25, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 11 - }, - "identifierName": "user" - }, - "name": "user" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 31, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 17 - }, - "end": { - "line": 2, - "column": 25 - } - }, - "extra": { - "rawValue": "./user", - "raw": "'./user'" - }, - "value": "./user" - } - }, - { - "type": "ImportDeclaration", - "start": 41, - "end": 75, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 34 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 48, - "end": 56, - "loc": { - "start": { - "line": 3, - "column": 7 - }, - "end": { - "line": 3, - "column": 15 - } - }, - "local": { - "type": "Identifier", - "start": 48, - "end": 56, - "loc": { - "start": { - "line": 3, - "column": 7 - }, - "end": { - "line": 3, - "column": 15 - }, - "identifierName": "document" - }, - "name": "document" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 62, - "end": 74, - "loc": { - "start": { - "line": 3, - "column": 21 - }, - "end": { - "line": 3, - "column": 33 - } - }, - "extra": { - "rawValue": "./document", - "raw": "'./document'" - }, - "value": "./document" - } - }, - { - "type": "ImportDeclaration", - "start": 76, - "end": 106, - "loc": { - "start": { - "line": 4, - "column": 0 - }, - "end": { - "line": 4, - "column": 30 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 83, - "end": 89, - "loc": { - "start": { - "line": 4, - "column": 7 - }, - "end": { - "line": 4, - "column": 13 - } - }, - "local": { - "type": "Identifier", - "start": 83, - "end": 89, - "loc": { - "start": { - "line": 4, - "column": 7 - }, - "end": { - "line": 4, - "column": 13 - }, - "identifierName": "folder" - }, - "name": "folder" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 95, - "end": 105, - "loc": { - "start": { - "line": 4, - "column": 19 - }, - "end": { - "line": 4, - "column": 29 - } - }, - "extra": { - "rawValue": "./folder", - "raw": "'./folder'" - }, - "value": "./folder" - } - }, - { - "type": "ImportDeclaration", - "start": 107, - "end": 139, - "loc": { - "start": { - "line": 5, - "column": 0 - }, - "end": { - "line": 5, - "column": 32 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 114, - "end": 121, - "loc": { - "start": { - "line": 5, - "column": 7 - }, - "end": { - "line": 5, - "column": 14 - } - }, - "local": { - "type": "Identifier", - "start": 114, - "end": 121, - "loc": { - "start": { - "line": 5, - "column": 7 - }, - "end": { - "line": 5, - "column": 14 - }, - "identifierName": "webhook" - }, - "name": "webhook" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 127, - "end": 138, - "loc": { - "start": { - "line": 5, - "column": 20 - }, - "end": { - "line": 5, - "column": 31 - } - }, - "extra": { - "rawValue": "./webhook", - "raw": "'./webhook'" - }, - "value": "./webhook" - } - }, - { - "type": "ImportDeclaration", - "start": 140, - "end": 170, - "loc": { - "start": { - "line": 6, - "column": 0 - }, - "end": { - "line": 6, - "column": 30 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 147, - "end": 153, - "loc": { - "start": { - "line": 6, - "column": 7 - }, - "end": { - "line": 6, - "column": 13 - } - }, - "local": { - "type": "Identifier", - "start": 147, - "end": 153, - "loc": { - "start": { - "line": 6, - "column": 7 - }, - "end": { - "line": 6, - "column": 13 - }, - "identifierName": "oauth2" - }, - "name": "oauth2" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 159, - "end": 169, - "loc": { - "start": { - "line": 6, - "column": 19 - }, - "end": { - "line": 6, - "column": 29 - } - }, - "extra": { - "rawValue": "./oauth2", - "raw": "'./oauth2'" - }, - "value": "./oauth2" - } - }, - { - "type": "ImportDeclaration", - "start": 171, - "end": 213, - "loc": { - "start": { - "line": 7, - "column": 0 - }, - "end": { - "line": 7, - "column": 42 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 178, - "end": 190, - "loc": { - "start": { - "line": 7, - "column": 7 - }, - "end": { - "line": 7, - "column": 19 - } - }, - "local": { - "type": "Identifier", - "start": 178, - "end": 190, - "loc": { - "start": { - "line": 7, - "column": 7 - }, - "end": { - "line": 7, - "column": 19 - }, - "identifierName": "enumerations" - }, - "name": "enumerations" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 196, - "end": 212, - "loc": { - "start": { - "line": 7, - "column": 25 - }, - "end": { - "line": 7, - "column": 41 - } - }, - "extra": { - "rawValue": "./enumerations", - "raw": "'./enumerations'" - }, - "value": "./enumerations" - } - }, - { - "type": "ImportDeclaration", - "start": 214, - "end": 248, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 8, - "column": 34 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 221, - "end": 229, - "loc": { - "start": { - "line": 8, - "column": 7 - }, - "end": { - "line": 8, - "column": 15 - } - }, - "local": { - "type": "Identifier", - "start": 221, - "end": 229, - "loc": { - "start": { - "line": 8, - "column": 7 - }, - "end": { - "line": 8, - "column": 15 - }, - "identifierName": "template" - }, - "name": "template" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 235, - "end": 247, - "loc": { - "start": { - "line": 8, - "column": 21 - }, - "end": { - "line": 8, - "column": 33 - } - }, - "extra": { - "rawValue": "./template", - "raw": "'./template'" - }, - "value": "./template" - } - }, - { - "type": "ImportDeclaration", - "start": 249, - "end": 275, - "loc": { - "start": { - "line": 9, - "column": 0 - }, - "end": { - "line": 9, - "column": 26 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 256, - "end": 260, - "loc": { - "start": { - "line": 9, - "column": 7 - }, - "end": { - "line": 9, - "column": 11 - } - }, - "local": { - "type": "Identifier", - "start": 256, - "end": 260, - "loc": { - "start": { - "line": 9, - "column": 7 - }, - "end": { - "line": 9, - "column": 11 - }, - "identifierName": "link" - }, - "name": "link" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 266, - "end": 274, - "loc": { - "start": { - "line": 9, - "column": 17 - }, - "end": { - "line": 9, - "column": 25 - } - }, - "extra": { - "rawValue": "./link", - "raw": "'./link'" - }, - "value": "./link" - } - }, - { - "type": "ImportDeclaration", - "start": 276, - "end": 321, - "loc": { - "start": { - "line": 10, - "column": 0 - }, - "end": { - "line": 10, - "column": 45 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 283, - "end": 296, - "loc": { - "start": { - "line": 10, - "column": 7 - }, - "end": { - "line": 10, - "column": 20 - } - }, - "local": { - "type": "Identifier", - "start": 283, - "end": 296, - "loc": { - "start": { - "line": 10, - "column": 7 - }, - "end": { - "line": 10, - "column": 20 - }, - "identifierName": "documentGroup" - }, - "name": "documentGroup" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 302, - "end": 320, - "loc": { - "start": { - "line": 10, - "column": 26 - }, - "end": { - "line": 10, - "column": 44 - } - }, - "extra": { - "rawValue": "./document-group", - "raw": "'./document-group'" - }, - "value": "./document-group" - } - }, - { - "type": "ImportDeclaration", - "start": 322, - "end": 384, - "loc": { - "start": { - "line": 11, - "column": 0 - }, - "end": { - "line": 11, - "column": 62 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 329, - "end": 350, - "loc": { - "start": { - "line": 11, - "column": 7 - }, - "end": { - "line": 11, - "column": 28 - } - }, - "local": { - "type": "Identifier", - "start": 329, - "end": 350, - "loc": { - "start": { - "line": 11, - "column": 7 - }, - "end": { - "line": 11, - "column": 28 - }, - "identifierName": "documentGroupTemplate" - }, - "name": "documentGroupTemplate" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 356, - "end": 383, - "loc": { - "start": { - "line": 11, - "column": 34 - }, - "end": { - "line": 11, - "column": 61 - } - }, - "extra": { - "rawValue": "./document-group-template", - "raw": "'./document-group-template'" - }, - "value": "./document-group-template" - } - }, - { - "type": "ImportDeclaration", - "start": 385, - "end": 419, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 12, - "column": 34 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 392, - "end": 400, - "loc": { - "start": { - "line": 12, - "column": 7 - }, - "end": { - "line": 12, - "column": 15 - } - }, - "local": { - "type": "Identifier", - "start": 392, - "end": 400, - "loc": { - "start": { - "line": 12, - "column": 7 - }, - "end": { - "line": 12, - "column": 15 - }, - "identifierName": "embedded" - }, - "name": "embedded" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 406, - "end": 418, - "loc": { - "start": { - "line": 12, - "column": 21 - }, - "end": { - "line": 12, - "column": 33 - } - }, - "extra": { - "rawValue": "./embedded", - "raw": "'./embedded'" - }, - "value": "./embedded" - } - }, - { - "type": "ImportDeclaration", - "start": 420, - "end": 462, - "loc": { - "start": { - "line": 13, - "column": 0 - }, - "end": { - "line": 13, - "column": 42 - } - }, - "specifiers": [ - { - "type": "ImportSpecifier", - "start": 429, - "end": 443, - "loc": { - "start": { - "line": 13, - "column": 9 - }, - "end": { - "line": 13, - "column": 23 - } - }, - "imported": { - "type": "Identifier", - "start": 429, - "end": 443, - "loc": { - "start": { - "line": 13, - "column": 9 - }, - "end": { - "line": 13, - "column": 23 - }, - "identifierName": "setCredentials" - }, - "name": "setCredentials" - }, - "local": { - "type": "Identifier", - "start": 429, - "end": 443, - "loc": { - "start": { - "line": 13, - "column": 9 - }, - "end": { - "line": 13, - "column": 23 - }, - "identifierName": "setCredentials" - }, - "name": "setCredentials" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 451, - "end": 461, - "loc": { - "start": { - "line": 13, - "column": 31 - }, - "end": { - "line": 13, - "column": 41 - } - }, - "extra": { - "rawValue": "./common", - "raw": "'./common'" - }, - "value": "./common" - } - }, - { - "type": "ImportDeclaration", - "start": 463, - "end": 504, - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 14, - "column": 41 - } - }, - "specifiers": [ - { - "type": "ImportSpecifier", - "start": 472, - "end": 484, - "loc": { - "start": { - "line": 14, - "column": 9 - }, - "end": { - "line": 14, - "column": 21 - } - }, - "imported": { - "type": "Identifier", - "start": 472, - "end": 484, - "loc": { - "start": { - "line": 14, - "column": 9 - }, - "end": { - "line": 14, - "column": 21 - }, - "identifierName": "setEnvConfig" - }, - "name": "setEnvConfig" - }, - "local": { - "type": "Identifier", - "start": 472, - "end": 484, - "loc": { - "start": { - "line": 14, - "column": 9 - }, - "end": { - "line": 14, - "column": 21 - }, - "identifierName": "setEnvConfig" - }, - "name": "setEnvConfig" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 492, - "end": 503, - "loc": { - "start": { - "line": 14, - "column": 29 - }, - "end": { - "line": 14, - "column": 40 - } - }, - "extra": { - "rawValue": "../config", - "raw": "'../config'" - }, - "value": "../config" - }, - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Api client initialization params\n * @typedef {Object} InitParams\n * @property {string} credentials - base64 encoded basic API credentials\n * @property {boolean} [production=true] - production/eval API flag. If false uses eval\n ", - "start": 506, - "end": 742, - "loc": { - "start": { - "line": 16, - "column": 0 - }, - "end": { - "line": 21, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Api client features\n * @typedef {Object} Features\n * @property {User} user - user related methods\n * @property {OAuth2} oauth2 - authentication related methods\n * @property {Document} document - document related methods\n * @property {Template} template - template related methods\n * @property {Link} link - link related methods\n * @property {DocumentGroup} documentGroup - document group related methods\n * @property {DocumentGroupTemplate} documentGroupTemplate - document group template related methods\n * @property {Embedded} embedded - embedded signing related methods\n ", - "start": 744, - "end": 1327, - "loc": { - "start": { - "line": 23, - "column": 0 - }, - "end": { - "line": 34, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * SignNow API client initialization\n * @param {InitParams} params - API client initialization params\n * @return {Features}\n ", - "start": 1329, - "end": 1460, - "loc": { - "start": { - "line": 36, - "column": 0 - }, - "end": { - "line": 40, - "column": 3 - } - } - } - ] - }, - { - "type": "ExportDefaultDeclaration", - "start": 1461, - "end": 1861, - "loc": { - "start": { - "line": 41, - "column": 0 - }, - "end": { - "line": 68, - "column": 1 - } - }, - "declaration": { - "type": "FunctionDeclaration", - "start": 1476, - "end": 1861, - "loc": { - "start": { - "line": 41, - "column": 15 - }, - "end": { - "line": 68, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 1485, - "end": 1489, - "loc": { - "start": { - "line": 41, - "column": 24 - }, - "end": { - "line": 41, - "column": 28 - }, - "identifierName": "init" - }, - "name": "init", - "leadingComments": null - }, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 1491, - "end": 1530, - "loc": { - "start": { - "line": 41, - "column": 30 - }, - "end": { - "line": 44, - "column": 1 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1495, - "end": 1512, - "loc": { - "start": { - "line": 42, - "column": 2 - }, - "end": { - "line": 42, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1495, - "end": 1505, - "loc": { - "start": { - "line": 42, - "column": 2 - }, - "end": { - "line": 42, - "column": 12 - }, - "identifierName": "production" - }, - "name": "production" - }, - "value": { - "type": "AssignmentPattern", - "start": 1495, - "end": 1512, - "loc": { - "start": { - "line": 42, - "column": 2 - }, - "end": { - "line": 42, - "column": 19 - } - }, - "left": { - "type": "Identifier", - "start": 1495, - "end": 1505, - "loc": { - "start": { - "line": 42, - "column": 2 - }, - "end": { - "line": 42, - "column": 12 - }, - "identifierName": "production" - }, - "name": "production" - }, - "right": { - "type": "BooleanLiteral", - "start": 1508, - "end": 1512, - "loc": { - "start": { - "line": 42, - "column": 15 - }, - "end": { - "line": 42, - "column": 19 - } - }, - "value": true - } - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1516, - "end": 1527, - "loc": { - "start": { - "line": 43, - "column": 2 - }, - "end": { - "line": 43, - "column": 13 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1516, - "end": 1527, - "loc": { - "start": { - "line": 43, - "column": 2 - }, - "end": { - "line": 43, - "column": 13 - }, - "identifierName": "credentials" - }, - "name": "credentials" - }, - "value": { - "type": "Identifier", - "start": 1516, - "end": 1527, - "loc": { - "start": { - "line": 43, - "column": 2 - }, - "end": { - "line": 43, - "column": 13 - }, - "identifierName": "credentials" - }, - "name": "credentials" - }, - "extra": { - "shorthand": true - } - } - ] - } - ], - "body": { - "type": "BlockStatement", - "start": 1532, - "end": 1861, - "loc": { - "start": { - "line": 44, - "column": 3 - }, - "end": { - "line": 68, - "column": 1 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 1536, - "end": 1591, - "loc": { - "start": { - "line": 45, - "column": 2 - }, - "end": { - "line": 47, - "column": 3 - } - }, - "test": { - "type": "Identifier", - "start": 1540, - "end": 1551, - "loc": { - "start": { - "line": 45, - "column": 6 - }, - "end": { - "line": 45, - "column": 17 - }, - "identifierName": "credentials" - }, - "name": "credentials" - }, - "consequent": { - "type": "BlockStatement", - "start": 1553, - "end": 1591, - "loc": { - "start": { - "line": 45, - "column": 19 - }, - "end": { - "line": 47, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1559, - "end": 1587, - "loc": { - "start": { - "line": 46, - "column": 4 - }, - "end": { - "line": 46, - "column": 32 - } - }, - "expression": { - "type": "CallExpression", - "start": 1559, - "end": 1586, - "loc": { - "start": { - "line": 46, - "column": 4 - }, - "end": { - "line": 46, - "column": 31 - } - }, - "callee": { - "type": "Identifier", - "start": 1559, - "end": 1573, - "loc": { - "start": { - "line": 46, - "column": 4 - }, - "end": { - "line": 46, - "column": 18 - }, - "identifierName": "setCredentials" - }, - "name": "setCredentials" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1574, - "end": 1585, - "loc": { - "start": { - "line": 46, - "column": 19 - }, - "end": { - "line": 46, - "column": 30 - }, - "identifierName": "credentials" - }, - "name": "credentials" - } - ] - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 1595, - "end": 1679, - "loc": { - "start": { - "line": 49, - "column": 2 - }, - "end": { - "line": 53, - "column": 3 - } - }, - "test": { - "type": "Identifier", - "start": 1599, - "end": 1609, - "loc": { - "start": { - "line": 49, - "column": 6 - }, - "end": { - "line": 49, - "column": 16 - }, - "identifierName": "production" - }, - "name": "production" - }, - "consequent": { - "type": "BlockStatement", - "start": 1611, - "end": 1642, - "loc": { - "start": { - "line": 49, - "column": 18 - }, - "end": { - "line": 51, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1617, - "end": 1638, - "loc": { - "start": { - "line": 50, - "column": 4 - }, - "end": { - "line": 50, - "column": 25 - } - }, - "expression": { - "type": "CallExpression", - "start": 1617, - "end": 1637, - "loc": { - "start": { - "line": 50, - "column": 4 - }, - "end": { - "line": 50, - "column": 24 - } - }, - "callee": { - "type": "Identifier", - "start": 1617, - "end": 1629, - "loc": { - "start": { - "line": 50, - "column": 4 - }, - "end": { - "line": 50, - "column": 16 - }, - "identifierName": "setEnvConfig" - }, - "name": "setEnvConfig" - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 1630, - "end": 1636, - "loc": { - "start": { - "line": 50, - "column": 17 - }, - "end": { - "line": 50, - "column": 23 - } - }, - "extra": { - "rawValue": "prod", - "raw": "'prod'" - }, - "value": "prod" - } - ] - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 1648, - "end": 1679, - "loc": { - "start": { - "line": 51, - "column": 9 - }, - "end": { - "line": 53, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1654, - "end": 1675, - "loc": { - "start": { - "line": 52, - "column": 4 - }, - "end": { - "line": 52, - "column": 25 - } - }, - "expression": { - "type": "CallExpression", - "start": 1654, - "end": 1674, - "loc": { - "start": { - "line": 52, - "column": 4 - }, - "end": { - "line": 52, - "column": 24 - } - }, - "callee": { - "type": "Identifier", - "start": 1654, - "end": 1666, - "loc": { - "start": { - "line": 52, - "column": 4 - }, - "end": { - "line": 52, - "column": 16 - }, - "identifierName": "setEnvConfig" - }, - "name": "setEnvConfig" - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 1667, - "end": 1673, - "loc": { - "start": { - "line": 52, - "column": 17 - }, - "end": { - "line": 52, - "column": 23 - } - }, - "extra": { - "rawValue": "eval", - "raw": "'eval'" - }, - "value": "eval" - } - ] - } - } - ], - "directives": [] - } - }, - { - "type": "ReturnStatement", - "start": 1683, - "end": 1859, - "loc": { - "start": { - "line": 55, - "column": 2 - }, - "end": { - "line": 67, - "column": 4 - } - }, - "argument": { - "type": "ObjectExpression", - "start": 1690, - "end": 1858, - "loc": { - "start": { - "line": 55, - "column": 9 - }, - "end": { - "line": 67, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1696, - "end": 1700, - "loc": { - "start": { - "line": 56, - "column": 4 - }, - "end": { - "line": 56, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1696, - "end": 1700, - "loc": { - "start": { - "line": 56, - "column": 4 - }, - "end": { - "line": 56, - "column": 8 - }, - "identifierName": "user" - }, - "name": "user" - }, - "value": { - "type": "Identifier", - "start": 1696, - "end": 1700, - "loc": { - "start": { - "line": 56, - "column": 4 - }, - "end": { - "line": 56, - "column": 8 - }, - "identifierName": "user" - }, - "name": "user" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1706, - "end": 1712, - "loc": { - "start": { - "line": 57, - "column": 4 - }, - "end": { - "line": 57, - "column": 10 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1706, - "end": 1712, - "loc": { - "start": { - "line": 57, - "column": 4 - }, - "end": { - "line": 57, - "column": 10 - }, - "identifierName": "oauth2" - }, - "name": "oauth2" - }, - "value": { - "type": "Identifier", - "start": 1706, - "end": 1712, - "loc": { - "start": { - "line": 57, - "column": 4 - }, - "end": { - "line": 57, - "column": 10 - }, - "identifierName": "oauth2" - }, - "name": "oauth2" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1718, - "end": 1726, - "loc": { - "start": { - "line": 58, - "column": 4 - }, - "end": { - "line": 58, - "column": 12 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1718, - "end": 1726, - "loc": { - "start": { - "line": 58, - "column": 4 - }, - "end": { - "line": 58, - "column": 12 - }, - "identifierName": "document" - }, - "name": "document" - }, - "value": { - "type": "Identifier", - "start": 1718, - "end": 1726, - "loc": { - "start": { - "line": 58, - "column": 4 - }, - "end": { - "line": 58, - "column": 12 - }, - "identifierName": "document" - }, - "name": "document" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1732, - "end": 1739, - "loc": { - "start": { - "line": 59, - "column": 4 - }, - "end": { - "line": 59, - "column": 11 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1732, - "end": 1739, - "loc": { - "start": { - "line": 59, - "column": 4 - }, - "end": { - "line": 59, - "column": 11 - }, - "identifierName": "webhook" - }, - "name": "webhook" - }, - "value": { - "type": "Identifier", - "start": 1732, - "end": 1739, - "loc": { - "start": { - "line": 59, - "column": 4 - }, - "end": { - "line": 59, - "column": 11 - }, - "identifierName": "webhook" - }, - "name": "webhook" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1745, - "end": 1751, - "loc": { - "start": { - "line": 60, - "column": 4 - }, - "end": { - "line": 60, - "column": 10 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1745, - "end": 1751, - "loc": { - "start": { - "line": 60, - "column": 4 - }, - "end": { - "line": 60, - "column": 10 - }, - "identifierName": "folder" - }, - "name": "folder" - }, - "value": { - "type": "Identifier", - "start": 1745, - "end": 1751, - "loc": { - "start": { - "line": 60, - "column": 4 - }, - "end": { - "line": 60, - "column": 10 - }, - "identifierName": "folder" - }, - "name": "folder" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1757, - "end": 1769, - "loc": { - "start": { - "line": 61, - "column": 4 - }, - "end": { - "line": 61, - "column": 16 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1757, - "end": 1769, - "loc": { - "start": { - "line": 61, - "column": 4 - }, - "end": { - "line": 61, - "column": 16 - }, - "identifierName": "enumerations" - }, - "name": "enumerations" - }, - "value": { - "type": "Identifier", - "start": 1757, - "end": 1769, - "loc": { - "start": { - "line": 61, - "column": 4 - }, - "end": { - "line": 61, - "column": 16 - }, - "identifierName": "enumerations" - }, - "name": "enumerations" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1775, - "end": 1783, - "loc": { - "start": { - "line": 62, - "column": 4 - }, - "end": { - "line": 62, - "column": 12 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1775, - "end": 1783, - "loc": { - "start": { - "line": 62, - "column": 4 - }, - "end": { - "line": 62, - "column": 12 - }, - "identifierName": "template" - }, - "name": "template" - }, - "value": { - "type": "Identifier", - "start": 1775, - "end": 1783, - "loc": { - "start": { - "line": 62, - "column": 4 - }, - "end": { - "line": 62, - "column": 12 - }, - "identifierName": "template" - }, - "name": "template" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1789, - "end": 1793, - "loc": { - "start": { - "line": 63, - "column": 4 - }, - "end": { - "line": 63, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1789, - "end": 1793, - "loc": { - "start": { - "line": 63, - "column": 4 - }, - "end": { - "line": 63, - "column": 8 - }, - "identifierName": "link" - }, - "name": "link" - }, - "value": { - "type": "Identifier", - "start": 1789, - "end": 1793, - "loc": { - "start": { - "line": 63, - "column": 4 - }, - "end": { - "line": 63, - "column": 8 - }, - "identifierName": "link" - }, - "name": "link" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1799, - "end": 1812, - "loc": { - "start": { - "line": 64, - "column": 4 - }, - "end": { - "line": 64, - "column": 17 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1799, - "end": 1812, - "loc": { - "start": { - "line": 64, - "column": 4 - }, - "end": { - "line": 64, - "column": 17 - }, - "identifierName": "documentGroup" - }, - "name": "documentGroup" - }, - "value": { - "type": "Identifier", - "start": 1799, - "end": 1812, - "loc": { - "start": { - "line": 64, - "column": 4 - }, - "end": { - "line": 64, - "column": 17 - }, - "identifierName": "documentGroup" - }, - "name": "documentGroup" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1818, - "end": 1839, - "loc": { - "start": { - "line": 65, - "column": 4 - }, - "end": { - "line": 65, - "column": 25 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1818, - "end": 1839, - "loc": { - "start": { - "line": 65, - "column": 4 - }, - "end": { - "line": 65, - "column": 25 - }, - "identifierName": "documentGroupTemplate" - }, - "name": "documentGroupTemplate" - }, - "value": { - "type": "Identifier", - "start": 1818, - "end": 1839, - "loc": { - "start": { - "line": 65, - "column": 4 - }, - "end": { - "line": 65, - "column": 25 - }, - "identifierName": "documentGroupTemplate" - }, - "name": "documentGroupTemplate" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1845, - "end": 1853, - "loc": { - "start": { - "line": 66, - "column": 4 - }, - "end": { - "line": 66, - "column": 12 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1845, - "end": 1853, - "loc": { - "start": { - "line": 66, - "column": 4 - }, - "end": { - "line": 66, - "column": 12 - }, - "identifierName": "embedded" - }, - "name": "embedded" - }, - "value": { - "type": "Identifier", - "start": 1845, - "end": 1853, - "loc": { - "start": { - "line": 66, - "column": 4 - }, - "end": { - "line": 66, - "column": 12 - }, - "identifierName": "embedded" - }, - "name": "embedded" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Api client initialization params\n * @typedef {Object} InitParams\n * @property {string} credentials - base64 encoded basic API credentials\n * @property {boolean} [production=true] - production/eval API flag. If false uses eval\n ", - "start": 506, - "end": 742, - "loc": { - "start": { - "line": 16, - "column": 0 - }, - "end": { - "line": 21, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Api client features\n * @typedef {Object} Features\n * @property {User} user - user related methods\n * @property {OAuth2} oauth2 - authentication related methods\n * @property {Document} document - document related methods\n * @property {Template} template - template related methods\n * @property {Link} link - link related methods\n * @property {DocumentGroup} documentGroup - document group related methods\n * @property {DocumentGroupTemplate} documentGroupTemplate - document group template related methods\n * @property {Embedded} embedded - embedded signing related methods\n ", - "start": 744, - "end": 1327, - "loc": { - "start": { - "line": 23, - "column": 0 - }, - "end": { - "line": 34, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * SignNow API client initialization\n * @param {InitParams} params - API client initialization params\n * @return {Features}\n ", - "start": 1329, - "end": 1460, - "loc": { - "start": { - "line": 36, - "column": 0 - }, - "end": { - "line": 40, - "column": 3 - } - } - } - ], - "trailingComments": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Api client initialization params\n * @typedef {Object} InitParams\n * @property {string} credentials - base64 encoded basic API credentials\n * @property {boolean} [production=true] - production/eval API flag. If false uses eval\n ", - "start": 506, - "end": 742, - "loc": { - "start": { - "line": 16, - "column": 0 - }, - "end": { - "line": 21, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Api client features\n * @typedef {Object} Features\n * @property {User} user - user related methods\n * @property {OAuth2} oauth2 - authentication related methods\n * @property {Document} document - document related methods\n * @property {Template} template - template related methods\n * @property {Link} link - link related methods\n * @property {DocumentGroup} documentGroup - document group related methods\n * @property {DocumentGroupTemplate} documentGroupTemplate - document group template related methods\n * @property {Embedded} embedded - embedded signing related methods\n ", - "start": 744, - "end": 1327, - "loc": { - "start": { - "line": 23, - "column": 0 - }, - "end": { - "line": 34, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * SignNow API client initialization\n * @param {InitParams} params - API client initialization params\n * @return {Features}\n ", - "start": 1329, - "end": 1460, - "loc": { - "start": { - "line": 36, - "column": 0 - }, - "end": { - "line": 40, - "column": 3 - } - } - } - ] - }, - { - "type": "EmptyStatement", - "start": 1861, - "end": 1862, - "loc": { - "start": { - "line": 68, - "column": 1 - }, - "end": { - "line": 68, - "column": 2 - } - }, - "leadingComments": null, - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Api error object\n * @typedef {Object} ApiError\n * @property {number} code - error code\n * @property {string} message - error message\n ", - "start": 1864, - "end": 2007, - "loc": { - "start": { - "line": 70, - "column": 0 - }, - "end": { - "line": 75, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Api error response\n * @typedef {?(ApiError[]|ApiError|Error|string)} ApiErrorResponse\n ", - "start": 2009, - "end": 2105, - "loc": { - "start": { - "line": 77, - "column": 0 - }, - "end": { - "line": 80, - "column": 3 - } - } - } - ] - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "value": "use strict", - "extra": { - "raw": "'use strict'", - "rawValue": "use strict" - } - } - } - ] - }, - "comments": [ - { - "type": "CommentBlock", - "value": "*\n * Api client initialization params\n * @typedef {Object} InitParams\n * @property {string} credentials - base64 encoded basic API credentials\n * @property {boolean} [production=true] - production/eval API flag. If false uses eval\n ", - "start": 506, - "end": 742, - "loc": { - "start": { - "line": 16, - "column": 0 - }, - "end": { - "line": 21, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Api client features\n * @typedef {Object} Features\n * @property {User} user - user related methods\n * @property {OAuth2} oauth2 - authentication related methods\n * @property {Document} document - document related methods\n * @property {Template} template - template related methods\n * @property {Link} link - link related methods\n * @property {DocumentGroup} documentGroup - document group related methods\n * @property {DocumentGroupTemplate} documentGroupTemplate - document group template related methods\n * @property {Embedded} embedded - embedded signing related methods\n ", - "start": 744, - "end": 1327, - "loc": { - "start": { - "line": 23, - "column": 0 - }, - "end": { - "line": 34, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * SignNow API client initialization\n * @param {InitParams} params - API client initialization params\n * @return {Features}\n ", - "start": 1329, - "end": 1460, - "loc": { - "start": { - "line": 36, - "column": 0 - }, - "end": { - "line": 40, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Api error object\n * @typedef {Object} ApiError\n * @property {number} code - error code\n * @property {string} message - error message\n ", - "start": 1864, - "end": 2007, - "loc": { - "start": { - "line": 70, - "column": 0 - }, - "end": { - "line": 75, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Api error response\n * @typedef {?(ApiError[]|ApiError|Error|string)} ApiErrorResponse\n ", - "start": 2009, - "end": 2105, - "loc": { - "start": { - "line": 77, - "column": 0 - }, - "end": { - "line": 80, - "column": 3 - } - } - } - ], - "tokens": [ - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "use strict", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 12 - }, - "end": { - "line": 1, - "column": 13 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 14, - "end": 20, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "user", - "start": 21, - "end": 25, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 26, - "end": 30, - "loc": { - "start": { - "line": 2, - "column": 12 - }, - "end": { - "line": 2, - "column": 16 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "./user", - "start": 31, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 17 - }, - "end": { - "line": 2, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39, - "end": 40, - "loc": { - "start": { - "line": 2, - "column": 25 - }, - "end": { - "line": 2, - "column": 26 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 41, - "end": 47, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document", - "start": 48, - "end": 56, - "loc": { - "start": { - "line": 3, - "column": 7 - }, - "end": { - "line": 3, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 57, - "end": 61, - "loc": { - "start": { - "line": 3, - "column": 16 - }, - "end": { - "line": 3, - "column": 20 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "./document", - "start": 62, - "end": 74, - "loc": { - "start": { - "line": 3, - "column": 21 - }, - "end": { - "line": 3, - "column": 33 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 74, - "end": 75, - "loc": { - "start": { - "line": 3, - "column": 33 - }, - "end": { - "line": 3, - "column": 34 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 76, - "end": 82, - "loc": { - "start": { - "line": 4, - "column": 0 - }, - "end": { - "line": 4, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "folder", - "start": 83, - "end": 89, - "loc": { - "start": { - "line": 4, - "column": 7 - }, - "end": { - "line": 4, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 90, - "end": 94, - "loc": { - "start": { - "line": 4, - "column": 14 - }, - "end": { - "line": 4, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "./folder", - "start": 95, - "end": 105, - "loc": { - "start": { - "line": 4, - "column": 19 - }, - "end": { - "line": 4, - "column": 29 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 105, - "end": 106, - "loc": { - "start": { - "line": 4, - "column": 29 - }, - "end": { - "line": 4, - "column": 30 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 107, - "end": 113, - "loc": { - "start": { - "line": 5, - "column": 0 - }, - "end": { - "line": 5, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "webhook", - "start": 114, - "end": 121, - "loc": { - "start": { - "line": 5, - "column": 7 - }, - "end": { - "line": 5, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 122, - "end": 126, - "loc": { - "start": { - "line": 5, - "column": 15 - }, - "end": { - "line": 5, - "column": 19 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "./webhook", - "start": 127, - "end": 138, - "loc": { - "start": { - "line": 5, - "column": 20 - }, - "end": { - "line": 5, - "column": 31 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 138, - "end": 139, - "loc": { - "start": { - "line": 5, - "column": 31 - }, - "end": { - "line": 5, - "column": 32 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 140, - "end": 146, - "loc": { - "start": { - "line": 6, - "column": 0 - }, - "end": { - "line": 6, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "oauth2", - "start": 147, - "end": 153, - "loc": { - "start": { - "line": 6, - "column": 7 - }, - "end": { - "line": 6, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 154, - "end": 158, - "loc": { - "start": { - "line": 6, - "column": 14 - }, - "end": { - "line": 6, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "./oauth2", - "start": 159, - "end": 169, - "loc": { - "start": { - "line": 6, - "column": 19 - }, - "end": { - "line": 6, - "column": 29 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 169, - "end": 170, - "loc": { - "start": { - "line": 6, - "column": 29 - }, - "end": { - "line": 6, - "column": 30 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 171, - "end": 177, - "loc": { - "start": { - "line": 7, - "column": 0 - }, - "end": { - "line": 7, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "enumerations", - "start": 178, - "end": 190, - "loc": { - "start": { - "line": 7, - "column": 7 - }, - "end": { - "line": 7, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 191, - "end": 195, - "loc": { - "start": { - "line": 7, - "column": 20 - }, - "end": { - "line": 7, - "column": 24 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "./enumerations", - "start": 196, - "end": 212, - "loc": { - "start": { - "line": 7, - "column": 25 - }, - "end": { - "line": 7, - "column": 41 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 212, - "end": 213, - "loc": { - "start": { - "line": 7, - "column": 41 - }, - "end": { - "line": 7, - "column": 42 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 214, - "end": 220, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 8, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "template", - "start": 221, - "end": 229, - "loc": { - "start": { - "line": 8, - "column": 7 - }, - "end": { - "line": 8, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 230, - "end": 234, - "loc": { - "start": { - "line": 8, - "column": 16 - }, - "end": { - "line": 8, - "column": 20 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "./template", - "start": 235, - "end": 247, - "loc": { - "start": { - "line": 8, - "column": 21 - }, - "end": { - "line": 8, - "column": 33 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 247, - "end": 248, - "loc": { - "start": { - "line": 8, - "column": 33 - }, - "end": { - "line": 8, - "column": 34 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 249, - "end": 255, - "loc": { - "start": { - "line": 9, - "column": 0 - }, - "end": { - "line": 9, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "link", - "start": 256, - "end": 260, - "loc": { - "start": { - "line": 9, - "column": 7 - }, - "end": { - "line": 9, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 261, - "end": 265, - "loc": { - "start": { - "line": 9, - "column": 12 - }, - "end": { - "line": 9, - "column": 16 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "./link", - "start": 266, - "end": 274, - "loc": { - "start": { - "line": 9, - "column": 17 - }, - "end": { - "line": 9, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 274, - "end": 275, - "loc": { - "start": { - "line": 9, - "column": 25 - }, - "end": { - "line": 9, - "column": 26 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 276, - "end": 282, - "loc": { - "start": { - "line": 10, - "column": 0 - }, - "end": { - "line": 10, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documentGroup", - "start": 283, - "end": 296, - "loc": { - "start": { - "line": 10, - "column": 7 - }, - "end": { - "line": 10, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 297, - "end": 301, - "loc": { - "start": { - "line": 10, - "column": 21 - }, - "end": { - "line": 10, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "./document-group", - "start": 302, - "end": 320, - "loc": { - "start": { - "line": 10, - "column": 26 - }, - "end": { - "line": 10, - "column": 44 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 320, - "end": 321, - "loc": { - "start": { - "line": 10, - "column": 44 - }, - "end": { - "line": 10, - "column": 45 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 322, - "end": 328, - "loc": { - "start": { - "line": 11, - "column": 0 - }, - "end": { - "line": 11, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documentGroupTemplate", - "start": 329, - "end": 350, - "loc": { - "start": { - "line": 11, - "column": 7 - }, - "end": { - "line": 11, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 351, - "end": 355, - "loc": { - "start": { - "line": 11, - "column": 29 - }, - "end": { - "line": 11, - "column": 33 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "./document-group-template", - "start": 356, - "end": 383, - "loc": { - "start": { - "line": 11, - "column": 34 - }, - "end": { - "line": 11, - "column": 61 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 383, - "end": 384, - "loc": { - "start": { - "line": 11, - "column": 61 - }, - "end": { - "line": 11, - "column": 62 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 385, - "end": 391, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 12, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "embedded", - "start": 392, - "end": 400, - "loc": { - "start": { - "line": 12, - "column": 7 - }, - "end": { - "line": 12, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 401, - "end": 405, - "loc": { - "start": { - "line": 12, - "column": 16 - }, - "end": { - "line": 12, - "column": 20 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "./embedded", - "start": 406, - "end": 418, - "loc": { - "start": { - "line": 12, - "column": 21 - }, - "end": { - "line": 12, - "column": 33 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 418, - "end": 419, - "loc": { - "start": { - "line": 12, - "column": 33 - }, - "end": { - "line": 12, - "column": 34 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 420, - "end": 426, - "loc": { - "start": { - "line": 13, - "column": 0 - }, - "end": { - "line": 13, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 427, - "end": 428, - "loc": { - "start": { - "line": 13, - "column": 7 - }, - "end": { - "line": 13, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "setCredentials", - "start": 429, - "end": 443, - "loc": { - "start": { - "line": 13, - "column": 9 - }, - "end": { - "line": 13, - "column": 23 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 444, - "end": 445, - "loc": { - "start": { - "line": 13, - "column": 24 - }, - "end": { - "line": 13, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 446, - "end": 450, - "loc": { - "start": { - "line": 13, - "column": 26 - }, - "end": { - "line": 13, - "column": 30 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "./common", - "start": 451, - "end": 461, - "loc": { - "start": { - "line": 13, - "column": 31 - }, - "end": { - "line": 13, - "column": 41 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 461, - "end": 462, - "loc": { - "start": { - "line": 13, - "column": 41 - }, - "end": { - "line": 13, - "column": 42 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 463, - "end": 469, - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 14, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 470, - "end": 471, - "loc": { - "start": { - "line": 14, - "column": 7 - }, - "end": { - "line": 14, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "setEnvConfig", - "start": 472, - "end": 484, - "loc": { - "start": { - "line": 14, - "column": 9 - }, - "end": { - "line": 14, - "column": 21 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 485, - "end": 486, - "loc": { - "start": { - "line": 14, - "column": 22 - }, - "end": { - "line": 14, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 487, - "end": 491, - "loc": { - "start": { - "line": 14, - "column": 24 - }, - "end": { - "line": 14, - "column": 28 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "../config", - "start": 492, - "end": 503, - "loc": { - "start": { - "line": 14, - "column": 29 - }, - "end": { - "line": 14, - "column": 40 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 503, - "end": 504, - "loc": { - "start": { - "line": 14, - "column": 40 - }, - "end": { - "line": 14, - "column": 41 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Api client initialization params\n * @typedef {Object} InitParams\n * @property {string} credentials - base64 encoded basic API credentials\n * @property {boolean} [production=true] - production/eval API flag. If false uses eval\n ", - "start": 506, - "end": 742, - "loc": { - "start": { - "line": 16, - "column": 0 - }, - "end": { - "line": 21, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Api client features\n * @typedef {Object} Features\n * @property {User} user - user related methods\n * @property {OAuth2} oauth2 - authentication related methods\n * @property {Document} document - document related methods\n * @property {Template} template - template related methods\n * @property {Link} link - link related methods\n * @property {DocumentGroup} documentGroup - document group related methods\n * @property {DocumentGroupTemplate} documentGroupTemplate - document group template related methods\n * @property {Embedded} embedded - embedded signing related methods\n ", - "start": 744, - "end": 1327, - "loc": { - "start": { - "line": 23, - "column": 0 - }, - "end": { - "line": 34, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * SignNow API client initialization\n * @param {InitParams} params - API client initialization params\n * @return {Features}\n ", - "start": 1329, - "end": 1460, - "loc": { - "start": { - "line": 36, - "column": 0 - }, - "end": { - "line": 40, - "column": 3 - } - } - }, - { - "type": { - "label": "export", - "keyword": "export", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "export", - "start": 1461, - "end": 1467, - "loc": { - "start": { - "line": 41, - "column": 0 - }, - "end": { - "line": 41, - "column": 6 - } - } - }, - { - "type": { - "label": "default", - "keyword": "default", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "default", - "start": 1468, - "end": 1475, - "loc": { - "start": { - "line": 41, - "column": 7 - }, - "end": { - "line": 41, - "column": 14 - } - } - }, - { - "type": { - "label": "function", - "keyword": "function", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "function", - "start": 1476, - "end": 1484, - "loc": { - "start": { - "line": 41, - "column": 15 - }, - "end": { - "line": 41, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "init", - "start": 1485, - "end": 1489, - "loc": { - "start": { - "line": 41, - "column": 24 - }, - "end": { - "line": 41, - "column": 28 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1490, - "end": 1491, - "loc": { - "start": { - "line": 41, - "column": 29 - }, - "end": { - "line": 41, - "column": 30 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1491, - "end": 1492, - "loc": { - "start": { - "line": 41, - "column": 30 - }, - "end": { - "line": 41, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "production", - "start": 1495, - "end": 1505, - "loc": { - "start": { - "line": 42, - "column": 2 - }, - "end": { - "line": 42, - "column": 12 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1506, - "end": 1507, - "loc": { - "start": { - "line": 42, - "column": 13 - }, - "end": { - "line": 42, - "column": 14 - } - } - }, - { - "type": { - "label": "true", - "keyword": "true", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "true", - "start": 1508, - "end": 1512, - "loc": { - "start": { - "line": 42, - "column": 15 - }, - "end": { - "line": 42, - "column": 19 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1512, - "end": 1513, - "loc": { - "start": { - "line": 42, - "column": 19 - }, - "end": { - "line": 42, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "credentials", - "start": 1516, - "end": 1527, - "loc": { - "start": { - "line": 43, - "column": 2 - }, - "end": { - "line": 43, - "column": 13 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1527, - "end": 1528, - "loc": { - "start": { - "line": 43, - "column": 13 - }, - "end": { - "line": 43, - "column": 14 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1529, - "end": 1530, - "loc": { - "start": { - "line": 44, - "column": 0 - }, - "end": { - "line": 44, - "column": 1 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1530, - "end": 1531, - "loc": { - "start": { - "line": 44, - "column": 1 - }, - "end": { - "line": 44, - "column": 2 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1532, - "end": 1533, - "loc": { - "start": { - "line": 44, - "column": 3 - }, - "end": { - "line": 44, - "column": 4 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 1536, - "end": 1538, - "loc": { - "start": { - "line": 45, - "column": 2 - }, - "end": { - "line": 45, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1539, - "end": 1540, - "loc": { - "start": { - "line": 45, - "column": 5 - }, - "end": { - "line": 45, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "credentials", - "start": 1540, - "end": 1551, - "loc": { - "start": { - "line": 45, - "column": 6 - }, - "end": { - "line": 45, - "column": 17 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1551, - "end": 1552, - "loc": { - "start": { - "line": 45, - "column": 17 - }, - "end": { - "line": 45, - "column": 18 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1553, - "end": 1554, - "loc": { - "start": { - "line": 45, - "column": 19 - }, - "end": { - "line": 45, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "setCredentials", - "start": 1559, - "end": 1573, - "loc": { - "start": { - "line": 46, - "column": 4 - }, - "end": { - "line": 46, - "column": 18 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1573, - "end": 1574, - "loc": { - "start": { - "line": 46, - "column": 18 - }, - "end": { - "line": 46, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "credentials", - "start": 1574, - "end": 1585, - "loc": { - "start": { - "line": 46, - "column": 19 - }, - "end": { - "line": 46, - "column": 30 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1585, - "end": 1586, - "loc": { - "start": { - "line": 46, - "column": 30 - }, - "end": { - "line": 46, - "column": 31 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1586, - "end": 1587, - "loc": { - "start": { - "line": 46, - "column": 31 - }, - "end": { - "line": 46, - "column": 32 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1590, - "end": 1591, - "loc": { - "start": { - "line": 47, - "column": 2 - }, - "end": { - "line": 47, - "column": 3 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 1595, - "end": 1597, - "loc": { - "start": { - "line": 49, - "column": 2 - }, - "end": { - "line": 49, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1598, - "end": 1599, - "loc": { - "start": { - "line": 49, - "column": 5 - }, - "end": { - "line": 49, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "production", - "start": 1599, - "end": 1609, - "loc": { - "start": { - "line": 49, - "column": 6 - }, - "end": { - "line": 49, - "column": 16 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1609, - "end": 1610, - "loc": { - "start": { - "line": 49, - "column": 16 - }, - "end": { - "line": 49, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1611, - "end": 1612, - "loc": { - "start": { - "line": 49, - "column": 18 - }, - "end": { - "line": 49, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "setEnvConfig", - "start": 1617, - "end": 1629, - "loc": { - "start": { - "line": 50, - "column": 4 - }, - "end": { - "line": 50, - "column": 16 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1629, - "end": 1630, - "loc": { - "start": { - "line": 50, - "column": 16 - }, - "end": { - "line": 50, - "column": 17 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "prod", - "start": 1630, - "end": 1636, - "loc": { - "start": { - "line": 50, - "column": 17 - }, - "end": { - "line": 50, - "column": 23 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1636, - "end": 1637, - "loc": { - "start": { - "line": 50, - "column": 23 - }, - "end": { - "line": 50, - "column": 24 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1637, - "end": 1638, - "loc": { - "start": { - "line": 50, - "column": 24 - }, - "end": { - "line": 50, - "column": 25 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1641, - "end": 1642, - "loc": { - "start": { - "line": 51, - "column": 2 - }, - "end": { - "line": 51, - "column": 3 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 1643, - "end": 1647, - "loc": { - "start": { - "line": 51, - "column": 4 - }, - "end": { - "line": 51, - "column": 8 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1648, - "end": 1649, - "loc": { - "start": { - "line": 51, - "column": 9 - }, - "end": { - "line": 51, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "setEnvConfig", - "start": 1654, - "end": 1666, - "loc": { - "start": { - "line": 52, - "column": 4 - }, - "end": { - "line": 52, - "column": 16 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1666, - "end": 1667, - "loc": { - "start": { - "line": 52, - "column": 16 - }, - "end": { - "line": 52, - "column": 17 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "eval", - "start": 1667, - "end": 1673, - "loc": { - "start": { - "line": 52, - "column": 17 - }, - "end": { - "line": 52, - "column": 23 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1673, - "end": 1674, - "loc": { - "start": { - "line": 52, - "column": 23 - }, - "end": { - "line": 52, - "column": 24 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1674, - "end": 1675, - "loc": { - "start": { - "line": 52, - "column": 24 - }, - "end": { - "line": 52, - "column": 25 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1678, - "end": 1679, - "loc": { - "start": { - "line": 53, - "column": 2 - }, - "end": { - "line": 53, - "column": 3 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 1683, - "end": 1689, - "loc": { - "start": { - "line": 55, - "column": 2 - }, - "end": { - "line": 55, - "column": 8 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1690, - "end": 1691, - "loc": { - "start": { - "line": 55, - "column": 9 - }, - "end": { - "line": 55, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "user", - "start": 1696, - "end": 1700, - "loc": { - "start": { - "line": 56, - "column": 4 - }, - "end": { - "line": 56, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1700, - "end": 1701, - "loc": { - "start": { - "line": 56, - "column": 8 - }, - "end": { - "line": 56, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "oauth2", - "start": 1706, - "end": 1712, - "loc": { - "start": { - "line": 57, - "column": 4 - }, - "end": { - "line": 57, - "column": 10 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1712, - "end": 1713, - "loc": { - "start": { - "line": 57, - "column": 10 - }, - "end": { - "line": 57, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document", - "start": 1718, - "end": 1726, - "loc": { - "start": { - "line": 58, - "column": 4 - }, - "end": { - "line": 58, - "column": 12 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1726, - "end": 1727, - "loc": { - "start": { - "line": 58, - "column": 12 - }, - "end": { - "line": 58, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "webhook", - "start": 1732, - "end": 1739, - "loc": { - "start": { - "line": 59, - "column": 4 - }, - "end": { - "line": 59, - "column": 11 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1739, - "end": 1740, - "loc": { - "start": { - "line": 59, - "column": 11 - }, - "end": { - "line": 59, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "folder", - "start": 1745, - "end": 1751, - "loc": { - "start": { - "line": 60, - "column": 4 - }, - "end": { - "line": 60, - "column": 10 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1751, - "end": 1752, - "loc": { - "start": { - "line": 60, - "column": 10 - }, - "end": { - "line": 60, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "enumerations", - "start": 1757, - "end": 1769, - "loc": { - "start": { - "line": 61, - "column": 4 - }, - "end": { - "line": 61, - "column": 16 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1769, - "end": 1770, - "loc": { - "start": { - "line": 61, - "column": 16 - }, - "end": { - "line": 61, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "template", - "start": 1775, - "end": 1783, - "loc": { - "start": { - "line": 62, - "column": 4 - }, - "end": { - "line": 62, - "column": 12 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1783, - "end": 1784, - "loc": { - "start": { - "line": 62, - "column": 12 - }, - "end": { - "line": 62, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "link", - "start": 1789, - "end": 1793, - "loc": { - "start": { - "line": 63, - "column": 4 - }, - "end": { - "line": 63, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1793, - "end": 1794, - "loc": { - "start": { - "line": 63, - "column": 8 - }, - "end": { - "line": 63, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documentGroup", - "start": 1799, - "end": 1812, - "loc": { - "start": { - "line": 64, - "column": 4 - }, - "end": { - "line": 64, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1812, - "end": 1813, - "loc": { - "start": { - "line": 64, - "column": 17 - }, - "end": { - "line": 64, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documentGroupTemplate", - "start": 1818, - "end": 1839, - "loc": { - "start": { - "line": 65, - "column": 4 - }, - "end": { - "line": 65, - "column": 25 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1839, - "end": 1840, - "loc": { - "start": { - "line": 65, - "column": 25 - }, - "end": { - "line": 65, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "embedded", - "start": 1845, - "end": 1853, - "loc": { - "start": { - "line": 66, - "column": 4 - }, - "end": { - "line": 66, - "column": 12 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1853, - "end": 1854, - "loc": { - "start": { - "line": 66, - "column": 12 - }, - "end": { - "line": 66, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1857, - "end": 1858, - "loc": { - "start": { - "line": 67, - "column": 2 - }, - "end": { - "line": 67, - "column": 3 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1858, - "end": 1859, - "loc": { - "start": { - "line": 67, - "column": 3 - }, - "end": { - "line": 67, - "column": 4 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1860, - "end": 1861, - "loc": { - "start": { - "line": 68, - "column": 0 - }, - "end": { - "line": 68, - "column": 1 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1861, - "end": 1862, - "loc": { - "start": { - "line": 68, - "column": 1 - }, - "end": { - "line": 68, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Api error object\n * @typedef {Object} ApiError\n * @property {number} code - error code\n * @property {string} message - error message\n ", - "start": 1864, - "end": 2007, - "loc": { - "start": { - "line": 70, - "column": 0 - }, - "end": { - "line": 75, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Api error response\n * @typedef {?(ApiError[]|ApiError|Error|string)} ApiErrorResponse\n ", - "start": 2009, - "end": 2105, - "loc": { - "start": { - "line": 77, - "column": 0 - }, - "end": { - "line": 80, - "column": 3 - } - } - }, - { - "type": { - "label": "eof", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2106, - "end": 2106, - "loc": { - "start": { - "line": 81, - "column": 0 - }, - "end": { - "line": 81, - "column": 0 - } - } - } - ] -} \ No newline at end of file diff --git a/docs/ast/source/link.js.json b/docs/ast/source/link.js.json deleted file mode 100644 index d8eae860..00000000 --- a/docs/ast/source/link.js.json +++ /dev/null @@ -1,12741 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 2493, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 83, - "column": 0 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 2493, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 83, - "column": 0 - } - }, - "sourceType": "module", - "body": [ - { - "type": "ImportDeclaration", - "start": 14, - "end": 40, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 26 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - } - }, - "local": { - "type": "Identifier", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - }, - "identifierName": "https" - }, - "name": "https" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 18 - }, - "end": { - "line": 2, - "column": 25 - } - }, - "extra": { - "rawValue": "https", - "raw": "'https'" - }, - "value": "https" - } - }, - { - "type": "ImportDeclaration", - "start": 41, - "end": 122, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 5, - "column": 18 - } - }, - "specifiers": [ - { - "type": "ImportSpecifier", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - } - }, - "imported": { - "type": "Identifier", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "local": { - "type": "Identifier", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - } - }, - { - "type": "ImportSpecifier", - "start": 69, - "end": 81, - "loc": { - "start": { - "line": 4, - "column": 19 - }, - "end": { - "line": 4, - "column": 31 - } - }, - "imported": { - "type": "Identifier", - "start": 69, - "end": 81, - "loc": { - "start": { - "line": 4, - "column": 19 - }, - "end": { - "line": 4, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "local": { - "type": "Identifier", - "start": 69, - "end": 81, - "loc": { - "start": { - "line": 4, - "column": 19 - }, - "end": { - "line": 4, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - } - }, - { - "type": "ImportSpecifier", - "start": 83, - "end": 102, - "loc": { - "start": { - "line": 4, - "column": 33 - }, - "end": { - "line": 4, - "column": 52 - } - }, - "imported": { - "type": "Identifier", - "start": 83, - "end": 102, - "loc": { - "start": { - "line": 4, - "column": 33 - }, - "end": { - "line": 4, - "column": 52 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "local": { - "type": "Identifier", - "start": 83, - "end": 102, - "loc": { - "start": { - "line": 4, - "column": 33 - }, - "end": { - "line": 4, - "column": 52 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 111, - "end": 121, - "loc": { - "start": { - "line": 5, - "column": 7 - }, - "end": { - "line": 5, - "column": 17 - } - }, - "extra": { - "rawValue": "./common", - "raw": "'./common'" - }, - "value": "./common" - } - }, - { - "type": "ImportDeclaration", - "start": 123, - "end": 157, - "loc": { - "start": { - "line": 6, - "column": 0 - }, - "end": { - "line": 6, - "column": 34 - } - }, - "specifiers": [ - { - "type": "ImportSpecifier", - "start": 132, - "end": 136, - "loc": { - "start": { - "line": 6, - "column": 9 - }, - "end": { - "line": 6, - "column": 13 - } - }, - "imported": { - "type": "Identifier", - "start": 132, - "end": 136, - "loc": { - "start": { - "line": 6, - "column": 9 - }, - "end": { - "line": 6, - "column": 13 - }, - "identifierName": "view" - }, - "name": "view" - }, - "local": { - "type": "Identifier", - "start": 132, - "end": 136, - "loc": { - "start": { - "line": 6, - "column": 9 - }, - "end": { - "line": 6, - "column": 13 - }, - "identifierName": "view" - }, - "name": "view" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 144, - "end": 156, - "loc": { - "start": { - "line": 6, - "column": 21 - }, - "end": { - "line": 6, - "column": 33 - } - }, - "extra": { - "rawValue": "./document", - "raw": "'./document'" - }, - "value": "./document" - }, - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewParams} data - view document with field extract payload\n * @param {function(err: ApiErrorResponse, res: DocumentViewResponse)} [callback] - error first node.js callback\n ", - "start": 159, - "end": 378, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 12, - "column": 3 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 379, - "end": 411, - "loc": { - "start": { - "line": 13, - "column": 0 - }, - "end": { - "line": 13, - "column": 32 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 385, - "end": 410, - "loc": { - "start": { - "line": 13, - "column": 6 - }, - "end": { - "line": 13, - "column": 31 - } - }, - "id": { - "type": "Identifier", - "start": 385, - "end": 403, - "loc": { - "start": { - "line": 13, - "column": 6 - }, - "end": { - "line": 13, - "column": 24 - }, - "identifierName": "getDocumentDetails" - }, - "name": "getDocumentDetails", - "leadingComments": null - }, - "init": { - "type": "Identifier", - "start": 406, - "end": 410, - "loc": { - "start": { - "line": 13, - "column": 27 - }, - "end": { - "line": 13, - "column": 31 - }, - "identifierName": "view" - }, - "name": "view" - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewParams} data - view document with field extract payload\n * @param {function(err: ApiErrorResponse, res: DocumentViewResponse)} [callback] - error first node.js callback\n ", - "start": 159, - "end": 378, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 12, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Link methods\n ", - "start": 413, - "end": 436, - "loc": { - "start": { - "line": 15, - "column": 0 - }, - "end": { - "line": 17, - "column": 3 - } - } - } - ] - }, - { - "type": "Identifier", - "start": 437, - "end": 2470, - "loc": { - "start": { - "line": 18, - "column": 0 - }, - "end": { - "line": 80, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 443, - "end": 447, - "loc": { - "start": { - "line": 18, - "column": 6 - }, - "end": { - "line": 18, - "column": 10 - }, - "identifierName": "Link" - }, - "name": "Link", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 448, - "end": 2470, - "loc": { - "start": { - "line": 18, - "column": 11 - }, - "end": { - "line": 80, - "column": 1 - } - }, - "body": [ - { - "type": "ClassMethod", - "start": 1154, - "end": 2468, - "loc": { - "start": { - "line": 39, - "column": 2 - }, - "end": { - "line": 79, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1161, - "end": 1167, - "loc": { - "start": { - "line": 39, - "column": 9 - }, - "end": { - "line": 39, - "column": 15 - }, - "identifierName": "create" - }, - "name": "create" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 1169, - "end": 1191, - "loc": { - "start": { - "line": 39, - "column": 17 - }, - "end": { - "line": 39, - "column": 39 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1171, - "end": 1182, - "loc": { - "start": { - "line": 39, - "column": 19 - }, - "end": { - "line": 39, - "column": 30 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1171, - "end": 1182, - "loc": { - "start": { - "line": 39, - "column": 19 - }, - "end": { - "line": 39, - "column": 30 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "value": { - "type": "Identifier", - "start": 1171, - "end": 1182, - "loc": { - "start": { - "line": 39, - "column": 19 - }, - "end": { - "line": 39, - "column": 30 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1184, - "end": 1189, - "loc": { - "start": { - "line": 39, - "column": 32 - }, - "end": { - "line": 39, - "column": 37 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1184, - "end": 1189, - "loc": { - "start": { - "line": 39, - "column": 32 - }, - "end": { - "line": 39, - "column": 37 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 1184, - "end": 1189, - "loc": { - "start": { - "line": 39, - "column": 32 - }, - "end": { - "line": 39, - "column": 37 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 1193, - "end": 1201, - "loc": { - "start": { - "line": 39, - "column": 41 - }, - "end": { - "line": 39, - "column": 49 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 1203, - "end": 2468, - "loc": { - "start": { - "line": 39, - "column": 51 - }, - "end": { - "line": 79, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1209, - "end": 2464, - "loc": { - "start": { - "line": 40, - "column": 4 - }, - "end": { - "line": 78, - "column": 7 - } - }, - "expression": { - "type": "CallExpression", - "start": 1209, - "end": 2463, - "loc": { - "start": { - "line": 40, - "column": 4 - }, - "end": { - "line": 78, - "column": 6 - } - }, - "callee": { - "type": "Identifier", - "start": 1209, - "end": 1227, - "loc": { - "start": { - "line": 40, - "column": 4 - }, - "end": { - "line": 40, - "column": 22 - }, - "identifierName": "getDocumentDetails" - }, - "name": "getDocumentDetails" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 1228, - "end": 1271, - "loc": { - "start": { - "line": 40, - "column": 23 - }, - "end": { - "line": 43, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1236, - "end": 1251, - "loc": { - "start": { - "line": 41, - "column": 6 - }, - "end": { - "line": 41, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1236, - "end": 1238, - "loc": { - "start": { - "line": 41, - "column": 6 - }, - "end": { - "line": 41, - "column": 8 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 1240, - "end": 1251, - "loc": { - "start": { - "line": 41, - "column": 10 - }, - "end": { - "line": 41, - "column": 21 - }, - "identifierName": "document_id" - }, - "name": "document_id" - } - }, - { - "type": "ObjectProperty", - "start": 1259, - "end": 1264, - "loc": { - "start": { - "line": 42, - "column": 6 - }, - "end": { - "line": 42, - "column": 11 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1259, - "end": 1264, - "loc": { - "start": { - "line": 42, - "column": 6 - }, - "end": { - "line": 42, - "column": 11 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 1259, - "end": 1264, - "loc": { - "start": { - "line": 42, - "column": 6 - }, - "end": { - "line": 42, - "column": 11 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "ArrowFunctionExpression", - "start": 1273, - "end": 2462, - "loc": { - "start": { - "line": 43, - "column": 7 - }, - "end": { - "line": 78, - "column": 5 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1274, - "end": 1283, - "loc": { - "start": { - "line": 43, - "column": 8 - }, - "end": { - "line": 43, - "column": 17 - }, - "identifierName": "detailErr" - }, - "name": "detailErr" - }, - { - "type": "Identifier", - "start": 1285, - "end": 1294, - "loc": { - "start": { - "line": 43, - "column": 19 - }, - "end": { - "line": 43, - "column": 28 - }, - "identifierName": "detailRes" - }, - "name": "detailRes" - } - ], - "body": { - "type": "BlockStatement", - "start": 1299, - "end": 2462, - "loc": { - "start": { - "line": 43, - "column": 33 - }, - "end": { - "line": 78, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 1307, - "end": 2456, - "loc": { - "start": { - "line": 44, - "column": 6 - }, - "end": { - "line": 77, - "column": 7 - } - }, - "test": { - "type": "Identifier", - "start": 1311, - "end": 1320, - "loc": { - "start": { - "line": 44, - "column": 10 - }, - "end": { - "line": 44, - "column": 19 - }, - "identifierName": "detailErr" - }, - "name": "detailErr" - }, - "consequent": { - "type": "BlockStatement", - "start": 1322, - "end": 1376, - "loc": { - "start": { - "line": 44, - "column": 21 - }, - "end": { - "line": 47, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1332, - "end": 1352, - "loc": { - "start": { - "line": 45, - "column": 8 - }, - "end": { - "line": 45, - "column": 28 - } - }, - "expression": { - "type": "CallExpression", - "start": 1332, - "end": 1351, - "loc": { - "start": { - "line": 45, - "column": 8 - }, - "end": { - "line": 45, - "column": 27 - } - }, - "callee": { - "type": "Identifier", - "start": 1332, - "end": 1340, - "loc": { - "start": { - "line": 45, - "column": 8 - }, - "end": { - "line": 45, - "column": 16 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1341, - "end": 1350, - "loc": { - "start": { - "line": 45, - "column": 17 - }, - "end": { - "line": 45, - "column": 26 - }, - "identifierName": "detailErr" - }, - "name": "detailErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 1361, - "end": 1368, - "loc": { - "start": { - "line": 46, - "column": 8 - }, - "end": { - "line": 46, - "column": 15 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 1382, - "end": 2456, - "loc": { - "start": { - "line": 47, - "column": 13 - }, - "end": { - "line": 77, - "column": 7 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 1392, - "end": 1430, - "loc": { - "start": { - "line": 48, - "column": 8 - }, - "end": { - "line": 48, - "column": 46 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1398, - "end": 1429, - "loc": { - "start": { - "line": 48, - "column": 14 - }, - "end": { - "line": 48, - "column": 45 - } - }, - "id": { - "type": "ObjectPattern", - "start": 1398, - "end": 1417, - "loc": { - "start": { - "line": 48, - "column": 14 - }, - "end": { - "line": 48, - "column": 33 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1400, - "end": 1415, - "loc": { - "start": { - "line": 48, - "column": 16 - }, - "end": { - "line": 48, - "column": 31 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1400, - "end": 1415, - "loc": { - "start": { - "line": 48, - "column": 16 - }, - "end": { - "line": 48, - "column": 31 - }, - "identifierName": "routing_details" - }, - "name": "routing_details" - }, - "value": { - "type": "Identifier", - "start": 1400, - "end": 1415, - "loc": { - "start": { - "line": 48, - "column": 16 - }, - "end": { - "line": 48, - "column": 31 - }, - "identifierName": "routing_details" - }, - "name": "routing_details" - }, - "extra": { - "shorthand": true - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 1420, - "end": 1429, - "loc": { - "start": { - "line": 48, - "column": 36 - }, - "end": { - "line": 48, - "column": 45 - }, - "identifierName": "detailRes" - }, - "name": "detailRes" - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 1439, - "end": 1636, - "loc": { - "start": { - "line": 49, - "column": 8 - }, - "end": { - "line": 52, - "column": 51 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1445, - "end": 1635, - "loc": { - "start": { - "line": 49, - "column": 14 - }, - "end": { - "line": 52, - "column": 50 - } - }, - "id": { - "type": "Identifier", - "start": 1445, - "end": 1477, - "loc": { - "start": { - "line": 49, - "column": 14 - }, - "end": { - "line": 49, - "column": 46 - }, - "identifierName": "documentHasAtLeastOneUnfixedRole" - }, - "name": "documentHasAtLeastOneUnfixedRole" - }, - "init": { - "type": "CallExpression", - "start": 1480, - "end": 1635, - "loc": { - "start": { - "line": 49, - "column": 49 - }, - "end": { - "line": 52, - "column": 50 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1480, - "end": 1600, - "loc": { - "start": { - "line": 49, - "column": 49 - }, - "end": { - "line": 52, - "column": 15 - } - }, - "object": { - "type": "CallExpression", - "start": 1480, - "end": 1584, - "loc": { - "start": { - "line": 49, - "column": 49 - }, - "end": { - "line": 51, - "column": 48 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1480, - "end": 1553, - "loc": { - "start": { - "line": 49, - "column": 49 - }, - "end": { - "line": 51, - "column": 17 - } - }, - "object": { - "type": "CallExpression", - "start": 1480, - "end": 1535, - "loc": { - "start": { - "line": 49, - "column": 49 - }, - "end": { - "line": 50, - "column": 39 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1480, - "end": 1510, - "loc": { - "start": { - "line": 49, - "column": 49 - }, - "end": { - "line": 50, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 1480, - "end": 1495, - "loc": { - "start": { - "line": 49, - "column": 49 - }, - "end": { - "line": 49, - "column": 64 - }, - "identifierName": "routing_details" - }, - "name": "routing_details" - }, - "property": { - "type": "Identifier", - "start": 1507, - "end": 1510, - "loc": { - "start": { - "line": 50, - "column": 11 - }, - "end": { - "line": 50, - "column": 14 - }, - "identifierName": "map" - }, - "name": "map" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 1511, - "end": 1534, - "loc": { - "start": { - "line": 50, - "column": 15 - }, - "end": { - "line": 50, - "column": 38 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1511, - "end": 1518, - "loc": { - "start": { - "line": 50, - "column": 15 - }, - "end": { - "line": 50, - "column": 22 - }, - "identifierName": "routing" - }, - "name": "routing" - } - ], - "body": { - "type": "MemberExpression", - "start": 1522, - "end": 1534, - "loc": { - "start": { - "line": 50, - "column": 26 - }, - "end": { - "line": 50, - "column": 38 - } - }, - "object": { - "type": "Identifier", - "start": 1522, - "end": 1529, - "loc": { - "start": { - "line": 50, - "column": 26 - }, - "end": { - "line": 50, - "column": 33 - }, - "identifierName": "routing" - }, - "name": "routing" - }, - "property": { - "type": "Identifier", - "start": 1530, - "end": 1534, - "loc": { - "start": { - "line": 50, - "column": 34 - }, - "end": { - "line": 50, - "column": 38 - }, - "identifierName": "data" - }, - "name": "data" - }, - "computed": false - } - } - ] - }, - "property": { - "type": "Identifier", - "start": 1547, - "end": 1553, - "loc": { - "start": { - "line": 51, - "column": 11 - }, - "end": { - "line": 51, - "column": 17 - }, - "identifierName": "reduce" - }, - "name": "reduce" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 1554, - "end": 1579, - "loc": { - "start": { - "line": 51, - "column": 18 - }, - "end": { - "line": 51, - "column": 43 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1555, - "end": 1558, - "loc": { - "start": { - "line": 51, - "column": 19 - }, - "end": { - "line": 51, - "column": 22 - }, - "identifierName": "acc" - }, - "name": "acc" - }, - { - "type": "Identifier", - "start": 1560, - "end": 1561, - "loc": { - "start": { - "line": 51, - "column": 24 - }, - "end": { - "line": 51, - "column": 25 - }, - "identifierName": "i" - }, - "name": "i" - } - ], - "body": { - "type": "CallExpression", - "start": 1566, - "end": 1579, - "loc": { - "start": { - "line": 51, - "column": 30 - }, - "end": { - "line": 51, - "column": 43 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1566, - "end": 1576, - "loc": { - "start": { - "line": 51, - "column": 30 - }, - "end": { - "line": 51, - "column": 40 - } - }, - "object": { - "type": "Identifier", - "start": 1566, - "end": 1569, - "loc": { - "start": { - "line": 51, - "column": 30 - }, - "end": { - "line": 51, - "column": 33 - }, - "identifierName": "acc" - }, - "name": "acc" - }, - "property": { - "type": "Identifier", - "start": 1570, - "end": 1576, - "loc": { - "start": { - "line": 51, - "column": 34 - }, - "end": { - "line": 51, - "column": 40 - }, - "identifierName": "concat" - }, - "name": "concat" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1577, - "end": 1578, - "loc": { - "start": { - "line": 51, - "column": 41 - }, - "end": { - "line": 51, - "column": 42 - }, - "identifierName": "i" - }, - "name": "i" - } - ] - } - }, - { - "type": "ArrayExpression", - "start": 1581, - "end": 1583, - "loc": { - "start": { - "line": 51, - "column": 45 - }, - "end": { - "line": 51, - "column": 47 - } - }, - "elements": [] - } - ] - }, - "property": { - "type": "Identifier", - "start": 1596, - "end": 1600, - "loc": { - "start": { - "line": 52, - "column": 11 - }, - "end": { - "line": 52, - "column": 15 - }, - "identifierName": "some" - }, - "name": "some" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 1601, - "end": 1634, - "loc": { - "start": { - "line": 52, - "column": 16 - }, - "end": { - "line": 52, - "column": 49 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1601, - "end": 1605, - "loc": { - "start": { - "line": 52, - "column": 16 - }, - "end": { - "line": 52, - "column": 20 - }, - "identifierName": "role" - }, - "name": "role" - } - ], - "body": { - "type": "BinaryExpression", - "start": 1609, - "end": 1634, - "loc": { - "start": { - "line": 52, - "column": 24 - }, - "end": { - "line": 52, - "column": 49 - } - }, - "left": { - "type": "MemberExpression", - "start": 1609, - "end": 1627, - "loc": { - "start": { - "line": 52, - "column": 24 - }, - "end": { - "line": 52, - "column": 42 - } - }, - "object": { - "type": "Identifier", - "start": 1609, - "end": 1613, - "loc": { - "start": { - "line": 52, - "column": 24 - }, - "end": { - "line": 52, - "column": 28 - }, - "identifierName": "role" - }, - "name": "role" - }, - "property": { - "type": "Identifier", - "start": 1614, - "end": 1627, - "loc": { - "start": { - "line": 52, - "column": 29 - }, - "end": { - "line": 52, - "column": 42 - }, - "identifierName": "default_email" - }, - "name": "default_email" - }, - "computed": false - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 1632, - "end": 1634, - "loc": { - "start": { - "line": 52, - "column": 47 - }, - "end": { - "line": 52, - "column": 49 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "IfStatement", - "start": 1646, - "end": 2448, - "loc": { - "start": { - "line": 54, - "column": 8 - }, - "end": { - "line": 76, - "column": 9 - } - }, - "test": { - "type": "Identifier", - "start": 1650, - "end": 1682, - "loc": { - "start": { - "line": 54, - "column": 12 - }, - "end": { - "line": 54, - "column": 44 - }, - "identifierName": "documentHasAtLeastOneUnfixedRole" - }, - "name": "documentHasAtLeastOneUnfixedRole" - }, - "consequent": { - "type": "BlockStatement", - "start": 1684, - "end": 2291, - "loc": { - "start": { - "line": 54, - "column": 46 - }, - "end": { - "line": 73, - "column": 9 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 1696, - "end": 1745, - "loc": { - "start": { - "line": 55, - "column": 10 - }, - "end": { - "line": 55, - "column": 59 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1702, - "end": 1744, - "loc": { - "start": { - "line": 55, - "column": 16 - }, - "end": { - "line": 55, - "column": 58 - } - }, - "id": { - "type": "Identifier", - "start": 1702, - "end": 1710, - "loc": { - "start": { - "line": 55, - "column": 16 - }, - "end": { - "line": 55, - "column": 24 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 1713, - "end": 1744, - "loc": { - "start": { - "line": 55, - "column": 27 - }, - "end": { - "line": 55, - "column": 58 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1713, - "end": 1727, - "loc": { - "start": { - "line": 55, - "column": 27 - }, - "end": { - "line": 55, - "column": 41 - } - }, - "object": { - "type": "Identifier", - "start": 1713, - "end": 1717, - "loc": { - "start": { - "line": 55, - "column": 27 - }, - "end": { - "line": 55, - "column": 31 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 1718, - "end": 1727, - "loc": { - "start": { - "line": 55, - "column": 32 - }, - "end": { - "line": 55, - "column": 41 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 1728, - "end": 1743, - "loc": { - "start": { - "line": 55, - "column": 42 - }, - "end": { - "line": 55, - "column": 57 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1730, - "end": 1741, - "loc": { - "start": { - "line": 55, - "column": 44 - }, - "end": { - "line": 55, - "column": 55 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1730, - "end": 1741, - "loc": { - "start": { - "line": 55, - "column": 44 - }, - "end": { - "line": 55, - "column": 55 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "value": { - "type": "Identifier", - "start": 1730, - "end": 1741, - "loc": { - "start": { - "line": 55, - "column": 44 - }, - "end": { - "line": 55, - "column": 55 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 1756, - "end": 2228, - "loc": { - "start": { - "line": 56, - "column": 10 - }, - "end": { - "line": 69, - "column": 49 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1762, - "end": 2227, - "loc": { - "start": { - "line": 56, - "column": 16 - }, - "end": { - "line": 69, - "column": 48 - } - }, - "id": { - "type": "Identifier", - "start": 1762, - "end": 1765, - "loc": { - "start": { - "line": 56, - "column": 16 - }, - "end": { - "line": 56, - "column": 19 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 1768, - "end": 2227, - "loc": { - "start": { - "line": 56, - "column": 22 - }, - "end": { - "line": 69, - "column": 48 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1768, - "end": 2194, - "loc": { - "start": { - "line": 56, - "column": 22 - }, - "end": { - "line": 69, - "column": 15 - } - }, - "object": { - "type": "CallExpression", - "start": 1768, - "end": 2178, - "loc": { - "start": { - "line": 56, - "column": 22 - }, - "end": { - "line": 68, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1768, - "end": 1794, - "loc": { - "start": { - "line": 56, - "column": 22 - }, - "end": { - "line": 57, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 1768, - "end": 1773, - "loc": { - "start": { - "line": 56, - "column": 22 - }, - "end": { - "line": 56, - "column": 27 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 1787, - "end": 1794, - "loc": { - "start": { - "line": 57, - "column": 13 - }, - "end": { - "line": 57, - "column": 20 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 1795, - "end": 2150, - "loc": { - "start": { - "line": 57, - "column": 21 - }, - "end": { - "line": 68, - "column": 14 - } - }, - "callee": { - "type": "Identifier", - "start": 1795, - "end": 1814, - "loc": { - "start": { - "line": 57, - "column": 21 - }, - "end": { - "line": 57, - "column": 40 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 1815, - "end": 2149, - "loc": { - "start": { - "line": 57, - "column": 41 - }, - "end": { - "line": 68, - "column": 13 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1831, - "end": 1845, - "loc": { - "start": { - "line": 58, - "column": 14 - }, - "end": { - "line": 58, - "column": 28 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1831, - "end": 1837, - "loc": { - "start": { - "line": 58, - "column": 14 - }, - "end": { - "line": 58, - "column": 20 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 1839, - "end": 1845, - "loc": { - "start": { - "line": 58, - "column": 22 - }, - "end": { - "line": 58, - "column": 28 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 1861, - "end": 1874, - "loc": { - "start": { - "line": 59, - "column": 14 - }, - "end": { - "line": 59, - "column": 27 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1861, - "end": 1865, - "loc": { - "start": { - "line": 59, - "column": 14 - }, - "end": { - "line": 59, - "column": 18 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 1867, - "end": 1874, - "loc": { - "start": { - "line": 59, - "column": 20 - }, - "end": { - "line": 59, - "column": 27 - } - }, - "extra": { - "rawValue": "/link", - "raw": "'/link'" - }, - "value": "/link" - } - }, - { - "type": "ObjectProperty", - "start": 1890, - "end": 1977, - "loc": { - "start": { - "line": 60, - "column": 14 - }, - "end": { - "line": 63, - "column": 15 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1890, - "end": 1903, - "loc": { - "start": { - "line": 60, - "column": 14 - }, - "end": { - "line": 60, - "column": 27 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 1905, - "end": 1977, - "loc": { - "start": { - "line": 60, - "column": 29 - }, - "end": { - "line": 63, - "column": 15 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1923, - "end": 1937, - "loc": { - "start": { - "line": 61, - "column": 16 - }, - "end": { - "line": 61, - "column": 30 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1923, - "end": 1927, - "loc": { - "start": { - "line": 61, - "column": 16 - }, - "end": { - "line": 61, - "column": 20 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 1929, - "end": 1937, - "loc": { - "start": { - "line": 61, - "column": 22 - }, - "end": { - "line": 61, - "column": 30 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 1955, - "end": 1960, - "loc": { - "start": { - "line": 62, - "column": 16 - }, - "end": { - "line": 62, - "column": 21 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1955, - "end": 1960, - "loc": { - "start": { - "line": 62, - "column": 16 - }, - "end": { - "line": 62, - "column": 21 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 1955, - "end": 1960, - "loc": { - "start": { - "line": 62, - "column": 16 - }, - "end": { - "line": 62, - "column": 21 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 1993, - "end": 2134, - "loc": { - "start": { - "line": 64, - "column": 14 - }, - "end": { - "line": 67, - "column": 15 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1993, - "end": 2000, - "loc": { - "start": { - "line": 64, - "column": 14 - }, - "end": { - "line": 64, - "column": 21 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 2002, - "end": 2134, - "loc": { - "start": { - "line": 64, - "column": 23 - }, - "end": { - "line": 67, - "column": 15 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2020, - "end": 2054, - "loc": { - "start": { - "line": 65, - "column": 16 - }, - "end": { - "line": 65, - "column": 50 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 2020, - "end": 2034, - "loc": { - "start": { - "line": 65, - "column": 16 - }, - "end": { - "line": 65, - "column": 30 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 2036, - "end": 2054, - "loc": { - "start": { - "line": 65, - "column": 32 - }, - "end": { - "line": 65, - "column": 50 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 2072, - "end": 2117, - "loc": { - "start": { - "line": 66, - "column": 16 - }, - "end": { - "line": 66, - "column": 61 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 2072, - "end": 2088, - "loc": { - "start": { - "line": 66, - "column": 16 - }, - "end": { - "line": 66, - "column": 32 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 2090, - "end": 2117, - "loc": { - "start": { - "line": 66, - "column": 34 - }, - "end": { - "line": 66, - "column": 61 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2090, - "end": 2107, - "loc": { - "start": { - "line": 66, - "column": 34 - }, - "end": { - "line": 66, - "column": 51 - } - }, - "object": { - "type": "Identifier", - "start": 2090, - "end": 2096, - "loc": { - "start": { - "line": 66, - "column": 34 - }, - "end": { - "line": 66, - "column": 40 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 2097, - "end": 2107, - "loc": { - "start": { - "line": 66, - "column": 41 - }, - "end": { - "line": 66, - "column": 51 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2108, - "end": 2116, - "loc": { - "start": { - "line": 66, - "column": 52 - }, - "end": { - "line": 66, - "column": 60 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 2152, - "end": 2177, - "loc": { - "start": { - "line": 68, - "column": 16 - }, - "end": { - "line": 68, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 2152, - "end": 2167, - "loc": { - "start": { - "line": 68, - "column": 16 - }, - "end": { - "line": 68, - "column": 31 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2168, - "end": 2176, - "loc": { - "start": { - "line": 68, - "column": 32 - }, - "end": { - "line": 68, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 2192, - "end": 2194, - "loc": { - "start": { - "line": 69, - "column": 13 - }, - "end": { - "line": 69, - "column": 15 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2195, - "end": 2202, - "loc": { - "start": { - "line": 69, - "column": 16 - }, - "end": { - "line": 69, - "column": 23 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 2204, - "end": 2226, - "loc": { - "start": { - "line": 69, - "column": 25 - }, - "end": { - "line": 69, - "column": 47 - } - }, - "callee": { - "type": "Identifier", - "start": 2204, - "end": 2216, - "loc": { - "start": { - "line": 69, - "column": 25 - }, - "end": { - "line": 69, - "column": 37 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2217, - "end": 2225, - "loc": { - "start": { - "line": 69, - "column": 38 - }, - "end": { - "line": 69, - "column": 46 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 2240, - "end": 2260, - "loc": { - "start": { - "line": 71, - "column": 10 - }, - "end": { - "line": 71, - "column": 30 - } - }, - "expression": { - "type": "CallExpression", - "start": 2240, - "end": 2259, - "loc": { - "start": { - "line": 71, - "column": 10 - }, - "end": { - "line": 71, - "column": 29 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2240, - "end": 2249, - "loc": { - "start": { - "line": 71, - "column": 10 - }, - "end": { - "line": 71, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 2240, - "end": 2243, - "loc": { - "start": { - "line": 71, - "column": 10 - }, - "end": { - "line": 71, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 2244, - "end": 2249, - "loc": { - "start": { - "line": 71, - "column": 14 - }, - "end": { - "line": 71, - "column": 19 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2250, - "end": 2258, - "loc": { - "start": { - "line": 71, - "column": 20 - }, - "end": { - "line": 71, - "column": 28 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 2271, - "end": 2281, - "loc": { - "start": { - "line": 72, - "column": 10 - }, - "end": { - "line": 72, - "column": 20 - } - }, - "expression": { - "type": "CallExpression", - "start": 2271, - "end": 2280, - "loc": { - "start": { - "line": 72, - "column": 10 - }, - "end": { - "line": 72, - "column": 19 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2271, - "end": 2278, - "loc": { - "start": { - "line": 72, - "column": 10 - }, - "end": { - "line": 72, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 2271, - "end": 2274, - "loc": { - "start": { - "line": 72, - "column": 10 - }, - "end": { - "line": 72, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 2275, - "end": 2278, - "loc": { - "start": { - "line": 72, - "column": 14 - }, - "end": { - "line": 72, - "column": 17 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 2297, - "end": 2448, - "loc": { - "start": { - "line": 73, - "column": 15 - }, - "end": { - "line": 76, - "column": 9 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2309, - "end": 2420, - "loc": { - "start": { - "line": 74, - "column": 10 - }, - "end": { - "line": 74, - "column": 121 - } - }, - "expression": { - "type": "CallExpression", - "start": 2309, - "end": 2419, - "loc": { - "start": { - "line": 74, - "column": 10 - }, - "end": { - "line": 74, - "column": 120 - } - }, - "callee": { - "type": "Identifier", - "start": 2309, - "end": 2317, - "loc": { - "start": { - "line": 74, - "column": 10 - }, - "end": { - "line": 74, - "column": 18 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2318, - "end": 2418, - "loc": { - "start": { - "line": 74, - "column": 19 - }, - "end": { - "line": 74, - "column": 119 - } - }, - "extra": { - "rawValue": "A document must have at least one role that does not have a fixed e-mail to create an invite link.", - "raw": "'A document must have at least one role that does not have a fixed e-mail to create an invite link.'" - }, - "value": "A document must have at least one role that does not have a fixed e-mail to create an invite link." - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 2431, - "end": 2438, - "loc": { - "start": { - "line": 75, - "column": 10 - }, - "end": { - "line": 75, - "column": 17 - } - }, - "argument": null - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Create signing link payload\n * @typedef {Object} SigningLinkCreateParams\n * @property {string} document_id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 453, - "end": 652, - "loc": { - "start": { - "line": 20, - "column": 2 - }, - "end": { - "line": 25, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create signing link response data\n * @typedef {Object} SigningLinkCreateResponse\n * @property {string} url - invite url with user authorization\n * @property {string} url_no_signup - invite url without user authorization\n ", - "start": 656, - "end": 896, - "loc": { - "start": { - "line": 27, - "column": 2 - }, - "end": { - "line": 32, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates signing link for specified document\n * @param {SigningLinkCreateParams} data - create signing link payload\n * @param {function(err: ApiErrorResponse, res: SigningLinkCreateResponse)} [callback] - error first node.js callback\n ", - "start": 900, - "end": 1151, - "loc": { - "start": { - "line": 34, - "column": 2 - }, - "end": { - "line": 38, - "column": 5 - } - } - } - ] - } - ] - }, - "leadingComments": [], - "name": "_", - "trailingComments": [] - }, - { - "type": "Identifier", - "start": 2472, - "end": 2492, - "loc": { - "start": { - "line": 82, - "column": 0 - }, - "end": { - "line": 82, - "column": 20 - } - }, - "declaration": { - "type": "Identifier", - "start": 2487, - "end": 2491, - "loc": { - "start": { - "line": 82, - "column": 15 - }, - "end": { - "line": 82, - "column": 19 - }, - "identifierName": "Link" - }, - "name": "Link" - }, - "name": "_", - "leadingComments": [], - "trailingComments": [] - }, - { - "type": "ExportDefaultDeclaration", - "start": 2472, - "end": 2492, - "loc": { - "start": { - "line": 82, - "column": 0 - }, - "end": { - "line": 82, - "column": 20 - } - }, - "declaration": { - "type": "ClassDeclaration", - "start": 437, - "end": 2470, - "loc": { - "start": { - "line": 18, - "column": 0 - }, - "end": { - "line": 80, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 443, - "end": 447, - "loc": { - "start": { - "line": 18, - "column": 6 - }, - "end": { - "line": 18, - "column": 10 - }, - "identifierName": "Link" - }, - "name": "Link", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 448, - "end": 2470, - "loc": { - "start": { - "line": 18, - "column": 11 - }, - "end": { - "line": 80, - "column": 1 - } - }, - "body": [ - { - "type": "ClassMethod", - "start": 1154, - "end": 2468, - "loc": { - "start": { - "line": 39, - "column": 2 - }, - "end": { - "line": 79, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1161, - "end": 1167, - "loc": { - "start": { - "line": 39, - "column": 9 - }, - "end": { - "line": 39, - "column": 15 - }, - "identifierName": "create" - }, - "name": "create" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 1169, - "end": 1191, - "loc": { - "start": { - "line": 39, - "column": 17 - }, - "end": { - "line": 39, - "column": 39 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1171, - "end": 1182, - "loc": { - "start": { - "line": 39, - "column": 19 - }, - "end": { - "line": 39, - "column": 30 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1171, - "end": 1182, - "loc": { - "start": { - "line": 39, - "column": 19 - }, - "end": { - "line": 39, - "column": 30 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "value": { - "type": "Identifier", - "start": 1171, - "end": 1182, - "loc": { - "start": { - "line": 39, - "column": 19 - }, - "end": { - "line": 39, - "column": 30 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1184, - "end": 1189, - "loc": { - "start": { - "line": 39, - "column": 32 - }, - "end": { - "line": 39, - "column": 37 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1184, - "end": 1189, - "loc": { - "start": { - "line": 39, - "column": 32 - }, - "end": { - "line": 39, - "column": 37 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 1184, - "end": 1189, - "loc": { - "start": { - "line": 39, - "column": 32 - }, - "end": { - "line": 39, - "column": 37 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 1193, - "end": 1201, - "loc": { - "start": { - "line": 39, - "column": 41 - }, - "end": { - "line": 39, - "column": 49 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 1203, - "end": 2468, - "loc": { - "start": { - "line": 39, - "column": 51 - }, - "end": { - "line": 79, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1209, - "end": 2464, - "loc": { - "start": { - "line": 40, - "column": 4 - }, - "end": { - "line": 78, - "column": 7 - } - }, - "expression": { - "type": "CallExpression", - "start": 1209, - "end": 2463, - "loc": { - "start": { - "line": 40, - "column": 4 - }, - "end": { - "line": 78, - "column": 6 - } - }, - "callee": { - "type": "Identifier", - "start": 1209, - "end": 1227, - "loc": { - "start": { - "line": 40, - "column": 4 - }, - "end": { - "line": 40, - "column": 22 - }, - "identifierName": "getDocumentDetails" - }, - "name": "getDocumentDetails" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 1228, - "end": 1271, - "loc": { - "start": { - "line": 40, - "column": 23 - }, - "end": { - "line": 43, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1236, - "end": 1251, - "loc": { - "start": { - "line": 41, - "column": 6 - }, - "end": { - "line": 41, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1236, - "end": 1238, - "loc": { - "start": { - "line": 41, - "column": 6 - }, - "end": { - "line": 41, - "column": 8 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 1240, - "end": 1251, - "loc": { - "start": { - "line": 41, - "column": 10 - }, - "end": { - "line": 41, - "column": 21 - }, - "identifierName": "document_id" - }, - "name": "document_id" - } - }, - { - "type": "ObjectProperty", - "start": 1259, - "end": 1264, - "loc": { - "start": { - "line": 42, - "column": 6 - }, - "end": { - "line": 42, - "column": 11 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1259, - "end": 1264, - "loc": { - "start": { - "line": 42, - "column": 6 - }, - "end": { - "line": 42, - "column": 11 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 1259, - "end": 1264, - "loc": { - "start": { - "line": 42, - "column": 6 - }, - "end": { - "line": 42, - "column": 11 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "ArrowFunctionExpression", - "start": 1273, - "end": 2462, - "loc": { - "start": { - "line": 43, - "column": 7 - }, - "end": { - "line": 78, - "column": 5 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1274, - "end": 1283, - "loc": { - "start": { - "line": 43, - "column": 8 - }, - "end": { - "line": 43, - "column": 17 - }, - "identifierName": "detailErr" - }, - "name": "detailErr" - }, - { - "type": "Identifier", - "start": 1285, - "end": 1294, - "loc": { - "start": { - "line": 43, - "column": 19 - }, - "end": { - "line": 43, - "column": 28 - }, - "identifierName": "detailRes" - }, - "name": "detailRes" - } - ], - "body": { - "type": "BlockStatement", - "start": 1299, - "end": 2462, - "loc": { - "start": { - "line": 43, - "column": 33 - }, - "end": { - "line": 78, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 1307, - "end": 2456, - "loc": { - "start": { - "line": 44, - "column": 6 - }, - "end": { - "line": 77, - "column": 7 - } - }, - "test": { - "type": "Identifier", - "start": 1311, - "end": 1320, - "loc": { - "start": { - "line": 44, - "column": 10 - }, - "end": { - "line": 44, - "column": 19 - }, - "identifierName": "detailErr" - }, - "name": "detailErr" - }, - "consequent": { - "type": "BlockStatement", - "start": 1322, - "end": 1376, - "loc": { - "start": { - "line": 44, - "column": 21 - }, - "end": { - "line": 47, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1332, - "end": 1352, - "loc": { - "start": { - "line": 45, - "column": 8 - }, - "end": { - "line": 45, - "column": 28 - } - }, - "expression": { - "type": "CallExpression", - "start": 1332, - "end": 1351, - "loc": { - "start": { - "line": 45, - "column": 8 - }, - "end": { - "line": 45, - "column": 27 - } - }, - "callee": { - "type": "Identifier", - "start": 1332, - "end": 1340, - "loc": { - "start": { - "line": 45, - "column": 8 - }, - "end": { - "line": 45, - "column": 16 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1341, - "end": 1350, - "loc": { - "start": { - "line": 45, - "column": 17 - }, - "end": { - "line": 45, - "column": 26 - }, - "identifierName": "detailErr" - }, - "name": "detailErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 1361, - "end": 1368, - "loc": { - "start": { - "line": 46, - "column": 8 - }, - "end": { - "line": 46, - "column": 15 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 1382, - "end": 2456, - "loc": { - "start": { - "line": 47, - "column": 13 - }, - "end": { - "line": 77, - "column": 7 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 1392, - "end": 1430, - "loc": { - "start": { - "line": 48, - "column": 8 - }, - "end": { - "line": 48, - "column": 46 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1398, - "end": 1429, - "loc": { - "start": { - "line": 48, - "column": 14 - }, - "end": { - "line": 48, - "column": 45 - } - }, - "id": { - "type": "ObjectPattern", - "start": 1398, - "end": 1417, - "loc": { - "start": { - "line": 48, - "column": 14 - }, - "end": { - "line": 48, - "column": 33 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1400, - "end": 1415, - "loc": { - "start": { - "line": 48, - "column": 16 - }, - "end": { - "line": 48, - "column": 31 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1400, - "end": 1415, - "loc": { - "start": { - "line": 48, - "column": 16 - }, - "end": { - "line": 48, - "column": 31 - }, - "identifierName": "routing_details" - }, - "name": "routing_details" - }, - "value": { - "type": "Identifier", - "start": 1400, - "end": 1415, - "loc": { - "start": { - "line": 48, - "column": 16 - }, - "end": { - "line": 48, - "column": 31 - }, - "identifierName": "routing_details" - }, - "name": "routing_details" - }, - "extra": { - "shorthand": true - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 1420, - "end": 1429, - "loc": { - "start": { - "line": 48, - "column": 36 - }, - "end": { - "line": 48, - "column": 45 - }, - "identifierName": "detailRes" - }, - "name": "detailRes" - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 1439, - "end": 1636, - "loc": { - "start": { - "line": 49, - "column": 8 - }, - "end": { - "line": 52, - "column": 51 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1445, - "end": 1635, - "loc": { - "start": { - "line": 49, - "column": 14 - }, - "end": { - "line": 52, - "column": 50 - } - }, - "id": { - "type": "Identifier", - "start": 1445, - "end": 1477, - "loc": { - "start": { - "line": 49, - "column": 14 - }, - "end": { - "line": 49, - "column": 46 - }, - "identifierName": "documentHasAtLeastOneUnfixedRole" - }, - "name": "documentHasAtLeastOneUnfixedRole" - }, - "init": { - "type": "CallExpression", - "start": 1480, - "end": 1635, - "loc": { - "start": { - "line": 49, - "column": 49 - }, - "end": { - "line": 52, - "column": 50 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1480, - "end": 1600, - "loc": { - "start": { - "line": 49, - "column": 49 - }, - "end": { - "line": 52, - "column": 15 - } - }, - "object": { - "type": "CallExpression", - "start": 1480, - "end": 1584, - "loc": { - "start": { - "line": 49, - "column": 49 - }, - "end": { - "line": 51, - "column": 48 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1480, - "end": 1553, - "loc": { - "start": { - "line": 49, - "column": 49 - }, - "end": { - "line": 51, - "column": 17 - } - }, - "object": { - "type": "CallExpression", - "start": 1480, - "end": 1535, - "loc": { - "start": { - "line": 49, - "column": 49 - }, - "end": { - "line": 50, - "column": 39 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1480, - "end": 1510, - "loc": { - "start": { - "line": 49, - "column": 49 - }, - "end": { - "line": 50, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 1480, - "end": 1495, - "loc": { - "start": { - "line": 49, - "column": 49 - }, - "end": { - "line": 49, - "column": 64 - }, - "identifierName": "routing_details" - }, - "name": "routing_details" - }, - "property": { - "type": "Identifier", - "start": 1507, - "end": 1510, - "loc": { - "start": { - "line": 50, - "column": 11 - }, - "end": { - "line": 50, - "column": 14 - }, - "identifierName": "map" - }, - "name": "map" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 1511, - "end": 1534, - "loc": { - "start": { - "line": 50, - "column": 15 - }, - "end": { - "line": 50, - "column": 38 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1511, - "end": 1518, - "loc": { - "start": { - "line": 50, - "column": 15 - }, - "end": { - "line": 50, - "column": 22 - }, - "identifierName": "routing" - }, - "name": "routing" - } - ], - "body": { - "type": "MemberExpression", - "start": 1522, - "end": 1534, - "loc": { - "start": { - "line": 50, - "column": 26 - }, - "end": { - "line": 50, - "column": 38 - } - }, - "object": { - "type": "Identifier", - "start": 1522, - "end": 1529, - "loc": { - "start": { - "line": 50, - "column": 26 - }, - "end": { - "line": 50, - "column": 33 - }, - "identifierName": "routing" - }, - "name": "routing" - }, - "property": { - "type": "Identifier", - "start": 1530, - "end": 1534, - "loc": { - "start": { - "line": 50, - "column": 34 - }, - "end": { - "line": 50, - "column": 38 - }, - "identifierName": "data" - }, - "name": "data" - }, - "computed": false - } - } - ] - }, - "property": { - "type": "Identifier", - "start": 1547, - "end": 1553, - "loc": { - "start": { - "line": 51, - "column": 11 - }, - "end": { - "line": 51, - "column": 17 - }, - "identifierName": "reduce" - }, - "name": "reduce" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 1554, - "end": 1579, - "loc": { - "start": { - "line": 51, - "column": 18 - }, - "end": { - "line": 51, - "column": 43 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1555, - "end": 1558, - "loc": { - "start": { - "line": 51, - "column": 19 - }, - "end": { - "line": 51, - "column": 22 - }, - "identifierName": "acc" - }, - "name": "acc" - }, - { - "type": "Identifier", - "start": 1560, - "end": 1561, - "loc": { - "start": { - "line": 51, - "column": 24 - }, - "end": { - "line": 51, - "column": 25 - }, - "identifierName": "i" - }, - "name": "i" - } - ], - "body": { - "type": "CallExpression", - "start": 1566, - "end": 1579, - "loc": { - "start": { - "line": 51, - "column": 30 - }, - "end": { - "line": 51, - "column": 43 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1566, - "end": 1576, - "loc": { - "start": { - "line": 51, - "column": 30 - }, - "end": { - "line": 51, - "column": 40 - } - }, - "object": { - "type": "Identifier", - "start": 1566, - "end": 1569, - "loc": { - "start": { - "line": 51, - "column": 30 - }, - "end": { - "line": 51, - "column": 33 - }, - "identifierName": "acc" - }, - "name": "acc" - }, - "property": { - "type": "Identifier", - "start": 1570, - "end": 1576, - "loc": { - "start": { - "line": 51, - "column": 34 - }, - "end": { - "line": 51, - "column": 40 - }, - "identifierName": "concat" - }, - "name": "concat" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1577, - "end": 1578, - "loc": { - "start": { - "line": 51, - "column": 41 - }, - "end": { - "line": 51, - "column": 42 - }, - "identifierName": "i" - }, - "name": "i" - } - ] - } - }, - { - "type": "ArrayExpression", - "start": 1581, - "end": 1583, - "loc": { - "start": { - "line": 51, - "column": 45 - }, - "end": { - "line": 51, - "column": 47 - } - }, - "elements": [] - } - ] - }, - "property": { - "type": "Identifier", - "start": 1596, - "end": 1600, - "loc": { - "start": { - "line": 52, - "column": 11 - }, - "end": { - "line": 52, - "column": 15 - }, - "identifierName": "some" - }, - "name": "some" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 1601, - "end": 1634, - "loc": { - "start": { - "line": 52, - "column": 16 - }, - "end": { - "line": 52, - "column": 49 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1601, - "end": 1605, - "loc": { - "start": { - "line": 52, - "column": 16 - }, - "end": { - "line": 52, - "column": 20 - }, - "identifierName": "role" - }, - "name": "role" - } - ], - "body": { - "type": "BinaryExpression", - "start": 1609, - "end": 1634, - "loc": { - "start": { - "line": 52, - "column": 24 - }, - "end": { - "line": 52, - "column": 49 - } - }, - "left": { - "type": "MemberExpression", - "start": 1609, - "end": 1627, - "loc": { - "start": { - "line": 52, - "column": 24 - }, - "end": { - "line": 52, - "column": 42 - } - }, - "object": { - "type": "Identifier", - "start": 1609, - "end": 1613, - "loc": { - "start": { - "line": 52, - "column": 24 - }, - "end": { - "line": 52, - "column": 28 - }, - "identifierName": "role" - }, - "name": "role" - }, - "property": { - "type": "Identifier", - "start": 1614, - "end": 1627, - "loc": { - "start": { - "line": 52, - "column": 29 - }, - "end": { - "line": 52, - "column": 42 - }, - "identifierName": "default_email" - }, - "name": "default_email" - }, - "computed": false - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 1632, - "end": 1634, - "loc": { - "start": { - "line": 52, - "column": 47 - }, - "end": { - "line": 52, - "column": 49 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "IfStatement", - "start": 1646, - "end": 2448, - "loc": { - "start": { - "line": 54, - "column": 8 - }, - "end": { - "line": 76, - "column": 9 - } - }, - "test": { - "type": "Identifier", - "start": 1650, - "end": 1682, - "loc": { - "start": { - "line": 54, - "column": 12 - }, - "end": { - "line": 54, - "column": 44 - }, - "identifierName": "documentHasAtLeastOneUnfixedRole" - }, - "name": "documentHasAtLeastOneUnfixedRole" - }, - "consequent": { - "type": "BlockStatement", - "start": 1684, - "end": 2291, - "loc": { - "start": { - "line": 54, - "column": 46 - }, - "end": { - "line": 73, - "column": 9 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 1696, - "end": 1745, - "loc": { - "start": { - "line": 55, - "column": 10 - }, - "end": { - "line": 55, - "column": 59 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1702, - "end": 1744, - "loc": { - "start": { - "line": 55, - "column": 16 - }, - "end": { - "line": 55, - "column": 58 - } - }, - "id": { - "type": "Identifier", - "start": 1702, - "end": 1710, - "loc": { - "start": { - "line": 55, - "column": 16 - }, - "end": { - "line": 55, - "column": 24 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 1713, - "end": 1744, - "loc": { - "start": { - "line": 55, - "column": 27 - }, - "end": { - "line": 55, - "column": 58 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1713, - "end": 1727, - "loc": { - "start": { - "line": 55, - "column": 27 - }, - "end": { - "line": 55, - "column": 41 - } - }, - "object": { - "type": "Identifier", - "start": 1713, - "end": 1717, - "loc": { - "start": { - "line": 55, - "column": 27 - }, - "end": { - "line": 55, - "column": 31 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 1718, - "end": 1727, - "loc": { - "start": { - "line": 55, - "column": 32 - }, - "end": { - "line": 55, - "column": 41 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 1728, - "end": 1743, - "loc": { - "start": { - "line": 55, - "column": 42 - }, - "end": { - "line": 55, - "column": 57 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1730, - "end": 1741, - "loc": { - "start": { - "line": 55, - "column": 44 - }, - "end": { - "line": 55, - "column": 55 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1730, - "end": 1741, - "loc": { - "start": { - "line": 55, - "column": 44 - }, - "end": { - "line": 55, - "column": 55 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "value": { - "type": "Identifier", - "start": 1730, - "end": 1741, - "loc": { - "start": { - "line": 55, - "column": 44 - }, - "end": { - "line": 55, - "column": 55 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 1756, - "end": 2228, - "loc": { - "start": { - "line": 56, - "column": 10 - }, - "end": { - "line": 69, - "column": 49 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1762, - "end": 2227, - "loc": { - "start": { - "line": 56, - "column": 16 - }, - "end": { - "line": 69, - "column": 48 - } - }, - "id": { - "type": "Identifier", - "start": 1762, - "end": 1765, - "loc": { - "start": { - "line": 56, - "column": 16 - }, - "end": { - "line": 56, - "column": 19 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 1768, - "end": 2227, - "loc": { - "start": { - "line": 56, - "column": 22 - }, - "end": { - "line": 69, - "column": 48 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1768, - "end": 2194, - "loc": { - "start": { - "line": 56, - "column": 22 - }, - "end": { - "line": 69, - "column": 15 - } - }, - "object": { - "type": "CallExpression", - "start": 1768, - "end": 2178, - "loc": { - "start": { - "line": 56, - "column": 22 - }, - "end": { - "line": 68, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1768, - "end": 1794, - "loc": { - "start": { - "line": 56, - "column": 22 - }, - "end": { - "line": 57, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 1768, - "end": 1773, - "loc": { - "start": { - "line": 56, - "column": 22 - }, - "end": { - "line": 56, - "column": 27 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 1787, - "end": 1794, - "loc": { - "start": { - "line": 57, - "column": 13 - }, - "end": { - "line": 57, - "column": 20 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 1795, - "end": 2150, - "loc": { - "start": { - "line": 57, - "column": 21 - }, - "end": { - "line": 68, - "column": 14 - } - }, - "callee": { - "type": "Identifier", - "start": 1795, - "end": 1814, - "loc": { - "start": { - "line": 57, - "column": 21 - }, - "end": { - "line": 57, - "column": 40 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 1815, - "end": 2149, - "loc": { - "start": { - "line": 57, - "column": 41 - }, - "end": { - "line": 68, - "column": 13 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1831, - "end": 1845, - "loc": { - "start": { - "line": 58, - "column": 14 - }, - "end": { - "line": 58, - "column": 28 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1831, - "end": 1837, - "loc": { - "start": { - "line": 58, - "column": 14 - }, - "end": { - "line": 58, - "column": 20 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 1839, - "end": 1845, - "loc": { - "start": { - "line": 58, - "column": 22 - }, - "end": { - "line": 58, - "column": 28 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 1861, - "end": 1874, - "loc": { - "start": { - "line": 59, - "column": 14 - }, - "end": { - "line": 59, - "column": 27 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1861, - "end": 1865, - "loc": { - "start": { - "line": 59, - "column": 14 - }, - "end": { - "line": 59, - "column": 18 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 1867, - "end": 1874, - "loc": { - "start": { - "line": 59, - "column": 20 - }, - "end": { - "line": 59, - "column": 27 - } - }, - "extra": { - "rawValue": "/link", - "raw": "'/link'" - }, - "value": "/link" - } - }, - { - "type": "ObjectProperty", - "start": 1890, - "end": 1977, - "loc": { - "start": { - "line": 60, - "column": 14 - }, - "end": { - "line": 63, - "column": 15 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1890, - "end": 1903, - "loc": { - "start": { - "line": 60, - "column": 14 - }, - "end": { - "line": 60, - "column": 27 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 1905, - "end": 1977, - "loc": { - "start": { - "line": 60, - "column": 29 - }, - "end": { - "line": 63, - "column": 15 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1923, - "end": 1937, - "loc": { - "start": { - "line": 61, - "column": 16 - }, - "end": { - "line": 61, - "column": 30 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1923, - "end": 1927, - "loc": { - "start": { - "line": 61, - "column": 16 - }, - "end": { - "line": 61, - "column": 20 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 1929, - "end": 1937, - "loc": { - "start": { - "line": 61, - "column": 22 - }, - "end": { - "line": 61, - "column": 30 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 1955, - "end": 1960, - "loc": { - "start": { - "line": 62, - "column": 16 - }, - "end": { - "line": 62, - "column": 21 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1955, - "end": 1960, - "loc": { - "start": { - "line": 62, - "column": 16 - }, - "end": { - "line": 62, - "column": 21 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 1955, - "end": 1960, - "loc": { - "start": { - "line": 62, - "column": 16 - }, - "end": { - "line": 62, - "column": 21 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 1993, - "end": 2134, - "loc": { - "start": { - "line": 64, - "column": 14 - }, - "end": { - "line": 67, - "column": 15 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1993, - "end": 2000, - "loc": { - "start": { - "line": 64, - "column": 14 - }, - "end": { - "line": 64, - "column": 21 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 2002, - "end": 2134, - "loc": { - "start": { - "line": 64, - "column": 23 - }, - "end": { - "line": 67, - "column": 15 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2020, - "end": 2054, - "loc": { - "start": { - "line": 65, - "column": 16 - }, - "end": { - "line": 65, - "column": 50 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 2020, - "end": 2034, - "loc": { - "start": { - "line": 65, - "column": 16 - }, - "end": { - "line": 65, - "column": 30 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 2036, - "end": 2054, - "loc": { - "start": { - "line": 65, - "column": 32 - }, - "end": { - "line": 65, - "column": 50 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 2072, - "end": 2117, - "loc": { - "start": { - "line": 66, - "column": 16 - }, - "end": { - "line": 66, - "column": 61 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 2072, - "end": 2088, - "loc": { - "start": { - "line": 66, - "column": 16 - }, - "end": { - "line": 66, - "column": 32 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 2090, - "end": 2117, - "loc": { - "start": { - "line": 66, - "column": 34 - }, - "end": { - "line": 66, - "column": 61 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2090, - "end": 2107, - "loc": { - "start": { - "line": 66, - "column": 34 - }, - "end": { - "line": 66, - "column": 51 - } - }, - "object": { - "type": "Identifier", - "start": 2090, - "end": 2096, - "loc": { - "start": { - "line": 66, - "column": 34 - }, - "end": { - "line": 66, - "column": 40 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 2097, - "end": 2107, - "loc": { - "start": { - "line": 66, - "column": 41 - }, - "end": { - "line": 66, - "column": 51 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2108, - "end": 2116, - "loc": { - "start": { - "line": 66, - "column": 52 - }, - "end": { - "line": 66, - "column": 60 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 2152, - "end": 2177, - "loc": { - "start": { - "line": 68, - "column": 16 - }, - "end": { - "line": 68, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 2152, - "end": 2167, - "loc": { - "start": { - "line": 68, - "column": 16 - }, - "end": { - "line": 68, - "column": 31 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2168, - "end": 2176, - "loc": { - "start": { - "line": 68, - "column": 32 - }, - "end": { - "line": 68, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 2192, - "end": 2194, - "loc": { - "start": { - "line": 69, - "column": 13 - }, - "end": { - "line": 69, - "column": 15 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2195, - "end": 2202, - "loc": { - "start": { - "line": 69, - "column": 16 - }, - "end": { - "line": 69, - "column": 23 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 2204, - "end": 2226, - "loc": { - "start": { - "line": 69, - "column": 25 - }, - "end": { - "line": 69, - "column": 47 - } - }, - "callee": { - "type": "Identifier", - "start": 2204, - "end": 2216, - "loc": { - "start": { - "line": 69, - "column": 25 - }, - "end": { - "line": 69, - "column": 37 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2217, - "end": 2225, - "loc": { - "start": { - "line": 69, - "column": 38 - }, - "end": { - "line": 69, - "column": 46 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 2240, - "end": 2260, - "loc": { - "start": { - "line": 71, - "column": 10 - }, - "end": { - "line": 71, - "column": 30 - } - }, - "expression": { - "type": "CallExpression", - "start": 2240, - "end": 2259, - "loc": { - "start": { - "line": 71, - "column": 10 - }, - "end": { - "line": 71, - "column": 29 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2240, - "end": 2249, - "loc": { - "start": { - "line": 71, - "column": 10 - }, - "end": { - "line": 71, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 2240, - "end": 2243, - "loc": { - "start": { - "line": 71, - "column": 10 - }, - "end": { - "line": 71, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 2244, - "end": 2249, - "loc": { - "start": { - "line": 71, - "column": 14 - }, - "end": { - "line": 71, - "column": 19 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2250, - "end": 2258, - "loc": { - "start": { - "line": 71, - "column": 20 - }, - "end": { - "line": 71, - "column": 28 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 2271, - "end": 2281, - "loc": { - "start": { - "line": 72, - "column": 10 - }, - "end": { - "line": 72, - "column": 20 - } - }, - "expression": { - "type": "CallExpression", - "start": 2271, - "end": 2280, - "loc": { - "start": { - "line": 72, - "column": 10 - }, - "end": { - "line": 72, - "column": 19 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2271, - "end": 2278, - "loc": { - "start": { - "line": 72, - "column": 10 - }, - "end": { - "line": 72, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 2271, - "end": 2274, - "loc": { - "start": { - "line": 72, - "column": 10 - }, - "end": { - "line": 72, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 2275, - "end": 2278, - "loc": { - "start": { - "line": 72, - "column": 14 - }, - "end": { - "line": 72, - "column": 17 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 2297, - "end": 2448, - "loc": { - "start": { - "line": 73, - "column": 15 - }, - "end": { - "line": 76, - "column": 9 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2309, - "end": 2420, - "loc": { - "start": { - "line": 74, - "column": 10 - }, - "end": { - "line": 74, - "column": 121 - } - }, - "expression": { - "type": "CallExpression", - "start": 2309, - "end": 2419, - "loc": { - "start": { - "line": 74, - "column": 10 - }, - "end": { - "line": 74, - "column": 120 - } - }, - "callee": { - "type": "Identifier", - "start": 2309, - "end": 2317, - "loc": { - "start": { - "line": 74, - "column": 10 - }, - "end": { - "line": 74, - "column": 18 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2318, - "end": 2418, - "loc": { - "start": { - "line": 74, - "column": 19 - }, - "end": { - "line": 74, - "column": 119 - } - }, - "extra": { - "rawValue": "A document must have at least one role that does not have a fixed e-mail to create an invite link.", - "raw": "'A document must have at least one role that does not have a fixed e-mail to create an invite link.'" - }, - "value": "A document must have at least one role that does not have a fixed e-mail to create an invite link." - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 2431, - "end": 2438, - "loc": { - "start": { - "line": 75, - "column": 10 - }, - "end": { - "line": 75, - "column": 17 - } - }, - "argument": null - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Create signing link payload\n * @typedef {Object} SigningLinkCreateParams\n * @property {string} document_id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 453, - "end": 652, - "loc": { - "start": { - "line": 20, - "column": 2 - }, - "end": { - "line": 25, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create signing link response data\n * @typedef {Object} SigningLinkCreateResponse\n * @property {string} url - invite url with user authorization\n * @property {string} url_no_signup - invite url without user authorization\n ", - "start": 656, - "end": 896, - "loc": { - "start": { - "line": 27, - "column": 2 - }, - "end": { - "line": 32, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates signing link for specified document\n * @param {SigningLinkCreateParams} data - create signing link payload\n * @param {function(err: ApiErrorResponse, res: SigningLinkCreateResponse)} [callback] - error first node.js callback\n ", - "start": 900, - "end": 1151, - "loc": { - "start": { - "line": 34, - "column": 2 - }, - "end": { - "line": 38, - "column": 5 - } - } - } - ] - } - ] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Link methods\n ", - "start": 413, - "end": 436, - "loc": { - "start": { - "line": 15, - "column": 0 - }, - "end": { - "line": 17, - "column": 3 - } - } - } - ], - "__PseudoExport__": false, - "trailingComments": [] - }, - "leadingComments": null - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "value": "use strict", - "extra": { - "raw": "'use strict'", - "rawValue": "use strict" - } - } - } - ] - }, - "comments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewParams} data - view document with field extract payload\n * @param {function(err: ApiErrorResponse, res: DocumentViewResponse)} [callback] - error first node.js callback\n ", - "start": 159, - "end": 378, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 12, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Link methods\n ", - "start": 413, - "end": 436, - "loc": { - "start": { - "line": 15, - "column": 0 - }, - "end": { - "line": 17, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create signing link payload\n * @typedef {Object} SigningLinkCreateParams\n * @property {string} document_id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 453, - "end": 652, - "loc": { - "start": { - "line": 20, - "column": 2 - }, - "end": { - "line": 25, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create signing link response data\n * @typedef {Object} SigningLinkCreateResponse\n * @property {string} url - invite url with user authorization\n * @property {string} url_no_signup - invite url without user authorization\n ", - "start": 656, - "end": 896, - "loc": { - "start": { - "line": 27, - "column": 2 - }, - "end": { - "line": 32, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates signing link for specified document\n * @param {SigningLinkCreateParams} data - create signing link payload\n * @param {function(err: ApiErrorResponse, res: SigningLinkCreateResponse)} [callback] - error first node.js callback\n ", - "start": 900, - "end": 1151, - "loc": { - "start": { - "line": 34, - "column": 2 - }, - "end": { - "line": 38, - "column": 5 - } - } - } - ], - "tokens": [ - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "use strict", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 12 - }, - "end": { - "line": 1, - "column": 13 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 14, - "end": 20, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 27, - "end": 31, - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 17 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "https", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 18 - }, - "end": { - "line": 2, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39, - "end": 40, - "loc": { - "start": { - "line": 2, - "column": 25 - }, - "end": { - "line": 2, - "column": 26 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 41, - "end": 47, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 48, - "end": 49, - "loc": { - "start": { - "line": 3, - "column": 7 - }, - "end": { - "line": 3, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 67, - "end": 68, - "loc": { - "start": { - "line": 4, - "column": 17 - }, - "end": { - "line": 4, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 69, - "end": 81, - "loc": { - "start": { - "line": 4, - "column": 19 - }, - "end": { - "line": 4, - "column": 31 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 81, - "end": 82, - "loc": { - "start": { - "line": 4, - "column": 31 - }, - "end": { - "line": 4, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 83, - "end": 102, - "loc": { - "start": { - "line": 4, - "column": 33 - }, - "end": { - "line": 4, - "column": 52 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 102, - "end": 103, - "loc": { - "start": { - "line": 4, - "column": 52 - }, - "end": { - "line": 4, - "column": 53 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 104, - "end": 105, - "loc": { - "start": { - "line": 5, - "column": 0 - }, - "end": { - "line": 5, - "column": 1 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 106, - "end": 110, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 6 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "./common", - "start": 111, - "end": 121, - "loc": { - "start": { - "line": 5, - "column": 7 - }, - "end": { - "line": 5, - "column": 17 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 121, - "end": 122, - "loc": { - "start": { - "line": 5, - "column": 17 - }, - "end": { - "line": 5, - "column": 18 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 123, - "end": 129, - "loc": { - "start": { - "line": 6, - "column": 0 - }, - "end": { - "line": 6, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 130, - "end": 131, - "loc": { - "start": { - "line": 6, - "column": 7 - }, - "end": { - "line": 6, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "view", - "start": 132, - "end": 136, - "loc": { - "start": { - "line": 6, - "column": 9 - }, - "end": { - "line": 6, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 137, - "end": 138, - "loc": { - "start": { - "line": 6, - "column": 14 - }, - "end": { - "line": 6, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 139, - "end": 143, - "loc": { - "start": { - "line": 6, - "column": 16 - }, - "end": { - "line": 6, - "column": 20 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "./document", - "start": 144, - "end": 156, - "loc": { - "start": { - "line": 6, - "column": 21 - }, - "end": { - "line": 6, - "column": 33 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 156, - "end": 157, - "loc": { - "start": { - "line": 6, - "column": 33 - }, - "end": { - "line": 6, - "column": 34 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewParams} data - view document with field extract payload\n * @param {function(err: ApiErrorResponse, res: DocumentViewResponse)} [callback] - error first node.js callback\n ", - "start": 159, - "end": 378, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 12, - "column": 3 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 379, - "end": 384, - "loc": { - "start": { - "line": 13, - "column": 0 - }, - "end": { - "line": 13, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getDocumentDetails", - "start": 385, - "end": 403, - "loc": { - "start": { - "line": 13, - "column": 6 - }, - "end": { - "line": 13, - "column": 24 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 404, - "end": 405, - "loc": { - "start": { - "line": 13, - "column": 25 - }, - "end": { - "line": 13, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "view", - "start": 406, - "end": 410, - "loc": { - "start": { - "line": 13, - "column": 27 - }, - "end": { - "line": 13, - "column": 31 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 410, - "end": 411, - "loc": { - "start": { - "line": 13, - "column": 31 - }, - "end": { - "line": 13, - "column": 32 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Link methods\n ", - "start": 413, - "end": 436, - "loc": { - "start": { - "line": 15, - "column": 0 - }, - "end": { - "line": 17, - "column": 3 - } - } - }, - { - "type": { - "label": "class", - "keyword": "class", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "class", - "start": 437, - "end": 442, - "loc": { - "start": { - "line": 18, - "column": 0 - }, - "end": { - "line": 18, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Link", - "start": 443, - "end": 447, - "loc": { - "start": { - "line": 18, - "column": 6 - }, - "end": { - "line": 18, - "column": 10 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 448, - "end": 449, - "loc": { - "start": { - "line": 18, - "column": 11 - }, - "end": { - "line": 18, - "column": 12 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create signing link payload\n * @typedef {Object} SigningLinkCreateParams\n * @property {string} document_id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 453, - "end": 652, - "loc": { - "start": { - "line": 20, - "column": 2 - }, - "end": { - "line": 25, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create signing link response data\n * @typedef {Object} SigningLinkCreateResponse\n * @property {string} url - invite url with user authorization\n * @property {string} url_no_signup - invite url without user authorization\n ", - "start": 656, - "end": 896, - "loc": { - "start": { - "line": 27, - "column": 2 - }, - "end": { - "line": 32, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates signing link for specified document\n * @param {SigningLinkCreateParams} data - create signing link payload\n * @param {function(err: ApiErrorResponse, res: SigningLinkCreateResponse)} [callback] - error first node.js callback\n ", - "start": 900, - "end": 1151, - "loc": { - "start": { - "line": 34, - "column": 2 - }, - "end": { - "line": 38, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 1154, - "end": 1160, - "loc": { - "start": { - "line": 39, - "column": 2 - }, - "end": { - "line": 39, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "create", - "start": 1161, - "end": 1167, - "loc": { - "start": { - "line": 39, - "column": 9 - }, - "end": { - "line": 39, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1168, - "end": 1169, - "loc": { - "start": { - "line": 39, - "column": 16 - }, - "end": { - "line": 39, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1169, - "end": 1170, - "loc": { - "start": { - "line": 39, - "column": 17 - }, - "end": { - "line": 39, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_id", - "start": 1171, - "end": 1182, - "loc": { - "start": { - "line": 39, - "column": 19 - }, - "end": { - "line": 39, - "column": 30 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1182, - "end": 1183, - "loc": { - "start": { - "line": 39, - "column": 30 - }, - "end": { - "line": 39, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 1184, - "end": 1189, - "loc": { - "start": { - "line": 39, - "column": 32 - }, - "end": { - "line": 39, - "column": 37 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1190, - "end": 1191, - "loc": { - "start": { - "line": 39, - "column": 38 - }, - "end": { - "line": 39, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1191, - "end": 1192, - "loc": { - "start": { - "line": 39, - "column": 39 - }, - "end": { - "line": 39, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 1193, - "end": 1201, - "loc": { - "start": { - "line": 39, - "column": 41 - }, - "end": { - "line": 39, - "column": 49 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1201, - "end": 1202, - "loc": { - "start": { - "line": 39, - "column": 49 - }, - "end": { - "line": 39, - "column": 50 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1203, - "end": 1204, - "loc": { - "start": { - "line": 39, - "column": 51 - }, - "end": { - "line": 39, - "column": 52 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getDocumentDetails", - "start": 1209, - "end": 1227, - "loc": { - "start": { - "line": 40, - "column": 4 - }, - "end": { - "line": 40, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1227, - "end": 1228, - "loc": { - "start": { - "line": 40, - "column": 22 - }, - "end": { - "line": 40, - "column": 23 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1228, - "end": 1229, - "loc": { - "start": { - "line": 40, - "column": 23 - }, - "end": { - "line": 40, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 1236, - "end": 1238, - "loc": { - "start": { - "line": 41, - "column": 6 - }, - "end": { - "line": 41, - "column": 8 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1238, - "end": 1239, - "loc": { - "start": { - "line": 41, - "column": 8 - }, - "end": { - "line": 41, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_id", - "start": 1240, - "end": 1251, - "loc": { - "start": { - "line": 41, - "column": 10 - }, - "end": { - "line": 41, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1251, - "end": 1252, - "loc": { - "start": { - "line": 41, - "column": 21 - }, - "end": { - "line": 41, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 1259, - "end": 1264, - "loc": { - "start": { - "line": 42, - "column": 6 - }, - "end": { - "line": 42, - "column": 11 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1264, - "end": 1265, - "loc": { - "start": { - "line": 42, - "column": 11 - }, - "end": { - "line": 42, - "column": 12 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1270, - "end": 1271, - "loc": { - "start": { - "line": 43, - "column": 4 - }, - "end": { - "line": 43, - "column": 5 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1271, - "end": 1272, - "loc": { - "start": { - "line": 43, - "column": 5 - }, - "end": { - "line": 43, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1273, - "end": 1274, - "loc": { - "start": { - "line": 43, - "column": 7 - }, - "end": { - "line": 43, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "detailErr", - "start": 1274, - "end": 1283, - "loc": { - "start": { - "line": 43, - "column": 8 - }, - "end": { - "line": 43, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1283, - "end": 1284, - "loc": { - "start": { - "line": 43, - "column": 17 - }, - "end": { - "line": 43, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "detailRes", - "start": 1285, - "end": 1294, - "loc": { - "start": { - "line": 43, - "column": 19 - }, - "end": { - "line": 43, - "column": 28 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1294, - "end": 1295, - "loc": { - "start": { - "line": 43, - "column": 28 - }, - "end": { - "line": 43, - "column": 29 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1296, - "end": 1298, - "loc": { - "start": { - "line": 43, - "column": 30 - }, - "end": { - "line": 43, - "column": 32 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1299, - "end": 1300, - "loc": { - "start": { - "line": 43, - "column": 33 - }, - "end": { - "line": 43, - "column": 34 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 1307, - "end": 1309, - "loc": { - "start": { - "line": 44, - "column": 6 - }, - "end": { - "line": 44, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1310, - "end": 1311, - "loc": { - "start": { - "line": 44, - "column": 9 - }, - "end": { - "line": 44, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "detailErr", - "start": 1311, - "end": 1320, - "loc": { - "start": { - "line": 44, - "column": 10 - }, - "end": { - "line": 44, - "column": 19 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1320, - "end": 1321, - "loc": { - "start": { - "line": 44, - "column": 19 - }, - "end": { - "line": 44, - "column": 20 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1322, - "end": 1323, - "loc": { - "start": { - "line": 44, - "column": 21 - }, - "end": { - "line": 44, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 1332, - "end": 1340, - "loc": { - "start": { - "line": 45, - "column": 8 - }, - "end": { - "line": 45, - "column": 16 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1340, - "end": 1341, - "loc": { - "start": { - "line": 45, - "column": 16 - }, - "end": { - "line": 45, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "detailErr", - "start": 1341, - "end": 1350, - "loc": { - "start": { - "line": 45, - "column": 17 - }, - "end": { - "line": 45, - "column": 26 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1350, - "end": 1351, - "loc": { - "start": { - "line": 45, - "column": 26 - }, - "end": { - "line": 45, - "column": 27 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1351, - "end": 1352, - "loc": { - "start": { - "line": 45, - "column": 27 - }, - "end": { - "line": 45, - "column": 28 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 1361, - "end": 1367, - "loc": { - "start": { - "line": 46, - "column": 8 - }, - "end": { - "line": 46, - "column": 14 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1367, - "end": 1368, - "loc": { - "start": { - "line": 46, - "column": 14 - }, - "end": { - "line": 46, - "column": 15 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1375, - "end": 1376, - "loc": { - "start": { - "line": 47, - "column": 6 - }, - "end": { - "line": 47, - "column": 7 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 1377, - "end": 1381, - "loc": { - "start": { - "line": 47, - "column": 8 - }, - "end": { - "line": 47, - "column": 12 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1382, - "end": 1383, - "loc": { - "start": { - "line": 47, - "column": 13 - }, - "end": { - "line": 47, - "column": 14 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1392, - "end": 1397, - "loc": { - "start": { - "line": 48, - "column": 8 - }, - "end": { - "line": 48, - "column": 13 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1398, - "end": 1399, - "loc": { - "start": { - "line": 48, - "column": 14 - }, - "end": { - "line": 48, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "routing_details", - "start": 1400, - "end": 1415, - "loc": { - "start": { - "line": 48, - "column": 16 - }, - "end": { - "line": 48, - "column": 31 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1416, - "end": 1417, - "loc": { - "start": { - "line": 48, - "column": 32 - }, - "end": { - "line": 48, - "column": 33 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1418, - "end": 1419, - "loc": { - "start": { - "line": 48, - "column": 34 - }, - "end": { - "line": 48, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "detailRes", - "start": 1420, - "end": 1429, - "loc": { - "start": { - "line": 48, - "column": 36 - }, - "end": { - "line": 48, - "column": 45 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1429, - "end": 1430, - "loc": { - "start": { - "line": 48, - "column": 45 - }, - "end": { - "line": 48, - "column": 46 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1439, - "end": 1444, - "loc": { - "start": { - "line": 49, - "column": 8 - }, - "end": { - "line": 49, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documentHasAtLeastOneUnfixedRole", - "start": 1445, - "end": 1477, - "loc": { - "start": { - "line": 49, - "column": 14 - }, - "end": { - "line": 49, - "column": 46 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1478, - "end": 1479, - "loc": { - "start": { - "line": 49, - "column": 47 - }, - "end": { - "line": 49, - "column": 48 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "routing_details", - "start": 1480, - "end": 1495, - "loc": { - "start": { - "line": 49, - "column": 49 - }, - "end": { - "line": 49, - "column": 64 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1506, - "end": 1507, - "loc": { - "start": { - "line": 50, - "column": 10 - }, - "end": { - "line": 50, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "map", - "start": 1507, - "end": 1510, - "loc": { - "start": { - "line": 50, - "column": 11 - }, - "end": { - "line": 50, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1510, - "end": 1511, - "loc": { - "start": { - "line": 50, - "column": 14 - }, - "end": { - "line": 50, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "routing", - "start": 1511, - "end": 1518, - "loc": { - "start": { - "line": 50, - "column": 15 - }, - "end": { - "line": 50, - "column": 22 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1519, - "end": 1521, - "loc": { - "start": { - "line": 50, - "column": 23 - }, - "end": { - "line": 50, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "routing", - "start": 1522, - "end": 1529, - "loc": { - "start": { - "line": 50, - "column": 26 - }, - "end": { - "line": 50, - "column": 33 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1529, - "end": 1530, - "loc": { - "start": { - "line": 50, - "column": 33 - }, - "end": { - "line": 50, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 1530, - "end": 1534, - "loc": { - "start": { - "line": 50, - "column": 34 - }, - "end": { - "line": 50, - "column": 38 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1534, - "end": 1535, - "loc": { - "start": { - "line": 50, - "column": 38 - }, - "end": { - "line": 50, - "column": 39 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1546, - "end": 1547, - "loc": { - "start": { - "line": 51, - "column": 10 - }, - "end": { - "line": 51, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "reduce", - "start": 1547, - "end": 1553, - "loc": { - "start": { - "line": 51, - "column": 11 - }, - "end": { - "line": 51, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1553, - "end": 1554, - "loc": { - "start": { - "line": 51, - "column": 17 - }, - "end": { - "line": 51, - "column": 18 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1554, - "end": 1555, - "loc": { - "start": { - "line": 51, - "column": 18 - }, - "end": { - "line": 51, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "acc", - "start": 1555, - "end": 1558, - "loc": { - "start": { - "line": 51, - "column": 19 - }, - "end": { - "line": 51, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1558, - "end": 1559, - "loc": { - "start": { - "line": 51, - "column": 22 - }, - "end": { - "line": 51, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 1560, - "end": 1561, - "loc": { - "start": { - "line": 51, - "column": 24 - }, - "end": { - "line": 51, - "column": 25 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1561, - "end": 1562, - "loc": { - "start": { - "line": 51, - "column": 25 - }, - "end": { - "line": 51, - "column": 26 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1563, - "end": 1565, - "loc": { - "start": { - "line": 51, - "column": 27 - }, - "end": { - "line": 51, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "acc", - "start": 1566, - "end": 1569, - "loc": { - "start": { - "line": 51, - "column": 30 - }, - "end": { - "line": 51, - "column": 33 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1569, - "end": 1570, - "loc": { - "start": { - "line": 51, - "column": 33 - }, - "end": { - "line": 51, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "concat", - "start": 1570, - "end": 1576, - "loc": { - "start": { - "line": 51, - "column": 34 - }, - "end": { - "line": 51, - "column": 40 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1576, - "end": 1577, - "loc": { - "start": { - "line": 51, - "column": 40 - }, - "end": { - "line": 51, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 1577, - "end": 1578, - "loc": { - "start": { - "line": 51, - "column": 41 - }, - "end": { - "line": 51, - "column": 42 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1578, - "end": 1579, - "loc": { - "start": { - "line": 51, - "column": 42 - }, - "end": { - "line": 51, - "column": 43 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1579, - "end": 1580, - "loc": { - "start": { - "line": 51, - "column": 43 - }, - "end": { - "line": 51, - "column": 44 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1581, - "end": 1582, - "loc": { - "start": { - "line": 51, - "column": 45 - }, - "end": { - "line": 51, - "column": 46 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1582, - "end": 1583, - "loc": { - "start": { - "line": 51, - "column": 46 - }, - "end": { - "line": 51, - "column": 47 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1583, - "end": 1584, - "loc": { - "start": { - "line": 51, - "column": 47 - }, - "end": { - "line": 51, - "column": 48 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1595, - "end": 1596, - "loc": { - "start": { - "line": 52, - "column": 10 - }, - "end": { - "line": 52, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "some", - "start": 1596, - "end": 1600, - "loc": { - "start": { - "line": 52, - "column": 11 - }, - "end": { - "line": 52, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1600, - "end": 1601, - "loc": { - "start": { - "line": 52, - "column": 15 - }, - "end": { - "line": 52, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "role", - "start": 1601, - "end": 1605, - "loc": { - "start": { - "line": 52, - "column": 16 - }, - "end": { - "line": 52, - "column": 20 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1606, - "end": 1608, - "loc": { - "start": { - "line": 52, - "column": 21 - }, - "end": { - "line": 52, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "role", - "start": 1609, - "end": 1613, - "loc": { - "start": { - "line": 52, - "column": 24 - }, - "end": { - "line": 52, - "column": 28 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1613, - "end": 1614, - "loc": { - "start": { - "line": 52, - "column": 28 - }, - "end": { - "line": 52, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "default_email", - "start": 1614, - "end": 1627, - "loc": { - "start": { - "line": 52, - "column": 29 - }, - "end": { - "line": 52, - "column": 42 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 1628, - "end": 1631, - "loc": { - "start": { - "line": 52, - "column": 43 - }, - "end": { - "line": 52, - "column": 46 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 1632, - "end": 1634, - "loc": { - "start": { - "line": 52, - "column": 47 - }, - "end": { - "line": 52, - "column": 49 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1634, - "end": 1635, - "loc": { - "start": { - "line": 52, - "column": 49 - }, - "end": { - "line": 52, - "column": 50 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1635, - "end": 1636, - "loc": { - "start": { - "line": 52, - "column": 50 - }, - "end": { - "line": 52, - "column": 51 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 1646, - "end": 1648, - "loc": { - "start": { - "line": 54, - "column": 8 - }, - "end": { - "line": 54, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1649, - "end": 1650, - "loc": { - "start": { - "line": 54, - "column": 11 - }, - "end": { - "line": 54, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documentHasAtLeastOneUnfixedRole", - "start": 1650, - "end": 1682, - "loc": { - "start": { - "line": 54, - "column": 12 - }, - "end": { - "line": 54, - "column": 44 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1682, - "end": 1683, - "loc": { - "start": { - "line": 54, - "column": 44 - }, - "end": { - "line": 54, - "column": 45 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1684, - "end": 1685, - "loc": { - "start": { - "line": 54, - "column": 46 - }, - "end": { - "line": 54, - "column": 47 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1696, - "end": 1701, - "loc": { - "start": { - "line": 55, - "column": 10 - }, - "end": { - "line": 55, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 1702, - "end": 1710, - "loc": { - "start": { - "line": 55, - "column": 16 - }, - "end": { - "line": 55, - "column": 24 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1711, - "end": 1712, - "loc": { - "start": { - "line": 55, - "column": 25 - }, - "end": { - "line": 55, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSON", - "start": 1713, - "end": 1717, - "loc": { - "start": { - "line": 55, - "column": 27 - }, - "end": { - "line": 55, - "column": 31 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1717, - "end": 1718, - "loc": { - "start": { - "line": 55, - "column": 31 - }, - "end": { - "line": 55, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "stringify", - "start": 1718, - "end": 1727, - "loc": { - "start": { - "line": 55, - "column": 32 - }, - "end": { - "line": 55, - "column": 41 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1727, - "end": 1728, - "loc": { - "start": { - "line": 55, - "column": 41 - }, - "end": { - "line": 55, - "column": 42 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1728, - "end": 1729, - "loc": { - "start": { - "line": 55, - "column": 42 - }, - "end": { - "line": 55, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_id", - "start": 1730, - "end": 1741, - "loc": { - "start": { - "line": 55, - "column": 44 - }, - "end": { - "line": 55, - "column": 55 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1742, - "end": 1743, - "loc": { - "start": { - "line": 55, - "column": 56 - }, - "end": { - "line": 55, - "column": 57 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1743, - "end": 1744, - "loc": { - "start": { - "line": 55, - "column": 57 - }, - "end": { - "line": 55, - "column": 58 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1744, - "end": 1745, - "loc": { - "start": { - "line": 55, - "column": 58 - }, - "end": { - "line": 55, - "column": 59 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1756, - "end": 1761, - "loc": { - "start": { - "line": 56, - "column": 10 - }, - "end": { - "line": 56, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 1762, - "end": 1765, - "loc": { - "start": { - "line": 56, - "column": 16 - }, - "end": { - "line": 56, - "column": 19 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1766, - "end": 1767, - "loc": { - "start": { - "line": 56, - "column": 20 - }, - "end": { - "line": 56, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 1768, - "end": 1773, - "loc": { - "start": { - "line": 56, - "column": 22 - }, - "end": { - "line": 56, - "column": 27 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1786, - "end": 1787, - "loc": { - "start": { - "line": 57, - "column": 12 - }, - "end": { - "line": 57, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 1787, - "end": 1794, - "loc": { - "start": { - "line": 57, - "column": 13 - }, - "end": { - "line": 57, - "column": 20 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1794, - "end": 1795, - "loc": { - "start": { - "line": 57, - "column": 20 - }, - "end": { - "line": 57, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 1795, - "end": 1814, - "loc": { - "start": { - "line": 57, - "column": 21 - }, - "end": { - "line": 57, - "column": 40 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1814, - "end": 1815, - "loc": { - "start": { - "line": 57, - "column": 40 - }, - "end": { - "line": 57, - "column": 41 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1815, - "end": 1816, - "loc": { - "start": { - "line": 57, - "column": 41 - }, - "end": { - "line": 57, - "column": 42 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 1831, - "end": 1837, - "loc": { - "start": { - "line": 58, - "column": 14 - }, - "end": { - "line": 58, - "column": 20 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1837, - "end": 1838, - "loc": { - "start": { - "line": 58, - "column": 20 - }, - "end": { - "line": 58, - "column": 21 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "POST", - "start": 1839, - "end": 1845, - "loc": { - "start": { - "line": 58, - "column": 22 - }, - "end": { - "line": 58, - "column": 28 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1845, - "end": 1846, - "loc": { - "start": { - "line": 58, - "column": 28 - }, - "end": { - "line": 58, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 1861, - "end": 1865, - "loc": { - "start": { - "line": 59, - "column": 14 - }, - "end": { - "line": 59, - "column": 18 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1865, - "end": 1866, - "loc": { - "start": { - "line": 59, - "column": 18 - }, - "end": { - "line": 59, - "column": 19 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/link", - "start": 1867, - "end": 1874, - "loc": { - "start": { - "line": 59, - "column": 20 - }, - "end": { - "line": 59, - "column": 27 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1874, - "end": 1875, - "loc": { - "start": { - "line": 59, - "column": 27 - }, - "end": { - "line": 59, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 1890, - "end": 1903, - "loc": { - "start": { - "line": 60, - "column": 14 - }, - "end": { - "line": 60, - "column": 27 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1903, - "end": 1904, - "loc": { - "start": { - "line": 60, - "column": 27 - }, - "end": { - "line": 60, - "column": 28 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1905, - "end": 1906, - "loc": { - "start": { - "line": 60, - "column": 29 - }, - "end": { - "line": 60, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 1923, - "end": 1927, - "loc": { - "start": { - "line": 61, - "column": 16 - }, - "end": { - "line": 61, - "column": 20 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1927, - "end": 1928, - "loc": { - "start": { - "line": 61, - "column": 20 - }, - "end": { - "line": 61, - "column": 21 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 1929, - "end": 1937, - "loc": { - "start": { - "line": 61, - "column": 22 - }, - "end": { - "line": 61, - "column": 30 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1937, - "end": 1938, - "loc": { - "start": { - "line": 61, - "column": 30 - }, - "end": { - "line": 61, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 1955, - "end": 1960, - "loc": { - "start": { - "line": 62, - "column": 16 - }, - "end": { - "line": 62, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1960, - "end": 1961, - "loc": { - "start": { - "line": 62, - "column": 21 - }, - "end": { - "line": 62, - "column": 22 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1976, - "end": 1977, - "loc": { - "start": { - "line": 63, - "column": 14 - }, - "end": { - "line": 63, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1977, - "end": 1978, - "loc": { - "start": { - "line": 63, - "column": 15 - }, - "end": { - "line": 63, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 1993, - "end": 2000, - "loc": { - "start": { - "line": 64, - "column": 14 - }, - "end": { - "line": 64, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2000, - "end": 2001, - "loc": { - "start": { - "line": 64, - "column": 21 - }, - "end": { - "line": 64, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2002, - "end": 2003, - "loc": { - "start": { - "line": 64, - "column": 23 - }, - "end": { - "line": 64, - "column": 24 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type", - "start": 2020, - "end": 2034, - "loc": { - "start": { - "line": 65, - "column": 16 - }, - "end": { - "line": 65, - "column": 30 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2034, - "end": 2035, - "loc": { - "start": { - "line": 65, - "column": 30 - }, - "end": { - "line": 65, - "column": 31 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/json", - "start": 2036, - "end": 2054, - "loc": { - "start": { - "line": 65, - "column": 32 - }, - "end": { - "line": 65, - "column": 50 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2054, - "end": 2055, - "loc": { - "start": { - "line": 65, - "column": 50 - }, - "end": { - "line": 65, - "column": 51 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Length", - "start": 2072, - "end": 2088, - "loc": { - "start": { - "line": 66, - "column": 16 - }, - "end": { - "line": 66, - "column": 32 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2088, - "end": 2089, - "loc": { - "start": { - "line": 66, - "column": 32 - }, - "end": { - "line": 66, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 2090, - "end": 2096, - "loc": { - "start": { - "line": 66, - "column": 34 - }, - "end": { - "line": 66, - "column": 40 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2096, - "end": 2097, - "loc": { - "start": { - "line": 66, - "column": 40 - }, - "end": { - "line": 66, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "byteLength", - "start": 2097, - "end": 2107, - "loc": { - "start": { - "line": 66, - "column": 41 - }, - "end": { - "line": 66, - "column": 51 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2107, - "end": 2108, - "loc": { - "start": { - "line": 66, - "column": 51 - }, - "end": { - "line": 66, - "column": 52 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 2108, - "end": 2116, - "loc": { - "start": { - "line": 66, - "column": 52 - }, - "end": { - "line": 66, - "column": 60 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2116, - "end": 2117, - "loc": { - "start": { - "line": 66, - "column": 60 - }, - "end": { - "line": 66, - "column": 61 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2117, - "end": 2118, - "loc": { - "start": { - "line": 66, - "column": 61 - }, - "end": { - "line": 66, - "column": 62 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2133, - "end": 2134, - "loc": { - "start": { - "line": 67, - "column": 14 - }, - "end": { - "line": 67, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2134, - "end": 2135, - "loc": { - "start": { - "line": 67, - "column": 15 - }, - "end": { - "line": 67, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2148, - "end": 2149, - "loc": { - "start": { - "line": 68, - "column": 12 - }, - "end": { - "line": 68, - "column": 13 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2149, - "end": 2150, - "loc": { - "start": { - "line": 68, - "column": 13 - }, - "end": { - "line": 68, - "column": 14 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2150, - "end": 2151, - "loc": { - "start": { - "line": 68, - "column": 14 - }, - "end": { - "line": 68, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 2152, - "end": 2167, - "loc": { - "start": { - "line": 68, - "column": 16 - }, - "end": { - "line": 68, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2167, - "end": 2168, - "loc": { - "start": { - "line": 68, - "column": 31 - }, - "end": { - "line": 68, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 2168, - "end": 2176, - "loc": { - "start": { - "line": 68, - "column": 32 - }, - "end": { - "line": 68, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2176, - "end": 2177, - "loc": { - "start": { - "line": 68, - "column": 40 - }, - "end": { - "line": 68, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2177, - "end": 2178, - "loc": { - "start": { - "line": 68, - "column": 41 - }, - "end": { - "line": 68, - "column": 42 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2191, - "end": 2192, - "loc": { - "start": { - "line": 69, - "column": 12 - }, - "end": { - "line": 69, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 2192, - "end": 2194, - "loc": { - "start": { - "line": 69, - "column": 13 - }, - "end": { - "line": 69, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2194, - "end": 2195, - "loc": { - "start": { - "line": 69, - "column": 15 - }, - "end": { - "line": 69, - "column": 16 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 2195, - "end": 2202, - "loc": { - "start": { - "line": 69, - "column": 16 - }, - "end": { - "line": 69, - "column": 23 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2202, - "end": 2203, - "loc": { - "start": { - "line": 69, - "column": 23 - }, - "end": { - "line": 69, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 2204, - "end": 2216, - "loc": { - "start": { - "line": 69, - "column": 25 - }, - "end": { - "line": 69, - "column": 37 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2216, - "end": 2217, - "loc": { - "start": { - "line": 69, - "column": 37 - }, - "end": { - "line": 69, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 2217, - "end": 2225, - "loc": { - "start": { - "line": 69, - "column": 38 - }, - "end": { - "line": 69, - "column": 46 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2225, - "end": 2226, - "loc": { - "start": { - "line": 69, - "column": 46 - }, - "end": { - "line": 69, - "column": 47 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2226, - "end": 2227, - "loc": { - "start": { - "line": 69, - "column": 47 - }, - "end": { - "line": 69, - "column": 48 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2227, - "end": 2228, - "loc": { - "start": { - "line": 69, - "column": 48 - }, - "end": { - "line": 69, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 2240, - "end": 2243, - "loc": { - "start": { - "line": 71, - "column": 10 - }, - "end": { - "line": 71, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2243, - "end": 2244, - "loc": { - "start": { - "line": 71, - "column": 13 - }, - "end": { - "line": 71, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "write", - "start": 2244, - "end": 2249, - "loc": { - "start": { - "line": 71, - "column": 14 - }, - "end": { - "line": 71, - "column": 19 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2249, - "end": 2250, - "loc": { - "start": { - "line": 71, - "column": 19 - }, - "end": { - "line": 71, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 2250, - "end": 2258, - "loc": { - "start": { - "line": 71, - "column": 20 - }, - "end": { - "line": 71, - "column": 28 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2258, - "end": 2259, - "loc": { - "start": { - "line": 71, - "column": 28 - }, - "end": { - "line": 71, - "column": 29 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2259, - "end": 2260, - "loc": { - "start": { - "line": 71, - "column": 29 - }, - "end": { - "line": 71, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 2271, - "end": 2274, - "loc": { - "start": { - "line": 72, - "column": 10 - }, - "end": { - "line": 72, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2274, - "end": 2275, - "loc": { - "start": { - "line": 72, - "column": 13 - }, - "end": { - "line": 72, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 2275, - "end": 2278, - "loc": { - "start": { - "line": 72, - "column": 14 - }, - "end": { - "line": 72, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2278, - "end": 2279, - "loc": { - "start": { - "line": 72, - "column": 17 - }, - "end": { - "line": 72, - "column": 18 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2279, - "end": 2280, - "loc": { - "start": { - "line": 72, - "column": 18 - }, - "end": { - "line": 72, - "column": 19 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2280, - "end": 2281, - "loc": { - "start": { - "line": 72, - "column": 19 - }, - "end": { - "line": 72, - "column": 20 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2290, - "end": 2291, - "loc": { - "start": { - "line": 73, - "column": 8 - }, - "end": { - "line": 73, - "column": 9 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 2292, - "end": 2296, - "loc": { - "start": { - "line": 73, - "column": 10 - }, - "end": { - "line": 73, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2297, - "end": 2298, - "loc": { - "start": { - "line": 73, - "column": 15 - }, - "end": { - "line": 73, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 2309, - "end": 2317, - "loc": { - "start": { - "line": 74, - "column": 10 - }, - "end": { - "line": 74, - "column": 18 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2317, - "end": 2318, - "loc": { - "start": { - "line": 74, - "column": 18 - }, - "end": { - "line": 74, - "column": 19 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "A document must have at least one role that does not have a fixed e-mail to create an invite link.", - "start": 2318, - "end": 2418, - "loc": { - "start": { - "line": 74, - "column": 19 - }, - "end": { - "line": 74, - "column": 119 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2418, - "end": 2419, - "loc": { - "start": { - "line": 74, - "column": 119 - }, - "end": { - "line": 74, - "column": 120 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2419, - "end": 2420, - "loc": { - "start": { - "line": 74, - "column": 120 - }, - "end": { - "line": 74, - "column": 121 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 2431, - "end": 2437, - "loc": { - "start": { - "line": 75, - "column": 10 - }, - "end": { - "line": 75, - "column": 16 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2437, - "end": 2438, - "loc": { - "start": { - "line": 75, - "column": 16 - }, - "end": { - "line": 75, - "column": 17 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2447, - "end": 2448, - "loc": { - "start": { - "line": 76, - "column": 8 - }, - "end": { - "line": 76, - "column": 9 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2455, - "end": 2456, - "loc": { - "start": { - "line": 77, - "column": 6 - }, - "end": { - "line": 77, - "column": 7 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2461, - "end": 2462, - "loc": { - "start": { - "line": 78, - "column": 4 - }, - "end": { - "line": 78, - "column": 5 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2462, - "end": 2463, - "loc": { - "start": { - "line": 78, - "column": 5 - }, - "end": { - "line": 78, - "column": 6 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2463, - "end": 2464, - "loc": { - "start": { - "line": 78, - "column": 6 - }, - "end": { - "line": 78, - "column": 7 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2467, - "end": 2468, - "loc": { - "start": { - "line": 79, - "column": 2 - }, - "end": { - "line": 79, - "column": 3 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2469, - "end": 2470, - "loc": { - "start": { - "line": 80, - "column": 0 - }, - "end": { - "line": 80, - "column": 1 - } - } - }, - { - "type": { - "label": "export", - "keyword": "export", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "export", - "start": 2472, - "end": 2478, - "loc": { - "start": { - "line": 82, - "column": 0 - }, - "end": { - "line": 82, - "column": 6 - } - } - }, - { - "type": { - "label": "default", - "keyword": "default", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "default", - "start": 2479, - "end": 2486, - "loc": { - "start": { - "line": 82, - "column": 7 - }, - "end": { - "line": 82, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Link", - "start": 2487, - "end": 2491, - "loc": { - "start": { - "line": 82, - "column": 15 - }, - "end": { - "line": 82, - "column": 19 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2491, - "end": 2492, - "loc": { - "start": { - "line": 82, - "column": 19 - }, - "end": { - "line": 82, - "column": 20 - } - } - }, - { - "type": { - "label": "eof", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2493, - "end": 2493, - "loc": { - "start": { - "line": 83, - "column": 0 - }, - "end": { - "line": 83, - "column": 0 - } - } - } - ] -} \ No newline at end of file diff --git a/docs/ast/source/link/index.js.json b/docs/ast/source/link/index.js.json deleted file mode 100644 index 1783eb78..00000000 --- a/docs/ast/source/link/index.js.json +++ /dev/null @@ -1,12741 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 2499, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 85, - "column": 0 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 2499, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 85, - "column": 0 - } - }, - "sourceType": "module", - "body": [ - { - "type": "ImportDeclaration", - "start": 14, - "end": 40, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 26 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - } - }, - "local": { - "type": "Identifier", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - }, - "identifierName": "https" - }, - "name": "https" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 18 - }, - "end": { - "line": 2, - "column": 25 - } - }, - "extra": { - "rawValue": "https", - "raw": "'https'" - }, - "value": "https" - } - }, - { - "type": "ImportDeclaration", - "start": 41, - "end": 127, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 7, - "column": 19 - } - }, - "specifiers": [ - { - "type": "ImportSpecifier", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - } - }, - "imported": { - "type": "Identifier", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "local": { - "type": "Identifier", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - } - }, - { - "type": "ImportSpecifier", - "start": 71, - "end": 83, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 14 - } - }, - "imported": { - "type": "Identifier", - "start": 71, - "end": 83, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 14 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "local": { - "type": "Identifier", - "start": 71, - "end": 83, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 14 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - } - }, - { - "type": "ImportSpecifier", - "start": 87, - "end": 106, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 21 - } - }, - "imported": { - "type": "Identifier", - "start": 87, - "end": 106, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 21 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "local": { - "type": "Identifier", - "start": 87, - "end": 106, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 21 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 115, - "end": 126, - "loc": { - "start": { - "line": 7, - "column": 7 - }, - "end": { - "line": 7, - "column": 18 - } - }, - "extra": { - "rawValue": "../common", - "raw": "'../common'" - }, - "value": "../common" - } - }, - { - "type": "ImportDeclaration", - "start": 128, - "end": 163, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 8, - "column": 35 - } - }, - "specifiers": [ - { - "type": "ImportSpecifier", - "start": 137, - "end": 141, - "loc": { - "start": { - "line": 8, - "column": 9 - }, - "end": { - "line": 8, - "column": 13 - } - }, - "imported": { - "type": "Identifier", - "start": 137, - "end": 141, - "loc": { - "start": { - "line": 8, - "column": 9 - }, - "end": { - "line": 8, - "column": 13 - }, - "identifierName": "view" - }, - "name": "view" - }, - "local": { - "type": "Identifier", - "start": 137, - "end": 141, - "loc": { - "start": { - "line": 8, - "column": 9 - }, - "end": { - "line": 8, - "column": 13 - }, - "identifierName": "view" - }, - "name": "view" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 149, - "end": 162, - "loc": { - "start": { - "line": 8, - "column": 21 - }, - "end": { - "line": 8, - "column": 34 - } - }, - "extra": { - "rawValue": "../document", - "raw": "'../document'" - }, - "value": "../document" - }, - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewParams} data - view document with field extract payload\n * @param {function(err: ApiErrorResponse, res: DocumentViewResponse)} [callback] - error first node.js callback\n ", - "start": 165, - "end": 384, - "loc": { - "start": { - "line": 10, - "column": 0 - }, - "end": { - "line": 14, - "column": 3 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 385, - "end": 417, - "loc": { - "start": { - "line": 15, - "column": 0 - }, - "end": { - "line": 15, - "column": 32 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 391, - "end": 416, - "loc": { - "start": { - "line": 15, - "column": 6 - }, - "end": { - "line": 15, - "column": 31 - } - }, - "id": { - "type": "Identifier", - "start": 391, - "end": 409, - "loc": { - "start": { - "line": 15, - "column": 6 - }, - "end": { - "line": 15, - "column": 24 - }, - "identifierName": "getDocumentDetails" - }, - "name": "getDocumentDetails", - "leadingComments": null - }, - "init": { - "type": "Identifier", - "start": 412, - "end": 416, - "loc": { - "start": { - "line": 15, - "column": 27 - }, - "end": { - "line": 15, - "column": 31 - }, - "identifierName": "view" - }, - "name": "view" - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewParams} data - view document with field extract payload\n * @param {function(err: ApiErrorResponse, res: DocumentViewResponse)} [callback] - error first node.js callback\n ", - "start": 165, - "end": 384, - "loc": { - "start": { - "line": 10, - "column": 0 - }, - "end": { - "line": 14, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Link methods\n ", - "start": 419, - "end": 442, - "loc": { - "start": { - "line": 17, - "column": 0 - }, - "end": { - "line": 19, - "column": 3 - } - } - } - ] - }, - { - "type": "Identifier", - "start": 443, - "end": 2476, - "loc": { - "start": { - "line": 20, - "column": 0 - }, - "end": { - "line": 82, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 449, - "end": 453, - "loc": { - "start": { - "line": 20, - "column": 6 - }, - "end": { - "line": 20, - "column": 10 - }, - "identifierName": "Link" - }, - "name": "Link", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 454, - "end": 2476, - "loc": { - "start": { - "line": 20, - "column": 11 - }, - "end": { - "line": 82, - "column": 1 - } - }, - "body": [ - { - "type": "ClassMethod", - "start": 1160, - "end": 2474, - "loc": { - "start": { - "line": 41, - "column": 2 - }, - "end": { - "line": 81, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1167, - "end": 1173, - "loc": { - "start": { - "line": 41, - "column": 9 - }, - "end": { - "line": 41, - "column": 15 - }, - "identifierName": "create" - }, - "name": "create" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 1175, - "end": 1197, - "loc": { - "start": { - "line": 41, - "column": 17 - }, - "end": { - "line": 41, - "column": 39 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1177, - "end": 1188, - "loc": { - "start": { - "line": 41, - "column": 19 - }, - "end": { - "line": 41, - "column": 30 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1177, - "end": 1188, - "loc": { - "start": { - "line": 41, - "column": 19 - }, - "end": { - "line": 41, - "column": 30 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "value": { - "type": "Identifier", - "start": 1177, - "end": 1188, - "loc": { - "start": { - "line": 41, - "column": 19 - }, - "end": { - "line": 41, - "column": 30 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1190, - "end": 1195, - "loc": { - "start": { - "line": 41, - "column": 32 - }, - "end": { - "line": 41, - "column": 37 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1190, - "end": 1195, - "loc": { - "start": { - "line": 41, - "column": 32 - }, - "end": { - "line": 41, - "column": 37 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 1190, - "end": 1195, - "loc": { - "start": { - "line": 41, - "column": 32 - }, - "end": { - "line": 41, - "column": 37 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 1199, - "end": 1207, - "loc": { - "start": { - "line": 41, - "column": 41 - }, - "end": { - "line": 41, - "column": 49 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 1209, - "end": 2474, - "loc": { - "start": { - "line": 41, - "column": 51 - }, - "end": { - "line": 81, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1215, - "end": 2470, - "loc": { - "start": { - "line": 42, - "column": 4 - }, - "end": { - "line": 80, - "column": 7 - } - }, - "expression": { - "type": "CallExpression", - "start": 1215, - "end": 2469, - "loc": { - "start": { - "line": 42, - "column": 4 - }, - "end": { - "line": 80, - "column": 6 - } - }, - "callee": { - "type": "Identifier", - "start": 1215, - "end": 1233, - "loc": { - "start": { - "line": 42, - "column": 4 - }, - "end": { - "line": 42, - "column": 22 - }, - "identifierName": "getDocumentDetails" - }, - "name": "getDocumentDetails" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 1234, - "end": 1277, - "loc": { - "start": { - "line": 42, - "column": 23 - }, - "end": { - "line": 45, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1242, - "end": 1257, - "loc": { - "start": { - "line": 43, - "column": 6 - }, - "end": { - "line": 43, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1242, - "end": 1244, - "loc": { - "start": { - "line": 43, - "column": 6 - }, - "end": { - "line": 43, - "column": 8 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 1246, - "end": 1257, - "loc": { - "start": { - "line": 43, - "column": 10 - }, - "end": { - "line": 43, - "column": 21 - }, - "identifierName": "document_id" - }, - "name": "document_id" - } - }, - { - "type": "ObjectProperty", - "start": 1265, - "end": 1270, - "loc": { - "start": { - "line": 44, - "column": 6 - }, - "end": { - "line": 44, - "column": 11 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1265, - "end": 1270, - "loc": { - "start": { - "line": 44, - "column": 6 - }, - "end": { - "line": 44, - "column": 11 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 1265, - "end": 1270, - "loc": { - "start": { - "line": 44, - "column": 6 - }, - "end": { - "line": 44, - "column": 11 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "ArrowFunctionExpression", - "start": 1279, - "end": 2468, - "loc": { - "start": { - "line": 45, - "column": 7 - }, - "end": { - "line": 80, - "column": 5 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1280, - "end": 1289, - "loc": { - "start": { - "line": 45, - "column": 8 - }, - "end": { - "line": 45, - "column": 17 - }, - "identifierName": "detailErr" - }, - "name": "detailErr" - }, - { - "type": "Identifier", - "start": 1291, - "end": 1300, - "loc": { - "start": { - "line": 45, - "column": 19 - }, - "end": { - "line": 45, - "column": 28 - }, - "identifierName": "detailRes" - }, - "name": "detailRes" - } - ], - "body": { - "type": "BlockStatement", - "start": 1305, - "end": 2468, - "loc": { - "start": { - "line": 45, - "column": 33 - }, - "end": { - "line": 80, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 1313, - "end": 2462, - "loc": { - "start": { - "line": 46, - "column": 6 - }, - "end": { - "line": 79, - "column": 7 - } - }, - "test": { - "type": "Identifier", - "start": 1317, - "end": 1326, - "loc": { - "start": { - "line": 46, - "column": 10 - }, - "end": { - "line": 46, - "column": 19 - }, - "identifierName": "detailErr" - }, - "name": "detailErr" - }, - "consequent": { - "type": "BlockStatement", - "start": 1328, - "end": 1382, - "loc": { - "start": { - "line": 46, - "column": 21 - }, - "end": { - "line": 49, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1338, - "end": 1358, - "loc": { - "start": { - "line": 47, - "column": 8 - }, - "end": { - "line": 47, - "column": 28 - } - }, - "expression": { - "type": "CallExpression", - "start": 1338, - "end": 1357, - "loc": { - "start": { - "line": 47, - "column": 8 - }, - "end": { - "line": 47, - "column": 27 - } - }, - "callee": { - "type": "Identifier", - "start": 1338, - "end": 1346, - "loc": { - "start": { - "line": 47, - "column": 8 - }, - "end": { - "line": 47, - "column": 16 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1347, - "end": 1356, - "loc": { - "start": { - "line": 47, - "column": 17 - }, - "end": { - "line": 47, - "column": 26 - }, - "identifierName": "detailErr" - }, - "name": "detailErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 1367, - "end": 1374, - "loc": { - "start": { - "line": 48, - "column": 8 - }, - "end": { - "line": 48, - "column": 15 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 1388, - "end": 2462, - "loc": { - "start": { - "line": 49, - "column": 13 - }, - "end": { - "line": 79, - "column": 7 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 1398, - "end": 1436, - "loc": { - "start": { - "line": 50, - "column": 8 - }, - "end": { - "line": 50, - "column": 46 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1404, - "end": 1435, - "loc": { - "start": { - "line": 50, - "column": 14 - }, - "end": { - "line": 50, - "column": 45 - } - }, - "id": { - "type": "ObjectPattern", - "start": 1404, - "end": 1423, - "loc": { - "start": { - "line": 50, - "column": 14 - }, - "end": { - "line": 50, - "column": 33 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1406, - "end": 1421, - "loc": { - "start": { - "line": 50, - "column": 16 - }, - "end": { - "line": 50, - "column": 31 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1406, - "end": 1421, - "loc": { - "start": { - "line": 50, - "column": 16 - }, - "end": { - "line": 50, - "column": 31 - }, - "identifierName": "routing_details" - }, - "name": "routing_details" - }, - "value": { - "type": "Identifier", - "start": 1406, - "end": 1421, - "loc": { - "start": { - "line": 50, - "column": 16 - }, - "end": { - "line": 50, - "column": 31 - }, - "identifierName": "routing_details" - }, - "name": "routing_details" - }, - "extra": { - "shorthand": true - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 1426, - "end": 1435, - "loc": { - "start": { - "line": 50, - "column": 36 - }, - "end": { - "line": 50, - "column": 45 - }, - "identifierName": "detailRes" - }, - "name": "detailRes" - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 1445, - "end": 1642, - "loc": { - "start": { - "line": 51, - "column": 8 - }, - "end": { - "line": 54, - "column": 51 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1451, - "end": 1641, - "loc": { - "start": { - "line": 51, - "column": 14 - }, - "end": { - "line": 54, - "column": 50 - } - }, - "id": { - "type": "Identifier", - "start": 1451, - "end": 1483, - "loc": { - "start": { - "line": 51, - "column": 14 - }, - "end": { - "line": 51, - "column": 46 - }, - "identifierName": "documentHasAtLeastOneUnfixedRole" - }, - "name": "documentHasAtLeastOneUnfixedRole" - }, - "init": { - "type": "CallExpression", - "start": 1486, - "end": 1641, - "loc": { - "start": { - "line": 51, - "column": 49 - }, - "end": { - "line": 54, - "column": 50 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1486, - "end": 1606, - "loc": { - "start": { - "line": 51, - "column": 49 - }, - "end": { - "line": 54, - "column": 15 - } - }, - "object": { - "type": "CallExpression", - "start": 1486, - "end": 1590, - "loc": { - "start": { - "line": 51, - "column": 49 - }, - "end": { - "line": 53, - "column": 48 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1486, - "end": 1559, - "loc": { - "start": { - "line": 51, - "column": 49 - }, - "end": { - "line": 53, - "column": 17 - } - }, - "object": { - "type": "CallExpression", - "start": 1486, - "end": 1541, - "loc": { - "start": { - "line": 51, - "column": 49 - }, - "end": { - "line": 52, - "column": 39 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1486, - "end": 1516, - "loc": { - "start": { - "line": 51, - "column": 49 - }, - "end": { - "line": 52, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 1486, - "end": 1501, - "loc": { - "start": { - "line": 51, - "column": 49 - }, - "end": { - "line": 51, - "column": 64 - }, - "identifierName": "routing_details" - }, - "name": "routing_details" - }, - "property": { - "type": "Identifier", - "start": 1513, - "end": 1516, - "loc": { - "start": { - "line": 52, - "column": 11 - }, - "end": { - "line": 52, - "column": 14 - }, - "identifierName": "map" - }, - "name": "map" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 1517, - "end": 1540, - "loc": { - "start": { - "line": 52, - "column": 15 - }, - "end": { - "line": 52, - "column": 38 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1517, - "end": 1524, - "loc": { - "start": { - "line": 52, - "column": 15 - }, - "end": { - "line": 52, - "column": 22 - }, - "identifierName": "routing" - }, - "name": "routing" - } - ], - "body": { - "type": "MemberExpression", - "start": 1528, - "end": 1540, - "loc": { - "start": { - "line": 52, - "column": 26 - }, - "end": { - "line": 52, - "column": 38 - } - }, - "object": { - "type": "Identifier", - "start": 1528, - "end": 1535, - "loc": { - "start": { - "line": 52, - "column": 26 - }, - "end": { - "line": 52, - "column": 33 - }, - "identifierName": "routing" - }, - "name": "routing" - }, - "property": { - "type": "Identifier", - "start": 1536, - "end": 1540, - "loc": { - "start": { - "line": 52, - "column": 34 - }, - "end": { - "line": 52, - "column": 38 - }, - "identifierName": "data" - }, - "name": "data" - }, - "computed": false - } - } - ] - }, - "property": { - "type": "Identifier", - "start": 1553, - "end": 1559, - "loc": { - "start": { - "line": 53, - "column": 11 - }, - "end": { - "line": 53, - "column": 17 - }, - "identifierName": "reduce" - }, - "name": "reduce" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 1560, - "end": 1585, - "loc": { - "start": { - "line": 53, - "column": 18 - }, - "end": { - "line": 53, - "column": 43 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1561, - "end": 1564, - "loc": { - "start": { - "line": 53, - "column": 19 - }, - "end": { - "line": 53, - "column": 22 - }, - "identifierName": "acc" - }, - "name": "acc" - }, - { - "type": "Identifier", - "start": 1566, - "end": 1567, - "loc": { - "start": { - "line": 53, - "column": 24 - }, - "end": { - "line": 53, - "column": 25 - }, - "identifierName": "i" - }, - "name": "i" - } - ], - "body": { - "type": "CallExpression", - "start": 1572, - "end": 1585, - "loc": { - "start": { - "line": 53, - "column": 30 - }, - "end": { - "line": 53, - "column": 43 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1572, - "end": 1582, - "loc": { - "start": { - "line": 53, - "column": 30 - }, - "end": { - "line": 53, - "column": 40 - } - }, - "object": { - "type": "Identifier", - "start": 1572, - "end": 1575, - "loc": { - "start": { - "line": 53, - "column": 30 - }, - "end": { - "line": 53, - "column": 33 - }, - "identifierName": "acc" - }, - "name": "acc" - }, - "property": { - "type": "Identifier", - "start": 1576, - "end": 1582, - "loc": { - "start": { - "line": 53, - "column": 34 - }, - "end": { - "line": 53, - "column": 40 - }, - "identifierName": "concat" - }, - "name": "concat" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1583, - "end": 1584, - "loc": { - "start": { - "line": 53, - "column": 41 - }, - "end": { - "line": 53, - "column": 42 - }, - "identifierName": "i" - }, - "name": "i" - } - ] - } - }, - { - "type": "ArrayExpression", - "start": 1587, - "end": 1589, - "loc": { - "start": { - "line": 53, - "column": 45 - }, - "end": { - "line": 53, - "column": 47 - } - }, - "elements": [] - } - ] - }, - "property": { - "type": "Identifier", - "start": 1602, - "end": 1606, - "loc": { - "start": { - "line": 54, - "column": 11 - }, - "end": { - "line": 54, - "column": 15 - }, - "identifierName": "some" - }, - "name": "some" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 1607, - "end": 1640, - "loc": { - "start": { - "line": 54, - "column": 16 - }, - "end": { - "line": 54, - "column": 49 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1607, - "end": 1611, - "loc": { - "start": { - "line": 54, - "column": 16 - }, - "end": { - "line": 54, - "column": 20 - }, - "identifierName": "role" - }, - "name": "role" - } - ], - "body": { - "type": "BinaryExpression", - "start": 1615, - "end": 1640, - "loc": { - "start": { - "line": 54, - "column": 24 - }, - "end": { - "line": 54, - "column": 49 - } - }, - "left": { - "type": "MemberExpression", - "start": 1615, - "end": 1633, - "loc": { - "start": { - "line": 54, - "column": 24 - }, - "end": { - "line": 54, - "column": 42 - } - }, - "object": { - "type": "Identifier", - "start": 1615, - "end": 1619, - "loc": { - "start": { - "line": 54, - "column": 24 - }, - "end": { - "line": 54, - "column": 28 - }, - "identifierName": "role" - }, - "name": "role" - }, - "property": { - "type": "Identifier", - "start": 1620, - "end": 1633, - "loc": { - "start": { - "line": 54, - "column": 29 - }, - "end": { - "line": 54, - "column": 42 - }, - "identifierName": "default_email" - }, - "name": "default_email" - }, - "computed": false - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 1638, - "end": 1640, - "loc": { - "start": { - "line": 54, - "column": 47 - }, - "end": { - "line": 54, - "column": 49 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "IfStatement", - "start": 1652, - "end": 2454, - "loc": { - "start": { - "line": 56, - "column": 8 - }, - "end": { - "line": 78, - "column": 9 - } - }, - "test": { - "type": "Identifier", - "start": 1656, - "end": 1688, - "loc": { - "start": { - "line": 56, - "column": 12 - }, - "end": { - "line": 56, - "column": 44 - }, - "identifierName": "documentHasAtLeastOneUnfixedRole" - }, - "name": "documentHasAtLeastOneUnfixedRole" - }, - "consequent": { - "type": "BlockStatement", - "start": 1690, - "end": 2297, - "loc": { - "start": { - "line": 56, - "column": 46 - }, - "end": { - "line": 75, - "column": 9 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 1702, - "end": 1751, - "loc": { - "start": { - "line": 57, - "column": 10 - }, - "end": { - "line": 57, - "column": 59 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1708, - "end": 1750, - "loc": { - "start": { - "line": 57, - "column": 16 - }, - "end": { - "line": 57, - "column": 58 - } - }, - "id": { - "type": "Identifier", - "start": 1708, - "end": 1716, - "loc": { - "start": { - "line": 57, - "column": 16 - }, - "end": { - "line": 57, - "column": 24 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 1719, - "end": 1750, - "loc": { - "start": { - "line": 57, - "column": 27 - }, - "end": { - "line": 57, - "column": 58 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1719, - "end": 1733, - "loc": { - "start": { - "line": 57, - "column": 27 - }, - "end": { - "line": 57, - "column": 41 - } - }, - "object": { - "type": "Identifier", - "start": 1719, - "end": 1723, - "loc": { - "start": { - "line": 57, - "column": 27 - }, - "end": { - "line": 57, - "column": 31 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 1724, - "end": 1733, - "loc": { - "start": { - "line": 57, - "column": 32 - }, - "end": { - "line": 57, - "column": 41 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 1734, - "end": 1749, - "loc": { - "start": { - "line": 57, - "column": 42 - }, - "end": { - "line": 57, - "column": 57 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1736, - "end": 1747, - "loc": { - "start": { - "line": 57, - "column": 44 - }, - "end": { - "line": 57, - "column": 55 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1736, - "end": 1747, - "loc": { - "start": { - "line": 57, - "column": 44 - }, - "end": { - "line": 57, - "column": 55 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "value": { - "type": "Identifier", - "start": 1736, - "end": 1747, - "loc": { - "start": { - "line": 57, - "column": 44 - }, - "end": { - "line": 57, - "column": 55 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 1762, - "end": 2234, - "loc": { - "start": { - "line": 58, - "column": 10 - }, - "end": { - "line": 71, - "column": 49 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1768, - "end": 2233, - "loc": { - "start": { - "line": 58, - "column": 16 - }, - "end": { - "line": 71, - "column": 48 - } - }, - "id": { - "type": "Identifier", - "start": 1768, - "end": 1771, - "loc": { - "start": { - "line": 58, - "column": 16 - }, - "end": { - "line": 58, - "column": 19 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 1774, - "end": 2233, - "loc": { - "start": { - "line": 58, - "column": 22 - }, - "end": { - "line": 71, - "column": 48 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1774, - "end": 2200, - "loc": { - "start": { - "line": 58, - "column": 22 - }, - "end": { - "line": 71, - "column": 15 - } - }, - "object": { - "type": "CallExpression", - "start": 1774, - "end": 2184, - "loc": { - "start": { - "line": 58, - "column": 22 - }, - "end": { - "line": 70, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1774, - "end": 1800, - "loc": { - "start": { - "line": 58, - "column": 22 - }, - "end": { - "line": 59, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 1774, - "end": 1779, - "loc": { - "start": { - "line": 58, - "column": 22 - }, - "end": { - "line": 58, - "column": 27 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 1793, - "end": 1800, - "loc": { - "start": { - "line": 59, - "column": 13 - }, - "end": { - "line": 59, - "column": 20 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 1801, - "end": 2156, - "loc": { - "start": { - "line": 59, - "column": 21 - }, - "end": { - "line": 70, - "column": 14 - } - }, - "callee": { - "type": "Identifier", - "start": 1801, - "end": 1820, - "loc": { - "start": { - "line": 59, - "column": 21 - }, - "end": { - "line": 59, - "column": 40 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 1821, - "end": 2155, - "loc": { - "start": { - "line": 59, - "column": 41 - }, - "end": { - "line": 70, - "column": 13 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1837, - "end": 1851, - "loc": { - "start": { - "line": 60, - "column": 14 - }, - "end": { - "line": 60, - "column": 28 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1837, - "end": 1843, - "loc": { - "start": { - "line": 60, - "column": 14 - }, - "end": { - "line": 60, - "column": 20 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 1845, - "end": 1851, - "loc": { - "start": { - "line": 60, - "column": 22 - }, - "end": { - "line": 60, - "column": 28 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 1867, - "end": 1880, - "loc": { - "start": { - "line": 61, - "column": 14 - }, - "end": { - "line": 61, - "column": 27 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1867, - "end": 1871, - "loc": { - "start": { - "line": 61, - "column": 14 - }, - "end": { - "line": 61, - "column": 18 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 1873, - "end": 1880, - "loc": { - "start": { - "line": 61, - "column": 20 - }, - "end": { - "line": 61, - "column": 27 - } - }, - "extra": { - "rawValue": "/link", - "raw": "'/link'" - }, - "value": "/link" - } - }, - { - "type": "ObjectProperty", - "start": 1896, - "end": 1983, - "loc": { - "start": { - "line": 62, - "column": 14 - }, - "end": { - "line": 65, - "column": 15 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1896, - "end": 1909, - "loc": { - "start": { - "line": 62, - "column": 14 - }, - "end": { - "line": 62, - "column": 27 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 1911, - "end": 1983, - "loc": { - "start": { - "line": 62, - "column": 29 - }, - "end": { - "line": 65, - "column": 15 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1929, - "end": 1943, - "loc": { - "start": { - "line": 63, - "column": 16 - }, - "end": { - "line": 63, - "column": 30 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1929, - "end": 1933, - "loc": { - "start": { - "line": 63, - "column": 16 - }, - "end": { - "line": 63, - "column": 20 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 1935, - "end": 1943, - "loc": { - "start": { - "line": 63, - "column": 22 - }, - "end": { - "line": 63, - "column": 30 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 1961, - "end": 1966, - "loc": { - "start": { - "line": 64, - "column": 16 - }, - "end": { - "line": 64, - "column": 21 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1961, - "end": 1966, - "loc": { - "start": { - "line": 64, - "column": 16 - }, - "end": { - "line": 64, - "column": 21 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 1961, - "end": 1966, - "loc": { - "start": { - "line": 64, - "column": 16 - }, - "end": { - "line": 64, - "column": 21 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 1999, - "end": 2140, - "loc": { - "start": { - "line": 66, - "column": 14 - }, - "end": { - "line": 69, - "column": 15 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1999, - "end": 2006, - "loc": { - "start": { - "line": 66, - "column": 14 - }, - "end": { - "line": 66, - "column": 21 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 2008, - "end": 2140, - "loc": { - "start": { - "line": 66, - "column": 23 - }, - "end": { - "line": 69, - "column": 15 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2026, - "end": 2060, - "loc": { - "start": { - "line": 67, - "column": 16 - }, - "end": { - "line": 67, - "column": 50 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 2026, - "end": 2040, - "loc": { - "start": { - "line": 67, - "column": 16 - }, - "end": { - "line": 67, - "column": 30 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 2042, - "end": 2060, - "loc": { - "start": { - "line": 67, - "column": 32 - }, - "end": { - "line": 67, - "column": 50 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 2078, - "end": 2123, - "loc": { - "start": { - "line": 68, - "column": 16 - }, - "end": { - "line": 68, - "column": 61 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 2078, - "end": 2094, - "loc": { - "start": { - "line": 68, - "column": 16 - }, - "end": { - "line": 68, - "column": 32 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 2096, - "end": 2123, - "loc": { - "start": { - "line": 68, - "column": 34 - }, - "end": { - "line": 68, - "column": 61 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2096, - "end": 2113, - "loc": { - "start": { - "line": 68, - "column": 34 - }, - "end": { - "line": 68, - "column": 51 - } - }, - "object": { - "type": "Identifier", - "start": 2096, - "end": 2102, - "loc": { - "start": { - "line": 68, - "column": 34 - }, - "end": { - "line": 68, - "column": 40 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 2103, - "end": 2113, - "loc": { - "start": { - "line": 68, - "column": 41 - }, - "end": { - "line": 68, - "column": 51 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2114, - "end": 2122, - "loc": { - "start": { - "line": 68, - "column": 52 - }, - "end": { - "line": 68, - "column": 60 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 2158, - "end": 2183, - "loc": { - "start": { - "line": 70, - "column": 16 - }, - "end": { - "line": 70, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 2158, - "end": 2173, - "loc": { - "start": { - "line": 70, - "column": 16 - }, - "end": { - "line": 70, - "column": 31 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2174, - "end": 2182, - "loc": { - "start": { - "line": 70, - "column": 32 - }, - "end": { - "line": 70, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 2198, - "end": 2200, - "loc": { - "start": { - "line": 71, - "column": 13 - }, - "end": { - "line": 71, - "column": 15 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2201, - "end": 2208, - "loc": { - "start": { - "line": 71, - "column": 16 - }, - "end": { - "line": 71, - "column": 23 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 2210, - "end": 2232, - "loc": { - "start": { - "line": 71, - "column": 25 - }, - "end": { - "line": 71, - "column": 47 - } - }, - "callee": { - "type": "Identifier", - "start": 2210, - "end": 2222, - "loc": { - "start": { - "line": 71, - "column": 25 - }, - "end": { - "line": 71, - "column": 37 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2223, - "end": 2231, - "loc": { - "start": { - "line": 71, - "column": 38 - }, - "end": { - "line": 71, - "column": 46 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 2246, - "end": 2266, - "loc": { - "start": { - "line": 73, - "column": 10 - }, - "end": { - "line": 73, - "column": 30 - } - }, - "expression": { - "type": "CallExpression", - "start": 2246, - "end": 2265, - "loc": { - "start": { - "line": 73, - "column": 10 - }, - "end": { - "line": 73, - "column": 29 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2246, - "end": 2255, - "loc": { - "start": { - "line": 73, - "column": 10 - }, - "end": { - "line": 73, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 2246, - "end": 2249, - "loc": { - "start": { - "line": 73, - "column": 10 - }, - "end": { - "line": 73, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 2250, - "end": 2255, - "loc": { - "start": { - "line": 73, - "column": 14 - }, - "end": { - "line": 73, - "column": 19 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2256, - "end": 2264, - "loc": { - "start": { - "line": 73, - "column": 20 - }, - "end": { - "line": 73, - "column": 28 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 2277, - "end": 2287, - "loc": { - "start": { - "line": 74, - "column": 10 - }, - "end": { - "line": 74, - "column": 20 - } - }, - "expression": { - "type": "CallExpression", - "start": 2277, - "end": 2286, - "loc": { - "start": { - "line": 74, - "column": 10 - }, - "end": { - "line": 74, - "column": 19 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2277, - "end": 2284, - "loc": { - "start": { - "line": 74, - "column": 10 - }, - "end": { - "line": 74, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 2277, - "end": 2280, - "loc": { - "start": { - "line": 74, - "column": 10 - }, - "end": { - "line": 74, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 2281, - "end": 2284, - "loc": { - "start": { - "line": 74, - "column": 14 - }, - "end": { - "line": 74, - "column": 17 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 2303, - "end": 2454, - "loc": { - "start": { - "line": 75, - "column": 15 - }, - "end": { - "line": 78, - "column": 9 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2315, - "end": 2426, - "loc": { - "start": { - "line": 76, - "column": 10 - }, - "end": { - "line": 76, - "column": 121 - } - }, - "expression": { - "type": "CallExpression", - "start": 2315, - "end": 2425, - "loc": { - "start": { - "line": 76, - "column": 10 - }, - "end": { - "line": 76, - "column": 120 - } - }, - "callee": { - "type": "Identifier", - "start": 2315, - "end": 2323, - "loc": { - "start": { - "line": 76, - "column": 10 - }, - "end": { - "line": 76, - "column": 18 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2324, - "end": 2424, - "loc": { - "start": { - "line": 76, - "column": 19 - }, - "end": { - "line": 76, - "column": 119 - } - }, - "extra": { - "rawValue": "A document must have at least one role that does not have a fixed e-mail to create an invite link.", - "raw": "'A document must have at least one role that does not have a fixed e-mail to create an invite link.'" - }, - "value": "A document must have at least one role that does not have a fixed e-mail to create an invite link." - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 2437, - "end": 2444, - "loc": { - "start": { - "line": 77, - "column": 10 - }, - "end": { - "line": 77, - "column": 17 - } - }, - "argument": null - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Create signing link payload\n * @typedef {Object} SigningLinkCreateParams\n * @property {string} document_id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 459, - "end": 658, - "loc": { - "start": { - "line": 22, - "column": 2 - }, - "end": { - "line": 27, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create signing link response data\n * @typedef {Object} SigningLinkCreateResponse\n * @property {string} url - invite url with user authorization\n * @property {string} url_no_signup - invite url without user authorization\n ", - "start": 662, - "end": 902, - "loc": { - "start": { - "line": 29, - "column": 2 - }, - "end": { - "line": 34, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates signing link for specified document\n * @param {SigningLinkCreateParams} data - create signing link payload\n * @param {function(err: ApiErrorResponse, res: SigningLinkCreateResponse)} [callback] - error first node.js callback\n ", - "start": 906, - "end": 1157, - "loc": { - "start": { - "line": 36, - "column": 2 - }, - "end": { - "line": 40, - "column": 5 - } - } - } - ] - } - ] - }, - "leadingComments": [], - "name": "_", - "trailingComments": [] - }, - { - "type": "Identifier", - "start": 2478, - "end": 2498, - "loc": { - "start": { - "line": 84, - "column": 0 - }, - "end": { - "line": 84, - "column": 20 - } - }, - "declaration": { - "type": "Identifier", - "start": 2493, - "end": 2497, - "loc": { - "start": { - "line": 84, - "column": 15 - }, - "end": { - "line": 84, - "column": 19 - }, - "identifierName": "Link" - }, - "name": "Link" - }, - "name": "_", - "leadingComments": [], - "trailingComments": [] - }, - { - "type": "ExportDefaultDeclaration", - "start": 2478, - "end": 2498, - "loc": { - "start": { - "line": 84, - "column": 0 - }, - "end": { - "line": 84, - "column": 20 - } - }, - "declaration": { - "type": "ClassDeclaration", - "start": 443, - "end": 2476, - "loc": { - "start": { - "line": 20, - "column": 0 - }, - "end": { - "line": 82, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 449, - "end": 453, - "loc": { - "start": { - "line": 20, - "column": 6 - }, - "end": { - "line": 20, - "column": 10 - }, - "identifierName": "Link" - }, - "name": "Link", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 454, - "end": 2476, - "loc": { - "start": { - "line": 20, - "column": 11 - }, - "end": { - "line": 82, - "column": 1 - } - }, - "body": [ - { - "type": "ClassMethod", - "start": 1160, - "end": 2474, - "loc": { - "start": { - "line": 41, - "column": 2 - }, - "end": { - "line": 81, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1167, - "end": 1173, - "loc": { - "start": { - "line": 41, - "column": 9 - }, - "end": { - "line": 41, - "column": 15 - }, - "identifierName": "create" - }, - "name": "create" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 1175, - "end": 1197, - "loc": { - "start": { - "line": 41, - "column": 17 - }, - "end": { - "line": 41, - "column": 39 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1177, - "end": 1188, - "loc": { - "start": { - "line": 41, - "column": 19 - }, - "end": { - "line": 41, - "column": 30 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1177, - "end": 1188, - "loc": { - "start": { - "line": 41, - "column": 19 - }, - "end": { - "line": 41, - "column": 30 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "value": { - "type": "Identifier", - "start": 1177, - "end": 1188, - "loc": { - "start": { - "line": 41, - "column": 19 - }, - "end": { - "line": 41, - "column": 30 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1190, - "end": 1195, - "loc": { - "start": { - "line": 41, - "column": 32 - }, - "end": { - "line": 41, - "column": 37 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1190, - "end": 1195, - "loc": { - "start": { - "line": 41, - "column": 32 - }, - "end": { - "line": 41, - "column": 37 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 1190, - "end": 1195, - "loc": { - "start": { - "line": 41, - "column": 32 - }, - "end": { - "line": 41, - "column": 37 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 1199, - "end": 1207, - "loc": { - "start": { - "line": 41, - "column": 41 - }, - "end": { - "line": 41, - "column": 49 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 1209, - "end": 2474, - "loc": { - "start": { - "line": 41, - "column": 51 - }, - "end": { - "line": 81, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1215, - "end": 2470, - "loc": { - "start": { - "line": 42, - "column": 4 - }, - "end": { - "line": 80, - "column": 7 - } - }, - "expression": { - "type": "CallExpression", - "start": 1215, - "end": 2469, - "loc": { - "start": { - "line": 42, - "column": 4 - }, - "end": { - "line": 80, - "column": 6 - } - }, - "callee": { - "type": "Identifier", - "start": 1215, - "end": 1233, - "loc": { - "start": { - "line": 42, - "column": 4 - }, - "end": { - "line": 42, - "column": 22 - }, - "identifierName": "getDocumentDetails" - }, - "name": "getDocumentDetails" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 1234, - "end": 1277, - "loc": { - "start": { - "line": 42, - "column": 23 - }, - "end": { - "line": 45, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1242, - "end": 1257, - "loc": { - "start": { - "line": 43, - "column": 6 - }, - "end": { - "line": 43, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1242, - "end": 1244, - "loc": { - "start": { - "line": 43, - "column": 6 - }, - "end": { - "line": 43, - "column": 8 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 1246, - "end": 1257, - "loc": { - "start": { - "line": 43, - "column": 10 - }, - "end": { - "line": 43, - "column": 21 - }, - "identifierName": "document_id" - }, - "name": "document_id" - } - }, - { - "type": "ObjectProperty", - "start": 1265, - "end": 1270, - "loc": { - "start": { - "line": 44, - "column": 6 - }, - "end": { - "line": 44, - "column": 11 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1265, - "end": 1270, - "loc": { - "start": { - "line": 44, - "column": 6 - }, - "end": { - "line": 44, - "column": 11 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 1265, - "end": 1270, - "loc": { - "start": { - "line": 44, - "column": 6 - }, - "end": { - "line": 44, - "column": 11 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "ArrowFunctionExpression", - "start": 1279, - "end": 2468, - "loc": { - "start": { - "line": 45, - "column": 7 - }, - "end": { - "line": 80, - "column": 5 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1280, - "end": 1289, - "loc": { - "start": { - "line": 45, - "column": 8 - }, - "end": { - "line": 45, - "column": 17 - }, - "identifierName": "detailErr" - }, - "name": "detailErr" - }, - { - "type": "Identifier", - "start": 1291, - "end": 1300, - "loc": { - "start": { - "line": 45, - "column": 19 - }, - "end": { - "line": 45, - "column": 28 - }, - "identifierName": "detailRes" - }, - "name": "detailRes" - } - ], - "body": { - "type": "BlockStatement", - "start": 1305, - "end": 2468, - "loc": { - "start": { - "line": 45, - "column": 33 - }, - "end": { - "line": 80, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 1313, - "end": 2462, - "loc": { - "start": { - "line": 46, - "column": 6 - }, - "end": { - "line": 79, - "column": 7 - } - }, - "test": { - "type": "Identifier", - "start": 1317, - "end": 1326, - "loc": { - "start": { - "line": 46, - "column": 10 - }, - "end": { - "line": 46, - "column": 19 - }, - "identifierName": "detailErr" - }, - "name": "detailErr" - }, - "consequent": { - "type": "BlockStatement", - "start": 1328, - "end": 1382, - "loc": { - "start": { - "line": 46, - "column": 21 - }, - "end": { - "line": 49, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1338, - "end": 1358, - "loc": { - "start": { - "line": 47, - "column": 8 - }, - "end": { - "line": 47, - "column": 28 - } - }, - "expression": { - "type": "CallExpression", - "start": 1338, - "end": 1357, - "loc": { - "start": { - "line": 47, - "column": 8 - }, - "end": { - "line": 47, - "column": 27 - } - }, - "callee": { - "type": "Identifier", - "start": 1338, - "end": 1346, - "loc": { - "start": { - "line": 47, - "column": 8 - }, - "end": { - "line": 47, - "column": 16 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1347, - "end": 1356, - "loc": { - "start": { - "line": 47, - "column": 17 - }, - "end": { - "line": 47, - "column": 26 - }, - "identifierName": "detailErr" - }, - "name": "detailErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 1367, - "end": 1374, - "loc": { - "start": { - "line": 48, - "column": 8 - }, - "end": { - "line": 48, - "column": 15 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 1388, - "end": 2462, - "loc": { - "start": { - "line": 49, - "column": 13 - }, - "end": { - "line": 79, - "column": 7 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 1398, - "end": 1436, - "loc": { - "start": { - "line": 50, - "column": 8 - }, - "end": { - "line": 50, - "column": 46 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1404, - "end": 1435, - "loc": { - "start": { - "line": 50, - "column": 14 - }, - "end": { - "line": 50, - "column": 45 - } - }, - "id": { - "type": "ObjectPattern", - "start": 1404, - "end": 1423, - "loc": { - "start": { - "line": 50, - "column": 14 - }, - "end": { - "line": 50, - "column": 33 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1406, - "end": 1421, - "loc": { - "start": { - "line": 50, - "column": 16 - }, - "end": { - "line": 50, - "column": 31 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1406, - "end": 1421, - "loc": { - "start": { - "line": 50, - "column": 16 - }, - "end": { - "line": 50, - "column": 31 - }, - "identifierName": "routing_details" - }, - "name": "routing_details" - }, - "value": { - "type": "Identifier", - "start": 1406, - "end": 1421, - "loc": { - "start": { - "line": 50, - "column": 16 - }, - "end": { - "line": 50, - "column": 31 - }, - "identifierName": "routing_details" - }, - "name": "routing_details" - }, - "extra": { - "shorthand": true - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 1426, - "end": 1435, - "loc": { - "start": { - "line": 50, - "column": 36 - }, - "end": { - "line": 50, - "column": 45 - }, - "identifierName": "detailRes" - }, - "name": "detailRes" - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 1445, - "end": 1642, - "loc": { - "start": { - "line": 51, - "column": 8 - }, - "end": { - "line": 54, - "column": 51 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1451, - "end": 1641, - "loc": { - "start": { - "line": 51, - "column": 14 - }, - "end": { - "line": 54, - "column": 50 - } - }, - "id": { - "type": "Identifier", - "start": 1451, - "end": 1483, - "loc": { - "start": { - "line": 51, - "column": 14 - }, - "end": { - "line": 51, - "column": 46 - }, - "identifierName": "documentHasAtLeastOneUnfixedRole" - }, - "name": "documentHasAtLeastOneUnfixedRole" - }, - "init": { - "type": "CallExpression", - "start": 1486, - "end": 1641, - "loc": { - "start": { - "line": 51, - "column": 49 - }, - "end": { - "line": 54, - "column": 50 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1486, - "end": 1606, - "loc": { - "start": { - "line": 51, - "column": 49 - }, - "end": { - "line": 54, - "column": 15 - } - }, - "object": { - "type": "CallExpression", - "start": 1486, - "end": 1590, - "loc": { - "start": { - "line": 51, - "column": 49 - }, - "end": { - "line": 53, - "column": 48 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1486, - "end": 1559, - "loc": { - "start": { - "line": 51, - "column": 49 - }, - "end": { - "line": 53, - "column": 17 - } - }, - "object": { - "type": "CallExpression", - "start": 1486, - "end": 1541, - "loc": { - "start": { - "line": 51, - "column": 49 - }, - "end": { - "line": 52, - "column": 39 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1486, - "end": 1516, - "loc": { - "start": { - "line": 51, - "column": 49 - }, - "end": { - "line": 52, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 1486, - "end": 1501, - "loc": { - "start": { - "line": 51, - "column": 49 - }, - "end": { - "line": 51, - "column": 64 - }, - "identifierName": "routing_details" - }, - "name": "routing_details" - }, - "property": { - "type": "Identifier", - "start": 1513, - "end": 1516, - "loc": { - "start": { - "line": 52, - "column": 11 - }, - "end": { - "line": 52, - "column": 14 - }, - "identifierName": "map" - }, - "name": "map" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 1517, - "end": 1540, - "loc": { - "start": { - "line": 52, - "column": 15 - }, - "end": { - "line": 52, - "column": 38 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1517, - "end": 1524, - "loc": { - "start": { - "line": 52, - "column": 15 - }, - "end": { - "line": 52, - "column": 22 - }, - "identifierName": "routing" - }, - "name": "routing" - } - ], - "body": { - "type": "MemberExpression", - "start": 1528, - "end": 1540, - "loc": { - "start": { - "line": 52, - "column": 26 - }, - "end": { - "line": 52, - "column": 38 - } - }, - "object": { - "type": "Identifier", - "start": 1528, - "end": 1535, - "loc": { - "start": { - "line": 52, - "column": 26 - }, - "end": { - "line": 52, - "column": 33 - }, - "identifierName": "routing" - }, - "name": "routing" - }, - "property": { - "type": "Identifier", - "start": 1536, - "end": 1540, - "loc": { - "start": { - "line": 52, - "column": 34 - }, - "end": { - "line": 52, - "column": 38 - }, - "identifierName": "data" - }, - "name": "data" - }, - "computed": false - } - } - ] - }, - "property": { - "type": "Identifier", - "start": 1553, - "end": 1559, - "loc": { - "start": { - "line": 53, - "column": 11 - }, - "end": { - "line": 53, - "column": 17 - }, - "identifierName": "reduce" - }, - "name": "reduce" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 1560, - "end": 1585, - "loc": { - "start": { - "line": 53, - "column": 18 - }, - "end": { - "line": 53, - "column": 43 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1561, - "end": 1564, - "loc": { - "start": { - "line": 53, - "column": 19 - }, - "end": { - "line": 53, - "column": 22 - }, - "identifierName": "acc" - }, - "name": "acc" - }, - { - "type": "Identifier", - "start": 1566, - "end": 1567, - "loc": { - "start": { - "line": 53, - "column": 24 - }, - "end": { - "line": 53, - "column": 25 - }, - "identifierName": "i" - }, - "name": "i" - } - ], - "body": { - "type": "CallExpression", - "start": 1572, - "end": 1585, - "loc": { - "start": { - "line": 53, - "column": 30 - }, - "end": { - "line": 53, - "column": 43 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1572, - "end": 1582, - "loc": { - "start": { - "line": 53, - "column": 30 - }, - "end": { - "line": 53, - "column": 40 - } - }, - "object": { - "type": "Identifier", - "start": 1572, - "end": 1575, - "loc": { - "start": { - "line": 53, - "column": 30 - }, - "end": { - "line": 53, - "column": 33 - }, - "identifierName": "acc" - }, - "name": "acc" - }, - "property": { - "type": "Identifier", - "start": 1576, - "end": 1582, - "loc": { - "start": { - "line": 53, - "column": 34 - }, - "end": { - "line": 53, - "column": 40 - }, - "identifierName": "concat" - }, - "name": "concat" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1583, - "end": 1584, - "loc": { - "start": { - "line": 53, - "column": 41 - }, - "end": { - "line": 53, - "column": 42 - }, - "identifierName": "i" - }, - "name": "i" - } - ] - } - }, - { - "type": "ArrayExpression", - "start": 1587, - "end": 1589, - "loc": { - "start": { - "line": 53, - "column": 45 - }, - "end": { - "line": 53, - "column": 47 - } - }, - "elements": [] - } - ] - }, - "property": { - "type": "Identifier", - "start": 1602, - "end": 1606, - "loc": { - "start": { - "line": 54, - "column": 11 - }, - "end": { - "line": 54, - "column": 15 - }, - "identifierName": "some" - }, - "name": "some" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 1607, - "end": 1640, - "loc": { - "start": { - "line": 54, - "column": 16 - }, - "end": { - "line": 54, - "column": 49 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1607, - "end": 1611, - "loc": { - "start": { - "line": 54, - "column": 16 - }, - "end": { - "line": 54, - "column": 20 - }, - "identifierName": "role" - }, - "name": "role" - } - ], - "body": { - "type": "BinaryExpression", - "start": 1615, - "end": 1640, - "loc": { - "start": { - "line": 54, - "column": 24 - }, - "end": { - "line": 54, - "column": 49 - } - }, - "left": { - "type": "MemberExpression", - "start": 1615, - "end": 1633, - "loc": { - "start": { - "line": 54, - "column": 24 - }, - "end": { - "line": 54, - "column": 42 - } - }, - "object": { - "type": "Identifier", - "start": 1615, - "end": 1619, - "loc": { - "start": { - "line": 54, - "column": 24 - }, - "end": { - "line": 54, - "column": 28 - }, - "identifierName": "role" - }, - "name": "role" - }, - "property": { - "type": "Identifier", - "start": 1620, - "end": 1633, - "loc": { - "start": { - "line": 54, - "column": 29 - }, - "end": { - "line": 54, - "column": 42 - }, - "identifierName": "default_email" - }, - "name": "default_email" - }, - "computed": false - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 1638, - "end": 1640, - "loc": { - "start": { - "line": 54, - "column": 47 - }, - "end": { - "line": 54, - "column": 49 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "IfStatement", - "start": 1652, - "end": 2454, - "loc": { - "start": { - "line": 56, - "column": 8 - }, - "end": { - "line": 78, - "column": 9 - } - }, - "test": { - "type": "Identifier", - "start": 1656, - "end": 1688, - "loc": { - "start": { - "line": 56, - "column": 12 - }, - "end": { - "line": 56, - "column": 44 - }, - "identifierName": "documentHasAtLeastOneUnfixedRole" - }, - "name": "documentHasAtLeastOneUnfixedRole" - }, - "consequent": { - "type": "BlockStatement", - "start": 1690, - "end": 2297, - "loc": { - "start": { - "line": 56, - "column": 46 - }, - "end": { - "line": 75, - "column": 9 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 1702, - "end": 1751, - "loc": { - "start": { - "line": 57, - "column": 10 - }, - "end": { - "line": 57, - "column": 59 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1708, - "end": 1750, - "loc": { - "start": { - "line": 57, - "column": 16 - }, - "end": { - "line": 57, - "column": 58 - } - }, - "id": { - "type": "Identifier", - "start": 1708, - "end": 1716, - "loc": { - "start": { - "line": 57, - "column": 16 - }, - "end": { - "line": 57, - "column": 24 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 1719, - "end": 1750, - "loc": { - "start": { - "line": 57, - "column": 27 - }, - "end": { - "line": 57, - "column": 58 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1719, - "end": 1733, - "loc": { - "start": { - "line": 57, - "column": 27 - }, - "end": { - "line": 57, - "column": 41 - } - }, - "object": { - "type": "Identifier", - "start": 1719, - "end": 1723, - "loc": { - "start": { - "line": 57, - "column": 27 - }, - "end": { - "line": 57, - "column": 31 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 1724, - "end": 1733, - "loc": { - "start": { - "line": 57, - "column": 32 - }, - "end": { - "line": 57, - "column": 41 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 1734, - "end": 1749, - "loc": { - "start": { - "line": 57, - "column": 42 - }, - "end": { - "line": 57, - "column": 57 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1736, - "end": 1747, - "loc": { - "start": { - "line": 57, - "column": 44 - }, - "end": { - "line": 57, - "column": 55 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1736, - "end": 1747, - "loc": { - "start": { - "line": 57, - "column": 44 - }, - "end": { - "line": 57, - "column": 55 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "value": { - "type": "Identifier", - "start": 1736, - "end": 1747, - "loc": { - "start": { - "line": 57, - "column": 44 - }, - "end": { - "line": 57, - "column": 55 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 1762, - "end": 2234, - "loc": { - "start": { - "line": 58, - "column": 10 - }, - "end": { - "line": 71, - "column": 49 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1768, - "end": 2233, - "loc": { - "start": { - "line": 58, - "column": 16 - }, - "end": { - "line": 71, - "column": 48 - } - }, - "id": { - "type": "Identifier", - "start": 1768, - "end": 1771, - "loc": { - "start": { - "line": 58, - "column": 16 - }, - "end": { - "line": 58, - "column": 19 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 1774, - "end": 2233, - "loc": { - "start": { - "line": 58, - "column": 22 - }, - "end": { - "line": 71, - "column": 48 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1774, - "end": 2200, - "loc": { - "start": { - "line": 58, - "column": 22 - }, - "end": { - "line": 71, - "column": 15 - } - }, - "object": { - "type": "CallExpression", - "start": 1774, - "end": 2184, - "loc": { - "start": { - "line": 58, - "column": 22 - }, - "end": { - "line": 70, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1774, - "end": 1800, - "loc": { - "start": { - "line": 58, - "column": 22 - }, - "end": { - "line": 59, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 1774, - "end": 1779, - "loc": { - "start": { - "line": 58, - "column": 22 - }, - "end": { - "line": 58, - "column": 27 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 1793, - "end": 1800, - "loc": { - "start": { - "line": 59, - "column": 13 - }, - "end": { - "line": 59, - "column": 20 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 1801, - "end": 2156, - "loc": { - "start": { - "line": 59, - "column": 21 - }, - "end": { - "line": 70, - "column": 14 - } - }, - "callee": { - "type": "Identifier", - "start": 1801, - "end": 1820, - "loc": { - "start": { - "line": 59, - "column": 21 - }, - "end": { - "line": 59, - "column": 40 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 1821, - "end": 2155, - "loc": { - "start": { - "line": 59, - "column": 41 - }, - "end": { - "line": 70, - "column": 13 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1837, - "end": 1851, - "loc": { - "start": { - "line": 60, - "column": 14 - }, - "end": { - "line": 60, - "column": 28 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1837, - "end": 1843, - "loc": { - "start": { - "line": 60, - "column": 14 - }, - "end": { - "line": 60, - "column": 20 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 1845, - "end": 1851, - "loc": { - "start": { - "line": 60, - "column": 22 - }, - "end": { - "line": 60, - "column": 28 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 1867, - "end": 1880, - "loc": { - "start": { - "line": 61, - "column": 14 - }, - "end": { - "line": 61, - "column": 27 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1867, - "end": 1871, - "loc": { - "start": { - "line": 61, - "column": 14 - }, - "end": { - "line": 61, - "column": 18 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 1873, - "end": 1880, - "loc": { - "start": { - "line": 61, - "column": 20 - }, - "end": { - "line": 61, - "column": 27 - } - }, - "extra": { - "rawValue": "/link", - "raw": "'/link'" - }, - "value": "/link" - } - }, - { - "type": "ObjectProperty", - "start": 1896, - "end": 1983, - "loc": { - "start": { - "line": 62, - "column": 14 - }, - "end": { - "line": 65, - "column": 15 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1896, - "end": 1909, - "loc": { - "start": { - "line": 62, - "column": 14 - }, - "end": { - "line": 62, - "column": 27 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 1911, - "end": 1983, - "loc": { - "start": { - "line": 62, - "column": 29 - }, - "end": { - "line": 65, - "column": 15 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1929, - "end": 1943, - "loc": { - "start": { - "line": 63, - "column": 16 - }, - "end": { - "line": 63, - "column": 30 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1929, - "end": 1933, - "loc": { - "start": { - "line": 63, - "column": 16 - }, - "end": { - "line": 63, - "column": 20 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 1935, - "end": 1943, - "loc": { - "start": { - "line": 63, - "column": 22 - }, - "end": { - "line": 63, - "column": 30 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 1961, - "end": 1966, - "loc": { - "start": { - "line": 64, - "column": 16 - }, - "end": { - "line": 64, - "column": 21 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1961, - "end": 1966, - "loc": { - "start": { - "line": 64, - "column": 16 - }, - "end": { - "line": 64, - "column": 21 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 1961, - "end": 1966, - "loc": { - "start": { - "line": 64, - "column": 16 - }, - "end": { - "line": 64, - "column": 21 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 1999, - "end": 2140, - "loc": { - "start": { - "line": 66, - "column": 14 - }, - "end": { - "line": 69, - "column": 15 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1999, - "end": 2006, - "loc": { - "start": { - "line": 66, - "column": 14 - }, - "end": { - "line": 66, - "column": 21 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 2008, - "end": 2140, - "loc": { - "start": { - "line": 66, - "column": 23 - }, - "end": { - "line": 69, - "column": 15 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2026, - "end": 2060, - "loc": { - "start": { - "line": 67, - "column": 16 - }, - "end": { - "line": 67, - "column": 50 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 2026, - "end": 2040, - "loc": { - "start": { - "line": 67, - "column": 16 - }, - "end": { - "line": 67, - "column": 30 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 2042, - "end": 2060, - "loc": { - "start": { - "line": 67, - "column": 32 - }, - "end": { - "line": 67, - "column": 50 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 2078, - "end": 2123, - "loc": { - "start": { - "line": 68, - "column": 16 - }, - "end": { - "line": 68, - "column": 61 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 2078, - "end": 2094, - "loc": { - "start": { - "line": 68, - "column": 16 - }, - "end": { - "line": 68, - "column": 32 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 2096, - "end": 2123, - "loc": { - "start": { - "line": 68, - "column": 34 - }, - "end": { - "line": 68, - "column": 61 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2096, - "end": 2113, - "loc": { - "start": { - "line": 68, - "column": 34 - }, - "end": { - "line": 68, - "column": 51 - } - }, - "object": { - "type": "Identifier", - "start": 2096, - "end": 2102, - "loc": { - "start": { - "line": 68, - "column": 34 - }, - "end": { - "line": 68, - "column": 40 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 2103, - "end": 2113, - "loc": { - "start": { - "line": 68, - "column": 41 - }, - "end": { - "line": 68, - "column": 51 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2114, - "end": 2122, - "loc": { - "start": { - "line": 68, - "column": 52 - }, - "end": { - "line": 68, - "column": 60 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 2158, - "end": 2183, - "loc": { - "start": { - "line": 70, - "column": 16 - }, - "end": { - "line": 70, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 2158, - "end": 2173, - "loc": { - "start": { - "line": 70, - "column": 16 - }, - "end": { - "line": 70, - "column": 31 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2174, - "end": 2182, - "loc": { - "start": { - "line": 70, - "column": 32 - }, - "end": { - "line": 70, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 2198, - "end": 2200, - "loc": { - "start": { - "line": 71, - "column": 13 - }, - "end": { - "line": 71, - "column": 15 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2201, - "end": 2208, - "loc": { - "start": { - "line": 71, - "column": 16 - }, - "end": { - "line": 71, - "column": 23 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 2210, - "end": 2232, - "loc": { - "start": { - "line": 71, - "column": 25 - }, - "end": { - "line": 71, - "column": 47 - } - }, - "callee": { - "type": "Identifier", - "start": 2210, - "end": 2222, - "loc": { - "start": { - "line": 71, - "column": 25 - }, - "end": { - "line": 71, - "column": 37 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2223, - "end": 2231, - "loc": { - "start": { - "line": 71, - "column": 38 - }, - "end": { - "line": 71, - "column": 46 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 2246, - "end": 2266, - "loc": { - "start": { - "line": 73, - "column": 10 - }, - "end": { - "line": 73, - "column": 30 - } - }, - "expression": { - "type": "CallExpression", - "start": 2246, - "end": 2265, - "loc": { - "start": { - "line": 73, - "column": 10 - }, - "end": { - "line": 73, - "column": 29 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2246, - "end": 2255, - "loc": { - "start": { - "line": 73, - "column": 10 - }, - "end": { - "line": 73, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 2246, - "end": 2249, - "loc": { - "start": { - "line": 73, - "column": 10 - }, - "end": { - "line": 73, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 2250, - "end": 2255, - "loc": { - "start": { - "line": 73, - "column": 14 - }, - "end": { - "line": 73, - "column": 19 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2256, - "end": 2264, - "loc": { - "start": { - "line": 73, - "column": 20 - }, - "end": { - "line": 73, - "column": 28 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 2277, - "end": 2287, - "loc": { - "start": { - "line": 74, - "column": 10 - }, - "end": { - "line": 74, - "column": 20 - } - }, - "expression": { - "type": "CallExpression", - "start": 2277, - "end": 2286, - "loc": { - "start": { - "line": 74, - "column": 10 - }, - "end": { - "line": 74, - "column": 19 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2277, - "end": 2284, - "loc": { - "start": { - "line": 74, - "column": 10 - }, - "end": { - "line": 74, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 2277, - "end": 2280, - "loc": { - "start": { - "line": 74, - "column": 10 - }, - "end": { - "line": 74, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 2281, - "end": 2284, - "loc": { - "start": { - "line": 74, - "column": 14 - }, - "end": { - "line": 74, - "column": 17 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 2303, - "end": 2454, - "loc": { - "start": { - "line": 75, - "column": 15 - }, - "end": { - "line": 78, - "column": 9 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2315, - "end": 2426, - "loc": { - "start": { - "line": 76, - "column": 10 - }, - "end": { - "line": 76, - "column": 121 - } - }, - "expression": { - "type": "CallExpression", - "start": 2315, - "end": 2425, - "loc": { - "start": { - "line": 76, - "column": 10 - }, - "end": { - "line": 76, - "column": 120 - } - }, - "callee": { - "type": "Identifier", - "start": 2315, - "end": 2323, - "loc": { - "start": { - "line": 76, - "column": 10 - }, - "end": { - "line": 76, - "column": 18 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2324, - "end": 2424, - "loc": { - "start": { - "line": 76, - "column": 19 - }, - "end": { - "line": 76, - "column": 119 - } - }, - "extra": { - "rawValue": "A document must have at least one role that does not have a fixed e-mail to create an invite link.", - "raw": "'A document must have at least one role that does not have a fixed e-mail to create an invite link.'" - }, - "value": "A document must have at least one role that does not have a fixed e-mail to create an invite link." - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 2437, - "end": 2444, - "loc": { - "start": { - "line": 77, - "column": 10 - }, - "end": { - "line": 77, - "column": 17 - } - }, - "argument": null - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Create signing link payload\n * @typedef {Object} SigningLinkCreateParams\n * @property {string} document_id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 459, - "end": 658, - "loc": { - "start": { - "line": 22, - "column": 2 - }, - "end": { - "line": 27, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create signing link response data\n * @typedef {Object} SigningLinkCreateResponse\n * @property {string} url - invite url with user authorization\n * @property {string} url_no_signup - invite url without user authorization\n ", - "start": 662, - "end": 902, - "loc": { - "start": { - "line": 29, - "column": 2 - }, - "end": { - "line": 34, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates signing link for specified document\n * @param {SigningLinkCreateParams} data - create signing link payload\n * @param {function(err: ApiErrorResponse, res: SigningLinkCreateResponse)} [callback] - error first node.js callback\n ", - "start": 906, - "end": 1157, - "loc": { - "start": { - "line": 36, - "column": 2 - }, - "end": { - "line": 40, - "column": 5 - } - } - } - ] - } - ] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Link methods\n ", - "start": 419, - "end": 442, - "loc": { - "start": { - "line": 17, - "column": 0 - }, - "end": { - "line": 19, - "column": 3 - } - } - } - ], - "__PseudoExport__": false, - "trailingComments": [] - }, - "leadingComments": null - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "value": "use strict", - "extra": { - "raw": "'use strict'", - "rawValue": "use strict" - } - } - } - ] - }, - "comments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewParams} data - view document with field extract payload\n * @param {function(err: ApiErrorResponse, res: DocumentViewResponse)} [callback] - error first node.js callback\n ", - "start": 165, - "end": 384, - "loc": { - "start": { - "line": 10, - "column": 0 - }, - "end": { - "line": 14, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Link methods\n ", - "start": 419, - "end": 442, - "loc": { - "start": { - "line": 17, - "column": 0 - }, - "end": { - "line": 19, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create signing link payload\n * @typedef {Object} SigningLinkCreateParams\n * @property {string} document_id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 459, - "end": 658, - "loc": { - "start": { - "line": 22, - "column": 2 - }, - "end": { - "line": 27, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create signing link response data\n * @typedef {Object} SigningLinkCreateResponse\n * @property {string} url - invite url with user authorization\n * @property {string} url_no_signup - invite url without user authorization\n ", - "start": 662, - "end": 902, - "loc": { - "start": { - "line": 29, - "column": 2 - }, - "end": { - "line": 34, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates signing link for specified document\n * @param {SigningLinkCreateParams} data - create signing link payload\n * @param {function(err: ApiErrorResponse, res: SigningLinkCreateResponse)} [callback] - error first node.js callback\n ", - "start": 906, - "end": 1157, - "loc": { - "start": { - "line": 36, - "column": 2 - }, - "end": { - "line": 40, - "column": 5 - } - } - } - ], - "tokens": [ - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "use strict", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 12 - }, - "end": { - "line": 1, - "column": 13 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 14, - "end": 20, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 27, - "end": 31, - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 17 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "https", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 18 - }, - "end": { - "line": 2, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39, - "end": 40, - "loc": { - "start": { - "line": 2, - "column": 25 - }, - "end": { - "line": 2, - "column": 26 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 41, - "end": 47, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 48, - "end": 49, - "loc": { - "start": { - "line": 3, - "column": 7 - }, - "end": { - "line": 3, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 67, - "end": 68, - "loc": { - "start": { - "line": 4, - "column": 17 - }, - "end": { - "line": 4, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 71, - "end": 83, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 14 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 83, - "end": 84, - "loc": { - "start": { - "line": 5, - "column": 14 - }, - "end": { - "line": 5, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 87, - "end": 106, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 106, - "end": 107, - "loc": { - "start": { - "line": 6, - "column": 21 - }, - "end": { - "line": 6, - "column": 22 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 108, - "end": 109, - "loc": { - "start": { - "line": 7, - "column": 0 - }, - "end": { - "line": 7, - "column": 1 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 110, - "end": 114, - "loc": { - "start": { - "line": 7, - "column": 2 - }, - "end": { - "line": 7, - "column": 6 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "../common", - "start": 115, - "end": 126, - "loc": { - "start": { - "line": 7, - "column": 7 - }, - "end": { - "line": 7, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 126, - "end": 127, - "loc": { - "start": { - "line": 7, - "column": 18 - }, - "end": { - "line": 7, - "column": 19 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 128, - "end": 134, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 8, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 135, - "end": 136, - "loc": { - "start": { - "line": 8, - "column": 7 - }, - "end": { - "line": 8, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "view", - "start": 137, - "end": 141, - "loc": { - "start": { - "line": 8, - "column": 9 - }, - "end": { - "line": 8, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 142, - "end": 143, - "loc": { - "start": { - "line": 8, - "column": 14 - }, - "end": { - "line": 8, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 144, - "end": 148, - "loc": { - "start": { - "line": 8, - "column": 16 - }, - "end": { - "line": 8, - "column": 20 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "../document", - "start": 149, - "end": 162, - "loc": { - "start": { - "line": 8, - "column": 21 - }, - "end": { - "line": 8, - "column": 34 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 162, - "end": 163, - "loc": { - "start": { - "line": 8, - "column": 34 - }, - "end": { - "line": 8, - "column": 35 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewParams} data - view document with field extract payload\n * @param {function(err: ApiErrorResponse, res: DocumentViewResponse)} [callback] - error first node.js callback\n ", - "start": 165, - "end": 384, - "loc": { - "start": { - "line": 10, - "column": 0 - }, - "end": { - "line": 14, - "column": 3 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 385, - "end": 390, - "loc": { - "start": { - "line": 15, - "column": 0 - }, - "end": { - "line": 15, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getDocumentDetails", - "start": 391, - "end": 409, - "loc": { - "start": { - "line": 15, - "column": 6 - }, - "end": { - "line": 15, - "column": 24 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 410, - "end": 411, - "loc": { - "start": { - "line": 15, - "column": 25 - }, - "end": { - "line": 15, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "view", - "start": 412, - "end": 416, - "loc": { - "start": { - "line": 15, - "column": 27 - }, - "end": { - "line": 15, - "column": 31 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 416, - "end": 417, - "loc": { - "start": { - "line": 15, - "column": 31 - }, - "end": { - "line": 15, - "column": 32 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Link methods\n ", - "start": 419, - "end": 442, - "loc": { - "start": { - "line": 17, - "column": 0 - }, - "end": { - "line": 19, - "column": 3 - } - } - }, - { - "type": { - "label": "class", - "keyword": "class", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "class", - "start": 443, - "end": 448, - "loc": { - "start": { - "line": 20, - "column": 0 - }, - "end": { - "line": 20, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Link", - "start": 449, - "end": 453, - "loc": { - "start": { - "line": 20, - "column": 6 - }, - "end": { - "line": 20, - "column": 10 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 454, - "end": 455, - "loc": { - "start": { - "line": 20, - "column": 11 - }, - "end": { - "line": 20, - "column": 12 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create signing link payload\n * @typedef {Object} SigningLinkCreateParams\n * @property {string} document_id - id of specific document\n * @property {string} token - your auth token\n ", - "start": 459, - "end": 658, - "loc": { - "start": { - "line": 22, - "column": 2 - }, - "end": { - "line": 27, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create signing link response data\n * @typedef {Object} SigningLinkCreateResponse\n * @property {string} url - invite url with user authorization\n * @property {string} url_no_signup - invite url without user authorization\n ", - "start": 662, - "end": 902, - "loc": { - "start": { - "line": 29, - "column": 2 - }, - "end": { - "line": 34, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates signing link for specified document\n * @param {SigningLinkCreateParams} data - create signing link payload\n * @param {function(err: ApiErrorResponse, res: SigningLinkCreateResponse)} [callback] - error first node.js callback\n ", - "start": 906, - "end": 1157, - "loc": { - "start": { - "line": 36, - "column": 2 - }, - "end": { - "line": 40, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 1160, - "end": 1166, - "loc": { - "start": { - "line": 41, - "column": 2 - }, - "end": { - "line": 41, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "create", - "start": 1167, - "end": 1173, - "loc": { - "start": { - "line": 41, - "column": 9 - }, - "end": { - "line": 41, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1174, - "end": 1175, - "loc": { - "start": { - "line": 41, - "column": 16 - }, - "end": { - "line": 41, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1175, - "end": 1176, - "loc": { - "start": { - "line": 41, - "column": 17 - }, - "end": { - "line": 41, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_id", - "start": 1177, - "end": 1188, - "loc": { - "start": { - "line": 41, - "column": 19 - }, - "end": { - "line": 41, - "column": 30 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1188, - "end": 1189, - "loc": { - "start": { - "line": 41, - "column": 30 - }, - "end": { - "line": 41, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 1190, - "end": 1195, - "loc": { - "start": { - "line": 41, - "column": 32 - }, - "end": { - "line": 41, - "column": 37 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1196, - "end": 1197, - "loc": { - "start": { - "line": 41, - "column": 38 - }, - "end": { - "line": 41, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1197, - "end": 1198, - "loc": { - "start": { - "line": 41, - "column": 39 - }, - "end": { - "line": 41, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 1199, - "end": 1207, - "loc": { - "start": { - "line": 41, - "column": 41 - }, - "end": { - "line": 41, - "column": 49 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1207, - "end": 1208, - "loc": { - "start": { - "line": 41, - "column": 49 - }, - "end": { - "line": 41, - "column": 50 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1209, - "end": 1210, - "loc": { - "start": { - "line": 41, - "column": 51 - }, - "end": { - "line": 41, - "column": 52 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getDocumentDetails", - "start": 1215, - "end": 1233, - "loc": { - "start": { - "line": 42, - "column": 4 - }, - "end": { - "line": 42, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1233, - "end": 1234, - "loc": { - "start": { - "line": 42, - "column": 22 - }, - "end": { - "line": 42, - "column": 23 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1234, - "end": 1235, - "loc": { - "start": { - "line": 42, - "column": 23 - }, - "end": { - "line": 42, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 1242, - "end": 1244, - "loc": { - "start": { - "line": 43, - "column": 6 - }, - "end": { - "line": 43, - "column": 8 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1244, - "end": 1245, - "loc": { - "start": { - "line": 43, - "column": 8 - }, - "end": { - "line": 43, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_id", - "start": 1246, - "end": 1257, - "loc": { - "start": { - "line": 43, - "column": 10 - }, - "end": { - "line": 43, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1257, - "end": 1258, - "loc": { - "start": { - "line": 43, - "column": 21 - }, - "end": { - "line": 43, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 1265, - "end": 1270, - "loc": { - "start": { - "line": 44, - "column": 6 - }, - "end": { - "line": 44, - "column": 11 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1270, - "end": 1271, - "loc": { - "start": { - "line": 44, - "column": 11 - }, - "end": { - "line": 44, - "column": 12 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1276, - "end": 1277, - "loc": { - "start": { - "line": 45, - "column": 4 - }, - "end": { - "line": 45, - "column": 5 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1277, - "end": 1278, - "loc": { - "start": { - "line": 45, - "column": 5 - }, - "end": { - "line": 45, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1279, - "end": 1280, - "loc": { - "start": { - "line": 45, - "column": 7 - }, - "end": { - "line": 45, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "detailErr", - "start": 1280, - "end": 1289, - "loc": { - "start": { - "line": 45, - "column": 8 - }, - "end": { - "line": 45, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1289, - "end": 1290, - "loc": { - "start": { - "line": 45, - "column": 17 - }, - "end": { - "line": 45, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "detailRes", - "start": 1291, - "end": 1300, - "loc": { - "start": { - "line": 45, - "column": 19 - }, - "end": { - "line": 45, - "column": 28 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1300, - "end": 1301, - "loc": { - "start": { - "line": 45, - "column": 28 - }, - "end": { - "line": 45, - "column": 29 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1302, - "end": 1304, - "loc": { - "start": { - "line": 45, - "column": 30 - }, - "end": { - "line": 45, - "column": 32 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1305, - "end": 1306, - "loc": { - "start": { - "line": 45, - "column": 33 - }, - "end": { - "line": 45, - "column": 34 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 1313, - "end": 1315, - "loc": { - "start": { - "line": 46, - "column": 6 - }, - "end": { - "line": 46, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1316, - "end": 1317, - "loc": { - "start": { - "line": 46, - "column": 9 - }, - "end": { - "line": 46, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "detailErr", - "start": 1317, - "end": 1326, - "loc": { - "start": { - "line": 46, - "column": 10 - }, - "end": { - "line": 46, - "column": 19 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1326, - "end": 1327, - "loc": { - "start": { - "line": 46, - "column": 19 - }, - "end": { - "line": 46, - "column": 20 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1328, - "end": 1329, - "loc": { - "start": { - "line": 46, - "column": 21 - }, - "end": { - "line": 46, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 1338, - "end": 1346, - "loc": { - "start": { - "line": 47, - "column": 8 - }, - "end": { - "line": 47, - "column": 16 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1346, - "end": 1347, - "loc": { - "start": { - "line": 47, - "column": 16 - }, - "end": { - "line": 47, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "detailErr", - "start": 1347, - "end": 1356, - "loc": { - "start": { - "line": 47, - "column": 17 - }, - "end": { - "line": 47, - "column": 26 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1356, - "end": 1357, - "loc": { - "start": { - "line": 47, - "column": 26 - }, - "end": { - "line": 47, - "column": 27 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1357, - "end": 1358, - "loc": { - "start": { - "line": 47, - "column": 27 - }, - "end": { - "line": 47, - "column": 28 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 1367, - "end": 1373, - "loc": { - "start": { - "line": 48, - "column": 8 - }, - "end": { - "line": 48, - "column": 14 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1373, - "end": 1374, - "loc": { - "start": { - "line": 48, - "column": 14 - }, - "end": { - "line": 48, - "column": 15 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1381, - "end": 1382, - "loc": { - "start": { - "line": 49, - "column": 6 - }, - "end": { - "line": 49, - "column": 7 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 1383, - "end": 1387, - "loc": { - "start": { - "line": 49, - "column": 8 - }, - "end": { - "line": 49, - "column": 12 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1388, - "end": 1389, - "loc": { - "start": { - "line": 49, - "column": 13 - }, - "end": { - "line": 49, - "column": 14 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1398, - "end": 1403, - "loc": { - "start": { - "line": 50, - "column": 8 - }, - "end": { - "line": 50, - "column": 13 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1404, - "end": 1405, - "loc": { - "start": { - "line": 50, - "column": 14 - }, - "end": { - "line": 50, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "routing_details", - "start": 1406, - "end": 1421, - "loc": { - "start": { - "line": 50, - "column": 16 - }, - "end": { - "line": 50, - "column": 31 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1422, - "end": 1423, - "loc": { - "start": { - "line": 50, - "column": 32 - }, - "end": { - "line": 50, - "column": 33 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1424, - "end": 1425, - "loc": { - "start": { - "line": 50, - "column": 34 - }, - "end": { - "line": 50, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "detailRes", - "start": 1426, - "end": 1435, - "loc": { - "start": { - "line": 50, - "column": 36 - }, - "end": { - "line": 50, - "column": 45 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1435, - "end": 1436, - "loc": { - "start": { - "line": 50, - "column": 45 - }, - "end": { - "line": 50, - "column": 46 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1445, - "end": 1450, - "loc": { - "start": { - "line": 51, - "column": 8 - }, - "end": { - "line": 51, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documentHasAtLeastOneUnfixedRole", - "start": 1451, - "end": 1483, - "loc": { - "start": { - "line": 51, - "column": 14 - }, - "end": { - "line": 51, - "column": 46 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1484, - "end": 1485, - "loc": { - "start": { - "line": 51, - "column": 47 - }, - "end": { - "line": 51, - "column": 48 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "routing_details", - "start": 1486, - "end": 1501, - "loc": { - "start": { - "line": 51, - "column": 49 - }, - "end": { - "line": 51, - "column": 64 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1512, - "end": 1513, - "loc": { - "start": { - "line": 52, - "column": 10 - }, - "end": { - "line": 52, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "map", - "start": 1513, - "end": 1516, - "loc": { - "start": { - "line": 52, - "column": 11 - }, - "end": { - "line": 52, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1516, - "end": 1517, - "loc": { - "start": { - "line": 52, - "column": 14 - }, - "end": { - "line": 52, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "routing", - "start": 1517, - "end": 1524, - "loc": { - "start": { - "line": 52, - "column": 15 - }, - "end": { - "line": 52, - "column": 22 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1525, - "end": 1527, - "loc": { - "start": { - "line": 52, - "column": 23 - }, - "end": { - "line": 52, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "routing", - "start": 1528, - "end": 1535, - "loc": { - "start": { - "line": 52, - "column": 26 - }, - "end": { - "line": 52, - "column": 33 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1535, - "end": 1536, - "loc": { - "start": { - "line": 52, - "column": 33 - }, - "end": { - "line": 52, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 1536, - "end": 1540, - "loc": { - "start": { - "line": 52, - "column": 34 - }, - "end": { - "line": 52, - "column": 38 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1540, - "end": 1541, - "loc": { - "start": { - "line": 52, - "column": 38 - }, - "end": { - "line": 52, - "column": 39 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1552, - "end": 1553, - "loc": { - "start": { - "line": 53, - "column": 10 - }, - "end": { - "line": 53, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "reduce", - "start": 1553, - "end": 1559, - "loc": { - "start": { - "line": 53, - "column": 11 - }, - "end": { - "line": 53, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1559, - "end": 1560, - "loc": { - "start": { - "line": 53, - "column": 17 - }, - "end": { - "line": 53, - "column": 18 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1560, - "end": 1561, - "loc": { - "start": { - "line": 53, - "column": 18 - }, - "end": { - "line": 53, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "acc", - "start": 1561, - "end": 1564, - "loc": { - "start": { - "line": 53, - "column": 19 - }, - "end": { - "line": 53, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1564, - "end": 1565, - "loc": { - "start": { - "line": 53, - "column": 22 - }, - "end": { - "line": 53, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 1566, - "end": 1567, - "loc": { - "start": { - "line": 53, - "column": 24 - }, - "end": { - "line": 53, - "column": 25 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1567, - "end": 1568, - "loc": { - "start": { - "line": 53, - "column": 25 - }, - "end": { - "line": 53, - "column": 26 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1569, - "end": 1571, - "loc": { - "start": { - "line": 53, - "column": 27 - }, - "end": { - "line": 53, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "acc", - "start": 1572, - "end": 1575, - "loc": { - "start": { - "line": 53, - "column": 30 - }, - "end": { - "line": 53, - "column": 33 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1575, - "end": 1576, - "loc": { - "start": { - "line": 53, - "column": 33 - }, - "end": { - "line": 53, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "concat", - "start": 1576, - "end": 1582, - "loc": { - "start": { - "line": 53, - "column": 34 - }, - "end": { - "line": 53, - "column": 40 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1582, - "end": 1583, - "loc": { - "start": { - "line": 53, - "column": 40 - }, - "end": { - "line": 53, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 1583, - "end": 1584, - "loc": { - "start": { - "line": 53, - "column": 41 - }, - "end": { - "line": 53, - "column": 42 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1584, - "end": 1585, - "loc": { - "start": { - "line": 53, - "column": 42 - }, - "end": { - "line": 53, - "column": 43 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1585, - "end": 1586, - "loc": { - "start": { - "line": 53, - "column": 43 - }, - "end": { - "line": 53, - "column": 44 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1587, - "end": 1588, - "loc": { - "start": { - "line": 53, - "column": 45 - }, - "end": { - "line": 53, - "column": 46 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1588, - "end": 1589, - "loc": { - "start": { - "line": 53, - "column": 46 - }, - "end": { - "line": 53, - "column": 47 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1589, - "end": 1590, - "loc": { - "start": { - "line": 53, - "column": 47 - }, - "end": { - "line": 53, - "column": 48 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1601, - "end": 1602, - "loc": { - "start": { - "line": 54, - "column": 10 - }, - "end": { - "line": 54, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "some", - "start": 1602, - "end": 1606, - "loc": { - "start": { - "line": 54, - "column": 11 - }, - "end": { - "line": 54, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1606, - "end": 1607, - "loc": { - "start": { - "line": 54, - "column": 15 - }, - "end": { - "line": 54, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "role", - "start": 1607, - "end": 1611, - "loc": { - "start": { - "line": 54, - "column": 16 - }, - "end": { - "line": 54, - "column": 20 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1612, - "end": 1614, - "loc": { - "start": { - "line": 54, - "column": 21 - }, - "end": { - "line": 54, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "role", - "start": 1615, - "end": 1619, - "loc": { - "start": { - "line": 54, - "column": 24 - }, - "end": { - "line": 54, - "column": 28 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1619, - "end": 1620, - "loc": { - "start": { - "line": 54, - "column": 28 - }, - "end": { - "line": 54, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "default_email", - "start": 1620, - "end": 1633, - "loc": { - "start": { - "line": 54, - "column": 29 - }, - "end": { - "line": 54, - "column": 42 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 1634, - "end": 1637, - "loc": { - "start": { - "line": 54, - "column": 43 - }, - "end": { - "line": 54, - "column": 46 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 1638, - "end": 1640, - "loc": { - "start": { - "line": 54, - "column": 47 - }, - "end": { - "line": 54, - "column": 49 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1640, - "end": 1641, - "loc": { - "start": { - "line": 54, - "column": 49 - }, - "end": { - "line": 54, - "column": 50 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1641, - "end": 1642, - "loc": { - "start": { - "line": 54, - "column": 50 - }, - "end": { - "line": 54, - "column": 51 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 1652, - "end": 1654, - "loc": { - "start": { - "line": 56, - "column": 8 - }, - "end": { - "line": 56, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1655, - "end": 1656, - "loc": { - "start": { - "line": 56, - "column": 11 - }, - "end": { - "line": 56, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documentHasAtLeastOneUnfixedRole", - "start": 1656, - "end": 1688, - "loc": { - "start": { - "line": 56, - "column": 12 - }, - "end": { - "line": 56, - "column": 44 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1688, - "end": 1689, - "loc": { - "start": { - "line": 56, - "column": 44 - }, - "end": { - "line": 56, - "column": 45 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1690, - "end": 1691, - "loc": { - "start": { - "line": 56, - "column": 46 - }, - "end": { - "line": 56, - "column": 47 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1702, - "end": 1707, - "loc": { - "start": { - "line": 57, - "column": 10 - }, - "end": { - "line": 57, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 1708, - "end": 1716, - "loc": { - "start": { - "line": 57, - "column": 16 - }, - "end": { - "line": 57, - "column": 24 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1717, - "end": 1718, - "loc": { - "start": { - "line": 57, - "column": 25 - }, - "end": { - "line": 57, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSON", - "start": 1719, - "end": 1723, - "loc": { - "start": { - "line": 57, - "column": 27 - }, - "end": { - "line": 57, - "column": 31 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1723, - "end": 1724, - "loc": { - "start": { - "line": 57, - "column": 31 - }, - "end": { - "line": 57, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "stringify", - "start": 1724, - "end": 1733, - "loc": { - "start": { - "line": 57, - "column": 32 - }, - "end": { - "line": 57, - "column": 41 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1733, - "end": 1734, - "loc": { - "start": { - "line": 57, - "column": 41 - }, - "end": { - "line": 57, - "column": 42 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1734, - "end": 1735, - "loc": { - "start": { - "line": 57, - "column": 42 - }, - "end": { - "line": 57, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_id", - "start": 1736, - "end": 1747, - "loc": { - "start": { - "line": 57, - "column": 44 - }, - "end": { - "line": 57, - "column": 55 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1748, - "end": 1749, - "loc": { - "start": { - "line": 57, - "column": 56 - }, - "end": { - "line": 57, - "column": 57 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1749, - "end": 1750, - "loc": { - "start": { - "line": 57, - "column": 57 - }, - "end": { - "line": 57, - "column": 58 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1750, - "end": 1751, - "loc": { - "start": { - "line": 57, - "column": 58 - }, - "end": { - "line": 57, - "column": 59 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1762, - "end": 1767, - "loc": { - "start": { - "line": 58, - "column": 10 - }, - "end": { - "line": 58, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 1768, - "end": 1771, - "loc": { - "start": { - "line": 58, - "column": 16 - }, - "end": { - "line": 58, - "column": 19 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1772, - "end": 1773, - "loc": { - "start": { - "line": 58, - "column": 20 - }, - "end": { - "line": 58, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 1774, - "end": 1779, - "loc": { - "start": { - "line": 58, - "column": 22 - }, - "end": { - "line": 58, - "column": 27 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1792, - "end": 1793, - "loc": { - "start": { - "line": 59, - "column": 12 - }, - "end": { - "line": 59, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 1793, - "end": 1800, - "loc": { - "start": { - "line": 59, - "column": 13 - }, - "end": { - "line": 59, - "column": 20 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1800, - "end": 1801, - "loc": { - "start": { - "line": 59, - "column": 20 - }, - "end": { - "line": 59, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 1801, - "end": 1820, - "loc": { - "start": { - "line": 59, - "column": 21 - }, - "end": { - "line": 59, - "column": 40 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1820, - "end": 1821, - "loc": { - "start": { - "line": 59, - "column": 40 - }, - "end": { - "line": 59, - "column": 41 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1821, - "end": 1822, - "loc": { - "start": { - "line": 59, - "column": 41 - }, - "end": { - "line": 59, - "column": 42 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 1837, - "end": 1843, - "loc": { - "start": { - "line": 60, - "column": 14 - }, - "end": { - "line": 60, - "column": 20 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1843, - "end": 1844, - "loc": { - "start": { - "line": 60, - "column": 20 - }, - "end": { - "line": 60, - "column": 21 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "POST", - "start": 1845, - "end": 1851, - "loc": { - "start": { - "line": 60, - "column": 22 - }, - "end": { - "line": 60, - "column": 28 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1851, - "end": 1852, - "loc": { - "start": { - "line": 60, - "column": 28 - }, - "end": { - "line": 60, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 1867, - "end": 1871, - "loc": { - "start": { - "line": 61, - "column": 14 - }, - "end": { - "line": 61, - "column": 18 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1871, - "end": 1872, - "loc": { - "start": { - "line": 61, - "column": 18 - }, - "end": { - "line": 61, - "column": 19 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/link", - "start": 1873, - "end": 1880, - "loc": { - "start": { - "line": 61, - "column": 20 - }, - "end": { - "line": 61, - "column": 27 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1880, - "end": 1881, - "loc": { - "start": { - "line": 61, - "column": 27 - }, - "end": { - "line": 61, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 1896, - "end": 1909, - "loc": { - "start": { - "line": 62, - "column": 14 - }, - "end": { - "line": 62, - "column": 27 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1909, - "end": 1910, - "loc": { - "start": { - "line": 62, - "column": 27 - }, - "end": { - "line": 62, - "column": 28 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1911, - "end": 1912, - "loc": { - "start": { - "line": 62, - "column": 29 - }, - "end": { - "line": 62, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 1929, - "end": 1933, - "loc": { - "start": { - "line": 63, - "column": 16 - }, - "end": { - "line": 63, - "column": 20 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1933, - "end": 1934, - "loc": { - "start": { - "line": 63, - "column": 20 - }, - "end": { - "line": 63, - "column": 21 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 1935, - "end": 1943, - "loc": { - "start": { - "line": 63, - "column": 22 - }, - "end": { - "line": 63, - "column": 30 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1943, - "end": 1944, - "loc": { - "start": { - "line": 63, - "column": 30 - }, - "end": { - "line": 63, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 1961, - "end": 1966, - "loc": { - "start": { - "line": 64, - "column": 16 - }, - "end": { - "line": 64, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1966, - "end": 1967, - "loc": { - "start": { - "line": 64, - "column": 21 - }, - "end": { - "line": 64, - "column": 22 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1982, - "end": 1983, - "loc": { - "start": { - "line": 65, - "column": 14 - }, - "end": { - "line": 65, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1983, - "end": 1984, - "loc": { - "start": { - "line": 65, - "column": 15 - }, - "end": { - "line": 65, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 1999, - "end": 2006, - "loc": { - "start": { - "line": 66, - "column": 14 - }, - "end": { - "line": 66, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2006, - "end": 2007, - "loc": { - "start": { - "line": 66, - "column": 21 - }, - "end": { - "line": 66, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2008, - "end": 2009, - "loc": { - "start": { - "line": 66, - "column": 23 - }, - "end": { - "line": 66, - "column": 24 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type", - "start": 2026, - "end": 2040, - "loc": { - "start": { - "line": 67, - "column": 16 - }, - "end": { - "line": 67, - "column": 30 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2040, - "end": 2041, - "loc": { - "start": { - "line": 67, - "column": 30 - }, - "end": { - "line": 67, - "column": 31 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/json", - "start": 2042, - "end": 2060, - "loc": { - "start": { - "line": 67, - "column": 32 - }, - "end": { - "line": 67, - "column": 50 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2060, - "end": 2061, - "loc": { - "start": { - "line": 67, - "column": 50 - }, - "end": { - "line": 67, - "column": 51 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Length", - "start": 2078, - "end": 2094, - "loc": { - "start": { - "line": 68, - "column": 16 - }, - "end": { - "line": 68, - "column": 32 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2094, - "end": 2095, - "loc": { - "start": { - "line": 68, - "column": 32 - }, - "end": { - "line": 68, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 2096, - "end": 2102, - "loc": { - "start": { - "line": 68, - "column": 34 - }, - "end": { - "line": 68, - "column": 40 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2102, - "end": 2103, - "loc": { - "start": { - "line": 68, - "column": 40 - }, - "end": { - "line": 68, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "byteLength", - "start": 2103, - "end": 2113, - "loc": { - "start": { - "line": 68, - "column": 41 - }, - "end": { - "line": 68, - "column": 51 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2113, - "end": 2114, - "loc": { - "start": { - "line": 68, - "column": 51 - }, - "end": { - "line": 68, - "column": 52 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 2114, - "end": 2122, - "loc": { - "start": { - "line": 68, - "column": 52 - }, - "end": { - "line": 68, - "column": 60 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2122, - "end": 2123, - "loc": { - "start": { - "line": 68, - "column": 60 - }, - "end": { - "line": 68, - "column": 61 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2123, - "end": 2124, - "loc": { - "start": { - "line": 68, - "column": 61 - }, - "end": { - "line": 68, - "column": 62 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2139, - "end": 2140, - "loc": { - "start": { - "line": 69, - "column": 14 - }, - "end": { - "line": 69, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2140, - "end": 2141, - "loc": { - "start": { - "line": 69, - "column": 15 - }, - "end": { - "line": 69, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2154, - "end": 2155, - "loc": { - "start": { - "line": 70, - "column": 12 - }, - "end": { - "line": 70, - "column": 13 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2155, - "end": 2156, - "loc": { - "start": { - "line": 70, - "column": 13 - }, - "end": { - "line": 70, - "column": 14 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2156, - "end": 2157, - "loc": { - "start": { - "line": 70, - "column": 14 - }, - "end": { - "line": 70, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 2158, - "end": 2173, - "loc": { - "start": { - "line": 70, - "column": 16 - }, - "end": { - "line": 70, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2173, - "end": 2174, - "loc": { - "start": { - "line": 70, - "column": 31 - }, - "end": { - "line": 70, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 2174, - "end": 2182, - "loc": { - "start": { - "line": 70, - "column": 32 - }, - "end": { - "line": 70, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2182, - "end": 2183, - "loc": { - "start": { - "line": 70, - "column": 40 - }, - "end": { - "line": 70, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2183, - "end": 2184, - "loc": { - "start": { - "line": 70, - "column": 41 - }, - "end": { - "line": 70, - "column": 42 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2197, - "end": 2198, - "loc": { - "start": { - "line": 71, - "column": 12 - }, - "end": { - "line": 71, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 2198, - "end": 2200, - "loc": { - "start": { - "line": 71, - "column": 13 - }, - "end": { - "line": 71, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2200, - "end": 2201, - "loc": { - "start": { - "line": 71, - "column": 15 - }, - "end": { - "line": 71, - "column": 16 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 2201, - "end": 2208, - "loc": { - "start": { - "line": 71, - "column": 16 - }, - "end": { - "line": 71, - "column": 23 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2208, - "end": 2209, - "loc": { - "start": { - "line": 71, - "column": 23 - }, - "end": { - "line": 71, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 2210, - "end": 2222, - "loc": { - "start": { - "line": 71, - "column": 25 - }, - "end": { - "line": 71, - "column": 37 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2222, - "end": 2223, - "loc": { - "start": { - "line": 71, - "column": 37 - }, - "end": { - "line": 71, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 2223, - "end": 2231, - "loc": { - "start": { - "line": 71, - "column": 38 - }, - "end": { - "line": 71, - "column": 46 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2231, - "end": 2232, - "loc": { - "start": { - "line": 71, - "column": 46 - }, - "end": { - "line": 71, - "column": 47 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2232, - "end": 2233, - "loc": { - "start": { - "line": 71, - "column": 47 - }, - "end": { - "line": 71, - "column": 48 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2233, - "end": 2234, - "loc": { - "start": { - "line": 71, - "column": 48 - }, - "end": { - "line": 71, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 2246, - "end": 2249, - "loc": { - "start": { - "line": 73, - "column": 10 - }, - "end": { - "line": 73, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2249, - "end": 2250, - "loc": { - "start": { - "line": 73, - "column": 13 - }, - "end": { - "line": 73, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "write", - "start": 2250, - "end": 2255, - "loc": { - "start": { - "line": 73, - "column": 14 - }, - "end": { - "line": 73, - "column": 19 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2255, - "end": 2256, - "loc": { - "start": { - "line": 73, - "column": 19 - }, - "end": { - "line": 73, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 2256, - "end": 2264, - "loc": { - "start": { - "line": 73, - "column": 20 - }, - "end": { - "line": 73, - "column": 28 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2264, - "end": 2265, - "loc": { - "start": { - "line": 73, - "column": 28 - }, - "end": { - "line": 73, - "column": 29 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2265, - "end": 2266, - "loc": { - "start": { - "line": 73, - "column": 29 - }, - "end": { - "line": 73, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 2277, - "end": 2280, - "loc": { - "start": { - "line": 74, - "column": 10 - }, - "end": { - "line": 74, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2280, - "end": 2281, - "loc": { - "start": { - "line": 74, - "column": 13 - }, - "end": { - "line": 74, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 2281, - "end": 2284, - "loc": { - "start": { - "line": 74, - "column": 14 - }, - "end": { - "line": 74, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2284, - "end": 2285, - "loc": { - "start": { - "line": 74, - "column": 17 - }, - "end": { - "line": 74, - "column": 18 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2285, - "end": 2286, - "loc": { - "start": { - "line": 74, - "column": 18 - }, - "end": { - "line": 74, - "column": 19 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2286, - "end": 2287, - "loc": { - "start": { - "line": 74, - "column": 19 - }, - "end": { - "line": 74, - "column": 20 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2296, - "end": 2297, - "loc": { - "start": { - "line": 75, - "column": 8 - }, - "end": { - "line": 75, - "column": 9 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 2298, - "end": 2302, - "loc": { - "start": { - "line": 75, - "column": 10 - }, - "end": { - "line": 75, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2303, - "end": 2304, - "loc": { - "start": { - "line": 75, - "column": 15 - }, - "end": { - "line": 75, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 2315, - "end": 2323, - "loc": { - "start": { - "line": 76, - "column": 10 - }, - "end": { - "line": 76, - "column": 18 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2323, - "end": 2324, - "loc": { - "start": { - "line": 76, - "column": 18 - }, - "end": { - "line": 76, - "column": 19 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "A document must have at least one role that does not have a fixed e-mail to create an invite link.", - "start": 2324, - "end": 2424, - "loc": { - "start": { - "line": 76, - "column": 19 - }, - "end": { - "line": 76, - "column": 119 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2424, - "end": 2425, - "loc": { - "start": { - "line": 76, - "column": 119 - }, - "end": { - "line": 76, - "column": 120 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2425, - "end": 2426, - "loc": { - "start": { - "line": 76, - "column": 120 - }, - "end": { - "line": 76, - "column": 121 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 2437, - "end": 2443, - "loc": { - "start": { - "line": 77, - "column": 10 - }, - "end": { - "line": 77, - "column": 16 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2443, - "end": 2444, - "loc": { - "start": { - "line": 77, - "column": 16 - }, - "end": { - "line": 77, - "column": 17 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2453, - "end": 2454, - "loc": { - "start": { - "line": 78, - "column": 8 - }, - "end": { - "line": 78, - "column": 9 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2461, - "end": 2462, - "loc": { - "start": { - "line": 79, - "column": 6 - }, - "end": { - "line": 79, - "column": 7 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2467, - "end": 2468, - "loc": { - "start": { - "line": 80, - "column": 4 - }, - "end": { - "line": 80, - "column": 5 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2468, - "end": 2469, - "loc": { - "start": { - "line": 80, - "column": 5 - }, - "end": { - "line": 80, - "column": 6 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2469, - "end": 2470, - "loc": { - "start": { - "line": 80, - "column": 6 - }, - "end": { - "line": 80, - "column": 7 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2473, - "end": 2474, - "loc": { - "start": { - "line": 81, - "column": 2 - }, - "end": { - "line": 81, - "column": 3 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2475, - "end": 2476, - "loc": { - "start": { - "line": 82, - "column": 0 - }, - "end": { - "line": 82, - "column": 1 - } - } - }, - { - "type": { - "label": "export", - "keyword": "export", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "export", - "start": 2478, - "end": 2484, - "loc": { - "start": { - "line": 84, - "column": 0 - }, - "end": { - "line": 84, - "column": 6 - } - } - }, - { - "type": { - "label": "default", - "keyword": "default", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "default", - "start": 2485, - "end": 2492, - "loc": { - "start": { - "line": 84, - "column": 7 - }, - "end": { - "line": 84, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Link", - "start": 2493, - "end": 2497, - "loc": { - "start": { - "line": 84, - "column": 15 - }, - "end": { - "line": 84, - "column": 19 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2497, - "end": 2498, - "loc": { - "start": { - "line": 84, - "column": 19 - }, - "end": { - "line": 84, - "column": 20 - } - } - }, - { - "type": { - "label": "eof", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2499, - "end": 2499, - "loc": { - "start": { - "line": 85, - "column": 0 - }, - "end": { - "line": 85, - "column": 0 - } - } - } - ] -} \ No newline at end of file diff --git a/docs/ast/source/oauth2.js.json b/docs/ast/source/oauth2.js.json deleted file mode 100644 index 9bb9a348..00000000 --- a/docs/ast/source/oauth2.js.json +++ /dev/null @@ -1,17664 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 4440, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 133, - "column": 0 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 4440, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 133, - "column": 0 - } - }, - "sourceType": "module", - "body": [ - { - "type": "ImportDeclaration", - "start": 14, - "end": 40, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 26 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - } - }, - "local": { - "type": "Identifier", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - }, - "identifierName": "https" - }, - "name": "https" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 18 - }, - "end": { - "line": 2, - "column": 25 - } - }, - "extra": { - "rawValue": "https", - "raw": "'https'" - }, - "value": "https" - } - }, - { - "type": "ImportDeclaration", - "start": 41, - "end": 79, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 38 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 48, - "end": 59, - "loc": { - "start": { - "line": 3, - "column": 7 - }, - "end": { - "line": 3, - "column": 18 - } - }, - "local": { - "type": "Identifier", - "start": 48, - "end": 59, - "loc": { - "start": { - "line": 3, - "column": 7 - }, - "end": { - "line": 3, - "column": 18 - }, - "identifierName": "querystring" - }, - "name": "querystring" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 65, - "end": 78, - "loc": { - "start": { - "line": 3, - "column": 24 - }, - "end": { - "line": 3, - "column": 37 - } - }, - "extra": { - "rawValue": "querystring", - "raw": "'querystring'" - }, - "value": "querystring" - } - }, - { - "type": "ImportDeclaration", - "start": 80, - "end": 161, - "loc": { - "start": { - "line": 4, - "column": 0 - }, - "end": { - "line": 6, - "column": 18 - } - }, - "specifiers": [ - { - "type": "ImportSpecifier", - "start": 91, - "end": 106, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 17 - } - }, - "imported": { - "type": "Identifier", - "start": 91, - "end": 106, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "local": { - "type": "Identifier", - "start": 91, - "end": 106, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - } - }, - { - "type": "ImportSpecifier", - "start": 108, - "end": 120, - "loc": { - "start": { - "line": 5, - "column": 19 - }, - "end": { - "line": 5, - "column": 31 - } - }, - "imported": { - "type": "Identifier", - "start": 108, - "end": 120, - "loc": { - "start": { - "line": 5, - "column": 19 - }, - "end": { - "line": 5, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "local": { - "type": "Identifier", - "start": 108, - "end": 120, - "loc": { - "start": { - "line": 5, - "column": 19 - }, - "end": { - "line": 5, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - } - }, - { - "type": "ImportSpecifier", - "start": 122, - "end": 141, - "loc": { - "start": { - "line": 5, - "column": 33 - }, - "end": { - "line": 5, - "column": 52 - } - }, - "imported": { - "type": "Identifier", - "start": 122, - "end": 141, - "loc": { - "start": { - "line": 5, - "column": 33 - }, - "end": { - "line": 5, - "column": 52 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "local": { - "type": "Identifier", - "start": 122, - "end": 141, - "loc": { - "start": { - "line": 5, - "column": 33 - }, - "end": { - "line": 5, - "column": 52 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 150, - "end": 160, - "loc": { - "start": { - "line": 6, - "column": 7 - }, - "end": { - "line": 6, - "column": 17 - } - }, - "extra": { - "rawValue": "./common", - "raw": "'./common'" - }, - "value": "./common" - }, - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * OAuth2 methods\n ", - "start": 163, - "end": 188, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 10, - "column": 3 - } - } - } - ] - }, - { - "type": "Identifier", - "start": 189, - "end": 4415, - "loc": { - "start": { - "line": 11, - "column": 0 - }, - "end": { - "line": 130, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 195, - "end": 201, - "loc": { - "start": { - "line": 11, - "column": 6 - }, - "end": { - "line": 11, - "column": 12 - }, - "identifierName": "OAuth2" - }, - "name": "OAuth2", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 202, - "end": 4415, - "loc": { - "start": { - "line": 11, - "column": 13 - }, - "end": { - "line": 130, - "column": 1 - } - }, - "body": [ - { - "type": "ClassMethod", - "start": 1069, - "end": 1708, - "loc": { - "start": { - "line": 35, - "column": 2 - }, - "end": { - "line": 52, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1076, - "end": 1088, - "loc": { - "start": { - "line": 35, - "column": 9 - }, - "end": { - "line": 35, - "column": 21 - }, - "identifierName": "requestToken" - }, - "name": "requestToken" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1090, - "end": 1094, - "loc": { - "start": { - "line": 35, - "column": 23 - }, - "end": { - "line": 35, - "column": 27 - }, - "identifierName": "data" - }, - "name": "data" - }, - { - "type": "Identifier", - "start": 1096, - "end": 1104, - "loc": { - "start": { - "line": 35, - "column": 29 - }, - "end": { - "line": 35, - "column": 37 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 1106, - "end": 1708, - "loc": { - "start": { - "line": 35, - "column": 39 - }, - "end": { - "line": 52, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 1112, - "end": 1181, - "loc": { - "start": { - "line": 36, - "column": 4 - }, - "end": { - "line": 36, - "column": 73 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1118, - "end": 1180, - "loc": { - "start": { - "line": 36, - "column": 10 - }, - "end": { - "line": 36, - "column": 72 - } - }, - "id": { - "type": "Identifier", - "start": 1118, - "end": 1126, - "loc": { - "start": { - "line": 36, - "column": 10 - }, - "end": { - "line": 36, - "column": 18 - }, - "identifierName": "dataCopy" - }, - "name": "dataCopy" - }, - "init": { - "type": "CallExpression", - "start": 1129, - "end": 1180, - "loc": { - "start": { - "line": 36, - "column": 21 - }, - "end": { - "line": 36, - "column": 72 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1129, - "end": 1142, - "loc": { - "start": { - "line": 36, - "column": 21 - }, - "end": { - "line": 36, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 1129, - "end": 1135, - "loc": { - "start": { - "line": 36, - "column": 21 - }, - "end": { - "line": 36, - "column": 27 - }, - "identifierName": "Object" - }, - "name": "Object" - }, - "property": { - "type": "Identifier", - "start": 1136, - "end": 1142, - "loc": { - "start": { - "line": 36, - "column": 28 - }, - "end": { - "line": 36, - "column": 34 - }, - "identifierName": "assign" - }, - "name": "assign" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 1143, - "end": 1145, - "loc": { - "start": { - "line": 36, - "column": 35 - }, - "end": { - "line": 36, - "column": 37 - } - }, - "properties": [] - }, - { - "type": "Identifier", - "start": 1147, - "end": 1151, - "loc": { - "start": { - "line": 36, - "column": 39 - }, - "end": { - "line": 36, - "column": 43 - }, - "identifierName": "data" - }, - "name": "data" - }, - { - "type": "ObjectExpression", - "start": 1153, - "end": 1179, - "loc": { - "start": { - "line": 36, - "column": 45 - }, - "end": { - "line": 36, - "column": 71 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1155, - "end": 1177, - "loc": { - "start": { - "line": 36, - "column": 47 - }, - "end": { - "line": 36, - "column": 69 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1155, - "end": 1165, - "loc": { - "start": { - "line": 36, - "column": 47 - }, - "end": { - "line": 36, - "column": 57 - }, - "identifierName": "grant_type" - }, - "name": "grant_type" - }, - "value": { - "type": "StringLiteral", - "start": 1167, - "end": 1177, - "loc": { - "start": { - "line": 36, - "column": 59 - }, - "end": { - "line": 36, - "column": 69 - } - }, - "extra": { - "rawValue": "password", - "raw": "'password'" - }, - "value": "password" - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 1186, - "end": 1262, - "loc": { - "start": { - "line": 37, - "column": 4 - }, - "end": { - "line": 37, - "column": 80 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1192, - "end": 1261, - "loc": { - "start": { - "line": 37, - "column": 10 - }, - "end": { - "line": 37, - "column": 79 - } - }, - "id": { - "type": "Identifier", - "start": 1192, - "end": 1207, - "loc": { - "start": { - "line": 37, - "column": 10 - }, - "end": { - "line": 37, - "column": 25 - }, - "identifierName": "dataStringified" - }, - "name": "dataStringified" - }, - "init": { - "type": "CallExpression", - "start": 1210, - "end": 1261, - "loc": { - "start": { - "line": 37, - "column": 28 - }, - "end": { - "line": 37, - "column": 79 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1210, - "end": 1249, - "loc": { - "start": { - "line": 37, - "column": 28 - }, - "end": { - "line": 37, - "column": 67 - } - }, - "object": { - "type": "CallExpression", - "start": 1210, - "end": 1241, - "loc": { - "start": { - "line": 37, - "column": 28 - }, - "end": { - "line": 37, - "column": 59 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1210, - "end": 1231, - "loc": { - "start": { - "line": 37, - "column": 28 - }, - "end": { - "line": 37, - "column": 49 - } - }, - "object": { - "type": "Identifier", - "start": 1210, - "end": 1221, - "loc": { - "start": { - "line": 37, - "column": 28 - }, - "end": { - "line": 37, - "column": 39 - }, - "identifierName": "querystring" - }, - "name": "querystring" - }, - "property": { - "type": "Identifier", - "start": 1222, - "end": 1231, - "loc": { - "start": { - "line": 37, - "column": 40 - }, - "end": { - "line": 37, - "column": 49 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1232, - "end": 1240, - "loc": { - "start": { - "line": 37, - "column": 50 - }, - "end": { - "line": 37, - "column": 58 - }, - "identifierName": "dataCopy" - }, - "name": "dataCopy" - } - ] - }, - "property": { - "type": "Identifier", - "start": 1242, - "end": 1249, - "loc": { - "start": { - "line": 37, - "column": 60 - }, - "end": { - "line": 37, - "column": 67 - }, - "identifierName": "replace" - }, - "name": "replace" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 1250, - "end": 1255, - "loc": { - "start": { - "line": 37, - "column": 68 - }, - "end": { - "line": 37, - "column": 73 - } - }, - "extra": { - "rawValue": "%40", - "raw": "'%40'" - }, - "value": "%40" - }, - { - "type": "StringLiteral", - "start": 1257, - "end": 1260, - "loc": { - "start": { - "line": 37, - "column": 75 - }, - "end": { - "line": 37, - "column": 78 - } - }, - "extra": { - "rawValue": "@", - "raw": "'@'" - }, - "value": "@" - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 1267, - "end": 1656, - "loc": { - "start": { - "line": 38, - "column": 4 - }, - "end": { - "line": 48, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1273, - "end": 1655, - "loc": { - "start": { - "line": 38, - "column": 10 - }, - "end": { - "line": 48, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 1273, - "end": 1276, - "loc": { - "start": { - "line": 38, - "column": 10 - }, - "end": { - "line": 38, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 1279, - "end": 1655, - "loc": { - "start": { - "line": 38, - "column": 16 - }, - "end": { - "line": 48, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1279, - "end": 1622, - "loc": { - "start": { - "line": 38, - "column": 16 - }, - "end": { - "line": 48, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 1279, - "end": 1612, - "loc": { - "start": { - "line": 38, - "column": 16 - }, - "end": { - "line": 47, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1279, - "end": 1299, - "loc": { - "start": { - "line": 38, - "column": 16 - }, - "end": { - "line": 39, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 1279, - "end": 1284, - "loc": { - "start": { - "line": 38, - "column": 16 - }, - "end": { - "line": 38, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 1292, - "end": 1299, - "loc": { - "start": { - "line": 39, - "column": 7 - }, - "end": { - "line": 39, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 1300, - "end": 1584, - "loc": { - "start": { - "line": 39, - "column": 15 - }, - "end": { - "line": 47, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 1300, - "end": 1319, - "loc": { - "start": { - "line": 39, - "column": 15 - }, - "end": { - "line": 39, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 1320, - "end": 1583, - "loc": { - "start": { - "line": 39, - "column": 35 - }, - "end": { - "line": 47, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1330, - "end": 1344, - "loc": { - "start": { - "line": 40, - "column": 8 - }, - "end": { - "line": 40, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1330, - "end": 1336, - "loc": { - "start": { - "line": 40, - "column": 8 - }, - "end": { - "line": 40, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 1338, - "end": 1344, - "loc": { - "start": { - "line": 40, - "column": 16 - }, - "end": { - "line": 40, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 1354, - "end": 1375, - "loc": { - "start": { - "line": 41, - "column": 8 - }, - "end": { - "line": 41, - "column": 29 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1354, - "end": 1358, - "loc": { - "start": { - "line": 41, - "column": 8 - }, - "end": { - "line": 41, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 1360, - "end": 1375, - "loc": { - "start": { - "line": 41, - "column": 14 - }, - "end": { - "line": 41, - "column": 29 - } - }, - "extra": { - "rawValue": "/oauth2/token", - "raw": "'/oauth2/token'" - }, - "value": "/oauth2/token" - } - }, - { - "type": "ObjectProperty", - "start": 1385, - "end": 1417, - "loc": { - "start": { - "line": 42, - "column": 8 - }, - "end": { - "line": 42, - "column": 40 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1385, - "end": 1398, - "loc": { - "start": { - "line": 42, - "column": 8 - }, - "end": { - "line": 42, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 1400, - "end": 1417, - "loc": { - "start": { - "line": 42, - "column": 23 - }, - "end": { - "line": 42, - "column": 40 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1402, - "end": 1415, - "loc": { - "start": { - "line": 42, - "column": 25 - }, - "end": { - "line": 42, - "column": 38 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1402, - "end": 1406, - "loc": { - "start": { - "line": 42, - "column": 25 - }, - "end": { - "line": 42, - "column": 29 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 1408, - "end": 1415, - "loc": { - "start": { - "line": 42, - "column": 31 - }, - "end": { - "line": 42, - "column": 38 - } - }, - "extra": { - "rawValue": "Basic", - "raw": "'Basic'" - }, - "value": "Basic" - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 1427, - "end": 1574, - "loc": { - "start": { - "line": 43, - "column": 8 - }, - "end": { - "line": 46, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1427, - "end": 1434, - "loc": { - "start": { - "line": 43, - "column": 8 - }, - "end": { - "line": 43, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 1436, - "end": 1574, - "loc": { - "start": { - "line": 43, - "column": 17 - }, - "end": { - "line": 46, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1448, - "end": 1499, - "loc": { - "start": { - "line": 44, - "column": 10 - }, - "end": { - "line": 44, - "column": 61 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 1448, - "end": 1462, - "loc": { - "start": { - "line": 44, - "column": 10 - }, - "end": { - "line": 44, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 1464, - "end": 1499, - "loc": { - "start": { - "line": 44, - "column": 26 - }, - "end": { - "line": 44, - "column": 61 - } - }, - "extra": { - "rawValue": "application/x-www-form-urlencoded", - "raw": "'application/x-www-form-urlencoded'" - }, - "value": "application/x-www-form-urlencoded" - } - }, - { - "type": "ObjectProperty", - "start": 1511, - "end": 1563, - "loc": { - "start": { - "line": 45, - "column": 10 - }, - "end": { - "line": 45, - "column": 62 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 1511, - "end": 1527, - "loc": { - "start": { - "line": 45, - "column": 10 - }, - "end": { - "line": 45, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 1529, - "end": 1563, - "loc": { - "start": { - "line": 45, - "column": 28 - }, - "end": { - "line": 45, - "column": 62 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1529, - "end": 1546, - "loc": { - "start": { - "line": 45, - "column": 28 - }, - "end": { - "line": 45, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 1529, - "end": 1535, - "loc": { - "start": { - "line": 45, - "column": 28 - }, - "end": { - "line": 45, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 1536, - "end": 1546, - "loc": { - "start": { - "line": 45, - "column": 35 - }, - "end": { - "line": 45, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1547, - "end": 1562, - "loc": { - "start": { - "line": 45, - "column": 46 - }, - "end": { - "line": 45, - "column": 61 - }, - "identifierName": "dataStringified" - }, - "name": "dataStringified" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 1586, - "end": 1611, - "loc": { - "start": { - "line": 47, - "column": 10 - }, - "end": { - "line": 47, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 1586, - "end": 1601, - "loc": { - "start": { - "line": 47, - "column": 10 - }, - "end": { - "line": 47, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1602, - "end": 1610, - "loc": { - "start": { - "line": 47, - "column": 26 - }, - "end": { - "line": 47, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 1620, - "end": 1622, - "loc": { - "start": { - "line": 48, - "column": 7 - }, - "end": { - "line": 48, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 1623, - "end": 1630, - "loc": { - "start": { - "line": 48, - "column": 10 - }, - "end": { - "line": 48, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 1632, - "end": 1654, - "loc": { - "start": { - "line": 48, - "column": 19 - }, - "end": { - "line": 48, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 1632, - "end": 1644, - "loc": { - "start": { - "line": 48, - "column": 19 - }, - "end": { - "line": 48, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1645, - "end": 1653, - "loc": { - "start": { - "line": 48, - "column": 32 - }, - "end": { - "line": 48, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 1662, - "end": 1689, - "loc": { - "start": { - "line": 50, - "column": 4 - }, - "end": { - "line": 50, - "column": 31 - } - }, - "expression": { - "type": "CallExpression", - "start": 1662, - "end": 1688, - "loc": { - "start": { - "line": 50, - "column": 4 - }, - "end": { - "line": 50, - "column": 30 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1662, - "end": 1671, - "loc": { - "start": { - "line": 50, - "column": 4 - }, - "end": { - "line": 50, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 1662, - "end": 1665, - "loc": { - "start": { - "line": 50, - "column": 4 - }, - "end": { - "line": 50, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 1666, - "end": 1671, - "loc": { - "start": { - "line": 50, - "column": 8 - }, - "end": { - "line": 50, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1672, - "end": 1687, - "loc": { - "start": { - "line": 50, - "column": 14 - }, - "end": { - "line": 50, - "column": 29 - }, - "identifierName": "dataStringified" - }, - "name": "dataStringified" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 1694, - "end": 1704, - "loc": { - "start": { - "line": 51, - "column": 4 - }, - "end": { - "line": 51, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 1694, - "end": 1703, - "loc": { - "start": { - "line": 51, - "column": 4 - }, - "end": { - "line": 51, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1694, - "end": 1701, - "loc": { - "start": { - "line": 51, - "column": 4 - }, - "end": { - "line": 51, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 1694, - "end": 1697, - "loc": { - "start": { - "line": 51, - "column": 4 - }, - "end": { - "line": 51, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 1698, - "end": 1701, - "loc": { - "start": { - "line": 51, - "column": 8 - }, - "end": { - "line": 51, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Request access token payload\n * @typedef {Object} AccessTokenGetParams\n * @property {string} username - email of a user\n * @property {string} password - password of a user\n ", - "start": 207, - "end": 399, - "loc": { - "start": { - "line": 13, - "column": 2 - }, - "end": { - "line": 18, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Request access token response data\n * @typedef {Object} AccessTokenGetResponse\n * @property {number} res.expires_in - time in seconds for which the token was issued\n * @property {string} res.token_type - type of access token (e.g. 'bearer')\n * @property {string} res.access_token - access token\n * @property {string} res.refresh_token - refresh token\n * @property {string} res.scope - access scopes\n ", - "start": 403, - "end": 828, - "loc": { - "start": { - "line": 20, - "column": 2 - }, - "end": { - "line": 28, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Requests access token for a user\n * @param {AccessTokenGetParams} data - access token reques payload\n * @param {function(err: ApiErrorResponse, res: AccessTokenGetResponse)} [callback] - error first node.js callback\n ", - "start": 832, - "end": 1066, - "loc": { - "start": { - "line": 30, - "column": 2 - }, - "end": { - "line": 34, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Verify access token payload\n * @typedef {Object} AccessTokenVerifyParams\n * @property {string} token - your auth token\n ", - "start": 1712, - "end": 1849, - "loc": { - "start": { - "line": 54, - "column": 2 - }, - "end": { - "line": 58, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Verify access token response data\n * @typedef {Object} AccessTokenVerifyResponse\n * @property {number} res.expires_in - time in seconds for which the token was issued\n * @property {string} res.token_type - type of access token (e.g. 'bearer')\n * @property {string} res.access_token - access token\n * @property {string} res.scope - access scopes\n ", - "start": 1853, - "end": 2222, - "loc": { - "start": { - "line": 60, - "column": 2 - }, - "end": { - "line": 67, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Verifies access token\n * @param {AccessTokenVerifyParams} data - access token request payload\n * @param {function(err: ApiErrorResponse, res: AccessTokenVerifyResponse)} [callback] - error first node.js callback\n ", - "start": 2226, - "end": 2456, - "loc": { - "start": { - "line": 69, - "column": 2 - }, - "end": { - "line": 73, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 2459, - "end": 2774, - "loc": { - "start": { - "line": 74, - "column": 2 - }, - "end": { - "line": 86, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2466, - "end": 2472, - "loc": { - "start": { - "line": 74, - "column": 9 - }, - "end": { - "line": 74, - "column": 15 - }, - "identifierName": "verify" - }, - "name": "verify" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 2474, - "end": 2483, - "loc": { - "start": { - "line": 74, - "column": 17 - }, - "end": { - "line": 74, - "column": 26 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2476, - "end": 2481, - "loc": { - "start": { - "line": 74, - "column": 19 - }, - "end": { - "line": 74, - "column": 24 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2476, - "end": 2481, - "loc": { - "start": { - "line": 74, - "column": 19 - }, - "end": { - "line": 74, - "column": 24 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 2476, - "end": 2481, - "loc": { - "start": { - "line": 74, - "column": 19 - }, - "end": { - "line": 74, - "column": 24 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 2485, - "end": 2493, - "loc": { - "start": { - "line": 74, - "column": 28 - }, - "end": { - "line": 74, - "column": 36 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 2495, - "end": 2774, - "loc": { - "start": { - "line": 74, - "column": 38 - }, - "end": { - "line": 86, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2501, - "end": 2770, - "loc": { - "start": { - "line": 75, - "column": 4 - }, - "end": { - "line": 85, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 2501, - "end": 2769, - "loc": { - "start": { - "line": 75, - "column": 4 - }, - "end": { - "line": 85, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2501, - "end": 2767, - "loc": { - "start": { - "line": 75, - "column": 4 - }, - "end": { - "line": 85, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 2501, - "end": 2756, - "loc": { - "start": { - "line": 75, - "column": 4 - }, - "end": { - "line": 84, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2501, - "end": 2723, - "loc": { - "start": { - "line": 75, - "column": 4 - }, - "end": { - "line": 84, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 2501, - "end": 2713, - "loc": { - "start": { - "line": 75, - "column": 4 - }, - "end": { - "line": 83, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2501, - "end": 2521, - "loc": { - "start": { - "line": 75, - "column": 4 - }, - "end": { - "line": 76, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 2501, - "end": 2506, - "loc": { - "start": { - "line": 75, - "column": 4 - }, - "end": { - "line": 75, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 2514, - "end": 2521, - "loc": { - "start": { - "line": 76, - "column": 7 - }, - "end": { - "line": 76, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 2522, - "end": 2685, - "loc": { - "start": { - "line": 76, - "column": 15 - }, - "end": { - "line": 83, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 2522, - "end": 2541, - "loc": { - "start": { - "line": 76, - "column": 15 - }, - "end": { - "line": 76, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 2542, - "end": 2684, - "loc": { - "start": { - "line": 76, - "column": 35 - }, - "end": { - "line": 83, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2552, - "end": 2565, - "loc": { - "start": { - "line": 77, - "column": 8 - }, - "end": { - "line": 77, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2552, - "end": 2558, - "loc": { - "start": { - "line": 77, - "column": 8 - }, - "end": { - "line": 77, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 2560, - "end": 2565, - "loc": { - "start": { - "line": 77, - "column": 16 - }, - "end": { - "line": 77, - "column": 21 - } - }, - "extra": { - "rawValue": "GET", - "raw": "'GET'" - }, - "value": "GET" - } - }, - { - "type": "ObjectProperty", - "start": 2575, - "end": 2596, - "loc": { - "start": { - "line": 78, - "column": 8 - }, - "end": { - "line": 78, - "column": 29 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2575, - "end": 2579, - "loc": { - "start": { - "line": 78, - "column": 8 - }, - "end": { - "line": 78, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 2581, - "end": 2596, - "loc": { - "start": { - "line": 78, - "column": 14 - }, - "end": { - "line": 78, - "column": 29 - } - }, - "extra": { - "rawValue": "/oauth2/token", - "raw": "'/oauth2/token'" - }, - "value": "/oauth2/token" - } - }, - { - "type": "ObjectProperty", - "start": 2606, - "end": 2675, - "loc": { - "start": { - "line": 79, - "column": 8 - }, - "end": { - "line": 82, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2606, - "end": 2619, - "loc": { - "start": { - "line": 79, - "column": 8 - }, - "end": { - "line": 79, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 2621, - "end": 2675, - "loc": { - "start": { - "line": 79, - "column": 23 - }, - "end": { - "line": 82, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2633, - "end": 2647, - "loc": { - "start": { - "line": 80, - "column": 10 - }, - "end": { - "line": 80, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2633, - "end": 2637, - "loc": { - "start": { - "line": 80, - "column": 10 - }, - "end": { - "line": 80, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 2639, - "end": 2647, - "loc": { - "start": { - "line": 80, - "column": 16 - }, - "end": { - "line": 80, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 2659, - "end": 2664, - "loc": { - "start": { - "line": 81, - "column": 10 - }, - "end": { - "line": 81, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2659, - "end": 2664, - "loc": { - "start": { - "line": 81, - "column": 10 - }, - "end": { - "line": 81, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 2659, - "end": 2664, - "loc": { - "start": { - "line": 81, - "column": 10 - }, - "end": { - "line": 81, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 2687, - "end": 2712, - "loc": { - "start": { - "line": 83, - "column": 10 - }, - "end": { - "line": 83, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 2687, - "end": 2702, - "loc": { - "start": { - "line": 83, - "column": 10 - }, - "end": { - "line": 83, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2703, - "end": 2711, - "loc": { - "start": { - "line": 83, - "column": 26 - }, - "end": { - "line": 83, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 2721, - "end": 2723, - "loc": { - "start": { - "line": 84, - "column": 7 - }, - "end": { - "line": 84, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2724, - "end": 2731, - "loc": { - "start": { - "line": 84, - "column": 10 - }, - "end": { - "line": 84, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 2733, - "end": 2755, - "loc": { - "start": { - "line": 84, - "column": 19 - }, - "end": { - "line": 84, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 2733, - "end": 2745, - "loc": { - "start": { - "line": 84, - "column": 19 - }, - "end": { - "line": 84, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2746, - "end": 2754, - "loc": { - "start": { - "line": 84, - "column": 32 - }, - "end": { - "line": 84, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 2764, - "end": 2767, - "loc": { - "start": { - "line": 85, - "column": 7 - }, - "end": { - "line": 85, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Verify access token payload\n * @typedef {Object} AccessTokenVerifyParams\n * @property {string} token - your auth token\n ", - "start": 1712, - "end": 1849, - "loc": { - "start": { - "line": 54, - "column": 2 - }, - "end": { - "line": 58, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Verify access token response data\n * @typedef {Object} AccessTokenVerifyResponse\n * @property {number} res.expires_in - time in seconds for which the token was issued\n * @property {string} res.token_type - type of access token (e.g. 'bearer')\n * @property {string} res.access_token - access token\n * @property {string} res.scope - access scopes\n ", - "start": 1853, - "end": 2222, - "loc": { - "start": { - "line": 60, - "column": 2 - }, - "end": { - "line": 67, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Verifies access token\n * @param {AccessTokenVerifyParams} data - access token request payload\n * @param {function(err: ApiErrorResponse, res: AccessTokenVerifyResponse)} [callback] - error first node.js callback\n ", - "start": 2226, - "end": 2456, - "loc": { - "start": { - "line": 69, - "column": 2 - }, - "end": { - "line": 73, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Refresh access token payload\n * @typedef {Object} AccessTokenRefreshParams\n * @property {string} refresh_token - your refresh token\n * @property {string} [scope] - access scopes of access token\n * @property {number} [expiration_time] - time in seconds for which the token was issued\n ", - "start": 2778, - "end": 3083, - "loc": { - "start": { - "line": 88, - "column": 2 - }, - "end": { - "line": 94, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Refresh access token response data\n * @typedef {Object} AccessTokenRefreshResponse\n * @property {number} res.expires_in - time in seconds for which the token was issued\n * @property {string} res.token_type - type of access token (e.g. 'bearer')\n * @property {string} res.access_token - access token\n * @property {string} res.refresh_token - refresh token\n * @property {string} res.scope - access scopes\n ", - "start": 3087, - "end": 3516, - "loc": { - "start": { - "line": 96, - "column": 2 - }, - "end": { - "line": 104, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Refreshes access token for a user\n * @param {AccessTokenRefreshParams} data - refresh token request payload\n * @param {function(err: ApiErrorResponse, res: AccessTokenRefreshResponse)} [callback] - error first node.js callback\n ", - "start": 3520, - "end": 3765, - "loc": { - "start": { - "line": 106, - "column": 2 - }, - "end": { - "line": 110, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 3768, - "end": 4412, - "loc": { - "start": { - "line": 111, - "column": 2 - }, - "end": { - "line": 128, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3775, - "end": 3787, - "loc": { - "start": { - "line": 111, - "column": 9 - }, - "end": { - "line": 111, - "column": 21 - }, - "identifierName": "refreshToken" - }, - "name": "refreshToken" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 3789, - "end": 3793, - "loc": { - "start": { - "line": 111, - "column": 23 - }, - "end": { - "line": 111, - "column": 27 - }, - "identifierName": "data" - }, - "name": "data" - }, - { - "type": "Identifier", - "start": 3795, - "end": 3803, - "loc": { - "start": { - "line": 111, - "column": 29 - }, - "end": { - "line": 111, - "column": 37 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 3805, - "end": 4412, - "loc": { - "start": { - "line": 111, - "column": 39 - }, - "end": { - "line": 128, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 3811, - "end": 3885, - "loc": { - "start": { - "line": 112, - "column": 4 - }, - "end": { - "line": 112, - "column": 78 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3817, - "end": 3884, - "loc": { - "start": { - "line": 112, - "column": 10 - }, - "end": { - "line": 112, - "column": 77 - } - }, - "id": { - "type": "Identifier", - "start": 3817, - "end": 3825, - "loc": { - "start": { - "line": 112, - "column": 10 - }, - "end": { - "line": 112, - "column": 18 - }, - "identifierName": "dataCopy" - }, - "name": "dataCopy" - }, - "init": { - "type": "CallExpression", - "start": 3828, - "end": 3884, - "loc": { - "start": { - "line": 112, - "column": 21 - }, - "end": { - "line": 112, - "column": 77 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3828, - "end": 3841, - "loc": { - "start": { - "line": 112, - "column": 21 - }, - "end": { - "line": 112, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 3828, - "end": 3834, - "loc": { - "start": { - "line": 112, - "column": 21 - }, - "end": { - "line": 112, - "column": 27 - }, - "identifierName": "Object" - }, - "name": "Object" - }, - "property": { - "type": "Identifier", - "start": 3835, - "end": 3841, - "loc": { - "start": { - "line": 112, - "column": 28 - }, - "end": { - "line": 112, - "column": 34 - }, - "identifierName": "assign" - }, - "name": "assign" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 3842, - "end": 3844, - "loc": { - "start": { - "line": 112, - "column": 35 - }, - "end": { - "line": 112, - "column": 37 - } - }, - "properties": [] - }, - { - "type": "Identifier", - "start": 3846, - "end": 3850, - "loc": { - "start": { - "line": 112, - "column": 39 - }, - "end": { - "line": 112, - "column": 43 - }, - "identifierName": "data" - }, - "name": "data" - }, - { - "type": "ObjectExpression", - "start": 3852, - "end": 3883, - "loc": { - "start": { - "line": 112, - "column": 45 - }, - "end": { - "line": 112, - "column": 76 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3854, - "end": 3881, - "loc": { - "start": { - "line": 112, - "column": 47 - }, - "end": { - "line": 112, - "column": 74 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3854, - "end": 3864, - "loc": { - "start": { - "line": 112, - "column": 47 - }, - "end": { - "line": 112, - "column": 57 - }, - "identifierName": "grant_type" - }, - "name": "grant_type" - }, - "value": { - "type": "StringLiteral", - "start": 3866, - "end": 3881, - "loc": { - "start": { - "line": 112, - "column": 59 - }, - "end": { - "line": 112, - "column": 74 - } - }, - "extra": { - "rawValue": "refresh_token", - "raw": "'refresh_token'" - }, - "value": "refresh_token" - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 3890, - "end": 3966, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 113, - "column": 80 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3896, - "end": 3965, - "loc": { - "start": { - "line": 113, - "column": 10 - }, - "end": { - "line": 113, - "column": 79 - } - }, - "id": { - "type": "Identifier", - "start": 3896, - "end": 3911, - "loc": { - "start": { - "line": 113, - "column": 10 - }, - "end": { - "line": 113, - "column": 25 - }, - "identifierName": "dataStringified" - }, - "name": "dataStringified" - }, - "init": { - "type": "CallExpression", - "start": 3914, - "end": 3965, - "loc": { - "start": { - "line": 113, - "column": 28 - }, - "end": { - "line": 113, - "column": 79 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3914, - "end": 3953, - "loc": { - "start": { - "line": 113, - "column": 28 - }, - "end": { - "line": 113, - "column": 67 - } - }, - "object": { - "type": "CallExpression", - "start": 3914, - "end": 3945, - "loc": { - "start": { - "line": 113, - "column": 28 - }, - "end": { - "line": 113, - "column": 59 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3914, - "end": 3935, - "loc": { - "start": { - "line": 113, - "column": 28 - }, - "end": { - "line": 113, - "column": 49 - } - }, - "object": { - "type": "Identifier", - "start": 3914, - "end": 3925, - "loc": { - "start": { - "line": 113, - "column": 28 - }, - "end": { - "line": 113, - "column": 39 - }, - "identifierName": "querystring" - }, - "name": "querystring" - }, - "property": { - "type": "Identifier", - "start": 3926, - "end": 3935, - "loc": { - "start": { - "line": 113, - "column": 40 - }, - "end": { - "line": 113, - "column": 49 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 3936, - "end": 3944, - "loc": { - "start": { - "line": 113, - "column": 50 - }, - "end": { - "line": 113, - "column": 58 - }, - "identifierName": "dataCopy" - }, - "name": "dataCopy" - } - ] - }, - "property": { - "type": "Identifier", - "start": 3946, - "end": 3953, - "loc": { - "start": { - "line": 113, - "column": 60 - }, - "end": { - "line": 113, - "column": 67 - }, - "identifierName": "replace" - }, - "name": "replace" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 3954, - "end": 3959, - "loc": { - "start": { - "line": 113, - "column": 68 - }, - "end": { - "line": 113, - "column": 73 - } - }, - "extra": { - "rawValue": "%40", - "raw": "'%40'" - }, - "value": "%40" - }, - { - "type": "StringLiteral", - "start": 3961, - "end": 3964, - "loc": { - "start": { - "line": 113, - "column": 75 - }, - "end": { - "line": 113, - "column": 78 - } - }, - "extra": { - "rawValue": "@", - "raw": "'@'" - }, - "value": "@" - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 3971, - "end": 4360, - "loc": { - "start": { - "line": 114, - "column": 4 - }, - "end": { - "line": 124, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3977, - "end": 4359, - "loc": { - "start": { - "line": 114, - "column": 10 - }, - "end": { - "line": 124, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 3977, - "end": 3980, - "loc": { - "start": { - "line": 114, - "column": 10 - }, - "end": { - "line": 114, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 3983, - "end": 4359, - "loc": { - "start": { - "line": 114, - "column": 16 - }, - "end": { - "line": 124, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3983, - "end": 4326, - "loc": { - "start": { - "line": 114, - "column": 16 - }, - "end": { - "line": 124, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 3983, - "end": 4316, - "loc": { - "start": { - "line": 114, - "column": 16 - }, - "end": { - "line": 123, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3983, - "end": 4003, - "loc": { - "start": { - "line": 114, - "column": 16 - }, - "end": { - "line": 115, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 3983, - "end": 3988, - "loc": { - "start": { - "line": 114, - "column": 16 - }, - "end": { - "line": 114, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 3996, - "end": 4003, - "loc": { - "start": { - "line": 115, - "column": 7 - }, - "end": { - "line": 115, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 4004, - "end": 4288, - "loc": { - "start": { - "line": 115, - "column": 15 - }, - "end": { - "line": 123, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 4004, - "end": 4023, - "loc": { - "start": { - "line": 115, - "column": 15 - }, - "end": { - "line": 115, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 4024, - "end": 4287, - "loc": { - "start": { - "line": 115, - "column": 35 - }, - "end": { - "line": 123, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4034, - "end": 4048, - "loc": { - "start": { - "line": 116, - "column": 8 - }, - "end": { - "line": 116, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4034, - "end": 4040, - "loc": { - "start": { - "line": 116, - "column": 8 - }, - "end": { - "line": 116, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 4042, - "end": 4048, - "loc": { - "start": { - "line": 116, - "column": 16 - }, - "end": { - "line": 116, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 4058, - "end": 4079, - "loc": { - "start": { - "line": 117, - "column": 8 - }, - "end": { - "line": 117, - "column": 29 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4058, - "end": 4062, - "loc": { - "start": { - "line": 117, - "column": 8 - }, - "end": { - "line": 117, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 4064, - "end": 4079, - "loc": { - "start": { - "line": 117, - "column": 14 - }, - "end": { - "line": 117, - "column": 29 - } - }, - "extra": { - "rawValue": "/oauth2/token", - "raw": "'/oauth2/token'" - }, - "value": "/oauth2/token" - } - }, - { - "type": "ObjectProperty", - "start": 4089, - "end": 4121, - "loc": { - "start": { - "line": 118, - "column": 8 - }, - "end": { - "line": 118, - "column": 40 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4089, - "end": 4102, - "loc": { - "start": { - "line": 118, - "column": 8 - }, - "end": { - "line": 118, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 4104, - "end": 4121, - "loc": { - "start": { - "line": 118, - "column": 23 - }, - "end": { - "line": 118, - "column": 40 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4106, - "end": 4119, - "loc": { - "start": { - "line": 118, - "column": 25 - }, - "end": { - "line": 118, - "column": 38 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4106, - "end": 4110, - "loc": { - "start": { - "line": 118, - "column": 25 - }, - "end": { - "line": 118, - "column": 29 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 4112, - "end": 4119, - "loc": { - "start": { - "line": 118, - "column": 31 - }, - "end": { - "line": 118, - "column": 38 - } - }, - "extra": { - "rawValue": "Basic", - "raw": "'Basic'" - }, - "value": "Basic" - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 4131, - "end": 4278, - "loc": { - "start": { - "line": 119, - "column": 8 - }, - "end": { - "line": 122, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4131, - "end": 4138, - "loc": { - "start": { - "line": 119, - "column": 8 - }, - "end": { - "line": 119, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 4140, - "end": 4278, - "loc": { - "start": { - "line": 119, - "column": 17 - }, - "end": { - "line": 122, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4152, - "end": 4203, - "loc": { - "start": { - "line": 120, - "column": 10 - }, - "end": { - "line": 120, - "column": 61 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 4152, - "end": 4166, - "loc": { - "start": { - "line": 120, - "column": 10 - }, - "end": { - "line": 120, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 4168, - "end": 4203, - "loc": { - "start": { - "line": 120, - "column": 26 - }, - "end": { - "line": 120, - "column": 61 - } - }, - "extra": { - "rawValue": "application/x-www-form-urlencoded", - "raw": "'application/x-www-form-urlencoded'" - }, - "value": "application/x-www-form-urlencoded" - } - }, - { - "type": "ObjectProperty", - "start": 4215, - "end": 4267, - "loc": { - "start": { - "line": 121, - "column": 10 - }, - "end": { - "line": 121, - "column": 62 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 4215, - "end": 4231, - "loc": { - "start": { - "line": 121, - "column": 10 - }, - "end": { - "line": 121, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 4233, - "end": 4267, - "loc": { - "start": { - "line": 121, - "column": 28 - }, - "end": { - "line": 121, - "column": 62 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4233, - "end": 4250, - "loc": { - "start": { - "line": 121, - "column": 28 - }, - "end": { - "line": 121, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 4233, - "end": 4239, - "loc": { - "start": { - "line": 121, - "column": 28 - }, - "end": { - "line": 121, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 4240, - "end": 4250, - "loc": { - "start": { - "line": 121, - "column": 35 - }, - "end": { - "line": 121, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 4251, - "end": 4266, - "loc": { - "start": { - "line": 121, - "column": 46 - }, - "end": { - "line": 121, - "column": 61 - }, - "identifierName": "dataStringified" - }, - "name": "dataStringified" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 4290, - "end": 4315, - "loc": { - "start": { - "line": 123, - "column": 10 - }, - "end": { - "line": 123, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 4290, - "end": 4305, - "loc": { - "start": { - "line": 123, - "column": 10 - }, - "end": { - "line": 123, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 4306, - "end": 4314, - "loc": { - "start": { - "line": 123, - "column": 26 - }, - "end": { - "line": 123, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 4324, - "end": 4326, - "loc": { - "start": { - "line": 124, - "column": 7 - }, - "end": { - "line": 124, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 4327, - "end": 4334, - "loc": { - "start": { - "line": 124, - "column": 10 - }, - "end": { - "line": 124, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 4336, - "end": 4358, - "loc": { - "start": { - "line": 124, - "column": 19 - }, - "end": { - "line": 124, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 4336, - "end": 4348, - "loc": { - "start": { - "line": 124, - "column": 19 - }, - "end": { - "line": 124, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 4349, - "end": 4357, - "loc": { - "start": { - "line": 124, - "column": 32 - }, - "end": { - "line": 124, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 4366, - "end": 4393, - "loc": { - "start": { - "line": 126, - "column": 4 - }, - "end": { - "line": 126, - "column": 31 - } - }, - "expression": { - "type": "CallExpression", - "start": 4366, - "end": 4392, - "loc": { - "start": { - "line": 126, - "column": 4 - }, - "end": { - "line": 126, - "column": 30 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4366, - "end": 4375, - "loc": { - "start": { - "line": 126, - "column": 4 - }, - "end": { - "line": 126, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 4366, - "end": 4369, - "loc": { - "start": { - "line": 126, - "column": 4 - }, - "end": { - "line": 126, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 4370, - "end": 4375, - "loc": { - "start": { - "line": 126, - "column": 8 - }, - "end": { - "line": 126, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 4376, - "end": 4391, - "loc": { - "start": { - "line": 126, - "column": 14 - }, - "end": { - "line": 126, - "column": 29 - }, - "identifierName": "dataStringified" - }, - "name": "dataStringified" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 4398, - "end": 4408, - "loc": { - "start": { - "line": 127, - "column": 4 - }, - "end": { - "line": 127, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 4398, - "end": 4407, - "loc": { - "start": { - "line": 127, - "column": 4 - }, - "end": { - "line": 127, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4398, - "end": 4405, - "loc": { - "start": { - "line": 127, - "column": 4 - }, - "end": { - "line": 127, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 4398, - "end": 4401, - "loc": { - "start": { - "line": 127, - "column": 4 - }, - "end": { - "line": 127, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 4402, - "end": 4405, - "loc": { - "start": { - "line": 127, - "column": 8 - }, - "end": { - "line": 127, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Refresh access token payload\n * @typedef {Object} AccessTokenRefreshParams\n * @property {string} refresh_token - your refresh token\n * @property {string} [scope] - access scopes of access token\n * @property {number} [expiration_time] - time in seconds for which the token was issued\n ", - "start": 2778, - "end": 3083, - "loc": { - "start": { - "line": 88, - "column": 2 - }, - "end": { - "line": 94, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Refresh access token response data\n * @typedef {Object} AccessTokenRefreshResponse\n * @property {number} res.expires_in - time in seconds for which the token was issued\n * @property {string} res.token_type - type of access token (e.g. 'bearer')\n * @property {string} res.access_token - access token\n * @property {string} res.refresh_token - refresh token\n * @property {string} res.scope - access scopes\n ", - "start": 3087, - "end": 3516, - "loc": { - "start": { - "line": 96, - "column": 2 - }, - "end": { - "line": 104, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Refreshes access token for a user\n * @param {AccessTokenRefreshParams} data - refresh token request payload\n * @param {function(err: ApiErrorResponse, res: AccessTokenRefreshResponse)} [callback] - error first node.js callback\n ", - "start": 3520, - "end": 3765, - "loc": { - "start": { - "line": 106, - "column": 2 - }, - "end": { - "line": 110, - "column": 5 - } - } - } - ] - } - ] - }, - "leadingComments": [], - "name": "_", - "trailingComments": [] - }, - { - "type": "Identifier", - "start": 4417, - "end": 4439, - "loc": { - "start": { - "line": 132, - "column": 0 - }, - "end": { - "line": 132, - "column": 22 - } - }, - "declaration": { - "type": "Identifier", - "start": 4432, - "end": 4438, - "loc": { - "start": { - "line": 132, - "column": 15 - }, - "end": { - "line": 132, - "column": 21 - }, - "identifierName": "OAuth2" - }, - "name": "OAuth2" - }, - "name": "_", - "leadingComments": [], - "trailingComments": [] - }, - { - "type": "ExportDefaultDeclaration", - "start": 4417, - "end": 4439, - "loc": { - "start": { - "line": 132, - "column": 0 - }, - "end": { - "line": 132, - "column": 22 - } - }, - "declaration": { - "type": "ClassDeclaration", - "start": 189, - "end": 4415, - "loc": { - "start": { - "line": 11, - "column": 0 - }, - "end": { - "line": 130, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 195, - "end": 201, - "loc": { - "start": { - "line": 11, - "column": 6 - }, - "end": { - "line": 11, - "column": 12 - }, - "identifierName": "OAuth2" - }, - "name": "OAuth2", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 202, - "end": 4415, - "loc": { - "start": { - "line": 11, - "column": 13 - }, - "end": { - "line": 130, - "column": 1 - } - }, - "body": [ - { - "type": "ClassMethod", - "start": 1069, - "end": 1708, - "loc": { - "start": { - "line": 35, - "column": 2 - }, - "end": { - "line": 52, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1076, - "end": 1088, - "loc": { - "start": { - "line": 35, - "column": 9 - }, - "end": { - "line": 35, - "column": 21 - }, - "identifierName": "requestToken" - }, - "name": "requestToken" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1090, - "end": 1094, - "loc": { - "start": { - "line": 35, - "column": 23 - }, - "end": { - "line": 35, - "column": 27 - }, - "identifierName": "data" - }, - "name": "data" - }, - { - "type": "Identifier", - "start": 1096, - "end": 1104, - "loc": { - "start": { - "line": 35, - "column": 29 - }, - "end": { - "line": 35, - "column": 37 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 1106, - "end": 1708, - "loc": { - "start": { - "line": 35, - "column": 39 - }, - "end": { - "line": 52, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 1112, - "end": 1181, - "loc": { - "start": { - "line": 36, - "column": 4 - }, - "end": { - "line": 36, - "column": 73 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1118, - "end": 1180, - "loc": { - "start": { - "line": 36, - "column": 10 - }, - "end": { - "line": 36, - "column": 72 - } - }, - "id": { - "type": "Identifier", - "start": 1118, - "end": 1126, - "loc": { - "start": { - "line": 36, - "column": 10 - }, - "end": { - "line": 36, - "column": 18 - }, - "identifierName": "dataCopy" - }, - "name": "dataCopy" - }, - "init": { - "type": "CallExpression", - "start": 1129, - "end": 1180, - "loc": { - "start": { - "line": 36, - "column": 21 - }, - "end": { - "line": 36, - "column": 72 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1129, - "end": 1142, - "loc": { - "start": { - "line": 36, - "column": 21 - }, - "end": { - "line": 36, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 1129, - "end": 1135, - "loc": { - "start": { - "line": 36, - "column": 21 - }, - "end": { - "line": 36, - "column": 27 - }, - "identifierName": "Object" - }, - "name": "Object" - }, - "property": { - "type": "Identifier", - "start": 1136, - "end": 1142, - "loc": { - "start": { - "line": 36, - "column": 28 - }, - "end": { - "line": 36, - "column": 34 - }, - "identifierName": "assign" - }, - "name": "assign" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 1143, - "end": 1145, - "loc": { - "start": { - "line": 36, - "column": 35 - }, - "end": { - "line": 36, - "column": 37 - } - }, - "properties": [] - }, - { - "type": "Identifier", - "start": 1147, - "end": 1151, - "loc": { - "start": { - "line": 36, - "column": 39 - }, - "end": { - "line": 36, - "column": 43 - }, - "identifierName": "data" - }, - "name": "data" - }, - { - "type": "ObjectExpression", - "start": 1153, - "end": 1179, - "loc": { - "start": { - "line": 36, - "column": 45 - }, - "end": { - "line": 36, - "column": 71 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1155, - "end": 1177, - "loc": { - "start": { - "line": 36, - "column": 47 - }, - "end": { - "line": 36, - "column": 69 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1155, - "end": 1165, - "loc": { - "start": { - "line": 36, - "column": 47 - }, - "end": { - "line": 36, - "column": 57 - }, - "identifierName": "grant_type" - }, - "name": "grant_type" - }, - "value": { - "type": "StringLiteral", - "start": 1167, - "end": 1177, - "loc": { - "start": { - "line": 36, - "column": 59 - }, - "end": { - "line": 36, - "column": 69 - } - }, - "extra": { - "rawValue": "password", - "raw": "'password'" - }, - "value": "password" - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 1186, - "end": 1262, - "loc": { - "start": { - "line": 37, - "column": 4 - }, - "end": { - "line": 37, - "column": 80 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1192, - "end": 1261, - "loc": { - "start": { - "line": 37, - "column": 10 - }, - "end": { - "line": 37, - "column": 79 - } - }, - "id": { - "type": "Identifier", - "start": 1192, - "end": 1207, - "loc": { - "start": { - "line": 37, - "column": 10 - }, - "end": { - "line": 37, - "column": 25 - }, - "identifierName": "dataStringified" - }, - "name": "dataStringified" - }, - "init": { - "type": "CallExpression", - "start": 1210, - "end": 1261, - "loc": { - "start": { - "line": 37, - "column": 28 - }, - "end": { - "line": 37, - "column": 79 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1210, - "end": 1249, - "loc": { - "start": { - "line": 37, - "column": 28 - }, - "end": { - "line": 37, - "column": 67 - } - }, - "object": { - "type": "CallExpression", - "start": 1210, - "end": 1241, - "loc": { - "start": { - "line": 37, - "column": 28 - }, - "end": { - "line": 37, - "column": 59 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1210, - "end": 1231, - "loc": { - "start": { - "line": 37, - "column": 28 - }, - "end": { - "line": 37, - "column": 49 - } - }, - "object": { - "type": "Identifier", - "start": 1210, - "end": 1221, - "loc": { - "start": { - "line": 37, - "column": 28 - }, - "end": { - "line": 37, - "column": 39 - }, - "identifierName": "querystring" - }, - "name": "querystring" - }, - "property": { - "type": "Identifier", - "start": 1222, - "end": 1231, - "loc": { - "start": { - "line": 37, - "column": 40 - }, - "end": { - "line": 37, - "column": 49 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1232, - "end": 1240, - "loc": { - "start": { - "line": 37, - "column": 50 - }, - "end": { - "line": 37, - "column": 58 - }, - "identifierName": "dataCopy" - }, - "name": "dataCopy" - } - ] - }, - "property": { - "type": "Identifier", - "start": 1242, - "end": 1249, - "loc": { - "start": { - "line": 37, - "column": 60 - }, - "end": { - "line": 37, - "column": 67 - }, - "identifierName": "replace" - }, - "name": "replace" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 1250, - "end": 1255, - "loc": { - "start": { - "line": 37, - "column": 68 - }, - "end": { - "line": 37, - "column": 73 - } - }, - "extra": { - "rawValue": "%40", - "raw": "'%40'" - }, - "value": "%40" - }, - { - "type": "StringLiteral", - "start": 1257, - "end": 1260, - "loc": { - "start": { - "line": 37, - "column": 75 - }, - "end": { - "line": 37, - "column": 78 - } - }, - "extra": { - "rawValue": "@", - "raw": "'@'" - }, - "value": "@" - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 1267, - "end": 1656, - "loc": { - "start": { - "line": 38, - "column": 4 - }, - "end": { - "line": 48, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1273, - "end": 1655, - "loc": { - "start": { - "line": 38, - "column": 10 - }, - "end": { - "line": 48, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 1273, - "end": 1276, - "loc": { - "start": { - "line": 38, - "column": 10 - }, - "end": { - "line": 38, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 1279, - "end": 1655, - "loc": { - "start": { - "line": 38, - "column": 16 - }, - "end": { - "line": 48, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1279, - "end": 1622, - "loc": { - "start": { - "line": 38, - "column": 16 - }, - "end": { - "line": 48, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 1279, - "end": 1612, - "loc": { - "start": { - "line": 38, - "column": 16 - }, - "end": { - "line": 47, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1279, - "end": 1299, - "loc": { - "start": { - "line": 38, - "column": 16 - }, - "end": { - "line": 39, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 1279, - "end": 1284, - "loc": { - "start": { - "line": 38, - "column": 16 - }, - "end": { - "line": 38, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 1292, - "end": 1299, - "loc": { - "start": { - "line": 39, - "column": 7 - }, - "end": { - "line": 39, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 1300, - "end": 1584, - "loc": { - "start": { - "line": 39, - "column": 15 - }, - "end": { - "line": 47, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 1300, - "end": 1319, - "loc": { - "start": { - "line": 39, - "column": 15 - }, - "end": { - "line": 39, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 1320, - "end": 1583, - "loc": { - "start": { - "line": 39, - "column": 35 - }, - "end": { - "line": 47, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1330, - "end": 1344, - "loc": { - "start": { - "line": 40, - "column": 8 - }, - "end": { - "line": 40, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1330, - "end": 1336, - "loc": { - "start": { - "line": 40, - "column": 8 - }, - "end": { - "line": 40, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 1338, - "end": 1344, - "loc": { - "start": { - "line": 40, - "column": 16 - }, - "end": { - "line": 40, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 1354, - "end": 1375, - "loc": { - "start": { - "line": 41, - "column": 8 - }, - "end": { - "line": 41, - "column": 29 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1354, - "end": 1358, - "loc": { - "start": { - "line": 41, - "column": 8 - }, - "end": { - "line": 41, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 1360, - "end": 1375, - "loc": { - "start": { - "line": 41, - "column": 14 - }, - "end": { - "line": 41, - "column": 29 - } - }, - "extra": { - "rawValue": "/oauth2/token", - "raw": "'/oauth2/token'" - }, - "value": "/oauth2/token" - } - }, - { - "type": "ObjectProperty", - "start": 1385, - "end": 1417, - "loc": { - "start": { - "line": 42, - "column": 8 - }, - "end": { - "line": 42, - "column": 40 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1385, - "end": 1398, - "loc": { - "start": { - "line": 42, - "column": 8 - }, - "end": { - "line": 42, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 1400, - "end": 1417, - "loc": { - "start": { - "line": 42, - "column": 23 - }, - "end": { - "line": 42, - "column": 40 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1402, - "end": 1415, - "loc": { - "start": { - "line": 42, - "column": 25 - }, - "end": { - "line": 42, - "column": 38 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1402, - "end": 1406, - "loc": { - "start": { - "line": 42, - "column": 25 - }, - "end": { - "line": 42, - "column": 29 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 1408, - "end": 1415, - "loc": { - "start": { - "line": 42, - "column": 31 - }, - "end": { - "line": 42, - "column": 38 - } - }, - "extra": { - "rawValue": "Basic", - "raw": "'Basic'" - }, - "value": "Basic" - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 1427, - "end": 1574, - "loc": { - "start": { - "line": 43, - "column": 8 - }, - "end": { - "line": 46, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1427, - "end": 1434, - "loc": { - "start": { - "line": 43, - "column": 8 - }, - "end": { - "line": 43, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 1436, - "end": 1574, - "loc": { - "start": { - "line": 43, - "column": 17 - }, - "end": { - "line": 46, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1448, - "end": 1499, - "loc": { - "start": { - "line": 44, - "column": 10 - }, - "end": { - "line": 44, - "column": 61 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 1448, - "end": 1462, - "loc": { - "start": { - "line": 44, - "column": 10 - }, - "end": { - "line": 44, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 1464, - "end": 1499, - "loc": { - "start": { - "line": 44, - "column": 26 - }, - "end": { - "line": 44, - "column": 61 - } - }, - "extra": { - "rawValue": "application/x-www-form-urlencoded", - "raw": "'application/x-www-form-urlencoded'" - }, - "value": "application/x-www-form-urlencoded" - } - }, - { - "type": "ObjectProperty", - "start": 1511, - "end": 1563, - "loc": { - "start": { - "line": 45, - "column": 10 - }, - "end": { - "line": 45, - "column": 62 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 1511, - "end": 1527, - "loc": { - "start": { - "line": 45, - "column": 10 - }, - "end": { - "line": 45, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 1529, - "end": 1563, - "loc": { - "start": { - "line": 45, - "column": 28 - }, - "end": { - "line": 45, - "column": 62 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1529, - "end": 1546, - "loc": { - "start": { - "line": 45, - "column": 28 - }, - "end": { - "line": 45, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 1529, - "end": 1535, - "loc": { - "start": { - "line": 45, - "column": 28 - }, - "end": { - "line": 45, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 1536, - "end": 1546, - "loc": { - "start": { - "line": 45, - "column": 35 - }, - "end": { - "line": 45, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1547, - "end": 1562, - "loc": { - "start": { - "line": 45, - "column": 46 - }, - "end": { - "line": 45, - "column": 61 - }, - "identifierName": "dataStringified" - }, - "name": "dataStringified" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 1586, - "end": 1611, - "loc": { - "start": { - "line": 47, - "column": 10 - }, - "end": { - "line": 47, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 1586, - "end": 1601, - "loc": { - "start": { - "line": 47, - "column": 10 - }, - "end": { - "line": 47, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1602, - "end": 1610, - "loc": { - "start": { - "line": 47, - "column": 26 - }, - "end": { - "line": 47, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 1620, - "end": 1622, - "loc": { - "start": { - "line": 48, - "column": 7 - }, - "end": { - "line": 48, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 1623, - "end": 1630, - "loc": { - "start": { - "line": 48, - "column": 10 - }, - "end": { - "line": 48, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 1632, - "end": 1654, - "loc": { - "start": { - "line": 48, - "column": 19 - }, - "end": { - "line": 48, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 1632, - "end": 1644, - "loc": { - "start": { - "line": 48, - "column": 19 - }, - "end": { - "line": 48, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1645, - "end": 1653, - "loc": { - "start": { - "line": 48, - "column": 32 - }, - "end": { - "line": 48, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 1662, - "end": 1689, - "loc": { - "start": { - "line": 50, - "column": 4 - }, - "end": { - "line": 50, - "column": 31 - } - }, - "expression": { - "type": "CallExpression", - "start": 1662, - "end": 1688, - "loc": { - "start": { - "line": 50, - "column": 4 - }, - "end": { - "line": 50, - "column": 30 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1662, - "end": 1671, - "loc": { - "start": { - "line": 50, - "column": 4 - }, - "end": { - "line": 50, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 1662, - "end": 1665, - "loc": { - "start": { - "line": 50, - "column": 4 - }, - "end": { - "line": 50, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 1666, - "end": 1671, - "loc": { - "start": { - "line": 50, - "column": 8 - }, - "end": { - "line": 50, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1672, - "end": 1687, - "loc": { - "start": { - "line": 50, - "column": 14 - }, - "end": { - "line": 50, - "column": 29 - }, - "identifierName": "dataStringified" - }, - "name": "dataStringified" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 1694, - "end": 1704, - "loc": { - "start": { - "line": 51, - "column": 4 - }, - "end": { - "line": 51, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 1694, - "end": 1703, - "loc": { - "start": { - "line": 51, - "column": 4 - }, - "end": { - "line": 51, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1694, - "end": 1701, - "loc": { - "start": { - "line": 51, - "column": 4 - }, - "end": { - "line": 51, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 1694, - "end": 1697, - "loc": { - "start": { - "line": 51, - "column": 4 - }, - "end": { - "line": 51, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 1698, - "end": 1701, - "loc": { - "start": { - "line": 51, - "column": 8 - }, - "end": { - "line": 51, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Request access token payload\n * @typedef {Object} AccessTokenGetParams\n * @property {string} username - email of a user\n * @property {string} password - password of a user\n ", - "start": 207, - "end": 399, - "loc": { - "start": { - "line": 13, - "column": 2 - }, - "end": { - "line": 18, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Request access token response data\n * @typedef {Object} AccessTokenGetResponse\n * @property {number} res.expires_in - time in seconds for which the token was issued\n * @property {string} res.token_type - type of access token (e.g. 'bearer')\n * @property {string} res.access_token - access token\n * @property {string} res.refresh_token - refresh token\n * @property {string} res.scope - access scopes\n ", - "start": 403, - "end": 828, - "loc": { - "start": { - "line": 20, - "column": 2 - }, - "end": { - "line": 28, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Requests access token for a user\n * @param {AccessTokenGetParams} data - access token reques payload\n * @param {function(err: ApiErrorResponse, res: AccessTokenGetResponse)} [callback] - error first node.js callback\n ", - "start": 832, - "end": 1066, - "loc": { - "start": { - "line": 30, - "column": 2 - }, - "end": { - "line": 34, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Verify access token payload\n * @typedef {Object} AccessTokenVerifyParams\n * @property {string} token - your auth token\n ", - "start": 1712, - "end": 1849, - "loc": { - "start": { - "line": 54, - "column": 2 - }, - "end": { - "line": 58, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Verify access token response data\n * @typedef {Object} AccessTokenVerifyResponse\n * @property {number} res.expires_in - time in seconds for which the token was issued\n * @property {string} res.token_type - type of access token (e.g. 'bearer')\n * @property {string} res.access_token - access token\n * @property {string} res.scope - access scopes\n ", - "start": 1853, - "end": 2222, - "loc": { - "start": { - "line": 60, - "column": 2 - }, - "end": { - "line": 67, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Verifies access token\n * @param {AccessTokenVerifyParams} data - access token request payload\n * @param {function(err: ApiErrorResponse, res: AccessTokenVerifyResponse)} [callback] - error first node.js callback\n ", - "start": 2226, - "end": 2456, - "loc": { - "start": { - "line": 69, - "column": 2 - }, - "end": { - "line": 73, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 2459, - "end": 2774, - "loc": { - "start": { - "line": 74, - "column": 2 - }, - "end": { - "line": 86, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2466, - "end": 2472, - "loc": { - "start": { - "line": 74, - "column": 9 - }, - "end": { - "line": 74, - "column": 15 - }, - "identifierName": "verify" - }, - "name": "verify" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 2474, - "end": 2483, - "loc": { - "start": { - "line": 74, - "column": 17 - }, - "end": { - "line": 74, - "column": 26 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2476, - "end": 2481, - "loc": { - "start": { - "line": 74, - "column": 19 - }, - "end": { - "line": 74, - "column": 24 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2476, - "end": 2481, - "loc": { - "start": { - "line": 74, - "column": 19 - }, - "end": { - "line": 74, - "column": 24 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 2476, - "end": 2481, - "loc": { - "start": { - "line": 74, - "column": 19 - }, - "end": { - "line": 74, - "column": 24 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 2485, - "end": 2493, - "loc": { - "start": { - "line": 74, - "column": 28 - }, - "end": { - "line": 74, - "column": 36 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 2495, - "end": 2774, - "loc": { - "start": { - "line": 74, - "column": 38 - }, - "end": { - "line": 86, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2501, - "end": 2770, - "loc": { - "start": { - "line": 75, - "column": 4 - }, - "end": { - "line": 85, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 2501, - "end": 2769, - "loc": { - "start": { - "line": 75, - "column": 4 - }, - "end": { - "line": 85, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2501, - "end": 2767, - "loc": { - "start": { - "line": 75, - "column": 4 - }, - "end": { - "line": 85, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 2501, - "end": 2756, - "loc": { - "start": { - "line": 75, - "column": 4 - }, - "end": { - "line": 84, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2501, - "end": 2723, - "loc": { - "start": { - "line": 75, - "column": 4 - }, - "end": { - "line": 84, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 2501, - "end": 2713, - "loc": { - "start": { - "line": 75, - "column": 4 - }, - "end": { - "line": 83, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2501, - "end": 2521, - "loc": { - "start": { - "line": 75, - "column": 4 - }, - "end": { - "line": 76, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 2501, - "end": 2506, - "loc": { - "start": { - "line": 75, - "column": 4 - }, - "end": { - "line": 75, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 2514, - "end": 2521, - "loc": { - "start": { - "line": 76, - "column": 7 - }, - "end": { - "line": 76, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 2522, - "end": 2685, - "loc": { - "start": { - "line": 76, - "column": 15 - }, - "end": { - "line": 83, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 2522, - "end": 2541, - "loc": { - "start": { - "line": 76, - "column": 15 - }, - "end": { - "line": 76, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 2542, - "end": 2684, - "loc": { - "start": { - "line": 76, - "column": 35 - }, - "end": { - "line": 83, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2552, - "end": 2565, - "loc": { - "start": { - "line": 77, - "column": 8 - }, - "end": { - "line": 77, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2552, - "end": 2558, - "loc": { - "start": { - "line": 77, - "column": 8 - }, - "end": { - "line": 77, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 2560, - "end": 2565, - "loc": { - "start": { - "line": 77, - "column": 16 - }, - "end": { - "line": 77, - "column": 21 - } - }, - "extra": { - "rawValue": "GET", - "raw": "'GET'" - }, - "value": "GET" - } - }, - { - "type": "ObjectProperty", - "start": 2575, - "end": 2596, - "loc": { - "start": { - "line": 78, - "column": 8 - }, - "end": { - "line": 78, - "column": 29 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2575, - "end": 2579, - "loc": { - "start": { - "line": 78, - "column": 8 - }, - "end": { - "line": 78, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 2581, - "end": 2596, - "loc": { - "start": { - "line": 78, - "column": 14 - }, - "end": { - "line": 78, - "column": 29 - } - }, - "extra": { - "rawValue": "/oauth2/token", - "raw": "'/oauth2/token'" - }, - "value": "/oauth2/token" - } - }, - { - "type": "ObjectProperty", - "start": 2606, - "end": 2675, - "loc": { - "start": { - "line": 79, - "column": 8 - }, - "end": { - "line": 82, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2606, - "end": 2619, - "loc": { - "start": { - "line": 79, - "column": 8 - }, - "end": { - "line": 79, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 2621, - "end": 2675, - "loc": { - "start": { - "line": 79, - "column": 23 - }, - "end": { - "line": 82, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2633, - "end": 2647, - "loc": { - "start": { - "line": 80, - "column": 10 - }, - "end": { - "line": 80, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2633, - "end": 2637, - "loc": { - "start": { - "line": 80, - "column": 10 - }, - "end": { - "line": 80, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 2639, - "end": 2647, - "loc": { - "start": { - "line": 80, - "column": 16 - }, - "end": { - "line": 80, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 2659, - "end": 2664, - "loc": { - "start": { - "line": 81, - "column": 10 - }, - "end": { - "line": 81, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2659, - "end": 2664, - "loc": { - "start": { - "line": 81, - "column": 10 - }, - "end": { - "line": 81, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 2659, - "end": 2664, - "loc": { - "start": { - "line": 81, - "column": 10 - }, - "end": { - "line": 81, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 2687, - "end": 2712, - "loc": { - "start": { - "line": 83, - "column": 10 - }, - "end": { - "line": 83, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 2687, - "end": 2702, - "loc": { - "start": { - "line": 83, - "column": 10 - }, - "end": { - "line": 83, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2703, - "end": 2711, - "loc": { - "start": { - "line": 83, - "column": 26 - }, - "end": { - "line": 83, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 2721, - "end": 2723, - "loc": { - "start": { - "line": 84, - "column": 7 - }, - "end": { - "line": 84, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2724, - "end": 2731, - "loc": { - "start": { - "line": 84, - "column": 10 - }, - "end": { - "line": 84, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 2733, - "end": 2755, - "loc": { - "start": { - "line": 84, - "column": 19 - }, - "end": { - "line": 84, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 2733, - "end": 2745, - "loc": { - "start": { - "line": 84, - "column": 19 - }, - "end": { - "line": 84, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2746, - "end": 2754, - "loc": { - "start": { - "line": 84, - "column": 32 - }, - "end": { - "line": 84, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 2764, - "end": 2767, - "loc": { - "start": { - "line": 85, - "column": 7 - }, - "end": { - "line": 85, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Verify access token payload\n * @typedef {Object} AccessTokenVerifyParams\n * @property {string} token - your auth token\n ", - "start": 1712, - "end": 1849, - "loc": { - "start": { - "line": 54, - "column": 2 - }, - "end": { - "line": 58, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Verify access token response data\n * @typedef {Object} AccessTokenVerifyResponse\n * @property {number} res.expires_in - time in seconds for which the token was issued\n * @property {string} res.token_type - type of access token (e.g. 'bearer')\n * @property {string} res.access_token - access token\n * @property {string} res.scope - access scopes\n ", - "start": 1853, - "end": 2222, - "loc": { - "start": { - "line": 60, - "column": 2 - }, - "end": { - "line": 67, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Verifies access token\n * @param {AccessTokenVerifyParams} data - access token request payload\n * @param {function(err: ApiErrorResponse, res: AccessTokenVerifyResponse)} [callback] - error first node.js callback\n ", - "start": 2226, - "end": 2456, - "loc": { - "start": { - "line": 69, - "column": 2 - }, - "end": { - "line": 73, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Refresh access token payload\n * @typedef {Object} AccessTokenRefreshParams\n * @property {string} refresh_token - your refresh token\n * @property {string} [scope] - access scopes of access token\n * @property {number} [expiration_time] - time in seconds for which the token was issued\n ", - "start": 2778, - "end": 3083, - "loc": { - "start": { - "line": 88, - "column": 2 - }, - "end": { - "line": 94, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Refresh access token response data\n * @typedef {Object} AccessTokenRefreshResponse\n * @property {number} res.expires_in - time in seconds for which the token was issued\n * @property {string} res.token_type - type of access token (e.g. 'bearer')\n * @property {string} res.access_token - access token\n * @property {string} res.refresh_token - refresh token\n * @property {string} res.scope - access scopes\n ", - "start": 3087, - "end": 3516, - "loc": { - "start": { - "line": 96, - "column": 2 - }, - "end": { - "line": 104, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Refreshes access token for a user\n * @param {AccessTokenRefreshParams} data - refresh token request payload\n * @param {function(err: ApiErrorResponse, res: AccessTokenRefreshResponse)} [callback] - error first node.js callback\n ", - "start": 3520, - "end": 3765, - "loc": { - "start": { - "line": 106, - "column": 2 - }, - "end": { - "line": 110, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 3768, - "end": 4412, - "loc": { - "start": { - "line": 111, - "column": 2 - }, - "end": { - "line": 128, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3775, - "end": 3787, - "loc": { - "start": { - "line": 111, - "column": 9 - }, - "end": { - "line": 111, - "column": 21 - }, - "identifierName": "refreshToken" - }, - "name": "refreshToken" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 3789, - "end": 3793, - "loc": { - "start": { - "line": 111, - "column": 23 - }, - "end": { - "line": 111, - "column": 27 - }, - "identifierName": "data" - }, - "name": "data" - }, - { - "type": "Identifier", - "start": 3795, - "end": 3803, - "loc": { - "start": { - "line": 111, - "column": 29 - }, - "end": { - "line": 111, - "column": 37 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 3805, - "end": 4412, - "loc": { - "start": { - "line": 111, - "column": 39 - }, - "end": { - "line": 128, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 3811, - "end": 3885, - "loc": { - "start": { - "line": 112, - "column": 4 - }, - "end": { - "line": 112, - "column": 78 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3817, - "end": 3884, - "loc": { - "start": { - "line": 112, - "column": 10 - }, - "end": { - "line": 112, - "column": 77 - } - }, - "id": { - "type": "Identifier", - "start": 3817, - "end": 3825, - "loc": { - "start": { - "line": 112, - "column": 10 - }, - "end": { - "line": 112, - "column": 18 - }, - "identifierName": "dataCopy" - }, - "name": "dataCopy" - }, - "init": { - "type": "CallExpression", - "start": 3828, - "end": 3884, - "loc": { - "start": { - "line": 112, - "column": 21 - }, - "end": { - "line": 112, - "column": 77 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3828, - "end": 3841, - "loc": { - "start": { - "line": 112, - "column": 21 - }, - "end": { - "line": 112, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 3828, - "end": 3834, - "loc": { - "start": { - "line": 112, - "column": 21 - }, - "end": { - "line": 112, - "column": 27 - }, - "identifierName": "Object" - }, - "name": "Object" - }, - "property": { - "type": "Identifier", - "start": 3835, - "end": 3841, - "loc": { - "start": { - "line": 112, - "column": 28 - }, - "end": { - "line": 112, - "column": 34 - }, - "identifierName": "assign" - }, - "name": "assign" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 3842, - "end": 3844, - "loc": { - "start": { - "line": 112, - "column": 35 - }, - "end": { - "line": 112, - "column": 37 - } - }, - "properties": [] - }, - { - "type": "Identifier", - "start": 3846, - "end": 3850, - "loc": { - "start": { - "line": 112, - "column": 39 - }, - "end": { - "line": 112, - "column": 43 - }, - "identifierName": "data" - }, - "name": "data" - }, - { - "type": "ObjectExpression", - "start": 3852, - "end": 3883, - "loc": { - "start": { - "line": 112, - "column": 45 - }, - "end": { - "line": 112, - "column": 76 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3854, - "end": 3881, - "loc": { - "start": { - "line": 112, - "column": 47 - }, - "end": { - "line": 112, - "column": 74 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3854, - "end": 3864, - "loc": { - "start": { - "line": 112, - "column": 47 - }, - "end": { - "line": 112, - "column": 57 - }, - "identifierName": "grant_type" - }, - "name": "grant_type" - }, - "value": { - "type": "StringLiteral", - "start": 3866, - "end": 3881, - "loc": { - "start": { - "line": 112, - "column": 59 - }, - "end": { - "line": 112, - "column": 74 - } - }, - "extra": { - "rawValue": "refresh_token", - "raw": "'refresh_token'" - }, - "value": "refresh_token" - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 3890, - "end": 3966, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 113, - "column": 80 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3896, - "end": 3965, - "loc": { - "start": { - "line": 113, - "column": 10 - }, - "end": { - "line": 113, - "column": 79 - } - }, - "id": { - "type": "Identifier", - "start": 3896, - "end": 3911, - "loc": { - "start": { - "line": 113, - "column": 10 - }, - "end": { - "line": 113, - "column": 25 - }, - "identifierName": "dataStringified" - }, - "name": "dataStringified" - }, - "init": { - "type": "CallExpression", - "start": 3914, - "end": 3965, - "loc": { - "start": { - "line": 113, - "column": 28 - }, - "end": { - "line": 113, - "column": 79 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3914, - "end": 3953, - "loc": { - "start": { - "line": 113, - "column": 28 - }, - "end": { - "line": 113, - "column": 67 - } - }, - "object": { - "type": "CallExpression", - "start": 3914, - "end": 3945, - "loc": { - "start": { - "line": 113, - "column": 28 - }, - "end": { - "line": 113, - "column": 59 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3914, - "end": 3935, - "loc": { - "start": { - "line": 113, - "column": 28 - }, - "end": { - "line": 113, - "column": 49 - } - }, - "object": { - "type": "Identifier", - "start": 3914, - "end": 3925, - "loc": { - "start": { - "line": 113, - "column": 28 - }, - "end": { - "line": 113, - "column": 39 - }, - "identifierName": "querystring" - }, - "name": "querystring" - }, - "property": { - "type": "Identifier", - "start": 3926, - "end": 3935, - "loc": { - "start": { - "line": 113, - "column": 40 - }, - "end": { - "line": 113, - "column": 49 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 3936, - "end": 3944, - "loc": { - "start": { - "line": 113, - "column": 50 - }, - "end": { - "line": 113, - "column": 58 - }, - "identifierName": "dataCopy" - }, - "name": "dataCopy" - } - ] - }, - "property": { - "type": "Identifier", - "start": 3946, - "end": 3953, - "loc": { - "start": { - "line": 113, - "column": 60 - }, - "end": { - "line": 113, - "column": 67 - }, - "identifierName": "replace" - }, - "name": "replace" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 3954, - "end": 3959, - "loc": { - "start": { - "line": 113, - "column": 68 - }, - "end": { - "line": 113, - "column": 73 - } - }, - "extra": { - "rawValue": "%40", - "raw": "'%40'" - }, - "value": "%40" - }, - { - "type": "StringLiteral", - "start": 3961, - "end": 3964, - "loc": { - "start": { - "line": 113, - "column": 75 - }, - "end": { - "line": 113, - "column": 78 - } - }, - "extra": { - "rawValue": "@", - "raw": "'@'" - }, - "value": "@" - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 3971, - "end": 4360, - "loc": { - "start": { - "line": 114, - "column": 4 - }, - "end": { - "line": 124, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3977, - "end": 4359, - "loc": { - "start": { - "line": 114, - "column": 10 - }, - "end": { - "line": 124, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 3977, - "end": 3980, - "loc": { - "start": { - "line": 114, - "column": 10 - }, - "end": { - "line": 114, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 3983, - "end": 4359, - "loc": { - "start": { - "line": 114, - "column": 16 - }, - "end": { - "line": 124, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3983, - "end": 4326, - "loc": { - "start": { - "line": 114, - "column": 16 - }, - "end": { - "line": 124, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 3983, - "end": 4316, - "loc": { - "start": { - "line": 114, - "column": 16 - }, - "end": { - "line": 123, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3983, - "end": 4003, - "loc": { - "start": { - "line": 114, - "column": 16 - }, - "end": { - "line": 115, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 3983, - "end": 3988, - "loc": { - "start": { - "line": 114, - "column": 16 - }, - "end": { - "line": 114, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 3996, - "end": 4003, - "loc": { - "start": { - "line": 115, - "column": 7 - }, - "end": { - "line": 115, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 4004, - "end": 4288, - "loc": { - "start": { - "line": 115, - "column": 15 - }, - "end": { - "line": 123, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 4004, - "end": 4023, - "loc": { - "start": { - "line": 115, - "column": 15 - }, - "end": { - "line": 115, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 4024, - "end": 4287, - "loc": { - "start": { - "line": 115, - "column": 35 - }, - "end": { - "line": 123, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4034, - "end": 4048, - "loc": { - "start": { - "line": 116, - "column": 8 - }, - "end": { - "line": 116, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4034, - "end": 4040, - "loc": { - "start": { - "line": 116, - "column": 8 - }, - "end": { - "line": 116, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 4042, - "end": 4048, - "loc": { - "start": { - "line": 116, - "column": 16 - }, - "end": { - "line": 116, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 4058, - "end": 4079, - "loc": { - "start": { - "line": 117, - "column": 8 - }, - "end": { - "line": 117, - "column": 29 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4058, - "end": 4062, - "loc": { - "start": { - "line": 117, - "column": 8 - }, - "end": { - "line": 117, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 4064, - "end": 4079, - "loc": { - "start": { - "line": 117, - "column": 14 - }, - "end": { - "line": 117, - "column": 29 - } - }, - "extra": { - "rawValue": "/oauth2/token", - "raw": "'/oauth2/token'" - }, - "value": "/oauth2/token" - } - }, - { - "type": "ObjectProperty", - "start": 4089, - "end": 4121, - "loc": { - "start": { - "line": 118, - "column": 8 - }, - "end": { - "line": 118, - "column": 40 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4089, - "end": 4102, - "loc": { - "start": { - "line": 118, - "column": 8 - }, - "end": { - "line": 118, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 4104, - "end": 4121, - "loc": { - "start": { - "line": 118, - "column": 23 - }, - "end": { - "line": 118, - "column": 40 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4106, - "end": 4119, - "loc": { - "start": { - "line": 118, - "column": 25 - }, - "end": { - "line": 118, - "column": 38 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4106, - "end": 4110, - "loc": { - "start": { - "line": 118, - "column": 25 - }, - "end": { - "line": 118, - "column": 29 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 4112, - "end": 4119, - "loc": { - "start": { - "line": 118, - "column": 31 - }, - "end": { - "line": 118, - "column": 38 - } - }, - "extra": { - "rawValue": "Basic", - "raw": "'Basic'" - }, - "value": "Basic" - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 4131, - "end": 4278, - "loc": { - "start": { - "line": 119, - "column": 8 - }, - "end": { - "line": 122, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4131, - "end": 4138, - "loc": { - "start": { - "line": 119, - "column": 8 - }, - "end": { - "line": 119, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 4140, - "end": 4278, - "loc": { - "start": { - "line": 119, - "column": 17 - }, - "end": { - "line": 122, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4152, - "end": 4203, - "loc": { - "start": { - "line": 120, - "column": 10 - }, - "end": { - "line": 120, - "column": 61 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 4152, - "end": 4166, - "loc": { - "start": { - "line": 120, - "column": 10 - }, - "end": { - "line": 120, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 4168, - "end": 4203, - "loc": { - "start": { - "line": 120, - "column": 26 - }, - "end": { - "line": 120, - "column": 61 - } - }, - "extra": { - "rawValue": "application/x-www-form-urlencoded", - "raw": "'application/x-www-form-urlencoded'" - }, - "value": "application/x-www-form-urlencoded" - } - }, - { - "type": "ObjectProperty", - "start": 4215, - "end": 4267, - "loc": { - "start": { - "line": 121, - "column": 10 - }, - "end": { - "line": 121, - "column": 62 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 4215, - "end": 4231, - "loc": { - "start": { - "line": 121, - "column": 10 - }, - "end": { - "line": 121, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 4233, - "end": 4267, - "loc": { - "start": { - "line": 121, - "column": 28 - }, - "end": { - "line": 121, - "column": 62 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4233, - "end": 4250, - "loc": { - "start": { - "line": 121, - "column": 28 - }, - "end": { - "line": 121, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 4233, - "end": 4239, - "loc": { - "start": { - "line": 121, - "column": 28 - }, - "end": { - "line": 121, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 4240, - "end": 4250, - "loc": { - "start": { - "line": 121, - "column": 35 - }, - "end": { - "line": 121, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 4251, - "end": 4266, - "loc": { - "start": { - "line": 121, - "column": 46 - }, - "end": { - "line": 121, - "column": 61 - }, - "identifierName": "dataStringified" - }, - "name": "dataStringified" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 4290, - "end": 4315, - "loc": { - "start": { - "line": 123, - "column": 10 - }, - "end": { - "line": 123, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 4290, - "end": 4305, - "loc": { - "start": { - "line": 123, - "column": 10 - }, - "end": { - "line": 123, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 4306, - "end": 4314, - "loc": { - "start": { - "line": 123, - "column": 26 - }, - "end": { - "line": 123, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 4324, - "end": 4326, - "loc": { - "start": { - "line": 124, - "column": 7 - }, - "end": { - "line": 124, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 4327, - "end": 4334, - "loc": { - "start": { - "line": 124, - "column": 10 - }, - "end": { - "line": 124, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 4336, - "end": 4358, - "loc": { - "start": { - "line": 124, - "column": 19 - }, - "end": { - "line": 124, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 4336, - "end": 4348, - "loc": { - "start": { - "line": 124, - "column": 19 - }, - "end": { - "line": 124, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 4349, - "end": 4357, - "loc": { - "start": { - "line": 124, - "column": 32 - }, - "end": { - "line": 124, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 4366, - "end": 4393, - "loc": { - "start": { - "line": 126, - "column": 4 - }, - "end": { - "line": 126, - "column": 31 - } - }, - "expression": { - "type": "CallExpression", - "start": 4366, - "end": 4392, - "loc": { - "start": { - "line": 126, - "column": 4 - }, - "end": { - "line": 126, - "column": 30 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4366, - "end": 4375, - "loc": { - "start": { - "line": 126, - "column": 4 - }, - "end": { - "line": 126, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 4366, - "end": 4369, - "loc": { - "start": { - "line": 126, - "column": 4 - }, - "end": { - "line": 126, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 4370, - "end": 4375, - "loc": { - "start": { - "line": 126, - "column": 8 - }, - "end": { - "line": 126, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 4376, - "end": 4391, - "loc": { - "start": { - "line": 126, - "column": 14 - }, - "end": { - "line": 126, - "column": 29 - }, - "identifierName": "dataStringified" - }, - "name": "dataStringified" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 4398, - "end": 4408, - "loc": { - "start": { - "line": 127, - "column": 4 - }, - "end": { - "line": 127, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 4398, - "end": 4407, - "loc": { - "start": { - "line": 127, - "column": 4 - }, - "end": { - "line": 127, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4398, - "end": 4405, - "loc": { - "start": { - "line": 127, - "column": 4 - }, - "end": { - "line": 127, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 4398, - "end": 4401, - "loc": { - "start": { - "line": 127, - "column": 4 - }, - "end": { - "line": 127, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 4402, - "end": 4405, - "loc": { - "start": { - "line": 127, - "column": 8 - }, - "end": { - "line": 127, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Refresh access token payload\n * @typedef {Object} AccessTokenRefreshParams\n * @property {string} refresh_token - your refresh token\n * @property {string} [scope] - access scopes of access token\n * @property {number} [expiration_time] - time in seconds for which the token was issued\n ", - "start": 2778, - "end": 3083, - "loc": { - "start": { - "line": 88, - "column": 2 - }, - "end": { - "line": 94, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Refresh access token response data\n * @typedef {Object} AccessTokenRefreshResponse\n * @property {number} res.expires_in - time in seconds for which the token was issued\n * @property {string} res.token_type - type of access token (e.g. 'bearer')\n * @property {string} res.access_token - access token\n * @property {string} res.refresh_token - refresh token\n * @property {string} res.scope - access scopes\n ", - "start": 3087, - "end": 3516, - "loc": { - "start": { - "line": 96, - "column": 2 - }, - "end": { - "line": 104, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Refreshes access token for a user\n * @param {AccessTokenRefreshParams} data - refresh token request payload\n * @param {function(err: ApiErrorResponse, res: AccessTokenRefreshResponse)} [callback] - error first node.js callback\n ", - "start": 3520, - "end": 3765, - "loc": { - "start": { - "line": 106, - "column": 2 - }, - "end": { - "line": 110, - "column": 5 - } - } - } - ] - } - ] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * OAuth2 methods\n ", - "start": 163, - "end": 188, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 10, - "column": 3 - } - } - } - ], - "__PseudoExport__": false, - "trailingComments": [] - }, - "leadingComments": null - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "value": "use strict", - "extra": { - "raw": "'use strict'", - "rawValue": "use strict" - } - } - } - ] - }, - "comments": [ - { - "type": "CommentBlock", - "value": "*\n * OAuth2 methods\n ", - "start": 163, - "end": 188, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 10, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Request access token payload\n * @typedef {Object} AccessTokenGetParams\n * @property {string} username - email of a user\n * @property {string} password - password of a user\n ", - "start": 207, - "end": 399, - "loc": { - "start": { - "line": 13, - "column": 2 - }, - "end": { - "line": 18, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Request access token response data\n * @typedef {Object} AccessTokenGetResponse\n * @property {number} res.expires_in - time in seconds for which the token was issued\n * @property {string} res.token_type - type of access token (e.g. 'bearer')\n * @property {string} res.access_token - access token\n * @property {string} res.refresh_token - refresh token\n * @property {string} res.scope - access scopes\n ", - "start": 403, - "end": 828, - "loc": { - "start": { - "line": 20, - "column": 2 - }, - "end": { - "line": 28, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Requests access token for a user\n * @param {AccessTokenGetParams} data - access token reques payload\n * @param {function(err: ApiErrorResponse, res: AccessTokenGetResponse)} [callback] - error first node.js callback\n ", - "start": 832, - "end": 1066, - "loc": { - "start": { - "line": 30, - "column": 2 - }, - "end": { - "line": 34, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Verify access token payload\n * @typedef {Object} AccessTokenVerifyParams\n * @property {string} token - your auth token\n ", - "start": 1712, - "end": 1849, - "loc": { - "start": { - "line": 54, - "column": 2 - }, - "end": { - "line": 58, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Verify access token response data\n * @typedef {Object} AccessTokenVerifyResponse\n * @property {number} res.expires_in - time in seconds for which the token was issued\n * @property {string} res.token_type - type of access token (e.g. 'bearer')\n * @property {string} res.access_token - access token\n * @property {string} res.scope - access scopes\n ", - "start": 1853, - "end": 2222, - "loc": { - "start": { - "line": 60, - "column": 2 - }, - "end": { - "line": 67, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Verifies access token\n * @param {AccessTokenVerifyParams} data - access token request payload\n * @param {function(err: ApiErrorResponse, res: AccessTokenVerifyResponse)} [callback] - error first node.js callback\n ", - "start": 2226, - "end": 2456, - "loc": { - "start": { - "line": 69, - "column": 2 - }, - "end": { - "line": 73, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Refresh access token payload\n * @typedef {Object} AccessTokenRefreshParams\n * @property {string} refresh_token - your refresh token\n * @property {string} [scope] - access scopes of access token\n * @property {number} [expiration_time] - time in seconds for which the token was issued\n ", - "start": 2778, - "end": 3083, - "loc": { - "start": { - "line": 88, - "column": 2 - }, - "end": { - "line": 94, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Refresh access token response data\n * @typedef {Object} AccessTokenRefreshResponse\n * @property {number} res.expires_in - time in seconds for which the token was issued\n * @property {string} res.token_type - type of access token (e.g. 'bearer')\n * @property {string} res.access_token - access token\n * @property {string} res.refresh_token - refresh token\n * @property {string} res.scope - access scopes\n ", - "start": 3087, - "end": 3516, - "loc": { - "start": { - "line": 96, - "column": 2 - }, - "end": { - "line": 104, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Refreshes access token for a user\n * @param {AccessTokenRefreshParams} data - refresh token request payload\n * @param {function(err: ApiErrorResponse, res: AccessTokenRefreshResponse)} [callback] - error first node.js callback\n ", - "start": 3520, - "end": 3765, - "loc": { - "start": { - "line": 106, - "column": 2 - }, - "end": { - "line": 110, - "column": 5 - } - } - } - ], - "tokens": [ - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "use strict", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 12 - }, - "end": { - "line": 1, - "column": 13 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 14, - "end": 20, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 27, - "end": 31, - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 17 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "https", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 18 - }, - "end": { - "line": 2, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39, - "end": 40, - "loc": { - "start": { - "line": 2, - "column": 25 - }, - "end": { - "line": 2, - "column": 26 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 41, - "end": 47, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "querystring", - "start": 48, - "end": 59, - "loc": { - "start": { - "line": 3, - "column": 7 - }, - "end": { - "line": 3, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 60, - "end": 64, - "loc": { - "start": { - "line": 3, - "column": 19 - }, - "end": { - "line": 3, - "column": 23 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "querystring", - "start": 65, - "end": 78, - "loc": { - "start": { - "line": 3, - "column": 24 - }, - "end": { - "line": 3, - "column": 37 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 78, - "end": 79, - "loc": { - "start": { - "line": 3, - "column": 37 - }, - "end": { - "line": 3, - "column": 38 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 80, - "end": 86, - "loc": { - "start": { - "line": 4, - "column": 0 - }, - "end": { - "line": 4, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 87, - "end": 88, - "loc": { - "start": { - "line": 4, - "column": 7 - }, - "end": { - "line": 4, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 91, - "end": 106, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 106, - "end": 107, - "loc": { - "start": { - "line": 5, - "column": 17 - }, - "end": { - "line": 5, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 108, - "end": 120, - "loc": { - "start": { - "line": 5, - "column": 19 - }, - "end": { - "line": 5, - "column": 31 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 120, - "end": 121, - "loc": { - "start": { - "line": 5, - "column": 31 - }, - "end": { - "line": 5, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 122, - "end": 141, - "loc": { - "start": { - "line": 5, - "column": 33 - }, - "end": { - "line": 5, - "column": 52 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 141, - "end": 142, - "loc": { - "start": { - "line": 5, - "column": 52 - }, - "end": { - "line": 5, - "column": 53 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 143, - "end": 144, - "loc": { - "start": { - "line": 6, - "column": 0 - }, - "end": { - "line": 6, - "column": 1 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 145, - "end": 149, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 6 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "./common", - "start": 150, - "end": 160, - "loc": { - "start": { - "line": 6, - "column": 7 - }, - "end": { - "line": 6, - "column": 17 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 160, - "end": 161, - "loc": { - "start": { - "line": 6, - "column": 17 - }, - "end": { - "line": 6, - "column": 18 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * OAuth2 methods\n ", - "start": 163, - "end": 188, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 10, - "column": 3 - } - } - }, - { - "type": { - "label": "class", - "keyword": "class", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "class", - "start": 189, - "end": 194, - "loc": { - "start": { - "line": 11, - "column": 0 - }, - "end": { - "line": 11, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "OAuth2", - "start": 195, - "end": 201, - "loc": { - "start": { - "line": 11, - "column": 6 - }, - "end": { - "line": 11, - "column": 12 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 202, - "end": 203, - "loc": { - "start": { - "line": 11, - "column": 13 - }, - "end": { - "line": 11, - "column": 14 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Request access token payload\n * @typedef {Object} AccessTokenGetParams\n * @property {string} username - email of a user\n * @property {string} password - password of a user\n ", - "start": 207, - "end": 399, - "loc": { - "start": { - "line": 13, - "column": 2 - }, - "end": { - "line": 18, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Request access token response data\n * @typedef {Object} AccessTokenGetResponse\n * @property {number} res.expires_in - time in seconds for which the token was issued\n * @property {string} res.token_type - type of access token (e.g. 'bearer')\n * @property {string} res.access_token - access token\n * @property {string} res.refresh_token - refresh token\n * @property {string} res.scope - access scopes\n ", - "start": 403, - "end": 828, - "loc": { - "start": { - "line": 20, - "column": 2 - }, - "end": { - "line": 28, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Requests access token for a user\n * @param {AccessTokenGetParams} data - access token reques payload\n * @param {function(err: ApiErrorResponse, res: AccessTokenGetResponse)} [callback] - error first node.js callback\n ", - "start": 832, - "end": 1066, - "loc": { - "start": { - "line": 30, - "column": 2 - }, - "end": { - "line": 34, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 1069, - "end": 1075, - "loc": { - "start": { - "line": 35, - "column": 2 - }, - "end": { - "line": 35, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "requestToken", - "start": 1076, - "end": 1088, - "loc": { - "start": { - "line": 35, - "column": 9 - }, - "end": { - "line": 35, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1089, - "end": 1090, - "loc": { - "start": { - "line": 35, - "column": 22 - }, - "end": { - "line": 35, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 1090, - "end": 1094, - "loc": { - "start": { - "line": 35, - "column": 23 - }, - "end": { - "line": 35, - "column": 27 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1094, - "end": 1095, - "loc": { - "start": { - "line": 35, - "column": 27 - }, - "end": { - "line": 35, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 1096, - "end": 1104, - "loc": { - "start": { - "line": 35, - "column": 29 - }, - "end": { - "line": 35, - "column": 37 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1104, - "end": 1105, - "loc": { - "start": { - "line": 35, - "column": 37 - }, - "end": { - "line": 35, - "column": 38 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1106, - "end": 1107, - "loc": { - "start": { - "line": 35, - "column": 39 - }, - "end": { - "line": 35, - "column": 40 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1112, - "end": 1117, - "loc": { - "start": { - "line": 36, - "column": 4 - }, - "end": { - "line": 36, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "dataCopy", - "start": 1118, - "end": 1126, - "loc": { - "start": { - "line": 36, - "column": 10 - }, - "end": { - "line": 36, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1127, - "end": 1128, - "loc": { - "start": { - "line": 36, - "column": 19 - }, - "end": { - "line": 36, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Object", - "start": 1129, - "end": 1135, - "loc": { - "start": { - "line": 36, - "column": 21 - }, - "end": { - "line": 36, - "column": 27 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1135, - "end": 1136, - "loc": { - "start": { - "line": 36, - "column": 27 - }, - "end": { - "line": 36, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "assign", - "start": 1136, - "end": 1142, - "loc": { - "start": { - "line": 36, - "column": 28 - }, - "end": { - "line": 36, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1142, - "end": 1143, - "loc": { - "start": { - "line": 36, - "column": 34 - }, - "end": { - "line": 36, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1143, - "end": 1144, - "loc": { - "start": { - "line": 36, - "column": 35 - }, - "end": { - "line": 36, - "column": 36 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1144, - "end": 1145, - "loc": { - "start": { - "line": 36, - "column": 36 - }, - "end": { - "line": 36, - "column": 37 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1145, - "end": 1146, - "loc": { - "start": { - "line": 36, - "column": 37 - }, - "end": { - "line": 36, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 1147, - "end": 1151, - "loc": { - "start": { - "line": 36, - "column": 39 - }, - "end": { - "line": 36, - "column": 43 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1151, - "end": 1152, - "loc": { - "start": { - "line": 36, - "column": 43 - }, - "end": { - "line": 36, - "column": 44 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1153, - "end": 1154, - "loc": { - "start": { - "line": 36, - "column": 45 - }, - "end": { - "line": 36, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "grant_type", - "start": 1155, - "end": 1165, - "loc": { - "start": { - "line": 36, - "column": 47 - }, - "end": { - "line": 36, - "column": 57 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1165, - "end": 1166, - "loc": { - "start": { - "line": 36, - "column": 57 - }, - "end": { - "line": 36, - "column": 58 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "password", - "start": 1167, - "end": 1177, - "loc": { - "start": { - "line": 36, - "column": 59 - }, - "end": { - "line": 36, - "column": 69 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1178, - "end": 1179, - "loc": { - "start": { - "line": 36, - "column": 70 - }, - "end": { - "line": 36, - "column": 71 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1179, - "end": 1180, - "loc": { - "start": { - "line": 36, - "column": 71 - }, - "end": { - "line": 36, - "column": 72 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1180, - "end": 1181, - "loc": { - "start": { - "line": 36, - "column": 72 - }, - "end": { - "line": 36, - "column": 73 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1186, - "end": 1191, - "loc": { - "start": { - "line": 37, - "column": 4 - }, - "end": { - "line": 37, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "dataStringified", - "start": 1192, - "end": 1207, - "loc": { - "start": { - "line": 37, - "column": 10 - }, - "end": { - "line": 37, - "column": 25 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1208, - "end": 1209, - "loc": { - "start": { - "line": 37, - "column": 26 - }, - "end": { - "line": 37, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "querystring", - "start": 1210, - "end": 1221, - "loc": { - "start": { - "line": 37, - "column": 28 - }, - "end": { - "line": 37, - "column": 39 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1221, - "end": 1222, - "loc": { - "start": { - "line": 37, - "column": 39 - }, - "end": { - "line": 37, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "stringify", - "start": 1222, - "end": 1231, - "loc": { - "start": { - "line": 37, - "column": 40 - }, - "end": { - "line": 37, - "column": 49 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1231, - "end": 1232, - "loc": { - "start": { - "line": 37, - "column": 49 - }, - "end": { - "line": 37, - "column": 50 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "dataCopy", - "start": 1232, - "end": 1240, - "loc": { - "start": { - "line": 37, - "column": 50 - }, - "end": { - "line": 37, - "column": 58 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1240, - "end": 1241, - "loc": { - "start": { - "line": 37, - "column": 58 - }, - "end": { - "line": 37, - "column": 59 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1241, - "end": 1242, - "loc": { - "start": { - "line": 37, - "column": 59 - }, - "end": { - "line": 37, - "column": 60 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "replace", - "start": 1242, - "end": 1249, - "loc": { - "start": { - "line": 37, - "column": 60 - }, - "end": { - "line": 37, - "column": 67 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1249, - "end": 1250, - "loc": { - "start": { - "line": 37, - "column": 67 - }, - "end": { - "line": 37, - "column": 68 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "%40", - "start": 1250, - "end": 1255, - "loc": { - "start": { - "line": 37, - "column": 68 - }, - "end": { - "line": 37, - "column": 73 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1255, - "end": 1256, - "loc": { - "start": { - "line": 37, - "column": 73 - }, - "end": { - "line": 37, - "column": 74 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "@", - "start": 1257, - "end": 1260, - "loc": { - "start": { - "line": 37, - "column": 75 - }, - "end": { - "line": 37, - "column": 78 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1260, - "end": 1261, - "loc": { - "start": { - "line": 37, - "column": 78 - }, - "end": { - "line": 37, - "column": 79 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1261, - "end": 1262, - "loc": { - "start": { - "line": 37, - "column": 79 - }, - "end": { - "line": 37, - "column": 80 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1267, - "end": 1272, - "loc": { - "start": { - "line": 38, - "column": 4 - }, - "end": { - "line": 38, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 1273, - "end": 1276, - "loc": { - "start": { - "line": 38, - "column": 10 - }, - "end": { - "line": 38, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1277, - "end": 1278, - "loc": { - "start": { - "line": 38, - "column": 14 - }, - "end": { - "line": 38, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 1279, - "end": 1284, - "loc": { - "start": { - "line": 38, - "column": 16 - }, - "end": { - "line": 38, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1291, - "end": 1292, - "loc": { - "start": { - "line": 39, - "column": 6 - }, - "end": { - "line": 39, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 1292, - "end": 1299, - "loc": { - "start": { - "line": 39, - "column": 7 - }, - "end": { - "line": 39, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1299, - "end": 1300, - "loc": { - "start": { - "line": 39, - "column": 14 - }, - "end": { - "line": 39, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 1300, - "end": 1319, - "loc": { - "start": { - "line": 39, - "column": 15 - }, - "end": { - "line": 39, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1319, - "end": 1320, - "loc": { - "start": { - "line": 39, - "column": 34 - }, - "end": { - "line": 39, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1320, - "end": 1321, - "loc": { - "start": { - "line": 39, - "column": 35 - }, - "end": { - "line": 39, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 1330, - "end": 1336, - "loc": { - "start": { - "line": 40, - "column": 8 - }, - "end": { - "line": 40, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1336, - "end": 1337, - "loc": { - "start": { - "line": 40, - "column": 14 - }, - "end": { - "line": 40, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "POST", - "start": 1338, - "end": 1344, - "loc": { - "start": { - "line": 40, - "column": 16 - }, - "end": { - "line": 40, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1344, - "end": 1345, - "loc": { - "start": { - "line": 40, - "column": 22 - }, - "end": { - "line": 40, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 1354, - "end": 1358, - "loc": { - "start": { - "line": 41, - "column": 8 - }, - "end": { - "line": 41, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1358, - "end": 1359, - "loc": { - "start": { - "line": 41, - "column": 12 - }, - "end": { - "line": 41, - "column": 13 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/oauth2/token", - "start": 1360, - "end": 1375, - "loc": { - "start": { - "line": 41, - "column": 14 - }, - "end": { - "line": 41, - "column": 29 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1375, - "end": 1376, - "loc": { - "start": { - "line": 41, - "column": 29 - }, - "end": { - "line": 41, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 1385, - "end": 1398, - "loc": { - "start": { - "line": 42, - "column": 8 - }, - "end": { - "line": 42, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1398, - "end": 1399, - "loc": { - "start": { - "line": 42, - "column": 21 - }, - "end": { - "line": 42, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1400, - "end": 1401, - "loc": { - "start": { - "line": 42, - "column": 23 - }, - "end": { - "line": 42, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 1402, - "end": 1406, - "loc": { - "start": { - "line": 42, - "column": 25 - }, - "end": { - "line": 42, - "column": 29 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1406, - "end": 1407, - "loc": { - "start": { - "line": 42, - "column": 29 - }, - "end": { - "line": 42, - "column": 30 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Basic", - "start": 1408, - "end": 1415, - "loc": { - "start": { - "line": 42, - "column": 31 - }, - "end": { - "line": 42, - "column": 38 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1416, - "end": 1417, - "loc": { - "start": { - "line": 42, - "column": 39 - }, - "end": { - "line": 42, - "column": 40 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1417, - "end": 1418, - "loc": { - "start": { - "line": 42, - "column": 40 - }, - "end": { - "line": 42, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 1427, - "end": 1434, - "loc": { - "start": { - "line": 43, - "column": 8 - }, - "end": { - "line": 43, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1434, - "end": 1435, - "loc": { - "start": { - "line": 43, - "column": 15 - }, - "end": { - "line": 43, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1436, - "end": 1437, - "loc": { - "start": { - "line": 43, - "column": 17 - }, - "end": { - "line": 43, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type", - "start": 1448, - "end": 1462, - "loc": { - "start": { - "line": 44, - "column": 10 - }, - "end": { - "line": 44, - "column": 24 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1462, - "end": 1463, - "loc": { - "start": { - "line": 44, - "column": 24 - }, - "end": { - "line": 44, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/x-www-form-urlencoded", - "start": 1464, - "end": 1499, - "loc": { - "start": { - "line": 44, - "column": 26 - }, - "end": { - "line": 44, - "column": 61 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1499, - "end": 1500, - "loc": { - "start": { - "line": 44, - "column": 61 - }, - "end": { - "line": 44, - "column": 62 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Length", - "start": 1511, - "end": 1527, - "loc": { - "start": { - "line": 45, - "column": 10 - }, - "end": { - "line": 45, - "column": 26 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1527, - "end": 1528, - "loc": { - "start": { - "line": 45, - "column": 26 - }, - "end": { - "line": 45, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 1529, - "end": 1535, - "loc": { - "start": { - "line": 45, - "column": 28 - }, - "end": { - "line": 45, - "column": 34 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1535, - "end": 1536, - "loc": { - "start": { - "line": 45, - "column": 34 - }, - "end": { - "line": 45, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "byteLength", - "start": 1536, - "end": 1546, - "loc": { - "start": { - "line": 45, - "column": 35 - }, - "end": { - "line": 45, - "column": 45 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1546, - "end": 1547, - "loc": { - "start": { - "line": 45, - "column": 45 - }, - "end": { - "line": 45, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "dataStringified", - "start": 1547, - "end": 1562, - "loc": { - "start": { - "line": 45, - "column": 46 - }, - "end": { - "line": 45, - "column": 61 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1562, - "end": 1563, - "loc": { - "start": { - "line": 45, - "column": 61 - }, - "end": { - "line": 45, - "column": 62 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1563, - "end": 1564, - "loc": { - "start": { - "line": 45, - "column": 62 - }, - "end": { - "line": 45, - "column": 63 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1573, - "end": 1574, - "loc": { - "start": { - "line": 46, - "column": 8 - }, - "end": { - "line": 46, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1574, - "end": 1575, - "loc": { - "start": { - "line": 46, - "column": 9 - }, - "end": { - "line": 46, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1582, - "end": 1583, - "loc": { - "start": { - "line": 47, - "column": 6 - }, - "end": { - "line": 47, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1583, - "end": 1584, - "loc": { - "start": { - "line": 47, - "column": 7 - }, - "end": { - "line": 47, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1584, - "end": 1585, - "loc": { - "start": { - "line": 47, - "column": 8 - }, - "end": { - "line": 47, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 1586, - "end": 1601, - "loc": { - "start": { - "line": 47, - "column": 10 - }, - "end": { - "line": 47, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1601, - "end": 1602, - "loc": { - "start": { - "line": 47, - "column": 25 - }, - "end": { - "line": 47, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 1602, - "end": 1610, - "loc": { - "start": { - "line": 47, - "column": 26 - }, - "end": { - "line": 47, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1610, - "end": 1611, - "loc": { - "start": { - "line": 47, - "column": 34 - }, - "end": { - "line": 47, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1611, - "end": 1612, - "loc": { - "start": { - "line": 47, - "column": 35 - }, - "end": { - "line": 47, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1619, - "end": 1620, - "loc": { - "start": { - "line": 48, - "column": 6 - }, - "end": { - "line": 48, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 1620, - "end": 1622, - "loc": { - "start": { - "line": 48, - "column": 7 - }, - "end": { - "line": 48, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1622, - "end": 1623, - "loc": { - "start": { - "line": 48, - "column": 9 - }, - "end": { - "line": 48, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 1623, - "end": 1630, - "loc": { - "start": { - "line": 48, - "column": 10 - }, - "end": { - "line": 48, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1630, - "end": 1631, - "loc": { - "start": { - "line": 48, - "column": 17 - }, - "end": { - "line": 48, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 1632, - "end": 1644, - "loc": { - "start": { - "line": 48, - "column": 19 - }, - "end": { - "line": 48, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1644, - "end": 1645, - "loc": { - "start": { - "line": 48, - "column": 31 - }, - "end": { - "line": 48, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 1645, - "end": 1653, - "loc": { - "start": { - "line": 48, - "column": 32 - }, - "end": { - "line": 48, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1653, - "end": 1654, - "loc": { - "start": { - "line": 48, - "column": 40 - }, - "end": { - "line": 48, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1654, - "end": 1655, - "loc": { - "start": { - "line": 48, - "column": 41 - }, - "end": { - "line": 48, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1655, - "end": 1656, - "loc": { - "start": { - "line": 48, - "column": 42 - }, - "end": { - "line": 48, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 1662, - "end": 1665, - "loc": { - "start": { - "line": 50, - "column": 4 - }, - "end": { - "line": 50, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1665, - "end": 1666, - "loc": { - "start": { - "line": 50, - "column": 7 - }, - "end": { - "line": 50, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "write", - "start": 1666, - "end": 1671, - "loc": { - "start": { - "line": 50, - "column": 8 - }, - "end": { - "line": 50, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1671, - "end": 1672, - "loc": { - "start": { - "line": 50, - "column": 13 - }, - "end": { - "line": 50, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "dataStringified", - "start": 1672, - "end": 1687, - "loc": { - "start": { - "line": 50, - "column": 14 - }, - "end": { - "line": 50, - "column": 29 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1687, - "end": 1688, - "loc": { - "start": { - "line": 50, - "column": 29 - }, - "end": { - "line": 50, - "column": 30 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1688, - "end": 1689, - "loc": { - "start": { - "line": 50, - "column": 30 - }, - "end": { - "line": 50, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 1694, - "end": 1697, - "loc": { - "start": { - "line": 51, - "column": 4 - }, - "end": { - "line": 51, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1697, - "end": 1698, - "loc": { - "start": { - "line": 51, - "column": 7 - }, - "end": { - "line": 51, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 1698, - "end": 1701, - "loc": { - "start": { - "line": 51, - "column": 8 - }, - "end": { - "line": 51, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1701, - "end": 1702, - "loc": { - "start": { - "line": 51, - "column": 11 - }, - "end": { - "line": 51, - "column": 12 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1702, - "end": 1703, - "loc": { - "start": { - "line": 51, - "column": 12 - }, - "end": { - "line": 51, - "column": 13 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1703, - "end": 1704, - "loc": { - "start": { - "line": 51, - "column": 13 - }, - "end": { - "line": 51, - "column": 14 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1707, - "end": 1708, - "loc": { - "start": { - "line": 52, - "column": 2 - }, - "end": { - "line": 52, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Verify access token payload\n * @typedef {Object} AccessTokenVerifyParams\n * @property {string} token - your auth token\n ", - "start": 1712, - "end": 1849, - "loc": { - "start": { - "line": 54, - "column": 2 - }, - "end": { - "line": 58, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Verify access token response data\n * @typedef {Object} AccessTokenVerifyResponse\n * @property {number} res.expires_in - time in seconds for which the token was issued\n * @property {string} res.token_type - type of access token (e.g. 'bearer')\n * @property {string} res.access_token - access token\n * @property {string} res.scope - access scopes\n ", - "start": 1853, - "end": 2222, - "loc": { - "start": { - "line": 60, - "column": 2 - }, - "end": { - "line": 67, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Verifies access token\n * @param {AccessTokenVerifyParams} data - access token request payload\n * @param {function(err: ApiErrorResponse, res: AccessTokenVerifyResponse)} [callback] - error first node.js callback\n ", - "start": 2226, - "end": 2456, - "loc": { - "start": { - "line": 69, - "column": 2 - }, - "end": { - "line": 73, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 2459, - "end": 2465, - "loc": { - "start": { - "line": 74, - "column": 2 - }, - "end": { - "line": 74, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "verify", - "start": 2466, - "end": 2472, - "loc": { - "start": { - "line": 74, - "column": 9 - }, - "end": { - "line": 74, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2473, - "end": 2474, - "loc": { - "start": { - "line": 74, - "column": 16 - }, - "end": { - "line": 74, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2474, - "end": 2475, - "loc": { - "start": { - "line": 74, - "column": 17 - }, - "end": { - "line": 74, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 2476, - "end": 2481, - "loc": { - "start": { - "line": 74, - "column": 19 - }, - "end": { - "line": 74, - "column": 24 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2482, - "end": 2483, - "loc": { - "start": { - "line": 74, - "column": 25 - }, - "end": { - "line": 74, - "column": 26 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2483, - "end": 2484, - "loc": { - "start": { - "line": 74, - "column": 26 - }, - "end": { - "line": 74, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 2485, - "end": 2493, - "loc": { - "start": { - "line": 74, - "column": 28 - }, - "end": { - "line": 74, - "column": 36 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2493, - "end": 2494, - "loc": { - "start": { - "line": 74, - "column": 36 - }, - "end": { - "line": 74, - "column": 37 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2495, - "end": 2496, - "loc": { - "start": { - "line": 74, - "column": 38 - }, - "end": { - "line": 74, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 2501, - "end": 2506, - "loc": { - "start": { - "line": 75, - "column": 4 - }, - "end": { - "line": 75, - "column": 9 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2513, - "end": 2514, - "loc": { - "start": { - "line": 76, - "column": 6 - }, - "end": { - "line": 76, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 2514, - "end": 2521, - "loc": { - "start": { - "line": 76, - "column": 7 - }, - "end": { - "line": 76, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2521, - "end": 2522, - "loc": { - "start": { - "line": 76, - "column": 14 - }, - "end": { - "line": 76, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 2522, - "end": 2541, - "loc": { - "start": { - "line": 76, - "column": 15 - }, - "end": { - "line": 76, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2541, - "end": 2542, - "loc": { - "start": { - "line": 76, - "column": 34 - }, - "end": { - "line": 76, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2542, - "end": 2543, - "loc": { - "start": { - "line": 76, - "column": 35 - }, - "end": { - "line": 76, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 2552, - "end": 2558, - "loc": { - "start": { - "line": 77, - "column": 8 - }, - "end": { - "line": 77, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2558, - "end": 2559, - "loc": { - "start": { - "line": 77, - "column": 14 - }, - "end": { - "line": 77, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "GET", - "start": 2560, - "end": 2565, - "loc": { - "start": { - "line": 77, - "column": 16 - }, - "end": { - "line": 77, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2565, - "end": 2566, - "loc": { - "start": { - "line": 77, - "column": 21 - }, - "end": { - "line": 77, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 2575, - "end": 2579, - "loc": { - "start": { - "line": 78, - "column": 8 - }, - "end": { - "line": 78, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2579, - "end": 2580, - "loc": { - "start": { - "line": 78, - "column": 12 - }, - "end": { - "line": 78, - "column": 13 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/oauth2/token", - "start": 2581, - "end": 2596, - "loc": { - "start": { - "line": 78, - "column": 14 - }, - "end": { - "line": 78, - "column": 29 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2596, - "end": 2597, - "loc": { - "start": { - "line": 78, - "column": 29 - }, - "end": { - "line": 78, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 2606, - "end": 2619, - "loc": { - "start": { - "line": 79, - "column": 8 - }, - "end": { - "line": 79, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2619, - "end": 2620, - "loc": { - "start": { - "line": 79, - "column": 21 - }, - "end": { - "line": 79, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2621, - "end": 2622, - "loc": { - "start": { - "line": 79, - "column": 23 - }, - "end": { - "line": 79, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 2633, - "end": 2637, - "loc": { - "start": { - "line": 80, - "column": 10 - }, - "end": { - "line": 80, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2637, - "end": 2638, - "loc": { - "start": { - "line": 80, - "column": 14 - }, - "end": { - "line": 80, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 2639, - "end": 2647, - "loc": { - "start": { - "line": 80, - "column": 16 - }, - "end": { - "line": 80, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2647, - "end": 2648, - "loc": { - "start": { - "line": 80, - "column": 24 - }, - "end": { - "line": 80, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 2659, - "end": 2664, - "loc": { - "start": { - "line": 81, - "column": 10 - }, - "end": { - "line": 81, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2664, - "end": 2665, - "loc": { - "start": { - "line": 81, - "column": 15 - }, - "end": { - "line": 81, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2674, - "end": 2675, - "loc": { - "start": { - "line": 82, - "column": 8 - }, - "end": { - "line": 82, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2675, - "end": 2676, - "loc": { - "start": { - "line": 82, - "column": 9 - }, - "end": { - "line": 82, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2683, - "end": 2684, - "loc": { - "start": { - "line": 83, - "column": 6 - }, - "end": { - "line": 83, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2684, - "end": 2685, - "loc": { - "start": { - "line": 83, - "column": 7 - }, - "end": { - "line": 83, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2685, - "end": 2686, - "loc": { - "start": { - "line": 83, - "column": 8 - }, - "end": { - "line": 83, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 2687, - "end": 2702, - "loc": { - "start": { - "line": 83, - "column": 10 - }, - "end": { - "line": 83, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2702, - "end": 2703, - "loc": { - "start": { - "line": 83, - "column": 25 - }, - "end": { - "line": 83, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 2703, - "end": 2711, - "loc": { - "start": { - "line": 83, - "column": 26 - }, - "end": { - "line": 83, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2711, - "end": 2712, - "loc": { - "start": { - "line": 83, - "column": 34 - }, - "end": { - "line": 83, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2712, - "end": 2713, - "loc": { - "start": { - "line": 83, - "column": 35 - }, - "end": { - "line": 83, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2720, - "end": 2721, - "loc": { - "start": { - "line": 84, - "column": 6 - }, - "end": { - "line": 84, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 2721, - "end": 2723, - "loc": { - "start": { - "line": 84, - "column": 7 - }, - "end": { - "line": 84, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2723, - "end": 2724, - "loc": { - "start": { - "line": 84, - "column": 9 - }, - "end": { - "line": 84, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 2724, - "end": 2731, - "loc": { - "start": { - "line": 84, - "column": 10 - }, - "end": { - "line": 84, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2731, - "end": 2732, - "loc": { - "start": { - "line": 84, - "column": 17 - }, - "end": { - "line": 84, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 2733, - "end": 2745, - "loc": { - "start": { - "line": 84, - "column": 19 - }, - "end": { - "line": 84, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2745, - "end": 2746, - "loc": { - "start": { - "line": 84, - "column": 31 - }, - "end": { - "line": 84, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 2746, - "end": 2754, - "loc": { - "start": { - "line": 84, - "column": 32 - }, - "end": { - "line": 84, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2754, - "end": 2755, - "loc": { - "start": { - "line": 84, - "column": 40 - }, - "end": { - "line": 84, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2755, - "end": 2756, - "loc": { - "start": { - "line": 84, - "column": 41 - }, - "end": { - "line": 84, - "column": 42 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2763, - "end": 2764, - "loc": { - "start": { - "line": 85, - "column": 6 - }, - "end": { - "line": 85, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 2764, - "end": 2767, - "loc": { - "start": { - "line": 85, - "column": 7 - }, - "end": { - "line": 85, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2767, - "end": 2768, - "loc": { - "start": { - "line": 85, - "column": 10 - }, - "end": { - "line": 85, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2768, - "end": 2769, - "loc": { - "start": { - "line": 85, - "column": 11 - }, - "end": { - "line": 85, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2769, - "end": 2770, - "loc": { - "start": { - "line": 85, - "column": 12 - }, - "end": { - "line": 85, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2773, - "end": 2774, - "loc": { - "start": { - "line": 86, - "column": 2 - }, - "end": { - "line": 86, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Refresh access token payload\n * @typedef {Object} AccessTokenRefreshParams\n * @property {string} refresh_token - your refresh token\n * @property {string} [scope] - access scopes of access token\n * @property {number} [expiration_time] - time in seconds for which the token was issued\n ", - "start": 2778, - "end": 3083, - "loc": { - "start": { - "line": 88, - "column": 2 - }, - "end": { - "line": 94, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Refresh access token response data\n * @typedef {Object} AccessTokenRefreshResponse\n * @property {number} res.expires_in - time in seconds for which the token was issued\n * @property {string} res.token_type - type of access token (e.g. 'bearer')\n * @property {string} res.access_token - access token\n * @property {string} res.refresh_token - refresh token\n * @property {string} res.scope - access scopes\n ", - "start": 3087, - "end": 3516, - "loc": { - "start": { - "line": 96, - "column": 2 - }, - "end": { - "line": 104, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Refreshes access token for a user\n * @param {AccessTokenRefreshParams} data - refresh token request payload\n * @param {function(err: ApiErrorResponse, res: AccessTokenRefreshResponse)} [callback] - error first node.js callback\n ", - "start": 3520, - "end": 3765, - "loc": { - "start": { - "line": 106, - "column": 2 - }, - "end": { - "line": 110, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 3768, - "end": 3774, - "loc": { - "start": { - "line": 111, - "column": 2 - }, - "end": { - "line": 111, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "refreshToken", - "start": 3775, - "end": 3787, - "loc": { - "start": { - "line": 111, - "column": 9 - }, - "end": { - "line": 111, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3788, - "end": 3789, - "loc": { - "start": { - "line": 111, - "column": 22 - }, - "end": { - "line": 111, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 3789, - "end": 3793, - "loc": { - "start": { - "line": 111, - "column": 23 - }, - "end": { - "line": 111, - "column": 27 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3793, - "end": 3794, - "loc": { - "start": { - "line": 111, - "column": 27 - }, - "end": { - "line": 111, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 3795, - "end": 3803, - "loc": { - "start": { - "line": 111, - "column": 29 - }, - "end": { - "line": 111, - "column": 37 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3803, - "end": 3804, - "loc": { - "start": { - "line": 111, - "column": 37 - }, - "end": { - "line": 111, - "column": 38 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3805, - "end": 3806, - "loc": { - "start": { - "line": 111, - "column": 39 - }, - "end": { - "line": 111, - "column": 40 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 3811, - "end": 3816, - "loc": { - "start": { - "line": 112, - "column": 4 - }, - "end": { - "line": 112, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "dataCopy", - "start": 3817, - "end": 3825, - "loc": { - "start": { - "line": 112, - "column": 10 - }, - "end": { - "line": 112, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 3826, - "end": 3827, - "loc": { - "start": { - "line": 112, - "column": 19 - }, - "end": { - "line": 112, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Object", - "start": 3828, - "end": 3834, - "loc": { - "start": { - "line": 112, - "column": 21 - }, - "end": { - "line": 112, - "column": 27 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3834, - "end": 3835, - "loc": { - "start": { - "line": 112, - "column": 27 - }, - "end": { - "line": 112, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "assign", - "start": 3835, - "end": 3841, - "loc": { - "start": { - "line": 112, - "column": 28 - }, - "end": { - "line": 112, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3841, - "end": 3842, - "loc": { - "start": { - "line": 112, - "column": 34 - }, - "end": { - "line": 112, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3842, - "end": 3843, - "loc": { - "start": { - "line": 112, - "column": 35 - }, - "end": { - "line": 112, - "column": 36 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3843, - "end": 3844, - "loc": { - "start": { - "line": 112, - "column": 36 - }, - "end": { - "line": 112, - "column": 37 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3844, - "end": 3845, - "loc": { - "start": { - "line": 112, - "column": 37 - }, - "end": { - "line": 112, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 3846, - "end": 3850, - "loc": { - "start": { - "line": 112, - "column": 39 - }, - "end": { - "line": 112, - "column": 43 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3850, - "end": 3851, - "loc": { - "start": { - "line": 112, - "column": 43 - }, - "end": { - "line": 112, - "column": 44 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3852, - "end": 3853, - "loc": { - "start": { - "line": 112, - "column": 45 - }, - "end": { - "line": 112, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "grant_type", - "start": 3854, - "end": 3864, - "loc": { - "start": { - "line": 112, - "column": 47 - }, - "end": { - "line": 112, - "column": 57 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3864, - "end": 3865, - "loc": { - "start": { - "line": 112, - "column": 57 - }, - "end": { - "line": 112, - "column": 58 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "refresh_token", - "start": 3866, - "end": 3881, - "loc": { - "start": { - "line": 112, - "column": 59 - }, - "end": { - "line": 112, - "column": 74 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3882, - "end": 3883, - "loc": { - "start": { - "line": 112, - "column": 75 - }, - "end": { - "line": 112, - "column": 76 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3883, - "end": 3884, - "loc": { - "start": { - "line": 112, - "column": 76 - }, - "end": { - "line": 112, - "column": 77 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3884, - "end": 3885, - "loc": { - "start": { - "line": 112, - "column": 77 - }, - "end": { - "line": 112, - "column": 78 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 3890, - "end": 3895, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 113, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "dataStringified", - "start": 3896, - "end": 3911, - "loc": { - "start": { - "line": 113, - "column": 10 - }, - "end": { - "line": 113, - "column": 25 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 3912, - "end": 3913, - "loc": { - "start": { - "line": 113, - "column": 26 - }, - "end": { - "line": 113, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "querystring", - "start": 3914, - "end": 3925, - "loc": { - "start": { - "line": 113, - "column": 28 - }, - "end": { - "line": 113, - "column": 39 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3925, - "end": 3926, - "loc": { - "start": { - "line": 113, - "column": 39 - }, - "end": { - "line": 113, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "stringify", - "start": 3926, - "end": 3935, - "loc": { - "start": { - "line": 113, - "column": 40 - }, - "end": { - "line": 113, - "column": 49 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3935, - "end": 3936, - "loc": { - "start": { - "line": 113, - "column": 49 - }, - "end": { - "line": 113, - "column": 50 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "dataCopy", - "start": 3936, - "end": 3944, - "loc": { - "start": { - "line": 113, - "column": 50 - }, - "end": { - "line": 113, - "column": 58 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3944, - "end": 3945, - "loc": { - "start": { - "line": 113, - "column": 58 - }, - "end": { - "line": 113, - "column": 59 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3945, - "end": 3946, - "loc": { - "start": { - "line": 113, - "column": 59 - }, - "end": { - "line": 113, - "column": 60 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "replace", - "start": 3946, - "end": 3953, - "loc": { - "start": { - "line": 113, - "column": 60 - }, - "end": { - "line": 113, - "column": 67 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3953, - "end": 3954, - "loc": { - "start": { - "line": 113, - "column": 67 - }, - "end": { - "line": 113, - "column": 68 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "%40", - "start": 3954, - "end": 3959, - "loc": { - "start": { - "line": 113, - "column": 68 - }, - "end": { - "line": 113, - "column": 73 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3959, - "end": 3960, - "loc": { - "start": { - "line": 113, - "column": 73 - }, - "end": { - "line": 113, - "column": 74 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "@", - "start": 3961, - "end": 3964, - "loc": { - "start": { - "line": 113, - "column": 75 - }, - "end": { - "line": 113, - "column": 78 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3964, - "end": 3965, - "loc": { - "start": { - "line": 113, - "column": 78 - }, - "end": { - "line": 113, - "column": 79 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3965, - "end": 3966, - "loc": { - "start": { - "line": 113, - "column": 79 - }, - "end": { - "line": 113, - "column": 80 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 3971, - "end": 3976, - "loc": { - "start": { - "line": 114, - "column": 4 - }, - "end": { - "line": 114, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 3977, - "end": 3980, - "loc": { - "start": { - "line": 114, - "column": 10 - }, - "end": { - "line": 114, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 3981, - "end": 3982, - "loc": { - "start": { - "line": 114, - "column": 14 - }, - "end": { - "line": 114, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 3983, - "end": 3988, - "loc": { - "start": { - "line": 114, - "column": 16 - }, - "end": { - "line": 114, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3995, - "end": 3996, - "loc": { - "start": { - "line": 115, - "column": 6 - }, - "end": { - "line": 115, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 3996, - "end": 4003, - "loc": { - "start": { - "line": 115, - "column": 7 - }, - "end": { - "line": 115, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4003, - "end": 4004, - "loc": { - "start": { - "line": 115, - "column": 14 - }, - "end": { - "line": 115, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 4004, - "end": 4023, - "loc": { - "start": { - "line": 115, - "column": 15 - }, - "end": { - "line": 115, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4023, - "end": 4024, - "loc": { - "start": { - "line": 115, - "column": 34 - }, - "end": { - "line": 115, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4024, - "end": 4025, - "loc": { - "start": { - "line": 115, - "column": 35 - }, - "end": { - "line": 115, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 4034, - "end": 4040, - "loc": { - "start": { - "line": 116, - "column": 8 - }, - "end": { - "line": 116, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4040, - "end": 4041, - "loc": { - "start": { - "line": 116, - "column": 14 - }, - "end": { - "line": 116, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "POST", - "start": 4042, - "end": 4048, - "loc": { - "start": { - "line": 116, - "column": 16 - }, - "end": { - "line": 116, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4048, - "end": 4049, - "loc": { - "start": { - "line": 116, - "column": 22 - }, - "end": { - "line": 116, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 4058, - "end": 4062, - "loc": { - "start": { - "line": 117, - "column": 8 - }, - "end": { - "line": 117, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4062, - "end": 4063, - "loc": { - "start": { - "line": 117, - "column": 12 - }, - "end": { - "line": 117, - "column": 13 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/oauth2/token", - "start": 4064, - "end": 4079, - "loc": { - "start": { - "line": 117, - "column": 14 - }, - "end": { - "line": 117, - "column": 29 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4079, - "end": 4080, - "loc": { - "start": { - "line": 117, - "column": 29 - }, - "end": { - "line": 117, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 4089, - "end": 4102, - "loc": { - "start": { - "line": 118, - "column": 8 - }, - "end": { - "line": 118, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4102, - "end": 4103, - "loc": { - "start": { - "line": 118, - "column": 21 - }, - "end": { - "line": 118, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4104, - "end": 4105, - "loc": { - "start": { - "line": 118, - "column": 23 - }, - "end": { - "line": 118, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 4106, - "end": 4110, - "loc": { - "start": { - "line": 118, - "column": 25 - }, - "end": { - "line": 118, - "column": 29 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4110, - "end": 4111, - "loc": { - "start": { - "line": 118, - "column": 29 - }, - "end": { - "line": 118, - "column": 30 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Basic", - "start": 4112, - "end": 4119, - "loc": { - "start": { - "line": 118, - "column": 31 - }, - "end": { - "line": 118, - "column": 38 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4120, - "end": 4121, - "loc": { - "start": { - "line": 118, - "column": 39 - }, - "end": { - "line": 118, - "column": 40 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4121, - "end": 4122, - "loc": { - "start": { - "line": 118, - "column": 40 - }, - "end": { - "line": 118, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 4131, - "end": 4138, - "loc": { - "start": { - "line": 119, - "column": 8 - }, - "end": { - "line": 119, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4138, - "end": 4139, - "loc": { - "start": { - "line": 119, - "column": 15 - }, - "end": { - "line": 119, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4140, - "end": 4141, - "loc": { - "start": { - "line": 119, - "column": 17 - }, - "end": { - "line": 119, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type", - "start": 4152, - "end": 4166, - "loc": { - "start": { - "line": 120, - "column": 10 - }, - "end": { - "line": 120, - "column": 24 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4166, - "end": 4167, - "loc": { - "start": { - "line": 120, - "column": 24 - }, - "end": { - "line": 120, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/x-www-form-urlencoded", - "start": 4168, - "end": 4203, - "loc": { - "start": { - "line": 120, - "column": 26 - }, - "end": { - "line": 120, - "column": 61 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4203, - "end": 4204, - "loc": { - "start": { - "line": 120, - "column": 61 - }, - "end": { - "line": 120, - "column": 62 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Length", - "start": 4215, - "end": 4231, - "loc": { - "start": { - "line": 121, - "column": 10 - }, - "end": { - "line": 121, - "column": 26 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4231, - "end": 4232, - "loc": { - "start": { - "line": 121, - "column": 26 - }, - "end": { - "line": 121, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 4233, - "end": 4239, - "loc": { - "start": { - "line": 121, - "column": 28 - }, - "end": { - "line": 121, - "column": 34 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4239, - "end": 4240, - "loc": { - "start": { - "line": 121, - "column": 34 - }, - "end": { - "line": 121, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "byteLength", - "start": 4240, - "end": 4250, - "loc": { - "start": { - "line": 121, - "column": 35 - }, - "end": { - "line": 121, - "column": 45 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4250, - "end": 4251, - "loc": { - "start": { - "line": 121, - "column": 45 - }, - "end": { - "line": 121, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "dataStringified", - "start": 4251, - "end": 4266, - "loc": { - "start": { - "line": 121, - "column": 46 - }, - "end": { - "line": 121, - "column": 61 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4266, - "end": 4267, - "loc": { - "start": { - "line": 121, - "column": 61 - }, - "end": { - "line": 121, - "column": 62 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4267, - "end": 4268, - "loc": { - "start": { - "line": 121, - "column": 62 - }, - "end": { - "line": 121, - "column": 63 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4277, - "end": 4278, - "loc": { - "start": { - "line": 122, - "column": 8 - }, - "end": { - "line": 122, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4278, - "end": 4279, - "loc": { - "start": { - "line": 122, - "column": 9 - }, - "end": { - "line": 122, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4286, - "end": 4287, - "loc": { - "start": { - "line": 123, - "column": 6 - }, - "end": { - "line": 123, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4287, - "end": 4288, - "loc": { - "start": { - "line": 123, - "column": 7 - }, - "end": { - "line": 123, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4288, - "end": 4289, - "loc": { - "start": { - "line": 123, - "column": 8 - }, - "end": { - "line": 123, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 4290, - "end": 4305, - "loc": { - "start": { - "line": 123, - "column": 10 - }, - "end": { - "line": 123, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4305, - "end": 4306, - "loc": { - "start": { - "line": 123, - "column": 25 - }, - "end": { - "line": 123, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 4306, - "end": 4314, - "loc": { - "start": { - "line": 123, - "column": 26 - }, - "end": { - "line": 123, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4314, - "end": 4315, - "loc": { - "start": { - "line": 123, - "column": 34 - }, - "end": { - "line": 123, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4315, - "end": 4316, - "loc": { - "start": { - "line": 123, - "column": 35 - }, - "end": { - "line": 123, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4323, - "end": 4324, - "loc": { - "start": { - "line": 124, - "column": 6 - }, - "end": { - "line": 124, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 4324, - "end": 4326, - "loc": { - "start": { - "line": 124, - "column": 7 - }, - "end": { - "line": 124, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4326, - "end": 4327, - "loc": { - "start": { - "line": 124, - "column": 9 - }, - "end": { - "line": 124, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 4327, - "end": 4334, - "loc": { - "start": { - "line": 124, - "column": 10 - }, - "end": { - "line": 124, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4334, - "end": 4335, - "loc": { - "start": { - "line": 124, - "column": 17 - }, - "end": { - "line": 124, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 4336, - "end": 4348, - "loc": { - "start": { - "line": 124, - "column": 19 - }, - "end": { - "line": 124, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4348, - "end": 4349, - "loc": { - "start": { - "line": 124, - "column": 31 - }, - "end": { - "line": 124, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 4349, - "end": 4357, - "loc": { - "start": { - "line": 124, - "column": 32 - }, - "end": { - "line": 124, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4357, - "end": 4358, - "loc": { - "start": { - "line": 124, - "column": 40 - }, - "end": { - "line": 124, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4358, - "end": 4359, - "loc": { - "start": { - "line": 124, - "column": 41 - }, - "end": { - "line": 124, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4359, - "end": 4360, - "loc": { - "start": { - "line": 124, - "column": 42 - }, - "end": { - "line": 124, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 4366, - "end": 4369, - "loc": { - "start": { - "line": 126, - "column": 4 - }, - "end": { - "line": 126, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4369, - "end": 4370, - "loc": { - "start": { - "line": 126, - "column": 7 - }, - "end": { - "line": 126, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "write", - "start": 4370, - "end": 4375, - "loc": { - "start": { - "line": 126, - "column": 8 - }, - "end": { - "line": 126, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4375, - "end": 4376, - "loc": { - "start": { - "line": 126, - "column": 13 - }, - "end": { - "line": 126, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "dataStringified", - "start": 4376, - "end": 4391, - "loc": { - "start": { - "line": 126, - "column": 14 - }, - "end": { - "line": 126, - "column": 29 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4391, - "end": 4392, - "loc": { - "start": { - "line": 126, - "column": 29 - }, - "end": { - "line": 126, - "column": 30 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4392, - "end": 4393, - "loc": { - "start": { - "line": 126, - "column": 30 - }, - "end": { - "line": 126, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 4398, - "end": 4401, - "loc": { - "start": { - "line": 127, - "column": 4 - }, - "end": { - "line": 127, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4401, - "end": 4402, - "loc": { - "start": { - "line": 127, - "column": 7 - }, - "end": { - "line": 127, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 4402, - "end": 4405, - "loc": { - "start": { - "line": 127, - "column": 8 - }, - "end": { - "line": 127, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4405, - "end": 4406, - "loc": { - "start": { - "line": 127, - "column": 11 - }, - "end": { - "line": 127, - "column": 12 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4406, - "end": 4407, - "loc": { - "start": { - "line": 127, - "column": 12 - }, - "end": { - "line": 127, - "column": 13 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4407, - "end": 4408, - "loc": { - "start": { - "line": 127, - "column": 13 - }, - "end": { - "line": 127, - "column": 14 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4411, - "end": 4412, - "loc": { - "start": { - "line": 128, - "column": 2 - }, - "end": { - "line": 128, - "column": 3 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4414, - "end": 4415, - "loc": { - "start": { - "line": 130, - "column": 0 - }, - "end": { - "line": 130, - "column": 1 - } - } - }, - { - "type": { - "label": "export", - "keyword": "export", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "export", - "start": 4417, - "end": 4423, - "loc": { - "start": { - "line": 132, - "column": 0 - }, - "end": { - "line": 132, - "column": 6 - } - } - }, - { - "type": { - "label": "default", - "keyword": "default", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "default", - "start": 4424, - "end": 4431, - "loc": { - "start": { - "line": 132, - "column": 7 - }, - "end": { - "line": 132, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "OAuth2", - "start": 4432, - "end": 4438, - "loc": { - "start": { - "line": 132, - "column": 15 - }, - "end": { - "line": 132, - "column": 21 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4438, - "end": 4439, - "loc": { - "start": { - "line": 132, - "column": 21 - }, - "end": { - "line": 132, - "column": 22 - } - } - }, - { - "type": { - "label": "eof", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4440, - "end": 4440, - "loc": { - "start": { - "line": 133, - "column": 0 - }, - "end": { - "line": 133, - "column": 0 - } - } - } - ] -} \ No newline at end of file diff --git a/docs/ast/source/oauth2/index.js.json b/docs/ast/source/oauth2/index.js.json deleted file mode 100644 index 1798da8f..00000000 --- a/docs/ast/source/oauth2/index.js.json +++ /dev/null @@ -1,17664 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 4389, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 135, - "column": 0 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 4389, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 135, - "column": 0 - } - }, - "sourceType": "module", - "body": [ - { - "type": "ImportDeclaration", - "start": 14, - "end": 40, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 26 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - } - }, - "local": { - "type": "Identifier", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - }, - "identifierName": "https" - }, - "name": "https" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 18 - }, - "end": { - "line": 2, - "column": 25 - } - }, - "extra": { - "rawValue": "https", - "raw": "'https'" - }, - "value": "https" - } - }, - { - "type": "ImportDeclaration", - "start": 41, - "end": 79, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 38 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 48, - "end": 59, - "loc": { - "start": { - "line": 3, - "column": 7 - }, - "end": { - "line": 3, - "column": 18 - } - }, - "local": { - "type": "Identifier", - "start": 48, - "end": 59, - "loc": { - "start": { - "line": 3, - "column": 7 - }, - "end": { - "line": 3, - "column": 18 - }, - "identifierName": "querystring" - }, - "name": "querystring" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 65, - "end": 78, - "loc": { - "start": { - "line": 3, - "column": 24 - }, - "end": { - "line": 3, - "column": 37 - } - }, - "extra": { - "rawValue": "querystring", - "raw": "'querystring'" - }, - "value": "querystring" - } - }, - { - "type": "ImportDeclaration", - "start": 80, - "end": 166, - "loc": { - "start": { - "line": 4, - "column": 0 - }, - "end": { - "line": 8, - "column": 19 - } - }, - "specifiers": [ - { - "type": "ImportSpecifier", - "start": 91, - "end": 106, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 17 - } - }, - "imported": { - "type": "Identifier", - "start": 91, - "end": 106, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "local": { - "type": "Identifier", - "start": 91, - "end": 106, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - } - }, - { - "type": "ImportSpecifier", - "start": 110, - "end": 122, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 14 - } - }, - "imported": { - "type": "Identifier", - "start": 110, - "end": 122, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 14 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "local": { - "type": "Identifier", - "start": 110, - "end": 122, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 14 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - } - }, - { - "type": "ImportSpecifier", - "start": 126, - "end": 145, - "loc": { - "start": { - "line": 7, - "column": 2 - }, - "end": { - "line": 7, - "column": 21 - } - }, - "imported": { - "type": "Identifier", - "start": 126, - "end": 145, - "loc": { - "start": { - "line": 7, - "column": 2 - }, - "end": { - "line": 7, - "column": 21 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "local": { - "type": "Identifier", - "start": 126, - "end": 145, - "loc": { - "start": { - "line": 7, - "column": 2 - }, - "end": { - "line": 7, - "column": 21 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 154, - "end": 165, - "loc": { - "start": { - "line": 8, - "column": 7 - }, - "end": { - "line": 8, - "column": 18 - } - }, - "extra": { - "rawValue": "../common", - "raw": "'../common'" - }, - "value": "../common" - }, - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * OAuth2 methods\n ", - "start": 168, - "end": 193, - "loc": { - "start": { - "line": 10, - "column": 0 - }, - "end": { - "line": 12, - "column": 3 - } - } - } - ] - }, - { - "type": "Identifier", - "start": 194, - "end": 4364, - "loc": { - "start": { - "line": 13, - "column": 0 - }, - "end": { - "line": 132, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 200, - "end": 206, - "loc": { - "start": { - "line": 13, - "column": 6 - }, - "end": { - "line": 13, - "column": 12 - }, - "identifierName": "OAuth2" - }, - "name": "OAuth2", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 207, - "end": 4364, - "loc": { - "start": { - "line": 13, - "column": 13 - }, - "end": { - "line": 132, - "column": 1 - } - }, - "body": [ - { - "type": "ClassMethod", - "start": 1054, - "end": 1693, - "loc": { - "start": { - "line": 37, - "column": 2 - }, - "end": { - "line": 54, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1061, - "end": 1073, - "loc": { - "start": { - "line": 37, - "column": 9 - }, - "end": { - "line": 37, - "column": 21 - }, - "identifierName": "requestToken" - }, - "name": "requestToken" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1075, - "end": 1079, - "loc": { - "start": { - "line": 37, - "column": 23 - }, - "end": { - "line": 37, - "column": 27 - }, - "identifierName": "data" - }, - "name": "data" - }, - { - "type": "Identifier", - "start": 1081, - "end": 1089, - "loc": { - "start": { - "line": 37, - "column": 29 - }, - "end": { - "line": 37, - "column": 37 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 1091, - "end": 1693, - "loc": { - "start": { - "line": 37, - "column": 39 - }, - "end": { - "line": 54, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 1097, - "end": 1166, - "loc": { - "start": { - "line": 38, - "column": 4 - }, - "end": { - "line": 38, - "column": 73 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1103, - "end": 1165, - "loc": { - "start": { - "line": 38, - "column": 10 - }, - "end": { - "line": 38, - "column": 72 - } - }, - "id": { - "type": "Identifier", - "start": 1103, - "end": 1111, - "loc": { - "start": { - "line": 38, - "column": 10 - }, - "end": { - "line": 38, - "column": 18 - }, - "identifierName": "dataCopy" - }, - "name": "dataCopy" - }, - "init": { - "type": "CallExpression", - "start": 1114, - "end": 1165, - "loc": { - "start": { - "line": 38, - "column": 21 - }, - "end": { - "line": 38, - "column": 72 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1114, - "end": 1127, - "loc": { - "start": { - "line": 38, - "column": 21 - }, - "end": { - "line": 38, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 1114, - "end": 1120, - "loc": { - "start": { - "line": 38, - "column": 21 - }, - "end": { - "line": 38, - "column": 27 - }, - "identifierName": "Object" - }, - "name": "Object" - }, - "property": { - "type": "Identifier", - "start": 1121, - "end": 1127, - "loc": { - "start": { - "line": 38, - "column": 28 - }, - "end": { - "line": 38, - "column": 34 - }, - "identifierName": "assign" - }, - "name": "assign" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 1128, - "end": 1130, - "loc": { - "start": { - "line": 38, - "column": 35 - }, - "end": { - "line": 38, - "column": 37 - } - }, - "properties": [] - }, - { - "type": "Identifier", - "start": 1132, - "end": 1136, - "loc": { - "start": { - "line": 38, - "column": 39 - }, - "end": { - "line": 38, - "column": 43 - }, - "identifierName": "data" - }, - "name": "data" - }, - { - "type": "ObjectExpression", - "start": 1138, - "end": 1164, - "loc": { - "start": { - "line": 38, - "column": 45 - }, - "end": { - "line": 38, - "column": 71 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1140, - "end": 1162, - "loc": { - "start": { - "line": 38, - "column": 47 - }, - "end": { - "line": 38, - "column": 69 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1140, - "end": 1150, - "loc": { - "start": { - "line": 38, - "column": 47 - }, - "end": { - "line": 38, - "column": 57 - }, - "identifierName": "grant_type" - }, - "name": "grant_type" - }, - "value": { - "type": "StringLiteral", - "start": 1152, - "end": 1162, - "loc": { - "start": { - "line": 38, - "column": 59 - }, - "end": { - "line": 38, - "column": 69 - } - }, - "extra": { - "rawValue": "password", - "raw": "'password'" - }, - "value": "password" - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 1171, - "end": 1247, - "loc": { - "start": { - "line": 39, - "column": 4 - }, - "end": { - "line": 39, - "column": 80 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1177, - "end": 1246, - "loc": { - "start": { - "line": 39, - "column": 10 - }, - "end": { - "line": 39, - "column": 79 - } - }, - "id": { - "type": "Identifier", - "start": 1177, - "end": 1192, - "loc": { - "start": { - "line": 39, - "column": 10 - }, - "end": { - "line": 39, - "column": 25 - }, - "identifierName": "dataStringified" - }, - "name": "dataStringified" - }, - "init": { - "type": "CallExpression", - "start": 1195, - "end": 1246, - "loc": { - "start": { - "line": 39, - "column": 28 - }, - "end": { - "line": 39, - "column": 79 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1195, - "end": 1234, - "loc": { - "start": { - "line": 39, - "column": 28 - }, - "end": { - "line": 39, - "column": 67 - } - }, - "object": { - "type": "CallExpression", - "start": 1195, - "end": 1226, - "loc": { - "start": { - "line": 39, - "column": 28 - }, - "end": { - "line": 39, - "column": 59 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1195, - "end": 1216, - "loc": { - "start": { - "line": 39, - "column": 28 - }, - "end": { - "line": 39, - "column": 49 - } - }, - "object": { - "type": "Identifier", - "start": 1195, - "end": 1206, - "loc": { - "start": { - "line": 39, - "column": 28 - }, - "end": { - "line": 39, - "column": 39 - }, - "identifierName": "querystring" - }, - "name": "querystring" - }, - "property": { - "type": "Identifier", - "start": 1207, - "end": 1216, - "loc": { - "start": { - "line": 39, - "column": 40 - }, - "end": { - "line": 39, - "column": 49 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1217, - "end": 1225, - "loc": { - "start": { - "line": 39, - "column": 50 - }, - "end": { - "line": 39, - "column": 58 - }, - "identifierName": "dataCopy" - }, - "name": "dataCopy" - } - ] - }, - "property": { - "type": "Identifier", - "start": 1227, - "end": 1234, - "loc": { - "start": { - "line": 39, - "column": 60 - }, - "end": { - "line": 39, - "column": 67 - }, - "identifierName": "replace" - }, - "name": "replace" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 1235, - "end": 1240, - "loc": { - "start": { - "line": 39, - "column": 68 - }, - "end": { - "line": 39, - "column": 73 - } - }, - "extra": { - "rawValue": "%40", - "raw": "'%40'" - }, - "value": "%40" - }, - { - "type": "StringLiteral", - "start": 1242, - "end": 1245, - "loc": { - "start": { - "line": 39, - "column": 75 - }, - "end": { - "line": 39, - "column": 78 - } - }, - "extra": { - "rawValue": "@", - "raw": "'@'" - }, - "value": "@" - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 1252, - "end": 1641, - "loc": { - "start": { - "line": 40, - "column": 4 - }, - "end": { - "line": 50, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1258, - "end": 1640, - "loc": { - "start": { - "line": 40, - "column": 10 - }, - "end": { - "line": 50, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 1258, - "end": 1261, - "loc": { - "start": { - "line": 40, - "column": 10 - }, - "end": { - "line": 40, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 1264, - "end": 1640, - "loc": { - "start": { - "line": 40, - "column": 16 - }, - "end": { - "line": 50, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1264, - "end": 1607, - "loc": { - "start": { - "line": 40, - "column": 16 - }, - "end": { - "line": 50, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 1264, - "end": 1597, - "loc": { - "start": { - "line": 40, - "column": 16 - }, - "end": { - "line": 49, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1264, - "end": 1284, - "loc": { - "start": { - "line": 40, - "column": 16 - }, - "end": { - "line": 41, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 1264, - "end": 1269, - "loc": { - "start": { - "line": 40, - "column": 16 - }, - "end": { - "line": 40, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 1277, - "end": 1284, - "loc": { - "start": { - "line": 41, - "column": 7 - }, - "end": { - "line": 41, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 1285, - "end": 1569, - "loc": { - "start": { - "line": 41, - "column": 15 - }, - "end": { - "line": 49, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 1285, - "end": 1304, - "loc": { - "start": { - "line": 41, - "column": 15 - }, - "end": { - "line": 41, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 1305, - "end": 1568, - "loc": { - "start": { - "line": 41, - "column": 35 - }, - "end": { - "line": 49, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1315, - "end": 1329, - "loc": { - "start": { - "line": 42, - "column": 8 - }, - "end": { - "line": 42, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1315, - "end": 1321, - "loc": { - "start": { - "line": 42, - "column": 8 - }, - "end": { - "line": 42, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 1323, - "end": 1329, - "loc": { - "start": { - "line": 42, - "column": 16 - }, - "end": { - "line": 42, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 1339, - "end": 1360, - "loc": { - "start": { - "line": 43, - "column": 8 - }, - "end": { - "line": 43, - "column": 29 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1339, - "end": 1343, - "loc": { - "start": { - "line": 43, - "column": 8 - }, - "end": { - "line": 43, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 1345, - "end": 1360, - "loc": { - "start": { - "line": 43, - "column": 14 - }, - "end": { - "line": 43, - "column": 29 - } - }, - "extra": { - "rawValue": "/oauth2/token", - "raw": "'/oauth2/token'" - }, - "value": "/oauth2/token" - } - }, - { - "type": "ObjectProperty", - "start": 1370, - "end": 1402, - "loc": { - "start": { - "line": 44, - "column": 8 - }, - "end": { - "line": 44, - "column": 40 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1370, - "end": 1383, - "loc": { - "start": { - "line": 44, - "column": 8 - }, - "end": { - "line": 44, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 1385, - "end": 1402, - "loc": { - "start": { - "line": 44, - "column": 23 - }, - "end": { - "line": 44, - "column": 40 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1387, - "end": 1400, - "loc": { - "start": { - "line": 44, - "column": 25 - }, - "end": { - "line": 44, - "column": 38 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1387, - "end": 1391, - "loc": { - "start": { - "line": 44, - "column": 25 - }, - "end": { - "line": 44, - "column": 29 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 1393, - "end": 1400, - "loc": { - "start": { - "line": 44, - "column": 31 - }, - "end": { - "line": 44, - "column": 38 - } - }, - "extra": { - "rawValue": "Basic", - "raw": "'Basic'" - }, - "value": "Basic" - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 1412, - "end": 1559, - "loc": { - "start": { - "line": 45, - "column": 8 - }, - "end": { - "line": 48, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1412, - "end": 1419, - "loc": { - "start": { - "line": 45, - "column": 8 - }, - "end": { - "line": 45, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 1421, - "end": 1559, - "loc": { - "start": { - "line": 45, - "column": 17 - }, - "end": { - "line": 48, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1433, - "end": 1484, - "loc": { - "start": { - "line": 46, - "column": 10 - }, - "end": { - "line": 46, - "column": 61 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 1433, - "end": 1447, - "loc": { - "start": { - "line": 46, - "column": 10 - }, - "end": { - "line": 46, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 1449, - "end": 1484, - "loc": { - "start": { - "line": 46, - "column": 26 - }, - "end": { - "line": 46, - "column": 61 - } - }, - "extra": { - "rawValue": "application/x-www-form-urlencoded", - "raw": "'application/x-www-form-urlencoded'" - }, - "value": "application/x-www-form-urlencoded" - } - }, - { - "type": "ObjectProperty", - "start": 1496, - "end": 1548, - "loc": { - "start": { - "line": 47, - "column": 10 - }, - "end": { - "line": 47, - "column": 62 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 1496, - "end": 1512, - "loc": { - "start": { - "line": 47, - "column": 10 - }, - "end": { - "line": 47, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 1514, - "end": 1548, - "loc": { - "start": { - "line": 47, - "column": 28 - }, - "end": { - "line": 47, - "column": 62 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1514, - "end": 1531, - "loc": { - "start": { - "line": 47, - "column": 28 - }, - "end": { - "line": 47, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 1514, - "end": 1520, - "loc": { - "start": { - "line": 47, - "column": 28 - }, - "end": { - "line": 47, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 1521, - "end": 1531, - "loc": { - "start": { - "line": 47, - "column": 35 - }, - "end": { - "line": 47, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1532, - "end": 1547, - "loc": { - "start": { - "line": 47, - "column": 46 - }, - "end": { - "line": 47, - "column": 61 - }, - "identifierName": "dataStringified" - }, - "name": "dataStringified" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 1571, - "end": 1596, - "loc": { - "start": { - "line": 49, - "column": 10 - }, - "end": { - "line": 49, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 1571, - "end": 1586, - "loc": { - "start": { - "line": 49, - "column": 10 - }, - "end": { - "line": 49, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1587, - "end": 1595, - "loc": { - "start": { - "line": 49, - "column": 26 - }, - "end": { - "line": 49, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 1605, - "end": 1607, - "loc": { - "start": { - "line": 50, - "column": 7 - }, - "end": { - "line": 50, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 1608, - "end": 1615, - "loc": { - "start": { - "line": 50, - "column": 10 - }, - "end": { - "line": 50, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 1617, - "end": 1639, - "loc": { - "start": { - "line": 50, - "column": 19 - }, - "end": { - "line": 50, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 1617, - "end": 1629, - "loc": { - "start": { - "line": 50, - "column": 19 - }, - "end": { - "line": 50, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1630, - "end": 1638, - "loc": { - "start": { - "line": 50, - "column": 32 - }, - "end": { - "line": 50, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 1647, - "end": 1674, - "loc": { - "start": { - "line": 52, - "column": 4 - }, - "end": { - "line": 52, - "column": 31 - } - }, - "expression": { - "type": "CallExpression", - "start": 1647, - "end": 1673, - "loc": { - "start": { - "line": 52, - "column": 4 - }, - "end": { - "line": 52, - "column": 30 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1647, - "end": 1656, - "loc": { - "start": { - "line": 52, - "column": 4 - }, - "end": { - "line": 52, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 1647, - "end": 1650, - "loc": { - "start": { - "line": 52, - "column": 4 - }, - "end": { - "line": 52, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 1651, - "end": 1656, - "loc": { - "start": { - "line": 52, - "column": 8 - }, - "end": { - "line": 52, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1657, - "end": 1672, - "loc": { - "start": { - "line": 52, - "column": 14 - }, - "end": { - "line": 52, - "column": 29 - }, - "identifierName": "dataStringified" - }, - "name": "dataStringified" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 1679, - "end": 1689, - "loc": { - "start": { - "line": 53, - "column": 4 - }, - "end": { - "line": 53, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 1679, - "end": 1688, - "loc": { - "start": { - "line": 53, - "column": 4 - }, - "end": { - "line": 53, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1679, - "end": 1686, - "loc": { - "start": { - "line": 53, - "column": 4 - }, - "end": { - "line": 53, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 1679, - "end": 1682, - "loc": { - "start": { - "line": 53, - "column": 4 - }, - "end": { - "line": 53, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 1683, - "end": 1686, - "loc": { - "start": { - "line": 53, - "column": 8 - }, - "end": { - "line": 53, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Request access token payload\n * @typedef {Object} AccessTokenGetParams\n * @property {string} username - email of a user\n * @property {string} password - password of a user\n ", - "start": 212, - "end": 404, - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 20, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Request access token response data\n * @typedef {Object} AccessTokenGetResponse\n * @property {number} expires_in - time in seconds for which the token was issued\n * @property {string} token_type - type of access token (e.g. 'bearer')\n * @property {string} access_token - access token\n * @property {string} refresh_token - refresh token\n * @property {string} scope - access scopes\n ", - "start": 408, - "end": 813, - "loc": { - "start": { - "line": 22, - "column": 2 - }, - "end": { - "line": 30, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Requests access token for a user\n * @param {AccessTokenGetParams} data - access token reques payload\n * @param {function(err: ApiErrorResponse, res: AccessTokenGetResponse)} [callback] - error first node.js callback\n ", - "start": 817, - "end": 1051, - "loc": { - "start": { - "line": 32, - "column": 2 - }, - "end": { - "line": 36, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Verify access token payload\n * @typedef {Object} AccessTokenVerifyParams\n * @property {string} token - your auth token\n ", - "start": 1697, - "end": 1834, - "loc": { - "start": { - "line": 56, - "column": 2 - }, - "end": { - "line": 60, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Verify access token response data\n * @typedef {Object} AccessTokenVerifyResponse\n * @property {number} expires_in - time in seconds for which the token was issued\n * @property {string} token_type - type of access token (e.g. 'bearer')\n * @property {string} access_token - access token\n * @property {string} scope - access scopes\n ", - "start": 1838, - "end": 2191, - "loc": { - "start": { - "line": 62, - "column": 2 - }, - "end": { - "line": 69, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Verifies access token\n * @param {AccessTokenVerifyParams} data - access token request payload\n * @param {function(err: ApiErrorResponse, res: AccessTokenVerifyResponse)} [callback] - error first node.js callback\n ", - "start": 2195, - "end": 2425, - "loc": { - "start": { - "line": 71, - "column": 2 - }, - "end": { - "line": 75, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 2428, - "end": 2743, - "loc": { - "start": { - "line": 76, - "column": 2 - }, - "end": { - "line": 88, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2435, - "end": 2441, - "loc": { - "start": { - "line": 76, - "column": 9 - }, - "end": { - "line": 76, - "column": 15 - }, - "identifierName": "verify" - }, - "name": "verify" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 2443, - "end": 2452, - "loc": { - "start": { - "line": 76, - "column": 17 - }, - "end": { - "line": 76, - "column": 26 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2445, - "end": 2450, - "loc": { - "start": { - "line": 76, - "column": 19 - }, - "end": { - "line": 76, - "column": 24 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2445, - "end": 2450, - "loc": { - "start": { - "line": 76, - "column": 19 - }, - "end": { - "line": 76, - "column": 24 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 2445, - "end": 2450, - "loc": { - "start": { - "line": 76, - "column": 19 - }, - "end": { - "line": 76, - "column": 24 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 2454, - "end": 2462, - "loc": { - "start": { - "line": 76, - "column": 28 - }, - "end": { - "line": 76, - "column": 36 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 2464, - "end": 2743, - "loc": { - "start": { - "line": 76, - "column": 38 - }, - "end": { - "line": 88, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2470, - "end": 2739, - "loc": { - "start": { - "line": 77, - "column": 4 - }, - "end": { - "line": 87, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 2470, - "end": 2738, - "loc": { - "start": { - "line": 77, - "column": 4 - }, - "end": { - "line": 87, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2470, - "end": 2736, - "loc": { - "start": { - "line": 77, - "column": 4 - }, - "end": { - "line": 87, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 2470, - "end": 2725, - "loc": { - "start": { - "line": 77, - "column": 4 - }, - "end": { - "line": 86, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2470, - "end": 2692, - "loc": { - "start": { - "line": 77, - "column": 4 - }, - "end": { - "line": 86, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 2470, - "end": 2682, - "loc": { - "start": { - "line": 77, - "column": 4 - }, - "end": { - "line": 85, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2470, - "end": 2490, - "loc": { - "start": { - "line": 77, - "column": 4 - }, - "end": { - "line": 78, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 2470, - "end": 2475, - "loc": { - "start": { - "line": 77, - "column": 4 - }, - "end": { - "line": 77, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 2483, - "end": 2490, - "loc": { - "start": { - "line": 78, - "column": 7 - }, - "end": { - "line": 78, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 2491, - "end": 2654, - "loc": { - "start": { - "line": 78, - "column": 15 - }, - "end": { - "line": 85, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 2491, - "end": 2510, - "loc": { - "start": { - "line": 78, - "column": 15 - }, - "end": { - "line": 78, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 2511, - "end": 2653, - "loc": { - "start": { - "line": 78, - "column": 35 - }, - "end": { - "line": 85, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2521, - "end": 2534, - "loc": { - "start": { - "line": 79, - "column": 8 - }, - "end": { - "line": 79, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2521, - "end": 2527, - "loc": { - "start": { - "line": 79, - "column": 8 - }, - "end": { - "line": 79, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 2529, - "end": 2534, - "loc": { - "start": { - "line": 79, - "column": 16 - }, - "end": { - "line": 79, - "column": 21 - } - }, - "extra": { - "rawValue": "GET", - "raw": "'GET'" - }, - "value": "GET" - } - }, - { - "type": "ObjectProperty", - "start": 2544, - "end": 2565, - "loc": { - "start": { - "line": 80, - "column": 8 - }, - "end": { - "line": 80, - "column": 29 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2544, - "end": 2548, - "loc": { - "start": { - "line": 80, - "column": 8 - }, - "end": { - "line": 80, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 2550, - "end": 2565, - "loc": { - "start": { - "line": 80, - "column": 14 - }, - "end": { - "line": 80, - "column": 29 - } - }, - "extra": { - "rawValue": "/oauth2/token", - "raw": "'/oauth2/token'" - }, - "value": "/oauth2/token" - } - }, - { - "type": "ObjectProperty", - "start": 2575, - "end": 2644, - "loc": { - "start": { - "line": 81, - "column": 8 - }, - "end": { - "line": 84, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2575, - "end": 2588, - "loc": { - "start": { - "line": 81, - "column": 8 - }, - "end": { - "line": 81, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 2590, - "end": 2644, - "loc": { - "start": { - "line": 81, - "column": 23 - }, - "end": { - "line": 84, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2602, - "end": 2616, - "loc": { - "start": { - "line": 82, - "column": 10 - }, - "end": { - "line": 82, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2602, - "end": 2606, - "loc": { - "start": { - "line": 82, - "column": 10 - }, - "end": { - "line": 82, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 2608, - "end": 2616, - "loc": { - "start": { - "line": 82, - "column": 16 - }, - "end": { - "line": 82, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 2628, - "end": 2633, - "loc": { - "start": { - "line": 83, - "column": 10 - }, - "end": { - "line": 83, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2628, - "end": 2633, - "loc": { - "start": { - "line": 83, - "column": 10 - }, - "end": { - "line": 83, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 2628, - "end": 2633, - "loc": { - "start": { - "line": 83, - "column": 10 - }, - "end": { - "line": 83, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 2656, - "end": 2681, - "loc": { - "start": { - "line": 85, - "column": 10 - }, - "end": { - "line": 85, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 2656, - "end": 2671, - "loc": { - "start": { - "line": 85, - "column": 10 - }, - "end": { - "line": 85, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2672, - "end": 2680, - "loc": { - "start": { - "line": 85, - "column": 26 - }, - "end": { - "line": 85, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 2690, - "end": 2692, - "loc": { - "start": { - "line": 86, - "column": 7 - }, - "end": { - "line": 86, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2693, - "end": 2700, - "loc": { - "start": { - "line": 86, - "column": 10 - }, - "end": { - "line": 86, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 2702, - "end": 2724, - "loc": { - "start": { - "line": 86, - "column": 19 - }, - "end": { - "line": 86, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 2702, - "end": 2714, - "loc": { - "start": { - "line": 86, - "column": 19 - }, - "end": { - "line": 86, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2715, - "end": 2723, - "loc": { - "start": { - "line": 86, - "column": 32 - }, - "end": { - "line": 86, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 2733, - "end": 2736, - "loc": { - "start": { - "line": 87, - "column": 7 - }, - "end": { - "line": 87, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Verify access token payload\n * @typedef {Object} AccessTokenVerifyParams\n * @property {string} token - your auth token\n ", - "start": 1697, - "end": 1834, - "loc": { - "start": { - "line": 56, - "column": 2 - }, - "end": { - "line": 60, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Verify access token response data\n * @typedef {Object} AccessTokenVerifyResponse\n * @property {number} expires_in - time in seconds for which the token was issued\n * @property {string} token_type - type of access token (e.g. 'bearer')\n * @property {string} access_token - access token\n * @property {string} scope - access scopes\n ", - "start": 1838, - "end": 2191, - "loc": { - "start": { - "line": 62, - "column": 2 - }, - "end": { - "line": 69, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Verifies access token\n * @param {AccessTokenVerifyParams} data - access token request payload\n * @param {function(err: ApiErrorResponse, res: AccessTokenVerifyResponse)} [callback] - error first node.js callback\n ", - "start": 2195, - "end": 2425, - "loc": { - "start": { - "line": 71, - "column": 2 - }, - "end": { - "line": 75, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Refresh access token payload\n * @typedef {Object} AccessTokenRefreshParams\n * @property {string} refresh_token - your refresh token\n * @property {string} [scope] - access scopes of access token\n * @property {number} [expiration_time] - time in seconds for which the token was issued\n ", - "start": 2747, - "end": 3052, - "loc": { - "start": { - "line": 90, - "column": 2 - }, - "end": { - "line": 96, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Refresh access token response data\n * @typedef {Object} AccessTokenRefreshResponse\n * @property {number} expires_in - time in seconds for which the token was issued\n * @property {string} token_type - type of access token (e.g. 'bearer')\n * @property {string} access_token - access token\n * @property {string} refresh_token - refresh token\n * @property {string} scope - access scopes\n ", - "start": 3056, - "end": 3465, - "loc": { - "start": { - "line": 98, - "column": 2 - }, - "end": { - "line": 106, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Refreshes access token for a user\n * @param {AccessTokenRefreshParams} data - refresh token request payload\n * @param {function(err: ApiErrorResponse, res: AccessTokenRefreshResponse)} [callback] - error first node.js callback\n ", - "start": 3469, - "end": 3714, - "loc": { - "start": { - "line": 108, - "column": 2 - }, - "end": { - "line": 112, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 3717, - "end": 4361, - "loc": { - "start": { - "line": 113, - "column": 2 - }, - "end": { - "line": 130, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3724, - "end": 3736, - "loc": { - "start": { - "line": 113, - "column": 9 - }, - "end": { - "line": 113, - "column": 21 - }, - "identifierName": "refreshToken" - }, - "name": "refreshToken" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 3738, - "end": 3742, - "loc": { - "start": { - "line": 113, - "column": 23 - }, - "end": { - "line": 113, - "column": 27 - }, - "identifierName": "data" - }, - "name": "data" - }, - { - "type": "Identifier", - "start": 3744, - "end": 3752, - "loc": { - "start": { - "line": 113, - "column": 29 - }, - "end": { - "line": 113, - "column": 37 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 3754, - "end": 4361, - "loc": { - "start": { - "line": 113, - "column": 39 - }, - "end": { - "line": 130, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 3760, - "end": 3834, - "loc": { - "start": { - "line": 114, - "column": 4 - }, - "end": { - "line": 114, - "column": 78 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3766, - "end": 3833, - "loc": { - "start": { - "line": 114, - "column": 10 - }, - "end": { - "line": 114, - "column": 77 - } - }, - "id": { - "type": "Identifier", - "start": 3766, - "end": 3774, - "loc": { - "start": { - "line": 114, - "column": 10 - }, - "end": { - "line": 114, - "column": 18 - }, - "identifierName": "dataCopy" - }, - "name": "dataCopy" - }, - "init": { - "type": "CallExpression", - "start": 3777, - "end": 3833, - "loc": { - "start": { - "line": 114, - "column": 21 - }, - "end": { - "line": 114, - "column": 77 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3777, - "end": 3790, - "loc": { - "start": { - "line": 114, - "column": 21 - }, - "end": { - "line": 114, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 3777, - "end": 3783, - "loc": { - "start": { - "line": 114, - "column": 21 - }, - "end": { - "line": 114, - "column": 27 - }, - "identifierName": "Object" - }, - "name": "Object" - }, - "property": { - "type": "Identifier", - "start": 3784, - "end": 3790, - "loc": { - "start": { - "line": 114, - "column": 28 - }, - "end": { - "line": 114, - "column": 34 - }, - "identifierName": "assign" - }, - "name": "assign" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 3791, - "end": 3793, - "loc": { - "start": { - "line": 114, - "column": 35 - }, - "end": { - "line": 114, - "column": 37 - } - }, - "properties": [] - }, - { - "type": "Identifier", - "start": 3795, - "end": 3799, - "loc": { - "start": { - "line": 114, - "column": 39 - }, - "end": { - "line": 114, - "column": 43 - }, - "identifierName": "data" - }, - "name": "data" - }, - { - "type": "ObjectExpression", - "start": 3801, - "end": 3832, - "loc": { - "start": { - "line": 114, - "column": 45 - }, - "end": { - "line": 114, - "column": 76 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3803, - "end": 3830, - "loc": { - "start": { - "line": 114, - "column": 47 - }, - "end": { - "line": 114, - "column": 74 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3803, - "end": 3813, - "loc": { - "start": { - "line": 114, - "column": 47 - }, - "end": { - "line": 114, - "column": 57 - }, - "identifierName": "grant_type" - }, - "name": "grant_type" - }, - "value": { - "type": "StringLiteral", - "start": 3815, - "end": 3830, - "loc": { - "start": { - "line": 114, - "column": 59 - }, - "end": { - "line": 114, - "column": 74 - } - }, - "extra": { - "rawValue": "refresh_token", - "raw": "'refresh_token'" - }, - "value": "refresh_token" - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 3839, - "end": 3915, - "loc": { - "start": { - "line": 115, - "column": 4 - }, - "end": { - "line": 115, - "column": 80 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3845, - "end": 3914, - "loc": { - "start": { - "line": 115, - "column": 10 - }, - "end": { - "line": 115, - "column": 79 - } - }, - "id": { - "type": "Identifier", - "start": 3845, - "end": 3860, - "loc": { - "start": { - "line": 115, - "column": 10 - }, - "end": { - "line": 115, - "column": 25 - }, - "identifierName": "dataStringified" - }, - "name": "dataStringified" - }, - "init": { - "type": "CallExpression", - "start": 3863, - "end": 3914, - "loc": { - "start": { - "line": 115, - "column": 28 - }, - "end": { - "line": 115, - "column": 79 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3863, - "end": 3902, - "loc": { - "start": { - "line": 115, - "column": 28 - }, - "end": { - "line": 115, - "column": 67 - } - }, - "object": { - "type": "CallExpression", - "start": 3863, - "end": 3894, - "loc": { - "start": { - "line": 115, - "column": 28 - }, - "end": { - "line": 115, - "column": 59 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3863, - "end": 3884, - "loc": { - "start": { - "line": 115, - "column": 28 - }, - "end": { - "line": 115, - "column": 49 - } - }, - "object": { - "type": "Identifier", - "start": 3863, - "end": 3874, - "loc": { - "start": { - "line": 115, - "column": 28 - }, - "end": { - "line": 115, - "column": 39 - }, - "identifierName": "querystring" - }, - "name": "querystring" - }, - "property": { - "type": "Identifier", - "start": 3875, - "end": 3884, - "loc": { - "start": { - "line": 115, - "column": 40 - }, - "end": { - "line": 115, - "column": 49 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 3885, - "end": 3893, - "loc": { - "start": { - "line": 115, - "column": 50 - }, - "end": { - "line": 115, - "column": 58 - }, - "identifierName": "dataCopy" - }, - "name": "dataCopy" - } - ] - }, - "property": { - "type": "Identifier", - "start": 3895, - "end": 3902, - "loc": { - "start": { - "line": 115, - "column": 60 - }, - "end": { - "line": 115, - "column": 67 - }, - "identifierName": "replace" - }, - "name": "replace" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 3903, - "end": 3908, - "loc": { - "start": { - "line": 115, - "column": 68 - }, - "end": { - "line": 115, - "column": 73 - } - }, - "extra": { - "rawValue": "%40", - "raw": "'%40'" - }, - "value": "%40" - }, - { - "type": "StringLiteral", - "start": 3910, - "end": 3913, - "loc": { - "start": { - "line": 115, - "column": 75 - }, - "end": { - "line": 115, - "column": 78 - } - }, - "extra": { - "rawValue": "@", - "raw": "'@'" - }, - "value": "@" - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 3920, - "end": 4309, - "loc": { - "start": { - "line": 116, - "column": 4 - }, - "end": { - "line": 126, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3926, - "end": 4308, - "loc": { - "start": { - "line": 116, - "column": 10 - }, - "end": { - "line": 126, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 3926, - "end": 3929, - "loc": { - "start": { - "line": 116, - "column": 10 - }, - "end": { - "line": 116, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 3932, - "end": 4308, - "loc": { - "start": { - "line": 116, - "column": 16 - }, - "end": { - "line": 126, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3932, - "end": 4275, - "loc": { - "start": { - "line": 116, - "column": 16 - }, - "end": { - "line": 126, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 3932, - "end": 4265, - "loc": { - "start": { - "line": 116, - "column": 16 - }, - "end": { - "line": 125, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3932, - "end": 3952, - "loc": { - "start": { - "line": 116, - "column": 16 - }, - "end": { - "line": 117, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 3932, - "end": 3937, - "loc": { - "start": { - "line": 116, - "column": 16 - }, - "end": { - "line": 116, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 3945, - "end": 3952, - "loc": { - "start": { - "line": 117, - "column": 7 - }, - "end": { - "line": 117, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 3953, - "end": 4237, - "loc": { - "start": { - "line": 117, - "column": 15 - }, - "end": { - "line": 125, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 3953, - "end": 3972, - "loc": { - "start": { - "line": 117, - "column": 15 - }, - "end": { - "line": 117, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 3973, - "end": 4236, - "loc": { - "start": { - "line": 117, - "column": 35 - }, - "end": { - "line": 125, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3983, - "end": 3997, - "loc": { - "start": { - "line": 118, - "column": 8 - }, - "end": { - "line": 118, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3983, - "end": 3989, - "loc": { - "start": { - "line": 118, - "column": 8 - }, - "end": { - "line": 118, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 3991, - "end": 3997, - "loc": { - "start": { - "line": 118, - "column": 16 - }, - "end": { - "line": 118, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 4007, - "end": 4028, - "loc": { - "start": { - "line": 119, - "column": 8 - }, - "end": { - "line": 119, - "column": 29 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4007, - "end": 4011, - "loc": { - "start": { - "line": 119, - "column": 8 - }, - "end": { - "line": 119, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 4013, - "end": 4028, - "loc": { - "start": { - "line": 119, - "column": 14 - }, - "end": { - "line": 119, - "column": 29 - } - }, - "extra": { - "rawValue": "/oauth2/token", - "raw": "'/oauth2/token'" - }, - "value": "/oauth2/token" - } - }, - { - "type": "ObjectProperty", - "start": 4038, - "end": 4070, - "loc": { - "start": { - "line": 120, - "column": 8 - }, - "end": { - "line": 120, - "column": 40 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4038, - "end": 4051, - "loc": { - "start": { - "line": 120, - "column": 8 - }, - "end": { - "line": 120, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 4053, - "end": 4070, - "loc": { - "start": { - "line": 120, - "column": 23 - }, - "end": { - "line": 120, - "column": 40 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4055, - "end": 4068, - "loc": { - "start": { - "line": 120, - "column": 25 - }, - "end": { - "line": 120, - "column": 38 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4055, - "end": 4059, - "loc": { - "start": { - "line": 120, - "column": 25 - }, - "end": { - "line": 120, - "column": 29 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 4061, - "end": 4068, - "loc": { - "start": { - "line": 120, - "column": 31 - }, - "end": { - "line": 120, - "column": 38 - } - }, - "extra": { - "rawValue": "Basic", - "raw": "'Basic'" - }, - "value": "Basic" - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 4080, - "end": 4227, - "loc": { - "start": { - "line": 121, - "column": 8 - }, - "end": { - "line": 124, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4080, - "end": 4087, - "loc": { - "start": { - "line": 121, - "column": 8 - }, - "end": { - "line": 121, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 4089, - "end": 4227, - "loc": { - "start": { - "line": 121, - "column": 17 - }, - "end": { - "line": 124, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4101, - "end": 4152, - "loc": { - "start": { - "line": 122, - "column": 10 - }, - "end": { - "line": 122, - "column": 61 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 4101, - "end": 4115, - "loc": { - "start": { - "line": 122, - "column": 10 - }, - "end": { - "line": 122, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 4117, - "end": 4152, - "loc": { - "start": { - "line": 122, - "column": 26 - }, - "end": { - "line": 122, - "column": 61 - } - }, - "extra": { - "rawValue": "application/x-www-form-urlencoded", - "raw": "'application/x-www-form-urlencoded'" - }, - "value": "application/x-www-form-urlencoded" - } - }, - { - "type": "ObjectProperty", - "start": 4164, - "end": 4216, - "loc": { - "start": { - "line": 123, - "column": 10 - }, - "end": { - "line": 123, - "column": 62 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 4164, - "end": 4180, - "loc": { - "start": { - "line": 123, - "column": 10 - }, - "end": { - "line": 123, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 4182, - "end": 4216, - "loc": { - "start": { - "line": 123, - "column": 28 - }, - "end": { - "line": 123, - "column": 62 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4182, - "end": 4199, - "loc": { - "start": { - "line": 123, - "column": 28 - }, - "end": { - "line": 123, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 4182, - "end": 4188, - "loc": { - "start": { - "line": 123, - "column": 28 - }, - "end": { - "line": 123, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 4189, - "end": 4199, - "loc": { - "start": { - "line": 123, - "column": 35 - }, - "end": { - "line": 123, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 4200, - "end": 4215, - "loc": { - "start": { - "line": 123, - "column": 46 - }, - "end": { - "line": 123, - "column": 61 - }, - "identifierName": "dataStringified" - }, - "name": "dataStringified" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 4239, - "end": 4264, - "loc": { - "start": { - "line": 125, - "column": 10 - }, - "end": { - "line": 125, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 4239, - "end": 4254, - "loc": { - "start": { - "line": 125, - "column": 10 - }, - "end": { - "line": 125, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 4255, - "end": 4263, - "loc": { - "start": { - "line": 125, - "column": 26 - }, - "end": { - "line": 125, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 4273, - "end": 4275, - "loc": { - "start": { - "line": 126, - "column": 7 - }, - "end": { - "line": 126, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 4276, - "end": 4283, - "loc": { - "start": { - "line": 126, - "column": 10 - }, - "end": { - "line": 126, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 4285, - "end": 4307, - "loc": { - "start": { - "line": 126, - "column": 19 - }, - "end": { - "line": 126, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 4285, - "end": 4297, - "loc": { - "start": { - "line": 126, - "column": 19 - }, - "end": { - "line": 126, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 4298, - "end": 4306, - "loc": { - "start": { - "line": 126, - "column": 32 - }, - "end": { - "line": 126, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 4315, - "end": 4342, - "loc": { - "start": { - "line": 128, - "column": 4 - }, - "end": { - "line": 128, - "column": 31 - } - }, - "expression": { - "type": "CallExpression", - "start": 4315, - "end": 4341, - "loc": { - "start": { - "line": 128, - "column": 4 - }, - "end": { - "line": 128, - "column": 30 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4315, - "end": 4324, - "loc": { - "start": { - "line": 128, - "column": 4 - }, - "end": { - "line": 128, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 4315, - "end": 4318, - "loc": { - "start": { - "line": 128, - "column": 4 - }, - "end": { - "line": 128, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 4319, - "end": 4324, - "loc": { - "start": { - "line": 128, - "column": 8 - }, - "end": { - "line": 128, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 4325, - "end": 4340, - "loc": { - "start": { - "line": 128, - "column": 14 - }, - "end": { - "line": 128, - "column": 29 - }, - "identifierName": "dataStringified" - }, - "name": "dataStringified" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 4347, - "end": 4357, - "loc": { - "start": { - "line": 129, - "column": 4 - }, - "end": { - "line": 129, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 4347, - "end": 4356, - "loc": { - "start": { - "line": 129, - "column": 4 - }, - "end": { - "line": 129, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4347, - "end": 4354, - "loc": { - "start": { - "line": 129, - "column": 4 - }, - "end": { - "line": 129, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 4347, - "end": 4350, - "loc": { - "start": { - "line": 129, - "column": 4 - }, - "end": { - "line": 129, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 4351, - "end": 4354, - "loc": { - "start": { - "line": 129, - "column": 8 - }, - "end": { - "line": 129, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Refresh access token payload\n * @typedef {Object} AccessTokenRefreshParams\n * @property {string} refresh_token - your refresh token\n * @property {string} [scope] - access scopes of access token\n * @property {number} [expiration_time] - time in seconds for which the token was issued\n ", - "start": 2747, - "end": 3052, - "loc": { - "start": { - "line": 90, - "column": 2 - }, - "end": { - "line": 96, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Refresh access token response data\n * @typedef {Object} AccessTokenRefreshResponse\n * @property {number} expires_in - time in seconds for which the token was issued\n * @property {string} token_type - type of access token (e.g. 'bearer')\n * @property {string} access_token - access token\n * @property {string} refresh_token - refresh token\n * @property {string} scope - access scopes\n ", - "start": 3056, - "end": 3465, - "loc": { - "start": { - "line": 98, - "column": 2 - }, - "end": { - "line": 106, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Refreshes access token for a user\n * @param {AccessTokenRefreshParams} data - refresh token request payload\n * @param {function(err: ApiErrorResponse, res: AccessTokenRefreshResponse)} [callback] - error first node.js callback\n ", - "start": 3469, - "end": 3714, - "loc": { - "start": { - "line": 108, - "column": 2 - }, - "end": { - "line": 112, - "column": 5 - } - } - } - ] - } - ] - }, - "leadingComments": [], - "name": "_", - "trailingComments": [] - }, - { - "type": "Identifier", - "start": 4366, - "end": 4388, - "loc": { - "start": { - "line": 134, - "column": 0 - }, - "end": { - "line": 134, - "column": 22 - } - }, - "declaration": { - "type": "Identifier", - "start": 4381, - "end": 4387, - "loc": { - "start": { - "line": 134, - "column": 15 - }, - "end": { - "line": 134, - "column": 21 - }, - "identifierName": "OAuth2" - }, - "name": "OAuth2" - }, - "name": "_", - "leadingComments": [], - "trailingComments": [] - }, - { - "type": "ExportDefaultDeclaration", - "start": 4366, - "end": 4388, - "loc": { - "start": { - "line": 134, - "column": 0 - }, - "end": { - "line": 134, - "column": 22 - } - }, - "declaration": { - "type": "ClassDeclaration", - "start": 194, - "end": 4364, - "loc": { - "start": { - "line": 13, - "column": 0 - }, - "end": { - "line": 132, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 200, - "end": 206, - "loc": { - "start": { - "line": 13, - "column": 6 - }, - "end": { - "line": 13, - "column": 12 - }, - "identifierName": "OAuth2" - }, - "name": "OAuth2", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 207, - "end": 4364, - "loc": { - "start": { - "line": 13, - "column": 13 - }, - "end": { - "line": 132, - "column": 1 - } - }, - "body": [ - { - "type": "ClassMethod", - "start": 1054, - "end": 1693, - "loc": { - "start": { - "line": 37, - "column": 2 - }, - "end": { - "line": 54, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1061, - "end": 1073, - "loc": { - "start": { - "line": 37, - "column": 9 - }, - "end": { - "line": 37, - "column": 21 - }, - "identifierName": "requestToken" - }, - "name": "requestToken" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1075, - "end": 1079, - "loc": { - "start": { - "line": 37, - "column": 23 - }, - "end": { - "line": 37, - "column": 27 - }, - "identifierName": "data" - }, - "name": "data" - }, - { - "type": "Identifier", - "start": 1081, - "end": 1089, - "loc": { - "start": { - "line": 37, - "column": 29 - }, - "end": { - "line": 37, - "column": 37 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 1091, - "end": 1693, - "loc": { - "start": { - "line": 37, - "column": 39 - }, - "end": { - "line": 54, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 1097, - "end": 1166, - "loc": { - "start": { - "line": 38, - "column": 4 - }, - "end": { - "line": 38, - "column": 73 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1103, - "end": 1165, - "loc": { - "start": { - "line": 38, - "column": 10 - }, - "end": { - "line": 38, - "column": 72 - } - }, - "id": { - "type": "Identifier", - "start": 1103, - "end": 1111, - "loc": { - "start": { - "line": 38, - "column": 10 - }, - "end": { - "line": 38, - "column": 18 - }, - "identifierName": "dataCopy" - }, - "name": "dataCopy" - }, - "init": { - "type": "CallExpression", - "start": 1114, - "end": 1165, - "loc": { - "start": { - "line": 38, - "column": 21 - }, - "end": { - "line": 38, - "column": 72 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1114, - "end": 1127, - "loc": { - "start": { - "line": 38, - "column": 21 - }, - "end": { - "line": 38, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 1114, - "end": 1120, - "loc": { - "start": { - "line": 38, - "column": 21 - }, - "end": { - "line": 38, - "column": 27 - }, - "identifierName": "Object" - }, - "name": "Object" - }, - "property": { - "type": "Identifier", - "start": 1121, - "end": 1127, - "loc": { - "start": { - "line": 38, - "column": 28 - }, - "end": { - "line": 38, - "column": 34 - }, - "identifierName": "assign" - }, - "name": "assign" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 1128, - "end": 1130, - "loc": { - "start": { - "line": 38, - "column": 35 - }, - "end": { - "line": 38, - "column": 37 - } - }, - "properties": [] - }, - { - "type": "Identifier", - "start": 1132, - "end": 1136, - "loc": { - "start": { - "line": 38, - "column": 39 - }, - "end": { - "line": 38, - "column": 43 - }, - "identifierName": "data" - }, - "name": "data" - }, - { - "type": "ObjectExpression", - "start": 1138, - "end": 1164, - "loc": { - "start": { - "line": 38, - "column": 45 - }, - "end": { - "line": 38, - "column": 71 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1140, - "end": 1162, - "loc": { - "start": { - "line": 38, - "column": 47 - }, - "end": { - "line": 38, - "column": 69 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1140, - "end": 1150, - "loc": { - "start": { - "line": 38, - "column": 47 - }, - "end": { - "line": 38, - "column": 57 - }, - "identifierName": "grant_type" - }, - "name": "grant_type" - }, - "value": { - "type": "StringLiteral", - "start": 1152, - "end": 1162, - "loc": { - "start": { - "line": 38, - "column": 59 - }, - "end": { - "line": 38, - "column": 69 - } - }, - "extra": { - "rawValue": "password", - "raw": "'password'" - }, - "value": "password" - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 1171, - "end": 1247, - "loc": { - "start": { - "line": 39, - "column": 4 - }, - "end": { - "line": 39, - "column": 80 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1177, - "end": 1246, - "loc": { - "start": { - "line": 39, - "column": 10 - }, - "end": { - "line": 39, - "column": 79 - } - }, - "id": { - "type": "Identifier", - "start": 1177, - "end": 1192, - "loc": { - "start": { - "line": 39, - "column": 10 - }, - "end": { - "line": 39, - "column": 25 - }, - "identifierName": "dataStringified" - }, - "name": "dataStringified" - }, - "init": { - "type": "CallExpression", - "start": 1195, - "end": 1246, - "loc": { - "start": { - "line": 39, - "column": 28 - }, - "end": { - "line": 39, - "column": 79 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1195, - "end": 1234, - "loc": { - "start": { - "line": 39, - "column": 28 - }, - "end": { - "line": 39, - "column": 67 - } - }, - "object": { - "type": "CallExpression", - "start": 1195, - "end": 1226, - "loc": { - "start": { - "line": 39, - "column": 28 - }, - "end": { - "line": 39, - "column": 59 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1195, - "end": 1216, - "loc": { - "start": { - "line": 39, - "column": 28 - }, - "end": { - "line": 39, - "column": 49 - } - }, - "object": { - "type": "Identifier", - "start": 1195, - "end": 1206, - "loc": { - "start": { - "line": 39, - "column": 28 - }, - "end": { - "line": 39, - "column": 39 - }, - "identifierName": "querystring" - }, - "name": "querystring" - }, - "property": { - "type": "Identifier", - "start": 1207, - "end": 1216, - "loc": { - "start": { - "line": 39, - "column": 40 - }, - "end": { - "line": 39, - "column": 49 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1217, - "end": 1225, - "loc": { - "start": { - "line": 39, - "column": 50 - }, - "end": { - "line": 39, - "column": 58 - }, - "identifierName": "dataCopy" - }, - "name": "dataCopy" - } - ] - }, - "property": { - "type": "Identifier", - "start": 1227, - "end": 1234, - "loc": { - "start": { - "line": 39, - "column": 60 - }, - "end": { - "line": 39, - "column": 67 - }, - "identifierName": "replace" - }, - "name": "replace" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 1235, - "end": 1240, - "loc": { - "start": { - "line": 39, - "column": 68 - }, - "end": { - "line": 39, - "column": 73 - } - }, - "extra": { - "rawValue": "%40", - "raw": "'%40'" - }, - "value": "%40" - }, - { - "type": "StringLiteral", - "start": 1242, - "end": 1245, - "loc": { - "start": { - "line": 39, - "column": 75 - }, - "end": { - "line": 39, - "column": 78 - } - }, - "extra": { - "rawValue": "@", - "raw": "'@'" - }, - "value": "@" - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 1252, - "end": 1641, - "loc": { - "start": { - "line": 40, - "column": 4 - }, - "end": { - "line": 50, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1258, - "end": 1640, - "loc": { - "start": { - "line": 40, - "column": 10 - }, - "end": { - "line": 50, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 1258, - "end": 1261, - "loc": { - "start": { - "line": 40, - "column": 10 - }, - "end": { - "line": 40, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 1264, - "end": 1640, - "loc": { - "start": { - "line": 40, - "column": 16 - }, - "end": { - "line": 50, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1264, - "end": 1607, - "loc": { - "start": { - "line": 40, - "column": 16 - }, - "end": { - "line": 50, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 1264, - "end": 1597, - "loc": { - "start": { - "line": 40, - "column": 16 - }, - "end": { - "line": 49, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1264, - "end": 1284, - "loc": { - "start": { - "line": 40, - "column": 16 - }, - "end": { - "line": 41, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 1264, - "end": 1269, - "loc": { - "start": { - "line": 40, - "column": 16 - }, - "end": { - "line": 40, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 1277, - "end": 1284, - "loc": { - "start": { - "line": 41, - "column": 7 - }, - "end": { - "line": 41, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 1285, - "end": 1569, - "loc": { - "start": { - "line": 41, - "column": 15 - }, - "end": { - "line": 49, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 1285, - "end": 1304, - "loc": { - "start": { - "line": 41, - "column": 15 - }, - "end": { - "line": 41, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 1305, - "end": 1568, - "loc": { - "start": { - "line": 41, - "column": 35 - }, - "end": { - "line": 49, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1315, - "end": 1329, - "loc": { - "start": { - "line": 42, - "column": 8 - }, - "end": { - "line": 42, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1315, - "end": 1321, - "loc": { - "start": { - "line": 42, - "column": 8 - }, - "end": { - "line": 42, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 1323, - "end": 1329, - "loc": { - "start": { - "line": 42, - "column": 16 - }, - "end": { - "line": 42, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 1339, - "end": 1360, - "loc": { - "start": { - "line": 43, - "column": 8 - }, - "end": { - "line": 43, - "column": 29 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1339, - "end": 1343, - "loc": { - "start": { - "line": 43, - "column": 8 - }, - "end": { - "line": 43, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 1345, - "end": 1360, - "loc": { - "start": { - "line": 43, - "column": 14 - }, - "end": { - "line": 43, - "column": 29 - } - }, - "extra": { - "rawValue": "/oauth2/token", - "raw": "'/oauth2/token'" - }, - "value": "/oauth2/token" - } - }, - { - "type": "ObjectProperty", - "start": 1370, - "end": 1402, - "loc": { - "start": { - "line": 44, - "column": 8 - }, - "end": { - "line": 44, - "column": 40 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1370, - "end": 1383, - "loc": { - "start": { - "line": 44, - "column": 8 - }, - "end": { - "line": 44, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 1385, - "end": 1402, - "loc": { - "start": { - "line": 44, - "column": 23 - }, - "end": { - "line": 44, - "column": 40 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1387, - "end": 1400, - "loc": { - "start": { - "line": 44, - "column": 25 - }, - "end": { - "line": 44, - "column": 38 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1387, - "end": 1391, - "loc": { - "start": { - "line": 44, - "column": 25 - }, - "end": { - "line": 44, - "column": 29 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 1393, - "end": 1400, - "loc": { - "start": { - "line": 44, - "column": 31 - }, - "end": { - "line": 44, - "column": 38 - } - }, - "extra": { - "rawValue": "Basic", - "raw": "'Basic'" - }, - "value": "Basic" - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 1412, - "end": 1559, - "loc": { - "start": { - "line": 45, - "column": 8 - }, - "end": { - "line": 48, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1412, - "end": 1419, - "loc": { - "start": { - "line": 45, - "column": 8 - }, - "end": { - "line": 45, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 1421, - "end": 1559, - "loc": { - "start": { - "line": 45, - "column": 17 - }, - "end": { - "line": 48, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1433, - "end": 1484, - "loc": { - "start": { - "line": 46, - "column": 10 - }, - "end": { - "line": 46, - "column": 61 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 1433, - "end": 1447, - "loc": { - "start": { - "line": 46, - "column": 10 - }, - "end": { - "line": 46, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 1449, - "end": 1484, - "loc": { - "start": { - "line": 46, - "column": 26 - }, - "end": { - "line": 46, - "column": 61 - } - }, - "extra": { - "rawValue": "application/x-www-form-urlencoded", - "raw": "'application/x-www-form-urlencoded'" - }, - "value": "application/x-www-form-urlencoded" - } - }, - { - "type": "ObjectProperty", - "start": 1496, - "end": 1548, - "loc": { - "start": { - "line": 47, - "column": 10 - }, - "end": { - "line": 47, - "column": 62 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 1496, - "end": 1512, - "loc": { - "start": { - "line": 47, - "column": 10 - }, - "end": { - "line": 47, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 1514, - "end": 1548, - "loc": { - "start": { - "line": 47, - "column": 28 - }, - "end": { - "line": 47, - "column": 62 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1514, - "end": 1531, - "loc": { - "start": { - "line": 47, - "column": 28 - }, - "end": { - "line": 47, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 1514, - "end": 1520, - "loc": { - "start": { - "line": 47, - "column": 28 - }, - "end": { - "line": 47, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 1521, - "end": 1531, - "loc": { - "start": { - "line": 47, - "column": 35 - }, - "end": { - "line": 47, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1532, - "end": 1547, - "loc": { - "start": { - "line": 47, - "column": 46 - }, - "end": { - "line": 47, - "column": 61 - }, - "identifierName": "dataStringified" - }, - "name": "dataStringified" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 1571, - "end": 1596, - "loc": { - "start": { - "line": 49, - "column": 10 - }, - "end": { - "line": 49, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 1571, - "end": 1586, - "loc": { - "start": { - "line": 49, - "column": 10 - }, - "end": { - "line": 49, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1587, - "end": 1595, - "loc": { - "start": { - "line": 49, - "column": 26 - }, - "end": { - "line": 49, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 1605, - "end": 1607, - "loc": { - "start": { - "line": 50, - "column": 7 - }, - "end": { - "line": 50, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 1608, - "end": 1615, - "loc": { - "start": { - "line": 50, - "column": 10 - }, - "end": { - "line": 50, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 1617, - "end": 1639, - "loc": { - "start": { - "line": 50, - "column": 19 - }, - "end": { - "line": 50, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 1617, - "end": 1629, - "loc": { - "start": { - "line": 50, - "column": 19 - }, - "end": { - "line": 50, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1630, - "end": 1638, - "loc": { - "start": { - "line": 50, - "column": 32 - }, - "end": { - "line": 50, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 1647, - "end": 1674, - "loc": { - "start": { - "line": 52, - "column": 4 - }, - "end": { - "line": 52, - "column": 31 - } - }, - "expression": { - "type": "CallExpression", - "start": 1647, - "end": 1673, - "loc": { - "start": { - "line": 52, - "column": 4 - }, - "end": { - "line": 52, - "column": 30 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1647, - "end": 1656, - "loc": { - "start": { - "line": 52, - "column": 4 - }, - "end": { - "line": 52, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 1647, - "end": 1650, - "loc": { - "start": { - "line": 52, - "column": 4 - }, - "end": { - "line": 52, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 1651, - "end": 1656, - "loc": { - "start": { - "line": 52, - "column": 8 - }, - "end": { - "line": 52, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1657, - "end": 1672, - "loc": { - "start": { - "line": 52, - "column": 14 - }, - "end": { - "line": 52, - "column": 29 - }, - "identifierName": "dataStringified" - }, - "name": "dataStringified" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 1679, - "end": 1689, - "loc": { - "start": { - "line": 53, - "column": 4 - }, - "end": { - "line": 53, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 1679, - "end": 1688, - "loc": { - "start": { - "line": 53, - "column": 4 - }, - "end": { - "line": 53, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1679, - "end": 1686, - "loc": { - "start": { - "line": 53, - "column": 4 - }, - "end": { - "line": 53, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 1679, - "end": 1682, - "loc": { - "start": { - "line": 53, - "column": 4 - }, - "end": { - "line": 53, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 1683, - "end": 1686, - "loc": { - "start": { - "line": 53, - "column": 8 - }, - "end": { - "line": 53, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Request access token payload\n * @typedef {Object} AccessTokenGetParams\n * @property {string} username - email of a user\n * @property {string} password - password of a user\n ", - "start": 212, - "end": 404, - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 20, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Request access token response data\n * @typedef {Object} AccessTokenGetResponse\n * @property {number} expires_in - time in seconds for which the token was issued\n * @property {string} token_type - type of access token (e.g. 'bearer')\n * @property {string} access_token - access token\n * @property {string} refresh_token - refresh token\n * @property {string} scope - access scopes\n ", - "start": 408, - "end": 813, - "loc": { - "start": { - "line": 22, - "column": 2 - }, - "end": { - "line": 30, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Requests access token for a user\n * @param {AccessTokenGetParams} data - access token reques payload\n * @param {function(err: ApiErrorResponse, res: AccessTokenGetResponse)} [callback] - error first node.js callback\n ", - "start": 817, - "end": 1051, - "loc": { - "start": { - "line": 32, - "column": 2 - }, - "end": { - "line": 36, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Verify access token payload\n * @typedef {Object} AccessTokenVerifyParams\n * @property {string} token - your auth token\n ", - "start": 1697, - "end": 1834, - "loc": { - "start": { - "line": 56, - "column": 2 - }, - "end": { - "line": 60, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Verify access token response data\n * @typedef {Object} AccessTokenVerifyResponse\n * @property {number} expires_in - time in seconds for which the token was issued\n * @property {string} token_type - type of access token (e.g. 'bearer')\n * @property {string} access_token - access token\n * @property {string} scope - access scopes\n ", - "start": 1838, - "end": 2191, - "loc": { - "start": { - "line": 62, - "column": 2 - }, - "end": { - "line": 69, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Verifies access token\n * @param {AccessTokenVerifyParams} data - access token request payload\n * @param {function(err: ApiErrorResponse, res: AccessTokenVerifyResponse)} [callback] - error first node.js callback\n ", - "start": 2195, - "end": 2425, - "loc": { - "start": { - "line": 71, - "column": 2 - }, - "end": { - "line": 75, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 2428, - "end": 2743, - "loc": { - "start": { - "line": 76, - "column": 2 - }, - "end": { - "line": 88, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2435, - "end": 2441, - "loc": { - "start": { - "line": 76, - "column": 9 - }, - "end": { - "line": 76, - "column": 15 - }, - "identifierName": "verify" - }, - "name": "verify" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 2443, - "end": 2452, - "loc": { - "start": { - "line": 76, - "column": 17 - }, - "end": { - "line": 76, - "column": 26 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2445, - "end": 2450, - "loc": { - "start": { - "line": 76, - "column": 19 - }, - "end": { - "line": 76, - "column": 24 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2445, - "end": 2450, - "loc": { - "start": { - "line": 76, - "column": 19 - }, - "end": { - "line": 76, - "column": 24 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 2445, - "end": 2450, - "loc": { - "start": { - "line": 76, - "column": 19 - }, - "end": { - "line": 76, - "column": 24 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 2454, - "end": 2462, - "loc": { - "start": { - "line": 76, - "column": 28 - }, - "end": { - "line": 76, - "column": 36 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 2464, - "end": 2743, - "loc": { - "start": { - "line": 76, - "column": 38 - }, - "end": { - "line": 88, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2470, - "end": 2739, - "loc": { - "start": { - "line": 77, - "column": 4 - }, - "end": { - "line": 87, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 2470, - "end": 2738, - "loc": { - "start": { - "line": 77, - "column": 4 - }, - "end": { - "line": 87, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2470, - "end": 2736, - "loc": { - "start": { - "line": 77, - "column": 4 - }, - "end": { - "line": 87, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 2470, - "end": 2725, - "loc": { - "start": { - "line": 77, - "column": 4 - }, - "end": { - "line": 86, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2470, - "end": 2692, - "loc": { - "start": { - "line": 77, - "column": 4 - }, - "end": { - "line": 86, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 2470, - "end": 2682, - "loc": { - "start": { - "line": 77, - "column": 4 - }, - "end": { - "line": 85, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2470, - "end": 2490, - "loc": { - "start": { - "line": 77, - "column": 4 - }, - "end": { - "line": 78, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 2470, - "end": 2475, - "loc": { - "start": { - "line": 77, - "column": 4 - }, - "end": { - "line": 77, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 2483, - "end": 2490, - "loc": { - "start": { - "line": 78, - "column": 7 - }, - "end": { - "line": 78, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 2491, - "end": 2654, - "loc": { - "start": { - "line": 78, - "column": 15 - }, - "end": { - "line": 85, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 2491, - "end": 2510, - "loc": { - "start": { - "line": 78, - "column": 15 - }, - "end": { - "line": 78, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 2511, - "end": 2653, - "loc": { - "start": { - "line": 78, - "column": 35 - }, - "end": { - "line": 85, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2521, - "end": 2534, - "loc": { - "start": { - "line": 79, - "column": 8 - }, - "end": { - "line": 79, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2521, - "end": 2527, - "loc": { - "start": { - "line": 79, - "column": 8 - }, - "end": { - "line": 79, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 2529, - "end": 2534, - "loc": { - "start": { - "line": 79, - "column": 16 - }, - "end": { - "line": 79, - "column": 21 - } - }, - "extra": { - "rawValue": "GET", - "raw": "'GET'" - }, - "value": "GET" - } - }, - { - "type": "ObjectProperty", - "start": 2544, - "end": 2565, - "loc": { - "start": { - "line": 80, - "column": 8 - }, - "end": { - "line": 80, - "column": 29 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2544, - "end": 2548, - "loc": { - "start": { - "line": 80, - "column": 8 - }, - "end": { - "line": 80, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 2550, - "end": 2565, - "loc": { - "start": { - "line": 80, - "column": 14 - }, - "end": { - "line": 80, - "column": 29 - } - }, - "extra": { - "rawValue": "/oauth2/token", - "raw": "'/oauth2/token'" - }, - "value": "/oauth2/token" - } - }, - { - "type": "ObjectProperty", - "start": 2575, - "end": 2644, - "loc": { - "start": { - "line": 81, - "column": 8 - }, - "end": { - "line": 84, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2575, - "end": 2588, - "loc": { - "start": { - "line": 81, - "column": 8 - }, - "end": { - "line": 81, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 2590, - "end": 2644, - "loc": { - "start": { - "line": 81, - "column": 23 - }, - "end": { - "line": 84, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2602, - "end": 2616, - "loc": { - "start": { - "line": 82, - "column": 10 - }, - "end": { - "line": 82, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2602, - "end": 2606, - "loc": { - "start": { - "line": 82, - "column": 10 - }, - "end": { - "line": 82, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 2608, - "end": 2616, - "loc": { - "start": { - "line": 82, - "column": 16 - }, - "end": { - "line": 82, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 2628, - "end": 2633, - "loc": { - "start": { - "line": 83, - "column": 10 - }, - "end": { - "line": 83, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2628, - "end": 2633, - "loc": { - "start": { - "line": 83, - "column": 10 - }, - "end": { - "line": 83, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 2628, - "end": 2633, - "loc": { - "start": { - "line": 83, - "column": 10 - }, - "end": { - "line": 83, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 2656, - "end": 2681, - "loc": { - "start": { - "line": 85, - "column": 10 - }, - "end": { - "line": 85, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 2656, - "end": 2671, - "loc": { - "start": { - "line": 85, - "column": 10 - }, - "end": { - "line": 85, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2672, - "end": 2680, - "loc": { - "start": { - "line": 85, - "column": 26 - }, - "end": { - "line": 85, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 2690, - "end": 2692, - "loc": { - "start": { - "line": 86, - "column": 7 - }, - "end": { - "line": 86, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2693, - "end": 2700, - "loc": { - "start": { - "line": 86, - "column": 10 - }, - "end": { - "line": 86, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 2702, - "end": 2724, - "loc": { - "start": { - "line": 86, - "column": 19 - }, - "end": { - "line": 86, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 2702, - "end": 2714, - "loc": { - "start": { - "line": 86, - "column": 19 - }, - "end": { - "line": 86, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2715, - "end": 2723, - "loc": { - "start": { - "line": 86, - "column": 32 - }, - "end": { - "line": 86, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 2733, - "end": 2736, - "loc": { - "start": { - "line": 87, - "column": 7 - }, - "end": { - "line": 87, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Verify access token payload\n * @typedef {Object} AccessTokenVerifyParams\n * @property {string} token - your auth token\n ", - "start": 1697, - "end": 1834, - "loc": { - "start": { - "line": 56, - "column": 2 - }, - "end": { - "line": 60, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Verify access token response data\n * @typedef {Object} AccessTokenVerifyResponse\n * @property {number} expires_in - time in seconds for which the token was issued\n * @property {string} token_type - type of access token (e.g. 'bearer')\n * @property {string} access_token - access token\n * @property {string} scope - access scopes\n ", - "start": 1838, - "end": 2191, - "loc": { - "start": { - "line": 62, - "column": 2 - }, - "end": { - "line": 69, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Verifies access token\n * @param {AccessTokenVerifyParams} data - access token request payload\n * @param {function(err: ApiErrorResponse, res: AccessTokenVerifyResponse)} [callback] - error first node.js callback\n ", - "start": 2195, - "end": 2425, - "loc": { - "start": { - "line": 71, - "column": 2 - }, - "end": { - "line": 75, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Refresh access token payload\n * @typedef {Object} AccessTokenRefreshParams\n * @property {string} refresh_token - your refresh token\n * @property {string} [scope] - access scopes of access token\n * @property {number} [expiration_time] - time in seconds for which the token was issued\n ", - "start": 2747, - "end": 3052, - "loc": { - "start": { - "line": 90, - "column": 2 - }, - "end": { - "line": 96, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Refresh access token response data\n * @typedef {Object} AccessTokenRefreshResponse\n * @property {number} expires_in - time in seconds for which the token was issued\n * @property {string} token_type - type of access token (e.g. 'bearer')\n * @property {string} access_token - access token\n * @property {string} refresh_token - refresh token\n * @property {string} scope - access scopes\n ", - "start": 3056, - "end": 3465, - "loc": { - "start": { - "line": 98, - "column": 2 - }, - "end": { - "line": 106, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Refreshes access token for a user\n * @param {AccessTokenRefreshParams} data - refresh token request payload\n * @param {function(err: ApiErrorResponse, res: AccessTokenRefreshResponse)} [callback] - error first node.js callback\n ", - "start": 3469, - "end": 3714, - "loc": { - "start": { - "line": 108, - "column": 2 - }, - "end": { - "line": 112, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 3717, - "end": 4361, - "loc": { - "start": { - "line": 113, - "column": 2 - }, - "end": { - "line": 130, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3724, - "end": 3736, - "loc": { - "start": { - "line": 113, - "column": 9 - }, - "end": { - "line": 113, - "column": 21 - }, - "identifierName": "refreshToken" - }, - "name": "refreshToken" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 3738, - "end": 3742, - "loc": { - "start": { - "line": 113, - "column": 23 - }, - "end": { - "line": 113, - "column": 27 - }, - "identifierName": "data" - }, - "name": "data" - }, - { - "type": "Identifier", - "start": 3744, - "end": 3752, - "loc": { - "start": { - "line": 113, - "column": 29 - }, - "end": { - "line": 113, - "column": 37 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 3754, - "end": 4361, - "loc": { - "start": { - "line": 113, - "column": 39 - }, - "end": { - "line": 130, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 3760, - "end": 3834, - "loc": { - "start": { - "line": 114, - "column": 4 - }, - "end": { - "line": 114, - "column": 78 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3766, - "end": 3833, - "loc": { - "start": { - "line": 114, - "column": 10 - }, - "end": { - "line": 114, - "column": 77 - } - }, - "id": { - "type": "Identifier", - "start": 3766, - "end": 3774, - "loc": { - "start": { - "line": 114, - "column": 10 - }, - "end": { - "line": 114, - "column": 18 - }, - "identifierName": "dataCopy" - }, - "name": "dataCopy" - }, - "init": { - "type": "CallExpression", - "start": 3777, - "end": 3833, - "loc": { - "start": { - "line": 114, - "column": 21 - }, - "end": { - "line": 114, - "column": 77 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3777, - "end": 3790, - "loc": { - "start": { - "line": 114, - "column": 21 - }, - "end": { - "line": 114, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 3777, - "end": 3783, - "loc": { - "start": { - "line": 114, - "column": 21 - }, - "end": { - "line": 114, - "column": 27 - }, - "identifierName": "Object" - }, - "name": "Object" - }, - "property": { - "type": "Identifier", - "start": 3784, - "end": 3790, - "loc": { - "start": { - "line": 114, - "column": 28 - }, - "end": { - "line": 114, - "column": 34 - }, - "identifierName": "assign" - }, - "name": "assign" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 3791, - "end": 3793, - "loc": { - "start": { - "line": 114, - "column": 35 - }, - "end": { - "line": 114, - "column": 37 - } - }, - "properties": [] - }, - { - "type": "Identifier", - "start": 3795, - "end": 3799, - "loc": { - "start": { - "line": 114, - "column": 39 - }, - "end": { - "line": 114, - "column": 43 - }, - "identifierName": "data" - }, - "name": "data" - }, - { - "type": "ObjectExpression", - "start": 3801, - "end": 3832, - "loc": { - "start": { - "line": 114, - "column": 45 - }, - "end": { - "line": 114, - "column": 76 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3803, - "end": 3830, - "loc": { - "start": { - "line": 114, - "column": 47 - }, - "end": { - "line": 114, - "column": 74 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3803, - "end": 3813, - "loc": { - "start": { - "line": 114, - "column": 47 - }, - "end": { - "line": 114, - "column": 57 - }, - "identifierName": "grant_type" - }, - "name": "grant_type" - }, - "value": { - "type": "StringLiteral", - "start": 3815, - "end": 3830, - "loc": { - "start": { - "line": 114, - "column": 59 - }, - "end": { - "line": 114, - "column": 74 - } - }, - "extra": { - "rawValue": "refresh_token", - "raw": "'refresh_token'" - }, - "value": "refresh_token" - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 3839, - "end": 3915, - "loc": { - "start": { - "line": 115, - "column": 4 - }, - "end": { - "line": 115, - "column": 80 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3845, - "end": 3914, - "loc": { - "start": { - "line": 115, - "column": 10 - }, - "end": { - "line": 115, - "column": 79 - } - }, - "id": { - "type": "Identifier", - "start": 3845, - "end": 3860, - "loc": { - "start": { - "line": 115, - "column": 10 - }, - "end": { - "line": 115, - "column": 25 - }, - "identifierName": "dataStringified" - }, - "name": "dataStringified" - }, - "init": { - "type": "CallExpression", - "start": 3863, - "end": 3914, - "loc": { - "start": { - "line": 115, - "column": 28 - }, - "end": { - "line": 115, - "column": 79 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3863, - "end": 3902, - "loc": { - "start": { - "line": 115, - "column": 28 - }, - "end": { - "line": 115, - "column": 67 - } - }, - "object": { - "type": "CallExpression", - "start": 3863, - "end": 3894, - "loc": { - "start": { - "line": 115, - "column": 28 - }, - "end": { - "line": 115, - "column": 59 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3863, - "end": 3884, - "loc": { - "start": { - "line": 115, - "column": 28 - }, - "end": { - "line": 115, - "column": 49 - } - }, - "object": { - "type": "Identifier", - "start": 3863, - "end": 3874, - "loc": { - "start": { - "line": 115, - "column": 28 - }, - "end": { - "line": 115, - "column": 39 - }, - "identifierName": "querystring" - }, - "name": "querystring" - }, - "property": { - "type": "Identifier", - "start": 3875, - "end": 3884, - "loc": { - "start": { - "line": 115, - "column": 40 - }, - "end": { - "line": 115, - "column": 49 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 3885, - "end": 3893, - "loc": { - "start": { - "line": 115, - "column": 50 - }, - "end": { - "line": 115, - "column": 58 - }, - "identifierName": "dataCopy" - }, - "name": "dataCopy" - } - ] - }, - "property": { - "type": "Identifier", - "start": 3895, - "end": 3902, - "loc": { - "start": { - "line": 115, - "column": 60 - }, - "end": { - "line": 115, - "column": 67 - }, - "identifierName": "replace" - }, - "name": "replace" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 3903, - "end": 3908, - "loc": { - "start": { - "line": 115, - "column": 68 - }, - "end": { - "line": 115, - "column": 73 - } - }, - "extra": { - "rawValue": "%40", - "raw": "'%40'" - }, - "value": "%40" - }, - { - "type": "StringLiteral", - "start": 3910, - "end": 3913, - "loc": { - "start": { - "line": 115, - "column": 75 - }, - "end": { - "line": 115, - "column": 78 - } - }, - "extra": { - "rawValue": "@", - "raw": "'@'" - }, - "value": "@" - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 3920, - "end": 4309, - "loc": { - "start": { - "line": 116, - "column": 4 - }, - "end": { - "line": 126, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3926, - "end": 4308, - "loc": { - "start": { - "line": 116, - "column": 10 - }, - "end": { - "line": 126, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 3926, - "end": 3929, - "loc": { - "start": { - "line": 116, - "column": 10 - }, - "end": { - "line": 116, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 3932, - "end": 4308, - "loc": { - "start": { - "line": 116, - "column": 16 - }, - "end": { - "line": 126, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3932, - "end": 4275, - "loc": { - "start": { - "line": 116, - "column": 16 - }, - "end": { - "line": 126, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 3932, - "end": 4265, - "loc": { - "start": { - "line": 116, - "column": 16 - }, - "end": { - "line": 125, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3932, - "end": 3952, - "loc": { - "start": { - "line": 116, - "column": 16 - }, - "end": { - "line": 117, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 3932, - "end": 3937, - "loc": { - "start": { - "line": 116, - "column": 16 - }, - "end": { - "line": 116, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 3945, - "end": 3952, - "loc": { - "start": { - "line": 117, - "column": 7 - }, - "end": { - "line": 117, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 3953, - "end": 4237, - "loc": { - "start": { - "line": 117, - "column": 15 - }, - "end": { - "line": 125, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 3953, - "end": 3972, - "loc": { - "start": { - "line": 117, - "column": 15 - }, - "end": { - "line": 117, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 3973, - "end": 4236, - "loc": { - "start": { - "line": 117, - "column": 35 - }, - "end": { - "line": 125, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3983, - "end": 3997, - "loc": { - "start": { - "line": 118, - "column": 8 - }, - "end": { - "line": 118, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3983, - "end": 3989, - "loc": { - "start": { - "line": 118, - "column": 8 - }, - "end": { - "line": 118, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 3991, - "end": 3997, - "loc": { - "start": { - "line": 118, - "column": 16 - }, - "end": { - "line": 118, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 4007, - "end": 4028, - "loc": { - "start": { - "line": 119, - "column": 8 - }, - "end": { - "line": 119, - "column": 29 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4007, - "end": 4011, - "loc": { - "start": { - "line": 119, - "column": 8 - }, - "end": { - "line": 119, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 4013, - "end": 4028, - "loc": { - "start": { - "line": 119, - "column": 14 - }, - "end": { - "line": 119, - "column": 29 - } - }, - "extra": { - "rawValue": "/oauth2/token", - "raw": "'/oauth2/token'" - }, - "value": "/oauth2/token" - } - }, - { - "type": "ObjectProperty", - "start": 4038, - "end": 4070, - "loc": { - "start": { - "line": 120, - "column": 8 - }, - "end": { - "line": 120, - "column": 40 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4038, - "end": 4051, - "loc": { - "start": { - "line": 120, - "column": 8 - }, - "end": { - "line": 120, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 4053, - "end": 4070, - "loc": { - "start": { - "line": 120, - "column": 23 - }, - "end": { - "line": 120, - "column": 40 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4055, - "end": 4068, - "loc": { - "start": { - "line": 120, - "column": 25 - }, - "end": { - "line": 120, - "column": 38 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4055, - "end": 4059, - "loc": { - "start": { - "line": 120, - "column": 25 - }, - "end": { - "line": 120, - "column": 29 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 4061, - "end": 4068, - "loc": { - "start": { - "line": 120, - "column": 31 - }, - "end": { - "line": 120, - "column": 38 - } - }, - "extra": { - "rawValue": "Basic", - "raw": "'Basic'" - }, - "value": "Basic" - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 4080, - "end": 4227, - "loc": { - "start": { - "line": 121, - "column": 8 - }, - "end": { - "line": 124, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4080, - "end": 4087, - "loc": { - "start": { - "line": 121, - "column": 8 - }, - "end": { - "line": 121, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 4089, - "end": 4227, - "loc": { - "start": { - "line": 121, - "column": 17 - }, - "end": { - "line": 124, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4101, - "end": 4152, - "loc": { - "start": { - "line": 122, - "column": 10 - }, - "end": { - "line": 122, - "column": 61 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 4101, - "end": 4115, - "loc": { - "start": { - "line": 122, - "column": 10 - }, - "end": { - "line": 122, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 4117, - "end": 4152, - "loc": { - "start": { - "line": 122, - "column": 26 - }, - "end": { - "line": 122, - "column": 61 - } - }, - "extra": { - "rawValue": "application/x-www-form-urlencoded", - "raw": "'application/x-www-form-urlencoded'" - }, - "value": "application/x-www-form-urlencoded" - } - }, - { - "type": "ObjectProperty", - "start": 4164, - "end": 4216, - "loc": { - "start": { - "line": 123, - "column": 10 - }, - "end": { - "line": 123, - "column": 62 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 4164, - "end": 4180, - "loc": { - "start": { - "line": 123, - "column": 10 - }, - "end": { - "line": 123, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 4182, - "end": 4216, - "loc": { - "start": { - "line": 123, - "column": 28 - }, - "end": { - "line": 123, - "column": 62 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4182, - "end": 4199, - "loc": { - "start": { - "line": 123, - "column": 28 - }, - "end": { - "line": 123, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 4182, - "end": 4188, - "loc": { - "start": { - "line": 123, - "column": 28 - }, - "end": { - "line": 123, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 4189, - "end": 4199, - "loc": { - "start": { - "line": 123, - "column": 35 - }, - "end": { - "line": 123, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 4200, - "end": 4215, - "loc": { - "start": { - "line": 123, - "column": 46 - }, - "end": { - "line": 123, - "column": 61 - }, - "identifierName": "dataStringified" - }, - "name": "dataStringified" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 4239, - "end": 4264, - "loc": { - "start": { - "line": 125, - "column": 10 - }, - "end": { - "line": 125, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 4239, - "end": 4254, - "loc": { - "start": { - "line": 125, - "column": 10 - }, - "end": { - "line": 125, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 4255, - "end": 4263, - "loc": { - "start": { - "line": 125, - "column": 26 - }, - "end": { - "line": 125, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 4273, - "end": 4275, - "loc": { - "start": { - "line": 126, - "column": 7 - }, - "end": { - "line": 126, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 4276, - "end": 4283, - "loc": { - "start": { - "line": 126, - "column": 10 - }, - "end": { - "line": 126, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 4285, - "end": 4307, - "loc": { - "start": { - "line": 126, - "column": 19 - }, - "end": { - "line": 126, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 4285, - "end": 4297, - "loc": { - "start": { - "line": 126, - "column": 19 - }, - "end": { - "line": 126, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 4298, - "end": 4306, - "loc": { - "start": { - "line": 126, - "column": 32 - }, - "end": { - "line": 126, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 4315, - "end": 4342, - "loc": { - "start": { - "line": 128, - "column": 4 - }, - "end": { - "line": 128, - "column": 31 - } - }, - "expression": { - "type": "CallExpression", - "start": 4315, - "end": 4341, - "loc": { - "start": { - "line": 128, - "column": 4 - }, - "end": { - "line": 128, - "column": 30 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4315, - "end": 4324, - "loc": { - "start": { - "line": 128, - "column": 4 - }, - "end": { - "line": 128, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 4315, - "end": 4318, - "loc": { - "start": { - "line": 128, - "column": 4 - }, - "end": { - "line": 128, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 4319, - "end": 4324, - "loc": { - "start": { - "line": 128, - "column": 8 - }, - "end": { - "line": 128, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 4325, - "end": 4340, - "loc": { - "start": { - "line": 128, - "column": 14 - }, - "end": { - "line": 128, - "column": 29 - }, - "identifierName": "dataStringified" - }, - "name": "dataStringified" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 4347, - "end": 4357, - "loc": { - "start": { - "line": 129, - "column": 4 - }, - "end": { - "line": 129, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 4347, - "end": 4356, - "loc": { - "start": { - "line": 129, - "column": 4 - }, - "end": { - "line": 129, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4347, - "end": 4354, - "loc": { - "start": { - "line": 129, - "column": 4 - }, - "end": { - "line": 129, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 4347, - "end": 4350, - "loc": { - "start": { - "line": 129, - "column": 4 - }, - "end": { - "line": 129, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 4351, - "end": 4354, - "loc": { - "start": { - "line": 129, - "column": 8 - }, - "end": { - "line": 129, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Refresh access token payload\n * @typedef {Object} AccessTokenRefreshParams\n * @property {string} refresh_token - your refresh token\n * @property {string} [scope] - access scopes of access token\n * @property {number} [expiration_time] - time in seconds for which the token was issued\n ", - "start": 2747, - "end": 3052, - "loc": { - "start": { - "line": 90, - "column": 2 - }, - "end": { - "line": 96, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Refresh access token response data\n * @typedef {Object} AccessTokenRefreshResponse\n * @property {number} expires_in - time in seconds for which the token was issued\n * @property {string} token_type - type of access token (e.g. 'bearer')\n * @property {string} access_token - access token\n * @property {string} refresh_token - refresh token\n * @property {string} scope - access scopes\n ", - "start": 3056, - "end": 3465, - "loc": { - "start": { - "line": 98, - "column": 2 - }, - "end": { - "line": 106, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Refreshes access token for a user\n * @param {AccessTokenRefreshParams} data - refresh token request payload\n * @param {function(err: ApiErrorResponse, res: AccessTokenRefreshResponse)} [callback] - error first node.js callback\n ", - "start": 3469, - "end": 3714, - "loc": { - "start": { - "line": 108, - "column": 2 - }, - "end": { - "line": 112, - "column": 5 - } - } - } - ] - } - ] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * OAuth2 methods\n ", - "start": 168, - "end": 193, - "loc": { - "start": { - "line": 10, - "column": 0 - }, - "end": { - "line": 12, - "column": 3 - } - } - } - ], - "__PseudoExport__": false, - "trailingComments": [] - }, - "leadingComments": null - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "value": "use strict", - "extra": { - "raw": "'use strict'", - "rawValue": "use strict" - } - } - } - ] - }, - "comments": [ - { - "type": "CommentBlock", - "value": "*\n * OAuth2 methods\n ", - "start": 168, - "end": 193, - "loc": { - "start": { - "line": 10, - "column": 0 - }, - "end": { - "line": 12, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Request access token payload\n * @typedef {Object} AccessTokenGetParams\n * @property {string} username - email of a user\n * @property {string} password - password of a user\n ", - "start": 212, - "end": 404, - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 20, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Request access token response data\n * @typedef {Object} AccessTokenGetResponse\n * @property {number} expires_in - time in seconds for which the token was issued\n * @property {string} token_type - type of access token (e.g. 'bearer')\n * @property {string} access_token - access token\n * @property {string} refresh_token - refresh token\n * @property {string} scope - access scopes\n ", - "start": 408, - "end": 813, - "loc": { - "start": { - "line": 22, - "column": 2 - }, - "end": { - "line": 30, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Requests access token for a user\n * @param {AccessTokenGetParams} data - access token reques payload\n * @param {function(err: ApiErrorResponse, res: AccessTokenGetResponse)} [callback] - error first node.js callback\n ", - "start": 817, - "end": 1051, - "loc": { - "start": { - "line": 32, - "column": 2 - }, - "end": { - "line": 36, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Verify access token payload\n * @typedef {Object} AccessTokenVerifyParams\n * @property {string} token - your auth token\n ", - "start": 1697, - "end": 1834, - "loc": { - "start": { - "line": 56, - "column": 2 - }, - "end": { - "line": 60, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Verify access token response data\n * @typedef {Object} AccessTokenVerifyResponse\n * @property {number} expires_in - time in seconds for which the token was issued\n * @property {string} token_type - type of access token (e.g. 'bearer')\n * @property {string} access_token - access token\n * @property {string} scope - access scopes\n ", - "start": 1838, - "end": 2191, - "loc": { - "start": { - "line": 62, - "column": 2 - }, - "end": { - "line": 69, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Verifies access token\n * @param {AccessTokenVerifyParams} data - access token request payload\n * @param {function(err: ApiErrorResponse, res: AccessTokenVerifyResponse)} [callback] - error first node.js callback\n ", - "start": 2195, - "end": 2425, - "loc": { - "start": { - "line": 71, - "column": 2 - }, - "end": { - "line": 75, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Refresh access token payload\n * @typedef {Object} AccessTokenRefreshParams\n * @property {string} refresh_token - your refresh token\n * @property {string} [scope] - access scopes of access token\n * @property {number} [expiration_time] - time in seconds for which the token was issued\n ", - "start": 2747, - "end": 3052, - "loc": { - "start": { - "line": 90, - "column": 2 - }, - "end": { - "line": 96, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Refresh access token response data\n * @typedef {Object} AccessTokenRefreshResponse\n * @property {number} expires_in - time in seconds for which the token was issued\n * @property {string} token_type - type of access token (e.g. 'bearer')\n * @property {string} access_token - access token\n * @property {string} refresh_token - refresh token\n * @property {string} scope - access scopes\n ", - "start": 3056, - "end": 3465, - "loc": { - "start": { - "line": 98, - "column": 2 - }, - "end": { - "line": 106, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Refreshes access token for a user\n * @param {AccessTokenRefreshParams} data - refresh token request payload\n * @param {function(err: ApiErrorResponse, res: AccessTokenRefreshResponse)} [callback] - error first node.js callback\n ", - "start": 3469, - "end": 3714, - "loc": { - "start": { - "line": 108, - "column": 2 - }, - "end": { - "line": 112, - "column": 5 - } - } - } - ], - "tokens": [ - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "use strict", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 12 - }, - "end": { - "line": 1, - "column": 13 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 14, - "end": 20, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 27, - "end": 31, - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 17 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "https", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 18 - }, - "end": { - "line": 2, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39, - "end": 40, - "loc": { - "start": { - "line": 2, - "column": 25 - }, - "end": { - "line": 2, - "column": 26 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 41, - "end": 47, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "querystring", - "start": 48, - "end": 59, - "loc": { - "start": { - "line": 3, - "column": 7 - }, - "end": { - "line": 3, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 60, - "end": 64, - "loc": { - "start": { - "line": 3, - "column": 19 - }, - "end": { - "line": 3, - "column": 23 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "querystring", - "start": 65, - "end": 78, - "loc": { - "start": { - "line": 3, - "column": 24 - }, - "end": { - "line": 3, - "column": 37 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 78, - "end": 79, - "loc": { - "start": { - "line": 3, - "column": 37 - }, - "end": { - "line": 3, - "column": 38 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 80, - "end": 86, - "loc": { - "start": { - "line": 4, - "column": 0 - }, - "end": { - "line": 4, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 87, - "end": 88, - "loc": { - "start": { - "line": 4, - "column": 7 - }, - "end": { - "line": 4, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 91, - "end": 106, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 106, - "end": 107, - "loc": { - "start": { - "line": 5, - "column": 17 - }, - "end": { - "line": 5, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 110, - "end": 122, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 14 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 122, - "end": 123, - "loc": { - "start": { - "line": 6, - "column": 14 - }, - "end": { - "line": 6, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 126, - "end": 145, - "loc": { - "start": { - "line": 7, - "column": 2 - }, - "end": { - "line": 7, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 145, - "end": 146, - "loc": { - "start": { - "line": 7, - "column": 21 - }, - "end": { - "line": 7, - "column": 22 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 147, - "end": 148, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 8, - "column": 1 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 149, - "end": 153, - "loc": { - "start": { - "line": 8, - "column": 2 - }, - "end": { - "line": 8, - "column": 6 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "../common", - "start": 154, - "end": 165, - "loc": { - "start": { - "line": 8, - "column": 7 - }, - "end": { - "line": 8, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 165, - "end": 166, - "loc": { - "start": { - "line": 8, - "column": 18 - }, - "end": { - "line": 8, - "column": 19 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * OAuth2 methods\n ", - "start": 168, - "end": 193, - "loc": { - "start": { - "line": 10, - "column": 0 - }, - "end": { - "line": 12, - "column": 3 - } - } - }, - { - "type": { - "label": "class", - "keyword": "class", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "class", - "start": 194, - "end": 199, - "loc": { - "start": { - "line": 13, - "column": 0 - }, - "end": { - "line": 13, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "OAuth2", - "start": 200, - "end": 206, - "loc": { - "start": { - "line": 13, - "column": 6 - }, - "end": { - "line": 13, - "column": 12 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 207, - "end": 208, - "loc": { - "start": { - "line": 13, - "column": 13 - }, - "end": { - "line": 13, - "column": 14 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Request access token payload\n * @typedef {Object} AccessTokenGetParams\n * @property {string} username - email of a user\n * @property {string} password - password of a user\n ", - "start": 212, - "end": 404, - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 20, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Request access token response data\n * @typedef {Object} AccessTokenGetResponse\n * @property {number} expires_in - time in seconds for which the token was issued\n * @property {string} token_type - type of access token (e.g. 'bearer')\n * @property {string} access_token - access token\n * @property {string} refresh_token - refresh token\n * @property {string} scope - access scopes\n ", - "start": 408, - "end": 813, - "loc": { - "start": { - "line": 22, - "column": 2 - }, - "end": { - "line": 30, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Requests access token for a user\n * @param {AccessTokenGetParams} data - access token reques payload\n * @param {function(err: ApiErrorResponse, res: AccessTokenGetResponse)} [callback] - error first node.js callback\n ", - "start": 817, - "end": 1051, - "loc": { - "start": { - "line": 32, - "column": 2 - }, - "end": { - "line": 36, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 1054, - "end": 1060, - "loc": { - "start": { - "line": 37, - "column": 2 - }, - "end": { - "line": 37, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "requestToken", - "start": 1061, - "end": 1073, - "loc": { - "start": { - "line": 37, - "column": 9 - }, - "end": { - "line": 37, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1074, - "end": 1075, - "loc": { - "start": { - "line": 37, - "column": 22 - }, - "end": { - "line": 37, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 1075, - "end": 1079, - "loc": { - "start": { - "line": 37, - "column": 23 - }, - "end": { - "line": 37, - "column": 27 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1079, - "end": 1080, - "loc": { - "start": { - "line": 37, - "column": 27 - }, - "end": { - "line": 37, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 1081, - "end": 1089, - "loc": { - "start": { - "line": 37, - "column": 29 - }, - "end": { - "line": 37, - "column": 37 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1089, - "end": 1090, - "loc": { - "start": { - "line": 37, - "column": 37 - }, - "end": { - "line": 37, - "column": 38 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1091, - "end": 1092, - "loc": { - "start": { - "line": 37, - "column": 39 - }, - "end": { - "line": 37, - "column": 40 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1097, - "end": 1102, - "loc": { - "start": { - "line": 38, - "column": 4 - }, - "end": { - "line": 38, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "dataCopy", - "start": 1103, - "end": 1111, - "loc": { - "start": { - "line": 38, - "column": 10 - }, - "end": { - "line": 38, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1112, - "end": 1113, - "loc": { - "start": { - "line": 38, - "column": 19 - }, - "end": { - "line": 38, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Object", - "start": 1114, - "end": 1120, - "loc": { - "start": { - "line": 38, - "column": 21 - }, - "end": { - "line": 38, - "column": 27 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1120, - "end": 1121, - "loc": { - "start": { - "line": 38, - "column": 27 - }, - "end": { - "line": 38, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "assign", - "start": 1121, - "end": 1127, - "loc": { - "start": { - "line": 38, - "column": 28 - }, - "end": { - "line": 38, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1127, - "end": 1128, - "loc": { - "start": { - "line": 38, - "column": 34 - }, - "end": { - "line": 38, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1128, - "end": 1129, - "loc": { - "start": { - "line": 38, - "column": 35 - }, - "end": { - "line": 38, - "column": 36 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1129, - "end": 1130, - "loc": { - "start": { - "line": 38, - "column": 36 - }, - "end": { - "line": 38, - "column": 37 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1130, - "end": 1131, - "loc": { - "start": { - "line": 38, - "column": 37 - }, - "end": { - "line": 38, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 1132, - "end": 1136, - "loc": { - "start": { - "line": 38, - "column": 39 - }, - "end": { - "line": 38, - "column": 43 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1136, - "end": 1137, - "loc": { - "start": { - "line": 38, - "column": 43 - }, - "end": { - "line": 38, - "column": 44 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1138, - "end": 1139, - "loc": { - "start": { - "line": 38, - "column": 45 - }, - "end": { - "line": 38, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "grant_type", - "start": 1140, - "end": 1150, - "loc": { - "start": { - "line": 38, - "column": 47 - }, - "end": { - "line": 38, - "column": 57 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1150, - "end": 1151, - "loc": { - "start": { - "line": 38, - "column": 57 - }, - "end": { - "line": 38, - "column": 58 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "password", - "start": 1152, - "end": 1162, - "loc": { - "start": { - "line": 38, - "column": 59 - }, - "end": { - "line": 38, - "column": 69 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1163, - "end": 1164, - "loc": { - "start": { - "line": 38, - "column": 70 - }, - "end": { - "line": 38, - "column": 71 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1164, - "end": 1165, - "loc": { - "start": { - "line": 38, - "column": 71 - }, - "end": { - "line": 38, - "column": 72 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1165, - "end": 1166, - "loc": { - "start": { - "line": 38, - "column": 72 - }, - "end": { - "line": 38, - "column": 73 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1171, - "end": 1176, - "loc": { - "start": { - "line": 39, - "column": 4 - }, - "end": { - "line": 39, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "dataStringified", - "start": 1177, - "end": 1192, - "loc": { - "start": { - "line": 39, - "column": 10 - }, - "end": { - "line": 39, - "column": 25 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1193, - "end": 1194, - "loc": { - "start": { - "line": 39, - "column": 26 - }, - "end": { - "line": 39, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "querystring", - "start": 1195, - "end": 1206, - "loc": { - "start": { - "line": 39, - "column": 28 - }, - "end": { - "line": 39, - "column": 39 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1206, - "end": 1207, - "loc": { - "start": { - "line": 39, - "column": 39 - }, - "end": { - "line": 39, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "stringify", - "start": 1207, - "end": 1216, - "loc": { - "start": { - "line": 39, - "column": 40 - }, - "end": { - "line": 39, - "column": 49 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1216, - "end": 1217, - "loc": { - "start": { - "line": 39, - "column": 49 - }, - "end": { - "line": 39, - "column": 50 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "dataCopy", - "start": 1217, - "end": 1225, - "loc": { - "start": { - "line": 39, - "column": 50 - }, - "end": { - "line": 39, - "column": 58 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1225, - "end": 1226, - "loc": { - "start": { - "line": 39, - "column": 58 - }, - "end": { - "line": 39, - "column": 59 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1226, - "end": 1227, - "loc": { - "start": { - "line": 39, - "column": 59 - }, - "end": { - "line": 39, - "column": 60 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "replace", - "start": 1227, - "end": 1234, - "loc": { - "start": { - "line": 39, - "column": 60 - }, - "end": { - "line": 39, - "column": 67 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1234, - "end": 1235, - "loc": { - "start": { - "line": 39, - "column": 67 - }, - "end": { - "line": 39, - "column": 68 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "%40", - "start": 1235, - "end": 1240, - "loc": { - "start": { - "line": 39, - "column": 68 - }, - "end": { - "line": 39, - "column": 73 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1240, - "end": 1241, - "loc": { - "start": { - "line": 39, - "column": 73 - }, - "end": { - "line": 39, - "column": 74 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "@", - "start": 1242, - "end": 1245, - "loc": { - "start": { - "line": 39, - "column": 75 - }, - "end": { - "line": 39, - "column": 78 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1245, - "end": 1246, - "loc": { - "start": { - "line": 39, - "column": 78 - }, - "end": { - "line": 39, - "column": 79 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1246, - "end": 1247, - "loc": { - "start": { - "line": 39, - "column": 79 - }, - "end": { - "line": 39, - "column": 80 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1252, - "end": 1257, - "loc": { - "start": { - "line": 40, - "column": 4 - }, - "end": { - "line": 40, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 1258, - "end": 1261, - "loc": { - "start": { - "line": 40, - "column": 10 - }, - "end": { - "line": 40, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1262, - "end": 1263, - "loc": { - "start": { - "line": 40, - "column": 14 - }, - "end": { - "line": 40, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 1264, - "end": 1269, - "loc": { - "start": { - "line": 40, - "column": 16 - }, - "end": { - "line": 40, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1276, - "end": 1277, - "loc": { - "start": { - "line": 41, - "column": 6 - }, - "end": { - "line": 41, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 1277, - "end": 1284, - "loc": { - "start": { - "line": 41, - "column": 7 - }, - "end": { - "line": 41, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1284, - "end": 1285, - "loc": { - "start": { - "line": 41, - "column": 14 - }, - "end": { - "line": 41, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 1285, - "end": 1304, - "loc": { - "start": { - "line": 41, - "column": 15 - }, - "end": { - "line": 41, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1304, - "end": 1305, - "loc": { - "start": { - "line": 41, - "column": 34 - }, - "end": { - "line": 41, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1305, - "end": 1306, - "loc": { - "start": { - "line": 41, - "column": 35 - }, - "end": { - "line": 41, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 1315, - "end": 1321, - "loc": { - "start": { - "line": 42, - "column": 8 - }, - "end": { - "line": 42, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1321, - "end": 1322, - "loc": { - "start": { - "line": 42, - "column": 14 - }, - "end": { - "line": 42, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "POST", - "start": 1323, - "end": 1329, - "loc": { - "start": { - "line": 42, - "column": 16 - }, - "end": { - "line": 42, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1329, - "end": 1330, - "loc": { - "start": { - "line": 42, - "column": 22 - }, - "end": { - "line": 42, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 1339, - "end": 1343, - "loc": { - "start": { - "line": 43, - "column": 8 - }, - "end": { - "line": 43, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1343, - "end": 1344, - "loc": { - "start": { - "line": 43, - "column": 12 - }, - "end": { - "line": 43, - "column": 13 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/oauth2/token", - "start": 1345, - "end": 1360, - "loc": { - "start": { - "line": 43, - "column": 14 - }, - "end": { - "line": 43, - "column": 29 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1360, - "end": 1361, - "loc": { - "start": { - "line": 43, - "column": 29 - }, - "end": { - "line": 43, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 1370, - "end": 1383, - "loc": { - "start": { - "line": 44, - "column": 8 - }, - "end": { - "line": 44, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1383, - "end": 1384, - "loc": { - "start": { - "line": 44, - "column": 21 - }, - "end": { - "line": 44, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1385, - "end": 1386, - "loc": { - "start": { - "line": 44, - "column": 23 - }, - "end": { - "line": 44, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 1387, - "end": 1391, - "loc": { - "start": { - "line": 44, - "column": 25 - }, - "end": { - "line": 44, - "column": 29 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1391, - "end": 1392, - "loc": { - "start": { - "line": 44, - "column": 29 - }, - "end": { - "line": 44, - "column": 30 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Basic", - "start": 1393, - "end": 1400, - "loc": { - "start": { - "line": 44, - "column": 31 - }, - "end": { - "line": 44, - "column": 38 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1401, - "end": 1402, - "loc": { - "start": { - "line": 44, - "column": 39 - }, - "end": { - "line": 44, - "column": 40 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1402, - "end": 1403, - "loc": { - "start": { - "line": 44, - "column": 40 - }, - "end": { - "line": 44, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 1412, - "end": 1419, - "loc": { - "start": { - "line": 45, - "column": 8 - }, - "end": { - "line": 45, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1419, - "end": 1420, - "loc": { - "start": { - "line": 45, - "column": 15 - }, - "end": { - "line": 45, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1421, - "end": 1422, - "loc": { - "start": { - "line": 45, - "column": 17 - }, - "end": { - "line": 45, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type", - "start": 1433, - "end": 1447, - "loc": { - "start": { - "line": 46, - "column": 10 - }, - "end": { - "line": 46, - "column": 24 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1447, - "end": 1448, - "loc": { - "start": { - "line": 46, - "column": 24 - }, - "end": { - "line": 46, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/x-www-form-urlencoded", - "start": 1449, - "end": 1484, - "loc": { - "start": { - "line": 46, - "column": 26 - }, - "end": { - "line": 46, - "column": 61 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1484, - "end": 1485, - "loc": { - "start": { - "line": 46, - "column": 61 - }, - "end": { - "line": 46, - "column": 62 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Length", - "start": 1496, - "end": 1512, - "loc": { - "start": { - "line": 47, - "column": 10 - }, - "end": { - "line": 47, - "column": 26 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1512, - "end": 1513, - "loc": { - "start": { - "line": 47, - "column": 26 - }, - "end": { - "line": 47, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 1514, - "end": 1520, - "loc": { - "start": { - "line": 47, - "column": 28 - }, - "end": { - "line": 47, - "column": 34 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1520, - "end": 1521, - "loc": { - "start": { - "line": 47, - "column": 34 - }, - "end": { - "line": 47, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "byteLength", - "start": 1521, - "end": 1531, - "loc": { - "start": { - "line": 47, - "column": 35 - }, - "end": { - "line": 47, - "column": 45 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1531, - "end": 1532, - "loc": { - "start": { - "line": 47, - "column": 45 - }, - "end": { - "line": 47, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "dataStringified", - "start": 1532, - "end": 1547, - "loc": { - "start": { - "line": 47, - "column": 46 - }, - "end": { - "line": 47, - "column": 61 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1547, - "end": 1548, - "loc": { - "start": { - "line": 47, - "column": 61 - }, - "end": { - "line": 47, - "column": 62 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1548, - "end": 1549, - "loc": { - "start": { - "line": 47, - "column": 62 - }, - "end": { - "line": 47, - "column": 63 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1558, - "end": 1559, - "loc": { - "start": { - "line": 48, - "column": 8 - }, - "end": { - "line": 48, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1559, - "end": 1560, - "loc": { - "start": { - "line": 48, - "column": 9 - }, - "end": { - "line": 48, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1567, - "end": 1568, - "loc": { - "start": { - "line": 49, - "column": 6 - }, - "end": { - "line": 49, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1568, - "end": 1569, - "loc": { - "start": { - "line": 49, - "column": 7 - }, - "end": { - "line": 49, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1569, - "end": 1570, - "loc": { - "start": { - "line": 49, - "column": 8 - }, - "end": { - "line": 49, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 1571, - "end": 1586, - "loc": { - "start": { - "line": 49, - "column": 10 - }, - "end": { - "line": 49, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1586, - "end": 1587, - "loc": { - "start": { - "line": 49, - "column": 25 - }, - "end": { - "line": 49, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 1587, - "end": 1595, - "loc": { - "start": { - "line": 49, - "column": 26 - }, - "end": { - "line": 49, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1595, - "end": 1596, - "loc": { - "start": { - "line": 49, - "column": 34 - }, - "end": { - "line": 49, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1596, - "end": 1597, - "loc": { - "start": { - "line": 49, - "column": 35 - }, - "end": { - "line": 49, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1604, - "end": 1605, - "loc": { - "start": { - "line": 50, - "column": 6 - }, - "end": { - "line": 50, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 1605, - "end": 1607, - "loc": { - "start": { - "line": 50, - "column": 7 - }, - "end": { - "line": 50, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1607, - "end": 1608, - "loc": { - "start": { - "line": 50, - "column": 9 - }, - "end": { - "line": 50, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 1608, - "end": 1615, - "loc": { - "start": { - "line": 50, - "column": 10 - }, - "end": { - "line": 50, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1615, - "end": 1616, - "loc": { - "start": { - "line": 50, - "column": 17 - }, - "end": { - "line": 50, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 1617, - "end": 1629, - "loc": { - "start": { - "line": 50, - "column": 19 - }, - "end": { - "line": 50, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1629, - "end": 1630, - "loc": { - "start": { - "line": 50, - "column": 31 - }, - "end": { - "line": 50, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 1630, - "end": 1638, - "loc": { - "start": { - "line": 50, - "column": 32 - }, - "end": { - "line": 50, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1638, - "end": 1639, - "loc": { - "start": { - "line": 50, - "column": 40 - }, - "end": { - "line": 50, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1639, - "end": 1640, - "loc": { - "start": { - "line": 50, - "column": 41 - }, - "end": { - "line": 50, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1640, - "end": 1641, - "loc": { - "start": { - "line": 50, - "column": 42 - }, - "end": { - "line": 50, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 1647, - "end": 1650, - "loc": { - "start": { - "line": 52, - "column": 4 - }, - "end": { - "line": 52, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1650, - "end": 1651, - "loc": { - "start": { - "line": 52, - "column": 7 - }, - "end": { - "line": 52, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "write", - "start": 1651, - "end": 1656, - "loc": { - "start": { - "line": 52, - "column": 8 - }, - "end": { - "line": 52, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1656, - "end": 1657, - "loc": { - "start": { - "line": 52, - "column": 13 - }, - "end": { - "line": 52, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "dataStringified", - "start": 1657, - "end": 1672, - "loc": { - "start": { - "line": 52, - "column": 14 - }, - "end": { - "line": 52, - "column": 29 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1672, - "end": 1673, - "loc": { - "start": { - "line": 52, - "column": 29 - }, - "end": { - "line": 52, - "column": 30 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1673, - "end": 1674, - "loc": { - "start": { - "line": 52, - "column": 30 - }, - "end": { - "line": 52, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 1679, - "end": 1682, - "loc": { - "start": { - "line": 53, - "column": 4 - }, - "end": { - "line": 53, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1682, - "end": 1683, - "loc": { - "start": { - "line": 53, - "column": 7 - }, - "end": { - "line": 53, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 1683, - "end": 1686, - "loc": { - "start": { - "line": 53, - "column": 8 - }, - "end": { - "line": 53, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1686, - "end": 1687, - "loc": { - "start": { - "line": 53, - "column": 11 - }, - "end": { - "line": 53, - "column": 12 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1687, - "end": 1688, - "loc": { - "start": { - "line": 53, - "column": 12 - }, - "end": { - "line": 53, - "column": 13 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1688, - "end": 1689, - "loc": { - "start": { - "line": 53, - "column": 13 - }, - "end": { - "line": 53, - "column": 14 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1692, - "end": 1693, - "loc": { - "start": { - "line": 54, - "column": 2 - }, - "end": { - "line": 54, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Verify access token payload\n * @typedef {Object} AccessTokenVerifyParams\n * @property {string} token - your auth token\n ", - "start": 1697, - "end": 1834, - "loc": { - "start": { - "line": 56, - "column": 2 - }, - "end": { - "line": 60, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Verify access token response data\n * @typedef {Object} AccessTokenVerifyResponse\n * @property {number} expires_in - time in seconds for which the token was issued\n * @property {string} token_type - type of access token (e.g. 'bearer')\n * @property {string} access_token - access token\n * @property {string} scope - access scopes\n ", - "start": 1838, - "end": 2191, - "loc": { - "start": { - "line": 62, - "column": 2 - }, - "end": { - "line": 69, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Verifies access token\n * @param {AccessTokenVerifyParams} data - access token request payload\n * @param {function(err: ApiErrorResponse, res: AccessTokenVerifyResponse)} [callback] - error first node.js callback\n ", - "start": 2195, - "end": 2425, - "loc": { - "start": { - "line": 71, - "column": 2 - }, - "end": { - "line": 75, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 2428, - "end": 2434, - "loc": { - "start": { - "line": 76, - "column": 2 - }, - "end": { - "line": 76, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "verify", - "start": 2435, - "end": 2441, - "loc": { - "start": { - "line": 76, - "column": 9 - }, - "end": { - "line": 76, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2442, - "end": 2443, - "loc": { - "start": { - "line": 76, - "column": 16 - }, - "end": { - "line": 76, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2443, - "end": 2444, - "loc": { - "start": { - "line": 76, - "column": 17 - }, - "end": { - "line": 76, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 2445, - "end": 2450, - "loc": { - "start": { - "line": 76, - "column": 19 - }, - "end": { - "line": 76, - "column": 24 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2451, - "end": 2452, - "loc": { - "start": { - "line": 76, - "column": 25 - }, - "end": { - "line": 76, - "column": 26 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2452, - "end": 2453, - "loc": { - "start": { - "line": 76, - "column": 26 - }, - "end": { - "line": 76, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 2454, - "end": 2462, - "loc": { - "start": { - "line": 76, - "column": 28 - }, - "end": { - "line": 76, - "column": 36 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2462, - "end": 2463, - "loc": { - "start": { - "line": 76, - "column": 36 - }, - "end": { - "line": 76, - "column": 37 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2464, - "end": 2465, - "loc": { - "start": { - "line": 76, - "column": 38 - }, - "end": { - "line": 76, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 2470, - "end": 2475, - "loc": { - "start": { - "line": 77, - "column": 4 - }, - "end": { - "line": 77, - "column": 9 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2482, - "end": 2483, - "loc": { - "start": { - "line": 78, - "column": 6 - }, - "end": { - "line": 78, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 2483, - "end": 2490, - "loc": { - "start": { - "line": 78, - "column": 7 - }, - "end": { - "line": 78, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2490, - "end": 2491, - "loc": { - "start": { - "line": 78, - "column": 14 - }, - "end": { - "line": 78, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 2491, - "end": 2510, - "loc": { - "start": { - "line": 78, - "column": 15 - }, - "end": { - "line": 78, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2510, - "end": 2511, - "loc": { - "start": { - "line": 78, - "column": 34 - }, - "end": { - "line": 78, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2511, - "end": 2512, - "loc": { - "start": { - "line": 78, - "column": 35 - }, - "end": { - "line": 78, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 2521, - "end": 2527, - "loc": { - "start": { - "line": 79, - "column": 8 - }, - "end": { - "line": 79, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2527, - "end": 2528, - "loc": { - "start": { - "line": 79, - "column": 14 - }, - "end": { - "line": 79, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "GET", - "start": 2529, - "end": 2534, - "loc": { - "start": { - "line": 79, - "column": 16 - }, - "end": { - "line": 79, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2534, - "end": 2535, - "loc": { - "start": { - "line": 79, - "column": 21 - }, - "end": { - "line": 79, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 2544, - "end": 2548, - "loc": { - "start": { - "line": 80, - "column": 8 - }, - "end": { - "line": 80, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2548, - "end": 2549, - "loc": { - "start": { - "line": 80, - "column": 12 - }, - "end": { - "line": 80, - "column": 13 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/oauth2/token", - "start": 2550, - "end": 2565, - "loc": { - "start": { - "line": 80, - "column": 14 - }, - "end": { - "line": 80, - "column": 29 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2565, - "end": 2566, - "loc": { - "start": { - "line": 80, - "column": 29 - }, - "end": { - "line": 80, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 2575, - "end": 2588, - "loc": { - "start": { - "line": 81, - "column": 8 - }, - "end": { - "line": 81, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2588, - "end": 2589, - "loc": { - "start": { - "line": 81, - "column": 21 - }, - "end": { - "line": 81, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2590, - "end": 2591, - "loc": { - "start": { - "line": 81, - "column": 23 - }, - "end": { - "line": 81, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 2602, - "end": 2606, - "loc": { - "start": { - "line": 82, - "column": 10 - }, - "end": { - "line": 82, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2606, - "end": 2607, - "loc": { - "start": { - "line": 82, - "column": 14 - }, - "end": { - "line": 82, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 2608, - "end": 2616, - "loc": { - "start": { - "line": 82, - "column": 16 - }, - "end": { - "line": 82, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2616, - "end": 2617, - "loc": { - "start": { - "line": 82, - "column": 24 - }, - "end": { - "line": 82, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 2628, - "end": 2633, - "loc": { - "start": { - "line": 83, - "column": 10 - }, - "end": { - "line": 83, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2633, - "end": 2634, - "loc": { - "start": { - "line": 83, - "column": 15 - }, - "end": { - "line": 83, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2643, - "end": 2644, - "loc": { - "start": { - "line": 84, - "column": 8 - }, - "end": { - "line": 84, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2644, - "end": 2645, - "loc": { - "start": { - "line": 84, - "column": 9 - }, - "end": { - "line": 84, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2652, - "end": 2653, - "loc": { - "start": { - "line": 85, - "column": 6 - }, - "end": { - "line": 85, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2653, - "end": 2654, - "loc": { - "start": { - "line": 85, - "column": 7 - }, - "end": { - "line": 85, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2654, - "end": 2655, - "loc": { - "start": { - "line": 85, - "column": 8 - }, - "end": { - "line": 85, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 2656, - "end": 2671, - "loc": { - "start": { - "line": 85, - "column": 10 - }, - "end": { - "line": 85, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2671, - "end": 2672, - "loc": { - "start": { - "line": 85, - "column": 25 - }, - "end": { - "line": 85, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 2672, - "end": 2680, - "loc": { - "start": { - "line": 85, - "column": 26 - }, - "end": { - "line": 85, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2680, - "end": 2681, - "loc": { - "start": { - "line": 85, - "column": 34 - }, - "end": { - "line": 85, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2681, - "end": 2682, - "loc": { - "start": { - "line": 85, - "column": 35 - }, - "end": { - "line": 85, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2689, - "end": 2690, - "loc": { - "start": { - "line": 86, - "column": 6 - }, - "end": { - "line": 86, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 2690, - "end": 2692, - "loc": { - "start": { - "line": 86, - "column": 7 - }, - "end": { - "line": 86, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2692, - "end": 2693, - "loc": { - "start": { - "line": 86, - "column": 9 - }, - "end": { - "line": 86, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 2693, - "end": 2700, - "loc": { - "start": { - "line": 86, - "column": 10 - }, - "end": { - "line": 86, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2700, - "end": 2701, - "loc": { - "start": { - "line": 86, - "column": 17 - }, - "end": { - "line": 86, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 2702, - "end": 2714, - "loc": { - "start": { - "line": 86, - "column": 19 - }, - "end": { - "line": 86, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2714, - "end": 2715, - "loc": { - "start": { - "line": 86, - "column": 31 - }, - "end": { - "line": 86, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 2715, - "end": 2723, - "loc": { - "start": { - "line": 86, - "column": 32 - }, - "end": { - "line": 86, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2723, - "end": 2724, - "loc": { - "start": { - "line": 86, - "column": 40 - }, - "end": { - "line": 86, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2724, - "end": 2725, - "loc": { - "start": { - "line": 86, - "column": 41 - }, - "end": { - "line": 86, - "column": 42 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2732, - "end": 2733, - "loc": { - "start": { - "line": 87, - "column": 6 - }, - "end": { - "line": 87, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 2733, - "end": 2736, - "loc": { - "start": { - "line": 87, - "column": 7 - }, - "end": { - "line": 87, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2736, - "end": 2737, - "loc": { - "start": { - "line": 87, - "column": 10 - }, - "end": { - "line": 87, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2737, - "end": 2738, - "loc": { - "start": { - "line": 87, - "column": 11 - }, - "end": { - "line": 87, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2738, - "end": 2739, - "loc": { - "start": { - "line": 87, - "column": 12 - }, - "end": { - "line": 87, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2742, - "end": 2743, - "loc": { - "start": { - "line": 88, - "column": 2 - }, - "end": { - "line": 88, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Refresh access token payload\n * @typedef {Object} AccessTokenRefreshParams\n * @property {string} refresh_token - your refresh token\n * @property {string} [scope] - access scopes of access token\n * @property {number} [expiration_time] - time in seconds for which the token was issued\n ", - "start": 2747, - "end": 3052, - "loc": { - "start": { - "line": 90, - "column": 2 - }, - "end": { - "line": 96, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Refresh access token response data\n * @typedef {Object} AccessTokenRefreshResponse\n * @property {number} expires_in - time in seconds for which the token was issued\n * @property {string} token_type - type of access token (e.g. 'bearer')\n * @property {string} access_token - access token\n * @property {string} refresh_token - refresh token\n * @property {string} scope - access scopes\n ", - "start": 3056, - "end": 3465, - "loc": { - "start": { - "line": 98, - "column": 2 - }, - "end": { - "line": 106, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Refreshes access token for a user\n * @param {AccessTokenRefreshParams} data - refresh token request payload\n * @param {function(err: ApiErrorResponse, res: AccessTokenRefreshResponse)} [callback] - error first node.js callback\n ", - "start": 3469, - "end": 3714, - "loc": { - "start": { - "line": 108, - "column": 2 - }, - "end": { - "line": 112, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 3717, - "end": 3723, - "loc": { - "start": { - "line": 113, - "column": 2 - }, - "end": { - "line": 113, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "refreshToken", - "start": 3724, - "end": 3736, - "loc": { - "start": { - "line": 113, - "column": 9 - }, - "end": { - "line": 113, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3737, - "end": 3738, - "loc": { - "start": { - "line": 113, - "column": 22 - }, - "end": { - "line": 113, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 3738, - "end": 3742, - "loc": { - "start": { - "line": 113, - "column": 23 - }, - "end": { - "line": 113, - "column": 27 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3742, - "end": 3743, - "loc": { - "start": { - "line": 113, - "column": 27 - }, - "end": { - "line": 113, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 3744, - "end": 3752, - "loc": { - "start": { - "line": 113, - "column": 29 - }, - "end": { - "line": 113, - "column": 37 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3752, - "end": 3753, - "loc": { - "start": { - "line": 113, - "column": 37 - }, - "end": { - "line": 113, - "column": 38 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3754, - "end": 3755, - "loc": { - "start": { - "line": 113, - "column": 39 - }, - "end": { - "line": 113, - "column": 40 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 3760, - "end": 3765, - "loc": { - "start": { - "line": 114, - "column": 4 - }, - "end": { - "line": 114, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "dataCopy", - "start": 3766, - "end": 3774, - "loc": { - "start": { - "line": 114, - "column": 10 - }, - "end": { - "line": 114, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 3775, - "end": 3776, - "loc": { - "start": { - "line": 114, - "column": 19 - }, - "end": { - "line": 114, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Object", - "start": 3777, - "end": 3783, - "loc": { - "start": { - "line": 114, - "column": 21 - }, - "end": { - "line": 114, - "column": 27 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3783, - "end": 3784, - "loc": { - "start": { - "line": 114, - "column": 27 - }, - "end": { - "line": 114, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "assign", - "start": 3784, - "end": 3790, - "loc": { - "start": { - "line": 114, - "column": 28 - }, - "end": { - "line": 114, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3790, - "end": 3791, - "loc": { - "start": { - "line": 114, - "column": 34 - }, - "end": { - "line": 114, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3791, - "end": 3792, - "loc": { - "start": { - "line": 114, - "column": 35 - }, - "end": { - "line": 114, - "column": 36 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3792, - "end": 3793, - "loc": { - "start": { - "line": 114, - "column": 36 - }, - "end": { - "line": 114, - "column": 37 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3793, - "end": 3794, - "loc": { - "start": { - "line": 114, - "column": 37 - }, - "end": { - "line": 114, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 3795, - "end": 3799, - "loc": { - "start": { - "line": 114, - "column": 39 - }, - "end": { - "line": 114, - "column": 43 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3799, - "end": 3800, - "loc": { - "start": { - "line": 114, - "column": 43 - }, - "end": { - "line": 114, - "column": 44 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3801, - "end": 3802, - "loc": { - "start": { - "line": 114, - "column": 45 - }, - "end": { - "line": 114, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "grant_type", - "start": 3803, - "end": 3813, - "loc": { - "start": { - "line": 114, - "column": 47 - }, - "end": { - "line": 114, - "column": 57 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3813, - "end": 3814, - "loc": { - "start": { - "line": 114, - "column": 57 - }, - "end": { - "line": 114, - "column": 58 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "refresh_token", - "start": 3815, - "end": 3830, - "loc": { - "start": { - "line": 114, - "column": 59 - }, - "end": { - "line": 114, - "column": 74 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3831, - "end": 3832, - "loc": { - "start": { - "line": 114, - "column": 75 - }, - "end": { - "line": 114, - "column": 76 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3832, - "end": 3833, - "loc": { - "start": { - "line": 114, - "column": 76 - }, - "end": { - "line": 114, - "column": 77 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3833, - "end": 3834, - "loc": { - "start": { - "line": 114, - "column": 77 - }, - "end": { - "line": 114, - "column": 78 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 3839, - "end": 3844, - "loc": { - "start": { - "line": 115, - "column": 4 - }, - "end": { - "line": 115, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "dataStringified", - "start": 3845, - "end": 3860, - "loc": { - "start": { - "line": 115, - "column": 10 - }, - "end": { - "line": 115, - "column": 25 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 3861, - "end": 3862, - "loc": { - "start": { - "line": 115, - "column": 26 - }, - "end": { - "line": 115, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "querystring", - "start": 3863, - "end": 3874, - "loc": { - "start": { - "line": 115, - "column": 28 - }, - "end": { - "line": 115, - "column": 39 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3874, - "end": 3875, - "loc": { - "start": { - "line": 115, - "column": 39 - }, - "end": { - "line": 115, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "stringify", - "start": 3875, - "end": 3884, - "loc": { - "start": { - "line": 115, - "column": 40 - }, - "end": { - "line": 115, - "column": 49 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3884, - "end": 3885, - "loc": { - "start": { - "line": 115, - "column": 49 - }, - "end": { - "line": 115, - "column": 50 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "dataCopy", - "start": 3885, - "end": 3893, - "loc": { - "start": { - "line": 115, - "column": 50 - }, - "end": { - "line": 115, - "column": 58 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3893, - "end": 3894, - "loc": { - "start": { - "line": 115, - "column": 58 - }, - "end": { - "line": 115, - "column": 59 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3894, - "end": 3895, - "loc": { - "start": { - "line": 115, - "column": 59 - }, - "end": { - "line": 115, - "column": 60 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "replace", - "start": 3895, - "end": 3902, - "loc": { - "start": { - "line": 115, - "column": 60 - }, - "end": { - "line": 115, - "column": 67 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3902, - "end": 3903, - "loc": { - "start": { - "line": 115, - "column": 67 - }, - "end": { - "line": 115, - "column": 68 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "%40", - "start": 3903, - "end": 3908, - "loc": { - "start": { - "line": 115, - "column": 68 - }, - "end": { - "line": 115, - "column": 73 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3908, - "end": 3909, - "loc": { - "start": { - "line": 115, - "column": 73 - }, - "end": { - "line": 115, - "column": 74 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "@", - "start": 3910, - "end": 3913, - "loc": { - "start": { - "line": 115, - "column": 75 - }, - "end": { - "line": 115, - "column": 78 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3913, - "end": 3914, - "loc": { - "start": { - "line": 115, - "column": 78 - }, - "end": { - "line": 115, - "column": 79 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3914, - "end": 3915, - "loc": { - "start": { - "line": 115, - "column": 79 - }, - "end": { - "line": 115, - "column": 80 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 3920, - "end": 3925, - "loc": { - "start": { - "line": 116, - "column": 4 - }, - "end": { - "line": 116, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 3926, - "end": 3929, - "loc": { - "start": { - "line": 116, - "column": 10 - }, - "end": { - "line": 116, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 3930, - "end": 3931, - "loc": { - "start": { - "line": 116, - "column": 14 - }, - "end": { - "line": 116, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 3932, - "end": 3937, - "loc": { - "start": { - "line": 116, - "column": 16 - }, - "end": { - "line": 116, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3944, - "end": 3945, - "loc": { - "start": { - "line": 117, - "column": 6 - }, - "end": { - "line": 117, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 3945, - "end": 3952, - "loc": { - "start": { - "line": 117, - "column": 7 - }, - "end": { - "line": 117, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3952, - "end": 3953, - "loc": { - "start": { - "line": 117, - "column": 14 - }, - "end": { - "line": 117, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 3953, - "end": 3972, - "loc": { - "start": { - "line": 117, - "column": 15 - }, - "end": { - "line": 117, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3972, - "end": 3973, - "loc": { - "start": { - "line": 117, - "column": 34 - }, - "end": { - "line": 117, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3973, - "end": 3974, - "loc": { - "start": { - "line": 117, - "column": 35 - }, - "end": { - "line": 117, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 3983, - "end": 3989, - "loc": { - "start": { - "line": 118, - "column": 8 - }, - "end": { - "line": 118, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3989, - "end": 3990, - "loc": { - "start": { - "line": 118, - "column": 14 - }, - "end": { - "line": 118, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "POST", - "start": 3991, - "end": 3997, - "loc": { - "start": { - "line": 118, - "column": 16 - }, - "end": { - "line": 118, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3997, - "end": 3998, - "loc": { - "start": { - "line": 118, - "column": 22 - }, - "end": { - "line": 118, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 4007, - "end": 4011, - "loc": { - "start": { - "line": 119, - "column": 8 - }, - "end": { - "line": 119, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4011, - "end": 4012, - "loc": { - "start": { - "line": 119, - "column": 12 - }, - "end": { - "line": 119, - "column": 13 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/oauth2/token", - "start": 4013, - "end": 4028, - "loc": { - "start": { - "line": 119, - "column": 14 - }, - "end": { - "line": 119, - "column": 29 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4028, - "end": 4029, - "loc": { - "start": { - "line": 119, - "column": 29 - }, - "end": { - "line": 119, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 4038, - "end": 4051, - "loc": { - "start": { - "line": 120, - "column": 8 - }, - "end": { - "line": 120, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4051, - "end": 4052, - "loc": { - "start": { - "line": 120, - "column": 21 - }, - "end": { - "line": 120, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4053, - "end": 4054, - "loc": { - "start": { - "line": 120, - "column": 23 - }, - "end": { - "line": 120, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 4055, - "end": 4059, - "loc": { - "start": { - "line": 120, - "column": 25 - }, - "end": { - "line": 120, - "column": 29 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4059, - "end": 4060, - "loc": { - "start": { - "line": 120, - "column": 29 - }, - "end": { - "line": 120, - "column": 30 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Basic", - "start": 4061, - "end": 4068, - "loc": { - "start": { - "line": 120, - "column": 31 - }, - "end": { - "line": 120, - "column": 38 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4069, - "end": 4070, - "loc": { - "start": { - "line": 120, - "column": 39 - }, - "end": { - "line": 120, - "column": 40 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4070, - "end": 4071, - "loc": { - "start": { - "line": 120, - "column": 40 - }, - "end": { - "line": 120, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 4080, - "end": 4087, - "loc": { - "start": { - "line": 121, - "column": 8 - }, - "end": { - "line": 121, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4087, - "end": 4088, - "loc": { - "start": { - "line": 121, - "column": 15 - }, - "end": { - "line": 121, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4089, - "end": 4090, - "loc": { - "start": { - "line": 121, - "column": 17 - }, - "end": { - "line": 121, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type", - "start": 4101, - "end": 4115, - "loc": { - "start": { - "line": 122, - "column": 10 - }, - "end": { - "line": 122, - "column": 24 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4115, - "end": 4116, - "loc": { - "start": { - "line": 122, - "column": 24 - }, - "end": { - "line": 122, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/x-www-form-urlencoded", - "start": 4117, - "end": 4152, - "loc": { - "start": { - "line": 122, - "column": 26 - }, - "end": { - "line": 122, - "column": 61 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4152, - "end": 4153, - "loc": { - "start": { - "line": 122, - "column": 61 - }, - "end": { - "line": 122, - "column": 62 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Length", - "start": 4164, - "end": 4180, - "loc": { - "start": { - "line": 123, - "column": 10 - }, - "end": { - "line": 123, - "column": 26 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4180, - "end": 4181, - "loc": { - "start": { - "line": 123, - "column": 26 - }, - "end": { - "line": 123, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 4182, - "end": 4188, - "loc": { - "start": { - "line": 123, - "column": 28 - }, - "end": { - "line": 123, - "column": 34 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4188, - "end": 4189, - "loc": { - "start": { - "line": 123, - "column": 34 - }, - "end": { - "line": 123, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "byteLength", - "start": 4189, - "end": 4199, - "loc": { - "start": { - "line": 123, - "column": 35 - }, - "end": { - "line": 123, - "column": 45 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4199, - "end": 4200, - "loc": { - "start": { - "line": 123, - "column": 45 - }, - "end": { - "line": 123, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "dataStringified", - "start": 4200, - "end": 4215, - "loc": { - "start": { - "line": 123, - "column": 46 - }, - "end": { - "line": 123, - "column": 61 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4215, - "end": 4216, - "loc": { - "start": { - "line": 123, - "column": 61 - }, - "end": { - "line": 123, - "column": 62 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4216, - "end": 4217, - "loc": { - "start": { - "line": 123, - "column": 62 - }, - "end": { - "line": 123, - "column": 63 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4226, - "end": 4227, - "loc": { - "start": { - "line": 124, - "column": 8 - }, - "end": { - "line": 124, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4227, - "end": 4228, - "loc": { - "start": { - "line": 124, - "column": 9 - }, - "end": { - "line": 124, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4235, - "end": 4236, - "loc": { - "start": { - "line": 125, - "column": 6 - }, - "end": { - "line": 125, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4236, - "end": 4237, - "loc": { - "start": { - "line": 125, - "column": 7 - }, - "end": { - "line": 125, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4237, - "end": 4238, - "loc": { - "start": { - "line": 125, - "column": 8 - }, - "end": { - "line": 125, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 4239, - "end": 4254, - "loc": { - "start": { - "line": 125, - "column": 10 - }, - "end": { - "line": 125, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4254, - "end": 4255, - "loc": { - "start": { - "line": 125, - "column": 25 - }, - "end": { - "line": 125, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 4255, - "end": 4263, - "loc": { - "start": { - "line": 125, - "column": 26 - }, - "end": { - "line": 125, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4263, - "end": 4264, - "loc": { - "start": { - "line": 125, - "column": 34 - }, - "end": { - "line": 125, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4264, - "end": 4265, - "loc": { - "start": { - "line": 125, - "column": 35 - }, - "end": { - "line": 125, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4272, - "end": 4273, - "loc": { - "start": { - "line": 126, - "column": 6 - }, - "end": { - "line": 126, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 4273, - "end": 4275, - "loc": { - "start": { - "line": 126, - "column": 7 - }, - "end": { - "line": 126, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4275, - "end": 4276, - "loc": { - "start": { - "line": 126, - "column": 9 - }, - "end": { - "line": 126, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 4276, - "end": 4283, - "loc": { - "start": { - "line": 126, - "column": 10 - }, - "end": { - "line": 126, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4283, - "end": 4284, - "loc": { - "start": { - "line": 126, - "column": 17 - }, - "end": { - "line": 126, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 4285, - "end": 4297, - "loc": { - "start": { - "line": 126, - "column": 19 - }, - "end": { - "line": 126, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4297, - "end": 4298, - "loc": { - "start": { - "line": 126, - "column": 31 - }, - "end": { - "line": 126, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 4298, - "end": 4306, - "loc": { - "start": { - "line": 126, - "column": 32 - }, - "end": { - "line": 126, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4306, - "end": 4307, - "loc": { - "start": { - "line": 126, - "column": 40 - }, - "end": { - "line": 126, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4307, - "end": 4308, - "loc": { - "start": { - "line": 126, - "column": 41 - }, - "end": { - "line": 126, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4308, - "end": 4309, - "loc": { - "start": { - "line": 126, - "column": 42 - }, - "end": { - "line": 126, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 4315, - "end": 4318, - "loc": { - "start": { - "line": 128, - "column": 4 - }, - "end": { - "line": 128, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4318, - "end": 4319, - "loc": { - "start": { - "line": 128, - "column": 7 - }, - "end": { - "line": 128, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "write", - "start": 4319, - "end": 4324, - "loc": { - "start": { - "line": 128, - "column": 8 - }, - "end": { - "line": 128, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4324, - "end": 4325, - "loc": { - "start": { - "line": 128, - "column": 13 - }, - "end": { - "line": 128, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "dataStringified", - "start": 4325, - "end": 4340, - "loc": { - "start": { - "line": 128, - "column": 14 - }, - "end": { - "line": 128, - "column": 29 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4340, - "end": 4341, - "loc": { - "start": { - "line": 128, - "column": 29 - }, - "end": { - "line": 128, - "column": 30 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4341, - "end": 4342, - "loc": { - "start": { - "line": 128, - "column": 30 - }, - "end": { - "line": 128, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 4347, - "end": 4350, - "loc": { - "start": { - "line": 129, - "column": 4 - }, - "end": { - "line": 129, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4350, - "end": 4351, - "loc": { - "start": { - "line": 129, - "column": 7 - }, - "end": { - "line": 129, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 4351, - "end": 4354, - "loc": { - "start": { - "line": 129, - "column": 8 - }, - "end": { - "line": 129, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4354, - "end": 4355, - "loc": { - "start": { - "line": 129, - "column": 11 - }, - "end": { - "line": 129, - "column": 12 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4355, - "end": 4356, - "loc": { - "start": { - "line": 129, - "column": 12 - }, - "end": { - "line": 129, - "column": 13 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4356, - "end": 4357, - "loc": { - "start": { - "line": 129, - "column": 13 - }, - "end": { - "line": 129, - "column": 14 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4360, - "end": 4361, - "loc": { - "start": { - "line": 130, - "column": 2 - }, - "end": { - "line": 130, - "column": 3 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4363, - "end": 4364, - "loc": { - "start": { - "line": 132, - "column": 0 - }, - "end": { - "line": 132, - "column": 1 - } - } - }, - { - "type": { - "label": "export", - "keyword": "export", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "export", - "start": 4366, - "end": 4372, - "loc": { - "start": { - "line": 134, - "column": 0 - }, - "end": { - "line": 134, - "column": 6 - } - } - }, - { - "type": { - "label": "default", - "keyword": "default", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "default", - "start": 4373, - "end": 4380, - "loc": { - "start": { - "line": 134, - "column": 7 - }, - "end": { - "line": 134, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "OAuth2", - "start": 4381, - "end": 4387, - "loc": { - "start": { - "line": 134, - "column": 15 - }, - "end": { - "line": 134, - "column": 21 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4387, - "end": 4388, - "loc": { - "start": { - "line": 134, - "column": 21 - }, - "end": { - "line": 134, - "column": 22 - } - } - }, - { - "type": { - "label": "eof", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4389, - "end": 4389, - "loc": { - "start": { - "line": 135, - "column": 0 - }, - "end": { - "line": 135, - "column": 0 - } - } - } - ] -} \ No newline at end of file diff --git a/docs/ast/source/signnow.js.json b/docs/ast/source/signnow.js.json deleted file mode 100644 index 54420bf9..00000000 --- a/docs/ast/source/signnow.js.json +++ /dev/null @@ -1,4630 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 694, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 43, - "column": 0 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 694, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 43, - "column": 0 - } - }, - "sourceType": "module", - "body": [ - { - "type": "ImportDeclaration", - "start": 14, - "end": 40, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 26 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 21, - "end": 25, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 11 - } - }, - "local": { - "type": "Identifier", - "start": 21, - "end": 25, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 11 - }, - "identifierName": "user" - }, - "name": "user" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 31, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 17 - }, - "end": { - "line": 2, - "column": 25 - } - }, - "extra": { - "rawValue": "./user", - "raw": "'./user'" - }, - "value": "./user" - } - }, - { - "type": "ImportDeclaration", - "start": 41, - "end": 75, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 34 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 48, - "end": 56, - "loc": { - "start": { - "line": 3, - "column": 7 - }, - "end": { - "line": 3, - "column": 15 - } - }, - "local": { - "type": "Identifier", - "start": 48, - "end": 56, - "loc": { - "start": { - "line": 3, - "column": 7 - }, - "end": { - "line": 3, - "column": 15 - }, - "identifierName": "document" - }, - "name": "document" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 62, - "end": 74, - "loc": { - "start": { - "line": 3, - "column": 21 - }, - "end": { - "line": 3, - "column": 33 - } - }, - "extra": { - "rawValue": "./document", - "raw": "'./document'" - }, - "value": "./document" - } - }, - { - "type": "ImportDeclaration", - "start": 76, - "end": 106, - "loc": { - "start": { - "line": 4, - "column": 0 - }, - "end": { - "line": 4, - "column": 30 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 83, - "end": 89, - "loc": { - "start": { - "line": 4, - "column": 7 - }, - "end": { - "line": 4, - "column": 13 - } - }, - "local": { - "type": "Identifier", - "start": 83, - "end": 89, - "loc": { - "start": { - "line": 4, - "column": 7 - }, - "end": { - "line": 4, - "column": 13 - }, - "identifierName": "folder" - }, - "name": "folder" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 95, - "end": 105, - "loc": { - "start": { - "line": 4, - "column": 19 - }, - "end": { - "line": 4, - "column": 29 - } - }, - "extra": { - "rawValue": "./folder", - "raw": "'./folder'" - }, - "value": "./folder" - } - }, - { - "type": "ImportDeclaration", - "start": 107, - "end": 139, - "loc": { - "start": { - "line": 5, - "column": 0 - }, - "end": { - "line": 5, - "column": 32 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 114, - "end": 121, - "loc": { - "start": { - "line": 5, - "column": 7 - }, - "end": { - "line": 5, - "column": 14 - } - }, - "local": { - "type": "Identifier", - "start": 114, - "end": 121, - "loc": { - "start": { - "line": 5, - "column": 7 - }, - "end": { - "line": 5, - "column": 14 - }, - "identifierName": "webhook" - }, - "name": "webhook" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 127, - "end": 138, - "loc": { - "start": { - "line": 5, - "column": 20 - }, - "end": { - "line": 5, - "column": 31 - } - }, - "extra": { - "rawValue": "./webhook", - "raw": "'./webhook'" - }, - "value": "./webhook" - } - }, - { - "type": "ImportDeclaration", - "start": 140, - "end": 170, - "loc": { - "start": { - "line": 6, - "column": 0 - }, - "end": { - "line": 6, - "column": 30 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 147, - "end": 153, - "loc": { - "start": { - "line": 6, - "column": 7 - }, - "end": { - "line": 6, - "column": 13 - } - }, - "local": { - "type": "Identifier", - "start": 147, - "end": 153, - "loc": { - "start": { - "line": 6, - "column": 7 - }, - "end": { - "line": 6, - "column": 13 - }, - "identifierName": "oauth2" - }, - "name": "oauth2" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 159, - "end": 169, - "loc": { - "start": { - "line": 6, - "column": 19 - }, - "end": { - "line": 6, - "column": 29 - } - }, - "extra": { - "rawValue": "./oauth2", - "raw": "'./oauth2'" - }, - "value": "./oauth2" - } - }, - { - "type": "ImportDeclaration", - "start": 171, - "end": 213, - "loc": { - "start": { - "line": 7, - "column": 0 - }, - "end": { - "line": 7, - "column": 42 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 178, - "end": 190, - "loc": { - "start": { - "line": 7, - "column": 7 - }, - "end": { - "line": 7, - "column": 19 - } - }, - "local": { - "type": "Identifier", - "start": 178, - "end": 190, - "loc": { - "start": { - "line": 7, - "column": 7 - }, - "end": { - "line": 7, - "column": 19 - }, - "identifierName": "enumerations" - }, - "name": "enumerations" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 196, - "end": 212, - "loc": { - "start": { - "line": 7, - "column": 25 - }, - "end": { - "line": 7, - "column": 41 - } - }, - "extra": { - "rawValue": "./enumerations", - "raw": "'./enumerations'" - }, - "value": "./enumerations" - } - }, - { - "type": "ImportDeclaration", - "start": 214, - "end": 248, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 8, - "column": 34 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 221, - "end": 229, - "loc": { - "start": { - "line": 8, - "column": 7 - }, - "end": { - "line": 8, - "column": 15 - } - }, - "local": { - "type": "Identifier", - "start": 221, - "end": 229, - "loc": { - "start": { - "line": 8, - "column": 7 - }, - "end": { - "line": 8, - "column": 15 - }, - "identifierName": "template" - }, - "name": "template" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 235, - "end": 247, - "loc": { - "start": { - "line": 8, - "column": 21 - }, - "end": { - "line": 8, - "column": 33 - } - }, - "extra": { - "rawValue": "./template", - "raw": "'./template'" - }, - "value": "./template" - } - }, - { - "type": "ImportDeclaration", - "start": 249, - "end": 275, - "loc": { - "start": { - "line": 9, - "column": 0 - }, - "end": { - "line": 9, - "column": 26 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 256, - "end": 260, - "loc": { - "start": { - "line": 9, - "column": 7 - }, - "end": { - "line": 9, - "column": 11 - } - }, - "local": { - "type": "Identifier", - "start": 256, - "end": 260, - "loc": { - "start": { - "line": 9, - "column": 7 - }, - "end": { - "line": 9, - "column": 11 - }, - "identifierName": "link" - }, - "name": "link" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 266, - "end": 274, - "loc": { - "start": { - "line": 9, - "column": 17 - }, - "end": { - "line": 9, - "column": 25 - } - }, - "extra": { - "rawValue": "./link", - "raw": "'./link'" - }, - "value": "./link" - } - }, - { - "type": "ImportDeclaration", - "start": 276, - "end": 343, - "loc": { - "start": { - "line": 10, - "column": 0 - }, - "end": { - "line": 12, - "column": 18 - } - }, - "specifiers": [ - { - "type": "ImportSpecifier", - "start": 287, - "end": 307, - "loc": { - "start": { - "line": 11, - "column": 2 - }, - "end": { - "line": 11, - "column": 22 - } - }, - "imported": { - "type": "Identifier", - "start": 287, - "end": 307, - "loc": { - "start": { - "line": 11, - "column": 2 - }, - "end": { - "line": 11, - "column": 22 - }, - "identifierName": "setProductionApiHost" - }, - "name": "setProductionApiHost" - }, - "local": { - "type": "Identifier", - "start": 287, - "end": 307, - "loc": { - "start": { - "line": 11, - "column": 2 - }, - "end": { - "line": 11, - "column": 22 - }, - "identifierName": "setProductionApiHost" - }, - "name": "setProductionApiHost" - } - }, - { - "type": "ImportSpecifier", - "start": 309, - "end": 323, - "loc": { - "start": { - "line": 11, - "column": 24 - }, - "end": { - "line": 11, - "column": 38 - } - }, - "imported": { - "type": "Identifier", - "start": 309, - "end": 323, - "loc": { - "start": { - "line": 11, - "column": 24 - }, - "end": { - "line": 11, - "column": 38 - }, - "identifierName": "setCredentials" - }, - "name": "setCredentials" - }, - "local": { - "type": "Identifier", - "start": 309, - "end": 323, - "loc": { - "start": { - "line": 11, - "column": 24 - }, - "end": { - "line": 11, - "column": 38 - }, - "identifierName": "setCredentials" - }, - "name": "setCredentials" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 332, - "end": 342, - "loc": { - "start": { - "line": 12, - "column": 7 - }, - "end": { - "line": 12, - "column": 17 - } - }, - "extra": { - "rawValue": "./common", - "raw": "'./common'" - }, - "value": "./common" - }, - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * SignNow API Wrapper\n ", - "start": 346, - "end": 376, - "loc": { - "start": { - "line": 15, - "column": 0 - }, - "end": { - "line": 17, - "column": 3 - } - } - } - ] - }, - { - "type": "ExportDefaultDeclaration", - "start": 378, - "end": 692, - "loc": { - "start": { - "line": 19, - "column": 0 - }, - "end": { - "line": 42, - "column": 1 - } - }, - "declaration": { - "type": "FunctionDeclaration", - "start": 393, - "end": 692, - "loc": { - "start": { - "line": 19, - "column": 15 - }, - "end": { - "line": 42, - "column": 1 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 402, - "end": 432, - "loc": { - "start": { - "line": 19, - "column": 24 - }, - "end": { - "line": 21, - "column": 1 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 406, - "end": 417, - "loc": { - "start": { - "line": 20, - "column": 2 - }, - "end": { - "line": 20, - "column": 13 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 406, - "end": 417, - "loc": { - "start": { - "line": 20, - "column": 2 - }, - "end": { - "line": 20, - "column": 13 - }, - "identifierName": "credentials" - }, - "name": "credentials", - "leadingComments": null - }, - "value": { - "type": "Identifier", - "start": 406, - "end": 417, - "loc": { - "start": { - "line": 20, - "column": 2 - }, - "end": { - "line": 20, - "column": 13 - }, - "identifierName": "credentials" - }, - "name": "credentials" - }, - "leadingComments": null, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 419, - "end": 429, - "loc": { - "start": { - "line": 20, - "column": 15 - }, - "end": { - "line": 20, - "column": 25 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 419, - "end": 429, - "loc": { - "start": { - "line": 20, - "column": 15 - }, - "end": { - "line": 20, - "column": 25 - }, - "identifierName": "production" - }, - "name": "production" - }, - "value": { - "type": "Identifier", - "start": 419, - "end": 429, - "loc": { - "start": { - "line": 20, - "column": 15 - }, - "end": { - "line": 20, - "column": 25 - }, - "identifierName": "production" - }, - "name": "production" - }, - "extra": { - "shorthand": true - } - } - ], - "leadingComments": null - } - ], - "body": { - "type": "BlockStatement", - "start": 434, - "end": 692, - "loc": { - "start": { - "line": 21, - "column": 3 - }, - "end": { - "line": 42, - "column": 1 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 439, - "end": 494, - "loc": { - "start": { - "line": 23, - "column": 2 - }, - "end": { - "line": 25, - "column": 3 - } - }, - "test": { - "type": "Identifier", - "start": 443, - "end": 454, - "loc": { - "start": { - "line": 23, - "column": 6 - }, - "end": { - "line": 23, - "column": 17 - }, - "identifierName": "credentials" - }, - "name": "credentials" - }, - "consequent": { - "type": "BlockStatement", - "start": 456, - "end": 494, - "loc": { - "start": { - "line": 23, - "column": 19 - }, - "end": { - "line": 25, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 462, - "end": 490, - "loc": { - "start": { - "line": 24, - "column": 4 - }, - "end": { - "line": 24, - "column": 32 - } - }, - "expression": { - "type": "CallExpression", - "start": 462, - "end": 489, - "loc": { - "start": { - "line": 24, - "column": 4 - }, - "end": { - "line": 24, - "column": 31 - } - }, - "callee": { - "type": "Identifier", - "start": 462, - "end": 476, - "loc": { - "start": { - "line": 24, - "column": 4 - }, - "end": { - "line": 24, - "column": 18 - }, - "identifierName": "setCredentials" - }, - "name": "setCredentials" - }, - "arguments": [ - { - "type": "Identifier", - "start": 477, - "end": 488, - "loc": { - "start": { - "line": 24, - "column": 19 - }, - "end": { - "line": 24, - "column": 30 - }, - "identifierName": "credentials" - }, - "name": "credentials" - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "alternate": null, - "trailingComments": [ - { - "type": "CommentLine", - "value": " toggle production", - "start": 498, - "end": 518, - "loc": { - "start": { - "line": 27, - "column": 2 - }, - "end": { - "line": 27, - "column": 22 - } - } - } - ] - }, - { - "type": "IfStatement", - "start": 521, - "end": 570, - "loc": { - "start": { - "line": 28, - "column": 2 - }, - "end": { - "line": 30, - "column": 3 - } - }, - "test": { - "type": "Identifier", - "start": 525, - "end": 535, - "loc": { - "start": { - "line": 28, - "column": 6 - }, - "end": { - "line": 28, - "column": 16 - }, - "identifierName": "production" - }, - "name": "production", - "leadingComments": null - }, - "consequent": { - "type": "BlockStatement", - "start": 537, - "end": 570, - "loc": { - "start": { - "line": 28, - "column": 18 - }, - "end": { - "line": 30, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 543, - "end": 566, - "loc": { - "start": { - "line": 29, - "column": 4 - }, - "end": { - "line": 29, - "column": 27 - } - }, - "expression": { - "type": "CallExpression", - "start": 543, - "end": 565, - "loc": { - "start": { - "line": 29, - "column": 4 - }, - "end": { - "line": 29, - "column": 26 - } - }, - "callee": { - "type": "Identifier", - "start": 543, - "end": 563, - "loc": { - "start": { - "line": 29, - "column": 4 - }, - "end": { - "line": 29, - "column": 24 - }, - "identifierName": "setProductionApiHost" - }, - "name": "setProductionApiHost" - }, - "arguments": [] - } - } - ], - "directives": [] - }, - "alternate": null, - "leadingComments": [ - { - "type": "CommentLine", - "value": " toggle production", - "start": 498, - "end": 518, - "loc": { - "start": { - "line": 27, - "column": 2 - }, - "end": { - "line": 27, - "column": 22 - } - } - } - ] - }, - { - "type": "ReturnStatement", - "start": 574, - "end": 690, - "loc": { - "start": { - "line": 32, - "column": 2 - }, - "end": { - "line": 41, - "column": 4 - } - }, - "argument": { - "type": "ObjectExpression", - "start": 581, - "end": 689, - "loc": { - "start": { - "line": 32, - "column": 9 - }, - "end": { - "line": 41, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 587, - "end": 591, - "loc": { - "start": { - "line": 33, - "column": 4 - }, - "end": { - "line": 33, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 587, - "end": 591, - "loc": { - "start": { - "line": 33, - "column": 4 - }, - "end": { - "line": 33, - "column": 8 - }, - "identifierName": "user" - }, - "name": "user" - }, - "value": { - "type": "Identifier", - "start": 587, - "end": 591, - "loc": { - "start": { - "line": 33, - "column": 4 - }, - "end": { - "line": 33, - "column": 8 - }, - "identifierName": "user" - }, - "name": "user" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 597, - "end": 603, - "loc": { - "start": { - "line": 34, - "column": 4 - }, - "end": { - "line": 34, - "column": 10 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 597, - "end": 603, - "loc": { - "start": { - "line": 34, - "column": 4 - }, - "end": { - "line": 34, - "column": 10 - }, - "identifierName": "oauth2" - }, - "name": "oauth2" - }, - "value": { - "type": "Identifier", - "start": 597, - "end": 603, - "loc": { - "start": { - "line": 34, - "column": 4 - }, - "end": { - "line": 34, - "column": 10 - }, - "identifierName": "oauth2" - }, - "name": "oauth2" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 609, - "end": 617, - "loc": { - "start": { - "line": 35, - "column": 4 - }, - "end": { - "line": 35, - "column": 12 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 609, - "end": 617, - "loc": { - "start": { - "line": 35, - "column": 4 - }, - "end": { - "line": 35, - "column": 12 - }, - "identifierName": "document" - }, - "name": "document" - }, - "value": { - "type": "Identifier", - "start": 609, - "end": 617, - "loc": { - "start": { - "line": 35, - "column": 4 - }, - "end": { - "line": 35, - "column": 12 - }, - "identifierName": "document" - }, - "name": "document" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 623, - "end": 630, - "loc": { - "start": { - "line": 36, - "column": 4 - }, - "end": { - "line": 36, - "column": 11 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 623, - "end": 630, - "loc": { - "start": { - "line": 36, - "column": 4 - }, - "end": { - "line": 36, - "column": 11 - }, - "identifierName": "webhook" - }, - "name": "webhook" - }, - "value": { - "type": "Identifier", - "start": 623, - "end": 630, - "loc": { - "start": { - "line": 36, - "column": 4 - }, - "end": { - "line": 36, - "column": 11 - }, - "identifierName": "webhook" - }, - "name": "webhook" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 636, - "end": 642, - "loc": { - "start": { - "line": 37, - "column": 4 - }, - "end": { - "line": 37, - "column": 10 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 636, - "end": 642, - "loc": { - "start": { - "line": 37, - "column": 4 - }, - "end": { - "line": 37, - "column": 10 - }, - "identifierName": "folder" - }, - "name": "folder" - }, - "value": { - "type": "Identifier", - "start": 636, - "end": 642, - "loc": { - "start": { - "line": 37, - "column": 4 - }, - "end": { - "line": 37, - "column": 10 - }, - "identifierName": "folder" - }, - "name": "folder" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 648, - "end": 660, - "loc": { - "start": { - "line": 38, - "column": 4 - }, - "end": { - "line": 38, - "column": 16 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 648, - "end": 660, - "loc": { - "start": { - "line": 38, - "column": 4 - }, - "end": { - "line": 38, - "column": 16 - }, - "identifierName": "enumerations" - }, - "name": "enumerations" - }, - "value": { - "type": "Identifier", - "start": 648, - "end": 660, - "loc": { - "start": { - "line": 38, - "column": 4 - }, - "end": { - "line": 38, - "column": 16 - }, - "identifierName": "enumerations" - }, - "name": "enumerations" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 666, - "end": 674, - "loc": { - "start": { - "line": 39, - "column": 4 - }, - "end": { - "line": 39, - "column": 12 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 666, - "end": 674, - "loc": { - "start": { - "line": 39, - "column": 4 - }, - "end": { - "line": 39, - "column": 12 - }, - "identifierName": "template" - }, - "name": "template" - }, - "value": { - "type": "Identifier", - "start": 666, - "end": 674, - "loc": { - "start": { - "line": 39, - "column": 4 - }, - "end": { - "line": 39, - "column": 12 - }, - "identifierName": "template" - }, - "name": "template" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 680, - "end": 684, - "loc": { - "start": { - "line": 40, - "column": 4 - }, - "end": { - "line": 40, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 680, - "end": 684, - "loc": { - "start": { - "line": 40, - "column": 4 - }, - "end": { - "line": 40, - "column": 8 - }, - "identifierName": "link" - }, - "name": "link" - }, - "value": { - "type": "Identifier", - "start": 680, - "end": 684, - "loc": { - "start": { - "line": 40, - "column": 4 - }, - "end": { - "line": 40, - "column": 8 - }, - "identifierName": "link" - }, - "name": "link" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * SignNow API Wrapper\n ", - "start": 346, - "end": 376, - "loc": { - "start": { - "line": 15, - "column": 0 - }, - "end": { - "line": 17, - "column": 3 - } - } - } - ], - "trailingComments": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * SignNow API Wrapper\n ", - "start": 346, - "end": 376, - "loc": { - "start": { - "line": 15, - "column": 0 - }, - "end": { - "line": 17, - "column": 3 - } - } - } - ] - }, - { - "type": "EmptyStatement", - "start": 692, - "end": 693, - "loc": { - "start": { - "line": 42, - "column": 1 - }, - "end": { - "line": 42, - "column": 2 - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "value": "use strict", - "extra": { - "raw": "'use strict'", - "rawValue": "use strict" - } - } - } - ] - }, - "comments": [ - { - "type": "CommentBlock", - "value": "*\n * SignNow API Wrapper\n ", - "start": 346, - "end": 376, - "loc": { - "start": { - "line": 15, - "column": 0 - }, - "end": { - "line": 17, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " toggle production", - "start": 498, - "end": 518, - "loc": { - "start": { - "line": 27, - "column": 2 - }, - "end": { - "line": 27, - "column": 22 - } - } - } - ], - "tokens": [ - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "use strict", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 12 - }, - "end": { - "line": 1, - "column": 13 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 14, - "end": 20, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "user", - "start": 21, - "end": 25, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 26, - "end": 30, - "loc": { - "start": { - "line": 2, - "column": 12 - }, - "end": { - "line": 2, - "column": 16 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "./user", - "start": 31, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 17 - }, - "end": { - "line": 2, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39, - "end": 40, - "loc": { - "start": { - "line": 2, - "column": 25 - }, - "end": { - "line": 2, - "column": 26 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 41, - "end": 47, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document", - "start": 48, - "end": 56, - "loc": { - "start": { - "line": 3, - "column": 7 - }, - "end": { - "line": 3, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 57, - "end": 61, - "loc": { - "start": { - "line": 3, - "column": 16 - }, - "end": { - "line": 3, - "column": 20 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "./document", - "start": 62, - "end": 74, - "loc": { - "start": { - "line": 3, - "column": 21 - }, - "end": { - "line": 3, - "column": 33 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 74, - "end": 75, - "loc": { - "start": { - "line": 3, - "column": 33 - }, - "end": { - "line": 3, - "column": 34 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 76, - "end": 82, - "loc": { - "start": { - "line": 4, - "column": 0 - }, - "end": { - "line": 4, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "folder", - "start": 83, - "end": 89, - "loc": { - "start": { - "line": 4, - "column": 7 - }, - "end": { - "line": 4, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 90, - "end": 94, - "loc": { - "start": { - "line": 4, - "column": 14 - }, - "end": { - "line": 4, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "./folder", - "start": 95, - "end": 105, - "loc": { - "start": { - "line": 4, - "column": 19 - }, - "end": { - "line": 4, - "column": 29 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 105, - "end": 106, - "loc": { - "start": { - "line": 4, - "column": 29 - }, - "end": { - "line": 4, - "column": 30 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 107, - "end": 113, - "loc": { - "start": { - "line": 5, - "column": 0 - }, - "end": { - "line": 5, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "webhook", - "start": 114, - "end": 121, - "loc": { - "start": { - "line": 5, - "column": 7 - }, - "end": { - "line": 5, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 122, - "end": 126, - "loc": { - "start": { - "line": 5, - "column": 15 - }, - "end": { - "line": 5, - "column": 19 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "./webhook", - "start": 127, - "end": 138, - "loc": { - "start": { - "line": 5, - "column": 20 - }, - "end": { - "line": 5, - "column": 31 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 138, - "end": 139, - "loc": { - "start": { - "line": 5, - "column": 31 - }, - "end": { - "line": 5, - "column": 32 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 140, - "end": 146, - "loc": { - "start": { - "line": 6, - "column": 0 - }, - "end": { - "line": 6, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "oauth2", - "start": 147, - "end": 153, - "loc": { - "start": { - "line": 6, - "column": 7 - }, - "end": { - "line": 6, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 154, - "end": 158, - "loc": { - "start": { - "line": 6, - "column": 14 - }, - "end": { - "line": 6, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "./oauth2", - "start": 159, - "end": 169, - "loc": { - "start": { - "line": 6, - "column": 19 - }, - "end": { - "line": 6, - "column": 29 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 169, - "end": 170, - "loc": { - "start": { - "line": 6, - "column": 29 - }, - "end": { - "line": 6, - "column": 30 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 171, - "end": 177, - "loc": { - "start": { - "line": 7, - "column": 0 - }, - "end": { - "line": 7, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "enumerations", - "start": 178, - "end": 190, - "loc": { - "start": { - "line": 7, - "column": 7 - }, - "end": { - "line": 7, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 191, - "end": 195, - "loc": { - "start": { - "line": 7, - "column": 20 - }, - "end": { - "line": 7, - "column": 24 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "./enumerations", - "start": 196, - "end": 212, - "loc": { - "start": { - "line": 7, - "column": 25 - }, - "end": { - "line": 7, - "column": 41 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 212, - "end": 213, - "loc": { - "start": { - "line": 7, - "column": 41 - }, - "end": { - "line": 7, - "column": 42 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 214, - "end": 220, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 8, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "template", - "start": 221, - "end": 229, - "loc": { - "start": { - "line": 8, - "column": 7 - }, - "end": { - "line": 8, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 230, - "end": 234, - "loc": { - "start": { - "line": 8, - "column": 16 - }, - "end": { - "line": 8, - "column": 20 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "./template", - "start": 235, - "end": 247, - "loc": { - "start": { - "line": 8, - "column": 21 - }, - "end": { - "line": 8, - "column": 33 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 247, - "end": 248, - "loc": { - "start": { - "line": 8, - "column": 33 - }, - "end": { - "line": 8, - "column": 34 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 249, - "end": 255, - "loc": { - "start": { - "line": 9, - "column": 0 - }, - "end": { - "line": 9, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "link", - "start": 256, - "end": 260, - "loc": { - "start": { - "line": 9, - "column": 7 - }, - "end": { - "line": 9, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 261, - "end": 265, - "loc": { - "start": { - "line": 9, - "column": 12 - }, - "end": { - "line": 9, - "column": 16 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "./link", - "start": 266, - "end": 274, - "loc": { - "start": { - "line": 9, - "column": 17 - }, - "end": { - "line": 9, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 274, - "end": 275, - "loc": { - "start": { - "line": 9, - "column": 25 - }, - "end": { - "line": 9, - "column": 26 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 276, - "end": 282, - "loc": { - "start": { - "line": 10, - "column": 0 - }, - "end": { - "line": 10, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 283, - "end": 284, - "loc": { - "start": { - "line": 10, - "column": 7 - }, - "end": { - "line": 10, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "setProductionApiHost", - "start": 287, - "end": 307, - "loc": { - "start": { - "line": 11, - "column": 2 - }, - "end": { - "line": 11, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 307, - "end": 308, - "loc": { - "start": { - "line": 11, - "column": 22 - }, - "end": { - "line": 11, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "setCredentials", - "start": 309, - "end": 323, - "loc": { - "start": { - "line": 11, - "column": 24 - }, - "end": { - "line": 11, - "column": 38 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 323, - "end": 324, - "loc": { - "start": { - "line": 11, - "column": 38 - }, - "end": { - "line": 11, - "column": 39 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 325, - "end": 326, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 12, - "column": 1 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 327, - "end": 331, - "loc": { - "start": { - "line": 12, - "column": 2 - }, - "end": { - "line": 12, - "column": 6 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "./common", - "start": 332, - "end": 342, - "loc": { - "start": { - "line": 12, - "column": 7 - }, - "end": { - "line": 12, - "column": 17 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 342, - "end": 343, - "loc": { - "start": { - "line": 12, - "column": 17 - }, - "end": { - "line": 12, - "column": 18 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * SignNow API Wrapper\n ", - "start": 346, - "end": 376, - "loc": { - "start": { - "line": 15, - "column": 0 - }, - "end": { - "line": 17, - "column": 3 - } - } - }, - { - "type": { - "label": "export", - "keyword": "export", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "export", - "start": 378, - "end": 384, - "loc": { - "start": { - "line": 19, - "column": 0 - }, - "end": { - "line": 19, - "column": 6 - } - } - }, - { - "type": { - "label": "default", - "keyword": "default", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "default", - "start": 385, - "end": 392, - "loc": { - "start": { - "line": 19, - "column": 7 - }, - "end": { - "line": 19, - "column": 14 - } - } - }, - { - "type": { - "label": "function", - "keyword": "function", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "function", - "start": 393, - "end": 401, - "loc": { - "start": { - "line": 19, - "column": 15 - }, - "end": { - "line": 19, - "column": 23 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 401, - "end": 402, - "loc": { - "start": { - "line": 19, - "column": 23 - }, - "end": { - "line": 19, - "column": 24 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 402, - "end": 403, - "loc": { - "start": { - "line": 19, - "column": 24 - }, - "end": { - "line": 19, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "credentials", - "start": 406, - "end": 417, - "loc": { - "start": { - "line": 20, - "column": 2 - }, - "end": { - "line": 20, - "column": 13 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 417, - "end": 418, - "loc": { - "start": { - "line": 20, - "column": 13 - }, - "end": { - "line": 20, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "production", - "start": 419, - "end": 429, - "loc": { - "start": { - "line": 20, - "column": 15 - }, - "end": { - "line": 20, - "column": 25 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 429, - "end": 430, - "loc": { - "start": { - "line": 20, - "column": 25 - }, - "end": { - "line": 20, - "column": 26 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 431, - "end": 432, - "loc": { - "start": { - "line": 21, - "column": 0 - }, - "end": { - "line": 21, - "column": 1 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 432, - "end": 433, - "loc": { - "start": { - "line": 21, - "column": 1 - }, - "end": { - "line": 21, - "column": 2 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 434, - "end": 435, - "loc": { - "start": { - "line": 21, - "column": 3 - }, - "end": { - "line": 21, - "column": 4 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 439, - "end": 441, - "loc": { - "start": { - "line": 23, - "column": 2 - }, - "end": { - "line": 23, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 442, - "end": 443, - "loc": { - "start": { - "line": 23, - "column": 5 - }, - "end": { - "line": 23, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "credentials", - "start": 443, - "end": 454, - "loc": { - "start": { - "line": 23, - "column": 6 - }, - "end": { - "line": 23, - "column": 17 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 454, - "end": 455, - "loc": { - "start": { - "line": 23, - "column": 17 - }, - "end": { - "line": 23, - "column": 18 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 456, - "end": 457, - "loc": { - "start": { - "line": 23, - "column": 19 - }, - "end": { - "line": 23, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "setCredentials", - "start": 462, - "end": 476, - "loc": { - "start": { - "line": 24, - "column": 4 - }, - "end": { - "line": 24, - "column": 18 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 476, - "end": 477, - "loc": { - "start": { - "line": 24, - "column": 18 - }, - "end": { - "line": 24, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "credentials", - "start": 477, - "end": 488, - "loc": { - "start": { - "line": 24, - "column": 19 - }, - "end": { - "line": 24, - "column": 30 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 488, - "end": 489, - "loc": { - "start": { - "line": 24, - "column": 30 - }, - "end": { - "line": 24, - "column": 31 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 489, - "end": 490, - "loc": { - "start": { - "line": 24, - "column": 31 - }, - "end": { - "line": 24, - "column": 32 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 493, - "end": 494, - "loc": { - "start": { - "line": 25, - "column": 2 - }, - "end": { - "line": 25, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " toggle production", - "start": 498, - "end": 518, - "loc": { - "start": { - "line": 27, - "column": 2 - }, - "end": { - "line": 27, - "column": 22 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 521, - "end": 523, - "loc": { - "start": { - "line": 28, - "column": 2 - }, - "end": { - "line": 28, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 524, - "end": 525, - "loc": { - "start": { - "line": 28, - "column": 5 - }, - "end": { - "line": 28, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "production", - "start": 525, - "end": 535, - "loc": { - "start": { - "line": 28, - "column": 6 - }, - "end": { - "line": 28, - "column": 16 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 535, - "end": 536, - "loc": { - "start": { - "line": 28, - "column": 16 - }, - "end": { - "line": 28, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 537, - "end": 538, - "loc": { - "start": { - "line": 28, - "column": 18 - }, - "end": { - "line": 28, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "setProductionApiHost", - "start": 543, - "end": 563, - "loc": { - "start": { - "line": 29, - "column": 4 - }, - "end": { - "line": 29, - "column": 24 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 563, - "end": 564, - "loc": { - "start": { - "line": 29, - "column": 24 - }, - "end": { - "line": 29, - "column": 25 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 564, - "end": 565, - "loc": { - "start": { - "line": 29, - "column": 25 - }, - "end": { - "line": 29, - "column": 26 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 565, - "end": 566, - "loc": { - "start": { - "line": 29, - "column": 26 - }, - "end": { - "line": 29, - "column": 27 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 569, - "end": 570, - "loc": { - "start": { - "line": 30, - "column": 2 - }, - "end": { - "line": 30, - "column": 3 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 574, - "end": 580, - "loc": { - "start": { - "line": 32, - "column": 2 - }, - "end": { - "line": 32, - "column": 8 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 581, - "end": 582, - "loc": { - "start": { - "line": 32, - "column": 9 - }, - "end": { - "line": 32, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "user", - "start": 587, - "end": 591, - "loc": { - "start": { - "line": 33, - "column": 4 - }, - "end": { - "line": 33, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 591, - "end": 592, - "loc": { - "start": { - "line": 33, - "column": 8 - }, - "end": { - "line": 33, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "oauth2", - "start": 597, - "end": 603, - "loc": { - "start": { - "line": 34, - "column": 4 - }, - "end": { - "line": 34, - "column": 10 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 603, - "end": 604, - "loc": { - "start": { - "line": 34, - "column": 10 - }, - "end": { - "line": 34, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document", - "start": 609, - "end": 617, - "loc": { - "start": { - "line": 35, - "column": 4 - }, - "end": { - "line": 35, - "column": 12 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 617, - "end": 618, - "loc": { - "start": { - "line": 35, - "column": 12 - }, - "end": { - "line": 35, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "webhook", - "start": 623, - "end": 630, - "loc": { - "start": { - "line": 36, - "column": 4 - }, - "end": { - "line": 36, - "column": 11 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 630, - "end": 631, - "loc": { - "start": { - "line": 36, - "column": 11 - }, - "end": { - "line": 36, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "folder", - "start": 636, - "end": 642, - "loc": { - "start": { - "line": 37, - "column": 4 - }, - "end": { - "line": 37, - "column": 10 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 642, - "end": 643, - "loc": { - "start": { - "line": 37, - "column": 10 - }, - "end": { - "line": 37, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "enumerations", - "start": 648, - "end": 660, - "loc": { - "start": { - "line": 38, - "column": 4 - }, - "end": { - "line": 38, - "column": 16 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 660, - "end": 661, - "loc": { - "start": { - "line": 38, - "column": 16 - }, - "end": { - "line": 38, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "template", - "start": 666, - "end": 674, - "loc": { - "start": { - "line": 39, - "column": 4 - }, - "end": { - "line": 39, - "column": 12 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 674, - "end": 675, - "loc": { - "start": { - "line": 39, - "column": 12 - }, - "end": { - "line": 39, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "link", - "start": 680, - "end": 684, - "loc": { - "start": { - "line": 40, - "column": 4 - }, - "end": { - "line": 40, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 684, - "end": 685, - "loc": { - "start": { - "line": 40, - "column": 8 - }, - "end": { - "line": 40, - "column": 9 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 688, - "end": 689, - "loc": { - "start": { - "line": 41, - "column": 2 - }, - "end": { - "line": 41, - "column": 3 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 689, - "end": 690, - "loc": { - "start": { - "line": 41, - "column": 3 - }, - "end": { - "line": 41, - "column": 4 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 691, - "end": 692, - "loc": { - "start": { - "line": 42, - "column": 0 - }, - "end": { - "line": 42, - "column": 1 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 692, - "end": 693, - "loc": { - "start": { - "line": 42, - "column": 1 - }, - "end": { - "line": 42, - "column": 2 - } - } - }, - { - "type": { - "label": "eof", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 694, - "end": 694, - "loc": { - "start": { - "line": 43, - "column": 0 - }, - "end": { - "line": 43, - "column": 0 - } - } - } - ] -} \ No newline at end of file diff --git a/docs/ast/source/template.js.json b/docs/ast/source/template.js.json deleted file mode 100644 index aeacc48b..00000000 --- a/docs/ast/source/template.js.json +++ /dev/null @@ -1,35007 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 7495, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 269, - "column": 0 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 7495, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 269, - "column": 0 - } - }, - "sourceType": "module", - "body": [ - { - "type": "ImportDeclaration", - "start": 14, - "end": 40, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 26 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - } - }, - "local": { - "type": "Identifier", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - }, - "identifierName": "https" - }, - "name": "https" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 18 - }, - "end": { - "line": 2, - "column": 25 - } - }, - "extra": { - "rawValue": "https", - "raw": "'https'" - }, - "value": "https" - } - }, - { - "type": "ImportDeclaration", - "start": 41, - "end": 122, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 5, - "column": 18 - } - }, - "specifiers": [ - { - "type": "ImportSpecifier", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - } - }, - "imported": { - "type": "Identifier", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "local": { - "type": "Identifier", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - } - }, - { - "type": "ImportSpecifier", - "start": 69, - "end": 81, - "loc": { - "start": { - "line": 4, - "column": 19 - }, - "end": { - "line": 4, - "column": 31 - } - }, - "imported": { - "type": "Identifier", - "start": 69, - "end": 81, - "loc": { - "start": { - "line": 4, - "column": 19 - }, - "end": { - "line": 4, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "local": { - "type": "Identifier", - "start": 69, - "end": 81, - "loc": { - "start": { - "line": 4, - "column": 19 - }, - "end": { - "line": 4, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - } - }, - { - "type": "ImportSpecifier", - "start": 83, - "end": 102, - "loc": { - "start": { - "line": 4, - "column": 33 - }, - "end": { - "line": 4, - "column": 52 - } - }, - "imported": { - "type": "Identifier", - "start": 83, - "end": 102, - "loc": { - "start": { - "line": 4, - "column": 33 - }, - "end": { - "line": 4, - "column": 52 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "local": { - "type": "Identifier", - "start": 83, - "end": 102, - "loc": { - "start": { - "line": 4, - "column": 33 - }, - "end": { - "line": 4, - "column": 52 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 111, - "end": 121, - "loc": { - "start": { - "line": 5, - "column": 7 - }, - "end": { - "line": 5, - "column": 17 - } - }, - "extra": { - "rawValue": "./common", - "raw": "'./common'" - }, - "value": "./common" - } - }, - { - "type": "ImportDeclaration", - "start": 123, - "end": 180, - "loc": { - "start": { - "line": 6, - "column": 0 - }, - "end": { - "line": 10, - "column": 20 - } - }, - "specifiers": [ - { - "type": "ImportSpecifier", - "start": 134, - "end": 140, - "loc": { - "start": { - "line": 7, - "column": 2 - }, - "end": { - "line": 7, - "column": 8 - } - }, - "imported": { - "type": "Identifier", - "start": 134, - "end": 140, - "loc": { - "start": { - "line": 7, - "column": 2 - }, - "end": { - "line": 7, - "column": 8 - }, - "identifierName": "remove" - }, - "name": "remove" - }, - "local": { - "type": "Identifier", - "start": 134, - "end": 140, - "loc": { - "start": { - "line": 7, - "column": 2 - }, - "end": { - "line": 7, - "column": 8 - }, - "identifierName": "remove" - }, - "name": "remove" - } - }, - { - "type": "ImportSpecifier", - "start": 144, - "end": 150, - "loc": { - "start": { - "line": 8, - "column": 2 - }, - "end": { - "line": 8, - "column": 8 - } - }, - "imported": { - "type": "Identifier", - "start": 144, - "end": 150, - "loc": { - "start": { - "line": 8, - "column": 2 - }, - "end": { - "line": 8, - "column": 8 - }, - "identifierName": "invite" - }, - "name": "invite" - }, - "local": { - "type": "Identifier", - "start": 144, - "end": 150, - "loc": { - "start": { - "line": 8, - "column": 2 - }, - "end": { - "line": 8, - "column": 8 - }, - "identifierName": "invite" - }, - "name": "invite" - } - }, - { - "type": "ImportSpecifier", - "start": 154, - "end": 158, - "loc": { - "start": { - "line": 9, - "column": 2 - }, - "end": { - "line": 9, - "column": 6 - } - }, - "imported": { - "type": "Identifier", - "start": 154, - "end": 158, - "loc": { - "start": { - "line": 9, - "column": 2 - }, - "end": { - "line": 9, - "column": 6 - }, - "identifierName": "view" - }, - "name": "view" - }, - "local": { - "type": "Identifier", - "start": 154, - "end": 158, - "loc": { - "start": { - "line": 9, - "column": 2 - }, - "end": { - "line": 9, - "column": 6 - }, - "identifierName": "view" - }, - "name": "view" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 167, - "end": 179, - "loc": { - "start": { - "line": 10, - "column": 7 - }, - "end": { - "line": 10, - "column": 19 - } - }, - "extra": { - "rawValue": "./document", - "raw": "'./document'" - }, - "value": "./document" - }, - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentRemoveParams} data - remove document payload\n * @param {function(err: ApiErrorResponse, res: DocumentRemoveResponse)} [callback] - error first node.js callback\n ", - "start": 182, - "end": 388, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 16, - "column": 3 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 389, - "end": 419, - "loc": { - "start": { - "line": 17, - "column": 0 - }, - "end": { - "line": 17, - "column": 30 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 395, - "end": 418, - "loc": { - "start": { - "line": 17, - "column": 6 - }, - "end": { - "line": 17, - "column": 29 - } - }, - "id": { - "type": "Identifier", - "start": 395, - "end": 409, - "loc": { - "start": { - "line": 17, - "column": 6 - }, - "end": { - "line": 17, - "column": 20 - }, - "identifierName": "removeDocument" - }, - "name": "removeDocument", - "leadingComments": null - }, - "init": { - "type": "Identifier", - "start": 412, - "end": 418, - "loc": { - "start": { - "line": 17, - "column": 23 - }, - "end": { - "line": 17, - "column": 29 - }, - "identifierName": "remove" - }, - "name": "remove" - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentRemoveParams} data - remove document payload\n * @param {function(err: ApiErrorResponse, res: DocumentRemoveResponse)} [callback] - error first node.js callback\n ", - "start": 182, - "end": 388, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 16, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentInviteParams} data - create document invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentInviteResponse)} [callback] - error first node.js callback\n ", - "start": 421, - "end": 634, - "loc": { - "start": { - "line": 19, - "column": 0 - }, - "end": { - "line": 23, - "column": 3 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 635, - "end": 669, - "loc": { - "start": { - "line": 24, - "column": 0 - }, - "end": { - "line": 24, - "column": 34 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 641, - "end": 668, - "loc": { - "start": { - "line": 24, - "column": 6 - }, - "end": { - "line": 24, - "column": 33 - } - }, - "id": { - "type": "Identifier", - "start": 641, - "end": 659, - "loc": { - "start": { - "line": 24, - "column": 6 - }, - "end": { - "line": 24, - "column": 24 - }, - "identifierName": "sendDocumentInvite" - }, - "name": "sendDocumentInvite", - "leadingComments": null - }, - "init": { - "type": "Identifier", - "start": 662, - "end": 668, - "loc": { - "start": { - "line": 24, - "column": 27 - }, - "end": { - "line": 24, - "column": 33 - }, - "identifierName": "invite" - }, - "name": "invite" - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentInviteParams} data - create document invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentInviteResponse)} [callback] - error first node.js callback\n ", - "start": 421, - "end": 634, - "loc": { - "start": { - "line": 19, - "column": 0 - }, - "end": { - "line": 23, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewParams} data - view document with field extract payload\n * @param {function(err: ApiErrorResponse, res: DocumentViewResponse)} [callback] - error first node.js callback\n ", - "start": 671, - "end": 890, - "loc": { - "start": { - "line": 26, - "column": 0 - }, - "end": { - "line": 30, - "column": 3 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 891, - "end": 923, - "loc": { - "start": { - "line": 31, - "column": 0 - }, - "end": { - "line": 31, - "column": 32 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 897, - "end": 922, - "loc": { - "start": { - "line": 31, - "column": 6 - }, - "end": { - "line": 31, - "column": 31 - } - }, - "id": { - "type": "Identifier", - "start": 897, - "end": 915, - "loc": { - "start": { - "line": 31, - "column": 6 - }, - "end": { - "line": 31, - "column": 24 - }, - "identifierName": "getDocumentDetails" - }, - "name": "getDocumentDetails", - "leadingComments": null - }, - "init": { - "type": "Identifier", - "start": 918, - "end": 922, - "loc": { - "start": { - "line": 31, - "column": 27 - }, - "end": { - "line": 31, - "column": 31 - }, - "identifierName": "view" - }, - "name": "view" - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewParams} data - view document with field extract payload\n * @param {function(err: ApiErrorResponse, res: DocumentViewResponse)} [callback] - error first node.js callback\n ", - "start": 671, - "end": 890, - "loc": { - "start": { - "line": 26, - "column": 0 - }, - "end": { - "line": 30, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Template methods\n ", - "start": 925, - "end": 952, - "loc": { - "start": { - "line": 33, - "column": 0 - }, - "end": { - "line": 35, - "column": 3 - } - } - } - ] - }, - { - "type": "Identifier", - "start": 953, - "end": 7468, - "loc": { - "start": { - "line": 36, - "column": 0 - }, - "end": { - "line": 266, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 959, - "end": 967, - "loc": { - "start": { - "line": 36, - "column": 6 - }, - "end": { - "line": 36, - "column": 14 - }, - "identifierName": "Template" - }, - "name": "Template", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 968, - "end": 7468, - "loc": { - "start": { - "line": 36, - "column": 15 - }, - "end": { - "line": 266, - "column": 1 - } - }, - "body": [ - { - "type": "ClassMethod", - "start": 2112, - "end": 3374, - "loc": { - "start": { - "line": 65, - "column": 2 - }, - "end": { - "line": 117, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2119, - "end": 2125, - "loc": { - "start": { - "line": 65, - "column": 9 - }, - "end": { - "line": 65, - "column": 15 - }, - "identifierName": "create" - }, - "name": "create" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 2127, - "end": 2233, - "loc": { - "start": { - "line": 65, - "column": 17 - }, - "end": { - "line": 70, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2133, - "end": 2144, - "loc": { - "start": { - "line": 66, - "column": 4 - }, - "end": { - "line": 66, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2133, - "end": 2144, - "loc": { - "start": { - "line": 66, - "column": 4 - }, - "end": { - "line": 66, - "column": 15 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "value": { - "type": "Identifier", - "start": 2133, - "end": 2144, - "loc": { - "start": { - "line": 66, - "column": 4 - }, - "end": { - "line": 66, - "column": 15 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 2150, - "end": 2163, - "loc": { - "start": { - "line": 67, - "column": 4 - }, - "end": { - "line": 67, - "column": 17 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2150, - "end": 2163, - "loc": { - "start": { - "line": 67, - "column": 4 - }, - "end": { - "line": 67, - "column": 17 - }, - "identifierName": "document_name" - }, - "name": "document_name" - }, - "value": { - "type": "Identifier", - "start": 2150, - "end": 2163, - "loc": { - "start": { - "line": 67, - "column": 4 - }, - "end": { - "line": 67, - "column": 17 - }, - "identifierName": "document_name" - }, - "name": "document_name" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 2169, - "end": 2217, - "loc": { - "start": { - "line": 68, - "column": 4 - }, - "end": { - "line": 68, - "column": 52 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2169, - "end": 2176, - "loc": { - "start": { - "line": 68, - "column": 4 - }, - "end": { - "line": 68, - "column": 11 - }, - "identifierName": "options" - }, - "name": "options" - }, - "value": { - "type": "AssignmentPattern", - "start": 2178, - "end": 2217, - "loc": { - "start": { - "line": 68, - "column": 13 - }, - "end": { - "line": 68, - "column": 52 - } - }, - "left": { - "type": "ObjectPattern", - "start": 2178, - "end": 2212, - "loc": { - "start": { - "line": 68, - "column": 13 - }, - "end": { - "line": 68, - "column": 47 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2180, - "end": 2210, - "loc": { - "start": { - "line": 68, - "column": 15 - }, - "end": { - "line": 68, - "column": 45 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2180, - "end": 2202, - "loc": { - "start": { - "line": 68, - "column": 15 - }, - "end": { - "line": 68, - "column": 37 - }, - "identifierName": "removeOriginalDocument" - }, - "name": "removeOriginalDocument" - }, - "value": { - "type": "AssignmentPattern", - "start": 2180, - "end": 2210, - "loc": { - "start": { - "line": 68, - "column": 15 - }, - "end": { - "line": 68, - "column": 45 - } - }, - "left": { - "type": "Identifier", - "start": 2180, - "end": 2202, - "loc": { - "start": { - "line": 68, - "column": 15 - }, - "end": { - "line": 68, - "column": 37 - }, - "identifierName": "removeOriginalDocument" - }, - "name": "removeOriginalDocument" - }, - "right": { - "type": "BooleanLiteral", - "start": 2205, - "end": 2210, - "loc": { - "start": { - "line": 68, - "column": 40 - }, - "end": { - "line": 68, - "column": 45 - } - }, - "value": false - } - }, - "extra": { - "shorthand": true - } - } - ] - }, - "right": { - "type": "ObjectExpression", - "start": 2215, - "end": 2217, - "loc": { - "start": { - "line": 68, - "column": 50 - }, - "end": { - "line": 68, - "column": 52 - } - }, - "properties": [] - } - } - }, - { - "type": "ObjectProperty", - "start": 2223, - "end": 2228, - "loc": { - "start": { - "line": 69, - "column": 4 - }, - "end": { - "line": 69, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2223, - "end": 2228, - "loc": { - "start": { - "line": 69, - "column": 4 - }, - "end": { - "line": 69, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 2223, - "end": 2228, - "loc": { - "start": { - "line": 69, - "column": 4 - }, - "end": { - "line": 69, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 2235, - "end": 2251, - "loc": { - "start": { - "line": 70, - "column": 5 - }, - "end": { - "line": 70, - "column": 21 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - } - ], - "body": { - "type": "BlockStatement", - "start": 2253, - "end": 3374, - "loc": { - "start": { - "line": 70, - "column": 23 - }, - "end": { - "line": 117, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 2259, - "end": 2340, - "loc": { - "start": { - "line": 71, - "column": 4 - }, - "end": { - "line": 74, - "column": 7 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2265, - "end": 2339, - "loc": { - "start": { - "line": 71, - "column": 10 - }, - "end": { - "line": 74, - "column": 6 - } - }, - "id": { - "type": "Identifier", - "start": 2265, - "end": 2273, - "loc": { - "start": { - "line": 71, - "column": 10 - }, - "end": { - "line": 71, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 2276, - "end": 2339, - "loc": { - "start": { - "line": 71, - "column": 21 - }, - "end": { - "line": 74, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2276, - "end": 2290, - "loc": { - "start": { - "line": 71, - "column": 21 - }, - "end": { - "line": 71, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 2276, - "end": 2280, - "loc": { - "start": { - "line": 71, - "column": 21 - }, - "end": { - "line": 71, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 2281, - "end": 2290, - "loc": { - "start": { - "line": 71, - "column": 26 - }, - "end": { - "line": 71, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 2291, - "end": 2338, - "loc": { - "start": { - "line": 71, - "column": 36 - }, - "end": { - "line": 74, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2299, - "end": 2310, - "loc": { - "start": { - "line": 72, - "column": 6 - }, - "end": { - "line": 72, - "column": 17 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2299, - "end": 2310, - "loc": { - "start": { - "line": 72, - "column": 6 - }, - "end": { - "line": 72, - "column": 17 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "value": { - "type": "Identifier", - "start": 2299, - "end": 2310, - "loc": { - "start": { - "line": 72, - "column": 6 - }, - "end": { - "line": 72, - "column": 17 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 2318, - "end": 2331, - "loc": { - "start": { - "line": 73, - "column": 6 - }, - "end": { - "line": 73, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2318, - "end": 2331, - "loc": { - "start": { - "line": 73, - "column": 6 - }, - "end": { - "line": 73, - "column": 19 - }, - "identifierName": "document_name" - }, - "name": "document_name" - }, - "value": { - "type": "Identifier", - "start": 2318, - "end": 2331, - "loc": { - "start": { - "line": 73, - "column": 6 - }, - "end": { - "line": 73, - "column": 19 - }, - "identifierName": "document_name" - }, - "name": "document_name" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 2346, - "end": 2809, - "loc": { - "start": { - "line": 76, - "column": 4 - }, - "end": { - "line": 94, - "column": 6 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2352, - "end": 2808, - "loc": { - "start": { - "line": 76, - "column": 10 - }, - "end": { - "line": 94, - "column": 5 - } - }, - "id": { - "type": "Identifier", - "start": 2352, - "end": 2380, - "loc": { - "start": { - "line": 76, - "column": 10 - }, - "end": { - "line": 76, - "column": 38 - }, - "identifierName": "callbackWithDocumentDeletion" - }, - "name": "callbackWithDocumentDeletion" - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 2383, - "end": 2808, - "loc": { - "start": { - "line": 76, - "column": 41 - }, - "end": { - "line": 94, - "column": 5 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 2384, - "end": 2393, - "loc": { - "start": { - "line": 76, - "column": 42 - }, - "end": { - "line": 76, - "column": 51 - }, - "identifierName": "createErr" - }, - "name": "createErr" - }, - { - "type": "Identifier", - "start": 2395, - "end": 2404, - "loc": { - "start": { - "line": 76, - "column": 53 - }, - "end": { - "line": 76, - "column": 62 - }, - "identifierName": "createRes" - }, - "name": "createRes" - } - ], - "body": { - "type": "BlockStatement", - "start": 2409, - "end": 2808, - "loc": { - "start": { - "line": 76, - "column": 67 - }, - "end": { - "line": 94, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 2417, - "end": 2802, - "loc": { - "start": { - "line": 77, - "column": 6 - }, - "end": { - "line": 93, - "column": 7 - } - }, - "test": { - "type": "Identifier", - "start": 2421, - "end": 2430, - "loc": { - "start": { - "line": 77, - "column": 10 - }, - "end": { - "line": 77, - "column": 19 - }, - "identifierName": "createErr" - }, - "name": "createErr" - }, - "consequent": { - "type": "BlockStatement", - "start": 2432, - "end": 2494, - "loc": { - "start": { - "line": 77, - "column": 21 - }, - "end": { - "line": 80, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2442, - "end": 2470, - "loc": { - "start": { - "line": 78, - "column": 8 - }, - "end": { - "line": 78, - "column": 36 - } - }, - "expression": { - "type": "CallExpression", - "start": 2442, - "end": 2469, - "loc": { - "start": { - "line": 78, - "column": 8 - }, - "end": { - "line": 78, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 2442, - "end": 2458, - "loc": { - "start": { - "line": 78, - "column": 8 - }, - "end": { - "line": 78, - "column": 24 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2459, - "end": 2468, - "loc": { - "start": { - "line": 78, - "column": 25 - }, - "end": { - "line": 78, - "column": 34 - }, - "identifierName": "createErr" - }, - "name": "createErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 2479, - "end": 2486, - "loc": { - "start": { - "line": 79, - "column": 8 - }, - "end": { - "line": 79, - "column": 15 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 2500, - "end": 2802, - "loc": { - "start": { - "line": 80, - "column": 13 - }, - "end": { - "line": 93, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2510, - "end": 2794, - "loc": { - "start": { - "line": 81, - "column": 8 - }, - "end": { - "line": 92, - "column": 11 - } - }, - "expression": { - "type": "CallExpression", - "start": 2510, - "end": 2793, - "loc": { - "start": { - "line": 81, - "column": 8 - }, - "end": { - "line": 92, - "column": 10 - } - }, - "callee": { - "type": "Identifier", - "start": 2510, - "end": 2524, - "loc": { - "start": { - "line": 81, - "column": 8 - }, - "end": { - "line": 81, - "column": 22 - }, - "identifierName": "removeDocument" - }, - "name": "removeDocument" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 2525, - "end": 2580, - "loc": { - "start": { - "line": 81, - "column": 23 - }, - "end": { - "line": 84, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2537, - "end": 2552, - "loc": { - "start": { - "line": 82, - "column": 10 - }, - "end": { - "line": 82, - "column": 25 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2537, - "end": 2539, - "loc": { - "start": { - "line": 82, - "column": 10 - }, - "end": { - "line": 82, - "column": 12 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 2541, - "end": 2552, - "loc": { - "start": { - "line": 82, - "column": 14 - }, - "end": { - "line": 82, - "column": 25 - }, - "identifierName": "document_id" - }, - "name": "document_id" - } - }, - { - "type": "ObjectProperty", - "start": 2564, - "end": 2569, - "loc": { - "start": { - "line": 83, - "column": 10 - }, - "end": { - "line": 83, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2564, - "end": 2569, - "loc": { - "start": { - "line": 83, - "column": 10 - }, - "end": { - "line": 83, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 2564, - "end": 2569, - "loc": { - "start": { - "line": 83, - "column": 10 - }, - "end": { - "line": 83, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "ArrowFunctionExpression", - "start": 2582, - "end": 2792, - "loc": { - "start": { - "line": 84, - "column": 11 - }, - "end": { - "line": 92, - "column": 9 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 2582, - "end": 2591, - "loc": { - "start": { - "line": 84, - "column": 11 - }, - "end": { - "line": 84, - "column": 20 - }, - "identifierName": "removeErr" - }, - "name": "removeErr" - } - ], - "body": { - "type": "BlockStatement", - "start": 2595, - "end": 2792, - "loc": { - "start": { - "line": 84, - "column": 24 - }, - "end": { - "line": 92, - "column": 9 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 2607, - "end": 2782, - "loc": { - "start": { - "line": 85, - "column": 10 - }, - "end": { - "line": 91, - "column": 11 - } - }, - "test": { - "type": "Identifier", - "start": 2611, - "end": 2620, - "loc": { - "start": { - "line": 85, - "column": 14 - }, - "end": { - "line": 85, - "column": 23 - }, - "identifierName": "removeErr" - }, - "name": "removeErr" - }, - "consequent": { - "type": "BlockStatement", - "start": 2622, - "end": 2696, - "loc": { - "start": { - "line": 85, - "column": 25 - }, - "end": { - "line": 88, - "column": 11 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2636, - "end": 2664, - "loc": { - "start": { - "line": 86, - "column": 12 - }, - "end": { - "line": 86, - "column": 40 - } - }, - "expression": { - "type": "CallExpression", - "start": 2636, - "end": 2663, - "loc": { - "start": { - "line": 86, - "column": 12 - }, - "end": { - "line": 86, - "column": 39 - } - }, - "callee": { - "type": "Identifier", - "start": 2636, - "end": 2652, - "loc": { - "start": { - "line": 86, - "column": 12 - }, - "end": { - "line": 86, - "column": 28 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2653, - "end": 2662, - "loc": { - "start": { - "line": 86, - "column": 29 - }, - "end": { - "line": 86, - "column": 38 - }, - "identifierName": "removeErr" - }, - "name": "removeErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 2677, - "end": 2684, - "loc": { - "start": { - "line": 87, - "column": 12 - }, - "end": { - "line": 87, - "column": 19 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 2702, - "end": 2782, - "loc": { - "start": { - "line": 88, - "column": 17 - }, - "end": { - "line": 91, - "column": 11 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2716, - "end": 2750, - "loc": { - "start": { - "line": 89, - "column": 12 - }, - "end": { - "line": 89, - "column": 46 - } - }, - "expression": { - "type": "CallExpression", - "start": 2716, - "end": 2749, - "loc": { - "start": { - "line": 89, - "column": 12 - }, - "end": { - "line": 89, - "column": 45 - } - }, - "callee": { - "type": "Identifier", - "start": 2716, - "end": 2732, - "loc": { - "start": { - "line": 89, - "column": 12 - }, - "end": { - "line": 89, - "column": 28 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - }, - "arguments": [ - { - "type": "NullLiteral", - "start": 2733, - "end": 2737, - "loc": { - "start": { - "line": 89, - "column": 29 - }, - "end": { - "line": 89, - "column": 33 - } - } - }, - { - "type": "Identifier", - "start": 2739, - "end": 2748, - "loc": { - "start": { - "line": 89, - "column": 35 - }, - "end": { - "line": 89, - "column": 44 - }, - "identifierName": "createRes" - }, - "name": "createRes" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 2763, - "end": 2770, - "loc": { - "start": { - "line": 90, - "column": 12 - }, - "end": { - "line": 90, - "column": 19 - } - }, - "argument": null - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 2815, - "end": 2917, - "loc": { - "start": { - "line": 96, - "column": 4 - }, - "end": { - "line": 98, - "column": 25 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2821, - "end": 2916, - "loc": { - "start": { - "line": 96, - "column": 10 - }, - "end": { - "line": 98, - "column": 24 - } - }, - "id": { - "type": "Identifier", - "start": 2821, - "end": 2829, - "loc": { - "start": { - "line": 96, - "column": 10 - }, - "end": { - "line": 96, - "column": 18 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "init": { - "type": "ConditionalExpression", - "start": 2832, - "end": 2916, - "loc": { - "start": { - "line": 96, - "column": 21 - }, - "end": { - "line": 98, - "column": 24 - } - }, - "test": { - "type": "Identifier", - "start": 2832, - "end": 2854, - "loc": { - "start": { - "line": 96, - "column": 21 - }, - "end": { - "line": 96, - "column": 43 - }, - "identifierName": "removeOriginalDocument" - }, - "name": "removeOriginalDocument" - }, - "consequent": { - "type": "Identifier", - "start": 2863, - "end": 2891, - "loc": { - "start": { - "line": 97, - "column": 8 - }, - "end": { - "line": 97, - "column": 36 - }, - "identifierName": "callbackWithDocumentDeletion" - }, - "name": "callbackWithDocumentDeletion" - }, - "alternate": { - "type": "Identifier", - "start": 2900, - "end": 2916, - "loc": { - "start": { - "line": 98, - "column": 8 - }, - "end": { - "line": 98, - "column": 24 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 2923, - "end": 3329, - "loc": { - "start": { - "line": 100, - "column": 4 - }, - "end": { - "line": 113, - "column": 51 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2929, - "end": 3328, - "loc": { - "start": { - "line": 100, - "column": 10 - }, - "end": { - "line": 113, - "column": 50 - } - }, - "id": { - "type": "Identifier", - "start": 2929, - "end": 2932, - "loc": { - "start": { - "line": 100, - "column": 10 - }, - "end": { - "line": 100, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 2935, - "end": 3328, - "loc": { - "start": { - "line": 100, - "column": 16 - }, - "end": { - "line": 113, - "column": 50 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2935, - "end": 3287, - "loc": { - "start": { - "line": 100, - "column": 16 - }, - "end": { - "line": 113, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 2935, - "end": 3277, - "loc": { - "start": { - "line": 100, - "column": 16 - }, - "end": { - "line": 112, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2935, - "end": 2955, - "loc": { - "start": { - "line": 100, - "column": 16 - }, - "end": { - "line": 101, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 2935, - "end": 2940, - "loc": { - "start": { - "line": 100, - "column": 16 - }, - "end": { - "line": 100, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 2948, - "end": 2955, - "loc": { - "start": { - "line": 101, - "column": 7 - }, - "end": { - "line": 101, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 2956, - "end": 3249, - "loc": { - "start": { - "line": 101, - "column": 15 - }, - "end": { - "line": 112, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 2956, - "end": 2975, - "loc": { - "start": { - "line": 101, - "column": 15 - }, - "end": { - "line": 101, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 2976, - "end": 3248, - "loc": { - "start": { - "line": 101, - "column": 35 - }, - "end": { - "line": 112, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2986, - "end": 3000, - "loc": { - "start": { - "line": 102, - "column": 8 - }, - "end": { - "line": 102, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2986, - "end": 2992, - "loc": { - "start": { - "line": 102, - "column": 8 - }, - "end": { - "line": 102, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 2994, - "end": 3000, - "loc": { - "start": { - "line": 102, - "column": 16 - }, - "end": { - "line": 102, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 3010, - "end": 3027, - "loc": { - "start": { - "line": 103, - "column": 8 - }, - "end": { - "line": 103, - "column": 25 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3010, - "end": 3014, - "loc": { - "start": { - "line": 103, - "column": 8 - }, - "end": { - "line": 103, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 3016, - "end": 3027, - "loc": { - "start": { - "line": 103, - "column": 14 - }, - "end": { - "line": 103, - "column": 25 - } - }, - "extra": { - "rawValue": "/template", - "raw": "'/template'" - }, - "value": "/template" - } - }, - { - "type": "ObjectProperty", - "start": 3037, - "end": 3106, - "loc": { - "start": { - "line": 104, - "column": 8 - }, - "end": { - "line": 107, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3037, - "end": 3050, - "loc": { - "start": { - "line": 104, - "column": 8 - }, - "end": { - "line": 104, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 3052, - "end": 3106, - "loc": { - "start": { - "line": 104, - "column": 23 - }, - "end": { - "line": 107, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3064, - "end": 3078, - "loc": { - "start": { - "line": 105, - "column": 10 - }, - "end": { - "line": 105, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3064, - "end": 3068, - "loc": { - "start": { - "line": 105, - "column": 10 - }, - "end": { - "line": 105, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 3070, - "end": 3078, - "loc": { - "start": { - "line": 105, - "column": 16 - }, - "end": { - "line": 105, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 3090, - "end": 3095, - "loc": { - "start": { - "line": 106, - "column": 10 - }, - "end": { - "line": 106, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3090, - "end": 3095, - "loc": { - "start": { - "line": 106, - "column": 10 - }, - "end": { - "line": 106, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 3090, - "end": 3095, - "loc": { - "start": { - "line": 106, - "column": 10 - }, - "end": { - "line": 106, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 3116, - "end": 3239, - "loc": { - "start": { - "line": 108, - "column": 8 - }, - "end": { - "line": 111, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3116, - "end": 3123, - "loc": { - "start": { - "line": 108, - "column": 8 - }, - "end": { - "line": 108, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 3125, - "end": 3239, - "loc": { - "start": { - "line": 108, - "column": 17 - }, - "end": { - "line": 111, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3137, - "end": 3171, - "loc": { - "start": { - "line": 109, - "column": 10 - }, - "end": { - "line": 109, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 3137, - "end": 3151, - "loc": { - "start": { - "line": 109, - "column": 10 - }, - "end": { - "line": 109, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 3153, - "end": 3171, - "loc": { - "start": { - "line": 109, - "column": 26 - }, - "end": { - "line": 109, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 3183, - "end": 3228, - "loc": { - "start": { - "line": 110, - "column": 10 - }, - "end": { - "line": 110, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 3183, - "end": 3199, - "loc": { - "start": { - "line": 110, - "column": 10 - }, - "end": { - "line": 110, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 3201, - "end": 3228, - "loc": { - "start": { - "line": 110, - "column": 28 - }, - "end": { - "line": 110, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3201, - "end": 3218, - "loc": { - "start": { - "line": 110, - "column": 28 - }, - "end": { - "line": 110, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 3201, - "end": 3207, - "loc": { - "start": { - "line": 110, - "column": 28 - }, - "end": { - "line": 110, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 3208, - "end": 3218, - "loc": { - "start": { - "line": 110, - "column": 35 - }, - "end": { - "line": 110, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 3219, - "end": 3227, - "loc": { - "start": { - "line": 110, - "column": 46 - }, - "end": { - "line": 110, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 3251, - "end": 3276, - "loc": { - "start": { - "line": 112, - "column": 10 - }, - "end": { - "line": 112, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 3251, - "end": 3266, - "loc": { - "start": { - "line": 112, - "column": 10 - }, - "end": { - "line": 112, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3267, - "end": 3275, - "loc": { - "start": { - "line": 112, - "column": 26 - }, - "end": { - "line": 112, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 3285, - "end": 3287, - "loc": { - "start": { - "line": 113, - "column": 7 - }, - "end": { - "line": 113, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 3288, - "end": 3295, - "loc": { - "start": { - "line": 113, - "column": 10 - }, - "end": { - "line": 113, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 3297, - "end": 3327, - "loc": { - "start": { - "line": 113, - "column": 19 - }, - "end": { - "line": 113, - "column": 49 - } - }, - "callee": { - "type": "Identifier", - "start": 3297, - "end": 3309, - "loc": { - "start": { - "line": 113, - "column": 19 - }, - "end": { - "line": 113, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3310, - "end": 3326, - "loc": { - "start": { - "line": 113, - "column": 32 - }, - "end": { - "line": 113, - "column": 48 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 3335, - "end": 3355, - "loc": { - "start": { - "line": 115, - "column": 4 - }, - "end": { - "line": 115, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 3335, - "end": 3354, - "loc": { - "start": { - "line": 115, - "column": 4 - }, - "end": { - "line": 115, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3335, - "end": 3344, - "loc": { - "start": { - "line": 115, - "column": 4 - }, - "end": { - "line": 115, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 3335, - "end": 3338, - "loc": { - "start": { - "line": 115, - "column": 4 - }, - "end": { - "line": 115, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 3339, - "end": 3344, - "loc": { - "start": { - "line": 115, - "column": 8 - }, - "end": { - "line": 115, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 3345, - "end": 3353, - "loc": { - "start": { - "line": 115, - "column": 14 - }, - "end": { - "line": 115, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 3360, - "end": 3370, - "loc": { - "start": { - "line": 116, - "column": 4 - }, - "end": { - "line": 116, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 3360, - "end": 3369, - "loc": { - "start": { - "line": 116, - "column": 4 - }, - "end": { - "line": 116, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3360, - "end": 3367, - "loc": { - "start": { - "line": 116, - "column": 4 - }, - "end": { - "line": 116, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 3360, - "end": 3363, - "loc": { - "start": { - "line": 116, - "column": 4 - }, - "end": { - "line": 116, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 3364, - "end": 3367, - "loc": { - "start": { - "line": 116, - "column": 8 - }, - "end": { - "line": 116, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document invite optional settings\n * @typedef {Object} TemplateCreateOptions\n * @property {boolean} [removeOriginalDocument=false] - if true original document will be removed\n ", - "start": 973, - "end": 1166, - "loc": { - "start": { - "line": 38, - "column": 2 - }, - "end": { - "line": 42, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create template payload\n * @typedef {Object} TemplateCreateParams\n * @property {string} document_id - an id of original document\n * @property {string} document_name - a name of new template\n * @property {TemplateCreateOptions} options - create template optional settings\n * @property {string} token - your auth token\n ", - "start": 1170, - "end": 1511, - "loc": { - "start": { - "line": 44, - "column": 2 - }, - "end": { - "line": 51, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create template response data\n * @typedef {Object} TemplateCreateResponse\n * @property {string} id - an id of created template\n ", - "start": 1515, - "end": 1660, - "loc": { - "start": { - "line": 53, - "column": 2 - }, - "end": { - "line": 57, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates a template by copying an existing unfulfilled and not requested for sign document.\n * By default original document is not removed after template creation. To remove original document set `removeOriginalDocument` option to `true`.\n * @param {TemplateCreateParams} data - create template payload\n * @param {function(err: ApiErrorResponse, res: TemplateCreateResponse)} [originalCallback] - error first node.js callback\n ", - "start": 1664, - "end": 2109, - "loc": { - "start": { - "line": 59, - "column": 2 - }, - "end": { - "line": 64, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Copy template payload\n * @typedef {Object} TemplateDuplicateParams\n * @property {string} id - an id of original template\n * @property {string} name - a name of new document\n * @property {string} token - your auth token\n ", - "start": 3378, - "end": 3619, - "loc": { - "start": { - "line": 119, - "column": 2 - }, - "end": { - "line": 125, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Copy template response data\n * @typedef {Object} TemplateDuplicateResponse\n * @property {string} id - an id of created document\n * @property {string} name - a name of created document\n ", - "start": 3623, - "end": 3827, - "loc": { - "start": { - "line": 127, - "column": 2 - }, - "end": { - "line": 132, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates a new document by copying a template.\n * If a name is not supplied then document name will be set to the original template's name by default.\n * @param {TemplateDuplicateParams} data - duplicate template payload\n * @param {function(err: ApiErrorResponse, res: TemplateDuplicateResponse)} [callback] - error first node.js callback\n ", - "start": 3831, - "end": 4189, - "loc": { - "start": { - "line": 134, - "column": 2 - }, - "end": { - "line": 139, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 4192, - "end": 4840, - "loc": { - "start": { - "line": 140, - "column": 2 - }, - "end": { - "line": 167, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 4199, - "end": 4208, - "loc": { - "start": { - "line": 140, - "column": 9 - }, - "end": { - "line": 140, - "column": 18 - }, - "identifierName": "duplicate" - }, - "name": "duplicate" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 4210, - "end": 4272, - "loc": { - "start": { - "line": 140, - "column": 20 - }, - "end": { - "line": 144, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4216, - "end": 4231, - "loc": { - "start": { - "line": 141, - "column": 4 - }, - "end": { - "line": 141, - "column": 19 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4216, - "end": 4218, - "loc": { - "start": { - "line": 141, - "column": 4 - }, - "end": { - "line": 141, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 4220, - "end": 4231, - "loc": { - "start": { - "line": 141, - "column": 8 - }, - "end": { - "line": 141, - "column": 19 - }, - "identifierName": "template_id" - }, - "name": "template_id" - } - }, - { - "type": "ObjectProperty", - "start": 4237, - "end": 4256, - "loc": { - "start": { - "line": 142, - "column": 4 - }, - "end": { - "line": 142, - "column": 23 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4237, - "end": 4241, - "loc": { - "start": { - "line": 142, - "column": 4 - }, - "end": { - "line": 142, - "column": 8 - }, - "identifierName": "name" - }, - "name": "name" - }, - "value": { - "type": "Identifier", - "start": 4243, - "end": 4256, - "loc": { - "start": { - "line": 142, - "column": 10 - }, - "end": { - "line": 142, - "column": 23 - }, - "identifierName": "document_name" - }, - "name": "document_name" - } - }, - { - "type": "ObjectProperty", - "start": 4262, - "end": 4267, - "loc": { - "start": { - "line": 143, - "column": 4 - }, - "end": { - "line": 143, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 4262, - "end": 4267, - "loc": { - "start": { - "line": 143, - "column": 4 - }, - "end": { - "line": 143, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 4262, - "end": 4267, - "loc": { - "start": { - "line": 143, - "column": 4 - }, - "end": { - "line": 143, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 4274, - "end": 4282, - "loc": { - "start": { - "line": 144, - "column": 5 - }, - "end": { - "line": 144, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 4284, - "end": 4840, - "loc": { - "start": { - "line": 144, - "column": 15 - }, - "end": { - "line": 167, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 4290, - "end": 4371, - "loc": { - "start": { - "line": 145, - "column": 4 - }, - "end": { - "line": 148, - "column": 7 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 4296, - "end": 4370, - "loc": { - "start": { - "line": 145, - "column": 10 - }, - "end": { - "line": 148, - "column": 6 - } - }, - "id": { - "type": "Identifier", - "start": 4296, - "end": 4304, - "loc": { - "start": { - "line": 145, - "column": 10 - }, - "end": { - "line": 145, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 4307, - "end": 4370, - "loc": { - "start": { - "line": 145, - "column": 21 - }, - "end": { - "line": 148, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4307, - "end": 4321, - "loc": { - "start": { - "line": 145, - "column": 21 - }, - "end": { - "line": 145, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 4307, - "end": 4311, - "loc": { - "start": { - "line": 145, - "column": 21 - }, - "end": { - "line": 145, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 4312, - "end": 4321, - "loc": { - "start": { - "line": 145, - "column": 26 - }, - "end": { - "line": 145, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 4322, - "end": 4369, - "loc": { - "start": { - "line": 145, - "column": 36 - }, - "end": { - "line": 148, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4330, - "end": 4341, - "loc": { - "start": { - "line": 146, - "column": 6 - }, - "end": { - "line": 146, - "column": 17 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 4330, - "end": 4341, - "loc": { - "start": { - "line": 146, - "column": 6 - }, - "end": { - "line": 146, - "column": 17 - }, - "identifierName": "template_id" - }, - "name": "template_id" - }, - "value": { - "type": "Identifier", - "start": 4330, - "end": 4341, - "loc": { - "start": { - "line": 146, - "column": 6 - }, - "end": { - "line": 146, - "column": 17 - }, - "identifierName": "template_id" - }, - "name": "template_id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 4349, - "end": 4362, - "loc": { - "start": { - "line": 147, - "column": 6 - }, - "end": { - "line": 147, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 4349, - "end": 4362, - "loc": { - "start": { - "line": 147, - "column": 6 - }, - "end": { - "line": 147, - "column": 19 - }, - "identifierName": "document_name" - }, - "name": "document_name" - }, - "value": { - "type": "Identifier", - "start": 4349, - "end": 4362, - "loc": { - "start": { - "line": 147, - "column": 6 - }, - "end": { - "line": 147, - "column": 19 - }, - "identifierName": "document_name" - }, - "name": "document_name" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 4377, - "end": 4795, - "loc": { - "start": { - "line": 150, - "column": 4 - }, - "end": { - "line": 163, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 4383, - "end": 4794, - "loc": { - "start": { - "line": 150, - "column": 10 - }, - "end": { - "line": 163, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 4383, - "end": 4386, - "loc": { - "start": { - "line": 150, - "column": 10 - }, - "end": { - "line": 150, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 4389, - "end": 4794, - "loc": { - "start": { - "line": 150, - "column": 16 - }, - "end": { - "line": 163, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4389, - "end": 4761, - "loc": { - "start": { - "line": 150, - "column": 16 - }, - "end": { - "line": 163, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 4389, - "end": 4751, - "loc": { - "start": { - "line": 150, - "column": 16 - }, - "end": { - "line": 162, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4389, - "end": 4409, - "loc": { - "start": { - "line": 150, - "column": 16 - }, - "end": { - "line": 151, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 4389, - "end": 4394, - "loc": { - "start": { - "line": 150, - "column": 16 - }, - "end": { - "line": 150, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 4402, - "end": 4409, - "loc": { - "start": { - "line": 151, - "column": 7 - }, - "end": { - "line": 151, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 4410, - "end": 4723, - "loc": { - "start": { - "line": 151, - "column": 15 - }, - "end": { - "line": 162, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 4410, - "end": 4429, - "loc": { - "start": { - "line": 151, - "column": 15 - }, - "end": { - "line": 151, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 4430, - "end": 4722, - "loc": { - "start": { - "line": 151, - "column": 35 - }, - "end": { - "line": 162, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4440, - "end": 4454, - "loc": { - "start": { - "line": 152, - "column": 8 - }, - "end": { - "line": 152, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4440, - "end": 4446, - "loc": { - "start": { - "line": 152, - "column": 8 - }, - "end": { - "line": 152, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 4448, - "end": 4454, - "loc": { - "start": { - "line": 152, - "column": 16 - }, - "end": { - "line": 152, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 4464, - "end": 4501, - "loc": { - "start": { - "line": 153, - "column": 8 - }, - "end": { - "line": 153, - "column": 45 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4464, - "end": 4468, - "loc": { - "start": { - "line": 153, - "column": 8 - }, - "end": { - "line": 153, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 4470, - "end": 4501, - "loc": { - "start": { - "line": 153, - "column": 14 - }, - "end": { - "line": 153, - "column": 45 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 4483, - "end": 4494, - "loc": { - "start": { - "line": 153, - "column": 27 - }, - "end": { - "line": 153, - "column": 38 - }, - "identifierName": "template_id" - }, - "name": "template_id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 4471, - "end": 4481, - "loc": { - "start": { - "line": 153, - "column": 15 - }, - "end": { - "line": 153, - "column": 25 - } - }, - "value": { - "raw": "/template/", - "cooked": "/template/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 4495, - "end": 4500, - "loc": { - "start": { - "line": 153, - "column": 39 - }, - "end": { - "line": 153, - "column": 44 - } - }, - "value": { - "raw": "/copy", - "cooked": "/copy" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 4511, - "end": 4580, - "loc": { - "start": { - "line": 154, - "column": 8 - }, - "end": { - "line": 157, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4511, - "end": 4524, - "loc": { - "start": { - "line": 154, - "column": 8 - }, - "end": { - "line": 154, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 4526, - "end": 4580, - "loc": { - "start": { - "line": 154, - "column": 23 - }, - "end": { - "line": 157, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4538, - "end": 4552, - "loc": { - "start": { - "line": 155, - "column": 10 - }, - "end": { - "line": 155, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4538, - "end": 4542, - "loc": { - "start": { - "line": 155, - "column": 10 - }, - "end": { - "line": 155, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 4544, - "end": 4552, - "loc": { - "start": { - "line": 155, - "column": 16 - }, - "end": { - "line": 155, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 4564, - "end": 4569, - "loc": { - "start": { - "line": 156, - "column": 10 - }, - "end": { - "line": 156, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 4564, - "end": 4569, - "loc": { - "start": { - "line": 156, - "column": 10 - }, - "end": { - "line": 156, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 4564, - "end": 4569, - "loc": { - "start": { - "line": 156, - "column": 10 - }, - "end": { - "line": 156, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 4590, - "end": 4713, - "loc": { - "start": { - "line": 158, - "column": 8 - }, - "end": { - "line": 161, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4590, - "end": 4597, - "loc": { - "start": { - "line": 158, - "column": 8 - }, - "end": { - "line": 158, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 4599, - "end": 4713, - "loc": { - "start": { - "line": 158, - "column": 17 - }, - "end": { - "line": 161, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4611, - "end": 4645, - "loc": { - "start": { - "line": 159, - "column": 10 - }, - "end": { - "line": 159, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 4611, - "end": 4625, - "loc": { - "start": { - "line": 159, - "column": 10 - }, - "end": { - "line": 159, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 4627, - "end": 4645, - "loc": { - "start": { - "line": 159, - "column": 26 - }, - "end": { - "line": 159, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 4657, - "end": 4702, - "loc": { - "start": { - "line": 160, - "column": 10 - }, - "end": { - "line": 160, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 4657, - "end": 4673, - "loc": { - "start": { - "line": 160, - "column": 10 - }, - "end": { - "line": 160, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 4675, - "end": 4702, - "loc": { - "start": { - "line": 160, - "column": 28 - }, - "end": { - "line": 160, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4675, - "end": 4692, - "loc": { - "start": { - "line": 160, - "column": 28 - }, - "end": { - "line": 160, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 4675, - "end": 4681, - "loc": { - "start": { - "line": 160, - "column": 28 - }, - "end": { - "line": 160, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 4682, - "end": 4692, - "loc": { - "start": { - "line": 160, - "column": 35 - }, - "end": { - "line": 160, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 4693, - "end": 4701, - "loc": { - "start": { - "line": 160, - "column": 46 - }, - "end": { - "line": 160, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 4725, - "end": 4750, - "loc": { - "start": { - "line": 162, - "column": 10 - }, - "end": { - "line": 162, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 4725, - "end": 4740, - "loc": { - "start": { - "line": 162, - "column": 10 - }, - "end": { - "line": 162, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 4741, - "end": 4749, - "loc": { - "start": { - "line": 162, - "column": 26 - }, - "end": { - "line": 162, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 4759, - "end": 4761, - "loc": { - "start": { - "line": 163, - "column": 7 - }, - "end": { - "line": 163, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 4762, - "end": 4769, - "loc": { - "start": { - "line": 163, - "column": 10 - }, - "end": { - "line": 163, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 4771, - "end": 4793, - "loc": { - "start": { - "line": 163, - "column": 19 - }, - "end": { - "line": 163, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 4771, - "end": 4783, - "loc": { - "start": { - "line": 163, - "column": 19 - }, - "end": { - "line": 163, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 4784, - "end": 4792, - "loc": { - "start": { - "line": 163, - "column": 32 - }, - "end": { - "line": 163, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 4801, - "end": 4821, - "loc": { - "start": { - "line": 165, - "column": 4 - }, - "end": { - "line": 165, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 4801, - "end": 4820, - "loc": { - "start": { - "line": 165, - "column": 4 - }, - "end": { - "line": 165, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4801, - "end": 4810, - "loc": { - "start": { - "line": 165, - "column": 4 - }, - "end": { - "line": 165, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 4801, - "end": 4804, - "loc": { - "start": { - "line": 165, - "column": 4 - }, - "end": { - "line": 165, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 4805, - "end": 4810, - "loc": { - "start": { - "line": 165, - "column": 8 - }, - "end": { - "line": 165, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 4811, - "end": 4819, - "loc": { - "start": { - "line": 165, - "column": 14 - }, - "end": { - "line": 165, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 4826, - "end": 4836, - "loc": { - "start": { - "line": 166, - "column": 4 - }, - "end": { - "line": 166, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 4826, - "end": 4835, - "loc": { - "start": { - "line": 166, - "column": 4 - }, - "end": { - "line": 166, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4826, - "end": 4833, - "loc": { - "start": { - "line": 166, - "column": 4 - }, - "end": { - "line": 166, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 4826, - "end": 4829, - "loc": { - "start": { - "line": 166, - "column": 4 - }, - "end": { - "line": 166, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 4830, - "end": 4833, - "loc": { - "start": { - "line": 166, - "column": 8 - }, - "end": { - "line": 166, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Copy template payload\n * @typedef {Object} TemplateDuplicateParams\n * @property {string} id - an id of original template\n * @property {string} name - a name of new document\n * @property {string} token - your auth token\n ", - "start": 3378, - "end": 3619, - "loc": { - "start": { - "line": 119, - "column": 2 - }, - "end": { - "line": 125, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Copy template response data\n * @typedef {Object} TemplateDuplicateResponse\n * @property {string} id - an id of created document\n * @property {string} name - a name of created document\n ", - "start": 3623, - "end": 3827, - "loc": { - "start": { - "line": 127, - "column": 2 - }, - "end": { - "line": 132, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates a new document by copying a template.\n * If a name is not supplied then document name will be set to the original template's name by default.\n * @param {TemplateDuplicateParams} data - duplicate template payload\n * @param {function(err: ApiErrorResponse, res: TemplateDuplicateResponse)} [callback] - error first node.js callback\n ", - "start": 3831, - "end": 4189, - "loc": { - "start": { - "line": 134, - "column": 2 - }, - "end": { - "line": 139, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Create invite with template payload\n * @typedef {DocumentInviteParams} TemplateInviteParams\n ", - "start": 4844, - "end": 4952, - "loc": { - "start": { - "line": 169, - "column": 2 - }, - "end": { - "line": 172, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create invite with template response data\n * @typedef {DocumentInviteResponse} TemplateInviteResponse\n ", - "start": 4956, - "end": 5074, - "loc": { - "start": { - "line": 174, - "column": 2 - }, - "end": { - "line": 177, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates an invite to sign a template.\n * You can create a simple free form invite(s) or a role-based invite(s).\n * The method copies a template into document and creates an invite using created document.\n * @param {TemplateInviteParams} data - create template invite payload\n * @param {function(err: ApiErrorResponse, res: TemplateInviteResponse)} [callback] - error first node.js callback\n ", - "start": 5078, - "end": 5490, - "loc": { - "start": { - "line": 179, - "column": 2 - }, - "end": { - "line": 185, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 5493, - "end": 6903, - "loc": { - "start": { - "line": 186, - "column": 2 - }, - "end": { - "line": 242, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5500, - "end": 5506, - "loc": { - "start": { - "line": 186, - "column": 9 - }, - "end": { - "line": 186, - "column": 15 - }, - "identifierName": "invite" - }, - "name": "invite" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 5508, - "end": 5555, - "loc": { - "start": { - "line": 186, - "column": 17 - }, - "end": { - "line": 191, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5514, - "end": 5516, - "loc": { - "start": { - "line": 187, - "column": 4 - }, - "end": { - "line": 187, - "column": 6 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5514, - "end": 5516, - "loc": { - "start": { - "line": 187, - "column": 4 - }, - "end": { - "line": 187, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 5514, - "end": 5516, - "loc": { - "start": { - "line": 187, - "column": 4 - }, - "end": { - "line": 187, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 5522, - "end": 5526, - "loc": { - "start": { - "line": 188, - "column": 4 - }, - "end": { - "line": 188, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5522, - "end": 5526, - "loc": { - "start": { - "line": 188, - "column": 4 - }, - "end": { - "line": 188, - "column": 8 - }, - "identifierName": "data" - }, - "name": "data" - }, - "value": { - "type": "Identifier", - "start": 5522, - "end": 5526, - "loc": { - "start": { - "line": 188, - "column": 4 - }, - "end": { - "line": 188, - "column": 8 - }, - "identifierName": "data" - }, - "name": "data" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 5532, - "end": 5539, - "loc": { - "start": { - "line": 189, - "column": 4 - }, - "end": { - "line": 189, - "column": 11 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5532, - "end": 5539, - "loc": { - "start": { - "line": 189, - "column": 4 - }, - "end": { - "line": 189, - "column": 11 - }, - "identifierName": "options" - }, - "name": "options" - }, - "value": { - "type": "Identifier", - "start": 5532, - "end": 5539, - "loc": { - "start": { - "line": 189, - "column": 4 - }, - "end": { - "line": 189, - "column": 11 - }, - "identifierName": "options" - }, - "name": "options" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 5545, - "end": 5550, - "loc": { - "start": { - "line": 190, - "column": 4 - }, - "end": { - "line": 190, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5545, - "end": 5550, - "loc": { - "start": { - "line": 190, - "column": 4 - }, - "end": { - "line": 190, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 5545, - "end": 5550, - "loc": { - "start": { - "line": 190, - "column": 4 - }, - "end": { - "line": 190, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 5557, - "end": 5565, - "loc": { - "start": { - "line": 191, - "column": 5 - }, - "end": { - "line": 191, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 5567, - "end": 6903, - "loc": { - "start": { - "line": 191, - "column": 15 - }, - "end": { - "line": 242, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 5573, - "end": 6899, - "loc": { - "start": { - "line": 192, - "column": 4 - }, - "end": { - "line": 241, - "column": 7 - } - }, - "expression": { - "type": "CallExpression", - "start": 5573, - "end": 6898, - "loc": { - "start": { - "line": 192, - "column": 4 - }, - "end": { - "line": 241, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5573, - "end": 5591, - "loc": { - "start": { - "line": 192, - "column": 4 - }, - "end": { - "line": 192, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 5573, - "end": 5581, - "loc": { - "start": { - "line": 192, - "column": 4 - }, - "end": { - "line": 192, - "column": 12 - }, - "identifierName": "Template" - }, - "name": "Template" - }, - "property": { - "type": "Identifier", - "start": 5582, - "end": 5591, - "loc": { - "start": { - "line": 192, - "column": 13 - }, - "end": { - "line": 192, - "column": 22 - }, - "identifierName": "duplicate" - }, - "name": "duplicate" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 5592, - "end": 5622, - "loc": { - "start": { - "line": 192, - "column": 23 - }, - "end": { - "line": 195, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5600, - "end": 5602, - "loc": { - "start": { - "line": 193, - "column": 6 - }, - "end": { - "line": 193, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5600, - "end": 5602, - "loc": { - "start": { - "line": 193, - "column": 6 - }, - "end": { - "line": 193, - "column": 8 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 5600, - "end": 5602, - "loc": { - "start": { - "line": 193, - "column": 6 - }, - "end": { - "line": 193, - "column": 8 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 5610, - "end": 5615, - "loc": { - "start": { - "line": 194, - "column": 6 - }, - "end": { - "line": 194, - "column": 11 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5610, - "end": 5615, - "loc": { - "start": { - "line": 194, - "column": 6 - }, - "end": { - "line": 194, - "column": 11 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 5610, - "end": 5615, - "loc": { - "start": { - "line": 194, - "column": 6 - }, - "end": { - "line": 194, - "column": 11 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "ArrowFunctionExpression", - "start": 5624, - "end": 6897, - "loc": { - "start": { - "line": 195, - "column": 7 - }, - "end": { - "line": 241, - "column": 5 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 5625, - "end": 5632, - "loc": { - "start": { - "line": 195, - "column": 8 - }, - "end": { - "line": 195, - "column": 15 - }, - "identifierName": "copyErr" - }, - "name": "copyErr" - }, - { - "type": "Identifier", - "start": 5634, - "end": 5641, - "loc": { - "start": { - "line": 195, - "column": 17 - }, - "end": { - "line": 195, - "column": 24 - }, - "identifierName": "copyRes" - }, - "name": "copyRes" - } - ], - "body": { - "type": "BlockStatement", - "start": 5646, - "end": 6897, - "loc": { - "start": { - "line": 195, - "column": 29 - }, - "end": { - "line": 241, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 5654, - "end": 6891, - "loc": { - "start": { - "line": 196, - "column": 6 - }, - "end": { - "line": 240, - "column": 7 - } - }, - "test": { - "type": "Identifier", - "start": 5658, - "end": 5665, - "loc": { - "start": { - "line": 196, - "column": 10 - }, - "end": { - "line": 196, - "column": 17 - }, - "identifierName": "copyErr" - }, - "name": "copyErr" - }, - "consequent": { - "type": "BlockStatement", - "start": 5667, - "end": 5719, - "loc": { - "start": { - "line": 196, - "column": 19 - }, - "end": { - "line": 199, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 5677, - "end": 5695, - "loc": { - "start": { - "line": 197, - "column": 8 - }, - "end": { - "line": 197, - "column": 26 - } - }, - "expression": { - "type": "CallExpression", - "start": 5677, - "end": 5694, - "loc": { - "start": { - "line": 197, - "column": 8 - }, - "end": { - "line": 197, - "column": 25 - } - }, - "callee": { - "type": "Identifier", - "start": 5677, - "end": 5685, - "loc": { - "start": { - "line": 197, - "column": 8 - }, - "end": { - "line": 197, - "column": 16 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 5686, - "end": 5693, - "loc": { - "start": { - "line": 197, - "column": 17 - }, - "end": { - "line": 197, - "column": 24 - }, - "identifierName": "copyErr" - }, - "name": "copyErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 5704, - "end": 5711, - "loc": { - "start": { - "line": 198, - "column": 8 - }, - "end": { - "line": 198, - "column": 15 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "IfStatement", - "start": 5725, - "end": 6891, - "loc": { - "start": { - "line": 199, - "column": 13 - }, - "end": { - "line": 240, - "column": 7 - } - }, - "test": { - "type": "CallExpression", - "start": 5729, - "end": 5751, - "loc": { - "start": { - "line": 199, - "column": 17 - }, - "end": { - "line": 199, - "column": 39 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5729, - "end": 5742, - "loc": { - "start": { - "line": 199, - "column": 17 - }, - "end": { - "line": 199, - "column": 30 - } - }, - "object": { - "type": "Identifier", - "start": 5729, - "end": 5734, - "loc": { - "start": { - "line": 199, - "column": 17 - }, - "end": { - "line": 199, - "column": 22 - }, - "identifierName": "Array" - }, - "name": "Array" - }, - "property": { - "type": "Identifier", - "start": 5735, - "end": 5742, - "loc": { - "start": { - "line": 199, - "column": 23 - }, - "end": { - "line": 199, - "column": 30 - }, - "identifierName": "isArray" - }, - "name": "isArray" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 5743, - "end": 5750, - "loc": { - "start": { - "line": 199, - "column": 31 - }, - "end": { - "line": 199, - "column": 38 - } - }, - "object": { - "type": "Identifier", - "start": 5743, - "end": 5747, - "loc": { - "start": { - "line": 199, - "column": 31 - }, - "end": { - "line": 199, - "column": 35 - }, - "identifierName": "data" - }, - "name": "data" - }, - "property": { - "type": "Identifier", - "start": 5748, - "end": 5750, - "loc": { - "start": { - "line": 199, - "column": 36 - }, - "end": { - "line": 199, - "column": 38 - }, - "identifierName": "to" - }, - "name": "to" - }, - "computed": false - } - ] - }, - "consequent": { - "type": "BlockStatement", - "start": 5753, - "end": 6609, - "loc": { - "start": { - "line": 199, - "column": 41 - }, - "end": { - "line": 230, - "column": 7 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 5763, - "end": 5798, - "loc": { - "start": { - "line": 200, - "column": 8 - }, - "end": { - "line": 200, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 5769, - "end": 5797, - "loc": { - "start": { - "line": 200, - "column": 14 - }, - "end": { - "line": 200, - "column": 42 - } - }, - "id": { - "type": "ObjectPattern", - "start": 5769, - "end": 5787, - "loc": { - "start": { - "line": 200, - "column": 14 - }, - "end": { - "line": 200, - "column": 32 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5771, - "end": 5785, - "loc": { - "start": { - "line": 200, - "column": 16 - }, - "end": { - "line": 200, - "column": 30 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5771, - "end": 5773, - "loc": { - "start": { - "line": 200, - "column": 16 - }, - "end": { - "line": 200, - "column": 18 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 5775, - "end": 5785, - "loc": { - "start": { - "line": 200, - "column": 20 - }, - "end": { - "line": 200, - "column": 30 - }, - "identifierName": "documentId" - }, - "name": "documentId" - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 5790, - "end": 5797, - "loc": { - "start": { - "line": 200, - "column": 35 - }, - "end": { - "line": 200, - "column": 42 - }, - "identifierName": "copyRes" - }, - "name": "copyRes" - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 5808, - "end": 6601, - "loc": { - "start": { - "line": 202, - "column": 8 - }, - "end": { - "line": 229, - "column": 11 - } - }, - "expression": { - "type": "CallExpression", - "start": 5808, - "end": 6600, - "loc": { - "start": { - "line": 202, - "column": 8 - }, - "end": { - "line": 229, - "column": 10 - } - }, - "callee": { - "type": "Identifier", - "start": 5808, - "end": 5826, - "loc": { - "start": { - "line": 202, - "column": 8 - }, - "end": { - "line": 202, - "column": 26 - }, - "identifierName": "getDocumentDetails" - }, - "name": "getDocumentDetails" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 5827, - "end": 5881, - "loc": { - "start": { - "line": 202, - "column": 27 - }, - "end": { - "line": 205, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5839, - "end": 5853, - "loc": { - "start": { - "line": 203, - "column": 10 - }, - "end": { - "line": 203, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5839, - "end": 5841, - "loc": { - "start": { - "line": 203, - "column": 10 - }, - "end": { - "line": 203, - "column": 12 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 5843, - "end": 5853, - "loc": { - "start": { - "line": 203, - "column": 14 - }, - "end": { - "line": 203, - "column": 24 - }, - "identifierName": "documentId" - }, - "name": "documentId" - } - }, - { - "type": "ObjectProperty", - "start": 5865, - "end": 5870, - "loc": { - "start": { - "line": 204, - "column": 10 - }, - "end": { - "line": 204, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5865, - "end": 5870, - "loc": { - "start": { - "line": 204, - "column": 10 - }, - "end": { - "line": 204, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 5865, - "end": 5870, - "loc": { - "start": { - "line": 204, - "column": 10 - }, - "end": { - "line": 204, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "ArrowFunctionExpression", - "start": 5883, - "end": 6599, - "loc": { - "start": { - "line": 205, - "column": 11 - }, - "end": { - "line": 229, - "column": 9 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 5884, - "end": 5893, - "loc": { - "start": { - "line": 205, - "column": 12 - }, - "end": { - "line": 205, - "column": 21 - }, - "identifierName": "detailErr" - }, - "name": "detailErr" - }, - { - "type": "Identifier", - "start": 5895, - "end": 5904, - "loc": { - "start": { - "line": 205, - "column": 23 - }, - "end": { - "line": 205, - "column": 32 - }, - "identifierName": "detailRes" - }, - "name": "detailRes" - } - ], - "body": { - "type": "BlockStatement", - "start": 5909, - "end": 6599, - "loc": { - "start": { - "line": 205, - "column": 37 - }, - "end": { - "line": 229, - "column": 9 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 5921, - "end": 6589, - "loc": { - "start": { - "line": 206, - "column": 10 - }, - "end": { - "line": 228, - "column": 11 - } - }, - "test": { - "type": "Identifier", - "start": 5925, - "end": 5934, - "loc": { - "start": { - "line": 206, - "column": 14 - }, - "end": { - "line": 206, - "column": 23 - }, - "identifierName": "detailErr" - }, - "name": "detailErr" - }, - "consequent": { - "type": "BlockStatement", - "start": 5936, - "end": 6002, - "loc": { - "start": { - "line": 206, - "column": 25 - }, - "end": { - "line": 209, - "column": 11 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 5950, - "end": 5970, - "loc": { - "start": { - "line": 207, - "column": 12 - }, - "end": { - "line": 207, - "column": 32 - } - }, - "expression": { - "type": "CallExpression", - "start": 5950, - "end": 5969, - "loc": { - "start": { - "line": 207, - "column": 12 - }, - "end": { - "line": 207, - "column": 31 - } - }, - "callee": { - "type": "Identifier", - "start": 5950, - "end": 5958, - "loc": { - "start": { - "line": 207, - "column": 12 - }, - "end": { - "line": 207, - "column": 20 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 5959, - "end": 5968, - "loc": { - "start": { - "line": 207, - "column": 21 - }, - "end": { - "line": 207, - "column": 30 - }, - "identifierName": "detailErr" - }, - "name": "detailErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 5983, - "end": 5990, - "loc": { - "start": { - "line": 208, - "column": 12 - }, - "end": { - "line": 208, - "column": 19 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 6008, - "end": 6589, - "loc": { - "start": { - "line": 209, - "column": 17 - }, - "end": { - "line": 228, - "column": 11 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 6022, - "end": 6094, - "loc": { - "start": { - "line": 210, - "column": 12 - }, - "end": { - "line": 210, - "column": 84 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 6028, - "end": 6093, - "loc": { - "start": { - "line": 210, - "column": 18 - }, - "end": { - "line": 210, - "column": 83 - } - }, - "id": { - "type": "Identifier", - "start": 6028, - "end": 6038, - "loc": { - "start": { - "line": 210, - "column": 18 - }, - "end": { - "line": 210, - "column": 28 - }, - "identifierName": "inviteData" - }, - "name": "inviteData" - }, - "init": { - "type": "CallExpression", - "start": 6041, - "end": 6093, - "loc": { - "start": { - "line": 210, - "column": 31 - }, - "end": { - "line": 210, - "column": 83 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6041, - "end": 6054, - "loc": { - "start": { - "line": 210, - "column": 31 - }, - "end": { - "line": 210, - "column": 44 - } - }, - "object": { - "type": "Identifier", - "start": 6041, - "end": 6047, - "loc": { - "start": { - "line": 210, - "column": 31 - }, - "end": { - "line": 210, - "column": 37 - }, - "identifierName": "Object" - }, - "name": "Object" - }, - "property": { - "type": "Identifier", - "start": 6048, - "end": 6054, - "loc": { - "start": { - "line": 210, - "column": 38 - }, - "end": { - "line": 210, - "column": 44 - }, - "identifierName": "assign" - }, - "name": "assign" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 6055, - "end": 6057, - "loc": { - "start": { - "line": 210, - "column": 45 - }, - "end": { - "line": 210, - "column": 47 - } - }, - "properties": [] - }, - { - "type": "Identifier", - "start": 6059, - "end": 6063, - "loc": { - "start": { - "line": 210, - "column": 49 - }, - "end": { - "line": 210, - "column": 53 - }, - "identifierName": "data" - }, - "name": "data" - }, - { - "type": "ObjectExpression", - "start": 6065, - "end": 6092, - "loc": { - "start": { - "line": 210, - "column": 55 - }, - "end": { - "line": 210, - "column": 82 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 6067, - "end": 6090, - "loc": { - "start": { - "line": 210, - "column": 57 - }, - "end": { - "line": 210, - "column": 80 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6067, - "end": 6078, - "loc": { - "start": { - "line": 210, - "column": 57 - }, - "end": { - "line": 210, - "column": 68 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "value": { - "type": "Identifier", - "start": 6080, - "end": 6090, - "loc": { - "start": { - "line": 210, - "column": 70 - }, - "end": { - "line": 210, - "column": 80 - }, - "identifierName": "documentId" - }, - "name": "documentId" - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 6107, - "end": 6135, - "loc": { - "start": { - "line": 211, - "column": 12 - }, - "end": { - "line": 211, - "column": 40 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 6113, - "end": 6134, - "loc": { - "start": { - "line": 211, - "column": 18 - }, - "end": { - "line": 211, - "column": 39 - } - }, - "id": { - "type": "ObjectPattern", - "start": 6113, - "end": 6122, - "loc": { - "start": { - "line": 211, - "column": 18 - }, - "end": { - "line": 211, - "column": 27 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 6115, - "end": 6120, - "loc": { - "start": { - "line": 211, - "column": 20 - }, - "end": { - "line": 211, - "column": 25 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 6115, - "end": 6120, - "loc": { - "start": { - "line": 211, - "column": 20 - }, - "end": { - "line": 211, - "column": 25 - }, - "identifierName": "roles" - }, - "name": "roles" - }, - "value": { - "type": "Identifier", - "start": 6115, - "end": 6120, - "loc": { - "start": { - "line": 211, - "column": 20 - }, - "end": { - "line": 211, - "column": 25 - }, - "identifierName": "roles" - }, - "name": "roles" - }, - "extra": { - "shorthand": true - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 6125, - "end": 6134, - "loc": { - "start": { - "line": 211, - "column": 30 - }, - "end": { - "line": 211, - "column": 39 - }, - "identifierName": "detailRes" - }, - "name": "detailRes" - } - } - ], - "kind": "const" - }, - { - "type": "ForOfStatement", - "start": 6149, - "end": 6411, - "loc": { - "start": { - "line": 213, - "column": 12 - }, - "end": { - "line": 220, - "column": 13 - } - }, - "left": { - "type": "VariableDeclaration", - "start": 6154, - "end": 6166, - "loc": { - "start": { - "line": 213, - "column": 17 - }, - "end": { - "line": 213, - "column": 29 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 6160, - "end": 6166, - "loc": { - "start": { - "line": 213, - "column": 23 - }, - "end": { - "line": 213, - "column": 29 - } - }, - "id": { - "type": "Identifier", - "start": 6160, - "end": 6166, - "loc": { - "start": { - "line": 213, - "column": 23 - }, - "end": { - "line": 213, - "column": 29 - }, - "identifierName": "signer" - }, - "name": "signer" - }, - "init": null - } - ], - "kind": "const" - }, - "right": { - "type": "MemberExpression", - "start": 6170, - "end": 6183, - "loc": { - "start": { - "line": 213, - "column": 33 - }, - "end": { - "line": 213, - "column": 46 - } - }, - "object": { - "type": "Identifier", - "start": 6170, - "end": 6180, - "loc": { - "start": { - "line": 213, - "column": 33 - }, - "end": { - "line": 213, - "column": 43 - }, - "identifierName": "inviteData" - }, - "name": "inviteData" - }, - "property": { - "type": "Identifier", - "start": 6181, - "end": 6183, - "loc": { - "start": { - "line": 213, - "column": 44 - }, - "end": { - "line": 213, - "column": 46 - }, - "identifierName": "to" - }, - "name": "to" - }, - "computed": false - }, - "body": { - "type": "BlockStatement", - "start": 6185, - "end": 6411, - "loc": { - "start": { - "line": 213, - "column": 48 - }, - "end": { - "line": 220, - "column": 13 - } - }, - "body": [ - { - "type": "TryStatement", - "start": 6201, - "end": 6397, - "loc": { - "start": { - "line": 214, - "column": 14 - }, - "end": { - "line": 219, - "column": 15 - } - }, - "block": { - "type": "BlockStatement", - "start": 6205, - "end": 6312, - "loc": { - "start": { - "line": 214, - "column": 18 - }, - "end": { - "line": 216, - "column": 15 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 6223, - "end": 6296, - "loc": { - "start": { - "line": 215, - "column": 16 - }, - "end": { - "line": 215, - "column": 89 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 6223, - "end": 6295, - "loc": { - "start": { - "line": 215, - "column": 16 - }, - "end": { - "line": 215, - "column": 88 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 6223, - "end": 6237, - "loc": { - "start": { - "line": 215, - "column": 16 - }, - "end": { - "line": 215, - "column": 30 - } - }, - "object": { - "type": "Identifier", - "start": 6223, - "end": 6229, - "loc": { - "start": { - "line": 215, - "column": 16 - }, - "end": { - "line": 215, - "column": 22 - }, - "identifierName": "signer" - }, - "name": "signer" - }, - "property": { - "type": "Identifier", - "start": 6230, - "end": 6237, - "loc": { - "start": { - "line": 215, - "column": 23 - }, - "end": { - "line": 215, - "column": 30 - }, - "identifierName": "role_id" - }, - "name": "role_id" - }, - "computed": false - }, - "right": { - "type": "MemberExpression", - "start": 6240, - "end": 6295, - "loc": { - "start": { - "line": 215, - "column": 33 - }, - "end": { - "line": 215, - "column": 88 - } - }, - "object": { - "type": "CallExpression", - "start": 6240, - "end": 6285, - "loc": { - "start": { - "line": 215, - "column": 33 - }, - "end": { - "line": 215, - "column": 78 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6240, - "end": 6250, - "loc": { - "start": { - "line": 215, - "column": 33 - }, - "end": { - "line": 215, - "column": 43 - } - }, - "object": { - "type": "Identifier", - "start": 6240, - "end": 6245, - "loc": { - "start": { - "line": 215, - "column": 33 - }, - "end": { - "line": 215, - "column": 38 - }, - "identifierName": "roles" - }, - "name": "roles" - }, - "property": { - "type": "Identifier", - "start": 6246, - "end": 6250, - "loc": { - "start": { - "line": 215, - "column": 39 - }, - "end": { - "line": 215, - "column": 43 - }, - "identifierName": "find" - }, - "name": "find" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 6251, - "end": 6284, - "loc": { - "start": { - "line": 215, - "column": 44 - }, - "end": { - "line": 215, - "column": 77 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 6251, - "end": 6255, - "loc": { - "start": { - "line": 215, - "column": 44 - }, - "end": { - "line": 215, - "column": 48 - }, - "identifierName": "role" - }, - "name": "role" - } - ], - "body": { - "type": "BinaryExpression", - "start": 6259, - "end": 6284, - "loc": { - "start": { - "line": 215, - "column": 52 - }, - "end": { - "line": 215, - "column": 77 - } - }, - "left": { - "type": "MemberExpression", - "start": 6259, - "end": 6268, - "loc": { - "start": { - "line": 215, - "column": 52 - }, - "end": { - "line": 215, - "column": 61 - } - }, - "object": { - "type": "Identifier", - "start": 6259, - "end": 6263, - "loc": { - "start": { - "line": 215, - "column": 52 - }, - "end": { - "line": 215, - "column": 56 - }, - "identifierName": "role" - }, - "name": "role" - }, - "property": { - "type": "Identifier", - "start": 6264, - "end": 6268, - "loc": { - "start": { - "line": 215, - "column": 57 - }, - "end": { - "line": 215, - "column": 61 - }, - "identifierName": "name" - }, - "name": "name" - }, - "computed": false - }, - "operator": "===", - "right": { - "type": "MemberExpression", - "start": 6273, - "end": 6284, - "loc": { - "start": { - "line": 215, - "column": 66 - }, - "end": { - "line": 215, - "column": 77 - } - }, - "object": { - "type": "Identifier", - "start": 6273, - "end": 6279, - "loc": { - "start": { - "line": 215, - "column": 66 - }, - "end": { - "line": 215, - "column": 72 - }, - "identifierName": "signer" - }, - "name": "signer" - }, - "property": { - "type": "Identifier", - "start": 6280, - "end": 6284, - "loc": { - "start": { - "line": 215, - "column": 73 - }, - "end": { - "line": 215, - "column": 77 - }, - "identifierName": "role" - }, - "name": "role" - }, - "computed": false - } - } - } - ] - }, - "property": { - "type": "Identifier", - "start": 6286, - "end": 6295, - "loc": { - "start": { - "line": 215, - "column": 79 - }, - "end": { - "line": 215, - "column": 88 - }, - "identifierName": "unique_id" - }, - "name": "unique_id" - }, - "computed": false - } - } - } - ], - "directives": [] - }, - "handler": { - "type": "CatchClause", - "start": 6313, - "end": 6397, - "loc": { - "start": { - "line": 216, - "column": 16 - }, - "end": { - "line": 219, - "column": 15 - } - }, - "param": { - "type": "Identifier", - "start": 6320, - "end": 6323, - "loc": { - "start": { - "line": 216, - "column": 23 - }, - "end": { - "line": 216, - "column": 26 - }, - "identifierName": "err" - }, - "name": "err" - }, - "body": { - "type": "BlockStatement", - "start": 6325, - "end": 6397, - "loc": { - "start": { - "line": 216, - "column": 28 - }, - "end": { - "line": 219, - "column": 15 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 6343, - "end": 6357, - "loc": { - "start": { - "line": 217, - "column": 16 - }, - "end": { - "line": 217, - "column": 30 - } - }, - "expression": { - "type": "CallExpression", - "start": 6343, - "end": 6356, - "loc": { - "start": { - "line": 217, - "column": 16 - }, - "end": { - "line": 217, - "column": 29 - } - }, - "callee": { - "type": "Identifier", - "start": 6343, - "end": 6351, - "loc": { - "start": { - "line": 217, - "column": 16 - }, - "end": { - "line": 217, - "column": 24 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 6352, - "end": 6355, - "loc": { - "start": { - "line": 217, - "column": 25 - }, - "end": { - "line": 217, - "column": 28 - }, - "identifierName": "err" - }, - "name": "err" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 6374, - "end": 6381, - "loc": { - "start": { - "line": 218, - "column": 16 - }, - "end": { - "line": 218, - "column": 23 - } - }, - "argument": null - } - ], - "directives": [] - } - }, - "guardedHandlers": [], - "finalizer": null - } - ], - "directives": [] - } - }, - { - "type": "ExpressionStatement", - "start": 6425, - "end": 6577, - "loc": { - "start": { - "line": 222, - "column": 12 - }, - "end": { - "line": 227, - "column": 25 - } - }, - "expression": { - "type": "CallExpression", - "start": 6425, - "end": 6576, - "loc": { - "start": { - "line": 222, - "column": 12 - }, - "end": { - "line": 227, - "column": 24 - } - }, - "callee": { - "type": "Identifier", - "start": 6425, - "end": 6443, - "loc": { - "start": { - "line": 222, - "column": 12 - }, - "end": { - "line": 222, - "column": 30 - }, - "identifierName": "sendDocumentInvite" - }, - "name": "sendDocumentInvite" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 6444, - "end": 6565, - "loc": { - "start": { - "line": 222, - "column": 31 - }, - "end": { - "line": 227, - "column": 13 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 6460, - "end": 6474, - "loc": { - "start": { - "line": 223, - "column": 14 - }, - "end": { - "line": 223, - "column": 28 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6460, - "end": 6462, - "loc": { - "start": { - "line": 223, - "column": 14 - }, - "end": { - "line": 223, - "column": 16 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 6464, - "end": 6474, - "loc": { - "start": { - "line": 223, - "column": 18 - }, - "end": { - "line": 223, - "column": 28 - }, - "identifierName": "documentId" - }, - "name": "documentId" - } - }, - { - "type": "ObjectProperty", - "start": 6490, - "end": 6506, - "loc": { - "start": { - "line": 224, - "column": 14 - }, - "end": { - "line": 224, - "column": 30 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6490, - "end": 6494, - "loc": { - "start": { - "line": 224, - "column": 14 - }, - "end": { - "line": 224, - "column": 18 - }, - "identifierName": "data" - }, - "name": "data" - }, - "value": { - "type": "Identifier", - "start": 6496, - "end": 6506, - "loc": { - "start": { - "line": 224, - "column": 20 - }, - "end": { - "line": 224, - "column": 30 - }, - "identifierName": "inviteData" - }, - "name": "inviteData" - } - }, - { - "type": "ObjectProperty", - "start": 6522, - "end": 6529, - "loc": { - "start": { - "line": 225, - "column": 14 - }, - "end": { - "line": 225, - "column": 21 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 6522, - "end": 6529, - "loc": { - "start": { - "line": 225, - "column": 14 - }, - "end": { - "line": 225, - "column": 21 - }, - "identifierName": "options" - }, - "name": "options" - }, - "value": { - "type": "Identifier", - "start": 6522, - "end": 6529, - "loc": { - "start": { - "line": 225, - "column": 14 - }, - "end": { - "line": 225, - "column": 21 - }, - "identifierName": "options" - }, - "name": "options" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 6545, - "end": 6550, - "loc": { - "start": { - "line": 226, - "column": 14 - }, - "end": { - "line": 226, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 6545, - "end": 6550, - "loc": { - "start": { - "line": 226, - "column": 14 - }, - "end": { - "line": 226, - "column": 19 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 6545, - "end": 6550, - "loc": { - "start": { - "line": 226, - "column": 14 - }, - "end": { - "line": 226, - "column": 19 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 6567, - "end": 6575, - "loc": { - "start": { - "line": 227, - "column": 15 - }, - "end": { - "line": 227, - "column": 23 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 6615, - "end": 6891, - "loc": { - "start": { - "line": 230, - "column": 13 - }, - "end": { - "line": 240, - "column": 7 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 6625, - "end": 6660, - "loc": { - "start": { - "line": 231, - "column": 8 - }, - "end": { - "line": 231, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 6631, - "end": 6659, - "loc": { - "start": { - "line": 231, - "column": 14 - }, - "end": { - "line": 231, - "column": 42 - } - }, - "id": { - "type": "ObjectPattern", - "start": 6631, - "end": 6649, - "loc": { - "start": { - "line": 231, - "column": 14 - }, - "end": { - "line": 231, - "column": 32 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 6633, - "end": 6647, - "loc": { - "start": { - "line": 231, - "column": 16 - }, - "end": { - "line": 231, - "column": 30 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6633, - "end": 6635, - "loc": { - "start": { - "line": 231, - "column": 16 - }, - "end": { - "line": 231, - "column": 18 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 6637, - "end": 6647, - "loc": { - "start": { - "line": 231, - "column": 20 - }, - "end": { - "line": 231, - "column": 30 - }, - "identifierName": "documentId" - }, - "name": "documentId" - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 6652, - "end": 6659, - "loc": { - "start": { - "line": 231, - "column": 35 - }, - "end": { - "line": 231, - "column": 42 - }, - "identifierName": "copyRes" - }, - "name": "copyRes" - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 6669, - "end": 6741, - "loc": { - "start": { - "line": 232, - "column": 8 - }, - "end": { - "line": 232, - "column": 80 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 6675, - "end": 6740, - "loc": { - "start": { - "line": 232, - "column": 14 - }, - "end": { - "line": 232, - "column": 79 - } - }, - "id": { - "type": "Identifier", - "start": 6675, - "end": 6685, - "loc": { - "start": { - "line": 232, - "column": 14 - }, - "end": { - "line": 232, - "column": 24 - }, - "identifierName": "inviteData" - }, - "name": "inviteData" - }, - "init": { - "type": "CallExpression", - "start": 6688, - "end": 6740, - "loc": { - "start": { - "line": 232, - "column": 27 - }, - "end": { - "line": 232, - "column": 79 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6688, - "end": 6701, - "loc": { - "start": { - "line": 232, - "column": 27 - }, - "end": { - "line": 232, - "column": 40 - } - }, - "object": { - "type": "Identifier", - "start": 6688, - "end": 6694, - "loc": { - "start": { - "line": 232, - "column": 27 - }, - "end": { - "line": 232, - "column": 33 - }, - "identifierName": "Object" - }, - "name": "Object" - }, - "property": { - "type": "Identifier", - "start": 6695, - "end": 6701, - "loc": { - "start": { - "line": 232, - "column": 34 - }, - "end": { - "line": 232, - "column": 40 - }, - "identifierName": "assign" - }, - "name": "assign" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 6702, - "end": 6704, - "loc": { - "start": { - "line": 232, - "column": 41 - }, - "end": { - "line": 232, - "column": 43 - } - }, - "properties": [] - }, - { - "type": "Identifier", - "start": 6706, - "end": 6710, - "loc": { - "start": { - "line": 232, - "column": 45 - }, - "end": { - "line": 232, - "column": 49 - }, - "identifierName": "data" - }, - "name": "data" - }, - { - "type": "ObjectExpression", - "start": 6712, - "end": 6739, - "loc": { - "start": { - "line": 232, - "column": 51 - }, - "end": { - "line": 232, - "column": 78 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 6714, - "end": 6737, - "loc": { - "start": { - "line": 232, - "column": 53 - }, - "end": { - "line": 232, - "column": 76 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6714, - "end": 6725, - "loc": { - "start": { - "line": 232, - "column": 53 - }, - "end": { - "line": 232, - "column": 64 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "value": { - "type": "Identifier", - "start": 6727, - "end": 6737, - "loc": { - "start": { - "line": 232, - "column": 66 - }, - "end": { - "line": 232, - "column": 76 - }, - "identifierName": "documentId" - }, - "name": "documentId" - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 6751, - "end": 6883, - "loc": { - "start": { - "line": 234, - "column": 8 - }, - "end": { - "line": 239, - "column": 21 - } - }, - "expression": { - "type": "CallExpression", - "start": 6751, - "end": 6882, - "loc": { - "start": { - "line": 234, - "column": 8 - }, - "end": { - "line": 239, - "column": 20 - } - }, - "callee": { - "type": "Identifier", - "start": 6751, - "end": 6769, - "loc": { - "start": { - "line": 234, - "column": 8 - }, - "end": { - "line": 234, - "column": 26 - }, - "identifierName": "sendDocumentInvite" - }, - "name": "sendDocumentInvite" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 6770, - "end": 6871, - "loc": { - "start": { - "line": 234, - "column": 27 - }, - "end": { - "line": 239, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 6782, - "end": 6796, - "loc": { - "start": { - "line": 235, - "column": 10 - }, - "end": { - "line": 235, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6782, - "end": 6784, - "loc": { - "start": { - "line": 235, - "column": 10 - }, - "end": { - "line": 235, - "column": 12 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 6786, - "end": 6796, - "loc": { - "start": { - "line": 235, - "column": 14 - }, - "end": { - "line": 235, - "column": 24 - }, - "identifierName": "documentId" - }, - "name": "documentId" - } - }, - { - "type": "ObjectProperty", - "start": 6808, - "end": 6824, - "loc": { - "start": { - "line": 236, - "column": 10 - }, - "end": { - "line": 236, - "column": 26 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6808, - "end": 6812, - "loc": { - "start": { - "line": 236, - "column": 10 - }, - "end": { - "line": 236, - "column": 14 - }, - "identifierName": "data" - }, - "name": "data" - }, - "value": { - "type": "Identifier", - "start": 6814, - "end": 6824, - "loc": { - "start": { - "line": 236, - "column": 16 - }, - "end": { - "line": 236, - "column": 26 - }, - "identifierName": "inviteData" - }, - "name": "inviteData" - } - }, - { - "type": "ObjectProperty", - "start": 6836, - "end": 6843, - "loc": { - "start": { - "line": 237, - "column": 10 - }, - "end": { - "line": 237, - "column": 17 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 6836, - "end": 6843, - "loc": { - "start": { - "line": 237, - "column": 10 - }, - "end": { - "line": 237, - "column": 17 - }, - "identifierName": "options" - }, - "name": "options" - }, - "value": { - "type": "Identifier", - "start": 6836, - "end": 6843, - "loc": { - "start": { - "line": 237, - "column": 10 - }, - "end": { - "line": 237, - "column": 17 - }, - "identifierName": "options" - }, - "name": "options" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 6855, - "end": 6860, - "loc": { - "start": { - "line": 238, - "column": 10 - }, - "end": { - "line": 238, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 6855, - "end": 6860, - "loc": { - "start": { - "line": 238, - "column": 10 - }, - "end": { - "line": 238, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 6855, - "end": 6860, - "loc": { - "start": { - "line": 238, - "column": 10 - }, - "end": { - "line": 238, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 6873, - "end": 6881, - "loc": { - "start": { - "line": 239, - "column": 11 - }, - "end": { - "line": 239, - "column": 19 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - } - ], - "directives": [] - } - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Create invite with template payload\n * @typedef {DocumentInviteParams} TemplateInviteParams\n ", - "start": 4844, - "end": 4952, - "loc": { - "start": { - "line": 169, - "column": 2 - }, - "end": { - "line": 172, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create invite with template response data\n * @typedef {DocumentInviteResponse} TemplateInviteResponse\n ", - "start": 4956, - "end": 5074, - "loc": { - "start": { - "line": 174, - "column": 2 - }, - "end": { - "line": 177, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates an invite to sign a template.\n * You can create a simple free form invite(s) or a role-based invite(s).\n * The method copies a template into document and creates an invite using created document.\n * @param {TemplateInviteParams} data - create template invite payload\n * @param {function(err: ApiErrorResponse, res: TemplateInviteResponse)} [callback] - error first node.js callback\n ", - "start": 5078, - "end": 5490, - "loc": { - "start": { - "line": 179, - "column": 2 - }, - "end": { - "line": 185, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Remove template payload\n * @typedef {DocumentRemoveParams} TemplateRemoveParams\n ", - "start": 6907, - "end": 7003, - "loc": { - "start": { - "line": 244, - "column": 2 - }, - "end": { - "line": 247, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Remove template response data\n * @typedef {DocumentRemoveResponse} TemplateRemoveResponse\n ", - "start": 7007, - "end": 7113, - "loc": { - "start": { - "line": 249, - "column": 2 - }, - "end": { - "line": 252, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Removes a specified template from folder\n * @param {TemplateRemoveParams} data - remove template payload\n * @param {function(err: ApiErrorResponse, res: TemplateRemoveResponse)} [callback] - error first node.js callback\n ", - "start": 7117, - "end": 7355, - "loc": { - "start": { - "line": 254, - "column": 2 - }, - "end": { - "line": 258, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 7358, - "end": 7465, - "loc": { - "start": { - "line": 259, - "column": 2 - }, - "end": { - "line": 264, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7365, - "end": 7371, - "loc": { - "start": { - "line": 259, - "column": 9 - }, - "end": { - "line": 259, - "column": 15 - }, - "identifierName": "remove" - }, - "name": "remove" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 7373, - "end": 7386, - "loc": { - "start": { - "line": 259, - "column": 17 - }, - "end": { - "line": 259, - "column": 30 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 7375, - "end": 7377, - "loc": { - "start": { - "line": 259, - "column": 19 - }, - "end": { - "line": 259, - "column": 21 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7375, - "end": 7377, - "loc": { - "start": { - "line": 259, - "column": 19 - }, - "end": { - "line": 259, - "column": 21 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 7375, - "end": 7377, - "loc": { - "start": { - "line": 259, - "column": 19 - }, - "end": { - "line": 259, - "column": 21 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 7379, - "end": 7384, - "loc": { - "start": { - "line": 259, - "column": 23 - }, - "end": { - "line": 259, - "column": 28 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7379, - "end": 7384, - "loc": { - "start": { - "line": 259, - "column": 23 - }, - "end": { - "line": 259, - "column": 28 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 7379, - "end": 7384, - "loc": { - "start": { - "line": 259, - "column": 23 - }, - "end": { - "line": 259, - "column": 28 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 7388, - "end": 7396, - "loc": { - "start": { - "line": 259, - "column": 32 - }, - "end": { - "line": 259, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 7398, - "end": 7465, - "loc": { - "start": { - "line": 259, - "column": 42 - }, - "end": { - "line": 264, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 7404, - "end": 7461, - "loc": { - "start": { - "line": 260, - "column": 4 - }, - "end": { - "line": 263, - "column": 17 - } - }, - "expression": { - "type": "CallExpression", - "start": 7404, - "end": 7460, - "loc": { - "start": { - "line": 260, - "column": 4 - }, - "end": { - "line": 263, - "column": 16 - } - }, - "callee": { - "type": "Identifier", - "start": 7404, - "end": 7418, - "loc": { - "start": { - "line": 260, - "column": 4 - }, - "end": { - "line": 260, - "column": 18 - }, - "identifierName": "removeDocument" - }, - "name": "removeDocument" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 7419, - "end": 7449, - "loc": { - "start": { - "line": 260, - "column": 19 - }, - "end": { - "line": 263, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 7427, - "end": 7429, - "loc": { - "start": { - "line": 261, - "column": 6 - }, - "end": { - "line": 261, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7427, - "end": 7429, - "loc": { - "start": { - "line": 261, - "column": 6 - }, - "end": { - "line": 261, - "column": 8 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 7427, - "end": 7429, - "loc": { - "start": { - "line": 261, - "column": 6 - }, - "end": { - "line": 261, - "column": 8 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 7437, - "end": 7442, - "loc": { - "start": { - "line": 262, - "column": 6 - }, - "end": { - "line": 262, - "column": 11 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7437, - "end": 7442, - "loc": { - "start": { - "line": 262, - "column": 6 - }, - "end": { - "line": 262, - "column": 11 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 7437, - "end": 7442, - "loc": { - "start": { - "line": 262, - "column": 6 - }, - "end": { - "line": 262, - "column": 11 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 7451, - "end": 7459, - "loc": { - "start": { - "line": 263, - "column": 7 - }, - "end": { - "line": 263, - "column": 15 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Remove template payload\n * @typedef {DocumentRemoveParams} TemplateRemoveParams\n ", - "start": 6907, - "end": 7003, - "loc": { - "start": { - "line": 244, - "column": 2 - }, - "end": { - "line": 247, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Remove template response data\n * @typedef {DocumentRemoveResponse} TemplateRemoveResponse\n ", - "start": 7007, - "end": 7113, - "loc": { - "start": { - "line": 249, - "column": 2 - }, - "end": { - "line": 252, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Removes a specified template from folder\n * @param {TemplateRemoveParams} data - remove template payload\n * @param {function(err: ApiErrorResponse, res: TemplateRemoveResponse)} [callback] - error first node.js callback\n ", - "start": 7117, - "end": 7355, - "loc": { - "start": { - "line": 254, - "column": 2 - }, - "end": { - "line": 258, - "column": 5 - } - } - } - ] - } - ] - }, - "leadingComments": [], - "name": "_", - "trailingComments": [] - }, - { - "type": "Identifier", - "start": 7470, - "end": 7494, - "loc": { - "start": { - "line": 268, - "column": 0 - }, - "end": { - "line": 268, - "column": 24 - } - }, - "declaration": { - "type": "Identifier", - "start": 7485, - "end": 7493, - "loc": { - "start": { - "line": 268, - "column": 15 - }, - "end": { - "line": 268, - "column": 23 - }, - "identifierName": "Template" - }, - "name": "Template" - }, - "name": "_", - "leadingComments": [], - "trailingComments": [] - }, - { - "type": "ExportDefaultDeclaration", - "start": 7470, - "end": 7494, - "loc": { - "start": { - "line": 268, - "column": 0 - }, - "end": { - "line": 268, - "column": 24 - } - }, - "declaration": { - "type": "ClassDeclaration", - "start": 953, - "end": 7468, - "loc": { - "start": { - "line": 36, - "column": 0 - }, - "end": { - "line": 266, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 959, - "end": 967, - "loc": { - "start": { - "line": 36, - "column": 6 - }, - "end": { - "line": 36, - "column": 14 - }, - "identifierName": "Template" - }, - "name": "Template", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 968, - "end": 7468, - "loc": { - "start": { - "line": 36, - "column": 15 - }, - "end": { - "line": 266, - "column": 1 - } - }, - "body": [ - { - "type": "ClassMethod", - "start": 2112, - "end": 3374, - "loc": { - "start": { - "line": 65, - "column": 2 - }, - "end": { - "line": 117, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2119, - "end": 2125, - "loc": { - "start": { - "line": 65, - "column": 9 - }, - "end": { - "line": 65, - "column": 15 - }, - "identifierName": "create" - }, - "name": "create" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 2127, - "end": 2233, - "loc": { - "start": { - "line": 65, - "column": 17 - }, - "end": { - "line": 70, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2133, - "end": 2144, - "loc": { - "start": { - "line": 66, - "column": 4 - }, - "end": { - "line": 66, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2133, - "end": 2144, - "loc": { - "start": { - "line": 66, - "column": 4 - }, - "end": { - "line": 66, - "column": 15 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "value": { - "type": "Identifier", - "start": 2133, - "end": 2144, - "loc": { - "start": { - "line": 66, - "column": 4 - }, - "end": { - "line": 66, - "column": 15 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 2150, - "end": 2163, - "loc": { - "start": { - "line": 67, - "column": 4 - }, - "end": { - "line": 67, - "column": 17 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2150, - "end": 2163, - "loc": { - "start": { - "line": 67, - "column": 4 - }, - "end": { - "line": 67, - "column": 17 - }, - "identifierName": "document_name" - }, - "name": "document_name" - }, - "value": { - "type": "Identifier", - "start": 2150, - "end": 2163, - "loc": { - "start": { - "line": 67, - "column": 4 - }, - "end": { - "line": 67, - "column": 17 - }, - "identifierName": "document_name" - }, - "name": "document_name" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 2169, - "end": 2217, - "loc": { - "start": { - "line": 68, - "column": 4 - }, - "end": { - "line": 68, - "column": 52 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2169, - "end": 2176, - "loc": { - "start": { - "line": 68, - "column": 4 - }, - "end": { - "line": 68, - "column": 11 - }, - "identifierName": "options" - }, - "name": "options" - }, - "value": { - "type": "AssignmentPattern", - "start": 2178, - "end": 2217, - "loc": { - "start": { - "line": 68, - "column": 13 - }, - "end": { - "line": 68, - "column": 52 - } - }, - "left": { - "type": "ObjectPattern", - "start": 2178, - "end": 2212, - "loc": { - "start": { - "line": 68, - "column": 13 - }, - "end": { - "line": 68, - "column": 47 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2180, - "end": 2210, - "loc": { - "start": { - "line": 68, - "column": 15 - }, - "end": { - "line": 68, - "column": 45 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2180, - "end": 2202, - "loc": { - "start": { - "line": 68, - "column": 15 - }, - "end": { - "line": 68, - "column": 37 - }, - "identifierName": "removeOriginalDocument" - }, - "name": "removeOriginalDocument" - }, - "value": { - "type": "AssignmentPattern", - "start": 2180, - "end": 2210, - "loc": { - "start": { - "line": 68, - "column": 15 - }, - "end": { - "line": 68, - "column": 45 - } - }, - "left": { - "type": "Identifier", - "start": 2180, - "end": 2202, - "loc": { - "start": { - "line": 68, - "column": 15 - }, - "end": { - "line": 68, - "column": 37 - }, - "identifierName": "removeOriginalDocument" - }, - "name": "removeOriginalDocument" - }, - "right": { - "type": "BooleanLiteral", - "start": 2205, - "end": 2210, - "loc": { - "start": { - "line": 68, - "column": 40 - }, - "end": { - "line": 68, - "column": 45 - } - }, - "value": false - } - }, - "extra": { - "shorthand": true - } - } - ] - }, - "right": { - "type": "ObjectExpression", - "start": 2215, - "end": 2217, - "loc": { - "start": { - "line": 68, - "column": 50 - }, - "end": { - "line": 68, - "column": 52 - } - }, - "properties": [] - } - } - }, - { - "type": "ObjectProperty", - "start": 2223, - "end": 2228, - "loc": { - "start": { - "line": 69, - "column": 4 - }, - "end": { - "line": 69, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2223, - "end": 2228, - "loc": { - "start": { - "line": 69, - "column": 4 - }, - "end": { - "line": 69, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 2223, - "end": 2228, - "loc": { - "start": { - "line": 69, - "column": 4 - }, - "end": { - "line": 69, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 2235, - "end": 2251, - "loc": { - "start": { - "line": 70, - "column": 5 - }, - "end": { - "line": 70, - "column": 21 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - } - ], - "body": { - "type": "BlockStatement", - "start": 2253, - "end": 3374, - "loc": { - "start": { - "line": 70, - "column": 23 - }, - "end": { - "line": 117, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 2259, - "end": 2340, - "loc": { - "start": { - "line": 71, - "column": 4 - }, - "end": { - "line": 74, - "column": 7 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2265, - "end": 2339, - "loc": { - "start": { - "line": 71, - "column": 10 - }, - "end": { - "line": 74, - "column": 6 - } - }, - "id": { - "type": "Identifier", - "start": 2265, - "end": 2273, - "loc": { - "start": { - "line": 71, - "column": 10 - }, - "end": { - "line": 71, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 2276, - "end": 2339, - "loc": { - "start": { - "line": 71, - "column": 21 - }, - "end": { - "line": 74, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2276, - "end": 2290, - "loc": { - "start": { - "line": 71, - "column": 21 - }, - "end": { - "line": 71, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 2276, - "end": 2280, - "loc": { - "start": { - "line": 71, - "column": 21 - }, - "end": { - "line": 71, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 2281, - "end": 2290, - "loc": { - "start": { - "line": 71, - "column": 26 - }, - "end": { - "line": 71, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 2291, - "end": 2338, - "loc": { - "start": { - "line": 71, - "column": 36 - }, - "end": { - "line": 74, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2299, - "end": 2310, - "loc": { - "start": { - "line": 72, - "column": 6 - }, - "end": { - "line": 72, - "column": 17 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2299, - "end": 2310, - "loc": { - "start": { - "line": 72, - "column": 6 - }, - "end": { - "line": 72, - "column": 17 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "value": { - "type": "Identifier", - "start": 2299, - "end": 2310, - "loc": { - "start": { - "line": 72, - "column": 6 - }, - "end": { - "line": 72, - "column": 17 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 2318, - "end": 2331, - "loc": { - "start": { - "line": 73, - "column": 6 - }, - "end": { - "line": 73, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2318, - "end": 2331, - "loc": { - "start": { - "line": 73, - "column": 6 - }, - "end": { - "line": 73, - "column": 19 - }, - "identifierName": "document_name" - }, - "name": "document_name" - }, - "value": { - "type": "Identifier", - "start": 2318, - "end": 2331, - "loc": { - "start": { - "line": 73, - "column": 6 - }, - "end": { - "line": 73, - "column": 19 - }, - "identifierName": "document_name" - }, - "name": "document_name" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 2346, - "end": 2809, - "loc": { - "start": { - "line": 76, - "column": 4 - }, - "end": { - "line": 94, - "column": 6 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2352, - "end": 2808, - "loc": { - "start": { - "line": 76, - "column": 10 - }, - "end": { - "line": 94, - "column": 5 - } - }, - "id": { - "type": "Identifier", - "start": 2352, - "end": 2380, - "loc": { - "start": { - "line": 76, - "column": 10 - }, - "end": { - "line": 76, - "column": 38 - }, - "identifierName": "callbackWithDocumentDeletion" - }, - "name": "callbackWithDocumentDeletion" - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 2383, - "end": 2808, - "loc": { - "start": { - "line": 76, - "column": 41 - }, - "end": { - "line": 94, - "column": 5 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 2384, - "end": 2393, - "loc": { - "start": { - "line": 76, - "column": 42 - }, - "end": { - "line": 76, - "column": 51 - }, - "identifierName": "createErr" - }, - "name": "createErr" - }, - { - "type": "Identifier", - "start": 2395, - "end": 2404, - "loc": { - "start": { - "line": 76, - "column": 53 - }, - "end": { - "line": 76, - "column": 62 - }, - "identifierName": "createRes" - }, - "name": "createRes" - } - ], - "body": { - "type": "BlockStatement", - "start": 2409, - "end": 2808, - "loc": { - "start": { - "line": 76, - "column": 67 - }, - "end": { - "line": 94, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 2417, - "end": 2802, - "loc": { - "start": { - "line": 77, - "column": 6 - }, - "end": { - "line": 93, - "column": 7 - } - }, - "test": { - "type": "Identifier", - "start": 2421, - "end": 2430, - "loc": { - "start": { - "line": 77, - "column": 10 - }, - "end": { - "line": 77, - "column": 19 - }, - "identifierName": "createErr" - }, - "name": "createErr" - }, - "consequent": { - "type": "BlockStatement", - "start": 2432, - "end": 2494, - "loc": { - "start": { - "line": 77, - "column": 21 - }, - "end": { - "line": 80, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2442, - "end": 2470, - "loc": { - "start": { - "line": 78, - "column": 8 - }, - "end": { - "line": 78, - "column": 36 - } - }, - "expression": { - "type": "CallExpression", - "start": 2442, - "end": 2469, - "loc": { - "start": { - "line": 78, - "column": 8 - }, - "end": { - "line": 78, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 2442, - "end": 2458, - "loc": { - "start": { - "line": 78, - "column": 8 - }, - "end": { - "line": 78, - "column": 24 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2459, - "end": 2468, - "loc": { - "start": { - "line": 78, - "column": 25 - }, - "end": { - "line": 78, - "column": 34 - }, - "identifierName": "createErr" - }, - "name": "createErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 2479, - "end": 2486, - "loc": { - "start": { - "line": 79, - "column": 8 - }, - "end": { - "line": 79, - "column": 15 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 2500, - "end": 2802, - "loc": { - "start": { - "line": 80, - "column": 13 - }, - "end": { - "line": 93, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2510, - "end": 2794, - "loc": { - "start": { - "line": 81, - "column": 8 - }, - "end": { - "line": 92, - "column": 11 - } - }, - "expression": { - "type": "CallExpression", - "start": 2510, - "end": 2793, - "loc": { - "start": { - "line": 81, - "column": 8 - }, - "end": { - "line": 92, - "column": 10 - } - }, - "callee": { - "type": "Identifier", - "start": 2510, - "end": 2524, - "loc": { - "start": { - "line": 81, - "column": 8 - }, - "end": { - "line": 81, - "column": 22 - }, - "identifierName": "removeDocument" - }, - "name": "removeDocument" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 2525, - "end": 2580, - "loc": { - "start": { - "line": 81, - "column": 23 - }, - "end": { - "line": 84, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2537, - "end": 2552, - "loc": { - "start": { - "line": 82, - "column": 10 - }, - "end": { - "line": 82, - "column": 25 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2537, - "end": 2539, - "loc": { - "start": { - "line": 82, - "column": 10 - }, - "end": { - "line": 82, - "column": 12 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 2541, - "end": 2552, - "loc": { - "start": { - "line": 82, - "column": 14 - }, - "end": { - "line": 82, - "column": 25 - }, - "identifierName": "document_id" - }, - "name": "document_id" - } - }, - { - "type": "ObjectProperty", - "start": 2564, - "end": 2569, - "loc": { - "start": { - "line": 83, - "column": 10 - }, - "end": { - "line": 83, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2564, - "end": 2569, - "loc": { - "start": { - "line": 83, - "column": 10 - }, - "end": { - "line": 83, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 2564, - "end": 2569, - "loc": { - "start": { - "line": 83, - "column": 10 - }, - "end": { - "line": 83, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "ArrowFunctionExpression", - "start": 2582, - "end": 2792, - "loc": { - "start": { - "line": 84, - "column": 11 - }, - "end": { - "line": 92, - "column": 9 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 2582, - "end": 2591, - "loc": { - "start": { - "line": 84, - "column": 11 - }, - "end": { - "line": 84, - "column": 20 - }, - "identifierName": "removeErr" - }, - "name": "removeErr" - } - ], - "body": { - "type": "BlockStatement", - "start": 2595, - "end": 2792, - "loc": { - "start": { - "line": 84, - "column": 24 - }, - "end": { - "line": 92, - "column": 9 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 2607, - "end": 2782, - "loc": { - "start": { - "line": 85, - "column": 10 - }, - "end": { - "line": 91, - "column": 11 - } - }, - "test": { - "type": "Identifier", - "start": 2611, - "end": 2620, - "loc": { - "start": { - "line": 85, - "column": 14 - }, - "end": { - "line": 85, - "column": 23 - }, - "identifierName": "removeErr" - }, - "name": "removeErr" - }, - "consequent": { - "type": "BlockStatement", - "start": 2622, - "end": 2696, - "loc": { - "start": { - "line": 85, - "column": 25 - }, - "end": { - "line": 88, - "column": 11 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2636, - "end": 2664, - "loc": { - "start": { - "line": 86, - "column": 12 - }, - "end": { - "line": 86, - "column": 40 - } - }, - "expression": { - "type": "CallExpression", - "start": 2636, - "end": 2663, - "loc": { - "start": { - "line": 86, - "column": 12 - }, - "end": { - "line": 86, - "column": 39 - } - }, - "callee": { - "type": "Identifier", - "start": 2636, - "end": 2652, - "loc": { - "start": { - "line": 86, - "column": 12 - }, - "end": { - "line": 86, - "column": 28 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2653, - "end": 2662, - "loc": { - "start": { - "line": 86, - "column": 29 - }, - "end": { - "line": 86, - "column": 38 - }, - "identifierName": "removeErr" - }, - "name": "removeErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 2677, - "end": 2684, - "loc": { - "start": { - "line": 87, - "column": 12 - }, - "end": { - "line": 87, - "column": 19 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 2702, - "end": 2782, - "loc": { - "start": { - "line": 88, - "column": 17 - }, - "end": { - "line": 91, - "column": 11 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2716, - "end": 2750, - "loc": { - "start": { - "line": 89, - "column": 12 - }, - "end": { - "line": 89, - "column": 46 - } - }, - "expression": { - "type": "CallExpression", - "start": 2716, - "end": 2749, - "loc": { - "start": { - "line": 89, - "column": 12 - }, - "end": { - "line": 89, - "column": 45 - } - }, - "callee": { - "type": "Identifier", - "start": 2716, - "end": 2732, - "loc": { - "start": { - "line": 89, - "column": 12 - }, - "end": { - "line": 89, - "column": 28 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - }, - "arguments": [ - { - "type": "NullLiteral", - "start": 2733, - "end": 2737, - "loc": { - "start": { - "line": 89, - "column": 29 - }, - "end": { - "line": 89, - "column": 33 - } - } - }, - { - "type": "Identifier", - "start": 2739, - "end": 2748, - "loc": { - "start": { - "line": 89, - "column": 35 - }, - "end": { - "line": 89, - "column": 44 - }, - "identifierName": "createRes" - }, - "name": "createRes" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 2763, - "end": 2770, - "loc": { - "start": { - "line": 90, - "column": 12 - }, - "end": { - "line": 90, - "column": 19 - } - }, - "argument": null - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 2815, - "end": 2917, - "loc": { - "start": { - "line": 96, - "column": 4 - }, - "end": { - "line": 98, - "column": 25 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2821, - "end": 2916, - "loc": { - "start": { - "line": 96, - "column": 10 - }, - "end": { - "line": 98, - "column": 24 - } - }, - "id": { - "type": "Identifier", - "start": 2821, - "end": 2829, - "loc": { - "start": { - "line": 96, - "column": 10 - }, - "end": { - "line": 96, - "column": 18 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "init": { - "type": "ConditionalExpression", - "start": 2832, - "end": 2916, - "loc": { - "start": { - "line": 96, - "column": 21 - }, - "end": { - "line": 98, - "column": 24 - } - }, - "test": { - "type": "Identifier", - "start": 2832, - "end": 2854, - "loc": { - "start": { - "line": 96, - "column": 21 - }, - "end": { - "line": 96, - "column": 43 - }, - "identifierName": "removeOriginalDocument" - }, - "name": "removeOriginalDocument" - }, - "consequent": { - "type": "Identifier", - "start": 2863, - "end": 2891, - "loc": { - "start": { - "line": 97, - "column": 8 - }, - "end": { - "line": 97, - "column": 36 - }, - "identifierName": "callbackWithDocumentDeletion" - }, - "name": "callbackWithDocumentDeletion" - }, - "alternate": { - "type": "Identifier", - "start": 2900, - "end": 2916, - "loc": { - "start": { - "line": 98, - "column": 8 - }, - "end": { - "line": 98, - "column": 24 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 2923, - "end": 3329, - "loc": { - "start": { - "line": 100, - "column": 4 - }, - "end": { - "line": 113, - "column": 51 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2929, - "end": 3328, - "loc": { - "start": { - "line": 100, - "column": 10 - }, - "end": { - "line": 113, - "column": 50 - } - }, - "id": { - "type": "Identifier", - "start": 2929, - "end": 2932, - "loc": { - "start": { - "line": 100, - "column": 10 - }, - "end": { - "line": 100, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 2935, - "end": 3328, - "loc": { - "start": { - "line": 100, - "column": 16 - }, - "end": { - "line": 113, - "column": 50 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2935, - "end": 3287, - "loc": { - "start": { - "line": 100, - "column": 16 - }, - "end": { - "line": 113, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 2935, - "end": 3277, - "loc": { - "start": { - "line": 100, - "column": 16 - }, - "end": { - "line": 112, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2935, - "end": 2955, - "loc": { - "start": { - "line": 100, - "column": 16 - }, - "end": { - "line": 101, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 2935, - "end": 2940, - "loc": { - "start": { - "line": 100, - "column": 16 - }, - "end": { - "line": 100, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 2948, - "end": 2955, - "loc": { - "start": { - "line": 101, - "column": 7 - }, - "end": { - "line": 101, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 2956, - "end": 3249, - "loc": { - "start": { - "line": 101, - "column": 15 - }, - "end": { - "line": 112, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 2956, - "end": 2975, - "loc": { - "start": { - "line": 101, - "column": 15 - }, - "end": { - "line": 101, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 2976, - "end": 3248, - "loc": { - "start": { - "line": 101, - "column": 35 - }, - "end": { - "line": 112, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2986, - "end": 3000, - "loc": { - "start": { - "line": 102, - "column": 8 - }, - "end": { - "line": 102, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2986, - "end": 2992, - "loc": { - "start": { - "line": 102, - "column": 8 - }, - "end": { - "line": 102, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 2994, - "end": 3000, - "loc": { - "start": { - "line": 102, - "column": 16 - }, - "end": { - "line": 102, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 3010, - "end": 3027, - "loc": { - "start": { - "line": 103, - "column": 8 - }, - "end": { - "line": 103, - "column": 25 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3010, - "end": 3014, - "loc": { - "start": { - "line": 103, - "column": 8 - }, - "end": { - "line": 103, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 3016, - "end": 3027, - "loc": { - "start": { - "line": 103, - "column": 14 - }, - "end": { - "line": 103, - "column": 25 - } - }, - "extra": { - "rawValue": "/template", - "raw": "'/template'" - }, - "value": "/template" - } - }, - { - "type": "ObjectProperty", - "start": 3037, - "end": 3106, - "loc": { - "start": { - "line": 104, - "column": 8 - }, - "end": { - "line": 107, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3037, - "end": 3050, - "loc": { - "start": { - "line": 104, - "column": 8 - }, - "end": { - "line": 104, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 3052, - "end": 3106, - "loc": { - "start": { - "line": 104, - "column": 23 - }, - "end": { - "line": 107, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3064, - "end": 3078, - "loc": { - "start": { - "line": 105, - "column": 10 - }, - "end": { - "line": 105, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3064, - "end": 3068, - "loc": { - "start": { - "line": 105, - "column": 10 - }, - "end": { - "line": 105, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 3070, - "end": 3078, - "loc": { - "start": { - "line": 105, - "column": 16 - }, - "end": { - "line": 105, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 3090, - "end": 3095, - "loc": { - "start": { - "line": 106, - "column": 10 - }, - "end": { - "line": 106, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3090, - "end": 3095, - "loc": { - "start": { - "line": 106, - "column": 10 - }, - "end": { - "line": 106, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 3090, - "end": 3095, - "loc": { - "start": { - "line": 106, - "column": 10 - }, - "end": { - "line": 106, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 3116, - "end": 3239, - "loc": { - "start": { - "line": 108, - "column": 8 - }, - "end": { - "line": 111, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3116, - "end": 3123, - "loc": { - "start": { - "line": 108, - "column": 8 - }, - "end": { - "line": 108, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 3125, - "end": 3239, - "loc": { - "start": { - "line": 108, - "column": 17 - }, - "end": { - "line": 111, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3137, - "end": 3171, - "loc": { - "start": { - "line": 109, - "column": 10 - }, - "end": { - "line": 109, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 3137, - "end": 3151, - "loc": { - "start": { - "line": 109, - "column": 10 - }, - "end": { - "line": 109, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 3153, - "end": 3171, - "loc": { - "start": { - "line": 109, - "column": 26 - }, - "end": { - "line": 109, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 3183, - "end": 3228, - "loc": { - "start": { - "line": 110, - "column": 10 - }, - "end": { - "line": 110, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 3183, - "end": 3199, - "loc": { - "start": { - "line": 110, - "column": 10 - }, - "end": { - "line": 110, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 3201, - "end": 3228, - "loc": { - "start": { - "line": 110, - "column": 28 - }, - "end": { - "line": 110, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3201, - "end": 3218, - "loc": { - "start": { - "line": 110, - "column": 28 - }, - "end": { - "line": 110, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 3201, - "end": 3207, - "loc": { - "start": { - "line": 110, - "column": 28 - }, - "end": { - "line": 110, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 3208, - "end": 3218, - "loc": { - "start": { - "line": 110, - "column": 35 - }, - "end": { - "line": 110, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 3219, - "end": 3227, - "loc": { - "start": { - "line": 110, - "column": 46 - }, - "end": { - "line": 110, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 3251, - "end": 3276, - "loc": { - "start": { - "line": 112, - "column": 10 - }, - "end": { - "line": 112, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 3251, - "end": 3266, - "loc": { - "start": { - "line": 112, - "column": 10 - }, - "end": { - "line": 112, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3267, - "end": 3275, - "loc": { - "start": { - "line": 112, - "column": 26 - }, - "end": { - "line": 112, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 3285, - "end": 3287, - "loc": { - "start": { - "line": 113, - "column": 7 - }, - "end": { - "line": 113, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 3288, - "end": 3295, - "loc": { - "start": { - "line": 113, - "column": 10 - }, - "end": { - "line": 113, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 3297, - "end": 3327, - "loc": { - "start": { - "line": 113, - "column": 19 - }, - "end": { - "line": 113, - "column": 49 - } - }, - "callee": { - "type": "Identifier", - "start": 3297, - "end": 3309, - "loc": { - "start": { - "line": 113, - "column": 19 - }, - "end": { - "line": 113, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3310, - "end": 3326, - "loc": { - "start": { - "line": 113, - "column": 32 - }, - "end": { - "line": 113, - "column": 48 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 3335, - "end": 3355, - "loc": { - "start": { - "line": 115, - "column": 4 - }, - "end": { - "line": 115, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 3335, - "end": 3354, - "loc": { - "start": { - "line": 115, - "column": 4 - }, - "end": { - "line": 115, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3335, - "end": 3344, - "loc": { - "start": { - "line": 115, - "column": 4 - }, - "end": { - "line": 115, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 3335, - "end": 3338, - "loc": { - "start": { - "line": 115, - "column": 4 - }, - "end": { - "line": 115, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 3339, - "end": 3344, - "loc": { - "start": { - "line": 115, - "column": 8 - }, - "end": { - "line": 115, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 3345, - "end": 3353, - "loc": { - "start": { - "line": 115, - "column": 14 - }, - "end": { - "line": 115, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 3360, - "end": 3370, - "loc": { - "start": { - "line": 116, - "column": 4 - }, - "end": { - "line": 116, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 3360, - "end": 3369, - "loc": { - "start": { - "line": 116, - "column": 4 - }, - "end": { - "line": 116, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3360, - "end": 3367, - "loc": { - "start": { - "line": 116, - "column": 4 - }, - "end": { - "line": 116, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 3360, - "end": 3363, - "loc": { - "start": { - "line": 116, - "column": 4 - }, - "end": { - "line": 116, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 3364, - "end": 3367, - "loc": { - "start": { - "line": 116, - "column": 8 - }, - "end": { - "line": 116, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document invite optional settings\n * @typedef {Object} TemplateCreateOptions\n * @property {boolean} [removeOriginalDocument=false] - if true original document will be removed\n ", - "start": 973, - "end": 1166, - "loc": { - "start": { - "line": 38, - "column": 2 - }, - "end": { - "line": 42, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create template payload\n * @typedef {Object} TemplateCreateParams\n * @property {string} document_id - an id of original document\n * @property {string} document_name - a name of new template\n * @property {TemplateCreateOptions} options - create template optional settings\n * @property {string} token - your auth token\n ", - "start": 1170, - "end": 1511, - "loc": { - "start": { - "line": 44, - "column": 2 - }, - "end": { - "line": 51, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create template response data\n * @typedef {Object} TemplateCreateResponse\n * @property {string} id - an id of created template\n ", - "start": 1515, - "end": 1660, - "loc": { - "start": { - "line": 53, - "column": 2 - }, - "end": { - "line": 57, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates a template by copying an existing unfulfilled and not requested for sign document.\n * By default original document is not removed after template creation. To remove original document set `removeOriginalDocument` option to `true`.\n * @param {TemplateCreateParams} data - create template payload\n * @param {function(err: ApiErrorResponse, res: TemplateCreateResponse)} [originalCallback] - error first node.js callback\n ", - "start": 1664, - "end": 2109, - "loc": { - "start": { - "line": 59, - "column": 2 - }, - "end": { - "line": 64, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Copy template payload\n * @typedef {Object} TemplateDuplicateParams\n * @property {string} id - an id of original template\n * @property {string} name - a name of new document\n * @property {string} token - your auth token\n ", - "start": 3378, - "end": 3619, - "loc": { - "start": { - "line": 119, - "column": 2 - }, - "end": { - "line": 125, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Copy template response data\n * @typedef {Object} TemplateDuplicateResponse\n * @property {string} id - an id of created document\n * @property {string} name - a name of created document\n ", - "start": 3623, - "end": 3827, - "loc": { - "start": { - "line": 127, - "column": 2 - }, - "end": { - "line": 132, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates a new document by copying a template.\n * If a name is not supplied then document name will be set to the original template's name by default.\n * @param {TemplateDuplicateParams} data - duplicate template payload\n * @param {function(err: ApiErrorResponse, res: TemplateDuplicateResponse)} [callback] - error first node.js callback\n ", - "start": 3831, - "end": 4189, - "loc": { - "start": { - "line": 134, - "column": 2 - }, - "end": { - "line": 139, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 4192, - "end": 4840, - "loc": { - "start": { - "line": 140, - "column": 2 - }, - "end": { - "line": 167, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 4199, - "end": 4208, - "loc": { - "start": { - "line": 140, - "column": 9 - }, - "end": { - "line": 140, - "column": 18 - }, - "identifierName": "duplicate" - }, - "name": "duplicate" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 4210, - "end": 4272, - "loc": { - "start": { - "line": 140, - "column": 20 - }, - "end": { - "line": 144, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4216, - "end": 4231, - "loc": { - "start": { - "line": 141, - "column": 4 - }, - "end": { - "line": 141, - "column": 19 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4216, - "end": 4218, - "loc": { - "start": { - "line": 141, - "column": 4 - }, - "end": { - "line": 141, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 4220, - "end": 4231, - "loc": { - "start": { - "line": 141, - "column": 8 - }, - "end": { - "line": 141, - "column": 19 - }, - "identifierName": "template_id" - }, - "name": "template_id" - } - }, - { - "type": "ObjectProperty", - "start": 4237, - "end": 4256, - "loc": { - "start": { - "line": 142, - "column": 4 - }, - "end": { - "line": 142, - "column": 23 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4237, - "end": 4241, - "loc": { - "start": { - "line": 142, - "column": 4 - }, - "end": { - "line": 142, - "column": 8 - }, - "identifierName": "name" - }, - "name": "name" - }, - "value": { - "type": "Identifier", - "start": 4243, - "end": 4256, - "loc": { - "start": { - "line": 142, - "column": 10 - }, - "end": { - "line": 142, - "column": 23 - }, - "identifierName": "document_name" - }, - "name": "document_name" - } - }, - { - "type": "ObjectProperty", - "start": 4262, - "end": 4267, - "loc": { - "start": { - "line": 143, - "column": 4 - }, - "end": { - "line": 143, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 4262, - "end": 4267, - "loc": { - "start": { - "line": 143, - "column": 4 - }, - "end": { - "line": 143, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 4262, - "end": 4267, - "loc": { - "start": { - "line": 143, - "column": 4 - }, - "end": { - "line": 143, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 4274, - "end": 4282, - "loc": { - "start": { - "line": 144, - "column": 5 - }, - "end": { - "line": 144, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 4284, - "end": 4840, - "loc": { - "start": { - "line": 144, - "column": 15 - }, - "end": { - "line": 167, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 4290, - "end": 4371, - "loc": { - "start": { - "line": 145, - "column": 4 - }, - "end": { - "line": 148, - "column": 7 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 4296, - "end": 4370, - "loc": { - "start": { - "line": 145, - "column": 10 - }, - "end": { - "line": 148, - "column": 6 - } - }, - "id": { - "type": "Identifier", - "start": 4296, - "end": 4304, - "loc": { - "start": { - "line": 145, - "column": 10 - }, - "end": { - "line": 145, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 4307, - "end": 4370, - "loc": { - "start": { - "line": 145, - "column": 21 - }, - "end": { - "line": 148, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4307, - "end": 4321, - "loc": { - "start": { - "line": 145, - "column": 21 - }, - "end": { - "line": 145, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 4307, - "end": 4311, - "loc": { - "start": { - "line": 145, - "column": 21 - }, - "end": { - "line": 145, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 4312, - "end": 4321, - "loc": { - "start": { - "line": 145, - "column": 26 - }, - "end": { - "line": 145, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 4322, - "end": 4369, - "loc": { - "start": { - "line": 145, - "column": 36 - }, - "end": { - "line": 148, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4330, - "end": 4341, - "loc": { - "start": { - "line": 146, - "column": 6 - }, - "end": { - "line": 146, - "column": 17 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 4330, - "end": 4341, - "loc": { - "start": { - "line": 146, - "column": 6 - }, - "end": { - "line": 146, - "column": 17 - }, - "identifierName": "template_id" - }, - "name": "template_id" - }, - "value": { - "type": "Identifier", - "start": 4330, - "end": 4341, - "loc": { - "start": { - "line": 146, - "column": 6 - }, - "end": { - "line": 146, - "column": 17 - }, - "identifierName": "template_id" - }, - "name": "template_id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 4349, - "end": 4362, - "loc": { - "start": { - "line": 147, - "column": 6 - }, - "end": { - "line": 147, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 4349, - "end": 4362, - "loc": { - "start": { - "line": 147, - "column": 6 - }, - "end": { - "line": 147, - "column": 19 - }, - "identifierName": "document_name" - }, - "name": "document_name" - }, - "value": { - "type": "Identifier", - "start": 4349, - "end": 4362, - "loc": { - "start": { - "line": 147, - "column": 6 - }, - "end": { - "line": 147, - "column": 19 - }, - "identifierName": "document_name" - }, - "name": "document_name" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 4377, - "end": 4795, - "loc": { - "start": { - "line": 150, - "column": 4 - }, - "end": { - "line": 163, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 4383, - "end": 4794, - "loc": { - "start": { - "line": 150, - "column": 10 - }, - "end": { - "line": 163, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 4383, - "end": 4386, - "loc": { - "start": { - "line": 150, - "column": 10 - }, - "end": { - "line": 150, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 4389, - "end": 4794, - "loc": { - "start": { - "line": 150, - "column": 16 - }, - "end": { - "line": 163, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4389, - "end": 4761, - "loc": { - "start": { - "line": 150, - "column": 16 - }, - "end": { - "line": 163, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 4389, - "end": 4751, - "loc": { - "start": { - "line": 150, - "column": 16 - }, - "end": { - "line": 162, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4389, - "end": 4409, - "loc": { - "start": { - "line": 150, - "column": 16 - }, - "end": { - "line": 151, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 4389, - "end": 4394, - "loc": { - "start": { - "line": 150, - "column": 16 - }, - "end": { - "line": 150, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 4402, - "end": 4409, - "loc": { - "start": { - "line": 151, - "column": 7 - }, - "end": { - "line": 151, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 4410, - "end": 4723, - "loc": { - "start": { - "line": 151, - "column": 15 - }, - "end": { - "line": 162, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 4410, - "end": 4429, - "loc": { - "start": { - "line": 151, - "column": 15 - }, - "end": { - "line": 151, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 4430, - "end": 4722, - "loc": { - "start": { - "line": 151, - "column": 35 - }, - "end": { - "line": 162, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4440, - "end": 4454, - "loc": { - "start": { - "line": 152, - "column": 8 - }, - "end": { - "line": 152, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4440, - "end": 4446, - "loc": { - "start": { - "line": 152, - "column": 8 - }, - "end": { - "line": 152, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 4448, - "end": 4454, - "loc": { - "start": { - "line": 152, - "column": 16 - }, - "end": { - "line": 152, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 4464, - "end": 4501, - "loc": { - "start": { - "line": 153, - "column": 8 - }, - "end": { - "line": 153, - "column": 45 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4464, - "end": 4468, - "loc": { - "start": { - "line": 153, - "column": 8 - }, - "end": { - "line": 153, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 4470, - "end": 4501, - "loc": { - "start": { - "line": 153, - "column": 14 - }, - "end": { - "line": 153, - "column": 45 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 4483, - "end": 4494, - "loc": { - "start": { - "line": 153, - "column": 27 - }, - "end": { - "line": 153, - "column": 38 - }, - "identifierName": "template_id" - }, - "name": "template_id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 4471, - "end": 4481, - "loc": { - "start": { - "line": 153, - "column": 15 - }, - "end": { - "line": 153, - "column": 25 - } - }, - "value": { - "raw": "/template/", - "cooked": "/template/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 4495, - "end": 4500, - "loc": { - "start": { - "line": 153, - "column": 39 - }, - "end": { - "line": 153, - "column": 44 - } - }, - "value": { - "raw": "/copy", - "cooked": "/copy" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 4511, - "end": 4580, - "loc": { - "start": { - "line": 154, - "column": 8 - }, - "end": { - "line": 157, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4511, - "end": 4524, - "loc": { - "start": { - "line": 154, - "column": 8 - }, - "end": { - "line": 154, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 4526, - "end": 4580, - "loc": { - "start": { - "line": 154, - "column": 23 - }, - "end": { - "line": 157, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4538, - "end": 4552, - "loc": { - "start": { - "line": 155, - "column": 10 - }, - "end": { - "line": 155, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4538, - "end": 4542, - "loc": { - "start": { - "line": 155, - "column": 10 - }, - "end": { - "line": 155, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 4544, - "end": 4552, - "loc": { - "start": { - "line": 155, - "column": 16 - }, - "end": { - "line": 155, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 4564, - "end": 4569, - "loc": { - "start": { - "line": 156, - "column": 10 - }, - "end": { - "line": 156, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 4564, - "end": 4569, - "loc": { - "start": { - "line": 156, - "column": 10 - }, - "end": { - "line": 156, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 4564, - "end": 4569, - "loc": { - "start": { - "line": 156, - "column": 10 - }, - "end": { - "line": 156, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 4590, - "end": 4713, - "loc": { - "start": { - "line": 158, - "column": 8 - }, - "end": { - "line": 161, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4590, - "end": 4597, - "loc": { - "start": { - "line": 158, - "column": 8 - }, - "end": { - "line": 158, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 4599, - "end": 4713, - "loc": { - "start": { - "line": 158, - "column": 17 - }, - "end": { - "line": 161, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4611, - "end": 4645, - "loc": { - "start": { - "line": 159, - "column": 10 - }, - "end": { - "line": 159, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 4611, - "end": 4625, - "loc": { - "start": { - "line": 159, - "column": 10 - }, - "end": { - "line": 159, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 4627, - "end": 4645, - "loc": { - "start": { - "line": 159, - "column": 26 - }, - "end": { - "line": 159, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 4657, - "end": 4702, - "loc": { - "start": { - "line": 160, - "column": 10 - }, - "end": { - "line": 160, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 4657, - "end": 4673, - "loc": { - "start": { - "line": 160, - "column": 10 - }, - "end": { - "line": 160, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 4675, - "end": 4702, - "loc": { - "start": { - "line": 160, - "column": 28 - }, - "end": { - "line": 160, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4675, - "end": 4692, - "loc": { - "start": { - "line": 160, - "column": 28 - }, - "end": { - "line": 160, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 4675, - "end": 4681, - "loc": { - "start": { - "line": 160, - "column": 28 - }, - "end": { - "line": 160, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 4682, - "end": 4692, - "loc": { - "start": { - "line": 160, - "column": 35 - }, - "end": { - "line": 160, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 4693, - "end": 4701, - "loc": { - "start": { - "line": 160, - "column": 46 - }, - "end": { - "line": 160, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 4725, - "end": 4750, - "loc": { - "start": { - "line": 162, - "column": 10 - }, - "end": { - "line": 162, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 4725, - "end": 4740, - "loc": { - "start": { - "line": 162, - "column": 10 - }, - "end": { - "line": 162, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 4741, - "end": 4749, - "loc": { - "start": { - "line": 162, - "column": 26 - }, - "end": { - "line": 162, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 4759, - "end": 4761, - "loc": { - "start": { - "line": 163, - "column": 7 - }, - "end": { - "line": 163, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 4762, - "end": 4769, - "loc": { - "start": { - "line": 163, - "column": 10 - }, - "end": { - "line": 163, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 4771, - "end": 4793, - "loc": { - "start": { - "line": 163, - "column": 19 - }, - "end": { - "line": 163, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 4771, - "end": 4783, - "loc": { - "start": { - "line": 163, - "column": 19 - }, - "end": { - "line": 163, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 4784, - "end": 4792, - "loc": { - "start": { - "line": 163, - "column": 32 - }, - "end": { - "line": 163, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 4801, - "end": 4821, - "loc": { - "start": { - "line": 165, - "column": 4 - }, - "end": { - "line": 165, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 4801, - "end": 4820, - "loc": { - "start": { - "line": 165, - "column": 4 - }, - "end": { - "line": 165, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4801, - "end": 4810, - "loc": { - "start": { - "line": 165, - "column": 4 - }, - "end": { - "line": 165, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 4801, - "end": 4804, - "loc": { - "start": { - "line": 165, - "column": 4 - }, - "end": { - "line": 165, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 4805, - "end": 4810, - "loc": { - "start": { - "line": 165, - "column": 8 - }, - "end": { - "line": 165, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 4811, - "end": 4819, - "loc": { - "start": { - "line": 165, - "column": 14 - }, - "end": { - "line": 165, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 4826, - "end": 4836, - "loc": { - "start": { - "line": 166, - "column": 4 - }, - "end": { - "line": 166, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 4826, - "end": 4835, - "loc": { - "start": { - "line": 166, - "column": 4 - }, - "end": { - "line": 166, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4826, - "end": 4833, - "loc": { - "start": { - "line": 166, - "column": 4 - }, - "end": { - "line": 166, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 4826, - "end": 4829, - "loc": { - "start": { - "line": 166, - "column": 4 - }, - "end": { - "line": 166, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 4830, - "end": 4833, - "loc": { - "start": { - "line": 166, - "column": 8 - }, - "end": { - "line": 166, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Copy template payload\n * @typedef {Object} TemplateDuplicateParams\n * @property {string} id - an id of original template\n * @property {string} name - a name of new document\n * @property {string} token - your auth token\n ", - "start": 3378, - "end": 3619, - "loc": { - "start": { - "line": 119, - "column": 2 - }, - "end": { - "line": 125, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Copy template response data\n * @typedef {Object} TemplateDuplicateResponse\n * @property {string} id - an id of created document\n * @property {string} name - a name of created document\n ", - "start": 3623, - "end": 3827, - "loc": { - "start": { - "line": 127, - "column": 2 - }, - "end": { - "line": 132, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates a new document by copying a template.\n * If a name is not supplied then document name will be set to the original template's name by default.\n * @param {TemplateDuplicateParams} data - duplicate template payload\n * @param {function(err: ApiErrorResponse, res: TemplateDuplicateResponse)} [callback] - error first node.js callback\n ", - "start": 3831, - "end": 4189, - "loc": { - "start": { - "line": 134, - "column": 2 - }, - "end": { - "line": 139, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Create invite with template payload\n * @typedef {DocumentInviteParams} TemplateInviteParams\n ", - "start": 4844, - "end": 4952, - "loc": { - "start": { - "line": 169, - "column": 2 - }, - "end": { - "line": 172, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create invite with template response data\n * @typedef {DocumentInviteResponse} TemplateInviteResponse\n ", - "start": 4956, - "end": 5074, - "loc": { - "start": { - "line": 174, - "column": 2 - }, - "end": { - "line": 177, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates an invite to sign a template.\n * You can create a simple free form invite(s) or a role-based invite(s).\n * The method copies a template into document and creates an invite using created document.\n * @param {TemplateInviteParams} data - create template invite payload\n * @param {function(err: ApiErrorResponse, res: TemplateInviteResponse)} [callback] - error first node.js callback\n ", - "start": 5078, - "end": 5490, - "loc": { - "start": { - "line": 179, - "column": 2 - }, - "end": { - "line": 185, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 5493, - "end": 6903, - "loc": { - "start": { - "line": 186, - "column": 2 - }, - "end": { - "line": 242, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5500, - "end": 5506, - "loc": { - "start": { - "line": 186, - "column": 9 - }, - "end": { - "line": 186, - "column": 15 - }, - "identifierName": "invite" - }, - "name": "invite" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 5508, - "end": 5555, - "loc": { - "start": { - "line": 186, - "column": 17 - }, - "end": { - "line": 191, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5514, - "end": 5516, - "loc": { - "start": { - "line": 187, - "column": 4 - }, - "end": { - "line": 187, - "column": 6 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5514, - "end": 5516, - "loc": { - "start": { - "line": 187, - "column": 4 - }, - "end": { - "line": 187, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 5514, - "end": 5516, - "loc": { - "start": { - "line": 187, - "column": 4 - }, - "end": { - "line": 187, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 5522, - "end": 5526, - "loc": { - "start": { - "line": 188, - "column": 4 - }, - "end": { - "line": 188, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5522, - "end": 5526, - "loc": { - "start": { - "line": 188, - "column": 4 - }, - "end": { - "line": 188, - "column": 8 - }, - "identifierName": "data" - }, - "name": "data" - }, - "value": { - "type": "Identifier", - "start": 5522, - "end": 5526, - "loc": { - "start": { - "line": 188, - "column": 4 - }, - "end": { - "line": 188, - "column": 8 - }, - "identifierName": "data" - }, - "name": "data" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 5532, - "end": 5539, - "loc": { - "start": { - "line": 189, - "column": 4 - }, - "end": { - "line": 189, - "column": 11 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5532, - "end": 5539, - "loc": { - "start": { - "line": 189, - "column": 4 - }, - "end": { - "line": 189, - "column": 11 - }, - "identifierName": "options" - }, - "name": "options" - }, - "value": { - "type": "Identifier", - "start": 5532, - "end": 5539, - "loc": { - "start": { - "line": 189, - "column": 4 - }, - "end": { - "line": 189, - "column": 11 - }, - "identifierName": "options" - }, - "name": "options" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 5545, - "end": 5550, - "loc": { - "start": { - "line": 190, - "column": 4 - }, - "end": { - "line": 190, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5545, - "end": 5550, - "loc": { - "start": { - "line": 190, - "column": 4 - }, - "end": { - "line": 190, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 5545, - "end": 5550, - "loc": { - "start": { - "line": 190, - "column": 4 - }, - "end": { - "line": 190, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 5557, - "end": 5565, - "loc": { - "start": { - "line": 191, - "column": 5 - }, - "end": { - "line": 191, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 5567, - "end": 6903, - "loc": { - "start": { - "line": 191, - "column": 15 - }, - "end": { - "line": 242, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 5573, - "end": 6899, - "loc": { - "start": { - "line": 192, - "column": 4 - }, - "end": { - "line": 241, - "column": 7 - } - }, - "expression": { - "type": "CallExpression", - "start": 5573, - "end": 6898, - "loc": { - "start": { - "line": 192, - "column": 4 - }, - "end": { - "line": 241, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5573, - "end": 5591, - "loc": { - "start": { - "line": 192, - "column": 4 - }, - "end": { - "line": 192, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 5573, - "end": 5581, - "loc": { - "start": { - "line": 192, - "column": 4 - }, - "end": { - "line": 192, - "column": 12 - }, - "identifierName": "Template" - }, - "name": "Template" - }, - "property": { - "type": "Identifier", - "start": 5582, - "end": 5591, - "loc": { - "start": { - "line": 192, - "column": 13 - }, - "end": { - "line": 192, - "column": 22 - }, - "identifierName": "duplicate" - }, - "name": "duplicate" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 5592, - "end": 5622, - "loc": { - "start": { - "line": 192, - "column": 23 - }, - "end": { - "line": 195, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5600, - "end": 5602, - "loc": { - "start": { - "line": 193, - "column": 6 - }, - "end": { - "line": 193, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5600, - "end": 5602, - "loc": { - "start": { - "line": 193, - "column": 6 - }, - "end": { - "line": 193, - "column": 8 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 5600, - "end": 5602, - "loc": { - "start": { - "line": 193, - "column": 6 - }, - "end": { - "line": 193, - "column": 8 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 5610, - "end": 5615, - "loc": { - "start": { - "line": 194, - "column": 6 - }, - "end": { - "line": 194, - "column": 11 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5610, - "end": 5615, - "loc": { - "start": { - "line": 194, - "column": 6 - }, - "end": { - "line": 194, - "column": 11 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 5610, - "end": 5615, - "loc": { - "start": { - "line": 194, - "column": 6 - }, - "end": { - "line": 194, - "column": 11 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "ArrowFunctionExpression", - "start": 5624, - "end": 6897, - "loc": { - "start": { - "line": 195, - "column": 7 - }, - "end": { - "line": 241, - "column": 5 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 5625, - "end": 5632, - "loc": { - "start": { - "line": 195, - "column": 8 - }, - "end": { - "line": 195, - "column": 15 - }, - "identifierName": "copyErr" - }, - "name": "copyErr" - }, - { - "type": "Identifier", - "start": 5634, - "end": 5641, - "loc": { - "start": { - "line": 195, - "column": 17 - }, - "end": { - "line": 195, - "column": 24 - }, - "identifierName": "copyRes" - }, - "name": "copyRes" - } - ], - "body": { - "type": "BlockStatement", - "start": 5646, - "end": 6897, - "loc": { - "start": { - "line": 195, - "column": 29 - }, - "end": { - "line": 241, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 5654, - "end": 6891, - "loc": { - "start": { - "line": 196, - "column": 6 - }, - "end": { - "line": 240, - "column": 7 - } - }, - "test": { - "type": "Identifier", - "start": 5658, - "end": 5665, - "loc": { - "start": { - "line": 196, - "column": 10 - }, - "end": { - "line": 196, - "column": 17 - }, - "identifierName": "copyErr" - }, - "name": "copyErr" - }, - "consequent": { - "type": "BlockStatement", - "start": 5667, - "end": 5719, - "loc": { - "start": { - "line": 196, - "column": 19 - }, - "end": { - "line": 199, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 5677, - "end": 5695, - "loc": { - "start": { - "line": 197, - "column": 8 - }, - "end": { - "line": 197, - "column": 26 - } - }, - "expression": { - "type": "CallExpression", - "start": 5677, - "end": 5694, - "loc": { - "start": { - "line": 197, - "column": 8 - }, - "end": { - "line": 197, - "column": 25 - } - }, - "callee": { - "type": "Identifier", - "start": 5677, - "end": 5685, - "loc": { - "start": { - "line": 197, - "column": 8 - }, - "end": { - "line": 197, - "column": 16 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 5686, - "end": 5693, - "loc": { - "start": { - "line": 197, - "column": 17 - }, - "end": { - "line": 197, - "column": 24 - }, - "identifierName": "copyErr" - }, - "name": "copyErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 5704, - "end": 5711, - "loc": { - "start": { - "line": 198, - "column": 8 - }, - "end": { - "line": 198, - "column": 15 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "IfStatement", - "start": 5725, - "end": 6891, - "loc": { - "start": { - "line": 199, - "column": 13 - }, - "end": { - "line": 240, - "column": 7 - } - }, - "test": { - "type": "CallExpression", - "start": 5729, - "end": 5751, - "loc": { - "start": { - "line": 199, - "column": 17 - }, - "end": { - "line": 199, - "column": 39 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5729, - "end": 5742, - "loc": { - "start": { - "line": 199, - "column": 17 - }, - "end": { - "line": 199, - "column": 30 - } - }, - "object": { - "type": "Identifier", - "start": 5729, - "end": 5734, - "loc": { - "start": { - "line": 199, - "column": 17 - }, - "end": { - "line": 199, - "column": 22 - }, - "identifierName": "Array" - }, - "name": "Array" - }, - "property": { - "type": "Identifier", - "start": 5735, - "end": 5742, - "loc": { - "start": { - "line": 199, - "column": 23 - }, - "end": { - "line": 199, - "column": 30 - }, - "identifierName": "isArray" - }, - "name": "isArray" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 5743, - "end": 5750, - "loc": { - "start": { - "line": 199, - "column": 31 - }, - "end": { - "line": 199, - "column": 38 - } - }, - "object": { - "type": "Identifier", - "start": 5743, - "end": 5747, - "loc": { - "start": { - "line": 199, - "column": 31 - }, - "end": { - "line": 199, - "column": 35 - }, - "identifierName": "data" - }, - "name": "data" - }, - "property": { - "type": "Identifier", - "start": 5748, - "end": 5750, - "loc": { - "start": { - "line": 199, - "column": 36 - }, - "end": { - "line": 199, - "column": 38 - }, - "identifierName": "to" - }, - "name": "to" - }, - "computed": false - } - ] - }, - "consequent": { - "type": "BlockStatement", - "start": 5753, - "end": 6609, - "loc": { - "start": { - "line": 199, - "column": 41 - }, - "end": { - "line": 230, - "column": 7 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 5763, - "end": 5798, - "loc": { - "start": { - "line": 200, - "column": 8 - }, - "end": { - "line": 200, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 5769, - "end": 5797, - "loc": { - "start": { - "line": 200, - "column": 14 - }, - "end": { - "line": 200, - "column": 42 - } - }, - "id": { - "type": "ObjectPattern", - "start": 5769, - "end": 5787, - "loc": { - "start": { - "line": 200, - "column": 14 - }, - "end": { - "line": 200, - "column": 32 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5771, - "end": 5785, - "loc": { - "start": { - "line": 200, - "column": 16 - }, - "end": { - "line": 200, - "column": 30 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5771, - "end": 5773, - "loc": { - "start": { - "line": 200, - "column": 16 - }, - "end": { - "line": 200, - "column": 18 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 5775, - "end": 5785, - "loc": { - "start": { - "line": 200, - "column": 20 - }, - "end": { - "line": 200, - "column": 30 - }, - "identifierName": "documentId" - }, - "name": "documentId" - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 5790, - "end": 5797, - "loc": { - "start": { - "line": 200, - "column": 35 - }, - "end": { - "line": 200, - "column": 42 - }, - "identifierName": "copyRes" - }, - "name": "copyRes" - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 5808, - "end": 6601, - "loc": { - "start": { - "line": 202, - "column": 8 - }, - "end": { - "line": 229, - "column": 11 - } - }, - "expression": { - "type": "CallExpression", - "start": 5808, - "end": 6600, - "loc": { - "start": { - "line": 202, - "column": 8 - }, - "end": { - "line": 229, - "column": 10 - } - }, - "callee": { - "type": "Identifier", - "start": 5808, - "end": 5826, - "loc": { - "start": { - "line": 202, - "column": 8 - }, - "end": { - "line": 202, - "column": 26 - }, - "identifierName": "getDocumentDetails" - }, - "name": "getDocumentDetails" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 5827, - "end": 5881, - "loc": { - "start": { - "line": 202, - "column": 27 - }, - "end": { - "line": 205, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5839, - "end": 5853, - "loc": { - "start": { - "line": 203, - "column": 10 - }, - "end": { - "line": 203, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5839, - "end": 5841, - "loc": { - "start": { - "line": 203, - "column": 10 - }, - "end": { - "line": 203, - "column": 12 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 5843, - "end": 5853, - "loc": { - "start": { - "line": 203, - "column": 14 - }, - "end": { - "line": 203, - "column": 24 - }, - "identifierName": "documentId" - }, - "name": "documentId" - } - }, - { - "type": "ObjectProperty", - "start": 5865, - "end": 5870, - "loc": { - "start": { - "line": 204, - "column": 10 - }, - "end": { - "line": 204, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5865, - "end": 5870, - "loc": { - "start": { - "line": 204, - "column": 10 - }, - "end": { - "line": 204, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 5865, - "end": 5870, - "loc": { - "start": { - "line": 204, - "column": 10 - }, - "end": { - "line": 204, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "ArrowFunctionExpression", - "start": 5883, - "end": 6599, - "loc": { - "start": { - "line": 205, - "column": 11 - }, - "end": { - "line": 229, - "column": 9 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 5884, - "end": 5893, - "loc": { - "start": { - "line": 205, - "column": 12 - }, - "end": { - "line": 205, - "column": 21 - }, - "identifierName": "detailErr" - }, - "name": "detailErr" - }, - { - "type": "Identifier", - "start": 5895, - "end": 5904, - "loc": { - "start": { - "line": 205, - "column": 23 - }, - "end": { - "line": 205, - "column": 32 - }, - "identifierName": "detailRes" - }, - "name": "detailRes" - } - ], - "body": { - "type": "BlockStatement", - "start": 5909, - "end": 6599, - "loc": { - "start": { - "line": 205, - "column": 37 - }, - "end": { - "line": 229, - "column": 9 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 5921, - "end": 6589, - "loc": { - "start": { - "line": 206, - "column": 10 - }, - "end": { - "line": 228, - "column": 11 - } - }, - "test": { - "type": "Identifier", - "start": 5925, - "end": 5934, - "loc": { - "start": { - "line": 206, - "column": 14 - }, - "end": { - "line": 206, - "column": 23 - }, - "identifierName": "detailErr" - }, - "name": "detailErr" - }, - "consequent": { - "type": "BlockStatement", - "start": 5936, - "end": 6002, - "loc": { - "start": { - "line": 206, - "column": 25 - }, - "end": { - "line": 209, - "column": 11 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 5950, - "end": 5970, - "loc": { - "start": { - "line": 207, - "column": 12 - }, - "end": { - "line": 207, - "column": 32 - } - }, - "expression": { - "type": "CallExpression", - "start": 5950, - "end": 5969, - "loc": { - "start": { - "line": 207, - "column": 12 - }, - "end": { - "line": 207, - "column": 31 - } - }, - "callee": { - "type": "Identifier", - "start": 5950, - "end": 5958, - "loc": { - "start": { - "line": 207, - "column": 12 - }, - "end": { - "line": 207, - "column": 20 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 5959, - "end": 5968, - "loc": { - "start": { - "line": 207, - "column": 21 - }, - "end": { - "line": 207, - "column": 30 - }, - "identifierName": "detailErr" - }, - "name": "detailErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 5983, - "end": 5990, - "loc": { - "start": { - "line": 208, - "column": 12 - }, - "end": { - "line": 208, - "column": 19 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 6008, - "end": 6589, - "loc": { - "start": { - "line": 209, - "column": 17 - }, - "end": { - "line": 228, - "column": 11 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 6022, - "end": 6094, - "loc": { - "start": { - "line": 210, - "column": 12 - }, - "end": { - "line": 210, - "column": 84 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 6028, - "end": 6093, - "loc": { - "start": { - "line": 210, - "column": 18 - }, - "end": { - "line": 210, - "column": 83 - } - }, - "id": { - "type": "Identifier", - "start": 6028, - "end": 6038, - "loc": { - "start": { - "line": 210, - "column": 18 - }, - "end": { - "line": 210, - "column": 28 - }, - "identifierName": "inviteData" - }, - "name": "inviteData" - }, - "init": { - "type": "CallExpression", - "start": 6041, - "end": 6093, - "loc": { - "start": { - "line": 210, - "column": 31 - }, - "end": { - "line": 210, - "column": 83 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6041, - "end": 6054, - "loc": { - "start": { - "line": 210, - "column": 31 - }, - "end": { - "line": 210, - "column": 44 - } - }, - "object": { - "type": "Identifier", - "start": 6041, - "end": 6047, - "loc": { - "start": { - "line": 210, - "column": 31 - }, - "end": { - "line": 210, - "column": 37 - }, - "identifierName": "Object" - }, - "name": "Object" - }, - "property": { - "type": "Identifier", - "start": 6048, - "end": 6054, - "loc": { - "start": { - "line": 210, - "column": 38 - }, - "end": { - "line": 210, - "column": 44 - }, - "identifierName": "assign" - }, - "name": "assign" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 6055, - "end": 6057, - "loc": { - "start": { - "line": 210, - "column": 45 - }, - "end": { - "line": 210, - "column": 47 - } - }, - "properties": [] - }, - { - "type": "Identifier", - "start": 6059, - "end": 6063, - "loc": { - "start": { - "line": 210, - "column": 49 - }, - "end": { - "line": 210, - "column": 53 - }, - "identifierName": "data" - }, - "name": "data" - }, - { - "type": "ObjectExpression", - "start": 6065, - "end": 6092, - "loc": { - "start": { - "line": 210, - "column": 55 - }, - "end": { - "line": 210, - "column": 82 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 6067, - "end": 6090, - "loc": { - "start": { - "line": 210, - "column": 57 - }, - "end": { - "line": 210, - "column": 80 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6067, - "end": 6078, - "loc": { - "start": { - "line": 210, - "column": 57 - }, - "end": { - "line": 210, - "column": 68 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "value": { - "type": "Identifier", - "start": 6080, - "end": 6090, - "loc": { - "start": { - "line": 210, - "column": 70 - }, - "end": { - "line": 210, - "column": 80 - }, - "identifierName": "documentId" - }, - "name": "documentId" - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 6107, - "end": 6135, - "loc": { - "start": { - "line": 211, - "column": 12 - }, - "end": { - "line": 211, - "column": 40 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 6113, - "end": 6134, - "loc": { - "start": { - "line": 211, - "column": 18 - }, - "end": { - "line": 211, - "column": 39 - } - }, - "id": { - "type": "ObjectPattern", - "start": 6113, - "end": 6122, - "loc": { - "start": { - "line": 211, - "column": 18 - }, - "end": { - "line": 211, - "column": 27 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 6115, - "end": 6120, - "loc": { - "start": { - "line": 211, - "column": 20 - }, - "end": { - "line": 211, - "column": 25 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 6115, - "end": 6120, - "loc": { - "start": { - "line": 211, - "column": 20 - }, - "end": { - "line": 211, - "column": 25 - }, - "identifierName": "roles" - }, - "name": "roles" - }, - "value": { - "type": "Identifier", - "start": 6115, - "end": 6120, - "loc": { - "start": { - "line": 211, - "column": 20 - }, - "end": { - "line": 211, - "column": 25 - }, - "identifierName": "roles" - }, - "name": "roles" - }, - "extra": { - "shorthand": true - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 6125, - "end": 6134, - "loc": { - "start": { - "line": 211, - "column": 30 - }, - "end": { - "line": 211, - "column": 39 - }, - "identifierName": "detailRes" - }, - "name": "detailRes" - } - } - ], - "kind": "const" - }, - { - "type": "ForOfStatement", - "start": 6149, - "end": 6411, - "loc": { - "start": { - "line": 213, - "column": 12 - }, - "end": { - "line": 220, - "column": 13 - } - }, - "left": { - "type": "VariableDeclaration", - "start": 6154, - "end": 6166, - "loc": { - "start": { - "line": 213, - "column": 17 - }, - "end": { - "line": 213, - "column": 29 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 6160, - "end": 6166, - "loc": { - "start": { - "line": 213, - "column": 23 - }, - "end": { - "line": 213, - "column": 29 - } - }, - "id": { - "type": "Identifier", - "start": 6160, - "end": 6166, - "loc": { - "start": { - "line": 213, - "column": 23 - }, - "end": { - "line": 213, - "column": 29 - }, - "identifierName": "signer" - }, - "name": "signer" - }, - "init": null - } - ], - "kind": "const" - }, - "right": { - "type": "MemberExpression", - "start": 6170, - "end": 6183, - "loc": { - "start": { - "line": 213, - "column": 33 - }, - "end": { - "line": 213, - "column": 46 - } - }, - "object": { - "type": "Identifier", - "start": 6170, - "end": 6180, - "loc": { - "start": { - "line": 213, - "column": 33 - }, - "end": { - "line": 213, - "column": 43 - }, - "identifierName": "inviteData" - }, - "name": "inviteData" - }, - "property": { - "type": "Identifier", - "start": 6181, - "end": 6183, - "loc": { - "start": { - "line": 213, - "column": 44 - }, - "end": { - "line": 213, - "column": 46 - }, - "identifierName": "to" - }, - "name": "to" - }, - "computed": false - }, - "body": { - "type": "BlockStatement", - "start": 6185, - "end": 6411, - "loc": { - "start": { - "line": 213, - "column": 48 - }, - "end": { - "line": 220, - "column": 13 - } - }, - "body": [ - { - "type": "TryStatement", - "start": 6201, - "end": 6397, - "loc": { - "start": { - "line": 214, - "column": 14 - }, - "end": { - "line": 219, - "column": 15 - } - }, - "block": { - "type": "BlockStatement", - "start": 6205, - "end": 6312, - "loc": { - "start": { - "line": 214, - "column": 18 - }, - "end": { - "line": 216, - "column": 15 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 6223, - "end": 6296, - "loc": { - "start": { - "line": 215, - "column": 16 - }, - "end": { - "line": 215, - "column": 89 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 6223, - "end": 6295, - "loc": { - "start": { - "line": 215, - "column": 16 - }, - "end": { - "line": 215, - "column": 88 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 6223, - "end": 6237, - "loc": { - "start": { - "line": 215, - "column": 16 - }, - "end": { - "line": 215, - "column": 30 - } - }, - "object": { - "type": "Identifier", - "start": 6223, - "end": 6229, - "loc": { - "start": { - "line": 215, - "column": 16 - }, - "end": { - "line": 215, - "column": 22 - }, - "identifierName": "signer" - }, - "name": "signer" - }, - "property": { - "type": "Identifier", - "start": 6230, - "end": 6237, - "loc": { - "start": { - "line": 215, - "column": 23 - }, - "end": { - "line": 215, - "column": 30 - }, - "identifierName": "role_id" - }, - "name": "role_id" - }, - "computed": false - }, - "right": { - "type": "MemberExpression", - "start": 6240, - "end": 6295, - "loc": { - "start": { - "line": 215, - "column": 33 - }, - "end": { - "line": 215, - "column": 88 - } - }, - "object": { - "type": "CallExpression", - "start": 6240, - "end": 6285, - "loc": { - "start": { - "line": 215, - "column": 33 - }, - "end": { - "line": 215, - "column": 78 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6240, - "end": 6250, - "loc": { - "start": { - "line": 215, - "column": 33 - }, - "end": { - "line": 215, - "column": 43 - } - }, - "object": { - "type": "Identifier", - "start": 6240, - "end": 6245, - "loc": { - "start": { - "line": 215, - "column": 33 - }, - "end": { - "line": 215, - "column": 38 - }, - "identifierName": "roles" - }, - "name": "roles" - }, - "property": { - "type": "Identifier", - "start": 6246, - "end": 6250, - "loc": { - "start": { - "line": 215, - "column": 39 - }, - "end": { - "line": 215, - "column": 43 - }, - "identifierName": "find" - }, - "name": "find" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 6251, - "end": 6284, - "loc": { - "start": { - "line": 215, - "column": 44 - }, - "end": { - "line": 215, - "column": 77 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 6251, - "end": 6255, - "loc": { - "start": { - "line": 215, - "column": 44 - }, - "end": { - "line": 215, - "column": 48 - }, - "identifierName": "role" - }, - "name": "role" - } - ], - "body": { - "type": "BinaryExpression", - "start": 6259, - "end": 6284, - "loc": { - "start": { - "line": 215, - "column": 52 - }, - "end": { - "line": 215, - "column": 77 - } - }, - "left": { - "type": "MemberExpression", - "start": 6259, - "end": 6268, - "loc": { - "start": { - "line": 215, - "column": 52 - }, - "end": { - "line": 215, - "column": 61 - } - }, - "object": { - "type": "Identifier", - "start": 6259, - "end": 6263, - "loc": { - "start": { - "line": 215, - "column": 52 - }, - "end": { - "line": 215, - "column": 56 - }, - "identifierName": "role" - }, - "name": "role" - }, - "property": { - "type": "Identifier", - "start": 6264, - "end": 6268, - "loc": { - "start": { - "line": 215, - "column": 57 - }, - "end": { - "line": 215, - "column": 61 - }, - "identifierName": "name" - }, - "name": "name" - }, - "computed": false - }, - "operator": "===", - "right": { - "type": "MemberExpression", - "start": 6273, - "end": 6284, - "loc": { - "start": { - "line": 215, - "column": 66 - }, - "end": { - "line": 215, - "column": 77 - } - }, - "object": { - "type": "Identifier", - "start": 6273, - "end": 6279, - "loc": { - "start": { - "line": 215, - "column": 66 - }, - "end": { - "line": 215, - "column": 72 - }, - "identifierName": "signer" - }, - "name": "signer" - }, - "property": { - "type": "Identifier", - "start": 6280, - "end": 6284, - "loc": { - "start": { - "line": 215, - "column": 73 - }, - "end": { - "line": 215, - "column": 77 - }, - "identifierName": "role" - }, - "name": "role" - }, - "computed": false - } - } - } - ] - }, - "property": { - "type": "Identifier", - "start": 6286, - "end": 6295, - "loc": { - "start": { - "line": 215, - "column": 79 - }, - "end": { - "line": 215, - "column": 88 - }, - "identifierName": "unique_id" - }, - "name": "unique_id" - }, - "computed": false - } - } - } - ], - "directives": [] - }, - "handler": { - "type": "CatchClause", - "start": 6313, - "end": 6397, - "loc": { - "start": { - "line": 216, - "column": 16 - }, - "end": { - "line": 219, - "column": 15 - } - }, - "param": { - "type": "Identifier", - "start": 6320, - "end": 6323, - "loc": { - "start": { - "line": 216, - "column": 23 - }, - "end": { - "line": 216, - "column": 26 - }, - "identifierName": "err" - }, - "name": "err" - }, - "body": { - "type": "BlockStatement", - "start": 6325, - "end": 6397, - "loc": { - "start": { - "line": 216, - "column": 28 - }, - "end": { - "line": 219, - "column": 15 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 6343, - "end": 6357, - "loc": { - "start": { - "line": 217, - "column": 16 - }, - "end": { - "line": 217, - "column": 30 - } - }, - "expression": { - "type": "CallExpression", - "start": 6343, - "end": 6356, - "loc": { - "start": { - "line": 217, - "column": 16 - }, - "end": { - "line": 217, - "column": 29 - } - }, - "callee": { - "type": "Identifier", - "start": 6343, - "end": 6351, - "loc": { - "start": { - "line": 217, - "column": 16 - }, - "end": { - "line": 217, - "column": 24 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 6352, - "end": 6355, - "loc": { - "start": { - "line": 217, - "column": 25 - }, - "end": { - "line": 217, - "column": 28 - }, - "identifierName": "err" - }, - "name": "err" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 6374, - "end": 6381, - "loc": { - "start": { - "line": 218, - "column": 16 - }, - "end": { - "line": 218, - "column": 23 - } - }, - "argument": null - } - ], - "directives": [] - } - }, - "guardedHandlers": [], - "finalizer": null - } - ], - "directives": [] - } - }, - { - "type": "ExpressionStatement", - "start": 6425, - "end": 6577, - "loc": { - "start": { - "line": 222, - "column": 12 - }, - "end": { - "line": 227, - "column": 25 - } - }, - "expression": { - "type": "CallExpression", - "start": 6425, - "end": 6576, - "loc": { - "start": { - "line": 222, - "column": 12 - }, - "end": { - "line": 227, - "column": 24 - } - }, - "callee": { - "type": "Identifier", - "start": 6425, - "end": 6443, - "loc": { - "start": { - "line": 222, - "column": 12 - }, - "end": { - "line": 222, - "column": 30 - }, - "identifierName": "sendDocumentInvite" - }, - "name": "sendDocumentInvite" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 6444, - "end": 6565, - "loc": { - "start": { - "line": 222, - "column": 31 - }, - "end": { - "line": 227, - "column": 13 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 6460, - "end": 6474, - "loc": { - "start": { - "line": 223, - "column": 14 - }, - "end": { - "line": 223, - "column": 28 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6460, - "end": 6462, - "loc": { - "start": { - "line": 223, - "column": 14 - }, - "end": { - "line": 223, - "column": 16 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 6464, - "end": 6474, - "loc": { - "start": { - "line": 223, - "column": 18 - }, - "end": { - "line": 223, - "column": 28 - }, - "identifierName": "documentId" - }, - "name": "documentId" - } - }, - { - "type": "ObjectProperty", - "start": 6490, - "end": 6506, - "loc": { - "start": { - "line": 224, - "column": 14 - }, - "end": { - "line": 224, - "column": 30 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6490, - "end": 6494, - "loc": { - "start": { - "line": 224, - "column": 14 - }, - "end": { - "line": 224, - "column": 18 - }, - "identifierName": "data" - }, - "name": "data" - }, - "value": { - "type": "Identifier", - "start": 6496, - "end": 6506, - "loc": { - "start": { - "line": 224, - "column": 20 - }, - "end": { - "line": 224, - "column": 30 - }, - "identifierName": "inviteData" - }, - "name": "inviteData" - } - }, - { - "type": "ObjectProperty", - "start": 6522, - "end": 6529, - "loc": { - "start": { - "line": 225, - "column": 14 - }, - "end": { - "line": 225, - "column": 21 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 6522, - "end": 6529, - "loc": { - "start": { - "line": 225, - "column": 14 - }, - "end": { - "line": 225, - "column": 21 - }, - "identifierName": "options" - }, - "name": "options" - }, - "value": { - "type": "Identifier", - "start": 6522, - "end": 6529, - "loc": { - "start": { - "line": 225, - "column": 14 - }, - "end": { - "line": 225, - "column": 21 - }, - "identifierName": "options" - }, - "name": "options" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 6545, - "end": 6550, - "loc": { - "start": { - "line": 226, - "column": 14 - }, - "end": { - "line": 226, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 6545, - "end": 6550, - "loc": { - "start": { - "line": 226, - "column": 14 - }, - "end": { - "line": 226, - "column": 19 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 6545, - "end": 6550, - "loc": { - "start": { - "line": 226, - "column": 14 - }, - "end": { - "line": 226, - "column": 19 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 6567, - "end": 6575, - "loc": { - "start": { - "line": 227, - "column": 15 - }, - "end": { - "line": 227, - "column": 23 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 6615, - "end": 6891, - "loc": { - "start": { - "line": 230, - "column": 13 - }, - "end": { - "line": 240, - "column": 7 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 6625, - "end": 6660, - "loc": { - "start": { - "line": 231, - "column": 8 - }, - "end": { - "line": 231, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 6631, - "end": 6659, - "loc": { - "start": { - "line": 231, - "column": 14 - }, - "end": { - "line": 231, - "column": 42 - } - }, - "id": { - "type": "ObjectPattern", - "start": 6631, - "end": 6649, - "loc": { - "start": { - "line": 231, - "column": 14 - }, - "end": { - "line": 231, - "column": 32 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 6633, - "end": 6647, - "loc": { - "start": { - "line": 231, - "column": 16 - }, - "end": { - "line": 231, - "column": 30 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6633, - "end": 6635, - "loc": { - "start": { - "line": 231, - "column": 16 - }, - "end": { - "line": 231, - "column": 18 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 6637, - "end": 6647, - "loc": { - "start": { - "line": 231, - "column": 20 - }, - "end": { - "line": 231, - "column": 30 - }, - "identifierName": "documentId" - }, - "name": "documentId" - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 6652, - "end": 6659, - "loc": { - "start": { - "line": 231, - "column": 35 - }, - "end": { - "line": 231, - "column": 42 - }, - "identifierName": "copyRes" - }, - "name": "copyRes" - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 6669, - "end": 6741, - "loc": { - "start": { - "line": 232, - "column": 8 - }, - "end": { - "line": 232, - "column": 80 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 6675, - "end": 6740, - "loc": { - "start": { - "line": 232, - "column": 14 - }, - "end": { - "line": 232, - "column": 79 - } - }, - "id": { - "type": "Identifier", - "start": 6675, - "end": 6685, - "loc": { - "start": { - "line": 232, - "column": 14 - }, - "end": { - "line": 232, - "column": 24 - }, - "identifierName": "inviteData" - }, - "name": "inviteData" - }, - "init": { - "type": "CallExpression", - "start": 6688, - "end": 6740, - "loc": { - "start": { - "line": 232, - "column": 27 - }, - "end": { - "line": 232, - "column": 79 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6688, - "end": 6701, - "loc": { - "start": { - "line": 232, - "column": 27 - }, - "end": { - "line": 232, - "column": 40 - } - }, - "object": { - "type": "Identifier", - "start": 6688, - "end": 6694, - "loc": { - "start": { - "line": 232, - "column": 27 - }, - "end": { - "line": 232, - "column": 33 - }, - "identifierName": "Object" - }, - "name": "Object" - }, - "property": { - "type": "Identifier", - "start": 6695, - "end": 6701, - "loc": { - "start": { - "line": 232, - "column": 34 - }, - "end": { - "line": 232, - "column": 40 - }, - "identifierName": "assign" - }, - "name": "assign" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 6702, - "end": 6704, - "loc": { - "start": { - "line": 232, - "column": 41 - }, - "end": { - "line": 232, - "column": 43 - } - }, - "properties": [] - }, - { - "type": "Identifier", - "start": 6706, - "end": 6710, - "loc": { - "start": { - "line": 232, - "column": 45 - }, - "end": { - "line": 232, - "column": 49 - }, - "identifierName": "data" - }, - "name": "data" - }, - { - "type": "ObjectExpression", - "start": 6712, - "end": 6739, - "loc": { - "start": { - "line": 232, - "column": 51 - }, - "end": { - "line": 232, - "column": 78 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 6714, - "end": 6737, - "loc": { - "start": { - "line": 232, - "column": 53 - }, - "end": { - "line": 232, - "column": 76 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6714, - "end": 6725, - "loc": { - "start": { - "line": 232, - "column": 53 - }, - "end": { - "line": 232, - "column": 64 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "value": { - "type": "Identifier", - "start": 6727, - "end": 6737, - "loc": { - "start": { - "line": 232, - "column": 66 - }, - "end": { - "line": 232, - "column": 76 - }, - "identifierName": "documentId" - }, - "name": "documentId" - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 6751, - "end": 6883, - "loc": { - "start": { - "line": 234, - "column": 8 - }, - "end": { - "line": 239, - "column": 21 - } - }, - "expression": { - "type": "CallExpression", - "start": 6751, - "end": 6882, - "loc": { - "start": { - "line": 234, - "column": 8 - }, - "end": { - "line": 239, - "column": 20 - } - }, - "callee": { - "type": "Identifier", - "start": 6751, - "end": 6769, - "loc": { - "start": { - "line": 234, - "column": 8 - }, - "end": { - "line": 234, - "column": 26 - }, - "identifierName": "sendDocumentInvite" - }, - "name": "sendDocumentInvite" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 6770, - "end": 6871, - "loc": { - "start": { - "line": 234, - "column": 27 - }, - "end": { - "line": 239, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 6782, - "end": 6796, - "loc": { - "start": { - "line": 235, - "column": 10 - }, - "end": { - "line": 235, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6782, - "end": 6784, - "loc": { - "start": { - "line": 235, - "column": 10 - }, - "end": { - "line": 235, - "column": 12 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 6786, - "end": 6796, - "loc": { - "start": { - "line": 235, - "column": 14 - }, - "end": { - "line": 235, - "column": 24 - }, - "identifierName": "documentId" - }, - "name": "documentId" - } - }, - { - "type": "ObjectProperty", - "start": 6808, - "end": 6824, - "loc": { - "start": { - "line": 236, - "column": 10 - }, - "end": { - "line": 236, - "column": 26 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6808, - "end": 6812, - "loc": { - "start": { - "line": 236, - "column": 10 - }, - "end": { - "line": 236, - "column": 14 - }, - "identifierName": "data" - }, - "name": "data" - }, - "value": { - "type": "Identifier", - "start": 6814, - "end": 6824, - "loc": { - "start": { - "line": 236, - "column": 16 - }, - "end": { - "line": 236, - "column": 26 - }, - "identifierName": "inviteData" - }, - "name": "inviteData" - } - }, - { - "type": "ObjectProperty", - "start": 6836, - "end": 6843, - "loc": { - "start": { - "line": 237, - "column": 10 - }, - "end": { - "line": 237, - "column": 17 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 6836, - "end": 6843, - "loc": { - "start": { - "line": 237, - "column": 10 - }, - "end": { - "line": 237, - "column": 17 - }, - "identifierName": "options" - }, - "name": "options" - }, - "value": { - "type": "Identifier", - "start": 6836, - "end": 6843, - "loc": { - "start": { - "line": 237, - "column": 10 - }, - "end": { - "line": 237, - "column": 17 - }, - "identifierName": "options" - }, - "name": "options" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 6855, - "end": 6860, - "loc": { - "start": { - "line": 238, - "column": 10 - }, - "end": { - "line": 238, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 6855, - "end": 6860, - "loc": { - "start": { - "line": 238, - "column": 10 - }, - "end": { - "line": 238, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 6855, - "end": 6860, - "loc": { - "start": { - "line": 238, - "column": 10 - }, - "end": { - "line": 238, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 6873, - "end": 6881, - "loc": { - "start": { - "line": 239, - "column": 11 - }, - "end": { - "line": 239, - "column": 19 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - } - ], - "directives": [] - } - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Create invite with template payload\n * @typedef {DocumentInviteParams} TemplateInviteParams\n ", - "start": 4844, - "end": 4952, - "loc": { - "start": { - "line": 169, - "column": 2 - }, - "end": { - "line": 172, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create invite with template response data\n * @typedef {DocumentInviteResponse} TemplateInviteResponse\n ", - "start": 4956, - "end": 5074, - "loc": { - "start": { - "line": 174, - "column": 2 - }, - "end": { - "line": 177, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates an invite to sign a template.\n * You can create a simple free form invite(s) or a role-based invite(s).\n * The method copies a template into document and creates an invite using created document.\n * @param {TemplateInviteParams} data - create template invite payload\n * @param {function(err: ApiErrorResponse, res: TemplateInviteResponse)} [callback] - error first node.js callback\n ", - "start": 5078, - "end": 5490, - "loc": { - "start": { - "line": 179, - "column": 2 - }, - "end": { - "line": 185, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Remove template payload\n * @typedef {DocumentRemoveParams} TemplateRemoveParams\n ", - "start": 6907, - "end": 7003, - "loc": { - "start": { - "line": 244, - "column": 2 - }, - "end": { - "line": 247, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Remove template response data\n * @typedef {DocumentRemoveResponse} TemplateRemoveResponse\n ", - "start": 7007, - "end": 7113, - "loc": { - "start": { - "line": 249, - "column": 2 - }, - "end": { - "line": 252, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Removes a specified template from folder\n * @param {TemplateRemoveParams} data - remove template payload\n * @param {function(err: ApiErrorResponse, res: TemplateRemoveResponse)} [callback] - error first node.js callback\n ", - "start": 7117, - "end": 7355, - "loc": { - "start": { - "line": 254, - "column": 2 - }, - "end": { - "line": 258, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 7358, - "end": 7465, - "loc": { - "start": { - "line": 259, - "column": 2 - }, - "end": { - "line": 264, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7365, - "end": 7371, - "loc": { - "start": { - "line": 259, - "column": 9 - }, - "end": { - "line": 259, - "column": 15 - }, - "identifierName": "remove" - }, - "name": "remove" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 7373, - "end": 7386, - "loc": { - "start": { - "line": 259, - "column": 17 - }, - "end": { - "line": 259, - "column": 30 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 7375, - "end": 7377, - "loc": { - "start": { - "line": 259, - "column": 19 - }, - "end": { - "line": 259, - "column": 21 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7375, - "end": 7377, - "loc": { - "start": { - "line": 259, - "column": 19 - }, - "end": { - "line": 259, - "column": 21 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 7375, - "end": 7377, - "loc": { - "start": { - "line": 259, - "column": 19 - }, - "end": { - "line": 259, - "column": 21 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 7379, - "end": 7384, - "loc": { - "start": { - "line": 259, - "column": 23 - }, - "end": { - "line": 259, - "column": 28 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7379, - "end": 7384, - "loc": { - "start": { - "line": 259, - "column": 23 - }, - "end": { - "line": 259, - "column": 28 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 7379, - "end": 7384, - "loc": { - "start": { - "line": 259, - "column": 23 - }, - "end": { - "line": 259, - "column": 28 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 7388, - "end": 7396, - "loc": { - "start": { - "line": 259, - "column": 32 - }, - "end": { - "line": 259, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 7398, - "end": 7465, - "loc": { - "start": { - "line": 259, - "column": 42 - }, - "end": { - "line": 264, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 7404, - "end": 7461, - "loc": { - "start": { - "line": 260, - "column": 4 - }, - "end": { - "line": 263, - "column": 17 - } - }, - "expression": { - "type": "CallExpression", - "start": 7404, - "end": 7460, - "loc": { - "start": { - "line": 260, - "column": 4 - }, - "end": { - "line": 263, - "column": 16 - } - }, - "callee": { - "type": "Identifier", - "start": 7404, - "end": 7418, - "loc": { - "start": { - "line": 260, - "column": 4 - }, - "end": { - "line": 260, - "column": 18 - }, - "identifierName": "removeDocument" - }, - "name": "removeDocument" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 7419, - "end": 7449, - "loc": { - "start": { - "line": 260, - "column": 19 - }, - "end": { - "line": 263, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 7427, - "end": 7429, - "loc": { - "start": { - "line": 261, - "column": 6 - }, - "end": { - "line": 261, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7427, - "end": 7429, - "loc": { - "start": { - "line": 261, - "column": 6 - }, - "end": { - "line": 261, - "column": 8 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 7427, - "end": 7429, - "loc": { - "start": { - "line": 261, - "column": 6 - }, - "end": { - "line": 261, - "column": 8 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 7437, - "end": 7442, - "loc": { - "start": { - "line": 262, - "column": 6 - }, - "end": { - "line": 262, - "column": 11 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7437, - "end": 7442, - "loc": { - "start": { - "line": 262, - "column": 6 - }, - "end": { - "line": 262, - "column": 11 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 7437, - "end": 7442, - "loc": { - "start": { - "line": 262, - "column": 6 - }, - "end": { - "line": 262, - "column": 11 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 7451, - "end": 7459, - "loc": { - "start": { - "line": 263, - "column": 7 - }, - "end": { - "line": 263, - "column": 15 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Remove template payload\n * @typedef {DocumentRemoveParams} TemplateRemoveParams\n ", - "start": 6907, - "end": 7003, - "loc": { - "start": { - "line": 244, - "column": 2 - }, - "end": { - "line": 247, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Remove template response data\n * @typedef {DocumentRemoveResponse} TemplateRemoveResponse\n ", - "start": 7007, - "end": 7113, - "loc": { - "start": { - "line": 249, - "column": 2 - }, - "end": { - "line": 252, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Removes a specified template from folder\n * @param {TemplateRemoveParams} data - remove template payload\n * @param {function(err: ApiErrorResponse, res: TemplateRemoveResponse)} [callback] - error first node.js callback\n ", - "start": 7117, - "end": 7355, - "loc": { - "start": { - "line": 254, - "column": 2 - }, - "end": { - "line": 258, - "column": 5 - } - } - } - ] - } - ] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Template methods\n ", - "start": 925, - "end": 952, - "loc": { - "start": { - "line": 33, - "column": 0 - }, - "end": { - "line": 35, - "column": 3 - } - } - } - ], - "__PseudoExport__": false, - "trailingComments": [] - }, - "leadingComments": null - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "value": "use strict", - "extra": { - "raw": "'use strict'", - "rawValue": "use strict" - } - } - } - ] - }, - "comments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentRemoveParams} data - remove document payload\n * @param {function(err: ApiErrorResponse, res: DocumentRemoveResponse)} [callback] - error first node.js callback\n ", - "start": 182, - "end": 388, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 16, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentInviteParams} data - create document invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentInviteResponse)} [callback] - error first node.js callback\n ", - "start": 421, - "end": 634, - "loc": { - "start": { - "line": 19, - "column": 0 - }, - "end": { - "line": 23, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewParams} data - view document with field extract payload\n * @param {function(err: ApiErrorResponse, res: DocumentViewResponse)} [callback] - error first node.js callback\n ", - "start": 671, - "end": 890, - "loc": { - "start": { - "line": 26, - "column": 0 - }, - "end": { - "line": 30, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Template methods\n ", - "start": 925, - "end": 952, - "loc": { - "start": { - "line": 33, - "column": 0 - }, - "end": { - "line": 35, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document invite optional settings\n * @typedef {Object} TemplateCreateOptions\n * @property {boolean} [removeOriginalDocument=false] - if true original document will be removed\n ", - "start": 973, - "end": 1166, - "loc": { - "start": { - "line": 38, - "column": 2 - }, - "end": { - "line": 42, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create template payload\n * @typedef {Object} TemplateCreateParams\n * @property {string} document_id - an id of original document\n * @property {string} document_name - a name of new template\n * @property {TemplateCreateOptions} options - create template optional settings\n * @property {string} token - your auth token\n ", - "start": 1170, - "end": 1511, - "loc": { - "start": { - "line": 44, - "column": 2 - }, - "end": { - "line": 51, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create template response data\n * @typedef {Object} TemplateCreateResponse\n * @property {string} id - an id of created template\n ", - "start": 1515, - "end": 1660, - "loc": { - "start": { - "line": 53, - "column": 2 - }, - "end": { - "line": 57, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates a template by copying an existing unfulfilled and not requested for sign document.\n * By default original document is not removed after template creation. To remove original document set `removeOriginalDocument` option to `true`.\n * @param {TemplateCreateParams} data - create template payload\n * @param {function(err: ApiErrorResponse, res: TemplateCreateResponse)} [originalCallback] - error first node.js callback\n ", - "start": 1664, - "end": 2109, - "loc": { - "start": { - "line": 59, - "column": 2 - }, - "end": { - "line": 64, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Copy template payload\n * @typedef {Object} TemplateDuplicateParams\n * @property {string} id - an id of original template\n * @property {string} name - a name of new document\n * @property {string} token - your auth token\n ", - "start": 3378, - "end": 3619, - "loc": { - "start": { - "line": 119, - "column": 2 - }, - "end": { - "line": 125, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Copy template response data\n * @typedef {Object} TemplateDuplicateResponse\n * @property {string} id - an id of created document\n * @property {string} name - a name of created document\n ", - "start": 3623, - "end": 3827, - "loc": { - "start": { - "line": 127, - "column": 2 - }, - "end": { - "line": 132, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates a new document by copying a template.\n * If a name is not supplied then document name will be set to the original template's name by default.\n * @param {TemplateDuplicateParams} data - duplicate template payload\n * @param {function(err: ApiErrorResponse, res: TemplateDuplicateResponse)} [callback] - error first node.js callback\n ", - "start": 3831, - "end": 4189, - "loc": { - "start": { - "line": 134, - "column": 2 - }, - "end": { - "line": 139, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create invite with template payload\n * @typedef {DocumentInviteParams} TemplateInviteParams\n ", - "start": 4844, - "end": 4952, - "loc": { - "start": { - "line": 169, - "column": 2 - }, - "end": { - "line": 172, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create invite with template response data\n * @typedef {DocumentInviteResponse} TemplateInviteResponse\n ", - "start": 4956, - "end": 5074, - "loc": { - "start": { - "line": 174, - "column": 2 - }, - "end": { - "line": 177, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates an invite to sign a template.\n * You can create a simple free form invite(s) or a role-based invite(s).\n * The method copies a template into document and creates an invite using created document.\n * @param {TemplateInviteParams} data - create template invite payload\n * @param {function(err: ApiErrorResponse, res: TemplateInviteResponse)} [callback] - error first node.js callback\n ", - "start": 5078, - "end": 5490, - "loc": { - "start": { - "line": 179, - "column": 2 - }, - "end": { - "line": 185, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Remove template payload\n * @typedef {DocumentRemoveParams} TemplateRemoveParams\n ", - "start": 6907, - "end": 7003, - "loc": { - "start": { - "line": 244, - "column": 2 - }, - "end": { - "line": 247, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Remove template response data\n * @typedef {DocumentRemoveResponse} TemplateRemoveResponse\n ", - "start": 7007, - "end": 7113, - "loc": { - "start": { - "line": 249, - "column": 2 - }, - "end": { - "line": 252, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Removes a specified template from folder\n * @param {TemplateRemoveParams} data - remove template payload\n * @param {function(err: ApiErrorResponse, res: TemplateRemoveResponse)} [callback] - error first node.js callback\n ", - "start": 7117, - "end": 7355, - "loc": { - "start": { - "line": 254, - "column": 2 - }, - "end": { - "line": 258, - "column": 5 - } - } - } - ], - "tokens": [ - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "use strict", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 12 - }, - "end": { - "line": 1, - "column": 13 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 14, - "end": 20, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 27, - "end": 31, - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 17 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "https", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 18 - }, - "end": { - "line": 2, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39, - "end": 40, - "loc": { - "start": { - "line": 2, - "column": 25 - }, - "end": { - "line": 2, - "column": 26 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 41, - "end": 47, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 48, - "end": 49, - "loc": { - "start": { - "line": 3, - "column": 7 - }, - "end": { - "line": 3, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 67, - "end": 68, - "loc": { - "start": { - "line": 4, - "column": 17 - }, - "end": { - "line": 4, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 69, - "end": 81, - "loc": { - "start": { - "line": 4, - "column": 19 - }, - "end": { - "line": 4, - "column": 31 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 81, - "end": 82, - "loc": { - "start": { - "line": 4, - "column": 31 - }, - "end": { - "line": 4, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 83, - "end": 102, - "loc": { - "start": { - "line": 4, - "column": 33 - }, - "end": { - "line": 4, - "column": 52 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 102, - "end": 103, - "loc": { - "start": { - "line": 4, - "column": 52 - }, - "end": { - "line": 4, - "column": 53 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 104, - "end": 105, - "loc": { - "start": { - "line": 5, - "column": 0 - }, - "end": { - "line": 5, - "column": 1 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 106, - "end": 110, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 6 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "./common", - "start": 111, - "end": 121, - "loc": { - "start": { - "line": 5, - "column": 7 - }, - "end": { - "line": 5, - "column": 17 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 121, - "end": 122, - "loc": { - "start": { - "line": 5, - "column": 17 - }, - "end": { - "line": 5, - "column": 18 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 123, - "end": 129, - "loc": { - "start": { - "line": 6, - "column": 0 - }, - "end": { - "line": 6, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 130, - "end": 131, - "loc": { - "start": { - "line": 6, - "column": 7 - }, - "end": { - "line": 6, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "remove", - "start": 134, - "end": 140, - "loc": { - "start": { - "line": 7, - "column": 2 - }, - "end": { - "line": 7, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 140, - "end": 141, - "loc": { - "start": { - "line": 7, - "column": 8 - }, - "end": { - "line": 7, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "invite", - "start": 144, - "end": 150, - "loc": { - "start": { - "line": 8, - "column": 2 - }, - "end": { - "line": 8, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 150, - "end": 151, - "loc": { - "start": { - "line": 8, - "column": 8 - }, - "end": { - "line": 8, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "view", - "start": 154, - "end": 158, - "loc": { - "start": { - "line": 9, - "column": 2 - }, - "end": { - "line": 9, - "column": 6 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 158, - "end": 159, - "loc": { - "start": { - "line": 9, - "column": 6 - }, - "end": { - "line": 9, - "column": 7 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 160, - "end": 161, - "loc": { - "start": { - "line": 10, - "column": 0 - }, - "end": { - "line": 10, - "column": 1 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 162, - "end": 166, - "loc": { - "start": { - "line": 10, - "column": 2 - }, - "end": { - "line": 10, - "column": 6 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "./document", - "start": 167, - "end": 179, - "loc": { - "start": { - "line": 10, - "column": 7 - }, - "end": { - "line": 10, - "column": 19 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 179, - "end": 180, - "loc": { - "start": { - "line": 10, - "column": 19 - }, - "end": { - "line": 10, - "column": 20 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentRemoveParams} data - remove document payload\n * @param {function(err: ApiErrorResponse, res: DocumentRemoveResponse)} [callback] - error first node.js callback\n ", - "start": 182, - "end": 388, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 16, - "column": 3 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 389, - "end": 394, - "loc": { - "start": { - "line": 17, - "column": 0 - }, - "end": { - "line": 17, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "removeDocument", - "start": 395, - "end": 409, - "loc": { - "start": { - "line": 17, - "column": 6 - }, - "end": { - "line": 17, - "column": 20 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 410, - "end": 411, - "loc": { - "start": { - "line": 17, - "column": 21 - }, - "end": { - "line": 17, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "remove", - "start": 412, - "end": 418, - "loc": { - "start": { - "line": 17, - "column": 23 - }, - "end": { - "line": 17, - "column": 29 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 418, - "end": 419, - "loc": { - "start": { - "line": 17, - "column": 29 - }, - "end": { - "line": 17, - "column": 30 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentInviteParams} data - create document invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentInviteResponse)} [callback] - error first node.js callback\n ", - "start": 421, - "end": 634, - "loc": { - "start": { - "line": 19, - "column": 0 - }, - "end": { - "line": 23, - "column": 3 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 635, - "end": 640, - "loc": { - "start": { - "line": 24, - "column": 0 - }, - "end": { - "line": 24, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "sendDocumentInvite", - "start": 641, - "end": 659, - "loc": { - "start": { - "line": 24, - "column": 6 - }, - "end": { - "line": 24, - "column": 24 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 660, - "end": 661, - "loc": { - "start": { - "line": 24, - "column": 25 - }, - "end": { - "line": 24, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "invite", - "start": 662, - "end": 668, - "loc": { - "start": { - "line": 24, - "column": 27 - }, - "end": { - "line": 24, - "column": 33 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 668, - "end": 669, - "loc": { - "start": { - "line": 24, - "column": 33 - }, - "end": { - "line": 24, - "column": 34 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewParams} data - view document with field extract payload\n * @param {function(err: ApiErrorResponse, res: DocumentViewResponse)} [callback] - error first node.js callback\n ", - "start": 671, - "end": 890, - "loc": { - "start": { - "line": 26, - "column": 0 - }, - "end": { - "line": 30, - "column": 3 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 891, - "end": 896, - "loc": { - "start": { - "line": 31, - "column": 0 - }, - "end": { - "line": 31, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getDocumentDetails", - "start": 897, - "end": 915, - "loc": { - "start": { - "line": 31, - "column": 6 - }, - "end": { - "line": 31, - "column": 24 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 916, - "end": 917, - "loc": { - "start": { - "line": 31, - "column": 25 - }, - "end": { - "line": 31, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "view", - "start": 918, - "end": 922, - "loc": { - "start": { - "line": 31, - "column": 27 - }, - "end": { - "line": 31, - "column": 31 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 922, - "end": 923, - "loc": { - "start": { - "line": 31, - "column": 31 - }, - "end": { - "line": 31, - "column": 32 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Template methods\n ", - "start": 925, - "end": 952, - "loc": { - "start": { - "line": 33, - "column": 0 - }, - "end": { - "line": 35, - "column": 3 - } - } - }, - { - "type": { - "label": "class", - "keyword": "class", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "class", - "start": 953, - "end": 958, - "loc": { - "start": { - "line": 36, - "column": 0 - }, - "end": { - "line": 36, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Template", - "start": 959, - "end": 967, - "loc": { - "start": { - "line": 36, - "column": 6 - }, - "end": { - "line": 36, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 968, - "end": 969, - "loc": { - "start": { - "line": 36, - "column": 15 - }, - "end": { - "line": 36, - "column": 16 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document invite optional settings\n * @typedef {Object} TemplateCreateOptions\n * @property {boolean} [removeOriginalDocument=false] - if true original document will be removed\n ", - "start": 973, - "end": 1166, - "loc": { - "start": { - "line": 38, - "column": 2 - }, - "end": { - "line": 42, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create template payload\n * @typedef {Object} TemplateCreateParams\n * @property {string} document_id - an id of original document\n * @property {string} document_name - a name of new template\n * @property {TemplateCreateOptions} options - create template optional settings\n * @property {string} token - your auth token\n ", - "start": 1170, - "end": 1511, - "loc": { - "start": { - "line": 44, - "column": 2 - }, - "end": { - "line": 51, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create template response data\n * @typedef {Object} TemplateCreateResponse\n * @property {string} id - an id of created template\n ", - "start": 1515, - "end": 1660, - "loc": { - "start": { - "line": 53, - "column": 2 - }, - "end": { - "line": 57, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates a template by copying an existing unfulfilled and not requested for sign document.\n * By default original document is not removed after template creation. To remove original document set `removeOriginalDocument` option to `true`.\n * @param {TemplateCreateParams} data - create template payload\n * @param {function(err: ApiErrorResponse, res: TemplateCreateResponse)} [originalCallback] - error first node.js callback\n ", - "start": 1664, - "end": 2109, - "loc": { - "start": { - "line": 59, - "column": 2 - }, - "end": { - "line": 64, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 2112, - "end": 2118, - "loc": { - "start": { - "line": 65, - "column": 2 - }, - "end": { - "line": 65, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "create", - "start": 2119, - "end": 2125, - "loc": { - "start": { - "line": 65, - "column": 9 - }, - "end": { - "line": 65, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2126, - "end": 2127, - "loc": { - "start": { - "line": 65, - "column": 16 - }, - "end": { - "line": 65, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2127, - "end": 2128, - "loc": { - "start": { - "line": 65, - "column": 17 - }, - "end": { - "line": 65, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_id", - "start": 2133, - "end": 2144, - "loc": { - "start": { - "line": 66, - "column": 4 - }, - "end": { - "line": 66, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2144, - "end": 2145, - "loc": { - "start": { - "line": 66, - "column": 15 - }, - "end": { - "line": 66, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_name", - "start": 2150, - "end": 2163, - "loc": { - "start": { - "line": 67, - "column": 4 - }, - "end": { - "line": 67, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2163, - "end": 2164, - "loc": { - "start": { - "line": 67, - "column": 17 - }, - "end": { - "line": 67, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "options", - "start": 2169, - "end": 2176, - "loc": { - "start": { - "line": 68, - "column": 4 - }, - "end": { - "line": 68, - "column": 11 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2176, - "end": 2177, - "loc": { - "start": { - "line": 68, - "column": 11 - }, - "end": { - "line": 68, - "column": 12 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2178, - "end": 2179, - "loc": { - "start": { - "line": 68, - "column": 13 - }, - "end": { - "line": 68, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "removeOriginalDocument", - "start": 2180, - "end": 2202, - "loc": { - "start": { - "line": 68, - "column": 15 - }, - "end": { - "line": 68, - "column": 37 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 2203, - "end": 2204, - "loc": { - "start": { - "line": 68, - "column": 38 - }, - "end": { - "line": 68, - "column": 39 - } - } - }, - { - "type": { - "label": "false", - "keyword": "false", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "false", - "start": 2205, - "end": 2210, - "loc": { - "start": { - "line": 68, - "column": 40 - }, - "end": { - "line": 68, - "column": 45 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2211, - "end": 2212, - "loc": { - "start": { - "line": 68, - "column": 46 - }, - "end": { - "line": 68, - "column": 47 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 2213, - "end": 2214, - "loc": { - "start": { - "line": 68, - "column": 48 - }, - "end": { - "line": 68, - "column": 49 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2215, - "end": 2216, - "loc": { - "start": { - "line": 68, - "column": 50 - }, - "end": { - "line": 68, - "column": 51 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2216, - "end": 2217, - "loc": { - "start": { - "line": 68, - "column": 51 - }, - "end": { - "line": 68, - "column": 52 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2217, - "end": 2218, - "loc": { - "start": { - "line": 68, - "column": 52 - }, - "end": { - "line": 68, - "column": 53 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 2223, - "end": 2228, - "loc": { - "start": { - "line": 69, - "column": 4 - }, - "end": { - "line": 69, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2228, - "end": 2229, - "loc": { - "start": { - "line": 69, - "column": 9 - }, - "end": { - "line": 69, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2232, - "end": 2233, - "loc": { - "start": { - "line": 70, - "column": 2 - }, - "end": { - "line": 70, - "column": 3 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2233, - "end": 2234, - "loc": { - "start": { - "line": 70, - "column": 3 - }, - "end": { - "line": 70, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "originalCallback", - "start": 2235, - "end": 2251, - "loc": { - "start": { - "line": 70, - "column": 5 - }, - "end": { - "line": 70, - "column": 21 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2251, - "end": 2252, - "loc": { - "start": { - "line": 70, - "column": 21 - }, - "end": { - "line": 70, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2253, - "end": 2254, - "loc": { - "start": { - "line": 70, - "column": 23 - }, - "end": { - "line": 70, - "column": 24 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 2259, - "end": 2264, - "loc": { - "start": { - "line": 71, - "column": 4 - }, - "end": { - "line": 71, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 2265, - "end": 2273, - "loc": { - "start": { - "line": 71, - "column": 10 - }, - "end": { - "line": 71, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 2274, - "end": 2275, - "loc": { - "start": { - "line": 71, - "column": 19 - }, - "end": { - "line": 71, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSON", - "start": 2276, - "end": 2280, - "loc": { - "start": { - "line": 71, - "column": 21 - }, - "end": { - "line": 71, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2280, - "end": 2281, - "loc": { - "start": { - "line": 71, - "column": 25 - }, - "end": { - "line": 71, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "stringify", - "start": 2281, - "end": 2290, - "loc": { - "start": { - "line": 71, - "column": 26 - }, - "end": { - "line": 71, - "column": 35 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2290, - "end": 2291, - "loc": { - "start": { - "line": 71, - "column": 35 - }, - "end": { - "line": 71, - "column": 36 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2291, - "end": 2292, - "loc": { - "start": { - "line": 71, - "column": 36 - }, - "end": { - "line": 71, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_id", - "start": 2299, - "end": 2310, - "loc": { - "start": { - "line": 72, - "column": 6 - }, - "end": { - "line": 72, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2310, - "end": 2311, - "loc": { - "start": { - "line": 72, - "column": 17 - }, - "end": { - "line": 72, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_name", - "start": 2318, - "end": 2331, - "loc": { - "start": { - "line": 73, - "column": 6 - }, - "end": { - "line": 73, - "column": 19 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2331, - "end": 2332, - "loc": { - "start": { - "line": 73, - "column": 19 - }, - "end": { - "line": 73, - "column": 20 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2337, - "end": 2338, - "loc": { - "start": { - "line": 74, - "column": 4 - }, - "end": { - "line": 74, - "column": 5 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2338, - "end": 2339, - "loc": { - "start": { - "line": 74, - "column": 5 - }, - "end": { - "line": 74, - "column": 6 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2339, - "end": 2340, - "loc": { - "start": { - "line": 74, - "column": 6 - }, - "end": { - "line": 74, - "column": 7 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 2346, - "end": 2351, - "loc": { - "start": { - "line": 76, - "column": 4 - }, - "end": { - "line": 76, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callbackWithDocumentDeletion", - "start": 2352, - "end": 2380, - "loc": { - "start": { - "line": 76, - "column": 10 - }, - "end": { - "line": 76, - "column": 38 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 2381, - "end": 2382, - "loc": { - "start": { - "line": 76, - "column": 39 - }, - "end": { - "line": 76, - "column": 40 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2383, - "end": 2384, - "loc": { - "start": { - "line": 76, - "column": 41 - }, - "end": { - "line": 76, - "column": 42 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "createErr", - "start": 2384, - "end": 2393, - "loc": { - "start": { - "line": 76, - "column": 42 - }, - "end": { - "line": 76, - "column": 51 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2393, - "end": 2394, - "loc": { - "start": { - "line": 76, - "column": 51 - }, - "end": { - "line": 76, - "column": 52 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "createRes", - "start": 2395, - "end": 2404, - "loc": { - "start": { - "line": 76, - "column": 53 - }, - "end": { - "line": 76, - "column": 62 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2404, - "end": 2405, - "loc": { - "start": { - "line": 76, - "column": 62 - }, - "end": { - "line": 76, - "column": 63 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2406, - "end": 2408, - "loc": { - "start": { - "line": 76, - "column": 64 - }, - "end": { - "line": 76, - "column": 66 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2409, - "end": 2410, - "loc": { - "start": { - "line": 76, - "column": 67 - }, - "end": { - "line": 76, - "column": 68 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 2417, - "end": 2419, - "loc": { - "start": { - "line": 77, - "column": 6 - }, - "end": { - "line": 77, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2420, - "end": 2421, - "loc": { - "start": { - "line": 77, - "column": 9 - }, - "end": { - "line": 77, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "createErr", - "start": 2421, - "end": 2430, - "loc": { - "start": { - "line": 77, - "column": 10 - }, - "end": { - "line": 77, - "column": 19 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2430, - "end": 2431, - "loc": { - "start": { - "line": 77, - "column": 19 - }, - "end": { - "line": 77, - "column": 20 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2432, - "end": 2433, - "loc": { - "start": { - "line": 77, - "column": 21 - }, - "end": { - "line": 77, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "originalCallback", - "start": 2442, - "end": 2458, - "loc": { - "start": { - "line": 78, - "column": 8 - }, - "end": { - "line": 78, - "column": 24 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2458, - "end": 2459, - "loc": { - "start": { - "line": 78, - "column": 24 - }, - "end": { - "line": 78, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "createErr", - "start": 2459, - "end": 2468, - "loc": { - "start": { - "line": 78, - "column": 25 - }, - "end": { - "line": 78, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2468, - "end": 2469, - "loc": { - "start": { - "line": 78, - "column": 34 - }, - "end": { - "line": 78, - "column": 35 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2469, - "end": 2470, - "loc": { - "start": { - "line": 78, - "column": 35 - }, - "end": { - "line": 78, - "column": 36 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 2479, - "end": 2485, - "loc": { - "start": { - "line": 79, - "column": 8 - }, - "end": { - "line": 79, - "column": 14 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2485, - "end": 2486, - "loc": { - "start": { - "line": 79, - "column": 14 - }, - "end": { - "line": 79, - "column": 15 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2493, - "end": 2494, - "loc": { - "start": { - "line": 80, - "column": 6 - }, - "end": { - "line": 80, - "column": 7 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 2495, - "end": 2499, - "loc": { - "start": { - "line": 80, - "column": 8 - }, - "end": { - "line": 80, - "column": 12 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2500, - "end": 2501, - "loc": { - "start": { - "line": 80, - "column": 13 - }, - "end": { - "line": 80, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "removeDocument", - "start": 2510, - "end": 2524, - "loc": { - "start": { - "line": 81, - "column": 8 - }, - "end": { - "line": 81, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2524, - "end": 2525, - "loc": { - "start": { - "line": 81, - "column": 22 - }, - "end": { - "line": 81, - "column": 23 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2525, - "end": 2526, - "loc": { - "start": { - "line": 81, - "column": 23 - }, - "end": { - "line": 81, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 2537, - "end": 2539, - "loc": { - "start": { - "line": 82, - "column": 10 - }, - "end": { - "line": 82, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2539, - "end": 2540, - "loc": { - "start": { - "line": 82, - "column": 12 - }, - "end": { - "line": 82, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_id", - "start": 2541, - "end": 2552, - "loc": { - "start": { - "line": 82, - "column": 14 - }, - "end": { - "line": 82, - "column": 25 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2552, - "end": 2553, - "loc": { - "start": { - "line": 82, - "column": 25 - }, - "end": { - "line": 82, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 2564, - "end": 2569, - "loc": { - "start": { - "line": 83, - "column": 10 - }, - "end": { - "line": 83, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2569, - "end": 2570, - "loc": { - "start": { - "line": 83, - "column": 15 - }, - "end": { - "line": 83, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2579, - "end": 2580, - "loc": { - "start": { - "line": 84, - "column": 8 - }, - "end": { - "line": 84, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2580, - "end": 2581, - "loc": { - "start": { - "line": 84, - "column": 9 - }, - "end": { - "line": 84, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "removeErr", - "start": 2582, - "end": 2591, - "loc": { - "start": { - "line": 84, - "column": 11 - }, - "end": { - "line": 84, - "column": 20 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2592, - "end": 2594, - "loc": { - "start": { - "line": 84, - "column": 21 - }, - "end": { - "line": 84, - "column": 23 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2595, - "end": 2596, - "loc": { - "start": { - "line": 84, - "column": 24 - }, - "end": { - "line": 84, - "column": 25 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 2607, - "end": 2609, - "loc": { - "start": { - "line": 85, - "column": 10 - }, - "end": { - "line": 85, - "column": 12 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2610, - "end": 2611, - "loc": { - "start": { - "line": 85, - "column": 13 - }, - "end": { - "line": 85, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "removeErr", - "start": 2611, - "end": 2620, - "loc": { - "start": { - "line": 85, - "column": 14 - }, - "end": { - "line": 85, - "column": 23 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2620, - "end": 2621, - "loc": { - "start": { - "line": 85, - "column": 23 - }, - "end": { - "line": 85, - "column": 24 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2622, - "end": 2623, - "loc": { - "start": { - "line": 85, - "column": 25 - }, - "end": { - "line": 85, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "originalCallback", - "start": 2636, - "end": 2652, - "loc": { - "start": { - "line": 86, - "column": 12 - }, - "end": { - "line": 86, - "column": 28 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2652, - "end": 2653, - "loc": { - "start": { - "line": 86, - "column": 28 - }, - "end": { - "line": 86, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "removeErr", - "start": 2653, - "end": 2662, - "loc": { - "start": { - "line": 86, - "column": 29 - }, - "end": { - "line": 86, - "column": 38 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2662, - "end": 2663, - "loc": { - "start": { - "line": 86, - "column": 38 - }, - "end": { - "line": 86, - "column": 39 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2663, - "end": 2664, - "loc": { - "start": { - "line": 86, - "column": 39 - }, - "end": { - "line": 86, - "column": 40 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 2677, - "end": 2683, - "loc": { - "start": { - "line": 87, - "column": 12 - }, - "end": { - "line": 87, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2683, - "end": 2684, - "loc": { - "start": { - "line": 87, - "column": 18 - }, - "end": { - "line": 87, - "column": 19 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2695, - "end": 2696, - "loc": { - "start": { - "line": 88, - "column": 10 - }, - "end": { - "line": 88, - "column": 11 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 2697, - "end": 2701, - "loc": { - "start": { - "line": 88, - "column": 12 - }, - "end": { - "line": 88, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2702, - "end": 2703, - "loc": { - "start": { - "line": 88, - "column": 17 - }, - "end": { - "line": 88, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "originalCallback", - "start": 2716, - "end": 2732, - "loc": { - "start": { - "line": 89, - "column": 12 - }, - "end": { - "line": 89, - "column": 28 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2732, - "end": 2733, - "loc": { - "start": { - "line": 89, - "column": 28 - }, - "end": { - "line": 89, - "column": 29 - } - } - }, - { - "type": { - "label": "null", - "keyword": "null", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "null", - "start": 2733, - "end": 2737, - "loc": { - "start": { - "line": 89, - "column": 29 - }, - "end": { - "line": 89, - "column": 33 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2737, - "end": 2738, - "loc": { - "start": { - "line": 89, - "column": 33 - }, - "end": { - "line": 89, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "createRes", - "start": 2739, - "end": 2748, - "loc": { - "start": { - "line": 89, - "column": 35 - }, - "end": { - "line": 89, - "column": 44 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2748, - "end": 2749, - "loc": { - "start": { - "line": 89, - "column": 44 - }, - "end": { - "line": 89, - "column": 45 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2749, - "end": 2750, - "loc": { - "start": { - "line": 89, - "column": 45 - }, - "end": { - "line": 89, - "column": 46 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 2763, - "end": 2769, - "loc": { - "start": { - "line": 90, - "column": 12 - }, - "end": { - "line": 90, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2769, - "end": 2770, - "loc": { - "start": { - "line": 90, - "column": 18 - }, - "end": { - "line": 90, - "column": 19 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2781, - "end": 2782, - "loc": { - "start": { - "line": 91, - "column": 10 - }, - "end": { - "line": 91, - "column": 11 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2791, - "end": 2792, - "loc": { - "start": { - "line": 92, - "column": 8 - }, - "end": { - "line": 92, - "column": 9 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2792, - "end": 2793, - "loc": { - "start": { - "line": 92, - "column": 9 - }, - "end": { - "line": 92, - "column": 10 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2793, - "end": 2794, - "loc": { - "start": { - "line": 92, - "column": 10 - }, - "end": { - "line": 92, - "column": 11 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2801, - "end": 2802, - "loc": { - "start": { - "line": 93, - "column": 6 - }, - "end": { - "line": 93, - "column": 7 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2807, - "end": 2808, - "loc": { - "start": { - "line": 94, - "column": 4 - }, - "end": { - "line": 94, - "column": 5 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2808, - "end": 2809, - "loc": { - "start": { - "line": 94, - "column": 5 - }, - "end": { - "line": 94, - "column": 6 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 2815, - "end": 2820, - "loc": { - "start": { - "line": 96, - "column": 4 - }, - "end": { - "line": 96, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 2821, - "end": 2829, - "loc": { - "start": { - "line": 96, - "column": 10 - }, - "end": { - "line": 96, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 2830, - "end": 2831, - "loc": { - "start": { - "line": 96, - "column": 19 - }, - "end": { - "line": 96, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "removeOriginalDocument", - "start": 2832, - "end": 2854, - "loc": { - "start": { - "line": 96, - "column": 21 - }, - "end": { - "line": 96, - "column": 43 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2861, - "end": 2862, - "loc": { - "start": { - "line": 97, - "column": 6 - }, - "end": { - "line": 97, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callbackWithDocumentDeletion", - "start": 2863, - "end": 2891, - "loc": { - "start": { - "line": 97, - "column": 8 - }, - "end": { - "line": 97, - "column": 36 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2898, - "end": 2899, - "loc": { - "start": { - "line": 98, - "column": 6 - }, - "end": { - "line": 98, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "originalCallback", - "start": 2900, - "end": 2916, - "loc": { - "start": { - "line": 98, - "column": 8 - }, - "end": { - "line": 98, - "column": 24 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2916, - "end": 2917, - "loc": { - "start": { - "line": 98, - "column": 24 - }, - "end": { - "line": 98, - "column": 25 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 2923, - "end": 2928, - "loc": { - "start": { - "line": 100, - "column": 4 - }, - "end": { - "line": 100, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 2929, - "end": 2932, - "loc": { - "start": { - "line": 100, - "column": 10 - }, - "end": { - "line": 100, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 2933, - "end": 2934, - "loc": { - "start": { - "line": 100, - "column": 14 - }, - "end": { - "line": 100, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 2935, - "end": 2940, - "loc": { - "start": { - "line": 100, - "column": 16 - }, - "end": { - "line": 100, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2947, - "end": 2948, - "loc": { - "start": { - "line": 101, - "column": 6 - }, - "end": { - "line": 101, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 2948, - "end": 2955, - "loc": { - "start": { - "line": 101, - "column": 7 - }, - "end": { - "line": 101, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2955, - "end": 2956, - "loc": { - "start": { - "line": 101, - "column": 14 - }, - "end": { - "line": 101, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 2956, - "end": 2975, - "loc": { - "start": { - "line": 101, - "column": 15 - }, - "end": { - "line": 101, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2975, - "end": 2976, - "loc": { - "start": { - "line": 101, - "column": 34 - }, - "end": { - "line": 101, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2976, - "end": 2977, - "loc": { - "start": { - "line": 101, - "column": 35 - }, - "end": { - "line": 101, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 2986, - "end": 2992, - "loc": { - "start": { - "line": 102, - "column": 8 - }, - "end": { - "line": 102, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2992, - "end": 2993, - "loc": { - "start": { - "line": 102, - "column": 14 - }, - "end": { - "line": 102, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "POST", - "start": 2994, - "end": 3000, - "loc": { - "start": { - "line": 102, - "column": 16 - }, - "end": { - "line": 102, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3000, - "end": 3001, - "loc": { - "start": { - "line": 102, - "column": 22 - }, - "end": { - "line": 102, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 3010, - "end": 3014, - "loc": { - "start": { - "line": 103, - "column": 8 - }, - "end": { - "line": 103, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3014, - "end": 3015, - "loc": { - "start": { - "line": 103, - "column": 12 - }, - "end": { - "line": 103, - "column": 13 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/template", - "start": 3016, - "end": 3027, - "loc": { - "start": { - "line": 103, - "column": 14 - }, - "end": { - "line": 103, - "column": 25 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3027, - "end": 3028, - "loc": { - "start": { - "line": 103, - "column": 25 - }, - "end": { - "line": 103, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 3037, - "end": 3050, - "loc": { - "start": { - "line": 104, - "column": 8 - }, - "end": { - "line": 104, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3050, - "end": 3051, - "loc": { - "start": { - "line": 104, - "column": 21 - }, - "end": { - "line": 104, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3052, - "end": 3053, - "loc": { - "start": { - "line": 104, - "column": 23 - }, - "end": { - "line": 104, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 3064, - "end": 3068, - "loc": { - "start": { - "line": 105, - "column": 10 - }, - "end": { - "line": 105, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3068, - "end": 3069, - "loc": { - "start": { - "line": 105, - "column": 14 - }, - "end": { - "line": 105, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 3070, - "end": 3078, - "loc": { - "start": { - "line": 105, - "column": 16 - }, - "end": { - "line": 105, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3078, - "end": 3079, - "loc": { - "start": { - "line": 105, - "column": 24 - }, - "end": { - "line": 105, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 3090, - "end": 3095, - "loc": { - "start": { - "line": 106, - "column": 10 - }, - "end": { - "line": 106, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3095, - "end": 3096, - "loc": { - "start": { - "line": 106, - "column": 15 - }, - "end": { - "line": 106, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3105, - "end": 3106, - "loc": { - "start": { - "line": 107, - "column": 8 - }, - "end": { - "line": 107, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3106, - "end": 3107, - "loc": { - "start": { - "line": 107, - "column": 9 - }, - "end": { - "line": 107, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 3116, - "end": 3123, - "loc": { - "start": { - "line": 108, - "column": 8 - }, - "end": { - "line": 108, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3123, - "end": 3124, - "loc": { - "start": { - "line": 108, - "column": 15 - }, - "end": { - "line": 108, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3125, - "end": 3126, - "loc": { - "start": { - "line": 108, - "column": 17 - }, - "end": { - "line": 108, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type", - "start": 3137, - "end": 3151, - "loc": { - "start": { - "line": 109, - "column": 10 - }, - "end": { - "line": 109, - "column": 24 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3151, - "end": 3152, - "loc": { - "start": { - "line": 109, - "column": 24 - }, - "end": { - "line": 109, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/json", - "start": 3153, - "end": 3171, - "loc": { - "start": { - "line": 109, - "column": 26 - }, - "end": { - "line": 109, - "column": 44 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3171, - "end": 3172, - "loc": { - "start": { - "line": 109, - "column": 44 - }, - "end": { - "line": 109, - "column": 45 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Length", - "start": 3183, - "end": 3199, - "loc": { - "start": { - "line": 110, - "column": 10 - }, - "end": { - "line": 110, - "column": 26 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3199, - "end": 3200, - "loc": { - "start": { - "line": 110, - "column": 26 - }, - "end": { - "line": 110, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 3201, - "end": 3207, - "loc": { - "start": { - "line": 110, - "column": 28 - }, - "end": { - "line": 110, - "column": 34 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3207, - "end": 3208, - "loc": { - "start": { - "line": 110, - "column": 34 - }, - "end": { - "line": 110, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "byteLength", - "start": 3208, - "end": 3218, - "loc": { - "start": { - "line": 110, - "column": 35 - }, - "end": { - "line": 110, - "column": 45 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3218, - "end": 3219, - "loc": { - "start": { - "line": 110, - "column": 45 - }, - "end": { - "line": 110, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 3219, - "end": 3227, - "loc": { - "start": { - "line": 110, - "column": 46 - }, - "end": { - "line": 110, - "column": 54 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3227, - "end": 3228, - "loc": { - "start": { - "line": 110, - "column": 54 - }, - "end": { - "line": 110, - "column": 55 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3228, - "end": 3229, - "loc": { - "start": { - "line": 110, - "column": 55 - }, - "end": { - "line": 110, - "column": 56 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3238, - "end": 3239, - "loc": { - "start": { - "line": 111, - "column": 8 - }, - "end": { - "line": 111, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3239, - "end": 3240, - "loc": { - "start": { - "line": 111, - "column": 9 - }, - "end": { - "line": 111, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3247, - "end": 3248, - "loc": { - "start": { - "line": 112, - "column": 6 - }, - "end": { - "line": 112, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3248, - "end": 3249, - "loc": { - "start": { - "line": 112, - "column": 7 - }, - "end": { - "line": 112, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3249, - "end": 3250, - "loc": { - "start": { - "line": 112, - "column": 8 - }, - "end": { - "line": 112, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 3251, - "end": 3266, - "loc": { - "start": { - "line": 112, - "column": 10 - }, - "end": { - "line": 112, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3266, - "end": 3267, - "loc": { - "start": { - "line": 112, - "column": 25 - }, - "end": { - "line": 112, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 3267, - "end": 3275, - "loc": { - "start": { - "line": 112, - "column": 26 - }, - "end": { - "line": 112, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3275, - "end": 3276, - "loc": { - "start": { - "line": 112, - "column": 34 - }, - "end": { - "line": 112, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3276, - "end": 3277, - "loc": { - "start": { - "line": 112, - "column": 35 - }, - "end": { - "line": 112, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3284, - "end": 3285, - "loc": { - "start": { - "line": 113, - "column": 6 - }, - "end": { - "line": 113, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 3285, - "end": 3287, - "loc": { - "start": { - "line": 113, - "column": 7 - }, - "end": { - "line": 113, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3287, - "end": 3288, - "loc": { - "start": { - "line": 113, - "column": 9 - }, - "end": { - "line": 113, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 3288, - "end": 3295, - "loc": { - "start": { - "line": 113, - "column": 10 - }, - "end": { - "line": 113, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3295, - "end": 3296, - "loc": { - "start": { - "line": 113, - "column": 17 - }, - "end": { - "line": 113, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 3297, - "end": 3309, - "loc": { - "start": { - "line": 113, - "column": 19 - }, - "end": { - "line": 113, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3309, - "end": 3310, - "loc": { - "start": { - "line": 113, - "column": 31 - }, - "end": { - "line": 113, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "originalCallback", - "start": 3310, - "end": 3326, - "loc": { - "start": { - "line": 113, - "column": 32 - }, - "end": { - "line": 113, - "column": 48 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3326, - "end": 3327, - "loc": { - "start": { - "line": 113, - "column": 48 - }, - "end": { - "line": 113, - "column": 49 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3327, - "end": 3328, - "loc": { - "start": { - "line": 113, - "column": 49 - }, - "end": { - "line": 113, - "column": 50 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3328, - "end": 3329, - "loc": { - "start": { - "line": 113, - "column": 50 - }, - "end": { - "line": 113, - "column": 51 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 3335, - "end": 3338, - "loc": { - "start": { - "line": 115, - "column": 4 - }, - "end": { - "line": 115, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3338, - "end": 3339, - "loc": { - "start": { - "line": 115, - "column": 7 - }, - "end": { - "line": 115, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "write", - "start": 3339, - "end": 3344, - "loc": { - "start": { - "line": 115, - "column": 8 - }, - "end": { - "line": 115, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3344, - "end": 3345, - "loc": { - "start": { - "line": 115, - "column": 13 - }, - "end": { - "line": 115, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 3345, - "end": 3353, - "loc": { - "start": { - "line": 115, - "column": 14 - }, - "end": { - "line": 115, - "column": 22 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3353, - "end": 3354, - "loc": { - "start": { - "line": 115, - "column": 22 - }, - "end": { - "line": 115, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3354, - "end": 3355, - "loc": { - "start": { - "line": 115, - "column": 23 - }, - "end": { - "line": 115, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 3360, - "end": 3363, - "loc": { - "start": { - "line": 116, - "column": 4 - }, - "end": { - "line": 116, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3363, - "end": 3364, - "loc": { - "start": { - "line": 116, - "column": 7 - }, - "end": { - "line": 116, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 3364, - "end": 3367, - "loc": { - "start": { - "line": 116, - "column": 8 - }, - "end": { - "line": 116, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3367, - "end": 3368, - "loc": { - "start": { - "line": 116, - "column": 11 - }, - "end": { - "line": 116, - "column": 12 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3368, - "end": 3369, - "loc": { - "start": { - "line": 116, - "column": 12 - }, - "end": { - "line": 116, - "column": 13 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3369, - "end": 3370, - "loc": { - "start": { - "line": 116, - "column": 13 - }, - "end": { - "line": 116, - "column": 14 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3373, - "end": 3374, - "loc": { - "start": { - "line": 117, - "column": 2 - }, - "end": { - "line": 117, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Copy template payload\n * @typedef {Object} TemplateDuplicateParams\n * @property {string} id - an id of original template\n * @property {string} name - a name of new document\n * @property {string} token - your auth token\n ", - "start": 3378, - "end": 3619, - "loc": { - "start": { - "line": 119, - "column": 2 - }, - "end": { - "line": 125, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Copy template response data\n * @typedef {Object} TemplateDuplicateResponse\n * @property {string} id - an id of created document\n * @property {string} name - a name of created document\n ", - "start": 3623, - "end": 3827, - "loc": { - "start": { - "line": 127, - "column": 2 - }, - "end": { - "line": 132, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates a new document by copying a template.\n * If a name is not supplied then document name will be set to the original template's name by default.\n * @param {TemplateDuplicateParams} data - duplicate template payload\n * @param {function(err: ApiErrorResponse, res: TemplateDuplicateResponse)} [callback] - error first node.js callback\n ", - "start": 3831, - "end": 4189, - "loc": { - "start": { - "line": 134, - "column": 2 - }, - "end": { - "line": 139, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 4192, - "end": 4198, - "loc": { - "start": { - "line": 140, - "column": 2 - }, - "end": { - "line": 140, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "duplicate", - "start": 4199, - "end": 4208, - "loc": { - "start": { - "line": 140, - "column": 9 - }, - "end": { - "line": 140, - "column": 18 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4209, - "end": 4210, - "loc": { - "start": { - "line": 140, - "column": 19 - }, - "end": { - "line": 140, - "column": 20 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4210, - "end": 4211, - "loc": { - "start": { - "line": 140, - "column": 20 - }, - "end": { - "line": 140, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 4216, - "end": 4218, - "loc": { - "start": { - "line": 141, - "column": 4 - }, - "end": { - "line": 141, - "column": 6 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4218, - "end": 4219, - "loc": { - "start": { - "line": 141, - "column": 6 - }, - "end": { - "line": 141, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "template_id", - "start": 4220, - "end": 4231, - "loc": { - "start": { - "line": 141, - "column": 8 - }, - "end": { - "line": 141, - "column": 19 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4231, - "end": 4232, - "loc": { - "start": { - "line": 141, - "column": 19 - }, - "end": { - "line": 141, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "name", - "start": 4237, - "end": 4241, - "loc": { - "start": { - "line": 142, - "column": 4 - }, - "end": { - "line": 142, - "column": 8 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4241, - "end": 4242, - "loc": { - "start": { - "line": 142, - "column": 8 - }, - "end": { - "line": 142, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_name", - "start": 4243, - "end": 4256, - "loc": { - "start": { - "line": 142, - "column": 10 - }, - "end": { - "line": 142, - "column": 23 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4256, - "end": 4257, - "loc": { - "start": { - "line": 142, - "column": 23 - }, - "end": { - "line": 142, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 4262, - "end": 4267, - "loc": { - "start": { - "line": 143, - "column": 4 - }, - "end": { - "line": 143, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4267, - "end": 4268, - "loc": { - "start": { - "line": 143, - "column": 9 - }, - "end": { - "line": 143, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4271, - "end": 4272, - "loc": { - "start": { - "line": 144, - "column": 2 - }, - "end": { - "line": 144, - "column": 3 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4272, - "end": 4273, - "loc": { - "start": { - "line": 144, - "column": 3 - }, - "end": { - "line": 144, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 4274, - "end": 4282, - "loc": { - "start": { - "line": 144, - "column": 5 - }, - "end": { - "line": 144, - "column": 13 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4282, - "end": 4283, - "loc": { - "start": { - "line": 144, - "column": 13 - }, - "end": { - "line": 144, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4284, - "end": 4285, - "loc": { - "start": { - "line": 144, - "column": 15 - }, - "end": { - "line": 144, - "column": 16 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 4290, - "end": 4295, - "loc": { - "start": { - "line": 145, - "column": 4 - }, - "end": { - "line": 145, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 4296, - "end": 4304, - "loc": { - "start": { - "line": 145, - "column": 10 - }, - "end": { - "line": 145, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 4305, - "end": 4306, - "loc": { - "start": { - "line": 145, - "column": 19 - }, - "end": { - "line": 145, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSON", - "start": 4307, - "end": 4311, - "loc": { - "start": { - "line": 145, - "column": 21 - }, - "end": { - "line": 145, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4311, - "end": 4312, - "loc": { - "start": { - "line": 145, - "column": 25 - }, - "end": { - "line": 145, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "stringify", - "start": 4312, - "end": 4321, - "loc": { - "start": { - "line": 145, - "column": 26 - }, - "end": { - "line": 145, - "column": 35 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4321, - "end": 4322, - "loc": { - "start": { - "line": 145, - "column": 35 - }, - "end": { - "line": 145, - "column": 36 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4322, - "end": 4323, - "loc": { - "start": { - "line": 145, - "column": 36 - }, - "end": { - "line": 145, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "template_id", - "start": 4330, - "end": 4341, - "loc": { - "start": { - "line": 146, - "column": 6 - }, - "end": { - "line": 146, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4341, - "end": 4342, - "loc": { - "start": { - "line": 146, - "column": 17 - }, - "end": { - "line": 146, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_name", - "start": 4349, - "end": 4362, - "loc": { - "start": { - "line": 147, - "column": 6 - }, - "end": { - "line": 147, - "column": 19 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4362, - "end": 4363, - "loc": { - "start": { - "line": 147, - "column": 19 - }, - "end": { - "line": 147, - "column": 20 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4368, - "end": 4369, - "loc": { - "start": { - "line": 148, - "column": 4 - }, - "end": { - "line": 148, - "column": 5 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4369, - "end": 4370, - "loc": { - "start": { - "line": 148, - "column": 5 - }, - "end": { - "line": 148, - "column": 6 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4370, - "end": 4371, - "loc": { - "start": { - "line": 148, - "column": 6 - }, - "end": { - "line": 148, - "column": 7 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 4377, - "end": 4382, - "loc": { - "start": { - "line": 150, - "column": 4 - }, - "end": { - "line": 150, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 4383, - "end": 4386, - "loc": { - "start": { - "line": 150, - "column": 10 - }, - "end": { - "line": 150, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 4387, - "end": 4388, - "loc": { - "start": { - "line": 150, - "column": 14 - }, - "end": { - "line": 150, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 4389, - "end": 4394, - "loc": { - "start": { - "line": 150, - "column": 16 - }, - "end": { - "line": 150, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4401, - "end": 4402, - "loc": { - "start": { - "line": 151, - "column": 6 - }, - "end": { - "line": 151, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 4402, - "end": 4409, - "loc": { - "start": { - "line": 151, - "column": 7 - }, - "end": { - "line": 151, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4409, - "end": 4410, - "loc": { - "start": { - "line": 151, - "column": 14 - }, - "end": { - "line": 151, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 4410, - "end": 4429, - "loc": { - "start": { - "line": 151, - "column": 15 - }, - "end": { - "line": 151, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4429, - "end": 4430, - "loc": { - "start": { - "line": 151, - "column": 34 - }, - "end": { - "line": 151, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4430, - "end": 4431, - "loc": { - "start": { - "line": 151, - "column": 35 - }, - "end": { - "line": 151, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 4440, - "end": 4446, - "loc": { - "start": { - "line": 152, - "column": 8 - }, - "end": { - "line": 152, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4446, - "end": 4447, - "loc": { - "start": { - "line": 152, - "column": 14 - }, - "end": { - "line": 152, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "POST", - "start": 4448, - "end": 4454, - "loc": { - "start": { - "line": 152, - "column": 16 - }, - "end": { - "line": 152, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4454, - "end": 4455, - "loc": { - "start": { - "line": 152, - "column": 22 - }, - "end": { - "line": 152, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 4464, - "end": 4468, - "loc": { - "start": { - "line": 153, - "column": 8 - }, - "end": { - "line": 153, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4468, - "end": 4469, - "loc": { - "start": { - "line": 153, - "column": 12 - }, - "end": { - "line": 153, - "column": 13 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4470, - "end": 4471, - "loc": { - "start": { - "line": 153, - "column": 14 - }, - "end": { - "line": 153, - "column": 15 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/template/", - "start": 4471, - "end": 4481, - "loc": { - "start": { - "line": 153, - "column": 15 - }, - "end": { - "line": 153, - "column": 25 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4481, - "end": 4483, - "loc": { - "start": { - "line": 153, - "column": 25 - }, - "end": { - "line": 153, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "template_id", - "start": 4483, - "end": 4494, - "loc": { - "start": { - "line": 153, - "column": 27 - }, - "end": { - "line": 153, - "column": 38 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4494, - "end": 4495, - "loc": { - "start": { - "line": 153, - "column": 38 - }, - "end": { - "line": 153, - "column": 39 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/copy", - "start": 4495, - "end": 4500, - "loc": { - "start": { - "line": 153, - "column": 39 - }, - "end": { - "line": 153, - "column": 44 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4500, - "end": 4501, - "loc": { - "start": { - "line": 153, - "column": 44 - }, - "end": { - "line": 153, - "column": 45 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4501, - "end": 4502, - "loc": { - "start": { - "line": 153, - "column": 45 - }, - "end": { - "line": 153, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 4511, - "end": 4524, - "loc": { - "start": { - "line": 154, - "column": 8 - }, - "end": { - "line": 154, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4524, - "end": 4525, - "loc": { - "start": { - "line": 154, - "column": 21 - }, - "end": { - "line": 154, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4526, - "end": 4527, - "loc": { - "start": { - "line": 154, - "column": 23 - }, - "end": { - "line": 154, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 4538, - "end": 4542, - "loc": { - "start": { - "line": 155, - "column": 10 - }, - "end": { - "line": 155, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4542, - "end": 4543, - "loc": { - "start": { - "line": 155, - "column": 14 - }, - "end": { - "line": 155, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 4544, - "end": 4552, - "loc": { - "start": { - "line": 155, - "column": 16 - }, - "end": { - "line": 155, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4552, - "end": 4553, - "loc": { - "start": { - "line": 155, - "column": 24 - }, - "end": { - "line": 155, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 4564, - "end": 4569, - "loc": { - "start": { - "line": 156, - "column": 10 - }, - "end": { - "line": 156, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4569, - "end": 4570, - "loc": { - "start": { - "line": 156, - "column": 15 - }, - "end": { - "line": 156, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4579, - "end": 4580, - "loc": { - "start": { - "line": 157, - "column": 8 - }, - "end": { - "line": 157, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4580, - "end": 4581, - "loc": { - "start": { - "line": 157, - "column": 9 - }, - "end": { - "line": 157, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 4590, - "end": 4597, - "loc": { - "start": { - "line": 158, - "column": 8 - }, - "end": { - "line": 158, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4597, - "end": 4598, - "loc": { - "start": { - "line": 158, - "column": 15 - }, - "end": { - "line": 158, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4599, - "end": 4600, - "loc": { - "start": { - "line": 158, - "column": 17 - }, - "end": { - "line": 158, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type", - "start": 4611, - "end": 4625, - "loc": { - "start": { - "line": 159, - "column": 10 - }, - "end": { - "line": 159, - "column": 24 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4625, - "end": 4626, - "loc": { - "start": { - "line": 159, - "column": 24 - }, - "end": { - "line": 159, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/json", - "start": 4627, - "end": 4645, - "loc": { - "start": { - "line": 159, - "column": 26 - }, - "end": { - "line": 159, - "column": 44 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4645, - "end": 4646, - "loc": { - "start": { - "line": 159, - "column": 44 - }, - "end": { - "line": 159, - "column": 45 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Length", - "start": 4657, - "end": 4673, - "loc": { - "start": { - "line": 160, - "column": 10 - }, - "end": { - "line": 160, - "column": 26 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4673, - "end": 4674, - "loc": { - "start": { - "line": 160, - "column": 26 - }, - "end": { - "line": 160, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 4675, - "end": 4681, - "loc": { - "start": { - "line": 160, - "column": 28 - }, - "end": { - "line": 160, - "column": 34 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4681, - "end": 4682, - "loc": { - "start": { - "line": 160, - "column": 34 - }, - "end": { - "line": 160, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "byteLength", - "start": 4682, - "end": 4692, - "loc": { - "start": { - "line": 160, - "column": 35 - }, - "end": { - "line": 160, - "column": 45 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4692, - "end": 4693, - "loc": { - "start": { - "line": 160, - "column": 45 - }, - "end": { - "line": 160, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 4693, - "end": 4701, - "loc": { - "start": { - "line": 160, - "column": 46 - }, - "end": { - "line": 160, - "column": 54 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4701, - "end": 4702, - "loc": { - "start": { - "line": 160, - "column": 54 - }, - "end": { - "line": 160, - "column": 55 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4702, - "end": 4703, - "loc": { - "start": { - "line": 160, - "column": 55 - }, - "end": { - "line": 160, - "column": 56 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4712, - "end": 4713, - "loc": { - "start": { - "line": 161, - "column": 8 - }, - "end": { - "line": 161, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4713, - "end": 4714, - "loc": { - "start": { - "line": 161, - "column": 9 - }, - "end": { - "line": 161, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4721, - "end": 4722, - "loc": { - "start": { - "line": 162, - "column": 6 - }, - "end": { - "line": 162, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4722, - "end": 4723, - "loc": { - "start": { - "line": 162, - "column": 7 - }, - "end": { - "line": 162, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4723, - "end": 4724, - "loc": { - "start": { - "line": 162, - "column": 8 - }, - "end": { - "line": 162, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 4725, - "end": 4740, - "loc": { - "start": { - "line": 162, - "column": 10 - }, - "end": { - "line": 162, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4740, - "end": 4741, - "loc": { - "start": { - "line": 162, - "column": 25 - }, - "end": { - "line": 162, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 4741, - "end": 4749, - "loc": { - "start": { - "line": 162, - "column": 26 - }, - "end": { - "line": 162, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4749, - "end": 4750, - "loc": { - "start": { - "line": 162, - "column": 34 - }, - "end": { - "line": 162, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4750, - "end": 4751, - "loc": { - "start": { - "line": 162, - "column": 35 - }, - "end": { - "line": 162, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4758, - "end": 4759, - "loc": { - "start": { - "line": 163, - "column": 6 - }, - "end": { - "line": 163, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 4759, - "end": 4761, - "loc": { - "start": { - "line": 163, - "column": 7 - }, - "end": { - "line": 163, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4761, - "end": 4762, - "loc": { - "start": { - "line": 163, - "column": 9 - }, - "end": { - "line": 163, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 4762, - "end": 4769, - "loc": { - "start": { - "line": 163, - "column": 10 - }, - "end": { - "line": 163, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4769, - "end": 4770, - "loc": { - "start": { - "line": 163, - "column": 17 - }, - "end": { - "line": 163, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 4771, - "end": 4783, - "loc": { - "start": { - "line": 163, - "column": 19 - }, - "end": { - "line": 163, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4783, - "end": 4784, - "loc": { - "start": { - "line": 163, - "column": 31 - }, - "end": { - "line": 163, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 4784, - "end": 4792, - "loc": { - "start": { - "line": 163, - "column": 32 - }, - "end": { - "line": 163, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4792, - "end": 4793, - "loc": { - "start": { - "line": 163, - "column": 40 - }, - "end": { - "line": 163, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4793, - "end": 4794, - "loc": { - "start": { - "line": 163, - "column": 41 - }, - "end": { - "line": 163, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4794, - "end": 4795, - "loc": { - "start": { - "line": 163, - "column": 42 - }, - "end": { - "line": 163, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 4801, - "end": 4804, - "loc": { - "start": { - "line": 165, - "column": 4 - }, - "end": { - "line": 165, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4804, - "end": 4805, - "loc": { - "start": { - "line": 165, - "column": 7 - }, - "end": { - "line": 165, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "write", - "start": 4805, - "end": 4810, - "loc": { - "start": { - "line": 165, - "column": 8 - }, - "end": { - "line": 165, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4810, - "end": 4811, - "loc": { - "start": { - "line": 165, - "column": 13 - }, - "end": { - "line": 165, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 4811, - "end": 4819, - "loc": { - "start": { - "line": 165, - "column": 14 - }, - "end": { - "line": 165, - "column": 22 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4819, - "end": 4820, - "loc": { - "start": { - "line": 165, - "column": 22 - }, - "end": { - "line": 165, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4820, - "end": 4821, - "loc": { - "start": { - "line": 165, - "column": 23 - }, - "end": { - "line": 165, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 4826, - "end": 4829, - "loc": { - "start": { - "line": 166, - "column": 4 - }, - "end": { - "line": 166, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4829, - "end": 4830, - "loc": { - "start": { - "line": 166, - "column": 7 - }, - "end": { - "line": 166, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 4830, - "end": 4833, - "loc": { - "start": { - "line": 166, - "column": 8 - }, - "end": { - "line": 166, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4833, - "end": 4834, - "loc": { - "start": { - "line": 166, - "column": 11 - }, - "end": { - "line": 166, - "column": 12 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4834, - "end": 4835, - "loc": { - "start": { - "line": 166, - "column": 12 - }, - "end": { - "line": 166, - "column": 13 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4835, - "end": 4836, - "loc": { - "start": { - "line": 166, - "column": 13 - }, - "end": { - "line": 166, - "column": 14 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4839, - "end": 4840, - "loc": { - "start": { - "line": 167, - "column": 2 - }, - "end": { - "line": 167, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create invite with template payload\n * @typedef {DocumentInviteParams} TemplateInviteParams\n ", - "start": 4844, - "end": 4952, - "loc": { - "start": { - "line": 169, - "column": 2 - }, - "end": { - "line": 172, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create invite with template response data\n * @typedef {DocumentInviteResponse} TemplateInviteResponse\n ", - "start": 4956, - "end": 5074, - "loc": { - "start": { - "line": 174, - "column": 2 - }, - "end": { - "line": 177, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates an invite to sign a template.\n * You can create a simple free form invite(s) or a role-based invite(s).\n * The method copies a template into document and creates an invite using created document.\n * @param {TemplateInviteParams} data - create template invite payload\n * @param {function(err: ApiErrorResponse, res: TemplateInviteResponse)} [callback] - error first node.js callback\n ", - "start": 5078, - "end": 5490, - "loc": { - "start": { - "line": 179, - "column": 2 - }, - "end": { - "line": 185, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 5493, - "end": 5499, - "loc": { - "start": { - "line": 186, - "column": 2 - }, - "end": { - "line": 186, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "invite", - "start": 5500, - "end": 5506, - "loc": { - "start": { - "line": 186, - "column": 9 - }, - "end": { - "line": 186, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5507, - "end": 5508, - "loc": { - "start": { - "line": 186, - "column": 16 - }, - "end": { - "line": 186, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5508, - "end": 5509, - "loc": { - "start": { - "line": 186, - "column": 17 - }, - "end": { - "line": 186, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 5514, - "end": 5516, - "loc": { - "start": { - "line": 187, - "column": 4 - }, - "end": { - "line": 187, - "column": 6 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5516, - "end": 5517, - "loc": { - "start": { - "line": 187, - "column": 6 - }, - "end": { - "line": 187, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 5522, - "end": 5526, - "loc": { - "start": { - "line": 188, - "column": 4 - }, - "end": { - "line": 188, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5526, - "end": 5527, - "loc": { - "start": { - "line": 188, - "column": 8 - }, - "end": { - "line": 188, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "options", - "start": 5532, - "end": 5539, - "loc": { - "start": { - "line": 189, - "column": 4 - }, - "end": { - "line": 189, - "column": 11 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5539, - "end": 5540, - "loc": { - "start": { - "line": 189, - "column": 11 - }, - "end": { - "line": 189, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 5545, - "end": 5550, - "loc": { - "start": { - "line": 190, - "column": 4 - }, - "end": { - "line": 190, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5550, - "end": 5551, - "loc": { - "start": { - "line": 190, - "column": 9 - }, - "end": { - "line": 190, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5554, - "end": 5555, - "loc": { - "start": { - "line": 191, - "column": 2 - }, - "end": { - "line": 191, - "column": 3 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5555, - "end": 5556, - "loc": { - "start": { - "line": 191, - "column": 3 - }, - "end": { - "line": 191, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 5557, - "end": 5565, - "loc": { - "start": { - "line": 191, - "column": 5 - }, - "end": { - "line": 191, - "column": 13 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5565, - "end": 5566, - "loc": { - "start": { - "line": 191, - "column": 13 - }, - "end": { - "line": 191, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5567, - "end": 5568, - "loc": { - "start": { - "line": 191, - "column": 15 - }, - "end": { - "line": 191, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Template", - "start": 5573, - "end": 5581, - "loc": { - "start": { - "line": 192, - "column": 4 - }, - "end": { - "line": 192, - "column": 12 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5581, - "end": 5582, - "loc": { - "start": { - "line": 192, - "column": 12 - }, - "end": { - "line": 192, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "duplicate", - "start": 5582, - "end": 5591, - "loc": { - "start": { - "line": 192, - "column": 13 - }, - "end": { - "line": 192, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5591, - "end": 5592, - "loc": { - "start": { - "line": 192, - "column": 22 - }, - "end": { - "line": 192, - "column": 23 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5592, - "end": 5593, - "loc": { - "start": { - "line": 192, - "column": 23 - }, - "end": { - "line": 192, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 5600, - "end": 5602, - "loc": { - "start": { - "line": 193, - "column": 6 - }, - "end": { - "line": 193, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5602, - "end": 5603, - "loc": { - "start": { - "line": 193, - "column": 8 - }, - "end": { - "line": 193, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 5610, - "end": 5615, - "loc": { - "start": { - "line": 194, - "column": 6 - }, - "end": { - "line": 194, - "column": 11 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5615, - "end": 5616, - "loc": { - "start": { - "line": 194, - "column": 11 - }, - "end": { - "line": 194, - "column": 12 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5621, - "end": 5622, - "loc": { - "start": { - "line": 195, - "column": 4 - }, - "end": { - "line": 195, - "column": 5 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5622, - "end": 5623, - "loc": { - "start": { - "line": 195, - "column": 5 - }, - "end": { - "line": 195, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5624, - "end": 5625, - "loc": { - "start": { - "line": 195, - "column": 7 - }, - "end": { - "line": 195, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "copyErr", - "start": 5625, - "end": 5632, - "loc": { - "start": { - "line": 195, - "column": 8 - }, - "end": { - "line": 195, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5632, - "end": 5633, - "loc": { - "start": { - "line": 195, - "column": 15 - }, - "end": { - "line": 195, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "copyRes", - "start": 5634, - "end": 5641, - "loc": { - "start": { - "line": 195, - "column": 17 - }, - "end": { - "line": 195, - "column": 24 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5641, - "end": 5642, - "loc": { - "start": { - "line": 195, - "column": 24 - }, - "end": { - "line": 195, - "column": 25 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5643, - "end": 5645, - "loc": { - "start": { - "line": 195, - "column": 26 - }, - "end": { - "line": 195, - "column": 28 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5646, - "end": 5647, - "loc": { - "start": { - "line": 195, - "column": 29 - }, - "end": { - "line": 195, - "column": 30 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 5654, - "end": 5656, - "loc": { - "start": { - "line": 196, - "column": 6 - }, - "end": { - "line": 196, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5657, - "end": 5658, - "loc": { - "start": { - "line": 196, - "column": 9 - }, - "end": { - "line": 196, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "copyErr", - "start": 5658, - "end": 5665, - "loc": { - "start": { - "line": 196, - "column": 10 - }, - "end": { - "line": 196, - "column": 17 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5665, - "end": 5666, - "loc": { - "start": { - "line": 196, - "column": 17 - }, - "end": { - "line": 196, - "column": 18 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5667, - "end": 5668, - "loc": { - "start": { - "line": 196, - "column": 19 - }, - "end": { - "line": 196, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 5677, - "end": 5685, - "loc": { - "start": { - "line": 197, - "column": 8 - }, - "end": { - "line": 197, - "column": 16 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5685, - "end": 5686, - "loc": { - "start": { - "line": 197, - "column": 16 - }, - "end": { - "line": 197, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "copyErr", - "start": 5686, - "end": 5693, - "loc": { - "start": { - "line": 197, - "column": 17 - }, - "end": { - "line": 197, - "column": 24 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5693, - "end": 5694, - "loc": { - "start": { - "line": 197, - "column": 24 - }, - "end": { - "line": 197, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5694, - "end": 5695, - "loc": { - "start": { - "line": 197, - "column": 25 - }, - "end": { - "line": 197, - "column": 26 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 5704, - "end": 5710, - "loc": { - "start": { - "line": 198, - "column": 8 - }, - "end": { - "line": 198, - "column": 14 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5710, - "end": 5711, - "loc": { - "start": { - "line": 198, - "column": 14 - }, - "end": { - "line": 198, - "column": 15 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5718, - "end": 5719, - "loc": { - "start": { - "line": 199, - "column": 6 - }, - "end": { - "line": 199, - "column": 7 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 5720, - "end": 5724, - "loc": { - "start": { - "line": 199, - "column": 8 - }, - "end": { - "line": 199, - "column": 12 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 5725, - "end": 5727, - "loc": { - "start": { - "line": 199, - "column": 13 - }, - "end": { - "line": 199, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5728, - "end": 5729, - "loc": { - "start": { - "line": 199, - "column": 16 - }, - "end": { - "line": 199, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Array", - "start": 5729, - "end": 5734, - "loc": { - "start": { - "line": 199, - "column": 17 - }, - "end": { - "line": 199, - "column": 22 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5734, - "end": 5735, - "loc": { - "start": { - "line": 199, - "column": 22 - }, - "end": { - "line": 199, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "isArray", - "start": 5735, - "end": 5742, - "loc": { - "start": { - "line": 199, - "column": 23 - }, - "end": { - "line": 199, - "column": 30 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5742, - "end": 5743, - "loc": { - "start": { - "line": 199, - "column": 30 - }, - "end": { - "line": 199, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 5743, - "end": 5747, - "loc": { - "start": { - "line": 199, - "column": 31 - }, - "end": { - "line": 199, - "column": 35 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5747, - "end": 5748, - "loc": { - "start": { - "line": 199, - "column": 35 - }, - "end": { - "line": 199, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "to", - "start": 5748, - "end": 5750, - "loc": { - "start": { - "line": 199, - "column": 36 - }, - "end": { - "line": 199, - "column": 38 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5750, - "end": 5751, - "loc": { - "start": { - "line": 199, - "column": 38 - }, - "end": { - "line": 199, - "column": 39 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5751, - "end": 5752, - "loc": { - "start": { - "line": 199, - "column": 39 - }, - "end": { - "line": 199, - "column": 40 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5753, - "end": 5754, - "loc": { - "start": { - "line": 199, - "column": 41 - }, - "end": { - "line": 199, - "column": 42 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 5763, - "end": 5768, - "loc": { - "start": { - "line": 200, - "column": 8 - }, - "end": { - "line": 200, - "column": 13 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5769, - "end": 5770, - "loc": { - "start": { - "line": 200, - "column": 14 - }, - "end": { - "line": 200, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 5771, - "end": 5773, - "loc": { - "start": { - "line": 200, - "column": 16 - }, - "end": { - "line": 200, - "column": 18 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5773, - "end": 5774, - "loc": { - "start": { - "line": 200, - "column": 18 - }, - "end": { - "line": 200, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documentId", - "start": 5775, - "end": 5785, - "loc": { - "start": { - "line": 200, - "column": 20 - }, - "end": { - "line": 200, - "column": 30 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5786, - "end": 5787, - "loc": { - "start": { - "line": 200, - "column": 31 - }, - "end": { - "line": 200, - "column": 32 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 5788, - "end": 5789, - "loc": { - "start": { - "line": 200, - "column": 33 - }, - "end": { - "line": 200, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "copyRes", - "start": 5790, - "end": 5797, - "loc": { - "start": { - "line": 200, - "column": 35 - }, - "end": { - "line": 200, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5797, - "end": 5798, - "loc": { - "start": { - "line": 200, - "column": 42 - }, - "end": { - "line": 200, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getDocumentDetails", - "start": 5808, - "end": 5826, - "loc": { - "start": { - "line": 202, - "column": 8 - }, - "end": { - "line": 202, - "column": 26 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5826, - "end": 5827, - "loc": { - "start": { - "line": 202, - "column": 26 - }, - "end": { - "line": 202, - "column": 27 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5827, - "end": 5828, - "loc": { - "start": { - "line": 202, - "column": 27 - }, - "end": { - "line": 202, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 5839, - "end": 5841, - "loc": { - "start": { - "line": 203, - "column": 10 - }, - "end": { - "line": 203, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5841, - "end": 5842, - "loc": { - "start": { - "line": 203, - "column": 12 - }, - "end": { - "line": 203, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documentId", - "start": 5843, - "end": 5853, - "loc": { - "start": { - "line": 203, - "column": 14 - }, - "end": { - "line": 203, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5853, - "end": 5854, - "loc": { - "start": { - "line": 203, - "column": 24 - }, - "end": { - "line": 203, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 5865, - "end": 5870, - "loc": { - "start": { - "line": 204, - "column": 10 - }, - "end": { - "line": 204, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5870, - "end": 5871, - "loc": { - "start": { - "line": 204, - "column": 15 - }, - "end": { - "line": 204, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5880, - "end": 5881, - "loc": { - "start": { - "line": 205, - "column": 8 - }, - "end": { - "line": 205, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5881, - "end": 5882, - "loc": { - "start": { - "line": 205, - "column": 9 - }, - "end": { - "line": 205, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5883, - "end": 5884, - "loc": { - "start": { - "line": 205, - "column": 11 - }, - "end": { - "line": 205, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "detailErr", - "start": 5884, - "end": 5893, - "loc": { - "start": { - "line": 205, - "column": 12 - }, - "end": { - "line": 205, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5893, - "end": 5894, - "loc": { - "start": { - "line": 205, - "column": 21 - }, - "end": { - "line": 205, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "detailRes", - "start": 5895, - "end": 5904, - "loc": { - "start": { - "line": 205, - "column": 23 - }, - "end": { - "line": 205, - "column": 32 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5904, - "end": 5905, - "loc": { - "start": { - "line": 205, - "column": 32 - }, - "end": { - "line": 205, - "column": 33 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5906, - "end": 5908, - "loc": { - "start": { - "line": 205, - "column": 34 - }, - "end": { - "line": 205, - "column": 36 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5909, - "end": 5910, - "loc": { - "start": { - "line": 205, - "column": 37 - }, - "end": { - "line": 205, - "column": 38 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 5921, - "end": 5923, - "loc": { - "start": { - "line": 206, - "column": 10 - }, - "end": { - "line": 206, - "column": 12 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5924, - "end": 5925, - "loc": { - "start": { - "line": 206, - "column": 13 - }, - "end": { - "line": 206, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "detailErr", - "start": 5925, - "end": 5934, - "loc": { - "start": { - "line": 206, - "column": 14 - }, - "end": { - "line": 206, - "column": 23 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5934, - "end": 5935, - "loc": { - "start": { - "line": 206, - "column": 23 - }, - "end": { - "line": 206, - "column": 24 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5936, - "end": 5937, - "loc": { - "start": { - "line": 206, - "column": 25 - }, - "end": { - "line": 206, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 5950, - "end": 5958, - "loc": { - "start": { - "line": 207, - "column": 12 - }, - "end": { - "line": 207, - "column": 20 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5958, - "end": 5959, - "loc": { - "start": { - "line": 207, - "column": 20 - }, - "end": { - "line": 207, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "detailErr", - "start": 5959, - "end": 5968, - "loc": { - "start": { - "line": 207, - "column": 21 - }, - "end": { - "line": 207, - "column": 30 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5968, - "end": 5969, - "loc": { - "start": { - "line": 207, - "column": 30 - }, - "end": { - "line": 207, - "column": 31 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5969, - "end": 5970, - "loc": { - "start": { - "line": 207, - "column": 31 - }, - "end": { - "line": 207, - "column": 32 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 5983, - "end": 5989, - "loc": { - "start": { - "line": 208, - "column": 12 - }, - "end": { - "line": 208, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5989, - "end": 5990, - "loc": { - "start": { - "line": 208, - "column": 18 - }, - "end": { - "line": 208, - "column": 19 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6001, - "end": 6002, - "loc": { - "start": { - "line": 209, - "column": 10 - }, - "end": { - "line": 209, - "column": 11 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 6003, - "end": 6007, - "loc": { - "start": { - "line": 209, - "column": 12 - }, - "end": { - "line": 209, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6008, - "end": 6009, - "loc": { - "start": { - "line": 209, - "column": 17 - }, - "end": { - "line": 209, - "column": 18 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 6022, - "end": 6027, - "loc": { - "start": { - "line": 210, - "column": 12 - }, - "end": { - "line": 210, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "inviteData", - "start": 6028, - "end": 6038, - "loc": { - "start": { - "line": 210, - "column": 18 - }, - "end": { - "line": 210, - "column": 28 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 6039, - "end": 6040, - "loc": { - "start": { - "line": 210, - "column": 29 - }, - "end": { - "line": 210, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Object", - "start": 6041, - "end": 6047, - "loc": { - "start": { - "line": 210, - "column": 31 - }, - "end": { - "line": 210, - "column": 37 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6047, - "end": 6048, - "loc": { - "start": { - "line": 210, - "column": 37 - }, - "end": { - "line": 210, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "assign", - "start": 6048, - "end": 6054, - "loc": { - "start": { - "line": 210, - "column": 38 - }, - "end": { - "line": 210, - "column": 44 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6054, - "end": 6055, - "loc": { - "start": { - "line": 210, - "column": 44 - }, - "end": { - "line": 210, - "column": 45 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6055, - "end": 6056, - "loc": { - "start": { - "line": 210, - "column": 45 - }, - "end": { - "line": 210, - "column": 46 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6056, - "end": 6057, - "loc": { - "start": { - "line": 210, - "column": 46 - }, - "end": { - "line": 210, - "column": 47 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6057, - "end": 6058, - "loc": { - "start": { - "line": 210, - "column": 47 - }, - "end": { - "line": 210, - "column": 48 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 6059, - "end": 6063, - "loc": { - "start": { - "line": 210, - "column": 49 - }, - "end": { - "line": 210, - "column": 53 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6063, - "end": 6064, - "loc": { - "start": { - "line": 210, - "column": 53 - }, - "end": { - "line": 210, - "column": 54 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6065, - "end": 6066, - "loc": { - "start": { - "line": 210, - "column": 55 - }, - "end": { - "line": 210, - "column": 56 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_id", - "start": 6067, - "end": 6078, - "loc": { - "start": { - "line": 210, - "column": 57 - }, - "end": { - "line": 210, - "column": 68 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6078, - "end": 6079, - "loc": { - "start": { - "line": 210, - "column": 68 - }, - "end": { - "line": 210, - "column": 69 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documentId", - "start": 6080, - "end": 6090, - "loc": { - "start": { - "line": 210, - "column": 70 - }, - "end": { - "line": 210, - "column": 80 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6091, - "end": 6092, - "loc": { - "start": { - "line": 210, - "column": 81 - }, - "end": { - "line": 210, - "column": 82 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6092, - "end": 6093, - "loc": { - "start": { - "line": 210, - "column": 82 - }, - "end": { - "line": 210, - "column": 83 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6093, - "end": 6094, - "loc": { - "start": { - "line": 210, - "column": 83 - }, - "end": { - "line": 210, - "column": 84 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 6107, - "end": 6112, - "loc": { - "start": { - "line": 211, - "column": 12 - }, - "end": { - "line": 211, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6113, - "end": 6114, - "loc": { - "start": { - "line": 211, - "column": 18 - }, - "end": { - "line": 211, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "roles", - "start": 6115, - "end": 6120, - "loc": { - "start": { - "line": 211, - "column": 20 - }, - "end": { - "line": 211, - "column": 25 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6121, - "end": 6122, - "loc": { - "start": { - "line": 211, - "column": 26 - }, - "end": { - "line": 211, - "column": 27 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 6123, - "end": 6124, - "loc": { - "start": { - "line": 211, - "column": 28 - }, - "end": { - "line": 211, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "detailRes", - "start": 6125, - "end": 6134, - "loc": { - "start": { - "line": 211, - "column": 30 - }, - "end": { - "line": 211, - "column": 39 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6134, - "end": 6135, - "loc": { - "start": { - "line": 211, - "column": 39 - }, - "end": { - "line": 211, - "column": 40 - } - } - }, - { - "type": { - "label": "for", - "keyword": "for", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": true, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "for", - "start": 6149, - "end": 6152, - "loc": { - "start": { - "line": 213, - "column": 12 - }, - "end": { - "line": 213, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6153, - "end": 6154, - "loc": { - "start": { - "line": 213, - "column": 16 - }, - "end": { - "line": 213, - "column": 17 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 6154, - "end": 6159, - "loc": { - "start": { - "line": 213, - "column": 17 - }, - "end": { - "line": 213, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "signer", - "start": 6160, - "end": 6166, - "loc": { - "start": { - "line": 213, - "column": 23 - }, - "end": { - "line": 213, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "of", - "start": 6167, - "end": 6169, - "loc": { - "start": { - "line": 213, - "column": 30 - }, - "end": { - "line": 213, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "inviteData", - "start": 6170, - "end": 6180, - "loc": { - "start": { - "line": 213, - "column": 33 - }, - "end": { - "line": 213, - "column": 43 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6180, - "end": 6181, - "loc": { - "start": { - "line": 213, - "column": 43 - }, - "end": { - "line": 213, - "column": 44 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "to", - "start": 6181, - "end": 6183, - "loc": { - "start": { - "line": 213, - "column": 44 - }, - "end": { - "line": 213, - "column": 46 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6183, - "end": 6184, - "loc": { - "start": { - "line": 213, - "column": 46 - }, - "end": { - "line": 213, - "column": 47 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6185, - "end": 6186, - "loc": { - "start": { - "line": 213, - "column": 48 - }, - "end": { - "line": 213, - "column": 49 - } - } - }, - { - "type": { - "label": "try", - "keyword": "try", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "try", - "start": 6201, - "end": 6204, - "loc": { - "start": { - "line": 214, - "column": 14 - }, - "end": { - "line": 214, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6205, - "end": 6206, - "loc": { - "start": { - "line": 214, - "column": 18 - }, - "end": { - "line": 214, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "signer", - "start": 6223, - "end": 6229, - "loc": { - "start": { - "line": 215, - "column": 16 - }, - "end": { - "line": 215, - "column": 22 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6229, - "end": 6230, - "loc": { - "start": { - "line": 215, - "column": 22 - }, - "end": { - "line": 215, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "role_id", - "start": 6230, - "end": 6237, - "loc": { - "start": { - "line": 215, - "column": 23 - }, - "end": { - "line": 215, - "column": 30 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 6238, - "end": 6239, - "loc": { - "start": { - "line": 215, - "column": 31 - }, - "end": { - "line": 215, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "roles", - "start": 6240, - "end": 6245, - "loc": { - "start": { - "line": 215, - "column": 33 - }, - "end": { - "line": 215, - "column": 38 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6245, - "end": 6246, - "loc": { - "start": { - "line": 215, - "column": 38 - }, - "end": { - "line": 215, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "find", - "start": 6246, - "end": 6250, - "loc": { - "start": { - "line": 215, - "column": 39 - }, - "end": { - "line": 215, - "column": 43 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6250, - "end": 6251, - "loc": { - "start": { - "line": 215, - "column": 43 - }, - "end": { - "line": 215, - "column": 44 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "role", - "start": 6251, - "end": 6255, - "loc": { - "start": { - "line": 215, - "column": 44 - }, - "end": { - "line": 215, - "column": 48 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6256, - "end": 6258, - "loc": { - "start": { - "line": 215, - "column": 49 - }, - "end": { - "line": 215, - "column": 51 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "role", - "start": 6259, - "end": 6263, - "loc": { - "start": { - "line": 215, - "column": 52 - }, - "end": { - "line": 215, - "column": 56 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6263, - "end": 6264, - "loc": { - "start": { - "line": 215, - "column": 56 - }, - "end": { - "line": 215, - "column": 57 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "name", - "start": 6264, - "end": 6268, - "loc": { - "start": { - "line": 215, - "column": 57 - }, - "end": { - "line": 215, - "column": 61 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 6269, - "end": 6272, - "loc": { - "start": { - "line": 215, - "column": 62 - }, - "end": { - "line": 215, - "column": 65 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "signer", - "start": 6273, - "end": 6279, - "loc": { - "start": { - "line": 215, - "column": 66 - }, - "end": { - "line": 215, - "column": 72 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6279, - "end": 6280, - "loc": { - "start": { - "line": 215, - "column": 72 - }, - "end": { - "line": 215, - "column": 73 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "role", - "start": 6280, - "end": 6284, - "loc": { - "start": { - "line": 215, - "column": 73 - }, - "end": { - "line": 215, - "column": 77 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6284, - "end": 6285, - "loc": { - "start": { - "line": 215, - "column": 77 - }, - "end": { - "line": 215, - "column": 78 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6285, - "end": 6286, - "loc": { - "start": { - "line": 215, - "column": 78 - }, - "end": { - "line": 215, - "column": 79 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "unique_id", - "start": 6286, - "end": 6295, - "loc": { - "start": { - "line": 215, - "column": 79 - }, - "end": { - "line": 215, - "column": 88 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6295, - "end": 6296, - "loc": { - "start": { - "line": 215, - "column": 88 - }, - "end": { - "line": 215, - "column": 89 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6311, - "end": 6312, - "loc": { - "start": { - "line": 216, - "column": 14 - }, - "end": { - "line": 216, - "column": 15 - } - } - }, - { - "type": { - "label": "catch", - "keyword": "catch", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "catch", - "start": 6313, - "end": 6318, - "loc": { - "start": { - "line": 216, - "column": 16 - }, - "end": { - "line": 216, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6319, - "end": 6320, - "loc": { - "start": { - "line": 216, - "column": 22 - }, - "end": { - "line": 216, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 6320, - "end": 6323, - "loc": { - "start": { - "line": 216, - "column": 23 - }, - "end": { - "line": 216, - "column": 26 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6323, - "end": 6324, - "loc": { - "start": { - "line": 216, - "column": 26 - }, - "end": { - "line": 216, - "column": 27 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6325, - "end": 6326, - "loc": { - "start": { - "line": 216, - "column": 28 - }, - "end": { - "line": 216, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 6343, - "end": 6351, - "loc": { - "start": { - "line": 217, - "column": 16 - }, - "end": { - "line": 217, - "column": 24 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6351, - "end": 6352, - "loc": { - "start": { - "line": 217, - "column": 24 - }, - "end": { - "line": 217, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 6352, - "end": 6355, - "loc": { - "start": { - "line": 217, - "column": 25 - }, - "end": { - "line": 217, - "column": 28 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6355, - "end": 6356, - "loc": { - "start": { - "line": 217, - "column": 28 - }, - "end": { - "line": 217, - "column": 29 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6356, - "end": 6357, - "loc": { - "start": { - "line": 217, - "column": 29 - }, - "end": { - "line": 217, - "column": 30 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 6374, - "end": 6380, - "loc": { - "start": { - "line": 218, - "column": 16 - }, - "end": { - "line": 218, - "column": 22 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6380, - "end": 6381, - "loc": { - "start": { - "line": 218, - "column": 22 - }, - "end": { - "line": 218, - "column": 23 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6396, - "end": 6397, - "loc": { - "start": { - "line": 219, - "column": 14 - }, - "end": { - "line": 219, - "column": 15 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6410, - "end": 6411, - "loc": { - "start": { - "line": 220, - "column": 12 - }, - "end": { - "line": 220, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "sendDocumentInvite", - "start": 6425, - "end": 6443, - "loc": { - "start": { - "line": 222, - "column": 12 - }, - "end": { - "line": 222, - "column": 30 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6443, - "end": 6444, - "loc": { - "start": { - "line": 222, - "column": 30 - }, - "end": { - "line": 222, - "column": 31 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6444, - "end": 6445, - "loc": { - "start": { - "line": 222, - "column": 31 - }, - "end": { - "line": 222, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 6460, - "end": 6462, - "loc": { - "start": { - "line": 223, - "column": 14 - }, - "end": { - "line": 223, - "column": 16 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6462, - "end": 6463, - "loc": { - "start": { - "line": 223, - "column": 16 - }, - "end": { - "line": 223, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documentId", - "start": 6464, - "end": 6474, - "loc": { - "start": { - "line": 223, - "column": 18 - }, - "end": { - "line": 223, - "column": 28 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6474, - "end": 6475, - "loc": { - "start": { - "line": 223, - "column": 28 - }, - "end": { - "line": 223, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 6490, - "end": 6494, - "loc": { - "start": { - "line": 224, - "column": 14 - }, - "end": { - "line": 224, - "column": 18 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6494, - "end": 6495, - "loc": { - "start": { - "line": 224, - "column": 18 - }, - "end": { - "line": 224, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "inviteData", - "start": 6496, - "end": 6506, - "loc": { - "start": { - "line": 224, - "column": 20 - }, - "end": { - "line": 224, - "column": 30 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6506, - "end": 6507, - "loc": { - "start": { - "line": 224, - "column": 30 - }, - "end": { - "line": 224, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "options", - "start": 6522, - "end": 6529, - "loc": { - "start": { - "line": 225, - "column": 14 - }, - "end": { - "line": 225, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6529, - "end": 6530, - "loc": { - "start": { - "line": 225, - "column": 21 - }, - "end": { - "line": 225, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 6545, - "end": 6550, - "loc": { - "start": { - "line": 226, - "column": 14 - }, - "end": { - "line": 226, - "column": 19 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6550, - "end": 6551, - "loc": { - "start": { - "line": 226, - "column": 19 - }, - "end": { - "line": 226, - "column": 20 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6564, - "end": 6565, - "loc": { - "start": { - "line": 227, - "column": 12 - }, - "end": { - "line": 227, - "column": 13 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6565, - "end": 6566, - "loc": { - "start": { - "line": 227, - "column": 13 - }, - "end": { - "line": 227, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 6567, - "end": 6575, - "loc": { - "start": { - "line": 227, - "column": 15 - }, - "end": { - "line": 227, - "column": 23 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6575, - "end": 6576, - "loc": { - "start": { - "line": 227, - "column": 23 - }, - "end": { - "line": 227, - "column": 24 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6576, - "end": 6577, - "loc": { - "start": { - "line": 227, - "column": 24 - }, - "end": { - "line": 227, - "column": 25 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6588, - "end": 6589, - "loc": { - "start": { - "line": 228, - "column": 10 - }, - "end": { - "line": 228, - "column": 11 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6598, - "end": 6599, - "loc": { - "start": { - "line": 229, - "column": 8 - }, - "end": { - "line": 229, - "column": 9 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6599, - "end": 6600, - "loc": { - "start": { - "line": 229, - "column": 9 - }, - "end": { - "line": 229, - "column": 10 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6600, - "end": 6601, - "loc": { - "start": { - "line": 229, - "column": 10 - }, - "end": { - "line": 229, - "column": 11 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6608, - "end": 6609, - "loc": { - "start": { - "line": 230, - "column": 6 - }, - "end": { - "line": 230, - "column": 7 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 6610, - "end": 6614, - "loc": { - "start": { - "line": 230, - "column": 8 - }, - "end": { - "line": 230, - "column": 12 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6615, - "end": 6616, - "loc": { - "start": { - "line": 230, - "column": 13 - }, - "end": { - "line": 230, - "column": 14 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 6625, - "end": 6630, - "loc": { - "start": { - "line": 231, - "column": 8 - }, - "end": { - "line": 231, - "column": 13 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6631, - "end": 6632, - "loc": { - "start": { - "line": 231, - "column": 14 - }, - "end": { - "line": 231, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 6633, - "end": 6635, - "loc": { - "start": { - "line": 231, - "column": 16 - }, - "end": { - "line": 231, - "column": 18 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6635, - "end": 6636, - "loc": { - "start": { - "line": 231, - "column": 18 - }, - "end": { - "line": 231, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documentId", - "start": 6637, - "end": 6647, - "loc": { - "start": { - "line": 231, - "column": 20 - }, - "end": { - "line": 231, - "column": 30 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6648, - "end": 6649, - "loc": { - "start": { - "line": 231, - "column": 31 - }, - "end": { - "line": 231, - "column": 32 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 6650, - "end": 6651, - "loc": { - "start": { - "line": 231, - "column": 33 - }, - "end": { - "line": 231, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "copyRes", - "start": 6652, - "end": 6659, - "loc": { - "start": { - "line": 231, - "column": 35 - }, - "end": { - "line": 231, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6659, - "end": 6660, - "loc": { - "start": { - "line": 231, - "column": 42 - }, - "end": { - "line": 231, - "column": 43 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 6669, - "end": 6674, - "loc": { - "start": { - "line": 232, - "column": 8 - }, - "end": { - "line": 232, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "inviteData", - "start": 6675, - "end": 6685, - "loc": { - "start": { - "line": 232, - "column": 14 - }, - "end": { - "line": 232, - "column": 24 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 6686, - "end": 6687, - "loc": { - "start": { - "line": 232, - "column": 25 - }, - "end": { - "line": 232, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Object", - "start": 6688, - "end": 6694, - "loc": { - "start": { - "line": 232, - "column": 27 - }, - "end": { - "line": 232, - "column": 33 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6694, - "end": 6695, - "loc": { - "start": { - "line": 232, - "column": 33 - }, - "end": { - "line": 232, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "assign", - "start": 6695, - "end": 6701, - "loc": { - "start": { - "line": 232, - "column": 34 - }, - "end": { - "line": 232, - "column": 40 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6701, - "end": 6702, - "loc": { - "start": { - "line": 232, - "column": 40 - }, - "end": { - "line": 232, - "column": 41 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6702, - "end": 6703, - "loc": { - "start": { - "line": 232, - "column": 41 - }, - "end": { - "line": 232, - "column": 42 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6703, - "end": 6704, - "loc": { - "start": { - "line": 232, - "column": 42 - }, - "end": { - "line": 232, - "column": 43 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6704, - "end": 6705, - "loc": { - "start": { - "line": 232, - "column": 43 - }, - "end": { - "line": 232, - "column": 44 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 6706, - "end": 6710, - "loc": { - "start": { - "line": 232, - "column": 45 - }, - "end": { - "line": 232, - "column": 49 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6710, - "end": 6711, - "loc": { - "start": { - "line": 232, - "column": 49 - }, - "end": { - "line": 232, - "column": 50 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6712, - "end": 6713, - "loc": { - "start": { - "line": 232, - "column": 51 - }, - "end": { - "line": 232, - "column": 52 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_id", - "start": 6714, - "end": 6725, - "loc": { - "start": { - "line": 232, - "column": 53 - }, - "end": { - "line": 232, - "column": 64 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6725, - "end": 6726, - "loc": { - "start": { - "line": 232, - "column": 64 - }, - "end": { - "line": 232, - "column": 65 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documentId", - "start": 6727, - "end": 6737, - "loc": { - "start": { - "line": 232, - "column": 66 - }, - "end": { - "line": 232, - "column": 76 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6738, - "end": 6739, - "loc": { - "start": { - "line": 232, - "column": 77 - }, - "end": { - "line": 232, - "column": 78 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6739, - "end": 6740, - "loc": { - "start": { - "line": 232, - "column": 78 - }, - "end": { - "line": 232, - "column": 79 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6740, - "end": 6741, - "loc": { - "start": { - "line": 232, - "column": 79 - }, - "end": { - "line": 232, - "column": 80 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "sendDocumentInvite", - "start": 6751, - "end": 6769, - "loc": { - "start": { - "line": 234, - "column": 8 - }, - "end": { - "line": 234, - "column": 26 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6769, - "end": 6770, - "loc": { - "start": { - "line": 234, - "column": 26 - }, - "end": { - "line": 234, - "column": 27 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6770, - "end": 6771, - "loc": { - "start": { - "line": 234, - "column": 27 - }, - "end": { - "line": 234, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 6782, - "end": 6784, - "loc": { - "start": { - "line": 235, - "column": 10 - }, - "end": { - "line": 235, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6784, - "end": 6785, - "loc": { - "start": { - "line": 235, - "column": 12 - }, - "end": { - "line": 235, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documentId", - "start": 6786, - "end": 6796, - "loc": { - "start": { - "line": 235, - "column": 14 - }, - "end": { - "line": 235, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6796, - "end": 6797, - "loc": { - "start": { - "line": 235, - "column": 24 - }, - "end": { - "line": 235, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 6808, - "end": 6812, - "loc": { - "start": { - "line": 236, - "column": 10 - }, - "end": { - "line": 236, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6812, - "end": 6813, - "loc": { - "start": { - "line": 236, - "column": 14 - }, - "end": { - "line": 236, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "inviteData", - "start": 6814, - "end": 6824, - "loc": { - "start": { - "line": 236, - "column": 16 - }, - "end": { - "line": 236, - "column": 26 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6824, - "end": 6825, - "loc": { - "start": { - "line": 236, - "column": 26 - }, - "end": { - "line": 236, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "options", - "start": 6836, - "end": 6843, - "loc": { - "start": { - "line": 237, - "column": 10 - }, - "end": { - "line": 237, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6843, - "end": 6844, - "loc": { - "start": { - "line": 237, - "column": 17 - }, - "end": { - "line": 237, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 6855, - "end": 6860, - "loc": { - "start": { - "line": 238, - "column": 10 - }, - "end": { - "line": 238, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6860, - "end": 6861, - "loc": { - "start": { - "line": 238, - "column": 15 - }, - "end": { - "line": 238, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6870, - "end": 6871, - "loc": { - "start": { - "line": 239, - "column": 8 - }, - "end": { - "line": 239, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6871, - "end": 6872, - "loc": { - "start": { - "line": 239, - "column": 9 - }, - "end": { - "line": 239, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 6873, - "end": 6881, - "loc": { - "start": { - "line": 239, - "column": 11 - }, - "end": { - "line": 239, - "column": 19 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6881, - "end": 6882, - "loc": { - "start": { - "line": 239, - "column": 19 - }, - "end": { - "line": 239, - "column": 20 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6882, - "end": 6883, - "loc": { - "start": { - "line": 239, - "column": 20 - }, - "end": { - "line": 239, - "column": 21 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6890, - "end": 6891, - "loc": { - "start": { - "line": 240, - "column": 6 - }, - "end": { - "line": 240, - "column": 7 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6896, - "end": 6897, - "loc": { - "start": { - "line": 241, - "column": 4 - }, - "end": { - "line": 241, - "column": 5 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6897, - "end": 6898, - "loc": { - "start": { - "line": 241, - "column": 5 - }, - "end": { - "line": 241, - "column": 6 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6898, - "end": 6899, - "loc": { - "start": { - "line": 241, - "column": 6 - }, - "end": { - "line": 241, - "column": 7 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6902, - "end": 6903, - "loc": { - "start": { - "line": 242, - "column": 2 - }, - "end": { - "line": 242, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Remove template payload\n * @typedef {DocumentRemoveParams} TemplateRemoveParams\n ", - "start": 6907, - "end": 7003, - "loc": { - "start": { - "line": 244, - "column": 2 - }, - "end": { - "line": 247, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Remove template response data\n * @typedef {DocumentRemoveResponse} TemplateRemoveResponse\n ", - "start": 7007, - "end": 7113, - "loc": { - "start": { - "line": 249, - "column": 2 - }, - "end": { - "line": 252, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Removes a specified template from folder\n * @param {TemplateRemoveParams} data - remove template payload\n * @param {function(err: ApiErrorResponse, res: TemplateRemoveResponse)} [callback] - error first node.js callback\n ", - "start": 7117, - "end": 7355, - "loc": { - "start": { - "line": 254, - "column": 2 - }, - "end": { - "line": 258, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 7358, - "end": 7364, - "loc": { - "start": { - "line": 259, - "column": 2 - }, - "end": { - "line": 259, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "remove", - "start": 7365, - "end": 7371, - "loc": { - "start": { - "line": 259, - "column": 9 - }, - "end": { - "line": 259, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7372, - "end": 7373, - "loc": { - "start": { - "line": 259, - "column": 16 - }, - "end": { - "line": 259, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7373, - "end": 7374, - "loc": { - "start": { - "line": 259, - "column": 17 - }, - "end": { - "line": 259, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 7375, - "end": 7377, - "loc": { - "start": { - "line": 259, - "column": 19 - }, - "end": { - "line": 259, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7377, - "end": 7378, - "loc": { - "start": { - "line": 259, - "column": 21 - }, - "end": { - "line": 259, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 7379, - "end": 7384, - "loc": { - "start": { - "line": 259, - "column": 23 - }, - "end": { - "line": 259, - "column": 28 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7385, - "end": 7386, - "loc": { - "start": { - "line": 259, - "column": 29 - }, - "end": { - "line": 259, - "column": 30 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7386, - "end": 7387, - "loc": { - "start": { - "line": 259, - "column": 30 - }, - "end": { - "line": 259, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 7388, - "end": 7396, - "loc": { - "start": { - "line": 259, - "column": 32 - }, - "end": { - "line": 259, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7396, - "end": 7397, - "loc": { - "start": { - "line": 259, - "column": 40 - }, - "end": { - "line": 259, - "column": 41 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7398, - "end": 7399, - "loc": { - "start": { - "line": 259, - "column": 42 - }, - "end": { - "line": 259, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "removeDocument", - "start": 7404, - "end": 7418, - "loc": { - "start": { - "line": 260, - "column": 4 - }, - "end": { - "line": 260, - "column": 18 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7418, - "end": 7419, - "loc": { - "start": { - "line": 260, - "column": 18 - }, - "end": { - "line": 260, - "column": 19 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7419, - "end": 7420, - "loc": { - "start": { - "line": 260, - "column": 19 - }, - "end": { - "line": 260, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 7427, - "end": 7429, - "loc": { - "start": { - "line": 261, - "column": 6 - }, - "end": { - "line": 261, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7429, - "end": 7430, - "loc": { - "start": { - "line": 261, - "column": 8 - }, - "end": { - "line": 261, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 7437, - "end": 7442, - "loc": { - "start": { - "line": 262, - "column": 6 - }, - "end": { - "line": 262, - "column": 11 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7442, - "end": 7443, - "loc": { - "start": { - "line": 262, - "column": 11 - }, - "end": { - "line": 262, - "column": 12 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7448, - "end": 7449, - "loc": { - "start": { - "line": 263, - "column": 4 - }, - "end": { - "line": 263, - "column": 5 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7449, - "end": 7450, - "loc": { - "start": { - "line": 263, - "column": 5 - }, - "end": { - "line": 263, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 7451, - "end": 7459, - "loc": { - "start": { - "line": 263, - "column": 7 - }, - "end": { - "line": 263, - "column": 15 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7459, - "end": 7460, - "loc": { - "start": { - "line": 263, - "column": 15 - }, - "end": { - "line": 263, - "column": 16 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7460, - "end": 7461, - "loc": { - "start": { - "line": 263, - "column": 16 - }, - "end": { - "line": 263, - "column": 17 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7464, - "end": 7465, - "loc": { - "start": { - "line": 264, - "column": 2 - }, - "end": { - "line": 264, - "column": 3 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7467, - "end": 7468, - "loc": { - "start": { - "line": 266, - "column": 0 - }, - "end": { - "line": 266, - "column": 1 - } - } - }, - { - "type": { - "label": "export", - "keyword": "export", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "export", - "start": 7470, - "end": 7476, - "loc": { - "start": { - "line": 268, - "column": 0 - }, - "end": { - "line": 268, - "column": 6 - } - } - }, - { - "type": { - "label": "default", - "keyword": "default", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "default", - "start": 7477, - "end": 7484, - "loc": { - "start": { - "line": 268, - "column": 7 - }, - "end": { - "line": 268, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Template", - "start": 7485, - "end": 7493, - "loc": { - "start": { - "line": 268, - "column": 15 - }, - "end": { - "line": 268, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7493, - "end": 7494, - "loc": { - "start": { - "line": 268, - "column": 23 - }, - "end": { - "line": 268, - "column": 24 - } - } - }, - { - "type": { - "label": "eof", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7495, - "end": 7495, - "loc": { - "start": { - "line": 269, - "column": 0 - }, - "end": { - "line": 269, - "column": 0 - } - } - } - ] -} \ No newline at end of file diff --git a/docs/ast/source/template/index.js.json b/docs/ast/source/template/index.js.json deleted file mode 100644 index 6b844816..00000000 --- a/docs/ast/source/template/index.js.json +++ /dev/null @@ -1,78192 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 18023, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 602, - "column": 0 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 18023, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 602, - "column": 0 - } - }, - "sourceType": "module", - "body": [ - { - "type": "ImportDeclaration", - "start": 14, - "end": 40, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 26 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - } - }, - "local": { - "type": "Identifier", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - }, - "identifierName": "https" - }, - "name": "https" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 18 - }, - "end": { - "line": 2, - "column": 25 - } - }, - "extra": { - "rawValue": "https", - "raw": "'https'" - }, - "value": "https" - } - }, - { - "type": "ImportDeclaration", - "start": 41, - "end": 75, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 34 - } - }, - "specifiers": [ - { - "type": "ImportSpecifier", - "start": 50, - "end": 62, - "loc": { - "start": { - "line": 3, - "column": 9 - }, - "end": { - "line": 3, - "column": 21 - } - }, - "imported": { - "type": "Identifier", - "start": 50, - "end": 62, - "loc": { - "start": { - "line": 3, - "column": 9 - }, - "end": { - "line": 3, - "column": 21 - }, - "identifierName": "readFileSync" - }, - "name": "readFileSync" - }, - "local": { - "type": "Identifier", - "start": 50, - "end": 62, - "loc": { - "start": { - "line": 3, - "column": 9 - }, - "end": { - "line": 3, - "column": 21 - }, - "identifierName": "readFileSync" - }, - "name": "readFileSync" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 70, - "end": 74, - "loc": { - "start": { - "line": 3, - "column": 29 - }, - "end": { - "line": 3, - "column": 33 - } - }, - "extra": { - "rawValue": "fs", - "raw": "'fs'" - }, - "value": "fs" - } - }, - { - "type": "ImportDeclaration", - "start": 76, - "end": 108, - "loc": { - "start": { - "line": 4, - "column": 0 - }, - "end": { - "line": 4, - "column": 32 - } - }, - "specifiers": [ - { - "type": "ImportSpecifier", - "start": 85, - "end": 93, - "loc": { - "start": { - "line": 4, - "column": 9 - }, - "end": { - "line": 4, - "column": 17 - } - }, - "imported": { - "type": "Identifier", - "start": 85, - "end": 93, - "loc": { - "start": { - "line": 4, - "column": 9 - }, - "end": { - "line": 4, - "column": 17 - }, - "identifierName": "basename" - }, - "name": "basename" - }, - "local": { - "type": "Identifier", - "start": 85, - "end": 93, - "loc": { - "start": { - "line": 4, - "column": 9 - }, - "end": { - "line": 4, - "column": 17 - }, - "identifierName": "basename" - }, - "name": "basename" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 101, - "end": 107, - "loc": { - "start": { - "line": 4, - "column": 25 - }, - "end": { - "line": 4, - "column": 31 - } - }, - "extra": { - "rawValue": "path", - "raw": "'path'" - }, - "value": "path" - } - }, - { - "type": "ImportDeclaration", - "start": 109, - "end": 231, - "loc": { - "start": { - "line": 5, - "column": 0 - }, - "end": { - "line": 11, - "column": 19 - } - }, - "specifiers": [ - { - "type": "ImportSpecifier", - "start": 120, - "end": 135, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 17 - } - }, - "imported": { - "type": "Identifier", - "start": 120, - "end": 135, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "local": { - "type": "Identifier", - "start": 120, - "end": 135, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - } - }, - { - "type": "ImportSpecifier", - "start": 139, - "end": 151, - "loc": { - "start": { - "line": 7, - "column": 2 - }, - "end": { - "line": 7, - "column": 14 - } - }, - "imported": { - "type": "Identifier", - "start": 139, - "end": 151, - "loc": { - "start": { - "line": 7, - "column": 2 - }, - "end": { - "line": 7, - "column": 14 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "local": { - "type": "Identifier", - "start": 139, - "end": 151, - "loc": { - "start": { - "line": 7, - "column": 2 - }, - "end": { - "line": 7, - "column": 14 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - } - }, - { - "type": "ImportSpecifier", - "start": 155, - "end": 174, - "loc": { - "start": { - "line": 8, - "column": 2 - }, - "end": { - "line": 8, - "column": 21 - } - }, - "imported": { - "type": "Identifier", - "start": 155, - "end": 174, - "loc": { - "start": { - "line": 8, - "column": 2 - }, - "end": { - "line": 8, - "column": 21 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "local": { - "type": "Identifier", - "start": 155, - "end": 174, - "loc": { - "start": { - "line": 8, - "column": 2 - }, - "end": { - "line": 8, - "column": 21 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - } - }, - { - "type": "ImportSpecifier", - "start": 178, - "end": 187, - "loc": { - "start": { - "line": 9, - "column": 2 - }, - "end": { - "line": 9, - "column": 11 - } - }, - "imported": { - "type": "Identifier", - "start": 178, - "end": 187, - "loc": { - "start": { - "line": 9, - "column": 2 - }, - "end": { - "line": 9, - "column": 11 - }, - "identifierName": "isCSVFile" - }, - "name": "isCSVFile" - }, - "local": { - "type": "Identifier", - "start": 178, - "end": 187, - "loc": { - "start": { - "line": 9, - "column": 2 - }, - "end": { - "line": 9, - "column": 11 - }, - "identifierName": "isCSVFile" - }, - "name": "isCSVFile" - } - }, - { - "type": "ImportSpecifier", - "start": 191, - "end": 210, - "loc": { - "start": { - "line": 10, - "column": 2 - }, - "end": { - "line": 10, - "column": 21 - } - }, - "imported": { - "type": "Identifier", - "start": 191, - "end": 210, - "loc": { - "start": { - "line": 10, - "column": 2 - }, - "end": { - "line": 10, - "column": 21 - }, - "identifierName": "getFormDataBoundary" - }, - "name": "getFormDataBoundary" - }, - "local": { - "type": "Identifier", - "start": 191, - "end": 210, - "loc": { - "start": { - "line": 10, - "column": 2 - }, - "end": { - "line": 10, - "column": 21 - }, - "identifierName": "getFormDataBoundary" - }, - "name": "getFormDataBoundary" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 219, - "end": 230, - "loc": { - "start": { - "line": 11, - "column": 7 - }, - "end": { - "line": 11, - "column": 18 - } - }, - "extra": { - "rawValue": "../common", - "raw": "'../common'" - }, - "value": "../common" - } - }, - { - "type": "ImportDeclaration", - "start": 232, - "end": 290, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 16, - "column": 21 - } - }, - "specifiers": [ - { - "type": "ImportSpecifier", - "start": 243, - "end": 249, - "loc": { - "start": { - "line": 13, - "column": 2 - }, - "end": { - "line": 13, - "column": 8 - } - }, - "imported": { - "type": "Identifier", - "start": 243, - "end": 249, - "loc": { - "start": { - "line": 13, - "column": 2 - }, - "end": { - "line": 13, - "column": 8 - }, - "identifierName": "remove" - }, - "name": "remove" - }, - "local": { - "type": "Identifier", - "start": 243, - "end": 249, - "loc": { - "start": { - "line": 13, - "column": 2 - }, - "end": { - "line": 13, - "column": 8 - }, - "identifierName": "remove" - }, - "name": "remove" - } - }, - { - "type": "ImportSpecifier", - "start": 253, - "end": 259, - "loc": { - "start": { - "line": 14, - "column": 2 - }, - "end": { - "line": 14, - "column": 8 - } - }, - "imported": { - "type": "Identifier", - "start": 253, - "end": 259, - "loc": { - "start": { - "line": 14, - "column": 2 - }, - "end": { - "line": 14, - "column": 8 - }, - "identifierName": "invite" - }, - "name": "invite" - }, - "local": { - "type": "Identifier", - "start": 253, - "end": 259, - "loc": { - "start": { - "line": 14, - "column": 2 - }, - "end": { - "line": 14, - "column": 8 - }, - "identifierName": "invite" - }, - "name": "invite" - } - }, - { - "type": "ImportSpecifier", - "start": 263, - "end": 267, - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 15, - "column": 6 - } - }, - "imported": { - "type": "Identifier", - "start": 263, - "end": 267, - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 15, - "column": 6 - }, - "identifierName": "view" - }, - "name": "view" - }, - "local": { - "type": "Identifier", - "start": 263, - "end": 267, - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 15, - "column": 6 - }, - "identifierName": "view" - }, - "name": "view" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 276, - "end": 289, - "loc": { - "start": { - "line": 16, - "column": 7 - }, - "end": { - "line": 16, - "column": 20 - } - }, - "extra": { - "rawValue": "../document", - "raw": "'../document'" - }, - "value": "../document" - } - }, - { - "type": "ImportDeclaration", - "start": 291, - "end": 331, - "loc": { - "start": { - "line": 17, - "column": 0 - }, - "end": { - "line": 17, - "column": 40 - } - }, - "specifiers": [ - { - "type": "ImportSpecifier", - "start": 300, - "end": 309, - "loc": { - "start": { - "line": 17, - "column": 9 - }, - "end": { - "line": 17, - "column": 18 - } - }, - "imported": { - "type": "Identifier", - "start": 300, - "end": 309, - "loc": { - "start": { - "line": 17, - "column": 9 - }, - "end": { - "line": 17, - "column": 18 - }, - "identifierName": "promisify" - }, - "name": "promisify" - }, - "local": { - "type": "Identifier", - "start": 300, - "end": 309, - "loc": { - "start": { - "line": 17, - "column": 9 - }, - "end": { - "line": 17, - "column": 18 - }, - "identifierName": "promisify" - }, - "name": "promisify" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 317, - "end": 330, - "loc": { - "start": { - "line": 17, - "column": 26 - }, - "end": { - "line": 17, - "column": 39 - } - }, - "extra": { - "rawValue": "../../utils", - "raw": "'../../utils'" - }, - "value": "../../utils" - }, - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentRemoveParams} data - remove document payload\n * @param {function(err: ApiErrorResponse, res: DocumentRemoveResponse)} [callback] - error first node.js callback\n ", - "start": 333, - "end": 539, - "loc": { - "start": { - "line": 19, - "column": 0 - }, - "end": { - "line": 23, - "column": 3 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 540, - "end": 570, - "loc": { - "start": { - "line": 24, - "column": 0 - }, - "end": { - "line": 24, - "column": 30 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 546, - "end": 569, - "loc": { - "start": { - "line": 24, - "column": 6 - }, - "end": { - "line": 24, - "column": 29 - } - }, - "id": { - "type": "Identifier", - "start": 546, - "end": 560, - "loc": { - "start": { - "line": 24, - "column": 6 - }, - "end": { - "line": 24, - "column": 20 - }, - "identifierName": "removeDocument" - }, - "name": "removeDocument", - "leadingComments": null - }, - "init": { - "type": "Identifier", - "start": 563, - "end": 569, - "loc": { - "start": { - "line": 24, - "column": 23 - }, - "end": { - "line": 24, - "column": 29 - }, - "identifierName": "remove" - }, - "name": "remove" - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentRemoveParams} data - remove document payload\n * @param {function(err: ApiErrorResponse, res: DocumentRemoveResponse)} [callback] - error first node.js callback\n ", - "start": 333, - "end": 539, - "loc": { - "start": { - "line": 19, - "column": 0 - }, - "end": { - "line": 23, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentInviteParams} data - create document invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentInviteResponse)} [callback] - error first node.js callback\n ", - "start": 572, - "end": 785, - "loc": { - "start": { - "line": 26, - "column": 0 - }, - "end": { - "line": 30, - "column": 3 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 786, - "end": 820, - "loc": { - "start": { - "line": 31, - "column": 0 - }, - "end": { - "line": 31, - "column": 34 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 792, - "end": 819, - "loc": { - "start": { - "line": 31, - "column": 6 - }, - "end": { - "line": 31, - "column": 33 - } - }, - "id": { - "type": "Identifier", - "start": 792, - "end": 810, - "loc": { - "start": { - "line": 31, - "column": 6 - }, - "end": { - "line": 31, - "column": 24 - }, - "identifierName": "sendDocumentInvite" - }, - "name": "sendDocumentInvite", - "leadingComments": null - }, - "init": { - "type": "Identifier", - "start": 813, - "end": 819, - "loc": { - "start": { - "line": 31, - "column": 27 - }, - "end": { - "line": 31, - "column": 33 - }, - "identifierName": "invite" - }, - "name": "invite" - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentInviteParams} data - create document invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentInviteResponse)} [callback] - error first node.js callback\n ", - "start": 572, - "end": 785, - "loc": { - "start": { - "line": 26, - "column": 0 - }, - "end": { - "line": 30, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewParams} data - view document with field extract payload\n * @param {function(err: ApiErrorResponse, res: DocumentViewResponse)} [callback] - error first node.js callback\n ", - "start": 822, - "end": 1041, - "loc": { - "start": { - "line": 33, - "column": 0 - }, - "end": { - "line": 37, - "column": 3 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 1042, - "end": 1074, - "loc": { - "start": { - "line": 38, - "column": 0 - }, - "end": { - "line": 38, - "column": 32 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1048, - "end": 1073, - "loc": { - "start": { - "line": 38, - "column": 6 - }, - "end": { - "line": 38, - "column": 31 - } - }, - "id": { - "type": "Identifier", - "start": 1048, - "end": 1066, - "loc": { - "start": { - "line": 38, - "column": 6 - }, - "end": { - "line": 38, - "column": 24 - }, - "identifierName": "getDocumentDetails" - }, - "name": "getDocumentDetails", - "leadingComments": null - }, - "init": { - "type": "Identifier", - "start": 1069, - "end": 1073, - "loc": { - "start": { - "line": 38, - "column": 27 - }, - "end": { - "line": 38, - "column": 31 - }, - "identifierName": "view" - }, - "name": "view" - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewParams} data - view document with field extract payload\n * @param {function(err: ApiErrorResponse, res: DocumentViewResponse)} [callback] - error first node.js callback\n ", - "start": 822, - "end": 1041, - "loc": { - "start": { - "line": 33, - "column": 0 - }, - "end": { - "line": 37, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Update Signing Role payload\n * @typedef {Object} TemplateUpdateSigningRoleParams\n * @property {string} id - an ID of Actor (role)\n * @property {string} token - your auth token\n * @property {number} signing_order - signing order number\n ", - "start": 1076, - "end": 1321, - "loc": { - "start": { - "line": 40, - "column": 0 - }, - "end": { - "line": 46, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update Signing Role response data\n * @typedef {Object} TemplateUpdateSigningRoleResponse\n * @property {string} id - unique ID of Actor\n * @property {string} document_id - unique ID of Template\n * @property {number} signing_order - signing order number\n ", - "start": 1323, - "end": 1585, - "loc": { - "start": { - "line": 48, - "column": 0 - }, - "end": { - "line": 54, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Updates Signing Role with order of actor\n * @param {TemplateUpdateSigningRoleParams} data - update signing role payload\n * @param {function(err: ApiErrorResponse, res: TemplateUpdateSigningRoleResponse)} [callback] - error first node.js callback\n ", - "start": 1587, - "end": 1843, - "loc": { - "start": { - "line": 56, - "column": 0 - }, - "end": { - "line": 60, - "column": 3 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 1844, - "end": 2392, - "loc": { - "start": { - "line": 61, - "column": 0 - }, - "end": { - "line": 84, - "column": 2 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1850, - "end": 2391, - "loc": { - "start": { - "line": 61, - "column": 6 - }, - "end": { - "line": 84, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 1850, - "end": 1867, - "loc": { - "start": { - "line": 61, - "column": 6 - }, - "end": { - "line": 61, - "column": 23 - }, - "identifierName": "updateSigningRole" - }, - "name": "updateSigningRole", - "leadingComments": null - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 1870, - "end": 2391, - "loc": { - "start": { - "line": 61, - "column": 26 - }, - "end": { - "line": 84, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 1850, - "end": 1867, - "loc": { - "start": { - "line": 61, - "column": 6 - }, - "end": { - "line": 61, - "column": 23 - }, - "identifierName": "updateSigningRole" - }, - "name": "updateSigningRole", - "leadingComments": null - }, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 1871, - "end": 1906, - "loc": { - "start": { - "line": 61, - "column": 27 - }, - "end": { - "line": 65, - "column": 1 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1875, - "end": 1877, - "loc": { - "start": { - "line": 62, - "column": 2 - }, - "end": { - "line": 62, - "column": 4 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1875, - "end": 1877, - "loc": { - "start": { - "line": 62, - "column": 2 - }, - "end": { - "line": 62, - "column": 4 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 1875, - "end": 1877, - "loc": { - "start": { - "line": 62, - "column": 2 - }, - "end": { - "line": 62, - "column": 4 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1881, - "end": 1886, - "loc": { - "start": { - "line": 63, - "column": 2 - }, - "end": { - "line": 63, - "column": 7 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1881, - "end": 1886, - "loc": { - "start": { - "line": 63, - "column": 2 - }, - "end": { - "line": 63, - "column": 7 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 1881, - "end": 1886, - "loc": { - "start": { - "line": 63, - "column": 2 - }, - "end": { - "line": 63, - "column": 7 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1890, - "end": 1903, - "loc": { - "start": { - "line": 64, - "column": 2 - }, - "end": { - "line": 64, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1890, - "end": 1903, - "loc": { - "start": { - "line": 64, - "column": 2 - }, - "end": { - "line": 64, - "column": 15 - }, - "identifierName": "signing_order" - }, - "name": "signing_order" - }, - "value": { - "type": "Identifier", - "start": 1890, - "end": 1903, - "loc": { - "start": { - "line": 64, - "column": 2 - }, - "end": { - "line": 64, - "column": 15 - }, - "identifierName": "signing_order" - }, - "name": "signing_order" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 1908, - "end": 1916, - "loc": { - "start": { - "line": 65, - "column": 3 - }, - "end": { - "line": 65, - "column": 11 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 1921, - "end": 2391, - "loc": { - "start": { - "line": 65, - "column": 16 - }, - "end": { - "line": 84, - "column": 1 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 1925, - "end": 1976, - "loc": { - "start": { - "line": 66, - "column": 2 - }, - "end": { - "line": 66, - "column": 53 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1931, - "end": 1975, - "loc": { - "start": { - "line": 66, - "column": 8 - }, - "end": { - "line": 66, - "column": 52 - } - }, - "id": { - "type": "Identifier", - "start": 1931, - "end": 1939, - "loc": { - "start": { - "line": 66, - "column": 8 - }, - "end": { - "line": 66, - "column": 16 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 1942, - "end": 1975, - "loc": { - "start": { - "line": 66, - "column": 19 - }, - "end": { - "line": 66, - "column": 52 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1942, - "end": 1956, - "loc": { - "start": { - "line": 66, - "column": 19 - }, - "end": { - "line": 66, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 1942, - "end": 1946, - "loc": { - "start": { - "line": 66, - "column": 19 - }, - "end": { - "line": 66, - "column": 23 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 1947, - "end": 1956, - "loc": { - "start": { - "line": 66, - "column": 24 - }, - "end": { - "line": 66, - "column": 33 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 1957, - "end": 1974, - "loc": { - "start": { - "line": 66, - "column": 34 - }, - "end": { - "line": 66, - "column": 51 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1959, - "end": 1972, - "loc": { - "start": { - "line": 66, - "column": 36 - }, - "end": { - "line": 66, - "column": 49 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1959, - "end": 1972, - "loc": { - "start": { - "line": 66, - "column": 36 - }, - "end": { - "line": 66, - "column": 49 - }, - "identifierName": "signing_order" - }, - "name": "signing_order" - }, - "value": { - "type": "Identifier", - "start": 1959, - "end": 1972, - "loc": { - "start": { - "line": 66, - "column": 36 - }, - "end": { - "line": 66, - "column": 49 - }, - "identifierName": "signing_order" - }, - "name": "signing_order" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 1979, - "end": 2352, - "loc": { - "start": { - "line": 67, - "column": 2 - }, - "end": { - "line": 80, - "column": 41 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1985, - "end": 2351, - "loc": { - "start": { - "line": 67, - "column": 8 - }, - "end": { - "line": 80, - "column": 40 - } - }, - "id": { - "type": "Identifier", - "start": 1985, - "end": 1988, - "loc": { - "start": { - "line": 67, - "column": 8 - }, - "end": { - "line": 67, - "column": 11 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 1991, - "end": 2351, - "loc": { - "start": { - "line": 67, - "column": 14 - }, - "end": { - "line": 80, - "column": 40 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1991, - "end": 2318, - "loc": { - "start": { - "line": 67, - "column": 14 - }, - "end": { - "line": 80, - "column": 7 - } - }, - "object": { - "type": "CallExpression", - "start": 1991, - "end": 2310, - "loc": { - "start": { - "line": 67, - "column": 14 - }, - "end": { - "line": 79, - "column": 34 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1991, - "end": 2009, - "loc": { - "start": { - "line": 67, - "column": 14 - }, - "end": { - "line": 68, - "column": 12 - } - }, - "object": { - "type": "Identifier", - "start": 1991, - "end": 1996, - "loc": { - "start": { - "line": 67, - "column": 14 - }, - "end": { - "line": 67, - "column": 19 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 2002, - "end": 2009, - "loc": { - "start": { - "line": 68, - "column": 5 - }, - "end": { - "line": 68, - "column": 12 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 2010, - "end": 2282, - "loc": { - "start": { - "line": 68, - "column": 13 - }, - "end": { - "line": 79, - "column": 6 - } - }, - "callee": { - "type": "Identifier", - "start": 2010, - "end": 2029, - "loc": { - "start": { - "line": 68, - "column": 13 - }, - "end": { - "line": 68, - "column": 32 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 2030, - "end": 2281, - "loc": { - "start": { - "line": 68, - "column": 33 - }, - "end": { - "line": 79, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2038, - "end": 2051, - "loc": { - "start": { - "line": 69, - "column": 6 - }, - "end": { - "line": 69, - "column": 19 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2038, - "end": 2044, - "loc": { - "start": { - "line": 69, - "column": 6 - }, - "end": { - "line": 69, - "column": 12 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 2046, - "end": 2051, - "loc": { - "start": { - "line": 69, - "column": 14 - }, - "end": { - "line": 69, - "column": 19 - } - }, - "extra": { - "rawValue": "PUT", - "raw": "'PUT'" - }, - "value": "PUT" - } - }, - { - "type": "ObjectProperty", - "start": 2059, - "end": 2078, - "loc": { - "start": { - "line": 70, - "column": 6 - }, - "end": { - "line": 70, - "column": 25 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2059, - "end": 2063, - "loc": { - "start": { - "line": 70, - "column": 6 - }, - "end": { - "line": 70, - "column": 10 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 2065, - "end": 2078, - "loc": { - "start": { - "line": 70, - "column": 12 - }, - "end": { - "line": 70, - "column": 25 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 2074, - "end": 2076, - "loc": { - "start": { - "line": 70, - "column": 21 - }, - "end": { - "line": 70, - "column": 23 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 2066, - "end": 2072, - "loc": { - "start": { - "line": 70, - "column": 13 - }, - "end": { - "line": 70, - "column": 19 - } - }, - "value": { - "raw": "/role/", - "cooked": "/role/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 2077, - "end": 2077, - "loc": { - "start": { - "line": 70, - "column": 24 - }, - "end": { - "line": 70, - "column": 24 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 2086, - "end": 2149, - "loc": { - "start": { - "line": 71, - "column": 6 - }, - "end": { - "line": 74, - "column": 7 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2086, - "end": 2099, - "loc": { - "start": { - "line": 71, - "column": 6 - }, - "end": { - "line": 71, - "column": 19 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 2101, - "end": 2149, - "loc": { - "start": { - "line": 71, - "column": 21 - }, - "end": { - "line": 74, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2111, - "end": 2125, - "loc": { - "start": { - "line": 72, - "column": 8 - }, - "end": { - "line": 72, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2111, - "end": 2115, - "loc": { - "start": { - "line": 72, - "column": 8 - }, - "end": { - "line": 72, - "column": 12 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 2117, - "end": 2125, - "loc": { - "start": { - "line": 72, - "column": 14 - }, - "end": { - "line": 72, - "column": 22 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 2135, - "end": 2140, - "loc": { - "start": { - "line": 73, - "column": 8 - }, - "end": { - "line": 73, - "column": 13 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 2135, - "end": 2140, - "loc": { - "start": { - "line": 73, - "column": 8 - }, - "end": { - "line": 73, - "column": 13 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 2135, - "end": 2140, - "loc": { - "start": { - "line": 73, - "column": 8 - }, - "end": { - "line": 73, - "column": 13 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 2157, - "end": 2274, - "loc": { - "start": { - "line": 75, - "column": 6 - }, - "end": { - "line": 78, - "column": 7 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2157, - "end": 2164, - "loc": { - "start": { - "line": 75, - "column": 6 - }, - "end": { - "line": 75, - "column": 13 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 2166, - "end": 2274, - "loc": { - "start": { - "line": 75, - "column": 15 - }, - "end": { - "line": 78, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2176, - "end": 2210, - "loc": { - "start": { - "line": 76, - "column": 8 - }, - "end": { - "line": 76, - "column": 42 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 2176, - "end": 2190, - "loc": { - "start": { - "line": 76, - "column": 8 - }, - "end": { - "line": 76, - "column": 22 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 2192, - "end": 2210, - "loc": { - "start": { - "line": 76, - "column": 24 - }, - "end": { - "line": 76, - "column": 42 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 2220, - "end": 2265, - "loc": { - "start": { - "line": 77, - "column": 8 - }, - "end": { - "line": 77, - "column": 53 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 2220, - "end": 2236, - "loc": { - "start": { - "line": 77, - "column": 8 - }, - "end": { - "line": 77, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 2238, - "end": 2265, - "loc": { - "start": { - "line": 77, - "column": 26 - }, - "end": { - "line": 77, - "column": 53 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2238, - "end": 2255, - "loc": { - "start": { - "line": 77, - "column": 26 - }, - "end": { - "line": 77, - "column": 43 - } - }, - "object": { - "type": "Identifier", - "start": 2238, - "end": 2244, - "loc": { - "start": { - "line": 77, - "column": 26 - }, - "end": { - "line": 77, - "column": 32 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 2245, - "end": 2255, - "loc": { - "start": { - "line": 77, - "column": 33 - }, - "end": { - "line": 77, - "column": 43 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2256, - "end": 2264, - "loc": { - "start": { - "line": 77, - "column": 44 - }, - "end": { - "line": 77, - "column": 52 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 2284, - "end": 2309, - "loc": { - "start": { - "line": 79, - "column": 8 - }, - "end": { - "line": 79, - "column": 33 - } - }, - "callee": { - "type": "Identifier", - "start": 2284, - "end": 2299, - "loc": { - "start": { - "line": 79, - "column": 8 - }, - "end": { - "line": 79, - "column": 23 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2300, - "end": 2308, - "loc": { - "start": { - "line": 79, - "column": 24 - }, - "end": { - "line": 79, - "column": 32 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 2316, - "end": 2318, - "loc": { - "start": { - "line": 80, - "column": 5 - }, - "end": { - "line": 80, - "column": 7 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2319, - "end": 2326, - "loc": { - "start": { - "line": 80, - "column": 8 - }, - "end": { - "line": 80, - "column": 15 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 2328, - "end": 2350, - "loc": { - "start": { - "line": 80, - "column": 17 - }, - "end": { - "line": 80, - "column": 39 - } - }, - "callee": { - "type": "Identifier", - "start": 2328, - "end": 2340, - "loc": { - "start": { - "line": 80, - "column": 17 - }, - "end": { - "line": 80, - "column": 29 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2341, - "end": 2349, - "loc": { - "start": { - "line": 80, - "column": 30 - }, - "end": { - "line": 80, - "column": 38 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 2356, - "end": 2376, - "loc": { - "start": { - "line": 82, - "column": 2 - }, - "end": { - "line": 82, - "column": 22 - } - }, - "expression": { - "type": "CallExpression", - "start": 2356, - "end": 2375, - "loc": { - "start": { - "line": 82, - "column": 2 - }, - "end": { - "line": 82, - "column": 21 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2356, - "end": 2365, - "loc": { - "start": { - "line": 82, - "column": 2 - }, - "end": { - "line": 82, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 2356, - "end": 2359, - "loc": { - "start": { - "line": 82, - "column": 2 - }, - "end": { - "line": 82, - "column": 5 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 2360, - "end": 2365, - "loc": { - "start": { - "line": 82, - "column": 6 - }, - "end": { - "line": 82, - "column": 11 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2366, - "end": 2374, - "loc": { - "start": { - "line": 82, - "column": 12 - }, - "end": { - "line": 82, - "column": 20 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 2379, - "end": 2389, - "loc": { - "start": { - "line": 83, - "column": 2 - }, - "end": { - "line": 83, - "column": 12 - } - }, - "expression": { - "type": "CallExpression", - "start": 2379, - "end": 2388, - "loc": { - "start": { - "line": 83, - "column": 2 - }, - "end": { - "line": 83, - "column": 11 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2379, - "end": 2386, - "loc": { - "start": { - "line": 83, - "column": 2 - }, - "end": { - "line": 83, - "column": 9 - } - }, - "object": { - "type": "Identifier", - "start": 2379, - "end": 2382, - "loc": { - "start": { - "line": 83, - "column": 2 - }, - "end": { - "line": 83, - "column": 5 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 2383, - "end": 2386, - "loc": { - "start": { - "line": 83, - "column": 6 - }, - "end": { - "line": 83, - "column": 9 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Update Signing Role payload\n * @typedef {Object} TemplateUpdateSigningRoleParams\n * @property {string} id - an ID of Actor (role)\n * @property {string} token - your auth token\n * @property {number} signing_order - signing order number\n ", - "start": 1076, - "end": 1321, - "loc": { - "start": { - "line": 40, - "column": 0 - }, - "end": { - "line": 46, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update Signing Role response data\n * @typedef {Object} TemplateUpdateSigningRoleResponse\n * @property {string} id - unique ID of Actor\n * @property {string} document_id - unique ID of Template\n * @property {number} signing_order - signing order number\n ", - "start": 1323, - "end": 1585, - "loc": { - "start": { - "line": 48, - "column": 0 - }, - "end": { - "line": 54, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Updates Signing Role with order of actor\n * @param {TemplateUpdateSigningRoleParams} data - update signing role payload\n * @param {function(err: ApiErrorResponse, res: TemplateUpdateSigningRoleResponse)} [callback] - error first node.js callback\n ", - "start": 1587, - "end": 1843, - "loc": { - "start": { - "line": 56, - "column": 0 - }, - "end": { - "line": 60, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Template methods\n ", - "start": 2394, - "end": 2421, - "loc": { - "start": { - "line": 86, - "column": 0 - }, - "end": { - "line": 88, - "column": 3 - } - } - } - ] - }, - { - "type": "Identifier", - "start": 2422, - "end": 17996, - "loc": { - "start": { - "line": 89, - "column": 0 - }, - "end": { - "line": 599, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 2428, - "end": 2436, - "loc": { - "start": { - "line": 89, - "column": 6 - }, - "end": { - "line": 89, - "column": 14 - }, - "identifierName": "Template" - }, - "name": "Template", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 2437, - "end": 17996, - "loc": { - "start": { - "line": 89, - "column": 15 - }, - "end": { - "line": 599, - "column": 1 - } - }, - "body": [ - { - "type": "ClassMethod", - "start": 3581, - "end": 4843, - "loc": { - "start": { - "line": 118, - "column": 2 - }, - "end": { - "line": 170, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3588, - "end": 3594, - "loc": { - "start": { - "line": 118, - "column": 9 - }, - "end": { - "line": 118, - "column": 15 - }, - "identifierName": "create" - }, - "name": "create" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 3596, - "end": 3702, - "loc": { - "start": { - "line": 118, - "column": 17 - }, - "end": { - "line": 123, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3602, - "end": 3613, - "loc": { - "start": { - "line": 119, - "column": 4 - }, - "end": { - "line": 119, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3602, - "end": 3613, - "loc": { - "start": { - "line": 119, - "column": 4 - }, - "end": { - "line": 119, - "column": 15 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "value": { - "type": "Identifier", - "start": 3602, - "end": 3613, - "loc": { - "start": { - "line": 119, - "column": 4 - }, - "end": { - "line": 119, - "column": 15 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3619, - "end": 3632, - "loc": { - "start": { - "line": 120, - "column": 4 - }, - "end": { - "line": 120, - "column": 17 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3619, - "end": 3632, - "loc": { - "start": { - "line": 120, - "column": 4 - }, - "end": { - "line": 120, - "column": 17 - }, - "identifierName": "document_name" - }, - "name": "document_name" - }, - "value": { - "type": "Identifier", - "start": 3619, - "end": 3632, - "loc": { - "start": { - "line": 120, - "column": 4 - }, - "end": { - "line": 120, - "column": 17 - }, - "identifierName": "document_name" - }, - "name": "document_name" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3638, - "end": 3686, - "loc": { - "start": { - "line": 121, - "column": 4 - }, - "end": { - "line": 121, - "column": 52 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3638, - "end": 3645, - "loc": { - "start": { - "line": 121, - "column": 4 - }, - "end": { - "line": 121, - "column": 11 - }, - "identifierName": "options" - }, - "name": "options" - }, - "value": { - "type": "AssignmentPattern", - "start": 3647, - "end": 3686, - "loc": { - "start": { - "line": 121, - "column": 13 - }, - "end": { - "line": 121, - "column": 52 - } - }, - "left": { - "type": "ObjectPattern", - "start": 3647, - "end": 3681, - "loc": { - "start": { - "line": 121, - "column": 13 - }, - "end": { - "line": 121, - "column": 47 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3649, - "end": 3679, - "loc": { - "start": { - "line": 121, - "column": 15 - }, - "end": { - "line": 121, - "column": 45 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3649, - "end": 3671, - "loc": { - "start": { - "line": 121, - "column": 15 - }, - "end": { - "line": 121, - "column": 37 - }, - "identifierName": "removeOriginalDocument" - }, - "name": "removeOriginalDocument" - }, - "value": { - "type": "AssignmentPattern", - "start": 3649, - "end": 3679, - "loc": { - "start": { - "line": 121, - "column": 15 - }, - "end": { - "line": 121, - "column": 45 - } - }, - "left": { - "type": "Identifier", - "start": 3649, - "end": 3671, - "loc": { - "start": { - "line": 121, - "column": 15 - }, - "end": { - "line": 121, - "column": 37 - }, - "identifierName": "removeOriginalDocument" - }, - "name": "removeOriginalDocument" - }, - "right": { - "type": "BooleanLiteral", - "start": 3674, - "end": 3679, - "loc": { - "start": { - "line": 121, - "column": 40 - }, - "end": { - "line": 121, - "column": 45 - } - }, - "value": false - } - }, - "extra": { - "shorthand": true - } - } - ] - }, - "right": { - "type": "ObjectExpression", - "start": 3684, - "end": 3686, - "loc": { - "start": { - "line": 121, - "column": 50 - }, - "end": { - "line": 121, - "column": 52 - } - }, - "properties": [] - } - } - }, - { - "type": "ObjectProperty", - "start": 3692, - "end": 3697, - "loc": { - "start": { - "line": 122, - "column": 4 - }, - "end": { - "line": 122, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3692, - "end": 3697, - "loc": { - "start": { - "line": 122, - "column": 4 - }, - "end": { - "line": 122, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 3692, - "end": 3697, - "loc": { - "start": { - "line": 122, - "column": 4 - }, - "end": { - "line": 122, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 3704, - "end": 3720, - "loc": { - "start": { - "line": 123, - "column": 5 - }, - "end": { - "line": 123, - "column": 21 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - } - ], - "body": { - "type": "BlockStatement", - "start": 3722, - "end": 4843, - "loc": { - "start": { - "line": 123, - "column": 23 - }, - "end": { - "line": 170, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 3728, - "end": 3809, - "loc": { - "start": { - "line": 124, - "column": 4 - }, - "end": { - "line": 127, - "column": 7 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3734, - "end": 3808, - "loc": { - "start": { - "line": 124, - "column": 10 - }, - "end": { - "line": 127, - "column": 6 - } - }, - "id": { - "type": "Identifier", - "start": 3734, - "end": 3742, - "loc": { - "start": { - "line": 124, - "column": 10 - }, - "end": { - "line": 124, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 3745, - "end": 3808, - "loc": { - "start": { - "line": 124, - "column": 21 - }, - "end": { - "line": 127, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3745, - "end": 3759, - "loc": { - "start": { - "line": 124, - "column": 21 - }, - "end": { - "line": 124, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 3745, - "end": 3749, - "loc": { - "start": { - "line": 124, - "column": 21 - }, - "end": { - "line": 124, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 3750, - "end": 3759, - "loc": { - "start": { - "line": 124, - "column": 26 - }, - "end": { - "line": 124, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 3760, - "end": 3807, - "loc": { - "start": { - "line": 124, - "column": 36 - }, - "end": { - "line": 127, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3768, - "end": 3779, - "loc": { - "start": { - "line": 125, - "column": 6 - }, - "end": { - "line": 125, - "column": 17 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3768, - "end": 3779, - "loc": { - "start": { - "line": 125, - "column": 6 - }, - "end": { - "line": 125, - "column": 17 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "value": { - "type": "Identifier", - "start": 3768, - "end": 3779, - "loc": { - "start": { - "line": 125, - "column": 6 - }, - "end": { - "line": 125, - "column": 17 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3787, - "end": 3800, - "loc": { - "start": { - "line": 126, - "column": 6 - }, - "end": { - "line": 126, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3787, - "end": 3800, - "loc": { - "start": { - "line": 126, - "column": 6 - }, - "end": { - "line": 126, - "column": 19 - }, - "identifierName": "document_name" - }, - "name": "document_name" - }, - "value": { - "type": "Identifier", - "start": 3787, - "end": 3800, - "loc": { - "start": { - "line": 126, - "column": 6 - }, - "end": { - "line": 126, - "column": 19 - }, - "identifierName": "document_name" - }, - "name": "document_name" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 3815, - "end": 4278, - "loc": { - "start": { - "line": 129, - "column": 4 - }, - "end": { - "line": 147, - "column": 6 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3821, - "end": 4277, - "loc": { - "start": { - "line": 129, - "column": 10 - }, - "end": { - "line": 147, - "column": 5 - } - }, - "id": { - "type": "Identifier", - "start": 3821, - "end": 3849, - "loc": { - "start": { - "line": 129, - "column": 10 - }, - "end": { - "line": 129, - "column": 38 - }, - "identifierName": "callbackWithDocumentDeletion" - }, - "name": "callbackWithDocumentDeletion" - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 3852, - "end": 4277, - "loc": { - "start": { - "line": 129, - "column": 41 - }, - "end": { - "line": 147, - "column": 5 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 3853, - "end": 3862, - "loc": { - "start": { - "line": 129, - "column": 42 - }, - "end": { - "line": 129, - "column": 51 - }, - "identifierName": "createErr" - }, - "name": "createErr" - }, - { - "type": "Identifier", - "start": 3864, - "end": 3873, - "loc": { - "start": { - "line": 129, - "column": 53 - }, - "end": { - "line": 129, - "column": 62 - }, - "identifierName": "createRes" - }, - "name": "createRes" - } - ], - "body": { - "type": "BlockStatement", - "start": 3878, - "end": 4277, - "loc": { - "start": { - "line": 129, - "column": 67 - }, - "end": { - "line": 147, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 3886, - "end": 4271, - "loc": { - "start": { - "line": 130, - "column": 6 - }, - "end": { - "line": 146, - "column": 7 - } - }, - "test": { - "type": "Identifier", - "start": 3890, - "end": 3899, - "loc": { - "start": { - "line": 130, - "column": 10 - }, - "end": { - "line": 130, - "column": 19 - }, - "identifierName": "createErr" - }, - "name": "createErr" - }, - "consequent": { - "type": "BlockStatement", - "start": 3901, - "end": 3963, - "loc": { - "start": { - "line": 130, - "column": 21 - }, - "end": { - "line": 133, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 3911, - "end": 3939, - "loc": { - "start": { - "line": 131, - "column": 8 - }, - "end": { - "line": 131, - "column": 36 - } - }, - "expression": { - "type": "CallExpression", - "start": 3911, - "end": 3938, - "loc": { - "start": { - "line": 131, - "column": 8 - }, - "end": { - "line": 131, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 3911, - "end": 3927, - "loc": { - "start": { - "line": 131, - "column": 8 - }, - "end": { - "line": 131, - "column": 24 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3928, - "end": 3937, - "loc": { - "start": { - "line": 131, - "column": 25 - }, - "end": { - "line": 131, - "column": 34 - }, - "identifierName": "createErr" - }, - "name": "createErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 3948, - "end": 3955, - "loc": { - "start": { - "line": 132, - "column": 8 - }, - "end": { - "line": 132, - "column": 15 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 3969, - "end": 4271, - "loc": { - "start": { - "line": 133, - "column": 13 - }, - "end": { - "line": 146, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 3979, - "end": 4263, - "loc": { - "start": { - "line": 134, - "column": 8 - }, - "end": { - "line": 145, - "column": 11 - } - }, - "expression": { - "type": "CallExpression", - "start": 3979, - "end": 4262, - "loc": { - "start": { - "line": 134, - "column": 8 - }, - "end": { - "line": 145, - "column": 10 - } - }, - "callee": { - "type": "Identifier", - "start": 3979, - "end": 3993, - "loc": { - "start": { - "line": 134, - "column": 8 - }, - "end": { - "line": 134, - "column": 22 - }, - "identifierName": "removeDocument" - }, - "name": "removeDocument" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 3994, - "end": 4049, - "loc": { - "start": { - "line": 134, - "column": 23 - }, - "end": { - "line": 137, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4006, - "end": 4021, - "loc": { - "start": { - "line": 135, - "column": 10 - }, - "end": { - "line": 135, - "column": 25 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4006, - "end": 4008, - "loc": { - "start": { - "line": 135, - "column": 10 - }, - "end": { - "line": 135, - "column": 12 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 4010, - "end": 4021, - "loc": { - "start": { - "line": 135, - "column": 14 - }, - "end": { - "line": 135, - "column": 25 - }, - "identifierName": "document_id" - }, - "name": "document_id" - } - }, - { - "type": "ObjectProperty", - "start": 4033, - "end": 4038, - "loc": { - "start": { - "line": 136, - "column": 10 - }, - "end": { - "line": 136, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 4033, - "end": 4038, - "loc": { - "start": { - "line": 136, - "column": 10 - }, - "end": { - "line": 136, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 4033, - "end": 4038, - "loc": { - "start": { - "line": 136, - "column": 10 - }, - "end": { - "line": 136, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "ArrowFunctionExpression", - "start": 4051, - "end": 4261, - "loc": { - "start": { - "line": 137, - "column": 11 - }, - "end": { - "line": 145, - "column": 9 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 4051, - "end": 4060, - "loc": { - "start": { - "line": 137, - "column": 11 - }, - "end": { - "line": 137, - "column": 20 - }, - "identifierName": "removeErr" - }, - "name": "removeErr" - } - ], - "body": { - "type": "BlockStatement", - "start": 4064, - "end": 4261, - "loc": { - "start": { - "line": 137, - "column": 24 - }, - "end": { - "line": 145, - "column": 9 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 4076, - "end": 4251, - "loc": { - "start": { - "line": 138, - "column": 10 - }, - "end": { - "line": 144, - "column": 11 - } - }, - "test": { - "type": "Identifier", - "start": 4080, - "end": 4089, - "loc": { - "start": { - "line": 138, - "column": 14 - }, - "end": { - "line": 138, - "column": 23 - }, - "identifierName": "removeErr" - }, - "name": "removeErr" - }, - "consequent": { - "type": "BlockStatement", - "start": 4091, - "end": 4165, - "loc": { - "start": { - "line": 138, - "column": 25 - }, - "end": { - "line": 141, - "column": 11 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 4105, - "end": 4133, - "loc": { - "start": { - "line": 139, - "column": 12 - }, - "end": { - "line": 139, - "column": 40 - } - }, - "expression": { - "type": "CallExpression", - "start": 4105, - "end": 4132, - "loc": { - "start": { - "line": 139, - "column": 12 - }, - "end": { - "line": 139, - "column": 39 - } - }, - "callee": { - "type": "Identifier", - "start": 4105, - "end": 4121, - "loc": { - "start": { - "line": 139, - "column": 12 - }, - "end": { - "line": 139, - "column": 28 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 4122, - "end": 4131, - "loc": { - "start": { - "line": 139, - "column": 29 - }, - "end": { - "line": 139, - "column": 38 - }, - "identifierName": "removeErr" - }, - "name": "removeErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 4146, - "end": 4153, - "loc": { - "start": { - "line": 140, - "column": 12 - }, - "end": { - "line": 140, - "column": 19 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 4171, - "end": 4251, - "loc": { - "start": { - "line": 141, - "column": 17 - }, - "end": { - "line": 144, - "column": 11 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 4185, - "end": 4219, - "loc": { - "start": { - "line": 142, - "column": 12 - }, - "end": { - "line": 142, - "column": 46 - } - }, - "expression": { - "type": "CallExpression", - "start": 4185, - "end": 4218, - "loc": { - "start": { - "line": 142, - "column": 12 - }, - "end": { - "line": 142, - "column": 45 - } - }, - "callee": { - "type": "Identifier", - "start": 4185, - "end": 4201, - "loc": { - "start": { - "line": 142, - "column": 12 - }, - "end": { - "line": 142, - "column": 28 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - }, - "arguments": [ - { - "type": "NullLiteral", - "start": 4202, - "end": 4206, - "loc": { - "start": { - "line": 142, - "column": 29 - }, - "end": { - "line": 142, - "column": 33 - } - } - }, - { - "type": "Identifier", - "start": 4208, - "end": 4217, - "loc": { - "start": { - "line": 142, - "column": 35 - }, - "end": { - "line": 142, - "column": 44 - }, - "identifierName": "createRes" - }, - "name": "createRes" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 4232, - "end": 4239, - "loc": { - "start": { - "line": 143, - "column": 12 - }, - "end": { - "line": 143, - "column": 19 - } - }, - "argument": null - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 4284, - "end": 4386, - "loc": { - "start": { - "line": 149, - "column": 4 - }, - "end": { - "line": 151, - "column": 25 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 4290, - "end": 4385, - "loc": { - "start": { - "line": 149, - "column": 10 - }, - "end": { - "line": 151, - "column": 24 - } - }, - "id": { - "type": "Identifier", - "start": 4290, - "end": 4298, - "loc": { - "start": { - "line": 149, - "column": 10 - }, - "end": { - "line": 149, - "column": 18 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "init": { - "type": "ConditionalExpression", - "start": 4301, - "end": 4385, - "loc": { - "start": { - "line": 149, - "column": 21 - }, - "end": { - "line": 151, - "column": 24 - } - }, - "test": { - "type": "Identifier", - "start": 4301, - "end": 4323, - "loc": { - "start": { - "line": 149, - "column": 21 - }, - "end": { - "line": 149, - "column": 43 - }, - "identifierName": "removeOriginalDocument" - }, - "name": "removeOriginalDocument" - }, - "consequent": { - "type": "Identifier", - "start": 4332, - "end": 4360, - "loc": { - "start": { - "line": 150, - "column": 8 - }, - "end": { - "line": 150, - "column": 36 - }, - "identifierName": "callbackWithDocumentDeletion" - }, - "name": "callbackWithDocumentDeletion" - }, - "alternate": { - "type": "Identifier", - "start": 4369, - "end": 4385, - "loc": { - "start": { - "line": 151, - "column": 8 - }, - "end": { - "line": 151, - "column": 24 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 4392, - "end": 4798, - "loc": { - "start": { - "line": 153, - "column": 4 - }, - "end": { - "line": 166, - "column": 51 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 4398, - "end": 4797, - "loc": { - "start": { - "line": 153, - "column": 10 - }, - "end": { - "line": 166, - "column": 50 - } - }, - "id": { - "type": "Identifier", - "start": 4398, - "end": 4401, - "loc": { - "start": { - "line": 153, - "column": 10 - }, - "end": { - "line": 153, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 4404, - "end": 4797, - "loc": { - "start": { - "line": 153, - "column": 16 - }, - "end": { - "line": 166, - "column": 50 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4404, - "end": 4756, - "loc": { - "start": { - "line": 153, - "column": 16 - }, - "end": { - "line": 166, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 4404, - "end": 4746, - "loc": { - "start": { - "line": 153, - "column": 16 - }, - "end": { - "line": 165, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4404, - "end": 4424, - "loc": { - "start": { - "line": 153, - "column": 16 - }, - "end": { - "line": 154, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 4404, - "end": 4409, - "loc": { - "start": { - "line": 153, - "column": 16 - }, - "end": { - "line": 153, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 4417, - "end": 4424, - "loc": { - "start": { - "line": 154, - "column": 7 - }, - "end": { - "line": 154, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 4425, - "end": 4718, - "loc": { - "start": { - "line": 154, - "column": 15 - }, - "end": { - "line": 165, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 4425, - "end": 4444, - "loc": { - "start": { - "line": 154, - "column": 15 - }, - "end": { - "line": 154, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 4445, - "end": 4717, - "loc": { - "start": { - "line": 154, - "column": 35 - }, - "end": { - "line": 165, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4455, - "end": 4469, - "loc": { - "start": { - "line": 155, - "column": 8 - }, - "end": { - "line": 155, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4455, - "end": 4461, - "loc": { - "start": { - "line": 155, - "column": 8 - }, - "end": { - "line": 155, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 4463, - "end": 4469, - "loc": { - "start": { - "line": 155, - "column": 16 - }, - "end": { - "line": 155, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 4479, - "end": 4496, - "loc": { - "start": { - "line": 156, - "column": 8 - }, - "end": { - "line": 156, - "column": 25 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4479, - "end": 4483, - "loc": { - "start": { - "line": 156, - "column": 8 - }, - "end": { - "line": 156, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 4485, - "end": 4496, - "loc": { - "start": { - "line": 156, - "column": 14 - }, - "end": { - "line": 156, - "column": 25 - } - }, - "extra": { - "rawValue": "/template", - "raw": "'/template'" - }, - "value": "/template" - } - }, - { - "type": "ObjectProperty", - "start": 4506, - "end": 4575, - "loc": { - "start": { - "line": 157, - "column": 8 - }, - "end": { - "line": 160, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4506, - "end": 4519, - "loc": { - "start": { - "line": 157, - "column": 8 - }, - "end": { - "line": 157, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 4521, - "end": 4575, - "loc": { - "start": { - "line": 157, - "column": 23 - }, - "end": { - "line": 160, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4533, - "end": 4547, - "loc": { - "start": { - "line": 158, - "column": 10 - }, - "end": { - "line": 158, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4533, - "end": 4537, - "loc": { - "start": { - "line": 158, - "column": 10 - }, - "end": { - "line": 158, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 4539, - "end": 4547, - "loc": { - "start": { - "line": 158, - "column": 16 - }, - "end": { - "line": 158, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 4559, - "end": 4564, - "loc": { - "start": { - "line": 159, - "column": 10 - }, - "end": { - "line": 159, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 4559, - "end": 4564, - "loc": { - "start": { - "line": 159, - "column": 10 - }, - "end": { - "line": 159, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 4559, - "end": 4564, - "loc": { - "start": { - "line": 159, - "column": 10 - }, - "end": { - "line": 159, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 4585, - "end": 4708, - "loc": { - "start": { - "line": 161, - "column": 8 - }, - "end": { - "line": 164, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4585, - "end": 4592, - "loc": { - "start": { - "line": 161, - "column": 8 - }, - "end": { - "line": 161, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 4594, - "end": 4708, - "loc": { - "start": { - "line": 161, - "column": 17 - }, - "end": { - "line": 164, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4606, - "end": 4640, - "loc": { - "start": { - "line": 162, - "column": 10 - }, - "end": { - "line": 162, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 4606, - "end": 4620, - "loc": { - "start": { - "line": 162, - "column": 10 - }, - "end": { - "line": 162, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 4622, - "end": 4640, - "loc": { - "start": { - "line": 162, - "column": 26 - }, - "end": { - "line": 162, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 4652, - "end": 4697, - "loc": { - "start": { - "line": 163, - "column": 10 - }, - "end": { - "line": 163, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 4652, - "end": 4668, - "loc": { - "start": { - "line": 163, - "column": 10 - }, - "end": { - "line": 163, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 4670, - "end": 4697, - "loc": { - "start": { - "line": 163, - "column": 28 - }, - "end": { - "line": 163, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4670, - "end": 4687, - "loc": { - "start": { - "line": 163, - "column": 28 - }, - "end": { - "line": 163, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 4670, - "end": 4676, - "loc": { - "start": { - "line": 163, - "column": 28 - }, - "end": { - "line": 163, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 4677, - "end": 4687, - "loc": { - "start": { - "line": 163, - "column": 35 - }, - "end": { - "line": 163, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 4688, - "end": 4696, - "loc": { - "start": { - "line": 163, - "column": 46 - }, - "end": { - "line": 163, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 4720, - "end": 4745, - "loc": { - "start": { - "line": 165, - "column": 10 - }, - "end": { - "line": 165, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 4720, - "end": 4735, - "loc": { - "start": { - "line": 165, - "column": 10 - }, - "end": { - "line": 165, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 4736, - "end": 4744, - "loc": { - "start": { - "line": 165, - "column": 26 - }, - "end": { - "line": 165, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 4754, - "end": 4756, - "loc": { - "start": { - "line": 166, - "column": 7 - }, - "end": { - "line": 166, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 4757, - "end": 4764, - "loc": { - "start": { - "line": 166, - "column": 10 - }, - "end": { - "line": 166, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 4766, - "end": 4796, - "loc": { - "start": { - "line": 166, - "column": 19 - }, - "end": { - "line": 166, - "column": 49 - } - }, - "callee": { - "type": "Identifier", - "start": 4766, - "end": 4778, - "loc": { - "start": { - "line": 166, - "column": 19 - }, - "end": { - "line": 166, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 4779, - "end": 4795, - "loc": { - "start": { - "line": 166, - "column": 32 - }, - "end": { - "line": 166, - "column": 48 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 4804, - "end": 4824, - "loc": { - "start": { - "line": 168, - "column": 4 - }, - "end": { - "line": 168, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 4804, - "end": 4823, - "loc": { - "start": { - "line": 168, - "column": 4 - }, - "end": { - "line": 168, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4804, - "end": 4813, - "loc": { - "start": { - "line": 168, - "column": 4 - }, - "end": { - "line": 168, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 4804, - "end": 4807, - "loc": { - "start": { - "line": 168, - "column": 4 - }, - "end": { - "line": 168, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 4808, - "end": 4813, - "loc": { - "start": { - "line": 168, - "column": 8 - }, - "end": { - "line": 168, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 4814, - "end": 4822, - "loc": { - "start": { - "line": 168, - "column": 14 - }, - "end": { - "line": 168, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 4829, - "end": 4839, - "loc": { - "start": { - "line": 169, - "column": 4 - }, - "end": { - "line": 169, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 4829, - "end": 4838, - "loc": { - "start": { - "line": 169, - "column": 4 - }, - "end": { - "line": 169, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4829, - "end": 4836, - "loc": { - "start": { - "line": 169, - "column": 4 - }, - "end": { - "line": 169, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 4829, - "end": 4832, - "loc": { - "start": { - "line": 169, - "column": 4 - }, - "end": { - "line": 169, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 4833, - "end": 4836, - "loc": { - "start": { - "line": 169, - "column": 8 - }, - "end": { - "line": 169, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document invite optional settings\n * @typedef {Object} TemplateCreateOptions\n * @property {boolean} [removeOriginalDocument=false] - if true original document will be removed\n ", - "start": 2442, - "end": 2635, - "loc": { - "start": { - "line": 91, - "column": 2 - }, - "end": { - "line": 95, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create template payload\n * @typedef {Object} TemplateCreateParams\n * @property {string} document_id - an id of original document\n * @property {string} document_name - a name of new template\n * @property {TemplateCreateOptions} options - create template optional settings\n * @property {string} token - your auth token\n ", - "start": 2639, - "end": 2980, - "loc": { - "start": { - "line": 97, - "column": 2 - }, - "end": { - "line": 104, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create template response data\n * @typedef {Object} TemplateCreateResponse\n * @property {string} id - an id of created template\n ", - "start": 2984, - "end": 3129, - "loc": { - "start": { - "line": 106, - "column": 2 - }, - "end": { - "line": 110, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates a template by copying an existing unfulfilled and not requested for sign document.\n * By default original document is not removed after template creation. To remove original document set `removeOriginalDocument` option to `true`.\n * @param {TemplateCreateParams} data - create template payload\n * @param {function(err: ApiErrorResponse, res: TemplateCreateResponse)} [originalCallback] - error first node.js callback\n ", - "start": 3133, - "end": 3578, - "loc": { - "start": { - "line": 112, - "column": 2 - }, - "end": { - "line": 117, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Copy template payload\n * @typedef {Object} TemplateDuplicateParams\n * @property {string} id - an id of original template\n * @property {string} name - a name of new document\n * @property {string} token - your auth token\n ", - "start": 4847, - "end": 5088, - "loc": { - "start": { - "line": 172, - "column": 2 - }, - "end": { - "line": 178, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Copy template response data\n * @typedef {Object} TemplateDuplicateResponse\n * @property {string} id - an id of created document\n * @property {string} name - a name of created document\n ", - "start": 5092, - "end": 5296, - "loc": { - "start": { - "line": 180, - "column": 2 - }, - "end": { - "line": 185, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates a new document by copying a template.\n * If a name is not supplied then document name will be set to the original template's name by default.\n * @param {TemplateDuplicateParams} data - duplicate template payload\n * @param {function(err: ApiErrorResponse, res: TemplateDuplicateResponse)} [callback] - error first node.js callback\n ", - "start": 5300, - "end": 5658, - "loc": { - "start": { - "line": 187, - "column": 2 - }, - "end": { - "line": 192, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 5661, - "end": 6309, - "loc": { - "start": { - "line": 193, - "column": 2 - }, - "end": { - "line": 220, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5668, - "end": 5677, - "loc": { - "start": { - "line": 193, - "column": 9 - }, - "end": { - "line": 193, - "column": 18 - }, - "identifierName": "duplicate" - }, - "name": "duplicate" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 5679, - "end": 5741, - "loc": { - "start": { - "line": 193, - "column": 20 - }, - "end": { - "line": 197, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5685, - "end": 5700, - "loc": { - "start": { - "line": 194, - "column": 4 - }, - "end": { - "line": 194, - "column": 19 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5685, - "end": 5687, - "loc": { - "start": { - "line": 194, - "column": 4 - }, - "end": { - "line": 194, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 5689, - "end": 5700, - "loc": { - "start": { - "line": 194, - "column": 8 - }, - "end": { - "line": 194, - "column": 19 - }, - "identifierName": "template_id" - }, - "name": "template_id" - } - }, - { - "type": "ObjectProperty", - "start": 5706, - "end": 5725, - "loc": { - "start": { - "line": 195, - "column": 4 - }, - "end": { - "line": 195, - "column": 23 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5706, - "end": 5710, - "loc": { - "start": { - "line": 195, - "column": 4 - }, - "end": { - "line": 195, - "column": 8 - }, - "identifierName": "name" - }, - "name": "name" - }, - "value": { - "type": "Identifier", - "start": 5712, - "end": 5725, - "loc": { - "start": { - "line": 195, - "column": 10 - }, - "end": { - "line": 195, - "column": 23 - }, - "identifierName": "document_name" - }, - "name": "document_name" - } - }, - { - "type": "ObjectProperty", - "start": 5731, - "end": 5736, - "loc": { - "start": { - "line": 196, - "column": 4 - }, - "end": { - "line": 196, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5731, - "end": 5736, - "loc": { - "start": { - "line": 196, - "column": 4 - }, - "end": { - "line": 196, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 5731, - "end": 5736, - "loc": { - "start": { - "line": 196, - "column": 4 - }, - "end": { - "line": 196, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 5743, - "end": 5751, - "loc": { - "start": { - "line": 197, - "column": 5 - }, - "end": { - "line": 197, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 5753, - "end": 6309, - "loc": { - "start": { - "line": 197, - "column": 15 - }, - "end": { - "line": 220, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 5759, - "end": 5840, - "loc": { - "start": { - "line": 198, - "column": 4 - }, - "end": { - "line": 201, - "column": 7 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 5765, - "end": 5839, - "loc": { - "start": { - "line": 198, - "column": 10 - }, - "end": { - "line": 201, - "column": 6 - } - }, - "id": { - "type": "Identifier", - "start": 5765, - "end": 5773, - "loc": { - "start": { - "line": 198, - "column": 10 - }, - "end": { - "line": 198, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 5776, - "end": 5839, - "loc": { - "start": { - "line": 198, - "column": 21 - }, - "end": { - "line": 201, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5776, - "end": 5790, - "loc": { - "start": { - "line": 198, - "column": 21 - }, - "end": { - "line": 198, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 5776, - "end": 5780, - "loc": { - "start": { - "line": 198, - "column": 21 - }, - "end": { - "line": 198, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 5781, - "end": 5790, - "loc": { - "start": { - "line": 198, - "column": 26 - }, - "end": { - "line": 198, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 5791, - "end": 5838, - "loc": { - "start": { - "line": 198, - "column": 36 - }, - "end": { - "line": 201, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5799, - "end": 5810, - "loc": { - "start": { - "line": 199, - "column": 6 - }, - "end": { - "line": 199, - "column": 17 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5799, - "end": 5810, - "loc": { - "start": { - "line": 199, - "column": 6 - }, - "end": { - "line": 199, - "column": 17 - }, - "identifierName": "template_id" - }, - "name": "template_id" - }, - "value": { - "type": "Identifier", - "start": 5799, - "end": 5810, - "loc": { - "start": { - "line": 199, - "column": 6 - }, - "end": { - "line": 199, - "column": 17 - }, - "identifierName": "template_id" - }, - "name": "template_id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 5818, - "end": 5831, - "loc": { - "start": { - "line": 200, - "column": 6 - }, - "end": { - "line": 200, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5818, - "end": 5831, - "loc": { - "start": { - "line": 200, - "column": 6 - }, - "end": { - "line": 200, - "column": 19 - }, - "identifierName": "document_name" - }, - "name": "document_name" - }, - "value": { - "type": "Identifier", - "start": 5818, - "end": 5831, - "loc": { - "start": { - "line": 200, - "column": 6 - }, - "end": { - "line": 200, - "column": 19 - }, - "identifierName": "document_name" - }, - "name": "document_name" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 5846, - "end": 6264, - "loc": { - "start": { - "line": 203, - "column": 4 - }, - "end": { - "line": 216, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 5852, - "end": 6263, - "loc": { - "start": { - "line": 203, - "column": 10 - }, - "end": { - "line": 216, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 5852, - "end": 5855, - "loc": { - "start": { - "line": 203, - "column": 10 - }, - "end": { - "line": 203, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 5858, - "end": 6263, - "loc": { - "start": { - "line": 203, - "column": 16 - }, - "end": { - "line": 216, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5858, - "end": 6230, - "loc": { - "start": { - "line": 203, - "column": 16 - }, - "end": { - "line": 216, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 5858, - "end": 6220, - "loc": { - "start": { - "line": 203, - "column": 16 - }, - "end": { - "line": 215, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5858, - "end": 5878, - "loc": { - "start": { - "line": 203, - "column": 16 - }, - "end": { - "line": 204, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 5858, - "end": 5863, - "loc": { - "start": { - "line": 203, - "column": 16 - }, - "end": { - "line": 203, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 5871, - "end": 5878, - "loc": { - "start": { - "line": 204, - "column": 7 - }, - "end": { - "line": 204, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 5879, - "end": 6192, - "loc": { - "start": { - "line": 204, - "column": 15 - }, - "end": { - "line": 215, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 5879, - "end": 5898, - "loc": { - "start": { - "line": 204, - "column": 15 - }, - "end": { - "line": 204, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 5899, - "end": 6191, - "loc": { - "start": { - "line": 204, - "column": 35 - }, - "end": { - "line": 215, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5909, - "end": 5923, - "loc": { - "start": { - "line": 205, - "column": 8 - }, - "end": { - "line": 205, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5909, - "end": 5915, - "loc": { - "start": { - "line": 205, - "column": 8 - }, - "end": { - "line": 205, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 5917, - "end": 5923, - "loc": { - "start": { - "line": 205, - "column": 16 - }, - "end": { - "line": 205, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 5933, - "end": 5970, - "loc": { - "start": { - "line": 206, - "column": 8 - }, - "end": { - "line": 206, - "column": 45 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5933, - "end": 5937, - "loc": { - "start": { - "line": 206, - "column": 8 - }, - "end": { - "line": 206, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 5939, - "end": 5970, - "loc": { - "start": { - "line": 206, - "column": 14 - }, - "end": { - "line": 206, - "column": 45 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 5952, - "end": 5963, - "loc": { - "start": { - "line": 206, - "column": 27 - }, - "end": { - "line": 206, - "column": 38 - }, - "identifierName": "template_id" - }, - "name": "template_id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 5940, - "end": 5950, - "loc": { - "start": { - "line": 206, - "column": 15 - }, - "end": { - "line": 206, - "column": 25 - } - }, - "value": { - "raw": "/template/", - "cooked": "/template/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 5964, - "end": 5969, - "loc": { - "start": { - "line": 206, - "column": 39 - }, - "end": { - "line": 206, - "column": 44 - } - }, - "value": { - "raw": "/copy", - "cooked": "/copy" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 5980, - "end": 6049, - "loc": { - "start": { - "line": 207, - "column": 8 - }, - "end": { - "line": 210, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5980, - "end": 5993, - "loc": { - "start": { - "line": 207, - "column": 8 - }, - "end": { - "line": 207, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 5995, - "end": 6049, - "loc": { - "start": { - "line": 207, - "column": 23 - }, - "end": { - "line": 210, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 6007, - "end": 6021, - "loc": { - "start": { - "line": 208, - "column": 10 - }, - "end": { - "line": 208, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6007, - "end": 6011, - "loc": { - "start": { - "line": 208, - "column": 10 - }, - "end": { - "line": 208, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 6013, - "end": 6021, - "loc": { - "start": { - "line": 208, - "column": 16 - }, - "end": { - "line": 208, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 6033, - "end": 6038, - "loc": { - "start": { - "line": 209, - "column": 10 - }, - "end": { - "line": 209, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 6033, - "end": 6038, - "loc": { - "start": { - "line": 209, - "column": 10 - }, - "end": { - "line": 209, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 6033, - "end": 6038, - "loc": { - "start": { - "line": 209, - "column": 10 - }, - "end": { - "line": 209, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 6059, - "end": 6182, - "loc": { - "start": { - "line": 211, - "column": 8 - }, - "end": { - "line": 214, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6059, - "end": 6066, - "loc": { - "start": { - "line": 211, - "column": 8 - }, - "end": { - "line": 211, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 6068, - "end": 6182, - "loc": { - "start": { - "line": 211, - "column": 17 - }, - "end": { - "line": 214, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 6080, - "end": 6114, - "loc": { - "start": { - "line": 212, - "column": 10 - }, - "end": { - "line": 212, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 6080, - "end": 6094, - "loc": { - "start": { - "line": 212, - "column": 10 - }, - "end": { - "line": 212, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 6096, - "end": 6114, - "loc": { - "start": { - "line": 212, - "column": 26 - }, - "end": { - "line": 212, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 6126, - "end": 6171, - "loc": { - "start": { - "line": 213, - "column": 10 - }, - "end": { - "line": 213, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 6126, - "end": 6142, - "loc": { - "start": { - "line": 213, - "column": 10 - }, - "end": { - "line": 213, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 6144, - "end": 6171, - "loc": { - "start": { - "line": 213, - "column": 28 - }, - "end": { - "line": 213, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6144, - "end": 6161, - "loc": { - "start": { - "line": 213, - "column": 28 - }, - "end": { - "line": 213, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 6144, - "end": 6150, - "loc": { - "start": { - "line": 213, - "column": 28 - }, - "end": { - "line": 213, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 6151, - "end": 6161, - "loc": { - "start": { - "line": 213, - "column": 35 - }, - "end": { - "line": 213, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 6162, - "end": 6170, - "loc": { - "start": { - "line": 213, - "column": 46 - }, - "end": { - "line": 213, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 6194, - "end": 6219, - "loc": { - "start": { - "line": 215, - "column": 10 - }, - "end": { - "line": 215, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 6194, - "end": 6209, - "loc": { - "start": { - "line": 215, - "column": 10 - }, - "end": { - "line": 215, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 6210, - "end": 6218, - "loc": { - "start": { - "line": 215, - "column": 26 - }, - "end": { - "line": 215, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 6228, - "end": 6230, - "loc": { - "start": { - "line": 216, - "column": 7 - }, - "end": { - "line": 216, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 6231, - "end": 6238, - "loc": { - "start": { - "line": 216, - "column": 10 - }, - "end": { - "line": 216, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 6240, - "end": 6262, - "loc": { - "start": { - "line": 216, - "column": 19 - }, - "end": { - "line": 216, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 6240, - "end": 6252, - "loc": { - "start": { - "line": 216, - "column": 19 - }, - "end": { - "line": 216, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 6253, - "end": 6261, - "loc": { - "start": { - "line": 216, - "column": 32 - }, - "end": { - "line": 216, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 6270, - "end": 6290, - "loc": { - "start": { - "line": 218, - "column": 4 - }, - "end": { - "line": 218, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 6270, - "end": 6289, - "loc": { - "start": { - "line": 218, - "column": 4 - }, - "end": { - "line": 218, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6270, - "end": 6279, - "loc": { - "start": { - "line": 218, - "column": 4 - }, - "end": { - "line": 218, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 6270, - "end": 6273, - "loc": { - "start": { - "line": 218, - "column": 4 - }, - "end": { - "line": 218, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 6274, - "end": 6279, - "loc": { - "start": { - "line": 218, - "column": 8 - }, - "end": { - "line": 218, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 6280, - "end": 6288, - "loc": { - "start": { - "line": 218, - "column": 14 - }, - "end": { - "line": 218, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 6295, - "end": 6305, - "loc": { - "start": { - "line": 219, - "column": 4 - }, - "end": { - "line": 219, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 6295, - "end": 6304, - "loc": { - "start": { - "line": 219, - "column": 4 - }, - "end": { - "line": 219, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6295, - "end": 6302, - "loc": { - "start": { - "line": 219, - "column": 4 - }, - "end": { - "line": 219, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 6295, - "end": 6298, - "loc": { - "start": { - "line": 219, - "column": 4 - }, - "end": { - "line": 219, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 6299, - "end": 6302, - "loc": { - "start": { - "line": 219, - "column": 8 - }, - "end": { - "line": 219, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Copy template payload\n * @typedef {Object} TemplateDuplicateParams\n * @property {string} id - an id of original template\n * @property {string} name - a name of new document\n * @property {string} token - your auth token\n ", - "start": 4847, - "end": 5088, - "loc": { - "start": { - "line": 172, - "column": 2 - }, - "end": { - "line": 178, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Copy template response data\n * @typedef {Object} TemplateDuplicateResponse\n * @property {string} id - an id of created document\n * @property {string} name - a name of created document\n ", - "start": 5092, - "end": 5296, - "loc": { - "start": { - "line": 180, - "column": 2 - }, - "end": { - "line": 185, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates a new document by copying a template.\n * If a name is not supplied then document name will be set to the original template's name by default.\n * @param {TemplateDuplicateParams} data - duplicate template payload\n * @param {function(err: ApiErrorResponse, res: TemplateDuplicateResponse)} [callback] - error first node.js callback\n ", - "start": 5300, - "end": 5658, - "loc": { - "start": { - "line": 187, - "column": 2 - }, - "end": { - "line": 192, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Create invite with template payload\n * @typedef {DocumentInviteParams} TemplateInviteParams\n ", - "start": 6313, - "end": 6421, - "loc": { - "start": { - "line": 222, - "column": 2 - }, - "end": { - "line": 225, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create invite with template response data\n * @typedef {DocumentInviteResponse} TemplateInviteResponse\n ", - "start": 6425, - "end": 6543, - "loc": { - "start": { - "line": 227, - "column": 2 - }, - "end": { - "line": 230, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates an invite to sign a template.\n * You can create a simple free form invite(s) or a role-based invite(s).\n * The method copies a template into document and creates an invite using created document.\n * @param {TemplateInviteParams} data - create template invite payload\n * @param {function(err: ApiErrorResponse, res: TemplateInviteResponse)} [callback] - error first node.js callback\n ", - "start": 6547, - "end": 6959, - "loc": { - "start": { - "line": 232, - "column": 2 - }, - "end": { - "line": 238, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 6962, - "end": 8372, - "loc": { - "start": { - "line": 239, - "column": 2 - }, - "end": { - "line": 295, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 6969, - "end": 6975, - "loc": { - "start": { - "line": 239, - "column": 9 - }, - "end": { - "line": 239, - "column": 15 - }, - "identifierName": "invite" - }, - "name": "invite" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 6977, - "end": 7024, - "loc": { - "start": { - "line": 239, - "column": 17 - }, - "end": { - "line": 244, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 6983, - "end": 6985, - "loc": { - "start": { - "line": 240, - "column": 4 - }, - "end": { - "line": 240, - "column": 6 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 6983, - "end": 6985, - "loc": { - "start": { - "line": 240, - "column": 4 - }, - "end": { - "line": 240, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 6983, - "end": 6985, - "loc": { - "start": { - "line": 240, - "column": 4 - }, - "end": { - "line": 240, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 6991, - "end": 6995, - "loc": { - "start": { - "line": 241, - "column": 4 - }, - "end": { - "line": 241, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 6991, - "end": 6995, - "loc": { - "start": { - "line": 241, - "column": 4 - }, - "end": { - "line": 241, - "column": 8 - }, - "identifierName": "data" - }, - "name": "data" - }, - "value": { - "type": "Identifier", - "start": 6991, - "end": 6995, - "loc": { - "start": { - "line": 241, - "column": 4 - }, - "end": { - "line": 241, - "column": 8 - }, - "identifierName": "data" - }, - "name": "data" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 7001, - "end": 7008, - "loc": { - "start": { - "line": 242, - "column": 4 - }, - "end": { - "line": 242, - "column": 11 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7001, - "end": 7008, - "loc": { - "start": { - "line": 242, - "column": 4 - }, - "end": { - "line": 242, - "column": 11 - }, - "identifierName": "options" - }, - "name": "options" - }, - "value": { - "type": "Identifier", - "start": 7001, - "end": 7008, - "loc": { - "start": { - "line": 242, - "column": 4 - }, - "end": { - "line": 242, - "column": 11 - }, - "identifierName": "options" - }, - "name": "options" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 7014, - "end": 7019, - "loc": { - "start": { - "line": 243, - "column": 4 - }, - "end": { - "line": 243, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7014, - "end": 7019, - "loc": { - "start": { - "line": 243, - "column": 4 - }, - "end": { - "line": 243, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 7014, - "end": 7019, - "loc": { - "start": { - "line": 243, - "column": 4 - }, - "end": { - "line": 243, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 7026, - "end": 7034, - "loc": { - "start": { - "line": 244, - "column": 5 - }, - "end": { - "line": 244, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 7036, - "end": 8372, - "loc": { - "start": { - "line": 244, - "column": 15 - }, - "end": { - "line": 295, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 7042, - "end": 8368, - "loc": { - "start": { - "line": 245, - "column": 4 - }, - "end": { - "line": 294, - "column": 7 - } - }, - "expression": { - "type": "CallExpression", - "start": 7042, - "end": 8367, - "loc": { - "start": { - "line": 245, - "column": 4 - }, - "end": { - "line": 294, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 7042, - "end": 7060, - "loc": { - "start": { - "line": 245, - "column": 4 - }, - "end": { - "line": 245, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 7042, - "end": 7050, - "loc": { - "start": { - "line": 245, - "column": 4 - }, - "end": { - "line": 245, - "column": 12 - }, - "identifierName": "Template" - }, - "name": "Template" - }, - "property": { - "type": "Identifier", - "start": 7051, - "end": 7060, - "loc": { - "start": { - "line": 245, - "column": 13 - }, - "end": { - "line": 245, - "column": 22 - }, - "identifierName": "duplicate" - }, - "name": "duplicate" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 7061, - "end": 7091, - "loc": { - "start": { - "line": 245, - "column": 23 - }, - "end": { - "line": 248, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 7069, - "end": 7071, - "loc": { - "start": { - "line": 246, - "column": 6 - }, - "end": { - "line": 246, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7069, - "end": 7071, - "loc": { - "start": { - "line": 246, - "column": 6 - }, - "end": { - "line": 246, - "column": 8 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 7069, - "end": 7071, - "loc": { - "start": { - "line": 246, - "column": 6 - }, - "end": { - "line": 246, - "column": 8 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 7079, - "end": 7084, - "loc": { - "start": { - "line": 247, - "column": 6 - }, - "end": { - "line": 247, - "column": 11 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7079, - "end": 7084, - "loc": { - "start": { - "line": 247, - "column": 6 - }, - "end": { - "line": 247, - "column": 11 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 7079, - "end": 7084, - "loc": { - "start": { - "line": 247, - "column": 6 - }, - "end": { - "line": 247, - "column": 11 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "ArrowFunctionExpression", - "start": 7093, - "end": 8366, - "loc": { - "start": { - "line": 248, - "column": 7 - }, - "end": { - "line": 294, - "column": 5 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 7094, - "end": 7101, - "loc": { - "start": { - "line": 248, - "column": 8 - }, - "end": { - "line": 248, - "column": 15 - }, - "identifierName": "copyErr" - }, - "name": "copyErr" - }, - { - "type": "Identifier", - "start": 7103, - "end": 7110, - "loc": { - "start": { - "line": 248, - "column": 17 - }, - "end": { - "line": 248, - "column": 24 - }, - "identifierName": "copyRes" - }, - "name": "copyRes" - } - ], - "body": { - "type": "BlockStatement", - "start": 7115, - "end": 8366, - "loc": { - "start": { - "line": 248, - "column": 29 - }, - "end": { - "line": 294, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 7123, - "end": 8360, - "loc": { - "start": { - "line": 249, - "column": 6 - }, - "end": { - "line": 293, - "column": 7 - } - }, - "test": { - "type": "Identifier", - "start": 7127, - "end": 7134, - "loc": { - "start": { - "line": 249, - "column": 10 - }, - "end": { - "line": 249, - "column": 17 - }, - "identifierName": "copyErr" - }, - "name": "copyErr" - }, - "consequent": { - "type": "BlockStatement", - "start": 7136, - "end": 7188, - "loc": { - "start": { - "line": 249, - "column": 19 - }, - "end": { - "line": 252, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 7146, - "end": 7164, - "loc": { - "start": { - "line": 250, - "column": 8 - }, - "end": { - "line": 250, - "column": 26 - } - }, - "expression": { - "type": "CallExpression", - "start": 7146, - "end": 7163, - "loc": { - "start": { - "line": 250, - "column": 8 - }, - "end": { - "line": 250, - "column": 25 - } - }, - "callee": { - "type": "Identifier", - "start": 7146, - "end": 7154, - "loc": { - "start": { - "line": 250, - "column": 8 - }, - "end": { - "line": 250, - "column": 16 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 7155, - "end": 7162, - "loc": { - "start": { - "line": 250, - "column": 17 - }, - "end": { - "line": 250, - "column": 24 - }, - "identifierName": "copyErr" - }, - "name": "copyErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 7173, - "end": 7180, - "loc": { - "start": { - "line": 251, - "column": 8 - }, - "end": { - "line": 251, - "column": 15 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "IfStatement", - "start": 7194, - "end": 8360, - "loc": { - "start": { - "line": 252, - "column": 13 - }, - "end": { - "line": 293, - "column": 7 - } - }, - "test": { - "type": "CallExpression", - "start": 7198, - "end": 7220, - "loc": { - "start": { - "line": 252, - "column": 17 - }, - "end": { - "line": 252, - "column": 39 - } - }, - "callee": { - "type": "MemberExpression", - "start": 7198, - "end": 7211, - "loc": { - "start": { - "line": 252, - "column": 17 - }, - "end": { - "line": 252, - "column": 30 - } - }, - "object": { - "type": "Identifier", - "start": 7198, - "end": 7203, - "loc": { - "start": { - "line": 252, - "column": 17 - }, - "end": { - "line": 252, - "column": 22 - }, - "identifierName": "Array" - }, - "name": "Array" - }, - "property": { - "type": "Identifier", - "start": 7204, - "end": 7211, - "loc": { - "start": { - "line": 252, - "column": 23 - }, - "end": { - "line": 252, - "column": 30 - }, - "identifierName": "isArray" - }, - "name": "isArray" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 7212, - "end": 7219, - "loc": { - "start": { - "line": 252, - "column": 31 - }, - "end": { - "line": 252, - "column": 38 - } - }, - "object": { - "type": "Identifier", - "start": 7212, - "end": 7216, - "loc": { - "start": { - "line": 252, - "column": 31 - }, - "end": { - "line": 252, - "column": 35 - }, - "identifierName": "data" - }, - "name": "data" - }, - "property": { - "type": "Identifier", - "start": 7217, - "end": 7219, - "loc": { - "start": { - "line": 252, - "column": 36 - }, - "end": { - "line": 252, - "column": 38 - }, - "identifierName": "to" - }, - "name": "to" - }, - "computed": false - } - ] - }, - "consequent": { - "type": "BlockStatement", - "start": 7222, - "end": 8078, - "loc": { - "start": { - "line": 252, - "column": 41 - }, - "end": { - "line": 283, - "column": 7 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 7232, - "end": 7267, - "loc": { - "start": { - "line": 253, - "column": 8 - }, - "end": { - "line": 253, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7238, - "end": 7266, - "loc": { - "start": { - "line": 253, - "column": 14 - }, - "end": { - "line": 253, - "column": 42 - } - }, - "id": { - "type": "ObjectPattern", - "start": 7238, - "end": 7256, - "loc": { - "start": { - "line": 253, - "column": 14 - }, - "end": { - "line": 253, - "column": 32 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 7240, - "end": 7254, - "loc": { - "start": { - "line": 253, - "column": 16 - }, - "end": { - "line": 253, - "column": 30 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7240, - "end": 7242, - "loc": { - "start": { - "line": 253, - "column": 16 - }, - "end": { - "line": 253, - "column": 18 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 7244, - "end": 7254, - "loc": { - "start": { - "line": 253, - "column": 20 - }, - "end": { - "line": 253, - "column": 30 - }, - "identifierName": "documentId" - }, - "name": "documentId" - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 7259, - "end": 7266, - "loc": { - "start": { - "line": 253, - "column": 35 - }, - "end": { - "line": 253, - "column": 42 - }, - "identifierName": "copyRes" - }, - "name": "copyRes" - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 7277, - "end": 8070, - "loc": { - "start": { - "line": 255, - "column": 8 - }, - "end": { - "line": 282, - "column": 11 - } - }, - "expression": { - "type": "CallExpression", - "start": 7277, - "end": 8069, - "loc": { - "start": { - "line": 255, - "column": 8 - }, - "end": { - "line": 282, - "column": 10 - } - }, - "callee": { - "type": "Identifier", - "start": 7277, - "end": 7295, - "loc": { - "start": { - "line": 255, - "column": 8 - }, - "end": { - "line": 255, - "column": 26 - }, - "identifierName": "getDocumentDetails" - }, - "name": "getDocumentDetails" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 7296, - "end": 7350, - "loc": { - "start": { - "line": 255, - "column": 27 - }, - "end": { - "line": 258, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 7308, - "end": 7322, - "loc": { - "start": { - "line": 256, - "column": 10 - }, - "end": { - "line": 256, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7308, - "end": 7310, - "loc": { - "start": { - "line": 256, - "column": 10 - }, - "end": { - "line": 256, - "column": 12 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 7312, - "end": 7322, - "loc": { - "start": { - "line": 256, - "column": 14 - }, - "end": { - "line": 256, - "column": 24 - }, - "identifierName": "documentId" - }, - "name": "documentId" - } - }, - { - "type": "ObjectProperty", - "start": 7334, - "end": 7339, - "loc": { - "start": { - "line": 257, - "column": 10 - }, - "end": { - "line": 257, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7334, - "end": 7339, - "loc": { - "start": { - "line": 257, - "column": 10 - }, - "end": { - "line": 257, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 7334, - "end": 7339, - "loc": { - "start": { - "line": 257, - "column": 10 - }, - "end": { - "line": 257, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "ArrowFunctionExpression", - "start": 7352, - "end": 8068, - "loc": { - "start": { - "line": 258, - "column": 11 - }, - "end": { - "line": 282, - "column": 9 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 7353, - "end": 7362, - "loc": { - "start": { - "line": 258, - "column": 12 - }, - "end": { - "line": 258, - "column": 21 - }, - "identifierName": "detailErr" - }, - "name": "detailErr" - }, - { - "type": "Identifier", - "start": 7364, - "end": 7373, - "loc": { - "start": { - "line": 258, - "column": 23 - }, - "end": { - "line": 258, - "column": 32 - }, - "identifierName": "detailRes" - }, - "name": "detailRes" - } - ], - "body": { - "type": "BlockStatement", - "start": 7378, - "end": 8068, - "loc": { - "start": { - "line": 258, - "column": 37 - }, - "end": { - "line": 282, - "column": 9 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 7390, - "end": 8058, - "loc": { - "start": { - "line": 259, - "column": 10 - }, - "end": { - "line": 281, - "column": 11 - } - }, - "test": { - "type": "Identifier", - "start": 7394, - "end": 7403, - "loc": { - "start": { - "line": 259, - "column": 14 - }, - "end": { - "line": 259, - "column": 23 - }, - "identifierName": "detailErr" - }, - "name": "detailErr" - }, - "consequent": { - "type": "BlockStatement", - "start": 7405, - "end": 7471, - "loc": { - "start": { - "line": 259, - "column": 25 - }, - "end": { - "line": 262, - "column": 11 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 7419, - "end": 7439, - "loc": { - "start": { - "line": 260, - "column": 12 - }, - "end": { - "line": 260, - "column": 32 - } - }, - "expression": { - "type": "CallExpression", - "start": 7419, - "end": 7438, - "loc": { - "start": { - "line": 260, - "column": 12 - }, - "end": { - "line": 260, - "column": 31 - } - }, - "callee": { - "type": "Identifier", - "start": 7419, - "end": 7427, - "loc": { - "start": { - "line": 260, - "column": 12 - }, - "end": { - "line": 260, - "column": 20 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 7428, - "end": 7437, - "loc": { - "start": { - "line": 260, - "column": 21 - }, - "end": { - "line": 260, - "column": 30 - }, - "identifierName": "detailErr" - }, - "name": "detailErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 7452, - "end": 7459, - "loc": { - "start": { - "line": 261, - "column": 12 - }, - "end": { - "line": 261, - "column": 19 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 7477, - "end": 8058, - "loc": { - "start": { - "line": 262, - "column": 17 - }, - "end": { - "line": 281, - "column": 11 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 7491, - "end": 7563, - "loc": { - "start": { - "line": 263, - "column": 12 - }, - "end": { - "line": 263, - "column": 84 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7497, - "end": 7562, - "loc": { - "start": { - "line": 263, - "column": 18 - }, - "end": { - "line": 263, - "column": 83 - } - }, - "id": { - "type": "Identifier", - "start": 7497, - "end": 7507, - "loc": { - "start": { - "line": 263, - "column": 18 - }, - "end": { - "line": 263, - "column": 28 - }, - "identifierName": "inviteData" - }, - "name": "inviteData" - }, - "init": { - "type": "CallExpression", - "start": 7510, - "end": 7562, - "loc": { - "start": { - "line": 263, - "column": 31 - }, - "end": { - "line": 263, - "column": 83 - } - }, - "callee": { - "type": "MemberExpression", - "start": 7510, - "end": 7523, - "loc": { - "start": { - "line": 263, - "column": 31 - }, - "end": { - "line": 263, - "column": 44 - } - }, - "object": { - "type": "Identifier", - "start": 7510, - "end": 7516, - "loc": { - "start": { - "line": 263, - "column": 31 - }, - "end": { - "line": 263, - "column": 37 - }, - "identifierName": "Object" - }, - "name": "Object" - }, - "property": { - "type": "Identifier", - "start": 7517, - "end": 7523, - "loc": { - "start": { - "line": 263, - "column": 38 - }, - "end": { - "line": 263, - "column": 44 - }, - "identifierName": "assign" - }, - "name": "assign" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 7524, - "end": 7526, - "loc": { - "start": { - "line": 263, - "column": 45 - }, - "end": { - "line": 263, - "column": 47 - } - }, - "properties": [] - }, - { - "type": "Identifier", - "start": 7528, - "end": 7532, - "loc": { - "start": { - "line": 263, - "column": 49 - }, - "end": { - "line": 263, - "column": 53 - }, - "identifierName": "data" - }, - "name": "data" - }, - { - "type": "ObjectExpression", - "start": 7534, - "end": 7561, - "loc": { - "start": { - "line": 263, - "column": 55 - }, - "end": { - "line": 263, - "column": 82 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 7536, - "end": 7559, - "loc": { - "start": { - "line": 263, - "column": 57 - }, - "end": { - "line": 263, - "column": 80 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7536, - "end": 7547, - "loc": { - "start": { - "line": 263, - "column": 57 - }, - "end": { - "line": 263, - "column": 68 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "value": { - "type": "Identifier", - "start": 7549, - "end": 7559, - "loc": { - "start": { - "line": 263, - "column": 70 - }, - "end": { - "line": 263, - "column": 80 - }, - "identifierName": "documentId" - }, - "name": "documentId" - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 7576, - "end": 7604, - "loc": { - "start": { - "line": 264, - "column": 12 - }, - "end": { - "line": 264, - "column": 40 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7582, - "end": 7603, - "loc": { - "start": { - "line": 264, - "column": 18 - }, - "end": { - "line": 264, - "column": 39 - } - }, - "id": { - "type": "ObjectPattern", - "start": 7582, - "end": 7591, - "loc": { - "start": { - "line": 264, - "column": 18 - }, - "end": { - "line": 264, - "column": 27 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 7584, - "end": 7589, - "loc": { - "start": { - "line": 264, - "column": 20 - }, - "end": { - "line": 264, - "column": 25 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7584, - "end": 7589, - "loc": { - "start": { - "line": 264, - "column": 20 - }, - "end": { - "line": 264, - "column": 25 - }, - "identifierName": "roles" - }, - "name": "roles" - }, - "value": { - "type": "Identifier", - "start": 7584, - "end": 7589, - "loc": { - "start": { - "line": 264, - "column": 20 - }, - "end": { - "line": 264, - "column": 25 - }, - "identifierName": "roles" - }, - "name": "roles" - }, - "extra": { - "shorthand": true - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 7594, - "end": 7603, - "loc": { - "start": { - "line": 264, - "column": 30 - }, - "end": { - "line": 264, - "column": 39 - }, - "identifierName": "detailRes" - }, - "name": "detailRes" - } - } - ], - "kind": "const" - }, - { - "type": "ForOfStatement", - "start": 7618, - "end": 7880, - "loc": { - "start": { - "line": 266, - "column": 12 - }, - "end": { - "line": 273, - "column": 13 - } - }, - "left": { - "type": "VariableDeclaration", - "start": 7623, - "end": 7635, - "loc": { - "start": { - "line": 266, - "column": 17 - }, - "end": { - "line": 266, - "column": 29 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7629, - "end": 7635, - "loc": { - "start": { - "line": 266, - "column": 23 - }, - "end": { - "line": 266, - "column": 29 - } - }, - "id": { - "type": "Identifier", - "start": 7629, - "end": 7635, - "loc": { - "start": { - "line": 266, - "column": 23 - }, - "end": { - "line": 266, - "column": 29 - }, - "identifierName": "signer" - }, - "name": "signer" - }, - "init": null - } - ], - "kind": "const" - }, - "right": { - "type": "MemberExpression", - "start": 7639, - "end": 7652, - "loc": { - "start": { - "line": 266, - "column": 33 - }, - "end": { - "line": 266, - "column": 46 - } - }, - "object": { - "type": "Identifier", - "start": 7639, - "end": 7649, - "loc": { - "start": { - "line": 266, - "column": 33 - }, - "end": { - "line": 266, - "column": 43 - }, - "identifierName": "inviteData" - }, - "name": "inviteData" - }, - "property": { - "type": "Identifier", - "start": 7650, - "end": 7652, - "loc": { - "start": { - "line": 266, - "column": 44 - }, - "end": { - "line": 266, - "column": 46 - }, - "identifierName": "to" - }, - "name": "to" - }, - "computed": false - }, - "body": { - "type": "BlockStatement", - "start": 7654, - "end": 7880, - "loc": { - "start": { - "line": 266, - "column": 48 - }, - "end": { - "line": 273, - "column": 13 - } - }, - "body": [ - { - "type": "TryStatement", - "start": 7670, - "end": 7866, - "loc": { - "start": { - "line": 267, - "column": 14 - }, - "end": { - "line": 272, - "column": 15 - } - }, - "block": { - "type": "BlockStatement", - "start": 7674, - "end": 7781, - "loc": { - "start": { - "line": 267, - "column": 18 - }, - "end": { - "line": 269, - "column": 15 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 7692, - "end": 7765, - "loc": { - "start": { - "line": 268, - "column": 16 - }, - "end": { - "line": 268, - "column": 89 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 7692, - "end": 7764, - "loc": { - "start": { - "line": 268, - "column": 16 - }, - "end": { - "line": 268, - "column": 88 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 7692, - "end": 7706, - "loc": { - "start": { - "line": 268, - "column": 16 - }, - "end": { - "line": 268, - "column": 30 - } - }, - "object": { - "type": "Identifier", - "start": 7692, - "end": 7698, - "loc": { - "start": { - "line": 268, - "column": 16 - }, - "end": { - "line": 268, - "column": 22 - }, - "identifierName": "signer" - }, - "name": "signer" - }, - "property": { - "type": "Identifier", - "start": 7699, - "end": 7706, - "loc": { - "start": { - "line": 268, - "column": 23 - }, - "end": { - "line": 268, - "column": 30 - }, - "identifierName": "role_id" - }, - "name": "role_id" - }, - "computed": false - }, - "right": { - "type": "MemberExpression", - "start": 7709, - "end": 7764, - "loc": { - "start": { - "line": 268, - "column": 33 - }, - "end": { - "line": 268, - "column": 88 - } - }, - "object": { - "type": "CallExpression", - "start": 7709, - "end": 7754, - "loc": { - "start": { - "line": 268, - "column": 33 - }, - "end": { - "line": 268, - "column": 78 - } - }, - "callee": { - "type": "MemberExpression", - "start": 7709, - "end": 7719, - "loc": { - "start": { - "line": 268, - "column": 33 - }, - "end": { - "line": 268, - "column": 43 - } - }, - "object": { - "type": "Identifier", - "start": 7709, - "end": 7714, - "loc": { - "start": { - "line": 268, - "column": 33 - }, - "end": { - "line": 268, - "column": 38 - }, - "identifierName": "roles" - }, - "name": "roles" - }, - "property": { - "type": "Identifier", - "start": 7715, - "end": 7719, - "loc": { - "start": { - "line": 268, - "column": 39 - }, - "end": { - "line": 268, - "column": 43 - }, - "identifierName": "find" - }, - "name": "find" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 7720, - "end": 7753, - "loc": { - "start": { - "line": 268, - "column": 44 - }, - "end": { - "line": 268, - "column": 77 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 7720, - "end": 7724, - "loc": { - "start": { - "line": 268, - "column": 44 - }, - "end": { - "line": 268, - "column": 48 - }, - "identifierName": "role" - }, - "name": "role" - } - ], - "body": { - "type": "BinaryExpression", - "start": 7728, - "end": 7753, - "loc": { - "start": { - "line": 268, - "column": 52 - }, - "end": { - "line": 268, - "column": 77 - } - }, - "left": { - "type": "MemberExpression", - "start": 7728, - "end": 7737, - "loc": { - "start": { - "line": 268, - "column": 52 - }, - "end": { - "line": 268, - "column": 61 - } - }, - "object": { - "type": "Identifier", - "start": 7728, - "end": 7732, - "loc": { - "start": { - "line": 268, - "column": 52 - }, - "end": { - "line": 268, - "column": 56 - }, - "identifierName": "role" - }, - "name": "role" - }, - "property": { - "type": "Identifier", - "start": 7733, - "end": 7737, - "loc": { - "start": { - "line": 268, - "column": 57 - }, - "end": { - "line": 268, - "column": 61 - }, - "identifierName": "name" - }, - "name": "name" - }, - "computed": false - }, - "operator": "===", - "right": { - "type": "MemberExpression", - "start": 7742, - "end": 7753, - "loc": { - "start": { - "line": 268, - "column": 66 - }, - "end": { - "line": 268, - "column": 77 - } - }, - "object": { - "type": "Identifier", - "start": 7742, - "end": 7748, - "loc": { - "start": { - "line": 268, - "column": 66 - }, - "end": { - "line": 268, - "column": 72 - }, - "identifierName": "signer" - }, - "name": "signer" - }, - "property": { - "type": "Identifier", - "start": 7749, - "end": 7753, - "loc": { - "start": { - "line": 268, - "column": 73 - }, - "end": { - "line": 268, - "column": 77 - }, - "identifierName": "role" - }, - "name": "role" - }, - "computed": false - } - } - } - ] - }, - "property": { - "type": "Identifier", - "start": 7755, - "end": 7764, - "loc": { - "start": { - "line": 268, - "column": 79 - }, - "end": { - "line": 268, - "column": 88 - }, - "identifierName": "unique_id" - }, - "name": "unique_id" - }, - "computed": false - } - } - } - ], - "directives": [] - }, - "handler": { - "type": "CatchClause", - "start": 7782, - "end": 7866, - "loc": { - "start": { - "line": 269, - "column": 16 - }, - "end": { - "line": 272, - "column": 15 - } - }, - "param": { - "type": "Identifier", - "start": 7789, - "end": 7792, - "loc": { - "start": { - "line": 269, - "column": 23 - }, - "end": { - "line": 269, - "column": 26 - }, - "identifierName": "err" - }, - "name": "err" - }, - "body": { - "type": "BlockStatement", - "start": 7794, - "end": 7866, - "loc": { - "start": { - "line": 269, - "column": 28 - }, - "end": { - "line": 272, - "column": 15 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 7812, - "end": 7826, - "loc": { - "start": { - "line": 270, - "column": 16 - }, - "end": { - "line": 270, - "column": 30 - } - }, - "expression": { - "type": "CallExpression", - "start": 7812, - "end": 7825, - "loc": { - "start": { - "line": 270, - "column": 16 - }, - "end": { - "line": 270, - "column": 29 - } - }, - "callee": { - "type": "Identifier", - "start": 7812, - "end": 7820, - "loc": { - "start": { - "line": 270, - "column": 16 - }, - "end": { - "line": 270, - "column": 24 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 7821, - "end": 7824, - "loc": { - "start": { - "line": 270, - "column": 25 - }, - "end": { - "line": 270, - "column": 28 - }, - "identifierName": "err" - }, - "name": "err" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 7843, - "end": 7850, - "loc": { - "start": { - "line": 271, - "column": 16 - }, - "end": { - "line": 271, - "column": 23 - } - }, - "argument": null - } - ], - "directives": [] - } - }, - "guardedHandlers": [], - "finalizer": null - } - ], - "directives": [] - } - }, - { - "type": "ExpressionStatement", - "start": 7894, - "end": 8046, - "loc": { - "start": { - "line": 275, - "column": 12 - }, - "end": { - "line": 280, - "column": 25 - } - }, - "expression": { - "type": "CallExpression", - "start": 7894, - "end": 8045, - "loc": { - "start": { - "line": 275, - "column": 12 - }, - "end": { - "line": 280, - "column": 24 - } - }, - "callee": { - "type": "Identifier", - "start": 7894, - "end": 7912, - "loc": { - "start": { - "line": 275, - "column": 12 - }, - "end": { - "line": 275, - "column": 30 - }, - "identifierName": "sendDocumentInvite" - }, - "name": "sendDocumentInvite" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 7913, - "end": 8034, - "loc": { - "start": { - "line": 275, - "column": 31 - }, - "end": { - "line": 280, - "column": 13 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 7929, - "end": 7943, - "loc": { - "start": { - "line": 276, - "column": 14 - }, - "end": { - "line": 276, - "column": 28 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7929, - "end": 7931, - "loc": { - "start": { - "line": 276, - "column": 14 - }, - "end": { - "line": 276, - "column": 16 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 7933, - "end": 7943, - "loc": { - "start": { - "line": 276, - "column": 18 - }, - "end": { - "line": 276, - "column": 28 - }, - "identifierName": "documentId" - }, - "name": "documentId" - } - }, - { - "type": "ObjectProperty", - "start": 7959, - "end": 7975, - "loc": { - "start": { - "line": 277, - "column": 14 - }, - "end": { - "line": 277, - "column": 30 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7959, - "end": 7963, - "loc": { - "start": { - "line": 277, - "column": 14 - }, - "end": { - "line": 277, - "column": 18 - }, - "identifierName": "data" - }, - "name": "data" - }, - "value": { - "type": "Identifier", - "start": 7965, - "end": 7975, - "loc": { - "start": { - "line": 277, - "column": 20 - }, - "end": { - "line": 277, - "column": 30 - }, - "identifierName": "inviteData" - }, - "name": "inviteData" - } - }, - { - "type": "ObjectProperty", - "start": 7991, - "end": 7998, - "loc": { - "start": { - "line": 278, - "column": 14 - }, - "end": { - "line": 278, - "column": 21 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7991, - "end": 7998, - "loc": { - "start": { - "line": 278, - "column": 14 - }, - "end": { - "line": 278, - "column": 21 - }, - "identifierName": "options" - }, - "name": "options" - }, - "value": { - "type": "Identifier", - "start": 7991, - "end": 7998, - "loc": { - "start": { - "line": 278, - "column": 14 - }, - "end": { - "line": 278, - "column": 21 - }, - "identifierName": "options" - }, - "name": "options" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 8014, - "end": 8019, - "loc": { - "start": { - "line": 279, - "column": 14 - }, - "end": { - "line": 279, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8014, - "end": 8019, - "loc": { - "start": { - "line": 279, - "column": 14 - }, - "end": { - "line": 279, - "column": 19 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 8014, - "end": 8019, - "loc": { - "start": { - "line": 279, - "column": 14 - }, - "end": { - "line": 279, - "column": 19 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 8036, - "end": 8044, - "loc": { - "start": { - "line": 280, - "column": 15 - }, - "end": { - "line": 280, - "column": 23 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 8084, - "end": 8360, - "loc": { - "start": { - "line": 283, - "column": 13 - }, - "end": { - "line": 293, - "column": 7 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 8094, - "end": 8129, - "loc": { - "start": { - "line": 284, - "column": 8 - }, - "end": { - "line": 284, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 8100, - "end": 8128, - "loc": { - "start": { - "line": 284, - "column": 14 - }, - "end": { - "line": 284, - "column": 42 - } - }, - "id": { - "type": "ObjectPattern", - "start": 8100, - "end": 8118, - "loc": { - "start": { - "line": 284, - "column": 14 - }, - "end": { - "line": 284, - "column": 32 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 8102, - "end": 8116, - "loc": { - "start": { - "line": 284, - "column": 16 - }, - "end": { - "line": 284, - "column": 30 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 8102, - "end": 8104, - "loc": { - "start": { - "line": 284, - "column": 16 - }, - "end": { - "line": 284, - "column": 18 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 8106, - "end": 8116, - "loc": { - "start": { - "line": 284, - "column": 20 - }, - "end": { - "line": 284, - "column": 30 - }, - "identifierName": "documentId" - }, - "name": "documentId" - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 8121, - "end": 8128, - "loc": { - "start": { - "line": 284, - "column": 35 - }, - "end": { - "line": 284, - "column": 42 - }, - "identifierName": "copyRes" - }, - "name": "copyRes" - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 8138, - "end": 8210, - "loc": { - "start": { - "line": 285, - "column": 8 - }, - "end": { - "line": 285, - "column": 80 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 8144, - "end": 8209, - "loc": { - "start": { - "line": 285, - "column": 14 - }, - "end": { - "line": 285, - "column": 79 - } - }, - "id": { - "type": "Identifier", - "start": 8144, - "end": 8154, - "loc": { - "start": { - "line": 285, - "column": 14 - }, - "end": { - "line": 285, - "column": 24 - }, - "identifierName": "inviteData" - }, - "name": "inviteData" - }, - "init": { - "type": "CallExpression", - "start": 8157, - "end": 8209, - "loc": { - "start": { - "line": 285, - "column": 27 - }, - "end": { - "line": 285, - "column": 79 - } - }, - "callee": { - "type": "MemberExpression", - "start": 8157, - "end": 8170, - "loc": { - "start": { - "line": 285, - "column": 27 - }, - "end": { - "line": 285, - "column": 40 - } - }, - "object": { - "type": "Identifier", - "start": 8157, - "end": 8163, - "loc": { - "start": { - "line": 285, - "column": 27 - }, - "end": { - "line": 285, - "column": 33 - }, - "identifierName": "Object" - }, - "name": "Object" - }, - "property": { - "type": "Identifier", - "start": 8164, - "end": 8170, - "loc": { - "start": { - "line": 285, - "column": 34 - }, - "end": { - "line": 285, - "column": 40 - }, - "identifierName": "assign" - }, - "name": "assign" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 8171, - "end": 8173, - "loc": { - "start": { - "line": 285, - "column": 41 - }, - "end": { - "line": 285, - "column": 43 - } - }, - "properties": [] - }, - { - "type": "Identifier", - "start": 8175, - "end": 8179, - "loc": { - "start": { - "line": 285, - "column": 45 - }, - "end": { - "line": 285, - "column": 49 - }, - "identifierName": "data" - }, - "name": "data" - }, - { - "type": "ObjectExpression", - "start": 8181, - "end": 8208, - "loc": { - "start": { - "line": 285, - "column": 51 - }, - "end": { - "line": 285, - "column": 78 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 8183, - "end": 8206, - "loc": { - "start": { - "line": 285, - "column": 53 - }, - "end": { - "line": 285, - "column": 76 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 8183, - "end": 8194, - "loc": { - "start": { - "line": 285, - "column": 53 - }, - "end": { - "line": 285, - "column": 64 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "value": { - "type": "Identifier", - "start": 8196, - "end": 8206, - "loc": { - "start": { - "line": 285, - "column": 66 - }, - "end": { - "line": 285, - "column": 76 - }, - "identifierName": "documentId" - }, - "name": "documentId" - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 8220, - "end": 8352, - "loc": { - "start": { - "line": 287, - "column": 8 - }, - "end": { - "line": 292, - "column": 21 - } - }, - "expression": { - "type": "CallExpression", - "start": 8220, - "end": 8351, - "loc": { - "start": { - "line": 287, - "column": 8 - }, - "end": { - "line": 292, - "column": 20 - } - }, - "callee": { - "type": "Identifier", - "start": 8220, - "end": 8238, - "loc": { - "start": { - "line": 287, - "column": 8 - }, - "end": { - "line": 287, - "column": 26 - }, - "identifierName": "sendDocumentInvite" - }, - "name": "sendDocumentInvite" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 8239, - "end": 8340, - "loc": { - "start": { - "line": 287, - "column": 27 - }, - "end": { - "line": 292, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 8251, - "end": 8265, - "loc": { - "start": { - "line": 288, - "column": 10 - }, - "end": { - "line": 288, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 8251, - "end": 8253, - "loc": { - "start": { - "line": 288, - "column": 10 - }, - "end": { - "line": 288, - "column": 12 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 8255, - "end": 8265, - "loc": { - "start": { - "line": 288, - "column": 14 - }, - "end": { - "line": 288, - "column": 24 - }, - "identifierName": "documentId" - }, - "name": "documentId" - } - }, - { - "type": "ObjectProperty", - "start": 8277, - "end": 8293, - "loc": { - "start": { - "line": 289, - "column": 10 - }, - "end": { - "line": 289, - "column": 26 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 8277, - "end": 8281, - "loc": { - "start": { - "line": 289, - "column": 10 - }, - "end": { - "line": 289, - "column": 14 - }, - "identifierName": "data" - }, - "name": "data" - }, - "value": { - "type": "Identifier", - "start": 8283, - "end": 8293, - "loc": { - "start": { - "line": 289, - "column": 16 - }, - "end": { - "line": 289, - "column": 26 - }, - "identifierName": "inviteData" - }, - "name": "inviteData" - } - }, - { - "type": "ObjectProperty", - "start": 8305, - "end": 8312, - "loc": { - "start": { - "line": 290, - "column": 10 - }, - "end": { - "line": 290, - "column": 17 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8305, - "end": 8312, - "loc": { - "start": { - "line": 290, - "column": 10 - }, - "end": { - "line": 290, - "column": 17 - }, - "identifierName": "options" - }, - "name": "options" - }, - "value": { - "type": "Identifier", - "start": 8305, - "end": 8312, - "loc": { - "start": { - "line": 290, - "column": 10 - }, - "end": { - "line": 290, - "column": 17 - }, - "identifierName": "options" - }, - "name": "options" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 8324, - "end": 8329, - "loc": { - "start": { - "line": 291, - "column": 10 - }, - "end": { - "line": 291, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8324, - "end": 8329, - "loc": { - "start": { - "line": 291, - "column": 10 - }, - "end": { - "line": 291, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 8324, - "end": 8329, - "loc": { - "start": { - "line": 291, - "column": 10 - }, - "end": { - "line": 291, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 8342, - "end": 8350, - "loc": { - "start": { - "line": 292, - "column": 11 - }, - "end": { - "line": 292, - "column": 19 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - } - ], - "directives": [] - } - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Create invite with template payload\n * @typedef {DocumentInviteParams} TemplateInviteParams\n ", - "start": 6313, - "end": 6421, - "loc": { - "start": { - "line": 222, - "column": 2 - }, - "end": { - "line": 225, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create invite with template response data\n * @typedef {DocumentInviteResponse} TemplateInviteResponse\n ", - "start": 6425, - "end": 6543, - "loc": { - "start": { - "line": 227, - "column": 2 - }, - "end": { - "line": 230, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates an invite to sign a template.\n * You can create a simple free form invite(s) or a role-based invite(s).\n * The method copies a template into document and creates an invite using created document.\n * @param {TemplateInviteParams} data - create template invite payload\n * @param {function(err: ApiErrorResponse, res: TemplateInviteResponse)} [callback] - error first node.js callback\n ", - "start": 6547, - "end": 6959, - "loc": { - "start": { - "line": 232, - "column": 2 - }, - "end": { - "line": 238, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Remove template payload\n * @typedef {DocumentRemoveParams} TemplateRemoveParams\n ", - "start": 8376, - "end": 8472, - "loc": { - "start": { - "line": 297, - "column": 2 - }, - "end": { - "line": 300, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Remove template response data\n * @typedef {DocumentRemoveResponse} TemplateRemoveResponse\n ", - "start": 8476, - "end": 8582, - "loc": { - "start": { - "line": 302, - "column": 2 - }, - "end": { - "line": 305, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Removes a specified template from folder\n * @param {TemplateRemoveParams} data - remove template payload\n * @param {function(err: ApiErrorResponse, res: TemplateRemoveResponse)} [callback] - error first node.js callback\n ", - "start": 8586, - "end": 8824, - "loc": { - "start": { - "line": 307, - "column": 2 - }, - "end": { - "line": 311, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 8827, - "end": 8973, - "loc": { - "start": { - "line": 312, - "column": 2 - }, - "end": { - "line": 322, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8834, - "end": 8840, - "loc": { - "start": { - "line": 312, - "column": 9 - }, - "end": { - "line": 312, - "column": 15 - }, - "identifierName": "remove" - }, - "name": "remove" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 8842, - "end": 8879, - "loc": { - "start": { - "line": 312, - "column": 17 - }, - "end": { - "line": 316, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 8848, - "end": 8850, - "loc": { - "start": { - "line": 313, - "column": 4 - }, - "end": { - "line": 313, - "column": 6 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8848, - "end": 8850, - "loc": { - "start": { - "line": 313, - "column": 4 - }, - "end": { - "line": 313, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 8848, - "end": 8850, - "loc": { - "start": { - "line": 313, - "column": 4 - }, - "end": { - "line": 313, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 8856, - "end": 8861, - "loc": { - "start": { - "line": 314, - "column": 4 - }, - "end": { - "line": 314, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8856, - "end": 8861, - "loc": { - "start": { - "line": 314, - "column": 4 - }, - "end": { - "line": 314, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 8856, - "end": 8861, - "loc": { - "start": { - "line": 314, - "column": 4 - }, - "end": { - "line": 314, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 8867, - "end": 8874, - "loc": { - "start": { - "line": 315, - "column": 4 - }, - "end": { - "line": 315, - "column": 11 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8867, - "end": 8874, - "loc": { - "start": { - "line": 315, - "column": 4 - }, - "end": { - "line": 315, - "column": 11 - }, - "identifierName": "options" - }, - "name": "options" - }, - "value": { - "type": "Identifier", - "start": 8867, - "end": 8874, - "loc": { - "start": { - "line": 315, - "column": 4 - }, - "end": { - "line": 315, - "column": 11 - }, - "identifierName": "options" - }, - "name": "options" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 8881, - "end": 8889, - "loc": { - "start": { - "line": 316, - "column": 5 - }, - "end": { - "line": 316, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 8891, - "end": 8973, - "loc": { - "start": { - "line": 316, - "column": 15 - }, - "end": { - "line": 322, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 8897, - "end": 8969, - "loc": { - "start": { - "line": 317, - "column": 4 - }, - "end": { - "line": 321, - "column": 17 - } - }, - "expression": { - "type": "CallExpression", - "start": 8897, - "end": 8968, - "loc": { - "start": { - "line": 317, - "column": 4 - }, - "end": { - "line": 321, - "column": 16 - } - }, - "callee": { - "type": "Identifier", - "start": 8897, - "end": 8911, - "loc": { - "start": { - "line": 317, - "column": 4 - }, - "end": { - "line": 317, - "column": 18 - }, - "identifierName": "removeDocument" - }, - "name": "removeDocument" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 8912, - "end": 8957, - "loc": { - "start": { - "line": 317, - "column": 19 - }, - "end": { - "line": 321, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 8920, - "end": 8922, - "loc": { - "start": { - "line": 318, - "column": 6 - }, - "end": { - "line": 318, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8920, - "end": 8922, - "loc": { - "start": { - "line": 318, - "column": 6 - }, - "end": { - "line": 318, - "column": 8 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 8920, - "end": 8922, - "loc": { - "start": { - "line": 318, - "column": 6 - }, - "end": { - "line": 318, - "column": 8 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 8930, - "end": 8935, - "loc": { - "start": { - "line": 319, - "column": 6 - }, - "end": { - "line": 319, - "column": 11 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8930, - "end": 8935, - "loc": { - "start": { - "line": 319, - "column": 6 - }, - "end": { - "line": 319, - "column": 11 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 8930, - "end": 8935, - "loc": { - "start": { - "line": 319, - "column": 6 - }, - "end": { - "line": 319, - "column": 11 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 8943, - "end": 8950, - "loc": { - "start": { - "line": 320, - "column": 6 - }, - "end": { - "line": 320, - "column": 13 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8943, - "end": 8950, - "loc": { - "start": { - "line": 320, - "column": 6 - }, - "end": { - "line": 320, - "column": 13 - }, - "identifierName": "options" - }, - "name": "options" - }, - "value": { - "type": "Identifier", - "start": 8943, - "end": 8950, - "loc": { - "start": { - "line": 320, - "column": 6 - }, - "end": { - "line": 320, - "column": 13 - }, - "identifierName": "options" - }, - "name": "options" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 8959, - "end": 8967, - "loc": { - "start": { - "line": 321, - "column": 7 - }, - "end": { - "line": 321, - "column": 15 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Remove template payload\n * @typedef {DocumentRemoveParams} TemplateRemoveParams\n ", - "start": 8376, - "end": 8472, - "loc": { - "start": { - "line": 297, - "column": 2 - }, - "end": { - "line": 300, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Remove template response data\n * @typedef {DocumentRemoveResponse} TemplateRemoveResponse\n ", - "start": 8476, - "end": 8582, - "loc": { - "start": { - "line": 302, - "column": 2 - }, - "end": { - "line": 305, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Removes a specified template from folder\n * @param {TemplateRemoveParams} data - remove template payload\n * @param {function(err: ApiErrorResponse, res: TemplateRemoveResponse)} [callback] - error first node.js callback\n ", - "start": 8586, - "end": 8824, - "loc": { - "start": { - "line": 307, - "column": 2 - }, - "end": { - "line": 311, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Get Template Routing Details payload\n * @typedef {Object} TemplateGetRoutingDetailsParams\n * @property {string} id - an ID of specific Template\n * @property {string} token - your auth token\n ", - "start": 8977, - "end": 9187, - "loc": { - "start": { - "line": 324, - "column": 2 - }, - "end": { - "line": 329, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Template Routing Details item data\n * @typedef {Object} TemplateRoutingDetailsItem\n * @property {string} default_email - default email for routing detail\n * @property {boolean} inviter_role - always `false`\n * @property {string} name - signer role (actor) name\n * @property {string} role_id - signer role (actor) unique ID\n * @property {number} signing_order - order number of signing step\n ", - "start": 9191, - "end": 9607, - "loc": { - "start": { - "line": 331, - "column": 2 - }, - "end": { - "line": 339, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Template Routing Details CC step info\n * @typedef {Object} TemplateRoutingDetailsCCStep\n * @property {string} email - email of cc step\n * @property {number} step - step order number\n * @property {string} name - name of cc step\n ", - "start": 9611, - "end": 9860, - "loc": { - "start": { - "line": 341, - "column": 2 - }, - "end": { - "line": 347, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Get Template Routing Details response data\n * @typedef {Object} TemplateGetRoutingDetailsResponse\n * @property {TemplateRoutingDetailsItem[]} routing_details - array with routing details\n * @property {string[]} cc - CC emails\n * @property {TemplateRoutingDetailsCCStep[]} cc_step - array of CC`s steps\n * @property {string} invite_link_instructions - invite link instructions\n ", - "start": 9864, - "end": 10264, - "loc": { - "start": { - "line": 349, - "column": 2 - }, - "end": { - "line": 356, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves Routing Details of specified Template\n * @param {TemplateGetRoutingDetailsParams} data - get Routing Details payload\n * @param {function(err: ApiErrorResponse, res: TemplateGetRoutingDetailsResponse)} [callback] - error first node.js callback\n ", - "start": 10268, - "end": 10539, - "loc": { - "start": { - "line": 358, - "column": 2 - }, - "end": { - "line": 362, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 10542, - "end": 10909, - "loc": { - "start": { - "line": 363, - "column": 2 - }, - "end": { - "line": 378, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 10549, - "end": 10566, - "loc": { - "start": { - "line": 363, - "column": 9 - }, - "end": { - "line": 363, - "column": 26 - }, - "identifierName": "getRoutingDetails" - }, - "name": "getRoutingDetails" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 10568, - "end": 10592, - "loc": { - "start": { - "line": 363, - "column": 28 - }, - "end": { - "line": 366, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 10574, - "end": 10576, - "loc": { - "start": { - "line": 364, - "column": 4 - }, - "end": { - "line": 364, - "column": 6 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 10574, - "end": 10576, - "loc": { - "start": { - "line": 364, - "column": 4 - }, - "end": { - "line": 364, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 10574, - "end": 10576, - "loc": { - "start": { - "line": 364, - "column": 4 - }, - "end": { - "line": 364, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 10582, - "end": 10587, - "loc": { - "start": { - "line": 365, - "column": 4 - }, - "end": { - "line": 365, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 10582, - "end": 10587, - "loc": { - "start": { - "line": 365, - "column": 4 - }, - "end": { - "line": 365, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 10582, - "end": 10587, - "loc": { - "start": { - "line": 365, - "column": 4 - }, - "end": { - "line": 365, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 10594, - "end": 10602, - "loc": { - "start": { - "line": 366, - "column": 5 - }, - "end": { - "line": 366, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 10604, - "end": 10909, - "loc": { - "start": { - "line": 366, - "column": 15 - }, - "end": { - "line": 378, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 10610, - "end": 10905, - "loc": { - "start": { - "line": 367, - "column": 4 - }, - "end": { - "line": 377, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 10610, - "end": 10904, - "loc": { - "start": { - "line": 367, - "column": 4 - }, - "end": { - "line": 377, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10610, - "end": 10902, - "loc": { - "start": { - "line": 367, - "column": 4 - }, - "end": { - "line": 377, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 10610, - "end": 10891, - "loc": { - "start": { - "line": 367, - "column": 4 - }, - "end": { - "line": 376, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10610, - "end": 10858, - "loc": { - "start": { - "line": 367, - "column": 4 - }, - "end": { - "line": 376, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 10610, - "end": 10848, - "loc": { - "start": { - "line": 367, - "column": 4 - }, - "end": { - "line": 375, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10610, - "end": 10630, - "loc": { - "start": { - "line": 367, - "column": 4 - }, - "end": { - "line": 368, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 10610, - "end": 10615, - "loc": { - "start": { - "line": 367, - "column": 4 - }, - "end": { - "line": 367, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 10623, - "end": 10630, - "loc": { - "start": { - "line": 368, - "column": 7 - }, - "end": { - "line": 368, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 10631, - "end": 10820, - "loc": { - "start": { - "line": 368, - "column": 15 - }, - "end": { - "line": 375, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 10631, - "end": 10650, - "loc": { - "start": { - "line": 368, - "column": 15 - }, - "end": { - "line": 368, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 10651, - "end": 10819, - "loc": { - "start": { - "line": 368, - "column": 35 - }, - "end": { - "line": 375, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 10661, - "end": 10674, - "loc": { - "start": { - "line": 369, - "column": 8 - }, - "end": { - "line": 369, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 10661, - "end": 10667, - "loc": { - "start": { - "line": 369, - "column": 8 - }, - "end": { - "line": 369, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 10669, - "end": 10674, - "loc": { - "start": { - "line": 369, - "column": 16 - }, - "end": { - "line": 369, - "column": 21 - } - }, - "extra": { - "rawValue": "GET", - "raw": "'GET'" - }, - "value": "GET" - } - }, - { - "type": "ObjectProperty", - "start": 10684, - "end": 10731, - "loc": { - "start": { - "line": 370, - "column": 8 - }, - "end": { - "line": 370, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 10684, - "end": 10688, - "loc": { - "start": { - "line": 370, - "column": 8 - }, - "end": { - "line": 370, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 10690, - "end": 10731, - "loc": { - "start": { - "line": 370, - "column": 14 - }, - "end": { - "line": 370, - "column": 55 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 10703, - "end": 10705, - "loc": { - "start": { - "line": 370, - "column": 27 - }, - "end": { - "line": 370, - "column": 29 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 10691, - "end": 10701, - "loc": { - "start": { - "line": 370, - "column": 15 - }, - "end": { - "line": 370, - "column": 25 - } - }, - "value": { - "raw": "/document/", - "cooked": "/document/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 10706, - "end": 10730, - "loc": { - "start": { - "line": 370, - "column": 30 - }, - "end": { - "line": 370, - "column": 54 - } - }, - "value": { - "raw": "/template/routing/detail", - "cooked": "/template/routing/detail" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 10741, - "end": 10810, - "loc": { - "start": { - "line": 371, - "column": 8 - }, - "end": { - "line": 374, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 10741, - "end": 10754, - "loc": { - "start": { - "line": 371, - "column": 8 - }, - "end": { - "line": 371, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 10756, - "end": 10810, - "loc": { - "start": { - "line": 371, - "column": 23 - }, - "end": { - "line": 374, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 10768, - "end": 10782, - "loc": { - "start": { - "line": 372, - "column": 10 - }, - "end": { - "line": 372, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 10768, - "end": 10772, - "loc": { - "start": { - "line": 372, - "column": 10 - }, - "end": { - "line": 372, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 10774, - "end": 10782, - "loc": { - "start": { - "line": 372, - "column": 16 - }, - "end": { - "line": 372, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 10794, - "end": 10799, - "loc": { - "start": { - "line": 373, - "column": 10 - }, - "end": { - "line": 373, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 10794, - "end": 10799, - "loc": { - "start": { - "line": 373, - "column": 10 - }, - "end": { - "line": 373, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 10794, - "end": 10799, - "loc": { - "start": { - "line": 373, - "column": 10 - }, - "end": { - "line": 373, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 10822, - "end": 10847, - "loc": { - "start": { - "line": 375, - "column": 10 - }, - "end": { - "line": 375, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 10822, - "end": 10837, - "loc": { - "start": { - "line": 375, - "column": 10 - }, - "end": { - "line": 375, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 10838, - "end": 10846, - "loc": { - "start": { - "line": 375, - "column": 26 - }, - "end": { - "line": 375, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 10856, - "end": 10858, - "loc": { - "start": { - "line": 376, - "column": 7 - }, - "end": { - "line": 376, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 10859, - "end": 10866, - "loc": { - "start": { - "line": 376, - "column": 10 - }, - "end": { - "line": 376, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 10868, - "end": 10890, - "loc": { - "start": { - "line": 376, - "column": 19 - }, - "end": { - "line": 376, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 10868, - "end": 10880, - "loc": { - "start": { - "line": 376, - "column": 19 - }, - "end": { - "line": 376, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 10881, - "end": 10889, - "loc": { - "start": { - "line": 376, - "column": 32 - }, - "end": { - "line": 376, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 10899, - "end": 10902, - "loc": { - "start": { - "line": 377, - "column": 7 - }, - "end": { - "line": 377, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Get Template Routing Details payload\n * @typedef {Object} TemplateGetRoutingDetailsParams\n * @property {string} id - an ID of specific Template\n * @property {string} token - your auth token\n ", - "start": 8977, - "end": 9187, - "loc": { - "start": { - "line": 324, - "column": 2 - }, - "end": { - "line": 329, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Template Routing Details item data\n * @typedef {Object} TemplateRoutingDetailsItem\n * @property {string} default_email - default email for routing detail\n * @property {boolean} inviter_role - always `false`\n * @property {string} name - signer role (actor) name\n * @property {string} role_id - signer role (actor) unique ID\n * @property {number} signing_order - order number of signing step\n ", - "start": 9191, - "end": 9607, - "loc": { - "start": { - "line": 331, - "column": 2 - }, - "end": { - "line": 339, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Template Routing Details CC step info\n * @typedef {Object} TemplateRoutingDetailsCCStep\n * @property {string} email - email of cc step\n * @property {number} step - step order number\n * @property {string} name - name of cc step\n ", - "start": 9611, - "end": 9860, - "loc": { - "start": { - "line": 341, - "column": 2 - }, - "end": { - "line": 347, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Get Template Routing Details response data\n * @typedef {Object} TemplateGetRoutingDetailsResponse\n * @property {TemplateRoutingDetailsItem[]} routing_details - array with routing details\n * @property {string[]} cc - CC emails\n * @property {TemplateRoutingDetailsCCStep[]} cc_step - array of CC`s steps\n * @property {string} invite_link_instructions - invite link instructions\n ", - "start": 9864, - "end": 10264, - "loc": { - "start": { - "line": 349, - "column": 2 - }, - "end": { - "line": 356, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves Routing Details of specified Template\n * @param {TemplateGetRoutingDetailsParams} data - get Routing Details payload\n * @param {function(err: ApiErrorResponse, res: TemplateGetRoutingDetailsResponse)} [callback] - error first node.js callback\n ", - "start": 10268, - "end": 10539, - "loc": { - "start": { - "line": 358, - "column": 2 - }, - "end": { - "line": 362, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Template Update Routing Details item data\n * @typedef {Object} TemplateUpdateRoutingDetailsItem\n * @property {string} default_email - default email for routing detail\n * @property {boolean} inviter_role - always `false`\n * @property {string} name - signer role (actor) name\n * @property {string} role_id - signer role (actor) unique ID\n * @property {number} signing_order - order number of signing step\n * @property {boolean} decline_by_signature - decline by signature flag\n ", - "start": 10913, - "end": 11416, - "loc": { - "start": { - "line": 380, - "column": 2 - }, - "end": { - "line": 389, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update Template Routing Details settings\n * @typedef {Object} TemplateUpdateRoutingDetailsSettings\n * @property {TemplateUpdateRoutingDetailsItem[]} template_data - array with routing details\n * @property {string[]} cc - CC emails\n * @property {TemplateRoutingDetailsCCStep[]} cc_step - array of CC steps\n * @property {string} [invite_link_instructions] - invite signing instructions\n ", - "start": 11420, - "end": 11828, - "loc": { - "start": { - "line": 391, - "column": 2 - }, - "end": { - "line": 398, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update Template Routing Details payload\n * @typedef {Object} TemplateUpdateRoutingDetailsParams\n * @property {string} id - an ID of specific Template\n * @property {string} token - your auth token\n * @property {TemplateUpdateRoutingDetailsSettings} data - update Template Routing Details settings\n ", - "start": 11832, - "end": 12150, - "loc": { - "start": { - "line": 400, - "column": 2 - }, - "end": { - "line": 406, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update Template Routing Details response data\n * @typedef {Object} TemplateUpdateRoutingDetailsResponse\n * @property {string} id - unique ID of template routing details\n * @property {string} document_id - unique ID of Template\n * @property {TemplateUpdateRoutingDetailsItem[]} data - array with routing details\n * @property {string[]} cc - CC emails\n * @property {TemplateRoutingDetailsCCStep[]} cc_step - array of CC steps\n * @property {string} invite_link_instructions - invite signing instructions\n ", - "start": 12154, - "end": 12683, - "loc": { - "start": { - "line": 408, - "column": 2 - }, - "end": { - "line": 417, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Updates Routing Details of specified template\n * @param {TemplateUpdateRoutingDetailsParams} data - update Template Routing Details payload\n * @param {function(err: ApiErrorResponse, res: TemplateUpdateRoutingDetailsResponse)} [callback] - error first node.js callback\n ", - "start": 12687, - "end": 12974, - "loc": { - "start": { - "line": 419, - "column": 2 - }, - "end": { - "line": 423, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 12977, - "end": 14785, - "loc": { - "start": { - "line": 424, - "column": 2 - }, - "end": { - "line": 494, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 12984, - "end": 13004, - "loc": { - "start": { - "line": 424, - "column": 9 - }, - "end": { - "line": 424, - "column": 29 - }, - "identifierName": "updateRoutingDetails" - }, - "name": "updateRoutingDetails" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 13006, - "end": 13040, - "loc": { - "start": { - "line": 424, - "column": 31 - }, - "end": { - "line": 428, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 13012, - "end": 13014, - "loc": { - "start": { - "line": 425, - "column": 4 - }, - "end": { - "line": 425, - "column": 6 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 13012, - "end": 13014, - "loc": { - "start": { - "line": 425, - "column": 4 - }, - "end": { - "line": 425, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 13012, - "end": 13014, - "loc": { - "start": { - "line": 425, - "column": 4 - }, - "end": { - "line": 425, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 13020, - "end": 13025, - "loc": { - "start": { - "line": 426, - "column": 4 - }, - "end": { - "line": 426, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 13020, - "end": 13025, - "loc": { - "start": { - "line": 426, - "column": 4 - }, - "end": { - "line": 426, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 13020, - "end": 13025, - "loc": { - "start": { - "line": 426, - "column": 4 - }, - "end": { - "line": 426, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 13031, - "end": 13035, - "loc": { - "start": { - "line": 427, - "column": 4 - }, - "end": { - "line": 427, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 13031, - "end": 13035, - "loc": { - "start": { - "line": 427, - "column": 4 - }, - "end": { - "line": 427, - "column": 8 - }, - "identifierName": "data" - }, - "name": "data" - }, - "value": { - "type": "Identifier", - "start": 13031, - "end": 13035, - "loc": { - "start": { - "line": 427, - "column": 4 - }, - "end": { - "line": 427, - "column": 8 - }, - "identifierName": "data" - }, - "name": "data" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 13042, - "end": 13050, - "loc": { - "start": { - "line": 428, - "column": 5 - }, - "end": { - "line": 428, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 13052, - "end": 14785, - "loc": { - "start": { - "line": 428, - "column": 15 - }, - "end": { - "line": 494, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 13058, - "end": 13157, - "loc": { - "start": { - "line": 429, - "column": 4 - }, - "end": { - "line": 434, - "column": 13 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 13064, - "end": 13156, - "loc": { - "start": { - "line": 429, - "column": 10 - }, - "end": { - "line": 434, - "column": 12 - } - }, - "id": { - "type": "ObjectPattern", - "start": 13064, - "end": 13149, - "loc": { - "start": { - "line": 429, - "column": 10 - }, - "end": { - "line": 434, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 13072, - "end": 13085, - "loc": { - "start": { - "line": 430, - "column": 6 - }, - "end": { - "line": 430, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 13072, - "end": 13085, - "loc": { - "start": { - "line": 430, - "column": 6 - }, - "end": { - "line": 430, - "column": 19 - }, - "identifierName": "template_data" - }, - "name": "template_data" - }, - "value": { - "type": "Identifier", - "start": 13072, - "end": 13085, - "loc": { - "start": { - "line": 430, - "column": 6 - }, - "end": { - "line": 430, - "column": 19 - }, - "identifierName": "template_data" - }, - "name": "template_data" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 13093, - "end": 13095, - "loc": { - "start": { - "line": 431, - "column": 6 - }, - "end": { - "line": 431, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 13093, - "end": 13095, - "loc": { - "start": { - "line": 431, - "column": 6 - }, - "end": { - "line": 431, - "column": 8 - }, - "identifierName": "cc" - }, - "name": "cc" - }, - "value": { - "type": "Identifier", - "start": 13093, - "end": 13095, - "loc": { - "start": { - "line": 431, - "column": 6 - }, - "end": { - "line": 431, - "column": 8 - }, - "identifierName": "cc" - }, - "name": "cc" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 13103, - "end": 13110, - "loc": { - "start": { - "line": 432, - "column": 6 - }, - "end": { - "line": 432, - "column": 13 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 13103, - "end": 13110, - "loc": { - "start": { - "line": 432, - "column": 6 - }, - "end": { - "line": 432, - "column": 13 - }, - "identifierName": "cc_step" - }, - "name": "cc_step" - }, - "value": { - "type": "Identifier", - "start": 13103, - "end": 13110, - "loc": { - "start": { - "line": 432, - "column": 6 - }, - "end": { - "line": 432, - "column": 13 - }, - "identifierName": "cc_step" - }, - "name": "cc_step" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 13118, - "end": 13142, - "loc": { - "start": { - "line": 433, - "column": 6 - }, - "end": { - "line": 433, - "column": 30 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 13118, - "end": 13142, - "loc": { - "start": { - "line": 433, - "column": 6 - }, - "end": { - "line": 433, - "column": 30 - }, - "identifierName": "invite_link_instructions" - }, - "name": "invite_link_instructions" - }, - "value": { - "type": "Identifier", - "start": 13118, - "end": 13142, - "loc": { - "start": { - "line": 433, - "column": 6 - }, - "end": { - "line": 433, - "column": 30 - }, - "identifierName": "invite_link_instructions" - }, - "name": "invite_link_instructions" - }, - "extra": { - "shorthand": true - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 13152, - "end": 13156, - "loc": { - "start": { - "line": 434, - "column": 8 - }, - "end": { - "line": 434, - "column": 12 - }, - "identifierName": "data" - }, - "name": "data" - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 13162, - "end": 13281, - "loc": { - "start": { - "line": 435, - "column": 4 - }, - "end": { - "line": 440, - "column": 7 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 13168, - "end": 13280, - "loc": { - "start": { - "line": 435, - "column": 10 - }, - "end": { - "line": 440, - "column": 6 - } - }, - "id": { - "type": "Identifier", - "start": 13168, - "end": 13176, - "loc": { - "start": { - "line": 435, - "column": 10 - }, - "end": { - "line": 435, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 13179, - "end": 13280, - "loc": { - "start": { - "line": 435, - "column": 21 - }, - "end": { - "line": 440, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13179, - "end": 13193, - "loc": { - "start": { - "line": 435, - "column": 21 - }, - "end": { - "line": 435, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 13179, - "end": 13183, - "loc": { - "start": { - "line": 435, - "column": 21 - }, - "end": { - "line": 435, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 13184, - "end": 13193, - "loc": { - "start": { - "line": 435, - "column": 26 - }, - "end": { - "line": 435, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 13194, - "end": 13279, - "loc": { - "start": { - "line": 435, - "column": 36 - }, - "end": { - "line": 440, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 13202, - "end": 13215, - "loc": { - "start": { - "line": 436, - "column": 6 - }, - "end": { - "line": 436, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 13202, - "end": 13215, - "loc": { - "start": { - "line": 436, - "column": 6 - }, - "end": { - "line": 436, - "column": 19 - }, - "identifierName": "template_data" - }, - "name": "template_data" - }, - "value": { - "type": "Identifier", - "start": 13202, - "end": 13215, - "loc": { - "start": { - "line": 436, - "column": 6 - }, - "end": { - "line": 436, - "column": 19 - }, - "identifierName": "template_data" - }, - "name": "template_data" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 13223, - "end": 13225, - "loc": { - "start": { - "line": 437, - "column": 6 - }, - "end": { - "line": 437, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 13223, - "end": 13225, - "loc": { - "start": { - "line": 437, - "column": 6 - }, - "end": { - "line": 437, - "column": 8 - }, - "identifierName": "cc" - }, - "name": "cc" - }, - "value": { - "type": "Identifier", - "start": 13223, - "end": 13225, - "loc": { - "start": { - "line": 437, - "column": 6 - }, - "end": { - "line": 437, - "column": 8 - }, - "identifierName": "cc" - }, - "name": "cc" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 13233, - "end": 13240, - "loc": { - "start": { - "line": 438, - "column": 6 - }, - "end": { - "line": 438, - "column": 13 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 13233, - "end": 13240, - "loc": { - "start": { - "line": 438, - "column": 6 - }, - "end": { - "line": 438, - "column": 13 - }, - "identifierName": "cc_step" - }, - "name": "cc_step" - }, - "value": { - "type": "Identifier", - "start": 13233, - "end": 13240, - "loc": { - "start": { - "line": 438, - "column": 6 - }, - "end": { - "line": 438, - "column": 13 - }, - "identifierName": "cc_step" - }, - "name": "cc_step" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 13248, - "end": 13272, - "loc": { - "start": { - "line": 439, - "column": 6 - }, - "end": { - "line": 439, - "column": 30 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 13248, - "end": 13272, - "loc": { - "start": { - "line": 439, - "column": 6 - }, - "end": { - "line": 439, - "column": 30 - }, - "identifierName": "invite_link_instructions" - }, - "name": "invite_link_instructions" - }, - "value": { - "type": "Identifier", - "start": 13248, - "end": 13272, - "loc": { - "start": { - "line": 439, - "column": 6 - }, - "end": { - "line": 439, - "column": 30 - }, - "identifierName": "invite_link_instructions" - }, - "name": "invite_link_instructions" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 13287, - "end": 14301, - "loc": { - "start": { - "line": 442, - "column": 4 - }, - "end": { - "line": 475, - "column": 6 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 13293, - "end": 14300, - "loc": { - "start": { - "line": 442, - "column": 10 - }, - "end": { - "line": 475, - "column": 5 - } - }, - "id": { - "type": "Identifier", - "start": 13293, - "end": 13307, - "loc": { - "start": { - "line": 442, - "column": 10 - }, - "end": { - "line": 442, - "column": 24 - }, - "identifierName": "updateCallback" - }, - "name": "updateCallback" - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 13310, - "end": 14300, - "loc": { - "start": { - "line": 442, - "column": 27 - }, - "end": { - "line": 475, - "column": 5 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 13311, - "end": 13314, - "loc": { - "start": { - "line": 442, - "column": 28 - }, - "end": { - "line": 442, - "column": 31 - }, - "identifierName": "err" - }, - "name": "err" - }, - { - "type": "Identifier", - "start": 13316, - "end": 13319, - "loc": { - "start": { - "line": 442, - "column": 33 - }, - "end": { - "line": 442, - "column": 36 - }, - "identifierName": "res" - }, - "name": "res" - } - ], - "body": { - "type": "BlockStatement", - "start": 13324, - "end": 14300, - "loc": { - "start": { - "line": 442, - "column": 41 - }, - "end": { - "line": 475, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 13332, - "end": 14294, - "loc": { - "start": { - "line": 443, - "column": 6 - }, - "end": { - "line": 474, - "column": 7 - } - }, - "test": { - "type": "Identifier", - "start": 13336, - "end": 13339, - "loc": { - "start": { - "line": 443, - "column": 10 - }, - "end": { - "line": 443, - "column": 13 - }, - "identifierName": "err" - }, - "name": "err" - }, - "consequent": { - "type": "BlockStatement", - "start": 13341, - "end": 13389, - "loc": { - "start": { - "line": 443, - "column": 15 - }, - "end": { - "line": 446, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 13351, - "end": 13365, - "loc": { - "start": { - "line": 444, - "column": 8 - }, - "end": { - "line": 444, - "column": 22 - } - }, - "expression": { - "type": "CallExpression", - "start": 13351, - "end": 13364, - "loc": { - "start": { - "line": 444, - "column": 8 - }, - "end": { - "line": 444, - "column": 21 - } - }, - "callee": { - "type": "Identifier", - "start": 13351, - "end": 13359, - "loc": { - "start": { - "line": 444, - "column": 8 - }, - "end": { - "line": 444, - "column": 16 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 13360, - "end": 13363, - "loc": { - "start": { - "line": 444, - "column": 17 - }, - "end": { - "line": 444, - "column": 20 - }, - "identifierName": "err" - }, - "name": "err" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 13374, - "end": 13381, - "loc": { - "start": { - "line": 445, - "column": 8 - }, - "end": { - "line": 445, - "column": 15 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 13395, - "end": 14294, - "loc": { - "start": { - "line": 446, - "column": 13 - }, - "end": { - "line": 474, - "column": 7 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 13405, - "end": 13442, - "loc": { - "start": { - "line": 447, - "column": 8 - }, - "end": { - "line": 447, - "column": 45 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 13411, - "end": 13441, - "loc": { - "start": { - "line": 447, - "column": 14 - }, - "end": { - "line": 447, - "column": 44 - } - }, - "id": { - "type": "ObjectPattern", - "start": 13411, - "end": 13435, - "loc": { - "start": { - "line": 447, - "column": 14 - }, - "end": { - "line": 447, - "column": 38 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 13413, - "end": 13433, - "loc": { - "start": { - "line": 447, - "column": 16 - }, - "end": { - "line": 447, - "column": 36 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 13413, - "end": 13417, - "loc": { - "start": { - "line": 447, - "column": 16 - }, - "end": { - "line": 447, - "column": 20 - }, - "identifierName": "data" - }, - "name": "data" - }, - "value": { - "type": "Identifier", - "start": 13419, - "end": 13433, - "loc": { - "start": { - "line": 447, - "column": 22 - }, - "end": { - "line": 447, - "column": 36 - }, - "identifierName": "routingDetails" - }, - "name": "routingDetails" - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 13438, - "end": 13441, - "loc": { - "start": { - "line": 447, - "column": 41 - }, - "end": { - "line": 447, - "column": 44 - }, - "identifierName": "res" - }, - "name": "res" - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 13451, - "end": 13723, - "loc": { - "start": { - "line": 448, - "column": 8 - }, - "end": { - "line": 456, - "column": 13 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 13457, - "end": 13722, - "loc": { - "start": { - "line": 448, - "column": 14 - }, - "end": { - "line": 456, - "column": 12 - } - }, - "id": { - "type": "Identifier", - "start": 13457, - "end": 13469, - "loc": { - "start": { - "line": 448, - "column": 14 - }, - "end": { - "line": 448, - "column": 26 - }, - "identifierName": "rolesUpdated" - }, - "name": "rolesUpdated" - }, - "init": { - "type": "CallExpression", - "start": 13472, - "end": 13722, - "loc": { - "start": { - "line": 448, - "column": 29 - }, - "end": { - "line": 456, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13472, - "end": 13501, - "loc": { - "start": { - "line": 448, - "column": 29 - }, - "end": { - "line": 449, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 13472, - "end": 13486, - "loc": { - "start": { - "line": 448, - "column": 29 - }, - "end": { - "line": 448, - "column": 43 - }, - "identifierName": "routingDetails" - }, - "name": "routingDetails" - }, - "property": { - "type": "Identifier", - "start": 13498, - "end": 13501, - "loc": { - "start": { - "line": 449, - "column": 11 - }, - "end": { - "line": 449, - "column": 14 - }, - "identifierName": "map" - }, - "name": "map" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 13502, - "end": 13721, - "loc": { - "start": { - "line": 449, - "column": 15 - }, - "end": { - "line": 456, - "column": 11 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 13502, - "end": 13507, - "loc": { - "start": { - "line": 449, - "column": 15 - }, - "end": { - "line": 449, - "column": 20 - }, - "identifierName": "route" - }, - "name": "route" - } - ], - "body": { - "type": "BlockStatement", - "start": 13511, - "end": 13721, - "loc": { - "start": { - "line": 449, - "column": 24 - }, - "end": { - "line": 456, - "column": 11 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 13525, - "end": 13566, - "loc": { - "start": { - "line": 450, - "column": 12 - }, - "end": { - "line": 450, - "column": 53 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 13531, - "end": 13565, - "loc": { - "start": { - "line": 450, - "column": 18 - }, - "end": { - "line": 450, - "column": 52 - } - }, - "id": { - "type": "ObjectPattern", - "start": 13531, - "end": 13557, - "loc": { - "start": { - "line": 450, - "column": 18 - }, - "end": { - "line": 450, - "column": 44 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 13533, - "end": 13540, - "loc": { - "start": { - "line": 450, - "column": 20 - }, - "end": { - "line": 450, - "column": 27 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 13533, - "end": 13540, - "loc": { - "start": { - "line": 450, - "column": 20 - }, - "end": { - "line": 450, - "column": 27 - }, - "identifierName": "role_id" - }, - "name": "role_id" - }, - "value": { - "type": "Identifier", - "start": 13533, - "end": 13540, - "loc": { - "start": { - "line": 450, - "column": 20 - }, - "end": { - "line": 450, - "column": 27 - }, - "identifierName": "role_id" - }, - "name": "role_id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 13542, - "end": 13555, - "loc": { - "start": { - "line": 450, - "column": 29 - }, - "end": { - "line": 450, - "column": 42 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 13542, - "end": 13555, - "loc": { - "start": { - "line": 450, - "column": 29 - }, - "end": { - "line": 450, - "column": 42 - }, - "identifierName": "signing_order" - }, - "name": "signing_order" - }, - "value": { - "type": "Identifier", - "start": 13542, - "end": 13555, - "loc": { - "start": { - "line": 450, - "column": 29 - }, - "end": { - "line": 450, - "column": 42 - }, - "identifierName": "signing_order" - }, - "name": "signing_order" - }, - "extra": { - "shorthand": true - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 13560, - "end": 13565, - "loc": { - "start": { - "line": 450, - "column": 47 - }, - "end": { - "line": 450, - "column": 52 - }, - "identifierName": "route" - }, - "name": "route" - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 13579, - "end": 13709, - "loc": { - "start": { - "line": 451, - "column": 12 - }, - "end": { - "line": 455, - "column": 15 - } - }, - "argument": { - "type": "CallExpression", - "start": 13586, - "end": 13708, - "loc": { - "start": { - "line": 451, - "column": 19 - }, - "end": { - "line": 455, - "column": 14 - } - }, - "callee": { - "type": "CallExpression", - "start": 13586, - "end": 13614, - "loc": { - "start": { - "line": 451, - "column": 19 - }, - "end": { - "line": 451, - "column": 47 - } - }, - "callee": { - "type": "Identifier", - "start": 13586, - "end": 13595, - "loc": { - "start": { - "line": 451, - "column": 19 - }, - "end": { - "line": 451, - "column": 28 - }, - "identifierName": "promisify" - }, - "name": "promisify" - }, - "arguments": [ - { - "type": "Identifier", - "start": 13596, - "end": 13613, - "loc": { - "start": { - "line": 451, - "column": 29 - }, - "end": { - "line": 451, - "column": 46 - }, - "identifierName": "updateSigningRole" - }, - "name": "updateSigningRole" - } - ] - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 13615, - "end": 13707, - "loc": { - "start": { - "line": 451, - "column": 48 - }, - "end": { - "line": 455, - "column": 13 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 13631, - "end": 13642, - "loc": { - "start": { - "line": 452, - "column": 14 - }, - "end": { - "line": 452, - "column": 25 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 13631, - "end": 13633, - "loc": { - "start": { - "line": 452, - "column": 14 - }, - "end": { - "line": 452, - "column": 16 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 13635, - "end": 13642, - "loc": { - "start": { - "line": 452, - "column": 18 - }, - "end": { - "line": 452, - "column": 25 - }, - "identifierName": "role_id" - }, - "name": "role_id" - } - }, - { - "type": "ObjectProperty", - "start": 13658, - "end": 13671, - "loc": { - "start": { - "line": 453, - "column": 14 - }, - "end": { - "line": 453, - "column": 27 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 13658, - "end": 13671, - "loc": { - "start": { - "line": 453, - "column": 14 - }, - "end": { - "line": 453, - "column": 27 - }, - "identifierName": "signing_order" - }, - "name": "signing_order" - }, - "value": { - "type": "Identifier", - "start": 13658, - "end": 13671, - "loc": { - "start": { - "line": 453, - "column": 14 - }, - "end": { - "line": 453, - "column": 27 - }, - "identifierName": "signing_order" - }, - "name": "signing_order" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 13687, - "end": 13692, - "loc": { - "start": { - "line": 454, - "column": 14 - }, - "end": { - "line": 454, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 13687, - "end": 13692, - "loc": { - "start": { - "line": 454, - "column": 14 - }, - "end": { - "line": 454, - "column": 19 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 13687, - "end": 13692, - "loc": { - "start": { - "line": 454, - "column": 14 - }, - "end": { - "line": 454, - "column": 19 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 13733, - "end": 14286, - "loc": { - "start": { - "line": 458, - "column": 8 - }, - "end": { - "line": 473, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 13733, - "end": 14285, - "loc": { - "start": { - "line": 458, - "column": 8 - }, - "end": { - "line": 473, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13733, - "end": 14194, - "loc": { - "start": { - "line": 458, - "column": 8 - }, - "end": { - "line": 470, - "column": 16 - } - }, - "object": { - "type": "CallExpression", - "start": 13733, - "end": 14177, - "loc": { - "start": { - "line": 458, - "column": 8 - }, - "end": { - "line": 469, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13733, - "end": 13944, - "loc": { - "start": { - "line": 458, - "column": 8 - }, - "end": { - "line": 462, - "column": 15 - } - }, - "object": { - "type": "CallExpression", - "start": 13733, - "end": 13928, - "loc": { - "start": { - "line": 458, - "column": 8 - }, - "end": { - "line": 461, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13733, - "end": 13774, - "loc": { - "start": { - "line": 458, - "column": 8 - }, - "end": { - "line": 459, - "column": 15 - } - }, - "object": { - "type": "CallExpression", - "start": 13733, - "end": 13758, - "loc": { - "start": { - "line": 458, - "column": 8 - }, - "end": { - "line": 458, - "column": 33 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13733, - "end": 13744, - "loc": { - "start": { - "line": 458, - "column": 8 - }, - "end": { - "line": 458, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 13733, - "end": 13740, - "loc": { - "start": { - "line": 458, - "column": 8 - }, - "end": { - "line": 458, - "column": 15 - }, - "identifierName": "Promise" - }, - "name": "Promise" - }, - "property": { - "type": "Identifier", - "start": 13741, - "end": 13744, - "loc": { - "start": { - "line": 458, - "column": 16 - }, - "end": { - "line": 458, - "column": 19 - }, - "identifierName": "all" - }, - "name": "all" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 13745, - "end": 13757, - "loc": { - "start": { - "line": 458, - "column": 20 - }, - "end": { - "line": 458, - "column": 32 - }, - "identifierName": "rolesUpdated" - }, - "name": "rolesUpdated" - } - ] - }, - "property": { - "type": "Identifier", - "start": 13770, - "end": 13774, - "loc": { - "start": { - "line": 459, - "column": 11 - }, - "end": { - "line": 459, - "column": 15 - }, - "identifierName": "then" - }, - "name": "then" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 13775, - "end": 13927, - "loc": { - "start": { - "line": 459, - "column": 16 - }, - "end": { - "line": 461, - "column": 11 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 13775, - "end": 13789, - "loc": { - "start": { - "line": 459, - "column": 16 - }, - "end": { - "line": 459, - "column": 30 - }, - "identifierName": "roleUpdatesRes" - }, - "name": "roleUpdatesRes" - } - ], - "body": { - "type": "BlockStatement", - "start": 13793, - "end": 13927, - "loc": { - "start": { - "line": 459, - "column": 34 - }, - "end": { - "line": 461, - "column": 11 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 13807, - "end": 13915, - "loc": { - "start": { - "line": 460, - "column": 12 - }, - "end": { - "line": 460, - "column": 120 - } - }, - "argument": { - "type": "CallExpression", - "start": 13814, - "end": 13914, - "loc": { - "start": { - "line": 460, - "column": 19 - }, - "end": { - "line": 460, - "column": 119 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13814, - "end": 13835, - "loc": { - "start": { - "line": 460, - "column": 19 - }, - "end": { - "line": 460, - "column": 40 - } - }, - "object": { - "type": "Identifier", - "start": 13814, - "end": 13828, - "loc": { - "start": { - "line": 460, - "column": 19 - }, - "end": { - "line": 460, - "column": 33 - }, - "identifierName": "roleUpdatesRes" - }, - "name": "roleUpdatesRes" - }, - "property": { - "type": "Identifier", - "start": 13829, - "end": 13835, - "loc": { - "start": { - "line": 460, - "column": 34 - }, - "end": { - "line": 460, - "column": 40 - }, - "identifierName": "reduce" - }, - "name": "reduce" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 13836, - "end": 13907, - "loc": { - "start": { - "line": 460, - "column": 41 - }, - "end": { - "line": 460, - "column": 112 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 13837, - "end": 13850, - "loc": { - "start": { - "line": 460, - "column": 42 - }, - "end": { - "line": 460, - "column": 55 - }, - "identifierName": "generalStatus" - }, - "name": "generalStatus" - }, - { - "type": "Identifier", - "start": 13852, - "end": 13865, - "loc": { - "start": { - "line": 460, - "column": 57 - }, - "end": { - "line": 460, - "column": 70 - }, - "identifierName": "roleUpdateRes" - }, - "name": "roleUpdateRes" - } - ], - "body": { - "type": "LogicalExpression", - "start": 13871, - "end": 13906, - "loc": { - "start": { - "line": 460, - "column": 76 - }, - "end": { - "line": 460, - "column": 111 - } - }, - "left": { - "type": "Identifier", - "start": 13871, - "end": 13884, - "loc": { - "start": { - "line": 460, - "column": 76 - }, - "end": { - "line": 460, - "column": 89 - }, - "identifierName": "generalStatus" - }, - "name": "generalStatus" - }, - "operator": "&&", - "right": { - "type": "UnaryExpression", - "start": 13888, - "end": 13906, - "loc": { - "start": { - "line": 460, - "column": 93 - }, - "end": { - "line": 460, - "column": 111 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "UnaryExpression", - "start": 13889, - "end": 13906, - "loc": { - "start": { - "line": 460, - "column": 94 - }, - "end": { - "line": 460, - "column": 111 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 13890, - "end": 13906, - "loc": { - "start": { - "line": 460, - "column": 95 - }, - "end": { - "line": 460, - "column": 111 - } - }, - "object": { - "type": "Identifier", - "start": 13890, - "end": 13903, - "loc": { - "start": { - "line": 460, - "column": 95 - }, - "end": { - "line": 460, - "column": 108 - }, - "identifierName": "roleUpdateRes" - }, - "name": "roleUpdateRes" - }, - "property": { - "type": "Identifier", - "start": 13904, - "end": 13906, - "loc": { - "start": { - "line": 460, - "column": 109 - }, - "end": { - "line": 460, - "column": 111 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": false - }, - "extra": { - "parenthesizedArgument": false - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "extra": { - "parenthesized": true, - "parenStart": 13870 - } - } - }, - { - "type": "BooleanLiteral", - "start": 13909, - "end": 13913, - "loc": { - "start": { - "line": 460, - "column": 114 - }, - "end": { - "line": 460, - "column": 118 - } - }, - "value": true - } - ] - } - } - ], - "directives": [] - } - } - ] - }, - "property": { - "type": "Identifier", - "start": 13940, - "end": 13944, - "loc": { - "start": { - "line": 462, - "column": 11 - }, - "end": { - "line": 462, - "column": 15 - }, - "identifierName": "then" - }, - "name": "then" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 13945, - "end": 14176, - "loc": { - "start": { - "line": 462, - "column": 16 - }, - "end": { - "line": 469, - "column": 11 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 13945, - "end": 13960, - "loc": { - "start": { - "line": 462, - "column": 16 - }, - "end": { - "line": 462, - "column": 31 - }, - "identifierName": "allRolesUpdated" - }, - "name": "allRolesUpdated" - } - ], - "body": { - "type": "BlockStatement", - "start": 13964, - "end": 14176, - "loc": { - "start": { - "line": 462, - "column": 35 - }, - "end": { - "line": 469, - "column": 11 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 13978, - "end": 14164, - "loc": { - "start": { - "line": 463, - "column": 12 - }, - "end": { - "line": 468, - "column": 13 - } - }, - "test": { - "type": "Identifier", - "start": 13982, - "end": 13997, - "loc": { - "start": { - "line": 463, - "column": 16 - }, - "end": { - "line": 463, - "column": 31 - }, - "identifierName": "allRolesUpdated" - }, - "name": "allRolesUpdated" - }, - "consequent": { - "type": "BlockStatement", - "start": 13999, - "end": 14071, - "loc": { - "start": { - "line": 463, - "column": 33 - }, - "end": { - "line": 466, - "column": 13 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 14015, - "end": 14035, - "loc": { - "start": { - "line": 464, - "column": 14 - }, - "end": { - "line": 464, - "column": 34 - } - }, - "expression": { - "type": "CallExpression", - "start": 14015, - "end": 14034, - "loc": { - "start": { - "line": 464, - "column": 14 - }, - "end": { - "line": 464, - "column": 33 - } - }, - "callee": { - "type": "Identifier", - "start": 14015, - "end": 14023, - "loc": { - "start": { - "line": 464, - "column": 14 - }, - "end": { - "line": 464, - "column": 22 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "NullLiteral", - "start": 14024, - "end": 14028, - "loc": { - "start": { - "line": 464, - "column": 23 - }, - "end": { - "line": 464, - "column": 27 - } - } - }, - { - "type": "Identifier", - "start": 14030, - "end": 14033, - "loc": { - "start": { - "line": 464, - "column": 29 - }, - "end": { - "line": 464, - "column": 32 - }, - "identifierName": "res" - }, - "name": "res" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 14050, - "end": 14057, - "loc": { - "start": { - "line": 465, - "column": 14 - }, - "end": { - "line": 465, - "column": 21 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 14077, - "end": 14164, - "loc": { - "start": { - "line": 466, - "column": 19 - }, - "end": { - "line": 468, - "column": 13 - } - }, - "body": [ - { - "type": "ThrowStatement", - "start": 14093, - "end": 14150, - "loc": { - "start": { - "line": 467, - "column": 14 - }, - "end": { - "line": 467, - "column": 71 - } - }, - "argument": { - "type": "NewExpression", - "start": 14099, - "end": 14149, - "loc": { - "start": { - "line": 467, - "column": 20 - }, - "end": { - "line": 467, - "column": 70 - } - }, - "callee": { - "type": "Identifier", - "start": 14103, - "end": 14108, - "loc": { - "start": { - "line": 467, - "column": 24 - }, - "end": { - "line": 467, - "column": 29 - }, - "identifierName": "Error" - }, - "name": "Error" - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 14109, - "end": 14148, - "loc": { - "start": { - "line": 467, - "column": 30 - }, - "end": { - "line": 467, - "column": 69 - } - }, - "extra": { - "rawValue": "Some roles (actors) where not updated", - "raw": "'Some roles (actors) where not updated'" - }, - "value": "Some roles (actors) where not updated" - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ] - }, - "property": { - "type": "Identifier", - "start": 14189, - "end": 14194, - "loc": { - "start": { - "line": 470, - "column": 11 - }, - "end": { - "line": 470, - "column": 16 - }, - "identifierName": "catch" - }, - "name": "catch" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 14195, - "end": 14284, - "loc": { - "start": { - "line": 470, - "column": 17 - }, - "end": { - "line": 473, - "column": 11 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 14195, - "end": 14209, - "loc": { - "start": { - "line": 470, - "column": 17 - }, - "end": { - "line": 470, - "column": 31 - }, - "identifierName": "roleUpdatesErr" - }, - "name": "roleUpdatesErr" - } - ], - "body": { - "type": "BlockStatement", - "start": 14213, - "end": 14284, - "loc": { - "start": { - "line": 470, - "column": 35 - }, - "end": { - "line": 473, - "column": 11 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 14227, - "end": 14252, - "loc": { - "start": { - "line": 471, - "column": 12 - }, - "end": { - "line": 471, - "column": 37 - } - }, - "expression": { - "type": "CallExpression", - "start": 14227, - "end": 14251, - "loc": { - "start": { - "line": 471, - "column": 12 - }, - "end": { - "line": 471, - "column": 36 - } - }, - "callee": { - "type": "Identifier", - "start": 14227, - "end": 14235, - "loc": { - "start": { - "line": 471, - "column": 12 - }, - "end": { - "line": 471, - "column": 20 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 14236, - "end": 14250, - "loc": { - "start": { - "line": 471, - "column": 21 - }, - "end": { - "line": 471, - "column": 35 - }, - "identifierName": "roleUpdatesErr" - }, - "name": "roleUpdatesErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 14265, - "end": 14272, - "loc": { - "start": { - "line": 472, - "column": 12 - }, - "end": { - "line": 472, - "column": 19 - } - }, - "argument": null - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 14307, - "end": 14740, - "loc": { - "start": { - "line": 477, - "column": 4 - }, - "end": { - "line": 490, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 14313, - "end": 14739, - "loc": { - "start": { - "line": 477, - "column": 10 - }, - "end": { - "line": 490, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 14313, - "end": 14316, - "loc": { - "start": { - "line": 477, - "column": 10 - }, - "end": { - "line": 477, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 14319, - "end": 14739, - "loc": { - "start": { - "line": 477, - "column": 16 - }, - "end": { - "line": 490, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 14319, - "end": 14706, - "loc": { - "start": { - "line": 477, - "column": 16 - }, - "end": { - "line": 490, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 14319, - "end": 14696, - "loc": { - "start": { - "line": 477, - "column": 16 - }, - "end": { - "line": 489, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 14319, - "end": 14339, - "loc": { - "start": { - "line": 477, - "column": 16 - }, - "end": { - "line": 478, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 14319, - "end": 14324, - "loc": { - "start": { - "line": 477, - "column": 16 - }, - "end": { - "line": 477, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 14332, - "end": 14339, - "loc": { - "start": { - "line": 478, - "column": 7 - }, - "end": { - "line": 478, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 14340, - "end": 14662, - "loc": { - "start": { - "line": 478, - "column": 15 - }, - "end": { - "line": 489, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 14340, - "end": 14359, - "loc": { - "start": { - "line": 478, - "column": 15 - }, - "end": { - "line": 478, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 14360, - "end": 14661, - "loc": { - "start": { - "line": 478, - "column": 35 - }, - "end": { - "line": 489, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 14370, - "end": 14383, - "loc": { - "start": { - "line": 479, - "column": 8 - }, - "end": { - "line": 479, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 14370, - "end": 14376, - "loc": { - "start": { - "line": 479, - "column": 8 - }, - "end": { - "line": 479, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 14378, - "end": 14383, - "loc": { - "start": { - "line": 479, - "column": 16 - }, - "end": { - "line": 479, - "column": 21 - } - }, - "extra": { - "rawValue": "PUT", - "raw": "'PUT'" - }, - "value": "PUT" - } - }, - { - "type": "ObjectProperty", - "start": 14393, - "end": 14440, - "loc": { - "start": { - "line": 480, - "column": 8 - }, - "end": { - "line": 480, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 14393, - "end": 14397, - "loc": { - "start": { - "line": 480, - "column": 8 - }, - "end": { - "line": 480, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 14399, - "end": 14440, - "loc": { - "start": { - "line": 480, - "column": 14 - }, - "end": { - "line": 480, - "column": 55 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 14412, - "end": 14414, - "loc": { - "start": { - "line": 480, - "column": 27 - }, - "end": { - "line": 480, - "column": 29 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 14400, - "end": 14410, - "loc": { - "start": { - "line": 480, - "column": 15 - }, - "end": { - "line": 480, - "column": 25 - } - }, - "value": { - "raw": "/document/", - "cooked": "/document/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 14415, - "end": 14439, - "loc": { - "start": { - "line": 480, - "column": 30 - }, - "end": { - "line": 480, - "column": 54 - } - }, - "value": { - "raw": "/template/routing/detail", - "cooked": "/template/routing/detail" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 14450, - "end": 14519, - "loc": { - "start": { - "line": 481, - "column": 8 - }, - "end": { - "line": 484, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 14450, - "end": 14463, - "loc": { - "start": { - "line": 481, - "column": 8 - }, - "end": { - "line": 481, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 14465, - "end": 14519, - "loc": { - "start": { - "line": 481, - "column": 23 - }, - "end": { - "line": 484, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 14477, - "end": 14491, - "loc": { - "start": { - "line": 482, - "column": 10 - }, - "end": { - "line": 482, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 14477, - "end": 14481, - "loc": { - "start": { - "line": 482, - "column": 10 - }, - "end": { - "line": 482, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 14483, - "end": 14491, - "loc": { - "start": { - "line": 482, - "column": 16 - }, - "end": { - "line": 482, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 14503, - "end": 14508, - "loc": { - "start": { - "line": 483, - "column": 10 - }, - "end": { - "line": 483, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 14503, - "end": 14508, - "loc": { - "start": { - "line": 483, - "column": 10 - }, - "end": { - "line": 483, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 14503, - "end": 14508, - "loc": { - "start": { - "line": 483, - "column": 10 - }, - "end": { - "line": 483, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 14529, - "end": 14652, - "loc": { - "start": { - "line": 485, - "column": 8 - }, - "end": { - "line": 488, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 14529, - "end": 14536, - "loc": { - "start": { - "line": 485, - "column": 8 - }, - "end": { - "line": 485, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 14538, - "end": 14652, - "loc": { - "start": { - "line": 485, - "column": 17 - }, - "end": { - "line": 488, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 14550, - "end": 14584, - "loc": { - "start": { - "line": 486, - "column": 10 - }, - "end": { - "line": 486, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 14550, - "end": 14564, - "loc": { - "start": { - "line": 486, - "column": 10 - }, - "end": { - "line": 486, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 14566, - "end": 14584, - "loc": { - "start": { - "line": 486, - "column": 26 - }, - "end": { - "line": 486, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 14596, - "end": 14641, - "loc": { - "start": { - "line": 487, - "column": 10 - }, - "end": { - "line": 487, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 14596, - "end": 14612, - "loc": { - "start": { - "line": 487, - "column": 10 - }, - "end": { - "line": 487, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 14614, - "end": 14641, - "loc": { - "start": { - "line": 487, - "column": 28 - }, - "end": { - "line": 487, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 14614, - "end": 14631, - "loc": { - "start": { - "line": 487, - "column": 28 - }, - "end": { - "line": 487, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 14614, - "end": 14620, - "loc": { - "start": { - "line": 487, - "column": 28 - }, - "end": { - "line": 487, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 14621, - "end": 14631, - "loc": { - "start": { - "line": 487, - "column": 35 - }, - "end": { - "line": 487, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 14632, - "end": 14640, - "loc": { - "start": { - "line": 487, - "column": 46 - }, - "end": { - "line": 487, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 14664, - "end": 14695, - "loc": { - "start": { - "line": 489, - "column": 10 - }, - "end": { - "line": 489, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 14664, - "end": 14679, - "loc": { - "start": { - "line": 489, - "column": 10 - }, - "end": { - "line": 489, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 14680, - "end": 14694, - "loc": { - "start": { - "line": 489, - "column": 26 - }, - "end": { - "line": 489, - "column": 40 - }, - "identifierName": "updateCallback" - }, - "name": "updateCallback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 14704, - "end": 14706, - "loc": { - "start": { - "line": 490, - "column": 7 - }, - "end": { - "line": 490, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 14707, - "end": 14714, - "loc": { - "start": { - "line": 490, - "column": 10 - }, - "end": { - "line": 490, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 14716, - "end": 14738, - "loc": { - "start": { - "line": 490, - "column": 19 - }, - "end": { - "line": 490, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 14716, - "end": 14728, - "loc": { - "start": { - "line": 490, - "column": 19 - }, - "end": { - "line": 490, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 14729, - "end": 14737, - "loc": { - "start": { - "line": 490, - "column": 32 - }, - "end": { - "line": 490, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 14746, - "end": 14766, - "loc": { - "start": { - "line": 492, - "column": 4 - }, - "end": { - "line": 492, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 14746, - "end": 14765, - "loc": { - "start": { - "line": 492, - "column": 4 - }, - "end": { - "line": 492, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 14746, - "end": 14755, - "loc": { - "start": { - "line": 492, - "column": 4 - }, - "end": { - "line": 492, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 14746, - "end": 14749, - "loc": { - "start": { - "line": 492, - "column": 4 - }, - "end": { - "line": 492, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 14750, - "end": 14755, - "loc": { - "start": { - "line": 492, - "column": 8 - }, - "end": { - "line": 492, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 14756, - "end": 14764, - "loc": { - "start": { - "line": 492, - "column": 14 - }, - "end": { - "line": 492, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 14771, - "end": 14781, - "loc": { - "start": { - "line": 493, - "column": 4 - }, - "end": { - "line": 493, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 14771, - "end": 14780, - "loc": { - "start": { - "line": 493, - "column": 4 - }, - "end": { - "line": 493, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 14771, - "end": 14778, - "loc": { - "start": { - "line": 493, - "column": 4 - }, - "end": { - "line": 493, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 14771, - "end": 14774, - "loc": { - "start": { - "line": 493, - "column": 4 - }, - "end": { - "line": 493, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 14775, - "end": 14778, - "loc": { - "start": { - "line": 493, - "column": 8 - }, - "end": { - "line": 493, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Template Update Routing Details item data\n * @typedef {Object} TemplateUpdateRoutingDetailsItem\n * @property {string} default_email - default email for routing detail\n * @property {boolean} inviter_role - always `false`\n * @property {string} name - signer role (actor) name\n * @property {string} role_id - signer role (actor) unique ID\n * @property {number} signing_order - order number of signing step\n * @property {boolean} decline_by_signature - decline by signature flag\n ", - "start": 10913, - "end": 11416, - "loc": { - "start": { - "line": 380, - "column": 2 - }, - "end": { - "line": 389, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update Template Routing Details settings\n * @typedef {Object} TemplateUpdateRoutingDetailsSettings\n * @property {TemplateUpdateRoutingDetailsItem[]} template_data - array with routing details\n * @property {string[]} cc - CC emails\n * @property {TemplateRoutingDetailsCCStep[]} cc_step - array of CC steps\n * @property {string} [invite_link_instructions] - invite signing instructions\n ", - "start": 11420, - "end": 11828, - "loc": { - "start": { - "line": 391, - "column": 2 - }, - "end": { - "line": 398, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update Template Routing Details payload\n * @typedef {Object} TemplateUpdateRoutingDetailsParams\n * @property {string} id - an ID of specific Template\n * @property {string} token - your auth token\n * @property {TemplateUpdateRoutingDetailsSettings} data - update Template Routing Details settings\n ", - "start": 11832, - "end": 12150, - "loc": { - "start": { - "line": 400, - "column": 2 - }, - "end": { - "line": 406, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update Template Routing Details response data\n * @typedef {Object} TemplateUpdateRoutingDetailsResponse\n * @property {string} id - unique ID of template routing details\n * @property {string} document_id - unique ID of Template\n * @property {TemplateUpdateRoutingDetailsItem[]} data - array with routing details\n * @property {string[]} cc - CC emails\n * @property {TemplateRoutingDetailsCCStep[]} cc_step - array of CC steps\n * @property {string} invite_link_instructions - invite signing instructions\n ", - "start": 12154, - "end": 12683, - "loc": { - "start": { - "line": 408, - "column": 2 - }, - "end": { - "line": 417, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Updates Routing Details of specified template\n * @param {TemplateUpdateRoutingDetailsParams} data - update Template Routing Details payload\n * @param {function(err: ApiErrorResponse, res: TemplateUpdateRoutingDetailsResponse)} [callback] - error first node.js callback\n ", - "start": 12687, - "end": 12974, - "loc": { - "start": { - "line": 419, - "column": 2 - }, - "end": { - "line": 423, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Template Bulk Invite settings\n * @typedef {Object} TemplateBulkInviteSettings\n * @property {string} file - path to .csv file with roles and their emails. Max file size should be <= 1 Megabyte\n * @property {string} folder_id - an ID of folder where signed documents will be saved\n * @property {number} [client_timestamp] - client timestamp in seconds\n * @property {string} [document_name] - setup prefix for each document name\n * @property {string} [subject] - custom email subject\n * @property {string} [email_message] - custom email message\n ", - "start": 14789, - "end": 15359, - "loc": { - "start": { - "line": 496, - "column": 2 - }, - "end": { - "line": 505, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Send Template Bulk Invite payload\n * @typedef {Object} TemplateBulkInviteParams\n * @property {string} id - an ID of specific Template\n * @property {string} token - your auth token\n * @property {TemplateBulkInviteSettings} data - Template Bulk Invite settings\n ", - "start": 15363, - "end": 15644, - "loc": { - "start": { - "line": 507, - "column": 2 - }, - "end": { - "line": 513, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Send Template Bulk Invite response data\n * @typedef {Object} TemplateBulkInviteResponse\n * @property {string} status - status of sending bulk invites (e.g. \"job queued\")\n ", - "start": 15648, - "end": 15836, - "loc": { - "start": { - "line": 515, - "column": 2 - }, - "end": { - "line": 519, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Sends invites to sign a specified template to multiple signers at once\n * @experimental internal implementation of this method might be changed\n * @param {TemplateBulkInviteParams} data - Bulk Invite payload\n * @param {function(err: ApiErrorResponse, res: TemplateBulkInviteResponse)} [callback] - error first node.js callback\n ", - "start": 15840, - "end": 16187, - "loc": { - "start": { - "line": 521, - "column": 2 - }, - "end": { - "line": 526, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 16190, - "end": 17993, - "loc": { - "start": { - "line": 527, - "column": 2 - }, - "end": { - "line": 597, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 16197, - "end": 16207, - "loc": { - "start": { - "line": 527, - "column": 9 - }, - "end": { - "line": 527, - "column": 19 - }, - "identifierName": "bulkInvite" - }, - "name": "bulkInvite" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 16209, - "end": 16243, - "loc": { - "start": { - "line": 527, - "column": 21 - }, - "end": { - "line": 531, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 16215, - "end": 16217, - "loc": { - "start": { - "line": 528, - "column": 4 - }, - "end": { - "line": 528, - "column": 6 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 16215, - "end": 16217, - "loc": { - "start": { - "line": 528, - "column": 4 - }, - "end": { - "line": 528, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 16215, - "end": 16217, - "loc": { - "start": { - "line": 528, - "column": 4 - }, - "end": { - "line": 528, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 16223, - "end": 16228, - "loc": { - "start": { - "line": 529, - "column": 4 - }, - "end": { - "line": 529, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 16223, - "end": 16228, - "loc": { - "start": { - "line": 529, - "column": 4 - }, - "end": { - "line": 529, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 16223, - "end": 16228, - "loc": { - "start": { - "line": 529, - "column": 4 - }, - "end": { - "line": 529, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 16234, - "end": 16238, - "loc": { - "start": { - "line": 530, - "column": 4 - }, - "end": { - "line": 530, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 16234, - "end": 16238, - "loc": { - "start": { - "line": 530, - "column": 4 - }, - "end": { - "line": 530, - "column": 8 - }, - "identifierName": "data" - }, - "name": "data" - }, - "value": { - "type": "Identifier", - "start": 16234, - "end": 16238, - "loc": { - "start": { - "line": 530, - "column": 4 - }, - "end": { - "line": 530, - "column": 8 - }, - "identifierName": "data" - }, - "name": "data" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 16245, - "end": 16253, - "loc": { - "start": { - "line": 531, - "column": 5 - }, - "end": { - "line": 531, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 16255, - "end": 17993, - "loc": { - "start": { - "line": 531, - "column": 15 - }, - "end": { - "line": 597, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 16261, - "end": 16392, - "loc": { - "start": { - "line": 532, - "column": 4 - }, - "end": { - "line": 539, - "column": 13 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16267, - "end": 16391, - "loc": { - "start": { - "line": 532, - "column": 10 - }, - "end": { - "line": 539, - "column": 12 - } - }, - "id": { - "type": "ObjectPattern", - "start": 16267, - "end": 16384, - "loc": { - "start": { - "line": 532, - "column": 10 - }, - "end": { - "line": 539, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 16275, - "end": 16279, - "loc": { - "start": { - "line": 533, - "column": 6 - }, - "end": { - "line": 533, - "column": 10 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 16275, - "end": 16279, - "loc": { - "start": { - "line": 533, - "column": 6 - }, - "end": { - "line": 533, - "column": 10 - }, - "identifierName": "file" - }, - "name": "file" - }, - "value": { - "type": "Identifier", - "start": 16275, - "end": 16279, - "loc": { - "start": { - "line": 533, - "column": 6 - }, - "end": { - "line": 533, - "column": 10 - }, - "identifierName": "file" - }, - "name": "file" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 16287, - "end": 16296, - "loc": { - "start": { - "line": 534, - "column": 6 - }, - "end": { - "line": 534, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 16287, - "end": 16296, - "loc": { - "start": { - "line": 534, - "column": 6 - }, - "end": { - "line": 534, - "column": 15 - }, - "identifierName": "folder_id" - }, - "name": "folder_id" - }, - "value": { - "type": "Identifier", - "start": 16287, - "end": 16296, - "loc": { - "start": { - "line": 534, - "column": 6 - }, - "end": { - "line": 534, - "column": 15 - }, - "identifierName": "folder_id" - }, - "name": "folder_id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 16304, - "end": 16320, - "loc": { - "start": { - "line": 535, - "column": 6 - }, - "end": { - "line": 535, - "column": 22 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 16304, - "end": 16320, - "loc": { - "start": { - "line": 535, - "column": 6 - }, - "end": { - "line": 535, - "column": 22 - }, - "identifierName": "client_timestamp" - }, - "name": "client_timestamp" - }, - "value": { - "type": "Identifier", - "start": 16304, - "end": 16320, - "loc": { - "start": { - "line": 535, - "column": 6 - }, - "end": { - "line": 535, - "column": 22 - }, - "identifierName": "client_timestamp" - }, - "name": "client_timestamp" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 16328, - "end": 16341, - "loc": { - "start": { - "line": 536, - "column": 6 - }, - "end": { - "line": 536, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 16328, - "end": 16341, - "loc": { - "start": { - "line": 536, - "column": 6 - }, - "end": { - "line": 536, - "column": 19 - }, - "identifierName": "document_name" - }, - "name": "document_name" - }, - "value": { - "type": "Identifier", - "start": 16328, - "end": 16341, - "loc": { - "start": { - "line": 536, - "column": 6 - }, - "end": { - "line": 536, - "column": 19 - }, - "identifierName": "document_name" - }, - "name": "document_name" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 16349, - "end": 16356, - "loc": { - "start": { - "line": 537, - "column": 6 - }, - "end": { - "line": 537, - "column": 13 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 16349, - "end": 16356, - "loc": { - "start": { - "line": 537, - "column": 6 - }, - "end": { - "line": 537, - "column": 13 - }, - "identifierName": "subject" - }, - "name": "subject" - }, - "value": { - "type": "Identifier", - "start": 16349, - "end": 16356, - "loc": { - "start": { - "line": 537, - "column": 6 - }, - "end": { - "line": 537, - "column": 13 - }, - "identifierName": "subject" - }, - "name": "subject" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 16364, - "end": 16377, - "loc": { - "start": { - "line": 538, - "column": 6 - }, - "end": { - "line": 538, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 16364, - "end": 16377, - "loc": { - "start": { - "line": 538, - "column": 6 - }, - "end": { - "line": 538, - "column": 19 - }, - "identifierName": "email_message" - }, - "name": "email_message" - }, - "value": { - "type": "Identifier", - "start": 16364, - "end": 16377, - "loc": { - "start": { - "line": 538, - "column": 6 - }, - "end": { - "line": 538, - "column": 19 - }, - "identifierName": "email_message" - }, - "name": "email_message" - }, - "extra": { - "shorthand": true - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 16387, - "end": 16391, - "loc": { - "start": { - "line": 539, - "column": 8 - }, - "end": { - "line": 539, - "column": 12 - }, - "identifierName": "data" - }, - "name": "data" - } - } - ], - "kind": "const" - }, - { - "type": "IfStatement", - "start": 16398, - "end": 16517, - "loc": { - "start": { - "line": 541, - "column": 4 - }, - "end": { - "line": 544, - "column": 5 - } - }, - "test": { - "type": "UnaryExpression", - "start": 16402, - "end": 16418, - "loc": { - "start": { - "line": 541, - "column": 8 - }, - "end": { - "line": 541, - "column": 24 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "CallExpression", - "start": 16403, - "end": 16418, - "loc": { - "start": { - "line": 541, - "column": 9 - }, - "end": { - "line": 541, - "column": 24 - } - }, - "callee": { - "type": "Identifier", - "start": 16403, - "end": 16412, - "loc": { - "start": { - "line": 541, - "column": 9 - }, - "end": { - "line": 541, - "column": 18 - }, - "identifierName": "isCSVFile" - }, - "name": "isCSVFile" - }, - "arguments": [ - { - "type": "Identifier", - "start": 16413, - "end": 16417, - "loc": { - "start": { - "line": 541, - "column": 19 - }, - "end": { - "line": 541, - "column": 23 - }, - "identifierName": "file" - }, - "name": "file" - } - ] - }, - "extra": { - "parenthesizedArgument": false - } - }, - "consequent": { - "type": "BlockStatement", - "start": 16420, - "end": 16517, - "loc": { - "start": { - "line": 541, - "column": 26 - }, - "end": { - "line": 544, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 16428, - "end": 16497, - "loc": { - "start": { - "line": 542, - "column": 6 - }, - "end": { - "line": 542, - "column": 75 - } - }, - "expression": { - "type": "CallExpression", - "start": 16428, - "end": 16496, - "loc": { - "start": { - "line": 542, - "column": 6 - }, - "end": { - "line": 542, - "column": 74 - } - }, - "callee": { - "type": "Identifier", - "start": 16428, - "end": 16436, - "loc": { - "start": { - "line": 542, - "column": 6 - }, - "end": { - "line": 542, - "column": 14 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 16437, - "end": 16495, - "loc": { - "start": { - "line": 542, - "column": 15 - }, - "end": { - "line": 542, - "column": 73 - } - }, - "extra": { - "rawValue": "The file that was tried to be uploaded is not a CSV file", - "raw": "'The file that was tried to be uploaded is not a CSV file'" - }, - "value": "The file that was tried to be uploaded is not a CSV file" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 16504, - "end": 16511, - "loc": { - "start": { - "line": 543, - "column": 6 - }, - "end": { - "line": 543, - "column": 13 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "VariableDeclaration", - "start": 16523, - "end": 16646, - "loc": { - "start": { - "line": 546, - "column": 4 - }, - "end": { - "line": 552, - "column": 6 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16529, - "end": 16645, - "loc": { - "start": { - "line": 546, - "column": 10 - }, - "end": { - "line": 552, - "column": 5 - } - }, - "id": { - "type": "Identifier", - "start": 16529, - "end": 16537, - "loc": { - "start": { - "line": 546, - "column": 10 - }, - "end": { - "line": 546, - "column": 18 - }, - "identifierName": "metaData" - }, - "name": "metaData" - }, - "init": { - "type": "ObjectExpression", - "start": 16540, - "end": 16645, - "loc": { - "start": { - "line": 546, - "column": 21 - }, - "end": { - "line": 552, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 16548, - "end": 16557, - "loc": { - "start": { - "line": 547, - "column": 6 - }, - "end": { - "line": 547, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 16548, - "end": 16557, - "loc": { - "start": { - "line": 547, - "column": 6 - }, - "end": { - "line": 547, - "column": 15 - }, - "identifierName": "folder_id" - }, - "name": "folder_id" - }, - "value": { - "type": "Identifier", - "start": 16548, - "end": 16557, - "loc": { - "start": { - "line": 547, - "column": 6 - }, - "end": { - "line": 547, - "column": 15 - }, - "identifierName": "folder_id" - }, - "name": "folder_id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 16565, - "end": 16581, - "loc": { - "start": { - "line": 548, - "column": 6 - }, - "end": { - "line": 548, - "column": 22 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 16565, - "end": 16581, - "loc": { - "start": { - "line": 548, - "column": 6 - }, - "end": { - "line": 548, - "column": 22 - }, - "identifierName": "client_timestamp" - }, - "name": "client_timestamp" - }, - "value": { - "type": "Identifier", - "start": 16565, - "end": 16581, - "loc": { - "start": { - "line": 548, - "column": 6 - }, - "end": { - "line": 548, - "column": 22 - }, - "identifierName": "client_timestamp" - }, - "name": "client_timestamp" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 16589, - "end": 16602, - "loc": { - "start": { - "line": 549, - "column": 6 - }, - "end": { - "line": 549, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 16589, - "end": 16602, - "loc": { - "start": { - "line": 549, - "column": 6 - }, - "end": { - "line": 549, - "column": 19 - }, - "identifierName": "document_name" - }, - "name": "document_name" - }, - "value": { - "type": "Identifier", - "start": 16589, - "end": 16602, - "loc": { - "start": { - "line": 549, - "column": 6 - }, - "end": { - "line": 549, - "column": 19 - }, - "identifierName": "document_name" - }, - "name": "document_name" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 16610, - "end": 16617, - "loc": { - "start": { - "line": 550, - "column": 6 - }, - "end": { - "line": 550, - "column": 13 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 16610, - "end": 16617, - "loc": { - "start": { - "line": 550, - "column": 6 - }, - "end": { - "line": 550, - "column": 13 - }, - "identifierName": "subject" - }, - "name": "subject" - }, - "value": { - "type": "Identifier", - "start": 16610, - "end": 16617, - "loc": { - "start": { - "line": 550, - "column": 6 - }, - "end": { - "line": 550, - "column": 13 - }, - "identifierName": "subject" - }, - "name": "subject" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 16625, - "end": 16638, - "loc": { - "start": { - "line": 551, - "column": 6 - }, - "end": { - "line": 551, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 16625, - "end": 16638, - "loc": { - "start": { - "line": 551, - "column": 6 - }, - "end": { - "line": 551, - "column": 19 - }, - "identifierName": "email_message" - }, - "name": "email_message" - }, - "value": { - "type": "Identifier", - "start": 16625, - "end": 16638, - "loc": { - "start": { - "line": 551, - "column": 6 - }, - "end": { - "line": 551, - "column": 19 - }, - "identifierName": "email_message" - }, - "name": "email_message" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 16652, - "end": 16699, - "loc": { - "start": { - "line": 554, - "column": 4 - }, - "end": { - "line": 554, - "column": 51 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16658, - "end": 16698, - "loc": { - "start": { - "line": 554, - "column": 10 - }, - "end": { - "line": 554, - "column": 50 - } - }, - "id": { - "type": "Identifier", - "start": 16658, - "end": 16674, - "loc": { - "start": { - "line": 554, - "column": 10 - }, - "end": { - "line": 554, - "column": 26 - }, - "identifierName": "formDataBoundary" - }, - "name": "formDataBoundary" - }, - "init": { - "type": "CallExpression", - "start": 16677, - "end": 16698, - "loc": { - "start": { - "line": 554, - "column": 29 - }, - "end": { - "line": 554, - "column": 50 - } - }, - "callee": { - "type": "Identifier", - "start": 16677, - "end": 16696, - "loc": { - "start": { - "line": 554, - "column": 29 - }, - "end": { - "line": 554, - "column": 48 - }, - "identifierName": "getFormDataBoundary" - }, - "name": "getFormDataBoundary" - }, - "arguments": [] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 16704, - "end": 17127, - "loc": { - "start": { - "line": 555, - "column": 4 - }, - "end": { - "line": 563, - "column": 48 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16710, - "end": 17126, - "loc": { - "start": { - "line": 555, - "column": 10 - }, - "end": { - "line": 563, - "column": 47 - } - }, - "id": { - "type": "Identifier", - "start": 16710, - "end": 16727, - "loc": { - "start": { - "line": 555, - "column": 10 - }, - "end": { - "line": 555, - "column": 27 - }, - "identifierName": "formDataBeginning" - }, - "name": "formDataBeginning" - }, - "init": { - "type": "CallExpression", - "start": 16730, - "end": 17126, - "loc": { - "start": { - "line": 555, - "column": 30 - }, - "end": { - "line": 563, - "column": 47 - } - }, - "callee": { - "type": "MemberExpression", - "start": 16730, - "end": 17092, - "loc": { - "start": { - "line": 555, - "column": 30 - }, - "end": { - "line": 563, - "column": 13 - } - }, - "object": { - "type": "CallExpression", - "start": 16730, - "end": 17078, - "loc": { - "start": { - "line": 555, - "column": 30 - }, - "end": { - "line": 562, - "column": 94 - } - }, - "callee": { - "type": "MemberExpression", - "start": 16730, - "end": 16997, - "loc": { - "start": { - "line": 555, - "column": 30 - }, - "end": { - "line": 562, - "column": 13 - } - }, - "object": { - "type": "CallExpression", - "start": 16730, - "end": 16983, - "loc": { - "start": { - "line": 555, - "column": 30 - }, - "end": { - "line": 561, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 16730, - "end": 16954, - "loc": { - "start": { - "line": 555, - "column": 30 - }, - "end": { - "line": 561, - "column": 13 - } - }, - "object": { - "type": "CallExpression", - "start": 16730, - "end": 16940, - "loc": { - "start": { - "line": 555, - "column": 30 - }, - "end": { - "line": 560, - "column": 122 - } - }, - "callee": { - "type": "MemberExpression", - "start": 16730, - "end": 16775, - "loc": { - "start": { - "line": 555, - "column": 30 - }, - "end": { - "line": 557, - "column": 13 - } - }, - "object": { - "type": "CallExpression", - "start": 16730, - "end": 16761, - "loc": { - "start": { - "line": 555, - "column": 30 - }, - "end": { - "line": 556, - "column": 24 - } - }, - "callee": { - "type": "MemberExpression", - "start": 16730, - "end": 16751, - "loc": { - "start": { - "line": 555, - "column": 30 - }, - "end": { - "line": 556, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 16730, - "end": 16736, - "loc": { - "start": { - "line": 555, - "column": 30 - }, - "end": { - "line": 555, - "column": 36 - }, - "identifierName": "Object" - }, - "name": "Object" - }, - "property": { - "type": "Identifier", - "start": 16744, - "end": 16751, - "loc": { - "start": { - "line": 556, - "column": 7 - }, - "end": { - "line": 556, - "column": 14 - }, - "identifierName": "entries" - }, - "name": "entries" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 16752, - "end": 16760, - "loc": { - "start": { - "line": 556, - "column": 15 - }, - "end": { - "line": 556, - "column": 23 - }, - "identifierName": "metaData" - }, - "name": "metaData" - } - ] - }, - "property": { - "type": "Identifier", - "start": 16769, - "end": 16775, - "loc": { - "start": { - "line": 557, - "column": 7 - }, - "end": { - "line": 557, - "column": 13 - }, - "identifierName": "reduce" - }, - "name": "reduce" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 16776, - "end": 16935, - "loc": { - "start": { - "line": 557, - "column": 14 - }, - "end": { - "line": 560, - "column": 117 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 16777, - "end": 16785, - "loc": { - "start": { - "line": 557, - "column": 15 - }, - "end": { - "line": 557, - "column": 23 - }, - "identifierName": "formData" - }, - "name": "formData" - }, - { - "type": "ArrayPattern", - "start": 16787, - "end": 16825, - "loc": { - "start": { - "line": 557, - "column": 25 - }, - "end": { - "line": 560, - "column": 7 - } - }, - "elements": [ - { - "type": "Identifier", - "start": 16797, - "end": 16801, - "loc": { - "start": { - "line": 558, - "column": 8 - }, - "end": { - "line": 558, - "column": 12 - }, - "identifierName": "name" - }, - "name": "name" - }, - { - "type": "Identifier", - "start": 16811, - "end": 16816, - "loc": { - "start": { - "line": 559, - "column": 8 - }, - "end": { - "line": 559, - "column": 13 - }, - "identifierName": "value" - }, - "name": "value" - } - ] - } - ], - "body": { - "type": "TemplateLiteral", - "start": 16830, - "end": 16935, - "loc": { - "start": { - "line": 560, - "column": 12 - }, - "end": { - "line": 560, - "column": 117 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 16833, - "end": 16841, - "loc": { - "start": { - "line": 560, - "column": 15 - }, - "end": { - "line": 560, - "column": 23 - }, - "identifierName": "formData" - }, - "name": "formData" - }, - { - "type": "Identifier", - "start": 16846, - "end": 16862, - "loc": { - "start": { - "line": 560, - "column": 28 - }, - "end": { - "line": 560, - "column": 44 - }, - "identifierName": "formDataBoundary" - }, - "name": "formDataBoundary" - }, - { - "type": "Identifier", - "start": 16907, - "end": 16911, - "loc": { - "start": { - "line": 560, - "column": 89 - }, - "end": { - "line": 560, - "column": 93 - }, - "identifierName": "name" - }, - "name": "name" - }, - { - "type": "Identifier", - "start": 16924, - "end": 16929, - "loc": { - "start": { - "line": 560, - "column": 106 - }, - "end": { - "line": 560, - "column": 111 - }, - "identifierName": "value" - }, - "name": "value" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 16831, - "end": 16831, - "loc": { - "start": { - "line": 560, - "column": 13 - }, - "end": { - "line": 560, - "column": 13 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 16842, - "end": 16844, - "loc": { - "start": { - "line": 560, - "column": 24 - }, - "end": { - "line": 560, - "column": 26 - } - }, - "value": { - "raw": "--", - "cooked": "--" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 16863, - "end": 16905, - "loc": { - "start": { - "line": 560, - "column": 45 - }, - "end": { - "line": 560, - "column": 87 - } - }, - "value": { - "raw": "\\r\\nContent-Disposition: form-data; name=\"", - "cooked": "\r\nContent-Disposition: form-data; name=\"" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 16912, - "end": 16922, - "loc": { - "start": { - "line": 560, - "column": 94 - }, - "end": { - "line": 560, - "column": 104 - } - }, - "value": { - "raw": "\";\\r\\n\\r\\n", - "cooked": "\";\r\n\r\n" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 16930, - "end": 16934, - "loc": { - "start": { - "line": 560, - "column": 112 - }, - "end": { - "line": 560, - "column": 116 - } - }, - "value": { - "raw": "\\r\\n", - "cooked": "\r\n" - }, - "tail": true - } - ] - } - }, - { - "type": "StringLiteral", - "start": 16937, - "end": 16939, - "loc": { - "start": { - "line": 560, - "column": 119 - }, - "end": { - "line": 560, - "column": 121 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - ] - }, - "property": { - "type": "Identifier", - "start": 16948, - "end": 16954, - "loc": { - "start": { - "line": 561, - "column": 7 - }, - "end": { - "line": 561, - "column": 13 - }, - "identifierName": "concat" - }, - "name": "concat" - }, - "computed": false - }, - "arguments": [ - { - "type": "TemplateLiteral", - "start": 16955, - "end": 16982, - "loc": { - "start": { - "line": 561, - "column": 14 - }, - "end": { - "line": 561, - "column": 41 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 16960, - "end": 16976, - "loc": { - "start": { - "line": 561, - "column": 19 - }, - "end": { - "line": 561, - "column": 35 - }, - "identifierName": "formDataBoundary" - }, - "name": "formDataBoundary" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 16956, - "end": 16958, - "loc": { - "start": { - "line": 561, - "column": 15 - }, - "end": { - "line": 561, - "column": 17 - } - }, - "value": { - "raw": "--", - "cooked": "--" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 16977, - "end": 16981, - "loc": { - "start": { - "line": 561, - "column": 36 - }, - "end": { - "line": 561, - "column": 40 - } - }, - "value": { - "raw": "\\r\\n", - "cooked": "\r\n" - }, - "tail": true - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 16991, - "end": 16997, - "loc": { - "start": { - "line": 562, - "column": 7 - }, - "end": { - "line": 562, - "column": 13 - }, - "identifierName": "concat" - }, - "name": "concat" - }, - "computed": false - }, - "arguments": [ - { - "type": "TemplateLiteral", - "start": 16998, - "end": 17077, - "loc": { - "start": { - "line": 562, - "column": 14 - }, - "end": { - "line": 562, - "column": 93 - } - }, - "expressions": [ - { - "type": "CallExpression", - "start": 17056, - "end": 17070, - "loc": { - "start": { - "line": 562, - "column": 72 - }, - "end": { - "line": 562, - "column": 86 - } - }, - "callee": { - "type": "Identifier", - "start": 17056, - "end": 17064, - "loc": { - "start": { - "line": 562, - "column": 72 - }, - "end": { - "line": 562, - "column": 80 - }, - "identifierName": "basename" - }, - "name": "basename" - }, - "arguments": [ - { - "type": "Identifier", - "start": 17065, - "end": 17069, - "loc": { - "start": { - "line": 562, - "column": 81 - }, - "end": { - "line": 562, - "column": 85 - }, - "identifierName": "file" - }, - "name": "file" - } - ] - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 16999, - "end": 17054, - "loc": { - "start": { - "line": 562, - "column": 15 - }, - "end": { - "line": 562, - "column": 70 - } - }, - "value": { - "raw": "Content-Disposition: form-data; name=\"file\"; filename=\"", - "cooked": "Content-Disposition: form-data; name=\"file\"; filename=\"" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 17071, - "end": 17076, - "loc": { - "start": { - "line": 562, - "column": 87 - }, - "end": { - "line": 562, - "column": 92 - } - }, - "value": { - "raw": "\"\\r\\n", - "cooked": "\"\r\n" - }, - "tail": true - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 17086, - "end": 17092, - "loc": { - "start": { - "line": 563, - "column": 7 - }, - "end": { - "line": 563, - "column": 13 - }, - "identifierName": "concat" - }, - "name": "concat" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 17093, - "end": 17125, - "loc": { - "start": { - "line": 563, - "column": 14 - }, - "end": { - "line": 563, - "column": 46 - } - }, - "extra": { - "rawValue": "Content-Type: text/csv\r\n\r\n", - "raw": "'Content-Type: text/csv\\r\\n\\r\\n'" - }, - "value": "Content-Type: text/csv\r\n\r\n" - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 17132, - "end": 17187, - "loc": { - "start": { - "line": 564, - "column": 4 - }, - "end": { - "line": 564, - "column": 59 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 17138, - "end": 17186, - "loc": { - "start": { - "line": 564, - "column": 10 - }, - "end": { - "line": 564, - "column": 58 - } - }, - "id": { - "type": "Identifier", - "start": 17138, - "end": 17152, - "loc": { - "start": { - "line": 564, - "column": 10 - }, - "end": { - "line": 564, - "column": 24 - }, - "identifierName": "formDataEnding" - }, - "name": "formDataEnding" - }, - "init": { - "type": "TemplateLiteral", - "start": 17155, - "end": 17186, - "loc": { - "start": { - "line": 564, - "column": 27 - }, - "end": { - "line": 564, - "column": 58 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 17164, - "end": 17180, - "loc": { - "start": { - "line": 564, - "column": 36 - }, - "end": { - "line": 564, - "column": 52 - }, - "identifierName": "formDataBoundary" - }, - "name": "formDataBoundary" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 17156, - "end": 17162, - "loc": { - "start": { - "line": 564, - "column": 28 - }, - "end": { - "line": 564, - "column": 34 - } - }, - "value": { - "raw": "\\r\\n--", - "cooked": "\r\n--" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 17181, - "end": 17185, - "loc": { - "start": { - "line": 564, - "column": 53 - }, - "end": { - "line": 564, - "column": 57 - } - }, - "value": { - "raw": "\\r\\n", - "cooked": "\r\n" - }, - "tail": true - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 17192, - "end": 17208, - "loc": { - "start": { - "line": 565, - "column": 4 - }, - "end": { - "line": 565, - "column": 20 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 17196, - "end": 17207, - "loc": { - "start": { - "line": 565, - "column": 8 - }, - "end": { - "line": 565, - "column": 19 - } - }, - "id": { - "type": "Identifier", - "start": 17196, - "end": 17207, - "loc": { - "start": { - "line": 565, - "column": 8 - }, - "end": { - "line": 565, - "column": 19 - }, - "identifierName": "fileContent" - }, - "name": "fileContent" - }, - "init": null - } - ], - "kind": "let" - }, - { - "type": "TryStatement", - "start": 17214, - "end": 17320, - "loc": { - "start": { - "line": 567, - "column": 4 - }, - "end": { - "line": 572, - "column": 5 - } - }, - "block": { - "type": "BlockStatement", - "start": 17218, - "end": 17265, - "loc": { - "start": { - "line": 567, - "column": 8 - }, - "end": { - "line": 569, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 17226, - "end": 17259, - "loc": { - "start": { - "line": 568, - "column": 6 - }, - "end": { - "line": 568, - "column": 39 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 17226, - "end": 17258, - "loc": { - "start": { - "line": 568, - "column": 6 - }, - "end": { - "line": 568, - "column": 38 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 17226, - "end": 17237, - "loc": { - "start": { - "line": 568, - "column": 6 - }, - "end": { - "line": 568, - "column": 17 - }, - "identifierName": "fileContent" - }, - "name": "fileContent" - }, - "right": { - "type": "CallExpression", - "start": 17240, - "end": 17258, - "loc": { - "start": { - "line": 568, - "column": 20 - }, - "end": { - "line": 568, - "column": 38 - } - }, - "callee": { - "type": "Identifier", - "start": 17240, - "end": 17252, - "loc": { - "start": { - "line": 568, - "column": 20 - }, - "end": { - "line": 568, - "column": 32 - }, - "identifierName": "readFileSync" - }, - "name": "readFileSync" - }, - "arguments": [ - { - "type": "Identifier", - "start": 17253, - "end": 17257, - "loc": { - "start": { - "line": 568, - "column": 33 - }, - "end": { - "line": 568, - "column": 37 - }, - "identifierName": "file" - }, - "name": "file" - } - ] - } - } - } - ], - "directives": [] - }, - "handler": { - "type": "CatchClause", - "start": 17266, - "end": 17320, - "loc": { - "start": { - "line": 569, - "column": 6 - }, - "end": { - "line": 572, - "column": 5 - } - }, - "param": { - "type": "Identifier", - "start": 17273, - "end": 17276, - "loc": { - "start": { - "line": 569, - "column": 13 - }, - "end": { - "line": 569, - "column": 16 - }, - "identifierName": "err" - }, - "name": "err" - }, - "body": { - "type": "BlockStatement", - "start": 17278, - "end": 17320, - "loc": { - "start": { - "line": 569, - "column": 18 - }, - "end": { - "line": 572, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 17286, - "end": 17300, - "loc": { - "start": { - "line": 570, - "column": 6 - }, - "end": { - "line": 570, - "column": 20 - } - }, - "expression": { - "type": "CallExpression", - "start": 17286, - "end": 17299, - "loc": { - "start": { - "line": 570, - "column": 6 - }, - "end": { - "line": 570, - "column": 19 - } - }, - "callee": { - "type": "Identifier", - "start": 17286, - "end": 17294, - "loc": { - "start": { - "line": 570, - "column": 6 - }, - "end": { - "line": 570, - "column": 14 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 17295, - "end": 17298, - "loc": { - "start": { - "line": 570, - "column": 15 - }, - "end": { - "line": 570, - "column": 18 - }, - "identifierName": "err" - }, - "name": "err" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 17307, - "end": 17314, - "loc": { - "start": { - "line": 571, - "column": 6 - }, - "end": { - "line": 571, - "column": 13 - } - }, - "argument": null - } - ], - "directives": [] - } - }, - "guardedHandlers": [], - "finalizer": null - }, - { - "type": "VariableDeclaration", - "start": 17326, - "end": 17496, - "loc": { - "start": { - "line": 574, - "column": 4 - }, - "end": { - "line": 578, - "column": 7 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 17332, - "end": 17495, - "loc": { - "start": { - "line": 574, - "column": 10 - }, - "end": { - "line": 578, - "column": 6 - } - }, - "id": { - "type": "Identifier", - "start": 17332, - "end": 17339, - "loc": { - "start": { - "line": 574, - "column": 10 - }, - "end": { - "line": 574, - "column": 17 - }, - "identifierName": "payload" - }, - "name": "payload" - }, - "init": { - "type": "CallExpression", - "start": 17342, - "end": 17495, - "loc": { - "start": { - "line": 574, - "column": 20 - }, - "end": { - "line": 578, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 17342, - "end": 17355, - "loc": { - "start": { - "line": 574, - "column": 20 - }, - "end": { - "line": 574, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 17342, - "end": 17348, - "loc": { - "start": { - "line": 574, - "column": 20 - }, - "end": { - "line": 574, - "column": 26 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 17349, - "end": 17355, - "loc": { - "start": { - "line": 574, - "column": 27 - }, - "end": { - "line": 574, - "column": 33 - }, - "identifierName": "concat" - }, - "name": "concat" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrayExpression", - "start": 17356, - "end": 17494, - "loc": { - "start": { - "line": 574, - "column": 34 - }, - "end": { - "line": 578, - "column": 5 - } - }, - "elements": [ - { - "type": "CallExpression", - "start": 17364, - "end": 17402, - "loc": { - "start": { - "line": 575, - "column": 6 - }, - "end": { - "line": 575, - "column": 44 - } - }, - "callee": { - "type": "MemberExpression", - "start": 17364, - "end": 17375, - "loc": { - "start": { - "line": 575, - "column": 6 - }, - "end": { - "line": 575, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 17364, - "end": 17370, - "loc": { - "start": { - "line": 575, - "column": 6 - }, - "end": { - "line": 575, - "column": 12 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 17371, - "end": 17375, - "loc": { - "start": { - "line": 575, - "column": 13 - }, - "end": { - "line": 575, - "column": 17 - }, - "identifierName": "from" - }, - "name": "from" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 17376, - "end": 17393, - "loc": { - "start": { - "line": 575, - "column": 18 - }, - "end": { - "line": 575, - "column": 35 - }, - "identifierName": "formDataBeginning" - }, - "name": "formDataBeginning" - }, - { - "type": "StringLiteral", - "start": 17395, - "end": 17401, - "loc": { - "start": { - "line": 575, - "column": 37 - }, - "end": { - "line": 575, - "column": 43 - } - }, - "extra": { - "rawValue": "utf8", - "raw": "'utf8'" - }, - "value": "utf8" - } - ] - }, - { - "type": "CallExpression", - "start": 17410, - "end": 17444, - "loc": { - "start": { - "line": 576, - "column": 6 - }, - "end": { - "line": 576, - "column": 40 - } - }, - "callee": { - "type": "MemberExpression", - "start": 17410, - "end": 17421, - "loc": { - "start": { - "line": 576, - "column": 6 - }, - "end": { - "line": 576, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 17410, - "end": 17416, - "loc": { - "start": { - "line": 576, - "column": 6 - }, - "end": { - "line": 576, - "column": 12 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 17417, - "end": 17421, - "loc": { - "start": { - "line": 576, - "column": 13 - }, - "end": { - "line": 576, - "column": 17 - }, - "identifierName": "from" - }, - "name": "from" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 17422, - "end": 17433, - "loc": { - "start": { - "line": 576, - "column": 18 - }, - "end": { - "line": 576, - "column": 29 - }, - "identifierName": "fileContent" - }, - "name": "fileContent" - }, - { - "type": "StringLiteral", - "start": 17435, - "end": 17443, - "loc": { - "start": { - "line": 576, - "column": 31 - }, - "end": { - "line": 576, - "column": 39 - } - }, - "extra": { - "rawValue": "binary", - "raw": "'binary'" - }, - "value": "binary" - } - ] - }, - { - "type": "CallExpression", - "start": 17452, - "end": 17487, - "loc": { - "start": { - "line": 577, - "column": 6 - }, - "end": { - "line": 577, - "column": 41 - } - }, - "callee": { - "type": "MemberExpression", - "start": 17452, - "end": 17463, - "loc": { - "start": { - "line": 577, - "column": 6 - }, - "end": { - "line": 577, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 17452, - "end": 17458, - "loc": { - "start": { - "line": 577, - "column": 6 - }, - "end": { - "line": 577, - "column": 12 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 17459, - "end": 17463, - "loc": { - "start": { - "line": 577, - "column": 13 - }, - "end": { - "line": 577, - "column": 17 - }, - "identifierName": "from" - }, - "name": "from" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 17464, - "end": 17478, - "loc": { - "start": { - "line": 577, - "column": 18 - }, - "end": { - "line": 577, - "column": 32 - }, - "identifierName": "formDataEnding" - }, - "name": "formDataEnding" - }, - { - "type": "StringLiteral", - "start": 17480, - "end": 17486, - "loc": { - "start": { - "line": 577, - "column": 34 - }, - "end": { - "line": 577, - "column": 40 - } - }, - "extra": { - "rawValue": "utf8", - "raw": "'utf8'" - }, - "value": "utf8" - } - ] - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 17502, - "end": 17949, - "loc": { - "start": { - "line": 580, - "column": 4 - }, - "end": { - "line": 593, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 17508, - "end": 17948, - "loc": { - "start": { - "line": 580, - "column": 10 - }, - "end": { - "line": 593, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 17508, - "end": 17511, - "loc": { - "start": { - "line": 580, - "column": 10 - }, - "end": { - "line": 580, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 17514, - "end": 17948, - "loc": { - "start": { - "line": 580, - "column": 16 - }, - "end": { - "line": 593, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 17514, - "end": 17915, - "loc": { - "start": { - "line": 580, - "column": 16 - }, - "end": { - "line": 593, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 17514, - "end": 17905, - "loc": { - "start": { - "line": 580, - "column": 16 - }, - "end": { - "line": 592, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 17514, - "end": 17534, - "loc": { - "start": { - "line": 580, - "column": 16 - }, - "end": { - "line": 581, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 17514, - "end": 17519, - "loc": { - "start": { - "line": 580, - "column": 16 - }, - "end": { - "line": 580, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 17527, - "end": 17534, - "loc": { - "start": { - "line": 581, - "column": 7 - }, - "end": { - "line": 581, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 17535, - "end": 17877, - "loc": { - "start": { - "line": 581, - "column": 15 - }, - "end": { - "line": 592, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 17535, - "end": 17554, - "loc": { - "start": { - "line": 581, - "column": 15 - }, - "end": { - "line": 581, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 17555, - "end": 17876, - "loc": { - "start": { - "line": 581, - "column": 35 - }, - "end": { - "line": 592, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 17565, - "end": 17579, - "loc": { - "start": { - "line": 582, - "column": 8 - }, - "end": { - "line": 582, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 17565, - "end": 17571, - "loc": { - "start": { - "line": 582, - "column": 8 - }, - "end": { - "line": 582, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 17573, - "end": 17579, - "loc": { - "start": { - "line": 582, - "column": 16 - }, - "end": { - "line": 582, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 17589, - "end": 17623, - "loc": { - "start": { - "line": 583, - "column": 8 - }, - "end": { - "line": 583, - "column": 42 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 17589, - "end": 17593, - "loc": { - "start": { - "line": 583, - "column": 8 - }, - "end": { - "line": 583, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 17595, - "end": 17623, - "loc": { - "start": { - "line": 583, - "column": 14 - }, - "end": { - "line": 583, - "column": 42 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 17608, - "end": 17610, - "loc": { - "start": { - "line": 583, - "column": 27 - }, - "end": { - "line": 583, - "column": 29 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 17596, - "end": 17606, - "loc": { - "start": { - "line": 583, - "column": 15 - }, - "end": { - "line": 583, - "column": 25 - } - }, - "value": { - "raw": "/template/", - "cooked": "/template/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 17611, - "end": 17622, - "loc": { - "start": { - "line": 583, - "column": 30 - }, - "end": { - "line": 583, - "column": 41 - } - }, - "value": { - "raw": "/bulkinvite", - "cooked": "/bulkinvite" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 17633, - "end": 17702, - "loc": { - "start": { - "line": 584, - "column": 8 - }, - "end": { - "line": 587, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 17633, - "end": 17646, - "loc": { - "start": { - "line": 584, - "column": 8 - }, - "end": { - "line": 584, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 17648, - "end": 17702, - "loc": { - "start": { - "line": 584, - "column": 23 - }, - "end": { - "line": 587, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 17660, - "end": 17674, - "loc": { - "start": { - "line": 585, - "column": 10 - }, - "end": { - "line": 585, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 17660, - "end": 17664, - "loc": { - "start": { - "line": 585, - "column": 10 - }, - "end": { - "line": 585, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 17666, - "end": 17674, - "loc": { - "start": { - "line": 585, - "column": 16 - }, - "end": { - "line": 585, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 17686, - "end": 17691, - "loc": { - "start": { - "line": 586, - "column": 10 - }, - "end": { - "line": 586, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 17686, - "end": 17691, - "loc": { - "start": { - "line": 586, - "column": 10 - }, - "end": { - "line": 586, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 17686, - "end": 17691, - "loc": { - "start": { - "line": 586, - "column": 10 - }, - "end": { - "line": 586, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 17712, - "end": 17867, - "loc": { - "start": { - "line": 588, - "column": 8 - }, - "end": { - "line": 591, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 17712, - "end": 17719, - "loc": { - "start": { - "line": 588, - "column": 8 - }, - "end": { - "line": 588, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 17721, - "end": 17867, - "loc": { - "start": { - "line": 588, - "column": 17 - }, - "end": { - "line": 591, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 17733, - "end": 17800, - "loc": { - "start": { - "line": 589, - "column": 10 - }, - "end": { - "line": 589, - "column": 77 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 17733, - "end": 17747, - "loc": { - "start": { - "line": 589, - "column": 10 - }, - "end": { - "line": 589, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "TemplateLiteral", - "start": 17749, - "end": 17800, - "loc": { - "start": { - "line": 589, - "column": 26 - }, - "end": { - "line": 589, - "column": 77 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 17782, - "end": 17798, - "loc": { - "start": { - "line": 589, - "column": 59 - }, - "end": { - "line": 589, - "column": 75 - }, - "identifierName": "formDataBoundary" - }, - "name": "formDataBoundary" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 17750, - "end": 17780, - "loc": { - "start": { - "line": 589, - "column": 27 - }, - "end": { - "line": 589, - "column": 57 - } - }, - "value": { - "raw": "multipart/form-data; boundary=", - "cooked": "multipart/form-data; boundary=" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 17799, - "end": 17799, - "loc": { - "start": { - "line": 589, - "column": 76 - }, - "end": { - "line": 589, - "column": 76 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 17812, - "end": 17856, - "loc": { - "start": { - "line": 590, - "column": 10 - }, - "end": { - "line": 590, - "column": 54 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 17812, - "end": 17828, - "loc": { - "start": { - "line": 590, - "column": 10 - }, - "end": { - "line": 590, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 17830, - "end": 17856, - "loc": { - "start": { - "line": 590, - "column": 28 - }, - "end": { - "line": 590, - "column": 54 - } - }, - "callee": { - "type": "MemberExpression", - "start": 17830, - "end": 17847, - "loc": { - "start": { - "line": 590, - "column": 28 - }, - "end": { - "line": 590, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 17830, - "end": 17836, - "loc": { - "start": { - "line": 590, - "column": 28 - }, - "end": { - "line": 590, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 17837, - "end": 17847, - "loc": { - "start": { - "line": 590, - "column": 35 - }, - "end": { - "line": 590, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 17848, - "end": 17855, - "loc": { - "start": { - "line": 590, - "column": 46 - }, - "end": { - "line": 590, - "column": 53 - }, - "identifierName": "payload" - }, - "name": "payload" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 17879, - "end": 17904, - "loc": { - "start": { - "line": 592, - "column": 10 - }, - "end": { - "line": 592, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 17879, - "end": 17894, - "loc": { - "start": { - "line": 592, - "column": 10 - }, - "end": { - "line": 592, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 17895, - "end": 17903, - "loc": { - "start": { - "line": 592, - "column": 26 - }, - "end": { - "line": 592, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 17913, - "end": 17915, - "loc": { - "start": { - "line": 593, - "column": 7 - }, - "end": { - "line": 593, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 17916, - "end": 17923, - "loc": { - "start": { - "line": 593, - "column": 10 - }, - "end": { - "line": 593, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 17925, - "end": 17947, - "loc": { - "start": { - "line": 593, - "column": 19 - }, - "end": { - "line": 593, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 17925, - "end": 17937, - "loc": { - "start": { - "line": 593, - "column": 19 - }, - "end": { - "line": 593, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 17938, - "end": 17946, - "loc": { - "start": { - "line": 593, - "column": 32 - }, - "end": { - "line": 593, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 17955, - "end": 17974, - "loc": { - "start": { - "line": 595, - "column": 4 - }, - "end": { - "line": 595, - "column": 23 - } - }, - "expression": { - "type": "CallExpression", - "start": 17955, - "end": 17973, - "loc": { - "start": { - "line": 595, - "column": 4 - }, - "end": { - "line": 595, - "column": 22 - } - }, - "callee": { - "type": "MemberExpression", - "start": 17955, - "end": 17964, - "loc": { - "start": { - "line": 595, - "column": 4 - }, - "end": { - "line": 595, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 17955, - "end": 17958, - "loc": { - "start": { - "line": 595, - "column": 4 - }, - "end": { - "line": 595, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 17959, - "end": 17964, - "loc": { - "start": { - "line": 595, - "column": 8 - }, - "end": { - "line": 595, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 17965, - "end": 17972, - "loc": { - "start": { - "line": 595, - "column": 14 - }, - "end": { - "line": 595, - "column": 21 - }, - "identifierName": "payload" - }, - "name": "payload" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 17979, - "end": 17989, - "loc": { - "start": { - "line": 596, - "column": 4 - }, - "end": { - "line": 596, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 17979, - "end": 17988, - "loc": { - "start": { - "line": 596, - "column": 4 - }, - "end": { - "line": 596, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 17979, - "end": 17986, - "loc": { - "start": { - "line": 596, - "column": 4 - }, - "end": { - "line": 596, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 17979, - "end": 17982, - "loc": { - "start": { - "line": 596, - "column": 4 - }, - "end": { - "line": 596, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 17983, - "end": 17986, - "loc": { - "start": { - "line": 596, - "column": 8 - }, - "end": { - "line": 596, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Template Bulk Invite settings\n * @typedef {Object} TemplateBulkInviteSettings\n * @property {string} file - path to .csv file with roles and their emails. Max file size should be <= 1 Megabyte\n * @property {string} folder_id - an ID of folder where signed documents will be saved\n * @property {number} [client_timestamp] - client timestamp in seconds\n * @property {string} [document_name] - setup prefix for each document name\n * @property {string} [subject] - custom email subject\n * @property {string} [email_message] - custom email message\n ", - "start": 14789, - "end": 15359, - "loc": { - "start": { - "line": 496, - "column": 2 - }, - "end": { - "line": 505, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Send Template Bulk Invite payload\n * @typedef {Object} TemplateBulkInviteParams\n * @property {string} id - an ID of specific Template\n * @property {string} token - your auth token\n * @property {TemplateBulkInviteSettings} data - Template Bulk Invite settings\n ", - "start": 15363, - "end": 15644, - "loc": { - "start": { - "line": 507, - "column": 2 - }, - "end": { - "line": 513, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Send Template Bulk Invite response data\n * @typedef {Object} TemplateBulkInviteResponse\n * @property {string} status - status of sending bulk invites (e.g. \"job queued\")\n ", - "start": 15648, - "end": 15836, - "loc": { - "start": { - "line": 515, - "column": 2 - }, - "end": { - "line": 519, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Sends invites to sign a specified template to multiple signers at once\n * @experimental internal implementation of this method might be changed\n * @param {TemplateBulkInviteParams} data - Bulk Invite payload\n * @param {function(err: ApiErrorResponse, res: TemplateBulkInviteResponse)} [callback] - error first node.js callback\n ", - "start": 15840, - "end": 16187, - "loc": { - "start": { - "line": 521, - "column": 2 - }, - "end": { - "line": 526, - "column": 5 - } - } - } - ] - } - ] - }, - "leadingComments": [], - "name": "_", - "trailingComments": [] - }, - { - "type": "Identifier", - "start": 17998, - "end": 18022, - "loc": { - "start": { - "line": 601, - "column": 0 - }, - "end": { - "line": 601, - "column": 24 - } - }, - "declaration": { - "type": "Identifier", - "start": 18013, - "end": 18021, - "loc": { - "start": { - "line": 601, - "column": 15 - }, - "end": { - "line": 601, - "column": 23 - }, - "identifierName": "Template" - }, - "name": "Template" - }, - "name": "_", - "leadingComments": [], - "trailingComments": [] - }, - { - "type": "ExportDefaultDeclaration", - "start": 17998, - "end": 18022, - "loc": { - "start": { - "line": 601, - "column": 0 - }, - "end": { - "line": 601, - "column": 24 - } - }, - "declaration": { - "type": "ClassDeclaration", - "start": 2422, - "end": 17996, - "loc": { - "start": { - "line": 89, - "column": 0 - }, - "end": { - "line": 599, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 2428, - "end": 2436, - "loc": { - "start": { - "line": 89, - "column": 6 - }, - "end": { - "line": 89, - "column": 14 - }, - "identifierName": "Template" - }, - "name": "Template", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 2437, - "end": 17996, - "loc": { - "start": { - "line": 89, - "column": 15 - }, - "end": { - "line": 599, - "column": 1 - } - }, - "body": [ - { - "type": "ClassMethod", - "start": 3581, - "end": 4843, - "loc": { - "start": { - "line": 118, - "column": 2 - }, - "end": { - "line": 170, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3588, - "end": 3594, - "loc": { - "start": { - "line": 118, - "column": 9 - }, - "end": { - "line": 118, - "column": 15 - }, - "identifierName": "create" - }, - "name": "create" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 3596, - "end": 3702, - "loc": { - "start": { - "line": 118, - "column": 17 - }, - "end": { - "line": 123, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3602, - "end": 3613, - "loc": { - "start": { - "line": 119, - "column": 4 - }, - "end": { - "line": 119, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3602, - "end": 3613, - "loc": { - "start": { - "line": 119, - "column": 4 - }, - "end": { - "line": 119, - "column": 15 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "value": { - "type": "Identifier", - "start": 3602, - "end": 3613, - "loc": { - "start": { - "line": 119, - "column": 4 - }, - "end": { - "line": 119, - "column": 15 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3619, - "end": 3632, - "loc": { - "start": { - "line": 120, - "column": 4 - }, - "end": { - "line": 120, - "column": 17 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3619, - "end": 3632, - "loc": { - "start": { - "line": 120, - "column": 4 - }, - "end": { - "line": 120, - "column": 17 - }, - "identifierName": "document_name" - }, - "name": "document_name" - }, - "value": { - "type": "Identifier", - "start": 3619, - "end": 3632, - "loc": { - "start": { - "line": 120, - "column": 4 - }, - "end": { - "line": 120, - "column": 17 - }, - "identifierName": "document_name" - }, - "name": "document_name" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3638, - "end": 3686, - "loc": { - "start": { - "line": 121, - "column": 4 - }, - "end": { - "line": 121, - "column": 52 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3638, - "end": 3645, - "loc": { - "start": { - "line": 121, - "column": 4 - }, - "end": { - "line": 121, - "column": 11 - }, - "identifierName": "options" - }, - "name": "options" - }, - "value": { - "type": "AssignmentPattern", - "start": 3647, - "end": 3686, - "loc": { - "start": { - "line": 121, - "column": 13 - }, - "end": { - "line": 121, - "column": 52 - } - }, - "left": { - "type": "ObjectPattern", - "start": 3647, - "end": 3681, - "loc": { - "start": { - "line": 121, - "column": 13 - }, - "end": { - "line": 121, - "column": 47 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3649, - "end": 3679, - "loc": { - "start": { - "line": 121, - "column": 15 - }, - "end": { - "line": 121, - "column": 45 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3649, - "end": 3671, - "loc": { - "start": { - "line": 121, - "column": 15 - }, - "end": { - "line": 121, - "column": 37 - }, - "identifierName": "removeOriginalDocument" - }, - "name": "removeOriginalDocument" - }, - "value": { - "type": "AssignmentPattern", - "start": 3649, - "end": 3679, - "loc": { - "start": { - "line": 121, - "column": 15 - }, - "end": { - "line": 121, - "column": 45 - } - }, - "left": { - "type": "Identifier", - "start": 3649, - "end": 3671, - "loc": { - "start": { - "line": 121, - "column": 15 - }, - "end": { - "line": 121, - "column": 37 - }, - "identifierName": "removeOriginalDocument" - }, - "name": "removeOriginalDocument" - }, - "right": { - "type": "BooleanLiteral", - "start": 3674, - "end": 3679, - "loc": { - "start": { - "line": 121, - "column": 40 - }, - "end": { - "line": 121, - "column": 45 - } - }, - "value": false - } - }, - "extra": { - "shorthand": true - } - } - ] - }, - "right": { - "type": "ObjectExpression", - "start": 3684, - "end": 3686, - "loc": { - "start": { - "line": 121, - "column": 50 - }, - "end": { - "line": 121, - "column": 52 - } - }, - "properties": [] - } - } - }, - { - "type": "ObjectProperty", - "start": 3692, - "end": 3697, - "loc": { - "start": { - "line": 122, - "column": 4 - }, - "end": { - "line": 122, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3692, - "end": 3697, - "loc": { - "start": { - "line": 122, - "column": 4 - }, - "end": { - "line": 122, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 3692, - "end": 3697, - "loc": { - "start": { - "line": 122, - "column": 4 - }, - "end": { - "line": 122, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 3704, - "end": 3720, - "loc": { - "start": { - "line": 123, - "column": 5 - }, - "end": { - "line": 123, - "column": 21 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - } - ], - "body": { - "type": "BlockStatement", - "start": 3722, - "end": 4843, - "loc": { - "start": { - "line": 123, - "column": 23 - }, - "end": { - "line": 170, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 3728, - "end": 3809, - "loc": { - "start": { - "line": 124, - "column": 4 - }, - "end": { - "line": 127, - "column": 7 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3734, - "end": 3808, - "loc": { - "start": { - "line": 124, - "column": 10 - }, - "end": { - "line": 127, - "column": 6 - } - }, - "id": { - "type": "Identifier", - "start": 3734, - "end": 3742, - "loc": { - "start": { - "line": 124, - "column": 10 - }, - "end": { - "line": 124, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 3745, - "end": 3808, - "loc": { - "start": { - "line": 124, - "column": 21 - }, - "end": { - "line": 127, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3745, - "end": 3759, - "loc": { - "start": { - "line": 124, - "column": 21 - }, - "end": { - "line": 124, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 3745, - "end": 3749, - "loc": { - "start": { - "line": 124, - "column": 21 - }, - "end": { - "line": 124, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 3750, - "end": 3759, - "loc": { - "start": { - "line": 124, - "column": 26 - }, - "end": { - "line": 124, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 3760, - "end": 3807, - "loc": { - "start": { - "line": 124, - "column": 36 - }, - "end": { - "line": 127, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3768, - "end": 3779, - "loc": { - "start": { - "line": 125, - "column": 6 - }, - "end": { - "line": 125, - "column": 17 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3768, - "end": 3779, - "loc": { - "start": { - "line": 125, - "column": 6 - }, - "end": { - "line": 125, - "column": 17 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "value": { - "type": "Identifier", - "start": 3768, - "end": 3779, - "loc": { - "start": { - "line": 125, - "column": 6 - }, - "end": { - "line": 125, - "column": 17 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 3787, - "end": 3800, - "loc": { - "start": { - "line": 126, - "column": 6 - }, - "end": { - "line": 126, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3787, - "end": 3800, - "loc": { - "start": { - "line": 126, - "column": 6 - }, - "end": { - "line": 126, - "column": 19 - }, - "identifierName": "document_name" - }, - "name": "document_name" - }, - "value": { - "type": "Identifier", - "start": 3787, - "end": 3800, - "loc": { - "start": { - "line": 126, - "column": 6 - }, - "end": { - "line": 126, - "column": 19 - }, - "identifierName": "document_name" - }, - "name": "document_name" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 3815, - "end": 4278, - "loc": { - "start": { - "line": 129, - "column": 4 - }, - "end": { - "line": 147, - "column": 6 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3821, - "end": 4277, - "loc": { - "start": { - "line": 129, - "column": 10 - }, - "end": { - "line": 147, - "column": 5 - } - }, - "id": { - "type": "Identifier", - "start": 3821, - "end": 3849, - "loc": { - "start": { - "line": 129, - "column": 10 - }, - "end": { - "line": 129, - "column": 38 - }, - "identifierName": "callbackWithDocumentDeletion" - }, - "name": "callbackWithDocumentDeletion" - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 3852, - "end": 4277, - "loc": { - "start": { - "line": 129, - "column": 41 - }, - "end": { - "line": 147, - "column": 5 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 3853, - "end": 3862, - "loc": { - "start": { - "line": 129, - "column": 42 - }, - "end": { - "line": 129, - "column": 51 - }, - "identifierName": "createErr" - }, - "name": "createErr" - }, - { - "type": "Identifier", - "start": 3864, - "end": 3873, - "loc": { - "start": { - "line": 129, - "column": 53 - }, - "end": { - "line": 129, - "column": 62 - }, - "identifierName": "createRes" - }, - "name": "createRes" - } - ], - "body": { - "type": "BlockStatement", - "start": 3878, - "end": 4277, - "loc": { - "start": { - "line": 129, - "column": 67 - }, - "end": { - "line": 147, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 3886, - "end": 4271, - "loc": { - "start": { - "line": 130, - "column": 6 - }, - "end": { - "line": 146, - "column": 7 - } - }, - "test": { - "type": "Identifier", - "start": 3890, - "end": 3899, - "loc": { - "start": { - "line": 130, - "column": 10 - }, - "end": { - "line": 130, - "column": 19 - }, - "identifierName": "createErr" - }, - "name": "createErr" - }, - "consequent": { - "type": "BlockStatement", - "start": 3901, - "end": 3963, - "loc": { - "start": { - "line": 130, - "column": 21 - }, - "end": { - "line": 133, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 3911, - "end": 3939, - "loc": { - "start": { - "line": 131, - "column": 8 - }, - "end": { - "line": 131, - "column": 36 - } - }, - "expression": { - "type": "CallExpression", - "start": 3911, - "end": 3938, - "loc": { - "start": { - "line": 131, - "column": 8 - }, - "end": { - "line": 131, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 3911, - "end": 3927, - "loc": { - "start": { - "line": 131, - "column": 8 - }, - "end": { - "line": 131, - "column": 24 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3928, - "end": 3937, - "loc": { - "start": { - "line": 131, - "column": 25 - }, - "end": { - "line": 131, - "column": 34 - }, - "identifierName": "createErr" - }, - "name": "createErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 3948, - "end": 3955, - "loc": { - "start": { - "line": 132, - "column": 8 - }, - "end": { - "line": 132, - "column": 15 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 3969, - "end": 4271, - "loc": { - "start": { - "line": 133, - "column": 13 - }, - "end": { - "line": 146, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 3979, - "end": 4263, - "loc": { - "start": { - "line": 134, - "column": 8 - }, - "end": { - "line": 145, - "column": 11 - } - }, - "expression": { - "type": "CallExpression", - "start": 3979, - "end": 4262, - "loc": { - "start": { - "line": 134, - "column": 8 - }, - "end": { - "line": 145, - "column": 10 - } - }, - "callee": { - "type": "Identifier", - "start": 3979, - "end": 3993, - "loc": { - "start": { - "line": 134, - "column": 8 - }, - "end": { - "line": 134, - "column": 22 - }, - "identifierName": "removeDocument" - }, - "name": "removeDocument" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 3994, - "end": 4049, - "loc": { - "start": { - "line": 134, - "column": 23 - }, - "end": { - "line": 137, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4006, - "end": 4021, - "loc": { - "start": { - "line": 135, - "column": 10 - }, - "end": { - "line": 135, - "column": 25 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4006, - "end": 4008, - "loc": { - "start": { - "line": 135, - "column": 10 - }, - "end": { - "line": 135, - "column": 12 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 4010, - "end": 4021, - "loc": { - "start": { - "line": 135, - "column": 14 - }, - "end": { - "line": 135, - "column": 25 - }, - "identifierName": "document_id" - }, - "name": "document_id" - } - }, - { - "type": "ObjectProperty", - "start": 4033, - "end": 4038, - "loc": { - "start": { - "line": 136, - "column": 10 - }, - "end": { - "line": 136, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 4033, - "end": 4038, - "loc": { - "start": { - "line": 136, - "column": 10 - }, - "end": { - "line": 136, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 4033, - "end": 4038, - "loc": { - "start": { - "line": 136, - "column": 10 - }, - "end": { - "line": 136, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "ArrowFunctionExpression", - "start": 4051, - "end": 4261, - "loc": { - "start": { - "line": 137, - "column": 11 - }, - "end": { - "line": 145, - "column": 9 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 4051, - "end": 4060, - "loc": { - "start": { - "line": 137, - "column": 11 - }, - "end": { - "line": 137, - "column": 20 - }, - "identifierName": "removeErr" - }, - "name": "removeErr" - } - ], - "body": { - "type": "BlockStatement", - "start": 4064, - "end": 4261, - "loc": { - "start": { - "line": 137, - "column": 24 - }, - "end": { - "line": 145, - "column": 9 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 4076, - "end": 4251, - "loc": { - "start": { - "line": 138, - "column": 10 - }, - "end": { - "line": 144, - "column": 11 - } - }, - "test": { - "type": "Identifier", - "start": 4080, - "end": 4089, - "loc": { - "start": { - "line": 138, - "column": 14 - }, - "end": { - "line": 138, - "column": 23 - }, - "identifierName": "removeErr" - }, - "name": "removeErr" - }, - "consequent": { - "type": "BlockStatement", - "start": 4091, - "end": 4165, - "loc": { - "start": { - "line": 138, - "column": 25 - }, - "end": { - "line": 141, - "column": 11 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 4105, - "end": 4133, - "loc": { - "start": { - "line": 139, - "column": 12 - }, - "end": { - "line": 139, - "column": 40 - } - }, - "expression": { - "type": "CallExpression", - "start": 4105, - "end": 4132, - "loc": { - "start": { - "line": 139, - "column": 12 - }, - "end": { - "line": 139, - "column": 39 - } - }, - "callee": { - "type": "Identifier", - "start": 4105, - "end": 4121, - "loc": { - "start": { - "line": 139, - "column": 12 - }, - "end": { - "line": 139, - "column": 28 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 4122, - "end": 4131, - "loc": { - "start": { - "line": 139, - "column": 29 - }, - "end": { - "line": 139, - "column": 38 - }, - "identifierName": "removeErr" - }, - "name": "removeErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 4146, - "end": 4153, - "loc": { - "start": { - "line": 140, - "column": 12 - }, - "end": { - "line": 140, - "column": 19 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 4171, - "end": 4251, - "loc": { - "start": { - "line": 141, - "column": 17 - }, - "end": { - "line": 144, - "column": 11 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 4185, - "end": 4219, - "loc": { - "start": { - "line": 142, - "column": 12 - }, - "end": { - "line": 142, - "column": 46 - } - }, - "expression": { - "type": "CallExpression", - "start": 4185, - "end": 4218, - "loc": { - "start": { - "line": 142, - "column": 12 - }, - "end": { - "line": 142, - "column": 45 - } - }, - "callee": { - "type": "Identifier", - "start": 4185, - "end": 4201, - "loc": { - "start": { - "line": 142, - "column": 12 - }, - "end": { - "line": 142, - "column": 28 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - }, - "arguments": [ - { - "type": "NullLiteral", - "start": 4202, - "end": 4206, - "loc": { - "start": { - "line": 142, - "column": 29 - }, - "end": { - "line": 142, - "column": 33 - } - } - }, - { - "type": "Identifier", - "start": 4208, - "end": 4217, - "loc": { - "start": { - "line": 142, - "column": 35 - }, - "end": { - "line": 142, - "column": 44 - }, - "identifierName": "createRes" - }, - "name": "createRes" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 4232, - "end": 4239, - "loc": { - "start": { - "line": 143, - "column": 12 - }, - "end": { - "line": 143, - "column": 19 - } - }, - "argument": null - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 4284, - "end": 4386, - "loc": { - "start": { - "line": 149, - "column": 4 - }, - "end": { - "line": 151, - "column": 25 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 4290, - "end": 4385, - "loc": { - "start": { - "line": 149, - "column": 10 - }, - "end": { - "line": 151, - "column": 24 - } - }, - "id": { - "type": "Identifier", - "start": 4290, - "end": 4298, - "loc": { - "start": { - "line": 149, - "column": 10 - }, - "end": { - "line": 149, - "column": 18 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "init": { - "type": "ConditionalExpression", - "start": 4301, - "end": 4385, - "loc": { - "start": { - "line": 149, - "column": 21 - }, - "end": { - "line": 151, - "column": 24 - } - }, - "test": { - "type": "Identifier", - "start": 4301, - "end": 4323, - "loc": { - "start": { - "line": 149, - "column": 21 - }, - "end": { - "line": 149, - "column": 43 - }, - "identifierName": "removeOriginalDocument" - }, - "name": "removeOriginalDocument" - }, - "consequent": { - "type": "Identifier", - "start": 4332, - "end": 4360, - "loc": { - "start": { - "line": 150, - "column": 8 - }, - "end": { - "line": 150, - "column": 36 - }, - "identifierName": "callbackWithDocumentDeletion" - }, - "name": "callbackWithDocumentDeletion" - }, - "alternate": { - "type": "Identifier", - "start": 4369, - "end": 4385, - "loc": { - "start": { - "line": 151, - "column": 8 - }, - "end": { - "line": 151, - "column": 24 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 4392, - "end": 4798, - "loc": { - "start": { - "line": 153, - "column": 4 - }, - "end": { - "line": 166, - "column": 51 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 4398, - "end": 4797, - "loc": { - "start": { - "line": 153, - "column": 10 - }, - "end": { - "line": 166, - "column": 50 - } - }, - "id": { - "type": "Identifier", - "start": 4398, - "end": 4401, - "loc": { - "start": { - "line": 153, - "column": 10 - }, - "end": { - "line": 153, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 4404, - "end": 4797, - "loc": { - "start": { - "line": 153, - "column": 16 - }, - "end": { - "line": 166, - "column": 50 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4404, - "end": 4756, - "loc": { - "start": { - "line": 153, - "column": 16 - }, - "end": { - "line": 166, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 4404, - "end": 4746, - "loc": { - "start": { - "line": 153, - "column": 16 - }, - "end": { - "line": 165, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4404, - "end": 4424, - "loc": { - "start": { - "line": 153, - "column": 16 - }, - "end": { - "line": 154, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 4404, - "end": 4409, - "loc": { - "start": { - "line": 153, - "column": 16 - }, - "end": { - "line": 153, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 4417, - "end": 4424, - "loc": { - "start": { - "line": 154, - "column": 7 - }, - "end": { - "line": 154, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 4425, - "end": 4718, - "loc": { - "start": { - "line": 154, - "column": 15 - }, - "end": { - "line": 165, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 4425, - "end": 4444, - "loc": { - "start": { - "line": 154, - "column": 15 - }, - "end": { - "line": 154, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 4445, - "end": 4717, - "loc": { - "start": { - "line": 154, - "column": 35 - }, - "end": { - "line": 165, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4455, - "end": 4469, - "loc": { - "start": { - "line": 155, - "column": 8 - }, - "end": { - "line": 155, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4455, - "end": 4461, - "loc": { - "start": { - "line": 155, - "column": 8 - }, - "end": { - "line": 155, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 4463, - "end": 4469, - "loc": { - "start": { - "line": 155, - "column": 16 - }, - "end": { - "line": 155, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 4479, - "end": 4496, - "loc": { - "start": { - "line": 156, - "column": 8 - }, - "end": { - "line": 156, - "column": 25 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4479, - "end": 4483, - "loc": { - "start": { - "line": 156, - "column": 8 - }, - "end": { - "line": 156, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 4485, - "end": 4496, - "loc": { - "start": { - "line": 156, - "column": 14 - }, - "end": { - "line": 156, - "column": 25 - } - }, - "extra": { - "rawValue": "/template", - "raw": "'/template'" - }, - "value": "/template" - } - }, - { - "type": "ObjectProperty", - "start": 4506, - "end": 4575, - "loc": { - "start": { - "line": 157, - "column": 8 - }, - "end": { - "line": 160, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4506, - "end": 4519, - "loc": { - "start": { - "line": 157, - "column": 8 - }, - "end": { - "line": 157, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 4521, - "end": 4575, - "loc": { - "start": { - "line": 157, - "column": 23 - }, - "end": { - "line": 160, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4533, - "end": 4547, - "loc": { - "start": { - "line": 158, - "column": 10 - }, - "end": { - "line": 158, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4533, - "end": 4537, - "loc": { - "start": { - "line": 158, - "column": 10 - }, - "end": { - "line": 158, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 4539, - "end": 4547, - "loc": { - "start": { - "line": 158, - "column": 16 - }, - "end": { - "line": 158, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 4559, - "end": 4564, - "loc": { - "start": { - "line": 159, - "column": 10 - }, - "end": { - "line": 159, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 4559, - "end": 4564, - "loc": { - "start": { - "line": 159, - "column": 10 - }, - "end": { - "line": 159, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 4559, - "end": 4564, - "loc": { - "start": { - "line": 159, - "column": 10 - }, - "end": { - "line": 159, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 4585, - "end": 4708, - "loc": { - "start": { - "line": 161, - "column": 8 - }, - "end": { - "line": 164, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4585, - "end": 4592, - "loc": { - "start": { - "line": 161, - "column": 8 - }, - "end": { - "line": 161, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 4594, - "end": 4708, - "loc": { - "start": { - "line": 161, - "column": 17 - }, - "end": { - "line": 164, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4606, - "end": 4640, - "loc": { - "start": { - "line": 162, - "column": 10 - }, - "end": { - "line": 162, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 4606, - "end": 4620, - "loc": { - "start": { - "line": 162, - "column": 10 - }, - "end": { - "line": 162, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 4622, - "end": 4640, - "loc": { - "start": { - "line": 162, - "column": 26 - }, - "end": { - "line": 162, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 4652, - "end": 4697, - "loc": { - "start": { - "line": 163, - "column": 10 - }, - "end": { - "line": 163, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 4652, - "end": 4668, - "loc": { - "start": { - "line": 163, - "column": 10 - }, - "end": { - "line": 163, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 4670, - "end": 4697, - "loc": { - "start": { - "line": 163, - "column": 28 - }, - "end": { - "line": 163, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4670, - "end": 4687, - "loc": { - "start": { - "line": 163, - "column": 28 - }, - "end": { - "line": 163, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 4670, - "end": 4676, - "loc": { - "start": { - "line": 163, - "column": 28 - }, - "end": { - "line": 163, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 4677, - "end": 4687, - "loc": { - "start": { - "line": 163, - "column": 35 - }, - "end": { - "line": 163, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 4688, - "end": 4696, - "loc": { - "start": { - "line": 163, - "column": 46 - }, - "end": { - "line": 163, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 4720, - "end": 4745, - "loc": { - "start": { - "line": 165, - "column": 10 - }, - "end": { - "line": 165, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 4720, - "end": 4735, - "loc": { - "start": { - "line": 165, - "column": 10 - }, - "end": { - "line": 165, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 4736, - "end": 4744, - "loc": { - "start": { - "line": 165, - "column": 26 - }, - "end": { - "line": 165, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 4754, - "end": 4756, - "loc": { - "start": { - "line": 166, - "column": 7 - }, - "end": { - "line": 166, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 4757, - "end": 4764, - "loc": { - "start": { - "line": 166, - "column": 10 - }, - "end": { - "line": 166, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 4766, - "end": 4796, - "loc": { - "start": { - "line": 166, - "column": 19 - }, - "end": { - "line": 166, - "column": 49 - } - }, - "callee": { - "type": "Identifier", - "start": 4766, - "end": 4778, - "loc": { - "start": { - "line": 166, - "column": 19 - }, - "end": { - "line": 166, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 4779, - "end": 4795, - "loc": { - "start": { - "line": 166, - "column": 32 - }, - "end": { - "line": 166, - "column": 48 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 4804, - "end": 4824, - "loc": { - "start": { - "line": 168, - "column": 4 - }, - "end": { - "line": 168, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 4804, - "end": 4823, - "loc": { - "start": { - "line": 168, - "column": 4 - }, - "end": { - "line": 168, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4804, - "end": 4813, - "loc": { - "start": { - "line": 168, - "column": 4 - }, - "end": { - "line": 168, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 4804, - "end": 4807, - "loc": { - "start": { - "line": 168, - "column": 4 - }, - "end": { - "line": 168, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 4808, - "end": 4813, - "loc": { - "start": { - "line": 168, - "column": 8 - }, - "end": { - "line": 168, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 4814, - "end": 4822, - "loc": { - "start": { - "line": 168, - "column": 14 - }, - "end": { - "line": 168, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 4829, - "end": 4839, - "loc": { - "start": { - "line": 169, - "column": 4 - }, - "end": { - "line": 169, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 4829, - "end": 4838, - "loc": { - "start": { - "line": 169, - "column": 4 - }, - "end": { - "line": 169, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4829, - "end": 4836, - "loc": { - "start": { - "line": 169, - "column": 4 - }, - "end": { - "line": 169, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 4829, - "end": 4832, - "loc": { - "start": { - "line": 169, - "column": 4 - }, - "end": { - "line": 169, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 4833, - "end": 4836, - "loc": { - "start": { - "line": 169, - "column": 8 - }, - "end": { - "line": 169, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Document invite optional settings\n * @typedef {Object} TemplateCreateOptions\n * @property {boolean} [removeOriginalDocument=false] - if true original document will be removed\n ", - "start": 2442, - "end": 2635, - "loc": { - "start": { - "line": 91, - "column": 2 - }, - "end": { - "line": 95, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create template payload\n * @typedef {Object} TemplateCreateParams\n * @property {string} document_id - an id of original document\n * @property {string} document_name - a name of new template\n * @property {TemplateCreateOptions} options - create template optional settings\n * @property {string} token - your auth token\n ", - "start": 2639, - "end": 2980, - "loc": { - "start": { - "line": 97, - "column": 2 - }, - "end": { - "line": 104, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create template response data\n * @typedef {Object} TemplateCreateResponse\n * @property {string} id - an id of created template\n ", - "start": 2984, - "end": 3129, - "loc": { - "start": { - "line": 106, - "column": 2 - }, - "end": { - "line": 110, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates a template by copying an existing unfulfilled and not requested for sign document.\n * By default original document is not removed after template creation. To remove original document set `removeOriginalDocument` option to `true`.\n * @param {TemplateCreateParams} data - create template payload\n * @param {function(err: ApiErrorResponse, res: TemplateCreateResponse)} [originalCallback] - error first node.js callback\n ", - "start": 3133, - "end": 3578, - "loc": { - "start": { - "line": 112, - "column": 2 - }, - "end": { - "line": 117, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Copy template payload\n * @typedef {Object} TemplateDuplicateParams\n * @property {string} id - an id of original template\n * @property {string} name - a name of new document\n * @property {string} token - your auth token\n ", - "start": 4847, - "end": 5088, - "loc": { - "start": { - "line": 172, - "column": 2 - }, - "end": { - "line": 178, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Copy template response data\n * @typedef {Object} TemplateDuplicateResponse\n * @property {string} id - an id of created document\n * @property {string} name - a name of created document\n ", - "start": 5092, - "end": 5296, - "loc": { - "start": { - "line": 180, - "column": 2 - }, - "end": { - "line": 185, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates a new document by copying a template.\n * If a name is not supplied then document name will be set to the original template's name by default.\n * @param {TemplateDuplicateParams} data - duplicate template payload\n * @param {function(err: ApiErrorResponse, res: TemplateDuplicateResponse)} [callback] - error first node.js callback\n ", - "start": 5300, - "end": 5658, - "loc": { - "start": { - "line": 187, - "column": 2 - }, - "end": { - "line": 192, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 5661, - "end": 6309, - "loc": { - "start": { - "line": 193, - "column": 2 - }, - "end": { - "line": 220, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5668, - "end": 5677, - "loc": { - "start": { - "line": 193, - "column": 9 - }, - "end": { - "line": 193, - "column": 18 - }, - "identifierName": "duplicate" - }, - "name": "duplicate" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 5679, - "end": 5741, - "loc": { - "start": { - "line": 193, - "column": 20 - }, - "end": { - "line": 197, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5685, - "end": 5700, - "loc": { - "start": { - "line": 194, - "column": 4 - }, - "end": { - "line": 194, - "column": 19 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5685, - "end": 5687, - "loc": { - "start": { - "line": 194, - "column": 4 - }, - "end": { - "line": 194, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 5689, - "end": 5700, - "loc": { - "start": { - "line": 194, - "column": 8 - }, - "end": { - "line": 194, - "column": 19 - }, - "identifierName": "template_id" - }, - "name": "template_id" - } - }, - { - "type": "ObjectProperty", - "start": 5706, - "end": 5725, - "loc": { - "start": { - "line": 195, - "column": 4 - }, - "end": { - "line": 195, - "column": 23 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5706, - "end": 5710, - "loc": { - "start": { - "line": 195, - "column": 4 - }, - "end": { - "line": 195, - "column": 8 - }, - "identifierName": "name" - }, - "name": "name" - }, - "value": { - "type": "Identifier", - "start": 5712, - "end": 5725, - "loc": { - "start": { - "line": 195, - "column": 10 - }, - "end": { - "line": 195, - "column": 23 - }, - "identifierName": "document_name" - }, - "name": "document_name" - } - }, - { - "type": "ObjectProperty", - "start": 5731, - "end": 5736, - "loc": { - "start": { - "line": 196, - "column": 4 - }, - "end": { - "line": 196, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5731, - "end": 5736, - "loc": { - "start": { - "line": 196, - "column": 4 - }, - "end": { - "line": 196, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 5731, - "end": 5736, - "loc": { - "start": { - "line": 196, - "column": 4 - }, - "end": { - "line": 196, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 5743, - "end": 5751, - "loc": { - "start": { - "line": 197, - "column": 5 - }, - "end": { - "line": 197, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 5753, - "end": 6309, - "loc": { - "start": { - "line": 197, - "column": 15 - }, - "end": { - "line": 220, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 5759, - "end": 5840, - "loc": { - "start": { - "line": 198, - "column": 4 - }, - "end": { - "line": 201, - "column": 7 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 5765, - "end": 5839, - "loc": { - "start": { - "line": 198, - "column": 10 - }, - "end": { - "line": 201, - "column": 6 - } - }, - "id": { - "type": "Identifier", - "start": 5765, - "end": 5773, - "loc": { - "start": { - "line": 198, - "column": 10 - }, - "end": { - "line": 198, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 5776, - "end": 5839, - "loc": { - "start": { - "line": 198, - "column": 21 - }, - "end": { - "line": 201, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5776, - "end": 5790, - "loc": { - "start": { - "line": 198, - "column": 21 - }, - "end": { - "line": 198, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 5776, - "end": 5780, - "loc": { - "start": { - "line": 198, - "column": 21 - }, - "end": { - "line": 198, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 5781, - "end": 5790, - "loc": { - "start": { - "line": 198, - "column": 26 - }, - "end": { - "line": 198, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 5791, - "end": 5838, - "loc": { - "start": { - "line": 198, - "column": 36 - }, - "end": { - "line": 201, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5799, - "end": 5810, - "loc": { - "start": { - "line": 199, - "column": 6 - }, - "end": { - "line": 199, - "column": 17 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5799, - "end": 5810, - "loc": { - "start": { - "line": 199, - "column": 6 - }, - "end": { - "line": 199, - "column": 17 - }, - "identifierName": "template_id" - }, - "name": "template_id" - }, - "value": { - "type": "Identifier", - "start": 5799, - "end": 5810, - "loc": { - "start": { - "line": 199, - "column": 6 - }, - "end": { - "line": 199, - "column": 17 - }, - "identifierName": "template_id" - }, - "name": "template_id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 5818, - "end": 5831, - "loc": { - "start": { - "line": 200, - "column": 6 - }, - "end": { - "line": 200, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5818, - "end": 5831, - "loc": { - "start": { - "line": 200, - "column": 6 - }, - "end": { - "line": 200, - "column": 19 - }, - "identifierName": "document_name" - }, - "name": "document_name" - }, - "value": { - "type": "Identifier", - "start": 5818, - "end": 5831, - "loc": { - "start": { - "line": 200, - "column": 6 - }, - "end": { - "line": 200, - "column": 19 - }, - "identifierName": "document_name" - }, - "name": "document_name" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 5846, - "end": 6264, - "loc": { - "start": { - "line": 203, - "column": 4 - }, - "end": { - "line": 216, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 5852, - "end": 6263, - "loc": { - "start": { - "line": 203, - "column": 10 - }, - "end": { - "line": 216, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 5852, - "end": 5855, - "loc": { - "start": { - "line": 203, - "column": 10 - }, - "end": { - "line": 203, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 5858, - "end": 6263, - "loc": { - "start": { - "line": 203, - "column": 16 - }, - "end": { - "line": 216, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5858, - "end": 6230, - "loc": { - "start": { - "line": 203, - "column": 16 - }, - "end": { - "line": 216, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 5858, - "end": 6220, - "loc": { - "start": { - "line": 203, - "column": 16 - }, - "end": { - "line": 215, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5858, - "end": 5878, - "loc": { - "start": { - "line": 203, - "column": 16 - }, - "end": { - "line": 204, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 5858, - "end": 5863, - "loc": { - "start": { - "line": 203, - "column": 16 - }, - "end": { - "line": 203, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 5871, - "end": 5878, - "loc": { - "start": { - "line": 204, - "column": 7 - }, - "end": { - "line": 204, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 5879, - "end": 6192, - "loc": { - "start": { - "line": 204, - "column": 15 - }, - "end": { - "line": 215, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 5879, - "end": 5898, - "loc": { - "start": { - "line": 204, - "column": 15 - }, - "end": { - "line": 204, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 5899, - "end": 6191, - "loc": { - "start": { - "line": 204, - "column": 35 - }, - "end": { - "line": 215, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5909, - "end": 5923, - "loc": { - "start": { - "line": 205, - "column": 8 - }, - "end": { - "line": 205, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5909, - "end": 5915, - "loc": { - "start": { - "line": 205, - "column": 8 - }, - "end": { - "line": 205, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 5917, - "end": 5923, - "loc": { - "start": { - "line": 205, - "column": 16 - }, - "end": { - "line": 205, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 5933, - "end": 5970, - "loc": { - "start": { - "line": 206, - "column": 8 - }, - "end": { - "line": 206, - "column": 45 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5933, - "end": 5937, - "loc": { - "start": { - "line": 206, - "column": 8 - }, - "end": { - "line": 206, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 5939, - "end": 5970, - "loc": { - "start": { - "line": 206, - "column": 14 - }, - "end": { - "line": 206, - "column": 45 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 5952, - "end": 5963, - "loc": { - "start": { - "line": 206, - "column": 27 - }, - "end": { - "line": 206, - "column": 38 - }, - "identifierName": "template_id" - }, - "name": "template_id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 5940, - "end": 5950, - "loc": { - "start": { - "line": 206, - "column": 15 - }, - "end": { - "line": 206, - "column": 25 - } - }, - "value": { - "raw": "/template/", - "cooked": "/template/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 5964, - "end": 5969, - "loc": { - "start": { - "line": 206, - "column": 39 - }, - "end": { - "line": 206, - "column": 44 - } - }, - "value": { - "raw": "/copy", - "cooked": "/copy" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 5980, - "end": 6049, - "loc": { - "start": { - "line": 207, - "column": 8 - }, - "end": { - "line": 210, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5980, - "end": 5993, - "loc": { - "start": { - "line": 207, - "column": 8 - }, - "end": { - "line": 207, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 5995, - "end": 6049, - "loc": { - "start": { - "line": 207, - "column": 23 - }, - "end": { - "line": 210, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 6007, - "end": 6021, - "loc": { - "start": { - "line": 208, - "column": 10 - }, - "end": { - "line": 208, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6007, - "end": 6011, - "loc": { - "start": { - "line": 208, - "column": 10 - }, - "end": { - "line": 208, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 6013, - "end": 6021, - "loc": { - "start": { - "line": 208, - "column": 16 - }, - "end": { - "line": 208, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 6033, - "end": 6038, - "loc": { - "start": { - "line": 209, - "column": 10 - }, - "end": { - "line": 209, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 6033, - "end": 6038, - "loc": { - "start": { - "line": 209, - "column": 10 - }, - "end": { - "line": 209, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 6033, - "end": 6038, - "loc": { - "start": { - "line": 209, - "column": 10 - }, - "end": { - "line": 209, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 6059, - "end": 6182, - "loc": { - "start": { - "line": 211, - "column": 8 - }, - "end": { - "line": 214, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6059, - "end": 6066, - "loc": { - "start": { - "line": 211, - "column": 8 - }, - "end": { - "line": 211, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 6068, - "end": 6182, - "loc": { - "start": { - "line": 211, - "column": 17 - }, - "end": { - "line": 214, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 6080, - "end": 6114, - "loc": { - "start": { - "line": 212, - "column": 10 - }, - "end": { - "line": 212, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 6080, - "end": 6094, - "loc": { - "start": { - "line": 212, - "column": 10 - }, - "end": { - "line": 212, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 6096, - "end": 6114, - "loc": { - "start": { - "line": 212, - "column": 26 - }, - "end": { - "line": 212, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 6126, - "end": 6171, - "loc": { - "start": { - "line": 213, - "column": 10 - }, - "end": { - "line": 213, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 6126, - "end": 6142, - "loc": { - "start": { - "line": 213, - "column": 10 - }, - "end": { - "line": 213, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 6144, - "end": 6171, - "loc": { - "start": { - "line": 213, - "column": 28 - }, - "end": { - "line": 213, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6144, - "end": 6161, - "loc": { - "start": { - "line": 213, - "column": 28 - }, - "end": { - "line": 213, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 6144, - "end": 6150, - "loc": { - "start": { - "line": 213, - "column": 28 - }, - "end": { - "line": 213, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 6151, - "end": 6161, - "loc": { - "start": { - "line": 213, - "column": 35 - }, - "end": { - "line": 213, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 6162, - "end": 6170, - "loc": { - "start": { - "line": 213, - "column": 46 - }, - "end": { - "line": 213, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 6194, - "end": 6219, - "loc": { - "start": { - "line": 215, - "column": 10 - }, - "end": { - "line": 215, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 6194, - "end": 6209, - "loc": { - "start": { - "line": 215, - "column": 10 - }, - "end": { - "line": 215, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 6210, - "end": 6218, - "loc": { - "start": { - "line": 215, - "column": 26 - }, - "end": { - "line": 215, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 6228, - "end": 6230, - "loc": { - "start": { - "line": 216, - "column": 7 - }, - "end": { - "line": 216, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 6231, - "end": 6238, - "loc": { - "start": { - "line": 216, - "column": 10 - }, - "end": { - "line": 216, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 6240, - "end": 6262, - "loc": { - "start": { - "line": 216, - "column": 19 - }, - "end": { - "line": 216, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 6240, - "end": 6252, - "loc": { - "start": { - "line": 216, - "column": 19 - }, - "end": { - "line": 216, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 6253, - "end": 6261, - "loc": { - "start": { - "line": 216, - "column": 32 - }, - "end": { - "line": 216, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 6270, - "end": 6290, - "loc": { - "start": { - "line": 218, - "column": 4 - }, - "end": { - "line": 218, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 6270, - "end": 6289, - "loc": { - "start": { - "line": 218, - "column": 4 - }, - "end": { - "line": 218, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6270, - "end": 6279, - "loc": { - "start": { - "line": 218, - "column": 4 - }, - "end": { - "line": 218, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 6270, - "end": 6273, - "loc": { - "start": { - "line": 218, - "column": 4 - }, - "end": { - "line": 218, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 6274, - "end": 6279, - "loc": { - "start": { - "line": 218, - "column": 8 - }, - "end": { - "line": 218, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 6280, - "end": 6288, - "loc": { - "start": { - "line": 218, - "column": 14 - }, - "end": { - "line": 218, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 6295, - "end": 6305, - "loc": { - "start": { - "line": 219, - "column": 4 - }, - "end": { - "line": 219, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 6295, - "end": 6304, - "loc": { - "start": { - "line": 219, - "column": 4 - }, - "end": { - "line": 219, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6295, - "end": 6302, - "loc": { - "start": { - "line": 219, - "column": 4 - }, - "end": { - "line": 219, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 6295, - "end": 6298, - "loc": { - "start": { - "line": 219, - "column": 4 - }, - "end": { - "line": 219, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 6299, - "end": 6302, - "loc": { - "start": { - "line": 219, - "column": 8 - }, - "end": { - "line": 219, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Copy template payload\n * @typedef {Object} TemplateDuplicateParams\n * @property {string} id - an id of original template\n * @property {string} name - a name of new document\n * @property {string} token - your auth token\n ", - "start": 4847, - "end": 5088, - "loc": { - "start": { - "line": 172, - "column": 2 - }, - "end": { - "line": 178, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Copy template response data\n * @typedef {Object} TemplateDuplicateResponse\n * @property {string} id - an id of created document\n * @property {string} name - a name of created document\n ", - "start": 5092, - "end": 5296, - "loc": { - "start": { - "line": 180, - "column": 2 - }, - "end": { - "line": 185, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates a new document by copying a template.\n * If a name is not supplied then document name will be set to the original template's name by default.\n * @param {TemplateDuplicateParams} data - duplicate template payload\n * @param {function(err: ApiErrorResponse, res: TemplateDuplicateResponse)} [callback] - error first node.js callback\n ", - "start": 5300, - "end": 5658, - "loc": { - "start": { - "line": 187, - "column": 2 - }, - "end": { - "line": 192, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Create invite with template payload\n * @typedef {DocumentInviteParams} TemplateInviteParams\n ", - "start": 6313, - "end": 6421, - "loc": { - "start": { - "line": 222, - "column": 2 - }, - "end": { - "line": 225, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create invite with template response data\n * @typedef {DocumentInviteResponse} TemplateInviteResponse\n ", - "start": 6425, - "end": 6543, - "loc": { - "start": { - "line": 227, - "column": 2 - }, - "end": { - "line": 230, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates an invite to sign a template.\n * You can create a simple free form invite(s) or a role-based invite(s).\n * The method copies a template into document and creates an invite using created document.\n * @param {TemplateInviteParams} data - create template invite payload\n * @param {function(err: ApiErrorResponse, res: TemplateInviteResponse)} [callback] - error first node.js callback\n ", - "start": 6547, - "end": 6959, - "loc": { - "start": { - "line": 232, - "column": 2 - }, - "end": { - "line": 238, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 6962, - "end": 8372, - "loc": { - "start": { - "line": 239, - "column": 2 - }, - "end": { - "line": 295, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 6969, - "end": 6975, - "loc": { - "start": { - "line": 239, - "column": 9 - }, - "end": { - "line": 239, - "column": 15 - }, - "identifierName": "invite" - }, - "name": "invite" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 6977, - "end": 7024, - "loc": { - "start": { - "line": 239, - "column": 17 - }, - "end": { - "line": 244, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 6983, - "end": 6985, - "loc": { - "start": { - "line": 240, - "column": 4 - }, - "end": { - "line": 240, - "column": 6 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 6983, - "end": 6985, - "loc": { - "start": { - "line": 240, - "column": 4 - }, - "end": { - "line": 240, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 6983, - "end": 6985, - "loc": { - "start": { - "line": 240, - "column": 4 - }, - "end": { - "line": 240, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 6991, - "end": 6995, - "loc": { - "start": { - "line": 241, - "column": 4 - }, - "end": { - "line": 241, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 6991, - "end": 6995, - "loc": { - "start": { - "line": 241, - "column": 4 - }, - "end": { - "line": 241, - "column": 8 - }, - "identifierName": "data" - }, - "name": "data" - }, - "value": { - "type": "Identifier", - "start": 6991, - "end": 6995, - "loc": { - "start": { - "line": 241, - "column": 4 - }, - "end": { - "line": 241, - "column": 8 - }, - "identifierName": "data" - }, - "name": "data" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 7001, - "end": 7008, - "loc": { - "start": { - "line": 242, - "column": 4 - }, - "end": { - "line": 242, - "column": 11 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7001, - "end": 7008, - "loc": { - "start": { - "line": 242, - "column": 4 - }, - "end": { - "line": 242, - "column": 11 - }, - "identifierName": "options" - }, - "name": "options" - }, - "value": { - "type": "Identifier", - "start": 7001, - "end": 7008, - "loc": { - "start": { - "line": 242, - "column": 4 - }, - "end": { - "line": 242, - "column": 11 - }, - "identifierName": "options" - }, - "name": "options" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 7014, - "end": 7019, - "loc": { - "start": { - "line": 243, - "column": 4 - }, - "end": { - "line": 243, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7014, - "end": 7019, - "loc": { - "start": { - "line": 243, - "column": 4 - }, - "end": { - "line": 243, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 7014, - "end": 7019, - "loc": { - "start": { - "line": 243, - "column": 4 - }, - "end": { - "line": 243, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 7026, - "end": 7034, - "loc": { - "start": { - "line": 244, - "column": 5 - }, - "end": { - "line": 244, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 7036, - "end": 8372, - "loc": { - "start": { - "line": 244, - "column": 15 - }, - "end": { - "line": 295, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 7042, - "end": 8368, - "loc": { - "start": { - "line": 245, - "column": 4 - }, - "end": { - "line": 294, - "column": 7 - } - }, - "expression": { - "type": "CallExpression", - "start": 7042, - "end": 8367, - "loc": { - "start": { - "line": 245, - "column": 4 - }, - "end": { - "line": 294, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 7042, - "end": 7060, - "loc": { - "start": { - "line": 245, - "column": 4 - }, - "end": { - "line": 245, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 7042, - "end": 7050, - "loc": { - "start": { - "line": 245, - "column": 4 - }, - "end": { - "line": 245, - "column": 12 - }, - "identifierName": "Template" - }, - "name": "Template" - }, - "property": { - "type": "Identifier", - "start": 7051, - "end": 7060, - "loc": { - "start": { - "line": 245, - "column": 13 - }, - "end": { - "line": 245, - "column": 22 - }, - "identifierName": "duplicate" - }, - "name": "duplicate" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 7061, - "end": 7091, - "loc": { - "start": { - "line": 245, - "column": 23 - }, - "end": { - "line": 248, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 7069, - "end": 7071, - "loc": { - "start": { - "line": 246, - "column": 6 - }, - "end": { - "line": 246, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7069, - "end": 7071, - "loc": { - "start": { - "line": 246, - "column": 6 - }, - "end": { - "line": 246, - "column": 8 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 7069, - "end": 7071, - "loc": { - "start": { - "line": 246, - "column": 6 - }, - "end": { - "line": 246, - "column": 8 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 7079, - "end": 7084, - "loc": { - "start": { - "line": 247, - "column": 6 - }, - "end": { - "line": 247, - "column": 11 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7079, - "end": 7084, - "loc": { - "start": { - "line": 247, - "column": 6 - }, - "end": { - "line": 247, - "column": 11 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 7079, - "end": 7084, - "loc": { - "start": { - "line": 247, - "column": 6 - }, - "end": { - "line": 247, - "column": 11 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "ArrowFunctionExpression", - "start": 7093, - "end": 8366, - "loc": { - "start": { - "line": 248, - "column": 7 - }, - "end": { - "line": 294, - "column": 5 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 7094, - "end": 7101, - "loc": { - "start": { - "line": 248, - "column": 8 - }, - "end": { - "line": 248, - "column": 15 - }, - "identifierName": "copyErr" - }, - "name": "copyErr" - }, - { - "type": "Identifier", - "start": 7103, - "end": 7110, - "loc": { - "start": { - "line": 248, - "column": 17 - }, - "end": { - "line": 248, - "column": 24 - }, - "identifierName": "copyRes" - }, - "name": "copyRes" - } - ], - "body": { - "type": "BlockStatement", - "start": 7115, - "end": 8366, - "loc": { - "start": { - "line": 248, - "column": 29 - }, - "end": { - "line": 294, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 7123, - "end": 8360, - "loc": { - "start": { - "line": 249, - "column": 6 - }, - "end": { - "line": 293, - "column": 7 - } - }, - "test": { - "type": "Identifier", - "start": 7127, - "end": 7134, - "loc": { - "start": { - "line": 249, - "column": 10 - }, - "end": { - "line": 249, - "column": 17 - }, - "identifierName": "copyErr" - }, - "name": "copyErr" - }, - "consequent": { - "type": "BlockStatement", - "start": 7136, - "end": 7188, - "loc": { - "start": { - "line": 249, - "column": 19 - }, - "end": { - "line": 252, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 7146, - "end": 7164, - "loc": { - "start": { - "line": 250, - "column": 8 - }, - "end": { - "line": 250, - "column": 26 - } - }, - "expression": { - "type": "CallExpression", - "start": 7146, - "end": 7163, - "loc": { - "start": { - "line": 250, - "column": 8 - }, - "end": { - "line": 250, - "column": 25 - } - }, - "callee": { - "type": "Identifier", - "start": 7146, - "end": 7154, - "loc": { - "start": { - "line": 250, - "column": 8 - }, - "end": { - "line": 250, - "column": 16 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 7155, - "end": 7162, - "loc": { - "start": { - "line": 250, - "column": 17 - }, - "end": { - "line": 250, - "column": 24 - }, - "identifierName": "copyErr" - }, - "name": "copyErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 7173, - "end": 7180, - "loc": { - "start": { - "line": 251, - "column": 8 - }, - "end": { - "line": 251, - "column": 15 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "IfStatement", - "start": 7194, - "end": 8360, - "loc": { - "start": { - "line": 252, - "column": 13 - }, - "end": { - "line": 293, - "column": 7 - } - }, - "test": { - "type": "CallExpression", - "start": 7198, - "end": 7220, - "loc": { - "start": { - "line": 252, - "column": 17 - }, - "end": { - "line": 252, - "column": 39 - } - }, - "callee": { - "type": "MemberExpression", - "start": 7198, - "end": 7211, - "loc": { - "start": { - "line": 252, - "column": 17 - }, - "end": { - "line": 252, - "column": 30 - } - }, - "object": { - "type": "Identifier", - "start": 7198, - "end": 7203, - "loc": { - "start": { - "line": 252, - "column": 17 - }, - "end": { - "line": 252, - "column": 22 - }, - "identifierName": "Array" - }, - "name": "Array" - }, - "property": { - "type": "Identifier", - "start": 7204, - "end": 7211, - "loc": { - "start": { - "line": 252, - "column": 23 - }, - "end": { - "line": 252, - "column": 30 - }, - "identifierName": "isArray" - }, - "name": "isArray" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 7212, - "end": 7219, - "loc": { - "start": { - "line": 252, - "column": 31 - }, - "end": { - "line": 252, - "column": 38 - } - }, - "object": { - "type": "Identifier", - "start": 7212, - "end": 7216, - "loc": { - "start": { - "line": 252, - "column": 31 - }, - "end": { - "line": 252, - "column": 35 - }, - "identifierName": "data" - }, - "name": "data" - }, - "property": { - "type": "Identifier", - "start": 7217, - "end": 7219, - "loc": { - "start": { - "line": 252, - "column": 36 - }, - "end": { - "line": 252, - "column": 38 - }, - "identifierName": "to" - }, - "name": "to" - }, - "computed": false - } - ] - }, - "consequent": { - "type": "BlockStatement", - "start": 7222, - "end": 8078, - "loc": { - "start": { - "line": 252, - "column": 41 - }, - "end": { - "line": 283, - "column": 7 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 7232, - "end": 7267, - "loc": { - "start": { - "line": 253, - "column": 8 - }, - "end": { - "line": 253, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7238, - "end": 7266, - "loc": { - "start": { - "line": 253, - "column": 14 - }, - "end": { - "line": 253, - "column": 42 - } - }, - "id": { - "type": "ObjectPattern", - "start": 7238, - "end": 7256, - "loc": { - "start": { - "line": 253, - "column": 14 - }, - "end": { - "line": 253, - "column": 32 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 7240, - "end": 7254, - "loc": { - "start": { - "line": 253, - "column": 16 - }, - "end": { - "line": 253, - "column": 30 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7240, - "end": 7242, - "loc": { - "start": { - "line": 253, - "column": 16 - }, - "end": { - "line": 253, - "column": 18 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 7244, - "end": 7254, - "loc": { - "start": { - "line": 253, - "column": 20 - }, - "end": { - "line": 253, - "column": 30 - }, - "identifierName": "documentId" - }, - "name": "documentId" - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 7259, - "end": 7266, - "loc": { - "start": { - "line": 253, - "column": 35 - }, - "end": { - "line": 253, - "column": 42 - }, - "identifierName": "copyRes" - }, - "name": "copyRes" - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 7277, - "end": 8070, - "loc": { - "start": { - "line": 255, - "column": 8 - }, - "end": { - "line": 282, - "column": 11 - } - }, - "expression": { - "type": "CallExpression", - "start": 7277, - "end": 8069, - "loc": { - "start": { - "line": 255, - "column": 8 - }, - "end": { - "line": 282, - "column": 10 - } - }, - "callee": { - "type": "Identifier", - "start": 7277, - "end": 7295, - "loc": { - "start": { - "line": 255, - "column": 8 - }, - "end": { - "line": 255, - "column": 26 - }, - "identifierName": "getDocumentDetails" - }, - "name": "getDocumentDetails" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 7296, - "end": 7350, - "loc": { - "start": { - "line": 255, - "column": 27 - }, - "end": { - "line": 258, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 7308, - "end": 7322, - "loc": { - "start": { - "line": 256, - "column": 10 - }, - "end": { - "line": 256, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7308, - "end": 7310, - "loc": { - "start": { - "line": 256, - "column": 10 - }, - "end": { - "line": 256, - "column": 12 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 7312, - "end": 7322, - "loc": { - "start": { - "line": 256, - "column": 14 - }, - "end": { - "line": 256, - "column": 24 - }, - "identifierName": "documentId" - }, - "name": "documentId" - } - }, - { - "type": "ObjectProperty", - "start": 7334, - "end": 7339, - "loc": { - "start": { - "line": 257, - "column": 10 - }, - "end": { - "line": 257, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7334, - "end": 7339, - "loc": { - "start": { - "line": 257, - "column": 10 - }, - "end": { - "line": 257, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 7334, - "end": 7339, - "loc": { - "start": { - "line": 257, - "column": 10 - }, - "end": { - "line": 257, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "ArrowFunctionExpression", - "start": 7352, - "end": 8068, - "loc": { - "start": { - "line": 258, - "column": 11 - }, - "end": { - "line": 282, - "column": 9 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 7353, - "end": 7362, - "loc": { - "start": { - "line": 258, - "column": 12 - }, - "end": { - "line": 258, - "column": 21 - }, - "identifierName": "detailErr" - }, - "name": "detailErr" - }, - { - "type": "Identifier", - "start": 7364, - "end": 7373, - "loc": { - "start": { - "line": 258, - "column": 23 - }, - "end": { - "line": 258, - "column": 32 - }, - "identifierName": "detailRes" - }, - "name": "detailRes" - } - ], - "body": { - "type": "BlockStatement", - "start": 7378, - "end": 8068, - "loc": { - "start": { - "line": 258, - "column": 37 - }, - "end": { - "line": 282, - "column": 9 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 7390, - "end": 8058, - "loc": { - "start": { - "line": 259, - "column": 10 - }, - "end": { - "line": 281, - "column": 11 - } - }, - "test": { - "type": "Identifier", - "start": 7394, - "end": 7403, - "loc": { - "start": { - "line": 259, - "column": 14 - }, - "end": { - "line": 259, - "column": 23 - }, - "identifierName": "detailErr" - }, - "name": "detailErr" - }, - "consequent": { - "type": "BlockStatement", - "start": 7405, - "end": 7471, - "loc": { - "start": { - "line": 259, - "column": 25 - }, - "end": { - "line": 262, - "column": 11 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 7419, - "end": 7439, - "loc": { - "start": { - "line": 260, - "column": 12 - }, - "end": { - "line": 260, - "column": 32 - } - }, - "expression": { - "type": "CallExpression", - "start": 7419, - "end": 7438, - "loc": { - "start": { - "line": 260, - "column": 12 - }, - "end": { - "line": 260, - "column": 31 - } - }, - "callee": { - "type": "Identifier", - "start": 7419, - "end": 7427, - "loc": { - "start": { - "line": 260, - "column": 12 - }, - "end": { - "line": 260, - "column": 20 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 7428, - "end": 7437, - "loc": { - "start": { - "line": 260, - "column": 21 - }, - "end": { - "line": 260, - "column": 30 - }, - "identifierName": "detailErr" - }, - "name": "detailErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 7452, - "end": 7459, - "loc": { - "start": { - "line": 261, - "column": 12 - }, - "end": { - "line": 261, - "column": 19 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 7477, - "end": 8058, - "loc": { - "start": { - "line": 262, - "column": 17 - }, - "end": { - "line": 281, - "column": 11 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 7491, - "end": 7563, - "loc": { - "start": { - "line": 263, - "column": 12 - }, - "end": { - "line": 263, - "column": 84 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7497, - "end": 7562, - "loc": { - "start": { - "line": 263, - "column": 18 - }, - "end": { - "line": 263, - "column": 83 - } - }, - "id": { - "type": "Identifier", - "start": 7497, - "end": 7507, - "loc": { - "start": { - "line": 263, - "column": 18 - }, - "end": { - "line": 263, - "column": 28 - }, - "identifierName": "inviteData" - }, - "name": "inviteData" - }, - "init": { - "type": "CallExpression", - "start": 7510, - "end": 7562, - "loc": { - "start": { - "line": 263, - "column": 31 - }, - "end": { - "line": 263, - "column": 83 - } - }, - "callee": { - "type": "MemberExpression", - "start": 7510, - "end": 7523, - "loc": { - "start": { - "line": 263, - "column": 31 - }, - "end": { - "line": 263, - "column": 44 - } - }, - "object": { - "type": "Identifier", - "start": 7510, - "end": 7516, - "loc": { - "start": { - "line": 263, - "column": 31 - }, - "end": { - "line": 263, - "column": 37 - }, - "identifierName": "Object" - }, - "name": "Object" - }, - "property": { - "type": "Identifier", - "start": 7517, - "end": 7523, - "loc": { - "start": { - "line": 263, - "column": 38 - }, - "end": { - "line": 263, - "column": 44 - }, - "identifierName": "assign" - }, - "name": "assign" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 7524, - "end": 7526, - "loc": { - "start": { - "line": 263, - "column": 45 - }, - "end": { - "line": 263, - "column": 47 - } - }, - "properties": [] - }, - { - "type": "Identifier", - "start": 7528, - "end": 7532, - "loc": { - "start": { - "line": 263, - "column": 49 - }, - "end": { - "line": 263, - "column": 53 - }, - "identifierName": "data" - }, - "name": "data" - }, - { - "type": "ObjectExpression", - "start": 7534, - "end": 7561, - "loc": { - "start": { - "line": 263, - "column": 55 - }, - "end": { - "line": 263, - "column": 82 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 7536, - "end": 7559, - "loc": { - "start": { - "line": 263, - "column": 57 - }, - "end": { - "line": 263, - "column": 80 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7536, - "end": 7547, - "loc": { - "start": { - "line": 263, - "column": 57 - }, - "end": { - "line": 263, - "column": 68 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "value": { - "type": "Identifier", - "start": 7549, - "end": 7559, - "loc": { - "start": { - "line": 263, - "column": 70 - }, - "end": { - "line": 263, - "column": 80 - }, - "identifierName": "documentId" - }, - "name": "documentId" - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 7576, - "end": 7604, - "loc": { - "start": { - "line": 264, - "column": 12 - }, - "end": { - "line": 264, - "column": 40 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7582, - "end": 7603, - "loc": { - "start": { - "line": 264, - "column": 18 - }, - "end": { - "line": 264, - "column": 39 - } - }, - "id": { - "type": "ObjectPattern", - "start": 7582, - "end": 7591, - "loc": { - "start": { - "line": 264, - "column": 18 - }, - "end": { - "line": 264, - "column": 27 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 7584, - "end": 7589, - "loc": { - "start": { - "line": 264, - "column": 20 - }, - "end": { - "line": 264, - "column": 25 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7584, - "end": 7589, - "loc": { - "start": { - "line": 264, - "column": 20 - }, - "end": { - "line": 264, - "column": 25 - }, - "identifierName": "roles" - }, - "name": "roles" - }, - "value": { - "type": "Identifier", - "start": 7584, - "end": 7589, - "loc": { - "start": { - "line": 264, - "column": 20 - }, - "end": { - "line": 264, - "column": 25 - }, - "identifierName": "roles" - }, - "name": "roles" - }, - "extra": { - "shorthand": true - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 7594, - "end": 7603, - "loc": { - "start": { - "line": 264, - "column": 30 - }, - "end": { - "line": 264, - "column": 39 - }, - "identifierName": "detailRes" - }, - "name": "detailRes" - } - } - ], - "kind": "const" - }, - { - "type": "ForOfStatement", - "start": 7618, - "end": 7880, - "loc": { - "start": { - "line": 266, - "column": 12 - }, - "end": { - "line": 273, - "column": 13 - } - }, - "left": { - "type": "VariableDeclaration", - "start": 7623, - "end": 7635, - "loc": { - "start": { - "line": 266, - "column": 17 - }, - "end": { - "line": 266, - "column": 29 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7629, - "end": 7635, - "loc": { - "start": { - "line": 266, - "column": 23 - }, - "end": { - "line": 266, - "column": 29 - } - }, - "id": { - "type": "Identifier", - "start": 7629, - "end": 7635, - "loc": { - "start": { - "line": 266, - "column": 23 - }, - "end": { - "line": 266, - "column": 29 - }, - "identifierName": "signer" - }, - "name": "signer" - }, - "init": null - } - ], - "kind": "const" - }, - "right": { - "type": "MemberExpression", - "start": 7639, - "end": 7652, - "loc": { - "start": { - "line": 266, - "column": 33 - }, - "end": { - "line": 266, - "column": 46 - } - }, - "object": { - "type": "Identifier", - "start": 7639, - "end": 7649, - "loc": { - "start": { - "line": 266, - "column": 33 - }, - "end": { - "line": 266, - "column": 43 - }, - "identifierName": "inviteData" - }, - "name": "inviteData" - }, - "property": { - "type": "Identifier", - "start": 7650, - "end": 7652, - "loc": { - "start": { - "line": 266, - "column": 44 - }, - "end": { - "line": 266, - "column": 46 - }, - "identifierName": "to" - }, - "name": "to" - }, - "computed": false - }, - "body": { - "type": "BlockStatement", - "start": 7654, - "end": 7880, - "loc": { - "start": { - "line": 266, - "column": 48 - }, - "end": { - "line": 273, - "column": 13 - } - }, - "body": [ - { - "type": "TryStatement", - "start": 7670, - "end": 7866, - "loc": { - "start": { - "line": 267, - "column": 14 - }, - "end": { - "line": 272, - "column": 15 - } - }, - "block": { - "type": "BlockStatement", - "start": 7674, - "end": 7781, - "loc": { - "start": { - "line": 267, - "column": 18 - }, - "end": { - "line": 269, - "column": 15 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 7692, - "end": 7765, - "loc": { - "start": { - "line": 268, - "column": 16 - }, - "end": { - "line": 268, - "column": 89 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 7692, - "end": 7764, - "loc": { - "start": { - "line": 268, - "column": 16 - }, - "end": { - "line": 268, - "column": 88 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 7692, - "end": 7706, - "loc": { - "start": { - "line": 268, - "column": 16 - }, - "end": { - "line": 268, - "column": 30 - } - }, - "object": { - "type": "Identifier", - "start": 7692, - "end": 7698, - "loc": { - "start": { - "line": 268, - "column": 16 - }, - "end": { - "line": 268, - "column": 22 - }, - "identifierName": "signer" - }, - "name": "signer" - }, - "property": { - "type": "Identifier", - "start": 7699, - "end": 7706, - "loc": { - "start": { - "line": 268, - "column": 23 - }, - "end": { - "line": 268, - "column": 30 - }, - "identifierName": "role_id" - }, - "name": "role_id" - }, - "computed": false - }, - "right": { - "type": "MemberExpression", - "start": 7709, - "end": 7764, - "loc": { - "start": { - "line": 268, - "column": 33 - }, - "end": { - "line": 268, - "column": 88 - } - }, - "object": { - "type": "CallExpression", - "start": 7709, - "end": 7754, - "loc": { - "start": { - "line": 268, - "column": 33 - }, - "end": { - "line": 268, - "column": 78 - } - }, - "callee": { - "type": "MemberExpression", - "start": 7709, - "end": 7719, - "loc": { - "start": { - "line": 268, - "column": 33 - }, - "end": { - "line": 268, - "column": 43 - } - }, - "object": { - "type": "Identifier", - "start": 7709, - "end": 7714, - "loc": { - "start": { - "line": 268, - "column": 33 - }, - "end": { - "line": 268, - "column": 38 - }, - "identifierName": "roles" - }, - "name": "roles" - }, - "property": { - "type": "Identifier", - "start": 7715, - "end": 7719, - "loc": { - "start": { - "line": 268, - "column": 39 - }, - "end": { - "line": 268, - "column": 43 - }, - "identifierName": "find" - }, - "name": "find" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 7720, - "end": 7753, - "loc": { - "start": { - "line": 268, - "column": 44 - }, - "end": { - "line": 268, - "column": 77 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 7720, - "end": 7724, - "loc": { - "start": { - "line": 268, - "column": 44 - }, - "end": { - "line": 268, - "column": 48 - }, - "identifierName": "role" - }, - "name": "role" - } - ], - "body": { - "type": "BinaryExpression", - "start": 7728, - "end": 7753, - "loc": { - "start": { - "line": 268, - "column": 52 - }, - "end": { - "line": 268, - "column": 77 - } - }, - "left": { - "type": "MemberExpression", - "start": 7728, - "end": 7737, - "loc": { - "start": { - "line": 268, - "column": 52 - }, - "end": { - "line": 268, - "column": 61 - } - }, - "object": { - "type": "Identifier", - "start": 7728, - "end": 7732, - "loc": { - "start": { - "line": 268, - "column": 52 - }, - "end": { - "line": 268, - "column": 56 - }, - "identifierName": "role" - }, - "name": "role" - }, - "property": { - "type": "Identifier", - "start": 7733, - "end": 7737, - "loc": { - "start": { - "line": 268, - "column": 57 - }, - "end": { - "line": 268, - "column": 61 - }, - "identifierName": "name" - }, - "name": "name" - }, - "computed": false - }, - "operator": "===", - "right": { - "type": "MemberExpression", - "start": 7742, - "end": 7753, - "loc": { - "start": { - "line": 268, - "column": 66 - }, - "end": { - "line": 268, - "column": 77 - } - }, - "object": { - "type": "Identifier", - "start": 7742, - "end": 7748, - "loc": { - "start": { - "line": 268, - "column": 66 - }, - "end": { - "line": 268, - "column": 72 - }, - "identifierName": "signer" - }, - "name": "signer" - }, - "property": { - "type": "Identifier", - "start": 7749, - "end": 7753, - "loc": { - "start": { - "line": 268, - "column": 73 - }, - "end": { - "line": 268, - "column": 77 - }, - "identifierName": "role" - }, - "name": "role" - }, - "computed": false - } - } - } - ] - }, - "property": { - "type": "Identifier", - "start": 7755, - "end": 7764, - "loc": { - "start": { - "line": 268, - "column": 79 - }, - "end": { - "line": 268, - "column": 88 - }, - "identifierName": "unique_id" - }, - "name": "unique_id" - }, - "computed": false - } - } - } - ], - "directives": [] - }, - "handler": { - "type": "CatchClause", - "start": 7782, - "end": 7866, - "loc": { - "start": { - "line": 269, - "column": 16 - }, - "end": { - "line": 272, - "column": 15 - } - }, - "param": { - "type": "Identifier", - "start": 7789, - "end": 7792, - "loc": { - "start": { - "line": 269, - "column": 23 - }, - "end": { - "line": 269, - "column": 26 - }, - "identifierName": "err" - }, - "name": "err" - }, - "body": { - "type": "BlockStatement", - "start": 7794, - "end": 7866, - "loc": { - "start": { - "line": 269, - "column": 28 - }, - "end": { - "line": 272, - "column": 15 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 7812, - "end": 7826, - "loc": { - "start": { - "line": 270, - "column": 16 - }, - "end": { - "line": 270, - "column": 30 - } - }, - "expression": { - "type": "CallExpression", - "start": 7812, - "end": 7825, - "loc": { - "start": { - "line": 270, - "column": 16 - }, - "end": { - "line": 270, - "column": 29 - } - }, - "callee": { - "type": "Identifier", - "start": 7812, - "end": 7820, - "loc": { - "start": { - "line": 270, - "column": 16 - }, - "end": { - "line": 270, - "column": 24 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 7821, - "end": 7824, - "loc": { - "start": { - "line": 270, - "column": 25 - }, - "end": { - "line": 270, - "column": 28 - }, - "identifierName": "err" - }, - "name": "err" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 7843, - "end": 7850, - "loc": { - "start": { - "line": 271, - "column": 16 - }, - "end": { - "line": 271, - "column": 23 - } - }, - "argument": null - } - ], - "directives": [] - } - }, - "guardedHandlers": [], - "finalizer": null - } - ], - "directives": [] - } - }, - { - "type": "ExpressionStatement", - "start": 7894, - "end": 8046, - "loc": { - "start": { - "line": 275, - "column": 12 - }, - "end": { - "line": 280, - "column": 25 - } - }, - "expression": { - "type": "CallExpression", - "start": 7894, - "end": 8045, - "loc": { - "start": { - "line": 275, - "column": 12 - }, - "end": { - "line": 280, - "column": 24 - } - }, - "callee": { - "type": "Identifier", - "start": 7894, - "end": 7912, - "loc": { - "start": { - "line": 275, - "column": 12 - }, - "end": { - "line": 275, - "column": 30 - }, - "identifierName": "sendDocumentInvite" - }, - "name": "sendDocumentInvite" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 7913, - "end": 8034, - "loc": { - "start": { - "line": 275, - "column": 31 - }, - "end": { - "line": 280, - "column": 13 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 7929, - "end": 7943, - "loc": { - "start": { - "line": 276, - "column": 14 - }, - "end": { - "line": 276, - "column": 28 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7929, - "end": 7931, - "loc": { - "start": { - "line": 276, - "column": 14 - }, - "end": { - "line": 276, - "column": 16 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 7933, - "end": 7943, - "loc": { - "start": { - "line": 276, - "column": 18 - }, - "end": { - "line": 276, - "column": 28 - }, - "identifierName": "documentId" - }, - "name": "documentId" - } - }, - { - "type": "ObjectProperty", - "start": 7959, - "end": 7975, - "loc": { - "start": { - "line": 277, - "column": 14 - }, - "end": { - "line": 277, - "column": 30 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7959, - "end": 7963, - "loc": { - "start": { - "line": 277, - "column": 14 - }, - "end": { - "line": 277, - "column": 18 - }, - "identifierName": "data" - }, - "name": "data" - }, - "value": { - "type": "Identifier", - "start": 7965, - "end": 7975, - "loc": { - "start": { - "line": 277, - "column": 20 - }, - "end": { - "line": 277, - "column": 30 - }, - "identifierName": "inviteData" - }, - "name": "inviteData" - } - }, - { - "type": "ObjectProperty", - "start": 7991, - "end": 7998, - "loc": { - "start": { - "line": 278, - "column": 14 - }, - "end": { - "line": 278, - "column": 21 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 7991, - "end": 7998, - "loc": { - "start": { - "line": 278, - "column": 14 - }, - "end": { - "line": 278, - "column": 21 - }, - "identifierName": "options" - }, - "name": "options" - }, - "value": { - "type": "Identifier", - "start": 7991, - "end": 7998, - "loc": { - "start": { - "line": 278, - "column": 14 - }, - "end": { - "line": 278, - "column": 21 - }, - "identifierName": "options" - }, - "name": "options" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 8014, - "end": 8019, - "loc": { - "start": { - "line": 279, - "column": 14 - }, - "end": { - "line": 279, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8014, - "end": 8019, - "loc": { - "start": { - "line": 279, - "column": 14 - }, - "end": { - "line": 279, - "column": 19 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 8014, - "end": 8019, - "loc": { - "start": { - "line": 279, - "column": 14 - }, - "end": { - "line": 279, - "column": 19 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 8036, - "end": 8044, - "loc": { - "start": { - "line": 280, - "column": 15 - }, - "end": { - "line": 280, - "column": 23 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 8084, - "end": 8360, - "loc": { - "start": { - "line": 283, - "column": 13 - }, - "end": { - "line": 293, - "column": 7 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 8094, - "end": 8129, - "loc": { - "start": { - "line": 284, - "column": 8 - }, - "end": { - "line": 284, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 8100, - "end": 8128, - "loc": { - "start": { - "line": 284, - "column": 14 - }, - "end": { - "line": 284, - "column": 42 - } - }, - "id": { - "type": "ObjectPattern", - "start": 8100, - "end": 8118, - "loc": { - "start": { - "line": 284, - "column": 14 - }, - "end": { - "line": 284, - "column": 32 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 8102, - "end": 8116, - "loc": { - "start": { - "line": 284, - "column": 16 - }, - "end": { - "line": 284, - "column": 30 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 8102, - "end": 8104, - "loc": { - "start": { - "line": 284, - "column": 16 - }, - "end": { - "line": 284, - "column": 18 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 8106, - "end": 8116, - "loc": { - "start": { - "line": 284, - "column": 20 - }, - "end": { - "line": 284, - "column": 30 - }, - "identifierName": "documentId" - }, - "name": "documentId" - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 8121, - "end": 8128, - "loc": { - "start": { - "line": 284, - "column": 35 - }, - "end": { - "line": 284, - "column": 42 - }, - "identifierName": "copyRes" - }, - "name": "copyRes" - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 8138, - "end": 8210, - "loc": { - "start": { - "line": 285, - "column": 8 - }, - "end": { - "line": 285, - "column": 80 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 8144, - "end": 8209, - "loc": { - "start": { - "line": 285, - "column": 14 - }, - "end": { - "line": 285, - "column": 79 - } - }, - "id": { - "type": "Identifier", - "start": 8144, - "end": 8154, - "loc": { - "start": { - "line": 285, - "column": 14 - }, - "end": { - "line": 285, - "column": 24 - }, - "identifierName": "inviteData" - }, - "name": "inviteData" - }, - "init": { - "type": "CallExpression", - "start": 8157, - "end": 8209, - "loc": { - "start": { - "line": 285, - "column": 27 - }, - "end": { - "line": 285, - "column": 79 - } - }, - "callee": { - "type": "MemberExpression", - "start": 8157, - "end": 8170, - "loc": { - "start": { - "line": 285, - "column": 27 - }, - "end": { - "line": 285, - "column": 40 - } - }, - "object": { - "type": "Identifier", - "start": 8157, - "end": 8163, - "loc": { - "start": { - "line": 285, - "column": 27 - }, - "end": { - "line": 285, - "column": 33 - }, - "identifierName": "Object" - }, - "name": "Object" - }, - "property": { - "type": "Identifier", - "start": 8164, - "end": 8170, - "loc": { - "start": { - "line": 285, - "column": 34 - }, - "end": { - "line": 285, - "column": 40 - }, - "identifierName": "assign" - }, - "name": "assign" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 8171, - "end": 8173, - "loc": { - "start": { - "line": 285, - "column": 41 - }, - "end": { - "line": 285, - "column": 43 - } - }, - "properties": [] - }, - { - "type": "Identifier", - "start": 8175, - "end": 8179, - "loc": { - "start": { - "line": 285, - "column": 45 - }, - "end": { - "line": 285, - "column": 49 - }, - "identifierName": "data" - }, - "name": "data" - }, - { - "type": "ObjectExpression", - "start": 8181, - "end": 8208, - "loc": { - "start": { - "line": 285, - "column": 51 - }, - "end": { - "line": 285, - "column": 78 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 8183, - "end": 8206, - "loc": { - "start": { - "line": 285, - "column": 53 - }, - "end": { - "line": 285, - "column": 76 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 8183, - "end": 8194, - "loc": { - "start": { - "line": 285, - "column": 53 - }, - "end": { - "line": 285, - "column": 64 - }, - "identifierName": "document_id" - }, - "name": "document_id" - }, - "value": { - "type": "Identifier", - "start": 8196, - "end": 8206, - "loc": { - "start": { - "line": 285, - "column": 66 - }, - "end": { - "line": 285, - "column": 76 - }, - "identifierName": "documentId" - }, - "name": "documentId" - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 8220, - "end": 8352, - "loc": { - "start": { - "line": 287, - "column": 8 - }, - "end": { - "line": 292, - "column": 21 - } - }, - "expression": { - "type": "CallExpression", - "start": 8220, - "end": 8351, - "loc": { - "start": { - "line": 287, - "column": 8 - }, - "end": { - "line": 292, - "column": 20 - } - }, - "callee": { - "type": "Identifier", - "start": 8220, - "end": 8238, - "loc": { - "start": { - "line": 287, - "column": 8 - }, - "end": { - "line": 287, - "column": 26 - }, - "identifierName": "sendDocumentInvite" - }, - "name": "sendDocumentInvite" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 8239, - "end": 8340, - "loc": { - "start": { - "line": 287, - "column": 27 - }, - "end": { - "line": 292, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 8251, - "end": 8265, - "loc": { - "start": { - "line": 288, - "column": 10 - }, - "end": { - "line": 288, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 8251, - "end": 8253, - "loc": { - "start": { - "line": 288, - "column": 10 - }, - "end": { - "line": 288, - "column": 12 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 8255, - "end": 8265, - "loc": { - "start": { - "line": 288, - "column": 14 - }, - "end": { - "line": 288, - "column": 24 - }, - "identifierName": "documentId" - }, - "name": "documentId" - } - }, - { - "type": "ObjectProperty", - "start": 8277, - "end": 8293, - "loc": { - "start": { - "line": 289, - "column": 10 - }, - "end": { - "line": 289, - "column": 26 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 8277, - "end": 8281, - "loc": { - "start": { - "line": 289, - "column": 10 - }, - "end": { - "line": 289, - "column": 14 - }, - "identifierName": "data" - }, - "name": "data" - }, - "value": { - "type": "Identifier", - "start": 8283, - "end": 8293, - "loc": { - "start": { - "line": 289, - "column": 16 - }, - "end": { - "line": 289, - "column": 26 - }, - "identifierName": "inviteData" - }, - "name": "inviteData" - } - }, - { - "type": "ObjectProperty", - "start": 8305, - "end": 8312, - "loc": { - "start": { - "line": 290, - "column": 10 - }, - "end": { - "line": 290, - "column": 17 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8305, - "end": 8312, - "loc": { - "start": { - "line": 290, - "column": 10 - }, - "end": { - "line": 290, - "column": 17 - }, - "identifierName": "options" - }, - "name": "options" - }, - "value": { - "type": "Identifier", - "start": 8305, - "end": 8312, - "loc": { - "start": { - "line": 290, - "column": 10 - }, - "end": { - "line": 290, - "column": 17 - }, - "identifierName": "options" - }, - "name": "options" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 8324, - "end": 8329, - "loc": { - "start": { - "line": 291, - "column": 10 - }, - "end": { - "line": 291, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8324, - "end": 8329, - "loc": { - "start": { - "line": 291, - "column": 10 - }, - "end": { - "line": 291, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 8324, - "end": 8329, - "loc": { - "start": { - "line": 291, - "column": 10 - }, - "end": { - "line": 291, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 8342, - "end": 8350, - "loc": { - "start": { - "line": 292, - "column": 11 - }, - "end": { - "line": 292, - "column": 19 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - } - ], - "directives": [] - } - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Create invite with template payload\n * @typedef {DocumentInviteParams} TemplateInviteParams\n ", - "start": 6313, - "end": 6421, - "loc": { - "start": { - "line": 222, - "column": 2 - }, - "end": { - "line": 225, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create invite with template response data\n * @typedef {DocumentInviteResponse} TemplateInviteResponse\n ", - "start": 6425, - "end": 6543, - "loc": { - "start": { - "line": 227, - "column": 2 - }, - "end": { - "line": 230, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates an invite to sign a template.\n * You can create a simple free form invite(s) or a role-based invite(s).\n * The method copies a template into document and creates an invite using created document.\n * @param {TemplateInviteParams} data - create template invite payload\n * @param {function(err: ApiErrorResponse, res: TemplateInviteResponse)} [callback] - error first node.js callback\n ", - "start": 6547, - "end": 6959, - "loc": { - "start": { - "line": 232, - "column": 2 - }, - "end": { - "line": 238, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Remove template payload\n * @typedef {DocumentRemoveParams} TemplateRemoveParams\n ", - "start": 8376, - "end": 8472, - "loc": { - "start": { - "line": 297, - "column": 2 - }, - "end": { - "line": 300, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Remove template response data\n * @typedef {DocumentRemoveResponse} TemplateRemoveResponse\n ", - "start": 8476, - "end": 8582, - "loc": { - "start": { - "line": 302, - "column": 2 - }, - "end": { - "line": 305, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Removes a specified template from folder\n * @param {TemplateRemoveParams} data - remove template payload\n * @param {function(err: ApiErrorResponse, res: TemplateRemoveResponse)} [callback] - error first node.js callback\n ", - "start": 8586, - "end": 8824, - "loc": { - "start": { - "line": 307, - "column": 2 - }, - "end": { - "line": 311, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 8827, - "end": 8973, - "loc": { - "start": { - "line": 312, - "column": 2 - }, - "end": { - "line": 322, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8834, - "end": 8840, - "loc": { - "start": { - "line": 312, - "column": 9 - }, - "end": { - "line": 312, - "column": 15 - }, - "identifierName": "remove" - }, - "name": "remove" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 8842, - "end": 8879, - "loc": { - "start": { - "line": 312, - "column": 17 - }, - "end": { - "line": 316, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 8848, - "end": 8850, - "loc": { - "start": { - "line": 313, - "column": 4 - }, - "end": { - "line": 313, - "column": 6 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8848, - "end": 8850, - "loc": { - "start": { - "line": 313, - "column": 4 - }, - "end": { - "line": 313, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 8848, - "end": 8850, - "loc": { - "start": { - "line": 313, - "column": 4 - }, - "end": { - "line": 313, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 8856, - "end": 8861, - "loc": { - "start": { - "line": 314, - "column": 4 - }, - "end": { - "line": 314, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8856, - "end": 8861, - "loc": { - "start": { - "line": 314, - "column": 4 - }, - "end": { - "line": 314, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 8856, - "end": 8861, - "loc": { - "start": { - "line": 314, - "column": 4 - }, - "end": { - "line": 314, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 8867, - "end": 8874, - "loc": { - "start": { - "line": 315, - "column": 4 - }, - "end": { - "line": 315, - "column": 11 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8867, - "end": 8874, - "loc": { - "start": { - "line": 315, - "column": 4 - }, - "end": { - "line": 315, - "column": 11 - }, - "identifierName": "options" - }, - "name": "options" - }, - "value": { - "type": "Identifier", - "start": 8867, - "end": 8874, - "loc": { - "start": { - "line": 315, - "column": 4 - }, - "end": { - "line": 315, - "column": 11 - }, - "identifierName": "options" - }, - "name": "options" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 8881, - "end": 8889, - "loc": { - "start": { - "line": 316, - "column": 5 - }, - "end": { - "line": 316, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 8891, - "end": 8973, - "loc": { - "start": { - "line": 316, - "column": 15 - }, - "end": { - "line": 322, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 8897, - "end": 8969, - "loc": { - "start": { - "line": 317, - "column": 4 - }, - "end": { - "line": 321, - "column": 17 - } - }, - "expression": { - "type": "CallExpression", - "start": 8897, - "end": 8968, - "loc": { - "start": { - "line": 317, - "column": 4 - }, - "end": { - "line": 321, - "column": 16 - } - }, - "callee": { - "type": "Identifier", - "start": 8897, - "end": 8911, - "loc": { - "start": { - "line": 317, - "column": 4 - }, - "end": { - "line": 317, - "column": 18 - }, - "identifierName": "removeDocument" - }, - "name": "removeDocument" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 8912, - "end": 8957, - "loc": { - "start": { - "line": 317, - "column": 19 - }, - "end": { - "line": 321, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 8920, - "end": 8922, - "loc": { - "start": { - "line": 318, - "column": 6 - }, - "end": { - "line": 318, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8920, - "end": 8922, - "loc": { - "start": { - "line": 318, - "column": 6 - }, - "end": { - "line": 318, - "column": 8 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 8920, - "end": 8922, - "loc": { - "start": { - "line": 318, - "column": 6 - }, - "end": { - "line": 318, - "column": 8 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 8930, - "end": 8935, - "loc": { - "start": { - "line": 319, - "column": 6 - }, - "end": { - "line": 319, - "column": 11 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8930, - "end": 8935, - "loc": { - "start": { - "line": 319, - "column": 6 - }, - "end": { - "line": 319, - "column": 11 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 8930, - "end": 8935, - "loc": { - "start": { - "line": 319, - "column": 6 - }, - "end": { - "line": 319, - "column": 11 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 8943, - "end": 8950, - "loc": { - "start": { - "line": 320, - "column": 6 - }, - "end": { - "line": 320, - "column": 13 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 8943, - "end": 8950, - "loc": { - "start": { - "line": 320, - "column": 6 - }, - "end": { - "line": 320, - "column": 13 - }, - "identifierName": "options" - }, - "name": "options" - }, - "value": { - "type": "Identifier", - "start": 8943, - "end": 8950, - "loc": { - "start": { - "line": 320, - "column": 6 - }, - "end": { - "line": 320, - "column": 13 - }, - "identifierName": "options" - }, - "name": "options" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 8959, - "end": 8967, - "loc": { - "start": { - "line": 321, - "column": 7 - }, - "end": { - "line": 321, - "column": 15 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Remove template payload\n * @typedef {DocumentRemoveParams} TemplateRemoveParams\n ", - "start": 8376, - "end": 8472, - "loc": { - "start": { - "line": 297, - "column": 2 - }, - "end": { - "line": 300, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Remove template response data\n * @typedef {DocumentRemoveResponse} TemplateRemoveResponse\n ", - "start": 8476, - "end": 8582, - "loc": { - "start": { - "line": 302, - "column": 2 - }, - "end": { - "line": 305, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Removes a specified template from folder\n * @param {TemplateRemoveParams} data - remove template payload\n * @param {function(err: ApiErrorResponse, res: TemplateRemoveResponse)} [callback] - error first node.js callback\n ", - "start": 8586, - "end": 8824, - "loc": { - "start": { - "line": 307, - "column": 2 - }, - "end": { - "line": 311, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Get Template Routing Details payload\n * @typedef {Object} TemplateGetRoutingDetailsParams\n * @property {string} id - an ID of specific Template\n * @property {string} token - your auth token\n ", - "start": 8977, - "end": 9187, - "loc": { - "start": { - "line": 324, - "column": 2 - }, - "end": { - "line": 329, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Template Routing Details item data\n * @typedef {Object} TemplateRoutingDetailsItem\n * @property {string} default_email - default email for routing detail\n * @property {boolean} inviter_role - always `false`\n * @property {string} name - signer role (actor) name\n * @property {string} role_id - signer role (actor) unique ID\n * @property {number} signing_order - order number of signing step\n ", - "start": 9191, - "end": 9607, - "loc": { - "start": { - "line": 331, - "column": 2 - }, - "end": { - "line": 339, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Template Routing Details CC step info\n * @typedef {Object} TemplateRoutingDetailsCCStep\n * @property {string} email - email of cc step\n * @property {number} step - step order number\n * @property {string} name - name of cc step\n ", - "start": 9611, - "end": 9860, - "loc": { - "start": { - "line": 341, - "column": 2 - }, - "end": { - "line": 347, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Get Template Routing Details response data\n * @typedef {Object} TemplateGetRoutingDetailsResponse\n * @property {TemplateRoutingDetailsItem[]} routing_details - array with routing details\n * @property {string[]} cc - CC emails\n * @property {TemplateRoutingDetailsCCStep[]} cc_step - array of CC`s steps\n * @property {string} invite_link_instructions - invite link instructions\n ", - "start": 9864, - "end": 10264, - "loc": { - "start": { - "line": 349, - "column": 2 - }, - "end": { - "line": 356, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves Routing Details of specified Template\n * @param {TemplateGetRoutingDetailsParams} data - get Routing Details payload\n * @param {function(err: ApiErrorResponse, res: TemplateGetRoutingDetailsResponse)} [callback] - error first node.js callback\n ", - "start": 10268, - "end": 10539, - "loc": { - "start": { - "line": 358, - "column": 2 - }, - "end": { - "line": 362, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 10542, - "end": 10909, - "loc": { - "start": { - "line": 363, - "column": 2 - }, - "end": { - "line": 378, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 10549, - "end": 10566, - "loc": { - "start": { - "line": 363, - "column": 9 - }, - "end": { - "line": 363, - "column": 26 - }, - "identifierName": "getRoutingDetails" - }, - "name": "getRoutingDetails" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 10568, - "end": 10592, - "loc": { - "start": { - "line": 363, - "column": 28 - }, - "end": { - "line": 366, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 10574, - "end": 10576, - "loc": { - "start": { - "line": 364, - "column": 4 - }, - "end": { - "line": 364, - "column": 6 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 10574, - "end": 10576, - "loc": { - "start": { - "line": 364, - "column": 4 - }, - "end": { - "line": 364, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 10574, - "end": 10576, - "loc": { - "start": { - "line": 364, - "column": 4 - }, - "end": { - "line": 364, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 10582, - "end": 10587, - "loc": { - "start": { - "line": 365, - "column": 4 - }, - "end": { - "line": 365, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 10582, - "end": 10587, - "loc": { - "start": { - "line": 365, - "column": 4 - }, - "end": { - "line": 365, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 10582, - "end": 10587, - "loc": { - "start": { - "line": 365, - "column": 4 - }, - "end": { - "line": 365, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 10594, - "end": 10602, - "loc": { - "start": { - "line": 366, - "column": 5 - }, - "end": { - "line": 366, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 10604, - "end": 10909, - "loc": { - "start": { - "line": 366, - "column": 15 - }, - "end": { - "line": 378, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 10610, - "end": 10905, - "loc": { - "start": { - "line": 367, - "column": 4 - }, - "end": { - "line": 377, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 10610, - "end": 10904, - "loc": { - "start": { - "line": 367, - "column": 4 - }, - "end": { - "line": 377, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10610, - "end": 10902, - "loc": { - "start": { - "line": 367, - "column": 4 - }, - "end": { - "line": 377, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 10610, - "end": 10891, - "loc": { - "start": { - "line": 367, - "column": 4 - }, - "end": { - "line": 376, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10610, - "end": 10858, - "loc": { - "start": { - "line": 367, - "column": 4 - }, - "end": { - "line": 376, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 10610, - "end": 10848, - "loc": { - "start": { - "line": 367, - "column": 4 - }, - "end": { - "line": 375, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10610, - "end": 10630, - "loc": { - "start": { - "line": 367, - "column": 4 - }, - "end": { - "line": 368, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 10610, - "end": 10615, - "loc": { - "start": { - "line": 367, - "column": 4 - }, - "end": { - "line": 367, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 10623, - "end": 10630, - "loc": { - "start": { - "line": 368, - "column": 7 - }, - "end": { - "line": 368, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 10631, - "end": 10820, - "loc": { - "start": { - "line": 368, - "column": 15 - }, - "end": { - "line": 375, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 10631, - "end": 10650, - "loc": { - "start": { - "line": 368, - "column": 15 - }, - "end": { - "line": 368, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 10651, - "end": 10819, - "loc": { - "start": { - "line": 368, - "column": 35 - }, - "end": { - "line": 375, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 10661, - "end": 10674, - "loc": { - "start": { - "line": 369, - "column": 8 - }, - "end": { - "line": 369, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 10661, - "end": 10667, - "loc": { - "start": { - "line": 369, - "column": 8 - }, - "end": { - "line": 369, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 10669, - "end": 10674, - "loc": { - "start": { - "line": 369, - "column": 16 - }, - "end": { - "line": 369, - "column": 21 - } - }, - "extra": { - "rawValue": "GET", - "raw": "'GET'" - }, - "value": "GET" - } - }, - { - "type": "ObjectProperty", - "start": 10684, - "end": 10731, - "loc": { - "start": { - "line": 370, - "column": 8 - }, - "end": { - "line": 370, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 10684, - "end": 10688, - "loc": { - "start": { - "line": 370, - "column": 8 - }, - "end": { - "line": 370, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 10690, - "end": 10731, - "loc": { - "start": { - "line": 370, - "column": 14 - }, - "end": { - "line": 370, - "column": 55 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 10703, - "end": 10705, - "loc": { - "start": { - "line": 370, - "column": 27 - }, - "end": { - "line": 370, - "column": 29 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 10691, - "end": 10701, - "loc": { - "start": { - "line": 370, - "column": 15 - }, - "end": { - "line": 370, - "column": 25 - } - }, - "value": { - "raw": "/document/", - "cooked": "/document/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 10706, - "end": 10730, - "loc": { - "start": { - "line": 370, - "column": 30 - }, - "end": { - "line": 370, - "column": 54 - } - }, - "value": { - "raw": "/template/routing/detail", - "cooked": "/template/routing/detail" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 10741, - "end": 10810, - "loc": { - "start": { - "line": 371, - "column": 8 - }, - "end": { - "line": 374, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 10741, - "end": 10754, - "loc": { - "start": { - "line": 371, - "column": 8 - }, - "end": { - "line": 371, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 10756, - "end": 10810, - "loc": { - "start": { - "line": 371, - "column": 23 - }, - "end": { - "line": 374, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 10768, - "end": 10782, - "loc": { - "start": { - "line": 372, - "column": 10 - }, - "end": { - "line": 372, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 10768, - "end": 10772, - "loc": { - "start": { - "line": 372, - "column": 10 - }, - "end": { - "line": 372, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 10774, - "end": 10782, - "loc": { - "start": { - "line": 372, - "column": 16 - }, - "end": { - "line": 372, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 10794, - "end": 10799, - "loc": { - "start": { - "line": 373, - "column": 10 - }, - "end": { - "line": 373, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 10794, - "end": 10799, - "loc": { - "start": { - "line": 373, - "column": 10 - }, - "end": { - "line": 373, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 10794, - "end": 10799, - "loc": { - "start": { - "line": 373, - "column": 10 - }, - "end": { - "line": 373, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 10822, - "end": 10847, - "loc": { - "start": { - "line": 375, - "column": 10 - }, - "end": { - "line": 375, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 10822, - "end": 10837, - "loc": { - "start": { - "line": 375, - "column": 10 - }, - "end": { - "line": 375, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 10838, - "end": 10846, - "loc": { - "start": { - "line": 375, - "column": 26 - }, - "end": { - "line": 375, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 10856, - "end": 10858, - "loc": { - "start": { - "line": 376, - "column": 7 - }, - "end": { - "line": 376, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 10859, - "end": 10866, - "loc": { - "start": { - "line": 376, - "column": 10 - }, - "end": { - "line": 376, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 10868, - "end": 10890, - "loc": { - "start": { - "line": 376, - "column": 19 - }, - "end": { - "line": 376, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 10868, - "end": 10880, - "loc": { - "start": { - "line": 376, - "column": 19 - }, - "end": { - "line": 376, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 10881, - "end": 10889, - "loc": { - "start": { - "line": 376, - "column": 32 - }, - "end": { - "line": 376, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 10899, - "end": 10902, - "loc": { - "start": { - "line": 377, - "column": 7 - }, - "end": { - "line": 377, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Get Template Routing Details payload\n * @typedef {Object} TemplateGetRoutingDetailsParams\n * @property {string} id - an ID of specific Template\n * @property {string} token - your auth token\n ", - "start": 8977, - "end": 9187, - "loc": { - "start": { - "line": 324, - "column": 2 - }, - "end": { - "line": 329, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Template Routing Details item data\n * @typedef {Object} TemplateRoutingDetailsItem\n * @property {string} default_email - default email for routing detail\n * @property {boolean} inviter_role - always `false`\n * @property {string} name - signer role (actor) name\n * @property {string} role_id - signer role (actor) unique ID\n * @property {number} signing_order - order number of signing step\n ", - "start": 9191, - "end": 9607, - "loc": { - "start": { - "line": 331, - "column": 2 - }, - "end": { - "line": 339, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Template Routing Details CC step info\n * @typedef {Object} TemplateRoutingDetailsCCStep\n * @property {string} email - email of cc step\n * @property {number} step - step order number\n * @property {string} name - name of cc step\n ", - "start": 9611, - "end": 9860, - "loc": { - "start": { - "line": 341, - "column": 2 - }, - "end": { - "line": 347, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Get Template Routing Details response data\n * @typedef {Object} TemplateGetRoutingDetailsResponse\n * @property {TemplateRoutingDetailsItem[]} routing_details - array with routing details\n * @property {string[]} cc - CC emails\n * @property {TemplateRoutingDetailsCCStep[]} cc_step - array of CC`s steps\n * @property {string} invite_link_instructions - invite link instructions\n ", - "start": 9864, - "end": 10264, - "loc": { - "start": { - "line": 349, - "column": 2 - }, - "end": { - "line": 356, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves Routing Details of specified Template\n * @param {TemplateGetRoutingDetailsParams} data - get Routing Details payload\n * @param {function(err: ApiErrorResponse, res: TemplateGetRoutingDetailsResponse)} [callback] - error first node.js callback\n ", - "start": 10268, - "end": 10539, - "loc": { - "start": { - "line": 358, - "column": 2 - }, - "end": { - "line": 362, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Template Update Routing Details item data\n * @typedef {Object} TemplateUpdateRoutingDetailsItem\n * @property {string} default_email - default email for routing detail\n * @property {boolean} inviter_role - always `false`\n * @property {string} name - signer role (actor) name\n * @property {string} role_id - signer role (actor) unique ID\n * @property {number} signing_order - order number of signing step\n * @property {boolean} decline_by_signature - decline by signature flag\n ", - "start": 10913, - "end": 11416, - "loc": { - "start": { - "line": 380, - "column": 2 - }, - "end": { - "line": 389, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update Template Routing Details settings\n * @typedef {Object} TemplateUpdateRoutingDetailsSettings\n * @property {TemplateUpdateRoutingDetailsItem[]} template_data - array with routing details\n * @property {string[]} cc - CC emails\n * @property {TemplateRoutingDetailsCCStep[]} cc_step - array of CC steps\n * @property {string} [invite_link_instructions] - invite signing instructions\n ", - "start": 11420, - "end": 11828, - "loc": { - "start": { - "line": 391, - "column": 2 - }, - "end": { - "line": 398, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update Template Routing Details payload\n * @typedef {Object} TemplateUpdateRoutingDetailsParams\n * @property {string} id - an ID of specific Template\n * @property {string} token - your auth token\n * @property {TemplateUpdateRoutingDetailsSettings} data - update Template Routing Details settings\n ", - "start": 11832, - "end": 12150, - "loc": { - "start": { - "line": 400, - "column": 2 - }, - "end": { - "line": 406, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update Template Routing Details response data\n * @typedef {Object} TemplateUpdateRoutingDetailsResponse\n * @property {string} id - unique ID of template routing details\n * @property {string} document_id - unique ID of Template\n * @property {TemplateUpdateRoutingDetailsItem[]} data - array with routing details\n * @property {string[]} cc - CC emails\n * @property {TemplateRoutingDetailsCCStep[]} cc_step - array of CC steps\n * @property {string} invite_link_instructions - invite signing instructions\n ", - "start": 12154, - "end": 12683, - "loc": { - "start": { - "line": 408, - "column": 2 - }, - "end": { - "line": 417, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Updates Routing Details of specified template\n * @param {TemplateUpdateRoutingDetailsParams} data - update Template Routing Details payload\n * @param {function(err: ApiErrorResponse, res: TemplateUpdateRoutingDetailsResponse)} [callback] - error first node.js callback\n ", - "start": 12687, - "end": 12974, - "loc": { - "start": { - "line": 419, - "column": 2 - }, - "end": { - "line": 423, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 12977, - "end": 14785, - "loc": { - "start": { - "line": 424, - "column": 2 - }, - "end": { - "line": 494, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 12984, - "end": 13004, - "loc": { - "start": { - "line": 424, - "column": 9 - }, - "end": { - "line": 424, - "column": 29 - }, - "identifierName": "updateRoutingDetails" - }, - "name": "updateRoutingDetails" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 13006, - "end": 13040, - "loc": { - "start": { - "line": 424, - "column": 31 - }, - "end": { - "line": 428, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 13012, - "end": 13014, - "loc": { - "start": { - "line": 425, - "column": 4 - }, - "end": { - "line": 425, - "column": 6 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 13012, - "end": 13014, - "loc": { - "start": { - "line": 425, - "column": 4 - }, - "end": { - "line": 425, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 13012, - "end": 13014, - "loc": { - "start": { - "line": 425, - "column": 4 - }, - "end": { - "line": 425, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 13020, - "end": 13025, - "loc": { - "start": { - "line": 426, - "column": 4 - }, - "end": { - "line": 426, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 13020, - "end": 13025, - "loc": { - "start": { - "line": 426, - "column": 4 - }, - "end": { - "line": 426, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 13020, - "end": 13025, - "loc": { - "start": { - "line": 426, - "column": 4 - }, - "end": { - "line": 426, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 13031, - "end": 13035, - "loc": { - "start": { - "line": 427, - "column": 4 - }, - "end": { - "line": 427, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 13031, - "end": 13035, - "loc": { - "start": { - "line": 427, - "column": 4 - }, - "end": { - "line": 427, - "column": 8 - }, - "identifierName": "data" - }, - "name": "data" - }, - "value": { - "type": "Identifier", - "start": 13031, - "end": 13035, - "loc": { - "start": { - "line": 427, - "column": 4 - }, - "end": { - "line": 427, - "column": 8 - }, - "identifierName": "data" - }, - "name": "data" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 13042, - "end": 13050, - "loc": { - "start": { - "line": 428, - "column": 5 - }, - "end": { - "line": 428, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 13052, - "end": 14785, - "loc": { - "start": { - "line": 428, - "column": 15 - }, - "end": { - "line": 494, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 13058, - "end": 13157, - "loc": { - "start": { - "line": 429, - "column": 4 - }, - "end": { - "line": 434, - "column": 13 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 13064, - "end": 13156, - "loc": { - "start": { - "line": 429, - "column": 10 - }, - "end": { - "line": 434, - "column": 12 - } - }, - "id": { - "type": "ObjectPattern", - "start": 13064, - "end": 13149, - "loc": { - "start": { - "line": 429, - "column": 10 - }, - "end": { - "line": 434, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 13072, - "end": 13085, - "loc": { - "start": { - "line": 430, - "column": 6 - }, - "end": { - "line": 430, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 13072, - "end": 13085, - "loc": { - "start": { - "line": 430, - "column": 6 - }, - "end": { - "line": 430, - "column": 19 - }, - "identifierName": "template_data" - }, - "name": "template_data" - }, - "value": { - "type": "Identifier", - "start": 13072, - "end": 13085, - "loc": { - "start": { - "line": 430, - "column": 6 - }, - "end": { - "line": 430, - "column": 19 - }, - "identifierName": "template_data" - }, - "name": "template_data" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 13093, - "end": 13095, - "loc": { - "start": { - "line": 431, - "column": 6 - }, - "end": { - "line": 431, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 13093, - "end": 13095, - "loc": { - "start": { - "line": 431, - "column": 6 - }, - "end": { - "line": 431, - "column": 8 - }, - "identifierName": "cc" - }, - "name": "cc" - }, - "value": { - "type": "Identifier", - "start": 13093, - "end": 13095, - "loc": { - "start": { - "line": 431, - "column": 6 - }, - "end": { - "line": 431, - "column": 8 - }, - "identifierName": "cc" - }, - "name": "cc" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 13103, - "end": 13110, - "loc": { - "start": { - "line": 432, - "column": 6 - }, - "end": { - "line": 432, - "column": 13 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 13103, - "end": 13110, - "loc": { - "start": { - "line": 432, - "column": 6 - }, - "end": { - "line": 432, - "column": 13 - }, - "identifierName": "cc_step" - }, - "name": "cc_step" - }, - "value": { - "type": "Identifier", - "start": 13103, - "end": 13110, - "loc": { - "start": { - "line": 432, - "column": 6 - }, - "end": { - "line": 432, - "column": 13 - }, - "identifierName": "cc_step" - }, - "name": "cc_step" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 13118, - "end": 13142, - "loc": { - "start": { - "line": 433, - "column": 6 - }, - "end": { - "line": 433, - "column": 30 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 13118, - "end": 13142, - "loc": { - "start": { - "line": 433, - "column": 6 - }, - "end": { - "line": 433, - "column": 30 - }, - "identifierName": "invite_link_instructions" - }, - "name": "invite_link_instructions" - }, - "value": { - "type": "Identifier", - "start": 13118, - "end": 13142, - "loc": { - "start": { - "line": 433, - "column": 6 - }, - "end": { - "line": 433, - "column": 30 - }, - "identifierName": "invite_link_instructions" - }, - "name": "invite_link_instructions" - }, - "extra": { - "shorthand": true - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 13152, - "end": 13156, - "loc": { - "start": { - "line": 434, - "column": 8 - }, - "end": { - "line": 434, - "column": 12 - }, - "identifierName": "data" - }, - "name": "data" - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 13162, - "end": 13281, - "loc": { - "start": { - "line": 435, - "column": 4 - }, - "end": { - "line": 440, - "column": 7 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 13168, - "end": 13280, - "loc": { - "start": { - "line": 435, - "column": 10 - }, - "end": { - "line": 440, - "column": 6 - } - }, - "id": { - "type": "Identifier", - "start": 13168, - "end": 13176, - "loc": { - "start": { - "line": 435, - "column": 10 - }, - "end": { - "line": 435, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 13179, - "end": 13280, - "loc": { - "start": { - "line": 435, - "column": 21 - }, - "end": { - "line": 440, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13179, - "end": 13193, - "loc": { - "start": { - "line": 435, - "column": 21 - }, - "end": { - "line": 435, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 13179, - "end": 13183, - "loc": { - "start": { - "line": 435, - "column": 21 - }, - "end": { - "line": 435, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 13184, - "end": 13193, - "loc": { - "start": { - "line": 435, - "column": 26 - }, - "end": { - "line": 435, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 13194, - "end": 13279, - "loc": { - "start": { - "line": 435, - "column": 36 - }, - "end": { - "line": 440, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 13202, - "end": 13215, - "loc": { - "start": { - "line": 436, - "column": 6 - }, - "end": { - "line": 436, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 13202, - "end": 13215, - "loc": { - "start": { - "line": 436, - "column": 6 - }, - "end": { - "line": 436, - "column": 19 - }, - "identifierName": "template_data" - }, - "name": "template_data" - }, - "value": { - "type": "Identifier", - "start": 13202, - "end": 13215, - "loc": { - "start": { - "line": 436, - "column": 6 - }, - "end": { - "line": 436, - "column": 19 - }, - "identifierName": "template_data" - }, - "name": "template_data" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 13223, - "end": 13225, - "loc": { - "start": { - "line": 437, - "column": 6 - }, - "end": { - "line": 437, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 13223, - "end": 13225, - "loc": { - "start": { - "line": 437, - "column": 6 - }, - "end": { - "line": 437, - "column": 8 - }, - "identifierName": "cc" - }, - "name": "cc" - }, - "value": { - "type": "Identifier", - "start": 13223, - "end": 13225, - "loc": { - "start": { - "line": 437, - "column": 6 - }, - "end": { - "line": 437, - "column": 8 - }, - "identifierName": "cc" - }, - "name": "cc" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 13233, - "end": 13240, - "loc": { - "start": { - "line": 438, - "column": 6 - }, - "end": { - "line": 438, - "column": 13 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 13233, - "end": 13240, - "loc": { - "start": { - "line": 438, - "column": 6 - }, - "end": { - "line": 438, - "column": 13 - }, - "identifierName": "cc_step" - }, - "name": "cc_step" - }, - "value": { - "type": "Identifier", - "start": 13233, - "end": 13240, - "loc": { - "start": { - "line": 438, - "column": 6 - }, - "end": { - "line": 438, - "column": 13 - }, - "identifierName": "cc_step" - }, - "name": "cc_step" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 13248, - "end": 13272, - "loc": { - "start": { - "line": 439, - "column": 6 - }, - "end": { - "line": 439, - "column": 30 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 13248, - "end": 13272, - "loc": { - "start": { - "line": 439, - "column": 6 - }, - "end": { - "line": 439, - "column": 30 - }, - "identifierName": "invite_link_instructions" - }, - "name": "invite_link_instructions" - }, - "value": { - "type": "Identifier", - "start": 13248, - "end": 13272, - "loc": { - "start": { - "line": 439, - "column": 6 - }, - "end": { - "line": 439, - "column": 30 - }, - "identifierName": "invite_link_instructions" - }, - "name": "invite_link_instructions" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 13287, - "end": 14301, - "loc": { - "start": { - "line": 442, - "column": 4 - }, - "end": { - "line": 475, - "column": 6 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 13293, - "end": 14300, - "loc": { - "start": { - "line": 442, - "column": 10 - }, - "end": { - "line": 475, - "column": 5 - } - }, - "id": { - "type": "Identifier", - "start": 13293, - "end": 13307, - "loc": { - "start": { - "line": 442, - "column": 10 - }, - "end": { - "line": 442, - "column": 24 - }, - "identifierName": "updateCallback" - }, - "name": "updateCallback" - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 13310, - "end": 14300, - "loc": { - "start": { - "line": 442, - "column": 27 - }, - "end": { - "line": 475, - "column": 5 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 13311, - "end": 13314, - "loc": { - "start": { - "line": 442, - "column": 28 - }, - "end": { - "line": 442, - "column": 31 - }, - "identifierName": "err" - }, - "name": "err" - }, - { - "type": "Identifier", - "start": 13316, - "end": 13319, - "loc": { - "start": { - "line": 442, - "column": 33 - }, - "end": { - "line": 442, - "column": 36 - }, - "identifierName": "res" - }, - "name": "res" - } - ], - "body": { - "type": "BlockStatement", - "start": 13324, - "end": 14300, - "loc": { - "start": { - "line": 442, - "column": 41 - }, - "end": { - "line": 475, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 13332, - "end": 14294, - "loc": { - "start": { - "line": 443, - "column": 6 - }, - "end": { - "line": 474, - "column": 7 - } - }, - "test": { - "type": "Identifier", - "start": 13336, - "end": 13339, - "loc": { - "start": { - "line": 443, - "column": 10 - }, - "end": { - "line": 443, - "column": 13 - }, - "identifierName": "err" - }, - "name": "err" - }, - "consequent": { - "type": "BlockStatement", - "start": 13341, - "end": 13389, - "loc": { - "start": { - "line": 443, - "column": 15 - }, - "end": { - "line": 446, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 13351, - "end": 13365, - "loc": { - "start": { - "line": 444, - "column": 8 - }, - "end": { - "line": 444, - "column": 22 - } - }, - "expression": { - "type": "CallExpression", - "start": 13351, - "end": 13364, - "loc": { - "start": { - "line": 444, - "column": 8 - }, - "end": { - "line": 444, - "column": 21 - } - }, - "callee": { - "type": "Identifier", - "start": 13351, - "end": 13359, - "loc": { - "start": { - "line": 444, - "column": 8 - }, - "end": { - "line": 444, - "column": 16 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 13360, - "end": 13363, - "loc": { - "start": { - "line": 444, - "column": 17 - }, - "end": { - "line": 444, - "column": 20 - }, - "identifierName": "err" - }, - "name": "err" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 13374, - "end": 13381, - "loc": { - "start": { - "line": 445, - "column": 8 - }, - "end": { - "line": 445, - "column": 15 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 13395, - "end": 14294, - "loc": { - "start": { - "line": 446, - "column": 13 - }, - "end": { - "line": 474, - "column": 7 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 13405, - "end": 13442, - "loc": { - "start": { - "line": 447, - "column": 8 - }, - "end": { - "line": 447, - "column": 45 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 13411, - "end": 13441, - "loc": { - "start": { - "line": 447, - "column": 14 - }, - "end": { - "line": 447, - "column": 44 - } - }, - "id": { - "type": "ObjectPattern", - "start": 13411, - "end": 13435, - "loc": { - "start": { - "line": 447, - "column": 14 - }, - "end": { - "line": 447, - "column": 38 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 13413, - "end": 13433, - "loc": { - "start": { - "line": 447, - "column": 16 - }, - "end": { - "line": 447, - "column": 36 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 13413, - "end": 13417, - "loc": { - "start": { - "line": 447, - "column": 16 - }, - "end": { - "line": 447, - "column": 20 - }, - "identifierName": "data" - }, - "name": "data" - }, - "value": { - "type": "Identifier", - "start": 13419, - "end": 13433, - "loc": { - "start": { - "line": 447, - "column": 22 - }, - "end": { - "line": 447, - "column": 36 - }, - "identifierName": "routingDetails" - }, - "name": "routingDetails" - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 13438, - "end": 13441, - "loc": { - "start": { - "line": 447, - "column": 41 - }, - "end": { - "line": 447, - "column": 44 - }, - "identifierName": "res" - }, - "name": "res" - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 13451, - "end": 13723, - "loc": { - "start": { - "line": 448, - "column": 8 - }, - "end": { - "line": 456, - "column": 13 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 13457, - "end": 13722, - "loc": { - "start": { - "line": 448, - "column": 14 - }, - "end": { - "line": 456, - "column": 12 - } - }, - "id": { - "type": "Identifier", - "start": 13457, - "end": 13469, - "loc": { - "start": { - "line": 448, - "column": 14 - }, - "end": { - "line": 448, - "column": 26 - }, - "identifierName": "rolesUpdated" - }, - "name": "rolesUpdated" - }, - "init": { - "type": "CallExpression", - "start": 13472, - "end": 13722, - "loc": { - "start": { - "line": 448, - "column": 29 - }, - "end": { - "line": 456, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13472, - "end": 13501, - "loc": { - "start": { - "line": 448, - "column": 29 - }, - "end": { - "line": 449, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 13472, - "end": 13486, - "loc": { - "start": { - "line": 448, - "column": 29 - }, - "end": { - "line": 448, - "column": 43 - }, - "identifierName": "routingDetails" - }, - "name": "routingDetails" - }, - "property": { - "type": "Identifier", - "start": 13498, - "end": 13501, - "loc": { - "start": { - "line": 449, - "column": 11 - }, - "end": { - "line": 449, - "column": 14 - }, - "identifierName": "map" - }, - "name": "map" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 13502, - "end": 13721, - "loc": { - "start": { - "line": 449, - "column": 15 - }, - "end": { - "line": 456, - "column": 11 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 13502, - "end": 13507, - "loc": { - "start": { - "line": 449, - "column": 15 - }, - "end": { - "line": 449, - "column": 20 - }, - "identifierName": "route" - }, - "name": "route" - } - ], - "body": { - "type": "BlockStatement", - "start": 13511, - "end": 13721, - "loc": { - "start": { - "line": 449, - "column": 24 - }, - "end": { - "line": 456, - "column": 11 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 13525, - "end": 13566, - "loc": { - "start": { - "line": 450, - "column": 12 - }, - "end": { - "line": 450, - "column": 53 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 13531, - "end": 13565, - "loc": { - "start": { - "line": 450, - "column": 18 - }, - "end": { - "line": 450, - "column": 52 - } - }, - "id": { - "type": "ObjectPattern", - "start": 13531, - "end": 13557, - "loc": { - "start": { - "line": 450, - "column": 18 - }, - "end": { - "line": 450, - "column": 44 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 13533, - "end": 13540, - "loc": { - "start": { - "line": 450, - "column": 20 - }, - "end": { - "line": 450, - "column": 27 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 13533, - "end": 13540, - "loc": { - "start": { - "line": 450, - "column": 20 - }, - "end": { - "line": 450, - "column": 27 - }, - "identifierName": "role_id" - }, - "name": "role_id" - }, - "value": { - "type": "Identifier", - "start": 13533, - "end": 13540, - "loc": { - "start": { - "line": 450, - "column": 20 - }, - "end": { - "line": 450, - "column": 27 - }, - "identifierName": "role_id" - }, - "name": "role_id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 13542, - "end": 13555, - "loc": { - "start": { - "line": 450, - "column": 29 - }, - "end": { - "line": 450, - "column": 42 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 13542, - "end": 13555, - "loc": { - "start": { - "line": 450, - "column": 29 - }, - "end": { - "line": 450, - "column": 42 - }, - "identifierName": "signing_order" - }, - "name": "signing_order" - }, - "value": { - "type": "Identifier", - "start": 13542, - "end": 13555, - "loc": { - "start": { - "line": 450, - "column": 29 - }, - "end": { - "line": 450, - "column": 42 - }, - "identifierName": "signing_order" - }, - "name": "signing_order" - }, - "extra": { - "shorthand": true - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 13560, - "end": 13565, - "loc": { - "start": { - "line": 450, - "column": 47 - }, - "end": { - "line": 450, - "column": 52 - }, - "identifierName": "route" - }, - "name": "route" - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 13579, - "end": 13709, - "loc": { - "start": { - "line": 451, - "column": 12 - }, - "end": { - "line": 455, - "column": 15 - } - }, - "argument": { - "type": "CallExpression", - "start": 13586, - "end": 13708, - "loc": { - "start": { - "line": 451, - "column": 19 - }, - "end": { - "line": 455, - "column": 14 - } - }, - "callee": { - "type": "CallExpression", - "start": 13586, - "end": 13614, - "loc": { - "start": { - "line": 451, - "column": 19 - }, - "end": { - "line": 451, - "column": 47 - } - }, - "callee": { - "type": "Identifier", - "start": 13586, - "end": 13595, - "loc": { - "start": { - "line": 451, - "column": 19 - }, - "end": { - "line": 451, - "column": 28 - }, - "identifierName": "promisify" - }, - "name": "promisify" - }, - "arguments": [ - { - "type": "Identifier", - "start": 13596, - "end": 13613, - "loc": { - "start": { - "line": 451, - "column": 29 - }, - "end": { - "line": 451, - "column": 46 - }, - "identifierName": "updateSigningRole" - }, - "name": "updateSigningRole" - } - ] - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 13615, - "end": 13707, - "loc": { - "start": { - "line": 451, - "column": 48 - }, - "end": { - "line": 455, - "column": 13 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 13631, - "end": 13642, - "loc": { - "start": { - "line": 452, - "column": 14 - }, - "end": { - "line": 452, - "column": 25 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 13631, - "end": 13633, - "loc": { - "start": { - "line": 452, - "column": 14 - }, - "end": { - "line": 452, - "column": 16 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 13635, - "end": 13642, - "loc": { - "start": { - "line": 452, - "column": 18 - }, - "end": { - "line": 452, - "column": 25 - }, - "identifierName": "role_id" - }, - "name": "role_id" - } - }, - { - "type": "ObjectProperty", - "start": 13658, - "end": 13671, - "loc": { - "start": { - "line": 453, - "column": 14 - }, - "end": { - "line": 453, - "column": 27 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 13658, - "end": 13671, - "loc": { - "start": { - "line": 453, - "column": 14 - }, - "end": { - "line": 453, - "column": 27 - }, - "identifierName": "signing_order" - }, - "name": "signing_order" - }, - "value": { - "type": "Identifier", - "start": 13658, - "end": 13671, - "loc": { - "start": { - "line": 453, - "column": 14 - }, - "end": { - "line": 453, - "column": 27 - }, - "identifierName": "signing_order" - }, - "name": "signing_order" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 13687, - "end": 13692, - "loc": { - "start": { - "line": 454, - "column": 14 - }, - "end": { - "line": 454, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 13687, - "end": 13692, - "loc": { - "start": { - "line": 454, - "column": 14 - }, - "end": { - "line": 454, - "column": 19 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 13687, - "end": 13692, - "loc": { - "start": { - "line": 454, - "column": 14 - }, - "end": { - "line": 454, - "column": 19 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 13733, - "end": 14286, - "loc": { - "start": { - "line": 458, - "column": 8 - }, - "end": { - "line": 473, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 13733, - "end": 14285, - "loc": { - "start": { - "line": 458, - "column": 8 - }, - "end": { - "line": 473, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13733, - "end": 14194, - "loc": { - "start": { - "line": 458, - "column": 8 - }, - "end": { - "line": 470, - "column": 16 - } - }, - "object": { - "type": "CallExpression", - "start": 13733, - "end": 14177, - "loc": { - "start": { - "line": 458, - "column": 8 - }, - "end": { - "line": 469, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13733, - "end": 13944, - "loc": { - "start": { - "line": 458, - "column": 8 - }, - "end": { - "line": 462, - "column": 15 - } - }, - "object": { - "type": "CallExpression", - "start": 13733, - "end": 13928, - "loc": { - "start": { - "line": 458, - "column": 8 - }, - "end": { - "line": 461, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13733, - "end": 13774, - "loc": { - "start": { - "line": 458, - "column": 8 - }, - "end": { - "line": 459, - "column": 15 - } - }, - "object": { - "type": "CallExpression", - "start": 13733, - "end": 13758, - "loc": { - "start": { - "line": 458, - "column": 8 - }, - "end": { - "line": 458, - "column": 33 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13733, - "end": 13744, - "loc": { - "start": { - "line": 458, - "column": 8 - }, - "end": { - "line": 458, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 13733, - "end": 13740, - "loc": { - "start": { - "line": 458, - "column": 8 - }, - "end": { - "line": 458, - "column": 15 - }, - "identifierName": "Promise" - }, - "name": "Promise" - }, - "property": { - "type": "Identifier", - "start": 13741, - "end": 13744, - "loc": { - "start": { - "line": 458, - "column": 16 - }, - "end": { - "line": 458, - "column": 19 - }, - "identifierName": "all" - }, - "name": "all" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 13745, - "end": 13757, - "loc": { - "start": { - "line": 458, - "column": 20 - }, - "end": { - "line": 458, - "column": 32 - }, - "identifierName": "rolesUpdated" - }, - "name": "rolesUpdated" - } - ] - }, - "property": { - "type": "Identifier", - "start": 13770, - "end": 13774, - "loc": { - "start": { - "line": 459, - "column": 11 - }, - "end": { - "line": 459, - "column": 15 - }, - "identifierName": "then" - }, - "name": "then" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 13775, - "end": 13927, - "loc": { - "start": { - "line": 459, - "column": 16 - }, - "end": { - "line": 461, - "column": 11 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 13775, - "end": 13789, - "loc": { - "start": { - "line": 459, - "column": 16 - }, - "end": { - "line": 459, - "column": 30 - }, - "identifierName": "roleUpdatesRes" - }, - "name": "roleUpdatesRes" - } - ], - "body": { - "type": "BlockStatement", - "start": 13793, - "end": 13927, - "loc": { - "start": { - "line": 459, - "column": 34 - }, - "end": { - "line": 461, - "column": 11 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 13807, - "end": 13915, - "loc": { - "start": { - "line": 460, - "column": 12 - }, - "end": { - "line": 460, - "column": 120 - } - }, - "argument": { - "type": "CallExpression", - "start": 13814, - "end": 13914, - "loc": { - "start": { - "line": 460, - "column": 19 - }, - "end": { - "line": 460, - "column": 119 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13814, - "end": 13835, - "loc": { - "start": { - "line": 460, - "column": 19 - }, - "end": { - "line": 460, - "column": 40 - } - }, - "object": { - "type": "Identifier", - "start": 13814, - "end": 13828, - "loc": { - "start": { - "line": 460, - "column": 19 - }, - "end": { - "line": 460, - "column": 33 - }, - "identifierName": "roleUpdatesRes" - }, - "name": "roleUpdatesRes" - }, - "property": { - "type": "Identifier", - "start": 13829, - "end": 13835, - "loc": { - "start": { - "line": 460, - "column": 34 - }, - "end": { - "line": 460, - "column": 40 - }, - "identifierName": "reduce" - }, - "name": "reduce" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 13836, - "end": 13907, - "loc": { - "start": { - "line": 460, - "column": 41 - }, - "end": { - "line": 460, - "column": 112 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 13837, - "end": 13850, - "loc": { - "start": { - "line": 460, - "column": 42 - }, - "end": { - "line": 460, - "column": 55 - }, - "identifierName": "generalStatus" - }, - "name": "generalStatus" - }, - { - "type": "Identifier", - "start": 13852, - "end": 13865, - "loc": { - "start": { - "line": 460, - "column": 57 - }, - "end": { - "line": 460, - "column": 70 - }, - "identifierName": "roleUpdateRes" - }, - "name": "roleUpdateRes" - } - ], - "body": { - "type": "LogicalExpression", - "start": 13871, - "end": 13906, - "loc": { - "start": { - "line": 460, - "column": 76 - }, - "end": { - "line": 460, - "column": 111 - } - }, - "left": { - "type": "Identifier", - "start": 13871, - "end": 13884, - "loc": { - "start": { - "line": 460, - "column": 76 - }, - "end": { - "line": 460, - "column": 89 - }, - "identifierName": "generalStatus" - }, - "name": "generalStatus" - }, - "operator": "&&", - "right": { - "type": "UnaryExpression", - "start": 13888, - "end": 13906, - "loc": { - "start": { - "line": 460, - "column": 93 - }, - "end": { - "line": 460, - "column": 111 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "UnaryExpression", - "start": 13889, - "end": 13906, - "loc": { - "start": { - "line": 460, - "column": 94 - }, - "end": { - "line": 460, - "column": 111 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 13890, - "end": 13906, - "loc": { - "start": { - "line": 460, - "column": 95 - }, - "end": { - "line": 460, - "column": 111 - } - }, - "object": { - "type": "Identifier", - "start": 13890, - "end": 13903, - "loc": { - "start": { - "line": 460, - "column": 95 - }, - "end": { - "line": 460, - "column": 108 - }, - "identifierName": "roleUpdateRes" - }, - "name": "roleUpdateRes" - }, - "property": { - "type": "Identifier", - "start": 13904, - "end": 13906, - "loc": { - "start": { - "line": 460, - "column": 109 - }, - "end": { - "line": 460, - "column": 111 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": false - }, - "extra": { - "parenthesizedArgument": false - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "extra": { - "parenthesized": true, - "parenStart": 13870 - } - } - }, - { - "type": "BooleanLiteral", - "start": 13909, - "end": 13913, - "loc": { - "start": { - "line": 460, - "column": 114 - }, - "end": { - "line": 460, - "column": 118 - } - }, - "value": true - } - ] - } - } - ], - "directives": [] - } - } - ] - }, - "property": { - "type": "Identifier", - "start": 13940, - "end": 13944, - "loc": { - "start": { - "line": 462, - "column": 11 - }, - "end": { - "line": 462, - "column": 15 - }, - "identifierName": "then" - }, - "name": "then" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 13945, - "end": 14176, - "loc": { - "start": { - "line": 462, - "column": 16 - }, - "end": { - "line": 469, - "column": 11 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 13945, - "end": 13960, - "loc": { - "start": { - "line": 462, - "column": 16 - }, - "end": { - "line": 462, - "column": 31 - }, - "identifierName": "allRolesUpdated" - }, - "name": "allRolesUpdated" - } - ], - "body": { - "type": "BlockStatement", - "start": 13964, - "end": 14176, - "loc": { - "start": { - "line": 462, - "column": 35 - }, - "end": { - "line": 469, - "column": 11 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 13978, - "end": 14164, - "loc": { - "start": { - "line": 463, - "column": 12 - }, - "end": { - "line": 468, - "column": 13 - } - }, - "test": { - "type": "Identifier", - "start": 13982, - "end": 13997, - "loc": { - "start": { - "line": 463, - "column": 16 - }, - "end": { - "line": 463, - "column": 31 - }, - "identifierName": "allRolesUpdated" - }, - "name": "allRolesUpdated" - }, - "consequent": { - "type": "BlockStatement", - "start": 13999, - "end": 14071, - "loc": { - "start": { - "line": 463, - "column": 33 - }, - "end": { - "line": 466, - "column": 13 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 14015, - "end": 14035, - "loc": { - "start": { - "line": 464, - "column": 14 - }, - "end": { - "line": 464, - "column": 34 - } - }, - "expression": { - "type": "CallExpression", - "start": 14015, - "end": 14034, - "loc": { - "start": { - "line": 464, - "column": 14 - }, - "end": { - "line": 464, - "column": 33 - } - }, - "callee": { - "type": "Identifier", - "start": 14015, - "end": 14023, - "loc": { - "start": { - "line": 464, - "column": 14 - }, - "end": { - "line": 464, - "column": 22 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "NullLiteral", - "start": 14024, - "end": 14028, - "loc": { - "start": { - "line": 464, - "column": 23 - }, - "end": { - "line": 464, - "column": 27 - } - } - }, - { - "type": "Identifier", - "start": 14030, - "end": 14033, - "loc": { - "start": { - "line": 464, - "column": 29 - }, - "end": { - "line": 464, - "column": 32 - }, - "identifierName": "res" - }, - "name": "res" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 14050, - "end": 14057, - "loc": { - "start": { - "line": 465, - "column": 14 - }, - "end": { - "line": 465, - "column": 21 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 14077, - "end": 14164, - "loc": { - "start": { - "line": 466, - "column": 19 - }, - "end": { - "line": 468, - "column": 13 - } - }, - "body": [ - { - "type": "ThrowStatement", - "start": 14093, - "end": 14150, - "loc": { - "start": { - "line": 467, - "column": 14 - }, - "end": { - "line": 467, - "column": 71 - } - }, - "argument": { - "type": "NewExpression", - "start": 14099, - "end": 14149, - "loc": { - "start": { - "line": 467, - "column": 20 - }, - "end": { - "line": 467, - "column": 70 - } - }, - "callee": { - "type": "Identifier", - "start": 14103, - "end": 14108, - "loc": { - "start": { - "line": 467, - "column": 24 - }, - "end": { - "line": 467, - "column": 29 - }, - "identifierName": "Error" - }, - "name": "Error" - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 14109, - "end": 14148, - "loc": { - "start": { - "line": 467, - "column": 30 - }, - "end": { - "line": 467, - "column": 69 - } - }, - "extra": { - "rawValue": "Some roles (actors) where not updated", - "raw": "'Some roles (actors) where not updated'" - }, - "value": "Some roles (actors) where not updated" - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ] - }, - "property": { - "type": "Identifier", - "start": 14189, - "end": 14194, - "loc": { - "start": { - "line": 470, - "column": 11 - }, - "end": { - "line": 470, - "column": 16 - }, - "identifierName": "catch" - }, - "name": "catch" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 14195, - "end": 14284, - "loc": { - "start": { - "line": 470, - "column": 17 - }, - "end": { - "line": 473, - "column": 11 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 14195, - "end": 14209, - "loc": { - "start": { - "line": 470, - "column": 17 - }, - "end": { - "line": 470, - "column": 31 - }, - "identifierName": "roleUpdatesErr" - }, - "name": "roleUpdatesErr" - } - ], - "body": { - "type": "BlockStatement", - "start": 14213, - "end": 14284, - "loc": { - "start": { - "line": 470, - "column": 35 - }, - "end": { - "line": 473, - "column": 11 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 14227, - "end": 14252, - "loc": { - "start": { - "line": 471, - "column": 12 - }, - "end": { - "line": 471, - "column": 37 - } - }, - "expression": { - "type": "CallExpression", - "start": 14227, - "end": 14251, - "loc": { - "start": { - "line": 471, - "column": 12 - }, - "end": { - "line": 471, - "column": 36 - } - }, - "callee": { - "type": "Identifier", - "start": 14227, - "end": 14235, - "loc": { - "start": { - "line": 471, - "column": 12 - }, - "end": { - "line": 471, - "column": 20 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 14236, - "end": 14250, - "loc": { - "start": { - "line": 471, - "column": 21 - }, - "end": { - "line": 471, - "column": 35 - }, - "identifierName": "roleUpdatesErr" - }, - "name": "roleUpdatesErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 14265, - "end": 14272, - "loc": { - "start": { - "line": 472, - "column": 12 - }, - "end": { - "line": 472, - "column": 19 - } - }, - "argument": null - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 14307, - "end": 14740, - "loc": { - "start": { - "line": 477, - "column": 4 - }, - "end": { - "line": 490, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 14313, - "end": 14739, - "loc": { - "start": { - "line": 477, - "column": 10 - }, - "end": { - "line": 490, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 14313, - "end": 14316, - "loc": { - "start": { - "line": 477, - "column": 10 - }, - "end": { - "line": 477, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 14319, - "end": 14739, - "loc": { - "start": { - "line": 477, - "column": 16 - }, - "end": { - "line": 490, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 14319, - "end": 14706, - "loc": { - "start": { - "line": 477, - "column": 16 - }, - "end": { - "line": 490, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 14319, - "end": 14696, - "loc": { - "start": { - "line": 477, - "column": 16 - }, - "end": { - "line": 489, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 14319, - "end": 14339, - "loc": { - "start": { - "line": 477, - "column": 16 - }, - "end": { - "line": 478, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 14319, - "end": 14324, - "loc": { - "start": { - "line": 477, - "column": 16 - }, - "end": { - "line": 477, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 14332, - "end": 14339, - "loc": { - "start": { - "line": 478, - "column": 7 - }, - "end": { - "line": 478, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 14340, - "end": 14662, - "loc": { - "start": { - "line": 478, - "column": 15 - }, - "end": { - "line": 489, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 14340, - "end": 14359, - "loc": { - "start": { - "line": 478, - "column": 15 - }, - "end": { - "line": 478, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 14360, - "end": 14661, - "loc": { - "start": { - "line": 478, - "column": 35 - }, - "end": { - "line": 489, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 14370, - "end": 14383, - "loc": { - "start": { - "line": 479, - "column": 8 - }, - "end": { - "line": 479, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 14370, - "end": 14376, - "loc": { - "start": { - "line": 479, - "column": 8 - }, - "end": { - "line": 479, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 14378, - "end": 14383, - "loc": { - "start": { - "line": 479, - "column": 16 - }, - "end": { - "line": 479, - "column": 21 - } - }, - "extra": { - "rawValue": "PUT", - "raw": "'PUT'" - }, - "value": "PUT" - } - }, - { - "type": "ObjectProperty", - "start": 14393, - "end": 14440, - "loc": { - "start": { - "line": 480, - "column": 8 - }, - "end": { - "line": 480, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 14393, - "end": 14397, - "loc": { - "start": { - "line": 480, - "column": 8 - }, - "end": { - "line": 480, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 14399, - "end": 14440, - "loc": { - "start": { - "line": 480, - "column": 14 - }, - "end": { - "line": 480, - "column": 55 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 14412, - "end": 14414, - "loc": { - "start": { - "line": 480, - "column": 27 - }, - "end": { - "line": 480, - "column": 29 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 14400, - "end": 14410, - "loc": { - "start": { - "line": 480, - "column": 15 - }, - "end": { - "line": 480, - "column": 25 - } - }, - "value": { - "raw": "/document/", - "cooked": "/document/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 14415, - "end": 14439, - "loc": { - "start": { - "line": 480, - "column": 30 - }, - "end": { - "line": 480, - "column": 54 - } - }, - "value": { - "raw": "/template/routing/detail", - "cooked": "/template/routing/detail" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 14450, - "end": 14519, - "loc": { - "start": { - "line": 481, - "column": 8 - }, - "end": { - "line": 484, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 14450, - "end": 14463, - "loc": { - "start": { - "line": 481, - "column": 8 - }, - "end": { - "line": 481, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 14465, - "end": 14519, - "loc": { - "start": { - "line": 481, - "column": 23 - }, - "end": { - "line": 484, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 14477, - "end": 14491, - "loc": { - "start": { - "line": 482, - "column": 10 - }, - "end": { - "line": 482, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 14477, - "end": 14481, - "loc": { - "start": { - "line": 482, - "column": 10 - }, - "end": { - "line": 482, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 14483, - "end": 14491, - "loc": { - "start": { - "line": 482, - "column": 16 - }, - "end": { - "line": 482, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 14503, - "end": 14508, - "loc": { - "start": { - "line": 483, - "column": 10 - }, - "end": { - "line": 483, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 14503, - "end": 14508, - "loc": { - "start": { - "line": 483, - "column": 10 - }, - "end": { - "line": 483, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 14503, - "end": 14508, - "loc": { - "start": { - "line": 483, - "column": 10 - }, - "end": { - "line": 483, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 14529, - "end": 14652, - "loc": { - "start": { - "line": 485, - "column": 8 - }, - "end": { - "line": 488, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 14529, - "end": 14536, - "loc": { - "start": { - "line": 485, - "column": 8 - }, - "end": { - "line": 485, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 14538, - "end": 14652, - "loc": { - "start": { - "line": 485, - "column": 17 - }, - "end": { - "line": 488, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 14550, - "end": 14584, - "loc": { - "start": { - "line": 486, - "column": 10 - }, - "end": { - "line": 486, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 14550, - "end": 14564, - "loc": { - "start": { - "line": 486, - "column": 10 - }, - "end": { - "line": 486, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 14566, - "end": 14584, - "loc": { - "start": { - "line": 486, - "column": 26 - }, - "end": { - "line": 486, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 14596, - "end": 14641, - "loc": { - "start": { - "line": 487, - "column": 10 - }, - "end": { - "line": 487, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 14596, - "end": 14612, - "loc": { - "start": { - "line": 487, - "column": 10 - }, - "end": { - "line": 487, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 14614, - "end": 14641, - "loc": { - "start": { - "line": 487, - "column": 28 - }, - "end": { - "line": 487, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 14614, - "end": 14631, - "loc": { - "start": { - "line": 487, - "column": 28 - }, - "end": { - "line": 487, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 14614, - "end": 14620, - "loc": { - "start": { - "line": 487, - "column": 28 - }, - "end": { - "line": 487, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 14621, - "end": 14631, - "loc": { - "start": { - "line": 487, - "column": 35 - }, - "end": { - "line": 487, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 14632, - "end": 14640, - "loc": { - "start": { - "line": 487, - "column": 46 - }, - "end": { - "line": 487, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 14664, - "end": 14695, - "loc": { - "start": { - "line": 489, - "column": 10 - }, - "end": { - "line": 489, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 14664, - "end": 14679, - "loc": { - "start": { - "line": 489, - "column": 10 - }, - "end": { - "line": 489, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 14680, - "end": 14694, - "loc": { - "start": { - "line": 489, - "column": 26 - }, - "end": { - "line": 489, - "column": 40 - }, - "identifierName": "updateCallback" - }, - "name": "updateCallback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 14704, - "end": 14706, - "loc": { - "start": { - "line": 490, - "column": 7 - }, - "end": { - "line": 490, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 14707, - "end": 14714, - "loc": { - "start": { - "line": 490, - "column": 10 - }, - "end": { - "line": 490, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 14716, - "end": 14738, - "loc": { - "start": { - "line": 490, - "column": 19 - }, - "end": { - "line": 490, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 14716, - "end": 14728, - "loc": { - "start": { - "line": 490, - "column": 19 - }, - "end": { - "line": 490, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 14729, - "end": 14737, - "loc": { - "start": { - "line": 490, - "column": 32 - }, - "end": { - "line": 490, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 14746, - "end": 14766, - "loc": { - "start": { - "line": 492, - "column": 4 - }, - "end": { - "line": 492, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 14746, - "end": 14765, - "loc": { - "start": { - "line": 492, - "column": 4 - }, - "end": { - "line": 492, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 14746, - "end": 14755, - "loc": { - "start": { - "line": 492, - "column": 4 - }, - "end": { - "line": 492, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 14746, - "end": 14749, - "loc": { - "start": { - "line": 492, - "column": 4 - }, - "end": { - "line": 492, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 14750, - "end": 14755, - "loc": { - "start": { - "line": 492, - "column": 8 - }, - "end": { - "line": 492, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 14756, - "end": 14764, - "loc": { - "start": { - "line": 492, - "column": 14 - }, - "end": { - "line": 492, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 14771, - "end": 14781, - "loc": { - "start": { - "line": 493, - "column": 4 - }, - "end": { - "line": 493, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 14771, - "end": 14780, - "loc": { - "start": { - "line": 493, - "column": 4 - }, - "end": { - "line": 493, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 14771, - "end": 14778, - "loc": { - "start": { - "line": 493, - "column": 4 - }, - "end": { - "line": 493, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 14771, - "end": 14774, - "loc": { - "start": { - "line": 493, - "column": 4 - }, - "end": { - "line": 493, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 14775, - "end": 14778, - "loc": { - "start": { - "line": 493, - "column": 8 - }, - "end": { - "line": 493, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Template Update Routing Details item data\n * @typedef {Object} TemplateUpdateRoutingDetailsItem\n * @property {string} default_email - default email for routing detail\n * @property {boolean} inviter_role - always `false`\n * @property {string} name - signer role (actor) name\n * @property {string} role_id - signer role (actor) unique ID\n * @property {number} signing_order - order number of signing step\n * @property {boolean} decline_by_signature - decline by signature flag\n ", - "start": 10913, - "end": 11416, - "loc": { - "start": { - "line": 380, - "column": 2 - }, - "end": { - "line": 389, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update Template Routing Details settings\n * @typedef {Object} TemplateUpdateRoutingDetailsSettings\n * @property {TemplateUpdateRoutingDetailsItem[]} template_data - array with routing details\n * @property {string[]} cc - CC emails\n * @property {TemplateRoutingDetailsCCStep[]} cc_step - array of CC steps\n * @property {string} [invite_link_instructions] - invite signing instructions\n ", - "start": 11420, - "end": 11828, - "loc": { - "start": { - "line": 391, - "column": 2 - }, - "end": { - "line": 398, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update Template Routing Details payload\n * @typedef {Object} TemplateUpdateRoutingDetailsParams\n * @property {string} id - an ID of specific Template\n * @property {string} token - your auth token\n * @property {TemplateUpdateRoutingDetailsSettings} data - update Template Routing Details settings\n ", - "start": 11832, - "end": 12150, - "loc": { - "start": { - "line": 400, - "column": 2 - }, - "end": { - "line": 406, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update Template Routing Details response data\n * @typedef {Object} TemplateUpdateRoutingDetailsResponse\n * @property {string} id - unique ID of template routing details\n * @property {string} document_id - unique ID of Template\n * @property {TemplateUpdateRoutingDetailsItem[]} data - array with routing details\n * @property {string[]} cc - CC emails\n * @property {TemplateRoutingDetailsCCStep[]} cc_step - array of CC steps\n * @property {string} invite_link_instructions - invite signing instructions\n ", - "start": 12154, - "end": 12683, - "loc": { - "start": { - "line": 408, - "column": 2 - }, - "end": { - "line": 417, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Updates Routing Details of specified template\n * @param {TemplateUpdateRoutingDetailsParams} data - update Template Routing Details payload\n * @param {function(err: ApiErrorResponse, res: TemplateUpdateRoutingDetailsResponse)} [callback] - error first node.js callback\n ", - "start": 12687, - "end": 12974, - "loc": { - "start": { - "line": 419, - "column": 2 - }, - "end": { - "line": 423, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Template Bulk Invite settings\n * @typedef {Object} TemplateBulkInviteSettings\n * @property {string} file - path to .csv file with roles and their emails. Max file size should be <= 1 Megabyte\n * @property {string} folder_id - an ID of folder where signed documents will be saved\n * @property {number} [client_timestamp] - client timestamp in seconds\n * @property {string} [document_name] - setup prefix for each document name\n * @property {string} [subject] - custom email subject\n * @property {string} [email_message] - custom email message\n ", - "start": 14789, - "end": 15359, - "loc": { - "start": { - "line": 496, - "column": 2 - }, - "end": { - "line": 505, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Send Template Bulk Invite payload\n * @typedef {Object} TemplateBulkInviteParams\n * @property {string} id - an ID of specific Template\n * @property {string} token - your auth token\n * @property {TemplateBulkInviteSettings} data - Template Bulk Invite settings\n ", - "start": 15363, - "end": 15644, - "loc": { - "start": { - "line": 507, - "column": 2 - }, - "end": { - "line": 513, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Send Template Bulk Invite response data\n * @typedef {Object} TemplateBulkInviteResponse\n * @property {string} status - status of sending bulk invites (e.g. \"job queued\")\n ", - "start": 15648, - "end": 15836, - "loc": { - "start": { - "line": 515, - "column": 2 - }, - "end": { - "line": 519, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Sends invites to sign a specified template to multiple signers at once\n * @experimental internal implementation of this method might be changed\n * @param {TemplateBulkInviteParams} data - Bulk Invite payload\n * @param {function(err: ApiErrorResponse, res: TemplateBulkInviteResponse)} [callback] - error first node.js callback\n ", - "start": 15840, - "end": 16187, - "loc": { - "start": { - "line": 521, - "column": 2 - }, - "end": { - "line": 526, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 16190, - "end": 17993, - "loc": { - "start": { - "line": 527, - "column": 2 - }, - "end": { - "line": 597, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 16197, - "end": 16207, - "loc": { - "start": { - "line": 527, - "column": 9 - }, - "end": { - "line": 527, - "column": 19 - }, - "identifierName": "bulkInvite" - }, - "name": "bulkInvite" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 16209, - "end": 16243, - "loc": { - "start": { - "line": 527, - "column": 21 - }, - "end": { - "line": 531, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 16215, - "end": 16217, - "loc": { - "start": { - "line": 528, - "column": 4 - }, - "end": { - "line": 528, - "column": 6 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 16215, - "end": 16217, - "loc": { - "start": { - "line": 528, - "column": 4 - }, - "end": { - "line": 528, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "value": { - "type": "Identifier", - "start": 16215, - "end": 16217, - "loc": { - "start": { - "line": 528, - "column": 4 - }, - "end": { - "line": 528, - "column": 6 - }, - "identifierName": "id" - }, - "name": "id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 16223, - "end": 16228, - "loc": { - "start": { - "line": 529, - "column": 4 - }, - "end": { - "line": 529, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 16223, - "end": 16228, - "loc": { - "start": { - "line": 529, - "column": 4 - }, - "end": { - "line": 529, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 16223, - "end": 16228, - "loc": { - "start": { - "line": 529, - "column": 4 - }, - "end": { - "line": 529, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 16234, - "end": 16238, - "loc": { - "start": { - "line": 530, - "column": 4 - }, - "end": { - "line": 530, - "column": 8 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 16234, - "end": 16238, - "loc": { - "start": { - "line": 530, - "column": 4 - }, - "end": { - "line": 530, - "column": 8 - }, - "identifierName": "data" - }, - "name": "data" - }, - "value": { - "type": "Identifier", - "start": 16234, - "end": 16238, - "loc": { - "start": { - "line": 530, - "column": 4 - }, - "end": { - "line": 530, - "column": 8 - }, - "identifierName": "data" - }, - "name": "data" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 16245, - "end": 16253, - "loc": { - "start": { - "line": 531, - "column": 5 - }, - "end": { - "line": 531, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 16255, - "end": 17993, - "loc": { - "start": { - "line": 531, - "column": 15 - }, - "end": { - "line": 597, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 16261, - "end": 16392, - "loc": { - "start": { - "line": 532, - "column": 4 - }, - "end": { - "line": 539, - "column": 13 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16267, - "end": 16391, - "loc": { - "start": { - "line": 532, - "column": 10 - }, - "end": { - "line": 539, - "column": 12 - } - }, - "id": { - "type": "ObjectPattern", - "start": 16267, - "end": 16384, - "loc": { - "start": { - "line": 532, - "column": 10 - }, - "end": { - "line": 539, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 16275, - "end": 16279, - "loc": { - "start": { - "line": 533, - "column": 6 - }, - "end": { - "line": 533, - "column": 10 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 16275, - "end": 16279, - "loc": { - "start": { - "line": 533, - "column": 6 - }, - "end": { - "line": 533, - "column": 10 - }, - "identifierName": "file" - }, - "name": "file" - }, - "value": { - "type": "Identifier", - "start": 16275, - "end": 16279, - "loc": { - "start": { - "line": 533, - "column": 6 - }, - "end": { - "line": 533, - "column": 10 - }, - "identifierName": "file" - }, - "name": "file" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 16287, - "end": 16296, - "loc": { - "start": { - "line": 534, - "column": 6 - }, - "end": { - "line": 534, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 16287, - "end": 16296, - "loc": { - "start": { - "line": 534, - "column": 6 - }, - "end": { - "line": 534, - "column": 15 - }, - "identifierName": "folder_id" - }, - "name": "folder_id" - }, - "value": { - "type": "Identifier", - "start": 16287, - "end": 16296, - "loc": { - "start": { - "line": 534, - "column": 6 - }, - "end": { - "line": 534, - "column": 15 - }, - "identifierName": "folder_id" - }, - "name": "folder_id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 16304, - "end": 16320, - "loc": { - "start": { - "line": 535, - "column": 6 - }, - "end": { - "line": 535, - "column": 22 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 16304, - "end": 16320, - "loc": { - "start": { - "line": 535, - "column": 6 - }, - "end": { - "line": 535, - "column": 22 - }, - "identifierName": "client_timestamp" - }, - "name": "client_timestamp" - }, - "value": { - "type": "Identifier", - "start": 16304, - "end": 16320, - "loc": { - "start": { - "line": 535, - "column": 6 - }, - "end": { - "line": 535, - "column": 22 - }, - "identifierName": "client_timestamp" - }, - "name": "client_timestamp" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 16328, - "end": 16341, - "loc": { - "start": { - "line": 536, - "column": 6 - }, - "end": { - "line": 536, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 16328, - "end": 16341, - "loc": { - "start": { - "line": 536, - "column": 6 - }, - "end": { - "line": 536, - "column": 19 - }, - "identifierName": "document_name" - }, - "name": "document_name" - }, - "value": { - "type": "Identifier", - "start": 16328, - "end": 16341, - "loc": { - "start": { - "line": 536, - "column": 6 - }, - "end": { - "line": 536, - "column": 19 - }, - "identifierName": "document_name" - }, - "name": "document_name" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 16349, - "end": 16356, - "loc": { - "start": { - "line": 537, - "column": 6 - }, - "end": { - "line": 537, - "column": 13 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 16349, - "end": 16356, - "loc": { - "start": { - "line": 537, - "column": 6 - }, - "end": { - "line": 537, - "column": 13 - }, - "identifierName": "subject" - }, - "name": "subject" - }, - "value": { - "type": "Identifier", - "start": 16349, - "end": 16356, - "loc": { - "start": { - "line": 537, - "column": 6 - }, - "end": { - "line": 537, - "column": 13 - }, - "identifierName": "subject" - }, - "name": "subject" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 16364, - "end": 16377, - "loc": { - "start": { - "line": 538, - "column": 6 - }, - "end": { - "line": 538, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 16364, - "end": 16377, - "loc": { - "start": { - "line": 538, - "column": 6 - }, - "end": { - "line": 538, - "column": 19 - }, - "identifierName": "email_message" - }, - "name": "email_message" - }, - "value": { - "type": "Identifier", - "start": 16364, - "end": 16377, - "loc": { - "start": { - "line": 538, - "column": 6 - }, - "end": { - "line": 538, - "column": 19 - }, - "identifierName": "email_message" - }, - "name": "email_message" - }, - "extra": { - "shorthand": true - } - } - ] - }, - "init": { - "type": "Identifier", - "start": 16387, - "end": 16391, - "loc": { - "start": { - "line": 539, - "column": 8 - }, - "end": { - "line": 539, - "column": 12 - }, - "identifierName": "data" - }, - "name": "data" - } - } - ], - "kind": "const" - }, - { - "type": "IfStatement", - "start": 16398, - "end": 16517, - "loc": { - "start": { - "line": 541, - "column": 4 - }, - "end": { - "line": 544, - "column": 5 - } - }, - "test": { - "type": "UnaryExpression", - "start": 16402, - "end": 16418, - "loc": { - "start": { - "line": 541, - "column": 8 - }, - "end": { - "line": 541, - "column": 24 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "CallExpression", - "start": 16403, - "end": 16418, - "loc": { - "start": { - "line": 541, - "column": 9 - }, - "end": { - "line": 541, - "column": 24 - } - }, - "callee": { - "type": "Identifier", - "start": 16403, - "end": 16412, - "loc": { - "start": { - "line": 541, - "column": 9 - }, - "end": { - "line": 541, - "column": 18 - }, - "identifierName": "isCSVFile" - }, - "name": "isCSVFile" - }, - "arguments": [ - { - "type": "Identifier", - "start": 16413, - "end": 16417, - "loc": { - "start": { - "line": 541, - "column": 19 - }, - "end": { - "line": 541, - "column": 23 - }, - "identifierName": "file" - }, - "name": "file" - } - ] - }, - "extra": { - "parenthesizedArgument": false - } - }, - "consequent": { - "type": "BlockStatement", - "start": 16420, - "end": 16517, - "loc": { - "start": { - "line": 541, - "column": 26 - }, - "end": { - "line": 544, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 16428, - "end": 16497, - "loc": { - "start": { - "line": 542, - "column": 6 - }, - "end": { - "line": 542, - "column": 75 - } - }, - "expression": { - "type": "CallExpression", - "start": 16428, - "end": 16496, - "loc": { - "start": { - "line": 542, - "column": 6 - }, - "end": { - "line": 542, - "column": 74 - } - }, - "callee": { - "type": "Identifier", - "start": 16428, - "end": 16436, - "loc": { - "start": { - "line": 542, - "column": 6 - }, - "end": { - "line": 542, - "column": 14 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 16437, - "end": 16495, - "loc": { - "start": { - "line": 542, - "column": 15 - }, - "end": { - "line": 542, - "column": 73 - } - }, - "extra": { - "rawValue": "The file that was tried to be uploaded is not a CSV file", - "raw": "'The file that was tried to be uploaded is not a CSV file'" - }, - "value": "The file that was tried to be uploaded is not a CSV file" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 16504, - "end": 16511, - "loc": { - "start": { - "line": 543, - "column": 6 - }, - "end": { - "line": 543, - "column": 13 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "VariableDeclaration", - "start": 16523, - "end": 16646, - "loc": { - "start": { - "line": 546, - "column": 4 - }, - "end": { - "line": 552, - "column": 6 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16529, - "end": 16645, - "loc": { - "start": { - "line": 546, - "column": 10 - }, - "end": { - "line": 552, - "column": 5 - } - }, - "id": { - "type": "Identifier", - "start": 16529, - "end": 16537, - "loc": { - "start": { - "line": 546, - "column": 10 - }, - "end": { - "line": 546, - "column": 18 - }, - "identifierName": "metaData" - }, - "name": "metaData" - }, - "init": { - "type": "ObjectExpression", - "start": 16540, - "end": 16645, - "loc": { - "start": { - "line": 546, - "column": 21 - }, - "end": { - "line": 552, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 16548, - "end": 16557, - "loc": { - "start": { - "line": 547, - "column": 6 - }, - "end": { - "line": 547, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 16548, - "end": 16557, - "loc": { - "start": { - "line": 547, - "column": 6 - }, - "end": { - "line": 547, - "column": 15 - }, - "identifierName": "folder_id" - }, - "name": "folder_id" - }, - "value": { - "type": "Identifier", - "start": 16548, - "end": 16557, - "loc": { - "start": { - "line": 547, - "column": 6 - }, - "end": { - "line": 547, - "column": 15 - }, - "identifierName": "folder_id" - }, - "name": "folder_id" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 16565, - "end": 16581, - "loc": { - "start": { - "line": 548, - "column": 6 - }, - "end": { - "line": 548, - "column": 22 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 16565, - "end": 16581, - "loc": { - "start": { - "line": 548, - "column": 6 - }, - "end": { - "line": 548, - "column": 22 - }, - "identifierName": "client_timestamp" - }, - "name": "client_timestamp" - }, - "value": { - "type": "Identifier", - "start": 16565, - "end": 16581, - "loc": { - "start": { - "line": 548, - "column": 6 - }, - "end": { - "line": 548, - "column": 22 - }, - "identifierName": "client_timestamp" - }, - "name": "client_timestamp" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 16589, - "end": 16602, - "loc": { - "start": { - "line": 549, - "column": 6 - }, - "end": { - "line": 549, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 16589, - "end": 16602, - "loc": { - "start": { - "line": 549, - "column": 6 - }, - "end": { - "line": 549, - "column": 19 - }, - "identifierName": "document_name" - }, - "name": "document_name" - }, - "value": { - "type": "Identifier", - "start": 16589, - "end": 16602, - "loc": { - "start": { - "line": 549, - "column": 6 - }, - "end": { - "line": 549, - "column": 19 - }, - "identifierName": "document_name" - }, - "name": "document_name" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 16610, - "end": 16617, - "loc": { - "start": { - "line": 550, - "column": 6 - }, - "end": { - "line": 550, - "column": 13 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 16610, - "end": 16617, - "loc": { - "start": { - "line": 550, - "column": 6 - }, - "end": { - "line": 550, - "column": 13 - }, - "identifierName": "subject" - }, - "name": "subject" - }, - "value": { - "type": "Identifier", - "start": 16610, - "end": 16617, - "loc": { - "start": { - "line": 550, - "column": 6 - }, - "end": { - "line": 550, - "column": 13 - }, - "identifierName": "subject" - }, - "name": "subject" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 16625, - "end": 16638, - "loc": { - "start": { - "line": 551, - "column": 6 - }, - "end": { - "line": 551, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 16625, - "end": 16638, - "loc": { - "start": { - "line": 551, - "column": 6 - }, - "end": { - "line": 551, - "column": 19 - }, - "identifierName": "email_message" - }, - "name": "email_message" - }, - "value": { - "type": "Identifier", - "start": 16625, - "end": 16638, - "loc": { - "start": { - "line": 551, - "column": 6 - }, - "end": { - "line": 551, - "column": 19 - }, - "identifierName": "email_message" - }, - "name": "email_message" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 16652, - "end": 16699, - "loc": { - "start": { - "line": 554, - "column": 4 - }, - "end": { - "line": 554, - "column": 51 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16658, - "end": 16698, - "loc": { - "start": { - "line": 554, - "column": 10 - }, - "end": { - "line": 554, - "column": 50 - } - }, - "id": { - "type": "Identifier", - "start": 16658, - "end": 16674, - "loc": { - "start": { - "line": 554, - "column": 10 - }, - "end": { - "line": 554, - "column": 26 - }, - "identifierName": "formDataBoundary" - }, - "name": "formDataBoundary" - }, - "init": { - "type": "CallExpression", - "start": 16677, - "end": 16698, - "loc": { - "start": { - "line": 554, - "column": 29 - }, - "end": { - "line": 554, - "column": 50 - } - }, - "callee": { - "type": "Identifier", - "start": 16677, - "end": 16696, - "loc": { - "start": { - "line": 554, - "column": 29 - }, - "end": { - "line": 554, - "column": 48 - }, - "identifierName": "getFormDataBoundary" - }, - "name": "getFormDataBoundary" - }, - "arguments": [] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 16704, - "end": 17127, - "loc": { - "start": { - "line": 555, - "column": 4 - }, - "end": { - "line": 563, - "column": 48 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16710, - "end": 17126, - "loc": { - "start": { - "line": 555, - "column": 10 - }, - "end": { - "line": 563, - "column": 47 - } - }, - "id": { - "type": "Identifier", - "start": 16710, - "end": 16727, - "loc": { - "start": { - "line": 555, - "column": 10 - }, - "end": { - "line": 555, - "column": 27 - }, - "identifierName": "formDataBeginning" - }, - "name": "formDataBeginning" - }, - "init": { - "type": "CallExpression", - "start": 16730, - "end": 17126, - "loc": { - "start": { - "line": 555, - "column": 30 - }, - "end": { - "line": 563, - "column": 47 - } - }, - "callee": { - "type": "MemberExpression", - "start": 16730, - "end": 17092, - "loc": { - "start": { - "line": 555, - "column": 30 - }, - "end": { - "line": 563, - "column": 13 - } - }, - "object": { - "type": "CallExpression", - "start": 16730, - "end": 17078, - "loc": { - "start": { - "line": 555, - "column": 30 - }, - "end": { - "line": 562, - "column": 94 - } - }, - "callee": { - "type": "MemberExpression", - "start": 16730, - "end": 16997, - "loc": { - "start": { - "line": 555, - "column": 30 - }, - "end": { - "line": 562, - "column": 13 - } - }, - "object": { - "type": "CallExpression", - "start": 16730, - "end": 16983, - "loc": { - "start": { - "line": 555, - "column": 30 - }, - "end": { - "line": 561, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 16730, - "end": 16954, - "loc": { - "start": { - "line": 555, - "column": 30 - }, - "end": { - "line": 561, - "column": 13 - } - }, - "object": { - "type": "CallExpression", - "start": 16730, - "end": 16940, - "loc": { - "start": { - "line": 555, - "column": 30 - }, - "end": { - "line": 560, - "column": 122 - } - }, - "callee": { - "type": "MemberExpression", - "start": 16730, - "end": 16775, - "loc": { - "start": { - "line": 555, - "column": 30 - }, - "end": { - "line": 557, - "column": 13 - } - }, - "object": { - "type": "CallExpression", - "start": 16730, - "end": 16761, - "loc": { - "start": { - "line": 555, - "column": 30 - }, - "end": { - "line": 556, - "column": 24 - } - }, - "callee": { - "type": "MemberExpression", - "start": 16730, - "end": 16751, - "loc": { - "start": { - "line": 555, - "column": 30 - }, - "end": { - "line": 556, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 16730, - "end": 16736, - "loc": { - "start": { - "line": 555, - "column": 30 - }, - "end": { - "line": 555, - "column": 36 - }, - "identifierName": "Object" - }, - "name": "Object" - }, - "property": { - "type": "Identifier", - "start": 16744, - "end": 16751, - "loc": { - "start": { - "line": 556, - "column": 7 - }, - "end": { - "line": 556, - "column": 14 - }, - "identifierName": "entries" - }, - "name": "entries" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 16752, - "end": 16760, - "loc": { - "start": { - "line": 556, - "column": 15 - }, - "end": { - "line": 556, - "column": 23 - }, - "identifierName": "metaData" - }, - "name": "metaData" - } - ] - }, - "property": { - "type": "Identifier", - "start": 16769, - "end": 16775, - "loc": { - "start": { - "line": 557, - "column": 7 - }, - "end": { - "line": 557, - "column": 13 - }, - "identifierName": "reduce" - }, - "name": "reduce" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 16776, - "end": 16935, - "loc": { - "start": { - "line": 557, - "column": 14 - }, - "end": { - "line": 560, - "column": 117 - } - }, - "id": null, - "generator": false, - "expression": true, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 16777, - "end": 16785, - "loc": { - "start": { - "line": 557, - "column": 15 - }, - "end": { - "line": 557, - "column": 23 - }, - "identifierName": "formData" - }, - "name": "formData" - }, - { - "type": "ArrayPattern", - "start": 16787, - "end": 16825, - "loc": { - "start": { - "line": 557, - "column": 25 - }, - "end": { - "line": 560, - "column": 7 - } - }, - "elements": [ - { - "type": "Identifier", - "start": 16797, - "end": 16801, - "loc": { - "start": { - "line": 558, - "column": 8 - }, - "end": { - "line": 558, - "column": 12 - }, - "identifierName": "name" - }, - "name": "name" - }, - { - "type": "Identifier", - "start": 16811, - "end": 16816, - "loc": { - "start": { - "line": 559, - "column": 8 - }, - "end": { - "line": 559, - "column": 13 - }, - "identifierName": "value" - }, - "name": "value" - } - ] - } - ], - "body": { - "type": "TemplateLiteral", - "start": 16830, - "end": 16935, - "loc": { - "start": { - "line": 560, - "column": 12 - }, - "end": { - "line": 560, - "column": 117 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 16833, - "end": 16841, - "loc": { - "start": { - "line": 560, - "column": 15 - }, - "end": { - "line": 560, - "column": 23 - }, - "identifierName": "formData" - }, - "name": "formData" - }, - { - "type": "Identifier", - "start": 16846, - "end": 16862, - "loc": { - "start": { - "line": 560, - "column": 28 - }, - "end": { - "line": 560, - "column": 44 - }, - "identifierName": "formDataBoundary" - }, - "name": "formDataBoundary" - }, - { - "type": "Identifier", - "start": 16907, - "end": 16911, - "loc": { - "start": { - "line": 560, - "column": 89 - }, - "end": { - "line": 560, - "column": 93 - }, - "identifierName": "name" - }, - "name": "name" - }, - { - "type": "Identifier", - "start": 16924, - "end": 16929, - "loc": { - "start": { - "line": 560, - "column": 106 - }, - "end": { - "line": 560, - "column": 111 - }, - "identifierName": "value" - }, - "name": "value" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 16831, - "end": 16831, - "loc": { - "start": { - "line": 560, - "column": 13 - }, - "end": { - "line": 560, - "column": 13 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 16842, - "end": 16844, - "loc": { - "start": { - "line": 560, - "column": 24 - }, - "end": { - "line": 560, - "column": 26 - } - }, - "value": { - "raw": "--", - "cooked": "--" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 16863, - "end": 16905, - "loc": { - "start": { - "line": 560, - "column": 45 - }, - "end": { - "line": 560, - "column": 87 - } - }, - "value": { - "raw": "\\r\\nContent-Disposition: form-data; name=\"", - "cooked": "\r\nContent-Disposition: form-data; name=\"" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 16912, - "end": 16922, - "loc": { - "start": { - "line": 560, - "column": 94 - }, - "end": { - "line": 560, - "column": 104 - } - }, - "value": { - "raw": "\";\\r\\n\\r\\n", - "cooked": "\";\r\n\r\n" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 16930, - "end": 16934, - "loc": { - "start": { - "line": 560, - "column": 112 - }, - "end": { - "line": 560, - "column": 116 - } - }, - "value": { - "raw": "\\r\\n", - "cooked": "\r\n" - }, - "tail": true - } - ] - } - }, - { - "type": "StringLiteral", - "start": 16937, - "end": 16939, - "loc": { - "start": { - "line": 560, - "column": 119 - }, - "end": { - "line": 560, - "column": 121 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - ] - }, - "property": { - "type": "Identifier", - "start": 16948, - "end": 16954, - "loc": { - "start": { - "line": 561, - "column": 7 - }, - "end": { - "line": 561, - "column": 13 - }, - "identifierName": "concat" - }, - "name": "concat" - }, - "computed": false - }, - "arguments": [ - { - "type": "TemplateLiteral", - "start": 16955, - "end": 16982, - "loc": { - "start": { - "line": 561, - "column": 14 - }, - "end": { - "line": 561, - "column": 41 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 16960, - "end": 16976, - "loc": { - "start": { - "line": 561, - "column": 19 - }, - "end": { - "line": 561, - "column": 35 - }, - "identifierName": "formDataBoundary" - }, - "name": "formDataBoundary" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 16956, - "end": 16958, - "loc": { - "start": { - "line": 561, - "column": 15 - }, - "end": { - "line": 561, - "column": 17 - } - }, - "value": { - "raw": "--", - "cooked": "--" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 16977, - "end": 16981, - "loc": { - "start": { - "line": 561, - "column": 36 - }, - "end": { - "line": 561, - "column": 40 - } - }, - "value": { - "raw": "\\r\\n", - "cooked": "\r\n" - }, - "tail": true - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 16991, - "end": 16997, - "loc": { - "start": { - "line": 562, - "column": 7 - }, - "end": { - "line": 562, - "column": 13 - }, - "identifierName": "concat" - }, - "name": "concat" - }, - "computed": false - }, - "arguments": [ - { - "type": "TemplateLiteral", - "start": 16998, - "end": 17077, - "loc": { - "start": { - "line": 562, - "column": 14 - }, - "end": { - "line": 562, - "column": 93 - } - }, - "expressions": [ - { - "type": "CallExpression", - "start": 17056, - "end": 17070, - "loc": { - "start": { - "line": 562, - "column": 72 - }, - "end": { - "line": 562, - "column": 86 - } - }, - "callee": { - "type": "Identifier", - "start": 17056, - "end": 17064, - "loc": { - "start": { - "line": 562, - "column": 72 - }, - "end": { - "line": 562, - "column": 80 - }, - "identifierName": "basename" - }, - "name": "basename" - }, - "arguments": [ - { - "type": "Identifier", - "start": 17065, - "end": 17069, - "loc": { - "start": { - "line": 562, - "column": 81 - }, - "end": { - "line": 562, - "column": 85 - }, - "identifierName": "file" - }, - "name": "file" - } - ] - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 16999, - "end": 17054, - "loc": { - "start": { - "line": 562, - "column": 15 - }, - "end": { - "line": 562, - "column": 70 - } - }, - "value": { - "raw": "Content-Disposition: form-data; name=\"file\"; filename=\"", - "cooked": "Content-Disposition: form-data; name=\"file\"; filename=\"" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 17071, - "end": 17076, - "loc": { - "start": { - "line": 562, - "column": 87 - }, - "end": { - "line": 562, - "column": 92 - } - }, - "value": { - "raw": "\"\\r\\n", - "cooked": "\"\r\n" - }, - "tail": true - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 17086, - "end": 17092, - "loc": { - "start": { - "line": 563, - "column": 7 - }, - "end": { - "line": 563, - "column": 13 - }, - "identifierName": "concat" - }, - "name": "concat" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 17093, - "end": 17125, - "loc": { - "start": { - "line": 563, - "column": 14 - }, - "end": { - "line": 563, - "column": 46 - } - }, - "extra": { - "rawValue": "Content-Type: text/csv\r\n\r\n", - "raw": "'Content-Type: text/csv\\r\\n\\r\\n'" - }, - "value": "Content-Type: text/csv\r\n\r\n" - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 17132, - "end": 17187, - "loc": { - "start": { - "line": 564, - "column": 4 - }, - "end": { - "line": 564, - "column": 59 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 17138, - "end": 17186, - "loc": { - "start": { - "line": 564, - "column": 10 - }, - "end": { - "line": 564, - "column": 58 - } - }, - "id": { - "type": "Identifier", - "start": 17138, - "end": 17152, - "loc": { - "start": { - "line": 564, - "column": 10 - }, - "end": { - "line": 564, - "column": 24 - }, - "identifierName": "formDataEnding" - }, - "name": "formDataEnding" - }, - "init": { - "type": "TemplateLiteral", - "start": 17155, - "end": 17186, - "loc": { - "start": { - "line": 564, - "column": 27 - }, - "end": { - "line": 564, - "column": 58 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 17164, - "end": 17180, - "loc": { - "start": { - "line": 564, - "column": 36 - }, - "end": { - "line": 564, - "column": 52 - }, - "identifierName": "formDataBoundary" - }, - "name": "formDataBoundary" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 17156, - "end": 17162, - "loc": { - "start": { - "line": 564, - "column": 28 - }, - "end": { - "line": 564, - "column": 34 - } - }, - "value": { - "raw": "\\r\\n--", - "cooked": "\r\n--" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 17181, - "end": 17185, - "loc": { - "start": { - "line": 564, - "column": 53 - }, - "end": { - "line": 564, - "column": 57 - } - }, - "value": { - "raw": "\\r\\n", - "cooked": "\r\n" - }, - "tail": true - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 17192, - "end": 17208, - "loc": { - "start": { - "line": 565, - "column": 4 - }, - "end": { - "line": 565, - "column": 20 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 17196, - "end": 17207, - "loc": { - "start": { - "line": 565, - "column": 8 - }, - "end": { - "line": 565, - "column": 19 - } - }, - "id": { - "type": "Identifier", - "start": 17196, - "end": 17207, - "loc": { - "start": { - "line": 565, - "column": 8 - }, - "end": { - "line": 565, - "column": 19 - }, - "identifierName": "fileContent" - }, - "name": "fileContent" - }, - "init": null - } - ], - "kind": "let" - }, - { - "type": "TryStatement", - "start": 17214, - "end": 17320, - "loc": { - "start": { - "line": 567, - "column": 4 - }, - "end": { - "line": 572, - "column": 5 - } - }, - "block": { - "type": "BlockStatement", - "start": 17218, - "end": 17265, - "loc": { - "start": { - "line": 567, - "column": 8 - }, - "end": { - "line": 569, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 17226, - "end": 17259, - "loc": { - "start": { - "line": 568, - "column": 6 - }, - "end": { - "line": 568, - "column": 39 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 17226, - "end": 17258, - "loc": { - "start": { - "line": 568, - "column": 6 - }, - "end": { - "line": 568, - "column": 38 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 17226, - "end": 17237, - "loc": { - "start": { - "line": 568, - "column": 6 - }, - "end": { - "line": 568, - "column": 17 - }, - "identifierName": "fileContent" - }, - "name": "fileContent" - }, - "right": { - "type": "CallExpression", - "start": 17240, - "end": 17258, - "loc": { - "start": { - "line": 568, - "column": 20 - }, - "end": { - "line": 568, - "column": 38 - } - }, - "callee": { - "type": "Identifier", - "start": 17240, - "end": 17252, - "loc": { - "start": { - "line": 568, - "column": 20 - }, - "end": { - "line": 568, - "column": 32 - }, - "identifierName": "readFileSync" - }, - "name": "readFileSync" - }, - "arguments": [ - { - "type": "Identifier", - "start": 17253, - "end": 17257, - "loc": { - "start": { - "line": 568, - "column": 33 - }, - "end": { - "line": 568, - "column": 37 - }, - "identifierName": "file" - }, - "name": "file" - } - ] - } - } - } - ], - "directives": [] - }, - "handler": { - "type": "CatchClause", - "start": 17266, - "end": 17320, - "loc": { - "start": { - "line": 569, - "column": 6 - }, - "end": { - "line": 572, - "column": 5 - } - }, - "param": { - "type": "Identifier", - "start": 17273, - "end": 17276, - "loc": { - "start": { - "line": 569, - "column": 13 - }, - "end": { - "line": 569, - "column": 16 - }, - "identifierName": "err" - }, - "name": "err" - }, - "body": { - "type": "BlockStatement", - "start": 17278, - "end": 17320, - "loc": { - "start": { - "line": 569, - "column": 18 - }, - "end": { - "line": 572, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 17286, - "end": 17300, - "loc": { - "start": { - "line": 570, - "column": 6 - }, - "end": { - "line": 570, - "column": 20 - } - }, - "expression": { - "type": "CallExpression", - "start": 17286, - "end": 17299, - "loc": { - "start": { - "line": 570, - "column": 6 - }, - "end": { - "line": 570, - "column": 19 - } - }, - "callee": { - "type": "Identifier", - "start": 17286, - "end": 17294, - "loc": { - "start": { - "line": 570, - "column": 6 - }, - "end": { - "line": 570, - "column": 14 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 17295, - "end": 17298, - "loc": { - "start": { - "line": 570, - "column": 15 - }, - "end": { - "line": 570, - "column": 18 - }, - "identifierName": "err" - }, - "name": "err" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 17307, - "end": 17314, - "loc": { - "start": { - "line": 571, - "column": 6 - }, - "end": { - "line": 571, - "column": 13 - } - }, - "argument": null - } - ], - "directives": [] - } - }, - "guardedHandlers": [], - "finalizer": null - }, - { - "type": "VariableDeclaration", - "start": 17326, - "end": 17496, - "loc": { - "start": { - "line": 574, - "column": 4 - }, - "end": { - "line": 578, - "column": 7 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 17332, - "end": 17495, - "loc": { - "start": { - "line": 574, - "column": 10 - }, - "end": { - "line": 578, - "column": 6 - } - }, - "id": { - "type": "Identifier", - "start": 17332, - "end": 17339, - "loc": { - "start": { - "line": 574, - "column": 10 - }, - "end": { - "line": 574, - "column": 17 - }, - "identifierName": "payload" - }, - "name": "payload" - }, - "init": { - "type": "CallExpression", - "start": 17342, - "end": 17495, - "loc": { - "start": { - "line": 574, - "column": 20 - }, - "end": { - "line": 578, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 17342, - "end": 17355, - "loc": { - "start": { - "line": 574, - "column": 20 - }, - "end": { - "line": 574, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 17342, - "end": 17348, - "loc": { - "start": { - "line": 574, - "column": 20 - }, - "end": { - "line": 574, - "column": 26 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 17349, - "end": 17355, - "loc": { - "start": { - "line": 574, - "column": 27 - }, - "end": { - "line": 574, - "column": 33 - }, - "identifierName": "concat" - }, - "name": "concat" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrayExpression", - "start": 17356, - "end": 17494, - "loc": { - "start": { - "line": 574, - "column": 34 - }, - "end": { - "line": 578, - "column": 5 - } - }, - "elements": [ - { - "type": "CallExpression", - "start": 17364, - "end": 17402, - "loc": { - "start": { - "line": 575, - "column": 6 - }, - "end": { - "line": 575, - "column": 44 - } - }, - "callee": { - "type": "MemberExpression", - "start": 17364, - "end": 17375, - "loc": { - "start": { - "line": 575, - "column": 6 - }, - "end": { - "line": 575, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 17364, - "end": 17370, - "loc": { - "start": { - "line": 575, - "column": 6 - }, - "end": { - "line": 575, - "column": 12 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 17371, - "end": 17375, - "loc": { - "start": { - "line": 575, - "column": 13 - }, - "end": { - "line": 575, - "column": 17 - }, - "identifierName": "from" - }, - "name": "from" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 17376, - "end": 17393, - "loc": { - "start": { - "line": 575, - "column": 18 - }, - "end": { - "line": 575, - "column": 35 - }, - "identifierName": "formDataBeginning" - }, - "name": "formDataBeginning" - }, - { - "type": "StringLiteral", - "start": 17395, - "end": 17401, - "loc": { - "start": { - "line": 575, - "column": 37 - }, - "end": { - "line": 575, - "column": 43 - } - }, - "extra": { - "rawValue": "utf8", - "raw": "'utf8'" - }, - "value": "utf8" - } - ] - }, - { - "type": "CallExpression", - "start": 17410, - "end": 17444, - "loc": { - "start": { - "line": 576, - "column": 6 - }, - "end": { - "line": 576, - "column": 40 - } - }, - "callee": { - "type": "MemberExpression", - "start": 17410, - "end": 17421, - "loc": { - "start": { - "line": 576, - "column": 6 - }, - "end": { - "line": 576, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 17410, - "end": 17416, - "loc": { - "start": { - "line": 576, - "column": 6 - }, - "end": { - "line": 576, - "column": 12 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 17417, - "end": 17421, - "loc": { - "start": { - "line": 576, - "column": 13 - }, - "end": { - "line": 576, - "column": 17 - }, - "identifierName": "from" - }, - "name": "from" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 17422, - "end": 17433, - "loc": { - "start": { - "line": 576, - "column": 18 - }, - "end": { - "line": 576, - "column": 29 - }, - "identifierName": "fileContent" - }, - "name": "fileContent" - }, - { - "type": "StringLiteral", - "start": 17435, - "end": 17443, - "loc": { - "start": { - "line": 576, - "column": 31 - }, - "end": { - "line": 576, - "column": 39 - } - }, - "extra": { - "rawValue": "binary", - "raw": "'binary'" - }, - "value": "binary" - } - ] - }, - { - "type": "CallExpression", - "start": 17452, - "end": 17487, - "loc": { - "start": { - "line": 577, - "column": 6 - }, - "end": { - "line": 577, - "column": 41 - } - }, - "callee": { - "type": "MemberExpression", - "start": 17452, - "end": 17463, - "loc": { - "start": { - "line": 577, - "column": 6 - }, - "end": { - "line": 577, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 17452, - "end": 17458, - "loc": { - "start": { - "line": 577, - "column": 6 - }, - "end": { - "line": 577, - "column": 12 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 17459, - "end": 17463, - "loc": { - "start": { - "line": 577, - "column": 13 - }, - "end": { - "line": 577, - "column": 17 - }, - "identifierName": "from" - }, - "name": "from" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 17464, - "end": 17478, - "loc": { - "start": { - "line": 577, - "column": 18 - }, - "end": { - "line": 577, - "column": 32 - }, - "identifierName": "formDataEnding" - }, - "name": "formDataEnding" - }, - { - "type": "StringLiteral", - "start": 17480, - "end": 17486, - "loc": { - "start": { - "line": 577, - "column": 34 - }, - "end": { - "line": 577, - "column": 40 - } - }, - "extra": { - "rawValue": "utf8", - "raw": "'utf8'" - }, - "value": "utf8" - } - ] - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 17502, - "end": 17949, - "loc": { - "start": { - "line": 580, - "column": 4 - }, - "end": { - "line": 593, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 17508, - "end": 17948, - "loc": { - "start": { - "line": 580, - "column": 10 - }, - "end": { - "line": 593, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 17508, - "end": 17511, - "loc": { - "start": { - "line": 580, - "column": 10 - }, - "end": { - "line": 580, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 17514, - "end": 17948, - "loc": { - "start": { - "line": 580, - "column": 16 - }, - "end": { - "line": 593, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 17514, - "end": 17915, - "loc": { - "start": { - "line": 580, - "column": 16 - }, - "end": { - "line": 593, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 17514, - "end": 17905, - "loc": { - "start": { - "line": 580, - "column": 16 - }, - "end": { - "line": 592, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 17514, - "end": 17534, - "loc": { - "start": { - "line": 580, - "column": 16 - }, - "end": { - "line": 581, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 17514, - "end": 17519, - "loc": { - "start": { - "line": 580, - "column": 16 - }, - "end": { - "line": 580, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 17527, - "end": 17534, - "loc": { - "start": { - "line": 581, - "column": 7 - }, - "end": { - "line": 581, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 17535, - "end": 17877, - "loc": { - "start": { - "line": 581, - "column": 15 - }, - "end": { - "line": 592, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 17535, - "end": 17554, - "loc": { - "start": { - "line": 581, - "column": 15 - }, - "end": { - "line": 581, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 17555, - "end": 17876, - "loc": { - "start": { - "line": 581, - "column": 35 - }, - "end": { - "line": 592, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 17565, - "end": 17579, - "loc": { - "start": { - "line": 582, - "column": 8 - }, - "end": { - "line": 582, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 17565, - "end": 17571, - "loc": { - "start": { - "line": 582, - "column": 8 - }, - "end": { - "line": 582, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 17573, - "end": 17579, - "loc": { - "start": { - "line": 582, - "column": 16 - }, - "end": { - "line": 582, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 17589, - "end": 17623, - "loc": { - "start": { - "line": 583, - "column": 8 - }, - "end": { - "line": 583, - "column": 42 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 17589, - "end": 17593, - "loc": { - "start": { - "line": 583, - "column": 8 - }, - "end": { - "line": 583, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "TemplateLiteral", - "start": 17595, - "end": 17623, - "loc": { - "start": { - "line": 583, - "column": 14 - }, - "end": { - "line": 583, - "column": 42 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 17608, - "end": 17610, - "loc": { - "start": { - "line": 583, - "column": 27 - }, - "end": { - "line": 583, - "column": 29 - }, - "identifierName": "id" - }, - "name": "id" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 17596, - "end": 17606, - "loc": { - "start": { - "line": 583, - "column": 15 - }, - "end": { - "line": 583, - "column": 25 - } - }, - "value": { - "raw": "/template/", - "cooked": "/template/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 17611, - "end": 17622, - "loc": { - "start": { - "line": 583, - "column": 30 - }, - "end": { - "line": 583, - "column": 41 - } - }, - "value": { - "raw": "/bulkinvite", - "cooked": "/bulkinvite" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 17633, - "end": 17702, - "loc": { - "start": { - "line": 584, - "column": 8 - }, - "end": { - "line": 587, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 17633, - "end": 17646, - "loc": { - "start": { - "line": 584, - "column": 8 - }, - "end": { - "line": 584, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 17648, - "end": 17702, - "loc": { - "start": { - "line": 584, - "column": 23 - }, - "end": { - "line": 587, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 17660, - "end": 17674, - "loc": { - "start": { - "line": 585, - "column": 10 - }, - "end": { - "line": 585, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 17660, - "end": 17664, - "loc": { - "start": { - "line": 585, - "column": 10 - }, - "end": { - "line": 585, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 17666, - "end": 17674, - "loc": { - "start": { - "line": 585, - "column": 16 - }, - "end": { - "line": 585, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 17686, - "end": 17691, - "loc": { - "start": { - "line": 586, - "column": 10 - }, - "end": { - "line": 586, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 17686, - "end": 17691, - "loc": { - "start": { - "line": 586, - "column": 10 - }, - "end": { - "line": 586, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 17686, - "end": 17691, - "loc": { - "start": { - "line": 586, - "column": 10 - }, - "end": { - "line": 586, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 17712, - "end": 17867, - "loc": { - "start": { - "line": 588, - "column": 8 - }, - "end": { - "line": 591, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 17712, - "end": 17719, - "loc": { - "start": { - "line": 588, - "column": 8 - }, - "end": { - "line": 588, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 17721, - "end": 17867, - "loc": { - "start": { - "line": 588, - "column": 17 - }, - "end": { - "line": 591, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 17733, - "end": 17800, - "loc": { - "start": { - "line": 589, - "column": 10 - }, - "end": { - "line": 589, - "column": 77 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 17733, - "end": 17747, - "loc": { - "start": { - "line": 589, - "column": 10 - }, - "end": { - "line": 589, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "TemplateLiteral", - "start": 17749, - "end": 17800, - "loc": { - "start": { - "line": 589, - "column": 26 - }, - "end": { - "line": 589, - "column": 77 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 17782, - "end": 17798, - "loc": { - "start": { - "line": 589, - "column": 59 - }, - "end": { - "line": 589, - "column": 75 - }, - "identifierName": "formDataBoundary" - }, - "name": "formDataBoundary" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 17750, - "end": 17780, - "loc": { - "start": { - "line": 589, - "column": 27 - }, - "end": { - "line": 589, - "column": 57 - } - }, - "value": { - "raw": "multipart/form-data; boundary=", - "cooked": "multipart/form-data; boundary=" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 17799, - "end": 17799, - "loc": { - "start": { - "line": 589, - "column": 76 - }, - "end": { - "line": 589, - "column": 76 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 17812, - "end": 17856, - "loc": { - "start": { - "line": 590, - "column": 10 - }, - "end": { - "line": 590, - "column": 54 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 17812, - "end": 17828, - "loc": { - "start": { - "line": 590, - "column": 10 - }, - "end": { - "line": 590, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 17830, - "end": 17856, - "loc": { - "start": { - "line": 590, - "column": 28 - }, - "end": { - "line": 590, - "column": 54 - } - }, - "callee": { - "type": "MemberExpression", - "start": 17830, - "end": 17847, - "loc": { - "start": { - "line": 590, - "column": 28 - }, - "end": { - "line": 590, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 17830, - "end": 17836, - "loc": { - "start": { - "line": 590, - "column": 28 - }, - "end": { - "line": 590, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 17837, - "end": 17847, - "loc": { - "start": { - "line": 590, - "column": 35 - }, - "end": { - "line": 590, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 17848, - "end": 17855, - "loc": { - "start": { - "line": 590, - "column": 46 - }, - "end": { - "line": 590, - "column": 53 - }, - "identifierName": "payload" - }, - "name": "payload" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 17879, - "end": 17904, - "loc": { - "start": { - "line": 592, - "column": 10 - }, - "end": { - "line": 592, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 17879, - "end": 17894, - "loc": { - "start": { - "line": 592, - "column": 10 - }, - "end": { - "line": 592, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 17895, - "end": 17903, - "loc": { - "start": { - "line": 592, - "column": 26 - }, - "end": { - "line": 592, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 17913, - "end": 17915, - "loc": { - "start": { - "line": 593, - "column": 7 - }, - "end": { - "line": 593, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 17916, - "end": 17923, - "loc": { - "start": { - "line": 593, - "column": 10 - }, - "end": { - "line": 593, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 17925, - "end": 17947, - "loc": { - "start": { - "line": 593, - "column": 19 - }, - "end": { - "line": 593, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 17925, - "end": 17937, - "loc": { - "start": { - "line": 593, - "column": 19 - }, - "end": { - "line": 593, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 17938, - "end": 17946, - "loc": { - "start": { - "line": 593, - "column": 32 - }, - "end": { - "line": 593, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 17955, - "end": 17974, - "loc": { - "start": { - "line": 595, - "column": 4 - }, - "end": { - "line": 595, - "column": 23 - } - }, - "expression": { - "type": "CallExpression", - "start": 17955, - "end": 17973, - "loc": { - "start": { - "line": 595, - "column": 4 - }, - "end": { - "line": 595, - "column": 22 - } - }, - "callee": { - "type": "MemberExpression", - "start": 17955, - "end": 17964, - "loc": { - "start": { - "line": 595, - "column": 4 - }, - "end": { - "line": 595, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 17955, - "end": 17958, - "loc": { - "start": { - "line": 595, - "column": 4 - }, - "end": { - "line": 595, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 17959, - "end": 17964, - "loc": { - "start": { - "line": 595, - "column": 8 - }, - "end": { - "line": 595, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 17965, - "end": 17972, - "loc": { - "start": { - "line": 595, - "column": 14 - }, - "end": { - "line": 595, - "column": 21 - }, - "identifierName": "payload" - }, - "name": "payload" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 17979, - "end": 17989, - "loc": { - "start": { - "line": 596, - "column": 4 - }, - "end": { - "line": 596, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 17979, - "end": 17988, - "loc": { - "start": { - "line": 596, - "column": 4 - }, - "end": { - "line": 596, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 17979, - "end": 17986, - "loc": { - "start": { - "line": 596, - "column": 4 - }, - "end": { - "line": 596, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 17979, - "end": 17982, - "loc": { - "start": { - "line": 596, - "column": 4 - }, - "end": { - "line": 596, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 17983, - "end": 17986, - "loc": { - "start": { - "line": 596, - "column": 8 - }, - "end": { - "line": 596, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Template Bulk Invite settings\n * @typedef {Object} TemplateBulkInviteSettings\n * @property {string} file - path to .csv file with roles and their emails. Max file size should be <= 1 Megabyte\n * @property {string} folder_id - an ID of folder where signed documents will be saved\n * @property {number} [client_timestamp] - client timestamp in seconds\n * @property {string} [document_name] - setup prefix for each document name\n * @property {string} [subject] - custom email subject\n * @property {string} [email_message] - custom email message\n ", - "start": 14789, - "end": 15359, - "loc": { - "start": { - "line": 496, - "column": 2 - }, - "end": { - "line": 505, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Send Template Bulk Invite payload\n * @typedef {Object} TemplateBulkInviteParams\n * @property {string} id - an ID of specific Template\n * @property {string} token - your auth token\n * @property {TemplateBulkInviteSettings} data - Template Bulk Invite settings\n ", - "start": 15363, - "end": 15644, - "loc": { - "start": { - "line": 507, - "column": 2 - }, - "end": { - "line": 513, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Send Template Bulk Invite response data\n * @typedef {Object} TemplateBulkInviteResponse\n * @property {string} status - status of sending bulk invites (e.g. \"job queued\")\n ", - "start": 15648, - "end": 15836, - "loc": { - "start": { - "line": 515, - "column": 2 - }, - "end": { - "line": 519, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Sends invites to sign a specified template to multiple signers at once\n * @experimental internal implementation of this method might be changed\n * @param {TemplateBulkInviteParams} data - Bulk Invite payload\n * @param {function(err: ApiErrorResponse, res: TemplateBulkInviteResponse)} [callback] - error first node.js callback\n ", - "start": 15840, - "end": 16187, - "loc": { - "start": { - "line": 521, - "column": 2 - }, - "end": { - "line": 526, - "column": 5 - } - } - } - ] - } - ] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Template methods\n ", - "start": 2394, - "end": 2421, - "loc": { - "start": { - "line": 86, - "column": 0 - }, - "end": { - "line": 88, - "column": 3 - } - } - } - ], - "__PseudoExport__": false, - "trailingComments": [] - }, - "leadingComments": null - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "value": "use strict", - "extra": { - "raw": "'use strict'", - "rawValue": "use strict" - } - } - } - ] - }, - "comments": [ - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentRemoveParams} data - remove document payload\n * @param {function(err: ApiErrorResponse, res: DocumentRemoveResponse)} [callback] - error first node.js callback\n ", - "start": 333, - "end": 539, - "loc": { - "start": { - "line": 19, - "column": 0 - }, - "end": { - "line": 23, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentInviteParams} data - create document invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentInviteResponse)} [callback] - error first node.js callback\n ", - "start": 572, - "end": 785, - "loc": { - "start": { - "line": 26, - "column": 0 - }, - "end": { - "line": 30, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewParams} data - view document with field extract payload\n * @param {function(err: ApiErrorResponse, res: DocumentViewResponse)} [callback] - error first node.js callback\n ", - "start": 822, - "end": 1041, - "loc": { - "start": { - "line": 33, - "column": 0 - }, - "end": { - "line": 37, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update Signing Role payload\n * @typedef {Object} TemplateUpdateSigningRoleParams\n * @property {string} id - an ID of Actor (role)\n * @property {string} token - your auth token\n * @property {number} signing_order - signing order number\n ", - "start": 1076, - "end": 1321, - "loc": { - "start": { - "line": 40, - "column": 0 - }, - "end": { - "line": 46, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update Signing Role response data\n * @typedef {Object} TemplateUpdateSigningRoleResponse\n * @property {string} id - unique ID of Actor\n * @property {string} document_id - unique ID of Template\n * @property {number} signing_order - signing order number\n ", - "start": 1323, - "end": 1585, - "loc": { - "start": { - "line": 48, - "column": 0 - }, - "end": { - "line": 54, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Updates Signing Role with order of actor\n * @param {TemplateUpdateSigningRoleParams} data - update signing role payload\n * @param {function(err: ApiErrorResponse, res: TemplateUpdateSigningRoleResponse)} [callback] - error first node.js callback\n ", - "start": 1587, - "end": 1843, - "loc": { - "start": { - "line": 56, - "column": 0 - }, - "end": { - "line": 60, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Template methods\n ", - "start": 2394, - "end": 2421, - "loc": { - "start": { - "line": 86, - "column": 0 - }, - "end": { - "line": 88, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document invite optional settings\n * @typedef {Object} TemplateCreateOptions\n * @property {boolean} [removeOriginalDocument=false] - if true original document will be removed\n ", - "start": 2442, - "end": 2635, - "loc": { - "start": { - "line": 91, - "column": 2 - }, - "end": { - "line": 95, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create template payload\n * @typedef {Object} TemplateCreateParams\n * @property {string} document_id - an id of original document\n * @property {string} document_name - a name of new template\n * @property {TemplateCreateOptions} options - create template optional settings\n * @property {string} token - your auth token\n ", - "start": 2639, - "end": 2980, - "loc": { - "start": { - "line": 97, - "column": 2 - }, - "end": { - "line": 104, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create template response data\n * @typedef {Object} TemplateCreateResponse\n * @property {string} id - an id of created template\n ", - "start": 2984, - "end": 3129, - "loc": { - "start": { - "line": 106, - "column": 2 - }, - "end": { - "line": 110, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates a template by copying an existing unfulfilled and not requested for sign document.\n * By default original document is not removed after template creation. To remove original document set `removeOriginalDocument` option to `true`.\n * @param {TemplateCreateParams} data - create template payload\n * @param {function(err: ApiErrorResponse, res: TemplateCreateResponse)} [originalCallback] - error first node.js callback\n ", - "start": 3133, - "end": 3578, - "loc": { - "start": { - "line": 112, - "column": 2 - }, - "end": { - "line": 117, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Copy template payload\n * @typedef {Object} TemplateDuplicateParams\n * @property {string} id - an id of original template\n * @property {string} name - a name of new document\n * @property {string} token - your auth token\n ", - "start": 4847, - "end": 5088, - "loc": { - "start": { - "line": 172, - "column": 2 - }, - "end": { - "line": 178, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Copy template response data\n * @typedef {Object} TemplateDuplicateResponse\n * @property {string} id - an id of created document\n * @property {string} name - a name of created document\n ", - "start": 5092, - "end": 5296, - "loc": { - "start": { - "line": 180, - "column": 2 - }, - "end": { - "line": 185, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates a new document by copying a template.\n * If a name is not supplied then document name will be set to the original template's name by default.\n * @param {TemplateDuplicateParams} data - duplicate template payload\n * @param {function(err: ApiErrorResponse, res: TemplateDuplicateResponse)} [callback] - error first node.js callback\n ", - "start": 5300, - "end": 5658, - "loc": { - "start": { - "line": 187, - "column": 2 - }, - "end": { - "line": 192, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create invite with template payload\n * @typedef {DocumentInviteParams} TemplateInviteParams\n ", - "start": 6313, - "end": 6421, - "loc": { - "start": { - "line": 222, - "column": 2 - }, - "end": { - "line": 225, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create invite with template response data\n * @typedef {DocumentInviteResponse} TemplateInviteResponse\n ", - "start": 6425, - "end": 6543, - "loc": { - "start": { - "line": 227, - "column": 2 - }, - "end": { - "line": 230, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates an invite to sign a template.\n * You can create a simple free form invite(s) or a role-based invite(s).\n * The method copies a template into document and creates an invite using created document.\n * @param {TemplateInviteParams} data - create template invite payload\n * @param {function(err: ApiErrorResponse, res: TemplateInviteResponse)} [callback] - error first node.js callback\n ", - "start": 6547, - "end": 6959, - "loc": { - "start": { - "line": 232, - "column": 2 - }, - "end": { - "line": 238, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Remove template payload\n * @typedef {DocumentRemoveParams} TemplateRemoveParams\n ", - "start": 8376, - "end": 8472, - "loc": { - "start": { - "line": 297, - "column": 2 - }, - "end": { - "line": 300, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Remove template response data\n * @typedef {DocumentRemoveResponse} TemplateRemoveResponse\n ", - "start": 8476, - "end": 8582, - "loc": { - "start": { - "line": 302, - "column": 2 - }, - "end": { - "line": 305, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Removes a specified template from folder\n * @param {TemplateRemoveParams} data - remove template payload\n * @param {function(err: ApiErrorResponse, res: TemplateRemoveResponse)} [callback] - error first node.js callback\n ", - "start": 8586, - "end": 8824, - "loc": { - "start": { - "line": 307, - "column": 2 - }, - "end": { - "line": 311, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Get Template Routing Details payload\n * @typedef {Object} TemplateGetRoutingDetailsParams\n * @property {string} id - an ID of specific Template\n * @property {string} token - your auth token\n ", - "start": 8977, - "end": 9187, - "loc": { - "start": { - "line": 324, - "column": 2 - }, - "end": { - "line": 329, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Template Routing Details item data\n * @typedef {Object} TemplateRoutingDetailsItem\n * @property {string} default_email - default email for routing detail\n * @property {boolean} inviter_role - always `false`\n * @property {string} name - signer role (actor) name\n * @property {string} role_id - signer role (actor) unique ID\n * @property {number} signing_order - order number of signing step\n ", - "start": 9191, - "end": 9607, - "loc": { - "start": { - "line": 331, - "column": 2 - }, - "end": { - "line": 339, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Template Routing Details CC step info\n * @typedef {Object} TemplateRoutingDetailsCCStep\n * @property {string} email - email of cc step\n * @property {number} step - step order number\n * @property {string} name - name of cc step\n ", - "start": 9611, - "end": 9860, - "loc": { - "start": { - "line": 341, - "column": 2 - }, - "end": { - "line": 347, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Get Template Routing Details response data\n * @typedef {Object} TemplateGetRoutingDetailsResponse\n * @property {TemplateRoutingDetailsItem[]} routing_details - array with routing details\n * @property {string[]} cc - CC emails\n * @property {TemplateRoutingDetailsCCStep[]} cc_step - array of CC`s steps\n * @property {string} invite_link_instructions - invite link instructions\n ", - "start": 9864, - "end": 10264, - "loc": { - "start": { - "line": 349, - "column": 2 - }, - "end": { - "line": 356, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves Routing Details of specified Template\n * @param {TemplateGetRoutingDetailsParams} data - get Routing Details payload\n * @param {function(err: ApiErrorResponse, res: TemplateGetRoutingDetailsResponse)} [callback] - error first node.js callback\n ", - "start": 10268, - "end": 10539, - "loc": { - "start": { - "line": 358, - "column": 2 - }, - "end": { - "line": 362, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Template Update Routing Details item data\n * @typedef {Object} TemplateUpdateRoutingDetailsItem\n * @property {string} default_email - default email for routing detail\n * @property {boolean} inviter_role - always `false`\n * @property {string} name - signer role (actor) name\n * @property {string} role_id - signer role (actor) unique ID\n * @property {number} signing_order - order number of signing step\n * @property {boolean} decline_by_signature - decline by signature flag\n ", - "start": 10913, - "end": 11416, - "loc": { - "start": { - "line": 380, - "column": 2 - }, - "end": { - "line": 389, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update Template Routing Details settings\n * @typedef {Object} TemplateUpdateRoutingDetailsSettings\n * @property {TemplateUpdateRoutingDetailsItem[]} template_data - array with routing details\n * @property {string[]} cc - CC emails\n * @property {TemplateRoutingDetailsCCStep[]} cc_step - array of CC steps\n * @property {string} [invite_link_instructions] - invite signing instructions\n ", - "start": 11420, - "end": 11828, - "loc": { - "start": { - "line": 391, - "column": 2 - }, - "end": { - "line": 398, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update Template Routing Details payload\n * @typedef {Object} TemplateUpdateRoutingDetailsParams\n * @property {string} id - an ID of specific Template\n * @property {string} token - your auth token\n * @property {TemplateUpdateRoutingDetailsSettings} data - update Template Routing Details settings\n ", - "start": 11832, - "end": 12150, - "loc": { - "start": { - "line": 400, - "column": 2 - }, - "end": { - "line": 406, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update Template Routing Details response data\n * @typedef {Object} TemplateUpdateRoutingDetailsResponse\n * @property {string} id - unique ID of template routing details\n * @property {string} document_id - unique ID of Template\n * @property {TemplateUpdateRoutingDetailsItem[]} data - array with routing details\n * @property {string[]} cc - CC emails\n * @property {TemplateRoutingDetailsCCStep[]} cc_step - array of CC steps\n * @property {string} invite_link_instructions - invite signing instructions\n ", - "start": 12154, - "end": 12683, - "loc": { - "start": { - "line": 408, - "column": 2 - }, - "end": { - "line": 417, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Updates Routing Details of specified template\n * @param {TemplateUpdateRoutingDetailsParams} data - update Template Routing Details payload\n * @param {function(err: ApiErrorResponse, res: TemplateUpdateRoutingDetailsResponse)} [callback] - error first node.js callback\n ", - "start": 12687, - "end": 12974, - "loc": { - "start": { - "line": 419, - "column": 2 - }, - "end": { - "line": 423, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Template Bulk Invite settings\n * @typedef {Object} TemplateBulkInviteSettings\n * @property {string} file - path to .csv file with roles and their emails. Max file size should be <= 1 Megabyte\n * @property {string} folder_id - an ID of folder where signed documents will be saved\n * @property {number} [client_timestamp] - client timestamp in seconds\n * @property {string} [document_name] - setup prefix for each document name\n * @property {string} [subject] - custom email subject\n * @property {string} [email_message] - custom email message\n ", - "start": 14789, - "end": 15359, - "loc": { - "start": { - "line": 496, - "column": 2 - }, - "end": { - "line": 505, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Send Template Bulk Invite payload\n * @typedef {Object} TemplateBulkInviteParams\n * @property {string} id - an ID of specific Template\n * @property {string} token - your auth token\n * @property {TemplateBulkInviteSettings} data - Template Bulk Invite settings\n ", - "start": 15363, - "end": 15644, - "loc": { - "start": { - "line": 507, - "column": 2 - }, - "end": { - "line": 513, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Send Template Bulk Invite response data\n * @typedef {Object} TemplateBulkInviteResponse\n * @property {string} status - status of sending bulk invites (e.g. \"job queued\")\n ", - "start": 15648, - "end": 15836, - "loc": { - "start": { - "line": 515, - "column": 2 - }, - "end": { - "line": 519, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Sends invites to sign a specified template to multiple signers at once\n * @experimental internal implementation of this method might be changed\n * @param {TemplateBulkInviteParams} data - Bulk Invite payload\n * @param {function(err: ApiErrorResponse, res: TemplateBulkInviteResponse)} [callback] - error first node.js callback\n ", - "start": 15840, - "end": 16187, - "loc": { - "start": { - "line": 521, - "column": 2 - }, - "end": { - "line": 526, - "column": 5 - } - } - } - ], - "tokens": [ - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "use strict", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 12 - }, - "end": { - "line": 1, - "column": 13 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 14, - "end": 20, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 27, - "end": 31, - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 17 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "https", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 18 - }, - "end": { - "line": 2, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39, - "end": 40, - "loc": { - "start": { - "line": 2, - "column": 25 - }, - "end": { - "line": 2, - "column": 26 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 41, - "end": 47, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 48, - "end": 49, - "loc": { - "start": { - "line": 3, - "column": 7 - }, - "end": { - "line": 3, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "readFileSync", - "start": 50, - "end": 62, - "loc": { - "start": { - "line": 3, - "column": 9 - }, - "end": { - "line": 3, - "column": 21 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 63, - "end": 64, - "loc": { - "start": { - "line": 3, - "column": 22 - }, - "end": { - "line": 3, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 65, - "end": 69, - "loc": { - "start": { - "line": 3, - "column": 24 - }, - "end": { - "line": 3, - "column": 28 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "fs", - "start": 70, - "end": 74, - "loc": { - "start": { - "line": 3, - "column": 29 - }, - "end": { - "line": 3, - "column": 33 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 74, - "end": 75, - "loc": { - "start": { - "line": 3, - "column": 33 - }, - "end": { - "line": 3, - "column": 34 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 76, - "end": 82, - "loc": { - "start": { - "line": 4, - "column": 0 - }, - "end": { - "line": 4, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 83, - "end": 84, - "loc": { - "start": { - "line": 4, - "column": 7 - }, - "end": { - "line": 4, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "basename", - "start": 85, - "end": 93, - "loc": { - "start": { - "line": 4, - "column": 9 - }, - "end": { - "line": 4, - "column": 17 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 94, - "end": 95, - "loc": { - "start": { - "line": 4, - "column": 18 - }, - "end": { - "line": 4, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 96, - "end": 100, - "loc": { - "start": { - "line": 4, - "column": 20 - }, - "end": { - "line": 4, - "column": 24 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "path", - "start": 101, - "end": 107, - "loc": { - "start": { - "line": 4, - "column": 25 - }, - "end": { - "line": 4, - "column": 31 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 107, - "end": 108, - "loc": { - "start": { - "line": 4, - "column": 31 - }, - "end": { - "line": 4, - "column": 32 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 109, - "end": 115, - "loc": { - "start": { - "line": 5, - "column": 0 - }, - "end": { - "line": 5, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 116, - "end": 117, - "loc": { - "start": { - "line": 5, - "column": 7 - }, - "end": { - "line": 5, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 120, - "end": 135, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 135, - "end": 136, - "loc": { - "start": { - "line": 6, - "column": 17 - }, - "end": { - "line": 6, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 139, - "end": 151, - "loc": { - "start": { - "line": 7, - "column": 2 - }, - "end": { - "line": 7, - "column": 14 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 151, - "end": 152, - "loc": { - "start": { - "line": 7, - "column": 14 - }, - "end": { - "line": 7, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 155, - "end": 174, - "loc": { - "start": { - "line": 8, - "column": 2 - }, - "end": { - "line": 8, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 174, - "end": 175, - "loc": { - "start": { - "line": 8, - "column": 21 - }, - "end": { - "line": 8, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "isCSVFile", - "start": 178, - "end": 187, - "loc": { - "start": { - "line": 9, - "column": 2 - }, - "end": { - "line": 9, - "column": 11 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 187, - "end": 188, - "loc": { - "start": { - "line": 9, - "column": 11 - }, - "end": { - "line": 9, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getFormDataBoundary", - "start": 191, - "end": 210, - "loc": { - "start": { - "line": 10, - "column": 2 - }, - "end": { - "line": 10, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 210, - "end": 211, - "loc": { - "start": { - "line": 10, - "column": 21 - }, - "end": { - "line": 10, - "column": 22 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 212, - "end": 213, - "loc": { - "start": { - "line": 11, - "column": 0 - }, - "end": { - "line": 11, - "column": 1 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 214, - "end": 218, - "loc": { - "start": { - "line": 11, - "column": 2 - }, - "end": { - "line": 11, - "column": 6 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "../common", - "start": 219, - "end": 230, - "loc": { - "start": { - "line": 11, - "column": 7 - }, - "end": { - "line": 11, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 230, - "end": 231, - "loc": { - "start": { - "line": 11, - "column": 18 - }, - "end": { - "line": 11, - "column": 19 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 232, - "end": 238, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 12, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 239, - "end": 240, - "loc": { - "start": { - "line": 12, - "column": 7 - }, - "end": { - "line": 12, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "remove", - "start": 243, - "end": 249, - "loc": { - "start": { - "line": 13, - "column": 2 - }, - "end": { - "line": 13, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 249, - "end": 250, - "loc": { - "start": { - "line": 13, - "column": 8 - }, - "end": { - "line": 13, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "invite", - "start": 253, - "end": 259, - "loc": { - "start": { - "line": 14, - "column": 2 - }, - "end": { - "line": 14, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 259, - "end": 260, - "loc": { - "start": { - "line": 14, - "column": 8 - }, - "end": { - "line": 14, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "view", - "start": 263, - "end": 267, - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 15, - "column": 6 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 267, - "end": 268, - "loc": { - "start": { - "line": 15, - "column": 6 - }, - "end": { - "line": 15, - "column": 7 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 269, - "end": 270, - "loc": { - "start": { - "line": 16, - "column": 0 - }, - "end": { - "line": 16, - "column": 1 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 271, - "end": 275, - "loc": { - "start": { - "line": 16, - "column": 2 - }, - "end": { - "line": 16, - "column": 6 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "../document", - "start": 276, - "end": 289, - "loc": { - "start": { - "line": 16, - "column": 7 - }, - "end": { - "line": 16, - "column": 20 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 289, - "end": 290, - "loc": { - "start": { - "line": 16, - "column": 20 - }, - "end": { - "line": 16, - "column": 21 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 291, - "end": 297, - "loc": { - "start": { - "line": 17, - "column": 0 - }, - "end": { - "line": 17, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 298, - "end": 299, - "loc": { - "start": { - "line": 17, - "column": 7 - }, - "end": { - "line": 17, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "promisify", - "start": 300, - "end": 309, - "loc": { - "start": { - "line": 17, - "column": 9 - }, - "end": { - "line": 17, - "column": 18 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 310, - "end": 311, - "loc": { - "start": { - "line": 17, - "column": 19 - }, - "end": { - "line": 17, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 312, - "end": 316, - "loc": { - "start": { - "line": 17, - "column": 21 - }, - "end": { - "line": 17, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "../../utils", - "start": 317, - "end": 330, - "loc": { - "start": { - "line": 17, - "column": 26 - }, - "end": { - "line": 17, - "column": 39 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 330, - "end": 331, - "loc": { - "start": { - "line": 17, - "column": 39 - }, - "end": { - "line": 17, - "column": 40 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentRemoveParams} data - remove document payload\n * @param {function(err: ApiErrorResponse, res: DocumentRemoveResponse)} [callback] - error first node.js callback\n ", - "start": 333, - "end": 539, - "loc": { - "start": { - "line": 19, - "column": 0 - }, - "end": { - "line": 23, - "column": 3 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 540, - "end": 545, - "loc": { - "start": { - "line": 24, - "column": 0 - }, - "end": { - "line": 24, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "removeDocument", - "start": 546, - "end": 560, - "loc": { - "start": { - "line": 24, - "column": 6 - }, - "end": { - "line": 24, - "column": 20 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 561, - "end": 562, - "loc": { - "start": { - "line": 24, - "column": 21 - }, - "end": { - "line": 24, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "remove", - "start": 563, - "end": 569, - "loc": { - "start": { - "line": 24, - "column": 23 - }, - "end": { - "line": 24, - "column": 29 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 569, - "end": 570, - "loc": { - "start": { - "line": 24, - "column": 29 - }, - "end": { - "line": 24, - "column": 30 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentInviteParams} data - create document invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentInviteResponse)} [callback] - error first node.js callback\n ", - "start": 572, - "end": 785, - "loc": { - "start": { - "line": 26, - "column": 0 - }, - "end": { - "line": 30, - "column": 3 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 786, - "end": 791, - "loc": { - "start": { - "line": 31, - "column": 0 - }, - "end": { - "line": 31, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "sendDocumentInvite", - "start": 792, - "end": 810, - "loc": { - "start": { - "line": 31, - "column": 6 - }, - "end": { - "line": 31, - "column": 24 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 811, - "end": 812, - "loc": { - "start": { - "line": 31, - "column": 25 - }, - "end": { - "line": 31, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "invite", - "start": 813, - "end": 819, - "loc": { - "start": { - "line": 31, - "column": 27 - }, - "end": { - "line": 31, - "column": 33 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 819, - "end": 820, - "loc": { - "start": { - "line": 31, - "column": 33 - }, - "end": { - "line": 31, - "column": 34 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @type {function}\n * @param {DocumentViewParams} data - view document with field extract payload\n * @param {function(err: ApiErrorResponse, res: DocumentViewResponse)} [callback] - error first node.js callback\n ", - "start": 822, - "end": 1041, - "loc": { - "start": { - "line": 33, - "column": 0 - }, - "end": { - "line": 37, - "column": 3 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1042, - "end": 1047, - "loc": { - "start": { - "line": 38, - "column": 0 - }, - "end": { - "line": 38, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getDocumentDetails", - "start": 1048, - "end": 1066, - "loc": { - "start": { - "line": 38, - "column": 6 - }, - "end": { - "line": 38, - "column": 24 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1067, - "end": 1068, - "loc": { - "start": { - "line": 38, - "column": 25 - }, - "end": { - "line": 38, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "view", - "start": 1069, - "end": 1073, - "loc": { - "start": { - "line": 38, - "column": 27 - }, - "end": { - "line": 38, - "column": 31 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1073, - "end": 1074, - "loc": { - "start": { - "line": 38, - "column": 31 - }, - "end": { - "line": 38, - "column": 32 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update Signing Role payload\n * @typedef {Object} TemplateUpdateSigningRoleParams\n * @property {string} id - an ID of Actor (role)\n * @property {string} token - your auth token\n * @property {number} signing_order - signing order number\n ", - "start": 1076, - "end": 1321, - "loc": { - "start": { - "line": 40, - "column": 0 - }, - "end": { - "line": 46, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update Signing Role response data\n * @typedef {Object} TemplateUpdateSigningRoleResponse\n * @property {string} id - unique ID of Actor\n * @property {string} document_id - unique ID of Template\n * @property {number} signing_order - signing order number\n ", - "start": 1323, - "end": 1585, - "loc": { - "start": { - "line": 48, - "column": 0 - }, - "end": { - "line": 54, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Updates Signing Role with order of actor\n * @param {TemplateUpdateSigningRoleParams} data - update signing role payload\n * @param {function(err: ApiErrorResponse, res: TemplateUpdateSigningRoleResponse)} [callback] - error first node.js callback\n ", - "start": 1587, - "end": 1843, - "loc": { - "start": { - "line": 56, - "column": 0 - }, - "end": { - "line": 60, - "column": 3 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1844, - "end": 1849, - "loc": { - "start": { - "line": 61, - "column": 0 - }, - "end": { - "line": 61, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "updateSigningRole", - "start": 1850, - "end": 1867, - "loc": { - "start": { - "line": 61, - "column": 6 - }, - "end": { - "line": 61, - "column": 23 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1868, - "end": 1869, - "loc": { - "start": { - "line": 61, - "column": 24 - }, - "end": { - "line": 61, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1870, - "end": 1871, - "loc": { - "start": { - "line": 61, - "column": 26 - }, - "end": { - "line": 61, - "column": 27 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1871, - "end": 1872, - "loc": { - "start": { - "line": 61, - "column": 27 - }, - "end": { - "line": 61, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 1875, - "end": 1877, - "loc": { - "start": { - "line": 62, - "column": 2 - }, - "end": { - "line": 62, - "column": 4 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1877, - "end": 1878, - "loc": { - "start": { - "line": 62, - "column": 4 - }, - "end": { - "line": 62, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 1881, - "end": 1886, - "loc": { - "start": { - "line": 63, - "column": 2 - }, - "end": { - "line": 63, - "column": 7 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1886, - "end": 1887, - "loc": { - "start": { - "line": 63, - "column": 7 - }, - "end": { - "line": 63, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "signing_order", - "start": 1890, - "end": 1903, - "loc": { - "start": { - "line": 64, - "column": 2 - }, - "end": { - "line": 64, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1903, - "end": 1904, - "loc": { - "start": { - "line": 64, - "column": 15 - }, - "end": { - "line": 64, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1905, - "end": 1906, - "loc": { - "start": { - "line": 65, - "column": 0 - }, - "end": { - "line": 65, - "column": 1 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1906, - "end": 1907, - "loc": { - "start": { - "line": 65, - "column": 1 - }, - "end": { - "line": 65, - "column": 2 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 1908, - "end": 1916, - "loc": { - "start": { - "line": 65, - "column": 3 - }, - "end": { - "line": 65, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1916, - "end": 1917, - "loc": { - "start": { - "line": 65, - "column": 11 - }, - "end": { - "line": 65, - "column": 12 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1918, - "end": 1920, - "loc": { - "start": { - "line": 65, - "column": 13 - }, - "end": { - "line": 65, - "column": 15 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1921, - "end": 1922, - "loc": { - "start": { - "line": 65, - "column": 16 - }, - "end": { - "line": 65, - "column": 17 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1925, - "end": 1930, - "loc": { - "start": { - "line": 66, - "column": 2 - }, - "end": { - "line": 66, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 1931, - "end": 1939, - "loc": { - "start": { - "line": 66, - "column": 8 - }, - "end": { - "line": 66, - "column": 16 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1940, - "end": 1941, - "loc": { - "start": { - "line": 66, - "column": 17 - }, - "end": { - "line": 66, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSON", - "start": 1942, - "end": 1946, - "loc": { - "start": { - "line": 66, - "column": 19 - }, - "end": { - "line": 66, - "column": 23 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1946, - "end": 1947, - "loc": { - "start": { - "line": 66, - "column": 23 - }, - "end": { - "line": 66, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "stringify", - "start": 1947, - "end": 1956, - "loc": { - "start": { - "line": 66, - "column": 24 - }, - "end": { - "line": 66, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1956, - "end": 1957, - "loc": { - "start": { - "line": 66, - "column": 33 - }, - "end": { - "line": 66, - "column": 34 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1957, - "end": 1958, - "loc": { - "start": { - "line": 66, - "column": 34 - }, - "end": { - "line": 66, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "signing_order", - "start": 1959, - "end": 1972, - "loc": { - "start": { - "line": 66, - "column": 36 - }, - "end": { - "line": 66, - "column": 49 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1973, - "end": 1974, - "loc": { - "start": { - "line": 66, - "column": 50 - }, - "end": { - "line": 66, - "column": 51 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1974, - "end": 1975, - "loc": { - "start": { - "line": 66, - "column": 51 - }, - "end": { - "line": 66, - "column": 52 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1975, - "end": 1976, - "loc": { - "start": { - "line": 66, - "column": 52 - }, - "end": { - "line": 66, - "column": 53 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1979, - "end": 1984, - "loc": { - "start": { - "line": 67, - "column": 2 - }, - "end": { - "line": 67, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 1985, - "end": 1988, - "loc": { - "start": { - "line": 67, - "column": 8 - }, - "end": { - "line": 67, - "column": 11 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1989, - "end": 1990, - "loc": { - "start": { - "line": 67, - "column": 12 - }, - "end": { - "line": 67, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 1991, - "end": 1996, - "loc": { - "start": { - "line": 67, - "column": 14 - }, - "end": { - "line": 67, - "column": 19 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2001, - "end": 2002, - "loc": { - "start": { - "line": 68, - "column": 4 - }, - "end": { - "line": 68, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 2002, - "end": 2009, - "loc": { - "start": { - "line": 68, - "column": 5 - }, - "end": { - "line": 68, - "column": 12 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2009, - "end": 2010, - "loc": { - "start": { - "line": 68, - "column": 12 - }, - "end": { - "line": 68, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 2010, - "end": 2029, - "loc": { - "start": { - "line": 68, - "column": 13 - }, - "end": { - "line": 68, - "column": 32 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2029, - "end": 2030, - "loc": { - "start": { - "line": 68, - "column": 32 - }, - "end": { - "line": 68, - "column": 33 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2030, - "end": 2031, - "loc": { - "start": { - "line": 68, - "column": 33 - }, - "end": { - "line": 68, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 2038, - "end": 2044, - "loc": { - "start": { - "line": 69, - "column": 6 - }, - "end": { - "line": 69, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2044, - "end": 2045, - "loc": { - "start": { - "line": 69, - "column": 12 - }, - "end": { - "line": 69, - "column": 13 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "PUT", - "start": 2046, - "end": 2051, - "loc": { - "start": { - "line": 69, - "column": 14 - }, - "end": { - "line": 69, - "column": 19 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2051, - "end": 2052, - "loc": { - "start": { - "line": 69, - "column": 19 - }, - "end": { - "line": 69, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 2059, - "end": 2063, - "loc": { - "start": { - "line": 70, - "column": 6 - }, - "end": { - "line": 70, - "column": 10 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2063, - "end": 2064, - "loc": { - "start": { - "line": 70, - "column": 10 - }, - "end": { - "line": 70, - "column": 11 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2065, - "end": 2066, - "loc": { - "start": { - "line": 70, - "column": 12 - }, - "end": { - "line": 70, - "column": 13 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/role/", - "start": 2066, - "end": 2072, - "loc": { - "start": { - "line": 70, - "column": 13 - }, - "end": { - "line": 70, - "column": 19 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2072, - "end": 2074, - "loc": { - "start": { - "line": 70, - "column": 19 - }, - "end": { - "line": 70, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 2074, - "end": 2076, - "loc": { - "start": { - "line": 70, - "column": 21 - }, - "end": { - "line": 70, - "column": 23 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2076, - "end": 2077, - "loc": { - "start": { - "line": 70, - "column": 23 - }, - "end": { - "line": 70, - "column": 24 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 2077, - "end": 2077, - "loc": { - "start": { - "line": 70, - "column": 24 - }, - "end": { - "line": 70, - "column": 24 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2077, - "end": 2078, - "loc": { - "start": { - "line": 70, - "column": 24 - }, - "end": { - "line": 70, - "column": 25 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2078, - "end": 2079, - "loc": { - "start": { - "line": 70, - "column": 25 - }, - "end": { - "line": 70, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 2086, - "end": 2099, - "loc": { - "start": { - "line": 71, - "column": 6 - }, - "end": { - "line": 71, - "column": 19 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2099, - "end": 2100, - "loc": { - "start": { - "line": 71, - "column": 19 - }, - "end": { - "line": 71, - "column": 20 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2101, - "end": 2102, - "loc": { - "start": { - "line": 71, - "column": 21 - }, - "end": { - "line": 71, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 2111, - "end": 2115, - "loc": { - "start": { - "line": 72, - "column": 8 - }, - "end": { - "line": 72, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2115, - "end": 2116, - "loc": { - "start": { - "line": 72, - "column": 12 - }, - "end": { - "line": 72, - "column": 13 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 2117, - "end": 2125, - "loc": { - "start": { - "line": 72, - "column": 14 - }, - "end": { - "line": 72, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2125, - "end": 2126, - "loc": { - "start": { - "line": 72, - "column": 22 - }, - "end": { - "line": 72, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 2135, - "end": 2140, - "loc": { - "start": { - "line": 73, - "column": 8 - }, - "end": { - "line": 73, - "column": 13 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2140, - "end": 2141, - "loc": { - "start": { - "line": 73, - "column": 13 - }, - "end": { - "line": 73, - "column": 14 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2148, - "end": 2149, - "loc": { - "start": { - "line": 74, - "column": 6 - }, - "end": { - "line": 74, - "column": 7 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2149, - "end": 2150, - "loc": { - "start": { - "line": 74, - "column": 7 - }, - "end": { - "line": 74, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 2157, - "end": 2164, - "loc": { - "start": { - "line": 75, - "column": 6 - }, - "end": { - "line": 75, - "column": 13 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2164, - "end": 2165, - "loc": { - "start": { - "line": 75, - "column": 13 - }, - "end": { - "line": 75, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2166, - "end": 2167, - "loc": { - "start": { - "line": 75, - "column": 15 - }, - "end": { - "line": 75, - "column": 16 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type", - "start": 2176, - "end": 2190, - "loc": { - "start": { - "line": 76, - "column": 8 - }, - "end": { - "line": 76, - "column": 22 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2190, - "end": 2191, - "loc": { - "start": { - "line": 76, - "column": 22 - }, - "end": { - "line": 76, - "column": 23 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/json", - "start": 2192, - "end": 2210, - "loc": { - "start": { - "line": 76, - "column": 24 - }, - "end": { - "line": 76, - "column": 42 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2210, - "end": 2211, - "loc": { - "start": { - "line": 76, - "column": 42 - }, - "end": { - "line": 76, - "column": 43 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Length", - "start": 2220, - "end": 2236, - "loc": { - "start": { - "line": 77, - "column": 8 - }, - "end": { - "line": 77, - "column": 24 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2236, - "end": 2237, - "loc": { - "start": { - "line": 77, - "column": 24 - }, - "end": { - "line": 77, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 2238, - "end": 2244, - "loc": { - "start": { - "line": 77, - "column": 26 - }, - "end": { - "line": 77, - "column": 32 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2244, - "end": 2245, - "loc": { - "start": { - "line": 77, - "column": 32 - }, - "end": { - "line": 77, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "byteLength", - "start": 2245, - "end": 2255, - "loc": { - "start": { - "line": 77, - "column": 33 - }, - "end": { - "line": 77, - "column": 43 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2255, - "end": 2256, - "loc": { - "start": { - "line": 77, - "column": 43 - }, - "end": { - "line": 77, - "column": 44 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 2256, - "end": 2264, - "loc": { - "start": { - "line": 77, - "column": 44 - }, - "end": { - "line": 77, - "column": 52 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2264, - "end": 2265, - "loc": { - "start": { - "line": 77, - "column": 52 - }, - "end": { - "line": 77, - "column": 53 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2265, - "end": 2266, - "loc": { - "start": { - "line": 77, - "column": 53 - }, - "end": { - "line": 77, - "column": 54 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2273, - "end": 2274, - "loc": { - "start": { - "line": 78, - "column": 6 - }, - "end": { - "line": 78, - "column": 7 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2274, - "end": 2275, - "loc": { - "start": { - "line": 78, - "column": 7 - }, - "end": { - "line": 78, - "column": 8 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2280, - "end": 2281, - "loc": { - "start": { - "line": 79, - "column": 4 - }, - "end": { - "line": 79, - "column": 5 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2281, - "end": 2282, - "loc": { - "start": { - "line": 79, - "column": 5 - }, - "end": { - "line": 79, - "column": 6 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2282, - "end": 2283, - "loc": { - "start": { - "line": 79, - "column": 6 - }, - "end": { - "line": 79, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 2284, - "end": 2299, - "loc": { - "start": { - "line": 79, - "column": 8 - }, - "end": { - "line": 79, - "column": 23 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2299, - "end": 2300, - "loc": { - "start": { - "line": 79, - "column": 23 - }, - "end": { - "line": 79, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 2300, - "end": 2308, - "loc": { - "start": { - "line": 79, - "column": 24 - }, - "end": { - "line": 79, - "column": 32 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2308, - "end": 2309, - "loc": { - "start": { - "line": 79, - "column": 32 - }, - "end": { - "line": 79, - "column": 33 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2309, - "end": 2310, - "loc": { - "start": { - "line": 79, - "column": 33 - }, - "end": { - "line": 79, - "column": 34 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2315, - "end": 2316, - "loc": { - "start": { - "line": 80, - "column": 4 - }, - "end": { - "line": 80, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 2316, - "end": 2318, - "loc": { - "start": { - "line": 80, - "column": 5 - }, - "end": { - "line": 80, - "column": 7 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2318, - "end": 2319, - "loc": { - "start": { - "line": 80, - "column": 7 - }, - "end": { - "line": 80, - "column": 8 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 2319, - "end": 2326, - "loc": { - "start": { - "line": 80, - "column": 8 - }, - "end": { - "line": 80, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2326, - "end": 2327, - "loc": { - "start": { - "line": 80, - "column": 15 - }, - "end": { - "line": 80, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 2328, - "end": 2340, - "loc": { - "start": { - "line": 80, - "column": 17 - }, - "end": { - "line": 80, - "column": 29 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2340, - "end": 2341, - "loc": { - "start": { - "line": 80, - "column": 29 - }, - "end": { - "line": 80, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 2341, - "end": 2349, - "loc": { - "start": { - "line": 80, - "column": 30 - }, - "end": { - "line": 80, - "column": 38 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2349, - "end": 2350, - "loc": { - "start": { - "line": 80, - "column": 38 - }, - "end": { - "line": 80, - "column": 39 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2350, - "end": 2351, - "loc": { - "start": { - "line": 80, - "column": 39 - }, - "end": { - "line": 80, - "column": 40 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2351, - "end": 2352, - "loc": { - "start": { - "line": 80, - "column": 40 - }, - "end": { - "line": 80, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 2356, - "end": 2359, - "loc": { - "start": { - "line": 82, - "column": 2 - }, - "end": { - "line": 82, - "column": 5 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2359, - "end": 2360, - "loc": { - "start": { - "line": 82, - "column": 5 - }, - "end": { - "line": 82, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "write", - "start": 2360, - "end": 2365, - "loc": { - "start": { - "line": 82, - "column": 6 - }, - "end": { - "line": 82, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2365, - "end": 2366, - "loc": { - "start": { - "line": 82, - "column": 11 - }, - "end": { - "line": 82, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 2366, - "end": 2374, - "loc": { - "start": { - "line": 82, - "column": 12 - }, - "end": { - "line": 82, - "column": 20 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2374, - "end": 2375, - "loc": { - "start": { - "line": 82, - "column": 20 - }, - "end": { - "line": 82, - "column": 21 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2375, - "end": 2376, - "loc": { - "start": { - "line": 82, - "column": 21 - }, - "end": { - "line": 82, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 2379, - "end": 2382, - "loc": { - "start": { - "line": 83, - "column": 2 - }, - "end": { - "line": 83, - "column": 5 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2382, - "end": 2383, - "loc": { - "start": { - "line": 83, - "column": 5 - }, - "end": { - "line": 83, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 2383, - "end": 2386, - "loc": { - "start": { - "line": 83, - "column": 6 - }, - "end": { - "line": 83, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2386, - "end": 2387, - "loc": { - "start": { - "line": 83, - "column": 9 - }, - "end": { - "line": 83, - "column": 10 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2387, - "end": 2388, - "loc": { - "start": { - "line": 83, - "column": 10 - }, - "end": { - "line": 83, - "column": 11 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2388, - "end": 2389, - "loc": { - "start": { - "line": 83, - "column": 11 - }, - "end": { - "line": 83, - "column": 12 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2390, - "end": 2391, - "loc": { - "start": { - "line": 84, - "column": 0 - }, - "end": { - "line": 84, - "column": 1 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2391, - "end": 2392, - "loc": { - "start": { - "line": 84, - "column": 1 - }, - "end": { - "line": 84, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Template methods\n ", - "start": 2394, - "end": 2421, - "loc": { - "start": { - "line": 86, - "column": 0 - }, - "end": { - "line": 88, - "column": 3 - } - } - }, - { - "type": { - "label": "class", - "keyword": "class", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "class", - "start": 2422, - "end": 2427, - "loc": { - "start": { - "line": 89, - "column": 0 - }, - "end": { - "line": 89, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Template", - "start": 2428, - "end": 2436, - "loc": { - "start": { - "line": 89, - "column": 6 - }, - "end": { - "line": 89, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2437, - "end": 2438, - "loc": { - "start": { - "line": 89, - "column": 15 - }, - "end": { - "line": 89, - "column": 16 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Document invite optional settings\n * @typedef {Object} TemplateCreateOptions\n * @property {boolean} [removeOriginalDocument=false] - if true original document will be removed\n ", - "start": 2442, - "end": 2635, - "loc": { - "start": { - "line": 91, - "column": 2 - }, - "end": { - "line": 95, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create template payload\n * @typedef {Object} TemplateCreateParams\n * @property {string} document_id - an id of original document\n * @property {string} document_name - a name of new template\n * @property {TemplateCreateOptions} options - create template optional settings\n * @property {string} token - your auth token\n ", - "start": 2639, - "end": 2980, - "loc": { - "start": { - "line": 97, - "column": 2 - }, - "end": { - "line": 104, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create template response data\n * @typedef {Object} TemplateCreateResponse\n * @property {string} id - an id of created template\n ", - "start": 2984, - "end": 3129, - "loc": { - "start": { - "line": 106, - "column": 2 - }, - "end": { - "line": 110, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates a template by copying an existing unfulfilled and not requested for sign document.\n * By default original document is not removed after template creation. To remove original document set `removeOriginalDocument` option to `true`.\n * @param {TemplateCreateParams} data - create template payload\n * @param {function(err: ApiErrorResponse, res: TemplateCreateResponse)} [originalCallback] - error first node.js callback\n ", - "start": 3133, - "end": 3578, - "loc": { - "start": { - "line": 112, - "column": 2 - }, - "end": { - "line": 117, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 3581, - "end": 3587, - "loc": { - "start": { - "line": 118, - "column": 2 - }, - "end": { - "line": 118, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "create", - "start": 3588, - "end": 3594, - "loc": { - "start": { - "line": 118, - "column": 9 - }, - "end": { - "line": 118, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3595, - "end": 3596, - "loc": { - "start": { - "line": 118, - "column": 16 - }, - "end": { - "line": 118, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3596, - "end": 3597, - "loc": { - "start": { - "line": 118, - "column": 17 - }, - "end": { - "line": 118, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_id", - "start": 3602, - "end": 3613, - "loc": { - "start": { - "line": 119, - "column": 4 - }, - "end": { - "line": 119, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3613, - "end": 3614, - "loc": { - "start": { - "line": 119, - "column": 15 - }, - "end": { - "line": 119, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_name", - "start": 3619, - "end": 3632, - "loc": { - "start": { - "line": 120, - "column": 4 - }, - "end": { - "line": 120, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3632, - "end": 3633, - "loc": { - "start": { - "line": 120, - "column": 17 - }, - "end": { - "line": 120, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "options", - "start": 3638, - "end": 3645, - "loc": { - "start": { - "line": 121, - "column": 4 - }, - "end": { - "line": 121, - "column": 11 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3645, - "end": 3646, - "loc": { - "start": { - "line": 121, - "column": 11 - }, - "end": { - "line": 121, - "column": 12 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3647, - "end": 3648, - "loc": { - "start": { - "line": 121, - "column": 13 - }, - "end": { - "line": 121, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "removeOriginalDocument", - "start": 3649, - "end": 3671, - "loc": { - "start": { - "line": 121, - "column": 15 - }, - "end": { - "line": 121, - "column": 37 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 3672, - "end": 3673, - "loc": { - "start": { - "line": 121, - "column": 38 - }, - "end": { - "line": 121, - "column": 39 - } - } - }, - { - "type": { - "label": "false", - "keyword": "false", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "false", - "start": 3674, - "end": 3679, - "loc": { - "start": { - "line": 121, - "column": 40 - }, - "end": { - "line": 121, - "column": 45 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3680, - "end": 3681, - "loc": { - "start": { - "line": 121, - "column": 46 - }, - "end": { - "line": 121, - "column": 47 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 3682, - "end": 3683, - "loc": { - "start": { - "line": 121, - "column": 48 - }, - "end": { - "line": 121, - "column": 49 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3684, - "end": 3685, - "loc": { - "start": { - "line": 121, - "column": 50 - }, - "end": { - "line": 121, - "column": 51 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3685, - "end": 3686, - "loc": { - "start": { - "line": 121, - "column": 51 - }, - "end": { - "line": 121, - "column": 52 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3686, - "end": 3687, - "loc": { - "start": { - "line": 121, - "column": 52 - }, - "end": { - "line": 121, - "column": 53 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 3692, - "end": 3697, - "loc": { - "start": { - "line": 122, - "column": 4 - }, - "end": { - "line": 122, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3697, - "end": 3698, - "loc": { - "start": { - "line": 122, - "column": 9 - }, - "end": { - "line": 122, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3701, - "end": 3702, - "loc": { - "start": { - "line": 123, - "column": 2 - }, - "end": { - "line": 123, - "column": 3 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3702, - "end": 3703, - "loc": { - "start": { - "line": 123, - "column": 3 - }, - "end": { - "line": 123, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "originalCallback", - "start": 3704, - "end": 3720, - "loc": { - "start": { - "line": 123, - "column": 5 - }, - "end": { - "line": 123, - "column": 21 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3720, - "end": 3721, - "loc": { - "start": { - "line": 123, - "column": 21 - }, - "end": { - "line": 123, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3722, - "end": 3723, - "loc": { - "start": { - "line": 123, - "column": 23 - }, - "end": { - "line": 123, - "column": 24 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 3728, - "end": 3733, - "loc": { - "start": { - "line": 124, - "column": 4 - }, - "end": { - "line": 124, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 3734, - "end": 3742, - "loc": { - "start": { - "line": 124, - "column": 10 - }, - "end": { - "line": 124, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 3743, - "end": 3744, - "loc": { - "start": { - "line": 124, - "column": 19 - }, - "end": { - "line": 124, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSON", - "start": 3745, - "end": 3749, - "loc": { - "start": { - "line": 124, - "column": 21 - }, - "end": { - "line": 124, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3749, - "end": 3750, - "loc": { - "start": { - "line": 124, - "column": 25 - }, - "end": { - "line": 124, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "stringify", - "start": 3750, - "end": 3759, - "loc": { - "start": { - "line": 124, - "column": 26 - }, - "end": { - "line": 124, - "column": 35 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3759, - "end": 3760, - "loc": { - "start": { - "line": 124, - "column": 35 - }, - "end": { - "line": 124, - "column": 36 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3760, - "end": 3761, - "loc": { - "start": { - "line": 124, - "column": 36 - }, - "end": { - "line": 124, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_id", - "start": 3768, - "end": 3779, - "loc": { - "start": { - "line": 125, - "column": 6 - }, - "end": { - "line": 125, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3779, - "end": 3780, - "loc": { - "start": { - "line": 125, - "column": 17 - }, - "end": { - "line": 125, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_name", - "start": 3787, - "end": 3800, - "loc": { - "start": { - "line": 126, - "column": 6 - }, - "end": { - "line": 126, - "column": 19 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3800, - "end": 3801, - "loc": { - "start": { - "line": 126, - "column": 19 - }, - "end": { - "line": 126, - "column": 20 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3806, - "end": 3807, - "loc": { - "start": { - "line": 127, - "column": 4 - }, - "end": { - "line": 127, - "column": 5 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3807, - "end": 3808, - "loc": { - "start": { - "line": 127, - "column": 5 - }, - "end": { - "line": 127, - "column": 6 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3808, - "end": 3809, - "loc": { - "start": { - "line": 127, - "column": 6 - }, - "end": { - "line": 127, - "column": 7 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 3815, - "end": 3820, - "loc": { - "start": { - "line": 129, - "column": 4 - }, - "end": { - "line": 129, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callbackWithDocumentDeletion", - "start": 3821, - "end": 3849, - "loc": { - "start": { - "line": 129, - "column": 10 - }, - "end": { - "line": 129, - "column": 38 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 3850, - "end": 3851, - "loc": { - "start": { - "line": 129, - "column": 39 - }, - "end": { - "line": 129, - "column": 40 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3852, - "end": 3853, - "loc": { - "start": { - "line": 129, - "column": 41 - }, - "end": { - "line": 129, - "column": 42 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "createErr", - "start": 3853, - "end": 3862, - "loc": { - "start": { - "line": 129, - "column": 42 - }, - "end": { - "line": 129, - "column": 51 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3862, - "end": 3863, - "loc": { - "start": { - "line": 129, - "column": 51 - }, - "end": { - "line": 129, - "column": 52 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "createRes", - "start": 3864, - "end": 3873, - "loc": { - "start": { - "line": 129, - "column": 53 - }, - "end": { - "line": 129, - "column": 62 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3873, - "end": 3874, - "loc": { - "start": { - "line": 129, - "column": 62 - }, - "end": { - "line": 129, - "column": 63 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3875, - "end": 3877, - "loc": { - "start": { - "line": 129, - "column": 64 - }, - "end": { - "line": 129, - "column": 66 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3878, - "end": 3879, - "loc": { - "start": { - "line": 129, - "column": 67 - }, - "end": { - "line": 129, - "column": 68 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 3886, - "end": 3888, - "loc": { - "start": { - "line": 130, - "column": 6 - }, - "end": { - "line": 130, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3889, - "end": 3890, - "loc": { - "start": { - "line": 130, - "column": 9 - }, - "end": { - "line": 130, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "createErr", - "start": 3890, - "end": 3899, - "loc": { - "start": { - "line": 130, - "column": 10 - }, - "end": { - "line": 130, - "column": 19 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3899, - "end": 3900, - "loc": { - "start": { - "line": 130, - "column": 19 - }, - "end": { - "line": 130, - "column": 20 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3901, - "end": 3902, - "loc": { - "start": { - "line": 130, - "column": 21 - }, - "end": { - "line": 130, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "originalCallback", - "start": 3911, - "end": 3927, - "loc": { - "start": { - "line": 131, - "column": 8 - }, - "end": { - "line": 131, - "column": 24 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3927, - "end": 3928, - "loc": { - "start": { - "line": 131, - "column": 24 - }, - "end": { - "line": 131, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "createErr", - "start": 3928, - "end": 3937, - "loc": { - "start": { - "line": 131, - "column": 25 - }, - "end": { - "line": 131, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3937, - "end": 3938, - "loc": { - "start": { - "line": 131, - "column": 34 - }, - "end": { - "line": 131, - "column": 35 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3938, - "end": 3939, - "loc": { - "start": { - "line": 131, - "column": 35 - }, - "end": { - "line": 131, - "column": 36 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 3948, - "end": 3954, - "loc": { - "start": { - "line": 132, - "column": 8 - }, - "end": { - "line": 132, - "column": 14 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3954, - "end": 3955, - "loc": { - "start": { - "line": 132, - "column": 14 - }, - "end": { - "line": 132, - "column": 15 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3962, - "end": 3963, - "loc": { - "start": { - "line": 133, - "column": 6 - }, - "end": { - "line": 133, - "column": 7 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 3964, - "end": 3968, - "loc": { - "start": { - "line": 133, - "column": 8 - }, - "end": { - "line": 133, - "column": 12 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3969, - "end": 3970, - "loc": { - "start": { - "line": 133, - "column": 13 - }, - "end": { - "line": 133, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "removeDocument", - "start": 3979, - "end": 3993, - "loc": { - "start": { - "line": 134, - "column": 8 - }, - "end": { - "line": 134, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3993, - "end": 3994, - "loc": { - "start": { - "line": 134, - "column": 22 - }, - "end": { - "line": 134, - "column": 23 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3994, - "end": 3995, - "loc": { - "start": { - "line": 134, - "column": 23 - }, - "end": { - "line": 134, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 4006, - "end": 4008, - "loc": { - "start": { - "line": 135, - "column": 10 - }, - "end": { - "line": 135, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4008, - "end": 4009, - "loc": { - "start": { - "line": 135, - "column": 12 - }, - "end": { - "line": 135, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_id", - "start": 4010, - "end": 4021, - "loc": { - "start": { - "line": 135, - "column": 14 - }, - "end": { - "line": 135, - "column": 25 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4021, - "end": 4022, - "loc": { - "start": { - "line": 135, - "column": 25 - }, - "end": { - "line": 135, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 4033, - "end": 4038, - "loc": { - "start": { - "line": 136, - "column": 10 - }, - "end": { - "line": 136, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4038, - "end": 4039, - "loc": { - "start": { - "line": 136, - "column": 15 - }, - "end": { - "line": 136, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4048, - "end": 4049, - "loc": { - "start": { - "line": 137, - "column": 8 - }, - "end": { - "line": 137, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4049, - "end": 4050, - "loc": { - "start": { - "line": 137, - "column": 9 - }, - "end": { - "line": 137, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "removeErr", - "start": 4051, - "end": 4060, - "loc": { - "start": { - "line": 137, - "column": 11 - }, - "end": { - "line": 137, - "column": 20 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4061, - "end": 4063, - "loc": { - "start": { - "line": 137, - "column": 21 - }, - "end": { - "line": 137, - "column": 23 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4064, - "end": 4065, - "loc": { - "start": { - "line": 137, - "column": 24 - }, - "end": { - "line": 137, - "column": 25 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 4076, - "end": 4078, - "loc": { - "start": { - "line": 138, - "column": 10 - }, - "end": { - "line": 138, - "column": 12 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4079, - "end": 4080, - "loc": { - "start": { - "line": 138, - "column": 13 - }, - "end": { - "line": 138, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "removeErr", - "start": 4080, - "end": 4089, - "loc": { - "start": { - "line": 138, - "column": 14 - }, - "end": { - "line": 138, - "column": 23 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4089, - "end": 4090, - "loc": { - "start": { - "line": 138, - "column": 23 - }, - "end": { - "line": 138, - "column": 24 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4091, - "end": 4092, - "loc": { - "start": { - "line": 138, - "column": 25 - }, - "end": { - "line": 138, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "originalCallback", - "start": 4105, - "end": 4121, - "loc": { - "start": { - "line": 139, - "column": 12 - }, - "end": { - "line": 139, - "column": 28 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4121, - "end": 4122, - "loc": { - "start": { - "line": 139, - "column": 28 - }, - "end": { - "line": 139, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "removeErr", - "start": 4122, - "end": 4131, - "loc": { - "start": { - "line": 139, - "column": 29 - }, - "end": { - "line": 139, - "column": 38 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4131, - "end": 4132, - "loc": { - "start": { - "line": 139, - "column": 38 - }, - "end": { - "line": 139, - "column": 39 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4132, - "end": 4133, - "loc": { - "start": { - "line": 139, - "column": 39 - }, - "end": { - "line": 139, - "column": 40 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 4146, - "end": 4152, - "loc": { - "start": { - "line": 140, - "column": 12 - }, - "end": { - "line": 140, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4152, - "end": 4153, - "loc": { - "start": { - "line": 140, - "column": 18 - }, - "end": { - "line": 140, - "column": 19 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4164, - "end": 4165, - "loc": { - "start": { - "line": 141, - "column": 10 - }, - "end": { - "line": 141, - "column": 11 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 4166, - "end": 4170, - "loc": { - "start": { - "line": 141, - "column": 12 - }, - "end": { - "line": 141, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4171, - "end": 4172, - "loc": { - "start": { - "line": 141, - "column": 17 - }, - "end": { - "line": 141, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "originalCallback", - "start": 4185, - "end": 4201, - "loc": { - "start": { - "line": 142, - "column": 12 - }, - "end": { - "line": 142, - "column": 28 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4201, - "end": 4202, - "loc": { - "start": { - "line": 142, - "column": 28 - }, - "end": { - "line": 142, - "column": 29 - } - } - }, - { - "type": { - "label": "null", - "keyword": "null", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "null", - "start": 4202, - "end": 4206, - "loc": { - "start": { - "line": 142, - "column": 29 - }, - "end": { - "line": 142, - "column": 33 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4206, - "end": 4207, - "loc": { - "start": { - "line": 142, - "column": 33 - }, - "end": { - "line": 142, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "createRes", - "start": 4208, - "end": 4217, - "loc": { - "start": { - "line": 142, - "column": 35 - }, - "end": { - "line": 142, - "column": 44 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4217, - "end": 4218, - "loc": { - "start": { - "line": 142, - "column": 44 - }, - "end": { - "line": 142, - "column": 45 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4218, - "end": 4219, - "loc": { - "start": { - "line": 142, - "column": 45 - }, - "end": { - "line": 142, - "column": 46 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 4232, - "end": 4238, - "loc": { - "start": { - "line": 143, - "column": 12 - }, - "end": { - "line": 143, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4238, - "end": 4239, - "loc": { - "start": { - "line": 143, - "column": 18 - }, - "end": { - "line": 143, - "column": 19 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4250, - "end": 4251, - "loc": { - "start": { - "line": 144, - "column": 10 - }, - "end": { - "line": 144, - "column": 11 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4260, - "end": 4261, - "loc": { - "start": { - "line": 145, - "column": 8 - }, - "end": { - "line": 145, - "column": 9 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4261, - "end": 4262, - "loc": { - "start": { - "line": 145, - "column": 9 - }, - "end": { - "line": 145, - "column": 10 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4262, - "end": 4263, - "loc": { - "start": { - "line": 145, - "column": 10 - }, - "end": { - "line": 145, - "column": 11 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4270, - "end": 4271, - "loc": { - "start": { - "line": 146, - "column": 6 - }, - "end": { - "line": 146, - "column": 7 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4276, - "end": 4277, - "loc": { - "start": { - "line": 147, - "column": 4 - }, - "end": { - "line": 147, - "column": 5 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4277, - "end": 4278, - "loc": { - "start": { - "line": 147, - "column": 5 - }, - "end": { - "line": 147, - "column": 6 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 4284, - "end": 4289, - "loc": { - "start": { - "line": 149, - "column": 4 - }, - "end": { - "line": 149, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 4290, - "end": 4298, - "loc": { - "start": { - "line": 149, - "column": 10 - }, - "end": { - "line": 149, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 4299, - "end": 4300, - "loc": { - "start": { - "line": 149, - "column": 19 - }, - "end": { - "line": 149, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "removeOriginalDocument", - "start": 4301, - "end": 4323, - "loc": { - "start": { - "line": 149, - "column": 21 - }, - "end": { - "line": 149, - "column": 43 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4330, - "end": 4331, - "loc": { - "start": { - "line": 150, - "column": 6 - }, - "end": { - "line": 150, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callbackWithDocumentDeletion", - "start": 4332, - "end": 4360, - "loc": { - "start": { - "line": 150, - "column": 8 - }, - "end": { - "line": 150, - "column": 36 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4367, - "end": 4368, - "loc": { - "start": { - "line": 151, - "column": 6 - }, - "end": { - "line": 151, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "originalCallback", - "start": 4369, - "end": 4385, - "loc": { - "start": { - "line": 151, - "column": 8 - }, - "end": { - "line": 151, - "column": 24 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4385, - "end": 4386, - "loc": { - "start": { - "line": 151, - "column": 24 - }, - "end": { - "line": 151, - "column": 25 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 4392, - "end": 4397, - "loc": { - "start": { - "line": 153, - "column": 4 - }, - "end": { - "line": 153, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 4398, - "end": 4401, - "loc": { - "start": { - "line": 153, - "column": 10 - }, - "end": { - "line": 153, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 4402, - "end": 4403, - "loc": { - "start": { - "line": 153, - "column": 14 - }, - "end": { - "line": 153, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 4404, - "end": 4409, - "loc": { - "start": { - "line": 153, - "column": 16 - }, - "end": { - "line": 153, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4416, - "end": 4417, - "loc": { - "start": { - "line": 154, - "column": 6 - }, - "end": { - "line": 154, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 4417, - "end": 4424, - "loc": { - "start": { - "line": 154, - "column": 7 - }, - "end": { - "line": 154, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4424, - "end": 4425, - "loc": { - "start": { - "line": 154, - "column": 14 - }, - "end": { - "line": 154, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 4425, - "end": 4444, - "loc": { - "start": { - "line": 154, - "column": 15 - }, - "end": { - "line": 154, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4444, - "end": 4445, - "loc": { - "start": { - "line": 154, - "column": 34 - }, - "end": { - "line": 154, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4445, - "end": 4446, - "loc": { - "start": { - "line": 154, - "column": 35 - }, - "end": { - "line": 154, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 4455, - "end": 4461, - "loc": { - "start": { - "line": 155, - "column": 8 - }, - "end": { - "line": 155, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4461, - "end": 4462, - "loc": { - "start": { - "line": 155, - "column": 14 - }, - "end": { - "line": 155, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "POST", - "start": 4463, - "end": 4469, - "loc": { - "start": { - "line": 155, - "column": 16 - }, - "end": { - "line": 155, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4469, - "end": 4470, - "loc": { - "start": { - "line": 155, - "column": 22 - }, - "end": { - "line": 155, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 4479, - "end": 4483, - "loc": { - "start": { - "line": 156, - "column": 8 - }, - "end": { - "line": 156, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4483, - "end": 4484, - "loc": { - "start": { - "line": 156, - "column": 12 - }, - "end": { - "line": 156, - "column": 13 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/template", - "start": 4485, - "end": 4496, - "loc": { - "start": { - "line": 156, - "column": 14 - }, - "end": { - "line": 156, - "column": 25 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4496, - "end": 4497, - "loc": { - "start": { - "line": 156, - "column": 25 - }, - "end": { - "line": 156, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 4506, - "end": 4519, - "loc": { - "start": { - "line": 157, - "column": 8 - }, - "end": { - "line": 157, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4519, - "end": 4520, - "loc": { - "start": { - "line": 157, - "column": 21 - }, - "end": { - "line": 157, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4521, - "end": 4522, - "loc": { - "start": { - "line": 157, - "column": 23 - }, - "end": { - "line": 157, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 4533, - "end": 4537, - "loc": { - "start": { - "line": 158, - "column": 10 - }, - "end": { - "line": 158, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4537, - "end": 4538, - "loc": { - "start": { - "line": 158, - "column": 14 - }, - "end": { - "line": 158, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 4539, - "end": 4547, - "loc": { - "start": { - "line": 158, - "column": 16 - }, - "end": { - "line": 158, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4547, - "end": 4548, - "loc": { - "start": { - "line": 158, - "column": 24 - }, - "end": { - "line": 158, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 4559, - "end": 4564, - "loc": { - "start": { - "line": 159, - "column": 10 - }, - "end": { - "line": 159, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4564, - "end": 4565, - "loc": { - "start": { - "line": 159, - "column": 15 - }, - "end": { - "line": 159, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4574, - "end": 4575, - "loc": { - "start": { - "line": 160, - "column": 8 - }, - "end": { - "line": 160, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4575, - "end": 4576, - "loc": { - "start": { - "line": 160, - "column": 9 - }, - "end": { - "line": 160, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 4585, - "end": 4592, - "loc": { - "start": { - "line": 161, - "column": 8 - }, - "end": { - "line": 161, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4592, - "end": 4593, - "loc": { - "start": { - "line": 161, - "column": 15 - }, - "end": { - "line": 161, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4594, - "end": 4595, - "loc": { - "start": { - "line": 161, - "column": 17 - }, - "end": { - "line": 161, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type", - "start": 4606, - "end": 4620, - "loc": { - "start": { - "line": 162, - "column": 10 - }, - "end": { - "line": 162, - "column": 24 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4620, - "end": 4621, - "loc": { - "start": { - "line": 162, - "column": 24 - }, - "end": { - "line": 162, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/json", - "start": 4622, - "end": 4640, - "loc": { - "start": { - "line": 162, - "column": 26 - }, - "end": { - "line": 162, - "column": 44 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4640, - "end": 4641, - "loc": { - "start": { - "line": 162, - "column": 44 - }, - "end": { - "line": 162, - "column": 45 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Length", - "start": 4652, - "end": 4668, - "loc": { - "start": { - "line": 163, - "column": 10 - }, - "end": { - "line": 163, - "column": 26 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4668, - "end": 4669, - "loc": { - "start": { - "line": 163, - "column": 26 - }, - "end": { - "line": 163, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 4670, - "end": 4676, - "loc": { - "start": { - "line": 163, - "column": 28 - }, - "end": { - "line": 163, - "column": 34 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4676, - "end": 4677, - "loc": { - "start": { - "line": 163, - "column": 34 - }, - "end": { - "line": 163, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "byteLength", - "start": 4677, - "end": 4687, - "loc": { - "start": { - "line": 163, - "column": 35 - }, - "end": { - "line": 163, - "column": 45 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4687, - "end": 4688, - "loc": { - "start": { - "line": 163, - "column": 45 - }, - "end": { - "line": 163, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 4688, - "end": 4696, - "loc": { - "start": { - "line": 163, - "column": 46 - }, - "end": { - "line": 163, - "column": 54 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4696, - "end": 4697, - "loc": { - "start": { - "line": 163, - "column": 54 - }, - "end": { - "line": 163, - "column": 55 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4697, - "end": 4698, - "loc": { - "start": { - "line": 163, - "column": 55 - }, - "end": { - "line": 163, - "column": 56 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4707, - "end": 4708, - "loc": { - "start": { - "line": 164, - "column": 8 - }, - "end": { - "line": 164, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4708, - "end": 4709, - "loc": { - "start": { - "line": 164, - "column": 9 - }, - "end": { - "line": 164, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4716, - "end": 4717, - "loc": { - "start": { - "line": 165, - "column": 6 - }, - "end": { - "line": 165, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4717, - "end": 4718, - "loc": { - "start": { - "line": 165, - "column": 7 - }, - "end": { - "line": 165, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4718, - "end": 4719, - "loc": { - "start": { - "line": 165, - "column": 8 - }, - "end": { - "line": 165, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 4720, - "end": 4735, - "loc": { - "start": { - "line": 165, - "column": 10 - }, - "end": { - "line": 165, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4735, - "end": 4736, - "loc": { - "start": { - "line": 165, - "column": 25 - }, - "end": { - "line": 165, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 4736, - "end": 4744, - "loc": { - "start": { - "line": 165, - "column": 26 - }, - "end": { - "line": 165, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4744, - "end": 4745, - "loc": { - "start": { - "line": 165, - "column": 34 - }, - "end": { - "line": 165, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4745, - "end": 4746, - "loc": { - "start": { - "line": 165, - "column": 35 - }, - "end": { - "line": 165, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4753, - "end": 4754, - "loc": { - "start": { - "line": 166, - "column": 6 - }, - "end": { - "line": 166, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 4754, - "end": 4756, - "loc": { - "start": { - "line": 166, - "column": 7 - }, - "end": { - "line": 166, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4756, - "end": 4757, - "loc": { - "start": { - "line": 166, - "column": 9 - }, - "end": { - "line": 166, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 4757, - "end": 4764, - "loc": { - "start": { - "line": 166, - "column": 10 - }, - "end": { - "line": 166, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4764, - "end": 4765, - "loc": { - "start": { - "line": 166, - "column": 17 - }, - "end": { - "line": 166, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 4766, - "end": 4778, - "loc": { - "start": { - "line": 166, - "column": 19 - }, - "end": { - "line": 166, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4778, - "end": 4779, - "loc": { - "start": { - "line": 166, - "column": 31 - }, - "end": { - "line": 166, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "originalCallback", - "start": 4779, - "end": 4795, - "loc": { - "start": { - "line": 166, - "column": 32 - }, - "end": { - "line": 166, - "column": 48 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4795, - "end": 4796, - "loc": { - "start": { - "line": 166, - "column": 48 - }, - "end": { - "line": 166, - "column": 49 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4796, - "end": 4797, - "loc": { - "start": { - "line": 166, - "column": 49 - }, - "end": { - "line": 166, - "column": 50 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4797, - "end": 4798, - "loc": { - "start": { - "line": 166, - "column": 50 - }, - "end": { - "line": 166, - "column": 51 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 4804, - "end": 4807, - "loc": { - "start": { - "line": 168, - "column": 4 - }, - "end": { - "line": 168, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4807, - "end": 4808, - "loc": { - "start": { - "line": 168, - "column": 7 - }, - "end": { - "line": 168, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "write", - "start": 4808, - "end": 4813, - "loc": { - "start": { - "line": 168, - "column": 8 - }, - "end": { - "line": 168, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4813, - "end": 4814, - "loc": { - "start": { - "line": 168, - "column": 13 - }, - "end": { - "line": 168, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 4814, - "end": 4822, - "loc": { - "start": { - "line": 168, - "column": 14 - }, - "end": { - "line": 168, - "column": 22 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4822, - "end": 4823, - "loc": { - "start": { - "line": 168, - "column": 22 - }, - "end": { - "line": 168, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4823, - "end": 4824, - "loc": { - "start": { - "line": 168, - "column": 23 - }, - "end": { - "line": 168, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 4829, - "end": 4832, - "loc": { - "start": { - "line": 169, - "column": 4 - }, - "end": { - "line": 169, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4832, - "end": 4833, - "loc": { - "start": { - "line": 169, - "column": 7 - }, - "end": { - "line": 169, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 4833, - "end": 4836, - "loc": { - "start": { - "line": 169, - "column": 8 - }, - "end": { - "line": 169, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4836, - "end": 4837, - "loc": { - "start": { - "line": 169, - "column": 11 - }, - "end": { - "line": 169, - "column": 12 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4837, - "end": 4838, - "loc": { - "start": { - "line": 169, - "column": 12 - }, - "end": { - "line": 169, - "column": 13 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4838, - "end": 4839, - "loc": { - "start": { - "line": 169, - "column": 13 - }, - "end": { - "line": 169, - "column": 14 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4842, - "end": 4843, - "loc": { - "start": { - "line": 170, - "column": 2 - }, - "end": { - "line": 170, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Copy template payload\n * @typedef {Object} TemplateDuplicateParams\n * @property {string} id - an id of original template\n * @property {string} name - a name of new document\n * @property {string} token - your auth token\n ", - "start": 4847, - "end": 5088, - "loc": { - "start": { - "line": 172, - "column": 2 - }, - "end": { - "line": 178, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Copy template response data\n * @typedef {Object} TemplateDuplicateResponse\n * @property {string} id - an id of created document\n * @property {string} name - a name of created document\n ", - "start": 5092, - "end": 5296, - "loc": { - "start": { - "line": 180, - "column": 2 - }, - "end": { - "line": 185, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates a new document by copying a template.\n * If a name is not supplied then document name will be set to the original template's name by default.\n * @param {TemplateDuplicateParams} data - duplicate template payload\n * @param {function(err: ApiErrorResponse, res: TemplateDuplicateResponse)} [callback] - error first node.js callback\n ", - "start": 5300, - "end": 5658, - "loc": { - "start": { - "line": 187, - "column": 2 - }, - "end": { - "line": 192, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 5661, - "end": 5667, - "loc": { - "start": { - "line": 193, - "column": 2 - }, - "end": { - "line": 193, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "duplicate", - "start": 5668, - "end": 5677, - "loc": { - "start": { - "line": 193, - "column": 9 - }, - "end": { - "line": 193, - "column": 18 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5678, - "end": 5679, - "loc": { - "start": { - "line": 193, - "column": 19 - }, - "end": { - "line": 193, - "column": 20 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5679, - "end": 5680, - "loc": { - "start": { - "line": 193, - "column": 20 - }, - "end": { - "line": 193, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 5685, - "end": 5687, - "loc": { - "start": { - "line": 194, - "column": 4 - }, - "end": { - "line": 194, - "column": 6 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5687, - "end": 5688, - "loc": { - "start": { - "line": 194, - "column": 6 - }, - "end": { - "line": 194, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "template_id", - "start": 5689, - "end": 5700, - "loc": { - "start": { - "line": 194, - "column": 8 - }, - "end": { - "line": 194, - "column": 19 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5700, - "end": 5701, - "loc": { - "start": { - "line": 194, - "column": 19 - }, - "end": { - "line": 194, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "name", - "start": 5706, - "end": 5710, - "loc": { - "start": { - "line": 195, - "column": 4 - }, - "end": { - "line": 195, - "column": 8 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5710, - "end": 5711, - "loc": { - "start": { - "line": 195, - "column": 8 - }, - "end": { - "line": 195, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_name", - "start": 5712, - "end": 5725, - "loc": { - "start": { - "line": 195, - "column": 10 - }, - "end": { - "line": 195, - "column": 23 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5725, - "end": 5726, - "loc": { - "start": { - "line": 195, - "column": 23 - }, - "end": { - "line": 195, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 5731, - "end": 5736, - "loc": { - "start": { - "line": 196, - "column": 4 - }, - "end": { - "line": 196, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5736, - "end": 5737, - "loc": { - "start": { - "line": 196, - "column": 9 - }, - "end": { - "line": 196, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5740, - "end": 5741, - "loc": { - "start": { - "line": 197, - "column": 2 - }, - "end": { - "line": 197, - "column": 3 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5741, - "end": 5742, - "loc": { - "start": { - "line": 197, - "column": 3 - }, - "end": { - "line": 197, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 5743, - "end": 5751, - "loc": { - "start": { - "line": 197, - "column": 5 - }, - "end": { - "line": 197, - "column": 13 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5751, - "end": 5752, - "loc": { - "start": { - "line": 197, - "column": 13 - }, - "end": { - "line": 197, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5753, - "end": 5754, - "loc": { - "start": { - "line": 197, - "column": 15 - }, - "end": { - "line": 197, - "column": 16 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 5759, - "end": 5764, - "loc": { - "start": { - "line": 198, - "column": 4 - }, - "end": { - "line": 198, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 5765, - "end": 5773, - "loc": { - "start": { - "line": 198, - "column": 10 - }, - "end": { - "line": 198, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 5774, - "end": 5775, - "loc": { - "start": { - "line": 198, - "column": 19 - }, - "end": { - "line": 198, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSON", - "start": 5776, - "end": 5780, - "loc": { - "start": { - "line": 198, - "column": 21 - }, - "end": { - "line": 198, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5780, - "end": 5781, - "loc": { - "start": { - "line": 198, - "column": 25 - }, - "end": { - "line": 198, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "stringify", - "start": 5781, - "end": 5790, - "loc": { - "start": { - "line": 198, - "column": 26 - }, - "end": { - "line": 198, - "column": 35 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5790, - "end": 5791, - "loc": { - "start": { - "line": 198, - "column": 35 - }, - "end": { - "line": 198, - "column": 36 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5791, - "end": 5792, - "loc": { - "start": { - "line": 198, - "column": 36 - }, - "end": { - "line": 198, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "template_id", - "start": 5799, - "end": 5810, - "loc": { - "start": { - "line": 199, - "column": 6 - }, - "end": { - "line": 199, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5810, - "end": 5811, - "loc": { - "start": { - "line": 199, - "column": 17 - }, - "end": { - "line": 199, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_name", - "start": 5818, - "end": 5831, - "loc": { - "start": { - "line": 200, - "column": 6 - }, - "end": { - "line": 200, - "column": 19 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5831, - "end": 5832, - "loc": { - "start": { - "line": 200, - "column": 19 - }, - "end": { - "line": 200, - "column": 20 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5837, - "end": 5838, - "loc": { - "start": { - "line": 201, - "column": 4 - }, - "end": { - "line": 201, - "column": 5 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5838, - "end": 5839, - "loc": { - "start": { - "line": 201, - "column": 5 - }, - "end": { - "line": 201, - "column": 6 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5839, - "end": 5840, - "loc": { - "start": { - "line": 201, - "column": 6 - }, - "end": { - "line": 201, - "column": 7 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 5846, - "end": 5851, - "loc": { - "start": { - "line": 203, - "column": 4 - }, - "end": { - "line": 203, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 5852, - "end": 5855, - "loc": { - "start": { - "line": 203, - "column": 10 - }, - "end": { - "line": 203, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 5856, - "end": 5857, - "loc": { - "start": { - "line": 203, - "column": 14 - }, - "end": { - "line": 203, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 5858, - "end": 5863, - "loc": { - "start": { - "line": 203, - "column": 16 - }, - "end": { - "line": 203, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5870, - "end": 5871, - "loc": { - "start": { - "line": 204, - "column": 6 - }, - "end": { - "line": 204, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 5871, - "end": 5878, - "loc": { - "start": { - "line": 204, - "column": 7 - }, - "end": { - "line": 204, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5878, - "end": 5879, - "loc": { - "start": { - "line": 204, - "column": 14 - }, - "end": { - "line": 204, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 5879, - "end": 5898, - "loc": { - "start": { - "line": 204, - "column": 15 - }, - "end": { - "line": 204, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5898, - "end": 5899, - "loc": { - "start": { - "line": 204, - "column": 34 - }, - "end": { - "line": 204, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5899, - "end": 5900, - "loc": { - "start": { - "line": 204, - "column": 35 - }, - "end": { - "line": 204, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 5909, - "end": 5915, - "loc": { - "start": { - "line": 205, - "column": 8 - }, - "end": { - "line": 205, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5915, - "end": 5916, - "loc": { - "start": { - "line": 205, - "column": 14 - }, - "end": { - "line": 205, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "POST", - "start": 5917, - "end": 5923, - "loc": { - "start": { - "line": 205, - "column": 16 - }, - "end": { - "line": 205, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5923, - "end": 5924, - "loc": { - "start": { - "line": 205, - "column": 22 - }, - "end": { - "line": 205, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 5933, - "end": 5937, - "loc": { - "start": { - "line": 206, - "column": 8 - }, - "end": { - "line": 206, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5937, - "end": 5938, - "loc": { - "start": { - "line": 206, - "column": 12 - }, - "end": { - "line": 206, - "column": 13 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5939, - "end": 5940, - "loc": { - "start": { - "line": 206, - "column": 14 - }, - "end": { - "line": 206, - "column": 15 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/template/", - "start": 5940, - "end": 5950, - "loc": { - "start": { - "line": 206, - "column": 15 - }, - "end": { - "line": 206, - "column": 25 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5950, - "end": 5952, - "loc": { - "start": { - "line": 206, - "column": 25 - }, - "end": { - "line": 206, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "template_id", - "start": 5952, - "end": 5963, - "loc": { - "start": { - "line": 206, - "column": 27 - }, - "end": { - "line": 206, - "column": 38 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5963, - "end": 5964, - "loc": { - "start": { - "line": 206, - "column": 38 - }, - "end": { - "line": 206, - "column": 39 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/copy", - "start": 5964, - "end": 5969, - "loc": { - "start": { - "line": 206, - "column": 39 - }, - "end": { - "line": 206, - "column": 44 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5969, - "end": 5970, - "loc": { - "start": { - "line": 206, - "column": 44 - }, - "end": { - "line": 206, - "column": 45 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5970, - "end": 5971, - "loc": { - "start": { - "line": 206, - "column": 45 - }, - "end": { - "line": 206, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 5980, - "end": 5993, - "loc": { - "start": { - "line": 207, - "column": 8 - }, - "end": { - "line": 207, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5993, - "end": 5994, - "loc": { - "start": { - "line": 207, - "column": 21 - }, - "end": { - "line": 207, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5995, - "end": 5996, - "loc": { - "start": { - "line": 207, - "column": 23 - }, - "end": { - "line": 207, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 6007, - "end": 6011, - "loc": { - "start": { - "line": 208, - "column": 10 - }, - "end": { - "line": 208, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6011, - "end": 6012, - "loc": { - "start": { - "line": 208, - "column": 14 - }, - "end": { - "line": 208, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 6013, - "end": 6021, - "loc": { - "start": { - "line": 208, - "column": 16 - }, - "end": { - "line": 208, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6021, - "end": 6022, - "loc": { - "start": { - "line": 208, - "column": 24 - }, - "end": { - "line": 208, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 6033, - "end": 6038, - "loc": { - "start": { - "line": 209, - "column": 10 - }, - "end": { - "line": 209, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6038, - "end": 6039, - "loc": { - "start": { - "line": 209, - "column": 15 - }, - "end": { - "line": 209, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6048, - "end": 6049, - "loc": { - "start": { - "line": 210, - "column": 8 - }, - "end": { - "line": 210, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6049, - "end": 6050, - "loc": { - "start": { - "line": 210, - "column": 9 - }, - "end": { - "line": 210, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 6059, - "end": 6066, - "loc": { - "start": { - "line": 211, - "column": 8 - }, - "end": { - "line": 211, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6066, - "end": 6067, - "loc": { - "start": { - "line": 211, - "column": 15 - }, - "end": { - "line": 211, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6068, - "end": 6069, - "loc": { - "start": { - "line": 211, - "column": 17 - }, - "end": { - "line": 211, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type", - "start": 6080, - "end": 6094, - "loc": { - "start": { - "line": 212, - "column": 10 - }, - "end": { - "line": 212, - "column": 24 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6094, - "end": 6095, - "loc": { - "start": { - "line": 212, - "column": 24 - }, - "end": { - "line": 212, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/json", - "start": 6096, - "end": 6114, - "loc": { - "start": { - "line": 212, - "column": 26 - }, - "end": { - "line": 212, - "column": 44 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6114, - "end": 6115, - "loc": { - "start": { - "line": 212, - "column": 44 - }, - "end": { - "line": 212, - "column": 45 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Length", - "start": 6126, - "end": 6142, - "loc": { - "start": { - "line": 213, - "column": 10 - }, - "end": { - "line": 213, - "column": 26 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6142, - "end": 6143, - "loc": { - "start": { - "line": 213, - "column": 26 - }, - "end": { - "line": 213, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 6144, - "end": 6150, - "loc": { - "start": { - "line": 213, - "column": 28 - }, - "end": { - "line": 213, - "column": 34 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6150, - "end": 6151, - "loc": { - "start": { - "line": 213, - "column": 34 - }, - "end": { - "line": 213, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "byteLength", - "start": 6151, - "end": 6161, - "loc": { - "start": { - "line": 213, - "column": 35 - }, - "end": { - "line": 213, - "column": 45 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6161, - "end": 6162, - "loc": { - "start": { - "line": 213, - "column": 45 - }, - "end": { - "line": 213, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 6162, - "end": 6170, - "loc": { - "start": { - "line": 213, - "column": 46 - }, - "end": { - "line": 213, - "column": 54 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6170, - "end": 6171, - "loc": { - "start": { - "line": 213, - "column": 54 - }, - "end": { - "line": 213, - "column": 55 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6171, - "end": 6172, - "loc": { - "start": { - "line": 213, - "column": 55 - }, - "end": { - "line": 213, - "column": 56 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6181, - "end": 6182, - "loc": { - "start": { - "line": 214, - "column": 8 - }, - "end": { - "line": 214, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6182, - "end": 6183, - "loc": { - "start": { - "line": 214, - "column": 9 - }, - "end": { - "line": 214, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6190, - "end": 6191, - "loc": { - "start": { - "line": 215, - "column": 6 - }, - "end": { - "line": 215, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6191, - "end": 6192, - "loc": { - "start": { - "line": 215, - "column": 7 - }, - "end": { - "line": 215, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6192, - "end": 6193, - "loc": { - "start": { - "line": 215, - "column": 8 - }, - "end": { - "line": 215, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 6194, - "end": 6209, - "loc": { - "start": { - "line": 215, - "column": 10 - }, - "end": { - "line": 215, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6209, - "end": 6210, - "loc": { - "start": { - "line": 215, - "column": 25 - }, - "end": { - "line": 215, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 6210, - "end": 6218, - "loc": { - "start": { - "line": 215, - "column": 26 - }, - "end": { - "line": 215, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6218, - "end": 6219, - "loc": { - "start": { - "line": 215, - "column": 34 - }, - "end": { - "line": 215, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6219, - "end": 6220, - "loc": { - "start": { - "line": 215, - "column": 35 - }, - "end": { - "line": 215, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6227, - "end": 6228, - "loc": { - "start": { - "line": 216, - "column": 6 - }, - "end": { - "line": 216, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 6228, - "end": 6230, - "loc": { - "start": { - "line": 216, - "column": 7 - }, - "end": { - "line": 216, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6230, - "end": 6231, - "loc": { - "start": { - "line": 216, - "column": 9 - }, - "end": { - "line": 216, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 6231, - "end": 6238, - "loc": { - "start": { - "line": 216, - "column": 10 - }, - "end": { - "line": 216, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6238, - "end": 6239, - "loc": { - "start": { - "line": 216, - "column": 17 - }, - "end": { - "line": 216, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 6240, - "end": 6252, - "loc": { - "start": { - "line": 216, - "column": 19 - }, - "end": { - "line": 216, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6252, - "end": 6253, - "loc": { - "start": { - "line": 216, - "column": 31 - }, - "end": { - "line": 216, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 6253, - "end": 6261, - "loc": { - "start": { - "line": 216, - "column": 32 - }, - "end": { - "line": 216, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6261, - "end": 6262, - "loc": { - "start": { - "line": 216, - "column": 40 - }, - "end": { - "line": 216, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6262, - "end": 6263, - "loc": { - "start": { - "line": 216, - "column": 41 - }, - "end": { - "line": 216, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6263, - "end": 6264, - "loc": { - "start": { - "line": 216, - "column": 42 - }, - "end": { - "line": 216, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 6270, - "end": 6273, - "loc": { - "start": { - "line": 218, - "column": 4 - }, - "end": { - "line": 218, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6273, - "end": 6274, - "loc": { - "start": { - "line": 218, - "column": 7 - }, - "end": { - "line": 218, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "write", - "start": 6274, - "end": 6279, - "loc": { - "start": { - "line": 218, - "column": 8 - }, - "end": { - "line": 218, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6279, - "end": 6280, - "loc": { - "start": { - "line": 218, - "column": 13 - }, - "end": { - "line": 218, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 6280, - "end": 6288, - "loc": { - "start": { - "line": 218, - "column": 14 - }, - "end": { - "line": 218, - "column": 22 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6288, - "end": 6289, - "loc": { - "start": { - "line": 218, - "column": 22 - }, - "end": { - "line": 218, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6289, - "end": 6290, - "loc": { - "start": { - "line": 218, - "column": 23 - }, - "end": { - "line": 218, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 6295, - "end": 6298, - "loc": { - "start": { - "line": 219, - "column": 4 - }, - "end": { - "line": 219, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6298, - "end": 6299, - "loc": { - "start": { - "line": 219, - "column": 7 - }, - "end": { - "line": 219, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 6299, - "end": 6302, - "loc": { - "start": { - "line": 219, - "column": 8 - }, - "end": { - "line": 219, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6302, - "end": 6303, - "loc": { - "start": { - "line": 219, - "column": 11 - }, - "end": { - "line": 219, - "column": 12 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6303, - "end": 6304, - "loc": { - "start": { - "line": 219, - "column": 12 - }, - "end": { - "line": 219, - "column": 13 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6304, - "end": 6305, - "loc": { - "start": { - "line": 219, - "column": 13 - }, - "end": { - "line": 219, - "column": 14 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6308, - "end": 6309, - "loc": { - "start": { - "line": 220, - "column": 2 - }, - "end": { - "line": 220, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create invite with template payload\n * @typedef {DocumentInviteParams} TemplateInviteParams\n ", - "start": 6313, - "end": 6421, - "loc": { - "start": { - "line": 222, - "column": 2 - }, - "end": { - "line": 225, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create invite with template response data\n * @typedef {DocumentInviteResponse} TemplateInviteResponse\n ", - "start": 6425, - "end": 6543, - "loc": { - "start": { - "line": 227, - "column": 2 - }, - "end": { - "line": 230, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Creates an invite to sign a template.\n * You can create a simple free form invite(s) or a role-based invite(s).\n * The method copies a template into document and creates an invite using created document.\n * @param {TemplateInviteParams} data - create template invite payload\n * @param {function(err: ApiErrorResponse, res: TemplateInviteResponse)} [callback] - error first node.js callback\n ", - "start": 6547, - "end": 6959, - "loc": { - "start": { - "line": 232, - "column": 2 - }, - "end": { - "line": 238, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 6962, - "end": 6968, - "loc": { - "start": { - "line": 239, - "column": 2 - }, - "end": { - "line": 239, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "invite", - "start": 6969, - "end": 6975, - "loc": { - "start": { - "line": 239, - "column": 9 - }, - "end": { - "line": 239, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6976, - "end": 6977, - "loc": { - "start": { - "line": 239, - "column": 16 - }, - "end": { - "line": 239, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6977, - "end": 6978, - "loc": { - "start": { - "line": 239, - "column": 17 - }, - "end": { - "line": 239, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 6983, - "end": 6985, - "loc": { - "start": { - "line": 240, - "column": 4 - }, - "end": { - "line": 240, - "column": 6 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6985, - "end": 6986, - "loc": { - "start": { - "line": 240, - "column": 6 - }, - "end": { - "line": 240, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 6991, - "end": 6995, - "loc": { - "start": { - "line": 241, - "column": 4 - }, - "end": { - "line": 241, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6995, - "end": 6996, - "loc": { - "start": { - "line": 241, - "column": 8 - }, - "end": { - "line": 241, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "options", - "start": 7001, - "end": 7008, - "loc": { - "start": { - "line": 242, - "column": 4 - }, - "end": { - "line": 242, - "column": 11 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7008, - "end": 7009, - "loc": { - "start": { - "line": 242, - "column": 11 - }, - "end": { - "line": 242, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 7014, - "end": 7019, - "loc": { - "start": { - "line": 243, - "column": 4 - }, - "end": { - "line": 243, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7019, - "end": 7020, - "loc": { - "start": { - "line": 243, - "column": 9 - }, - "end": { - "line": 243, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7023, - "end": 7024, - "loc": { - "start": { - "line": 244, - "column": 2 - }, - "end": { - "line": 244, - "column": 3 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7024, - "end": 7025, - "loc": { - "start": { - "line": 244, - "column": 3 - }, - "end": { - "line": 244, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 7026, - "end": 7034, - "loc": { - "start": { - "line": 244, - "column": 5 - }, - "end": { - "line": 244, - "column": 13 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7034, - "end": 7035, - "loc": { - "start": { - "line": 244, - "column": 13 - }, - "end": { - "line": 244, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7036, - "end": 7037, - "loc": { - "start": { - "line": 244, - "column": 15 - }, - "end": { - "line": 244, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Template", - "start": 7042, - "end": 7050, - "loc": { - "start": { - "line": 245, - "column": 4 - }, - "end": { - "line": 245, - "column": 12 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7050, - "end": 7051, - "loc": { - "start": { - "line": 245, - "column": 12 - }, - "end": { - "line": 245, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "duplicate", - "start": 7051, - "end": 7060, - "loc": { - "start": { - "line": 245, - "column": 13 - }, - "end": { - "line": 245, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7060, - "end": 7061, - "loc": { - "start": { - "line": 245, - "column": 22 - }, - "end": { - "line": 245, - "column": 23 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7061, - "end": 7062, - "loc": { - "start": { - "line": 245, - "column": 23 - }, - "end": { - "line": 245, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 7069, - "end": 7071, - "loc": { - "start": { - "line": 246, - "column": 6 - }, - "end": { - "line": 246, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7071, - "end": 7072, - "loc": { - "start": { - "line": 246, - "column": 8 - }, - "end": { - "line": 246, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 7079, - "end": 7084, - "loc": { - "start": { - "line": 247, - "column": 6 - }, - "end": { - "line": 247, - "column": 11 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7084, - "end": 7085, - "loc": { - "start": { - "line": 247, - "column": 11 - }, - "end": { - "line": 247, - "column": 12 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7090, - "end": 7091, - "loc": { - "start": { - "line": 248, - "column": 4 - }, - "end": { - "line": 248, - "column": 5 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7091, - "end": 7092, - "loc": { - "start": { - "line": 248, - "column": 5 - }, - "end": { - "line": 248, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7093, - "end": 7094, - "loc": { - "start": { - "line": 248, - "column": 7 - }, - "end": { - "line": 248, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "copyErr", - "start": 7094, - "end": 7101, - "loc": { - "start": { - "line": 248, - "column": 8 - }, - "end": { - "line": 248, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7101, - "end": 7102, - "loc": { - "start": { - "line": 248, - "column": 15 - }, - "end": { - "line": 248, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "copyRes", - "start": 7103, - "end": 7110, - "loc": { - "start": { - "line": 248, - "column": 17 - }, - "end": { - "line": 248, - "column": 24 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7110, - "end": 7111, - "loc": { - "start": { - "line": 248, - "column": 24 - }, - "end": { - "line": 248, - "column": 25 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7112, - "end": 7114, - "loc": { - "start": { - "line": 248, - "column": 26 - }, - "end": { - "line": 248, - "column": 28 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7115, - "end": 7116, - "loc": { - "start": { - "line": 248, - "column": 29 - }, - "end": { - "line": 248, - "column": 30 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 7123, - "end": 7125, - "loc": { - "start": { - "line": 249, - "column": 6 - }, - "end": { - "line": 249, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7126, - "end": 7127, - "loc": { - "start": { - "line": 249, - "column": 9 - }, - "end": { - "line": 249, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "copyErr", - "start": 7127, - "end": 7134, - "loc": { - "start": { - "line": 249, - "column": 10 - }, - "end": { - "line": 249, - "column": 17 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7134, - "end": 7135, - "loc": { - "start": { - "line": 249, - "column": 17 - }, - "end": { - "line": 249, - "column": 18 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7136, - "end": 7137, - "loc": { - "start": { - "line": 249, - "column": 19 - }, - "end": { - "line": 249, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 7146, - "end": 7154, - "loc": { - "start": { - "line": 250, - "column": 8 - }, - "end": { - "line": 250, - "column": 16 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7154, - "end": 7155, - "loc": { - "start": { - "line": 250, - "column": 16 - }, - "end": { - "line": 250, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "copyErr", - "start": 7155, - "end": 7162, - "loc": { - "start": { - "line": 250, - "column": 17 - }, - "end": { - "line": 250, - "column": 24 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7162, - "end": 7163, - "loc": { - "start": { - "line": 250, - "column": 24 - }, - "end": { - "line": 250, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7163, - "end": 7164, - "loc": { - "start": { - "line": 250, - "column": 25 - }, - "end": { - "line": 250, - "column": 26 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 7173, - "end": 7179, - "loc": { - "start": { - "line": 251, - "column": 8 - }, - "end": { - "line": 251, - "column": 14 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7179, - "end": 7180, - "loc": { - "start": { - "line": 251, - "column": 14 - }, - "end": { - "line": 251, - "column": 15 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7187, - "end": 7188, - "loc": { - "start": { - "line": 252, - "column": 6 - }, - "end": { - "line": 252, - "column": 7 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 7189, - "end": 7193, - "loc": { - "start": { - "line": 252, - "column": 8 - }, - "end": { - "line": 252, - "column": 12 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 7194, - "end": 7196, - "loc": { - "start": { - "line": 252, - "column": 13 - }, - "end": { - "line": 252, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7197, - "end": 7198, - "loc": { - "start": { - "line": 252, - "column": 16 - }, - "end": { - "line": 252, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Array", - "start": 7198, - "end": 7203, - "loc": { - "start": { - "line": 252, - "column": 17 - }, - "end": { - "line": 252, - "column": 22 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7203, - "end": 7204, - "loc": { - "start": { - "line": 252, - "column": 22 - }, - "end": { - "line": 252, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "isArray", - "start": 7204, - "end": 7211, - "loc": { - "start": { - "line": 252, - "column": 23 - }, - "end": { - "line": 252, - "column": 30 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7211, - "end": 7212, - "loc": { - "start": { - "line": 252, - "column": 30 - }, - "end": { - "line": 252, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 7212, - "end": 7216, - "loc": { - "start": { - "line": 252, - "column": 31 - }, - "end": { - "line": 252, - "column": 35 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7216, - "end": 7217, - "loc": { - "start": { - "line": 252, - "column": 35 - }, - "end": { - "line": 252, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "to", - "start": 7217, - "end": 7219, - "loc": { - "start": { - "line": 252, - "column": 36 - }, - "end": { - "line": 252, - "column": 38 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7219, - "end": 7220, - "loc": { - "start": { - "line": 252, - "column": 38 - }, - "end": { - "line": 252, - "column": 39 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7220, - "end": 7221, - "loc": { - "start": { - "line": 252, - "column": 39 - }, - "end": { - "line": 252, - "column": 40 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7222, - "end": 7223, - "loc": { - "start": { - "line": 252, - "column": 41 - }, - "end": { - "line": 252, - "column": 42 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 7232, - "end": 7237, - "loc": { - "start": { - "line": 253, - "column": 8 - }, - "end": { - "line": 253, - "column": 13 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7238, - "end": 7239, - "loc": { - "start": { - "line": 253, - "column": 14 - }, - "end": { - "line": 253, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 7240, - "end": 7242, - "loc": { - "start": { - "line": 253, - "column": 16 - }, - "end": { - "line": 253, - "column": 18 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7242, - "end": 7243, - "loc": { - "start": { - "line": 253, - "column": 18 - }, - "end": { - "line": 253, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documentId", - "start": 7244, - "end": 7254, - "loc": { - "start": { - "line": 253, - "column": 20 - }, - "end": { - "line": 253, - "column": 30 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7255, - "end": 7256, - "loc": { - "start": { - "line": 253, - "column": 31 - }, - "end": { - "line": 253, - "column": 32 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 7257, - "end": 7258, - "loc": { - "start": { - "line": 253, - "column": 33 - }, - "end": { - "line": 253, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "copyRes", - "start": 7259, - "end": 7266, - "loc": { - "start": { - "line": 253, - "column": 35 - }, - "end": { - "line": 253, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7266, - "end": 7267, - "loc": { - "start": { - "line": 253, - "column": 42 - }, - "end": { - "line": 253, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getDocumentDetails", - "start": 7277, - "end": 7295, - "loc": { - "start": { - "line": 255, - "column": 8 - }, - "end": { - "line": 255, - "column": 26 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7295, - "end": 7296, - "loc": { - "start": { - "line": 255, - "column": 26 - }, - "end": { - "line": 255, - "column": 27 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7296, - "end": 7297, - "loc": { - "start": { - "line": 255, - "column": 27 - }, - "end": { - "line": 255, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 7308, - "end": 7310, - "loc": { - "start": { - "line": 256, - "column": 10 - }, - "end": { - "line": 256, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7310, - "end": 7311, - "loc": { - "start": { - "line": 256, - "column": 12 - }, - "end": { - "line": 256, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documentId", - "start": 7312, - "end": 7322, - "loc": { - "start": { - "line": 256, - "column": 14 - }, - "end": { - "line": 256, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7322, - "end": 7323, - "loc": { - "start": { - "line": 256, - "column": 24 - }, - "end": { - "line": 256, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 7334, - "end": 7339, - "loc": { - "start": { - "line": 257, - "column": 10 - }, - "end": { - "line": 257, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7339, - "end": 7340, - "loc": { - "start": { - "line": 257, - "column": 15 - }, - "end": { - "line": 257, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7349, - "end": 7350, - "loc": { - "start": { - "line": 258, - "column": 8 - }, - "end": { - "line": 258, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7350, - "end": 7351, - "loc": { - "start": { - "line": 258, - "column": 9 - }, - "end": { - "line": 258, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7352, - "end": 7353, - "loc": { - "start": { - "line": 258, - "column": 11 - }, - "end": { - "line": 258, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "detailErr", - "start": 7353, - "end": 7362, - "loc": { - "start": { - "line": 258, - "column": 12 - }, - "end": { - "line": 258, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7362, - "end": 7363, - "loc": { - "start": { - "line": 258, - "column": 21 - }, - "end": { - "line": 258, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "detailRes", - "start": 7364, - "end": 7373, - "loc": { - "start": { - "line": 258, - "column": 23 - }, - "end": { - "line": 258, - "column": 32 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7373, - "end": 7374, - "loc": { - "start": { - "line": 258, - "column": 32 - }, - "end": { - "line": 258, - "column": 33 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7375, - "end": 7377, - "loc": { - "start": { - "line": 258, - "column": 34 - }, - "end": { - "line": 258, - "column": 36 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7378, - "end": 7379, - "loc": { - "start": { - "line": 258, - "column": 37 - }, - "end": { - "line": 258, - "column": 38 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 7390, - "end": 7392, - "loc": { - "start": { - "line": 259, - "column": 10 - }, - "end": { - "line": 259, - "column": 12 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7393, - "end": 7394, - "loc": { - "start": { - "line": 259, - "column": 13 - }, - "end": { - "line": 259, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "detailErr", - "start": 7394, - "end": 7403, - "loc": { - "start": { - "line": 259, - "column": 14 - }, - "end": { - "line": 259, - "column": 23 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7403, - "end": 7404, - "loc": { - "start": { - "line": 259, - "column": 23 - }, - "end": { - "line": 259, - "column": 24 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7405, - "end": 7406, - "loc": { - "start": { - "line": 259, - "column": 25 - }, - "end": { - "line": 259, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 7419, - "end": 7427, - "loc": { - "start": { - "line": 260, - "column": 12 - }, - "end": { - "line": 260, - "column": 20 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7427, - "end": 7428, - "loc": { - "start": { - "line": 260, - "column": 20 - }, - "end": { - "line": 260, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "detailErr", - "start": 7428, - "end": 7437, - "loc": { - "start": { - "line": 260, - "column": 21 - }, - "end": { - "line": 260, - "column": 30 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7437, - "end": 7438, - "loc": { - "start": { - "line": 260, - "column": 30 - }, - "end": { - "line": 260, - "column": 31 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7438, - "end": 7439, - "loc": { - "start": { - "line": 260, - "column": 31 - }, - "end": { - "line": 260, - "column": 32 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 7452, - "end": 7458, - "loc": { - "start": { - "line": 261, - "column": 12 - }, - "end": { - "line": 261, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7458, - "end": 7459, - "loc": { - "start": { - "line": 261, - "column": 18 - }, - "end": { - "line": 261, - "column": 19 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7470, - "end": 7471, - "loc": { - "start": { - "line": 262, - "column": 10 - }, - "end": { - "line": 262, - "column": 11 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 7472, - "end": 7476, - "loc": { - "start": { - "line": 262, - "column": 12 - }, - "end": { - "line": 262, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7477, - "end": 7478, - "loc": { - "start": { - "line": 262, - "column": 17 - }, - "end": { - "line": 262, - "column": 18 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 7491, - "end": 7496, - "loc": { - "start": { - "line": 263, - "column": 12 - }, - "end": { - "line": 263, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "inviteData", - "start": 7497, - "end": 7507, - "loc": { - "start": { - "line": 263, - "column": 18 - }, - "end": { - "line": 263, - "column": 28 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 7508, - "end": 7509, - "loc": { - "start": { - "line": 263, - "column": 29 - }, - "end": { - "line": 263, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Object", - "start": 7510, - "end": 7516, - "loc": { - "start": { - "line": 263, - "column": 31 - }, - "end": { - "line": 263, - "column": 37 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7516, - "end": 7517, - "loc": { - "start": { - "line": 263, - "column": 37 - }, - "end": { - "line": 263, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "assign", - "start": 7517, - "end": 7523, - "loc": { - "start": { - "line": 263, - "column": 38 - }, - "end": { - "line": 263, - "column": 44 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7523, - "end": 7524, - "loc": { - "start": { - "line": 263, - "column": 44 - }, - "end": { - "line": 263, - "column": 45 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7524, - "end": 7525, - "loc": { - "start": { - "line": 263, - "column": 45 - }, - "end": { - "line": 263, - "column": 46 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7525, - "end": 7526, - "loc": { - "start": { - "line": 263, - "column": 46 - }, - "end": { - "line": 263, - "column": 47 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7526, - "end": 7527, - "loc": { - "start": { - "line": 263, - "column": 47 - }, - "end": { - "line": 263, - "column": 48 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 7528, - "end": 7532, - "loc": { - "start": { - "line": 263, - "column": 49 - }, - "end": { - "line": 263, - "column": 53 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7532, - "end": 7533, - "loc": { - "start": { - "line": 263, - "column": 53 - }, - "end": { - "line": 263, - "column": 54 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7534, - "end": 7535, - "loc": { - "start": { - "line": 263, - "column": 55 - }, - "end": { - "line": 263, - "column": 56 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_id", - "start": 7536, - "end": 7547, - "loc": { - "start": { - "line": 263, - "column": 57 - }, - "end": { - "line": 263, - "column": 68 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7547, - "end": 7548, - "loc": { - "start": { - "line": 263, - "column": 68 - }, - "end": { - "line": 263, - "column": 69 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documentId", - "start": 7549, - "end": 7559, - "loc": { - "start": { - "line": 263, - "column": 70 - }, - "end": { - "line": 263, - "column": 80 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7560, - "end": 7561, - "loc": { - "start": { - "line": 263, - "column": 81 - }, - "end": { - "line": 263, - "column": 82 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7561, - "end": 7562, - "loc": { - "start": { - "line": 263, - "column": 82 - }, - "end": { - "line": 263, - "column": 83 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7562, - "end": 7563, - "loc": { - "start": { - "line": 263, - "column": 83 - }, - "end": { - "line": 263, - "column": 84 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 7576, - "end": 7581, - "loc": { - "start": { - "line": 264, - "column": 12 - }, - "end": { - "line": 264, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7582, - "end": 7583, - "loc": { - "start": { - "line": 264, - "column": 18 - }, - "end": { - "line": 264, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "roles", - "start": 7584, - "end": 7589, - "loc": { - "start": { - "line": 264, - "column": 20 - }, - "end": { - "line": 264, - "column": 25 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7590, - "end": 7591, - "loc": { - "start": { - "line": 264, - "column": 26 - }, - "end": { - "line": 264, - "column": 27 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 7592, - "end": 7593, - "loc": { - "start": { - "line": 264, - "column": 28 - }, - "end": { - "line": 264, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "detailRes", - "start": 7594, - "end": 7603, - "loc": { - "start": { - "line": 264, - "column": 30 - }, - "end": { - "line": 264, - "column": 39 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7603, - "end": 7604, - "loc": { - "start": { - "line": 264, - "column": 39 - }, - "end": { - "line": 264, - "column": 40 - } - } - }, - { - "type": { - "label": "for", - "keyword": "for", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": true, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "for", - "start": 7618, - "end": 7621, - "loc": { - "start": { - "line": 266, - "column": 12 - }, - "end": { - "line": 266, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7622, - "end": 7623, - "loc": { - "start": { - "line": 266, - "column": 16 - }, - "end": { - "line": 266, - "column": 17 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 7623, - "end": 7628, - "loc": { - "start": { - "line": 266, - "column": 17 - }, - "end": { - "line": 266, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "signer", - "start": 7629, - "end": 7635, - "loc": { - "start": { - "line": 266, - "column": 23 - }, - "end": { - "line": 266, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "of", - "start": 7636, - "end": 7638, - "loc": { - "start": { - "line": 266, - "column": 30 - }, - "end": { - "line": 266, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "inviteData", - "start": 7639, - "end": 7649, - "loc": { - "start": { - "line": 266, - "column": 33 - }, - "end": { - "line": 266, - "column": 43 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7649, - "end": 7650, - "loc": { - "start": { - "line": 266, - "column": 43 - }, - "end": { - "line": 266, - "column": 44 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "to", - "start": 7650, - "end": 7652, - "loc": { - "start": { - "line": 266, - "column": 44 - }, - "end": { - "line": 266, - "column": 46 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7652, - "end": 7653, - "loc": { - "start": { - "line": 266, - "column": 46 - }, - "end": { - "line": 266, - "column": 47 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7654, - "end": 7655, - "loc": { - "start": { - "line": 266, - "column": 48 - }, - "end": { - "line": 266, - "column": 49 - } - } - }, - { - "type": { - "label": "try", - "keyword": "try", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "try", - "start": 7670, - "end": 7673, - "loc": { - "start": { - "line": 267, - "column": 14 - }, - "end": { - "line": 267, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7674, - "end": 7675, - "loc": { - "start": { - "line": 267, - "column": 18 - }, - "end": { - "line": 267, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "signer", - "start": 7692, - "end": 7698, - "loc": { - "start": { - "line": 268, - "column": 16 - }, - "end": { - "line": 268, - "column": 22 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7698, - "end": 7699, - "loc": { - "start": { - "line": 268, - "column": 22 - }, - "end": { - "line": 268, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "role_id", - "start": 7699, - "end": 7706, - "loc": { - "start": { - "line": 268, - "column": 23 - }, - "end": { - "line": 268, - "column": 30 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 7707, - "end": 7708, - "loc": { - "start": { - "line": 268, - "column": 31 - }, - "end": { - "line": 268, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "roles", - "start": 7709, - "end": 7714, - "loc": { - "start": { - "line": 268, - "column": 33 - }, - "end": { - "line": 268, - "column": 38 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7714, - "end": 7715, - "loc": { - "start": { - "line": 268, - "column": 38 - }, - "end": { - "line": 268, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "find", - "start": 7715, - "end": 7719, - "loc": { - "start": { - "line": 268, - "column": 39 - }, - "end": { - "line": 268, - "column": 43 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7719, - "end": 7720, - "loc": { - "start": { - "line": 268, - "column": 43 - }, - "end": { - "line": 268, - "column": 44 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "role", - "start": 7720, - "end": 7724, - "loc": { - "start": { - "line": 268, - "column": 44 - }, - "end": { - "line": 268, - "column": 48 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7725, - "end": 7727, - "loc": { - "start": { - "line": 268, - "column": 49 - }, - "end": { - "line": 268, - "column": 51 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "role", - "start": 7728, - "end": 7732, - "loc": { - "start": { - "line": 268, - "column": 52 - }, - "end": { - "line": 268, - "column": 56 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7732, - "end": 7733, - "loc": { - "start": { - "line": 268, - "column": 56 - }, - "end": { - "line": 268, - "column": 57 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "name", - "start": 7733, - "end": 7737, - "loc": { - "start": { - "line": 268, - "column": 57 - }, - "end": { - "line": 268, - "column": 61 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 7738, - "end": 7741, - "loc": { - "start": { - "line": 268, - "column": 62 - }, - "end": { - "line": 268, - "column": 65 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "signer", - "start": 7742, - "end": 7748, - "loc": { - "start": { - "line": 268, - "column": 66 - }, - "end": { - "line": 268, - "column": 72 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7748, - "end": 7749, - "loc": { - "start": { - "line": 268, - "column": 72 - }, - "end": { - "line": 268, - "column": 73 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "role", - "start": 7749, - "end": 7753, - "loc": { - "start": { - "line": 268, - "column": 73 - }, - "end": { - "line": 268, - "column": 77 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7753, - "end": 7754, - "loc": { - "start": { - "line": 268, - "column": 77 - }, - "end": { - "line": 268, - "column": 78 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7754, - "end": 7755, - "loc": { - "start": { - "line": 268, - "column": 78 - }, - "end": { - "line": 268, - "column": 79 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "unique_id", - "start": 7755, - "end": 7764, - "loc": { - "start": { - "line": 268, - "column": 79 - }, - "end": { - "line": 268, - "column": 88 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7764, - "end": 7765, - "loc": { - "start": { - "line": 268, - "column": 88 - }, - "end": { - "line": 268, - "column": 89 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7780, - "end": 7781, - "loc": { - "start": { - "line": 269, - "column": 14 - }, - "end": { - "line": 269, - "column": 15 - } - } - }, - { - "type": { - "label": "catch", - "keyword": "catch", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "catch", - "start": 7782, - "end": 7787, - "loc": { - "start": { - "line": 269, - "column": 16 - }, - "end": { - "line": 269, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7788, - "end": 7789, - "loc": { - "start": { - "line": 269, - "column": 22 - }, - "end": { - "line": 269, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 7789, - "end": 7792, - "loc": { - "start": { - "line": 269, - "column": 23 - }, - "end": { - "line": 269, - "column": 26 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7792, - "end": 7793, - "loc": { - "start": { - "line": 269, - "column": 26 - }, - "end": { - "line": 269, - "column": 27 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7794, - "end": 7795, - "loc": { - "start": { - "line": 269, - "column": 28 - }, - "end": { - "line": 269, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 7812, - "end": 7820, - "loc": { - "start": { - "line": 270, - "column": 16 - }, - "end": { - "line": 270, - "column": 24 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7820, - "end": 7821, - "loc": { - "start": { - "line": 270, - "column": 24 - }, - "end": { - "line": 270, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 7821, - "end": 7824, - "loc": { - "start": { - "line": 270, - "column": 25 - }, - "end": { - "line": 270, - "column": 28 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7824, - "end": 7825, - "loc": { - "start": { - "line": 270, - "column": 28 - }, - "end": { - "line": 270, - "column": 29 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7825, - "end": 7826, - "loc": { - "start": { - "line": 270, - "column": 29 - }, - "end": { - "line": 270, - "column": 30 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 7843, - "end": 7849, - "loc": { - "start": { - "line": 271, - "column": 16 - }, - "end": { - "line": 271, - "column": 22 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7849, - "end": 7850, - "loc": { - "start": { - "line": 271, - "column": 22 - }, - "end": { - "line": 271, - "column": 23 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7865, - "end": 7866, - "loc": { - "start": { - "line": 272, - "column": 14 - }, - "end": { - "line": 272, - "column": 15 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7879, - "end": 7880, - "loc": { - "start": { - "line": 273, - "column": 12 - }, - "end": { - "line": 273, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "sendDocumentInvite", - "start": 7894, - "end": 7912, - "loc": { - "start": { - "line": 275, - "column": 12 - }, - "end": { - "line": 275, - "column": 30 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7912, - "end": 7913, - "loc": { - "start": { - "line": 275, - "column": 30 - }, - "end": { - "line": 275, - "column": 31 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7913, - "end": 7914, - "loc": { - "start": { - "line": 275, - "column": 31 - }, - "end": { - "line": 275, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 7929, - "end": 7931, - "loc": { - "start": { - "line": 276, - "column": 14 - }, - "end": { - "line": 276, - "column": 16 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7931, - "end": 7932, - "loc": { - "start": { - "line": 276, - "column": 16 - }, - "end": { - "line": 276, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documentId", - "start": 7933, - "end": 7943, - "loc": { - "start": { - "line": 276, - "column": 18 - }, - "end": { - "line": 276, - "column": 28 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7943, - "end": 7944, - "loc": { - "start": { - "line": 276, - "column": 28 - }, - "end": { - "line": 276, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 7959, - "end": 7963, - "loc": { - "start": { - "line": 277, - "column": 14 - }, - "end": { - "line": 277, - "column": 18 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7963, - "end": 7964, - "loc": { - "start": { - "line": 277, - "column": 18 - }, - "end": { - "line": 277, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "inviteData", - "start": 7965, - "end": 7975, - "loc": { - "start": { - "line": 277, - "column": 20 - }, - "end": { - "line": 277, - "column": 30 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7975, - "end": 7976, - "loc": { - "start": { - "line": 277, - "column": 30 - }, - "end": { - "line": 277, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "options", - "start": 7991, - "end": 7998, - "loc": { - "start": { - "line": 278, - "column": 14 - }, - "end": { - "line": 278, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7998, - "end": 7999, - "loc": { - "start": { - "line": 278, - "column": 21 - }, - "end": { - "line": 278, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 8014, - "end": 8019, - "loc": { - "start": { - "line": 279, - "column": 14 - }, - "end": { - "line": 279, - "column": 19 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8019, - "end": 8020, - "loc": { - "start": { - "line": 279, - "column": 19 - }, - "end": { - "line": 279, - "column": 20 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8033, - "end": 8034, - "loc": { - "start": { - "line": 280, - "column": 12 - }, - "end": { - "line": 280, - "column": 13 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8034, - "end": 8035, - "loc": { - "start": { - "line": 280, - "column": 13 - }, - "end": { - "line": 280, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 8036, - "end": 8044, - "loc": { - "start": { - "line": 280, - "column": 15 - }, - "end": { - "line": 280, - "column": 23 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8044, - "end": 8045, - "loc": { - "start": { - "line": 280, - "column": 23 - }, - "end": { - "line": 280, - "column": 24 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8045, - "end": 8046, - "loc": { - "start": { - "line": 280, - "column": 24 - }, - "end": { - "line": 280, - "column": 25 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8057, - "end": 8058, - "loc": { - "start": { - "line": 281, - "column": 10 - }, - "end": { - "line": 281, - "column": 11 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8067, - "end": 8068, - "loc": { - "start": { - "line": 282, - "column": 8 - }, - "end": { - "line": 282, - "column": 9 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8068, - "end": 8069, - "loc": { - "start": { - "line": 282, - "column": 9 - }, - "end": { - "line": 282, - "column": 10 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8069, - "end": 8070, - "loc": { - "start": { - "line": 282, - "column": 10 - }, - "end": { - "line": 282, - "column": 11 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8077, - "end": 8078, - "loc": { - "start": { - "line": 283, - "column": 6 - }, - "end": { - "line": 283, - "column": 7 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 8079, - "end": 8083, - "loc": { - "start": { - "line": 283, - "column": 8 - }, - "end": { - "line": 283, - "column": 12 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8084, - "end": 8085, - "loc": { - "start": { - "line": 283, - "column": 13 - }, - "end": { - "line": 283, - "column": 14 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 8094, - "end": 8099, - "loc": { - "start": { - "line": 284, - "column": 8 - }, - "end": { - "line": 284, - "column": 13 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8100, - "end": 8101, - "loc": { - "start": { - "line": 284, - "column": 14 - }, - "end": { - "line": 284, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 8102, - "end": 8104, - "loc": { - "start": { - "line": 284, - "column": 16 - }, - "end": { - "line": 284, - "column": 18 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8104, - "end": 8105, - "loc": { - "start": { - "line": 284, - "column": 18 - }, - "end": { - "line": 284, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documentId", - "start": 8106, - "end": 8116, - "loc": { - "start": { - "line": 284, - "column": 20 - }, - "end": { - "line": 284, - "column": 30 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8117, - "end": 8118, - "loc": { - "start": { - "line": 284, - "column": 31 - }, - "end": { - "line": 284, - "column": 32 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 8119, - "end": 8120, - "loc": { - "start": { - "line": 284, - "column": 33 - }, - "end": { - "line": 284, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "copyRes", - "start": 8121, - "end": 8128, - "loc": { - "start": { - "line": 284, - "column": 35 - }, - "end": { - "line": 284, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8128, - "end": 8129, - "loc": { - "start": { - "line": 284, - "column": 42 - }, - "end": { - "line": 284, - "column": 43 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 8138, - "end": 8143, - "loc": { - "start": { - "line": 285, - "column": 8 - }, - "end": { - "line": 285, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "inviteData", - "start": 8144, - "end": 8154, - "loc": { - "start": { - "line": 285, - "column": 14 - }, - "end": { - "line": 285, - "column": 24 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 8155, - "end": 8156, - "loc": { - "start": { - "line": 285, - "column": 25 - }, - "end": { - "line": 285, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Object", - "start": 8157, - "end": 8163, - "loc": { - "start": { - "line": 285, - "column": 27 - }, - "end": { - "line": 285, - "column": 33 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8163, - "end": 8164, - "loc": { - "start": { - "line": 285, - "column": 33 - }, - "end": { - "line": 285, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "assign", - "start": 8164, - "end": 8170, - "loc": { - "start": { - "line": 285, - "column": 34 - }, - "end": { - "line": 285, - "column": 40 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8170, - "end": 8171, - "loc": { - "start": { - "line": 285, - "column": 40 - }, - "end": { - "line": 285, - "column": 41 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8171, - "end": 8172, - "loc": { - "start": { - "line": 285, - "column": 41 - }, - "end": { - "line": 285, - "column": 42 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8172, - "end": 8173, - "loc": { - "start": { - "line": 285, - "column": 42 - }, - "end": { - "line": 285, - "column": 43 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8173, - "end": 8174, - "loc": { - "start": { - "line": 285, - "column": 43 - }, - "end": { - "line": 285, - "column": 44 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 8175, - "end": 8179, - "loc": { - "start": { - "line": 285, - "column": 45 - }, - "end": { - "line": 285, - "column": 49 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8179, - "end": 8180, - "loc": { - "start": { - "line": 285, - "column": 49 - }, - "end": { - "line": 285, - "column": 50 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8181, - "end": 8182, - "loc": { - "start": { - "line": 285, - "column": 51 - }, - "end": { - "line": 285, - "column": 52 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_id", - "start": 8183, - "end": 8194, - "loc": { - "start": { - "line": 285, - "column": 53 - }, - "end": { - "line": 285, - "column": 64 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8194, - "end": 8195, - "loc": { - "start": { - "line": 285, - "column": 64 - }, - "end": { - "line": 285, - "column": 65 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documentId", - "start": 8196, - "end": 8206, - "loc": { - "start": { - "line": 285, - "column": 66 - }, - "end": { - "line": 285, - "column": 76 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8207, - "end": 8208, - "loc": { - "start": { - "line": 285, - "column": 77 - }, - "end": { - "line": 285, - "column": 78 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8208, - "end": 8209, - "loc": { - "start": { - "line": 285, - "column": 78 - }, - "end": { - "line": 285, - "column": 79 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8209, - "end": 8210, - "loc": { - "start": { - "line": 285, - "column": 79 - }, - "end": { - "line": 285, - "column": 80 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "sendDocumentInvite", - "start": 8220, - "end": 8238, - "loc": { - "start": { - "line": 287, - "column": 8 - }, - "end": { - "line": 287, - "column": 26 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8238, - "end": 8239, - "loc": { - "start": { - "line": 287, - "column": 26 - }, - "end": { - "line": 287, - "column": 27 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8239, - "end": 8240, - "loc": { - "start": { - "line": 287, - "column": 27 - }, - "end": { - "line": 287, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 8251, - "end": 8253, - "loc": { - "start": { - "line": 288, - "column": 10 - }, - "end": { - "line": 288, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8253, - "end": 8254, - "loc": { - "start": { - "line": 288, - "column": 12 - }, - "end": { - "line": 288, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "documentId", - "start": 8255, - "end": 8265, - "loc": { - "start": { - "line": 288, - "column": 14 - }, - "end": { - "line": 288, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8265, - "end": 8266, - "loc": { - "start": { - "line": 288, - "column": 24 - }, - "end": { - "line": 288, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 8277, - "end": 8281, - "loc": { - "start": { - "line": 289, - "column": 10 - }, - "end": { - "line": 289, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8281, - "end": 8282, - "loc": { - "start": { - "line": 289, - "column": 14 - }, - "end": { - "line": 289, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "inviteData", - "start": 8283, - "end": 8293, - "loc": { - "start": { - "line": 289, - "column": 16 - }, - "end": { - "line": 289, - "column": 26 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8293, - "end": 8294, - "loc": { - "start": { - "line": 289, - "column": 26 - }, - "end": { - "line": 289, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "options", - "start": 8305, - "end": 8312, - "loc": { - "start": { - "line": 290, - "column": 10 - }, - "end": { - "line": 290, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8312, - "end": 8313, - "loc": { - "start": { - "line": 290, - "column": 17 - }, - "end": { - "line": 290, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 8324, - "end": 8329, - "loc": { - "start": { - "line": 291, - "column": 10 - }, - "end": { - "line": 291, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8329, - "end": 8330, - "loc": { - "start": { - "line": 291, - "column": 15 - }, - "end": { - "line": 291, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8339, - "end": 8340, - "loc": { - "start": { - "line": 292, - "column": 8 - }, - "end": { - "line": 292, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8340, - "end": 8341, - "loc": { - "start": { - "line": 292, - "column": 9 - }, - "end": { - "line": 292, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 8342, - "end": 8350, - "loc": { - "start": { - "line": 292, - "column": 11 - }, - "end": { - "line": 292, - "column": 19 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8350, - "end": 8351, - "loc": { - "start": { - "line": 292, - "column": 19 - }, - "end": { - "line": 292, - "column": 20 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8351, - "end": 8352, - "loc": { - "start": { - "line": 292, - "column": 20 - }, - "end": { - "line": 292, - "column": 21 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8359, - "end": 8360, - "loc": { - "start": { - "line": 293, - "column": 6 - }, - "end": { - "line": 293, - "column": 7 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8365, - "end": 8366, - "loc": { - "start": { - "line": 294, - "column": 4 - }, - "end": { - "line": 294, - "column": 5 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8366, - "end": 8367, - "loc": { - "start": { - "line": 294, - "column": 5 - }, - "end": { - "line": 294, - "column": 6 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8367, - "end": 8368, - "loc": { - "start": { - "line": 294, - "column": 6 - }, - "end": { - "line": 294, - "column": 7 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8371, - "end": 8372, - "loc": { - "start": { - "line": 295, - "column": 2 - }, - "end": { - "line": 295, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Remove template payload\n * @typedef {DocumentRemoveParams} TemplateRemoveParams\n ", - "start": 8376, - "end": 8472, - "loc": { - "start": { - "line": 297, - "column": 2 - }, - "end": { - "line": 300, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Remove template response data\n * @typedef {DocumentRemoveResponse} TemplateRemoveResponse\n ", - "start": 8476, - "end": 8582, - "loc": { - "start": { - "line": 302, - "column": 2 - }, - "end": { - "line": 305, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Removes a specified template from folder\n * @param {TemplateRemoveParams} data - remove template payload\n * @param {function(err: ApiErrorResponse, res: TemplateRemoveResponse)} [callback] - error first node.js callback\n ", - "start": 8586, - "end": 8824, - "loc": { - "start": { - "line": 307, - "column": 2 - }, - "end": { - "line": 311, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 8827, - "end": 8833, - "loc": { - "start": { - "line": 312, - "column": 2 - }, - "end": { - "line": 312, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "remove", - "start": 8834, - "end": 8840, - "loc": { - "start": { - "line": 312, - "column": 9 - }, - "end": { - "line": 312, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8841, - "end": 8842, - "loc": { - "start": { - "line": 312, - "column": 16 - }, - "end": { - "line": 312, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8842, - "end": 8843, - "loc": { - "start": { - "line": 312, - "column": 17 - }, - "end": { - "line": 312, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 8848, - "end": 8850, - "loc": { - "start": { - "line": 313, - "column": 4 - }, - "end": { - "line": 313, - "column": 6 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8850, - "end": 8851, - "loc": { - "start": { - "line": 313, - "column": 6 - }, - "end": { - "line": 313, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 8856, - "end": 8861, - "loc": { - "start": { - "line": 314, - "column": 4 - }, - "end": { - "line": 314, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8861, - "end": 8862, - "loc": { - "start": { - "line": 314, - "column": 9 - }, - "end": { - "line": 314, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "options", - "start": 8867, - "end": 8874, - "loc": { - "start": { - "line": 315, - "column": 4 - }, - "end": { - "line": 315, - "column": 11 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8874, - "end": 8875, - "loc": { - "start": { - "line": 315, - "column": 11 - }, - "end": { - "line": 315, - "column": 12 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8878, - "end": 8879, - "loc": { - "start": { - "line": 316, - "column": 2 - }, - "end": { - "line": 316, - "column": 3 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8879, - "end": 8880, - "loc": { - "start": { - "line": 316, - "column": 3 - }, - "end": { - "line": 316, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 8881, - "end": 8889, - "loc": { - "start": { - "line": 316, - "column": 5 - }, - "end": { - "line": 316, - "column": 13 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8889, - "end": 8890, - "loc": { - "start": { - "line": 316, - "column": 13 - }, - "end": { - "line": 316, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8891, - "end": 8892, - "loc": { - "start": { - "line": 316, - "column": 15 - }, - "end": { - "line": 316, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "removeDocument", - "start": 8897, - "end": 8911, - "loc": { - "start": { - "line": 317, - "column": 4 - }, - "end": { - "line": 317, - "column": 18 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8911, - "end": 8912, - "loc": { - "start": { - "line": 317, - "column": 18 - }, - "end": { - "line": 317, - "column": 19 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8912, - "end": 8913, - "loc": { - "start": { - "line": 317, - "column": 19 - }, - "end": { - "line": 317, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 8920, - "end": 8922, - "loc": { - "start": { - "line": 318, - "column": 6 - }, - "end": { - "line": 318, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8922, - "end": 8923, - "loc": { - "start": { - "line": 318, - "column": 8 - }, - "end": { - "line": 318, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 8930, - "end": 8935, - "loc": { - "start": { - "line": 319, - "column": 6 - }, - "end": { - "line": 319, - "column": 11 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8935, - "end": 8936, - "loc": { - "start": { - "line": 319, - "column": 11 - }, - "end": { - "line": 319, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "options", - "start": 8943, - "end": 8950, - "loc": { - "start": { - "line": 320, - "column": 6 - }, - "end": { - "line": 320, - "column": 13 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8950, - "end": 8951, - "loc": { - "start": { - "line": 320, - "column": 13 - }, - "end": { - "line": 320, - "column": 14 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8956, - "end": 8957, - "loc": { - "start": { - "line": 321, - "column": 4 - }, - "end": { - "line": 321, - "column": 5 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8957, - "end": 8958, - "loc": { - "start": { - "line": 321, - "column": 5 - }, - "end": { - "line": 321, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 8959, - "end": 8967, - "loc": { - "start": { - "line": 321, - "column": 7 - }, - "end": { - "line": 321, - "column": 15 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8967, - "end": 8968, - "loc": { - "start": { - "line": 321, - "column": 15 - }, - "end": { - "line": 321, - "column": 16 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8968, - "end": 8969, - "loc": { - "start": { - "line": 321, - "column": 16 - }, - "end": { - "line": 321, - "column": 17 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8972, - "end": 8973, - "loc": { - "start": { - "line": 322, - "column": 2 - }, - "end": { - "line": 322, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Get Template Routing Details payload\n * @typedef {Object} TemplateGetRoutingDetailsParams\n * @property {string} id - an ID of specific Template\n * @property {string} token - your auth token\n ", - "start": 8977, - "end": 9187, - "loc": { - "start": { - "line": 324, - "column": 2 - }, - "end": { - "line": 329, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Template Routing Details item data\n * @typedef {Object} TemplateRoutingDetailsItem\n * @property {string} default_email - default email for routing detail\n * @property {boolean} inviter_role - always `false`\n * @property {string} name - signer role (actor) name\n * @property {string} role_id - signer role (actor) unique ID\n * @property {number} signing_order - order number of signing step\n ", - "start": 9191, - "end": 9607, - "loc": { - "start": { - "line": 331, - "column": 2 - }, - "end": { - "line": 339, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Template Routing Details CC step info\n * @typedef {Object} TemplateRoutingDetailsCCStep\n * @property {string} email - email of cc step\n * @property {number} step - step order number\n * @property {string} name - name of cc step\n ", - "start": 9611, - "end": 9860, - "loc": { - "start": { - "line": 341, - "column": 2 - }, - "end": { - "line": 347, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Get Template Routing Details response data\n * @typedef {Object} TemplateGetRoutingDetailsResponse\n * @property {TemplateRoutingDetailsItem[]} routing_details - array with routing details\n * @property {string[]} cc - CC emails\n * @property {TemplateRoutingDetailsCCStep[]} cc_step - array of CC`s steps\n * @property {string} invite_link_instructions - invite link instructions\n ", - "start": 9864, - "end": 10264, - "loc": { - "start": { - "line": 349, - "column": 2 - }, - "end": { - "line": 356, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieves Routing Details of specified Template\n * @param {TemplateGetRoutingDetailsParams} data - get Routing Details payload\n * @param {function(err: ApiErrorResponse, res: TemplateGetRoutingDetailsResponse)} [callback] - error first node.js callback\n ", - "start": 10268, - "end": 10539, - "loc": { - "start": { - "line": 358, - "column": 2 - }, - "end": { - "line": 362, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 10542, - "end": 10548, - "loc": { - "start": { - "line": 363, - "column": 2 - }, - "end": { - "line": 363, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getRoutingDetails", - "start": 10549, - "end": 10566, - "loc": { - "start": { - "line": 363, - "column": 9 - }, - "end": { - "line": 363, - "column": 26 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10567, - "end": 10568, - "loc": { - "start": { - "line": 363, - "column": 27 - }, - "end": { - "line": 363, - "column": 28 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10568, - "end": 10569, - "loc": { - "start": { - "line": 363, - "column": 28 - }, - "end": { - "line": 363, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 10574, - "end": 10576, - "loc": { - "start": { - "line": 364, - "column": 4 - }, - "end": { - "line": 364, - "column": 6 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10576, - "end": 10577, - "loc": { - "start": { - "line": 364, - "column": 6 - }, - "end": { - "line": 364, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 10582, - "end": 10587, - "loc": { - "start": { - "line": 365, - "column": 4 - }, - "end": { - "line": 365, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10587, - "end": 10588, - "loc": { - "start": { - "line": 365, - "column": 9 - }, - "end": { - "line": 365, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10591, - "end": 10592, - "loc": { - "start": { - "line": 366, - "column": 2 - }, - "end": { - "line": 366, - "column": 3 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10592, - "end": 10593, - "loc": { - "start": { - "line": 366, - "column": 3 - }, - "end": { - "line": 366, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 10594, - "end": 10602, - "loc": { - "start": { - "line": 366, - "column": 5 - }, - "end": { - "line": 366, - "column": 13 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10602, - "end": 10603, - "loc": { - "start": { - "line": 366, - "column": 13 - }, - "end": { - "line": 366, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10604, - "end": 10605, - "loc": { - "start": { - "line": 366, - "column": 15 - }, - "end": { - "line": 366, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 10610, - "end": 10615, - "loc": { - "start": { - "line": 367, - "column": 4 - }, - "end": { - "line": 367, - "column": 9 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10622, - "end": 10623, - "loc": { - "start": { - "line": 368, - "column": 6 - }, - "end": { - "line": 368, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 10623, - "end": 10630, - "loc": { - "start": { - "line": 368, - "column": 7 - }, - "end": { - "line": 368, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10630, - "end": 10631, - "loc": { - "start": { - "line": 368, - "column": 14 - }, - "end": { - "line": 368, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 10631, - "end": 10650, - "loc": { - "start": { - "line": 368, - "column": 15 - }, - "end": { - "line": 368, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10650, - "end": 10651, - "loc": { - "start": { - "line": 368, - "column": 34 - }, - "end": { - "line": 368, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10651, - "end": 10652, - "loc": { - "start": { - "line": 368, - "column": 35 - }, - "end": { - "line": 368, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 10661, - "end": 10667, - "loc": { - "start": { - "line": 369, - "column": 8 - }, - "end": { - "line": 369, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10667, - "end": 10668, - "loc": { - "start": { - "line": 369, - "column": 14 - }, - "end": { - "line": 369, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "GET", - "start": 10669, - "end": 10674, - "loc": { - "start": { - "line": 369, - "column": 16 - }, - "end": { - "line": 369, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10674, - "end": 10675, - "loc": { - "start": { - "line": 369, - "column": 21 - }, - "end": { - "line": 369, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 10684, - "end": 10688, - "loc": { - "start": { - "line": 370, - "column": 8 - }, - "end": { - "line": 370, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10688, - "end": 10689, - "loc": { - "start": { - "line": 370, - "column": 12 - }, - "end": { - "line": 370, - "column": 13 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10690, - "end": 10691, - "loc": { - "start": { - "line": 370, - "column": 14 - }, - "end": { - "line": 370, - "column": 15 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/document/", - "start": 10691, - "end": 10701, - "loc": { - "start": { - "line": 370, - "column": 15 - }, - "end": { - "line": 370, - "column": 25 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10701, - "end": 10703, - "loc": { - "start": { - "line": 370, - "column": 25 - }, - "end": { - "line": 370, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 10703, - "end": 10705, - "loc": { - "start": { - "line": 370, - "column": 27 - }, - "end": { - "line": 370, - "column": 29 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10705, - "end": 10706, - "loc": { - "start": { - "line": 370, - "column": 29 - }, - "end": { - "line": 370, - "column": 30 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/template/routing/detail", - "start": 10706, - "end": 10730, - "loc": { - "start": { - "line": 370, - "column": 30 - }, - "end": { - "line": 370, - "column": 54 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10730, - "end": 10731, - "loc": { - "start": { - "line": 370, - "column": 54 - }, - "end": { - "line": 370, - "column": 55 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10731, - "end": 10732, - "loc": { - "start": { - "line": 370, - "column": 55 - }, - "end": { - "line": 370, - "column": 56 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 10741, - "end": 10754, - "loc": { - "start": { - "line": 371, - "column": 8 - }, - "end": { - "line": 371, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10754, - "end": 10755, - "loc": { - "start": { - "line": 371, - "column": 21 - }, - "end": { - "line": 371, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10756, - "end": 10757, - "loc": { - "start": { - "line": 371, - "column": 23 - }, - "end": { - "line": 371, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 10768, - "end": 10772, - "loc": { - "start": { - "line": 372, - "column": 10 - }, - "end": { - "line": 372, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10772, - "end": 10773, - "loc": { - "start": { - "line": 372, - "column": 14 - }, - "end": { - "line": 372, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 10774, - "end": 10782, - "loc": { - "start": { - "line": 372, - "column": 16 - }, - "end": { - "line": 372, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10782, - "end": 10783, - "loc": { - "start": { - "line": 372, - "column": 24 - }, - "end": { - "line": 372, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 10794, - "end": 10799, - "loc": { - "start": { - "line": 373, - "column": 10 - }, - "end": { - "line": 373, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10799, - "end": 10800, - "loc": { - "start": { - "line": 373, - "column": 15 - }, - "end": { - "line": 373, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10809, - "end": 10810, - "loc": { - "start": { - "line": 374, - "column": 8 - }, - "end": { - "line": 374, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10810, - "end": 10811, - "loc": { - "start": { - "line": 374, - "column": 9 - }, - "end": { - "line": 374, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10818, - "end": 10819, - "loc": { - "start": { - "line": 375, - "column": 6 - }, - "end": { - "line": 375, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10819, - "end": 10820, - "loc": { - "start": { - "line": 375, - "column": 7 - }, - "end": { - "line": 375, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10820, - "end": 10821, - "loc": { - "start": { - "line": 375, - "column": 8 - }, - "end": { - "line": 375, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 10822, - "end": 10837, - "loc": { - "start": { - "line": 375, - "column": 10 - }, - "end": { - "line": 375, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10837, - "end": 10838, - "loc": { - "start": { - "line": 375, - "column": 25 - }, - "end": { - "line": 375, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 10838, - "end": 10846, - "loc": { - "start": { - "line": 375, - "column": 26 - }, - "end": { - "line": 375, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10846, - "end": 10847, - "loc": { - "start": { - "line": 375, - "column": 34 - }, - "end": { - "line": 375, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10847, - "end": 10848, - "loc": { - "start": { - "line": 375, - "column": 35 - }, - "end": { - "line": 375, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10855, - "end": 10856, - "loc": { - "start": { - "line": 376, - "column": 6 - }, - "end": { - "line": 376, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 10856, - "end": 10858, - "loc": { - "start": { - "line": 376, - "column": 7 - }, - "end": { - "line": 376, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10858, - "end": 10859, - "loc": { - "start": { - "line": 376, - "column": 9 - }, - "end": { - "line": 376, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 10859, - "end": 10866, - "loc": { - "start": { - "line": 376, - "column": 10 - }, - "end": { - "line": 376, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10866, - "end": 10867, - "loc": { - "start": { - "line": 376, - "column": 17 - }, - "end": { - "line": 376, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 10868, - "end": 10880, - "loc": { - "start": { - "line": 376, - "column": 19 - }, - "end": { - "line": 376, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10880, - "end": 10881, - "loc": { - "start": { - "line": 376, - "column": 31 - }, - "end": { - "line": 376, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 10881, - "end": 10889, - "loc": { - "start": { - "line": 376, - "column": 32 - }, - "end": { - "line": 376, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10889, - "end": 10890, - "loc": { - "start": { - "line": 376, - "column": 40 - }, - "end": { - "line": 376, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10890, - "end": 10891, - "loc": { - "start": { - "line": 376, - "column": 41 - }, - "end": { - "line": 376, - "column": 42 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10898, - "end": 10899, - "loc": { - "start": { - "line": 377, - "column": 6 - }, - "end": { - "line": 377, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 10899, - "end": 10902, - "loc": { - "start": { - "line": 377, - "column": 7 - }, - "end": { - "line": 377, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10902, - "end": 10903, - "loc": { - "start": { - "line": 377, - "column": 10 - }, - "end": { - "line": 377, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10903, - "end": 10904, - "loc": { - "start": { - "line": 377, - "column": 11 - }, - "end": { - "line": 377, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10904, - "end": 10905, - "loc": { - "start": { - "line": 377, - "column": 12 - }, - "end": { - "line": 377, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10908, - "end": 10909, - "loc": { - "start": { - "line": 378, - "column": 2 - }, - "end": { - "line": 378, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Template Update Routing Details item data\n * @typedef {Object} TemplateUpdateRoutingDetailsItem\n * @property {string} default_email - default email for routing detail\n * @property {boolean} inviter_role - always `false`\n * @property {string} name - signer role (actor) name\n * @property {string} role_id - signer role (actor) unique ID\n * @property {number} signing_order - order number of signing step\n * @property {boolean} decline_by_signature - decline by signature flag\n ", - "start": 10913, - "end": 11416, - "loc": { - "start": { - "line": 380, - "column": 2 - }, - "end": { - "line": 389, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update Template Routing Details settings\n * @typedef {Object} TemplateUpdateRoutingDetailsSettings\n * @property {TemplateUpdateRoutingDetailsItem[]} template_data - array with routing details\n * @property {string[]} cc - CC emails\n * @property {TemplateRoutingDetailsCCStep[]} cc_step - array of CC steps\n * @property {string} [invite_link_instructions] - invite signing instructions\n ", - "start": 11420, - "end": 11828, - "loc": { - "start": { - "line": 391, - "column": 2 - }, - "end": { - "line": 398, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update Template Routing Details payload\n * @typedef {Object} TemplateUpdateRoutingDetailsParams\n * @property {string} id - an ID of specific Template\n * @property {string} token - your auth token\n * @property {TemplateUpdateRoutingDetailsSettings} data - update Template Routing Details settings\n ", - "start": 11832, - "end": 12150, - "loc": { - "start": { - "line": 400, - "column": 2 - }, - "end": { - "line": 406, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Update Template Routing Details response data\n * @typedef {Object} TemplateUpdateRoutingDetailsResponse\n * @property {string} id - unique ID of template routing details\n * @property {string} document_id - unique ID of Template\n * @property {TemplateUpdateRoutingDetailsItem[]} data - array with routing details\n * @property {string[]} cc - CC emails\n * @property {TemplateRoutingDetailsCCStep[]} cc_step - array of CC steps\n * @property {string} invite_link_instructions - invite signing instructions\n ", - "start": 12154, - "end": 12683, - "loc": { - "start": { - "line": 408, - "column": 2 - }, - "end": { - "line": 417, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Updates Routing Details of specified template\n * @param {TemplateUpdateRoutingDetailsParams} data - update Template Routing Details payload\n * @param {function(err: ApiErrorResponse, res: TemplateUpdateRoutingDetailsResponse)} [callback] - error first node.js callback\n ", - "start": 12687, - "end": 12974, - "loc": { - "start": { - "line": 419, - "column": 2 - }, - "end": { - "line": 423, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 12977, - "end": 12983, - "loc": { - "start": { - "line": 424, - "column": 2 - }, - "end": { - "line": 424, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "updateRoutingDetails", - "start": 12984, - "end": 13004, - "loc": { - "start": { - "line": 424, - "column": 9 - }, - "end": { - "line": 424, - "column": 29 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13005, - "end": 13006, - "loc": { - "start": { - "line": 424, - "column": 30 - }, - "end": { - "line": 424, - "column": 31 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13006, - "end": 13007, - "loc": { - "start": { - "line": 424, - "column": 31 - }, - "end": { - "line": 424, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 13012, - "end": 13014, - "loc": { - "start": { - "line": 425, - "column": 4 - }, - "end": { - "line": 425, - "column": 6 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13014, - "end": 13015, - "loc": { - "start": { - "line": 425, - "column": 6 - }, - "end": { - "line": 425, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 13020, - "end": 13025, - "loc": { - "start": { - "line": 426, - "column": 4 - }, - "end": { - "line": 426, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13025, - "end": 13026, - "loc": { - "start": { - "line": 426, - "column": 9 - }, - "end": { - "line": 426, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 13031, - "end": 13035, - "loc": { - "start": { - "line": 427, - "column": 4 - }, - "end": { - "line": 427, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13035, - "end": 13036, - "loc": { - "start": { - "line": 427, - "column": 8 - }, - "end": { - "line": 427, - "column": 9 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13039, - "end": 13040, - "loc": { - "start": { - "line": 428, - "column": 2 - }, - "end": { - "line": 428, - "column": 3 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13040, - "end": 13041, - "loc": { - "start": { - "line": 428, - "column": 3 - }, - "end": { - "line": 428, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 13042, - "end": 13050, - "loc": { - "start": { - "line": 428, - "column": 5 - }, - "end": { - "line": 428, - "column": 13 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13050, - "end": 13051, - "loc": { - "start": { - "line": 428, - "column": 13 - }, - "end": { - "line": 428, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13052, - "end": 13053, - "loc": { - "start": { - "line": 428, - "column": 15 - }, - "end": { - "line": 428, - "column": 16 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 13058, - "end": 13063, - "loc": { - "start": { - "line": 429, - "column": 4 - }, - "end": { - "line": 429, - "column": 9 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13064, - "end": 13065, - "loc": { - "start": { - "line": 429, - "column": 10 - }, - "end": { - "line": 429, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "template_data", - "start": 13072, - "end": 13085, - "loc": { - "start": { - "line": 430, - "column": 6 - }, - "end": { - "line": 430, - "column": 19 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13085, - "end": 13086, - "loc": { - "start": { - "line": 430, - "column": 19 - }, - "end": { - "line": 430, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cc", - "start": 13093, - "end": 13095, - "loc": { - "start": { - "line": 431, - "column": 6 - }, - "end": { - "line": 431, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13095, - "end": 13096, - "loc": { - "start": { - "line": 431, - "column": 8 - }, - "end": { - "line": 431, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cc_step", - "start": 13103, - "end": 13110, - "loc": { - "start": { - "line": 432, - "column": 6 - }, - "end": { - "line": 432, - "column": 13 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13110, - "end": 13111, - "loc": { - "start": { - "line": 432, - "column": 13 - }, - "end": { - "line": 432, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "invite_link_instructions", - "start": 13118, - "end": 13142, - "loc": { - "start": { - "line": 433, - "column": 6 - }, - "end": { - "line": 433, - "column": 30 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13142, - "end": 13143, - "loc": { - "start": { - "line": 433, - "column": 30 - }, - "end": { - "line": 433, - "column": 31 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13148, - "end": 13149, - "loc": { - "start": { - "line": 434, - "column": 4 - }, - "end": { - "line": 434, - "column": 5 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 13150, - "end": 13151, - "loc": { - "start": { - "line": 434, - "column": 6 - }, - "end": { - "line": 434, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 13152, - "end": 13156, - "loc": { - "start": { - "line": 434, - "column": 8 - }, - "end": { - "line": 434, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13156, - "end": 13157, - "loc": { - "start": { - "line": 434, - "column": 12 - }, - "end": { - "line": 434, - "column": 13 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 13162, - "end": 13167, - "loc": { - "start": { - "line": 435, - "column": 4 - }, - "end": { - "line": 435, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 13168, - "end": 13176, - "loc": { - "start": { - "line": 435, - "column": 10 - }, - "end": { - "line": 435, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 13177, - "end": 13178, - "loc": { - "start": { - "line": 435, - "column": 19 - }, - "end": { - "line": 435, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSON", - "start": 13179, - "end": 13183, - "loc": { - "start": { - "line": 435, - "column": 21 - }, - "end": { - "line": 435, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13183, - "end": 13184, - "loc": { - "start": { - "line": 435, - "column": 25 - }, - "end": { - "line": 435, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "stringify", - "start": 13184, - "end": 13193, - "loc": { - "start": { - "line": 435, - "column": 26 - }, - "end": { - "line": 435, - "column": 35 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13193, - "end": 13194, - "loc": { - "start": { - "line": 435, - "column": 35 - }, - "end": { - "line": 435, - "column": 36 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13194, - "end": 13195, - "loc": { - "start": { - "line": 435, - "column": 36 - }, - "end": { - "line": 435, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "template_data", - "start": 13202, - "end": 13215, - "loc": { - "start": { - "line": 436, - "column": 6 - }, - "end": { - "line": 436, - "column": 19 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13215, - "end": 13216, - "loc": { - "start": { - "line": 436, - "column": 19 - }, - "end": { - "line": 436, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cc", - "start": 13223, - "end": 13225, - "loc": { - "start": { - "line": 437, - "column": 6 - }, - "end": { - "line": 437, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13225, - "end": 13226, - "loc": { - "start": { - "line": 437, - "column": 8 - }, - "end": { - "line": 437, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cc_step", - "start": 13233, - "end": 13240, - "loc": { - "start": { - "line": 438, - "column": 6 - }, - "end": { - "line": 438, - "column": 13 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13240, - "end": 13241, - "loc": { - "start": { - "line": 438, - "column": 13 - }, - "end": { - "line": 438, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "invite_link_instructions", - "start": 13248, - "end": 13272, - "loc": { - "start": { - "line": 439, - "column": 6 - }, - "end": { - "line": 439, - "column": 30 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13272, - "end": 13273, - "loc": { - "start": { - "line": 439, - "column": 30 - }, - "end": { - "line": 439, - "column": 31 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13278, - "end": 13279, - "loc": { - "start": { - "line": 440, - "column": 4 - }, - "end": { - "line": 440, - "column": 5 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13279, - "end": 13280, - "loc": { - "start": { - "line": 440, - "column": 5 - }, - "end": { - "line": 440, - "column": 6 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13280, - "end": 13281, - "loc": { - "start": { - "line": 440, - "column": 6 - }, - "end": { - "line": 440, - "column": 7 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 13287, - "end": 13292, - "loc": { - "start": { - "line": 442, - "column": 4 - }, - "end": { - "line": 442, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "updateCallback", - "start": 13293, - "end": 13307, - "loc": { - "start": { - "line": 442, - "column": 10 - }, - "end": { - "line": 442, - "column": 24 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 13308, - "end": 13309, - "loc": { - "start": { - "line": 442, - "column": 25 - }, - "end": { - "line": 442, - "column": 26 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13310, - "end": 13311, - "loc": { - "start": { - "line": 442, - "column": 27 - }, - "end": { - "line": 442, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 13311, - "end": 13314, - "loc": { - "start": { - "line": 442, - "column": 28 - }, - "end": { - "line": 442, - "column": 31 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13314, - "end": 13315, - "loc": { - "start": { - "line": 442, - "column": 31 - }, - "end": { - "line": 442, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "res", - "start": 13316, - "end": 13319, - "loc": { - "start": { - "line": 442, - "column": 33 - }, - "end": { - "line": 442, - "column": 36 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13319, - "end": 13320, - "loc": { - "start": { - "line": 442, - "column": 36 - }, - "end": { - "line": 442, - "column": 37 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13321, - "end": 13323, - "loc": { - "start": { - "line": 442, - "column": 38 - }, - "end": { - "line": 442, - "column": 40 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13324, - "end": 13325, - "loc": { - "start": { - "line": 442, - "column": 41 - }, - "end": { - "line": 442, - "column": 42 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 13332, - "end": 13334, - "loc": { - "start": { - "line": 443, - "column": 6 - }, - "end": { - "line": 443, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13335, - "end": 13336, - "loc": { - "start": { - "line": 443, - "column": 9 - }, - "end": { - "line": 443, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 13336, - "end": 13339, - "loc": { - "start": { - "line": 443, - "column": 10 - }, - "end": { - "line": 443, - "column": 13 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13339, - "end": 13340, - "loc": { - "start": { - "line": 443, - "column": 13 - }, - "end": { - "line": 443, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13341, - "end": 13342, - "loc": { - "start": { - "line": 443, - "column": 15 - }, - "end": { - "line": 443, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 13351, - "end": 13359, - "loc": { - "start": { - "line": 444, - "column": 8 - }, - "end": { - "line": 444, - "column": 16 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13359, - "end": 13360, - "loc": { - "start": { - "line": 444, - "column": 16 - }, - "end": { - "line": 444, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 13360, - "end": 13363, - "loc": { - "start": { - "line": 444, - "column": 17 - }, - "end": { - "line": 444, - "column": 20 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13363, - "end": 13364, - "loc": { - "start": { - "line": 444, - "column": 20 - }, - "end": { - "line": 444, - "column": 21 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13364, - "end": 13365, - "loc": { - "start": { - "line": 444, - "column": 21 - }, - "end": { - "line": 444, - "column": 22 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 13374, - "end": 13380, - "loc": { - "start": { - "line": 445, - "column": 8 - }, - "end": { - "line": 445, - "column": 14 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13380, - "end": 13381, - "loc": { - "start": { - "line": 445, - "column": 14 - }, - "end": { - "line": 445, - "column": 15 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13388, - "end": 13389, - "loc": { - "start": { - "line": 446, - "column": 6 - }, - "end": { - "line": 446, - "column": 7 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 13390, - "end": 13394, - "loc": { - "start": { - "line": 446, - "column": 8 - }, - "end": { - "line": 446, - "column": 12 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13395, - "end": 13396, - "loc": { - "start": { - "line": 446, - "column": 13 - }, - "end": { - "line": 446, - "column": 14 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 13405, - "end": 13410, - "loc": { - "start": { - "line": 447, - "column": 8 - }, - "end": { - "line": 447, - "column": 13 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13411, - "end": 13412, - "loc": { - "start": { - "line": 447, - "column": 14 - }, - "end": { - "line": 447, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 13413, - "end": 13417, - "loc": { - "start": { - "line": 447, - "column": 16 - }, - "end": { - "line": 447, - "column": 20 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13417, - "end": 13418, - "loc": { - "start": { - "line": 447, - "column": 20 - }, - "end": { - "line": 447, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "routingDetails", - "start": 13419, - "end": 13433, - "loc": { - "start": { - "line": 447, - "column": 22 - }, - "end": { - "line": 447, - "column": 36 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13434, - "end": 13435, - "loc": { - "start": { - "line": 447, - "column": 37 - }, - "end": { - "line": 447, - "column": 38 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 13436, - "end": 13437, - "loc": { - "start": { - "line": 447, - "column": 39 - }, - "end": { - "line": 447, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "res", - "start": 13438, - "end": 13441, - "loc": { - "start": { - "line": 447, - "column": 41 - }, - "end": { - "line": 447, - "column": 44 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13441, - "end": 13442, - "loc": { - "start": { - "line": 447, - "column": 44 - }, - "end": { - "line": 447, - "column": 45 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 13451, - "end": 13456, - "loc": { - "start": { - "line": 448, - "column": 8 - }, - "end": { - "line": 448, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rolesUpdated", - "start": 13457, - "end": 13469, - "loc": { - "start": { - "line": 448, - "column": 14 - }, - "end": { - "line": 448, - "column": 26 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 13470, - "end": 13471, - "loc": { - "start": { - "line": 448, - "column": 27 - }, - "end": { - "line": 448, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "routingDetails", - "start": 13472, - "end": 13486, - "loc": { - "start": { - "line": 448, - "column": 29 - }, - "end": { - "line": 448, - "column": 43 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13497, - "end": 13498, - "loc": { - "start": { - "line": 449, - "column": 10 - }, - "end": { - "line": 449, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "map", - "start": 13498, - "end": 13501, - "loc": { - "start": { - "line": 449, - "column": 11 - }, - "end": { - "line": 449, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13501, - "end": 13502, - "loc": { - "start": { - "line": 449, - "column": 14 - }, - "end": { - "line": 449, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "route", - "start": 13502, - "end": 13507, - "loc": { - "start": { - "line": 449, - "column": 15 - }, - "end": { - "line": 449, - "column": 20 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13508, - "end": 13510, - "loc": { - "start": { - "line": 449, - "column": 21 - }, - "end": { - "line": 449, - "column": 23 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13511, - "end": 13512, - "loc": { - "start": { - "line": 449, - "column": 24 - }, - "end": { - "line": 449, - "column": 25 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 13525, - "end": 13530, - "loc": { - "start": { - "line": 450, - "column": 12 - }, - "end": { - "line": 450, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13531, - "end": 13532, - "loc": { - "start": { - "line": 450, - "column": 18 - }, - "end": { - "line": 450, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "role_id", - "start": 13533, - "end": 13540, - "loc": { - "start": { - "line": 450, - "column": 20 - }, - "end": { - "line": 450, - "column": 27 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13540, - "end": 13541, - "loc": { - "start": { - "line": 450, - "column": 27 - }, - "end": { - "line": 450, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "signing_order", - "start": 13542, - "end": 13555, - "loc": { - "start": { - "line": 450, - "column": 29 - }, - "end": { - "line": 450, - "column": 42 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13556, - "end": 13557, - "loc": { - "start": { - "line": 450, - "column": 43 - }, - "end": { - "line": 450, - "column": 44 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 13558, - "end": 13559, - "loc": { - "start": { - "line": 450, - "column": 45 - }, - "end": { - "line": 450, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "route", - "start": 13560, - "end": 13565, - "loc": { - "start": { - "line": 450, - "column": 47 - }, - "end": { - "line": 450, - "column": 52 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13565, - "end": 13566, - "loc": { - "start": { - "line": 450, - "column": 52 - }, - "end": { - "line": 450, - "column": 53 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 13579, - "end": 13585, - "loc": { - "start": { - "line": 451, - "column": 12 - }, - "end": { - "line": 451, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "promisify", - "start": 13586, - "end": 13595, - "loc": { - "start": { - "line": 451, - "column": 19 - }, - "end": { - "line": 451, - "column": 28 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13595, - "end": 13596, - "loc": { - "start": { - "line": 451, - "column": 28 - }, - "end": { - "line": 451, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "updateSigningRole", - "start": 13596, - "end": 13613, - "loc": { - "start": { - "line": 451, - "column": 29 - }, - "end": { - "line": 451, - "column": 46 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13613, - "end": 13614, - "loc": { - "start": { - "line": 451, - "column": 46 - }, - "end": { - "line": 451, - "column": 47 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13614, - "end": 13615, - "loc": { - "start": { - "line": 451, - "column": 47 - }, - "end": { - "line": 451, - "column": 48 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13615, - "end": 13616, - "loc": { - "start": { - "line": 451, - "column": 48 - }, - "end": { - "line": 451, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 13631, - "end": 13633, - "loc": { - "start": { - "line": 452, - "column": 14 - }, - "end": { - "line": 452, - "column": 16 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13633, - "end": 13634, - "loc": { - "start": { - "line": 452, - "column": 16 - }, - "end": { - "line": 452, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "role_id", - "start": 13635, - "end": 13642, - "loc": { - "start": { - "line": 452, - "column": 18 - }, - "end": { - "line": 452, - "column": 25 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13642, - "end": 13643, - "loc": { - "start": { - "line": 452, - "column": 25 - }, - "end": { - "line": 452, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "signing_order", - "start": 13658, - "end": 13671, - "loc": { - "start": { - "line": 453, - "column": 14 - }, - "end": { - "line": 453, - "column": 27 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13671, - "end": 13672, - "loc": { - "start": { - "line": 453, - "column": 27 - }, - "end": { - "line": 453, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 13687, - "end": 13692, - "loc": { - "start": { - "line": 454, - "column": 14 - }, - "end": { - "line": 454, - "column": 19 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13692, - "end": 13693, - "loc": { - "start": { - "line": 454, - "column": 19 - }, - "end": { - "line": 454, - "column": 20 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13706, - "end": 13707, - "loc": { - "start": { - "line": 455, - "column": 12 - }, - "end": { - "line": 455, - "column": 13 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13707, - "end": 13708, - "loc": { - "start": { - "line": 455, - "column": 13 - }, - "end": { - "line": 455, - "column": 14 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13708, - "end": 13709, - "loc": { - "start": { - "line": 455, - "column": 14 - }, - "end": { - "line": 455, - "column": 15 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13720, - "end": 13721, - "loc": { - "start": { - "line": 456, - "column": 10 - }, - "end": { - "line": 456, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13721, - "end": 13722, - "loc": { - "start": { - "line": 456, - "column": 11 - }, - "end": { - "line": 456, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13722, - "end": 13723, - "loc": { - "start": { - "line": 456, - "column": 12 - }, - "end": { - "line": 456, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Promise", - "start": 13733, - "end": 13740, - "loc": { - "start": { - "line": 458, - "column": 8 - }, - "end": { - "line": 458, - "column": 15 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13740, - "end": 13741, - "loc": { - "start": { - "line": 458, - "column": 15 - }, - "end": { - "line": 458, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "all", - "start": 13741, - "end": 13744, - "loc": { - "start": { - "line": 458, - "column": 16 - }, - "end": { - "line": 458, - "column": 19 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13744, - "end": 13745, - "loc": { - "start": { - "line": 458, - "column": 19 - }, - "end": { - "line": 458, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rolesUpdated", - "start": 13745, - "end": 13757, - "loc": { - "start": { - "line": 458, - "column": 20 - }, - "end": { - "line": 458, - "column": 32 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13757, - "end": 13758, - "loc": { - "start": { - "line": 458, - "column": 32 - }, - "end": { - "line": 458, - "column": 33 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13769, - "end": 13770, - "loc": { - "start": { - "line": 459, - "column": 10 - }, - "end": { - "line": 459, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "then", - "start": 13770, - "end": 13774, - "loc": { - "start": { - "line": 459, - "column": 11 - }, - "end": { - "line": 459, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13774, - "end": 13775, - "loc": { - "start": { - "line": 459, - "column": 15 - }, - "end": { - "line": 459, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "roleUpdatesRes", - "start": 13775, - "end": 13789, - "loc": { - "start": { - "line": 459, - "column": 16 - }, - "end": { - "line": 459, - "column": 30 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13790, - "end": 13792, - "loc": { - "start": { - "line": 459, - "column": 31 - }, - "end": { - "line": 459, - "column": 33 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13793, - "end": 13794, - "loc": { - "start": { - "line": 459, - "column": 34 - }, - "end": { - "line": 459, - "column": 35 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 13807, - "end": 13813, - "loc": { - "start": { - "line": 460, - "column": 12 - }, - "end": { - "line": 460, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "roleUpdatesRes", - "start": 13814, - "end": 13828, - "loc": { - "start": { - "line": 460, - "column": 19 - }, - "end": { - "line": 460, - "column": 33 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13828, - "end": 13829, - "loc": { - "start": { - "line": 460, - "column": 33 - }, - "end": { - "line": 460, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "reduce", - "start": 13829, - "end": 13835, - "loc": { - "start": { - "line": 460, - "column": 34 - }, - "end": { - "line": 460, - "column": 40 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13835, - "end": 13836, - "loc": { - "start": { - "line": 460, - "column": 40 - }, - "end": { - "line": 460, - "column": 41 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13836, - "end": 13837, - "loc": { - "start": { - "line": 460, - "column": 41 - }, - "end": { - "line": 460, - "column": 42 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "generalStatus", - "start": 13837, - "end": 13850, - "loc": { - "start": { - "line": 460, - "column": 42 - }, - "end": { - "line": 460, - "column": 55 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13850, - "end": 13851, - "loc": { - "start": { - "line": 460, - "column": 55 - }, - "end": { - "line": 460, - "column": 56 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "roleUpdateRes", - "start": 13852, - "end": 13865, - "loc": { - "start": { - "line": 460, - "column": 57 - }, - "end": { - "line": 460, - "column": 70 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13865, - "end": 13866, - "loc": { - "start": { - "line": 460, - "column": 70 - }, - "end": { - "line": 460, - "column": 71 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13867, - "end": 13869, - "loc": { - "start": { - "line": 460, - "column": 72 - }, - "end": { - "line": 460, - "column": 74 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13870, - "end": 13871, - "loc": { - "start": { - "line": 460, - "column": 75 - }, - "end": { - "line": 460, - "column": 76 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "generalStatus", - "start": 13871, - "end": 13884, - "loc": { - "start": { - "line": 460, - "column": 76 - }, - "end": { - "line": 460, - "column": 89 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 13885, - "end": 13887, - "loc": { - "start": { - "line": 460, - "column": 90 - }, - "end": { - "line": 460, - "column": 92 - } - } - }, - { - "type": { - "label": "prefix", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "!", - "start": 13888, - "end": 13889, - "loc": { - "start": { - "line": 460, - "column": 93 - }, - "end": { - "line": 460, - "column": 94 - } - } - }, - { - "type": { - "label": "prefix", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "!", - "start": 13889, - "end": 13890, - "loc": { - "start": { - "line": 460, - "column": 94 - }, - "end": { - "line": 460, - "column": 95 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "roleUpdateRes", - "start": 13890, - "end": 13903, - "loc": { - "start": { - "line": 460, - "column": 95 - }, - "end": { - "line": 460, - "column": 108 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13903, - "end": 13904, - "loc": { - "start": { - "line": 460, - "column": 108 - }, - "end": { - "line": 460, - "column": 109 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 13904, - "end": 13906, - "loc": { - "start": { - "line": 460, - "column": 109 - }, - "end": { - "line": 460, - "column": 111 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13906, - "end": 13907, - "loc": { - "start": { - "line": 460, - "column": 111 - }, - "end": { - "line": 460, - "column": 112 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13907, - "end": 13908, - "loc": { - "start": { - "line": 460, - "column": 112 - }, - "end": { - "line": 460, - "column": 113 - } - } - }, - { - "type": { - "label": "true", - "keyword": "true", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "true", - "start": 13909, - "end": 13913, - "loc": { - "start": { - "line": 460, - "column": 114 - }, - "end": { - "line": 460, - "column": 118 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13913, - "end": 13914, - "loc": { - "start": { - "line": 460, - "column": 118 - }, - "end": { - "line": 460, - "column": 119 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13914, - "end": 13915, - "loc": { - "start": { - "line": 460, - "column": 119 - }, - "end": { - "line": 460, - "column": 120 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13926, - "end": 13927, - "loc": { - "start": { - "line": 461, - "column": 10 - }, - "end": { - "line": 461, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13927, - "end": 13928, - "loc": { - "start": { - "line": 461, - "column": 11 - }, - "end": { - "line": 461, - "column": 12 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13939, - "end": 13940, - "loc": { - "start": { - "line": 462, - "column": 10 - }, - "end": { - "line": 462, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "then", - "start": 13940, - "end": 13944, - "loc": { - "start": { - "line": 462, - "column": 11 - }, - "end": { - "line": 462, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13944, - "end": 13945, - "loc": { - "start": { - "line": 462, - "column": 15 - }, - "end": { - "line": 462, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "allRolesUpdated", - "start": 13945, - "end": 13960, - "loc": { - "start": { - "line": 462, - "column": 16 - }, - "end": { - "line": 462, - "column": 31 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13961, - "end": 13963, - "loc": { - "start": { - "line": 462, - "column": 32 - }, - "end": { - "line": 462, - "column": 34 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13964, - "end": 13965, - "loc": { - "start": { - "line": 462, - "column": 35 - }, - "end": { - "line": 462, - "column": 36 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 13978, - "end": 13980, - "loc": { - "start": { - "line": 463, - "column": 12 - }, - "end": { - "line": 463, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13981, - "end": 13982, - "loc": { - "start": { - "line": 463, - "column": 15 - }, - "end": { - "line": 463, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "allRolesUpdated", - "start": 13982, - "end": 13997, - "loc": { - "start": { - "line": 463, - "column": 16 - }, - "end": { - "line": 463, - "column": 31 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13997, - "end": 13998, - "loc": { - "start": { - "line": 463, - "column": 31 - }, - "end": { - "line": 463, - "column": 32 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13999, - "end": 14000, - "loc": { - "start": { - "line": 463, - "column": 33 - }, - "end": { - "line": 463, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 14015, - "end": 14023, - "loc": { - "start": { - "line": 464, - "column": 14 - }, - "end": { - "line": 464, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14023, - "end": 14024, - "loc": { - "start": { - "line": 464, - "column": 22 - }, - "end": { - "line": 464, - "column": 23 - } - } - }, - { - "type": { - "label": "null", - "keyword": "null", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "null", - "start": 14024, - "end": 14028, - "loc": { - "start": { - "line": 464, - "column": 23 - }, - "end": { - "line": 464, - "column": 27 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14028, - "end": 14029, - "loc": { - "start": { - "line": 464, - "column": 27 - }, - "end": { - "line": 464, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "res", - "start": 14030, - "end": 14033, - "loc": { - "start": { - "line": 464, - "column": 29 - }, - "end": { - "line": 464, - "column": 32 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14033, - "end": 14034, - "loc": { - "start": { - "line": 464, - "column": 32 - }, - "end": { - "line": 464, - "column": 33 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14034, - "end": 14035, - "loc": { - "start": { - "line": 464, - "column": 33 - }, - "end": { - "line": 464, - "column": 34 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 14050, - "end": 14056, - "loc": { - "start": { - "line": 465, - "column": 14 - }, - "end": { - "line": 465, - "column": 20 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14056, - "end": 14057, - "loc": { - "start": { - "line": 465, - "column": 20 - }, - "end": { - "line": 465, - "column": 21 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14070, - "end": 14071, - "loc": { - "start": { - "line": 466, - "column": 12 - }, - "end": { - "line": 466, - "column": 13 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 14072, - "end": 14076, - "loc": { - "start": { - "line": 466, - "column": 14 - }, - "end": { - "line": 466, - "column": 18 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14077, - "end": 14078, - "loc": { - "start": { - "line": 466, - "column": 19 - }, - "end": { - "line": 466, - "column": 20 - } - } - }, - { - "type": { - "label": "throw", - "keyword": "throw", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "throw", - "start": 14093, - "end": 14098, - "loc": { - "start": { - "line": 467, - "column": 14 - }, - "end": { - "line": 467, - "column": 19 - } - } - }, - { - "type": { - "label": "new", - "keyword": "new", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "new", - "start": 14099, - "end": 14102, - "loc": { - "start": { - "line": 467, - "column": 20 - }, - "end": { - "line": 467, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Error", - "start": 14103, - "end": 14108, - "loc": { - "start": { - "line": 467, - "column": 24 - }, - "end": { - "line": 467, - "column": 29 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14108, - "end": 14109, - "loc": { - "start": { - "line": 467, - "column": 29 - }, - "end": { - "line": 467, - "column": 30 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Some roles (actors) where not updated", - "start": 14109, - "end": 14148, - "loc": { - "start": { - "line": 467, - "column": 30 - }, - "end": { - "line": 467, - "column": 69 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14148, - "end": 14149, - "loc": { - "start": { - "line": 467, - "column": 69 - }, - "end": { - "line": 467, - "column": 70 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14149, - "end": 14150, - "loc": { - "start": { - "line": 467, - "column": 70 - }, - "end": { - "line": 467, - "column": 71 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14163, - "end": 14164, - "loc": { - "start": { - "line": 468, - "column": 12 - }, - "end": { - "line": 468, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14175, - "end": 14176, - "loc": { - "start": { - "line": 469, - "column": 10 - }, - "end": { - "line": 469, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14176, - "end": 14177, - "loc": { - "start": { - "line": 469, - "column": 11 - }, - "end": { - "line": 469, - "column": 12 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14188, - "end": 14189, - "loc": { - "start": { - "line": 470, - "column": 10 - }, - "end": { - "line": 470, - "column": 11 - } - } - }, - { - "type": { - "label": "catch", - "keyword": "catch", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "catch", - "start": 14189, - "end": 14194, - "loc": { - "start": { - "line": 470, - "column": 11 - }, - "end": { - "line": 470, - "column": 16 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14194, - "end": 14195, - "loc": { - "start": { - "line": 470, - "column": 16 - }, - "end": { - "line": 470, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "roleUpdatesErr", - "start": 14195, - "end": 14209, - "loc": { - "start": { - "line": 470, - "column": 17 - }, - "end": { - "line": 470, - "column": 31 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14210, - "end": 14212, - "loc": { - "start": { - "line": 470, - "column": 32 - }, - "end": { - "line": 470, - "column": 34 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14213, - "end": 14214, - "loc": { - "start": { - "line": 470, - "column": 35 - }, - "end": { - "line": 470, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 14227, - "end": 14235, - "loc": { - "start": { - "line": 471, - "column": 12 - }, - "end": { - "line": 471, - "column": 20 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14235, - "end": 14236, - "loc": { - "start": { - "line": 471, - "column": 20 - }, - "end": { - "line": 471, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "roleUpdatesErr", - "start": 14236, - "end": 14250, - "loc": { - "start": { - "line": 471, - "column": 21 - }, - "end": { - "line": 471, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14250, - "end": 14251, - "loc": { - "start": { - "line": 471, - "column": 35 - }, - "end": { - "line": 471, - "column": 36 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14251, - "end": 14252, - "loc": { - "start": { - "line": 471, - "column": 36 - }, - "end": { - "line": 471, - "column": 37 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 14265, - "end": 14271, - "loc": { - "start": { - "line": 472, - "column": 12 - }, - "end": { - "line": 472, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14271, - "end": 14272, - "loc": { - "start": { - "line": 472, - "column": 18 - }, - "end": { - "line": 472, - "column": 19 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14283, - "end": 14284, - "loc": { - "start": { - "line": 473, - "column": 10 - }, - "end": { - "line": 473, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14284, - "end": 14285, - "loc": { - "start": { - "line": 473, - "column": 11 - }, - "end": { - "line": 473, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14285, - "end": 14286, - "loc": { - "start": { - "line": 473, - "column": 12 - }, - "end": { - "line": 473, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14293, - "end": 14294, - "loc": { - "start": { - "line": 474, - "column": 6 - }, - "end": { - "line": 474, - "column": 7 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14299, - "end": 14300, - "loc": { - "start": { - "line": 475, - "column": 4 - }, - "end": { - "line": 475, - "column": 5 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14300, - "end": 14301, - "loc": { - "start": { - "line": 475, - "column": 5 - }, - "end": { - "line": 475, - "column": 6 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 14307, - "end": 14312, - "loc": { - "start": { - "line": 477, - "column": 4 - }, - "end": { - "line": 477, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 14313, - "end": 14316, - "loc": { - "start": { - "line": 477, - "column": 10 - }, - "end": { - "line": 477, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 14317, - "end": 14318, - "loc": { - "start": { - "line": 477, - "column": 14 - }, - "end": { - "line": 477, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 14319, - "end": 14324, - "loc": { - "start": { - "line": 477, - "column": 16 - }, - "end": { - "line": 477, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14331, - "end": 14332, - "loc": { - "start": { - "line": 478, - "column": 6 - }, - "end": { - "line": 478, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 14332, - "end": 14339, - "loc": { - "start": { - "line": 478, - "column": 7 - }, - "end": { - "line": 478, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14339, - "end": 14340, - "loc": { - "start": { - "line": 478, - "column": 14 - }, - "end": { - "line": 478, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 14340, - "end": 14359, - "loc": { - "start": { - "line": 478, - "column": 15 - }, - "end": { - "line": 478, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14359, - "end": 14360, - "loc": { - "start": { - "line": 478, - "column": 34 - }, - "end": { - "line": 478, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14360, - "end": 14361, - "loc": { - "start": { - "line": 478, - "column": 35 - }, - "end": { - "line": 478, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 14370, - "end": 14376, - "loc": { - "start": { - "line": 479, - "column": 8 - }, - "end": { - "line": 479, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14376, - "end": 14377, - "loc": { - "start": { - "line": 479, - "column": 14 - }, - "end": { - "line": 479, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "PUT", - "start": 14378, - "end": 14383, - "loc": { - "start": { - "line": 479, - "column": 16 - }, - "end": { - "line": 479, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14383, - "end": 14384, - "loc": { - "start": { - "line": 479, - "column": 21 - }, - "end": { - "line": 479, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 14393, - "end": 14397, - "loc": { - "start": { - "line": 480, - "column": 8 - }, - "end": { - "line": 480, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14397, - "end": 14398, - "loc": { - "start": { - "line": 480, - "column": 12 - }, - "end": { - "line": 480, - "column": 13 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14399, - "end": 14400, - "loc": { - "start": { - "line": 480, - "column": 14 - }, - "end": { - "line": 480, - "column": 15 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/document/", - "start": 14400, - "end": 14410, - "loc": { - "start": { - "line": 480, - "column": 15 - }, - "end": { - "line": 480, - "column": 25 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14410, - "end": 14412, - "loc": { - "start": { - "line": 480, - "column": 25 - }, - "end": { - "line": 480, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 14412, - "end": 14414, - "loc": { - "start": { - "line": 480, - "column": 27 - }, - "end": { - "line": 480, - "column": 29 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14414, - "end": 14415, - "loc": { - "start": { - "line": 480, - "column": 29 - }, - "end": { - "line": 480, - "column": 30 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/template/routing/detail", - "start": 14415, - "end": 14439, - "loc": { - "start": { - "line": 480, - "column": 30 - }, - "end": { - "line": 480, - "column": 54 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14439, - "end": 14440, - "loc": { - "start": { - "line": 480, - "column": 54 - }, - "end": { - "line": 480, - "column": 55 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14440, - "end": 14441, - "loc": { - "start": { - "line": 480, - "column": 55 - }, - "end": { - "line": 480, - "column": 56 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 14450, - "end": 14463, - "loc": { - "start": { - "line": 481, - "column": 8 - }, - "end": { - "line": 481, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14463, - "end": 14464, - "loc": { - "start": { - "line": 481, - "column": 21 - }, - "end": { - "line": 481, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14465, - "end": 14466, - "loc": { - "start": { - "line": 481, - "column": 23 - }, - "end": { - "line": 481, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 14477, - "end": 14481, - "loc": { - "start": { - "line": 482, - "column": 10 - }, - "end": { - "line": 482, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14481, - "end": 14482, - "loc": { - "start": { - "line": 482, - "column": 14 - }, - "end": { - "line": 482, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 14483, - "end": 14491, - "loc": { - "start": { - "line": 482, - "column": 16 - }, - "end": { - "line": 482, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14491, - "end": 14492, - "loc": { - "start": { - "line": 482, - "column": 24 - }, - "end": { - "line": 482, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 14503, - "end": 14508, - "loc": { - "start": { - "line": 483, - "column": 10 - }, - "end": { - "line": 483, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14508, - "end": 14509, - "loc": { - "start": { - "line": 483, - "column": 15 - }, - "end": { - "line": 483, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14518, - "end": 14519, - "loc": { - "start": { - "line": 484, - "column": 8 - }, - "end": { - "line": 484, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14519, - "end": 14520, - "loc": { - "start": { - "line": 484, - "column": 9 - }, - "end": { - "line": 484, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 14529, - "end": 14536, - "loc": { - "start": { - "line": 485, - "column": 8 - }, - "end": { - "line": 485, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14536, - "end": 14537, - "loc": { - "start": { - "line": 485, - "column": 15 - }, - "end": { - "line": 485, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14538, - "end": 14539, - "loc": { - "start": { - "line": 485, - "column": 17 - }, - "end": { - "line": 485, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type", - "start": 14550, - "end": 14564, - "loc": { - "start": { - "line": 486, - "column": 10 - }, - "end": { - "line": 486, - "column": 24 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14564, - "end": 14565, - "loc": { - "start": { - "line": 486, - "column": 24 - }, - "end": { - "line": 486, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/json", - "start": 14566, - "end": 14584, - "loc": { - "start": { - "line": 486, - "column": 26 - }, - "end": { - "line": 486, - "column": 44 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14584, - "end": 14585, - "loc": { - "start": { - "line": 486, - "column": 44 - }, - "end": { - "line": 486, - "column": 45 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Length", - "start": 14596, - "end": 14612, - "loc": { - "start": { - "line": 487, - "column": 10 - }, - "end": { - "line": 487, - "column": 26 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14612, - "end": 14613, - "loc": { - "start": { - "line": 487, - "column": 26 - }, - "end": { - "line": 487, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 14614, - "end": 14620, - "loc": { - "start": { - "line": 487, - "column": 28 - }, - "end": { - "line": 487, - "column": 34 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14620, - "end": 14621, - "loc": { - "start": { - "line": 487, - "column": 34 - }, - "end": { - "line": 487, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "byteLength", - "start": 14621, - "end": 14631, - "loc": { - "start": { - "line": 487, - "column": 35 - }, - "end": { - "line": 487, - "column": 45 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14631, - "end": 14632, - "loc": { - "start": { - "line": 487, - "column": 45 - }, - "end": { - "line": 487, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 14632, - "end": 14640, - "loc": { - "start": { - "line": 487, - "column": 46 - }, - "end": { - "line": 487, - "column": 54 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14640, - "end": 14641, - "loc": { - "start": { - "line": 487, - "column": 54 - }, - "end": { - "line": 487, - "column": 55 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14641, - "end": 14642, - "loc": { - "start": { - "line": 487, - "column": 55 - }, - "end": { - "line": 487, - "column": 56 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14651, - "end": 14652, - "loc": { - "start": { - "line": 488, - "column": 8 - }, - "end": { - "line": 488, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14652, - "end": 14653, - "loc": { - "start": { - "line": 488, - "column": 9 - }, - "end": { - "line": 488, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14660, - "end": 14661, - "loc": { - "start": { - "line": 489, - "column": 6 - }, - "end": { - "line": 489, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14661, - "end": 14662, - "loc": { - "start": { - "line": 489, - "column": 7 - }, - "end": { - "line": 489, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14662, - "end": 14663, - "loc": { - "start": { - "line": 489, - "column": 8 - }, - "end": { - "line": 489, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 14664, - "end": 14679, - "loc": { - "start": { - "line": 489, - "column": 10 - }, - "end": { - "line": 489, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14679, - "end": 14680, - "loc": { - "start": { - "line": 489, - "column": 25 - }, - "end": { - "line": 489, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "updateCallback", - "start": 14680, - "end": 14694, - "loc": { - "start": { - "line": 489, - "column": 26 - }, - "end": { - "line": 489, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14694, - "end": 14695, - "loc": { - "start": { - "line": 489, - "column": 40 - }, - "end": { - "line": 489, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14695, - "end": 14696, - "loc": { - "start": { - "line": 489, - "column": 41 - }, - "end": { - "line": 489, - "column": 42 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14703, - "end": 14704, - "loc": { - "start": { - "line": 490, - "column": 6 - }, - "end": { - "line": 490, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 14704, - "end": 14706, - "loc": { - "start": { - "line": 490, - "column": 7 - }, - "end": { - "line": 490, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14706, - "end": 14707, - "loc": { - "start": { - "line": 490, - "column": 9 - }, - "end": { - "line": 490, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 14707, - "end": 14714, - "loc": { - "start": { - "line": 490, - "column": 10 - }, - "end": { - "line": 490, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14714, - "end": 14715, - "loc": { - "start": { - "line": 490, - "column": 17 - }, - "end": { - "line": 490, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 14716, - "end": 14728, - "loc": { - "start": { - "line": 490, - "column": 19 - }, - "end": { - "line": 490, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14728, - "end": 14729, - "loc": { - "start": { - "line": 490, - "column": 31 - }, - "end": { - "line": 490, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 14729, - "end": 14737, - "loc": { - "start": { - "line": 490, - "column": 32 - }, - "end": { - "line": 490, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14737, - "end": 14738, - "loc": { - "start": { - "line": 490, - "column": 40 - }, - "end": { - "line": 490, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14738, - "end": 14739, - "loc": { - "start": { - "line": 490, - "column": 41 - }, - "end": { - "line": 490, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14739, - "end": 14740, - "loc": { - "start": { - "line": 490, - "column": 42 - }, - "end": { - "line": 490, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 14746, - "end": 14749, - "loc": { - "start": { - "line": 492, - "column": 4 - }, - "end": { - "line": 492, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14749, - "end": 14750, - "loc": { - "start": { - "line": 492, - "column": 7 - }, - "end": { - "line": 492, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "write", - "start": 14750, - "end": 14755, - "loc": { - "start": { - "line": 492, - "column": 8 - }, - "end": { - "line": 492, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14755, - "end": 14756, - "loc": { - "start": { - "line": 492, - "column": 13 - }, - "end": { - "line": 492, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 14756, - "end": 14764, - "loc": { - "start": { - "line": 492, - "column": 14 - }, - "end": { - "line": 492, - "column": 22 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14764, - "end": 14765, - "loc": { - "start": { - "line": 492, - "column": 22 - }, - "end": { - "line": 492, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14765, - "end": 14766, - "loc": { - "start": { - "line": 492, - "column": 23 - }, - "end": { - "line": 492, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 14771, - "end": 14774, - "loc": { - "start": { - "line": 493, - "column": 4 - }, - "end": { - "line": 493, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14774, - "end": 14775, - "loc": { - "start": { - "line": 493, - "column": 7 - }, - "end": { - "line": 493, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 14775, - "end": 14778, - "loc": { - "start": { - "line": 493, - "column": 8 - }, - "end": { - "line": 493, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14778, - "end": 14779, - "loc": { - "start": { - "line": 493, - "column": 11 - }, - "end": { - "line": 493, - "column": 12 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14779, - "end": 14780, - "loc": { - "start": { - "line": 493, - "column": 12 - }, - "end": { - "line": 493, - "column": 13 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14780, - "end": 14781, - "loc": { - "start": { - "line": 493, - "column": 13 - }, - "end": { - "line": 493, - "column": 14 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14784, - "end": 14785, - "loc": { - "start": { - "line": 494, - "column": 2 - }, - "end": { - "line": 494, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Template Bulk Invite settings\n * @typedef {Object} TemplateBulkInviteSettings\n * @property {string} file - path to .csv file with roles and their emails. Max file size should be <= 1 Megabyte\n * @property {string} folder_id - an ID of folder where signed documents will be saved\n * @property {number} [client_timestamp] - client timestamp in seconds\n * @property {string} [document_name] - setup prefix for each document name\n * @property {string} [subject] - custom email subject\n * @property {string} [email_message] - custom email message\n ", - "start": 14789, - "end": 15359, - "loc": { - "start": { - "line": 496, - "column": 2 - }, - "end": { - "line": 505, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Send Template Bulk Invite payload\n * @typedef {Object} TemplateBulkInviteParams\n * @property {string} id - an ID of specific Template\n * @property {string} token - your auth token\n * @property {TemplateBulkInviteSettings} data - Template Bulk Invite settings\n ", - "start": 15363, - "end": 15644, - "loc": { - "start": { - "line": 507, - "column": 2 - }, - "end": { - "line": 513, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Send Template Bulk Invite response data\n * @typedef {Object} TemplateBulkInviteResponse\n * @property {string} status - status of sending bulk invites (e.g. \"job queued\")\n ", - "start": 15648, - "end": 15836, - "loc": { - "start": { - "line": 515, - "column": 2 - }, - "end": { - "line": 519, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Sends invites to sign a specified template to multiple signers at once\n * @experimental internal implementation of this method might be changed\n * @param {TemplateBulkInviteParams} data - Bulk Invite payload\n * @param {function(err: ApiErrorResponse, res: TemplateBulkInviteResponse)} [callback] - error first node.js callback\n ", - "start": 15840, - "end": 16187, - "loc": { - "start": { - "line": 521, - "column": 2 - }, - "end": { - "line": 526, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 16190, - "end": 16196, - "loc": { - "start": { - "line": 527, - "column": 2 - }, - "end": { - "line": 527, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "bulkInvite", - "start": 16197, - "end": 16207, - "loc": { - "start": { - "line": 527, - "column": 9 - }, - "end": { - "line": 527, - "column": 19 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16208, - "end": 16209, - "loc": { - "start": { - "line": 527, - "column": 20 - }, - "end": { - "line": 527, - "column": 21 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16209, - "end": 16210, - "loc": { - "start": { - "line": 527, - "column": 21 - }, - "end": { - "line": 527, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 16215, - "end": 16217, - "loc": { - "start": { - "line": 528, - "column": 4 - }, - "end": { - "line": 528, - "column": 6 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16217, - "end": 16218, - "loc": { - "start": { - "line": 528, - "column": 6 - }, - "end": { - "line": 528, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 16223, - "end": 16228, - "loc": { - "start": { - "line": 529, - "column": 4 - }, - "end": { - "line": 529, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16228, - "end": 16229, - "loc": { - "start": { - "line": 529, - "column": 9 - }, - "end": { - "line": 529, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 16234, - "end": 16238, - "loc": { - "start": { - "line": 530, - "column": 4 - }, - "end": { - "line": 530, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16238, - "end": 16239, - "loc": { - "start": { - "line": 530, - "column": 8 - }, - "end": { - "line": 530, - "column": 9 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16242, - "end": 16243, - "loc": { - "start": { - "line": 531, - "column": 2 - }, - "end": { - "line": 531, - "column": 3 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16243, - "end": 16244, - "loc": { - "start": { - "line": 531, - "column": 3 - }, - "end": { - "line": 531, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 16245, - "end": 16253, - "loc": { - "start": { - "line": 531, - "column": 5 - }, - "end": { - "line": 531, - "column": 13 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16253, - "end": 16254, - "loc": { - "start": { - "line": 531, - "column": 13 - }, - "end": { - "line": 531, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16255, - "end": 16256, - "loc": { - "start": { - "line": 531, - "column": 15 - }, - "end": { - "line": 531, - "column": 16 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 16261, - "end": 16266, - "loc": { - "start": { - "line": 532, - "column": 4 - }, - "end": { - "line": 532, - "column": 9 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16267, - "end": 16268, - "loc": { - "start": { - "line": 532, - "column": 10 - }, - "end": { - "line": 532, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "file", - "start": 16275, - "end": 16279, - "loc": { - "start": { - "line": 533, - "column": 6 - }, - "end": { - "line": 533, - "column": 10 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16279, - "end": 16280, - "loc": { - "start": { - "line": 533, - "column": 10 - }, - "end": { - "line": 533, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "folder_id", - "start": 16287, - "end": 16296, - "loc": { - "start": { - "line": 534, - "column": 6 - }, - "end": { - "line": 534, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16296, - "end": 16297, - "loc": { - "start": { - "line": 534, - "column": 15 - }, - "end": { - "line": 534, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "client_timestamp", - "start": 16304, - "end": 16320, - "loc": { - "start": { - "line": 535, - "column": 6 - }, - "end": { - "line": 535, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16320, - "end": 16321, - "loc": { - "start": { - "line": 535, - "column": 22 - }, - "end": { - "line": 535, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_name", - "start": 16328, - "end": 16341, - "loc": { - "start": { - "line": 536, - "column": 6 - }, - "end": { - "line": 536, - "column": 19 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16341, - "end": 16342, - "loc": { - "start": { - "line": 536, - "column": 19 - }, - "end": { - "line": 536, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "subject", - "start": 16349, - "end": 16356, - "loc": { - "start": { - "line": 537, - "column": 6 - }, - "end": { - "line": 537, - "column": 13 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16356, - "end": 16357, - "loc": { - "start": { - "line": 537, - "column": 13 - }, - "end": { - "line": 537, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "email_message", - "start": 16364, - "end": 16377, - "loc": { - "start": { - "line": 538, - "column": 6 - }, - "end": { - "line": 538, - "column": 19 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16377, - "end": 16378, - "loc": { - "start": { - "line": 538, - "column": 19 - }, - "end": { - "line": 538, - "column": 20 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16383, - "end": 16384, - "loc": { - "start": { - "line": 539, - "column": 4 - }, - "end": { - "line": 539, - "column": 5 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 16385, - "end": 16386, - "loc": { - "start": { - "line": 539, - "column": 6 - }, - "end": { - "line": 539, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 16387, - "end": 16391, - "loc": { - "start": { - "line": 539, - "column": 8 - }, - "end": { - "line": 539, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16391, - "end": 16392, - "loc": { - "start": { - "line": 539, - "column": 12 - }, - "end": { - "line": 539, - "column": 13 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 16398, - "end": 16400, - "loc": { - "start": { - "line": 541, - "column": 4 - }, - "end": { - "line": 541, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16401, - "end": 16402, - "loc": { - "start": { - "line": 541, - "column": 7 - }, - "end": { - "line": 541, - "column": 8 - } - } - }, - { - "type": { - "label": "prefix", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "!", - "start": 16402, - "end": 16403, - "loc": { - "start": { - "line": 541, - "column": 8 - }, - "end": { - "line": 541, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "isCSVFile", - "start": 16403, - "end": 16412, - "loc": { - "start": { - "line": 541, - "column": 9 - }, - "end": { - "line": 541, - "column": 18 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16412, - "end": 16413, - "loc": { - "start": { - "line": 541, - "column": 18 - }, - "end": { - "line": 541, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "file", - "start": 16413, - "end": 16417, - "loc": { - "start": { - "line": 541, - "column": 19 - }, - "end": { - "line": 541, - "column": 23 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16417, - "end": 16418, - "loc": { - "start": { - "line": 541, - "column": 23 - }, - "end": { - "line": 541, - "column": 24 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16418, - "end": 16419, - "loc": { - "start": { - "line": 541, - "column": 24 - }, - "end": { - "line": 541, - "column": 25 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16420, - "end": 16421, - "loc": { - "start": { - "line": 541, - "column": 26 - }, - "end": { - "line": 541, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 16428, - "end": 16436, - "loc": { - "start": { - "line": 542, - "column": 6 - }, - "end": { - "line": 542, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16436, - "end": 16437, - "loc": { - "start": { - "line": 542, - "column": 14 - }, - "end": { - "line": 542, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "The file that was tried to be uploaded is not a CSV file", - "start": 16437, - "end": 16495, - "loc": { - "start": { - "line": 542, - "column": 15 - }, - "end": { - "line": 542, - "column": 73 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16495, - "end": 16496, - "loc": { - "start": { - "line": 542, - "column": 73 - }, - "end": { - "line": 542, - "column": 74 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16496, - "end": 16497, - "loc": { - "start": { - "line": 542, - "column": 74 - }, - "end": { - "line": 542, - "column": 75 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 16504, - "end": 16510, - "loc": { - "start": { - "line": 543, - "column": 6 - }, - "end": { - "line": 543, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16510, - "end": 16511, - "loc": { - "start": { - "line": 543, - "column": 12 - }, - "end": { - "line": 543, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16516, - "end": 16517, - "loc": { - "start": { - "line": 544, - "column": 4 - }, - "end": { - "line": 544, - "column": 5 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 16523, - "end": 16528, - "loc": { - "start": { - "line": 546, - "column": 4 - }, - "end": { - "line": 546, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "metaData", - "start": 16529, - "end": 16537, - "loc": { - "start": { - "line": 546, - "column": 10 - }, - "end": { - "line": 546, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 16538, - "end": 16539, - "loc": { - "start": { - "line": 546, - "column": 19 - }, - "end": { - "line": 546, - "column": 20 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16540, - "end": 16541, - "loc": { - "start": { - "line": 546, - "column": 21 - }, - "end": { - "line": 546, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "folder_id", - "start": 16548, - "end": 16557, - "loc": { - "start": { - "line": 547, - "column": 6 - }, - "end": { - "line": 547, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16557, - "end": 16558, - "loc": { - "start": { - "line": 547, - "column": 15 - }, - "end": { - "line": 547, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "client_timestamp", - "start": 16565, - "end": 16581, - "loc": { - "start": { - "line": 548, - "column": 6 - }, - "end": { - "line": 548, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16581, - "end": 16582, - "loc": { - "start": { - "line": 548, - "column": 22 - }, - "end": { - "line": 548, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "document_name", - "start": 16589, - "end": 16602, - "loc": { - "start": { - "line": 549, - "column": 6 - }, - "end": { - "line": 549, - "column": 19 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16602, - "end": 16603, - "loc": { - "start": { - "line": 549, - "column": 19 - }, - "end": { - "line": 549, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "subject", - "start": 16610, - "end": 16617, - "loc": { - "start": { - "line": 550, - "column": 6 - }, - "end": { - "line": 550, - "column": 13 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16617, - "end": 16618, - "loc": { - "start": { - "line": 550, - "column": 13 - }, - "end": { - "line": 550, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "email_message", - "start": 16625, - "end": 16638, - "loc": { - "start": { - "line": 551, - "column": 6 - }, - "end": { - "line": 551, - "column": 19 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16638, - "end": 16639, - "loc": { - "start": { - "line": 551, - "column": 19 - }, - "end": { - "line": 551, - "column": 20 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16644, - "end": 16645, - "loc": { - "start": { - "line": 552, - "column": 4 - }, - "end": { - "line": 552, - "column": 5 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16645, - "end": 16646, - "loc": { - "start": { - "line": 552, - "column": 5 - }, - "end": { - "line": 552, - "column": 6 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 16652, - "end": 16657, - "loc": { - "start": { - "line": 554, - "column": 4 - }, - "end": { - "line": 554, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "formDataBoundary", - "start": 16658, - "end": 16674, - "loc": { - "start": { - "line": 554, - "column": 10 - }, - "end": { - "line": 554, - "column": 26 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 16675, - "end": 16676, - "loc": { - "start": { - "line": 554, - "column": 27 - }, - "end": { - "line": 554, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getFormDataBoundary", - "start": 16677, - "end": 16696, - "loc": { - "start": { - "line": 554, - "column": 29 - }, - "end": { - "line": 554, - "column": 48 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16696, - "end": 16697, - "loc": { - "start": { - "line": 554, - "column": 48 - }, - "end": { - "line": 554, - "column": 49 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16697, - "end": 16698, - "loc": { - "start": { - "line": 554, - "column": 49 - }, - "end": { - "line": 554, - "column": 50 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16698, - "end": 16699, - "loc": { - "start": { - "line": 554, - "column": 50 - }, - "end": { - "line": 554, - "column": 51 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 16704, - "end": 16709, - "loc": { - "start": { - "line": 555, - "column": 4 - }, - "end": { - "line": 555, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "formDataBeginning", - "start": 16710, - "end": 16727, - "loc": { - "start": { - "line": 555, - "column": 10 - }, - "end": { - "line": 555, - "column": 27 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 16728, - "end": 16729, - "loc": { - "start": { - "line": 555, - "column": 28 - }, - "end": { - "line": 555, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Object", - "start": 16730, - "end": 16736, - "loc": { - "start": { - "line": 555, - "column": 30 - }, - "end": { - "line": 555, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16743, - "end": 16744, - "loc": { - "start": { - "line": 556, - "column": 6 - }, - "end": { - "line": 556, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "entries", - "start": 16744, - "end": 16751, - "loc": { - "start": { - "line": 556, - "column": 7 - }, - "end": { - "line": 556, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16751, - "end": 16752, - "loc": { - "start": { - "line": 556, - "column": 14 - }, - "end": { - "line": 556, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "metaData", - "start": 16752, - "end": 16760, - "loc": { - "start": { - "line": 556, - "column": 15 - }, - "end": { - "line": 556, - "column": 23 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16760, - "end": 16761, - "loc": { - "start": { - "line": 556, - "column": 23 - }, - "end": { - "line": 556, - "column": 24 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16768, - "end": 16769, - "loc": { - "start": { - "line": 557, - "column": 6 - }, - "end": { - "line": 557, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "reduce", - "start": 16769, - "end": 16775, - "loc": { - "start": { - "line": 557, - "column": 7 - }, - "end": { - "line": 557, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16775, - "end": 16776, - "loc": { - "start": { - "line": 557, - "column": 13 - }, - "end": { - "line": 557, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16776, - "end": 16777, - "loc": { - "start": { - "line": 557, - "column": 14 - }, - "end": { - "line": 557, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "formData", - "start": 16777, - "end": 16785, - "loc": { - "start": { - "line": 557, - "column": 15 - }, - "end": { - "line": 557, - "column": 23 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16785, - "end": 16786, - "loc": { - "start": { - "line": 557, - "column": 23 - }, - "end": { - "line": 557, - "column": 24 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16787, - "end": 16788, - "loc": { - "start": { - "line": 557, - "column": 25 - }, - "end": { - "line": 557, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "name", - "start": 16797, - "end": 16801, - "loc": { - "start": { - "line": 558, - "column": 8 - }, - "end": { - "line": 558, - "column": 12 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16801, - "end": 16802, - "loc": { - "start": { - "line": 558, - "column": 12 - }, - "end": { - "line": 558, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "value", - "start": 16811, - "end": 16816, - "loc": { - "start": { - "line": 559, - "column": 8 - }, - "end": { - "line": 559, - "column": 13 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16816, - "end": 16817, - "loc": { - "start": { - "line": 559, - "column": 13 - }, - "end": { - "line": 559, - "column": 14 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16824, - "end": 16825, - "loc": { - "start": { - "line": 560, - "column": 6 - }, - "end": { - "line": 560, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16825, - "end": 16826, - "loc": { - "start": { - "line": 560, - "column": 7 - }, - "end": { - "line": 560, - "column": 8 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16827, - "end": 16829, - "loc": { - "start": { - "line": 560, - "column": 9 - }, - "end": { - "line": 560, - "column": 11 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16830, - "end": 16831, - "loc": { - "start": { - "line": 560, - "column": 12 - }, - "end": { - "line": 560, - "column": 13 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 16831, - "end": 16831, - "loc": { - "start": { - "line": 560, - "column": 13 - }, - "end": { - "line": 560, - "column": 13 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16831, - "end": 16833, - "loc": { - "start": { - "line": 560, - "column": 13 - }, - "end": { - "line": 560, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "formData", - "start": 16833, - "end": 16841, - "loc": { - "start": { - "line": 560, - "column": 15 - }, - "end": { - "line": 560, - "column": 23 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16841, - "end": 16842, - "loc": { - "start": { - "line": 560, - "column": 23 - }, - "end": { - "line": 560, - "column": 24 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "--", - "start": 16842, - "end": 16844, - "loc": { - "start": { - "line": 560, - "column": 24 - }, - "end": { - "line": 560, - "column": 26 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16844, - "end": 16846, - "loc": { - "start": { - "line": 560, - "column": 26 - }, - "end": { - "line": 560, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "formDataBoundary", - "start": 16846, - "end": 16862, - "loc": { - "start": { - "line": 560, - "column": 28 - }, - "end": { - "line": 560, - "column": 44 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16862, - "end": 16863, - "loc": { - "start": { - "line": 560, - "column": 44 - }, - "end": { - "line": 560, - "column": 45 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\r\nContent-Disposition: form-data; name=\"", - "start": 16863, - "end": 16905, - "loc": { - "start": { - "line": 560, - "column": 45 - }, - "end": { - "line": 560, - "column": 87 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16905, - "end": 16907, - "loc": { - "start": { - "line": 560, - "column": 87 - }, - "end": { - "line": 560, - "column": 89 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "name", - "start": 16907, - "end": 16911, - "loc": { - "start": { - "line": 560, - "column": 89 - }, - "end": { - "line": 560, - "column": 93 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16911, - "end": 16912, - "loc": { - "start": { - "line": 560, - "column": 93 - }, - "end": { - "line": 560, - "column": 94 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\";\r\n\r\n", - "start": 16912, - "end": 16922, - "loc": { - "start": { - "line": 560, - "column": 94 - }, - "end": { - "line": 560, - "column": 104 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16922, - "end": 16924, - "loc": { - "start": { - "line": 560, - "column": 104 - }, - "end": { - "line": 560, - "column": 106 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "value", - "start": 16924, - "end": 16929, - "loc": { - "start": { - "line": 560, - "column": 106 - }, - "end": { - "line": 560, - "column": 111 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16929, - "end": 16930, - "loc": { - "start": { - "line": 560, - "column": 111 - }, - "end": { - "line": 560, - "column": 112 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\r\n", - "start": 16930, - "end": 16934, - "loc": { - "start": { - "line": 560, - "column": 112 - }, - "end": { - "line": 560, - "column": 116 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16934, - "end": 16935, - "loc": { - "start": { - "line": 560, - "column": 116 - }, - "end": { - "line": 560, - "column": 117 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16935, - "end": 16936, - "loc": { - "start": { - "line": 560, - "column": 117 - }, - "end": { - "line": 560, - "column": 118 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 16937, - "end": 16939, - "loc": { - "start": { - "line": 560, - "column": 119 - }, - "end": { - "line": 560, - "column": 121 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16939, - "end": 16940, - "loc": { - "start": { - "line": 560, - "column": 121 - }, - "end": { - "line": 560, - "column": 122 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16947, - "end": 16948, - "loc": { - "start": { - "line": 561, - "column": 6 - }, - "end": { - "line": 561, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "concat", - "start": 16948, - "end": 16954, - "loc": { - "start": { - "line": 561, - "column": 7 - }, - "end": { - "line": 561, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16954, - "end": 16955, - "loc": { - "start": { - "line": 561, - "column": 13 - }, - "end": { - "line": 561, - "column": 14 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16955, - "end": 16956, - "loc": { - "start": { - "line": 561, - "column": 14 - }, - "end": { - "line": 561, - "column": 15 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "--", - "start": 16956, - "end": 16958, - "loc": { - "start": { - "line": 561, - "column": 15 - }, - "end": { - "line": 561, - "column": 17 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16958, - "end": 16960, - "loc": { - "start": { - "line": 561, - "column": 17 - }, - "end": { - "line": 561, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "formDataBoundary", - "start": 16960, - "end": 16976, - "loc": { - "start": { - "line": 561, - "column": 19 - }, - "end": { - "line": 561, - "column": 35 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16976, - "end": 16977, - "loc": { - "start": { - "line": 561, - "column": 35 - }, - "end": { - "line": 561, - "column": 36 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\r\n", - "start": 16977, - "end": 16981, - "loc": { - "start": { - "line": 561, - "column": 36 - }, - "end": { - "line": 561, - "column": 40 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16981, - "end": 16982, - "loc": { - "start": { - "line": 561, - "column": 40 - }, - "end": { - "line": 561, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16982, - "end": 16983, - "loc": { - "start": { - "line": 561, - "column": 41 - }, - "end": { - "line": 561, - "column": 42 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16990, - "end": 16991, - "loc": { - "start": { - "line": 562, - "column": 6 - }, - "end": { - "line": 562, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "concat", - "start": 16991, - "end": 16997, - "loc": { - "start": { - "line": 562, - "column": 7 - }, - "end": { - "line": 562, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16997, - "end": 16998, - "loc": { - "start": { - "line": 562, - "column": 13 - }, - "end": { - "line": 562, - "column": 14 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16998, - "end": 16999, - "loc": { - "start": { - "line": 562, - "column": 14 - }, - "end": { - "line": 562, - "column": 15 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Disposition: form-data; name=\"file\"; filename=\"", - "start": 16999, - "end": 17054, - "loc": { - "start": { - "line": 562, - "column": 15 - }, - "end": { - "line": 562, - "column": 70 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17054, - "end": 17056, - "loc": { - "start": { - "line": 562, - "column": 70 - }, - "end": { - "line": 562, - "column": 72 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "basename", - "start": 17056, - "end": 17064, - "loc": { - "start": { - "line": 562, - "column": 72 - }, - "end": { - "line": 562, - "column": 80 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17064, - "end": 17065, - "loc": { - "start": { - "line": 562, - "column": 80 - }, - "end": { - "line": 562, - "column": 81 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "file", - "start": 17065, - "end": 17069, - "loc": { - "start": { - "line": 562, - "column": 81 - }, - "end": { - "line": 562, - "column": 85 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17069, - "end": 17070, - "loc": { - "start": { - "line": 562, - "column": 85 - }, - "end": { - "line": 562, - "column": 86 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17070, - "end": 17071, - "loc": { - "start": { - "line": 562, - "column": 86 - }, - "end": { - "line": 562, - "column": 87 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\"\r\n", - "start": 17071, - "end": 17076, - "loc": { - "start": { - "line": 562, - "column": 87 - }, - "end": { - "line": 562, - "column": 92 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17076, - "end": 17077, - "loc": { - "start": { - "line": 562, - "column": 92 - }, - "end": { - "line": 562, - "column": 93 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17077, - "end": 17078, - "loc": { - "start": { - "line": 562, - "column": 93 - }, - "end": { - "line": 562, - "column": 94 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17085, - "end": 17086, - "loc": { - "start": { - "line": 563, - "column": 6 - }, - "end": { - "line": 563, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "concat", - "start": 17086, - "end": 17092, - "loc": { - "start": { - "line": 563, - "column": 7 - }, - "end": { - "line": 563, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17092, - "end": 17093, - "loc": { - "start": { - "line": 563, - "column": 13 - }, - "end": { - "line": 563, - "column": 14 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type: text/csv\r\n\r\n", - "start": 17093, - "end": 17125, - "loc": { - "start": { - "line": 563, - "column": 14 - }, - "end": { - "line": 563, - "column": 46 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17125, - "end": 17126, - "loc": { - "start": { - "line": 563, - "column": 46 - }, - "end": { - "line": 563, - "column": 47 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17126, - "end": 17127, - "loc": { - "start": { - "line": 563, - "column": 47 - }, - "end": { - "line": 563, - "column": 48 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 17132, - "end": 17137, - "loc": { - "start": { - "line": 564, - "column": 4 - }, - "end": { - "line": 564, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "formDataEnding", - "start": 17138, - "end": 17152, - "loc": { - "start": { - "line": 564, - "column": 10 - }, - "end": { - "line": 564, - "column": 24 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 17153, - "end": 17154, - "loc": { - "start": { - "line": 564, - "column": 25 - }, - "end": { - "line": 564, - "column": 26 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17155, - "end": 17156, - "loc": { - "start": { - "line": 564, - "column": 27 - }, - "end": { - "line": 564, - "column": 28 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\r\n--", - "start": 17156, - "end": 17162, - "loc": { - "start": { - "line": 564, - "column": 28 - }, - "end": { - "line": 564, - "column": 34 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17162, - "end": 17164, - "loc": { - "start": { - "line": 564, - "column": 34 - }, - "end": { - "line": 564, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "formDataBoundary", - "start": 17164, - "end": 17180, - "loc": { - "start": { - "line": 564, - "column": 36 - }, - "end": { - "line": 564, - "column": 52 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17180, - "end": 17181, - "loc": { - "start": { - "line": 564, - "column": 52 - }, - "end": { - "line": 564, - "column": 53 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\r\n", - "start": 17181, - "end": 17185, - "loc": { - "start": { - "line": 564, - "column": 53 - }, - "end": { - "line": 564, - "column": 57 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17185, - "end": 17186, - "loc": { - "start": { - "line": 564, - "column": 57 - }, - "end": { - "line": 564, - "column": 58 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17186, - "end": 17187, - "loc": { - "start": { - "line": 564, - "column": 58 - }, - "end": { - "line": 564, - "column": 59 - } - } - }, - { - "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "let", - "start": 17192, - "end": 17195, - "loc": { - "start": { - "line": 565, - "column": 4 - }, - "end": { - "line": 565, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fileContent", - "start": 17196, - "end": 17207, - "loc": { - "start": { - "line": 565, - "column": 8 - }, - "end": { - "line": 565, - "column": 19 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17207, - "end": 17208, - "loc": { - "start": { - "line": 565, - "column": 19 - }, - "end": { - "line": 565, - "column": 20 - } - } - }, - { - "type": { - "label": "try", - "keyword": "try", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "try", - "start": 17214, - "end": 17217, - "loc": { - "start": { - "line": 567, - "column": 4 - }, - "end": { - "line": 567, - "column": 7 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17218, - "end": 17219, - "loc": { - "start": { - "line": 567, - "column": 8 - }, - "end": { - "line": 567, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fileContent", - "start": 17226, - "end": 17237, - "loc": { - "start": { - "line": 568, - "column": 6 - }, - "end": { - "line": 568, - "column": 17 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 17238, - "end": 17239, - "loc": { - "start": { - "line": 568, - "column": 18 - }, - "end": { - "line": 568, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "readFileSync", - "start": 17240, - "end": 17252, - "loc": { - "start": { - "line": 568, - "column": 20 - }, - "end": { - "line": 568, - "column": 32 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17252, - "end": 17253, - "loc": { - "start": { - "line": 568, - "column": 32 - }, - "end": { - "line": 568, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "file", - "start": 17253, - "end": 17257, - "loc": { - "start": { - "line": 568, - "column": 33 - }, - "end": { - "line": 568, - "column": 37 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17257, - "end": 17258, - "loc": { - "start": { - "line": 568, - "column": 37 - }, - "end": { - "line": 568, - "column": 38 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17258, - "end": 17259, - "loc": { - "start": { - "line": 568, - "column": 38 - }, - "end": { - "line": 568, - "column": 39 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17264, - "end": 17265, - "loc": { - "start": { - "line": 569, - "column": 4 - }, - "end": { - "line": 569, - "column": 5 - } - } - }, - { - "type": { - "label": "catch", - "keyword": "catch", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "catch", - "start": 17266, - "end": 17271, - "loc": { - "start": { - "line": 569, - "column": 6 - }, - "end": { - "line": 569, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17272, - "end": 17273, - "loc": { - "start": { - "line": 569, - "column": 12 - }, - "end": { - "line": 569, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 17273, - "end": 17276, - "loc": { - "start": { - "line": 569, - "column": 13 - }, - "end": { - "line": 569, - "column": 16 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17276, - "end": 17277, - "loc": { - "start": { - "line": 569, - "column": 16 - }, - "end": { - "line": 569, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17278, - "end": 17279, - "loc": { - "start": { - "line": 569, - "column": 18 - }, - "end": { - "line": 569, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 17286, - "end": 17294, - "loc": { - "start": { - "line": 570, - "column": 6 - }, - "end": { - "line": 570, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17294, - "end": 17295, - "loc": { - "start": { - "line": 570, - "column": 14 - }, - "end": { - "line": 570, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 17295, - "end": 17298, - "loc": { - "start": { - "line": 570, - "column": 15 - }, - "end": { - "line": 570, - "column": 18 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17298, - "end": 17299, - "loc": { - "start": { - "line": 570, - "column": 18 - }, - "end": { - "line": 570, - "column": 19 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17299, - "end": 17300, - "loc": { - "start": { - "line": 570, - "column": 19 - }, - "end": { - "line": 570, - "column": 20 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 17307, - "end": 17313, - "loc": { - "start": { - "line": 571, - "column": 6 - }, - "end": { - "line": 571, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17313, - "end": 17314, - "loc": { - "start": { - "line": 571, - "column": 12 - }, - "end": { - "line": 571, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17319, - "end": 17320, - "loc": { - "start": { - "line": 572, - "column": 4 - }, - "end": { - "line": 572, - "column": 5 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 17326, - "end": 17331, - "loc": { - "start": { - "line": 574, - "column": 4 - }, - "end": { - "line": 574, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "payload", - "start": 17332, - "end": 17339, - "loc": { - "start": { - "line": 574, - "column": 10 - }, - "end": { - "line": 574, - "column": 17 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 17340, - "end": 17341, - "loc": { - "start": { - "line": 574, - "column": 18 - }, - "end": { - "line": 574, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 17342, - "end": 17348, - "loc": { - "start": { - "line": 574, - "column": 20 - }, - "end": { - "line": 574, - "column": 26 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17348, - "end": 17349, - "loc": { - "start": { - "line": 574, - "column": 26 - }, - "end": { - "line": 574, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "concat", - "start": 17349, - "end": 17355, - "loc": { - "start": { - "line": 574, - "column": 27 - }, - "end": { - "line": 574, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17355, - "end": 17356, - "loc": { - "start": { - "line": 574, - "column": 33 - }, - "end": { - "line": 574, - "column": 34 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17356, - "end": 17357, - "loc": { - "start": { - "line": 574, - "column": 34 - }, - "end": { - "line": 574, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 17364, - "end": 17370, - "loc": { - "start": { - "line": 575, - "column": 6 - }, - "end": { - "line": 575, - "column": 12 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17370, - "end": 17371, - "loc": { - "start": { - "line": 575, - "column": 12 - }, - "end": { - "line": 575, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 17371, - "end": 17375, - "loc": { - "start": { - "line": 575, - "column": 13 - }, - "end": { - "line": 575, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17375, - "end": 17376, - "loc": { - "start": { - "line": 575, - "column": 17 - }, - "end": { - "line": 575, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "formDataBeginning", - "start": 17376, - "end": 17393, - "loc": { - "start": { - "line": 575, - "column": 18 - }, - "end": { - "line": 575, - "column": 35 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17393, - "end": 17394, - "loc": { - "start": { - "line": 575, - "column": 35 - }, - "end": { - "line": 575, - "column": 36 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "utf8", - "start": 17395, - "end": 17401, - "loc": { - "start": { - "line": 575, - "column": 37 - }, - "end": { - "line": 575, - "column": 43 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17401, - "end": 17402, - "loc": { - "start": { - "line": 575, - "column": 43 - }, - "end": { - "line": 575, - "column": 44 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17402, - "end": 17403, - "loc": { - "start": { - "line": 575, - "column": 44 - }, - "end": { - "line": 575, - "column": 45 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 17410, - "end": 17416, - "loc": { - "start": { - "line": 576, - "column": 6 - }, - "end": { - "line": 576, - "column": 12 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17416, - "end": 17417, - "loc": { - "start": { - "line": 576, - "column": 12 - }, - "end": { - "line": 576, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 17417, - "end": 17421, - "loc": { - "start": { - "line": 576, - "column": 13 - }, - "end": { - "line": 576, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17421, - "end": 17422, - "loc": { - "start": { - "line": 576, - "column": 17 - }, - "end": { - "line": 576, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "fileContent", - "start": 17422, - "end": 17433, - "loc": { - "start": { - "line": 576, - "column": 18 - }, - "end": { - "line": 576, - "column": 29 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17433, - "end": 17434, - "loc": { - "start": { - "line": 576, - "column": 29 - }, - "end": { - "line": 576, - "column": 30 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "binary", - "start": 17435, - "end": 17443, - "loc": { - "start": { - "line": 576, - "column": 31 - }, - "end": { - "line": 576, - "column": 39 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17443, - "end": 17444, - "loc": { - "start": { - "line": 576, - "column": 39 - }, - "end": { - "line": 576, - "column": 40 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17444, - "end": 17445, - "loc": { - "start": { - "line": 576, - "column": 40 - }, - "end": { - "line": 576, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 17452, - "end": 17458, - "loc": { - "start": { - "line": 577, - "column": 6 - }, - "end": { - "line": 577, - "column": 12 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17458, - "end": 17459, - "loc": { - "start": { - "line": 577, - "column": 12 - }, - "end": { - "line": 577, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 17459, - "end": 17463, - "loc": { - "start": { - "line": 577, - "column": 13 - }, - "end": { - "line": 577, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17463, - "end": 17464, - "loc": { - "start": { - "line": 577, - "column": 17 - }, - "end": { - "line": 577, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "formDataEnding", - "start": 17464, - "end": 17478, - "loc": { - "start": { - "line": 577, - "column": 18 - }, - "end": { - "line": 577, - "column": 32 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17478, - "end": 17479, - "loc": { - "start": { - "line": 577, - "column": 32 - }, - "end": { - "line": 577, - "column": 33 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "utf8", - "start": 17480, - "end": 17486, - "loc": { - "start": { - "line": 577, - "column": 34 - }, - "end": { - "line": 577, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17486, - "end": 17487, - "loc": { - "start": { - "line": 577, - "column": 40 - }, - "end": { - "line": 577, - "column": 41 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17487, - "end": 17488, - "loc": { - "start": { - "line": 577, - "column": 41 - }, - "end": { - "line": 577, - "column": 42 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17493, - "end": 17494, - "loc": { - "start": { - "line": 578, - "column": 4 - }, - "end": { - "line": 578, - "column": 5 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17494, - "end": 17495, - "loc": { - "start": { - "line": 578, - "column": 5 - }, - "end": { - "line": 578, - "column": 6 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17495, - "end": 17496, - "loc": { - "start": { - "line": 578, - "column": 6 - }, - "end": { - "line": 578, - "column": 7 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 17502, - "end": 17507, - "loc": { - "start": { - "line": 580, - "column": 4 - }, - "end": { - "line": 580, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 17508, - "end": 17511, - "loc": { - "start": { - "line": 580, - "column": 10 - }, - "end": { - "line": 580, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 17512, - "end": 17513, - "loc": { - "start": { - "line": 580, - "column": 14 - }, - "end": { - "line": 580, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 17514, - "end": 17519, - "loc": { - "start": { - "line": 580, - "column": 16 - }, - "end": { - "line": 580, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17526, - "end": 17527, - "loc": { - "start": { - "line": 581, - "column": 6 - }, - "end": { - "line": 581, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 17527, - "end": 17534, - "loc": { - "start": { - "line": 581, - "column": 7 - }, - "end": { - "line": 581, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17534, - "end": 17535, - "loc": { - "start": { - "line": 581, - "column": 14 - }, - "end": { - "line": 581, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 17535, - "end": 17554, - "loc": { - "start": { - "line": 581, - "column": 15 - }, - "end": { - "line": 581, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17554, - "end": 17555, - "loc": { - "start": { - "line": 581, - "column": 34 - }, - "end": { - "line": 581, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17555, - "end": 17556, - "loc": { - "start": { - "line": 581, - "column": 35 - }, - "end": { - "line": 581, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 17565, - "end": 17571, - "loc": { - "start": { - "line": 582, - "column": 8 - }, - "end": { - "line": 582, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17571, - "end": 17572, - "loc": { - "start": { - "line": 582, - "column": 14 - }, - "end": { - "line": 582, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "POST", - "start": 17573, - "end": 17579, - "loc": { - "start": { - "line": 582, - "column": 16 - }, - "end": { - "line": 582, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17579, - "end": 17580, - "loc": { - "start": { - "line": 582, - "column": 22 - }, - "end": { - "line": 582, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 17589, - "end": 17593, - "loc": { - "start": { - "line": 583, - "column": 8 - }, - "end": { - "line": 583, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17593, - "end": 17594, - "loc": { - "start": { - "line": 583, - "column": 12 - }, - "end": { - "line": 583, - "column": 13 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17595, - "end": 17596, - "loc": { - "start": { - "line": 583, - "column": 14 - }, - "end": { - "line": 583, - "column": 15 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/template/", - "start": 17596, - "end": 17606, - "loc": { - "start": { - "line": 583, - "column": 15 - }, - "end": { - "line": 583, - "column": 25 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17606, - "end": 17608, - "loc": { - "start": { - "line": 583, - "column": 25 - }, - "end": { - "line": 583, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 17608, - "end": 17610, - "loc": { - "start": { - "line": 583, - "column": 27 - }, - "end": { - "line": 583, - "column": 29 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17610, - "end": 17611, - "loc": { - "start": { - "line": 583, - "column": 29 - }, - "end": { - "line": 583, - "column": 30 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/bulkinvite", - "start": 17611, - "end": 17622, - "loc": { - "start": { - "line": 583, - "column": 30 - }, - "end": { - "line": 583, - "column": 41 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17622, - "end": 17623, - "loc": { - "start": { - "line": 583, - "column": 41 - }, - "end": { - "line": 583, - "column": 42 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17623, - "end": 17624, - "loc": { - "start": { - "line": 583, - "column": 42 - }, - "end": { - "line": 583, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 17633, - "end": 17646, - "loc": { - "start": { - "line": 584, - "column": 8 - }, - "end": { - "line": 584, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17646, - "end": 17647, - "loc": { - "start": { - "line": 584, - "column": 21 - }, - "end": { - "line": 584, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17648, - "end": 17649, - "loc": { - "start": { - "line": 584, - "column": 23 - }, - "end": { - "line": 584, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 17660, - "end": 17664, - "loc": { - "start": { - "line": 585, - "column": 10 - }, - "end": { - "line": 585, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17664, - "end": 17665, - "loc": { - "start": { - "line": 585, - "column": 14 - }, - "end": { - "line": 585, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 17666, - "end": 17674, - "loc": { - "start": { - "line": 585, - "column": 16 - }, - "end": { - "line": 585, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17674, - "end": 17675, - "loc": { - "start": { - "line": 585, - "column": 24 - }, - "end": { - "line": 585, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 17686, - "end": 17691, - "loc": { - "start": { - "line": 586, - "column": 10 - }, - "end": { - "line": 586, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17691, - "end": 17692, - "loc": { - "start": { - "line": 586, - "column": 15 - }, - "end": { - "line": 586, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17701, - "end": 17702, - "loc": { - "start": { - "line": 587, - "column": 8 - }, - "end": { - "line": 587, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17702, - "end": 17703, - "loc": { - "start": { - "line": 587, - "column": 9 - }, - "end": { - "line": 587, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 17712, - "end": 17719, - "loc": { - "start": { - "line": 588, - "column": 8 - }, - "end": { - "line": 588, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17719, - "end": 17720, - "loc": { - "start": { - "line": 588, - "column": 15 - }, - "end": { - "line": 588, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17721, - "end": 17722, - "loc": { - "start": { - "line": 588, - "column": 17 - }, - "end": { - "line": 588, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type", - "start": 17733, - "end": 17747, - "loc": { - "start": { - "line": 589, - "column": 10 - }, - "end": { - "line": 589, - "column": 24 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17747, - "end": 17748, - "loc": { - "start": { - "line": 589, - "column": 24 - }, - "end": { - "line": 589, - "column": 25 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17749, - "end": 17750, - "loc": { - "start": { - "line": 589, - "column": 26 - }, - "end": { - "line": 589, - "column": 27 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "multipart/form-data; boundary=", - "start": 17750, - "end": 17780, - "loc": { - "start": { - "line": 589, - "column": 27 - }, - "end": { - "line": 589, - "column": 57 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17780, - "end": 17782, - "loc": { - "start": { - "line": 589, - "column": 57 - }, - "end": { - "line": 589, - "column": 59 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "formDataBoundary", - "start": 17782, - "end": 17798, - "loc": { - "start": { - "line": 589, - "column": 59 - }, - "end": { - "line": 589, - "column": 75 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17798, - "end": 17799, - "loc": { - "start": { - "line": 589, - "column": 75 - }, - "end": { - "line": 589, - "column": 76 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 17799, - "end": 17799, - "loc": { - "start": { - "line": 589, - "column": 76 - }, - "end": { - "line": 589, - "column": 76 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17799, - "end": 17800, - "loc": { - "start": { - "line": 589, - "column": 76 - }, - "end": { - "line": 589, - "column": 77 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17800, - "end": 17801, - "loc": { - "start": { - "line": 589, - "column": 77 - }, - "end": { - "line": 589, - "column": 78 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Length", - "start": 17812, - "end": 17828, - "loc": { - "start": { - "line": 590, - "column": 10 - }, - "end": { - "line": 590, - "column": 26 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17828, - "end": 17829, - "loc": { - "start": { - "line": 590, - "column": 26 - }, - "end": { - "line": 590, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 17830, - "end": 17836, - "loc": { - "start": { - "line": 590, - "column": 28 - }, - "end": { - "line": 590, - "column": 34 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17836, - "end": 17837, - "loc": { - "start": { - "line": 590, - "column": 34 - }, - "end": { - "line": 590, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "byteLength", - "start": 17837, - "end": 17847, - "loc": { - "start": { - "line": 590, - "column": 35 - }, - "end": { - "line": 590, - "column": 45 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17847, - "end": 17848, - "loc": { - "start": { - "line": 590, - "column": 45 - }, - "end": { - "line": 590, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "payload", - "start": 17848, - "end": 17855, - "loc": { - "start": { - "line": 590, - "column": 46 - }, - "end": { - "line": 590, - "column": 53 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17855, - "end": 17856, - "loc": { - "start": { - "line": 590, - "column": 53 - }, - "end": { - "line": 590, - "column": 54 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17856, - "end": 17857, - "loc": { - "start": { - "line": 590, - "column": 54 - }, - "end": { - "line": 590, - "column": 55 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17866, - "end": 17867, - "loc": { - "start": { - "line": 591, - "column": 8 - }, - "end": { - "line": 591, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17867, - "end": 17868, - "loc": { - "start": { - "line": 591, - "column": 9 - }, - "end": { - "line": 591, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17875, - "end": 17876, - "loc": { - "start": { - "line": 592, - "column": 6 - }, - "end": { - "line": 592, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17876, - "end": 17877, - "loc": { - "start": { - "line": 592, - "column": 7 - }, - "end": { - "line": 592, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17877, - "end": 17878, - "loc": { - "start": { - "line": 592, - "column": 8 - }, - "end": { - "line": 592, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 17879, - "end": 17894, - "loc": { - "start": { - "line": 592, - "column": 10 - }, - "end": { - "line": 592, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17894, - "end": 17895, - "loc": { - "start": { - "line": 592, - "column": 25 - }, - "end": { - "line": 592, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 17895, - "end": 17903, - "loc": { - "start": { - "line": 592, - "column": 26 - }, - "end": { - "line": 592, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17903, - "end": 17904, - "loc": { - "start": { - "line": 592, - "column": 34 - }, - "end": { - "line": 592, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17904, - "end": 17905, - "loc": { - "start": { - "line": 592, - "column": 35 - }, - "end": { - "line": 592, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17912, - "end": 17913, - "loc": { - "start": { - "line": 593, - "column": 6 - }, - "end": { - "line": 593, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 17913, - "end": 17915, - "loc": { - "start": { - "line": 593, - "column": 7 - }, - "end": { - "line": 593, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17915, - "end": 17916, - "loc": { - "start": { - "line": 593, - "column": 9 - }, - "end": { - "line": 593, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 17916, - "end": 17923, - "loc": { - "start": { - "line": 593, - "column": 10 - }, - "end": { - "line": 593, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17923, - "end": 17924, - "loc": { - "start": { - "line": 593, - "column": 17 - }, - "end": { - "line": 593, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 17925, - "end": 17937, - "loc": { - "start": { - "line": 593, - "column": 19 - }, - "end": { - "line": 593, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17937, - "end": 17938, - "loc": { - "start": { - "line": 593, - "column": 31 - }, - "end": { - "line": 593, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 17938, - "end": 17946, - "loc": { - "start": { - "line": 593, - "column": 32 - }, - "end": { - "line": 593, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17946, - "end": 17947, - "loc": { - "start": { - "line": 593, - "column": 40 - }, - "end": { - "line": 593, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17947, - "end": 17948, - "loc": { - "start": { - "line": 593, - "column": 41 - }, - "end": { - "line": 593, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17948, - "end": 17949, - "loc": { - "start": { - "line": 593, - "column": 42 - }, - "end": { - "line": 593, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 17955, - "end": 17958, - "loc": { - "start": { - "line": 595, - "column": 4 - }, - "end": { - "line": 595, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17958, - "end": 17959, - "loc": { - "start": { - "line": 595, - "column": 7 - }, - "end": { - "line": 595, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "write", - "start": 17959, - "end": 17964, - "loc": { - "start": { - "line": 595, - "column": 8 - }, - "end": { - "line": 595, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17964, - "end": 17965, - "loc": { - "start": { - "line": 595, - "column": 13 - }, - "end": { - "line": 595, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "payload", - "start": 17965, - "end": 17972, - "loc": { - "start": { - "line": 595, - "column": 14 - }, - "end": { - "line": 595, - "column": 21 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17972, - "end": 17973, - "loc": { - "start": { - "line": 595, - "column": 21 - }, - "end": { - "line": 595, - "column": 22 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17973, - "end": 17974, - "loc": { - "start": { - "line": 595, - "column": 22 - }, - "end": { - "line": 595, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 17979, - "end": 17982, - "loc": { - "start": { - "line": 596, - "column": 4 - }, - "end": { - "line": 596, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17982, - "end": 17983, - "loc": { - "start": { - "line": 596, - "column": 7 - }, - "end": { - "line": 596, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 17983, - "end": 17986, - "loc": { - "start": { - "line": 596, - "column": 8 - }, - "end": { - "line": 596, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17986, - "end": 17987, - "loc": { - "start": { - "line": 596, - "column": 11 - }, - "end": { - "line": 596, - "column": 12 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17987, - "end": 17988, - "loc": { - "start": { - "line": 596, - "column": 12 - }, - "end": { - "line": 596, - "column": 13 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17988, - "end": 17989, - "loc": { - "start": { - "line": 596, - "column": 13 - }, - "end": { - "line": 596, - "column": 14 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17992, - "end": 17993, - "loc": { - "start": { - "line": 597, - "column": 2 - }, - "end": { - "line": 597, - "column": 3 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17995, - "end": 17996, - "loc": { - "start": { - "line": 599, - "column": 0 - }, - "end": { - "line": 599, - "column": 1 - } - } - }, - { - "type": { - "label": "export", - "keyword": "export", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "export", - "start": 17998, - "end": 18004, - "loc": { - "start": { - "line": 601, - "column": 0 - }, - "end": { - "line": 601, - "column": 6 - } - } - }, - { - "type": { - "label": "default", - "keyword": "default", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "default", - "start": 18005, - "end": 18012, - "loc": { - "start": { - "line": 601, - "column": 7 - }, - "end": { - "line": 601, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Template", - "start": 18013, - "end": 18021, - "loc": { - "start": { - "line": 601, - "column": 15 - }, - "end": { - "line": 601, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18021, - "end": 18022, - "loc": { - "start": { - "line": 601, - "column": 23 - }, - "end": { - "line": 601, - "column": 24 - } - } - }, - { - "type": { - "label": "eof", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18023, - "end": 18023, - "loc": { - "start": { - "line": 602, - "column": 0 - }, - "end": { - "line": 602, - "column": 0 - } - } - } - ] -} \ No newline at end of file diff --git a/docs/ast/source/user.js.json b/docs/ast/source/user.js.json deleted file mode 100644 index 4e476f7d..00000000 --- a/docs/ast/source/user.js.json +++ /dev/null @@ -1,10119 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 3384, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 103, - "column": 0 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 3384, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 103, - "column": 0 - } - }, - "sourceType": "module", - "body": [ - { - "type": "ImportDeclaration", - "start": 14, - "end": 40, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 26 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - } - }, - "local": { - "type": "Identifier", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - }, - "identifierName": "https" - }, - "name": "https" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 18 - }, - "end": { - "line": 2, - "column": 25 - } - }, - "extra": { - "rawValue": "https", - "raw": "'https'" - }, - "value": "https" - } - }, - { - "type": "ImportDeclaration", - "start": 41, - "end": 136, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 5, - "column": 18 - } - }, - "specifiers": [ - { - "type": "ImportSpecifier", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - } - }, - "imported": { - "type": "Identifier", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "local": { - "type": "Identifier", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - } - }, - { - "type": "ImportSpecifier", - "start": 69, - "end": 81, - "loc": { - "start": { - "line": 4, - "column": 19 - }, - "end": { - "line": 4, - "column": 31 - } - }, - "imported": { - "type": "Identifier", - "start": 69, - "end": 81, - "loc": { - "start": { - "line": 4, - "column": 19 - }, - "end": { - "line": 4, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "local": { - "type": "Identifier", - "start": 69, - "end": 81, - "loc": { - "start": { - "line": 4, - "column": 19 - }, - "end": { - "line": 4, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - } - }, - { - "type": "ImportSpecifier", - "start": 83, - "end": 102, - "loc": { - "start": { - "line": 4, - "column": 33 - }, - "end": { - "line": 4, - "column": 52 - } - }, - "imported": { - "type": "Identifier", - "start": 83, - "end": 102, - "loc": { - "start": { - "line": 4, - "column": 33 - }, - "end": { - "line": 4, - "column": 52 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "local": { - "type": "Identifier", - "start": 83, - "end": 102, - "loc": { - "start": { - "line": 4, - "column": 33 - }, - "end": { - "line": 4, - "column": 52 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - } - }, - { - "type": "ImportSpecifier", - "start": 104, - "end": 116, - "loc": { - "start": { - "line": 4, - "column": 54 - }, - "end": { - "line": 4, - "column": 66 - } - }, - "imported": { - "type": "Identifier", - "start": 104, - "end": 116, - "loc": { - "start": { - "line": 4, - "column": 54 - }, - "end": { - "line": 4, - "column": 66 - }, - "identifierName": "getUserAgent" - }, - "name": "getUserAgent" - }, - "local": { - "type": "Identifier", - "start": 104, - "end": 116, - "loc": { - "start": { - "line": 4, - "column": 54 - }, - "end": { - "line": 4, - "column": 66 - }, - "identifierName": "getUserAgent" - }, - "name": "getUserAgent" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 125, - "end": 135, - "loc": { - "start": { - "line": 5, - "column": 7 - }, - "end": { - "line": 5, - "column": 17 - } - }, - "extra": { - "rawValue": "./common", - "raw": "'./common'" - }, - "value": "./common" - }, - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * User methods\n ", - "start": 138, - "end": 161, - "loc": { - "start": { - "line": 7, - "column": 0 - }, - "end": { - "line": 9, - "column": 3 - } - } - } - ] - }, - { - "type": "Identifier", - "start": 162, - "end": 3361, - "loc": { - "start": { - "line": 10, - "column": 0 - }, - "end": { - "line": 100, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 168, - "end": 172, - "loc": { - "start": { - "line": 10, - "column": 6 - }, - "end": { - "line": 10, - "column": 10 - }, - "identifierName": "User" - }, - "name": "User", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 173, - "end": 3361, - "loc": { - "start": { - "line": 10, - "column": 11 - }, - "end": { - "line": 100, - "column": 1 - } - }, - "body": [ - { - "type": "ClassMethod", - "start": 929, - "end": 1451, - "loc": { - "start": { - "line": 34, - "column": 2 - }, - "end": { - "line": 51, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 936, - "end": 942, - "loc": { - "start": { - "line": 34, - "column": 9 - }, - "end": { - "line": 34, - "column": 15 - }, - "identifierName": "create" - }, - "name": "create" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 944, - "end": 948, - "loc": { - "start": { - "line": 34, - "column": 17 - }, - "end": { - "line": 34, - "column": 21 - }, - "identifierName": "data" - }, - "name": "data" - }, - { - "type": "Identifier", - "start": 950, - "end": 958, - "loc": { - "start": { - "line": 34, - "column": 23 - }, - "end": { - "line": 34, - "column": 31 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 960, - "end": 1451, - "loc": { - "start": { - "line": 34, - "column": 33 - }, - "end": { - "line": 51, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 966, - "end": 1004, - "loc": { - "start": { - "line": 35, - "column": 4 - }, - "end": { - "line": 35, - "column": 42 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 972, - "end": 1003, - "loc": { - "start": { - "line": 35, - "column": 10 - }, - "end": { - "line": 35, - "column": 41 - } - }, - "id": { - "type": "Identifier", - "start": 972, - "end": 980, - "loc": { - "start": { - "line": 35, - "column": 10 - }, - "end": { - "line": 35, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 983, - "end": 1003, - "loc": { - "start": { - "line": 35, - "column": 21 - }, - "end": { - "line": 35, - "column": 41 - } - }, - "callee": { - "type": "MemberExpression", - "start": 983, - "end": 997, - "loc": { - "start": { - "line": 35, - "column": 21 - }, - "end": { - "line": 35, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 983, - "end": 987, - "loc": { - "start": { - "line": 35, - "column": 21 - }, - "end": { - "line": 35, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 988, - "end": 997, - "loc": { - "start": { - "line": 35, - "column": 26 - }, - "end": { - "line": 35, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 998, - "end": 1002, - "loc": { - "start": { - "line": 35, - "column": 36 - }, - "end": { - "line": 35, - "column": 40 - }, - "identifierName": "data" - }, - "name": "data" - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 1009, - "end": 1406, - "loc": { - "start": { - "line": 36, - "column": 4 - }, - "end": { - "line": 47, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1015, - "end": 1405, - "loc": { - "start": { - "line": 36, - "column": 10 - }, - "end": { - "line": 47, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 1015, - "end": 1018, - "loc": { - "start": { - "line": 36, - "column": 10 - }, - "end": { - "line": 36, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 1021, - "end": 1405, - "loc": { - "start": { - "line": 36, - "column": 16 - }, - "end": { - "line": 47, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1021, - "end": 1372, - "loc": { - "start": { - "line": 36, - "column": 16 - }, - "end": { - "line": 47, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 1021, - "end": 1362, - "loc": { - "start": { - "line": 36, - "column": 16 - }, - "end": { - "line": 46, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1021, - "end": 1041, - "loc": { - "start": { - "line": 36, - "column": 16 - }, - "end": { - "line": 37, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 1021, - "end": 1026, - "loc": { - "start": { - "line": 36, - "column": 16 - }, - "end": { - "line": 36, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 1034, - "end": 1041, - "loc": { - "start": { - "line": 37, - "column": 7 - }, - "end": { - "line": 37, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 1042, - "end": 1334, - "loc": { - "start": { - "line": 37, - "column": 15 - }, - "end": { - "line": 46, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 1042, - "end": 1061, - "loc": { - "start": { - "line": 37, - "column": 15 - }, - "end": { - "line": 37, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 1062, - "end": 1333, - "loc": { - "start": { - "line": 37, - "column": 35 - }, - "end": { - "line": 46, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1072, - "end": 1086, - "loc": { - "start": { - "line": 38, - "column": 8 - }, - "end": { - "line": 38, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1072, - "end": 1078, - "loc": { - "start": { - "line": 38, - "column": 8 - }, - "end": { - "line": 38, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 1080, - "end": 1086, - "loc": { - "start": { - "line": 38, - "column": 16 - }, - "end": { - "line": 38, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 1096, - "end": 1109, - "loc": { - "start": { - "line": 39, - "column": 8 - }, - "end": { - "line": 39, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1096, - "end": 1100, - "loc": { - "start": { - "line": 39, - "column": 8 - }, - "end": { - "line": 39, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 1102, - "end": 1109, - "loc": { - "start": { - "line": 39, - "column": 14 - }, - "end": { - "line": 39, - "column": 21 - } - }, - "extra": { - "rawValue": "/user", - "raw": "'/user'" - }, - "value": "/user" - } - }, - { - "type": "ObjectProperty", - "start": 1119, - "end": 1151, - "loc": { - "start": { - "line": 40, - "column": 8 - }, - "end": { - "line": 40, - "column": 40 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1119, - "end": 1132, - "loc": { - "start": { - "line": 40, - "column": 8 - }, - "end": { - "line": 40, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 1134, - "end": 1151, - "loc": { - "start": { - "line": 40, - "column": 23 - }, - "end": { - "line": 40, - "column": 40 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1136, - "end": 1149, - "loc": { - "start": { - "line": 40, - "column": 25 - }, - "end": { - "line": 40, - "column": 38 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1136, - "end": 1140, - "loc": { - "start": { - "line": 40, - "column": 25 - }, - "end": { - "line": 40, - "column": 29 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 1142, - "end": 1149, - "loc": { - "start": { - "line": 40, - "column": 31 - }, - "end": { - "line": 40, - "column": 38 - } - }, - "extra": { - "rawValue": "Basic", - "raw": "'Basic'" - }, - "value": "Basic" - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 1161, - "end": 1324, - "loc": { - "start": { - "line": 41, - "column": 8 - }, - "end": { - "line": 45, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1161, - "end": 1168, - "loc": { - "start": { - "line": 41, - "column": 8 - }, - "end": { - "line": 41, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 1170, - "end": 1324, - "loc": { - "start": { - "line": 41, - "column": 17 - }, - "end": { - "line": 45, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1182, - "end": 1216, - "loc": { - "start": { - "line": 42, - "column": 10 - }, - "end": { - "line": 42, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 1182, - "end": 1196, - "loc": { - "start": { - "line": 42, - "column": 10 - }, - "end": { - "line": 42, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 1198, - "end": 1216, - "loc": { - "start": { - "line": 42, - "column": 26 - }, - "end": { - "line": 42, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 1228, - "end": 1273, - "loc": { - "start": { - "line": 43, - "column": 10 - }, - "end": { - "line": 43, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 1228, - "end": 1244, - "loc": { - "start": { - "line": 43, - "column": 10 - }, - "end": { - "line": 43, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 1246, - "end": 1273, - "loc": { - "start": { - "line": 43, - "column": 28 - }, - "end": { - "line": 43, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1246, - "end": 1263, - "loc": { - "start": { - "line": 43, - "column": 28 - }, - "end": { - "line": 43, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 1246, - "end": 1252, - "loc": { - "start": { - "line": 43, - "column": 28 - }, - "end": { - "line": 43, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 1253, - "end": 1263, - "loc": { - "start": { - "line": 43, - "column": 35 - }, - "end": { - "line": 43, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1264, - "end": 1272, - "loc": { - "start": { - "line": 43, - "column": 46 - }, - "end": { - "line": 43, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 1285, - "end": 1313, - "loc": { - "start": { - "line": 44, - "column": 10 - }, - "end": { - "line": 44, - "column": 38 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 1285, - "end": 1297, - "loc": { - "start": { - "line": 44, - "column": 10 - }, - "end": { - "line": 44, - "column": 22 - } - }, - "extra": { - "rawValue": "User-Agent", - "raw": "'User-Agent'" - }, - "value": "User-Agent" - }, - "value": { - "type": "CallExpression", - "start": 1299, - "end": 1313, - "loc": { - "start": { - "line": 44, - "column": 24 - }, - "end": { - "line": 44, - "column": 38 - } - }, - "callee": { - "type": "Identifier", - "start": 1299, - "end": 1311, - "loc": { - "start": { - "line": 44, - "column": 24 - }, - "end": { - "line": 44, - "column": 36 - }, - "identifierName": "getUserAgent" - }, - "name": "getUserAgent" - }, - "arguments": [] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 1336, - "end": 1361, - "loc": { - "start": { - "line": 46, - "column": 10 - }, - "end": { - "line": 46, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 1336, - "end": 1351, - "loc": { - "start": { - "line": 46, - "column": 10 - }, - "end": { - "line": 46, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1352, - "end": 1360, - "loc": { - "start": { - "line": 46, - "column": 26 - }, - "end": { - "line": 46, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 1370, - "end": 1372, - "loc": { - "start": { - "line": 47, - "column": 7 - }, - "end": { - "line": 47, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 1373, - "end": 1380, - "loc": { - "start": { - "line": 47, - "column": 10 - }, - "end": { - "line": 47, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 1382, - "end": 1404, - "loc": { - "start": { - "line": 47, - "column": 19 - }, - "end": { - "line": 47, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 1382, - "end": 1394, - "loc": { - "start": { - "line": 47, - "column": 19 - }, - "end": { - "line": 47, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1395, - "end": 1403, - "loc": { - "start": { - "line": 47, - "column": 32 - }, - "end": { - "line": 47, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 1412, - "end": 1432, - "loc": { - "start": { - "line": 49, - "column": 4 - }, - "end": { - "line": 49, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 1412, - "end": 1431, - "loc": { - "start": { - "line": 49, - "column": 4 - }, - "end": { - "line": 49, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1412, - "end": 1421, - "loc": { - "start": { - "line": 49, - "column": 4 - }, - "end": { - "line": 49, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 1412, - "end": 1415, - "loc": { - "start": { - "line": 49, - "column": 4 - }, - "end": { - "line": 49, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 1416, - "end": 1421, - "loc": { - "start": { - "line": 49, - "column": 8 - }, - "end": { - "line": 49, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1422, - "end": 1430, - "loc": { - "start": { - "line": 49, - "column": 14 - }, - "end": { - "line": 49, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 1437, - "end": 1447, - "loc": { - "start": { - "line": 50, - "column": 4 - }, - "end": { - "line": 50, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 1437, - "end": 1446, - "loc": { - "start": { - "line": 50, - "column": 4 - }, - "end": { - "line": 50, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1437, - "end": 1444, - "loc": { - "start": { - "line": 50, - "column": 4 - }, - "end": { - "line": 50, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 1437, - "end": 1440, - "loc": { - "start": { - "line": 50, - "column": 4 - }, - "end": { - "line": 50, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 1441, - "end": 1444, - "loc": { - "start": { - "line": 50, - "column": 8 - }, - "end": { - "line": 50, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Create user payload\n * @typedef {Object} UserCreateParams\n * @property {string} email - email of new user\n * @property {string} password - password for new user\n * @property {string} [first_name] - first name of new user\n * @property {string} [last_name] - last name of new user\n ", - "start": 178, - "end": 481, - "loc": { - "start": { - "line": 12, - "column": 2 - }, - "end": { - "line": 19, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create user response data\n * @typedef {Object} UserCreateResponse\n * @property {string} id - user unique id\n * @property {number} verified - user is verified or not\n * @property {string} email - user email\n ", - "start": 485, - "end": 713, - "loc": { - "start": { - "line": 21, - "column": 2 - }, - "end": { - "line": 27, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create new user account\n * @param {UserCreateParams} data - create user payload\n * @param {function(err: ApiErrorResponse, res: UserCreateResponse)} [callback] - error first node.js callback\n ", - "start": 717, - "end": 926, - "loc": { - "start": { - "line": 29, - "column": 2 - }, - "end": { - "line": 33, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Get user payload\n * @typedef {Object} UserGetParams\n * @property {string} token - your auth token\n ", - "start": 1455, - "end": 1571, - "loc": { - "start": { - "line": 53, - "column": 2 - }, - "end": { - "line": 57, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieve user response data\n * @typedef {Object} UserGetResponse\n * @property {string} id - user unique id\n * @property {string} first_name - first name\n * @property {string} last_name - last name\n * @property {number} active - user is active or not\n * @property {string} created - user creation timestamp\n * @property {string[]} emails - user emails\n * @property {string} primary_email - user primary email\n * @property {Object[]} subscriptions - user subscriptions data\n * @property {?Object} cloud_export_account_details - cloud export account details data\n * @property {boolean} is_logged_in - user is logged in or not\n * @property {{start_date: string, end_date: string, start_timestamp: number, end_timestamp: number}} billing_period - user billing period data\n * @property {Object[]} companies - companies where user is a member of\n * @property {?string} registration_source - resource where user was registered\n * @property {Object[]} teams - teams where user is a member of\n * @property {Object} settings - user specific settings\n * @property {Object[]} organization_settings - organization specific settings where user is a member of\n * @property {Object[]} merchant_accounts - merchant accounts data\n ", - "start": 1575, - "end": 2836, - "loc": { - "start": { - "line": 59, - "column": 2 - }, - "end": { - "line": 79, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieve user account details\n * @param {UserGetParams} data - get user payload\n * @param {function(err: ApiErrorResponse, res: UserGetResponse)} [callback] - error first node.js callback\n ", - "start": 2840, - "end": 3046, - "loc": { - "start": { - "line": 81, - "column": 2 - }, - "end": { - "line": 85, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 3049, - "end": 3358, - "loc": { - "start": { - "line": 86, - "column": 2 - }, - "end": { - "line": 98, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3056, - "end": 3064, - "loc": { - "start": { - "line": 86, - "column": 9 - }, - "end": { - "line": 86, - "column": 17 - }, - "identifierName": "retrieve" - }, - "name": "retrieve" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 3066, - "end": 3075, - "loc": { - "start": { - "line": 86, - "column": 19 - }, - "end": { - "line": 86, - "column": 28 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3068, - "end": 3073, - "loc": { - "start": { - "line": 86, - "column": 21 - }, - "end": { - "line": 86, - "column": 26 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3068, - "end": 3073, - "loc": { - "start": { - "line": 86, - "column": 21 - }, - "end": { - "line": 86, - "column": 26 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 3068, - "end": 3073, - "loc": { - "start": { - "line": 86, - "column": 21 - }, - "end": { - "line": 86, - "column": 26 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 3077, - "end": 3085, - "loc": { - "start": { - "line": 86, - "column": 30 - }, - "end": { - "line": 86, - "column": 38 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 3087, - "end": 3358, - "loc": { - "start": { - "line": 86, - "column": 40 - }, - "end": { - "line": 98, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 3093, - "end": 3354, - "loc": { - "start": { - "line": 87, - "column": 4 - }, - "end": { - "line": 97, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 3093, - "end": 3353, - "loc": { - "start": { - "line": 87, - "column": 4 - }, - "end": { - "line": 97, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3093, - "end": 3351, - "loc": { - "start": { - "line": 87, - "column": 4 - }, - "end": { - "line": 97, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 3093, - "end": 3340, - "loc": { - "start": { - "line": 87, - "column": 4 - }, - "end": { - "line": 96, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3093, - "end": 3307, - "loc": { - "start": { - "line": 87, - "column": 4 - }, - "end": { - "line": 96, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 3093, - "end": 3297, - "loc": { - "start": { - "line": 87, - "column": 4 - }, - "end": { - "line": 95, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3093, - "end": 3113, - "loc": { - "start": { - "line": 87, - "column": 4 - }, - "end": { - "line": 88, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 3093, - "end": 3098, - "loc": { - "start": { - "line": 87, - "column": 4 - }, - "end": { - "line": 87, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 3106, - "end": 3113, - "loc": { - "start": { - "line": 88, - "column": 7 - }, - "end": { - "line": 88, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 3114, - "end": 3269, - "loc": { - "start": { - "line": 88, - "column": 15 - }, - "end": { - "line": 95, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 3114, - "end": 3133, - "loc": { - "start": { - "line": 88, - "column": 15 - }, - "end": { - "line": 88, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 3134, - "end": 3268, - "loc": { - "start": { - "line": 88, - "column": 35 - }, - "end": { - "line": 95, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3144, - "end": 3157, - "loc": { - "start": { - "line": 89, - "column": 8 - }, - "end": { - "line": 89, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3144, - "end": 3150, - "loc": { - "start": { - "line": 89, - "column": 8 - }, - "end": { - "line": 89, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 3152, - "end": 3157, - "loc": { - "start": { - "line": 89, - "column": 16 - }, - "end": { - "line": 89, - "column": 21 - } - }, - "extra": { - "rawValue": "GET", - "raw": "'GET'" - }, - "value": "GET" - } - }, - { - "type": "ObjectProperty", - "start": 3167, - "end": 3180, - "loc": { - "start": { - "line": 90, - "column": 8 - }, - "end": { - "line": 90, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3167, - "end": 3171, - "loc": { - "start": { - "line": 90, - "column": 8 - }, - "end": { - "line": 90, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 3173, - "end": 3180, - "loc": { - "start": { - "line": 90, - "column": 14 - }, - "end": { - "line": 90, - "column": 21 - } - }, - "extra": { - "rawValue": "/user", - "raw": "'/user'" - }, - "value": "/user" - } - }, - { - "type": "ObjectProperty", - "start": 3190, - "end": 3259, - "loc": { - "start": { - "line": 91, - "column": 8 - }, - "end": { - "line": 94, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3190, - "end": 3203, - "loc": { - "start": { - "line": 91, - "column": 8 - }, - "end": { - "line": 91, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 3205, - "end": 3259, - "loc": { - "start": { - "line": 91, - "column": 23 - }, - "end": { - "line": 94, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3217, - "end": 3231, - "loc": { - "start": { - "line": 92, - "column": 10 - }, - "end": { - "line": 92, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3217, - "end": 3221, - "loc": { - "start": { - "line": 92, - "column": 10 - }, - "end": { - "line": 92, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 3223, - "end": 3231, - "loc": { - "start": { - "line": 92, - "column": 16 - }, - "end": { - "line": 92, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 3243, - "end": 3248, - "loc": { - "start": { - "line": 93, - "column": 10 - }, - "end": { - "line": 93, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3243, - "end": 3248, - "loc": { - "start": { - "line": 93, - "column": 10 - }, - "end": { - "line": 93, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 3243, - "end": 3248, - "loc": { - "start": { - "line": 93, - "column": 10 - }, - "end": { - "line": 93, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 3271, - "end": 3296, - "loc": { - "start": { - "line": 95, - "column": 10 - }, - "end": { - "line": 95, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 3271, - "end": 3286, - "loc": { - "start": { - "line": 95, - "column": 10 - }, - "end": { - "line": 95, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3287, - "end": 3295, - "loc": { - "start": { - "line": 95, - "column": 26 - }, - "end": { - "line": 95, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 3305, - "end": 3307, - "loc": { - "start": { - "line": 96, - "column": 7 - }, - "end": { - "line": 96, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 3308, - "end": 3315, - "loc": { - "start": { - "line": 96, - "column": 10 - }, - "end": { - "line": 96, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 3317, - "end": 3339, - "loc": { - "start": { - "line": 96, - "column": 19 - }, - "end": { - "line": 96, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 3317, - "end": 3329, - "loc": { - "start": { - "line": 96, - "column": 19 - }, - "end": { - "line": 96, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3330, - "end": 3338, - "loc": { - "start": { - "line": 96, - "column": 32 - }, - "end": { - "line": 96, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 3348, - "end": 3351, - "loc": { - "start": { - "line": 97, - "column": 7 - }, - "end": { - "line": 97, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Get user payload\n * @typedef {Object} UserGetParams\n * @property {string} token - your auth token\n ", - "start": 1455, - "end": 1571, - "loc": { - "start": { - "line": 53, - "column": 2 - }, - "end": { - "line": 57, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieve user response data\n * @typedef {Object} UserGetResponse\n * @property {string} id - user unique id\n * @property {string} first_name - first name\n * @property {string} last_name - last name\n * @property {number} active - user is active or not\n * @property {string} created - user creation timestamp\n * @property {string[]} emails - user emails\n * @property {string} primary_email - user primary email\n * @property {Object[]} subscriptions - user subscriptions data\n * @property {?Object} cloud_export_account_details - cloud export account details data\n * @property {boolean} is_logged_in - user is logged in or not\n * @property {{start_date: string, end_date: string, start_timestamp: number, end_timestamp: number}} billing_period - user billing period data\n * @property {Object[]} companies - companies where user is a member of\n * @property {?string} registration_source - resource where user was registered\n * @property {Object[]} teams - teams where user is a member of\n * @property {Object} settings - user specific settings\n * @property {Object[]} organization_settings - organization specific settings where user is a member of\n * @property {Object[]} merchant_accounts - merchant accounts data\n ", - "start": 1575, - "end": 2836, - "loc": { - "start": { - "line": 59, - "column": 2 - }, - "end": { - "line": 79, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieve user account details\n * @param {UserGetParams} data - get user payload\n * @param {function(err: ApiErrorResponse, res: UserGetResponse)} [callback] - error first node.js callback\n ", - "start": 2840, - "end": 3046, - "loc": { - "start": { - "line": 81, - "column": 2 - }, - "end": { - "line": 85, - "column": 5 - } - } - } - ] - } - ] - }, - "leadingComments": [], - "name": "_", - "trailingComments": [] - }, - { - "type": "Identifier", - "start": 3363, - "end": 3383, - "loc": { - "start": { - "line": 102, - "column": 0 - }, - "end": { - "line": 102, - "column": 20 - } - }, - "declaration": { - "type": "Identifier", - "start": 3378, - "end": 3382, - "loc": { - "start": { - "line": 102, - "column": 15 - }, - "end": { - "line": 102, - "column": 19 - }, - "identifierName": "User" - }, - "name": "User" - }, - "name": "_", - "leadingComments": [], - "trailingComments": [] - }, - { - "type": "ExportDefaultDeclaration", - "start": 3363, - "end": 3383, - "loc": { - "start": { - "line": 102, - "column": 0 - }, - "end": { - "line": 102, - "column": 20 - } - }, - "declaration": { - "type": "ClassDeclaration", - "start": 162, - "end": 3361, - "loc": { - "start": { - "line": 10, - "column": 0 - }, - "end": { - "line": 100, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 168, - "end": 172, - "loc": { - "start": { - "line": 10, - "column": 6 - }, - "end": { - "line": 10, - "column": 10 - }, - "identifierName": "User" - }, - "name": "User", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 173, - "end": 3361, - "loc": { - "start": { - "line": 10, - "column": 11 - }, - "end": { - "line": 100, - "column": 1 - } - }, - "body": [ - { - "type": "ClassMethod", - "start": 929, - "end": 1451, - "loc": { - "start": { - "line": 34, - "column": 2 - }, - "end": { - "line": 51, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 936, - "end": 942, - "loc": { - "start": { - "line": 34, - "column": 9 - }, - "end": { - "line": 34, - "column": 15 - }, - "identifierName": "create" - }, - "name": "create" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 944, - "end": 948, - "loc": { - "start": { - "line": 34, - "column": 17 - }, - "end": { - "line": 34, - "column": 21 - }, - "identifierName": "data" - }, - "name": "data" - }, - { - "type": "Identifier", - "start": 950, - "end": 958, - "loc": { - "start": { - "line": 34, - "column": 23 - }, - "end": { - "line": 34, - "column": 31 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 960, - "end": 1451, - "loc": { - "start": { - "line": 34, - "column": 33 - }, - "end": { - "line": 51, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 966, - "end": 1004, - "loc": { - "start": { - "line": 35, - "column": 4 - }, - "end": { - "line": 35, - "column": 42 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 972, - "end": 1003, - "loc": { - "start": { - "line": 35, - "column": 10 - }, - "end": { - "line": 35, - "column": 41 - } - }, - "id": { - "type": "Identifier", - "start": 972, - "end": 980, - "loc": { - "start": { - "line": 35, - "column": 10 - }, - "end": { - "line": 35, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 983, - "end": 1003, - "loc": { - "start": { - "line": 35, - "column": 21 - }, - "end": { - "line": 35, - "column": 41 - } - }, - "callee": { - "type": "MemberExpression", - "start": 983, - "end": 997, - "loc": { - "start": { - "line": 35, - "column": 21 - }, - "end": { - "line": 35, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 983, - "end": 987, - "loc": { - "start": { - "line": 35, - "column": 21 - }, - "end": { - "line": 35, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 988, - "end": 997, - "loc": { - "start": { - "line": 35, - "column": 26 - }, - "end": { - "line": 35, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 998, - "end": 1002, - "loc": { - "start": { - "line": 35, - "column": 36 - }, - "end": { - "line": 35, - "column": 40 - }, - "identifierName": "data" - }, - "name": "data" - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 1009, - "end": 1406, - "loc": { - "start": { - "line": 36, - "column": 4 - }, - "end": { - "line": 47, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1015, - "end": 1405, - "loc": { - "start": { - "line": 36, - "column": 10 - }, - "end": { - "line": 47, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 1015, - "end": 1018, - "loc": { - "start": { - "line": 36, - "column": 10 - }, - "end": { - "line": 36, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 1021, - "end": 1405, - "loc": { - "start": { - "line": 36, - "column": 16 - }, - "end": { - "line": 47, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1021, - "end": 1372, - "loc": { - "start": { - "line": 36, - "column": 16 - }, - "end": { - "line": 47, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 1021, - "end": 1362, - "loc": { - "start": { - "line": 36, - "column": 16 - }, - "end": { - "line": 46, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1021, - "end": 1041, - "loc": { - "start": { - "line": 36, - "column": 16 - }, - "end": { - "line": 37, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 1021, - "end": 1026, - "loc": { - "start": { - "line": 36, - "column": 16 - }, - "end": { - "line": 36, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 1034, - "end": 1041, - "loc": { - "start": { - "line": 37, - "column": 7 - }, - "end": { - "line": 37, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 1042, - "end": 1334, - "loc": { - "start": { - "line": 37, - "column": 15 - }, - "end": { - "line": 46, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 1042, - "end": 1061, - "loc": { - "start": { - "line": 37, - "column": 15 - }, - "end": { - "line": 37, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 1062, - "end": 1333, - "loc": { - "start": { - "line": 37, - "column": 35 - }, - "end": { - "line": 46, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1072, - "end": 1086, - "loc": { - "start": { - "line": 38, - "column": 8 - }, - "end": { - "line": 38, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1072, - "end": 1078, - "loc": { - "start": { - "line": 38, - "column": 8 - }, - "end": { - "line": 38, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 1080, - "end": 1086, - "loc": { - "start": { - "line": 38, - "column": 16 - }, - "end": { - "line": 38, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 1096, - "end": 1109, - "loc": { - "start": { - "line": 39, - "column": 8 - }, - "end": { - "line": 39, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1096, - "end": 1100, - "loc": { - "start": { - "line": 39, - "column": 8 - }, - "end": { - "line": 39, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 1102, - "end": 1109, - "loc": { - "start": { - "line": 39, - "column": 14 - }, - "end": { - "line": 39, - "column": 21 - } - }, - "extra": { - "rawValue": "/user", - "raw": "'/user'" - }, - "value": "/user" - } - }, - { - "type": "ObjectProperty", - "start": 1119, - "end": 1151, - "loc": { - "start": { - "line": 40, - "column": 8 - }, - "end": { - "line": 40, - "column": 40 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1119, - "end": 1132, - "loc": { - "start": { - "line": 40, - "column": 8 - }, - "end": { - "line": 40, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 1134, - "end": 1151, - "loc": { - "start": { - "line": 40, - "column": 23 - }, - "end": { - "line": 40, - "column": 40 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1136, - "end": 1149, - "loc": { - "start": { - "line": 40, - "column": 25 - }, - "end": { - "line": 40, - "column": 38 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1136, - "end": 1140, - "loc": { - "start": { - "line": 40, - "column": 25 - }, - "end": { - "line": 40, - "column": 29 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 1142, - "end": 1149, - "loc": { - "start": { - "line": 40, - "column": 31 - }, - "end": { - "line": 40, - "column": 38 - } - }, - "extra": { - "rawValue": "Basic", - "raw": "'Basic'" - }, - "value": "Basic" - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 1161, - "end": 1324, - "loc": { - "start": { - "line": 41, - "column": 8 - }, - "end": { - "line": 45, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1161, - "end": 1168, - "loc": { - "start": { - "line": 41, - "column": 8 - }, - "end": { - "line": 41, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 1170, - "end": 1324, - "loc": { - "start": { - "line": 41, - "column": 17 - }, - "end": { - "line": 45, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1182, - "end": 1216, - "loc": { - "start": { - "line": 42, - "column": 10 - }, - "end": { - "line": 42, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 1182, - "end": 1196, - "loc": { - "start": { - "line": 42, - "column": 10 - }, - "end": { - "line": 42, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 1198, - "end": 1216, - "loc": { - "start": { - "line": 42, - "column": 26 - }, - "end": { - "line": 42, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 1228, - "end": 1273, - "loc": { - "start": { - "line": 43, - "column": 10 - }, - "end": { - "line": 43, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 1228, - "end": 1244, - "loc": { - "start": { - "line": 43, - "column": 10 - }, - "end": { - "line": 43, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 1246, - "end": 1273, - "loc": { - "start": { - "line": 43, - "column": 28 - }, - "end": { - "line": 43, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1246, - "end": 1263, - "loc": { - "start": { - "line": 43, - "column": 28 - }, - "end": { - "line": 43, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 1246, - "end": 1252, - "loc": { - "start": { - "line": 43, - "column": 28 - }, - "end": { - "line": 43, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 1253, - "end": 1263, - "loc": { - "start": { - "line": 43, - "column": 35 - }, - "end": { - "line": 43, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1264, - "end": 1272, - "loc": { - "start": { - "line": 43, - "column": 46 - }, - "end": { - "line": 43, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 1285, - "end": 1313, - "loc": { - "start": { - "line": 44, - "column": 10 - }, - "end": { - "line": 44, - "column": 38 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 1285, - "end": 1297, - "loc": { - "start": { - "line": 44, - "column": 10 - }, - "end": { - "line": 44, - "column": 22 - } - }, - "extra": { - "rawValue": "User-Agent", - "raw": "'User-Agent'" - }, - "value": "User-Agent" - }, - "value": { - "type": "CallExpression", - "start": 1299, - "end": 1313, - "loc": { - "start": { - "line": 44, - "column": 24 - }, - "end": { - "line": 44, - "column": 38 - } - }, - "callee": { - "type": "Identifier", - "start": 1299, - "end": 1311, - "loc": { - "start": { - "line": 44, - "column": 24 - }, - "end": { - "line": 44, - "column": 36 - }, - "identifierName": "getUserAgent" - }, - "name": "getUserAgent" - }, - "arguments": [] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 1336, - "end": 1361, - "loc": { - "start": { - "line": 46, - "column": 10 - }, - "end": { - "line": 46, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 1336, - "end": 1351, - "loc": { - "start": { - "line": 46, - "column": 10 - }, - "end": { - "line": 46, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1352, - "end": 1360, - "loc": { - "start": { - "line": 46, - "column": 26 - }, - "end": { - "line": 46, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 1370, - "end": 1372, - "loc": { - "start": { - "line": 47, - "column": 7 - }, - "end": { - "line": 47, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 1373, - "end": 1380, - "loc": { - "start": { - "line": 47, - "column": 10 - }, - "end": { - "line": 47, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 1382, - "end": 1404, - "loc": { - "start": { - "line": 47, - "column": 19 - }, - "end": { - "line": 47, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 1382, - "end": 1394, - "loc": { - "start": { - "line": 47, - "column": 19 - }, - "end": { - "line": 47, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1395, - "end": 1403, - "loc": { - "start": { - "line": 47, - "column": 32 - }, - "end": { - "line": 47, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 1412, - "end": 1432, - "loc": { - "start": { - "line": 49, - "column": 4 - }, - "end": { - "line": 49, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 1412, - "end": 1431, - "loc": { - "start": { - "line": 49, - "column": 4 - }, - "end": { - "line": 49, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1412, - "end": 1421, - "loc": { - "start": { - "line": 49, - "column": 4 - }, - "end": { - "line": 49, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 1412, - "end": 1415, - "loc": { - "start": { - "line": 49, - "column": 4 - }, - "end": { - "line": 49, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 1416, - "end": 1421, - "loc": { - "start": { - "line": 49, - "column": 8 - }, - "end": { - "line": 49, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1422, - "end": 1430, - "loc": { - "start": { - "line": 49, - "column": 14 - }, - "end": { - "line": 49, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 1437, - "end": 1447, - "loc": { - "start": { - "line": 50, - "column": 4 - }, - "end": { - "line": 50, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 1437, - "end": 1446, - "loc": { - "start": { - "line": 50, - "column": 4 - }, - "end": { - "line": 50, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1437, - "end": 1444, - "loc": { - "start": { - "line": 50, - "column": 4 - }, - "end": { - "line": 50, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 1437, - "end": 1440, - "loc": { - "start": { - "line": 50, - "column": 4 - }, - "end": { - "line": 50, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 1441, - "end": 1444, - "loc": { - "start": { - "line": 50, - "column": 8 - }, - "end": { - "line": 50, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Create user payload\n * @typedef {Object} UserCreateParams\n * @property {string} email - email of new user\n * @property {string} password - password for new user\n * @property {string} [first_name] - first name of new user\n * @property {string} [last_name] - last name of new user\n ", - "start": 178, - "end": 481, - "loc": { - "start": { - "line": 12, - "column": 2 - }, - "end": { - "line": 19, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create user response data\n * @typedef {Object} UserCreateResponse\n * @property {string} id - user unique id\n * @property {number} verified - user is verified or not\n * @property {string} email - user email\n ", - "start": 485, - "end": 713, - "loc": { - "start": { - "line": 21, - "column": 2 - }, - "end": { - "line": 27, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create new user account\n * @param {UserCreateParams} data - create user payload\n * @param {function(err: ApiErrorResponse, res: UserCreateResponse)} [callback] - error first node.js callback\n ", - "start": 717, - "end": 926, - "loc": { - "start": { - "line": 29, - "column": 2 - }, - "end": { - "line": 33, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Get user payload\n * @typedef {Object} UserGetParams\n * @property {string} token - your auth token\n ", - "start": 1455, - "end": 1571, - "loc": { - "start": { - "line": 53, - "column": 2 - }, - "end": { - "line": 57, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieve user response data\n * @typedef {Object} UserGetResponse\n * @property {string} id - user unique id\n * @property {string} first_name - first name\n * @property {string} last_name - last name\n * @property {number} active - user is active or not\n * @property {string} created - user creation timestamp\n * @property {string[]} emails - user emails\n * @property {string} primary_email - user primary email\n * @property {Object[]} subscriptions - user subscriptions data\n * @property {?Object} cloud_export_account_details - cloud export account details data\n * @property {boolean} is_logged_in - user is logged in or not\n * @property {{start_date: string, end_date: string, start_timestamp: number, end_timestamp: number}} billing_period - user billing period data\n * @property {Object[]} companies - companies where user is a member of\n * @property {?string} registration_source - resource where user was registered\n * @property {Object[]} teams - teams where user is a member of\n * @property {Object} settings - user specific settings\n * @property {Object[]} organization_settings - organization specific settings where user is a member of\n * @property {Object[]} merchant_accounts - merchant accounts data\n ", - "start": 1575, - "end": 2836, - "loc": { - "start": { - "line": 59, - "column": 2 - }, - "end": { - "line": 79, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieve user account details\n * @param {UserGetParams} data - get user payload\n * @param {function(err: ApiErrorResponse, res: UserGetResponse)} [callback] - error first node.js callback\n ", - "start": 2840, - "end": 3046, - "loc": { - "start": { - "line": 81, - "column": 2 - }, - "end": { - "line": 85, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 3049, - "end": 3358, - "loc": { - "start": { - "line": 86, - "column": 2 - }, - "end": { - "line": 98, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3056, - "end": 3064, - "loc": { - "start": { - "line": 86, - "column": 9 - }, - "end": { - "line": 86, - "column": 17 - }, - "identifierName": "retrieve" - }, - "name": "retrieve" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 3066, - "end": 3075, - "loc": { - "start": { - "line": 86, - "column": 19 - }, - "end": { - "line": 86, - "column": 28 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3068, - "end": 3073, - "loc": { - "start": { - "line": 86, - "column": 21 - }, - "end": { - "line": 86, - "column": 26 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3068, - "end": 3073, - "loc": { - "start": { - "line": 86, - "column": 21 - }, - "end": { - "line": 86, - "column": 26 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 3068, - "end": 3073, - "loc": { - "start": { - "line": 86, - "column": 21 - }, - "end": { - "line": 86, - "column": 26 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 3077, - "end": 3085, - "loc": { - "start": { - "line": 86, - "column": 30 - }, - "end": { - "line": 86, - "column": 38 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 3087, - "end": 3358, - "loc": { - "start": { - "line": 86, - "column": 40 - }, - "end": { - "line": 98, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 3093, - "end": 3354, - "loc": { - "start": { - "line": 87, - "column": 4 - }, - "end": { - "line": 97, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 3093, - "end": 3353, - "loc": { - "start": { - "line": 87, - "column": 4 - }, - "end": { - "line": 97, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3093, - "end": 3351, - "loc": { - "start": { - "line": 87, - "column": 4 - }, - "end": { - "line": 97, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 3093, - "end": 3340, - "loc": { - "start": { - "line": 87, - "column": 4 - }, - "end": { - "line": 96, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3093, - "end": 3307, - "loc": { - "start": { - "line": 87, - "column": 4 - }, - "end": { - "line": 96, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 3093, - "end": 3297, - "loc": { - "start": { - "line": 87, - "column": 4 - }, - "end": { - "line": 95, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3093, - "end": 3113, - "loc": { - "start": { - "line": 87, - "column": 4 - }, - "end": { - "line": 88, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 3093, - "end": 3098, - "loc": { - "start": { - "line": 87, - "column": 4 - }, - "end": { - "line": 87, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 3106, - "end": 3113, - "loc": { - "start": { - "line": 88, - "column": 7 - }, - "end": { - "line": 88, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 3114, - "end": 3269, - "loc": { - "start": { - "line": 88, - "column": 15 - }, - "end": { - "line": 95, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 3114, - "end": 3133, - "loc": { - "start": { - "line": 88, - "column": 15 - }, - "end": { - "line": 88, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 3134, - "end": 3268, - "loc": { - "start": { - "line": 88, - "column": 35 - }, - "end": { - "line": 95, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3144, - "end": 3157, - "loc": { - "start": { - "line": 89, - "column": 8 - }, - "end": { - "line": 89, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3144, - "end": 3150, - "loc": { - "start": { - "line": 89, - "column": 8 - }, - "end": { - "line": 89, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 3152, - "end": 3157, - "loc": { - "start": { - "line": 89, - "column": 16 - }, - "end": { - "line": 89, - "column": 21 - } - }, - "extra": { - "rawValue": "GET", - "raw": "'GET'" - }, - "value": "GET" - } - }, - { - "type": "ObjectProperty", - "start": 3167, - "end": 3180, - "loc": { - "start": { - "line": 90, - "column": 8 - }, - "end": { - "line": 90, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3167, - "end": 3171, - "loc": { - "start": { - "line": 90, - "column": 8 - }, - "end": { - "line": 90, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 3173, - "end": 3180, - "loc": { - "start": { - "line": 90, - "column": 14 - }, - "end": { - "line": 90, - "column": 21 - } - }, - "extra": { - "rawValue": "/user", - "raw": "'/user'" - }, - "value": "/user" - } - }, - { - "type": "ObjectProperty", - "start": 3190, - "end": 3259, - "loc": { - "start": { - "line": 91, - "column": 8 - }, - "end": { - "line": 94, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3190, - "end": 3203, - "loc": { - "start": { - "line": 91, - "column": 8 - }, - "end": { - "line": 91, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 3205, - "end": 3259, - "loc": { - "start": { - "line": 91, - "column": 23 - }, - "end": { - "line": 94, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3217, - "end": 3231, - "loc": { - "start": { - "line": 92, - "column": 10 - }, - "end": { - "line": 92, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3217, - "end": 3221, - "loc": { - "start": { - "line": 92, - "column": 10 - }, - "end": { - "line": 92, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 3223, - "end": 3231, - "loc": { - "start": { - "line": 92, - "column": 16 - }, - "end": { - "line": 92, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 3243, - "end": 3248, - "loc": { - "start": { - "line": 93, - "column": 10 - }, - "end": { - "line": 93, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3243, - "end": 3248, - "loc": { - "start": { - "line": 93, - "column": 10 - }, - "end": { - "line": 93, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 3243, - "end": 3248, - "loc": { - "start": { - "line": 93, - "column": 10 - }, - "end": { - "line": 93, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 3271, - "end": 3296, - "loc": { - "start": { - "line": 95, - "column": 10 - }, - "end": { - "line": 95, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 3271, - "end": 3286, - "loc": { - "start": { - "line": 95, - "column": 10 - }, - "end": { - "line": 95, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3287, - "end": 3295, - "loc": { - "start": { - "line": 95, - "column": 26 - }, - "end": { - "line": 95, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 3305, - "end": 3307, - "loc": { - "start": { - "line": 96, - "column": 7 - }, - "end": { - "line": 96, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 3308, - "end": 3315, - "loc": { - "start": { - "line": 96, - "column": 10 - }, - "end": { - "line": 96, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 3317, - "end": 3339, - "loc": { - "start": { - "line": 96, - "column": 19 - }, - "end": { - "line": 96, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 3317, - "end": 3329, - "loc": { - "start": { - "line": 96, - "column": 19 - }, - "end": { - "line": 96, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3330, - "end": 3338, - "loc": { - "start": { - "line": 96, - "column": 32 - }, - "end": { - "line": 96, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 3348, - "end": 3351, - "loc": { - "start": { - "line": 97, - "column": 7 - }, - "end": { - "line": 97, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Get user payload\n * @typedef {Object} UserGetParams\n * @property {string} token - your auth token\n ", - "start": 1455, - "end": 1571, - "loc": { - "start": { - "line": 53, - "column": 2 - }, - "end": { - "line": 57, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieve user response data\n * @typedef {Object} UserGetResponse\n * @property {string} id - user unique id\n * @property {string} first_name - first name\n * @property {string} last_name - last name\n * @property {number} active - user is active or not\n * @property {string} created - user creation timestamp\n * @property {string[]} emails - user emails\n * @property {string} primary_email - user primary email\n * @property {Object[]} subscriptions - user subscriptions data\n * @property {?Object} cloud_export_account_details - cloud export account details data\n * @property {boolean} is_logged_in - user is logged in or not\n * @property {{start_date: string, end_date: string, start_timestamp: number, end_timestamp: number}} billing_period - user billing period data\n * @property {Object[]} companies - companies where user is a member of\n * @property {?string} registration_source - resource where user was registered\n * @property {Object[]} teams - teams where user is a member of\n * @property {Object} settings - user specific settings\n * @property {Object[]} organization_settings - organization specific settings where user is a member of\n * @property {Object[]} merchant_accounts - merchant accounts data\n ", - "start": 1575, - "end": 2836, - "loc": { - "start": { - "line": 59, - "column": 2 - }, - "end": { - "line": 79, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieve user account details\n * @param {UserGetParams} data - get user payload\n * @param {function(err: ApiErrorResponse, res: UserGetResponse)} [callback] - error first node.js callback\n ", - "start": 2840, - "end": 3046, - "loc": { - "start": { - "line": 81, - "column": 2 - }, - "end": { - "line": 85, - "column": 5 - } - } - } - ] - } - ] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * User methods\n ", - "start": 138, - "end": 161, - "loc": { - "start": { - "line": 7, - "column": 0 - }, - "end": { - "line": 9, - "column": 3 - } - } - } - ], - "__PseudoExport__": false, - "trailingComments": [] - }, - "leadingComments": null - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "value": "use strict", - "extra": { - "raw": "'use strict'", - "rawValue": "use strict" - } - } - } - ] - }, - "comments": [ - { - "type": "CommentBlock", - "value": "*\n * User methods\n ", - "start": 138, - "end": 161, - "loc": { - "start": { - "line": 7, - "column": 0 - }, - "end": { - "line": 9, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create user payload\n * @typedef {Object} UserCreateParams\n * @property {string} email - email of new user\n * @property {string} password - password for new user\n * @property {string} [first_name] - first name of new user\n * @property {string} [last_name] - last name of new user\n ", - "start": 178, - "end": 481, - "loc": { - "start": { - "line": 12, - "column": 2 - }, - "end": { - "line": 19, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create user response data\n * @typedef {Object} UserCreateResponse\n * @property {string} id - user unique id\n * @property {number} verified - user is verified or not\n * @property {string} email - user email\n ", - "start": 485, - "end": 713, - "loc": { - "start": { - "line": 21, - "column": 2 - }, - "end": { - "line": 27, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create new user account\n * @param {UserCreateParams} data - create user payload\n * @param {function(err: ApiErrorResponse, res: UserCreateResponse)} [callback] - error first node.js callback\n ", - "start": 717, - "end": 926, - "loc": { - "start": { - "line": 29, - "column": 2 - }, - "end": { - "line": 33, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Get user payload\n * @typedef {Object} UserGetParams\n * @property {string} token - your auth token\n ", - "start": 1455, - "end": 1571, - "loc": { - "start": { - "line": 53, - "column": 2 - }, - "end": { - "line": 57, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieve user response data\n * @typedef {Object} UserGetResponse\n * @property {string} id - user unique id\n * @property {string} first_name - first name\n * @property {string} last_name - last name\n * @property {number} active - user is active or not\n * @property {string} created - user creation timestamp\n * @property {string[]} emails - user emails\n * @property {string} primary_email - user primary email\n * @property {Object[]} subscriptions - user subscriptions data\n * @property {?Object} cloud_export_account_details - cloud export account details data\n * @property {boolean} is_logged_in - user is logged in or not\n * @property {{start_date: string, end_date: string, start_timestamp: number, end_timestamp: number}} billing_period - user billing period data\n * @property {Object[]} companies - companies where user is a member of\n * @property {?string} registration_source - resource where user was registered\n * @property {Object[]} teams - teams where user is a member of\n * @property {Object} settings - user specific settings\n * @property {Object[]} organization_settings - organization specific settings where user is a member of\n * @property {Object[]} merchant_accounts - merchant accounts data\n ", - "start": 1575, - "end": 2836, - "loc": { - "start": { - "line": 59, - "column": 2 - }, - "end": { - "line": 79, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieve user account details\n * @param {UserGetParams} data - get user payload\n * @param {function(err: ApiErrorResponse, res: UserGetResponse)} [callback] - error first node.js callback\n ", - "start": 2840, - "end": 3046, - "loc": { - "start": { - "line": 81, - "column": 2 - }, - "end": { - "line": 85, - "column": 5 - } - } - } - ], - "tokens": [ - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "use strict", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 12 - }, - "end": { - "line": 1, - "column": 13 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 14, - "end": 20, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 27, - "end": 31, - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 17 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "https", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 18 - }, - "end": { - "line": 2, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39, - "end": 40, - "loc": { - "start": { - "line": 2, - "column": 25 - }, - "end": { - "line": 2, - "column": 26 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 41, - "end": 47, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 48, - "end": 49, - "loc": { - "start": { - "line": 3, - "column": 7 - }, - "end": { - "line": 3, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 67, - "end": 68, - "loc": { - "start": { - "line": 4, - "column": 17 - }, - "end": { - "line": 4, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 69, - "end": 81, - "loc": { - "start": { - "line": 4, - "column": 19 - }, - "end": { - "line": 4, - "column": 31 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 81, - "end": 82, - "loc": { - "start": { - "line": 4, - "column": 31 - }, - "end": { - "line": 4, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 83, - "end": 102, - "loc": { - "start": { - "line": 4, - "column": 33 - }, - "end": { - "line": 4, - "column": 52 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 102, - "end": 103, - "loc": { - "start": { - "line": 4, - "column": 52 - }, - "end": { - "line": 4, - "column": 53 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getUserAgent", - "start": 104, - "end": 116, - "loc": { - "start": { - "line": 4, - "column": 54 - }, - "end": { - "line": 4, - "column": 66 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 116, - "end": 117, - "loc": { - "start": { - "line": 4, - "column": 66 - }, - "end": { - "line": 4, - "column": 67 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 118, - "end": 119, - "loc": { - "start": { - "line": 5, - "column": 0 - }, - "end": { - "line": 5, - "column": 1 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 120, - "end": 124, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 6 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "./common", - "start": 125, - "end": 135, - "loc": { - "start": { - "line": 5, - "column": 7 - }, - "end": { - "line": 5, - "column": 17 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 135, - "end": 136, - "loc": { - "start": { - "line": 5, - "column": 17 - }, - "end": { - "line": 5, - "column": 18 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * User methods\n ", - "start": 138, - "end": 161, - "loc": { - "start": { - "line": 7, - "column": 0 - }, - "end": { - "line": 9, - "column": 3 - } - } - }, - { - "type": { - "label": "class", - "keyword": "class", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "class", - "start": 162, - "end": 167, - "loc": { - "start": { - "line": 10, - "column": 0 - }, - "end": { - "line": 10, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "User", - "start": 168, - "end": 172, - "loc": { - "start": { - "line": 10, - "column": 6 - }, - "end": { - "line": 10, - "column": 10 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 173, - "end": 174, - "loc": { - "start": { - "line": 10, - "column": 11 - }, - "end": { - "line": 10, - "column": 12 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create user payload\n * @typedef {Object} UserCreateParams\n * @property {string} email - email of new user\n * @property {string} password - password for new user\n * @property {string} [first_name] - first name of new user\n * @property {string} [last_name] - last name of new user\n ", - "start": 178, - "end": 481, - "loc": { - "start": { - "line": 12, - "column": 2 - }, - "end": { - "line": 19, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create user response data\n * @typedef {Object} UserCreateResponse\n * @property {string} id - user unique id\n * @property {number} verified - user is verified or not\n * @property {string} email - user email\n ", - "start": 485, - "end": 713, - "loc": { - "start": { - "line": 21, - "column": 2 - }, - "end": { - "line": 27, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create new user account\n * @param {UserCreateParams} data - create user payload\n * @param {function(err: ApiErrorResponse, res: UserCreateResponse)} [callback] - error first node.js callback\n ", - "start": 717, - "end": 926, - "loc": { - "start": { - "line": 29, - "column": 2 - }, - "end": { - "line": 33, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 929, - "end": 935, - "loc": { - "start": { - "line": 34, - "column": 2 - }, - "end": { - "line": 34, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "create", - "start": 936, - "end": 942, - "loc": { - "start": { - "line": 34, - "column": 9 - }, - "end": { - "line": 34, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 943, - "end": 944, - "loc": { - "start": { - "line": 34, - "column": 16 - }, - "end": { - "line": 34, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 944, - "end": 948, - "loc": { - "start": { - "line": 34, - "column": 17 - }, - "end": { - "line": 34, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 948, - "end": 949, - "loc": { - "start": { - "line": 34, - "column": 21 - }, - "end": { - "line": 34, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 950, - "end": 958, - "loc": { - "start": { - "line": 34, - "column": 23 - }, - "end": { - "line": 34, - "column": 31 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 958, - "end": 959, - "loc": { - "start": { - "line": 34, - "column": 31 - }, - "end": { - "line": 34, - "column": 32 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 960, - "end": 961, - "loc": { - "start": { - "line": 34, - "column": 33 - }, - "end": { - "line": 34, - "column": 34 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 966, - "end": 971, - "loc": { - "start": { - "line": 35, - "column": 4 - }, - "end": { - "line": 35, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 972, - "end": 980, - "loc": { - "start": { - "line": 35, - "column": 10 - }, - "end": { - "line": 35, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 981, - "end": 982, - "loc": { - "start": { - "line": 35, - "column": 19 - }, - "end": { - "line": 35, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSON", - "start": 983, - "end": 987, - "loc": { - "start": { - "line": 35, - "column": 21 - }, - "end": { - "line": 35, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 987, - "end": 988, - "loc": { - "start": { - "line": 35, - "column": 25 - }, - "end": { - "line": 35, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "stringify", - "start": 988, - "end": 997, - "loc": { - "start": { - "line": 35, - "column": 26 - }, - "end": { - "line": 35, - "column": 35 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 997, - "end": 998, - "loc": { - "start": { - "line": 35, - "column": 35 - }, - "end": { - "line": 35, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 998, - "end": 1002, - "loc": { - "start": { - "line": 35, - "column": 36 - }, - "end": { - "line": 35, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1002, - "end": 1003, - "loc": { - "start": { - "line": 35, - "column": 40 - }, - "end": { - "line": 35, - "column": 41 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1003, - "end": 1004, - "loc": { - "start": { - "line": 35, - "column": 41 - }, - "end": { - "line": 35, - "column": 42 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1009, - "end": 1014, - "loc": { - "start": { - "line": 36, - "column": 4 - }, - "end": { - "line": 36, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 1015, - "end": 1018, - "loc": { - "start": { - "line": 36, - "column": 10 - }, - "end": { - "line": 36, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1019, - "end": 1020, - "loc": { - "start": { - "line": 36, - "column": 14 - }, - "end": { - "line": 36, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 1021, - "end": 1026, - "loc": { - "start": { - "line": 36, - "column": 16 - }, - "end": { - "line": 36, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1033, - "end": 1034, - "loc": { - "start": { - "line": 37, - "column": 6 - }, - "end": { - "line": 37, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 1034, - "end": 1041, - "loc": { - "start": { - "line": 37, - "column": 7 - }, - "end": { - "line": 37, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1041, - "end": 1042, - "loc": { - "start": { - "line": 37, - "column": 14 - }, - "end": { - "line": 37, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 1042, - "end": 1061, - "loc": { - "start": { - "line": 37, - "column": 15 - }, - "end": { - "line": 37, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1061, - "end": 1062, - "loc": { - "start": { - "line": 37, - "column": 34 - }, - "end": { - "line": 37, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1062, - "end": 1063, - "loc": { - "start": { - "line": 37, - "column": 35 - }, - "end": { - "line": 37, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 1072, - "end": 1078, - "loc": { - "start": { - "line": 38, - "column": 8 - }, - "end": { - "line": 38, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1078, - "end": 1079, - "loc": { - "start": { - "line": 38, - "column": 14 - }, - "end": { - "line": 38, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "POST", - "start": 1080, - "end": 1086, - "loc": { - "start": { - "line": 38, - "column": 16 - }, - "end": { - "line": 38, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1086, - "end": 1087, - "loc": { - "start": { - "line": 38, - "column": 22 - }, - "end": { - "line": 38, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 1096, - "end": 1100, - "loc": { - "start": { - "line": 39, - "column": 8 - }, - "end": { - "line": 39, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1100, - "end": 1101, - "loc": { - "start": { - "line": 39, - "column": 12 - }, - "end": { - "line": 39, - "column": 13 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/user", - "start": 1102, - "end": 1109, - "loc": { - "start": { - "line": 39, - "column": 14 - }, - "end": { - "line": 39, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1109, - "end": 1110, - "loc": { - "start": { - "line": 39, - "column": 21 - }, - "end": { - "line": 39, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 1119, - "end": 1132, - "loc": { - "start": { - "line": 40, - "column": 8 - }, - "end": { - "line": 40, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1132, - "end": 1133, - "loc": { - "start": { - "line": 40, - "column": 21 - }, - "end": { - "line": 40, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1134, - "end": 1135, - "loc": { - "start": { - "line": 40, - "column": 23 - }, - "end": { - "line": 40, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 1136, - "end": 1140, - "loc": { - "start": { - "line": 40, - "column": 25 - }, - "end": { - "line": 40, - "column": 29 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1140, - "end": 1141, - "loc": { - "start": { - "line": 40, - "column": 29 - }, - "end": { - "line": 40, - "column": 30 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Basic", - "start": 1142, - "end": 1149, - "loc": { - "start": { - "line": 40, - "column": 31 - }, - "end": { - "line": 40, - "column": 38 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1150, - "end": 1151, - "loc": { - "start": { - "line": 40, - "column": 39 - }, - "end": { - "line": 40, - "column": 40 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1151, - "end": 1152, - "loc": { - "start": { - "line": 40, - "column": 40 - }, - "end": { - "line": 40, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 1161, - "end": 1168, - "loc": { - "start": { - "line": 41, - "column": 8 - }, - "end": { - "line": 41, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1168, - "end": 1169, - "loc": { - "start": { - "line": 41, - "column": 15 - }, - "end": { - "line": 41, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1170, - "end": 1171, - "loc": { - "start": { - "line": 41, - "column": 17 - }, - "end": { - "line": 41, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type", - "start": 1182, - "end": 1196, - "loc": { - "start": { - "line": 42, - "column": 10 - }, - "end": { - "line": 42, - "column": 24 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1196, - "end": 1197, - "loc": { - "start": { - "line": 42, - "column": 24 - }, - "end": { - "line": 42, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/json", - "start": 1198, - "end": 1216, - "loc": { - "start": { - "line": 42, - "column": 26 - }, - "end": { - "line": 42, - "column": 44 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1216, - "end": 1217, - "loc": { - "start": { - "line": 42, - "column": 44 - }, - "end": { - "line": 42, - "column": 45 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Length", - "start": 1228, - "end": 1244, - "loc": { - "start": { - "line": 43, - "column": 10 - }, - "end": { - "line": 43, - "column": 26 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1244, - "end": 1245, - "loc": { - "start": { - "line": 43, - "column": 26 - }, - "end": { - "line": 43, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 1246, - "end": 1252, - "loc": { - "start": { - "line": 43, - "column": 28 - }, - "end": { - "line": 43, - "column": 34 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1252, - "end": 1253, - "loc": { - "start": { - "line": 43, - "column": 34 - }, - "end": { - "line": 43, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "byteLength", - "start": 1253, - "end": 1263, - "loc": { - "start": { - "line": 43, - "column": 35 - }, - "end": { - "line": 43, - "column": 45 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1263, - "end": 1264, - "loc": { - "start": { - "line": 43, - "column": 45 - }, - "end": { - "line": 43, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 1264, - "end": 1272, - "loc": { - "start": { - "line": 43, - "column": 46 - }, - "end": { - "line": 43, - "column": 54 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1272, - "end": 1273, - "loc": { - "start": { - "line": 43, - "column": 54 - }, - "end": { - "line": 43, - "column": 55 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1273, - "end": 1274, - "loc": { - "start": { - "line": 43, - "column": 55 - }, - "end": { - "line": 43, - "column": 56 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "User-Agent", - "start": 1285, - "end": 1297, - "loc": { - "start": { - "line": 44, - "column": 10 - }, - "end": { - "line": 44, - "column": 22 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1297, - "end": 1298, - "loc": { - "start": { - "line": 44, - "column": 22 - }, - "end": { - "line": 44, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getUserAgent", - "start": 1299, - "end": 1311, - "loc": { - "start": { - "line": 44, - "column": 24 - }, - "end": { - "line": 44, - "column": 36 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1311, - "end": 1312, - "loc": { - "start": { - "line": 44, - "column": 36 - }, - "end": { - "line": 44, - "column": 37 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1312, - "end": 1313, - "loc": { - "start": { - "line": 44, - "column": 37 - }, - "end": { - "line": 44, - "column": 38 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1313, - "end": 1314, - "loc": { - "start": { - "line": 44, - "column": 38 - }, - "end": { - "line": 44, - "column": 39 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1323, - "end": 1324, - "loc": { - "start": { - "line": 45, - "column": 8 - }, - "end": { - "line": 45, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1324, - "end": 1325, - "loc": { - "start": { - "line": 45, - "column": 9 - }, - "end": { - "line": 45, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1332, - "end": 1333, - "loc": { - "start": { - "line": 46, - "column": 6 - }, - "end": { - "line": 46, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1333, - "end": 1334, - "loc": { - "start": { - "line": 46, - "column": 7 - }, - "end": { - "line": 46, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1334, - "end": 1335, - "loc": { - "start": { - "line": 46, - "column": 8 - }, - "end": { - "line": 46, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 1336, - "end": 1351, - "loc": { - "start": { - "line": 46, - "column": 10 - }, - "end": { - "line": 46, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1351, - "end": 1352, - "loc": { - "start": { - "line": 46, - "column": 25 - }, - "end": { - "line": 46, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 1352, - "end": 1360, - "loc": { - "start": { - "line": 46, - "column": 26 - }, - "end": { - "line": 46, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1360, - "end": 1361, - "loc": { - "start": { - "line": 46, - "column": 34 - }, - "end": { - "line": 46, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1361, - "end": 1362, - "loc": { - "start": { - "line": 46, - "column": 35 - }, - "end": { - "line": 46, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1369, - "end": 1370, - "loc": { - "start": { - "line": 47, - "column": 6 - }, - "end": { - "line": 47, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 1370, - "end": 1372, - "loc": { - "start": { - "line": 47, - "column": 7 - }, - "end": { - "line": 47, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1372, - "end": 1373, - "loc": { - "start": { - "line": 47, - "column": 9 - }, - "end": { - "line": 47, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 1373, - "end": 1380, - "loc": { - "start": { - "line": 47, - "column": 10 - }, - "end": { - "line": 47, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1380, - "end": 1381, - "loc": { - "start": { - "line": 47, - "column": 17 - }, - "end": { - "line": 47, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 1382, - "end": 1394, - "loc": { - "start": { - "line": 47, - "column": 19 - }, - "end": { - "line": 47, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1394, - "end": 1395, - "loc": { - "start": { - "line": 47, - "column": 31 - }, - "end": { - "line": 47, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 1395, - "end": 1403, - "loc": { - "start": { - "line": 47, - "column": 32 - }, - "end": { - "line": 47, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1403, - "end": 1404, - "loc": { - "start": { - "line": 47, - "column": 40 - }, - "end": { - "line": 47, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1404, - "end": 1405, - "loc": { - "start": { - "line": 47, - "column": 41 - }, - "end": { - "line": 47, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1405, - "end": 1406, - "loc": { - "start": { - "line": 47, - "column": 42 - }, - "end": { - "line": 47, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 1412, - "end": 1415, - "loc": { - "start": { - "line": 49, - "column": 4 - }, - "end": { - "line": 49, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1415, - "end": 1416, - "loc": { - "start": { - "line": 49, - "column": 7 - }, - "end": { - "line": 49, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "write", - "start": 1416, - "end": 1421, - "loc": { - "start": { - "line": 49, - "column": 8 - }, - "end": { - "line": 49, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1421, - "end": 1422, - "loc": { - "start": { - "line": 49, - "column": 13 - }, - "end": { - "line": 49, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 1422, - "end": 1430, - "loc": { - "start": { - "line": 49, - "column": 14 - }, - "end": { - "line": 49, - "column": 22 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1430, - "end": 1431, - "loc": { - "start": { - "line": 49, - "column": 22 - }, - "end": { - "line": 49, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1431, - "end": 1432, - "loc": { - "start": { - "line": 49, - "column": 23 - }, - "end": { - "line": 49, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 1437, - "end": 1440, - "loc": { - "start": { - "line": 50, - "column": 4 - }, - "end": { - "line": 50, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1440, - "end": 1441, - "loc": { - "start": { - "line": 50, - "column": 7 - }, - "end": { - "line": 50, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 1441, - "end": 1444, - "loc": { - "start": { - "line": 50, - "column": 8 - }, - "end": { - "line": 50, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1444, - "end": 1445, - "loc": { - "start": { - "line": 50, - "column": 11 - }, - "end": { - "line": 50, - "column": 12 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1445, - "end": 1446, - "loc": { - "start": { - "line": 50, - "column": 12 - }, - "end": { - "line": 50, - "column": 13 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1446, - "end": 1447, - "loc": { - "start": { - "line": 50, - "column": 13 - }, - "end": { - "line": 50, - "column": 14 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1450, - "end": 1451, - "loc": { - "start": { - "line": 51, - "column": 2 - }, - "end": { - "line": 51, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Get user payload\n * @typedef {Object} UserGetParams\n * @property {string} token - your auth token\n ", - "start": 1455, - "end": 1571, - "loc": { - "start": { - "line": 53, - "column": 2 - }, - "end": { - "line": 57, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieve user response data\n * @typedef {Object} UserGetResponse\n * @property {string} id - user unique id\n * @property {string} first_name - first name\n * @property {string} last_name - last name\n * @property {number} active - user is active or not\n * @property {string} created - user creation timestamp\n * @property {string[]} emails - user emails\n * @property {string} primary_email - user primary email\n * @property {Object[]} subscriptions - user subscriptions data\n * @property {?Object} cloud_export_account_details - cloud export account details data\n * @property {boolean} is_logged_in - user is logged in or not\n * @property {{start_date: string, end_date: string, start_timestamp: number, end_timestamp: number}} billing_period - user billing period data\n * @property {Object[]} companies - companies where user is a member of\n * @property {?string} registration_source - resource where user was registered\n * @property {Object[]} teams - teams where user is a member of\n * @property {Object} settings - user specific settings\n * @property {Object[]} organization_settings - organization specific settings where user is a member of\n * @property {Object[]} merchant_accounts - merchant accounts data\n ", - "start": 1575, - "end": 2836, - "loc": { - "start": { - "line": 59, - "column": 2 - }, - "end": { - "line": 79, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieve user account details\n * @param {UserGetParams} data - get user payload\n * @param {function(err: ApiErrorResponse, res: UserGetResponse)} [callback] - error first node.js callback\n ", - "start": 2840, - "end": 3046, - "loc": { - "start": { - "line": 81, - "column": 2 - }, - "end": { - "line": 85, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 3049, - "end": 3055, - "loc": { - "start": { - "line": 86, - "column": 2 - }, - "end": { - "line": 86, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "retrieve", - "start": 3056, - "end": 3064, - "loc": { - "start": { - "line": 86, - "column": 9 - }, - "end": { - "line": 86, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3065, - "end": 3066, - "loc": { - "start": { - "line": 86, - "column": 18 - }, - "end": { - "line": 86, - "column": 19 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3066, - "end": 3067, - "loc": { - "start": { - "line": 86, - "column": 19 - }, - "end": { - "line": 86, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 3068, - "end": 3073, - "loc": { - "start": { - "line": 86, - "column": 21 - }, - "end": { - "line": 86, - "column": 26 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3074, - "end": 3075, - "loc": { - "start": { - "line": 86, - "column": 27 - }, - "end": { - "line": 86, - "column": 28 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3075, - "end": 3076, - "loc": { - "start": { - "line": 86, - "column": 28 - }, - "end": { - "line": 86, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 3077, - "end": 3085, - "loc": { - "start": { - "line": 86, - "column": 30 - }, - "end": { - "line": 86, - "column": 38 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3085, - "end": 3086, - "loc": { - "start": { - "line": 86, - "column": 38 - }, - "end": { - "line": 86, - "column": 39 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3087, - "end": 3088, - "loc": { - "start": { - "line": 86, - "column": 40 - }, - "end": { - "line": 86, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 3093, - "end": 3098, - "loc": { - "start": { - "line": 87, - "column": 4 - }, - "end": { - "line": 87, - "column": 9 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3105, - "end": 3106, - "loc": { - "start": { - "line": 88, - "column": 6 - }, - "end": { - "line": 88, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 3106, - "end": 3113, - "loc": { - "start": { - "line": 88, - "column": 7 - }, - "end": { - "line": 88, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3113, - "end": 3114, - "loc": { - "start": { - "line": 88, - "column": 14 - }, - "end": { - "line": 88, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 3114, - "end": 3133, - "loc": { - "start": { - "line": 88, - "column": 15 - }, - "end": { - "line": 88, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3133, - "end": 3134, - "loc": { - "start": { - "line": 88, - "column": 34 - }, - "end": { - "line": 88, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3134, - "end": 3135, - "loc": { - "start": { - "line": 88, - "column": 35 - }, - "end": { - "line": 88, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 3144, - "end": 3150, - "loc": { - "start": { - "line": 89, - "column": 8 - }, - "end": { - "line": 89, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3150, - "end": 3151, - "loc": { - "start": { - "line": 89, - "column": 14 - }, - "end": { - "line": 89, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "GET", - "start": 3152, - "end": 3157, - "loc": { - "start": { - "line": 89, - "column": 16 - }, - "end": { - "line": 89, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3157, - "end": 3158, - "loc": { - "start": { - "line": 89, - "column": 21 - }, - "end": { - "line": 89, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 3167, - "end": 3171, - "loc": { - "start": { - "line": 90, - "column": 8 - }, - "end": { - "line": 90, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3171, - "end": 3172, - "loc": { - "start": { - "line": 90, - "column": 12 - }, - "end": { - "line": 90, - "column": 13 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/user", - "start": 3173, - "end": 3180, - "loc": { - "start": { - "line": 90, - "column": 14 - }, - "end": { - "line": 90, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3180, - "end": 3181, - "loc": { - "start": { - "line": 90, - "column": 21 - }, - "end": { - "line": 90, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 3190, - "end": 3203, - "loc": { - "start": { - "line": 91, - "column": 8 - }, - "end": { - "line": 91, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3203, - "end": 3204, - "loc": { - "start": { - "line": 91, - "column": 21 - }, - "end": { - "line": 91, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3205, - "end": 3206, - "loc": { - "start": { - "line": 91, - "column": 23 - }, - "end": { - "line": 91, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 3217, - "end": 3221, - "loc": { - "start": { - "line": 92, - "column": 10 - }, - "end": { - "line": 92, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3221, - "end": 3222, - "loc": { - "start": { - "line": 92, - "column": 14 - }, - "end": { - "line": 92, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 3223, - "end": 3231, - "loc": { - "start": { - "line": 92, - "column": 16 - }, - "end": { - "line": 92, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3231, - "end": 3232, - "loc": { - "start": { - "line": 92, - "column": 24 - }, - "end": { - "line": 92, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 3243, - "end": 3248, - "loc": { - "start": { - "line": 93, - "column": 10 - }, - "end": { - "line": 93, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3248, - "end": 3249, - "loc": { - "start": { - "line": 93, - "column": 15 - }, - "end": { - "line": 93, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3258, - "end": 3259, - "loc": { - "start": { - "line": 94, - "column": 8 - }, - "end": { - "line": 94, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3259, - "end": 3260, - "loc": { - "start": { - "line": 94, - "column": 9 - }, - "end": { - "line": 94, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3267, - "end": 3268, - "loc": { - "start": { - "line": 95, - "column": 6 - }, - "end": { - "line": 95, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3268, - "end": 3269, - "loc": { - "start": { - "line": 95, - "column": 7 - }, - "end": { - "line": 95, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3269, - "end": 3270, - "loc": { - "start": { - "line": 95, - "column": 8 - }, - "end": { - "line": 95, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 3271, - "end": 3286, - "loc": { - "start": { - "line": 95, - "column": 10 - }, - "end": { - "line": 95, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3286, - "end": 3287, - "loc": { - "start": { - "line": 95, - "column": 25 - }, - "end": { - "line": 95, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 3287, - "end": 3295, - "loc": { - "start": { - "line": 95, - "column": 26 - }, - "end": { - "line": 95, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3295, - "end": 3296, - "loc": { - "start": { - "line": 95, - "column": 34 - }, - "end": { - "line": 95, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3296, - "end": 3297, - "loc": { - "start": { - "line": 95, - "column": 35 - }, - "end": { - "line": 95, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3304, - "end": 3305, - "loc": { - "start": { - "line": 96, - "column": 6 - }, - "end": { - "line": 96, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 3305, - "end": 3307, - "loc": { - "start": { - "line": 96, - "column": 7 - }, - "end": { - "line": 96, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3307, - "end": 3308, - "loc": { - "start": { - "line": 96, - "column": 9 - }, - "end": { - "line": 96, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 3308, - "end": 3315, - "loc": { - "start": { - "line": 96, - "column": 10 - }, - "end": { - "line": 96, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3315, - "end": 3316, - "loc": { - "start": { - "line": 96, - "column": 17 - }, - "end": { - "line": 96, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 3317, - "end": 3329, - "loc": { - "start": { - "line": 96, - "column": 19 - }, - "end": { - "line": 96, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3329, - "end": 3330, - "loc": { - "start": { - "line": 96, - "column": 31 - }, - "end": { - "line": 96, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 3330, - "end": 3338, - "loc": { - "start": { - "line": 96, - "column": 32 - }, - "end": { - "line": 96, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3338, - "end": 3339, - "loc": { - "start": { - "line": 96, - "column": 40 - }, - "end": { - "line": 96, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3339, - "end": 3340, - "loc": { - "start": { - "line": 96, - "column": 41 - }, - "end": { - "line": 96, - "column": 42 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3347, - "end": 3348, - "loc": { - "start": { - "line": 97, - "column": 6 - }, - "end": { - "line": 97, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 3348, - "end": 3351, - "loc": { - "start": { - "line": 97, - "column": 7 - }, - "end": { - "line": 97, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3351, - "end": 3352, - "loc": { - "start": { - "line": 97, - "column": 10 - }, - "end": { - "line": 97, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3352, - "end": 3353, - "loc": { - "start": { - "line": 97, - "column": 11 - }, - "end": { - "line": 97, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3353, - "end": 3354, - "loc": { - "start": { - "line": 97, - "column": 12 - }, - "end": { - "line": 97, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3357, - "end": 3358, - "loc": { - "start": { - "line": 98, - "column": 2 - }, - "end": { - "line": 98, - "column": 3 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3360, - "end": 3361, - "loc": { - "start": { - "line": 100, - "column": 0 - }, - "end": { - "line": 100, - "column": 1 - } - } - }, - { - "type": { - "label": "export", - "keyword": "export", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "export", - "start": 3363, - "end": 3369, - "loc": { - "start": { - "line": 102, - "column": 0 - }, - "end": { - "line": 102, - "column": 6 - } - } - }, - { - "type": { - "label": "default", - "keyword": "default", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "default", - "start": 3370, - "end": 3377, - "loc": { - "start": { - "line": 102, - "column": 7 - }, - "end": { - "line": 102, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "User", - "start": 3378, - "end": 3382, - "loc": { - "start": { - "line": 102, - "column": 15 - }, - "end": { - "line": 102, - "column": 19 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3382, - "end": 3383, - "loc": { - "start": { - "line": 102, - "column": 19 - }, - "end": { - "line": 102, - "column": 20 - } - } - }, - { - "type": { - "label": "eof", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3384, - "end": 3384, - "loc": { - "start": { - "line": 103, - "column": 0 - }, - "end": { - "line": 103, - "column": 0 - } - } - } - ] -} \ No newline at end of file diff --git a/docs/ast/source/user/index.js.json b/docs/ast/source/user/index.js.json deleted file mode 100644 index ef862d39..00000000 --- a/docs/ast/source/user/index.js.json +++ /dev/null @@ -1,21933 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 5624, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 186, - "column": 0 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 5624, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 186, - "column": 0 - } - }, - "sourceType": "module", - "body": [ - { - "type": "ImportDeclaration", - "start": 14, - "end": 40, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 26 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - } - }, - "local": { - "type": "Identifier", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - }, - "identifierName": "https" - }, - "name": "https" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 18 - }, - "end": { - "line": 2, - "column": 25 - } - }, - "extra": { - "rawValue": "https", - "raw": "'https'" - }, - "value": "https" - } - }, - { - "type": "ImportDeclaration", - "start": 41, - "end": 127, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 7, - "column": 19 - } - }, - "specifiers": [ - { - "type": "ImportSpecifier", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - } - }, - "imported": { - "type": "Identifier", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "local": { - "type": "Identifier", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - } - }, - { - "type": "ImportSpecifier", - "start": 71, - "end": 83, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 14 - } - }, - "imported": { - "type": "Identifier", - "start": 71, - "end": 83, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 14 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "local": { - "type": "Identifier", - "start": 71, - "end": 83, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 14 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - } - }, - { - "type": "ImportSpecifier", - "start": 87, - "end": 106, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 21 - } - }, - "imported": { - "type": "Identifier", - "start": 87, - "end": 106, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 21 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "local": { - "type": "Identifier", - "start": 87, - "end": 106, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 21 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 115, - "end": 126, - "loc": { - "start": { - "line": 7, - "column": 7 - }, - "end": { - "line": 7, - "column": 18 - } - }, - "extra": { - "rawValue": "../common", - "raw": "'../common'" - }, - "value": "../common" - }, - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * User methods\n ", - "start": 129, - "end": 152, - "loc": { - "start": { - "line": 9, - "column": 0 - }, - "end": { - "line": 11, - "column": 3 - } - } - } - ] - }, - { - "type": "Identifier", - "start": 153, - "end": 5601, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 183, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 159, - "end": 163, - "loc": { - "start": { - "line": 12, - "column": 6 - }, - "end": { - "line": 12, - "column": 10 - }, - "identifierName": "User" - }, - "name": "User", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 164, - "end": 5601, - "loc": { - "start": { - "line": 12, - "column": 11 - }, - "end": { - "line": 183, - "column": 1 - } - }, - "body": [ - { - "type": "ClassMethod", - "start": 1323, - "end": 2612, - "loc": { - "start": { - "line": 45, - "column": 2 - }, - "end": { - "line": 100, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1330, - "end": 1336, - "loc": { - "start": { - "line": 45, - "column": 9 - }, - "end": { - "line": 45, - "column": 15 - }, - "identifierName": "create" - }, - "name": "create" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 1338, - "end": 1491, - "loc": { - "start": { - "line": 45, - "column": 17 - }, - "end": { - "line": 55, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1344, - "end": 1349, - "loc": { - "start": { - "line": 46, - "column": 4 - }, - "end": { - "line": 46, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1344, - "end": 1349, - "loc": { - "start": { - "line": 46, - "column": 4 - }, - "end": { - "line": 46, - "column": 9 - }, - "identifierName": "email" - }, - "name": "email" - }, - "value": { - "type": "Identifier", - "start": 1344, - "end": 1349, - "loc": { - "start": { - "line": 46, - "column": 4 - }, - "end": { - "line": 46, - "column": 9 - }, - "identifierName": "email" - }, - "name": "email" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1355, - "end": 1363, - "loc": { - "start": { - "line": 47, - "column": 4 - }, - "end": { - "line": 47, - "column": 12 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1355, - "end": 1363, - "loc": { - "start": { - "line": 47, - "column": 4 - }, - "end": { - "line": 47, - "column": 12 - }, - "identifierName": "password" - }, - "name": "password" - }, - "value": { - "type": "Identifier", - "start": 1355, - "end": 1363, - "loc": { - "start": { - "line": 47, - "column": 4 - }, - "end": { - "line": 47, - "column": 12 - }, - "identifierName": "password" - }, - "name": "password" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1369, - "end": 1379, - "loc": { - "start": { - "line": 48, - "column": 4 - }, - "end": { - "line": 48, - "column": 14 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1369, - "end": 1379, - "loc": { - "start": { - "line": 48, - "column": 4 - }, - "end": { - "line": 48, - "column": 14 - }, - "identifierName": "first_name" - }, - "name": "first_name" - }, - "value": { - "type": "Identifier", - "start": 1369, - "end": 1379, - "loc": { - "start": { - "line": 48, - "column": 4 - }, - "end": { - "line": 48, - "column": 14 - }, - "identifierName": "first_name" - }, - "name": "first_name" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1385, - "end": 1394, - "loc": { - "start": { - "line": 49, - "column": 4 - }, - "end": { - "line": 49, - "column": 13 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1385, - "end": 1394, - "loc": { - "start": { - "line": 49, - "column": 4 - }, - "end": { - "line": 49, - "column": 13 - }, - "identifierName": "last_name" - }, - "name": "last_name" - }, - "value": { - "type": "Identifier", - "start": 1385, - "end": 1394, - "loc": { - "start": { - "line": 49, - "column": 4 - }, - "end": { - "line": 49, - "column": 13 - }, - "identifierName": "last_name" - }, - "name": "last_name" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1400, - "end": 1406, - "loc": { - "start": { - "line": 50, - "column": 4 - }, - "end": { - "line": 50, - "column": 10 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1400, - "end": 1406, - "loc": { - "start": { - "line": 50, - "column": 4 - }, - "end": { - "line": 50, - "column": 10 - }, - "identifierName": "number" - }, - "name": "number" - }, - "value": { - "type": "Identifier", - "start": 1400, - "end": 1406, - "loc": { - "start": { - "line": 50, - "column": 4 - }, - "end": { - "line": 50, - "column": 10 - }, - "identifierName": "number" - }, - "name": "number" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1412, - "end": 1486, - "loc": { - "start": { - "line": 51, - "column": 4 - }, - "end": { - "line": 54, - "column": 10 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1412, - "end": 1419, - "loc": { - "start": { - "line": 51, - "column": 4 - }, - "end": { - "line": 51, - "column": 11 - }, - "identifierName": "options" - }, - "name": "options" - }, - "value": { - "type": "AssignmentPattern", - "start": 1421, - "end": 1486, - "loc": { - "start": { - "line": 51, - "column": 13 - }, - "end": { - "line": 54, - "column": 10 - } - }, - "left": { - "type": "ObjectPattern", - "start": 1421, - "end": 1481, - "loc": { - "start": { - "line": 51, - "column": 13 - }, - "end": { - "line": 54, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1429, - "end": 1448, - "loc": { - "start": { - "line": 52, - "column": 6 - }, - "end": { - "line": 52, - "column": 25 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1429, - "end": 1440, - "loc": { - "start": { - "line": 52, - "column": 6 - }, - "end": { - "line": 52, - "column": 17 - }, - "identifierName": "verifyEmail" - }, - "name": "verifyEmail" - }, - "value": { - "type": "AssignmentPattern", - "start": 1429, - "end": 1448, - "loc": { - "start": { - "line": 52, - "column": 6 - }, - "end": { - "line": 52, - "column": 25 - } - }, - "left": { - "type": "Identifier", - "start": 1429, - "end": 1440, - "loc": { - "start": { - "line": 52, - "column": 6 - }, - "end": { - "line": 52, - "column": 17 - }, - "identifierName": "verifyEmail" - }, - "name": "verifyEmail" - }, - "right": { - "type": "BooleanLiteral", - "start": 1443, - "end": 1448, - "loc": { - "start": { - "line": 52, - "column": 20 - }, - "end": { - "line": 52, - "column": 25 - } - }, - "value": false - } - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1456, - "end": 1474, - "loc": { - "start": { - "line": 53, - "column": 6 - }, - "end": { - "line": 53, - "column": 24 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1456, - "end": 1466, - "loc": { - "start": { - "line": 53, - "column": 6 - }, - "end": { - "line": 53, - "column": 16 - }, - "identifierName": "startTrial" - }, - "name": "startTrial" - }, - "value": { - "type": "AssignmentPattern", - "start": 1456, - "end": 1474, - "loc": { - "start": { - "line": 53, - "column": 6 - }, - "end": { - "line": 53, - "column": 24 - } - }, - "left": { - "type": "Identifier", - "start": 1456, - "end": 1466, - "loc": { - "start": { - "line": 53, - "column": 6 - }, - "end": { - "line": 53, - "column": 16 - }, - "identifierName": "startTrial" - }, - "name": "startTrial" - }, - "right": { - "type": "BooleanLiteral", - "start": 1469, - "end": 1474, - "loc": { - "start": { - "line": 53, - "column": 19 - }, - "end": { - "line": 53, - "column": 24 - } - }, - "value": false - } - }, - "extra": { - "shorthand": true - } - } - ] - }, - "right": { - "type": "ObjectExpression", - "start": 1484, - "end": 1486, - "loc": { - "start": { - "line": 54, - "column": 8 - }, - "end": { - "line": 54, - "column": 10 - } - }, - "properties": [] - } - } - } - ] - }, - { - "type": "Identifier", - "start": 1493, - "end": 1509, - "loc": { - "start": { - "line": 55, - "column": 5 - }, - "end": { - "line": 55, - "column": 21 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - } - ], - "body": { - "type": "BlockStatement", - "start": 1511, - "end": 2612, - "loc": { - "start": { - "line": 55, - "column": 23 - }, - "end": { - "line": 100, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 1517, - "end": 1680, - "loc": { - "start": { - "line": 56, - "column": 4 - }, - "end": { - "line": 63, - "column": 7 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1523, - "end": 1679, - "loc": { - "start": { - "line": 56, - "column": 10 - }, - "end": { - "line": 63, - "column": 6 - } - }, - "id": { - "type": "Identifier", - "start": 1523, - "end": 1531, - "loc": { - "start": { - "line": 56, - "column": 10 - }, - "end": { - "line": 56, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 1534, - "end": 1679, - "loc": { - "start": { - "line": 56, - "column": 21 - }, - "end": { - "line": 63, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1534, - "end": 1548, - "loc": { - "start": { - "line": 56, - "column": 21 - }, - "end": { - "line": 56, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 1534, - "end": 1538, - "loc": { - "start": { - "line": 56, - "column": 21 - }, - "end": { - "line": 56, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 1539, - "end": 1548, - "loc": { - "start": { - "line": 56, - "column": 26 - }, - "end": { - "line": 56, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 1549, - "end": 1678, - "loc": { - "start": { - "line": 56, - "column": 36 - }, - "end": { - "line": 63, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1557, - "end": 1593, - "loc": { - "start": { - "line": 57, - "column": 6 - }, - "end": { - "line": 57, - "column": 42 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1557, - "end": 1573, - "loc": { - "start": { - "line": 57, - "column": 6 - }, - "end": { - "line": 57, - "column": 22 - }, - "identifierName": "skip_30day_trial" - }, - "name": "skip_30day_trial" - }, - "value": { - "type": "ConditionalExpression", - "start": 1575, - "end": 1593, - "loc": { - "start": { - "line": 57, - "column": 24 - }, - "end": { - "line": 57, - "column": 42 - } - }, - "test": { - "type": "Identifier", - "start": 1575, - "end": 1585, - "loc": { - "start": { - "line": 57, - "column": 24 - }, - "end": { - "line": 57, - "column": 34 - }, - "identifierName": "startTrial" - }, - "name": "startTrial" - }, - "consequent": { - "type": "NumericLiteral", - "start": 1588, - "end": 1589, - "loc": { - "start": { - "line": 57, - "column": 37 - }, - "end": { - "line": 57, - "column": 38 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "alternate": { - "type": "NumericLiteral", - "start": 1592, - "end": 1593, - "loc": { - "start": { - "line": 57, - "column": 41 - }, - "end": { - "line": 57, - "column": 42 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - } - }, - { - "type": "ObjectProperty", - "start": 1601, - "end": 1606, - "loc": { - "start": { - "line": 58, - "column": 6 - }, - "end": { - "line": 58, - "column": 11 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1601, - "end": 1606, - "loc": { - "start": { - "line": 58, - "column": 6 - }, - "end": { - "line": 58, - "column": 11 - }, - "identifierName": "email" - }, - "name": "email" - }, - "value": { - "type": "Identifier", - "start": 1601, - "end": 1606, - "loc": { - "start": { - "line": 58, - "column": 6 - }, - "end": { - "line": 58, - "column": 11 - }, - "identifierName": "email" - }, - "name": "email" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1614, - "end": 1622, - "loc": { - "start": { - "line": 59, - "column": 6 - }, - "end": { - "line": 59, - "column": 14 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1614, - "end": 1622, - "loc": { - "start": { - "line": 59, - "column": 6 - }, - "end": { - "line": 59, - "column": 14 - }, - "identifierName": "password" - }, - "name": "password" - }, - "value": { - "type": "Identifier", - "start": 1614, - "end": 1622, - "loc": { - "start": { - "line": 59, - "column": 6 - }, - "end": { - "line": 59, - "column": 14 - }, - "identifierName": "password" - }, - "name": "password" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1630, - "end": 1640, - "loc": { - "start": { - "line": 60, - "column": 6 - }, - "end": { - "line": 60, - "column": 16 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1630, - "end": 1640, - "loc": { - "start": { - "line": 60, - "column": 6 - }, - "end": { - "line": 60, - "column": 16 - }, - "identifierName": "first_name" - }, - "name": "first_name" - }, - "value": { - "type": "Identifier", - "start": 1630, - "end": 1640, - "loc": { - "start": { - "line": 60, - "column": 6 - }, - "end": { - "line": 60, - "column": 16 - }, - "identifierName": "first_name" - }, - "name": "first_name" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1648, - "end": 1657, - "loc": { - "start": { - "line": 61, - "column": 6 - }, - "end": { - "line": 61, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1648, - "end": 1657, - "loc": { - "start": { - "line": 61, - "column": 6 - }, - "end": { - "line": 61, - "column": 15 - }, - "identifierName": "last_name" - }, - "name": "last_name" - }, - "value": { - "type": "Identifier", - "start": 1648, - "end": 1657, - "loc": { - "start": { - "line": 61, - "column": 6 - }, - "end": { - "line": 61, - "column": 15 - }, - "identifierName": "last_name" - }, - "name": "last_name" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1665, - "end": 1671, - "loc": { - "start": { - "line": 62, - "column": 6 - }, - "end": { - "line": 62, - "column": 12 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1665, - "end": 1671, - "loc": { - "start": { - "line": 62, - "column": 6 - }, - "end": { - "line": 62, - "column": 12 - }, - "identifierName": "number" - }, - "name": "number" - }, - "value": { - "type": "Identifier", - "start": 1665, - "end": 1671, - "loc": { - "start": { - "line": 62, - "column": 6 - }, - "end": { - "line": 62, - "column": 12 - }, - "identifierName": "number" - }, - "name": "number" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 1686, - "end": 2106, - "loc": { - "start": { - "line": 65, - "column": 4 - }, - "end": { - "line": 80, - "column": 6 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1692, - "end": 2105, - "loc": { - "start": { - "line": 65, - "column": 10 - }, - "end": { - "line": 80, - "column": 5 - } - }, - "id": { - "type": "Identifier", - "start": 1692, - "end": 1721, - "loc": { - "start": { - "line": 65, - "column": 10 - }, - "end": { - "line": 65, - "column": 39 - }, - "identifierName": "callbackWithEmailVerification" - }, - "name": "callbackWithEmailVerification" - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 1724, - "end": 2105, - "loc": { - "start": { - "line": 65, - "column": 42 - }, - "end": { - "line": 80, - "column": 5 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1725, - "end": 1734, - "loc": { - "start": { - "line": 65, - "column": 43 - }, - "end": { - "line": 65, - "column": 52 - }, - "identifierName": "createErr" - }, - "name": "createErr" - }, - { - "type": "Identifier", - "start": 1736, - "end": 1745, - "loc": { - "start": { - "line": 65, - "column": 54 - }, - "end": { - "line": 65, - "column": 63 - }, - "identifierName": "createRes" - }, - "name": "createRes" - } - ], - "body": { - "type": "BlockStatement", - "start": 1750, - "end": 2105, - "loc": { - "start": { - "line": 65, - "column": 68 - }, - "end": { - "line": 80, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 1758, - "end": 2099, - "loc": { - "start": { - "line": 66, - "column": 6 - }, - "end": { - "line": 79, - "column": 7 - } - }, - "test": { - "type": "Identifier", - "start": 1762, - "end": 1771, - "loc": { - "start": { - "line": 66, - "column": 10 - }, - "end": { - "line": 66, - "column": 19 - }, - "identifierName": "createErr" - }, - "name": "createErr" - }, - "consequent": { - "type": "BlockStatement", - "start": 1773, - "end": 1835, - "loc": { - "start": { - "line": 66, - "column": 21 - }, - "end": { - "line": 69, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1783, - "end": 1811, - "loc": { - "start": { - "line": 67, - "column": 8 - }, - "end": { - "line": 67, - "column": 36 - } - }, - "expression": { - "type": "CallExpression", - "start": 1783, - "end": 1810, - "loc": { - "start": { - "line": 67, - "column": 8 - }, - "end": { - "line": 67, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 1783, - "end": 1799, - "loc": { - "start": { - "line": 67, - "column": 8 - }, - "end": { - "line": 67, - "column": 24 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1800, - "end": 1809, - "loc": { - "start": { - "line": 67, - "column": 25 - }, - "end": { - "line": 67, - "column": 34 - }, - "identifierName": "createErr" - }, - "name": "createErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 1820, - "end": 1827, - "loc": { - "start": { - "line": 68, - "column": 8 - }, - "end": { - "line": 68, - "column": 15 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 1841, - "end": 2099, - "loc": { - "start": { - "line": 69, - "column": 13 - }, - "end": { - "line": 79, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1851, - "end": 2091, - "loc": { - "start": { - "line": 70, - "column": 8 - }, - "end": { - "line": 78, - "column": 11 - } - }, - "expression": { - "type": "CallExpression", - "start": 1851, - "end": 2090, - "loc": { - "start": { - "line": 70, - "column": 8 - }, - "end": { - "line": 78, - "column": 10 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1851, - "end": 1867, - "loc": { - "start": { - "line": 70, - "column": 8 - }, - "end": { - "line": 70, - "column": 24 - } - }, - "object": { - "type": "Identifier", - "start": 1851, - "end": 1855, - "loc": { - "start": { - "line": 70, - "column": 8 - }, - "end": { - "line": 70, - "column": 12 - }, - "identifierName": "User" - }, - "name": "User" - }, - "property": { - "type": "Identifier", - "start": 1856, - "end": 1867, - "loc": { - "start": { - "line": 70, - "column": 13 - }, - "end": { - "line": 70, - "column": 24 - }, - "identifierName": "verifyEmail" - }, - "name": "verifyEmail" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 1868, - "end": 1877, - "loc": { - "start": { - "line": 70, - "column": 25 - }, - "end": { - "line": 70, - "column": 34 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1870, - "end": 1875, - "loc": { - "start": { - "line": 70, - "column": 27 - }, - "end": { - "line": 70, - "column": 32 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1870, - "end": 1875, - "loc": { - "start": { - "line": 70, - "column": 27 - }, - "end": { - "line": 70, - "column": 32 - }, - "identifierName": "email" - }, - "name": "email" - }, - "value": { - "type": "Identifier", - "start": 1870, - "end": 1875, - "loc": { - "start": { - "line": 70, - "column": 27 - }, - "end": { - "line": 70, - "column": 32 - }, - "identifierName": "email" - }, - "name": "email" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "ArrowFunctionExpression", - "start": 1879, - "end": 2089, - "loc": { - "start": { - "line": 70, - "column": 36 - }, - "end": { - "line": 78, - "column": 9 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1879, - "end": 1888, - "loc": { - "start": { - "line": 70, - "column": 36 - }, - "end": { - "line": 70, - "column": 45 - }, - "identifierName": "verifyErr" - }, - "name": "verifyErr" - } - ], - "body": { - "type": "BlockStatement", - "start": 1892, - "end": 2089, - "loc": { - "start": { - "line": 70, - "column": 49 - }, - "end": { - "line": 78, - "column": 9 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 1904, - "end": 2079, - "loc": { - "start": { - "line": 71, - "column": 10 - }, - "end": { - "line": 77, - "column": 11 - } - }, - "test": { - "type": "Identifier", - "start": 1908, - "end": 1917, - "loc": { - "start": { - "line": 71, - "column": 14 - }, - "end": { - "line": 71, - "column": 23 - }, - "identifierName": "verifyErr" - }, - "name": "verifyErr" - }, - "consequent": { - "type": "BlockStatement", - "start": 1919, - "end": 1993, - "loc": { - "start": { - "line": 71, - "column": 25 - }, - "end": { - "line": 74, - "column": 11 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1933, - "end": 1961, - "loc": { - "start": { - "line": 72, - "column": 12 - }, - "end": { - "line": 72, - "column": 40 - } - }, - "expression": { - "type": "CallExpression", - "start": 1933, - "end": 1960, - "loc": { - "start": { - "line": 72, - "column": 12 - }, - "end": { - "line": 72, - "column": 39 - } - }, - "callee": { - "type": "Identifier", - "start": 1933, - "end": 1949, - "loc": { - "start": { - "line": 72, - "column": 12 - }, - "end": { - "line": 72, - "column": 28 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1950, - "end": 1959, - "loc": { - "start": { - "line": 72, - "column": 29 - }, - "end": { - "line": 72, - "column": 38 - }, - "identifierName": "verifyErr" - }, - "name": "verifyErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 1974, - "end": 1981, - "loc": { - "start": { - "line": 73, - "column": 12 - }, - "end": { - "line": 73, - "column": 19 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 1999, - "end": 2079, - "loc": { - "start": { - "line": 74, - "column": 17 - }, - "end": { - "line": 77, - "column": 11 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2013, - "end": 2047, - "loc": { - "start": { - "line": 75, - "column": 12 - }, - "end": { - "line": 75, - "column": 46 - } - }, - "expression": { - "type": "CallExpression", - "start": 2013, - "end": 2046, - "loc": { - "start": { - "line": 75, - "column": 12 - }, - "end": { - "line": 75, - "column": 45 - } - }, - "callee": { - "type": "Identifier", - "start": 2013, - "end": 2029, - "loc": { - "start": { - "line": 75, - "column": 12 - }, - "end": { - "line": 75, - "column": 28 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - }, - "arguments": [ - { - "type": "NullLiteral", - "start": 2030, - "end": 2034, - "loc": { - "start": { - "line": 75, - "column": 29 - }, - "end": { - "line": 75, - "column": 33 - } - } - }, - { - "type": "Identifier", - "start": 2036, - "end": 2045, - "loc": { - "start": { - "line": 75, - "column": 35 - }, - "end": { - "line": 75, - "column": 44 - }, - "identifierName": "createRes" - }, - "name": "createRes" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 2060, - "end": 2067, - "loc": { - "start": { - "line": 76, - "column": 12 - }, - "end": { - "line": 76, - "column": 19 - } - }, - "argument": null - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 2112, - "end": 2204, - "loc": { - "start": { - "line": 82, - "column": 4 - }, - "end": { - "line": 84, - "column": 25 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2118, - "end": 2203, - "loc": { - "start": { - "line": 82, - "column": 10 - }, - "end": { - "line": 84, - "column": 24 - } - }, - "id": { - "type": "Identifier", - "start": 2118, - "end": 2126, - "loc": { - "start": { - "line": 82, - "column": 10 - }, - "end": { - "line": 82, - "column": 18 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "init": { - "type": "ConditionalExpression", - "start": 2129, - "end": 2203, - "loc": { - "start": { - "line": 82, - "column": 21 - }, - "end": { - "line": 84, - "column": 24 - } - }, - "test": { - "type": "Identifier", - "start": 2129, - "end": 2140, - "loc": { - "start": { - "line": 82, - "column": 21 - }, - "end": { - "line": 82, - "column": 32 - }, - "identifierName": "verifyEmail" - }, - "name": "verifyEmail" - }, - "consequent": { - "type": "Identifier", - "start": 2149, - "end": 2178, - "loc": { - "start": { - "line": 83, - "column": 8 - }, - "end": { - "line": 83, - "column": 37 - }, - "identifierName": "callbackWithEmailVerification" - }, - "name": "callbackWithEmailVerification" - }, - "alternate": { - "type": "Identifier", - "start": 2187, - "end": 2203, - "loc": { - "start": { - "line": 84, - "column": 8 - }, - "end": { - "line": 84, - "column": 24 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 2210, - "end": 2567, - "loc": { - "start": { - "line": 86, - "column": 4 - }, - "end": { - "line": 96, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2216, - "end": 2566, - "loc": { - "start": { - "line": 86, - "column": 10 - }, - "end": { - "line": 96, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 2216, - "end": 2219, - "loc": { - "start": { - "line": 86, - "column": 10 - }, - "end": { - "line": 86, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 2222, - "end": 2566, - "loc": { - "start": { - "line": 86, - "column": 16 - }, - "end": { - "line": 96, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2222, - "end": 2533, - "loc": { - "start": { - "line": 86, - "column": 16 - }, - "end": { - "line": 96, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 2222, - "end": 2523, - "loc": { - "start": { - "line": 86, - "column": 16 - }, - "end": { - "line": 95, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2222, - "end": 2242, - "loc": { - "start": { - "line": 86, - "column": 16 - }, - "end": { - "line": 87, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 2222, - "end": 2227, - "loc": { - "start": { - "line": 86, - "column": 16 - }, - "end": { - "line": 86, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 2235, - "end": 2242, - "loc": { - "start": { - "line": 87, - "column": 7 - }, - "end": { - "line": 87, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 2243, - "end": 2495, - "loc": { - "start": { - "line": 87, - "column": 15 - }, - "end": { - "line": 95, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 2243, - "end": 2262, - "loc": { - "start": { - "line": 87, - "column": 15 - }, - "end": { - "line": 87, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 2263, - "end": 2494, - "loc": { - "start": { - "line": 87, - "column": 35 - }, - "end": { - "line": 95, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2273, - "end": 2287, - "loc": { - "start": { - "line": 88, - "column": 8 - }, - "end": { - "line": 88, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2273, - "end": 2279, - "loc": { - "start": { - "line": 88, - "column": 8 - }, - "end": { - "line": 88, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 2281, - "end": 2287, - "loc": { - "start": { - "line": 88, - "column": 16 - }, - "end": { - "line": 88, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 2297, - "end": 2310, - "loc": { - "start": { - "line": 89, - "column": 8 - }, - "end": { - "line": 89, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2297, - "end": 2301, - "loc": { - "start": { - "line": 89, - "column": 8 - }, - "end": { - "line": 89, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 2303, - "end": 2310, - "loc": { - "start": { - "line": 89, - "column": 14 - }, - "end": { - "line": 89, - "column": 21 - } - }, - "extra": { - "rawValue": "/user", - "raw": "'/user'" - }, - "value": "/user" - } - }, - { - "type": "ObjectProperty", - "start": 2320, - "end": 2352, - "loc": { - "start": { - "line": 90, - "column": 8 - }, - "end": { - "line": 90, - "column": 40 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2320, - "end": 2333, - "loc": { - "start": { - "line": 90, - "column": 8 - }, - "end": { - "line": 90, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 2335, - "end": 2352, - "loc": { - "start": { - "line": 90, - "column": 23 - }, - "end": { - "line": 90, - "column": 40 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2337, - "end": 2350, - "loc": { - "start": { - "line": 90, - "column": 25 - }, - "end": { - "line": 90, - "column": 38 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2337, - "end": 2341, - "loc": { - "start": { - "line": 90, - "column": 25 - }, - "end": { - "line": 90, - "column": 29 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 2343, - "end": 2350, - "loc": { - "start": { - "line": 90, - "column": 31 - }, - "end": { - "line": 90, - "column": 38 - } - }, - "extra": { - "rawValue": "Basic", - "raw": "'Basic'" - }, - "value": "Basic" - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 2362, - "end": 2485, - "loc": { - "start": { - "line": 91, - "column": 8 - }, - "end": { - "line": 94, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2362, - "end": 2369, - "loc": { - "start": { - "line": 91, - "column": 8 - }, - "end": { - "line": 91, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 2371, - "end": 2485, - "loc": { - "start": { - "line": 91, - "column": 17 - }, - "end": { - "line": 94, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2383, - "end": 2417, - "loc": { - "start": { - "line": 92, - "column": 10 - }, - "end": { - "line": 92, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 2383, - "end": 2397, - "loc": { - "start": { - "line": 92, - "column": 10 - }, - "end": { - "line": 92, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 2399, - "end": 2417, - "loc": { - "start": { - "line": 92, - "column": 26 - }, - "end": { - "line": 92, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 2429, - "end": 2474, - "loc": { - "start": { - "line": 93, - "column": 10 - }, - "end": { - "line": 93, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 2429, - "end": 2445, - "loc": { - "start": { - "line": 93, - "column": 10 - }, - "end": { - "line": 93, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 2447, - "end": 2474, - "loc": { - "start": { - "line": 93, - "column": 28 - }, - "end": { - "line": 93, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2447, - "end": 2464, - "loc": { - "start": { - "line": 93, - "column": 28 - }, - "end": { - "line": 93, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 2447, - "end": 2453, - "loc": { - "start": { - "line": 93, - "column": 28 - }, - "end": { - "line": 93, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 2454, - "end": 2464, - "loc": { - "start": { - "line": 93, - "column": 35 - }, - "end": { - "line": 93, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2465, - "end": 2473, - "loc": { - "start": { - "line": 93, - "column": 46 - }, - "end": { - "line": 93, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 2497, - "end": 2522, - "loc": { - "start": { - "line": 95, - "column": 10 - }, - "end": { - "line": 95, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 2497, - "end": 2512, - "loc": { - "start": { - "line": 95, - "column": 10 - }, - "end": { - "line": 95, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2513, - "end": 2521, - "loc": { - "start": { - "line": 95, - "column": 26 - }, - "end": { - "line": 95, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 2531, - "end": 2533, - "loc": { - "start": { - "line": 96, - "column": 7 - }, - "end": { - "line": 96, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2534, - "end": 2541, - "loc": { - "start": { - "line": 96, - "column": 10 - }, - "end": { - "line": 96, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 2543, - "end": 2565, - "loc": { - "start": { - "line": 96, - "column": 19 - }, - "end": { - "line": 96, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 2543, - "end": 2555, - "loc": { - "start": { - "line": 96, - "column": 19 - }, - "end": { - "line": 96, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2556, - "end": 2564, - "loc": { - "start": { - "line": 96, - "column": 32 - }, - "end": { - "line": 96, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 2573, - "end": 2593, - "loc": { - "start": { - "line": 98, - "column": 4 - }, - "end": { - "line": 98, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 2573, - "end": 2592, - "loc": { - "start": { - "line": 98, - "column": 4 - }, - "end": { - "line": 98, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2573, - "end": 2582, - "loc": { - "start": { - "line": 98, - "column": 4 - }, - "end": { - "line": 98, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 2573, - "end": 2576, - "loc": { - "start": { - "line": 98, - "column": 4 - }, - "end": { - "line": 98, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 2577, - "end": 2582, - "loc": { - "start": { - "line": 98, - "column": 8 - }, - "end": { - "line": 98, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2583, - "end": 2591, - "loc": { - "start": { - "line": 98, - "column": 14 - }, - "end": { - "line": 98, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 2598, - "end": 2608, - "loc": { - "start": { - "line": 99, - "column": 4 - }, - "end": { - "line": 99, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 2598, - "end": 2607, - "loc": { - "start": { - "line": 99, - "column": 4 - }, - "end": { - "line": 99, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2598, - "end": 2605, - "loc": { - "start": { - "line": 99, - "column": 4 - }, - "end": { - "line": 99, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 2598, - "end": 2601, - "loc": { - "start": { - "line": 99, - "column": 4 - }, - "end": { - "line": 99, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 2602, - "end": 2605, - "loc": { - "start": { - "line": 99, - "column": 8 - }, - "end": { - "line": 99, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Create User optional settings\n * @typedef {Object} CreateUserOptions\n * @property {boolean} [verifyEmail=false] - if `true` verification email will be sent\n * @property {number} [startTrial=false] - if `true` start 30 days free trial\n ", - "start": 169, - "end": 423, - "loc": { - "start": { - "line": 14, - "column": 2 - }, - "end": { - "line": 19, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create user payload\n * @typedef {Object} UserCreateParams\n * @property {string} email - email of new user\n * @property {string} password - password for new user\n * @property {string} [first_name] - first name of new user\n * @property {string} [last_name] - last name of new user\n * @property {string} [number] - phone number of new user\n * @property {CreateUserOptions} [options] - create user optional settings\n ", - "start": 427, - "end": 867, - "loc": { - "start": { - "line": 21, - "column": 2 - }, - "end": { - "line": 30, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create user response data\n * @typedef {Object} UserCreateResponse\n * @property {string} id - user unique id\n * @property {number} verified - user is verified or not\n * @property {string} email - user email\n ", - "start": 871, - "end": 1099, - "loc": { - "start": { - "line": 32, - "column": 2 - }, - "end": { - "line": 38, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create new user account\n * @param {UserCreateParams} data - create user payload\n * @param {function(err: ApiErrorResponse, res: UserCreateResponse)} [originalCallback] - error first node.js callback\n ", - "start": 1103, - "end": 1320, - "loc": { - "start": { - "line": 40, - "column": 2 - }, - "end": { - "line": 44, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Get user payload\n * @typedef {Object} UserGetParams\n * @property {string} token - your auth token\n ", - "start": 2616, - "end": 2732, - "loc": { - "start": { - "line": 102, - "column": 2 - }, - "end": { - "line": 106, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieve user response data\n * @typedef {Object} UserGetResponse\n * @property {string} id - user unique id\n * @property {string} first_name - first name\n * @property {string} last_name - last name\n * @property {number} active - user is active or not\n * @property {string} created - user creation timestamp\n * @property {string[]} emails - user emails\n * @property {string} primary_email - user primary email\n * @property {Object[]} subscriptions - user subscriptions data\n * @property {?Object} cloud_export_account_details - cloud export account details data\n * @property {boolean} is_logged_in - user is logged in or not\n * @property {{start_date: string, end_date: string, start_timestamp: number, end_timestamp: number}} billing_period - user billing period data\n * @property {Object[]} companies - companies where user is a member of\n * @property {?string} registration_source - resource where user was registered\n * @property {Object[]} teams - teams where user is a member of\n * @property {Object} settings - user specific settings\n * @property {Object[]} organization_settings - organization specific settings where user is a member of\n * @property {Object[]} merchant_accounts - merchant accounts data\n ", - "start": 2736, - "end": 3997, - "loc": { - "start": { - "line": 108, - "column": 2 - }, - "end": { - "line": 128, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieve user account details\n * @param {UserGetParams} data - get user payload\n * @param {function(err: ApiErrorResponse, res: UserGetResponse)} [callback] - error first node.js callback\n ", - "start": 4001, - "end": 4207, - "loc": { - "start": { - "line": 130, - "column": 2 - }, - "end": { - "line": 134, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 4210, - "end": 4519, - "loc": { - "start": { - "line": 135, - "column": 2 - }, - "end": { - "line": 147, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 4217, - "end": 4225, - "loc": { - "start": { - "line": 135, - "column": 9 - }, - "end": { - "line": 135, - "column": 17 - }, - "identifierName": "retrieve" - }, - "name": "retrieve" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 4227, - "end": 4236, - "loc": { - "start": { - "line": 135, - "column": 19 - }, - "end": { - "line": 135, - "column": 28 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4229, - "end": 4234, - "loc": { - "start": { - "line": 135, - "column": 21 - }, - "end": { - "line": 135, - "column": 26 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 4229, - "end": 4234, - "loc": { - "start": { - "line": 135, - "column": 21 - }, - "end": { - "line": 135, - "column": 26 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 4229, - "end": 4234, - "loc": { - "start": { - "line": 135, - "column": 21 - }, - "end": { - "line": 135, - "column": 26 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 4238, - "end": 4246, - "loc": { - "start": { - "line": 135, - "column": 30 - }, - "end": { - "line": 135, - "column": 38 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 4248, - "end": 4519, - "loc": { - "start": { - "line": 135, - "column": 40 - }, - "end": { - "line": 147, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 4254, - "end": 4515, - "loc": { - "start": { - "line": 136, - "column": 4 - }, - "end": { - "line": 146, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 4254, - "end": 4514, - "loc": { - "start": { - "line": 136, - "column": 4 - }, - "end": { - "line": 146, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4254, - "end": 4512, - "loc": { - "start": { - "line": 136, - "column": 4 - }, - "end": { - "line": 146, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 4254, - "end": 4501, - "loc": { - "start": { - "line": 136, - "column": 4 - }, - "end": { - "line": 145, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4254, - "end": 4468, - "loc": { - "start": { - "line": 136, - "column": 4 - }, - "end": { - "line": 145, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 4254, - "end": 4458, - "loc": { - "start": { - "line": 136, - "column": 4 - }, - "end": { - "line": 144, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4254, - "end": 4274, - "loc": { - "start": { - "line": 136, - "column": 4 - }, - "end": { - "line": 137, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 4254, - "end": 4259, - "loc": { - "start": { - "line": 136, - "column": 4 - }, - "end": { - "line": 136, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 4267, - "end": 4274, - "loc": { - "start": { - "line": 137, - "column": 7 - }, - "end": { - "line": 137, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 4275, - "end": 4430, - "loc": { - "start": { - "line": 137, - "column": 15 - }, - "end": { - "line": 144, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 4275, - "end": 4294, - "loc": { - "start": { - "line": 137, - "column": 15 - }, - "end": { - "line": 137, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 4295, - "end": 4429, - "loc": { - "start": { - "line": 137, - "column": 35 - }, - "end": { - "line": 144, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4305, - "end": 4318, - "loc": { - "start": { - "line": 138, - "column": 8 - }, - "end": { - "line": 138, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4305, - "end": 4311, - "loc": { - "start": { - "line": 138, - "column": 8 - }, - "end": { - "line": 138, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 4313, - "end": 4318, - "loc": { - "start": { - "line": 138, - "column": 16 - }, - "end": { - "line": 138, - "column": 21 - } - }, - "extra": { - "rawValue": "GET", - "raw": "'GET'" - }, - "value": "GET" - } - }, - { - "type": "ObjectProperty", - "start": 4328, - "end": 4341, - "loc": { - "start": { - "line": 139, - "column": 8 - }, - "end": { - "line": 139, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4328, - "end": 4332, - "loc": { - "start": { - "line": 139, - "column": 8 - }, - "end": { - "line": 139, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 4334, - "end": 4341, - "loc": { - "start": { - "line": 139, - "column": 14 - }, - "end": { - "line": 139, - "column": 21 - } - }, - "extra": { - "rawValue": "/user", - "raw": "'/user'" - }, - "value": "/user" - } - }, - { - "type": "ObjectProperty", - "start": 4351, - "end": 4420, - "loc": { - "start": { - "line": 140, - "column": 8 - }, - "end": { - "line": 143, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4351, - "end": 4364, - "loc": { - "start": { - "line": 140, - "column": 8 - }, - "end": { - "line": 140, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 4366, - "end": 4420, - "loc": { - "start": { - "line": 140, - "column": 23 - }, - "end": { - "line": 143, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4378, - "end": 4392, - "loc": { - "start": { - "line": 141, - "column": 10 - }, - "end": { - "line": 141, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4378, - "end": 4382, - "loc": { - "start": { - "line": 141, - "column": 10 - }, - "end": { - "line": 141, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 4384, - "end": 4392, - "loc": { - "start": { - "line": 141, - "column": 16 - }, - "end": { - "line": 141, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 4404, - "end": 4409, - "loc": { - "start": { - "line": 142, - "column": 10 - }, - "end": { - "line": 142, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 4404, - "end": 4409, - "loc": { - "start": { - "line": 142, - "column": 10 - }, - "end": { - "line": 142, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 4404, - "end": 4409, - "loc": { - "start": { - "line": 142, - "column": 10 - }, - "end": { - "line": 142, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 4432, - "end": 4457, - "loc": { - "start": { - "line": 144, - "column": 10 - }, - "end": { - "line": 144, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 4432, - "end": 4447, - "loc": { - "start": { - "line": 144, - "column": 10 - }, - "end": { - "line": 144, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 4448, - "end": 4456, - "loc": { - "start": { - "line": 144, - "column": 26 - }, - "end": { - "line": 144, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 4466, - "end": 4468, - "loc": { - "start": { - "line": 145, - "column": 7 - }, - "end": { - "line": 145, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 4469, - "end": 4476, - "loc": { - "start": { - "line": 145, - "column": 10 - }, - "end": { - "line": 145, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 4478, - "end": 4500, - "loc": { - "start": { - "line": 145, - "column": 19 - }, - "end": { - "line": 145, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 4478, - "end": 4490, - "loc": { - "start": { - "line": 145, - "column": 19 - }, - "end": { - "line": 145, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 4491, - "end": 4499, - "loc": { - "start": { - "line": 145, - "column": 32 - }, - "end": { - "line": 145, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 4509, - "end": 4512, - "loc": { - "start": { - "line": 146, - "column": 7 - }, - "end": { - "line": 146, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Get user payload\n * @typedef {Object} UserGetParams\n * @property {string} token - your auth token\n ", - "start": 2616, - "end": 2732, - "loc": { - "start": { - "line": 102, - "column": 2 - }, - "end": { - "line": 106, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieve user response data\n * @typedef {Object} UserGetResponse\n * @property {string} id - user unique id\n * @property {string} first_name - first name\n * @property {string} last_name - last name\n * @property {number} active - user is active or not\n * @property {string} created - user creation timestamp\n * @property {string[]} emails - user emails\n * @property {string} primary_email - user primary email\n * @property {Object[]} subscriptions - user subscriptions data\n * @property {?Object} cloud_export_account_details - cloud export account details data\n * @property {boolean} is_logged_in - user is logged in or not\n * @property {{start_date: string, end_date: string, start_timestamp: number, end_timestamp: number}} billing_period - user billing period data\n * @property {Object[]} companies - companies where user is a member of\n * @property {?string} registration_source - resource where user was registered\n * @property {Object[]} teams - teams where user is a member of\n * @property {Object} settings - user specific settings\n * @property {Object[]} organization_settings - organization specific settings where user is a member of\n * @property {Object[]} merchant_accounts - merchant accounts data\n ", - "start": 2736, - "end": 3997, - "loc": { - "start": { - "line": 108, - "column": 2 - }, - "end": { - "line": 128, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieve user account details\n * @param {UserGetParams} data - get user payload\n * @param {function(err: ApiErrorResponse, res: UserGetResponse)} [callback] - error first node.js callback\n ", - "start": 4001, - "end": 4207, - "loc": { - "start": { - "line": 130, - "column": 2 - }, - "end": { - "line": 134, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Verify user email payload\n * @typedef {Object} UserVerifyEmailParams\n * @property {string} email - email to verify\n ", - "start": 4523, - "end": 4656, - "loc": { - "start": { - "line": 149, - "column": 2 - }, - "end": { - "line": 153, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Verify user email response data\n * @typedef {Object} UserVerifyEmailResponse\n * @property {string} status - status of verification email sending, e.g. 'success'\n ", - "start": 4660, - "end": 4839, - "loc": { - "start": { - "line": 155, - "column": 2 - }, - "end": { - "line": 159, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Sends email with verification link to user\n * @param {UserVerifyEmailParams} data - user verify email payload\n * @param {function(err: ApiErrorResponse, res: UserVerifyEmailResponse)} [callback] - error first node.js callback\n ", - "start": 4843, - "end": 5087, - "loc": { - "start": { - "line": 161, - "column": 2 - }, - "end": { - "line": 165, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 5090, - "end": 5599, - "loc": { - "start": { - "line": 166, - "column": 2 - }, - "end": { - "line": 182, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5097, - "end": 5108, - "loc": { - "start": { - "line": 166, - "column": 9 - }, - "end": { - "line": 166, - "column": 20 - }, - "identifierName": "verifyEmail" - }, - "name": "verifyEmail" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 5110, - "end": 5119, - "loc": { - "start": { - "line": 166, - "column": 22 - }, - "end": { - "line": 166, - "column": 31 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5112, - "end": 5117, - "loc": { - "start": { - "line": 166, - "column": 24 - }, - "end": { - "line": 166, - "column": 29 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5112, - "end": 5117, - "loc": { - "start": { - "line": 166, - "column": 24 - }, - "end": { - "line": 166, - "column": 29 - }, - "identifierName": "email" - }, - "name": "email" - }, - "value": { - "type": "Identifier", - "start": 5112, - "end": 5117, - "loc": { - "start": { - "line": 166, - "column": 24 - }, - "end": { - "line": 166, - "column": 29 - }, - "identifierName": "email" - }, - "name": "email" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 5121, - "end": 5129, - "loc": { - "start": { - "line": 166, - "column": 33 - }, - "end": { - "line": 166, - "column": 41 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 5131, - "end": 5599, - "loc": { - "start": { - "line": 166, - "column": 43 - }, - "end": { - "line": 182, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 5137, - "end": 5180, - "loc": { - "start": { - "line": 167, - "column": 4 - }, - "end": { - "line": 167, - "column": 47 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 5143, - "end": 5179, - "loc": { - "start": { - "line": 167, - "column": 10 - }, - "end": { - "line": 167, - "column": 46 - } - }, - "id": { - "type": "Identifier", - "start": 5143, - "end": 5151, - "loc": { - "start": { - "line": 167, - "column": 10 - }, - "end": { - "line": 167, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 5154, - "end": 5179, - "loc": { - "start": { - "line": 167, - "column": 21 - }, - "end": { - "line": 167, - "column": 46 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5154, - "end": 5168, - "loc": { - "start": { - "line": 167, - "column": 21 - }, - "end": { - "line": 167, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 5154, - "end": 5158, - "loc": { - "start": { - "line": 167, - "column": 21 - }, - "end": { - "line": 167, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 5159, - "end": 5168, - "loc": { - "start": { - "line": 167, - "column": 26 - }, - "end": { - "line": 167, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 5169, - "end": 5178, - "loc": { - "start": { - "line": 167, - "column": 36 - }, - "end": { - "line": 167, - "column": 45 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5171, - "end": 5176, - "loc": { - "start": { - "line": 167, - "column": 38 - }, - "end": { - "line": 167, - "column": 43 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5171, - "end": 5176, - "loc": { - "start": { - "line": 167, - "column": 38 - }, - "end": { - "line": 167, - "column": 43 - }, - "identifierName": "email" - }, - "name": "email" - }, - "value": { - "type": "Identifier", - "start": 5171, - "end": 5176, - "loc": { - "start": { - "line": 167, - "column": 38 - }, - "end": { - "line": 167, - "column": 43 - }, - "identifierName": "email" - }, - "name": "email" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 5185, - "end": 5554, - "loc": { - "start": { - "line": 168, - "column": 4 - }, - "end": { - "line": 178, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 5191, - "end": 5553, - "loc": { - "start": { - "line": 168, - "column": 10 - }, - "end": { - "line": 178, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 5191, - "end": 5194, - "loc": { - "start": { - "line": 168, - "column": 10 - }, - "end": { - "line": 168, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 5197, - "end": 5553, - "loc": { - "start": { - "line": 168, - "column": 16 - }, - "end": { - "line": 178, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5197, - "end": 5520, - "loc": { - "start": { - "line": 168, - "column": 16 - }, - "end": { - "line": 178, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 5197, - "end": 5510, - "loc": { - "start": { - "line": 168, - "column": 16 - }, - "end": { - "line": 177, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5197, - "end": 5217, - "loc": { - "start": { - "line": 168, - "column": 16 - }, - "end": { - "line": 169, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 5197, - "end": 5202, - "loc": { - "start": { - "line": 168, - "column": 16 - }, - "end": { - "line": 168, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 5210, - "end": 5217, - "loc": { - "start": { - "line": 169, - "column": 7 - }, - "end": { - "line": 169, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 5218, - "end": 5482, - "loc": { - "start": { - "line": 169, - "column": 15 - }, - "end": { - "line": 177, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 5218, - "end": 5237, - "loc": { - "start": { - "line": 169, - "column": 15 - }, - "end": { - "line": 169, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 5238, - "end": 5481, - "loc": { - "start": { - "line": 169, - "column": 35 - }, - "end": { - "line": 177, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5248, - "end": 5262, - "loc": { - "start": { - "line": 170, - "column": 8 - }, - "end": { - "line": 170, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5248, - "end": 5254, - "loc": { - "start": { - "line": 170, - "column": 8 - }, - "end": { - "line": 170, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 5256, - "end": 5262, - "loc": { - "start": { - "line": 170, - "column": 16 - }, - "end": { - "line": 170, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 5272, - "end": 5297, - "loc": { - "start": { - "line": 171, - "column": 8 - }, - "end": { - "line": 171, - "column": 33 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5272, - "end": 5276, - "loc": { - "start": { - "line": 171, - "column": 8 - }, - "end": { - "line": 171, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 5278, - "end": 5297, - "loc": { - "start": { - "line": 171, - "column": 14 - }, - "end": { - "line": 171, - "column": 33 - } - }, - "extra": { - "rawValue": "/user/verifyemail", - "raw": "'/user/verifyemail'" - }, - "value": "/user/verifyemail" - } - }, - { - "type": "ObjectProperty", - "start": 5307, - "end": 5339, - "loc": { - "start": { - "line": 172, - "column": 8 - }, - "end": { - "line": 172, - "column": 40 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5307, - "end": 5320, - "loc": { - "start": { - "line": 172, - "column": 8 - }, - "end": { - "line": 172, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 5322, - "end": 5339, - "loc": { - "start": { - "line": 172, - "column": 23 - }, - "end": { - "line": 172, - "column": 40 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5324, - "end": 5337, - "loc": { - "start": { - "line": 172, - "column": 25 - }, - "end": { - "line": 172, - "column": 38 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5324, - "end": 5328, - "loc": { - "start": { - "line": 172, - "column": 25 - }, - "end": { - "line": 172, - "column": 29 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 5330, - "end": 5337, - "loc": { - "start": { - "line": 172, - "column": 31 - }, - "end": { - "line": 172, - "column": 38 - } - }, - "extra": { - "rawValue": "Basic", - "raw": "'Basic'" - }, - "value": "Basic" - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 5349, - "end": 5472, - "loc": { - "start": { - "line": 173, - "column": 8 - }, - "end": { - "line": 176, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5349, - "end": 5356, - "loc": { - "start": { - "line": 173, - "column": 8 - }, - "end": { - "line": 173, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 5358, - "end": 5472, - "loc": { - "start": { - "line": 173, - "column": 17 - }, - "end": { - "line": 176, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5370, - "end": 5404, - "loc": { - "start": { - "line": 174, - "column": 10 - }, - "end": { - "line": 174, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 5370, - "end": 5384, - "loc": { - "start": { - "line": 174, - "column": 10 - }, - "end": { - "line": 174, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 5386, - "end": 5404, - "loc": { - "start": { - "line": 174, - "column": 26 - }, - "end": { - "line": 174, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 5416, - "end": 5461, - "loc": { - "start": { - "line": 175, - "column": 10 - }, - "end": { - "line": 175, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 5416, - "end": 5432, - "loc": { - "start": { - "line": 175, - "column": 10 - }, - "end": { - "line": 175, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 5434, - "end": 5461, - "loc": { - "start": { - "line": 175, - "column": 28 - }, - "end": { - "line": 175, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5434, - "end": 5451, - "loc": { - "start": { - "line": 175, - "column": 28 - }, - "end": { - "line": 175, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 5434, - "end": 5440, - "loc": { - "start": { - "line": 175, - "column": 28 - }, - "end": { - "line": 175, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 5441, - "end": 5451, - "loc": { - "start": { - "line": 175, - "column": 35 - }, - "end": { - "line": 175, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 5452, - "end": 5460, - "loc": { - "start": { - "line": 175, - "column": 46 - }, - "end": { - "line": 175, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 5484, - "end": 5509, - "loc": { - "start": { - "line": 177, - "column": 10 - }, - "end": { - "line": 177, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 5484, - "end": 5499, - "loc": { - "start": { - "line": 177, - "column": 10 - }, - "end": { - "line": 177, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 5500, - "end": 5508, - "loc": { - "start": { - "line": 177, - "column": 26 - }, - "end": { - "line": 177, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 5518, - "end": 5520, - "loc": { - "start": { - "line": 178, - "column": 7 - }, - "end": { - "line": 178, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 5521, - "end": 5528, - "loc": { - "start": { - "line": 178, - "column": 10 - }, - "end": { - "line": 178, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 5530, - "end": 5552, - "loc": { - "start": { - "line": 178, - "column": 19 - }, - "end": { - "line": 178, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 5530, - "end": 5542, - "loc": { - "start": { - "line": 178, - "column": 19 - }, - "end": { - "line": 178, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 5543, - "end": 5551, - "loc": { - "start": { - "line": 178, - "column": 32 - }, - "end": { - "line": 178, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 5560, - "end": 5580, - "loc": { - "start": { - "line": 180, - "column": 4 - }, - "end": { - "line": 180, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 5560, - "end": 5579, - "loc": { - "start": { - "line": 180, - "column": 4 - }, - "end": { - "line": 180, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5560, - "end": 5569, - "loc": { - "start": { - "line": 180, - "column": 4 - }, - "end": { - "line": 180, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 5560, - "end": 5563, - "loc": { - "start": { - "line": 180, - "column": 4 - }, - "end": { - "line": 180, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 5564, - "end": 5569, - "loc": { - "start": { - "line": 180, - "column": 8 - }, - "end": { - "line": 180, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 5570, - "end": 5578, - "loc": { - "start": { - "line": 180, - "column": 14 - }, - "end": { - "line": 180, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 5585, - "end": 5595, - "loc": { - "start": { - "line": 181, - "column": 4 - }, - "end": { - "line": 181, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 5585, - "end": 5594, - "loc": { - "start": { - "line": 181, - "column": 4 - }, - "end": { - "line": 181, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5585, - "end": 5592, - "loc": { - "start": { - "line": 181, - "column": 4 - }, - "end": { - "line": 181, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 5585, - "end": 5588, - "loc": { - "start": { - "line": 181, - "column": 4 - }, - "end": { - "line": 181, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 5589, - "end": 5592, - "loc": { - "start": { - "line": 181, - "column": 8 - }, - "end": { - "line": 181, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Verify user email payload\n * @typedef {Object} UserVerifyEmailParams\n * @property {string} email - email to verify\n ", - "start": 4523, - "end": 4656, - "loc": { - "start": { - "line": 149, - "column": 2 - }, - "end": { - "line": 153, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Verify user email response data\n * @typedef {Object} UserVerifyEmailResponse\n * @property {string} status - status of verification email sending, e.g. 'success'\n ", - "start": 4660, - "end": 4839, - "loc": { - "start": { - "line": 155, - "column": 2 - }, - "end": { - "line": 159, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Sends email with verification link to user\n * @param {UserVerifyEmailParams} data - user verify email payload\n * @param {function(err: ApiErrorResponse, res: UserVerifyEmailResponse)} [callback] - error first node.js callback\n ", - "start": 4843, - "end": 5087, - "loc": { - "start": { - "line": 161, - "column": 2 - }, - "end": { - "line": 165, - "column": 5 - } - } - } - ] - } - ] - }, - "leadingComments": [], - "name": "_", - "trailingComments": [] - }, - { - "type": "Identifier", - "start": 5603, - "end": 5623, - "loc": { - "start": { - "line": 185, - "column": 0 - }, - "end": { - "line": 185, - "column": 20 - } - }, - "declaration": { - "type": "Identifier", - "start": 5618, - "end": 5622, - "loc": { - "start": { - "line": 185, - "column": 15 - }, - "end": { - "line": 185, - "column": 19 - }, - "identifierName": "User" - }, - "name": "User" - }, - "name": "_", - "leadingComments": [], - "trailingComments": [] - }, - { - "type": "ExportDefaultDeclaration", - "start": 5603, - "end": 5623, - "loc": { - "start": { - "line": 185, - "column": 0 - }, - "end": { - "line": 185, - "column": 20 - } - }, - "declaration": { - "type": "ClassDeclaration", - "start": 153, - "end": 5601, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 183, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 159, - "end": 163, - "loc": { - "start": { - "line": 12, - "column": 6 - }, - "end": { - "line": 12, - "column": 10 - }, - "identifierName": "User" - }, - "name": "User", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 164, - "end": 5601, - "loc": { - "start": { - "line": 12, - "column": 11 - }, - "end": { - "line": 183, - "column": 1 - } - }, - "body": [ - { - "type": "ClassMethod", - "start": 1323, - "end": 2612, - "loc": { - "start": { - "line": 45, - "column": 2 - }, - "end": { - "line": 100, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1330, - "end": 1336, - "loc": { - "start": { - "line": 45, - "column": 9 - }, - "end": { - "line": 45, - "column": 15 - }, - "identifierName": "create" - }, - "name": "create" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 1338, - "end": 1491, - "loc": { - "start": { - "line": 45, - "column": 17 - }, - "end": { - "line": 55, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1344, - "end": 1349, - "loc": { - "start": { - "line": 46, - "column": 4 - }, - "end": { - "line": 46, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1344, - "end": 1349, - "loc": { - "start": { - "line": 46, - "column": 4 - }, - "end": { - "line": 46, - "column": 9 - }, - "identifierName": "email" - }, - "name": "email" - }, - "value": { - "type": "Identifier", - "start": 1344, - "end": 1349, - "loc": { - "start": { - "line": 46, - "column": 4 - }, - "end": { - "line": 46, - "column": 9 - }, - "identifierName": "email" - }, - "name": "email" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1355, - "end": 1363, - "loc": { - "start": { - "line": 47, - "column": 4 - }, - "end": { - "line": 47, - "column": 12 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1355, - "end": 1363, - "loc": { - "start": { - "line": 47, - "column": 4 - }, - "end": { - "line": 47, - "column": 12 - }, - "identifierName": "password" - }, - "name": "password" - }, - "value": { - "type": "Identifier", - "start": 1355, - "end": 1363, - "loc": { - "start": { - "line": 47, - "column": 4 - }, - "end": { - "line": 47, - "column": 12 - }, - "identifierName": "password" - }, - "name": "password" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1369, - "end": 1379, - "loc": { - "start": { - "line": 48, - "column": 4 - }, - "end": { - "line": 48, - "column": 14 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1369, - "end": 1379, - "loc": { - "start": { - "line": 48, - "column": 4 - }, - "end": { - "line": 48, - "column": 14 - }, - "identifierName": "first_name" - }, - "name": "first_name" - }, - "value": { - "type": "Identifier", - "start": 1369, - "end": 1379, - "loc": { - "start": { - "line": 48, - "column": 4 - }, - "end": { - "line": 48, - "column": 14 - }, - "identifierName": "first_name" - }, - "name": "first_name" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1385, - "end": 1394, - "loc": { - "start": { - "line": 49, - "column": 4 - }, - "end": { - "line": 49, - "column": 13 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1385, - "end": 1394, - "loc": { - "start": { - "line": 49, - "column": 4 - }, - "end": { - "line": 49, - "column": 13 - }, - "identifierName": "last_name" - }, - "name": "last_name" - }, - "value": { - "type": "Identifier", - "start": 1385, - "end": 1394, - "loc": { - "start": { - "line": 49, - "column": 4 - }, - "end": { - "line": 49, - "column": 13 - }, - "identifierName": "last_name" - }, - "name": "last_name" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1400, - "end": 1406, - "loc": { - "start": { - "line": 50, - "column": 4 - }, - "end": { - "line": 50, - "column": 10 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1400, - "end": 1406, - "loc": { - "start": { - "line": 50, - "column": 4 - }, - "end": { - "line": 50, - "column": 10 - }, - "identifierName": "number" - }, - "name": "number" - }, - "value": { - "type": "Identifier", - "start": 1400, - "end": 1406, - "loc": { - "start": { - "line": 50, - "column": 4 - }, - "end": { - "line": 50, - "column": 10 - }, - "identifierName": "number" - }, - "name": "number" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1412, - "end": 1486, - "loc": { - "start": { - "line": 51, - "column": 4 - }, - "end": { - "line": 54, - "column": 10 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1412, - "end": 1419, - "loc": { - "start": { - "line": 51, - "column": 4 - }, - "end": { - "line": 51, - "column": 11 - }, - "identifierName": "options" - }, - "name": "options" - }, - "value": { - "type": "AssignmentPattern", - "start": 1421, - "end": 1486, - "loc": { - "start": { - "line": 51, - "column": 13 - }, - "end": { - "line": 54, - "column": 10 - } - }, - "left": { - "type": "ObjectPattern", - "start": 1421, - "end": 1481, - "loc": { - "start": { - "line": 51, - "column": 13 - }, - "end": { - "line": 54, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1429, - "end": 1448, - "loc": { - "start": { - "line": 52, - "column": 6 - }, - "end": { - "line": 52, - "column": 25 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1429, - "end": 1440, - "loc": { - "start": { - "line": 52, - "column": 6 - }, - "end": { - "line": 52, - "column": 17 - }, - "identifierName": "verifyEmail" - }, - "name": "verifyEmail" - }, - "value": { - "type": "AssignmentPattern", - "start": 1429, - "end": 1448, - "loc": { - "start": { - "line": 52, - "column": 6 - }, - "end": { - "line": 52, - "column": 25 - } - }, - "left": { - "type": "Identifier", - "start": 1429, - "end": 1440, - "loc": { - "start": { - "line": 52, - "column": 6 - }, - "end": { - "line": 52, - "column": 17 - }, - "identifierName": "verifyEmail" - }, - "name": "verifyEmail" - }, - "right": { - "type": "BooleanLiteral", - "start": 1443, - "end": 1448, - "loc": { - "start": { - "line": 52, - "column": 20 - }, - "end": { - "line": 52, - "column": 25 - } - }, - "value": false - } - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1456, - "end": 1474, - "loc": { - "start": { - "line": 53, - "column": 6 - }, - "end": { - "line": 53, - "column": 24 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1456, - "end": 1466, - "loc": { - "start": { - "line": 53, - "column": 6 - }, - "end": { - "line": 53, - "column": 16 - }, - "identifierName": "startTrial" - }, - "name": "startTrial" - }, - "value": { - "type": "AssignmentPattern", - "start": 1456, - "end": 1474, - "loc": { - "start": { - "line": 53, - "column": 6 - }, - "end": { - "line": 53, - "column": 24 - } - }, - "left": { - "type": "Identifier", - "start": 1456, - "end": 1466, - "loc": { - "start": { - "line": 53, - "column": 6 - }, - "end": { - "line": 53, - "column": 16 - }, - "identifierName": "startTrial" - }, - "name": "startTrial" - }, - "right": { - "type": "BooleanLiteral", - "start": 1469, - "end": 1474, - "loc": { - "start": { - "line": 53, - "column": 19 - }, - "end": { - "line": 53, - "column": 24 - } - }, - "value": false - } - }, - "extra": { - "shorthand": true - } - } - ] - }, - "right": { - "type": "ObjectExpression", - "start": 1484, - "end": 1486, - "loc": { - "start": { - "line": 54, - "column": 8 - }, - "end": { - "line": 54, - "column": 10 - } - }, - "properties": [] - } - } - } - ] - }, - { - "type": "Identifier", - "start": 1493, - "end": 1509, - "loc": { - "start": { - "line": 55, - "column": 5 - }, - "end": { - "line": 55, - "column": 21 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - } - ], - "body": { - "type": "BlockStatement", - "start": 1511, - "end": 2612, - "loc": { - "start": { - "line": 55, - "column": 23 - }, - "end": { - "line": 100, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 1517, - "end": 1680, - "loc": { - "start": { - "line": 56, - "column": 4 - }, - "end": { - "line": 63, - "column": 7 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1523, - "end": 1679, - "loc": { - "start": { - "line": 56, - "column": 10 - }, - "end": { - "line": 63, - "column": 6 - } - }, - "id": { - "type": "Identifier", - "start": 1523, - "end": 1531, - "loc": { - "start": { - "line": 56, - "column": 10 - }, - "end": { - "line": 56, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 1534, - "end": 1679, - "loc": { - "start": { - "line": 56, - "column": 21 - }, - "end": { - "line": 63, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1534, - "end": 1548, - "loc": { - "start": { - "line": 56, - "column": 21 - }, - "end": { - "line": 56, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 1534, - "end": 1538, - "loc": { - "start": { - "line": 56, - "column": 21 - }, - "end": { - "line": 56, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 1539, - "end": 1548, - "loc": { - "start": { - "line": 56, - "column": 26 - }, - "end": { - "line": 56, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 1549, - "end": 1678, - "loc": { - "start": { - "line": 56, - "column": 36 - }, - "end": { - "line": 63, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1557, - "end": 1593, - "loc": { - "start": { - "line": 57, - "column": 6 - }, - "end": { - "line": 57, - "column": 42 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1557, - "end": 1573, - "loc": { - "start": { - "line": 57, - "column": 6 - }, - "end": { - "line": 57, - "column": 22 - }, - "identifierName": "skip_30day_trial" - }, - "name": "skip_30day_trial" - }, - "value": { - "type": "ConditionalExpression", - "start": 1575, - "end": 1593, - "loc": { - "start": { - "line": 57, - "column": 24 - }, - "end": { - "line": 57, - "column": 42 - } - }, - "test": { - "type": "Identifier", - "start": 1575, - "end": 1585, - "loc": { - "start": { - "line": 57, - "column": 24 - }, - "end": { - "line": 57, - "column": 34 - }, - "identifierName": "startTrial" - }, - "name": "startTrial" - }, - "consequent": { - "type": "NumericLiteral", - "start": 1588, - "end": 1589, - "loc": { - "start": { - "line": 57, - "column": 37 - }, - "end": { - "line": 57, - "column": 38 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "alternate": { - "type": "NumericLiteral", - "start": 1592, - "end": 1593, - "loc": { - "start": { - "line": 57, - "column": 41 - }, - "end": { - "line": 57, - "column": 42 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - } - }, - { - "type": "ObjectProperty", - "start": 1601, - "end": 1606, - "loc": { - "start": { - "line": 58, - "column": 6 - }, - "end": { - "line": 58, - "column": 11 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1601, - "end": 1606, - "loc": { - "start": { - "line": 58, - "column": 6 - }, - "end": { - "line": 58, - "column": 11 - }, - "identifierName": "email" - }, - "name": "email" - }, - "value": { - "type": "Identifier", - "start": 1601, - "end": 1606, - "loc": { - "start": { - "line": 58, - "column": 6 - }, - "end": { - "line": 58, - "column": 11 - }, - "identifierName": "email" - }, - "name": "email" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1614, - "end": 1622, - "loc": { - "start": { - "line": 59, - "column": 6 - }, - "end": { - "line": 59, - "column": 14 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1614, - "end": 1622, - "loc": { - "start": { - "line": 59, - "column": 6 - }, - "end": { - "line": 59, - "column": 14 - }, - "identifierName": "password" - }, - "name": "password" - }, - "value": { - "type": "Identifier", - "start": 1614, - "end": 1622, - "loc": { - "start": { - "line": 59, - "column": 6 - }, - "end": { - "line": 59, - "column": 14 - }, - "identifierName": "password" - }, - "name": "password" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1630, - "end": 1640, - "loc": { - "start": { - "line": 60, - "column": 6 - }, - "end": { - "line": 60, - "column": 16 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1630, - "end": 1640, - "loc": { - "start": { - "line": 60, - "column": 6 - }, - "end": { - "line": 60, - "column": 16 - }, - "identifierName": "first_name" - }, - "name": "first_name" - }, - "value": { - "type": "Identifier", - "start": 1630, - "end": 1640, - "loc": { - "start": { - "line": 60, - "column": 6 - }, - "end": { - "line": 60, - "column": 16 - }, - "identifierName": "first_name" - }, - "name": "first_name" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1648, - "end": 1657, - "loc": { - "start": { - "line": 61, - "column": 6 - }, - "end": { - "line": 61, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1648, - "end": 1657, - "loc": { - "start": { - "line": 61, - "column": 6 - }, - "end": { - "line": 61, - "column": 15 - }, - "identifierName": "last_name" - }, - "name": "last_name" - }, - "value": { - "type": "Identifier", - "start": 1648, - "end": 1657, - "loc": { - "start": { - "line": 61, - "column": 6 - }, - "end": { - "line": 61, - "column": 15 - }, - "identifierName": "last_name" - }, - "name": "last_name" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 1665, - "end": 1671, - "loc": { - "start": { - "line": 62, - "column": 6 - }, - "end": { - "line": 62, - "column": 12 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1665, - "end": 1671, - "loc": { - "start": { - "line": 62, - "column": 6 - }, - "end": { - "line": 62, - "column": 12 - }, - "identifierName": "number" - }, - "name": "number" - }, - "value": { - "type": "Identifier", - "start": 1665, - "end": 1671, - "loc": { - "start": { - "line": 62, - "column": 6 - }, - "end": { - "line": 62, - "column": 12 - }, - "identifierName": "number" - }, - "name": "number" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 1686, - "end": 2106, - "loc": { - "start": { - "line": 65, - "column": 4 - }, - "end": { - "line": 80, - "column": 6 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1692, - "end": 2105, - "loc": { - "start": { - "line": 65, - "column": 10 - }, - "end": { - "line": 80, - "column": 5 - } - }, - "id": { - "type": "Identifier", - "start": 1692, - "end": 1721, - "loc": { - "start": { - "line": 65, - "column": 10 - }, - "end": { - "line": 65, - "column": 39 - }, - "identifierName": "callbackWithEmailVerification" - }, - "name": "callbackWithEmailVerification" - }, - "init": { - "type": "ArrowFunctionExpression", - "start": 1724, - "end": 2105, - "loc": { - "start": { - "line": 65, - "column": 42 - }, - "end": { - "line": 80, - "column": 5 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1725, - "end": 1734, - "loc": { - "start": { - "line": 65, - "column": 43 - }, - "end": { - "line": 65, - "column": 52 - }, - "identifierName": "createErr" - }, - "name": "createErr" - }, - { - "type": "Identifier", - "start": 1736, - "end": 1745, - "loc": { - "start": { - "line": 65, - "column": 54 - }, - "end": { - "line": 65, - "column": 63 - }, - "identifierName": "createRes" - }, - "name": "createRes" - } - ], - "body": { - "type": "BlockStatement", - "start": 1750, - "end": 2105, - "loc": { - "start": { - "line": 65, - "column": 68 - }, - "end": { - "line": 80, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 1758, - "end": 2099, - "loc": { - "start": { - "line": 66, - "column": 6 - }, - "end": { - "line": 79, - "column": 7 - } - }, - "test": { - "type": "Identifier", - "start": 1762, - "end": 1771, - "loc": { - "start": { - "line": 66, - "column": 10 - }, - "end": { - "line": 66, - "column": 19 - }, - "identifierName": "createErr" - }, - "name": "createErr" - }, - "consequent": { - "type": "BlockStatement", - "start": 1773, - "end": 1835, - "loc": { - "start": { - "line": 66, - "column": 21 - }, - "end": { - "line": 69, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1783, - "end": 1811, - "loc": { - "start": { - "line": 67, - "column": 8 - }, - "end": { - "line": 67, - "column": 36 - } - }, - "expression": { - "type": "CallExpression", - "start": 1783, - "end": 1810, - "loc": { - "start": { - "line": 67, - "column": 8 - }, - "end": { - "line": 67, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 1783, - "end": 1799, - "loc": { - "start": { - "line": 67, - "column": 8 - }, - "end": { - "line": 67, - "column": 24 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1800, - "end": 1809, - "loc": { - "start": { - "line": 67, - "column": 25 - }, - "end": { - "line": 67, - "column": 34 - }, - "identifierName": "createErr" - }, - "name": "createErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 1820, - "end": 1827, - "loc": { - "start": { - "line": 68, - "column": 8 - }, - "end": { - "line": 68, - "column": 15 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 1841, - "end": 2099, - "loc": { - "start": { - "line": 69, - "column": 13 - }, - "end": { - "line": 79, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1851, - "end": 2091, - "loc": { - "start": { - "line": 70, - "column": 8 - }, - "end": { - "line": 78, - "column": 11 - } - }, - "expression": { - "type": "CallExpression", - "start": 1851, - "end": 2090, - "loc": { - "start": { - "line": 70, - "column": 8 - }, - "end": { - "line": 78, - "column": 10 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1851, - "end": 1867, - "loc": { - "start": { - "line": 70, - "column": 8 - }, - "end": { - "line": 70, - "column": 24 - } - }, - "object": { - "type": "Identifier", - "start": 1851, - "end": 1855, - "loc": { - "start": { - "line": 70, - "column": 8 - }, - "end": { - "line": 70, - "column": 12 - }, - "identifierName": "User" - }, - "name": "User" - }, - "property": { - "type": "Identifier", - "start": 1856, - "end": 1867, - "loc": { - "start": { - "line": 70, - "column": 13 - }, - "end": { - "line": 70, - "column": 24 - }, - "identifierName": "verifyEmail" - }, - "name": "verifyEmail" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 1868, - "end": 1877, - "loc": { - "start": { - "line": 70, - "column": 25 - }, - "end": { - "line": 70, - "column": 34 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 1870, - "end": 1875, - "loc": { - "start": { - "line": 70, - "column": 27 - }, - "end": { - "line": 70, - "column": 32 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 1870, - "end": 1875, - "loc": { - "start": { - "line": 70, - "column": 27 - }, - "end": { - "line": 70, - "column": 32 - }, - "identifierName": "email" - }, - "name": "email" - }, - "value": { - "type": "Identifier", - "start": 1870, - "end": 1875, - "loc": { - "start": { - "line": 70, - "column": 27 - }, - "end": { - "line": 70, - "column": 32 - }, - "identifierName": "email" - }, - "name": "email" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "ArrowFunctionExpression", - "start": 1879, - "end": 2089, - "loc": { - "start": { - "line": 70, - "column": 36 - }, - "end": { - "line": 78, - "column": 9 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1879, - "end": 1888, - "loc": { - "start": { - "line": 70, - "column": 36 - }, - "end": { - "line": 70, - "column": 45 - }, - "identifierName": "verifyErr" - }, - "name": "verifyErr" - } - ], - "body": { - "type": "BlockStatement", - "start": 1892, - "end": 2089, - "loc": { - "start": { - "line": 70, - "column": 49 - }, - "end": { - "line": 78, - "column": 9 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 1904, - "end": 2079, - "loc": { - "start": { - "line": 71, - "column": 10 - }, - "end": { - "line": 77, - "column": 11 - } - }, - "test": { - "type": "Identifier", - "start": 1908, - "end": 1917, - "loc": { - "start": { - "line": 71, - "column": 14 - }, - "end": { - "line": 71, - "column": 23 - }, - "identifierName": "verifyErr" - }, - "name": "verifyErr" - }, - "consequent": { - "type": "BlockStatement", - "start": 1919, - "end": 1993, - "loc": { - "start": { - "line": 71, - "column": 25 - }, - "end": { - "line": 74, - "column": 11 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1933, - "end": 1961, - "loc": { - "start": { - "line": 72, - "column": 12 - }, - "end": { - "line": 72, - "column": 40 - } - }, - "expression": { - "type": "CallExpression", - "start": 1933, - "end": 1960, - "loc": { - "start": { - "line": 72, - "column": 12 - }, - "end": { - "line": 72, - "column": 39 - } - }, - "callee": { - "type": "Identifier", - "start": 1933, - "end": 1949, - "loc": { - "start": { - "line": 72, - "column": 12 - }, - "end": { - "line": 72, - "column": 28 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1950, - "end": 1959, - "loc": { - "start": { - "line": 72, - "column": 29 - }, - "end": { - "line": 72, - "column": 38 - }, - "identifierName": "verifyErr" - }, - "name": "verifyErr" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 1974, - "end": 1981, - "loc": { - "start": { - "line": 73, - "column": 12 - }, - "end": { - "line": 73, - "column": 19 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 1999, - "end": 2079, - "loc": { - "start": { - "line": 74, - "column": 17 - }, - "end": { - "line": 77, - "column": 11 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2013, - "end": 2047, - "loc": { - "start": { - "line": 75, - "column": 12 - }, - "end": { - "line": 75, - "column": 46 - } - }, - "expression": { - "type": "CallExpression", - "start": 2013, - "end": 2046, - "loc": { - "start": { - "line": 75, - "column": 12 - }, - "end": { - "line": 75, - "column": 45 - } - }, - "callee": { - "type": "Identifier", - "start": 2013, - "end": 2029, - "loc": { - "start": { - "line": 75, - "column": 12 - }, - "end": { - "line": 75, - "column": 28 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - }, - "arguments": [ - { - "type": "NullLiteral", - "start": 2030, - "end": 2034, - "loc": { - "start": { - "line": 75, - "column": 29 - }, - "end": { - "line": 75, - "column": 33 - } - } - }, - { - "type": "Identifier", - "start": 2036, - "end": 2045, - "loc": { - "start": { - "line": 75, - "column": 35 - }, - "end": { - "line": 75, - "column": 44 - }, - "identifierName": "createRes" - }, - "name": "createRes" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 2060, - "end": 2067, - "loc": { - "start": { - "line": 76, - "column": 12 - }, - "end": { - "line": 76, - "column": 19 - } - }, - "argument": null - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 2112, - "end": 2204, - "loc": { - "start": { - "line": 82, - "column": 4 - }, - "end": { - "line": 84, - "column": 25 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2118, - "end": 2203, - "loc": { - "start": { - "line": 82, - "column": 10 - }, - "end": { - "line": 84, - "column": 24 - } - }, - "id": { - "type": "Identifier", - "start": 2118, - "end": 2126, - "loc": { - "start": { - "line": 82, - "column": 10 - }, - "end": { - "line": 82, - "column": 18 - }, - "identifierName": "callback" - }, - "name": "callback" - }, - "init": { - "type": "ConditionalExpression", - "start": 2129, - "end": 2203, - "loc": { - "start": { - "line": 82, - "column": 21 - }, - "end": { - "line": 84, - "column": 24 - } - }, - "test": { - "type": "Identifier", - "start": 2129, - "end": 2140, - "loc": { - "start": { - "line": 82, - "column": 21 - }, - "end": { - "line": 82, - "column": 32 - }, - "identifierName": "verifyEmail" - }, - "name": "verifyEmail" - }, - "consequent": { - "type": "Identifier", - "start": 2149, - "end": 2178, - "loc": { - "start": { - "line": 83, - "column": 8 - }, - "end": { - "line": 83, - "column": 37 - }, - "identifierName": "callbackWithEmailVerification" - }, - "name": "callbackWithEmailVerification" - }, - "alternate": { - "type": "Identifier", - "start": 2187, - "end": 2203, - "loc": { - "start": { - "line": 84, - "column": 8 - }, - "end": { - "line": 84, - "column": 24 - }, - "identifierName": "originalCallback" - }, - "name": "originalCallback" - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 2210, - "end": 2567, - "loc": { - "start": { - "line": 86, - "column": 4 - }, - "end": { - "line": 96, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2216, - "end": 2566, - "loc": { - "start": { - "line": 86, - "column": 10 - }, - "end": { - "line": 96, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 2216, - "end": 2219, - "loc": { - "start": { - "line": 86, - "column": 10 - }, - "end": { - "line": 86, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 2222, - "end": 2566, - "loc": { - "start": { - "line": 86, - "column": 16 - }, - "end": { - "line": 96, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2222, - "end": 2533, - "loc": { - "start": { - "line": 86, - "column": 16 - }, - "end": { - "line": 96, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 2222, - "end": 2523, - "loc": { - "start": { - "line": 86, - "column": 16 - }, - "end": { - "line": 95, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2222, - "end": 2242, - "loc": { - "start": { - "line": 86, - "column": 16 - }, - "end": { - "line": 87, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 2222, - "end": 2227, - "loc": { - "start": { - "line": 86, - "column": 16 - }, - "end": { - "line": 86, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 2235, - "end": 2242, - "loc": { - "start": { - "line": 87, - "column": 7 - }, - "end": { - "line": 87, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 2243, - "end": 2495, - "loc": { - "start": { - "line": 87, - "column": 15 - }, - "end": { - "line": 95, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 2243, - "end": 2262, - "loc": { - "start": { - "line": 87, - "column": 15 - }, - "end": { - "line": 87, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 2263, - "end": 2494, - "loc": { - "start": { - "line": 87, - "column": 35 - }, - "end": { - "line": 95, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2273, - "end": 2287, - "loc": { - "start": { - "line": 88, - "column": 8 - }, - "end": { - "line": 88, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2273, - "end": 2279, - "loc": { - "start": { - "line": 88, - "column": 8 - }, - "end": { - "line": 88, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 2281, - "end": 2287, - "loc": { - "start": { - "line": 88, - "column": 16 - }, - "end": { - "line": 88, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 2297, - "end": 2310, - "loc": { - "start": { - "line": 89, - "column": 8 - }, - "end": { - "line": 89, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2297, - "end": 2301, - "loc": { - "start": { - "line": 89, - "column": 8 - }, - "end": { - "line": 89, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 2303, - "end": 2310, - "loc": { - "start": { - "line": 89, - "column": 14 - }, - "end": { - "line": 89, - "column": 21 - } - }, - "extra": { - "rawValue": "/user", - "raw": "'/user'" - }, - "value": "/user" - } - }, - { - "type": "ObjectProperty", - "start": 2320, - "end": 2352, - "loc": { - "start": { - "line": 90, - "column": 8 - }, - "end": { - "line": 90, - "column": 40 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2320, - "end": 2333, - "loc": { - "start": { - "line": 90, - "column": 8 - }, - "end": { - "line": 90, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 2335, - "end": 2352, - "loc": { - "start": { - "line": 90, - "column": 23 - }, - "end": { - "line": 90, - "column": 40 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2337, - "end": 2350, - "loc": { - "start": { - "line": 90, - "column": 25 - }, - "end": { - "line": 90, - "column": 38 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2337, - "end": 2341, - "loc": { - "start": { - "line": 90, - "column": 25 - }, - "end": { - "line": 90, - "column": 29 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 2343, - "end": 2350, - "loc": { - "start": { - "line": 90, - "column": 31 - }, - "end": { - "line": 90, - "column": 38 - } - }, - "extra": { - "rawValue": "Basic", - "raw": "'Basic'" - }, - "value": "Basic" - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 2362, - "end": 2485, - "loc": { - "start": { - "line": 91, - "column": 8 - }, - "end": { - "line": 94, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2362, - "end": 2369, - "loc": { - "start": { - "line": 91, - "column": 8 - }, - "end": { - "line": 91, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 2371, - "end": 2485, - "loc": { - "start": { - "line": 91, - "column": 17 - }, - "end": { - "line": 94, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 2383, - "end": 2417, - "loc": { - "start": { - "line": 92, - "column": 10 - }, - "end": { - "line": 92, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 2383, - "end": 2397, - "loc": { - "start": { - "line": 92, - "column": 10 - }, - "end": { - "line": 92, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 2399, - "end": 2417, - "loc": { - "start": { - "line": 92, - "column": 26 - }, - "end": { - "line": 92, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 2429, - "end": 2474, - "loc": { - "start": { - "line": 93, - "column": 10 - }, - "end": { - "line": 93, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 2429, - "end": 2445, - "loc": { - "start": { - "line": 93, - "column": 10 - }, - "end": { - "line": 93, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 2447, - "end": 2474, - "loc": { - "start": { - "line": 93, - "column": 28 - }, - "end": { - "line": 93, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2447, - "end": 2464, - "loc": { - "start": { - "line": 93, - "column": 28 - }, - "end": { - "line": 93, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 2447, - "end": 2453, - "loc": { - "start": { - "line": 93, - "column": 28 - }, - "end": { - "line": 93, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 2454, - "end": 2464, - "loc": { - "start": { - "line": 93, - "column": 35 - }, - "end": { - "line": 93, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2465, - "end": 2473, - "loc": { - "start": { - "line": 93, - "column": 46 - }, - "end": { - "line": 93, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 2497, - "end": 2522, - "loc": { - "start": { - "line": 95, - "column": 10 - }, - "end": { - "line": 95, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 2497, - "end": 2512, - "loc": { - "start": { - "line": 95, - "column": 10 - }, - "end": { - "line": 95, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2513, - "end": 2521, - "loc": { - "start": { - "line": 95, - "column": 26 - }, - "end": { - "line": 95, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 2531, - "end": 2533, - "loc": { - "start": { - "line": 96, - "column": 7 - }, - "end": { - "line": 96, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2534, - "end": 2541, - "loc": { - "start": { - "line": 96, - "column": 10 - }, - "end": { - "line": 96, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 2543, - "end": 2565, - "loc": { - "start": { - "line": 96, - "column": 19 - }, - "end": { - "line": 96, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 2543, - "end": 2555, - "loc": { - "start": { - "line": 96, - "column": 19 - }, - "end": { - "line": 96, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 2556, - "end": 2564, - "loc": { - "start": { - "line": 96, - "column": 32 - }, - "end": { - "line": 96, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 2573, - "end": 2593, - "loc": { - "start": { - "line": 98, - "column": 4 - }, - "end": { - "line": 98, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 2573, - "end": 2592, - "loc": { - "start": { - "line": 98, - "column": 4 - }, - "end": { - "line": 98, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2573, - "end": 2582, - "loc": { - "start": { - "line": 98, - "column": 4 - }, - "end": { - "line": 98, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 2573, - "end": 2576, - "loc": { - "start": { - "line": 98, - "column": 4 - }, - "end": { - "line": 98, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 2577, - "end": 2582, - "loc": { - "start": { - "line": 98, - "column": 8 - }, - "end": { - "line": 98, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2583, - "end": 2591, - "loc": { - "start": { - "line": 98, - "column": 14 - }, - "end": { - "line": 98, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 2598, - "end": 2608, - "loc": { - "start": { - "line": 99, - "column": 4 - }, - "end": { - "line": 99, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 2598, - "end": 2607, - "loc": { - "start": { - "line": 99, - "column": 4 - }, - "end": { - "line": 99, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2598, - "end": 2605, - "loc": { - "start": { - "line": 99, - "column": 4 - }, - "end": { - "line": 99, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 2598, - "end": 2601, - "loc": { - "start": { - "line": 99, - "column": 4 - }, - "end": { - "line": 99, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 2602, - "end": 2605, - "loc": { - "start": { - "line": 99, - "column": 8 - }, - "end": { - "line": 99, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Create User optional settings\n * @typedef {Object} CreateUserOptions\n * @property {boolean} [verifyEmail=false] - if `true` verification email will be sent\n * @property {number} [startTrial=false] - if `true` start 30 days free trial\n ", - "start": 169, - "end": 423, - "loc": { - "start": { - "line": 14, - "column": 2 - }, - "end": { - "line": 19, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create user payload\n * @typedef {Object} UserCreateParams\n * @property {string} email - email of new user\n * @property {string} password - password for new user\n * @property {string} [first_name] - first name of new user\n * @property {string} [last_name] - last name of new user\n * @property {string} [number] - phone number of new user\n * @property {CreateUserOptions} [options] - create user optional settings\n ", - "start": 427, - "end": 867, - "loc": { - "start": { - "line": 21, - "column": 2 - }, - "end": { - "line": 30, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create user response data\n * @typedef {Object} UserCreateResponse\n * @property {string} id - user unique id\n * @property {number} verified - user is verified or not\n * @property {string} email - user email\n ", - "start": 871, - "end": 1099, - "loc": { - "start": { - "line": 32, - "column": 2 - }, - "end": { - "line": 38, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create new user account\n * @param {UserCreateParams} data - create user payload\n * @param {function(err: ApiErrorResponse, res: UserCreateResponse)} [originalCallback] - error first node.js callback\n ", - "start": 1103, - "end": 1320, - "loc": { - "start": { - "line": 40, - "column": 2 - }, - "end": { - "line": 44, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Get user payload\n * @typedef {Object} UserGetParams\n * @property {string} token - your auth token\n ", - "start": 2616, - "end": 2732, - "loc": { - "start": { - "line": 102, - "column": 2 - }, - "end": { - "line": 106, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieve user response data\n * @typedef {Object} UserGetResponse\n * @property {string} id - user unique id\n * @property {string} first_name - first name\n * @property {string} last_name - last name\n * @property {number} active - user is active or not\n * @property {string} created - user creation timestamp\n * @property {string[]} emails - user emails\n * @property {string} primary_email - user primary email\n * @property {Object[]} subscriptions - user subscriptions data\n * @property {?Object} cloud_export_account_details - cloud export account details data\n * @property {boolean} is_logged_in - user is logged in or not\n * @property {{start_date: string, end_date: string, start_timestamp: number, end_timestamp: number}} billing_period - user billing period data\n * @property {Object[]} companies - companies where user is a member of\n * @property {?string} registration_source - resource where user was registered\n * @property {Object[]} teams - teams where user is a member of\n * @property {Object} settings - user specific settings\n * @property {Object[]} organization_settings - organization specific settings where user is a member of\n * @property {Object[]} merchant_accounts - merchant accounts data\n ", - "start": 2736, - "end": 3997, - "loc": { - "start": { - "line": 108, - "column": 2 - }, - "end": { - "line": 128, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieve user account details\n * @param {UserGetParams} data - get user payload\n * @param {function(err: ApiErrorResponse, res: UserGetResponse)} [callback] - error first node.js callback\n ", - "start": 4001, - "end": 4207, - "loc": { - "start": { - "line": 130, - "column": 2 - }, - "end": { - "line": 134, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 4210, - "end": 4519, - "loc": { - "start": { - "line": 135, - "column": 2 - }, - "end": { - "line": 147, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 4217, - "end": 4225, - "loc": { - "start": { - "line": 135, - "column": 9 - }, - "end": { - "line": 135, - "column": 17 - }, - "identifierName": "retrieve" - }, - "name": "retrieve" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 4227, - "end": 4236, - "loc": { - "start": { - "line": 135, - "column": 19 - }, - "end": { - "line": 135, - "column": 28 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4229, - "end": 4234, - "loc": { - "start": { - "line": 135, - "column": 21 - }, - "end": { - "line": 135, - "column": 26 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 4229, - "end": 4234, - "loc": { - "start": { - "line": 135, - "column": 21 - }, - "end": { - "line": 135, - "column": 26 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 4229, - "end": 4234, - "loc": { - "start": { - "line": 135, - "column": 21 - }, - "end": { - "line": 135, - "column": 26 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 4238, - "end": 4246, - "loc": { - "start": { - "line": 135, - "column": 30 - }, - "end": { - "line": 135, - "column": 38 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 4248, - "end": 4519, - "loc": { - "start": { - "line": 135, - "column": 40 - }, - "end": { - "line": 147, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 4254, - "end": 4515, - "loc": { - "start": { - "line": 136, - "column": 4 - }, - "end": { - "line": 146, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 4254, - "end": 4514, - "loc": { - "start": { - "line": 136, - "column": 4 - }, - "end": { - "line": 146, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4254, - "end": 4512, - "loc": { - "start": { - "line": 136, - "column": 4 - }, - "end": { - "line": 146, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 4254, - "end": 4501, - "loc": { - "start": { - "line": 136, - "column": 4 - }, - "end": { - "line": 145, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4254, - "end": 4468, - "loc": { - "start": { - "line": 136, - "column": 4 - }, - "end": { - "line": 145, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 4254, - "end": 4458, - "loc": { - "start": { - "line": 136, - "column": 4 - }, - "end": { - "line": 144, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4254, - "end": 4274, - "loc": { - "start": { - "line": 136, - "column": 4 - }, - "end": { - "line": 137, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 4254, - "end": 4259, - "loc": { - "start": { - "line": 136, - "column": 4 - }, - "end": { - "line": 136, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 4267, - "end": 4274, - "loc": { - "start": { - "line": 137, - "column": 7 - }, - "end": { - "line": 137, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 4275, - "end": 4430, - "loc": { - "start": { - "line": 137, - "column": 15 - }, - "end": { - "line": 144, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 4275, - "end": 4294, - "loc": { - "start": { - "line": 137, - "column": 15 - }, - "end": { - "line": 137, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 4295, - "end": 4429, - "loc": { - "start": { - "line": 137, - "column": 35 - }, - "end": { - "line": 144, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4305, - "end": 4318, - "loc": { - "start": { - "line": 138, - "column": 8 - }, - "end": { - "line": 138, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4305, - "end": 4311, - "loc": { - "start": { - "line": 138, - "column": 8 - }, - "end": { - "line": 138, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 4313, - "end": 4318, - "loc": { - "start": { - "line": 138, - "column": 16 - }, - "end": { - "line": 138, - "column": 21 - } - }, - "extra": { - "rawValue": "GET", - "raw": "'GET'" - }, - "value": "GET" - } - }, - { - "type": "ObjectProperty", - "start": 4328, - "end": 4341, - "loc": { - "start": { - "line": 139, - "column": 8 - }, - "end": { - "line": 139, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4328, - "end": 4332, - "loc": { - "start": { - "line": 139, - "column": 8 - }, - "end": { - "line": 139, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 4334, - "end": 4341, - "loc": { - "start": { - "line": 139, - "column": 14 - }, - "end": { - "line": 139, - "column": 21 - } - }, - "extra": { - "rawValue": "/user", - "raw": "'/user'" - }, - "value": "/user" - } - }, - { - "type": "ObjectProperty", - "start": 4351, - "end": 4420, - "loc": { - "start": { - "line": 140, - "column": 8 - }, - "end": { - "line": 143, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4351, - "end": 4364, - "loc": { - "start": { - "line": 140, - "column": 8 - }, - "end": { - "line": 140, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 4366, - "end": 4420, - "loc": { - "start": { - "line": 140, - "column": 23 - }, - "end": { - "line": 143, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 4378, - "end": 4392, - "loc": { - "start": { - "line": 141, - "column": 10 - }, - "end": { - "line": 141, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4378, - "end": 4382, - "loc": { - "start": { - "line": 141, - "column": 10 - }, - "end": { - "line": 141, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 4384, - "end": 4392, - "loc": { - "start": { - "line": 141, - "column": 16 - }, - "end": { - "line": 141, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 4404, - "end": 4409, - "loc": { - "start": { - "line": 142, - "column": 10 - }, - "end": { - "line": 142, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 4404, - "end": 4409, - "loc": { - "start": { - "line": 142, - "column": 10 - }, - "end": { - "line": 142, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 4404, - "end": 4409, - "loc": { - "start": { - "line": 142, - "column": 10 - }, - "end": { - "line": 142, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 4432, - "end": 4457, - "loc": { - "start": { - "line": 144, - "column": 10 - }, - "end": { - "line": 144, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 4432, - "end": 4447, - "loc": { - "start": { - "line": 144, - "column": 10 - }, - "end": { - "line": 144, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 4448, - "end": 4456, - "loc": { - "start": { - "line": 144, - "column": 26 - }, - "end": { - "line": 144, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 4466, - "end": 4468, - "loc": { - "start": { - "line": 145, - "column": 7 - }, - "end": { - "line": 145, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 4469, - "end": 4476, - "loc": { - "start": { - "line": 145, - "column": 10 - }, - "end": { - "line": 145, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 4478, - "end": 4500, - "loc": { - "start": { - "line": 145, - "column": 19 - }, - "end": { - "line": 145, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 4478, - "end": 4490, - "loc": { - "start": { - "line": 145, - "column": 19 - }, - "end": { - "line": 145, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 4491, - "end": 4499, - "loc": { - "start": { - "line": 145, - "column": 32 - }, - "end": { - "line": 145, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 4509, - "end": 4512, - "loc": { - "start": { - "line": 146, - "column": 7 - }, - "end": { - "line": 146, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Get user payload\n * @typedef {Object} UserGetParams\n * @property {string} token - your auth token\n ", - "start": 2616, - "end": 2732, - "loc": { - "start": { - "line": 102, - "column": 2 - }, - "end": { - "line": 106, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieve user response data\n * @typedef {Object} UserGetResponse\n * @property {string} id - user unique id\n * @property {string} first_name - first name\n * @property {string} last_name - last name\n * @property {number} active - user is active or not\n * @property {string} created - user creation timestamp\n * @property {string[]} emails - user emails\n * @property {string} primary_email - user primary email\n * @property {Object[]} subscriptions - user subscriptions data\n * @property {?Object} cloud_export_account_details - cloud export account details data\n * @property {boolean} is_logged_in - user is logged in or not\n * @property {{start_date: string, end_date: string, start_timestamp: number, end_timestamp: number}} billing_period - user billing period data\n * @property {Object[]} companies - companies where user is a member of\n * @property {?string} registration_source - resource where user was registered\n * @property {Object[]} teams - teams where user is a member of\n * @property {Object} settings - user specific settings\n * @property {Object[]} organization_settings - organization specific settings where user is a member of\n * @property {Object[]} merchant_accounts - merchant accounts data\n ", - "start": 2736, - "end": 3997, - "loc": { - "start": { - "line": 108, - "column": 2 - }, - "end": { - "line": 128, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieve user account details\n * @param {UserGetParams} data - get user payload\n * @param {function(err: ApiErrorResponse, res: UserGetResponse)} [callback] - error first node.js callback\n ", - "start": 4001, - "end": 4207, - "loc": { - "start": { - "line": 130, - "column": 2 - }, - "end": { - "line": 134, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Verify user email payload\n * @typedef {Object} UserVerifyEmailParams\n * @property {string} email - email to verify\n ", - "start": 4523, - "end": 4656, - "loc": { - "start": { - "line": 149, - "column": 2 - }, - "end": { - "line": 153, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Verify user email response data\n * @typedef {Object} UserVerifyEmailResponse\n * @property {string} status - status of verification email sending, e.g. 'success'\n ", - "start": 4660, - "end": 4839, - "loc": { - "start": { - "line": 155, - "column": 2 - }, - "end": { - "line": 159, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Sends email with verification link to user\n * @param {UserVerifyEmailParams} data - user verify email payload\n * @param {function(err: ApiErrorResponse, res: UserVerifyEmailResponse)} [callback] - error first node.js callback\n ", - "start": 4843, - "end": 5087, - "loc": { - "start": { - "line": 161, - "column": 2 - }, - "end": { - "line": 165, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 5090, - "end": 5599, - "loc": { - "start": { - "line": 166, - "column": 2 - }, - "end": { - "line": 182, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5097, - "end": 5108, - "loc": { - "start": { - "line": 166, - "column": 9 - }, - "end": { - "line": 166, - "column": 20 - }, - "identifierName": "verifyEmail" - }, - "name": "verifyEmail" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 5110, - "end": 5119, - "loc": { - "start": { - "line": 166, - "column": 22 - }, - "end": { - "line": 166, - "column": 31 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5112, - "end": 5117, - "loc": { - "start": { - "line": 166, - "column": 24 - }, - "end": { - "line": 166, - "column": 29 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5112, - "end": 5117, - "loc": { - "start": { - "line": 166, - "column": 24 - }, - "end": { - "line": 166, - "column": 29 - }, - "identifierName": "email" - }, - "name": "email" - }, - "value": { - "type": "Identifier", - "start": 5112, - "end": 5117, - "loc": { - "start": { - "line": 166, - "column": 24 - }, - "end": { - "line": 166, - "column": 29 - }, - "identifierName": "email" - }, - "name": "email" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 5121, - "end": 5129, - "loc": { - "start": { - "line": 166, - "column": 33 - }, - "end": { - "line": 166, - "column": 41 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 5131, - "end": 5599, - "loc": { - "start": { - "line": 166, - "column": 43 - }, - "end": { - "line": 182, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 5137, - "end": 5180, - "loc": { - "start": { - "line": 167, - "column": 4 - }, - "end": { - "line": 167, - "column": 47 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 5143, - "end": 5179, - "loc": { - "start": { - "line": 167, - "column": 10 - }, - "end": { - "line": 167, - "column": 46 - } - }, - "id": { - "type": "Identifier", - "start": 5143, - "end": 5151, - "loc": { - "start": { - "line": 167, - "column": 10 - }, - "end": { - "line": 167, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 5154, - "end": 5179, - "loc": { - "start": { - "line": 167, - "column": 21 - }, - "end": { - "line": 167, - "column": 46 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5154, - "end": 5168, - "loc": { - "start": { - "line": 167, - "column": 21 - }, - "end": { - "line": 167, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 5154, - "end": 5158, - "loc": { - "start": { - "line": 167, - "column": 21 - }, - "end": { - "line": 167, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 5159, - "end": 5168, - "loc": { - "start": { - "line": 167, - "column": 26 - }, - "end": { - "line": 167, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 5169, - "end": 5178, - "loc": { - "start": { - "line": 167, - "column": 36 - }, - "end": { - "line": 167, - "column": 45 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5171, - "end": 5176, - "loc": { - "start": { - "line": 167, - "column": 38 - }, - "end": { - "line": 167, - "column": 43 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 5171, - "end": 5176, - "loc": { - "start": { - "line": 167, - "column": 38 - }, - "end": { - "line": 167, - "column": 43 - }, - "identifierName": "email" - }, - "name": "email" - }, - "value": { - "type": "Identifier", - "start": 5171, - "end": 5176, - "loc": { - "start": { - "line": 167, - "column": 38 - }, - "end": { - "line": 167, - "column": 43 - }, - "identifierName": "email" - }, - "name": "email" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 5185, - "end": 5554, - "loc": { - "start": { - "line": 168, - "column": 4 - }, - "end": { - "line": 178, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 5191, - "end": 5553, - "loc": { - "start": { - "line": 168, - "column": 10 - }, - "end": { - "line": 178, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 5191, - "end": 5194, - "loc": { - "start": { - "line": 168, - "column": 10 - }, - "end": { - "line": 168, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 5197, - "end": 5553, - "loc": { - "start": { - "line": 168, - "column": 16 - }, - "end": { - "line": 178, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5197, - "end": 5520, - "loc": { - "start": { - "line": 168, - "column": 16 - }, - "end": { - "line": 178, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 5197, - "end": 5510, - "loc": { - "start": { - "line": 168, - "column": 16 - }, - "end": { - "line": 177, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5197, - "end": 5217, - "loc": { - "start": { - "line": 168, - "column": 16 - }, - "end": { - "line": 169, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 5197, - "end": 5202, - "loc": { - "start": { - "line": 168, - "column": 16 - }, - "end": { - "line": 168, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 5210, - "end": 5217, - "loc": { - "start": { - "line": 169, - "column": 7 - }, - "end": { - "line": 169, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 5218, - "end": 5482, - "loc": { - "start": { - "line": 169, - "column": 15 - }, - "end": { - "line": 177, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 5218, - "end": 5237, - "loc": { - "start": { - "line": 169, - "column": 15 - }, - "end": { - "line": 169, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 5238, - "end": 5481, - "loc": { - "start": { - "line": 169, - "column": 35 - }, - "end": { - "line": 177, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5248, - "end": 5262, - "loc": { - "start": { - "line": 170, - "column": 8 - }, - "end": { - "line": 170, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5248, - "end": 5254, - "loc": { - "start": { - "line": 170, - "column": 8 - }, - "end": { - "line": 170, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 5256, - "end": 5262, - "loc": { - "start": { - "line": 170, - "column": 16 - }, - "end": { - "line": 170, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 5272, - "end": 5297, - "loc": { - "start": { - "line": 171, - "column": 8 - }, - "end": { - "line": 171, - "column": 33 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5272, - "end": 5276, - "loc": { - "start": { - "line": 171, - "column": 8 - }, - "end": { - "line": 171, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 5278, - "end": 5297, - "loc": { - "start": { - "line": 171, - "column": 14 - }, - "end": { - "line": 171, - "column": 33 - } - }, - "extra": { - "rawValue": "/user/verifyemail", - "raw": "'/user/verifyemail'" - }, - "value": "/user/verifyemail" - } - }, - { - "type": "ObjectProperty", - "start": 5307, - "end": 5339, - "loc": { - "start": { - "line": 172, - "column": 8 - }, - "end": { - "line": 172, - "column": 40 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5307, - "end": 5320, - "loc": { - "start": { - "line": 172, - "column": 8 - }, - "end": { - "line": 172, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 5322, - "end": 5339, - "loc": { - "start": { - "line": 172, - "column": 23 - }, - "end": { - "line": 172, - "column": 40 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5324, - "end": 5337, - "loc": { - "start": { - "line": 172, - "column": 25 - }, - "end": { - "line": 172, - "column": 38 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5324, - "end": 5328, - "loc": { - "start": { - "line": 172, - "column": 25 - }, - "end": { - "line": 172, - "column": 29 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 5330, - "end": 5337, - "loc": { - "start": { - "line": 172, - "column": 31 - }, - "end": { - "line": 172, - "column": 38 - } - }, - "extra": { - "rawValue": "Basic", - "raw": "'Basic'" - }, - "value": "Basic" - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 5349, - "end": 5472, - "loc": { - "start": { - "line": 173, - "column": 8 - }, - "end": { - "line": 176, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5349, - "end": 5356, - "loc": { - "start": { - "line": 173, - "column": 8 - }, - "end": { - "line": 173, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 5358, - "end": 5472, - "loc": { - "start": { - "line": 173, - "column": 17 - }, - "end": { - "line": 176, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5370, - "end": 5404, - "loc": { - "start": { - "line": 174, - "column": 10 - }, - "end": { - "line": 174, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 5370, - "end": 5384, - "loc": { - "start": { - "line": 174, - "column": 10 - }, - "end": { - "line": 174, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 5386, - "end": 5404, - "loc": { - "start": { - "line": 174, - "column": 26 - }, - "end": { - "line": 174, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 5416, - "end": 5461, - "loc": { - "start": { - "line": 175, - "column": 10 - }, - "end": { - "line": 175, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 5416, - "end": 5432, - "loc": { - "start": { - "line": 175, - "column": 10 - }, - "end": { - "line": 175, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 5434, - "end": 5461, - "loc": { - "start": { - "line": 175, - "column": 28 - }, - "end": { - "line": 175, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5434, - "end": 5451, - "loc": { - "start": { - "line": 175, - "column": 28 - }, - "end": { - "line": 175, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 5434, - "end": 5440, - "loc": { - "start": { - "line": 175, - "column": 28 - }, - "end": { - "line": 175, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 5441, - "end": 5451, - "loc": { - "start": { - "line": 175, - "column": 35 - }, - "end": { - "line": 175, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 5452, - "end": 5460, - "loc": { - "start": { - "line": 175, - "column": 46 - }, - "end": { - "line": 175, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 5484, - "end": 5509, - "loc": { - "start": { - "line": 177, - "column": 10 - }, - "end": { - "line": 177, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 5484, - "end": 5499, - "loc": { - "start": { - "line": 177, - "column": 10 - }, - "end": { - "line": 177, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 5500, - "end": 5508, - "loc": { - "start": { - "line": 177, - "column": 26 - }, - "end": { - "line": 177, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 5518, - "end": 5520, - "loc": { - "start": { - "line": 178, - "column": 7 - }, - "end": { - "line": 178, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 5521, - "end": 5528, - "loc": { - "start": { - "line": 178, - "column": 10 - }, - "end": { - "line": 178, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 5530, - "end": 5552, - "loc": { - "start": { - "line": 178, - "column": 19 - }, - "end": { - "line": 178, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 5530, - "end": 5542, - "loc": { - "start": { - "line": 178, - "column": 19 - }, - "end": { - "line": 178, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 5543, - "end": 5551, - "loc": { - "start": { - "line": 178, - "column": 32 - }, - "end": { - "line": 178, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 5560, - "end": 5580, - "loc": { - "start": { - "line": 180, - "column": 4 - }, - "end": { - "line": 180, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 5560, - "end": 5579, - "loc": { - "start": { - "line": 180, - "column": 4 - }, - "end": { - "line": 180, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5560, - "end": 5569, - "loc": { - "start": { - "line": 180, - "column": 4 - }, - "end": { - "line": 180, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 5560, - "end": 5563, - "loc": { - "start": { - "line": 180, - "column": 4 - }, - "end": { - "line": 180, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 5564, - "end": 5569, - "loc": { - "start": { - "line": 180, - "column": 8 - }, - "end": { - "line": 180, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 5570, - "end": 5578, - "loc": { - "start": { - "line": 180, - "column": 14 - }, - "end": { - "line": 180, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 5585, - "end": 5595, - "loc": { - "start": { - "line": 181, - "column": 4 - }, - "end": { - "line": 181, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 5585, - "end": 5594, - "loc": { - "start": { - "line": 181, - "column": 4 - }, - "end": { - "line": 181, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5585, - "end": 5592, - "loc": { - "start": { - "line": 181, - "column": 4 - }, - "end": { - "line": 181, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 5585, - "end": 5588, - "loc": { - "start": { - "line": 181, - "column": 4 - }, - "end": { - "line": 181, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 5589, - "end": 5592, - "loc": { - "start": { - "line": 181, - "column": 8 - }, - "end": { - "line": 181, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Verify user email payload\n * @typedef {Object} UserVerifyEmailParams\n * @property {string} email - email to verify\n ", - "start": 4523, - "end": 4656, - "loc": { - "start": { - "line": 149, - "column": 2 - }, - "end": { - "line": 153, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Verify user email response data\n * @typedef {Object} UserVerifyEmailResponse\n * @property {string} status - status of verification email sending, e.g. 'success'\n ", - "start": 4660, - "end": 4839, - "loc": { - "start": { - "line": 155, - "column": 2 - }, - "end": { - "line": 159, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Sends email with verification link to user\n * @param {UserVerifyEmailParams} data - user verify email payload\n * @param {function(err: ApiErrorResponse, res: UserVerifyEmailResponse)} [callback] - error first node.js callback\n ", - "start": 4843, - "end": 5087, - "loc": { - "start": { - "line": 161, - "column": 2 - }, - "end": { - "line": 165, - "column": 5 - } - } - } - ] - } - ] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * User methods\n ", - "start": 129, - "end": 152, - "loc": { - "start": { - "line": 9, - "column": 0 - }, - "end": { - "line": 11, - "column": 3 - } - } - } - ], - "__PseudoExport__": false, - "trailingComments": [] - }, - "leadingComments": null - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "value": "use strict", - "extra": { - "raw": "'use strict'", - "rawValue": "use strict" - } - } - } - ] - }, - "comments": [ - { - "type": "CommentBlock", - "value": "*\n * User methods\n ", - "start": 129, - "end": 152, - "loc": { - "start": { - "line": 9, - "column": 0 - }, - "end": { - "line": 11, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create User optional settings\n * @typedef {Object} CreateUserOptions\n * @property {boolean} [verifyEmail=false] - if `true` verification email will be sent\n * @property {number} [startTrial=false] - if `true` start 30 days free trial\n ", - "start": 169, - "end": 423, - "loc": { - "start": { - "line": 14, - "column": 2 - }, - "end": { - "line": 19, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create user payload\n * @typedef {Object} UserCreateParams\n * @property {string} email - email of new user\n * @property {string} password - password for new user\n * @property {string} [first_name] - first name of new user\n * @property {string} [last_name] - last name of new user\n * @property {string} [number] - phone number of new user\n * @property {CreateUserOptions} [options] - create user optional settings\n ", - "start": 427, - "end": 867, - "loc": { - "start": { - "line": 21, - "column": 2 - }, - "end": { - "line": 30, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create user response data\n * @typedef {Object} UserCreateResponse\n * @property {string} id - user unique id\n * @property {number} verified - user is verified or not\n * @property {string} email - user email\n ", - "start": 871, - "end": 1099, - "loc": { - "start": { - "line": 32, - "column": 2 - }, - "end": { - "line": 38, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create new user account\n * @param {UserCreateParams} data - create user payload\n * @param {function(err: ApiErrorResponse, res: UserCreateResponse)} [originalCallback] - error first node.js callback\n ", - "start": 1103, - "end": 1320, - "loc": { - "start": { - "line": 40, - "column": 2 - }, - "end": { - "line": 44, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Get user payload\n * @typedef {Object} UserGetParams\n * @property {string} token - your auth token\n ", - "start": 2616, - "end": 2732, - "loc": { - "start": { - "line": 102, - "column": 2 - }, - "end": { - "line": 106, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieve user response data\n * @typedef {Object} UserGetResponse\n * @property {string} id - user unique id\n * @property {string} first_name - first name\n * @property {string} last_name - last name\n * @property {number} active - user is active or not\n * @property {string} created - user creation timestamp\n * @property {string[]} emails - user emails\n * @property {string} primary_email - user primary email\n * @property {Object[]} subscriptions - user subscriptions data\n * @property {?Object} cloud_export_account_details - cloud export account details data\n * @property {boolean} is_logged_in - user is logged in or not\n * @property {{start_date: string, end_date: string, start_timestamp: number, end_timestamp: number}} billing_period - user billing period data\n * @property {Object[]} companies - companies where user is a member of\n * @property {?string} registration_source - resource where user was registered\n * @property {Object[]} teams - teams where user is a member of\n * @property {Object} settings - user specific settings\n * @property {Object[]} organization_settings - organization specific settings where user is a member of\n * @property {Object[]} merchant_accounts - merchant accounts data\n ", - "start": 2736, - "end": 3997, - "loc": { - "start": { - "line": 108, - "column": 2 - }, - "end": { - "line": 128, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieve user account details\n * @param {UserGetParams} data - get user payload\n * @param {function(err: ApiErrorResponse, res: UserGetResponse)} [callback] - error first node.js callback\n ", - "start": 4001, - "end": 4207, - "loc": { - "start": { - "line": 130, - "column": 2 - }, - "end": { - "line": 134, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Verify user email payload\n * @typedef {Object} UserVerifyEmailParams\n * @property {string} email - email to verify\n ", - "start": 4523, - "end": 4656, - "loc": { - "start": { - "line": 149, - "column": 2 - }, - "end": { - "line": 153, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Verify user email response data\n * @typedef {Object} UserVerifyEmailResponse\n * @property {string} status - status of verification email sending, e.g. 'success'\n ", - "start": 4660, - "end": 4839, - "loc": { - "start": { - "line": 155, - "column": 2 - }, - "end": { - "line": 159, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Sends email with verification link to user\n * @param {UserVerifyEmailParams} data - user verify email payload\n * @param {function(err: ApiErrorResponse, res: UserVerifyEmailResponse)} [callback] - error first node.js callback\n ", - "start": 4843, - "end": 5087, - "loc": { - "start": { - "line": 161, - "column": 2 - }, - "end": { - "line": 165, - "column": 5 - } - } - } - ], - "tokens": [ - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "use strict", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 12 - }, - "end": { - "line": 1, - "column": 13 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 14, - "end": 20, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 27, - "end": 31, - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 17 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "https", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 18 - }, - "end": { - "line": 2, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39, - "end": 40, - "loc": { - "start": { - "line": 2, - "column": 25 - }, - "end": { - "line": 2, - "column": 26 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 41, - "end": 47, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 48, - "end": 49, - "loc": { - "start": { - "line": 3, - "column": 7 - }, - "end": { - "line": 3, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 67, - "end": 68, - "loc": { - "start": { - "line": 4, - "column": 17 - }, - "end": { - "line": 4, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 71, - "end": 83, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 14 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 83, - "end": 84, - "loc": { - "start": { - "line": 5, - "column": 14 - }, - "end": { - "line": 5, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 87, - "end": 106, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 106, - "end": 107, - "loc": { - "start": { - "line": 6, - "column": 21 - }, - "end": { - "line": 6, - "column": 22 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 108, - "end": 109, - "loc": { - "start": { - "line": 7, - "column": 0 - }, - "end": { - "line": 7, - "column": 1 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 110, - "end": 114, - "loc": { - "start": { - "line": 7, - "column": 2 - }, - "end": { - "line": 7, - "column": 6 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "../common", - "start": 115, - "end": 126, - "loc": { - "start": { - "line": 7, - "column": 7 - }, - "end": { - "line": 7, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 126, - "end": 127, - "loc": { - "start": { - "line": 7, - "column": 18 - }, - "end": { - "line": 7, - "column": 19 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * User methods\n ", - "start": 129, - "end": 152, - "loc": { - "start": { - "line": 9, - "column": 0 - }, - "end": { - "line": 11, - "column": 3 - } - } - }, - { - "type": { - "label": "class", - "keyword": "class", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "class", - "start": 153, - "end": 158, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 12, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "User", - "start": 159, - "end": 163, - "loc": { - "start": { - "line": 12, - "column": 6 - }, - "end": { - "line": 12, - "column": 10 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 164, - "end": 165, - "loc": { - "start": { - "line": 12, - "column": 11 - }, - "end": { - "line": 12, - "column": 12 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create User optional settings\n * @typedef {Object} CreateUserOptions\n * @property {boolean} [verifyEmail=false] - if `true` verification email will be sent\n * @property {number} [startTrial=false] - if `true` start 30 days free trial\n ", - "start": 169, - "end": 423, - "loc": { - "start": { - "line": 14, - "column": 2 - }, - "end": { - "line": 19, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create user payload\n * @typedef {Object} UserCreateParams\n * @property {string} email - email of new user\n * @property {string} password - password for new user\n * @property {string} [first_name] - first name of new user\n * @property {string} [last_name] - last name of new user\n * @property {string} [number] - phone number of new user\n * @property {CreateUserOptions} [options] - create user optional settings\n ", - "start": 427, - "end": 867, - "loc": { - "start": { - "line": 21, - "column": 2 - }, - "end": { - "line": 30, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create user response data\n * @typedef {Object} UserCreateResponse\n * @property {string} id - user unique id\n * @property {number} verified - user is verified or not\n * @property {string} email - user email\n ", - "start": 871, - "end": 1099, - "loc": { - "start": { - "line": 32, - "column": 2 - }, - "end": { - "line": 38, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Create new user account\n * @param {UserCreateParams} data - create user payload\n * @param {function(err: ApiErrorResponse, res: UserCreateResponse)} [originalCallback] - error first node.js callback\n ", - "start": 1103, - "end": 1320, - "loc": { - "start": { - "line": 40, - "column": 2 - }, - "end": { - "line": 44, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 1323, - "end": 1329, - "loc": { - "start": { - "line": 45, - "column": 2 - }, - "end": { - "line": 45, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "create", - "start": 1330, - "end": 1336, - "loc": { - "start": { - "line": 45, - "column": 9 - }, - "end": { - "line": 45, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1337, - "end": 1338, - "loc": { - "start": { - "line": 45, - "column": 16 - }, - "end": { - "line": 45, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1338, - "end": 1339, - "loc": { - "start": { - "line": 45, - "column": 17 - }, - "end": { - "line": 45, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "email", - "start": 1344, - "end": 1349, - "loc": { - "start": { - "line": 46, - "column": 4 - }, - "end": { - "line": 46, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1349, - "end": 1350, - "loc": { - "start": { - "line": 46, - "column": 9 - }, - "end": { - "line": 46, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "password", - "start": 1355, - "end": 1363, - "loc": { - "start": { - "line": 47, - "column": 4 - }, - "end": { - "line": 47, - "column": 12 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1363, - "end": 1364, - "loc": { - "start": { - "line": 47, - "column": 12 - }, - "end": { - "line": 47, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "first_name", - "start": 1369, - "end": 1379, - "loc": { - "start": { - "line": 48, - "column": 4 - }, - "end": { - "line": 48, - "column": 14 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1379, - "end": 1380, - "loc": { - "start": { - "line": 48, - "column": 14 - }, - "end": { - "line": 48, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "last_name", - "start": 1385, - "end": 1394, - "loc": { - "start": { - "line": 49, - "column": 4 - }, - "end": { - "line": 49, - "column": 13 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1394, - "end": 1395, - "loc": { - "start": { - "line": 49, - "column": 13 - }, - "end": { - "line": 49, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "number", - "start": 1400, - "end": 1406, - "loc": { - "start": { - "line": 50, - "column": 4 - }, - "end": { - "line": 50, - "column": 10 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1406, - "end": 1407, - "loc": { - "start": { - "line": 50, - "column": 10 - }, - "end": { - "line": 50, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "options", - "start": 1412, - "end": 1419, - "loc": { - "start": { - "line": 51, - "column": 4 - }, - "end": { - "line": 51, - "column": 11 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1419, - "end": 1420, - "loc": { - "start": { - "line": 51, - "column": 11 - }, - "end": { - "line": 51, - "column": 12 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1421, - "end": 1422, - "loc": { - "start": { - "line": 51, - "column": 13 - }, - "end": { - "line": 51, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "verifyEmail", - "start": 1429, - "end": 1440, - "loc": { - "start": { - "line": 52, - "column": 6 - }, - "end": { - "line": 52, - "column": 17 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1441, - "end": 1442, - "loc": { - "start": { - "line": 52, - "column": 18 - }, - "end": { - "line": 52, - "column": 19 - } - } - }, - { - "type": { - "label": "false", - "keyword": "false", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "false", - "start": 1443, - "end": 1448, - "loc": { - "start": { - "line": 52, - "column": 20 - }, - "end": { - "line": 52, - "column": 25 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1448, - "end": 1449, - "loc": { - "start": { - "line": 52, - "column": 25 - }, - "end": { - "line": 52, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "startTrial", - "start": 1456, - "end": 1466, - "loc": { - "start": { - "line": 53, - "column": 6 - }, - "end": { - "line": 53, - "column": 16 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1467, - "end": 1468, - "loc": { - "start": { - "line": 53, - "column": 17 - }, - "end": { - "line": 53, - "column": 18 - } - } - }, - { - "type": { - "label": "false", - "keyword": "false", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "false", - "start": 1469, - "end": 1474, - "loc": { - "start": { - "line": 53, - "column": 19 - }, - "end": { - "line": 53, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1474, - "end": 1475, - "loc": { - "start": { - "line": 53, - "column": 24 - }, - "end": { - "line": 53, - "column": 25 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1480, - "end": 1481, - "loc": { - "start": { - "line": 54, - "column": 4 - }, - "end": { - "line": 54, - "column": 5 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1482, - "end": 1483, - "loc": { - "start": { - "line": 54, - "column": 6 - }, - "end": { - "line": 54, - "column": 7 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1484, - "end": 1485, - "loc": { - "start": { - "line": 54, - "column": 8 - }, - "end": { - "line": 54, - "column": 9 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1485, - "end": 1486, - "loc": { - "start": { - "line": 54, - "column": 9 - }, - "end": { - "line": 54, - "column": 10 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1486, - "end": 1487, - "loc": { - "start": { - "line": 54, - "column": 10 - }, - "end": { - "line": 54, - "column": 11 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1490, - "end": 1491, - "loc": { - "start": { - "line": 55, - "column": 2 - }, - "end": { - "line": 55, - "column": 3 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1491, - "end": 1492, - "loc": { - "start": { - "line": 55, - "column": 3 - }, - "end": { - "line": 55, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "originalCallback", - "start": 1493, - "end": 1509, - "loc": { - "start": { - "line": 55, - "column": 5 - }, - "end": { - "line": 55, - "column": 21 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1509, - "end": 1510, - "loc": { - "start": { - "line": 55, - "column": 21 - }, - "end": { - "line": 55, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1511, - "end": 1512, - "loc": { - "start": { - "line": 55, - "column": 23 - }, - "end": { - "line": 55, - "column": 24 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1517, - "end": 1522, - "loc": { - "start": { - "line": 56, - "column": 4 - }, - "end": { - "line": 56, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 1523, - "end": 1531, - "loc": { - "start": { - "line": 56, - "column": 10 - }, - "end": { - "line": 56, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1532, - "end": 1533, - "loc": { - "start": { - "line": 56, - "column": 19 - }, - "end": { - "line": 56, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSON", - "start": 1534, - "end": 1538, - "loc": { - "start": { - "line": 56, - "column": 21 - }, - "end": { - "line": 56, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1538, - "end": 1539, - "loc": { - "start": { - "line": 56, - "column": 25 - }, - "end": { - "line": 56, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "stringify", - "start": 1539, - "end": 1548, - "loc": { - "start": { - "line": 56, - "column": 26 - }, - "end": { - "line": 56, - "column": 35 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1548, - "end": 1549, - "loc": { - "start": { - "line": 56, - "column": 35 - }, - "end": { - "line": 56, - "column": 36 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1549, - "end": 1550, - "loc": { - "start": { - "line": 56, - "column": 36 - }, - "end": { - "line": 56, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "skip_30day_trial", - "start": 1557, - "end": 1573, - "loc": { - "start": { - "line": 57, - "column": 6 - }, - "end": { - "line": 57, - "column": 22 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1573, - "end": 1574, - "loc": { - "start": { - "line": 57, - "column": 22 - }, - "end": { - "line": 57, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "startTrial", - "start": 1575, - "end": 1585, - "loc": { - "start": { - "line": 57, - "column": 24 - }, - "end": { - "line": 57, - "column": 34 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1586, - "end": 1587, - "loc": { - "start": { - "line": 57, - "column": 35 - }, - "end": { - "line": 57, - "column": 36 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 1588, - "end": 1589, - "loc": { - "start": { - "line": 57, - "column": 37 - }, - "end": { - "line": 57, - "column": 38 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1590, - "end": 1591, - "loc": { - "start": { - "line": 57, - "column": 39 - }, - "end": { - "line": 57, - "column": 40 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 1592, - "end": 1593, - "loc": { - "start": { - "line": 57, - "column": 41 - }, - "end": { - "line": 57, - "column": 42 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1593, - "end": 1594, - "loc": { - "start": { - "line": 57, - "column": 42 - }, - "end": { - "line": 57, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "email", - "start": 1601, - "end": 1606, - "loc": { - "start": { - "line": 58, - "column": 6 - }, - "end": { - "line": 58, - "column": 11 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1606, - "end": 1607, - "loc": { - "start": { - "line": 58, - "column": 11 - }, - "end": { - "line": 58, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "password", - "start": 1614, - "end": 1622, - "loc": { - "start": { - "line": 59, - "column": 6 - }, - "end": { - "line": 59, - "column": 14 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1622, - "end": 1623, - "loc": { - "start": { - "line": 59, - "column": 14 - }, - "end": { - "line": 59, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "first_name", - "start": 1630, - "end": 1640, - "loc": { - "start": { - "line": 60, - "column": 6 - }, - "end": { - "line": 60, - "column": 16 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1640, - "end": 1641, - "loc": { - "start": { - "line": 60, - "column": 16 - }, - "end": { - "line": 60, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "last_name", - "start": 1648, - "end": 1657, - "loc": { - "start": { - "line": 61, - "column": 6 - }, - "end": { - "line": 61, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1657, - "end": 1658, - "loc": { - "start": { - "line": 61, - "column": 15 - }, - "end": { - "line": 61, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "number", - "start": 1665, - "end": 1671, - "loc": { - "start": { - "line": 62, - "column": 6 - }, - "end": { - "line": 62, - "column": 12 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1671, - "end": 1672, - "loc": { - "start": { - "line": 62, - "column": 12 - }, - "end": { - "line": 62, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1677, - "end": 1678, - "loc": { - "start": { - "line": 63, - "column": 4 - }, - "end": { - "line": 63, - "column": 5 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1678, - "end": 1679, - "loc": { - "start": { - "line": 63, - "column": 5 - }, - "end": { - "line": 63, - "column": 6 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1679, - "end": 1680, - "loc": { - "start": { - "line": 63, - "column": 6 - }, - "end": { - "line": 63, - "column": 7 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1686, - "end": 1691, - "loc": { - "start": { - "line": 65, - "column": 4 - }, - "end": { - "line": 65, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callbackWithEmailVerification", - "start": 1692, - "end": 1721, - "loc": { - "start": { - "line": 65, - "column": 10 - }, - "end": { - "line": 65, - "column": 39 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1722, - "end": 1723, - "loc": { - "start": { - "line": 65, - "column": 40 - }, - "end": { - "line": 65, - "column": 41 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1724, - "end": 1725, - "loc": { - "start": { - "line": 65, - "column": 42 - }, - "end": { - "line": 65, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "createErr", - "start": 1725, - "end": 1734, - "loc": { - "start": { - "line": 65, - "column": 43 - }, - "end": { - "line": 65, - "column": 52 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1734, - "end": 1735, - "loc": { - "start": { - "line": 65, - "column": 52 - }, - "end": { - "line": 65, - "column": 53 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "createRes", - "start": 1736, - "end": 1745, - "loc": { - "start": { - "line": 65, - "column": 54 - }, - "end": { - "line": 65, - "column": 63 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1745, - "end": 1746, - "loc": { - "start": { - "line": 65, - "column": 63 - }, - "end": { - "line": 65, - "column": 64 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1747, - "end": 1749, - "loc": { - "start": { - "line": 65, - "column": 65 - }, - "end": { - "line": 65, - "column": 67 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1750, - "end": 1751, - "loc": { - "start": { - "line": 65, - "column": 68 - }, - "end": { - "line": 65, - "column": 69 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 1758, - "end": 1760, - "loc": { - "start": { - "line": 66, - "column": 6 - }, - "end": { - "line": 66, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1761, - "end": 1762, - "loc": { - "start": { - "line": 66, - "column": 9 - }, - "end": { - "line": 66, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "createErr", - "start": 1762, - "end": 1771, - "loc": { - "start": { - "line": 66, - "column": 10 - }, - "end": { - "line": 66, - "column": 19 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1771, - "end": 1772, - "loc": { - "start": { - "line": 66, - "column": 19 - }, - "end": { - "line": 66, - "column": 20 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1773, - "end": 1774, - "loc": { - "start": { - "line": 66, - "column": 21 - }, - "end": { - "line": 66, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "originalCallback", - "start": 1783, - "end": 1799, - "loc": { - "start": { - "line": 67, - "column": 8 - }, - "end": { - "line": 67, - "column": 24 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1799, - "end": 1800, - "loc": { - "start": { - "line": 67, - "column": 24 - }, - "end": { - "line": 67, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "createErr", - "start": 1800, - "end": 1809, - "loc": { - "start": { - "line": 67, - "column": 25 - }, - "end": { - "line": 67, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1809, - "end": 1810, - "loc": { - "start": { - "line": 67, - "column": 34 - }, - "end": { - "line": 67, - "column": 35 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1810, - "end": 1811, - "loc": { - "start": { - "line": 67, - "column": 35 - }, - "end": { - "line": 67, - "column": 36 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 1820, - "end": 1826, - "loc": { - "start": { - "line": 68, - "column": 8 - }, - "end": { - "line": 68, - "column": 14 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1826, - "end": 1827, - "loc": { - "start": { - "line": 68, - "column": 14 - }, - "end": { - "line": 68, - "column": 15 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1834, - "end": 1835, - "loc": { - "start": { - "line": 69, - "column": 6 - }, - "end": { - "line": 69, - "column": 7 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 1836, - "end": 1840, - "loc": { - "start": { - "line": 69, - "column": 8 - }, - "end": { - "line": 69, - "column": 12 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1841, - "end": 1842, - "loc": { - "start": { - "line": 69, - "column": 13 - }, - "end": { - "line": 69, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "User", - "start": 1851, - "end": 1855, - "loc": { - "start": { - "line": 70, - "column": 8 - }, - "end": { - "line": 70, - "column": 12 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1855, - "end": 1856, - "loc": { - "start": { - "line": 70, - "column": 12 - }, - "end": { - "line": 70, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "verifyEmail", - "start": 1856, - "end": 1867, - "loc": { - "start": { - "line": 70, - "column": 13 - }, - "end": { - "line": 70, - "column": 24 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1867, - "end": 1868, - "loc": { - "start": { - "line": 70, - "column": 24 - }, - "end": { - "line": 70, - "column": 25 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1868, - "end": 1869, - "loc": { - "start": { - "line": 70, - "column": 25 - }, - "end": { - "line": 70, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "email", - "start": 1870, - "end": 1875, - "loc": { - "start": { - "line": 70, - "column": 27 - }, - "end": { - "line": 70, - "column": 32 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1876, - "end": 1877, - "loc": { - "start": { - "line": 70, - "column": 33 - }, - "end": { - "line": 70, - "column": 34 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1877, - "end": 1878, - "loc": { - "start": { - "line": 70, - "column": 34 - }, - "end": { - "line": 70, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "verifyErr", - "start": 1879, - "end": 1888, - "loc": { - "start": { - "line": 70, - "column": 36 - }, - "end": { - "line": 70, - "column": 45 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1889, - "end": 1891, - "loc": { - "start": { - "line": 70, - "column": 46 - }, - "end": { - "line": 70, - "column": 48 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1892, - "end": 1893, - "loc": { - "start": { - "line": 70, - "column": 49 - }, - "end": { - "line": 70, - "column": 50 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 1904, - "end": 1906, - "loc": { - "start": { - "line": 71, - "column": 10 - }, - "end": { - "line": 71, - "column": 12 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1907, - "end": 1908, - "loc": { - "start": { - "line": 71, - "column": 13 - }, - "end": { - "line": 71, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "verifyErr", - "start": 1908, - "end": 1917, - "loc": { - "start": { - "line": 71, - "column": 14 - }, - "end": { - "line": 71, - "column": 23 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1917, - "end": 1918, - "loc": { - "start": { - "line": 71, - "column": 23 - }, - "end": { - "line": 71, - "column": 24 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1919, - "end": 1920, - "loc": { - "start": { - "line": 71, - "column": 25 - }, - "end": { - "line": 71, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "originalCallback", - "start": 1933, - "end": 1949, - "loc": { - "start": { - "line": 72, - "column": 12 - }, - "end": { - "line": 72, - "column": 28 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1949, - "end": 1950, - "loc": { - "start": { - "line": 72, - "column": 28 - }, - "end": { - "line": 72, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "verifyErr", - "start": 1950, - "end": 1959, - "loc": { - "start": { - "line": 72, - "column": 29 - }, - "end": { - "line": 72, - "column": 38 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1959, - "end": 1960, - "loc": { - "start": { - "line": 72, - "column": 38 - }, - "end": { - "line": 72, - "column": 39 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1960, - "end": 1961, - "loc": { - "start": { - "line": 72, - "column": 39 - }, - "end": { - "line": 72, - "column": 40 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 1974, - "end": 1980, - "loc": { - "start": { - "line": 73, - "column": 12 - }, - "end": { - "line": 73, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1980, - "end": 1981, - "loc": { - "start": { - "line": 73, - "column": 18 - }, - "end": { - "line": 73, - "column": 19 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1992, - "end": 1993, - "loc": { - "start": { - "line": 74, - "column": 10 - }, - "end": { - "line": 74, - "column": 11 - } - } - }, - { - "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "else", - "start": 1994, - "end": 1998, - "loc": { - "start": { - "line": 74, - "column": 12 - }, - "end": { - "line": 74, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1999, - "end": 2000, - "loc": { - "start": { - "line": 74, - "column": 17 - }, - "end": { - "line": 74, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "originalCallback", - "start": 2013, - "end": 2029, - "loc": { - "start": { - "line": 75, - "column": 12 - }, - "end": { - "line": 75, - "column": 28 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2029, - "end": 2030, - "loc": { - "start": { - "line": 75, - "column": 28 - }, - "end": { - "line": 75, - "column": 29 - } - } - }, - { - "type": { - "label": "null", - "keyword": "null", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "null", - "start": 2030, - "end": 2034, - "loc": { - "start": { - "line": 75, - "column": 29 - }, - "end": { - "line": 75, - "column": 33 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2034, - "end": 2035, - "loc": { - "start": { - "line": 75, - "column": 33 - }, - "end": { - "line": 75, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "createRes", - "start": 2036, - "end": 2045, - "loc": { - "start": { - "line": 75, - "column": 35 - }, - "end": { - "line": 75, - "column": 44 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2045, - "end": 2046, - "loc": { - "start": { - "line": 75, - "column": 44 - }, - "end": { - "line": 75, - "column": 45 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2046, - "end": 2047, - "loc": { - "start": { - "line": 75, - "column": 45 - }, - "end": { - "line": 75, - "column": 46 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 2060, - "end": 2066, - "loc": { - "start": { - "line": 76, - "column": 12 - }, - "end": { - "line": 76, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2066, - "end": 2067, - "loc": { - "start": { - "line": 76, - "column": 18 - }, - "end": { - "line": 76, - "column": 19 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2078, - "end": 2079, - "loc": { - "start": { - "line": 77, - "column": 10 - }, - "end": { - "line": 77, - "column": 11 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2088, - "end": 2089, - "loc": { - "start": { - "line": 78, - "column": 8 - }, - "end": { - "line": 78, - "column": 9 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2089, - "end": 2090, - "loc": { - "start": { - "line": 78, - "column": 9 - }, - "end": { - "line": 78, - "column": 10 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2090, - "end": 2091, - "loc": { - "start": { - "line": 78, - "column": 10 - }, - "end": { - "line": 78, - "column": 11 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2098, - "end": 2099, - "loc": { - "start": { - "line": 79, - "column": 6 - }, - "end": { - "line": 79, - "column": 7 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2104, - "end": 2105, - "loc": { - "start": { - "line": 80, - "column": 4 - }, - "end": { - "line": 80, - "column": 5 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2105, - "end": 2106, - "loc": { - "start": { - "line": 80, - "column": 5 - }, - "end": { - "line": 80, - "column": 6 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 2112, - "end": 2117, - "loc": { - "start": { - "line": 82, - "column": 4 - }, - "end": { - "line": 82, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 2118, - "end": 2126, - "loc": { - "start": { - "line": 82, - "column": 10 - }, - "end": { - "line": 82, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 2127, - "end": 2128, - "loc": { - "start": { - "line": 82, - "column": 19 - }, - "end": { - "line": 82, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "verifyEmail", - "start": 2129, - "end": 2140, - "loc": { - "start": { - "line": 82, - "column": 21 - }, - "end": { - "line": 82, - "column": 32 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2147, - "end": 2148, - "loc": { - "start": { - "line": 83, - "column": 6 - }, - "end": { - "line": 83, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callbackWithEmailVerification", - "start": 2149, - "end": 2178, - "loc": { - "start": { - "line": 83, - "column": 8 - }, - "end": { - "line": 83, - "column": 37 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2185, - "end": 2186, - "loc": { - "start": { - "line": 84, - "column": 6 - }, - "end": { - "line": 84, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "originalCallback", - "start": 2187, - "end": 2203, - "loc": { - "start": { - "line": 84, - "column": 8 - }, - "end": { - "line": 84, - "column": 24 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2203, - "end": 2204, - "loc": { - "start": { - "line": 84, - "column": 24 - }, - "end": { - "line": 84, - "column": 25 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 2210, - "end": 2215, - "loc": { - "start": { - "line": 86, - "column": 4 - }, - "end": { - "line": 86, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 2216, - "end": 2219, - "loc": { - "start": { - "line": 86, - "column": 10 - }, - "end": { - "line": 86, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 2220, - "end": 2221, - "loc": { - "start": { - "line": 86, - "column": 14 - }, - "end": { - "line": 86, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 2222, - "end": 2227, - "loc": { - "start": { - "line": 86, - "column": 16 - }, - "end": { - "line": 86, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2234, - "end": 2235, - "loc": { - "start": { - "line": 87, - "column": 6 - }, - "end": { - "line": 87, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 2235, - "end": 2242, - "loc": { - "start": { - "line": 87, - "column": 7 - }, - "end": { - "line": 87, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2242, - "end": 2243, - "loc": { - "start": { - "line": 87, - "column": 14 - }, - "end": { - "line": 87, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 2243, - "end": 2262, - "loc": { - "start": { - "line": 87, - "column": 15 - }, - "end": { - "line": 87, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2262, - "end": 2263, - "loc": { - "start": { - "line": 87, - "column": 34 - }, - "end": { - "line": 87, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2263, - "end": 2264, - "loc": { - "start": { - "line": 87, - "column": 35 - }, - "end": { - "line": 87, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 2273, - "end": 2279, - "loc": { - "start": { - "line": 88, - "column": 8 - }, - "end": { - "line": 88, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2279, - "end": 2280, - "loc": { - "start": { - "line": 88, - "column": 14 - }, - "end": { - "line": 88, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "POST", - "start": 2281, - "end": 2287, - "loc": { - "start": { - "line": 88, - "column": 16 - }, - "end": { - "line": 88, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2287, - "end": 2288, - "loc": { - "start": { - "line": 88, - "column": 22 - }, - "end": { - "line": 88, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 2297, - "end": 2301, - "loc": { - "start": { - "line": 89, - "column": 8 - }, - "end": { - "line": 89, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2301, - "end": 2302, - "loc": { - "start": { - "line": 89, - "column": 12 - }, - "end": { - "line": 89, - "column": 13 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/user", - "start": 2303, - "end": 2310, - "loc": { - "start": { - "line": 89, - "column": 14 - }, - "end": { - "line": 89, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2310, - "end": 2311, - "loc": { - "start": { - "line": 89, - "column": 21 - }, - "end": { - "line": 89, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 2320, - "end": 2333, - "loc": { - "start": { - "line": 90, - "column": 8 - }, - "end": { - "line": 90, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2333, - "end": 2334, - "loc": { - "start": { - "line": 90, - "column": 21 - }, - "end": { - "line": 90, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2335, - "end": 2336, - "loc": { - "start": { - "line": 90, - "column": 23 - }, - "end": { - "line": 90, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 2337, - "end": 2341, - "loc": { - "start": { - "line": 90, - "column": 25 - }, - "end": { - "line": 90, - "column": 29 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2341, - "end": 2342, - "loc": { - "start": { - "line": 90, - "column": 29 - }, - "end": { - "line": 90, - "column": 30 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Basic", - "start": 2343, - "end": 2350, - "loc": { - "start": { - "line": 90, - "column": 31 - }, - "end": { - "line": 90, - "column": 38 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2351, - "end": 2352, - "loc": { - "start": { - "line": 90, - "column": 39 - }, - "end": { - "line": 90, - "column": 40 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2352, - "end": 2353, - "loc": { - "start": { - "line": 90, - "column": 40 - }, - "end": { - "line": 90, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 2362, - "end": 2369, - "loc": { - "start": { - "line": 91, - "column": 8 - }, - "end": { - "line": 91, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2369, - "end": 2370, - "loc": { - "start": { - "line": 91, - "column": 15 - }, - "end": { - "line": 91, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2371, - "end": 2372, - "loc": { - "start": { - "line": 91, - "column": 17 - }, - "end": { - "line": 91, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type", - "start": 2383, - "end": 2397, - "loc": { - "start": { - "line": 92, - "column": 10 - }, - "end": { - "line": 92, - "column": 24 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2397, - "end": 2398, - "loc": { - "start": { - "line": 92, - "column": 24 - }, - "end": { - "line": 92, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/json", - "start": 2399, - "end": 2417, - "loc": { - "start": { - "line": 92, - "column": 26 - }, - "end": { - "line": 92, - "column": 44 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2417, - "end": 2418, - "loc": { - "start": { - "line": 92, - "column": 44 - }, - "end": { - "line": 92, - "column": 45 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Length", - "start": 2429, - "end": 2445, - "loc": { - "start": { - "line": 93, - "column": 10 - }, - "end": { - "line": 93, - "column": 26 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2445, - "end": 2446, - "loc": { - "start": { - "line": 93, - "column": 26 - }, - "end": { - "line": 93, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 2447, - "end": 2453, - "loc": { - "start": { - "line": 93, - "column": 28 - }, - "end": { - "line": 93, - "column": 34 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2453, - "end": 2454, - "loc": { - "start": { - "line": 93, - "column": 34 - }, - "end": { - "line": 93, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "byteLength", - "start": 2454, - "end": 2464, - "loc": { - "start": { - "line": 93, - "column": 35 - }, - "end": { - "line": 93, - "column": 45 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2464, - "end": 2465, - "loc": { - "start": { - "line": 93, - "column": 45 - }, - "end": { - "line": 93, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 2465, - "end": 2473, - "loc": { - "start": { - "line": 93, - "column": 46 - }, - "end": { - "line": 93, - "column": 54 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2473, - "end": 2474, - "loc": { - "start": { - "line": 93, - "column": 54 - }, - "end": { - "line": 93, - "column": 55 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2474, - "end": 2475, - "loc": { - "start": { - "line": 93, - "column": 55 - }, - "end": { - "line": 93, - "column": 56 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2484, - "end": 2485, - "loc": { - "start": { - "line": 94, - "column": 8 - }, - "end": { - "line": 94, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2485, - "end": 2486, - "loc": { - "start": { - "line": 94, - "column": 9 - }, - "end": { - "line": 94, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2493, - "end": 2494, - "loc": { - "start": { - "line": 95, - "column": 6 - }, - "end": { - "line": 95, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2494, - "end": 2495, - "loc": { - "start": { - "line": 95, - "column": 7 - }, - "end": { - "line": 95, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2495, - "end": 2496, - "loc": { - "start": { - "line": 95, - "column": 8 - }, - "end": { - "line": 95, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 2497, - "end": 2512, - "loc": { - "start": { - "line": 95, - "column": 10 - }, - "end": { - "line": 95, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2512, - "end": 2513, - "loc": { - "start": { - "line": 95, - "column": 25 - }, - "end": { - "line": 95, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 2513, - "end": 2521, - "loc": { - "start": { - "line": 95, - "column": 26 - }, - "end": { - "line": 95, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2521, - "end": 2522, - "loc": { - "start": { - "line": 95, - "column": 34 - }, - "end": { - "line": 95, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2522, - "end": 2523, - "loc": { - "start": { - "line": 95, - "column": 35 - }, - "end": { - "line": 95, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2530, - "end": 2531, - "loc": { - "start": { - "line": 96, - "column": 6 - }, - "end": { - "line": 96, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 2531, - "end": 2533, - "loc": { - "start": { - "line": 96, - "column": 7 - }, - "end": { - "line": 96, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2533, - "end": 2534, - "loc": { - "start": { - "line": 96, - "column": 9 - }, - "end": { - "line": 96, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 2534, - "end": 2541, - "loc": { - "start": { - "line": 96, - "column": 10 - }, - "end": { - "line": 96, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2541, - "end": 2542, - "loc": { - "start": { - "line": 96, - "column": 17 - }, - "end": { - "line": 96, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 2543, - "end": 2555, - "loc": { - "start": { - "line": 96, - "column": 19 - }, - "end": { - "line": 96, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2555, - "end": 2556, - "loc": { - "start": { - "line": 96, - "column": 31 - }, - "end": { - "line": 96, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 2556, - "end": 2564, - "loc": { - "start": { - "line": 96, - "column": 32 - }, - "end": { - "line": 96, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2564, - "end": 2565, - "loc": { - "start": { - "line": 96, - "column": 40 - }, - "end": { - "line": 96, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2565, - "end": 2566, - "loc": { - "start": { - "line": 96, - "column": 41 - }, - "end": { - "line": 96, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2566, - "end": 2567, - "loc": { - "start": { - "line": 96, - "column": 42 - }, - "end": { - "line": 96, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 2573, - "end": 2576, - "loc": { - "start": { - "line": 98, - "column": 4 - }, - "end": { - "line": 98, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2576, - "end": 2577, - "loc": { - "start": { - "line": 98, - "column": 7 - }, - "end": { - "line": 98, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "write", - "start": 2577, - "end": 2582, - "loc": { - "start": { - "line": 98, - "column": 8 - }, - "end": { - "line": 98, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2582, - "end": 2583, - "loc": { - "start": { - "line": 98, - "column": 13 - }, - "end": { - "line": 98, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 2583, - "end": 2591, - "loc": { - "start": { - "line": 98, - "column": 14 - }, - "end": { - "line": 98, - "column": 22 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2591, - "end": 2592, - "loc": { - "start": { - "line": 98, - "column": 22 - }, - "end": { - "line": 98, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2592, - "end": 2593, - "loc": { - "start": { - "line": 98, - "column": 23 - }, - "end": { - "line": 98, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 2598, - "end": 2601, - "loc": { - "start": { - "line": 99, - "column": 4 - }, - "end": { - "line": 99, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2601, - "end": 2602, - "loc": { - "start": { - "line": 99, - "column": 7 - }, - "end": { - "line": 99, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 2602, - "end": 2605, - "loc": { - "start": { - "line": 99, - "column": 8 - }, - "end": { - "line": 99, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2605, - "end": 2606, - "loc": { - "start": { - "line": 99, - "column": 11 - }, - "end": { - "line": 99, - "column": 12 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2606, - "end": 2607, - "loc": { - "start": { - "line": 99, - "column": 12 - }, - "end": { - "line": 99, - "column": 13 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2607, - "end": 2608, - "loc": { - "start": { - "line": 99, - "column": 13 - }, - "end": { - "line": 99, - "column": 14 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2611, - "end": 2612, - "loc": { - "start": { - "line": 100, - "column": 2 - }, - "end": { - "line": 100, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Get user payload\n * @typedef {Object} UserGetParams\n * @property {string} token - your auth token\n ", - "start": 2616, - "end": 2732, - "loc": { - "start": { - "line": 102, - "column": 2 - }, - "end": { - "line": 106, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieve user response data\n * @typedef {Object} UserGetResponse\n * @property {string} id - user unique id\n * @property {string} first_name - first name\n * @property {string} last_name - last name\n * @property {number} active - user is active or not\n * @property {string} created - user creation timestamp\n * @property {string[]} emails - user emails\n * @property {string} primary_email - user primary email\n * @property {Object[]} subscriptions - user subscriptions data\n * @property {?Object} cloud_export_account_details - cloud export account details data\n * @property {boolean} is_logged_in - user is logged in or not\n * @property {{start_date: string, end_date: string, start_timestamp: number, end_timestamp: number}} billing_period - user billing period data\n * @property {Object[]} companies - companies where user is a member of\n * @property {?string} registration_source - resource where user was registered\n * @property {Object[]} teams - teams where user is a member of\n * @property {Object} settings - user specific settings\n * @property {Object[]} organization_settings - organization specific settings where user is a member of\n * @property {Object[]} merchant_accounts - merchant accounts data\n ", - "start": 2736, - "end": 3997, - "loc": { - "start": { - "line": 108, - "column": 2 - }, - "end": { - "line": 128, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Retrieve user account details\n * @param {UserGetParams} data - get user payload\n * @param {function(err: ApiErrorResponse, res: UserGetResponse)} [callback] - error first node.js callback\n ", - "start": 4001, - "end": 4207, - "loc": { - "start": { - "line": 130, - "column": 2 - }, - "end": { - "line": 134, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 4210, - "end": 4216, - "loc": { - "start": { - "line": 135, - "column": 2 - }, - "end": { - "line": 135, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "retrieve", - "start": 4217, - "end": 4225, - "loc": { - "start": { - "line": 135, - "column": 9 - }, - "end": { - "line": 135, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4226, - "end": 4227, - "loc": { - "start": { - "line": 135, - "column": 18 - }, - "end": { - "line": 135, - "column": 19 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4227, - "end": 4228, - "loc": { - "start": { - "line": 135, - "column": 19 - }, - "end": { - "line": 135, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 4229, - "end": 4234, - "loc": { - "start": { - "line": 135, - "column": 21 - }, - "end": { - "line": 135, - "column": 26 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4235, - "end": 4236, - "loc": { - "start": { - "line": 135, - "column": 27 - }, - "end": { - "line": 135, - "column": 28 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4236, - "end": 4237, - "loc": { - "start": { - "line": 135, - "column": 28 - }, - "end": { - "line": 135, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 4238, - "end": 4246, - "loc": { - "start": { - "line": 135, - "column": 30 - }, - "end": { - "line": 135, - "column": 38 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4246, - "end": 4247, - "loc": { - "start": { - "line": 135, - "column": 38 - }, - "end": { - "line": 135, - "column": 39 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4248, - "end": 4249, - "loc": { - "start": { - "line": 135, - "column": 40 - }, - "end": { - "line": 135, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 4254, - "end": 4259, - "loc": { - "start": { - "line": 136, - "column": 4 - }, - "end": { - "line": 136, - "column": 9 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4266, - "end": 4267, - "loc": { - "start": { - "line": 137, - "column": 6 - }, - "end": { - "line": 137, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 4267, - "end": 4274, - "loc": { - "start": { - "line": 137, - "column": 7 - }, - "end": { - "line": 137, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4274, - "end": 4275, - "loc": { - "start": { - "line": 137, - "column": 14 - }, - "end": { - "line": 137, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 4275, - "end": 4294, - "loc": { - "start": { - "line": 137, - "column": 15 - }, - "end": { - "line": 137, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4294, - "end": 4295, - "loc": { - "start": { - "line": 137, - "column": 34 - }, - "end": { - "line": 137, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4295, - "end": 4296, - "loc": { - "start": { - "line": 137, - "column": 35 - }, - "end": { - "line": 137, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 4305, - "end": 4311, - "loc": { - "start": { - "line": 138, - "column": 8 - }, - "end": { - "line": 138, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4311, - "end": 4312, - "loc": { - "start": { - "line": 138, - "column": 14 - }, - "end": { - "line": 138, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "GET", - "start": 4313, - "end": 4318, - "loc": { - "start": { - "line": 138, - "column": 16 - }, - "end": { - "line": 138, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4318, - "end": 4319, - "loc": { - "start": { - "line": 138, - "column": 21 - }, - "end": { - "line": 138, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 4328, - "end": 4332, - "loc": { - "start": { - "line": 139, - "column": 8 - }, - "end": { - "line": 139, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4332, - "end": 4333, - "loc": { - "start": { - "line": 139, - "column": 12 - }, - "end": { - "line": 139, - "column": 13 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/user", - "start": 4334, - "end": 4341, - "loc": { - "start": { - "line": 139, - "column": 14 - }, - "end": { - "line": 139, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4341, - "end": 4342, - "loc": { - "start": { - "line": 139, - "column": 21 - }, - "end": { - "line": 139, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 4351, - "end": 4364, - "loc": { - "start": { - "line": 140, - "column": 8 - }, - "end": { - "line": 140, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4364, - "end": 4365, - "loc": { - "start": { - "line": 140, - "column": 21 - }, - "end": { - "line": 140, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4366, - "end": 4367, - "loc": { - "start": { - "line": 140, - "column": 23 - }, - "end": { - "line": 140, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 4378, - "end": 4382, - "loc": { - "start": { - "line": 141, - "column": 10 - }, - "end": { - "line": 141, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4382, - "end": 4383, - "loc": { - "start": { - "line": 141, - "column": 14 - }, - "end": { - "line": 141, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 4384, - "end": 4392, - "loc": { - "start": { - "line": 141, - "column": 16 - }, - "end": { - "line": 141, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4392, - "end": 4393, - "loc": { - "start": { - "line": 141, - "column": 24 - }, - "end": { - "line": 141, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 4404, - "end": 4409, - "loc": { - "start": { - "line": 142, - "column": 10 - }, - "end": { - "line": 142, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4409, - "end": 4410, - "loc": { - "start": { - "line": 142, - "column": 15 - }, - "end": { - "line": 142, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4419, - "end": 4420, - "loc": { - "start": { - "line": 143, - "column": 8 - }, - "end": { - "line": 143, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4420, - "end": 4421, - "loc": { - "start": { - "line": 143, - "column": 9 - }, - "end": { - "line": 143, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4428, - "end": 4429, - "loc": { - "start": { - "line": 144, - "column": 6 - }, - "end": { - "line": 144, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4429, - "end": 4430, - "loc": { - "start": { - "line": 144, - "column": 7 - }, - "end": { - "line": 144, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4430, - "end": 4431, - "loc": { - "start": { - "line": 144, - "column": 8 - }, - "end": { - "line": 144, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 4432, - "end": 4447, - "loc": { - "start": { - "line": 144, - "column": 10 - }, - "end": { - "line": 144, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4447, - "end": 4448, - "loc": { - "start": { - "line": 144, - "column": 25 - }, - "end": { - "line": 144, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 4448, - "end": 4456, - "loc": { - "start": { - "line": 144, - "column": 26 - }, - "end": { - "line": 144, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4456, - "end": 4457, - "loc": { - "start": { - "line": 144, - "column": 34 - }, - "end": { - "line": 144, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4457, - "end": 4458, - "loc": { - "start": { - "line": 144, - "column": 35 - }, - "end": { - "line": 144, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4465, - "end": 4466, - "loc": { - "start": { - "line": 145, - "column": 6 - }, - "end": { - "line": 145, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 4466, - "end": 4468, - "loc": { - "start": { - "line": 145, - "column": 7 - }, - "end": { - "line": 145, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4468, - "end": 4469, - "loc": { - "start": { - "line": 145, - "column": 9 - }, - "end": { - "line": 145, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 4469, - "end": 4476, - "loc": { - "start": { - "line": 145, - "column": 10 - }, - "end": { - "line": 145, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4476, - "end": 4477, - "loc": { - "start": { - "line": 145, - "column": 17 - }, - "end": { - "line": 145, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 4478, - "end": 4490, - "loc": { - "start": { - "line": 145, - "column": 19 - }, - "end": { - "line": 145, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4490, - "end": 4491, - "loc": { - "start": { - "line": 145, - "column": 31 - }, - "end": { - "line": 145, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 4491, - "end": 4499, - "loc": { - "start": { - "line": 145, - "column": 32 - }, - "end": { - "line": 145, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4499, - "end": 4500, - "loc": { - "start": { - "line": 145, - "column": 40 - }, - "end": { - "line": 145, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4500, - "end": 4501, - "loc": { - "start": { - "line": 145, - "column": 41 - }, - "end": { - "line": 145, - "column": 42 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4508, - "end": 4509, - "loc": { - "start": { - "line": 146, - "column": 6 - }, - "end": { - "line": 146, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 4509, - "end": 4512, - "loc": { - "start": { - "line": 146, - "column": 7 - }, - "end": { - "line": 146, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4512, - "end": 4513, - "loc": { - "start": { - "line": 146, - "column": 10 - }, - "end": { - "line": 146, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4513, - "end": 4514, - "loc": { - "start": { - "line": 146, - "column": 11 - }, - "end": { - "line": 146, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4514, - "end": 4515, - "loc": { - "start": { - "line": 146, - "column": 12 - }, - "end": { - "line": 146, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4518, - "end": 4519, - "loc": { - "start": { - "line": 147, - "column": 2 - }, - "end": { - "line": 147, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Verify user email payload\n * @typedef {Object} UserVerifyEmailParams\n * @property {string} email - email to verify\n ", - "start": 4523, - "end": 4656, - "loc": { - "start": { - "line": 149, - "column": 2 - }, - "end": { - "line": 153, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Verify user email response data\n * @typedef {Object} UserVerifyEmailResponse\n * @property {string} status - status of verification email sending, e.g. 'success'\n ", - "start": 4660, - "end": 4839, - "loc": { - "start": { - "line": 155, - "column": 2 - }, - "end": { - "line": 159, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Sends email with verification link to user\n * @param {UserVerifyEmailParams} data - user verify email payload\n * @param {function(err: ApiErrorResponse, res: UserVerifyEmailResponse)} [callback] - error first node.js callback\n ", - "start": 4843, - "end": 5087, - "loc": { - "start": { - "line": 161, - "column": 2 - }, - "end": { - "line": 165, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 5090, - "end": 5096, - "loc": { - "start": { - "line": 166, - "column": 2 - }, - "end": { - "line": 166, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "verifyEmail", - "start": 5097, - "end": 5108, - "loc": { - "start": { - "line": 166, - "column": 9 - }, - "end": { - "line": 166, - "column": 20 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5109, - "end": 5110, - "loc": { - "start": { - "line": 166, - "column": 21 - }, - "end": { - "line": 166, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5110, - "end": 5111, - "loc": { - "start": { - "line": 166, - "column": 22 - }, - "end": { - "line": 166, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "email", - "start": 5112, - "end": 5117, - "loc": { - "start": { - "line": 166, - "column": 24 - }, - "end": { - "line": 166, - "column": 29 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5118, - "end": 5119, - "loc": { - "start": { - "line": 166, - "column": 30 - }, - "end": { - "line": 166, - "column": 31 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5119, - "end": 5120, - "loc": { - "start": { - "line": 166, - "column": 31 - }, - "end": { - "line": 166, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 5121, - "end": 5129, - "loc": { - "start": { - "line": 166, - "column": 33 - }, - "end": { - "line": 166, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5129, - "end": 5130, - "loc": { - "start": { - "line": 166, - "column": 41 - }, - "end": { - "line": 166, - "column": 42 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5131, - "end": 5132, - "loc": { - "start": { - "line": 166, - "column": 43 - }, - "end": { - "line": 166, - "column": 44 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 5137, - "end": 5142, - "loc": { - "start": { - "line": 167, - "column": 4 - }, - "end": { - "line": 167, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 5143, - "end": 5151, - "loc": { - "start": { - "line": 167, - "column": 10 - }, - "end": { - "line": 167, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 5152, - "end": 5153, - "loc": { - "start": { - "line": 167, - "column": 19 - }, - "end": { - "line": 167, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSON", - "start": 5154, - "end": 5158, - "loc": { - "start": { - "line": 167, - "column": 21 - }, - "end": { - "line": 167, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5158, - "end": 5159, - "loc": { - "start": { - "line": 167, - "column": 25 - }, - "end": { - "line": 167, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "stringify", - "start": 5159, - "end": 5168, - "loc": { - "start": { - "line": 167, - "column": 26 - }, - "end": { - "line": 167, - "column": 35 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5168, - "end": 5169, - "loc": { - "start": { - "line": 167, - "column": 35 - }, - "end": { - "line": 167, - "column": 36 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5169, - "end": 5170, - "loc": { - "start": { - "line": 167, - "column": 36 - }, - "end": { - "line": 167, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "email", - "start": 5171, - "end": 5176, - "loc": { - "start": { - "line": 167, - "column": 38 - }, - "end": { - "line": 167, - "column": 43 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5177, - "end": 5178, - "loc": { - "start": { - "line": 167, - "column": 44 - }, - "end": { - "line": 167, - "column": 45 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5178, - "end": 5179, - "loc": { - "start": { - "line": 167, - "column": 45 - }, - "end": { - "line": 167, - "column": 46 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5179, - "end": 5180, - "loc": { - "start": { - "line": 167, - "column": 46 - }, - "end": { - "line": 167, - "column": 47 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 5185, - "end": 5190, - "loc": { - "start": { - "line": 168, - "column": 4 - }, - "end": { - "line": 168, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 5191, - "end": 5194, - "loc": { - "start": { - "line": 168, - "column": 10 - }, - "end": { - "line": 168, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 5195, - "end": 5196, - "loc": { - "start": { - "line": 168, - "column": 14 - }, - "end": { - "line": 168, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 5197, - "end": 5202, - "loc": { - "start": { - "line": 168, - "column": 16 - }, - "end": { - "line": 168, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5209, - "end": 5210, - "loc": { - "start": { - "line": 169, - "column": 6 - }, - "end": { - "line": 169, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 5210, - "end": 5217, - "loc": { - "start": { - "line": 169, - "column": 7 - }, - "end": { - "line": 169, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5217, - "end": 5218, - "loc": { - "start": { - "line": 169, - "column": 14 - }, - "end": { - "line": 169, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 5218, - "end": 5237, - "loc": { - "start": { - "line": 169, - "column": 15 - }, - "end": { - "line": 169, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5237, - "end": 5238, - "loc": { - "start": { - "line": 169, - "column": 34 - }, - "end": { - "line": 169, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5238, - "end": 5239, - "loc": { - "start": { - "line": 169, - "column": 35 - }, - "end": { - "line": 169, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 5248, - "end": 5254, - "loc": { - "start": { - "line": 170, - "column": 8 - }, - "end": { - "line": 170, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5254, - "end": 5255, - "loc": { - "start": { - "line": 170, - "column": 14 - }, - "end": { - "line": 170, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "POST", - "start": 5256, - "end": 5262, - "loc": { - "start": { - "line": 170, - "column": 16 - }, - "end": { - "line": 170, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5262, - "end": 5263, - "loc": { - "start": { - "line": 170, - "column": 22 - }, - "end": { - "line": 170, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 5272, - "end": 5276, - "loc": { - "start": { - "line": 171, - "column": 8 - }, - "end": { - "line": 171, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5276, - "end": 5277, - "loc": { - "start": { - "line": 171, - "column": 12 - }, - "end": { - "line": 171, - "column": 13 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/user/verifyemail", - "start": 5278, - "end": 5297, - "loc": { - "start": { - "line": 171, - "column": 14 - }, - "end": { - "line": 171, - "column": 33 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5297, - "end": 5298, - "loc": { - "start": { - "line": 171, - "column": 33 - }, - "end": { - "line": 171, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 5307, - "end": 5320, - "loc": { - "start": { - "line": 172, - "column": 8 - }, - "end": { - "line": 172, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5320, - "end": 5321, - "loc": { - "start": { - "line": 172, - "column": 21 - }, - "end": { - "line": 172, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5322, - "end": 5323, - "loc": { - "start": { - "line": 172, - "column": 23 - }, - "end": { - "line": 172, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 5324, - "end": 5328, - "loc": { - "start": { - "line": 172, - "column": 25 - }, - "end": { - "line": 172, - "column": 29 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5328, - "end": 5329, - "loc": { - "start": { - "line": 172, - "column": 29 - }, - "end": { - "line": 172, - "column": 30 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Basic", - "start": 5330, - "end": 5337, - "loc": { - "start": { - "line": 172, - "column": 31 - }, - "end": { - "line": 172, - "column": 38 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5338, - "end": 5339, - "loc": { - "start": { - "line": 172, - "column": 39 - }, - "end": { - "line": 172, - "column": 40 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5339, - "end": 5340, - "loc": { - "start": { - "line": 172, - "column": 40 - }, - "end": { - "line": 172, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 5349, - "end": 5356, - "loc": { - "start": { - "line": 173, - "column": 8 - }, - "end": { - "line": 173, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5356, - "end": 5357, - "loc": { - "start": { - "line": 173, - "column": 15 - }, - "end": { - "line": 173, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5358, - "end": 5359, - "loc": { - "start": { - "line": 173, - "column": 17 - }, - "end": { - "line": 173, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type", - "start": 5370, - "end": 5384, - "loc": { - "start": { - "line": 174, - "column": 10 - }, - "end": { - "line": 174, - "column": 24 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5384, - "end": 5385, - "loc": { - "start": { - "line": 174, - "column": 24 - }, - "end": { - "line": 174, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/json", - "start": 5386, - "end": 5404, - "loc": { - "start": { - "line": 174, - "column": 26 - }, - "end": { - "line": 174, - "column": 44 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5404, - "end": 5405, - "loc": { - "start": { - "line": 174, - "column": 44 - }, - "end": { - "line": 174, - "column": 45 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Length", - "start": 5416, - "end": 5432, - "loc": { - "start": { - "line": 175, - "column": 10 - }, - "end": { - "line": 175, - "column": 26 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5432, - "end": 5433, - "loc": { - "start": { - "line": 175, - "column": 26 - }, - "end": { - "line": 175, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 5434, - "end": 5440, - "loc": { - "start": { - "line": 175, - "column": 28 - }, - "end": { - "line": 175, - "column": 34 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5440, - "end": 5441, - "loc": { - "start": { - "line": 175, - "column": 34 - }, - "end": { - "line": 175, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "byteLength", - "start": 5441, - "end": 5451, - "loc": { - "start": { - "line": 175, - "column": 35 - }, - "end": { - "line": 175, - "column": 45 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5451, - "end": 5452, - "loc": { - "start": { - "line": 175, - "column": 45 - }, - "end": { - "line": 175, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 5452, - "end": 5460, - "loc": { - "start": { - "line": 175, - "column": 46 - }, - "end": { - "line": 175, - "column": 54 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5460, - "end": 5461, - "loc": { - "start": { - "line": 175, - "column": 54 - }, - "end": { - "line": 175, - "column": 55 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5461, - "end": 5462, - "loc": { - "start": { - "line": 175, - "column": 55 - }, - "end": { - "line": 175, - "column": 56 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5471, - "end": 5472, - "loc": { - "start": { - "line": 176, - "column": 8 - }, - "end": { - "line": 176, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5472, - "end": 5473, - "loc": { - "start": { - "line": 176, - "column": 9 - }, - "end": { - "line": 176, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5480, - "end": 5481, - "loc": { - "start": { - "line": 177, - "column": 6 - }, - "end": { - "line": 177, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5481, - "end": 5482, - "loc": { - "start": { - "line": 177, - "column": 7 - }, - "end": { - "line": 177, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5482, - "end": 5483, - "loc": { - "start": { - "line": 177, - "column": 8 - }, - "end": { - "line": 177, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 5484, - "end": 5499, - "loc": { - "start": { - "line": 177, - "column": 10 - }, - "end": { - "line": 177, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5499, - "end": 5500, - "loc": { - "start": { - "line": 177, - "column": 25 - }, - "end": { - "line": 177, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 5500, - "end": 5508, - "loc": { - "start": { - "line": 177, - "column": 26 - }, - "end": { - "line": 177, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5508, - "end": 5509, - "loc": { - "start": { - "line": 177, - "column": 34 - }, - "end": { - "line": 177, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5509, - "end": 5510, - "loc": { - "start": { - "line": 177, - "column": 35 - }, - "end": { - "line": 177, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5517, - "end": 5518, - "loc": { - "start": { - "line": 178, - "column": 6 - }, - "end": { - "line": 178, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 5518, - "end": 5520, - "loc": { - "start": { - "line": 178, - "column": 7 - }, - "end": { - "line": 178, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5520, - "end": 5521, - "loc": { - "start": { - "line": 178, - "column": 9 - }, - "end": { - "line": 178, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 5521, - "end": 5528, - "loc": { - "start": { - "line": 178, - "column": 10 - }, - "end": { - "line": 178, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5528, - "end": 5529, - "loc": { - "start": { - "line": 178, - "column": 17 - }, - "end": { - "line": 178, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 5530, - "end": 5542, - "loc": { - "start": { - "line": 178, - "column": 19 - }, - "end": { - "line": 178, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5542, - "end": 5543, - "loc": { - "start": { - "line": 178, - "column": 31 - }, - "end": { - "line": 178, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 5543, - "end": 5551, - "loc": { - "start": { - "line": 178, - "column": 32 - }, - "end": { - "line": 178, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5551, - "end": 5552, - "loc": { - "start": { - "line": 178, - "column": 40 - }, - "end": { - "line": 178, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5552, - "end": 5553, - "loc": { - "start": { - "line": 178, - "column": 41 - }, - "end": { - "line": 178, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5553, - "end": 5554, - "loc": { - "start": { - "line": 178, - "column": 42 - }, - "end": { - "line": 178, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 5560, - "end": 5563, - "loc": { - "start": { - "line": 180, - "column": 4 - }, - "end": { - "line": 180, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5563, - "end": 5564, - "loc": { - "start": { - "line": 180, - "column": 7 - }, - "end": { - "line": 180, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "write", - "start": 5564, - "end": 5569, - "loc": { - "start": { - "line": 180, - "column": 8 - }, - "end": { - "line": 180, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5569, - "end": 5570, - "loc": { - "start": { - "line": 180, - "column": 13 - }, - "end": { - "line": 180, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 5570, - "end": 5578, - "loc": { - "start": { - "line": 180, - "column": 14 - }, - "end": { - "line": 180, - "column": 22 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5578, - "end": 5579, - "loc": { - "start": { - "line": 180, - "column": 22 - }, - "end": { - "line": 180, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5579, - "end": 5580, - "loc": { - "start": { - "line": 180, - "column": 23 - }, - "end": { - "line": 180, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 5585, - "end": 5588, - "loc": { - "start": { - "line": 181, - "column": 4 - }, - "end": { - "line": 181, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5588, - "end": 5589, - "loc": { - "start": { - "line": 181, - "column": 7 - }, - "end": { - "line": 181, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 5589, - "end": 5592, - "loc": { - "start": { - "line": 181, - "column": 8 - }, - "end": { - "line": 181, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5592, - "end": 5593, - "loc": { - "start": { - "line": 181, - "column": 11 - }, - "end": { - "line": 181, - "column": 12 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5593, - "end": 5594, - "loc": { - "start": { - "line": 181, - "column": 12 - }, - "end": { - "line": 181, - "column": 13 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5594, - "end": 5595, - "loc": { - "start": { - "line": 181, - "column": 13 - }, - "end": { - "line": 181, - "column": 14 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5598, - "end": 5599, - "loc": { - "start": { - "line": 182, - "column": 2 - }, - "end": { - "line": 182, - "column": 3 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5600, - "end": 5601, - "loc": { - "start": { - "line": 183, - "column": 0 - }, - "end": { - "line": 183, - "column": 1 - } - } - }, - { - "type": { - "label": "export", - "keyword": "export", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "export", - "start": 5603, - "end": 5609, - "loc": { - "start": { - "line": 185, - "column": 0 - }, - "end": { - "line": 185, - "column": 6 - } - } - }, - { - "type": { - "label": "default", - "keyword": "default", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "default", - "start": 5610, - "end": 5617, - "loc": { - "start": { - "line": 185, - "column": 7 - }, - "end": { - "line": 185, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "User", - "start": 5618, - "end": 5622, - "loc": { - "start": { - "line": 185, - "column": 15 - }, - "end": { - "line": 185, - "column": 19 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5622, - "end": 5623, - "loc": { - "start": { - "line": 185, - "column": 19 - }, - "end": { - "line": 185, - "column": 20 - } - } - }, - { - "type": { - "label": "eof", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5624, - "end": 5624, - "loc": { - "start": { - "line": 186, - "column": 0 - }, - "end": { - "line": 186, - "column": 0 - } - } - } - ] -} \ No newline at end of file diff --git a/docs/ast/source/webhook.js.json b/docs/ast/source/webhook.js.json deleted file mode 100644 index 83553a53..00000000 --- a/docs/ast/source/webhook.js.json +++ /dev/null @@ -1,8612 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 1060, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 51, - "column": 0 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 1060, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 51, - "column": 0 - } - }, - "sourceType": "module", - "body": [ - { - "type": "ImportDeclaration", - "start": 14, - "end": 40, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 26 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - } - }, - "local": { - "type": "Identifier", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - }, - "identifierName": "https" - }, - "name": "https" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 18 - }, - "end": { - "line": 2, - "column": 25 - } - }, - "extra": { - "rawValue": "https", - "raw": "'https'" - }, - "value": "https" - } - }, - { - "type": "ImportDeclaration", - "start": 41, - "end": 122, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 5, - "column": 18 - } - }, - "specifiers": [ - { - "type": "ImportSpecifier", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - } - }, - "imported": { - "type": "Identifier", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "local": { - "type": "Identifier", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - } - }, - { - "type": "ImportSpecifier", - "start": 69, - "end": 81, - "loc": { - "start": { - "line": 4, - "column": 19 - }, - "end": { - "line": 4, - "column": 31 - } - }, - "imported": { - "type": "Identifier", - "start": 69, - "end": 81, - "loc": { - "start": { - "line": 4, - "column": 19 - }, - "end": { - "line": 4, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "local": { - "type": "Identifier", - "start": 69, - "end": 81, - "loc": { - "start": { - "line": 4, - "column": 19 - }, - "end": { - "line": 4, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - } - }, - { - "type": "ImportSpecifier", - "start": 83, - "end": 102, - "loc": { - "start": { - "line": 4, - "column": 33 - }, - "end": { - "line": 4, - "column": 52 - } - }, - "imported": { - "type": "Identifier", - "start": 83, - "end": 102, - "loc": { - "start": { - "line": 4, - "column": 33 - }, - "end": { - "line": 4, - "column": 52 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "local": { - "type": "Identifier", - "start": 83, - "end": 102, - "loc": { - "start": { - "line": 4, - "column": 33 - }, - "end": { - "line": 4, - "column": 52 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 111, - "end": 121, - "loc": { - "start": { - "line": 5, - "column": 7 - }, - "end": { - "line": 5, - "column": 17 - } - }, - "extra": { - "rawValue": "./common", - "raw": "'./common'" - }, - "value": "./common" - }, - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Webook Methods\n ", - "start": 125, - "end": 150, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 10, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " list webhooks", - "start": 152, - "end": 168, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 12, - "column": 16 - } - } - } - ] - }, - { - "type": "ExportNamedDeclaration", - "start": 169, - "end": 482, - "loc": { - "start": { - "line": 13, - "column": 0 - }, - "end": { - "line": 25, - "column": 2 - } - }, - "specifiers": [], - "source": null, - "declaration": { - "type": "VariableDeclaration", - "start": 176, - "end": 482, - "loc": { - "start": { - "line": 13, - "column": 7 - }, - "end": { - "line": 25, - "column": 2 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 180, - "end": 481, - "loc": { - "start": { - "line": 13, - "column": 11 - }, - "end": { - "line": 25, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 180, - "end": 184, - "loc": { - "start": { - "line": 13, - "column": 11 - }, - "end": { - "line": 13, - "column": 15 - }, - "identifierName": "list" - }, - "name": "list", - "leadingComments": null - }, - "init": { - "type": "FunctionExpression", - "start": 187, - "end": 481, - "loc": { - "start": { - "line": 13, - "column": 18 - }, - "end": { - "line": 25, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 180, - "end": 184, - "loc": { - "start": { - "line": 13, - "column": 11 - }, - "end": { - "line": 13, - "column": 15 - }, - "identifierName": "list" - }, - "name": "list", - "leadingComments": null - }, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 196, - "end": 199, - "loc": { - "start": { - "line": 13, - "column": 27 - }, - "end": { - "line": 13, - "column": 30 - }, - "identifierName": "obj" - }, - "name": "obj" - }, - { - "type": "Identifier", - "start": 201, - "end": 209, - "loc": { - "start": { - "line": 13, - "column": 32 - }, - "end": { - "line": 13, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 211, - "end": 481, - "loc": { - "start": { - "line": 13, - "column": 42 - }, - "end": { - "line": 25, - "column": 1 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 215, - "end": 422, - "loc": { - "start": { - "line": 14, - "column": 2 - }, - "end": { - "line": 21, - "column": 33 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 221, - "end": 421, - "loc": { - "start": { - "line": 14, - "column": 8 - }, - "end": { - "line": 21, - "column": 32 - } - }, - "id": { - "type": "Identifier", - "start": 221, - "end": 224, - "loc": { - "start": { - "line": 14, - "column": 8 - }, - "end": { - "line": 14, - "column": 11 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 227, - "end": 421, - "loc": { - "start": { - "line": 14, - "column": 14 - }, - "end": { - "line": 21, - "column": 32 - } - }, - "callee": { - "type": "MemberExpression", - "start": 227, - "end": 240, - "loc": { - "start": { - "line": 14, - "column": 14 - }, - "end": { - "line": 14, - "column": 27 - } - }, - "object": { - "type": "Identifier", - "start": 227, - "end": 232, - "loc": { - "start": { - "line": 14, - "column": 14 - }, - "end": { - "line": 14, - "column": 19 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 233, - "end": 240, - "loc": { - "start": { - "line": 14, - "column": 20 - }, - "end": { - "line": 14, - "column": 27 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 241, - "end": 393, - "loc": { - "start": { - "line": 14, - "column": 28 - }, - "end": { - "line": 21, - "column": 4 - } - }, - "callee": { - "type": "Identifier", - "start": 241, - "end": 260, - "loc": { - "start": { - "line": 14, - "column": 28 - }, - "end": { - "line": 14, - "column": 47 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 261, - "end": 392, - "loc": { - "start": { - "line": 14, - "column": 48 - }, - "end": { - "line": 21, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 267, - "end": 280, - "loc": { - "start": { - "line": 15, - "column": 4 - }, - "end": { - "line": 15, - "column": 17 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 267, - "end": 273, - "loc": { - "start": { - "line": 15, - "column": 4 - }, - "end": { - "line": 15, - "column": 10 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 275, - "end": 280, - "loc": { - "start": { - "line": 15, - "column": 12 - }, - "end": { - "line": 15, - "column": 17 - } - }, - "extra": { - "rawValue": "GET", - "raw": "'GET'" - }, - "value": "GET" - } - }, - { - "type": "ObjectProperty", - "start": 286, - "end": 313, - "loc": { - "start": { - "line": 16, - "column": 4 - }, - "end": { - "line": 16, - "column": 31 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 286, - "end": 290, - "loc": { - "start": { - "line": 16, - "column": 4 - }, - "end": { - "line": 16, - "column": 8 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 292, - "end": 313, - "loc": { - "start": { - "line": 16, - "column": 10 - }, - "end": { - "line": 16, - "column": 31 - } - }, - "extra": { - "rawValue": "/event_subscription", - "raw": "'/event_subscription'" - }, - "value": "/event_subscription" - } - }, - { - "type": "ObjectProperty", - "start": 319, - "end": 387, - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 20, - "column": 5 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 319, - "end": 332, - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 17, - "column": 17 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 334, - "end": 387, - "loc": { - "start": { - "line": 17, - "column": 19 - }, - "end": { - "line": 20, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 342, - "end": 356, - "loc": { - "start": { - "line": 18, - "column": 6 - }, - "end": { - "line": 18, - "column": 20 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 342, - "end": 346, - "loc": { - "start": { - "line": 18, - "column": 6 - }, - "end": { - "line": 18, - "column": 10 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 348, - "end": 356, - "loc": { - "start": { - "line": 18, - "column": 12 - }, - "end": { - "line": 18, - "column": 20 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 364, - "end": 380, - "loc": { - "start": { - "line": 19, - "column": 6 - }, - "end": { - "line": 19, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 364, - "end": 369, - "loc": { - "start": { - "line": 19, - "column": 6 - }, - "end": { - "line": 19, - "column": 11 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "MemberExpression", - "start": 371, - "end": 380, - "loc": { - "start": { - "line": 19, - "column": 13 - }, - "end": { - "line": 19, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 371, - "end": 374, - "loc": { - "start": { - "line": 19, - "column": 13 - }, - "end": { - "line": 19, - "column": 16 - }, - "identifierName": "obj" - }, - "name": "obj" - }, - "property": { - "type": "Identifier", - "start": 375, - "end": 380, - "loc": { - "start": { - "line": 19, - "column": 17 - }, - "end": { - "line": 19, - "column": 22 - }, - "identifierName": "token" - }, - "name": "token" - }, - "computed": false - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 395, - "end": 420, - "loc": { - "start": { - "line": 21, - "column": 6 - }, - "end": { - "line": 21, - "column": 31 - } - }, - "callee": { - "type": "Identifier", - "start": 395, - "end": 410, - "loc": { - "start": { - "line": 21, - "column": 6 - }, - "end": { - "line": 21, - "column": 21 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 411, - "end": 419, - "loc": { - "start": { - "line": 21, - "column": 22 - }, - "end": { - "line": 21, - "column": 30 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 426, - "end": 466, - "loc": { - "start": { - "line": 23, - "column": 2 - }, - "end": { - "line": 23, - "column": 42 - } - }, - "expression": { - "type": "CallExpression", - "start": 426, - "end": 465, - "loc": { - "start": { - "line": 23, - "column": 2 - }, - "end": { - "line": 23, - "column": 41 - } - }, - "callee": { - "type": "MemberExpression", - "start": 426, - "end": 432, - "loc": { - "start": { - "line": 23, - "column": 2 - }, - "end": { - "line": 23, - "column": 8 - } - }, - "object": { - "type": "Identifier", - "start": 426, - "end": 429, - "loc": { - "start": { - "line": 23, - "column": 2 - }, - "end": { - "line": 23, - "column": 5 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 430, - "end": 432, - "loc": { - "start": { - "line": 23, - "column": 6 - }, - "end": { - "line": 23, - "column": 8 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 433, - "end": 440, - "loc": { - "start": { - "line": 23, - "column": 9 - }, - "end": { - "line": 23, - "column": 16 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 442, - "end": 464, - "loc": { - "start": { - "line": 23, - "column": 18 - }, - "end": { - "line": 23, - "column": 40 - } - }, - "callee": { - "type": "Identifier", - "start": 442, - "end": 454, - "loc": { - "start": { - "line": 23, - "column": 18 - }, - "end": { - "line": 23, - "column": 30 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 455, - "end": 463, - "loc": { - "start": { - "line": 23, - "column": 31 - }, - "end": { - "line": 23, - "column": 39 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 469, - "end": 479, - "loc": { - "start": { - "line": 24, - "column": 2 - }, - "end": { - "line": 24, - "column": 12 - } - }, - "expression": { - "type": "CallExpression", - "start": 469, - "end": 478, - "loc": { - "start": { - "line": 24, - "column": 2 - }, - "end": { - "line": 24, - "column": 11 - } - }, - "callee": { - "type": "MemberExpression", - "start": 469, - "end": 476, - "loc": { - "start": { - "line": 24, - "column": 2 - }, - "end": { - "line": 24, - "column": 9 - } - }, - "object": { - "type": "Identifier", - "start": 469, - "end": 472, - "loc": { - "start": { - "line": 24, - "column": 2 - }, - "end": { - "line": 24, - "column": 5 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 473, - "end": 476, - "loc": { - "start": { - "line": 24, - "column": 6 - }, - "end": { - "line": 24, - "column": 9 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - } - }, - "leadingComments": null - } - ], - "kind": "let", - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Webook Methods\n ", - "start": 125, - "end": 150, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 10, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " list webhooks", - "start": 152, - "end": 168, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 12, - "column": 16 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " create webhook", - "start": 484, - "end": 501, - "loc": { - "start": { - "line": 27, - "column": 0 - }, - "end": { - "line": 27, - "column": 17 - } - } - } - ] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Webook Methods\n ", - "start": 125, - "end": 150, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 10, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " list webhooks", - "start": 152, - "end": 168, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 12, - "column": 16 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " create webhook", - "start": 484, - "end": 501, - "loc": { - "start": { - "line": 27, - "column": 0 - }, - "end": { - "line": 27, - "column": 17 - } - } - } - ] - }, - { - "type": "ExportNamedDeclaration", - "start": 502, - "end": 1059, - "loc": { - "start": { - "line": 28, - "column": 0 - }, - "end": { - "line": 50, - "column": 2 - } - }, - "specifiers": [], - "source": null, - "declaration": { - "type": "VariableDeclaration", - "start": 509, - "end": 1059, - "loc": { - "start": { - "line": 28, - "column": 7 - }, - "end": { - "line": 50, - "column": 2 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 513, - "end": 1058, - "loc": { - "start": { - "line": 28, - "column": 11 - }, - "end": { - "line": 50, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 513, - "end": 519, - "loc": { - "start": { - "line": 28, - "column": 11 - }, - "end": { - "line": 28, - "column": 17 - }, - "identifierName": "create" - }, - "name": "create", - "leadingComments": null - }, - "init": { - "type": "FunctionExpression", - "start": 522, - "end": 1058, - "loc": { - "start": { - "line": 28, - "column": 20 - }, - "end": { - "line": 50, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 513, - "end": 519, - "loc": { - "start": { - "line": 28, - "column": 11 - }, - "end": { - "line": 28, - "column": 17 - }, - "identifierName": "create" - }, - "name": "create", - "leadingComments": null - }, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 531, - "end": 534, - "loc": { - "start": { - "line": 28, - "column": 29 - }, - "end": { - "line": 28, - "column": 32 - }, - "identifierName": "obj" - }, - "name": "obj" - }, - { - "type": "Identifier", - "start": 536, - "end": 544, - "loc": { - "start": { - "line": 28, - "column": 34 - }, - "end": { - "line": 28, - "column": 42 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 546, - "end": 1058, - "loc": { - "start": { - "line": 28, - "column": 44 - }, - "end": { - "line": 50, - "column": 1 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 550, - "end": 647, - "loc": { - "start": { - "line": 29, - "column": 2 - }, - "end": { - "line": 32, - "column": 5 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 556, - "end": 646, - "loc": { - "start": { - "line": 29, - "column": 8 - }, - "end": { - "line": 32, - "column": 4 - } - }, - "id": { - "type": "Identifier", - "start": 556, - "end": 564, - "loc": { - "start": { - "line": 29, - "column": 8 - }, - "end": { - "line": 29, - "column": 16 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 567, - "end": 646, - "loc": { - "start": { - "line": 29, - "column": 19 - }, - "end": { - "line": 32, - "column": 4 - } - }, - "callee": { - "type": "MemberExpression", - "start": 567, - "end": 581, - "loc": { - "start": { - "line": 29, - "column": 19 - }, - "end": { - "line": 29, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 567, - "end": 571, - "loc": { - "start": { - "line": 29, - "column": 19 - }, - "end": { - "line": 29, - "column": 23 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 572, - "end": 581, - "loc": { - "start": { - "line": 29, - "column": 24 - }, - "end": { - "line": 29, - "column": 33 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 582, - "end": 645, - "loc": { - "start": { - "line": 29, - "column": 34 - }, - "end": { - "line": 32, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 588, - "end": 604, - "loc": { - "start": { - "line": 30, - "column": 4 - }, - "end": { - "line": 30, - "column": 20 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 588, - "end": 593, - "loc": { - "start": { - "line": 30, - "column": 4 - }, - "end": { - "line": 30, - "column": 9 - }, - "identifierName": "event" - }, - "name": "event" - }, - "value": { - "type": "MemberExpression", - "start": 595, - "end": 604, - "loc": { - "start": { - "line": 30, - "column": 11 - }, - "end": { - "line": 30, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 595, - "end": 598, - "loc": { - "start": { - "line": 30, - "column": 11 - }, - "end": { - "line": 30, - "column": 14 - }, - "identifierName": "obj" - }, - "name": "obj" - }, - "property": { - "type": "Identifier", - "start": 599, - "end": 604, - "loc": { - "start": { - "line": 30, - "column": 15 - }, - "end": { - "line": 30, - "column": 20 - }, - "identifierName": "event" - }, - "name": "event" - }, - "computed": false - } - }, - { - "type": "ObjectProperty", - "start": 610, - "end": 640, - "loc": { - "start": { - "line": 31, - "column": 4 - }, - "end": { - "line": 31, - "column": 34 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 610, - "end": 622, - "loc": { - "start": { - "line": 31, - "column": 4 - }, - "end": { - "line": 31, - "column": 16 - }, - "identifierName": "callback_url" - }, - "name": "callback_url" - }, - "value": { - "type": "MemberExpression", - "start": 624, - "end": 640, - "loc": { - "start": { - "line": 31, - "column": 18 - }, - "end": { - "line": 31, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 624, - "end": 627, - "loc": { - "start": { - "line": 31, - "column": 18 - }, - "end": { - "line": 31, - "column": 21 - }, - "identifierName": "obj" - }, - "name": "obj" - }, - "property": { - "type": "Identifier", - "start": 628, - "end": 640, - "loc": { - "start": { - "line": 31, - "column": 22 - }, - "end": { - "line": 31, - "column": 34 - }, - "identifierName": "callback_url" - }, - "name": "callback_url" - }, - "computed": false - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 651, - "end": 976, - "loc": { - "start": { - "line": 34, - "column": 2 - }, - "end": { - "line": 45, - "column": 33 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 657, - "end": 975, - "loc": { - "start": { - "line": 34, - "column": 8 - }, - "end": { - "line": 45, - "column": 32 - } - }, - "id": { - "type": "Identifier", - "start": 657, - "end": 660, - "loc": { - "start": { - "line": 34, - "column": 8 - }, - "end": { - "line": 34, - "column": 11 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 663, - "end": 975, - "loc": { - "start": { - "line": 34, - "column": 14 - }, - "end": { - "line": 45, - "column": 32 - } - }, - "callee": { - "type": "MemberExpression", - "start": 663, - "end": 676, - "loc": { - "start": { - "line": 34, - "column": 14 - }, - "end": { - "line": 34, - "column": 27 - } - }, - "object": { - "type": "Identifier", - "start": 663, - "end": 668, - "loc": { - "start": { - "line": 34, - "column": 14 - }, - "end": { - "line": 34, - "column": 19 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 669, - "end": 676, - "loc": { - "start": { - "line": 34, - "column": 20 - }, - "end": { - "line": 34, - "column": 27 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 677, - "end": 947, - "loc": { - "start": { - "line": 34, - "column": 28 - }, - "end": { - "line": 45, - "column": 4 - } - }, - "callee": { - "type": "Identifier", - "start": 677, - "end": 696, - "loc": { - "start": { - "line": 34, - "column": 28 - }, - "end": { - "line": 34, - "column": 47 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 697, - "end": 946, - "loc": { - "start": { - "line": 34, - "column": 48 - }, - "end": { - "line": 45, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 703, - "end": 717, - "loc": { - "start": { - "line": 35, - "column": 4 - }, - "end": { - "line": 35, - "column": 18 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 703, - "end": 709, - "loc": { - "start": { - "line": 35, - "column": 4 - }, - "end": { - "line": 35, - "column": 10 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 711, - "end": 717, - "loc": { - "start": { - "line": 35, - "column": 12 - }, - "end": { - "line": 35, - "column": 18 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 723, - "end": 750, - "loc": { - "start": { - "line": 36, - "column": 4 - }, - "end": { - "line": 36, - "column": 31 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 723, - "end": 727, - "loc": { - "start": { - "line": 36, - "column": 4 - }, - "end": { - "line": 36, - "column": 8 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 729, - "end": 750, - "loc": { - "start": { - "line": 36, - "column": 10 - }, - "end": { - "line": 36, - "column": 31 - } - }, - "extra": { - "rawValue": "/event_subscription", - "raw": "'/event_subscription'" - }, - "value": "/event_subscription" - } - }, - { - "type": "ObjectProperty", - "start": 756, - "end": 824, - "loc": { - "start": { - "line": 37, - "column": 4 - }, - "end": { - "line": 40, - "column": 5 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 756, - "end": 769, - "loc": { - "start": { - "line": 37, - "column": 4 - }, - "end": { - "line": 37, - "column": 17 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 771, - "end": 824, - "loc": { - "start": { - "line": 37, - "column": 19 - }, - "end": { - "line": 40, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 779, - "end": 793, - "loc": { - "start": { - "line": 38, - "column": 6 - }, - "end": { - "line": 38, - "column": 20 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 779, - "end": 783, - "loc": { - "start": { - "line": 38, - "column": 6 - }, - "end": { - "line": 38, - "column": 10 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 785, - "end": 793, - "loc": { - "start": { - "line": 38, - "column": 12 - }, - "end": { - "line": 38, - "column": 20 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 801, - "end": 817, - "loc": { - "start": { - "line": 39, - "column": 6 - }, - "end": { - "line": 39, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 801, - "end": 806, - "loc": { - "start": { - "line": 39, - "column": 6 - }, - "end": { - "line": 39, - "column": 11 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "MemberExpression", - "start": 808, - "end": 817, - "loc": { - "start": { - "line": 39, - "column": 13 - }, - "end": { - "line": 39, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 808, - "end": 811, - "loc": { - "start": { - "line": 39, - "column": 13 - }, - "end": { - "line": 39, - "column": 16 - }, - "identifierName": "obj" - }, - "name": "obj" - }, - "property": { - "type": "Identifier", - "start": 812, - "end": 817, - "loc": { - "start": { - "line": 39, - "column": 17 - }, - "end": { - "line": 39, - "column": 22 - }, - "identifierName": "token" - }, - "name": "token" - }, - "computed": false - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 830, - "end": 941, - "loc": { - "start": { - "line": 41, - "column": 4 - }, - "end": { - "line": 44, - "column": 5 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 830, - "end": 837, - "loc": { - "start": { - "line": 41, - "column": 4 - }, - "end": { - "line": 41, - "column": 11 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 839, - "end": 941, - "loc": { - "start": { - "line": 41, - "column": 13 - }, - "end": { - "line": 44, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 847, - "end": 881, - "loc": { - "start": { - "line": 42, - "column": 6 - }, - "end": { - "line": 42, - "column": 40 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 847, - "end": 861, - "loc": { - "start": { - "line": 42, - "column": 6 - }, - "end": { - "line": 42, - "column": 20 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 863, - "end": 881, - "loc": { - "start": { - "line": 42, - "column": 22 - }, - "end": { - "line": 42, - "column": 40 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 889, - "end": 934, - "loc": { - "start": { - "line": 43, - "column": 6 - }, - "end": { - "line": 43, - "column": 51 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 889, - "end": 905, - "loc": { - "start": { - "line": 43, - "column": 6 - }, - "end": { - "line": 43, - "column": 22 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 907, - "end": 934, - "loc": { - "start": { - "line": 43, - "column": 24 - }, - "end": { - "line": 43, - "column": 51 - } - }, - "callee": { - "type": "MemberExpression", - "start": 907, - "end": 924, - "loc": { - "start": { - "line": 43, - "column": 24 - }, - "end": { - "line": 43, - "column": 41 - } - }, - "object": { - "type": "Identifier", - "start": 907, - "end": 913, - "loc": { - "start": { - "line": 43, - "column": 24 - }, - "end": { - "line": 43, - "column": 30 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 914, - "end": 924, - "loc": { - "start": { - "line": 43, - "column": 31 - }, - "end": { - "line": 43, - "column": 41 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 925, - "end": 933, - "loc": { - "start": { - "line": 43, - "column": 42 - }, - "end": { - "line": 43, - "column": 50 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 949, - "end": 974, - "loc": { - "start": { - "line": 45, - "column": 6 - }, - "end": { - "line": 45, - "column": 31 - } - }, - "callee": { - "type": "Identifier", - "start": 949, - "end": 964, - "loc": { - "start": { - "line": 45, - "column": 6 - }, - "end": { - "line": 45, - "column": 21 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 965, - "end": 973, - "loc": { - "start": { - "line": 45, - "column": 22 - }, - "end": { - "line": 45, - "column": 30 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 980, - "end": 1020, - "loc": { - "start": { - "line": 47, - "column": 2 - }, - "end": { - "line": 47, - "column": 42 - } - }, - "expression": { - "type": "CallExpression", - "start": 980, - "end": 1019, - "loc": { - "start": { - "line": 47, - "column": 2 - }, - "end": { - "line": 47, - "column": 41 - } - }, - "callee": { - "type": "MemberExpression", - "start": 980, - "end": 986, - "loc": { - "start": { - "line": 47, - "column": 2 - }, - "end": { - "line": 47, - "column": 8 - } - }, - "object": { - "type": "Identifier", - "start": 980, - "end": 983, - "loc": { - "start": { - "line": 47, - "column": 2 - }, - "end": { - "line": 47, - "column": 5 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 984, - "end": 986, - "loc": { - "start": { - "line": 47, - "column": 6 - }, - "end": { - "line": 47, - "column": 8 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 987, - "end": 994, - "loc": { - "start": { - "line": 47, - "column": 9 - }, - "end": { - "line": 47, - "column": 16 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 996, - "end": 1018, - "loc": { - "start": { - "line": 47, - "column": 18 - }, - "end": { - "line": 47, - "column": 40 - } - }, - "callee": { - "type": "Identifier", - "start": 996, - "end": 1008, - "loc": { - "start": { - "line": 47, - "column": 18 - }, - "end": { - "line": 47, - "column": 30 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1009, - "end": 1017, - "loc": { - "start": { - "line": 47, - "column": 31 - }, - "end": { - "line": 47, - "column": 39 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 1023, - "end": 1043, - "loc": { - "start": { - "line": 48, - "column": 2 - }, - "end": { - "line": 48, - "column": 22 - } - }, - "expression": { - "type": "CallExpression", - "start": 1023, - "end": 1042, - "loc": { - "start": { - "line": 48, - "column": 2 - }, - "end": { - "line": 48, - "column": 21 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1023, - "end": 1032, - "loc": { - "start": { - "line": 48, - "column": 2 - }, - "end": { - "line": 48, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 1023, - "end": 1026, - "loc": { - "start": { - "line": 48, - "column": 2 - }, - "end": { - "line": 48, - "column": 5 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 1027, - "end": 1032, - "loc": { - "start": { - "line": 48, - "column": 6 - }, - "end": { - "line": 48, - "column": 11 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1033, - "end": 1041, - "loc": { - "start": { - "line": 48, - "column": 12 - }, - "end": { - "line": 48, - "column": 20 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 1046, - "end": 1056, - "loc": { - "start": { - "line": 49, - "column": 2 - }, - "end": { - "line": 49, - "column": 12 - } - }, - "expression": { - "type": "CallExpression", - "start": 1046, - "end": 1055, - "loc": { - "start": { - "line": 49, - "column": 2 - }, - "end": { - "line": 49, - "column": 11 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1046, - "end": 1053, - "loc": { - "start": { - "line": 49, - "column": 2 - }, - "end": { - "line": 49, - "column": 9 - } - }, - "object": { - "type": "Identifier", - "start": 1046, - "end": 1049, - "loc": { - "start": { - "line": 49, - "column": 2 - }, - "end": { - "line": 49, - "column": 5 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 1050, - "end": 1053, - "loc": { - "start": { - "line": 49, - "column": 6 - }, - "end": { - "line": 49, - "column": 9 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - } - }, - "leadingComments": null - } - ], - "kind": "let", - "leadingComments": [ - { - "type": "CommentLine", - "value": " create webhook", - "start": 484, - "end": 501, - "loc": { - "start": { - "line": 27, - "column": 0 - }, - "end": { - "line": 27, - "column": 17 - } - } - } - ], - "trailingComments": [] - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " create webhook", - "start": 484, - "end": 501, - "loc": { - "start": { - "line": 27, - "column": 0 - }, - "end": { - "line": 27, - "column": 17 - } - } - } - ] - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "value": "use strict", - "extra": { - "raw": "'use strict'", - "rawValue": "use strict" - } - } - } - ] - }, - "comments": [ - { - "type": "CommentBlock", - "value": "*\n * Webook Methods\n ", - "start": 125, - "end": 150, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 10, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " list webhooks", - "start": 152, - "end": 168, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 12, - "column": 16 - } - } - }, - { - "type": "CommentLine", - "value": " create webhook", - "start": 484, - "end": 501, - "loc": { - "start": { - "line": 27, - "column": 0 - }, - "end": { - "line": 27, - "column": 17 - } - } - } - ], - "tokens": [ - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "use strict", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 12 - }, - "end": { - "line": 1, - "column": 13 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 14, - "end": 20, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 27, - "end": 31, - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 17 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "https", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 18 - }, - "end": { - "line": 2, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39, - "end": 40, - "loc": { - "start": { - "line": 2, - "column": 25 - }, - "end": { - "line": 2, - "column": 26 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 41, - "end": 47, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 48, - "end": 49, - "loc": { - "start": { - "line": 3, - "column": 7 - }, - "end": { - "line": 3, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 67, - "end": 68, - "loc": { - "start": { - "line": 4, - "column": 17 - }, - "end": { - "line": 4, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 69, - "end": 81, - "loc": { - "start": { - "line": 4, - "column": 19 - }, - "end": { - "line": 4, - "column": 31 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 81, - "end": 82, - "loc": { - "start": { - "line": 4, - "column": 31 - }, - "end": { - "line": 4, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 83, - "end": 102, - "loc": { - "start": { - "line": 4, - "column": 33 - }, - "end": { - "line": 4, - "column": 52 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 102, - "end": 103, - "loc": { - "start": { - "line": 4, - "column": 52 - }, - "end": { - "line": 4, - "column": 53 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 104, - "end": 105, - "loc": { - "start": { - "line": 5, - "column": 0 - }, - "end": { - "line": 5, - "column": 1 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 106, - "end": 110, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 6 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "./common", - "start": 111, - "end": 121, - "loc": { - "start": { - "line": 5, - "column": 7 - }, - "end": { - "line": 5, - "column": 17 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 121, - "end": 122, - "loc": { - "start": { - "line": 5, - "column": 17 - }, - "end": { - "line": 5, - "column": 18 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Webook Methods\n ", - "start": 125, - "end": 150, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 10, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " list webhooks", - "start": 152, - "end": 168, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 12, - "column": 16 - } - } - }, - { - "type": { - "label": "export", - "keyword": "export", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "export", - "start": 169, - "end": 175, - "loc": { - "start": { - "line": 13, - "column": 0 - }, - "end": { - "line": 13, - "column": 6 - } - } - }, - { - "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "let", - "start": 176, - "end": 179, - "loc": { - "start": { - "line": 13, - "column": 7 - }, - "end": { - "line": 13, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "list", - "start": 180, - "end": 184, - "loc": { - "start": { - "line": 13, - "column": 11 - }, - "end": { - "line": 13, - "column": 15 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 185, - "end": 186, - "loc": { - "start": { - "line": 13, - "column": 16 - }, - "end": { - "line": 13, - "column": 17 - } - } - }, - { - "type": { - "label": "function", - "keyword": "function", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "function", - "start": 187, - "end": 195, - "loc": { - "start": { - "line": 13, - "column": 18 - }, - "end": { - "line": 13, - "column": 26 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 195, - "end": 196, - "loc": { - "start": { - "line": 13, - "column": 26 - }, - "end": { - "line": 13, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "obj", - "start": 196, - "end": 199, - "loc": { - "start": { - "line": 13, - "column": 27 - }, - "end": { - "line": 13, - "column": 30 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 199, - "end": 200, - "loc": { - "start": { - "line": 13, - "column": 30 - }, - "end": { - "line": 13, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 201, - "end": 209, - "loc": { - "start": { - "line": 13, - "column": 32 - }, - "end": { - "line": 13, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 209, - "end": 210, - "loc": { - "start": { - "line": 13, - "column": 40 - }, - "end": { - "line": 13, - "column": 41 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 211, - "end": 212, - "loc": { - "start": { - "line": 13, - "column": 42 - }, - "end": { - "line": 13, - "column": 43 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 215, - "end": 220, - "loc": { - "start": { - "line": 14, - "column": 2 - }, - "end": { - "line": 14, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 221, - "end": 224, - "loc": { - "start": { - "line": 14, - "column": 8 - }, - "end": { - "line": 14, - "column": 11 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 225, - "end": 226, - "loc": { - "start": { - "line": 14, - "column": 12 - }, - "end": { - "line": 14, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 227, - "end": 232, - "loc": { - "start": { - "line": 14, - "column": 14 - }, - "end": { - "line": 14, - "column": 19 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 232, - "end": 233, - "loc": { - "start": { - "line": 14, - "column": 19 - }, - "end": { - "line": 14, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 233, - "end": 240, - "loc": { - "start": { - "line": 14, - "column": 20 - }, - "end": { - "line": 14, - "column": 27 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 240, - "end": 241, - "loc": { - "start": { - "line": 14, - "column": 27 - }, - "end": { - "line": 14, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 241, - "end": 260, - "loc": { - "start": { - "line": 14, - "column": 28 - }, - "end": { - "line": 14, - "column": 47 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 260, - "end": 261, - "loc": { - "start": { - "line": 14, - "column": 47 - }, - "end": { - "line": 14, - "column": 48 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 261, - "end": 262, - "loc": { - "start": { - "line": 14, - "column": 48 - }, - "end": { - "line": 14, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 267, - "end": 273, - "loc": { - "start": { - "line": 15, - "column": 4 - }, - "end": { - "line": 15, - "column": 10 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 273, - "end": 274, - "loc": { - "start": { - "line": 15, - "column": 10 - }, - "end": { - "line": 15, - "column": 11 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "GET", - "start": 275, - "end": 280, - "loc": { - "start": { - "line": 15, - "column": 12 - }, - "end": { - "line": 15, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 280, - "end": 281, - "loc": { - "start": { - "line": 15, - "column": 17 - }, - "end": { - "line": 15, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 286, - "end": 290, - "loc": { - "start": { - "line": 16, - "column": 4 - }, - "end": { - "line": 16, - "column": 8 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 290, - "end": 291, - "loc": { - "start": { - "line": 16, - "column": 8 - }, - "end": { - "line": 16, - "column": 9 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/event_subscription", - "start": 292, - "end": 313, - "loc": { - "start": { - "line": 16, - "column": 10 - }, - "end": { - "line": 16, - "column": 31 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 313, - "end": 314, - "loc": { - "start": { - "line": 16, - "column": 31 - }, - "end": { - "line": 16, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 319, - "end": 332, - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 17, - "column": 17 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 332, - "end": 333, - "loc": { - "start": { - "line": 17, - "column": 17 - }, - "end": { - "line": 17, - "column": 18 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 334, - "end": 335, - "loc": { - "start": { - "line": 17, - "column": 19 - }, - "end": { - "line": 17, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 342, - "end": 346, - "loc": { - "start": { - "line": 18, - "column": 6 - }, - "end": { - "line": 18, - "column": 10 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 346, - "end": 347, - "loc": { - "start": { - "line": 18, - "column": 10 - }, - "end": { - "line": 18, - "column": 11 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 348, - "end": 356, - "loc": { - "start": { - "line": 18, - "column": 12 - }, - "end": { - "line": 18, - "column": 20 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 356, - "end": 357, - "loc": { - "start": { - "line": 18, - "column": 20 - }, - "end": { - "line": 18, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 364, - "end": 369, - "loc": { - "start": { - "line": 19, - "column": 6 - }, - "end": { - "line": 19, - "column": 11 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 369, - "end": 370, - "loc": { - "start": { - "line": 19, - "column": 11 - }, - "end": { - "line": 19, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "obj", - "start": 371, - "end": 374, - "loc": { - "start": { - "line": 19, - "column": 13 - }, - "end": { - "line": 19, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 374, - "end": 375, - "loc": { - "start": { - "line": 19, - "column": 16 - }, - "end": { - "line": 19, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 375, - "end": 380, - "loc": { - "start": { - "line": 19, - "column": 17 - }, - "end": { - "line": 19, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 380, - "end": 381, - "loc": { - "start": { - "line": 19, - "column": 22 - }, - "end": { - "line": 19, - "column": 23 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 386, - "end": 387, - "loc": { - "start": { - "line": 20, - "column": 4 - }, - "end": { - "line": 20, - "column": 5 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 387, - "end": 388, - "loc": { - "start": { - "line": 20, - "column": 5 - }, - "end": { - "line": 20, - "column": 6 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 391, - "end": 392, - "loc": { - "start": { - "line": 21, - "column": 2 - }, - "end": { - "line": 21, - "column": 3 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 392, - "end": 393, - "loc": { - "start": { - "line": 21, - "column": 3 - }, - "end": { - "line": 21, - "column": 4 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 393, - "end": 394, - "loc": { - "start": { - "line": 21, - "column": 4 - }, - "end": { - "line": 21, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 395, - "end": 410, - "loc": { - "start": { - "line": 21, - "column": 6 - }, - "end": { - "line": 21, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 410, - "end": 411, - "loc": { - "start": { - "line": 21, - "column": 21 - }, - "end": { - "line": 21, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 411, - "end": 419, - "loc": { - "start": { - "line": 21, - "column": 22 - }, - "end": { - "line": 21, - "column": 30 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 419, - "end": 420, - "loc": { - "start": { - "line": 21, - "column": 30 - }, - "end": { - "line": 21, - "column": 31 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 420, - "end": 421, - "loc": { - "start": { - "line": 21, - "column": 31 - }, - "end": { - "line": 21, - "column": 32 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 421, - "end": 422, - "loc": { - "start": { - "line": 21, - "column": 32 - }, - "end": { - "line": 21, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 426, - "end": 429, - "loc": { - "start": { - "line": 23, - "column": 2 - }, - "end": { - "line": 23, - "column": 5 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 429, - "end": 430, - "loc": { - "start": { - "line": 23, - "column": 5 - }, - "end": { - "line": 23, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 430, - "end": 432, - "loc": { - "start": { - "line": 23, - "column": 6 - }, - "end": { - "line": 23, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 432, - "end": 433, - "loc": { - "start": { - "line": 23, - "column": 8 - }, - "end": { - "line": 23, - "column": 9 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 433, - "end": 440, - "loc": { - "start": { - "line": 23, - "column": 9 - }, - "end": { - "line": 23, - "column": 16 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 440, - "end": 441, - "loc": { - "start": { - "line": 23, - "column": 16 - }, - "end": { - "line": 23, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 442, - "end": 454, - "loc": { - "start": { - "line": 23, - "column": 18 - }, - "end": { - "line": 23, - "column": 30 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 454, - "end": 455, - "loc": { - "start": { - "line": 23, - "column": 30 - }, - "end": { - "line": 23, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 455, - "end": 463, - "loc": { - "start": { - "line": 23, - "column": 31 - }, - "end": { - "line": 23, - "column": 39 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 463, - "end": 464, - "loc": { - "start": { - "line": 23, - "column": 39 - }, - "end": { - "line": 23, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 464, - "end": 465, - "loc": { - "start": { - "line": 23, - "column": 40 - }, - "end": { - "line": 23, - "column": 41 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 465, - "end": 466, - "loc": { - "start": { - "line": 23, - "column": 41 - }, - "end": { - "line": 23, - "column": 42 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 469, - "end": 472, - "loc": { - "start": { - "line": 24, - "column": 2 - }, - "end": { - "line": 24, - "column": 5 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 472, - "end": 473, - "loc": { - "start": { - "line": 24, - "column": 5 - }, - "end": { - "line": 24, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 473, - "end": 476, - "loc": { - "start": { - "line": 24, - "column": 6 - }, - "end": { - "line": 24, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 476, - "end": 477, - "loc": { - "start": { - "line": 24, - "column": 9 - }, - "end": { - "line": 24, - "column": 10 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 477, - "end": 478, - "loc": { - "start": { - "line": 24, - "column": 10 - }, - "end": { - "line": 24, - "column": 11 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 478, - "end": 479, - "loc": { - "start": { - "line": 24, - "column": 11 - }, - "end": { - "line": 24, - "column": 12 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 480, - "end": 481, - "loc": { - "start": { - "line": 25, - "column": 0 - }, - "end": { - "line": 25, - "column": 1 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 481, - "end": 482, - "loc": { - "start": { - "line": 25, - "column": 1 - }, - "end": { - "line": 25, - "column": 2 - } - } - }, - { - "type": "CommentLine", - "value": " create webhook", - "start": 484, - "end": 501, - "loc": { - "start": { - "line": 27, - "column": 0 - }, - "end": { - "line": 27, - "column": 17 - } - } - }, - { - "type": { - "label": "export", - "keyword": "export", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "export", - "start": 502, - "end": 508, - "loc": { - "start": { - "line": 28, - "column": 0 - }, - "end": { - "line": 28, - "column": 6 - } - } - }, - { - "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "let", - "start": 509, - "end": 512, - "loc": { - "start": { - "line": 28, - "column": 7 - }, - "end": { - "line": 28, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "create", - "start": 513, - "end": 519, - "loc": { - "start": { - "line": 28, - "column": 11 - }, - "end": { - "line": 28, - "column": 17 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 520, - "end": 521, - "loc": { - "start": { - "line": 28, - "column": 18 - }, - "end": { - "line": 28, - "column": 19 - } - } - }, - { - "type": { - "label": "function", - "keyword": "function", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "function", - "start": 522, - "end": 530, - "loc": { - "start": { - "line": 28, - "column": 20 - }, - "end": { - "line": 28, - "column": 28 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 530, - "end": 531, - "loc": { - "start": { - "line": 28, - "column": 28 - }, - "end": { - "line": 28, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "obj", - "start": 531, - "end": 534, - "loc": { - "start": { - "line": 28, - "column": 29 - }, - "end": { - "line": 28, - "column": 32 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 534, - "end": 535, - "loc": { - "start": { - "line": 28, - "column": 32 - }, - "end": { - "line": 28, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 536, - "end": 544, - "loc": { - "start": { - "line": 28, - "column": 34 - }, - "end": { - "line": 28, - "column": 42 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 544, - "end": 545, - "loc": { - "start": { - "line": 28, - "column": 42 - }, - "end": { - "line": 28, - "column": 43 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 546, - "end": 547, - "loc": { - "start": { - "line": 28, - "column": 44 - }, - "end": { - "line": 28, - "column": 45 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 550, - "end": 555, - "loc": { - "start": { - "line": 29, - "column": 2 - }, - "end": { - "line": 29, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 556, - "end": 564, - "loc": { - "start": { - "line": 29, - "column": 8 - }, - "end": { - "line": 29, - "column": 16 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 565, - "end": 566, - "loc": { - "start": { - "line": 29, - "column": 17 - }, - "end": { - "line": 29, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSON", - "start": 567, - "end": 571, - "loc": { - "start": { - "line": 29, - "column": 19 - }, - "end": { - "line": 29, - "column": 23 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 571, - "end": 572, - "loc": { - "start": { - "line": 29, - "column": 23 - }, - "end": { - "line": 29, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "stringify", - "start": 572, - "end": 581, - "loc": { - "start": { - "line": 29, - "column": 24 - }, - "end": { - "line": 29, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 581, - "end": 582, - "loc": { - "start": { - "line": 29, - "column": 33 - }, - "end": { - "line": 29, - "column": 34 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 582, - "end": 583, - "loc": { - "start": { - "line": 29, - "column": 34 - }, - "end": { - "line": 29, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "event", - "start": 588, - "end": 593, - "loc": { - "start": { - "line": 30, - "column": 4 - }, - "end": { - "line": 30, - "column": 9 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 593, - "end": 594, - "loc": { - "start": { - "line": 30, - "column": 9 - }, - "end": { - "line": 30, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "obj", - "start": 595, - "end": 598, - "loc": { - "start": { - "line": 30, - "column": 11 - }, - "end": { - "line": 30, - "column": 14 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 598, - "end": 599, - "loc": { - "start": { - "line": 30, - "column": 14 - }, - "end": { - "line": 30, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "event", - "start": 599, - "end": 604, - "loc": { - "start": { - "line": 30, - "column": 15 - }, - "end": { - "line": 30, - "column": 20 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 604, - "end": 605, - "loc": { - "start": { - "line": 30, - "column": 20 - }, - "end": { - "line": 30, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback_url", - "start": 610, - "end": 622, - "loc": { - "start": { - "line": 31, - "column": 4 - }, - "end": { - "line": 31, - "column": 16 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 622, - "end": 623, - "loc": { - "start": { - "line": 31, - "column": 16 - }, - "end": { - "line": 31, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "obj", - "start": 624, - "end": 627, - "loc": { - "start": { - "line": 31, - "column": 18 - }, - "end": { - "line": 31, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 627, - "end": 628, - "loc": { - "start": { - "line": 31, - "column": 21 - }, - "end": { - "line": 31, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback_url", - "start": 628, - "end": 640, - "loc": { - "start": { - "line": 31, - "column": 22 - }, - "end": { - "line": 31, - "column": 34 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 640, - "end": 641, - "loc": { - "start": { - "line": 31, - "column": 34 - }, - "end": { - "line": 31, - "column": 35 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 644, - "end": 645, - "loc": { - "start": { - "line": 32, - "column": 2 - }, - "end": { - "line": 32, - "column": 3 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 645, - "end": 646, - "loc": { - "start": { - "line": 32, - "column": 3 - }, - "end": { - "line": 32, - "column": 4 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 646, - "end": 647, - "loc": { - "start": { - "line": 32, - "column": 4 - }, - "end": { - "line": 32, - "column": 5 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 651, - "end": 656, - "loc": { - "start": { - "line": 34, - "column": 2 - }, - "end": { - "line": 34, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 657, - "end": 660, - "loc": { - "start": { - "line": 34, - "column": 8 - }, - "end": { - "line": 34, - "column": 11 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 661, - "end": 662, - "loc": { - "start": { - "line": 34, - "column": 12 - }, - "end": { - "line": 34, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 663, - "end": 668, - "loc": { - "start": { - "line": 34, - "column": 14 - }, - "end": { - "line": 34, - "column": 19 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 668, - "end": 669, - "loc": { - "start": { - "line": 34, - "column": 19 - }, - "end": { - "line": 34, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 669, - "end": 676, - "loc": { - "start": { - "line": 34, - "column": 20 - }, - "end": { - "line": 34, - "column": 27 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 676, - "end": 677, - "loc": { - "start": { - "line": 34, - "column": 27 - }, - "end": { - "line": 34, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 677, - "end": 696, - "loc": { - "start": { - "line": 34, - "column": 28 - }, - "end": { - "line": 34, - "column": 47 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 696, - "end": 697, - "loc": { - "start": { - "line": 34, - "column": 47 - }, - "end": { - "line": 34, - "column": 48 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 697, - "end": 698, - "loc": { - "start": { - "line": 34, - "column": 48 - }, - "end": { - "line": 34, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 703, - "end": 709, - "loc": { - "start": { - "line": 35, - "column": 4 - }, - "end": { - "line": 35, - "column": 10 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 709, - "end": 710, - "loc": { - "start": { - "line": 35, - "column": 10 - }, - "end": { - "line": 35, - "column": 11 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "POST", - "start": 711, - "end": 717, - "loc": { - "start": { - "line": 35, - "column": 12 - }, - "end": { - "line": 35, - "column": 18 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 717, - "end": 718, - "loc": { - "start": { - "line": 35, - "column": 18 - }, - "end": { - "line": 35, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 723, - "end": 727, - "loc": { - "start": { - "line": 36, - "column": 4 - }, - "end": { - "line": 36, - "column": 8 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 727, - "end": 728, - "loc": { - "start": { - "line": 36, - "column": 8 - }, - "end": { - "line": 36, - "column": 9 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/event_subscription", - "start": 729, - "end": 750, - "loc": { - "start": { - "line": 36, - "column": 10 - }, - "end": { - "line": 36, - "column": 31 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 750, - "end": 751, - "loc": { - "start": { - "line": 36, - "column": 31 - }, - "end": { - "line": 36, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 756, - "end": 769, - "loc": { - "start": { - "line": 37, - "column": 4 - }, - "end": { - "line": 37, - "column": 17 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 769, - "end": 770, - "loc": { - "start": { - "line": 37, - "column": 17 - }, - "end": { - "line": 37, - "column": 18 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 771, - "end": 772, - "loc": { - "start": { - "line": 37, - "column": 19 - }, - "end": { - "line": 37, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 779, - "end": 783, - "loc": { - "start": { - "line": 38, - "column": 6 - }, - "end": { - "line": 38, - "column": 10 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 783, - "end": 784, - "loc": { - "start": { - "line": 38, - "column": 10 - }, - "end": { - "line": 38, - "column": 11 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 785, - "end": 793, - "loc": { - "start": { - "line": 38, - "column": 12 - }, - "end": { - "line": 38, - "column": 20 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 793, - "end": 794, - "loc": { - "start": { - "line": 38, - "column": 20 - }, - "end": { - "line": 38, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 801, - "end": 806, - "loc": { - "start": { - "line": 39, - "column": 6 - }, - "end": { - "line": 39, - "column": 11 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 806, - "end": 807, - "loc": { - "start": { - "line": 39, - "column": 11 - }, - "end": { - "line": 39, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "obj", - "start": 808, - "end": 811, - "loc": { - "start": { - "line": 39, - "column": 13 - }, - "end": { - "line": 39, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 811, - "end": 812, - "loc": { - "start": { - "line": 39, - "column": 16 - }, - "end": { - "line": 39, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 812, - "end": 817, - "loc": { - "start": { - "line": 39, - "column": 17 - }, - "end": { - "line": 39, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 817, - "end": 818, - "loc": { - "start": { - "line": 39, - "column": 22 - }, - "end": { - "line": 39, - "column": 23 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 823, - "end": 824, - "loc": { - "start": { - "line": 40, - "column": 4 - }, - "end": { - "line": 40, - "column": 5 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 824, - "end": 825, - "loc": { - "start": { - "line": 40, - "column": 5 - }, - "end": { - "line": 40, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 830, - "end": 837, - "loc": { - "start": { - "line": 41, - "column": 4 - }, - "end": { - "line": 41, - "column": 11 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 837, - "end": 838, - "loc": { - "start": { - "line": 41, - "column": 11 - }, - "end": { - "line": 41, - "column": 12 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 839, - "end": 840, - "loc": { - "start": { - "line": 41, - "column": 13 - }, - "end": { - "line": 41, - "column": 14 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type", - "start": 847, - "end": 861, - "loc": { - "start": { - "line": 42, - "column": 6 - }, - "end": { - "line": 42, - "column": 20 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 861, - "end": 862, - "loc": { - "start": { - "line": 42, - "column": 20 - }, - "end": { - "line": 42, - "column": 21 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/json", - "start": 863, - "end": 881, - "loc": { - "start": { - "line": 42, - "column": 22 - }, - "end": { - "line": 42, - "column": 40 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 881, - "end": 882, - "loc": { - "start": { - "line": 42, - "column": 40 - }, - "end": { - "line": 42, - "column": 41 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Length", - "start": 889, - "end": 905, - "loc": { - "start": { - "line": 43, - "column": 6 - }, - "end": { - "line": 43, - "column": 22 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 905, - "end": 906, - "loc": { - "start": { - "line": 43, - "column": 22 - }, - "end": { - "line": 43, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 907, - "end": 913, - "loc": { - "start": { - "line": 43, - "column": 24 - }, - "end": { - "line": 43, - "column": 30 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 913, - "end": 914, - "loc": { - "start": { - "line": 43, - "column": 30 - }, - "end": { - "line": 43, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "byteLength", - "start": 914, - "end": 924, - "loc": { - "start": { - "line": 43, - "column": 31 - }, - "end": { - "line": 43, - "column": 41 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 924, - "end": 925, - "loc": { - "start": { - "line": 43, - "column": 41 - }, - "end": { - "line": 43, - "column": 42 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 925, - "end": 933, - "loc": { - "start": { - "line": 43, - "column": 42 - }, - "end": { - "line": 43, - "column": 50 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 933, - "end": 934, - "loc": { - "start": { - "line": 43, - "column": 50 - }, - "end": { - "line": 43, - "column": 51 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 934, - "end": 935, - "loc": { - "start": { - "line": 43, - "column": 51 - }, - "end": { - "line": 43, - "column": 52 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 940, - "end": 941, - "loc": { - "start": { - "line": 44, - "column": 4 - }, - "end": { - "line": 44, - "column": 5 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 941, - "end": 942, - "loc": { - "start": { - "line": 44, - "column": 5 - }, - "end": { - "line": 44, - "column": 6 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 945, - "end": 946, - "loc": { - "start": { - "line": 45, - "column": 2 - }, - "end": { - "line": 45, - "column": 3 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 946, - "end": 947, - "loc": { - "start": { - "line": 45, - "column": 3 - }, - "end": { - "line": 45, - "column": 4 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 947, - "end": 948, - "loc": { - "start": { - "line": 45, - "column": 4 - }, - "end": { - "line": 45, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 949, - "end": 964, - "loc": { - "start": { - "line": 45, - "column": 6 - }, - "end": { - "line": 45, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 964, - "end": 965, - "loc": { - "start": { - "line": 45, - "column": 21 - }, - "end": { - "line": 45, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 965, - "end": 973, - "loc": { - "start": { - "line": 45, - "column": 22 - }, - "end": { - "line": 45, - "column": 30 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 973, - "end": 974, - "loc": { - "start": { - "line": 45, - "column": 30 - }, - "end": { - "line": 45, - "column": 31 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 974, - "end": 975, - "loc": { - "start": { - "line": 45, - "column": 31 - }, - "end": { - "line": 45, - "column": 32 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 975, - "end": 976, - "loc": { - "start": { - "line": 45, - "column": 32 - }, - "end": { - "line": 45, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 980, - "end": 983, - "loc": { - "start": { - "line": 47, - "column": 2 - }, - "end": { - "line": 47, - "column": 5 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 983, - "end": 984, - "loc": { - "start": { - "line": 47, - "column": 5 - }, - "end": { - "line": 47, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 984, - "end": 986, - "loc": { - "start": { - "line": 47, - "column": 6 - }, - "end": { - "line": 47, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 986, - "end": 987, - "loc": { - "start": { - "line": 47, - "column": 8 - }, - "end": { - "line": 47, - "column": 9 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 987, - "end": 994, - "loc": { - "start": { - "line": 47, - "column": 9 - }, - "end": { - "line": 47, - "column": 16 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 994, - "end": 995, - "loc": { - "start": { - "line": 47, - "column": 16 - }, - "end": { - "line": 47, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 996, - "end": 1008, - "loc": { - "start": { - "line": 47, - "column": 18 - }, - "end": { - "line": 47, - "column": 30 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1008, - "end": 1009, - "loc": { - "start": { - "line": 47, - "column": 30 - }, - "end": { - "line": 47, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 1009, - "end": 1017, - "loc": { - "start": { - "line": 47, - "column": 31 - }, - "end": { - "line": 47, - "column": 39 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1017, - "end": 1018, - "loc": { - "start": { - "line": 47, - "column": 39 - }, - "end": { - "line": 47, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1018, - "end": 1019, - "loc": { - "start": { - "line": 47, - "column": 40 - }, - "end": { - "line": 47, - "column": 41 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1019, - "end": 1020, - "loc": { - "start": { - "line": 47, - "column": 41 - }, - "end": { - "line": 47, - "column": 42 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 1023, - "end": 1026, - "loc": { - "start": { - "line": 48, - "column": 2 - }, - "end": { - "line": 48, - "column": 5 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1026, - "end": 1027, - "loc": { - "start": { - "line": 48, - "column": 5 - }, - "end": { - "line": 48, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "write", - "start": 1027, - "end": 1032, - "loc": { - "start": { - "line": 48, - "column": 6 - }, - "end": { - "line": 48, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1032, - "end": 1033, - "loc": { - "start": { - "line": 48, - "column": 11 - }, - "end": { - "line": 48, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 1033, - "end": 1041, - "loc": { - "start": { - "line": 48, - "column": 12 - }, - "end": { - "line": 48, - "column": 20 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1041, - "end": 1042, - "loc": { - "start": { - "line": 48, - "column": 20 - }, - "end": { - "line": 48, - "column": 21 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1042, - "end": 1043, - "loc": { - "start": { - "line": 48, - "column": 21 - }, - "end": { - "line": 48, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 1046, - "end": 1049, - "loc": { - "start": { - "line": 49, - "column": 2 - }, - "end": { - "line": 49, - "column": 5 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1049, - "end": 1050, - "loc": { - "start": { - "line": 49, - "column": 5 - }, - "end": { - "line": 49, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 1050, - "end": 1053, - "loc": { - "start": { - "line": 49, - "column": 6 - }, - "end": { - "line": 49, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1053, - "end": 1054, - "loc": { - "start": { - "line": 49, - "column": 9 - }, - "end": { - "line": 49, - "column": 10 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1054, - "end": 1055, - "loc": { - "start": { - "line": 49, - "column": 10 - }, - "end": { - "line": 49, - "column": 11 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1055, - "end": 1056, - "loc": { - "start": { - "line": 49, - "column": 11 - }, - "end": { - "line": 49, - "column": 12 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1057, - "end": 1058, - "loc": { - "start": { - "line": 50, - "column": 0 - }, - "end": { - "line": 50, - "column": 1 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1058, - "end": 1059, - "loc": { - "start": { - "line": 50, - "column": 1 - }, - "end": { - "line": 50, - "column": 2 - } - } - }, - { - "type": { - "label": "eof", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1060, - "end": 1060, - "loc": { - "start": { - "line": 51, - "column": 0 - }, - "end": { - "line": 51, - "column": 0 - } - } - } - ] -} \ No newline at end of file diff --git a/docs/ast/source/webhook/index.js.json b/docs/ast/source/webhook/index.js.json deleted file mode 100644 index 79e66e92..00000000 --- a/docs/ast/source/webhook/index.js.json +++ /dev/null @@ -1,10447 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 1177, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 63, - "column": 0 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 1177, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 63, - "column": 0 - } - }, - "sourceType": "module", - "body": [ - { - "type": "ImportDeclaration", - "start": 14, - "end": 40, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 26 - } - }, - "specifiers": [ - { - "type": "ImportDefaultSpecifier", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - } - }, - "local": { - "type": "Identifier", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - }, - "identifierName": "https" - }, - "name": "https" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 18 - }, - "end": { - "line": 2, - "column": 25 - } - }, - "extra": { - "rawValue": "https", - "raw": "'https'" - }, - "value": "https" - } - }, - { - "type": "ImportDeclaration", - "start": 41, - "end": 127, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 7, - "column": 19 - } - }, - "specifiers": [ - { - "type": "ImportSpecifier", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - } - }, - "imported": { - "type": "Identifier", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "local": { - "type": "Identifier", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - } - }, - { - "type": "ImportSpecifier", - "start": 71, - "end": 83, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 14 - } - }, - "imported": { - "type": "Identifier", - "start": 71, - "end": 83, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 14 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "local": { - "type": "Identifier", - "start": 71, - "end": 83, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 14 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - } - }, - { - "type": "ImportSpecifier", - "start": 87, - "end": 106, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 21 - } - }, - "imported": { - "type": "Identifier", - "start": 87, - "end": 106, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 21 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "local": { - "type": "Identifier", - "start": 87, - "end": 106, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 21 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 115, - "end": 126, - "loc": { - "start": { - "line": 7, - "column": 7 - }, - "end": { - "line": 7, - "column": 18 - } - }, - "extra": { - "rawValue": "../common", - "raw": "'../common'" - }, - "value": "../common" - }, - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Webook methods\n ", - "start": 130, - "end": 155, - "loc": { - "start": { - "line": 10, - "column": 0 - }, - "end": { - "line": 12, - "column": 3 - } - } - } - ] - }, - { - "type": "Identifier", - "start": 156, - "end": 1151, - "loc": { - "start": { - "line": 13, - "column": 0 - }, - "end": { - "line": 60, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 162, - "end": 169, - "loc": { - "start": { - "line": 13, - "column": 6 - }, - "end": { - "line": 13, - "column": 13 - }, - "identifierName": "Webhook" - }, - "name": "Webhook", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 170, - "end": 1151, - "loc": { - "start": { - "line": 13, - "column": 14 - }, - "end": { - "line": 60, - "column": 1 - } - }, - "body": [ - { - "type": "ClassMethod", - "start": 194, - "end": 513, - "loc": { - "start": { - "line": 16, - "column": 2 - }, - "end": { - "line": 28, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 201, - "end": 205, - "loc": { - "start": { - "line": 16, - "column": 9 - }, - "end": { - "line": 16, - "column": 13 - }, - "identifierName": "list" - }, - "name": "list" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 207, - "end": 216, - "loc": { - "start": { - "line": 16, - "column": 15 - }, - "end": { - "line": 16, - "column": 24 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 209, - "end": 214, - "loc": { - "start": { - "line": 16, - "column": 17 - }, - "end": { - "line": 16, - "column": 22 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 209, - "end": 214, - "loc": { - "start": { - "line": 16, - "column": 17 - }, - "end": { - "line": 16, - "column": 22 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 209, - "end": 214, - "loc": { - "start": { - "line": 16, - "column": 17 - }, - "end": { - "line": 16, - "column": 22 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 218, - "end": 226, - "loc": { - "start": { - "line": 16, - "column": 26 - }, - "end": { - "line": 16, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 228, - "end": 513, - "loc": { - "start": { - "line": 16, - "column": 36 - }, - "end": { - "line": 28, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 234, - "end": 509, - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 27, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 234, - "end": 508, - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 27, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 234, - "end": 506, - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 27, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 234, - "end": 495, - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 26, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 234, - "end": 462, - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 26, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 234, - "end": 452, - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 25, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 234, - "end": 254, - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 18, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 234, - "end": 239, - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 17, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 247, - "end": 254, - "loc": { - "start": { - "line": 18, - "column": 7 - }, - "end": { - "line": 18, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 255, - "end": 424, - "loc": { - "start": { - "line": 18, - "column": 15 - }, - "end": { - "line": 25, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 255, - "end": 274, - "loc": { - "start": { - "line": 18, - "column": 15 - }, - "end": { - "line": 18, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 275, - "end": 423, - "loc": { - "start": { - "line": 18, - "column": 35 - }, - "end": { - "line": 25, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 285, - "end": 298, - "loc": { - "start": { - "line": 19, - "column": 8 - }, - "end": { - "line": 19, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 285, - "end": 291, - "loc": { - "start": { - "line": 19, - "column": 8 - }, - "end": { - "line": 19, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 293, - "end": 298, - "loc": { - "start": { - "line": 19, - "column": 16 - }, - "end": { - "line": 19, - "column": 21 - } - }, - "extra": { - "rawValue": "GET", - "raw": "'GET'" - }, - "value": "GET" - } - }, - { - "type": "ObjectProperty", - "start": 308, - "end": 335, - "loc": { - "start": { - "line": 20, - "column": 8 - }, - "end": { - "line": 20, - "column": 35 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 308, - "end": 312, - "loc": { - "start": { - "line": 20, - "column": 8 - }, - "end": { - "line": 20, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 314, - "end": 335, - "loc": { - "start": { - "line": 20, - "column": 14 - }, - "end": { - "line": 20, - "column": 35 - } - }, - "extra": { - "rawValue": "/event_subscription", - "raw": "'/event_subscription'" - }, - "value": "/event_subscription" - } - }, - { - "type": "ObjectProperty", - "start": 345, - "end": 414, - "loc": { - "start": { - "line": 21, - "column": 8 - }, - "end": { - "line": 24, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 345, - "end": 358, - "loc": { - "start": { - "line": 21, - "column": 8 - }, - "end": { - "line": 21, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 360, - "end": 414, - "loc": { - "start": { - "line": 21, - "column": 23 - }, - "end": { - "line": 24, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 372, - "end": 386, - "loc": { - "start": { - "line": 22, - "column": 10 - }, - "end": { - "line": 22, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 372, - "end": 376, - "loc": { - "start": { - "line": 22, - "column": 10 - }, - "end": { - "line": 22, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 378, - "end": 386, - "loc": { - "start": { - "line": 22, - "column": 16 - }, - "end": { - "line": 22, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 398, - "end": 403, - "loc": { - "start": { - "line": 23, - "column": 10 - }, - "end": { - "line": 23, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 398, - "end": 403, - "loc": { - "start": { - "line": 23, - "column": 10 - }, - "end": { - "line": 23, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 398, - "end": 403, - "loc": { - "start": { - "line": 23, - "column": 10 - }, - "end": { - "line": 23, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 426, - "end": 451, - "loc": { - "start": { - "line": 25, - "column": 10 - }, - "end": { - "line": 25, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 426, - "end": 441, - "loc": { - "start": { - "line": 25, - "column": 10 - }, - "end": { - "line": 25, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 442, - "end": 450, - "loc": { - "start": { - "line": 25, - "column": 26 - }, - "end": { - "line": 25, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 460, - "end": 462, - "loc": { - "start": { - "line": 26, - "column": 7 - }, - "end": { - "line": 26, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 463, - "end": 470, - "loc": { - "start": { - "line": 26, - "column": 10 - }, - "end": { - "line": 26, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 472, - "end": 494, - "loc": { - "start": { - "line": 26, - "column": 19 - }, - "end": { - "line": 26, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 472, - "end": 484, - "loc": { - "start": { - "line": 26, - "column": 19 - }, - "end": { - "line": 26, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 485, - "end": 493, - "loc": { - "start": { - "line": 26, - "column": 32 - }, - "end": { - "line": 26, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 503, - "end": 506, - "loc": { - "start": { - "line": 27, - "column": 7 - }, - "end": { - "line": 27, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " list webhooks", - "start": 175, - "end": 191, - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 15, - "column": 18 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " create webhook", - "start": 517, - "end": 534, - "loc": { - "start": { - "line": 30, - "column": 2 - }, - "end": { - "line": 30, - "column": 19 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 537, - "end": 1148, - "loc": { - "start": { - "line": 31, - "column": 2 - }, - "end": { - "line": 58, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 544, - "end": 550, - "loc": { - "start": { - "line": 31, - "column": 9 - }, - "end": { - "line": 31, - "column": 15 - }, - "identifierName": "create" - }, - "name": "create" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 552, - "end": 597, - "loc": { - "start": { - "line": 31, - "column": 17 - }, - "end": { - "line": 35, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 558, - "end": 563, - "loc": { - "start": { - "line": 32, - "column": 4 - }, - "end": { - "line": 32, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 558, - "end": 563, - "loc": { - "start": { - "line": 32, - "column": 4 - }, - "end": { - "line": 32, - "column": 9 - }, - "identifierName": "event" - }, - "name": "event" - }, - "value": { - "type": "Identifier", - "start": 558, - "end": 563, - "loc": { - "start": { - "line": 32, - "column": 4 - }, - "end": { - "line": 32, - "column": 9 - }, - "identifierName": "event" - }, - "name": "event" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 569, - "end": 581, - "loc": { - "start": { - "line": 33, - "column": 4 - }, - "end": { - "line": 33, - "column": 16 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 569, - "end": 581, - "loc": { - "start": { - "line": 33, - "column": 4 - }, - "end": { - "line": 33, - "column": 16 - }, - "identifierName": "callback_url" - }, - "name": "callback_url" - }, - "value": { - "type": "Identifier", - "start": 569, - "end": 581, - "loc": { - "start": { - "line": 33, - "column": 4 - }, - "end": { - "line": 33, - "column": 16 - }, - "identifierName": "callback_url" - }, - "name": "callback_url" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 587, - "end": 592, - "loc": { - "start": { - "line": 34, - "column": 4 - }, - "end": { - "line": 34, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 587, - "end": 592, - "loc": { - "start": { - "line": 34, - "column": 4 - }, - "end": { - "line": 34, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 587, - "end": 592, - "loc": { - "start": { - "line": 34, - "column": 4 - }, - "end": { - "line": 34, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 599, - "end": 607, - "loc": { - "start": { - "line": 35, - "column": 5 - }, - "end": { - "line": 35, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 609, - "end": 1148, - "loc": { - "start": { - "line": 35, - "column": 15 - }, - "end": { - "line": 58, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 615, - "end": 689, - "loc": { - "start": { - "line": 36, - "column": 4 - }, - "end": { - "line": 39, - "column": 7 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 621, - "end": 688, - "loc": { - "start": { - "line": 36, - "column": 10 - }, - "end": { - "line": 39, - "column": 6 - } - }, - "id": { - "type": "Identifier", - "start": 621, - "end": 629, - "loc": { - "start": { - "line": 36, - "column": 10 - }, - "end": { - "line": 36, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 632, - "end": 688, - "loc": { - "start": { - "line": 36, - "column": 21 - }, - "end": { - "line": 39, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 632, - "end": 646, - "loc": { - "start": { - "line": 36, - "column": 21 - }, - "end": { - "line": 36, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 632, - "end": 636, - "loc": { - "start": { - "line": 36, - "column": 21 - }, - "end": { - "line": 36, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 637, - "end": 646, - "loc": { - "start": { - "line": 36, - "column": 26 - }, - "end": { - "line": 36, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 647, - "end": 687, - "loc": { - "start": { - "line": 36, - "column": 36 - }, - "end": { - "line": 39, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 655, - "end": 660, - "loc": { - "start": { - "line": 37, - "column": 6 - }, - "end": { - "line": 37, - "column": 11 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 655, - "end": 660, - "loc": { - "start": { - "line": 37, - "column": 6 - }, - "end": { - "line": 37, - "column": 11 - }, - "identifierName": "event" - }, - "name": "event" - }, - "value": { - "type": "Identifier", - "start": 655, - "end": 660, - "loc": { - "start": { - "line": 37, - "column": 6 - }, - "end": { - "line": 37, - "column": 11 - }, - "identifierName": "event" - }, - "name": "event" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 668, - "end": 680, - "loc": { - "start": { - "line": 38, - "column": 6 - }, - "end": { - "line": 38, - "column": 18 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 668, - "end": 680, - "loc": { - "start": { - "line": 38, - "column": 6 - }, - "end": { - "line": 38, - "column": 18 - }, - "identifierName": "callback_url" - }, - "name": "callback_url" - }, - "value": { - "type": "Identifier", - "start": 668, - "end": 680, - "loc": { - "start": { - "line": 38, - "column": 6 - }, - "end": { - "line": 38, - "column": 18 - }, - "identifierName": "callback_url" - }, - "name": "callback_url" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 695, - "end": 1103, - "loc": { - "start": { - "line": 41, - "column": 4 - }, - "end": { - "line": 54, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 701, - "end": 1102, - "loc": { - "start": { - "line": 41, - "column": 10 - }, - "end": { - "line": 54, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 701, - "end": 704, - "loc": { - "start": { - "line": 41, - "column": 10 - }, - "end": { - "line": 41, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 707, - "end": 1102, - "loc": { - "start": { - "line": 41, - "column": 16 - }, - "end": { - "line": 54, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 707, - "end": 1069, - "loc": { - "start": { - "line": 41, - "column": 16 - }, - "end": { - "line": 54, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 707, - "end": 1059, - "loc": { - "start": { - "line": 41, - "column": 16 - }, - "end": { - "line": 53, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 707, - "end": 727, - "loc": { - "start": { - "line": 41, - "column": 16 - }, - "end": { - "line": 42, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 707, - "end": 712, - "loc": { - "start": { - "line": 41, - "column": 16 - }, - "end": { - "line": 41, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 720, - "end": 727, - "loc": { - "start": { - "line": 42, - "column": 7 - }, - "end": { - "line": 42, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 728, - "end": 1031, - "loc": { - "start": { - "line": 42, - "column": 15 - }, - "end": { - "line": 53, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 728, - "end": 747, - "loc": { - "start": { - "line": 42, - "column": 15 - }, - "end": { - "line": 42, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 748, - "end": 1030, - "loc": { - "start": { - "line": 42, - "column": 35 - }, - "end": { - "line": 53, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 758, - "end": 772, - "loc": { - "start": { - "line": 43, - "column": 8 - }, - "end": { - "line": 43, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 758, - "end": 764, - "loc": { - "start": { - "line": 43, - "column": 8 - }, - "end": { - "line": 43, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 766, - "end": 772, - "loc": { - "start": { - "line": 43, - "column": 16 - }, - "end": { - "line": 43, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 782, - "end": 809, - "loc": { - "start": { - "line": 44, - "column": 8 - }, - "end": { - "line": 44, - "column": 35 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 782, - "end": 786, - "loc": { - "start": { - "line": 44, - "column": 8 - }, - "end": { - "line": 44, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 788, - "end": 809, - "loc": { - "start": { - "line": 44, - "column": 14 - }, - "end": { - "line": 44, - "column": 35 - } - }, - "extra": { - "rawValue": "/event_subscription", - "raw": "'/event_subscription'" - }, - "value": "/event_subscription" - } - }, - { - "type": "ObjectProperty", - "start": 819, - "end": 888, - "loc": { - "start": { - "line": 45, - "column": 8 - }, - "end": { - "line": 48, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 819, - "end": 832, - "loc": { - "start": { - "line": 45, - "column": 8 - }, - "end": { - "line": 45, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 834, - "end": 888, - "loc": { - "start": { - "line": 45, - "column": 23 - }, - "end": { - "line": 48, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 846, - "end": 860, - "loc": { - "start": { - "line": 46, - "column": 10 - }, - "end": { - "line": 46, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 846, - "end": 850, - "loc": { - "start": { - "line": 46, - "column": 10 - }, - "end": { - "line": 46, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 852, - "end": 860, - "loc": { - "start": { - "line": 46, - "column": 16 - }, - "end": { - "line": 46, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 872, - "end": 877, - "loc": { - "start": { - "line": 47, - "column": 10 - }, - "end": { - "line": 47, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 872, - "end": 877, - "loc": { - "start": { - "line": 47, - "column": 10 - }, - "end": { - "line": 47, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 872, - "end": 877, - "loc": { - "start": { - "line": 47, - "column": 10 - }, - "end": { - "line": 47, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 898, - "end": 1021, - "loc": { - "start": { - "line": 49, - "column": 8 - }, - "end": { - "line": 52, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 898, - "end": 905, - "loc": { - "start": { - "line": 49, - "column": 8 - }, - "end": { - "line": 49, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 907, - "end": 1021, - "loc": { - "start": { - "line": 49, - "column": 17 - }, - "end": { - "line": 52, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 919, - "end": 953, - "loc": { - "start": { - "line": 50, - "column": 10 - }, - "end": { - "line": 50, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 919, - "end": 933, - "loc": { - "start": { - "line": 50, - "column": 10 - }, - "end": { - "line": 50, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 935, - "end": 953, - "loc": { - "start": { - "line": 50, - "column": 26 - }, - "end": { - "line": 50, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 965, - "end": 1010, - "loc": { - "start": { - "line": 51, - "column": 10 - }, - "end": { - "line": 51, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 965, - "end": 981, - "loc": { - "start": { - "line": 51, - "column": 10 - }, - "end": { - "line": 51, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 983, - "end": 1010, - "loc": { - "start": { - "line": 51, - "column": 28 - }, - "end": { - "line": 51, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 983, - "end": 1000, - "loc": { - "start": { - "line": 51, - "column": 28 - }, - "end": { - "line": 51, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 983, - "end": 989, - "loc": { - "start": { - "line": 51, - "column": 28 - }, - "end": { - "line": 51, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 990, - "end": 1000, - "loc": { - "start": { - "line": 51, - "column": 35 - }, - "end": { - "line": 51, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1001, - "end": 1009, - "loc": { - "start": { - "line": 51, - "column": 46 - }, - "end": { - "line": 51, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 1033, - "end": 1058, - "loc": { - "start": { - "line": 53, - "column": 10 - }, - "end": { - "line": 53, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 1033, - "end": 1048, - "loc": { - "start": { - "line": 53, - "column": 10 - }, - "end": { - "line": 53, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1049, - "end": 1057, - "loc": { - "start": { - "line": 53, - "column": 26 - }, - "end": { - "line": 53, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 1067, - "end": 1069, - "loc": { - "start": { - "line": 54, - "column": 7 - }, - "end": { - "line": 54, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 1070, - "end": 1077, - "loc": { - "start": { - "line": 54, - "column": 10 - }, - "end": { - "line": 54, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 1079, - "end": 1101, - "loc": { - "start": { - "line": 54, - "column": 19 - }, - "end": { - "line": 54, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 1079, - "end": 1091, - "loc": { - "start": { - "line": 54, - "column": 19 - }, - "end": { - "line": 54, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1092, - "end": 1100, - "loc": { - "start": { - "line": 54, - "column": 32 - }, - "end": { - "line": 54, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 1109, - "end": 1129, - "loc": { - "start": { - "line": 56, - "column": 4 - }, - "end": { - "line": 56, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 1109, - "end": 1128, - "loc": { - "start": { - "line": 56, - "column": 4 - }, - "end": { - "line": 56, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1109, - "end": 1118, - "loc": { - "start": { - "line": 56, - "column": 4 - }, - "end": { - "line": 56, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 1109, - "end": 1112, - "loc": { - "start": { - "line": 56, - "column": 4 - }, - "end": { - "line": 56, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 1113, - "end": 1118, - "loc": { - "start": { - "line": 56, - "column": 8 - }, - "end": { - "line": 56, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1119, - "end": 1127, - "loc": { - "start": { - "line": 56, - "column": 14 - }, - "end": { - "line": 56, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 1134, - "end": 1144, - "loc": { - "start": { - "line": 57, - "column": 4 - }, - "end": { - "line": 57, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 1134, - "end": 1143, - "loc": { - "start": { - "line": 57, - "column": 4 - }, - "end": { - "line": 57, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1134, - "end": 1141, - "loc": { - "start": { - "line": 57, - "column": 4 - }, - "end": { - "line": 57, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 1134, - "end": 1137, - "loc": { - "start": { - "line": 57, - "column": 4 - }, - "end": { - "line": 57, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 1138, - "end": 1141, - "loc": { - "start": { - "line": 57, - "column": 8 - }, - "end": { - "line": 57, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " create webhook", - "start": 517, - "end": 534, - "loc": { - "start": { - "line": 30, - "column": 2 - }, - "end": { - "line": 30, - "column": 19 - } - } - } - ] - } - ] - }, - "leadingComments": [], - "name": "_", - "trailingComments": [] - }, - { - "type": "Identifier", - "start": 1153, - "end": 1176, - "loc": { - "start": { - "line": 62, - "column": 0 - }, - "end": { - "line": 62, - "column": 23 - } - }, - "declaration": { - "type": "Identifier", - "start": 1168, - "end": 1175, - "loc": { - "start": { - "line": 62, - "column": 15 - }, - "end": { - "line": 62, - "column": 22 - }, - "identifierName": "Webhook" - }, - "name": "Webhook" - }, - "name": "_", - "leadingComments": [], - "trailingComments": [] - }, - { - "type": "ExportDefaultDeclaration", - "start": 1153, - "end": 1176, - "loc": { - "start": { - "line": 62, - "column": 0 - }, - "end": { - "line": 62, - "column": 23 - } - }, - "declaration": { - "type": "ClassDeclaration", - "start": 156, - "end": 1151, - "loc": { - "start": { - "line": 13, - "column": 0 - }, - "end": { - "line": 60, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 162, - "end": 169, - "loc": { - "start": { - "line": 13, - "column": 6 - }, - "end": { - "line": 13, - "column": 13 - }, - "identifierName": "Webhook" - }, - "name": "Webhook", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 170, - "end": 1151, - "loc": { - "start": { - "line": 13, - "column": 14 - }, - "end": { - "line": 60, - "column": 1 - } - }, - "body": [ - { - "type": "ClassMethod", - "start": 194, - "end": 513, - "loc": { - "start": { - "line": 16, - "column": 2 - }, - "end": { - "line": 28, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 201, - "end": 205, - "loc": { - "start": { - "line": 16, - "column": 9 - }, - "end": { - "line": 16, - "column": 13 - }, - "identifierName": "list" - }, - "name": "list" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 207, - "end": 216, - "loc": { - "start": { - "line": 16, - "column": 15 - }, - "end": { - "line": 16, - "column": 24 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 209, - "end": 214, - "loc": { - "start": { - "line": 16, - "column": 17 - }, - "end": { - "line": 16, - "column": 22 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 209, - "end": 214, - "loc": { - "start": { - "line": 16, - "column": 17 - }, - "end": { - "line": 16, - "column": 22 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 209, - "end": 214, - "loc": { - "start": { - "line": 16, - "column": 17 - }, - "end": { - "line": 16, - "column": 22 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 218, - "end": 226, - "loc": { - "start": { - "line": 16, - "column": 26 - }, - "end": { - "line": 16, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 228, - "end": 513, - "loc": { - "start": { - "line": 16, - "column": 36 - }, - "end": { - "line": 28, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 234, - "end": 509, - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 27, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 234, - "end": 508, - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 27, - "column": 12 - } - }, - "callee": { - "type": "MemberExpression", - "start": 234, - "end": 506, - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 27, - "column": 10 - } - }, - "object": { - "type": "CallExpression", - "start": 234, - "end": 495, - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 26, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 234, - "end": 462, - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 26, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 234, - "end": 452, - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 25, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 234, - "end": 254, - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 18, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 234, - "end": 239, - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 17, - "column": 9 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 247, - "end": 254, - "loc": { - "start": { - "line": 18, - "column": 7 - }, - "end": { - "line": 18, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 255, - "end": 424, - "loc": { - "start": { - "line": 18, - "column": 15 - }, - "end": { - "line": 25, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 255, - "end": 274, - "loc": { - "start": { - "line": 18, - "column": 15 - }, - "end": { - "line": 18, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 275, - "end": 423, - "loc": { - "start": { - "line": 18, - "column": 35 - }, - "end": { - "line": 25, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 285, - "end": 298, - "loc": { - "start": { - "line": 19, - "column": 8 - }, - "end": { - "line": 19, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 285, - "end": 291, - "loc": { - "start": { - "line": 19, - "column": 8 - }, - "end": { - "line": 19, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 293, - "end": 298, - "loc": { - "start": { - "line": 19, - "column": 16 - }, - "end": { - "line": 19, - "column": 21 - } - }, - "extra": { - "rawValue": "GET", - "raw": "'GET'" - }, - "value": "GET" - } - }, - { - "type": "ObjectProperty", - "start": 308, - "end": 335, - "loc": { - "start": { - "line": 20, - "column": 8 - }, - "end": { - "line": 20, - "column": 35 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 308, - "end": 312, - "loc": { - "start": { - "line": 20, - "column": 8 - }, - "end": { - "line": 20, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 314, - "end": 335, - "loc": { - "start": { - "line": 20, - "column": 14 - }, - "end": { - "line": 20, - "column": 35 - } - }, - "extra": { - "rawValue": "/event_subscription", - "raw": "'/event_subscription'" - }, - "value": "/event_subscription" - } - }, - { - "type": "ObjectProperty", - "start": 345, - "end": 414, - "loc": { - "start": { - "line": 21, - "column": 8 - }, - "end": { - "line": 24, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 345, - "end": 358, - "loc": { - "start": { - "line": 21, - "column": 8 - }, - "end": { - "line": 21, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 360, - "end": 414, - "loc": { - "start": { - "line": 21, - "column": 23 - }, - "end": { - "line": 24, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 372, - "end": 386, - "loc": { - "start": { - "line": 22, - "column": 10 - }, - "end": { - "line": 22, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 372, - "end": 376, - "loc": { - "start": { - "line": 22, - "column": 10 - }, - "end": { - "line": 22, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 378, - "end": 386, - "loc": { - "start": { - "line": 22, - "column": 16 - }, - "end": { - "line": 22, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 398, - "end": 403, - "loc": { - "start": { - "line": 23, - "column": 10 - }, - "end": { - "line": 23, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 398, - "end": 403, - "loc": { - "start": { - "line": 23, - "column": 10 - }, - "end": { - "line": 23, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 398, - "end": 403, - "loc": { - "start": { - "line": 23, - "column": 10 - }, - "end": { - "line": 23, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 426, - "end": 451, - "loc": { - "start": { - "line": 25, - "column": 10 - }, - "end": { - "line": 25, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 426, - "end": 441, - "loc": { - "start": { - "line": 25, - "column": 10 - }, - "end": { - "line": 25, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 442, - "end": 450, - "loc": { - "start": { - "line": 25, - "column": 26 - }, - "end": { - "line": 25, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 460, - "end": 462, - "loc": { - "start": { - "line": 26, - "column": 7 - }, - "end": { - "line": 26, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 463, - "end": 470, - "loc": { - "start": { - "line": 26, - "column": 10 - }, - "end": { - "line": 26, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 472, - "end": 494, - "loc": { - "start": { - "line": 26, - "column": 19 - }, - "end": { - "line": 26, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 472, - "end": 484, - "loc": { - "start": { - "line": 26, - "column": 19 - }, - "end": { - "line": 26, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 485, - "end": 493, - "loc": { - "start": { - "line": 26, - "column": 32 - }, - "end": { - "line": 26, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 503, - "end": 506, - "loc": { - "start": { - "line": 27, - "column": 7 - }, - "end": { - "line": 27, - "column": 10 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " list webhooks", - "start": 175, - "end": 191, - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 15, - "column": 18 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " create webhook", - "start": 517, - "end": 534, - "loc": { - "start": { - "line": 30, - "column": 2 - }, - "end": { - "line": 30, - "column": 19 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 537, - "end": 1148, - "loc": { - "start": { - "line": 31, - "column": 2 - }, - "end": { - "line": 58, - "column": 3 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 544, - "end": 550, - "loc": { - "start": { - "line": 31, - "column": 9 - }, - "end": { - "line": 31, - "column": 15 - }, - "identifierName": "create" - }, - "name": "create" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "start": 552, - "end": 597, - "loc": { - "start": { - "line": 31, - "column": 17 - }, - "end": { - "line": 35, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 558, - "end": 563, - "loc": { - "start": { - "line": 32, - "column": 4 - }, - "end": { - "line": 32, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 558, - "end": 563, - "loc": { - "start": { - "line": 32, - "column": 4 - }, - "end": { - "line": 32, - "column": 9 - }, - "identifierName": "event" - }, - "name": "event" - }, - "value": { - "type": "Identifier", - "start": 558, - "end": 563, - "loc": { - "start": { - "line": 32, - "column": 4 - }, - "end": { - "line": 32, - "column": 9 - }, - "identifierName": "event" - }, - "name": "event" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 569, - "end": 581, - "loc": { - "start": { - "line": 33, - "column": 4 - }, - "end": { - "line": 33, - "column": 16 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 569, - "end": 581, - "loc": { - "start": { - "line": 33, - "column": 4 - }, - "end": { - "line": 33, - "column": 16 - }, - "identifierName": "callback_url" - }, - "name": "callback_url" - }, - "value": { - "type": "Identifier", - "start": 569, - "end": 581, - "loc": { - "start": { - "line": 33, - "column": 4 - }, - "end": { - "line": 33, - "column": 16 - }, - "identifierName": "callback_url" - }, - "name": "callback_url" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 587, - "end": 592, - "loc": { - "start": { - "line": 34, - "column": 4 - }, - "end": { - "line": 34, - "column": 9 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 587, - "end": 592, - "loc": { - "start": { - "line": 34, - "column": 4 - }, - "end": { - "line": 34, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 587, - "end": 592, - "loc": { - "start": { - "line": 34, - "column": 4 - }, - "end": { - "line": 34, - "column": 9 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - }, - { - "type": "Identifier", - "start": 599, - "end": 607, - "loc": { - "start": { - "line": 35, - "column": 5 - }, - "end": { - "line": 35, - "column": 13 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ], - "body": { - "type": "BlockStatement", - "start": 609, - "end": 1148, - "loc": { - "start": { - "line": 35, - "column": 15 - }, - "end": { - "line": 58, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 615, - "end": 689, - "loc": { - "start": { - "line": 36, - "column": 4 - }, - "end": { - "line": 39, - "column": 7 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 621, - "end": 688, - "loc": { - "start": { - "line": 36, - "column": 10 - }, - "end": { - "line": 39, - "column": 6 - } - }, - "id": { - "type": "Identifier", - "start": 621, - "end": 629, - "loc": { - "start": { - "line": 36, - "column": 10 - }, - "end": { - "line": 36, - "column": 18 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - }, - "init": { - "type": "CallExpression", - "start": 632, - "end": 688, - "loc": { - "start": { - "line": 36, - "column": 21 - }, - "end": { - "line": 39, - "column": 6 - } - }, - "callee": { - "type": "MemberExpression", - "start": 632, - "end": 646, - "loc": { - "start": { - "line": 36, - "column": 21 - }, - "end": { - "line": 36, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 632, - "end": 636, - "loc": { - "start": { - "line": 36, - "column": 21 - }, - "end": { - "line": 36, - "column": 25 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 637, - "end": 646, - "loc": { - "start": { - "line": 36, - "column": 26 - }, - "end": { - "line": 36, - "column": 35 - }, - "identifierName": "stringify" - }, - "name": "stringify" - }, - "computed": false - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 647, - "end": 687, - "loc": { - "start": { - "line": 36, - "column": 36 - }, - "end": { - "line": 39, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 655, - "end": 660, - "loc": { - "start": { - "line": 37, - "column": 6 - }, - "end": { - "line": 37, - "column": 11 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 655, - "end": 660, - "loc": { - "start": { - "line": 37, - "column": 6 - }, - "end": { - "line": 37, - "column": 11 - }, - "identifierName": "event" - }, - "name": "event" - }, - "value": { - "type": "Identifier", - "start": 655, - "end": 660, - "loc": { - "start": { - "line": 37, - "column": 6 - }, - "end": { - "line": 37, - "column": 11 - }, - "identifierName": "event" - }, - "name": "event" - }, - "extra": { - "shorthand": true - } - }, - { - "type": "ObjectProperty", - "start": 668, - "end": 680, - "loc": { - "start": { - "line": 38, - "column": 6 - }, - "end": { - "line": 38, - "column": 18 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 668, - "end": 680, - "loc": { - "start": { - "line": 38, - "column": 6 - }, - "end": { - "line": 38, - "column": 18 - }, - "identifierName": "callback_url" - }, - "name": "callback_url" - }, - "value": { - "type": "Identifier", - "start": 668, - "end": 680, - "loc": { - "start": { - "line": 38, - "column": 6 - }, - "end": { - "line": 38, - "column": 18 - }, - "identifierName": "callback_url" - }, - "name": "callback_url" - }, - "extra": { - "shorthand": true - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 695, - "end": 1103, - "loc": { - "start": { - "line": 41, - "column": 4 - }, - "end": { - "line": 54, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 701, - "end": 1102, - "loc": { - "start": { - "line": 41, - "column": 10 - }, - "end": { - "line": 54, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 701, - "end": 704, - "loc": { - "start": { - "line": 41, - "column": 10 - }, - "end": { - "line": 41, - "column": 13 - }, - "identifierName": "req" - }, - "name": "req" - }, - "init": { - "type": "CallExpression", - "start": 707, - "end": 1102, - "loc": { - "start": { - "line": 41, - "column": 16 - }, - "end": { - "line": 54, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 707, - "end": 1069, - "loc": { - "start": { - "line": 41, - "column": 16 - }, - "end": { - "line": 54, - "column": 9 - } - }, - "object": { - "type": "CallExpression", - "start": 707, - "end": 1059, - "loc": { - "start": { - "line": 41, - "column": 16 - }, - "end": { - "line": 53, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 707, - "end": 727, - "loc": { - "start": { - "line": 41, - "column": 16 - }, - "end": { - "line": 42, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 707, - "end": 712, - "loc": { - "start": { - "line": 41, - "column": 16 - }, - "end": { - "line": 41, - "column": 21 - }, - "identifierName": "https" - }, - "name": "https" - }, - "property": { - "type": "Identifier", - "start": 720, - "end": 727, - "loc": { - "start": { - "line": 42, - "column": 7 - }, - "end": { - "line": 42, - "column": 14 - }, - "identifierName": "request" - }, - "name": "request" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 728, - "end": 1031, - "loc": { - "start": { - "line": 42, - "column": 15 - }, - "end": { - "line": 53, - "column": 8 - } - }, - "callee": { - "type": "Identifier", - "start": 728, - "end": 747, - "loc": { - "start": { - "line": 42, - "column": 15 - }, - "end": { - "line": 42, - "column": 34 - }, - "identifierName": "buildRequestOptions" - }, - "name": "buildRequestOptions" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 748, - "end": 1030, - "loc": { - "start": { - "line": 42, - "column": 35 - }, - "end": { - "line": 53, - "column": 7 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 758, - "end": 772, - "loc": { - "start": { - "line": 43, - "column": 8 - }, - "end": { - "line": 43, - "column": 22 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 758, - "end": 764, - "loc": { - "start": { - "line": 43, - "column": 8 - }, - "end": { - "line": 43, - "column": 14 - }, - "identifierName": "method" - }, - "name": "method" - }, - "value": { - "type": "StringLiteral", - "start": 766, - "end": 772, - "loc": { - "start": { - "line": 43, - "column": 16 - }, - "end": { - "line": 43, - "column": 22 - } - }, - "extra": { - "rawValue": "POST", - "raw": "'POST'" - }, - "value": "POST" - } - }, - { - "type": "ObjectProperty", - "start": 782, - "end": 809, - "loc": { - "start": { - "line": 44, - "column": 8 - }, - "end": { - "line": 44, - "column": 35 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 782, - "end": 786, - "loc": { - "start": { - "line": 44, - "column": 8 - }, - "end": { - "line": 44, - "column": 12 - }, - "identifierName": "path" - }, - "name": "path" - }, - "value": { - "type": "StringLiteral", - "start": 788, - "end": 809, - "loc": { - "start": { - "line": 44, - "column": 14 - }, - "end": { - "line": 44, - "column": 35 - } - }, - "extra": { - "rawValue": "/event_subscription", - "raw": "'/event_subscription'" - }, - "value": "/event_subscription" - } - }, - { - "type": "ObjectProperty", - "start": 819, - "end": 888, - "loc": { - "start": { - "line": 45, - "column": 8 - }, - "end": { - "line": 48, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 819, - "end": 832, - "loc": { - "start": { - "line": 45, - "column": 8 - }, - "end": { - "line": 45, - "column": 21 - }, - "identifierName": "authorization" - }, - "name": "authorization" - }, - "value": { - "type": "ObjectExpression", - "start": 834, - "end": 888, - "loc": { - "start": { - "line": 45, - "column": 23 - }, - "end": { - "line": 48, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 846, - "end": 860, - "loc": { - "start": { - "line": 46, - "column": 10 - }, - "end": { - "line": 46, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 846, - "end": 850, - "loc": { - "start": { - "line": 46, - "column": 10 - }, - "end": { - "line": 46, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "value": { - "type": "StringLiteral", - "start": 852, - "end": 860, - "loc": { - "start": { - "line": 46, - "column": 16 - }, - "end": { - "line": 46, - "column": 24 - } - }, - "extra": { - "rawValue": "Bearer", - "raw": "'Bearer'" - }, - "value": "Bearer" - } - }, - { - "type": "ObjectProperty", - "start": 872, - "end": 877, - "loc": { - "start": { - "line": 47, - "column": 10 - }, - "end": { - "line": 47, - "column": 15 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 872, - "end": 877, - "loc": { - "start": { - "line": 47, - "column": 10 - }, - "end": { - "line": 47, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "value": { - "type": "Identifier", - "start": 872, - "end": 877, - "loc": { - "start": { - "line": 47, - "column": 10 - }, - "end": { - "line": 47, - "column": 15 - }, - "identifierName": "token" - }, - "name": "token" - }, - "extra": { - "shorthand": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 898, - "end": 1021, - "loc": { - "start": { - "line": 49, - "column": 8 - }, - "end": { - "line": 52, - "column": 9 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 898, - "end": 905, - "loc": { - "start": { - "line": 49, - "column": 8 - }, - "end": { - "line": 49, - "column": 15 - }, - "identifierName": "headers" - }, - "name": "headers" - }, - "value": { - "type": "ObjectExpression", - "start": 907, - "end": 1021, - "loc": { - "start": { - "line": 49, - "column": 17 - }, - "end": { - "line": 52, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 919, - "end": 953, - "loc": { - "start": { - "line": 50, - "column": 10 - }, - "end": { - "line": 50, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 919, - "end": 933, - "loc": { - "start": { - "line": 50, - "column": 10 - }, - "end": { - "line": 50, - "column": 24 - } - }, - "extra": { - "rawValue": "Content-Type", - "raw": "'Content-Type'" - }, - "value": "Content-Type" - }, - "value": { - "type": "StringLiteral", - "start": 935, - "end": 953, - "loc": { - "start": { - "line": 50, - "column": 26 - }, - "end": { - "line": 50, - "column": 44 - } - }, - "extra": { - "rawValue": "application/json", - "raw": "'application/json'" - }, - "value": "application/json" - } - }, - { - "type": "ObjectProperty", - "start": 965, - "end": 1010, - "loc": { - "start": { - "line": 51, - "column": 10 - }, - "end": { - "line": 51, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 965, - "end": 981, - "loc": { - "start": { - "line": 51, - "column": 10 - }, - "end": { - "line": 51, - "column": 26 - } - }, - "extra": { - "rawValue": "Content-Length", - "raw": "'Content-Length'" - }, - "value": "Content-Length" - }, - "value": { - "type": "CallExpression", - "start": 983, - "end": 1010, - "loc": { - "start": { - "line": 51, - "column": 28 - }, - "end": { - "line": 51, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 983, - "end": 1000, - "loc": { - "start": { - "line": 51, - "column": 28 - }, - "end": { - "line": 51, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 983, - "end": 989, - "loc": { - "start": { - "line": 51, - "column": 28 - }, - "end": { - "line": 51, - "column": 34 - }, - "identifierName": "Buffer" - }, - "name": "Buffer" - }, - "property": { - "type": "Identifier", - "start": 990, - "end": 1000, - "loc": { - "start": { - "line": 51, - "column": 35 - }, - "end": { - "line": 51, - "column": 45 - }, - "identifierName": "byteLength" - }, - "name": "byteLength" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1001, - "end": 1009, - "loc": { - "start": { - "line": 51, - "column": 46 - }, - "end": { - "line": 51, - "column": 54 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - } - ] - } - } - ] - } - ] - }, - { - "type": "CallExpression", - "start": 1033, - "end": 1058, - "loc": { - "start": { - "line": 53, - "column": 10 - }, - "end": { - "line": 53, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 1033, - "end": 1048, - "loc": { - "start": { - "line": 53, - "column": 10 - }, - "end": { - "line": 53, - "column": 25 - }, - "identifierName": "responseHandler" - }, - "name": "responseHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1049, - "end": 1057, - "loc": { - "start": { - "line": 53, - "column": 26 - }, - "end": { - "line": 53, - "column": 34 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 1067, - "end": 1069, - "loc": { - "start": { - "line": 54, - "column": 7 - }, - "end": { - "line": 54, - "column": 9 - }, - "identifierName": "on" - }, - "name": "on" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 1070, - "end": 1077, - "loc": { - "start": { - "line": 54, - "column": 10 - }, - "end": { - "line": 54, - "column": 17 - } - }, - "extra": { - "rawValue": "error", - "raw": "'error'" - }, - "value": "error" - }, - { - "type": "CallExpression", - "start": 1079, - "end": 1101, - "loc": { - "start": { - "line": 54, - "column": 19 - }, - "end": { - "line": 54, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 1079, - "end": 1091, - "loc": { - "start": { - "line": 54, - "column": 19 - }, - "end": { - "line": 54, - "column": 31 - }, - "identifierName": "errorHandler" - }, - "name": "errorHandler" - }, - "arguments": [ - { - "type": "Identifier", - "start": 1092, - "end": 1100, - "loc": { - "start": { - "line": 54, - "column": 32 - }, - "end": { - "line": 54, - "column": 40 - }, - "identifierName": "callback" - }, - "name": "callback" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 1109, - "end": 1129, - "loc": { - "start": { - "line": 56, - "column": 4 - }, - "end": { - "line": 56, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 1109, - "end": 1128, - "loc": { - "start": { - "line": 56, - "column": 4 - }, - "end": { - "line": 56, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1109, - "end": 1118, - "loc": { - "start": { - "line": 56, - "column": 4 - }, - "end": { - "line": 56, - "column": 13 - } - }, - "object": { - "type": "Identifier", - "start": 1109, - "end": 1112, - "loc": { - "start": { - "line": 56, - "column": 4 - }, - "end": { - "line": 56, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 1113, - "end": 1118, - "loc": { - "start": { - "line": 56, - "column": 8 - }, - "end": { - "line": 56, - "column": 13 - }, - "identifierName": "write" - }, - "name": "write" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1119, - "end": 1127, - "loc": { - "start": { - "line": 56, - "column": 14 - }, - "end": { - "line": 56, - "column": 22 - }, - "identifierName": "JSONData" - }, - "name": "JSONData" - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 1134, - "end": 1144, - "loc": { - "start": { - "line": 57, - "column": 4 - }, - "end": { - "line": 57, - "column": 14 - } - }, - "expression": { - "type": "CallExpression", - "start": 1134, - "end": 1143, - "loc": { - "start": { - "line": 57, - "column": 4 - }, - "end": { - "line": 57, - "column": 13 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1134, - "end": 1141, - "loc": { - "start": { - "line": 57, - "column": 4 - }, - "end": { - "line": 57, - "column": 11 - } - }, - "object": { - "type": "Identifier", - "start": 1134, - "end": 1137, - "loc": { - "start": { - "line": 57, - "column": 4 - }, - "end": { - "line": 57, - "column": 7 - }, - "identifierName": "req" - }, - "name": "req" - }, - "property": { - "type": "Identifier", - "start": 1138, - "end": 1141, - "loc": { - "start": { - "line": 57, - "column": 8 - }, - "end": { - "line": 57, - "column": 11 - }, - "identifierName": "end" - }, - "name": "end" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " create webhook", - "start": 517, - "end": 534, - "loc": { - "start": { - "line": 30, - "column": 2 - }, - "end": { - "line": 30, - "column": 19 - } - } - } - ] - } - ] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Webook methods\n ", - "start": 130, - "end": 155, - "loc": { - "start": { - "line": 10, - "column": 0 - }, - "end": { - "line": 12, - "column": 3 - } - } - } - ], - "__PseudoExport__": false, - "trailingComments": [] - }, - "leadingComments": null - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "value": "use strict", - "extra": { - "raw": "'use strict'", - "rawValue": "use strict" - } - } - } - ] - }, - "comments": [ - { - "type": "CommentBlock", - "value": "*\n * Webook methods\n ", - "start": 130, - "end": 155, - "loc": { - "start": { - "line": 10, - "column": 0 - }, - "end": { - "line": 12, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " list webhooks", - "start": 175, - "end": 191, - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 15, - "column": 18 - } - } - }, - { - "type": "CommentLine", - "value": " create webhook", - "start": 517, - "end": 534, - "loc": { - "start": { - "line": 30, - "column": 2 - }, - "end": { - "line": 30, - "column": 19 - } - } - } - ], - "tokens": [ - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "use strict", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 12 - }, - "end": { - "line": 1, - "column": 13 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 14, - "end": 20, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 21, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 27, - "end": 31, - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 17 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "https", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 18 - }, - "end": { - "line": 2, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 39, - "end": 40, - "loc": { - "start": { - "line": 2, - "column": 25 - }, - "end": { - "line": 2, - "column": 26 - } - } - }, - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 41, - "end": 47, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 48, - "end": 49, - "loc": { - "start": { - "line": 3, - "column": 7 - }, - "end": { - "line": 3, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 52, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 2 - }, - "end": { - "line": 4, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 67, - "end": 68, - "loc": { - "start": { - "line": 4, - "column": 17 - }, - "end": { - "line": 4, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 71, - "end": 83, - "loc": { - "start": { - "line": 5, - "column": 2 - }, - "end": { - "line": 5, - "column": 14 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 83, - "end": 84, - "loc": { - "start": { - "line": 5, - "column": 14 - }, - "end": { - "line": 5, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 87, - "end": 106, - "loc": { - "start": { - "line": 6, - "column": 2 - }, - "end": { - "line": 6, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 106, - "end": 107, - "loc": { - "start": { - "line": 6, - "column": 21 - }, - "end": { - "line": 6, - "column": 22 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 108, - "end": 109, - "loc": { - "start": { - "line": 7, - "column": 0 - }, - "end": { - "line": 7, - "column": 1 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 110, - "end": 114, - "loc": { - "start": { - "line": 7, - "column": 2 - }, - "end": { - "line": 7, - "column": 6 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "../common", - "start": 115, - "end": 126, - "loc": { - "start": { - "line": 7, - "column": 7 - }, - "end": { - "line": 7, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 126, - "end": 127, - "loc": { - "start": { - "line": 7, - "column": 18 - }, - "end": { - "line": 7, - "column": 19 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Webook methods\n ", - "start": 130, - "end": 155, - "loc": { - "start": { - "line": 10, - "column": 0 - }, - "end": { - "line": 12, - "column": 3 - } - } - }, - { - "type": { - "label": "class", - "keyword": "class", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "class", - "start": 156, - "end": 161, - "loc": { - "start": { - "line": 13, - "column": 0 - }, - "end": { - "line": 13, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Webhook", - "start": 162, - "end": 169, - "loc": { - "start": { - "line": 13, - "column": 6 - }, - "end": { - "line": 13, - "column": 13 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 170, - "end": 171, - "loc": { - "start": { - "line": 13, - "column": 14 - }, - "end": { - "line": 13, - "column": 15 - } - } - }, - { - "type": "CommentLine", - "value": " list webhooks", - "start": 175, - "end": 191, - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 15, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 194, - "end": 200, - "loc": { - "start": { - "line": 16, - "column": 2 - }, - "end": { - "line": 16, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "list", - "start": 201, - "end": 205, - "loc": { - "start": { - "line": 16, - "column": 9 - }, - "end": { - "line": 16, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 206, - "end": 207, - "loc": { - "start": { - "line": 16, - "column": 14 - }, - "end": { - "line": 16, - "column": 15 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 207, - "end": 208, - "loc": { - "start": { - "line": 16, - "column": 15 - }, - "end": { - "line": 16, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 209, - "end": 214, - "loc": { - "start": { - "line": 16, - "column": 17 - }, - "end": { - "line": 16, - "column": 22 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 215, - "end": 216, - "loc": { - "start": { - "line": 16, - "column": 23 - }, - "end": { - "line": 16, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 216, - "end": 217, - "loc": { - "start": { - "line": 16, - "column": 24 - }, - "end": { - "line": 16, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 218, - "end": 226, - "loc": { - "start": { - "line": 16, - "column": 26 - }, - "end": { - "line": 16, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 226, - "end": 227, - "loc": { - "start": { - "line": 16, - "column": 34 - }, - "end": { - "line": 16, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 228, - "end": 229, - "loc": { - "start": { - "line": 16, - "column": 36 - }, - "end": { - "line": 16, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 234, - "end": 239, - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 17, - "column": 9 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 246, - "end": 247, - "loc": { - "start": { - "line": 18, - "column": 6 - }, - "end": { - "line": 18, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 247, - "end": 254, - "loc": { - "start": { - "line": 18, - "column": 7 - }, - "end": { - "line": 18, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 254, - "end": 255, - "loc": { - "start": { - "line": 18, - "column": 14 - }, - "end": { - "line": 18, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 255, - "end": 274, - "loc": { - "start": { - "line": 18, - "column": 15 - }, - "end": { - "line": 18, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 274, - "end": 275, - "loc": { - "start": { - "line": 18, - "column": 34 - }, - "end": { - "line": 18, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 275, - "end": 276, - "loc": { - "start": { - "line": 18, - "column": 35 - }, - "end": { - "line": 18, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 285, - "end": 291, - "loc": { - "start": { - "line": 19, - "column": 8 - }, - "end": { - "line": 19, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 291, - "end": 292, - "loc": { - "start": { - "line": 19, - "column": 14 - }, - "end": { - "line": 19, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "GET", - "start": 293, - "end": 298, - "loc": { - "start": { - "line": 19, - "column": 16 - }, - "end": { - "line": 19, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 298, - "end": 299, - "loc": { - "start": { - "line": 19, - "column": 21 - }, - "end": { - "line": 19, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 308, - "end": 312, - "loc": { - "start": { - "line": 20, - "column": 8 - }, - "end": { - "line": 20, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 312, - "end": 313, - "loc": { - "start": { - "line": 20, - "column": 12 - }, - "end": { - "line": 20, - "column": 13 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/event_subscription", - "start": 314, - "end": 335, - "loc": { - "start": { - "line": 20, - "column": 14 - }, - "end": { - "line": 20, - "column": 35 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 335, - "end": 336, - "loc": { - "start": { - "line": 20, - "column": 35 - }, - "end": { - "line": 20, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 345, - "end": 358, - "loc": { - "start": { - "line": 21, - "column": 8 - }, - "end": { - "line": 21, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 358, - "end": 359, - "loc": { - "start": { - "line": 21, - "column": 21 - }, - "end": { - "line": 21, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 360, - "end": 361, - "loc": { - "start": { - "line": 21, - "column": 23 - }, - "end": { - "line": 21, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 372, - "end": 376, - "loc": { - "start": { - "line": 22, - "column": 10 - }, - "end": { - "line": 22, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 376, - "end": 377, - "loc": { - "start": { - "line": 22, - "column": 14 - }, - "end": { - "line": 22, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 378, - "end": 386, - "loc": { - "start": { - "line": 22, - "column": 16 - }, - "end": { - "line": 22, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 386, - "end": 387, - "loc": { - "start": { - "line": 22, - "column": 24 - }, - "end": { - "line": 22, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 398, - "end": 403, - "loc": { - "start": { - "line": 23, - "column": 10 - }, - "end": { - "line": 23, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 403, - "end": 404, - "loc": { - "start": { - "line": 23, - "column": 15 - }, - "end": { - "line": 23, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 413, - "end": 414, - "loc": { - "start": { - "line": 24, - "column": 8 - }, - "end": { - "line": 24, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 414, - "end": 415, - "loc": { - "start": { - "line": 24, - "column": 9 - }, - "end": { - "line": 24, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 422, - "end": 423, - "loc": { - "start": { - "line": 25, - "column": 6 - }, - "end": { - "line": 25, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 423, - "end": 424, - "loc": { - "start": { - "line": 25, - "column": 7 - }, - "end": { - "line": 25, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 424, - "end": 425, - "loc": { - "start": { - "line": 25, - "column": 8 - }, - "end": { - "line": 25, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 426, - "end": 441, - "loc": { - "start": { - "line": 25, - "column": 10 - }, - "end": { - "line": 25, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 441, - "end": 442, - "loc": { - "start": { - "line": 25, - "column": 25 - }, - "end": { - "line": 25, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 442, - "end": 450, - "loc": { - "start": { - "line": 25, - "column": 26 - }, - "end": { - "line": 25, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 450, - "end": 451, - "loc": { - "start": { - "line": 25, - "column": 34 - }, - "end": { - "line": 25, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 451, - "end": 452, - "loc": { - "start": { - "line": 25, - "column": 35 - }, - "end": { - "line": 25, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 459, - "end": 460, - "loc": { - "start": { - "line": 26, - "column": 6 - }, - "end": { - "line": 26, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 460, - "end": 462, - "loc": { - "start": { - "line": 26, - "column": 7 - }, - "end": { - "line": 26, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 462, - "end": 463, - "loc": { - "start": { - "line": 26, - "column": 9 - }, - "end": { - "line": 26, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 463, - "end": 470, - "loc": { - "start": { - "line": 26, - "column": 10 - }, - "end": { - "line": 26, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 470, - "end": 471, - "loc": { - "start": { - "line": 26, - "column": 17 - }, - "end": { - "line": 26, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 472, - "end": 484, - "loc": { - "start": { - "line": 26, - "column": 19 - }, - "end": { - "line": 26, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 484, - "end": 485, - "loc": { - "start": { - "line": 26, - "column": 31 - }, - "end": { - "line": 26, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 485, - "end": 493, - "loc": { - "start": { - "line": 26, - "column": 32 - }, - "end": { - "line": 26, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 493, - "end": 494, - "loc": { - "start": { - "line": 26, - "column": 40 - }, - "end": { - "line": 26, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 494, - "end": 495, - "loc": { - "start": { - "line": 26, - "column": 41 - }, - "end": { - "line": 26, - "column": 42 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 502, - "end": 503, - "loc": { - "start": { - "line": 27, - "column": 6 - }, - "end": { - "line": 27, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 503, - "end": 506, - "loc": { - "start": { - "line": 27, - "column": 7 - }, - "end": { - "line": 27, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 506, - "end": 507, - "loc": { - "start": { - "line": 27, - "column": 10 - }, - "end": { - "line": 27, - "column": 11 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 507, - "end": 508, - "loc": { - "start": { - "line": 27, - "column": 11 - }, - "end": { - "line": 27, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 508, - "end": 509, - "loc": { - "start": { - "line": 27, - "column": 12 - }, - "end": { - "line": 27, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 512, - "end": 513, - "loc": { - "start": { - "line": 28, - "column": 2 - }, - "end": { - "line": 28, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " create webhook", - "start": 517, - "end": 534, - "loc": { - "start": { - "line": 30, - "column": 2 - }, - "end": { - "line": 30, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 537, - "end": 543, - "loc": { - "start": { - "line": 31, - "column": 2 - }, - "end": { - "line": 31, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "create", - "start": 544, - "end": 550, - "loc": { - "start": { - "line": 31, - "column": 9 - }, - "end": { - "line": 31, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 551, - "end": 552, - "loc": { - "start": { - "line": 31, - "column": 16 - }, - "end": { - "line": 31, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 552, - "end": 553, - "loc": { - "start": { - "line": 31, - "column": 17 - }, - "end": { - "line": 31, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "event", - "start": 558, - "end": 563, - "loc": { - "start": { - "line": 32, - "column": 4 - }, - "end": { - "line": 32, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 563, - "end": 564, - "loc": { - "start": { - "line": 32, - "column": 9 - }, - "end": { - "line": 32, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback_url", - "start": 569, - "end": 581, - "loc": { - "start": { - "line": 33, - "column": 4 - }, - "end": { - "line": 33, - "column": 16 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 581, - "end": 582, - "loc": { - "start": { - "line": 33, - "column": 16 - }, - "end": { - "line": 33, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 587, - "end": 592, - "loc": { - "start": { - "line": 34, - "column": 4 - }, - "end": { - "line": 34, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 592, - "end": 593, - "loc": { - "start": { - "line": 34, - "column": 9 - }, - "end": { - "line": 34, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 596, - "end": 597, - "loc": { - "start": { - "line": 35, - "column": 2 - }, - "end": { - "line": 35, - "column": 3 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 597, - "end": 598, - "loc": { - "start": { - "line": 35, - "column": 3 - }, - "end": { - "line": 35, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 599, - "end": 607, - "loc": { - "start": { - "line": 35, - "column": 5 - }, - "end": { - "line": 35, - "column": 13 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 607, - "end": 608, - "loc": { - "start": { - "line": 35, - "column": 13 - }, - "end": { - "line": 35, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 609, - "end": 610, - "loc": { - "start": { - "line": 35, - "column": 15 - }, - "end": { - "line": 35, - "column": 16 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 615, - "end": 620, - "loc": { - "start": { - "line": 36, - "column": 4 - }, - "end": { - "line": 36, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 621, - "end": 629, - "loc": { - "start": { - "line": 36, - "column": 10 - }, - "end": { - "line": 36, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 630, - "end": 631, - "loc": { - "start": { - "line": 36, - "column": 19 - }, - "end": { - "line": 36, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSON", - "start": 632, - "end": 636, - "loc": { - "start": { - "line": 36, - "column": 21 - }, - "end": { - "line": 36, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 636, - "end": 637, - "loc": { - "start": { - "line": 36, - "column": 25 - }, - "end": { - "line": 36, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "stringify", - "start": 637, - "end": 646, - "loc": { - "start": { - "line": 36, - "column": 26 - }, - "end": { - "line": 36, - "column": 35 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 646, - "end": 647, - "loc": { - "start": { - "line": 36, - "column": 35 - }, - "end": { - "line": 36, - "column": 36 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 647, - "end": 648, - "loc": { - "start": { - "line": 36, - "column": 36 - }, - "end": { - "line": 36, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "event", - "start": 655, - "end": 660, - "loc": { - "start": { - "line": 37, - "column": 6 - }, - "end": { - "line": 37, - "column": 11 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 660, - "end": 661, - "loc": { - "start": { - "line": 37, - "column": 11 - }, - "end": { - "line": 37, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback_url", - "start": 668, - "end": 680, - "loc": { - "start": { - "line": 38, - "column": 6 - }, - "end": { - "line": 38, - "column": 18 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 680, - "end": 681, - "loc": { - "start": { - "line": 38, - "column": 18 - }, - "end": { - "line": 38, - "column": 19 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 686, - "end": 687, - "loc": { - "start": { - "line": 39, - "column": 4 - }, - "end": { - "line": 39, - "column": 5 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 687, - "end": 688, - "loc": { - "start": { - "line": 39, - "column": 5 - }, - "end": { - "line": 39, - "column": 6 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 688, - "end": 689, - "loc": { - "start": { - "line": 39, - "column": 6 - }, - "end": { - "line": 39, - "column": 7 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 695, - "end": 700, - "loc": { - "start": { - "line": 41, - "column": 4 - }, - "end": { - "line": 41, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 701, - "end": 704, - "loc": { - "start": { - "line": 41, - "column": 10 - }, - "end": { - "line": 41, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 705, - "end": 706, - "loc": { - "start": { - "line": 41, - "column": 14 - }, - "end": { - "line": 41, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "https", - "start": 707, - "end": 712, - "loc": { - "start": { - "line": 41, - "column": 16 - }, - "end": { - "line": 41, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 719, - "end": 720, - "loc": { - "start": { - "line": 42, - "column": 6 - }, - "end": { - "line": 42, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "request", - "start": 720, - "end": 727, - "loc": { - "start": { - "line": 42, - "column": 7 - }, - "end": { - "line": 42, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 727, - "end": 728, - "loc": { - "start": { - "line": 42, - "column": 14 - }, - "end": { - "line": 42, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "buildRequestOptions", - "start": 728, - "end": 747, - "loc": { - "start": { - "line": 42, - "column": 15 - }, - "end": { - "line": 42, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 747, - "end": 748, - "loc": { - "start": { - "line": 42, - "column": 34 - }, - "end": { - "line": 42, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 748, - "end": 749, - "loc": { - "start": { - "line": 42, - "column": 35 - }, - "end": { - "line": 42, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "method", - "start": 758, - "end": 764, - "loc": { - "start": { - "line": 43, - "column": 8 - }, - "end": { - "line": 43, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 764, - "end": 765, - "loc": { - "start": { - "line": 43, - "column": 14 - }, - "end": { - "line": 43, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "POST", - "start": 766, - "end": 772, - "loc": { - "start": { - "line": 43, - "column": 16 - }, - "end": { - "line": 43, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 772, - "end": 773, - "loc": { - "start": { - "line": 43, - "column": 22 - }, - "end": { - "line": 43, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "path", - "start": 782, - "end": 786, - "loc": { - "start": { - "line": 44, - "column": 8 - }, - "end": { - "line": 44, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 786, - "end": 787, - "loc": { - "start": { - "line": 44, - "column": 12 - }, - "end": { - "line": 44, - "column": 13 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "/event_subscription", - "start": 788, - "end": 809, - "loc": { - "start": { - "line": 44, - "column": 14 - }, - "end": { - "line": 44, - "column": 35 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 809, - "end": 810, - "loc": { - "start": { - "line": 44, - "column": 35 - }, - "end": { - "line": 44, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "authorization", - "start": 819, - "end": 832, - "loc": { - "start": { - "line": 45, - "column": 8 - }, - "end": { - "line": 45, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 832, - "end": 833, - "loc": { - "start": { - "line": 45, - "column": 21 - }, - "end": { - "line": 45, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 834, - "end": 835, - "loc": { - "start": { - "line": 45, - "column": 23 - }, - "end": { - "line": 45, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 846, - "end": 850, - "loc": { - "start": { - "line": 46, - "column": 10 - }, - "end": { - "line": 46, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 850, - "end": 851, - "loc": { - "start": { - "line": 46, - "column": 14 - }, - "end": { - "line": 46, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Bearer", - "start": 852, - "end": 860, - "loc": { - "start": { - "line": 46, - "column": 16 - }, - "end": { - "line": 46, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 860, - "end": 861, - "loc": { - "start": { - "line": 46, - "column": 24 - }, - "end": { - "line": 46, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "token", - "start": 872, - "end": 877, - "loc": { - "start": { - "line": 47, - "column": 10 - }, - "end": { - "line": 47, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 877, - "end": 878, - "loc": { - "start": { - "line": 47, - "column": 15 - }, - "end": { - "line": 47, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 887, - "end": 888, - "loc": { - "start": { - "line": 48, - "column": 8 - }, - "end": { - "line": 48, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 888, - "end": 889, - "loc": { - "start": { - "line": 48, - "column": 9 - }, - "end": { - "line": 48, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "headers", - "start": 898, - "end": 905, - "loc": { - "start": { - "line": 49, - "column": 8 - }, - "end": { - "line": 49, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 905, - "end": 906, - "loc": { - "start": { - "line": 49, - "column": 15 - }, - "end": { - "line": 49, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 907, - "end": 908, - "loc": { - "start": { - "line": 49, - "column": 17 - }, - "end": { - "line": 49, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Type", - "start": 919, - "end": 933, - "loc": { - "start": { - "line": 50, - "column": 10 - }, - "end": { - "line": 50, - "column": 24 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 933, - "end": 934, - "loc": { - "start": { - "line": 50, - "column": 24 - }, - "end": { - "line": 50, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "application/json", - "start": 935, - "end": 953, - "loc": { - "start": { - "line": 50, - "column": 26 - }, - "end": { - "line": 50, - "column": 44 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 953, - "end": 954, - "loc": { - "start": { - "line": 50, - "column": 44 - }, - "end": { - "line": 50, - "column": 45 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Content-Length", - "start": 965, - "end": 981, - "loc": { - "start": { - "line": 51, - "column": 10 - }, - "end": { - "line": 51, - "column": 26 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 981, - "end": 982, - "loc": { - "start": { - "line": 51, - "column": 26 - }, - "end": { - "line": 51, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Buffer", - "start": 983, - "end": 989, - "loc": { - "start": { - "line": 51, - "column": 28 - }, - "end": { - "line": 51, - "column": 34 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 989, - "end": 990, - "loc": { - "start": { - "line": 51, - "column": 34 - }, - "end": { - "line": 51, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "byteLength", - "start": 990, - "end": 1000, - "loc": { - "start": { - "line": 51, - "column": 35 - }, - "end": { - "line": 51, - "column": 45 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1000, - "end": 1001, - "loc": { - "start": { - "line": 51, - "column": 45 - }, - "end": { - "line": 51, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 1001, - "end": 1009, - "loc": { - "start": { - "line": 51, - "column": 46 - }, - "end": { - "line": 51, - "column": 54 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1009, - "end": 1010, - "loc": { - "start": { - "line": 51, - "column": 54 - }, - "end": { - "line": 51, - "column": 55 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1010, - "end": 1011, - "loc": { - "start": { - "line": 51, - "column": 55 - }, - "end": { - "line": 51, - "column": 56 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1020, - "end": 1021, - "loc": { - "start": { - "line": 52, - "column": 8 - }, - "end": { - "line": 52, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1021, - "end": 1022, - "loc": { - "start": { - "line": 52, - "column": 9 - }, - "end": { - "line": 52, - "column": 10 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1029, - "end": 1030, - "loc": { - "start": { - "line": 53, - "column": 6 - }, - "end": { - "line": 53, - "column": 7 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1030, - "end": 1031, - "loc": { - "start": { - "line": 53, - "column": 7 - }, - "end": { - "line": 53, - "column": 8 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1031, - "end": 1032, - "loc": { - "start": { - "line": 53, - "column": 8 - }, - "end": { - "line": 53, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "responseHandler", - "start": 1033, - "end": 1048, - "loc": { - "start": { - "line": 53, - "column": 10 - }, - "end": { - "line": 53, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1048, - "end": 1049, - "loc": { - "start": { - "line": 53, - "column": 25 - }, - "end": { - "line": 53, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 1049, - "end": 1057, - "loc": { - "start": { - "line": 53, - "column": 26 - }, - "end": { - "line": 53, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1057, - "end": 1058, - "loc": { - "start": { - "line": 53, - "column": 34 - }, - "end": { - "line": 53, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1058, - "end": 1059, - "loc": { - "start": { - "line": 53, - "column": 35 - }, - "end": { - "line": 53, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1066, - "end": 1067, - "loc": { - "start": { - "line": 54, - "column": 6 - }, - "end": { - "line": 54, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "on", - "start": 1067, - "end": 1069, - "loc": { - "start": { - "line": 54, - "column": 7 - }, - "end": { - "line": 54, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1069, - "end": 1070, - "loc": { - "start": { - "line": 54, - "column": 9 - }, - "end": { - "line": 54, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 1070, - "end": 1077, - "loc": { - "start": { - "line": 54, - "column": 10 - }, - "end": { - "line": 54, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1077, - "end": 1078, - "loc": { - "start": { - "line": 54, - "column": 17 - }, - "end": { - "line": 54, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "errorHandler", - "start": 1079, - "end": 1091, - "loc": { - "start": { - "line": 54, - "column": 19 - }, - "end": { - "line": 54, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1091, - "end": 1092, - "loc": { - "start": { - "line": 54, - "column": 31 - }, - "end": { - "line": 54, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "callback", - "start": 1092, - "end": 1100, - "loc": { - "start": { - "line": 54, - "column": 32 - }, - "end": { - "line": 54, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1100, - "end": 1101, - "loc": { - "start": { - "line": 54, - "column": 40 - }, - "end": { - "line": 54, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1101, - "end": 1102, - "loc": { - "start": { - "line": 54, - "column": 41 - }, - "end": { - "line": 54, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1102, - "end": 1103, - "loc": { - "start": { - "line": 54, - "column": 42 - }, - "end": { - "line": 54, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 1109, - "end": 1112, - "loc": { - "start": { - "line": 56, - "column": 4 - }, - "end": { - "line": 56, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1112, - "end": 1113, - "loc": { - "start": { - "line": 56, - "column": 7 - }, - "end": { - "line": 56, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "write", - "start": 1113, - "end": 1118, - "loc": { - "start": { - "line": 56, - "column": 8 - }, - "end": { - "line": 56, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1118, - "end": 1119, - "loc": { - "start": { - "line": 56, - "column": 13 - }, - "end": { - "line": 56, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "JSONData", - "start": 1119, - "end": 1127, - "loc": { - "start": { - "line": 56, - "column": 14 - }, - "end": { - "line": 56, - "column": 22 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1127, - "end": 1128, - "loc": { - "start": { - "line": 56, - "column": 22 - }, - "end": { - "line": 56, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1128, - "end": 1129, - "loc": { - "start": { - "line": 56, - "column": 23 - }, - "end": { - "line": 56, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 1134, - "end": 1137, - "loc": { - "start": { - "line": 57, - "column": 4 - }, - "end": { - "line": 57, - "column": 7 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1137, - "end": 1138, - "loc": { - "start": { - "line": 57, - "column": 7 - }, - "end": { - "line": 57, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "end", - "start": 1138, - "end": 1141, - "loc": { - "start": { - "line": 57, - "column": 8 - }, - "end": { - "line": 57, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1141, - "end": 1142, - "loc": { - "start": { - "line": 57, - "column": 11 - }, - "end": { - "line": 57, - "column": 12 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1142, - "end": 1143, - "loc": { - "start": { - "line": 57, - "column": 12 - }, - "end": { - "line": 57, - "column": 13 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1143, - "end": 1144, - "loc": { - "start": { - "line": 57, - "column": 13 - }, - "end": { - "line": 57, - "column": 14 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1147, - "end": 1148, - "loc": { - "start": { - "line": 58, - "column": 2 - }, - "end": { - "line": 58, - "column": 3 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1150, - "end": 1151, - "loc": { - "start": { - "line": 60, - "column": 0 - }, - "end": { - "line": 60, - "column": 1 - } - } - }, - { - "type": { - "label": "export", - "keyword": "export", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "export", - "start": 1153, - "end": 1159, - "loc": { - "start": { - "line": 62, - "column": 0 - }, - "end": { - "line": 62, - "column": 6 - } - } - }, - { - "type": { - "label": "default", - "keyword": "default", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "default", - "start": 1160, - "end": 1167, - "loc": { - "start": { - "line": 62, - "column": 7 - }, - "end": { - "line": 62, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Webhook", - "start": 1168, - "end": 1175, - "loc": { - "start": { - "line": 62, - "column": 15 - }, - "end": { - "line": 62, - "column": 22 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1175, - "end": 1176, - "loc": { - "start": { - "line": 62, - "column": 22 - }, - "end": { - "line": 62, - "column": 23 - } - } - }, - { - "type": { - "label": "eof", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1177, - "end": 1177, - "loc": { - "start": { - "line": 63, - "column": 0 - }, - "end": { - "line": 63, - "column": 0 - } - } - } - ] -} \ No newline at end of file diff --git a/docs/badge.svg b/docs/badge.svg deleted file mode 100644 index ab7df2ba..00000000 --- a/docs/badge.svg +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - document - document - 95% - 95% - - diff --git a/docs/class/lib/document-group-template/index.js~DocumentGroupTemplate.html b/docs/class/lib/document-group-template/index.js~DocumentGroupTemplate.html deleted file mode 100644 index 90fba4bd..00000000 --- a/docs/class/lib/document-group-template/index.js~DocumentGroupTemplate.html +++ /dev/null @@ -1,544 +0,0 @@ - - - - - - DocumentGroupTemplate | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -
- - public - class - - - - | source -
- -
-

DocumentGroupTemplate

- - - - - - - - - - - - - - - -

Document Group Template methods

-
- - - - - - - - - -
- - -

Static Method Summary

- - - - - - - - - - - - - - - - - - - -
Static Public Methods
- public - static - - - - - -
- - -

Creates Document Group Template with specified templates and settings

-
-
-
- - -
- public - static - - - - - -
- - -

Creates an invite to sign a Document Group Template

-
-
-
- - -
- public - static - - - - - -
- - -

Retrieves a Document Group Template detailed data

-
-
-
- - -
-
- - - - - - - -

Static Public Methods

- -
-

- public - static - - - - - create(data: DocumentGroupTemplateCreateParams, callback: function(err: ApiErrorResponse, res: DocumentGroupTemplateCreateResponse)) - - - - source - -

- - - - -

Creates Document Group Template with specified templates and settings

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataDocumentGroupTemplateCreateParams

create Document Group Template payload

-
callbackfunction(err: ApiErrorResponse, res: DocumentGroupTemplateCreateResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - invite(data: DocumentGroupTemplateInviteParams, callback: function(err: ApiErrorResponse, res: DocumentGroupTemplateInviteResponse)) - - - - source - -

- - - - -

Creates an invite to sign a Document Group Template

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataDocumentGroupTemplateInviteParams

create Document Group Template invite payload

-
callbackfunction(err: ApiErrorResponse, res: DocumentGroupTemplateInviteResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - view(data: DocumentGroupTemplateViewParams, callback: function(err: ApiErrorResponse, res: DocumentGroupTemplateViewResponse)) - - - - source - -

- - - - -

Retrieves a Document Group Template detailed data

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataDocumentGroupTemplateViewParams

view Document Group Template details payload

-
callbackfunction(err: ApiErrorResponse, res: DocumentGroupTemplateViewResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
- - - -
- - - - - - - - - - - - diff --git a/docs/class/lib/document-group/index.js~DocumentGroup.html b/docs/class/lib/document-group/index.js~DocumentGroup.html deleted file mode 100644 index bfa1207a..00000000 --- a/docs/class/lib/document-group/index.js~DocumentGroup.html +++ /dev/null @@ -1,742 +0,0 @@ - - - - - - DocumentGroup | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -
- - public - class - - - - | source -
- -
-

DocumentGroup

- - - - - - - - - - - - - - - -

Document Group methods

-
- - - - - - - - - -
- - -

Static Method Summary

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Static Public Methods
- public - static - - - - - -
- - -

Cancels an Invite to sign a specific Document Group

-
-
-
- - -
- public - static - - - - - -
- - -

Creates document group with specified documents or templates.

-
-
-
- - -
- public - static - - - - - -
- - -

Downloads a document group.

-
-
-
- - -
- public - static - - - - - -
- - -

Creates an invite to sign a Document Group

-
-
-
- - -
- public - static - - - - - -
- - -

Retrieves a Document Group detailed data

-
-
-
- - -
-
- - - - - - - -

Static Public Methods

- -
-

- public - static - - - - - cancelInvite(data: DocumentGroupCancelInviteParams, callback: function(err: ApiErrorResponse, res: DocumentGroupCancelInviteResponse)) - - - - source - -

- - - - -

Cancels an Invite to sign a specific Document Group

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataDocumentGroupCancelInviteParams

cancel Document Group Invite payload

-
callbackfunction(err: ApiErrorResponse, res: DocumentGroupCancelInviteResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - create(data: DocumentGroupCreateParams, callback: function(err: ApiErrorResponse, res: DocumentGroupCreateResponse)) - - - - source - -

- - - - -

Creates document group with specified documents or templates. -At least one document or template must contain fields. Documents should not contain pending invites.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataDocumentGroupCreateParams

create document group payload

-
callbackfunction(err: ApiErrorResponse, res: DocumentGroupCreateResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - download(data: DocumentGroupDownloadParams, callback: function(err: ApiErrorResponse, res: DocumentGroupDownloadResponse)) - - - - source - -

- - - - -

Downloads a document group. -By default document group will be downloaded as a zip archive and without history. -To download document group as a single merged PDF set type to merged. -To download document group with history set with_history to after_each_document or after_merged_pdf.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataDocumentGroupDownloadParams

download Document Group request payload

-
callbackfunction(err: ApiErrorResponse, res: DocumentGroupDownloadResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - invite(data: DocumentGroupInviteParams, callback: function(err: ApiErrorResponse, res: DocumentGroupInviteResponse)) - - - - source - -

- - - - -

Creates an invite to sign a Document Group

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataDocumentGroupInviteParams

create Document Group invite payload

-
callbackfunction(err: ApiErrorResponse, res: DocumentGroupInviteResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - view(data: DocumentGroupViewParams, callback: function(err: ApiErrorResponse, res: DocumentGroupViewResponse)) - - - - source - -

- - - - -

Retrieves a Document Group detailed data

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataDocumentGroupViewParams

view Document Group details payload

-
callbackfunction(err: ApiErrorResponse, res: DocumentGroupViewResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
- - - -
- - - - - - - - - - - - diff --git a/docs/class/lib/document.js~Document.html b/docs/class/lib/document.js~Document.html deleted file mode 100644 index d79f85b6..00000000 --- a/docs/class/lib/document.js~Document.html +++ /dev/null @@ -1,1366 +0,0 @@ - - - - - - Document | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -
- - public - class - - - - | source -
- -
-

Document

- - - - - - - - - - - - - - - -

Document methods

-
- - - - - - - - - -
- - -

Static Method Summary

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Static Public Methods
- public - static - - - - -
-

- - - - cancelInvite(objectPattern: {"id": *, "token": *}, callback: *) -

-
-
- - - -
-
- - -
- public - static - - - - -
-

- - - - create(data: DocumentCreateParams, callback: function(err: ApiErrorResponse, res: DocumentCreateResponse)) -

-
-
- - -

Uploads a file and creates a document.

-
-
-
- - -
- public - static - - - - -
-

- - - - download(data: DocumentDownloadParams, callback: function(err: ApiErrorResponse, res: DocumentDownloadResponse)) -

-
-
- - -

Downloads document with embedded fields and elements

-
-
-
- - -
- public - static - - - - -
-

- - - - fieldextract(data: DocumentFieldExtractParams, callback: function(err: ApiErrorResponse, res: DocumentFieldExtractResponse)) -

-
-
- - -

Uploads a file that contains SignNow Document Field Tags.

-
-
-
- - -
- public - static - - - - -
-

- - - - history(data: DocumentHistoryParams, callback: function(err: ApiErrorResponse, res: DocumentHistoryResponse)) -

-
-
- - -

Retrieves a document action log (history) data

-
-
-
- - -
- public - static - - - - -
-

- - - - invite(data: DocumentInviteParams, callback: function(err: ApiErrorResponse, res: DocumentInviteResponse)) -

-
-
- - -

Creates an invite to sign a document.

-
-
-
- - -
- public - static - - - - -
-

- - - - list(data: DocumentListParams, callback: function(err: ApiErrorResponse, res: DocumentListItem)) -

-
-
- - -

Retrieve user's document list

-
-
-
- - -
- public - static - - - - -
-

- - - - merge(data: DocumentMergeParams, originalCallback: function(err: ApiErrorResponse, res: DocumentMergeResponse)) -

-
-
- - -

Merges existing documents into one.

-
-
-
- - -
- public - static - - - - -
-

- - - - remove(data: DocumentRemoveParams, callback: function(err: ApiErrorResponse, res: DocumentRemoveResponse)) -

-
-
- - -

Removes a specified document from folder

-
-
-
- - -
- public - static - - - - -
-

- - - - share(objectPattern: {"id": *, "token": *}, callback: *) -

-
-
- - - -
-
- - -
- public - static - - - - -
-

- - - - update(data: DocumentUpdateParams, callback: function(err: ApiErrorResponse, res: DocumentUpdateResponse)) -

-
-
- - -

Updates an existing document.

-
-
-
- - -
- public - static - - - - -
-

- - - - view(data: DocumentViewParams, callback: function(err: ApiErrorResponse, res: DocumentViewResponse)) -

-
-
- - -

Retrieves a document detailed data

-
-
-
- - -
-
- - - - - - - -

Static Public Methods

- -
-

- public - static - - - - - cancelInvite(objectPattern: {"id": *, "token": *}, callback: *) - - - - source - -

- - - - - - - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
objectPattern{"id": *, "token": *}
  • default: {"id":null,"token":null}
callback*
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - create(data: DocumentCreateParams, callback: function(err: ApiErrorResponse, res: DocumentCreateResponse)) - - - - source - -

- - - - -

Uploads a file and creates a document. -This endpoint accepts .pdf, .doc, .docx, .odt, .rtf, .png, .jpg, .jpeg, .gif, .bmp, .xml, .xls, .xlsx, .ppt, .pptx file types

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataDocumentCreateParams

create document payload

-
callbackfunction(err: ApiErrorResponse, res: DocumentCreateResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - download(data: DocumentDownloadParams, callback: function(err: ApiErrorResponse, res: DocumentDownloadResponse)) - - - - source - -

- - - - -

Downloads document with embedded fields and elements

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataDocumentDownloadParams

download document request payload

-
callbackfunction(err: ApiErrorResponse, res: DocumentDownloadResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - fieldextract(data: DocumentFieldExtractParams, callback: function(err: ApiErrorResponse, res: DocumentFieldExtractResponse)) - - - - source - -

- - - - -

Uploads a file that contains SignNow Document Field Tags. -This endpoint only accepts .pdf (you may convert the document from .doc or .docx to .pdf)

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataDocumentFieldExtractParams

upload document with field extract payload

-
callbackfunction(err: ApiErrorResponse, res: DocumentFieldExtractResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - history(data: DocumentHistoryParams, callback: function(err: ApiErrorResponse, res: DocumentHistoryResponse)) - - - - source - -

- - - - -

Retrieves a document action log (history) data

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataDocumentHistoryParams

payload

-
callbackfunction(err: ApiErrorResponse, res: DocumentHistoryResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - invite(data: DocumentInviteParams, callback: function(err: ApiErrorResponse, res: DocumentInviteResponse)) - - - - source - -

- - - - -

Creates an invite to sign a document. -You can create a simple free form invite(s) or a role-based invite(s).

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataDocumentInviteParams

create document invite payload

-
callbackfunction(err: ApiErrorResponse, res: DocumentInviteResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - list(data: DocumentListParams, callback: function(err: ApiErrorResponse, res: DocumentListItem)) - - - - source - -

- - - - -

Retrieve user's document list

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataDocumentListParams

payload to receive user's document list

-
callbackfunction(err: ApiErrorResponse, res: DocumentListItem)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - merge(data: DocumentMergeParams, originalCallback: function(err: ApiErrorResponse, res: DocumentMergeResponse)) - - - - source - -

- - - - -

Merges existing documents into one. -By default original documents are not removed after merging. To remove original documents set removeOriginalDocuments option to true.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataDocumentMergeParams

merge documents payload

-
originalCallbackfunction(err: ApiErrorResponse, res: DocumentMergeResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - remove(data: DocumentRemoveParams, callback: function(err: ApiErrorResponse, res: DocumentRemoveResponse)) - - - - source - -

- - - - -

Removes a specified document from folder

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataDocumentRemoveParams

remove document payload

-
callbackfunction(err: ApiErrorResponse, res: DocumentRemoveResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - share(objectPattern: {"id": *, "token": *}, callback: *) - - - - source - -

- - - - - - - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
objectPattern{"id": *, "token": *}
  • default: {"id":null,"token":null}
callback*
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - update(data: DocumentUpdateParams, callback: function(err: ApiErrorResponse, res: DocumentUpdateResponse)) - - - - source - -

- - - - -

Updates an existing document. -Adds fields (signature, text, initials, checkbox, radiobutton group, calculated) and elements (signature, text, check). -Every call of this method will add only specified fields into document. -Old fields will be removed

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataDocumentUpdateParams

update document request payload

-
callbackfunction(err: ApiErrorResponse, res: DocumentUpdateResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - view(data: DocumentViewParams, callback: function(err: ApiErrorResponse, res: DocumentViewResponse)) - - - - source - -

- - - - -

Retrieves a document detailed data

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataDocumentViewParams

view document details payload

-
callbackfunction(err: ApiErrorResponse, res: DocumentViewResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
- - - -
- - - - - - - - - - - - diff --git a/docs/class/lib/document/index.js~Document.html b/docs/class/lib/document/index.js~Document.html deleted file mode 100644 index f91b9394..00000000 --- a/docs/class/lib/document/index.js~Document.html +++ /dev/null @@ -1,1718 +0,0 @@ - - - - - - Document | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -
- - public - class - - - - | source -
- -
-

Document

- - - - - - - - - - - - - - - -

Document methods

-
- - - - - - - - - -
- - -

Static Method Summary

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Static Public Methods
- public - static - - - - - -
- - -

Cancels an invite to a document

-
-
-
- - -
- public - static - - - - - -
- - -

Cancels sent freeform invite

-
-
-
- - -
- public - static - - - - - -
-
this method was deprecated. use Document.cancelFieldInvite instead of this
- -

Cancels an invite to a document

-
-
-
- - -
- public - static - - - - -
-

- - - - create(data: DocumentCreateParams, callback: function(err: ApiErrorResponse, res: DocumentCreateResponse)) -

-
-
- - -

Uploads a file and creates a document.

-
-
-
- - -
- public - static - - - - - -
- - -

Downloads document with embedded fields and elements.

-
-
-
- - -
- public - static - - - - - -
- - -

Uploads a file that contains SignNow Document Field Tags.

-
-
-
- - -
- public - static - - - - -
-

- - - - history(data: DocumentHistoryParams, callback: function(err: ApiErrorResponse, res: DocumentHistoryResponse)) -

-
-
- - -

Retrieves a document action log (history) data

-
-
-
- - -
- public - static - - - - -
-

- - - - invite(data: DocumentInviteParams, callback: function(err: ApiErrorResponse, res: DocumentInviteResponse)) -

-
-
- - -

Creates an invite to sign a document.

-
-
-
- - -
- public - static - - - - -
-

- - - - list(data: DocumentListParams, callback: function(err: ApiErrorResponse, res: DocumentListItem)) -

-
-
- - -

Retrieve user's document list

-
-
-
- - -
- public - static - - - - -
-

- - - - merge(data: DocumentMergeParams, originalCallback: function(err: ApiErrorResponse, res: DocumentMergeResponse)) -

-
-
- - -

Merges existing documents into one.

-
-
-
- - -
- public - static - - - - -
-

- - - - remove(data: DocumentRemoveParams, originalCallback: function(err: ApiErrorResponse, res: DocumentRemoveResponse)) -

-
-
- - -

Removes a specified document from folder

-
-
-
- - -
- public - static - - - - -
-

- - - - share(data: DocumentShareParams, callback: function(err: ApiErrorResponse, res: DocumentShareResponse)) -

-
-
- - -

Requests a link to download document with embedded fields and elements -Link can be used once and then will expire

-
-
-
- - -
- public - static - - - - -
-

- - - - signers(data: DocumentSignersParams, callback: function(err: ApiErrorResponse, res: DocumentSignersResponse)) -

-
-
- -
this method is experimental. this class includes breaking change.
-

Retrieves all signers of specific document

-
-
-
- - -
- public - static - - - - -
-

- - - - update(data: DocumentUpdateParams, callback: function(err: ApiErrorResponse, res: DocumentUpdateResponse)) -

-
-
- - -

Updates an existing document.

-
-
-
- - -
- public - static - - - - -
-

- - - - view(data: DocumentViewParams, callback: function(err: ApiErrorResponse, res: DocumentViewResponse)) -

-
-
- - -

Retrieves a document detailed data

-
-
-
- - -
-
- - - - - - - -

Static Public Methods

- -
-

- public - static - - - - - cancelFieldInvite(data: DocumentFieldInviteCancelParams, callback: function(err: ApiErrorResponse, res: DocumentFieldInviteCancelResponse)) - - - - source - -

- - - - -

Cancels an invite to a document

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataDocumentFieldInviteCancelParams

cancel field invite payload

-
callbackfunction(err: ApiErrorResponse, res: DocumentFieldInviteCancelResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - cancelFreeFormInvite(data: CancelFreeformInviteParams, callback: function(err: ApiErrorResponse, res: CancelFreeformInviteResponse)) - - - - source - -

- - - - -

Cancels sent freeform invite

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataCancelFreeformInviteParams

cancel freeform invite payload

-
callbackfunction(err: ApiErrorResponse, res: CancelFreeformInviteResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - cancelInvite(data: DocumentFieldInviteCancelParams, callback: function(err: ApiErrorResponse, res: DocumentFieldInviteCancelResponse)) - - - - source - -

- - -
this method was deprecated. use Document.cancelFieldInvite instead of this
- -

Cancels an invite to a document

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataDocumentFieldInviteCancelParams

cancel field invite payload

-
callbackfunction(err: ApiErrorResponse, res: DocumentFieldInviteCancelResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - create(data: DocumentCreateParams, callback: function(err: ApiErrorResponse, res: DocumentCreateResponse)) - - - - source - -

- - - - -

Uploads a file and creates a document. -This endpoint accepts .pdf, .doc, .docx, .odt, .rtf, .png, .jpg, .jpeg, .gif, .bmp, .xml, .xls, .xlsx, .ppt, .pptx file types

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataDocumentCreateParams

create document payload

-
callbackfunction(err: ApiErrorResponse, res: DocumentCreateResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - download(data: DocumentDownloadParams, callback: function(err: ApiErrorResponse, res: DocumentDownloadResponse)) - - - - source - -

- - - - -

Downloads document with embedded fields and elements. -By default document is downloaded without history. To download document with history set withHistory option to true.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataDocumentDownloadParams

download document request payload

-
callbackfunction(err: ApiErrorResponse, res: DocumentDownloadResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - fieldextract(data: DocumentFieldExtractParams, callback: function(err: ApiErrorResponse, res: DocumentFieldExtractResponse)) - - - - source - -

- - - - -

Uploads a file that contains SignNow Document Field Tags. -This endpoint only accepts .pdf (you may convert the document from .doc or .docx to .pdf)

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataDocumentFieldExtractParams

upload document with field extract payload

-
callbackfunction(err: ApiErrorResponse, res: DocumentFieldExtractResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - history(data: DocumentHistoryParams, callback: function(err: ApiErrorResponse, res: DocumentHistoryResponse)) - - - - source - -

- - - - -

Retrieves a document action log (history) data

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataDocumentHistoryParams

payload

-
callbackfunction(err: ApiErrorResponse, res: DocumentHistoryResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - invite(data: DocumentInviteParams, callback: function(err: ApiErrorResponse, res: DocumentInviteResponse)) - - - - source - -

- - - - -

Creates an invite to sign a document. -You can create a simple free form invite(s) or a role-based invite(s).

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataDocumentInviteParams

create document invite payload

-
callbackfunction(err: ApiErrorResponse, res: DocumentInviteResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - list(data: DocumentListParams, callback: function(err: ApiErrorResponse, res: DocumentListItem)) - - - - source - -

- - - - -

Retrieve user's document list

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataDocumentListParams

payload to receive user's document list

-
callbackfunction(err: ApiErrorResponse, res: DocumentListItem)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - merge(data: DocumentMergeParams, originalCallback: function(err: ApiErrorResponse, res: DocumentMergeResponse)) - - - - source - -

- - - - -

Merges existing documents into one. -By default original documents are not removed after merging. To remove original documents set removeOriginalDocuments option to true.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataDocumentMergeParams

merge documents payload

-
originalCallbackfunction(err: ApiErrorResponse, res: DocumentMergeResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - remove(data: DocumentRemoveParams, originalCallback: function(err: ApiErrorResponse, res: DocumentRemoveResponse)) - - - - source - -

- - - - -

Removes a specified document from folder

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataDocumentRemoveParams

remove document payload

-
originalCallbackfunction(err: ApiErrorResponse, res: DocumentRemoveResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - share(data: DocumentShareParams, callback: function(err: ApiErrorResponse, res: DocumentShareResponse)) - - - - source - -

- - - - -

Requests a link to download document with embedded fields and elements -Link can be used once and then will expire

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataDocumentShareParams

share document request payload

-
callbackfunction(err: ApiErrorResponse, res: DocumentShareResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - signers(data: DocumentSignersParams, callback: function(err: ApiErrorResponse, res: DocumentSignersResponse)) - - - - source - -

- - - -
this method is experimental. this class includes breaking change.
-

Retrieves all signers of specific document

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataDocumentSignersParams

get document signers payload

-
callbackfunction(err: ApiErrorResponse, res: DocumentSignersResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - update(data: DocumentUpdateParams, callback: function(err: ApiErrorResponse, res: DocumentUpdateResponse)) - - - - source - -

- - - - -

Updates an existing document. -Adds fields (signature, text, initials, checkbox, radiobutton group, calculated) and elements (signature, text, check). -Every call of this method will add only specified fields into document. -Old fields will be removed

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataDocumentUpdateParams

update document request payload

-
callbackfunction(err: ApiErrorResponse, res: DocumentUpdateResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - view(data: DocumentViewParams, callback: function(err: ApiErrorResponse, res: DocumentViewResponse)) - - - - source - -

- - - - -

Retrieves a document detailed data

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataDocumentViewParams

view document details payload

-
callbackfunction(err: ApiErrorResponse, res: DocumentViewResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
- - - -
- - - - - - - - - - - - diff --git a/docs/class/lib/documentGroup.js~DocumentGroup.html b/docs/class/lib/documentGroup.js~DocumentGroup.html deleted file mode 100644 index 0db758d0..00000000 --- a/docs/class/lib/documentGroup.js~DocumentGroup.html +++ /dev/null @@ -1,398 +0,0 @@ - - - - - - DocumentGroup | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -
-
import DocumentGroup from '@signnow/api-client/lib/documentGroup.js'
- public - class - - - - | source -
- -
-

DocumentGroup

- - - - - - - - - - - - - - - -

Document Group methods

-
- - - - - - - - - -
- - -

Static Method Summary

- - - - - - - - - - - - - - -
Static Public Methods
- public - static - - - - -
-

- - - - create(data: DocumentGroupCreateParams, callback: function(err: ApiErrorResponse, res: DocumentGroupCreateResponse)) -

-
-
- - -

Creates document group with specified documents or templates.

-
-
-
- - -
- public - static - - - - -
-

- - - - invite(data: DocumentGroupInviteParams, callback: function(err: ApiErrorResponse, res: DocumentGroupInviteResponse)) -

-
-
- - -

Creates an invite to sign a document group

-
-
-
- - -
-
- - - - - - - -

Static Public Methods

- -
-

- public - static - - - - - create(data: DocumentGroupCreateParams, callback: function(err: ApiErrorResponse, res: DocumentGroupCreateResponse)) - - - - source - -

- - - - -

Creates document group with specified documents or templates. -At least one document or template must contain fields. Documents should not be signed, contain epending invites or signature requests.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataDocumentGroupCreateParams

create document group payload

-
callbackfunction(err: ApiErrorResponse, res: DocumentGroupCreateResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - invite(data: DocumentGroupInviteParams, callback: function(err: ApiErrorResponse, res: DocumentGroupInviteResponse)) - - - - source - -

- - - - -

Creates an invite to sign a document group

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataDocumentGroupInviteParams

create Document Group invite payload

-
callbackfunction(err: ApiErrorResponse, res: DocumentGroupInviteResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
- - - -
- - - - - - - - - - - - diff --git a/docs/class/lib/documentGroupTemplate.js~DocumentGroupTemplate.html b/docs/class/lib/documentGroupTemplate.js~DocumentGroupTemplate.html deleted file mode 100644 index 9b7b2e9d..00000000 --- a/docs/class/lib/documentGroupTemplate.js~DocumentGroupTemplate.html +++ /dev/null @@ -1,300 +0,0 @@ - - - - - - DocumentGroupTemplate | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -
-
import DocumentGroupTemplate from '@signnow/api-client/lib/documentGroupTemplate.js'
- public - class - - - - | source -
- -
-

DocumentGroupTemplate

- - - - - - - - - - - - - - - -

Document Group Template methods

-
- - - - - - - - - -
- - -

Static Method Summary

- - - - - - - - - -
Static Public Methods
- public - static - - - - - -
- - -

Creates Document Group Template with specified templates and settings

-
-
-
- - -
-
- - - - - - - -

Static Public Methods

- -
-

- public - static - - - - - create(data: DocumentGroupTemplateCreateParams, callback: function(err: ApiErrorResponse, res: DocumentGroupTemplateCreateResponse)) - - - - source - -

- - - - -

Creates Document Group Template with specified templates and settings

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataDocumentGroupTemplateCreateParams

create Document Group Template payload

-
callbackfunction(err: ApiErrorResponse, res: DocumentGroupTemplateCreateResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
- - - -
- - - - - - - - - - - - diff --git a/docs/class/lib/embedded/index.js~Embedded.html b/docs/class/lib/embedded/index.js~Embedded.html deleted file mode 100644 index dc0422aa..00000000 --- a/docs/class/lib/embedded/index.js~Embedded.html +++ /dev/null @@ -1,544 +0,0 @@ - - - - - - Embedded | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -
- - public - class - - - - | source -
- -
-

Embedded

- - - - - - - - - - - - - - - -

Embedded methods

-
- - - - - - - - - -
- - -

Static Method Summary

- - - - - - - - - - - - - - - - - - - -
Static Public Methods
- public - static - - - - - -
- - -

Delete embedded invites for a document.

-
-
-
- - -
- public - static - - - - - -
- - -

Create embedded signing invites for a document without sending emails.

-
-
-
- - -
- public - static - - - - - -
- - -

Generate a link for the embedded invite.

-
-
-
- - -
-
- - - - - - - -

Static Public Methods

- -
-

- public - static - - - - - cancelInvites(data: EmbeddedCancelInvitePayload, callback: function(err: ApiErrorResponse, res: EmbeddedCancelInviteResponse)) - - - - source - -

- - - - -

Delete embedded invites for a document.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataEmbeddedCancelInvitePayload

Delete embedded invites for a document payload

-
callbackfunction(err: ApiErrorResponse, res: EmbeddedCancelInviteResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - createInvite(data: EmbeddedCreateInvitesPayload, callback: function(err: ApiErrorResponse, res: EmbeddedCreateInvitesResponse)) - - - - source - -

- - - - -

Create embedded signing invites for a document without sending emails.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataEmbeddedCreateInvitesPayload

Create invites payload

-
callbackfunction(err: ApiErrorResponse, res: EmbeddedCreateInvitesResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
- - - - - -

Generate a link for the embedded invite.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataEmbeddedGenerateLinkPayload

Generate embedded invite link payload

-
callbackfunction(err: ApiErrorResponse, res: EmbeddedGenerateLinkResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
- - - -
- - - - - - - - - - - - diff --git a/docs/class/lib/enumerations/index.js~Enumerations.html b/docs/class/lib/enumerations/index.js~Enumerations.html deleted file mode 100644 index 322d3535..00000000 --- a/docs/class/lib/enumerations/index.js~Enumerations.html +++ /dev/null @@ -1,397 +0,0 @@ - - - - - - Enumerations | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -
- - public - class - - - - | source -
- -
-

Enumerations

- - - - - - - - - - - - - - - -

Enumeration methods

-
- - - - - - - - - -
- - -

Static Method Summary

- - - - - - - - - - - - - - -
Static Public Methods
- public - static - - - - -
-

- - - - addField(data: *, callback: *) -

-
-
- - - -
-
- - -
- public - static - - - - -
-

- - - - addOptions(data: *, callback: *) -

-
-
- - - -
-
- - -
-
- - - - - - - -

Static Public Methods

- -
-

- public - static - - - - - addField(data: *, callback: *) - - - - source - -

- - - - - - - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
data*
callback*
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - addOptions(data: *, callback: *) - - - - source - -

- - - - - - - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
data*
callback*
-
-
- - - - - - - - - - - - - - - - - -
-
- - - -
- - - - - - - - - - - - diff --git a/docs/class/lib/folder/index.js~Folder.html b/docs/class/lib/folder/index.js~Folder.html deleted file mode 100644 index 1315a4fb..00000000 --- a/docs/class/lib/folder/index.js~Folder.html +++ /dev/null @@ -1,397 +0,0 @@ - - - - - - Folder | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -
- - public - class - - - - | source -
- -
-

Folder

- - - - - - - - - - - - - - - -

Folder methods

-
- - - - - - - - - -
- - -

Static Method Summary

- - - - - - - - - - - - - - -
Static Public Methods
- public - static - - - - -
-

- - - - documents(objectPattern: {"id": *, "filter": *, "sort": *, "token": *}, callback: *) -

-
-
- - - -
-
- - -
- public - static - - - - -
-

- - - - list(objectPattern: {"token": *}, callback: *) -

-
-
- - - -
-
- - -
-
- - - - - - - -

Static Public Methods

- -
-

- public - static - - - - - documents(objectPattern: {"id": *, "filter": *, "sort": *, "token": *}, callback: *) - - - - source - -

- - - - - - - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
objectPattern{"id": *, "filter": *, "sort": *, "token": *}
  • default: {"id":null,"filter":null,"sort":null,"token":null}
callback*
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - list(objectPattern: {"token": *}, callback: *) - - - - source - -

- - - - - - - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
objectPattern{"token": *}
  • default: {"token":null}
callback*
-
-
- - - - - - - - - - - - - - - - - -
-
- - - -
- - - - - - - - - - - - diff --git a/docs/class/lib/link.js~Link.html b/docs/class/lib/link.js~Link.html deleted file mode 100644 index 50dec058..00000000 --- a/docs/class/lib/link.js~Link.html +++ /dev/null @@ -1,300 +0,0 @@ - - - - - - Link | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -
- - public - class - - - - | source -
- -
-

Link

- - - - - - - - - - - - - - - -

Link methods

-
- - - - - - - - - -
- - -

Static Method Summary

- - - - - - - - - -
Static Public Methods
- public - static - - - - -
-

- - - - create(data: SigningLinkCreateParams, callback: function(err: ApiErrorResponse, res: SigningLinkCreateResponse)) -

-
-
- - -

Creates signing link for specified document

-
-
-
- - -
-
- - - - - - - -

Static Public Methods

- -
-

- public - static - - - - - create(data: SigningLinkCreateParams, callback: function(err: ApiErrorResponse, res: SigningLinkCreateResponse)) - - - - source - -

- - - - -

Creates signing link for specified document

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataSigningLinkCreateParams

create signing link payload

-
callbackfunction(err: ApiErrorResponse, res: SigningLinkCreateResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
- - - -
- - - - - - - - - - - - diff --git a/docs/class/lib/link/index.js~Link.html b/docs/class/lib/link/index.js~Link.html deleted file mode 100644 index 845eb430..00000000 --- a/docs/class/lib/link/index.js~Link.html +++ /dev/null @@ -1,350 +0,0 @@ - - - - - - Link | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -
- - public - class - - - - | source -
- -
-

Link

- - - - - - - - - - - - - - - -

Link methods

-
- - - - - - - - - -
- - -

Static Method Summary

- - - - - - - - - -
Static Public Methods
- public - static - - - - - -
- - -

Creates signing link for specified document

-
-
-
- - -
-
- - - - - - - -

Static Public Methods

- -
-

- public - static - - - - - create(data: SigningLinkCreateParams, callback: function(err: ApiErrorResponse, res: SigningLinkCreateResponse)) - - - - source - -

- - - - -

Creates signing link for specified document

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataSigningLinkCreateParams

create signing link payload

-
callbackfunction(err: ApiErrorResponse, res: SigningLinkCreateResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
- - - -
- - - - - - - - - - - - diff --git a/docs/class/lib/oauth2.js~OAuth2.html b/docs/class/lib/oauth2.js~OAuth2.html deleted file mode 100644 index b16494be..00000000 --- a/docs/class/lib/oauth2.js~OAuth2.html +++ /dev/null @@ -1,494 +0,0 @@ - - - - - - OAuth2 | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -
- - public - class - - - - | source -
- -
-

OAuth2

- - - - - - - - - - - - - - - -

OAuth2 methods

-
- - - - - - - - - -
- - -

Static Method Summary

- - - - - - - - - - - - - - - - - - - -
Static Public Methods
- public - static - - - - -
-

- - - - refreshToken(data: AccessTokenRefreshParams, callback: function(err: ApiErrorResponse, res: AccessTokenRefreshResponse)) -

-
-
- - -

Refreshes access token for a user

-
-
-
- - -
- public - static - - - - -
-

- - - - requestToken(data: AccessTokenGetParams, callback: function(err: ApiErrorResponse, res: AccessTokenGetResponse)) -

-
-
- - -

Requests access token for a user

-
-
-
- - -
- public - static - - - - -
-

- - - - verify(data: AccessTokenVerifyParams, callback: function(err: ApiErrorResponse, res: AccessTokenVerifyResponse)) -

-
-
- - -

Verifies access token

-
-
-
- - -
-
- - - - - - - -

Static Public Methods

- -
-

- public - static - - - - - refreshToken(data: AccessTokenRefreshParams, callback: function(err: ApiErrorResponse, res: AccessTokenRefreshResponse)) - - - - source - -

- - - - -

Refreshes access token for a user

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataAccessTokenRefreshParams

refresh token request payload

-
callbackfunction(err: ApiErrorResponse, res: AccessTokenRefreshResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - requestToken(data: AccessTokenGetParams, callback: function(err: ApiErrorResponse, res: AccessTokenGetResponse)) - - - - source - -

- - - - -

Requests access token for a user

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataAccessTokenGetParams

access token reques payload

-
callbackfunction(err: ApiErrorResponse, res: AccessTokenGetResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - verify(data: AccessTokenVerifyParams, callback: function(err: ApiErrorResponse, res: AccessTokenVerifyResponse)) - - - - source - -

- - - - -

Verifies access token

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataAccessTokenVerifyParams

access token request payload

-
callbackfunction(err: ApiErrorResponse, res: AccessTokenVerifyResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
- - - -
- - - - - - - - - - - - diff --git a/docs/class/lib/oauth2/index.js~OAuth2.html b/docs/class/lib/oauth2/index.js~OAuth2.html deleted file mode 100644 index 5a364b22..00000000 --- a/docs/class/lib/oauth2/index.js~OAuth2.html +++ /dev/null @@ -1,544 +0,0 @@ - - - - - - OAuth2 | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -
- - public - class - - - - | source -
- -
-

OAuth2

- - - - - - - - - - - - - - - -

OAuth2 methods

-
- - - - - - - - - -
- - -

Static Method Summary

- - - - - - - - - - - - - - - - - - - -
Static Public Methods
- public - static - - - - - -
- - -

Refreshes access token for a user

-
-
-
- - -
- public - static - - - - - -
- - -

Requests access token for a user

-
-
-
- - -
- public - static - - - - - -
- - -

Verifies access token

-
-
-
- - -
-
- - - - - - - -

Static Public Methods

- -
-

- public - static - - - - - refreshToken(data: AccessTokenRefreshParams, callback: function(err: ApiErrorResponse, res: AccessTokenRefreshResponse)) - - - - source - -

- - - - -

Refreshes access token for a user

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataAccessTokenRefreshParams

refresh token request payload

-
callbackfunction(err: ApiErrorResponse, res: AccessTokenRefreshResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - requestToken(data: AccessTokenGetParams, callback: function(err: ApiErrorResponse, res: AccessTokenGetResponse)) - - - - source - -

- - - - -

Requests access token for a user

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataAccessTokenGetParams

access token reques payload

-
callbackfunction(err: ApiErrorResponse, res: AccessTokenGetResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - verify(data: AccessTokenVerifyParams, callback: function(err: ApiErrorResponse, res: AccessTokenVerifyResponse)) - - - - source - -

- - - - -

Verifies access token

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataAccessTokenVerifyParams

access token request payload

-
callbackfunction(err: ApiErrorResponse, res: AccessTokenVerifyResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
- - - -
- - - - - - - - - - - - diff --git a/docs/class/lib/template.js~Template.html b/docs/class/lib/template.js~Template.html deleted file mode 100644 index c099bb69..00000000 --- a/docs/class/lib/template.js~Template.html +++ /dev/null @@ -1,595 +0,0 @@ - - - - - - Template | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -
- - public - class - - - - | source -
- -
-

Template

- - - - - - - - - - - - - - - -

Template methods

-
- - - - - - - - - -
- - -

Static Method Summary

- - - - - - - - - - - - - - - - - - - - - - - - -
Static Public Methods
- public - static - - - - -
-

- - - - create(data: TemplateCreateParams, originalCallback: function(err: ApiErrorResponse, res: TemplateCreateResponse)) -

-
-
- - -

Creates a template by copying an existing unfulfilled and not requested for sign document.

-
-
-
- - -
- public - static - - - - -
-

- - - - duplicate(data: TemplateDuplicateParams, callback: function(err: ApiErrorResponse, res: TemplateDuplicateResponse)) -

-
-
- - -

Creates a new document by copying a template.

-
-
-
- - -
- public - static - - - - -
-

- - - - invite(data: TemplateInviteParams, callback: function(err: ApiErrorResponse, res: TemplateInviteResponse)) -

-
-
- - -

Creates an invite to sign a template.

-
-
-
- - -
- public - static - - - - -
-

- - - - remove(data: TemplateRemoveParams, callback: function(err: ApiErrorResponse, res: TemplateRemoveResponse)) -

-
-
- - -

Removes a specified template from folder

-
-
-
- - -
-
- - - - - - - -

Static Public Methods

- -
-

- public - static - - - - - create(data: TemplateCreateParams, originalCallback: function(err: ApiErrorResponse, res: TemplateCreateResponse)) - - - - source - -

- - - - -

Creates a template by copying an existing unfulfilled and not requested for sign document. -By default original document is not removed after template creation. To remove original document set removeOriginalDocument option to true.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataTemplateCreateParams

create template payload

-
originalCallbackfunction(err: ApiErrorResponse, res: TemplateCreateResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - duplicate(data: TemplateDuplicateParams, callback: function(err: ApiErrorResponse, res: TemplateDuplicateResponse)) - - - - source - -

- - - - -

Creates a new document by copying a template. -If a name is not supplied then document name will be set to the original template's name by default.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataTemplateDuplicateParams

duplicate template payload

-
callbackfunction(err: ApiErrorResponse, res: TemplateDuplicateResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - invite(data: TemplateInviteParams, callback: function(err: ApiErrorResponse, res: TemplateInviteResponse)) - - - - source - -

- - - - -

Creates an invite to sign a template. -You can create a simple free form invite(s) or a role-based invite(s). -The method copies a template into document and creates an invite using created document.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataTemplateInviteParams

create template invite payload

-
callbackfunction(err: ApiErrorResponse, res: TemplateInviteResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - remove(data: TemplateRemoveParams, callback: function(err: ApiErrorResponse, res: TemplateRemoveResponse)) - - - - source - -

- - - - -

Removes a specified template from folder

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataTemplateRemoveParams

remove template payload

-
callbackfunction(err: ApiErrorResponse, res: TemplateRemoveResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
- - - -
- - - - - - - - - - - - diff --git a/docs/class/lib/template/index.js~Template.html b/docs/class/lib/template/index.js~Template.html deleted file mode 100644 index 65925e73..00000000 --- a/docs/class/lib/template/index.js~Template.html +++ /dev/null @@ -1,936 +0,0 @@ - - - - - - Template | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -
- - public - class - - - - | source -
- -
-

Template

- - - - - - - - - - - - - - - -

Template methods

-
- - - - - - - - - -
- - -

Static Method Summary

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Static Public Methods
- public - static - - - - - -
- -
this method is experimental. internal implementation of this method might be changed
-

Sends invites to sign a specified template to multiple signers at once

-
-
-
- - -
- public - static - - - - -
-

- - - - create(data: TemplateCreateParams, originalCallback: function(err: ApiErrorResponse, res: TemplateCreateResponse)) -

-
-
- - -

Creates a template by copying an existing unfulfilled and not requested for sign document.

-
-
-
- - -
- public - static - - - - - -
- - -

Creates a new document by copying a template.

-
-
-
- - -
- public - static - - - - - -
- - -

Retrieves Routing Details of specified Template

-
-
-
- - -
- public - static - - - - -
-

- - - - invite(data: TemplateInviteParams, callback: function(err: ApiErrorResponse, res: TemplateInviteResponse)) -

-
-
- - -

Creates an invite to sign a template.

-
-
-
- - -
- public - static - - - - -
-

- - - - remove(data: TemplateRemoveParams, callback: function(err: ApiErrorResponse, res: TemplateRemoveResponse)) -

-
-
- - -

Removes a specified template from folder

-
-
-
- - -
- public - static - - - - - -
- - -

Updates Routing Details of specified template

-
-
-
- - -
-
- - - - - - - -

Static Public Methods

- -
-

- public - static - - - - - bulkInvite(data: TemplateBulkInviteParams, callback: function(err: ApiErrorResponse, res: TemplateBulkInviteResponse)) - - - - source - -

- - - -
this method is experimental. internal implementation of this method might be changed
-

Sends invites to sign a specified template to multiple signers at once

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataTemplateBulkInviteParams

Bulk Invite payload

-
callbackfunction(err: ApiErrorResponse, res: TemplateBulkInviteResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - create(data: TemplateCreateParams, originalCallback: function(err: ApiErrorResponse, res: TemplateCreateResponse)) - - - - source - -

- - - - -

Creates a template by copying an existing unfulfilled and not requested for sign document. -By default original document is not removed after template creation. To remove original document set removeOriginalDocument option to true.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataTemplateCreateParams

create template payload

-
originalCallbackfunction(err: ApiErrorResponse, res: TemplateCreateResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - duplicate(data: TemplateDuplicateParams, callback: function(err: ApiErrorResponse, res: TemplateDuplicateResponse)) - - - - source - -

- - - - -

Creates a new document by copying a template. -If a name is not supplied then document name will be set to the original template's name by default.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataTemplateDuplicateParams

duplicate template payload

-
callbackfunction(err: ApiErrorResponse, res: TemplateDuplicateResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - getRoutingDetails(data: TemplateGetRoutingDetailsParams, callback: function(err: ApiErrorResponse, res: TemplateGetRoutingDetailsResponse)) - - - - source - -

- - - - -

Retrieves Routing Details of specified Template

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataTemplateGetRoutingDetailsParams

get Routing Details payload

-
callbackfunction(err: ApiErrorResponse, res: TemplateGetRoutingDetailsResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - invite(data: TemplateInviteParams, callback: function(err: ApiErrorResponse, res: TemplateInviteResponse)) - - - - source - -

- - - - -

Creates an invite to sign a template. -You can create a simple free form invite(s) or a role-based invite(s). -The method copies a template into document and creates an invite using created document.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataTemplateInviteParams

create template invite payload

-
callbackfunction(err: ApiErrorResponse, res: TemplateInviteResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - remove(data: TemplateRemoveParams, callback: function(err: ApiErrorResponse, res: TemplateRemoveResponse)) - - - - source - -

- - - - -

Removes a specified template from folder

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataTemplateRemoveParams

remove template payload

-
callbackfunction(err: ApiErrorResponse, res: TemplateRemoveResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - updateRoutingDetails(data: TemplateUpdateRoutingDetailsParams, callback: function(err: ApiErrorResponse, res: TemplateUpdateRoutingDetailsResponse)) - - - - source - -

- - - - -

Updates Routing Details of specified template

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataTemplateUpdateRoutingDetailsParams

update Template Routing Details payload

-
callbackfunction(err: ApiErrorResponse, res: TemplateUpdateRoutingDetailsResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
- - - -
- - - - - - - - - - - - diff --git a/docs/class/lib/user.js~User.html b/docs/class/lib/user.js~User.html deleted file mode 100644 index 0ca069d5..00000000 --- a/docs/class/lib/user.js~User.html +++ /dev/null @@ -1,397 +0,0 @@ - - - - - - User | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -
- - public - class - - - - | source -
- -
-

User

- - - - - - - - - - - - - - - -

User methods

-
- - - - - - - - - -
- - -

Static Method Summary

- - - - - - - - - - - - - - -
Static Public Methods
- public - static - - - - -
-

- - - - create(data: UserCreateParams, callback: function(err: ApiErrorResponse, res: UserCreateResponse)) -

-
-
- - -

Create new user account

-
-
-
- - -
- public - static - - - - -
-

- - - - retrieve(data: UserGetParams, callback: function(err: ApiErrorResponse, res: UserGetResponse)) -

-
-
- - -

Retrieve user account details

-
-
-
- - -
-
- - - - - - - -

Static Public Methods

- -
-

- public - static - - - - - create(data: UserCreateParams, callback: function(err: ApiErrorResponse, res: UserCreateResponse)) - - - - source - -

- - - - -

Create new user account

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataUserCreateParams

create user payload

-
callbackfunction(err: ApiErrorResponse, res: UserCreateResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - retrieve(data: UserGetParams, callback: function(err: ApiErrorResponse, res: UserGetResponse)) - - - - source - -

- - - - -

Retrieve user account details

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataUserGetParams

get user payload

-
callbackfunction(err: ApiErrorResponse, res: UserGetResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
- - - -
- - - - - - - - - - - - diff --git a/docs/class/lib/user/index.js~User.html b/docs/class/lib/user/index.js~User.html deleted file mode 100644 index bffe5814..00000000 --- a/docs/class/lib/user/index.js~User.html +++ /dev/null @@ -1,544 +0,0 @@ - - - - - - User | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -
- - public - class - - - - | source -
- -
-

User

- - - - - - - - - - - - - - - -

User methods

-
- - - - - - - - - -
- - -

Static Method Summary

- - - - - - - - - - - - - - - - - - - -
Static Public Methods
- public - static - - - - -
-

- - - - create(data: UserCreateParams, originalCallback: function(err: ApiErrorResponse, res: UserCreateResponse)) -

-
-
- - -

Create new user account

-
-
-
- - -
- public - static - - - - -
-

- - - - retrieve(data: UserGetParams, callback: function(err: ApiErrorResponse, res: UserGetResponse)) -

-
-
- - -

Retrieve user account details

-
-
-
- - -
- public - static - - - - - -
- - -

Sends email with verification link to user

-
-
-
- - -
-
- - - - - - - -

Static Public Methods

- -
-

- public - static - - - - - create(data: UserCreateParams, originalCallback: function(err: ApiErrorResponse, res: UserCreateResponse)) - - - - source - -

- - - - -

Create new user account

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataUserCreateParams

create user payload

-
originalCallbackfunction(err: ApiErrorResponse, res: UserCreateResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - retrieve(data: UserGetParams, callback: function(err: ApiErrorResponse, res: UserGetResponse)) - - - - source - -

- - - - -

Retrieve user account details

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataUserGetParams

get user payload

-
callbackfunction(err: ApiErrorResponse, res: UserGetResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - verifyEmail(data: UserVerifyEmailParams, callback: function(err: ApiErrorResponse, res: UserVerifyEmailResponse)) - - - - source - -

- - - - -

Sends email with verification link to user

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
dataUserVerifyEmailParams

user verify email payload

-
callbackfunction(err: ApiErrorResponse, res: UserVerifyEmailResponse)
  • optional

error first node.js callback

-
-
-
- - - - - - - - - - - - - - - - - -
-
- - - -
- - - - - - - - - - - - diff --git a/docs/class/lib/webhook/index.js~Webhook.html b/docs/class/lib/webhook/index.js~Webhook.html deleted file mode 100644 index 9d5cd2e8..00000000 --- a/docs/class/lib/webhook/index.js~Webhook.html +++ /dev/null @@ -1,398 +0,0 @@ - - - - - - Webhook | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -
- - public - class - - - - | source -
- -
-

Webhook

- - - - - - - - - - - - - - - -

Webook methods

-
- - - - - - - - - -
- - -

Static Method Summary

- - - - - - - - - - - - - - -
Static Public Methods
- public - static - - - - -
-

- - - - create(objectPattern: {"event": *, "callback_url": *, "token": *}, callback: *) -

-
-
- - - -
-
- - -
- public - static - - - - -
-

- - - - list(objectPattern: {"token": *}, callback: *) -

-
-
- - - -
-
- - -
-
- - - - - - - -

Static Public Methods

- -
-

- public - static - - - - - create(objectPattern: {"event": *, "callback_url": *, "token": *}, callback: *) - - - - source - -

- - - - - - - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
objectPattern{"event": *, "callback_url": *, "token": *}
  • default: {"event":null,"callback_url":null,"token":null}
callback*
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - static - - - - - list(objectPattern: {"token": *}, callback: *) - - - - source - -

- - - - - - - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
objectPattern{"token": *}
  • default: {"token":null}
callback*
-
-
- - - - - - - - - - - - - - - - - -
-
- - - -
- - - - - - - - - - - - diff --git a/docs/coverage.json b/docs/coverage.json deleted file mode 100644 index c178c3e4..00000000 --- a/docs/coverage.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "coverage": "95.08%", - "expectCount": 61, - "actualCount": 58, - "files": { - "lib/document/index.js": { - "expectCount": 16, - "actualCount": 16, - "undocumentLines": [] - }, - "lib/document-group/index.js": { - "expectCount": 10, - "actualCount": 10, - "undocumentLines": [] - }, - "lib/document-group-template/index.js": { - "expectCount": 7, - "actualCount": 4, - "undocumentLines": [ - 9, - 10, - 11 - ] - }, - "lib/embedded/index.js": { - "expectCount": 4, - "actualCount": 4, - "undocumentLines": [] - }, - "lib/index.js": { - "expectCount": 1, - "actualCount": 1, - "undocumentLines": [] - }, - "lib/link/index.js": { - "expectCount": 3, - "actualCount": 3, - "undocumentLines": [] - }, - "lib/oauth2/index.js": { - "expectCount": 4, - "actualCount": 4, - "undocumentLines": [] - }, - "lib/template/index.js": { - "expectCount": 12, - "actualCount": 12, - "undocumentLines": [] - }, - "lib/user/index.js": { - "expectCount": 4, - "actualCount": 4, - "undocumentLines": [] - } - } -} \ No newline at end of file diff --git a/docs/css/custom.css b/docs/css/custom.css deleted file mode 100644 index 2ddc1238..00000000 --- a/docs/css/custom.css +++ /dev/null @@ -1,11 +0,0 @@ -img[src="./image/brand_logo.svg"] { - width: 96px !important; -} - -td[data-ice=type].code { - word-break: break-word; -} - -.github-markdown img:not([src*=".svg"]) { - box-shadow: none; -} diff --git a/docs/css/github.css b/docs/css/github.css deleted file mode 100644 index db9ca23f..00000000 --- a/docs/css/github.css +++ /dev/null @@ -1,83 +0,0 @@ -/* github markdown */ -.github-markdown { - font-size: 16px; -} - -.github-markdown h1, -.github-markdown h2, -.github-markdown h3, -.github-markdown h4, -.github-markdown h5 { - margin-top: 1em; - margin-bottom: 16px; - font-weight: bold; - padding: 0; -} - -.github-markdown h1:nth-of-type(1) { - margin-top: 0; -} - -.github-markdown h1 { - font-size: 2em; - padding-bottom: 0.3em; -} - -.github-markdown h2 { - font-size: 1.75em; - padding-bottom: 0.3em; -} - -.github-markdown h3 { - font-size: 1.5em; -} - -.github-markdown h4 { - font-size: 1.25em; -} - -.github-markdown h5 { - font-size: 1em; -} - -.github-markdown ul, .github-markdown ol { - padding-left: 2em; -} - -.github-markdown pre > code { - font-size: 0.85em; -} - -.github-markdown table { - margin-bottom: 1em; - border-collapse: collapse; - border-spacing: 0; -} - -.github-markdown table tr { - background-color: #fff; - border-top: 1px solid #ccc; -} - -.github-markdown table th, -.github-markdown table td { - padding: 6px 13px; - border: 1px solid #ddd; -} - -.github-markdown table tr:nth-child(2n) { - background-color: #f8f8f8; -} - -.github-markdown hr { - border-right: 0; - border-bottom: 1px solid #e5e5e5; - border-left: 0; - border-top: 0; -} - -/** badge(.svg) does not have border */ -.github-markdown img:not([src*=".svg"]) { - max-width: 100%; - box-shadow: 1px 1px 1px rgba(0,0,0,0.5); -} diff --git a/docs/css/identifiers.css b/docs/css/identifiers.css deleted file mode 100644 index 52c8461c..00000000 --- a/docs/css/identifiers.css +++ /dev/null @@ -1,37 +0,0 @@ -.identifiers-wrap { - display: flex; - align-items: flex-start; -} - -.identifier-dir-tree { - background: #fff; - border: solid 1px #ddd; - border-radius: 0.25em; - top: 52px; - position: -webkit-sticky; - position: sticky; - max-height: calc(100vh - 155px); - overflow-y: scroll; - min-width: 200px; - margin-left: 1em; -} - -.identifier-dir-tree-header { - padding: 0.5em; - background-color: #fafafa; - border-bottom: solid 1px #ddd; -} - -.identifier-dir-tree-content { - padding: 0 0.5em 0; -} - -.identifier-dir-tree-content > div { - padding-top: 0.25em; - padding-bottom: 0.25em; -} - -.identifier-dir-tree-content a { - color: inherit; -} - diff --git a/docs/css/manual.css b/docs/css/manual.css deleted file mode 100644 index 138a07f1..00000000 --- a/docs/css/manual.css +++ /dev/null @@ -1,134 +0,0 @@ -.github-markdown .manual-toc { - padding-left: 0; -} - -.manual-index .manual-cards { - display: flex; - flex-wrap: wrap; -} - -.manual-index .manual-card-wrap { - width: 280px; - padding: 10px 20px 10px 0; - box-sizing: border-box; -} - -.manual-index .manual-card-wrap > h1 { - margin: 0; - font-size: 1em; - font-weight: 600; - padding: 0.2em 0 0.2em 0.5em; - border-radius: 0.1em 0.1em 0 0; - border: none; -} - -.manual-index .manual-card-wrap > h1 span { - color: #555; -} - -.manual-index .manual-card { - height: 200px; - overflow: hidden; - border: solid 1px rgba(230, 230, 230, 0.84); - border-radius: 0 0 0.1em 0.1em; - padding: 8px; - position: relative; -} - -.manual-index .manual-card > div { - transform: scale(0.4); - transform-origin: 0 0; - width: 250%; -} - -.manual-index .manual-card > a { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - background: rgba(210, 210, 210, 0.1); -} - -.manual-index .manual-card > a:hover { - background: none; -} - -.manual-index .manual-badge { - margin: 0; -} - -.manual-index .manual-user-index { - margin-bottom: 1em; - border-bottom: solid 1px #ddd; -} - -.manual-root .navigation { - padding-left: 4px; - margin-top: 4px; -} - -.navigation .manual-toc-root > div { - padding-left: 0.25em; - padding-right: 0.75em; -} - -.github-markdown .manual-toc-title a { - color: inherit; -} - -.manual-breadcrumb-list { - font-size: 0.8em; - margin-bottom: 1em; -} - -.manual-toc-title a:hover { - color: #039BE5; -} - -.manual-toc li { - margin: 0.75em 0; - list-style-type: none; -} - -.navigation .manual-toc [class^="indent-h"] a { - color: #666; -} - -.navigation .manual-toc .indent-h1 a { - color: #555; - font-weight: 600; - display: block; -} - -.manual-toc .indent-h1 { - display: block; - margin: 0.4em 0 0 0.25em; - padding: 0.2em 0 0.2em 0.5em; - border-radius: 0.1em; -} - -.manual-root .navigation .manual-toc li:not(.indent-h1) { - margin-top: 0.5em; -} - -.manual-toc .indent-h2 { - display: none; - margin-left: 1.5em; -} -.manual-toc .indent-h3 { - display: none; - margin-left: 2.5em; -} -.manual-toc .indent-h4 { - display: none; - margin-left: 3.5em; -} -.manual-toc .indent-h5 { - display: none; - margin-left: 4.5em; -} - -.manual-nav li { - margin: 0.75em 0; -} diff --git a/docs/css/prettify-tomorrow.css b/docs/css/prettify-tomorrow.css deleted file mode 100644 index b6f92a78..00000000 --- a/docs/css/prettify-tomorrow.css +++ /dev/null @@ -1,132 +0,0 @@ -/* Tomorrow Theme */ -/* Original theme - https://github.com/chriskempson/tomorrow-theme */ -/* Pretty printing styles. Used with prettify.js. */ -/* SPAN elements with the classes below are added by prettyprint. */ -/* plain text */ -.pln { - color: #4d4d4c; } - -@media screen { - /* string content */ - .str { - color: #718c00; } - - /* a keyword */ - .kwd { - color: #8959a8; } - - /* a comment */ - .com { - color: #8e908c; } - - /* a type name */ - .typ { - color: #4271ae; } - - /* a literal value */ - .lit { - color: #f5871f; } - - /* punctuation */ - .pun { - color: #4d4d4c; } - - /* lisp open bracket */ - .opn { - color: #4d4d4c; } - - /* lisp close bracket */ - .clo { - color: #4d4d4c; } - - /* a markup tag name */ - .tag { - color: #c82829; } - - /* a markup attribute name */ - .atn { - color: #f5871f; } - - /* a markup attribute value */ - .atv { - color: #3e999f; } - - /* a declaration */ - .dec { - color: #f5871f; } - - /* a variable name */ - .var { - color: #c82829; } - - /* a function name */ - .fun { - color: #4271ae; } } -/* Use higher contrast and text-weight for printable form. */ -@media print, projection { - .str { - color: #060; } - - .kwd { - color: #006; - font-weight: bold; } - - .com { - color: #600; - font-style: italic; } - - .typ { - color: #404; - font-weight: bold; } - - .lit { - color: #044; } - - .pun, .opn, .clo { - color: #440; } - - .tag { - color: #006; - font-weight: bold; } - - .atn { - color: #404; } - - .atv { - color: #060; } } -/* Style */ -/* -pre.prettyprint { - background: white; - font-family: Consolas, Monaco, 'Andale Mono', monospace; - font-size: 12px; - line-height: 1.5; - border: 1px solid #ccc; - padding: 10px; } -*/ - -/* Specify class=linenums on a pre to get line numbering */ -ol.linenums { - margin-top: 0; - margin-bottom: 0; } - -/* IE indents via margin-left */ -li.L0, -li.L1, -li.L2, -li.L3, -li.L4, -li.L5, -li.L6, -li.L7, -li.L8, -li.L9 { - /* */ } - -/* Alternate shading for lines */ -li.L1, -li.L3, -li.L5, -li.L7, -li.L9 { - /* */ } diff --git a/docs/css/search.css b/docs/css/search.css deleted file mode 100644 index 9940a54a..00000000 --- a/docs/css/search.css +++ /dev/null @@ -1,84 +0,0 @@ -/* search box */ -.search-box { - position: absolute; - top: 10px; - right: 50px; - padding-right: 8px; - padding-bottom: 10px; - line-height: normal; - font-size: 12px; -} - -.search-box img { - width: 20px; - vertical-align: top; -} - -.search-input { - display: inline; - visibility: hidden; - width: 0; - padding: 2px; - height: 1.5em; - outline: none; - background: transparent; - border: 1px #0af; - border-style: none none solid none; - vertical-align: bottom; -} - -.search-input-edge { - display: none; - width: 1px; - height: 5px; - background-color: #0af; - vertical-align: bottom; -} - -.search-result { - position: absolute; - display: none; - height: 600px; - width: 100%; - padding: 0; - margin-top: 5px; - margin-left: 24px; - background: white; - box-shadow: 1px 1px 4px rgb(0,0,0); - white-space: nowrap; - overflow-y: scroll; -} - -.search-result-import-path { - color: #aaa; - font-size: 12px; -} - -.search-result li { - list-style: none; - padding: 2px 4px; -} - -.search-result li a { - display: block; -} - -.search-result li.selected { - background: #ddd; -} - -.search-result li.search-separator { - background: rgb(37, 138, 175); - color: white; -} - -.search-box.active .search-input { - visibility: visible; - transition: width 0.2s ease-out; - width: 300px; -} - -.search-box.active .search-input-edge { - display: inline-block; -} - diff --git a/docs/css/source.css b/docs/css/source.css deleted file mode 100644 index 3b9c92de..00000000 --- a/docs/css/source.css +++ /dev/null @@ -1,55 +0,0 @@ -table.files-summary { - width: 100%; - margin: 10px 0; - border-spacing: 0; - border: 0; - border-collapse: collapse; - text-align: right; -} - -table.files-summary tbody tr:hover { - background: #eee; -} - -table.files-summary td:first-child, -table.files-summary td:nth-of-type(2) { - text-align: left; -} - -table.files-summary[data-use-coverage="false"] td.coverage { - display: none; -} - -table.files-summary thead { - background: #fafafa; -} - -table.files-summary td { - border: solid 1px #ddd; - padding: 4px 10px; - vertical-align: top; -} - -table.files-summary td.identifiers > span { - display: block; - margin-top: 4px; -} -table.files-summary td.identifiers > span:first-child { - margin-top: 0; -} - -table.files-summary .coverage-count { - font-size: 12px; - color: #aaa; - display: inline-block; - min-width: 40px; -} - -.total-coverage-count { - position: relative; - bottom: 2px; - font-size: 12px; - color: #666; - font-weight: 500; - padding-left: 5px; -} diff --git a/docs/css/style.css b/docs/css/style.css deleted file mode 100644 index fe3b2d9b..00000000 --- a/docs/css/style.css +++ /dev/null @@ -1,608 +0,0 @@ -@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,700); -@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400italic,600,700); -@import url(./manual.css); -@import url(./source.css); -@import url(./test.css); -@import url(./identifiers.css); -@import url(./github.css); -@import url(./search.css); - -* { - margin: 0; - padding: 0; - text-decoration: none; -} - -html -{ - font-family: 'Source Sans Pro', 'Roboto', sans-serif; - overflow: auto; - /*font-size: 14px;*/ - /*color: #4d4e53;*/ - /*color: rgba(0, 0, 0, .68);*/ - color: #555; - background-color: #fff; -} - -a { - /*color: #0095dd;*/ - /*color:rgb(37, 138, 175);*/ - color: #039BE5; -} - -code a:hover { - text-decoration: underline; -} - -ul, ol { - padding-left: 20px; -} - -ul li { - list-style: disc; - margin: 4px 0; -} - -ol li { - margin: 4px 0; -} - -h1 { - margin-bottom: 10px; - font-size: 34px; - font-weight: 300; - border-bottom: solid 1px #ddd; -} - -h2 { - margin-top: 24px; - margin-bottom: 10px; - font-size: 20px; - border-bottom: solid 1px #ddd; - font-weight: 300; -} - -h3 { - position: relative; - font-size: 16px; - margin-bottom: 12px; - padding: 4px; - font-weight: 300; -} - -details { - cursor: pointer; -} - -del { - text-decoration: line-through; -} - -p { - margin-bottom: 15px; - line-height: 1.5; -} - -code { - font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace; -} - -pre > code { - display: block; -} - -pre.prettyprint, pre > code { - padding: 4px; - margin: 1em 0; - background-color: #f5f5f5; - border-radius: 3px; -} - -pre.prettyprint > code { - margin: 0; -} - -p > code, -li > code { - padding: 0.2em 0.5em; - margin: 0; - font-size: 85%; - background-color: rgba(0,0,0,0.04); - border-radius: 3px; -} - -.code { - font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace; - font-size: 13px; -} - -.import-path pre.prettyprint, -.import-path pre.prettyprint code { - margin: 0; - padding: 0; - border: none; - background: white; -} - -.layout-container { - /*display: flex;*/ - /*flex-direction: row;*/ - /*justify-content: flex-start;*/ - /*align-items: stretch;*/ -} - -.layout-container > header { - display: flex; - height: 40px; - line-height: 40px; - font-size: 16px; - padding: 0 10px; - margin: 0; - position: fixed; - width: 100%; - z-index: 1; - background-color: #fafafa; - top: 0; - border-bottom: solid 1px #ddd; -} -.layout-container > header > a{ - margin: 0 5px; - color: #444; -} - -.layout-container > header > a.repo-url-github { - font-size: 0; - display: inline-block; - width: 20px; - height: 38px; - background: url("../image/github.png") no-repeat center; - background-size: 20px; - vertical-align: top; -} - -.navigation { - position: fixed; - top: 0; - left: 0; - box-sizing: border-box; - width: 250px; - height: 100%; - padding-top: 40px; - padding-left: 15px; - padding-bottom: 2em; - margin-top:1em; - overflow-x: scroll; - box-shadow: rgba(255, 255, 255, 1) -1px 0 0 inset; - border-right: 1px solid #ddd; -} - -.navigation ul { - padding: 0; -} - -.navigation li { - list-style: none; - margin: 4px 0; - white-space: nowrap; -} - -.navigation li a { - color: #666; -} - -.navigation .nav-dir-path { - display: block; - margin-top: 0.7em; - margin-bottom: 0.25em; - font-weight: 600; -} - -.kind-class, -.kind-interface, -.kind-function, -.kind-typedef, -.kind-variable, -.kind-external { - margin-left: 0.75em; - width: 1.2em; - height: 1.2em; - display: inline-block; - text-align: center; - border-radius: 0.2em; - margin-right: 0.2em; - font-weight: bold; - line-height: 1.2em; -} - -.kind-class { - color: #009800; - background-color: #bfe5bf; -} - -.kind-interface { - color: #fbca04; - background-color: #fef2c0; -} - -.kind-function { - color: #6b0090; - background-color: #d6bdde; -} - -.kind-variable { - color: #eb6420; - background-color: #fad8c7; -} - -.kind-typedef { - color: #db001e; - background-color: #edbec3; -} - -.kind-external { - color: #0738c3; - background-color: #bbcbea; -} - -.summary span[class^="kind-"] { - margin-left: 0; -} - -h1 .version, -h1 .url a { - font-size: 14px; - color: #aaa; -} - -.content { - margin-top: 40px; - margin-left: 250px; - padding: 10px 50px 10px 20px; -} - -.header-notice { - font-size: 14px; - color: #aaa; - margin: 0; -} - -.expression-extends .prettyprint { - margin-left: 10px; - background: white; -} - -.extends-chain { - border-bottom: 1px solid#ddd; - padding-bottom: 10px; - margin-bottom: 10px; -} - -.extends-chain span:nth-of-type(1) { - padding-left: 10px; -} - -.extends-chain > div { - margin: 5px 0; -} - -.description table { - font-size: 14px; - border-spacing: 0; - border: 0; - border-collapse: collapse; -} - -.description thead { - background: #999; - color: white; -} - -.description table td, -.description table th { - border: solid 1px #ddd; - padding: 4px; - font-weight: normal; -} - -.flat-list ul { - padding-left: 0; -} - -.flat-list li { - display: inline; - list-style: none; -} - -table.summary { - width: 100%; - margin: 10px 0; - border-spacing: 0; - border: 0; - border-collapse: collapse; -} - -table.summary thead { - background: #fafafa; -} - -table.summary td { - border: solid 1px #ddd; - padding: 4px 10px; -} - -table.summary tbody td:nth-child(1) { - text-align: right; - white-space: nowrap; - min-width: 64px; - vertical-align: top; -} - -table.summary tbody td:nth-child(2) { - width: 100%; - border-right: none; -} - -table.summary tbody td:nth-child(3) { - white-space: nowrap; - border-left: none; - vertical-align: top; -} - -table.summary td > div:nth-of-type(2) { - padding-top: 4px; - padding-left: 15px; -} - -table.summary td p { - margin-bottom: 0; -} - -.inherited-summary thead td { - padding-left: 2px; -} - -.inherited-summary thead a { - color: white; -} - -.inherited-summary .summary tbody { - display: none; -} - -.inherited-summary .summary .toggle { - padding: 0 4px; - font-size: 12px; - cursor: pointer; -} -.inherited-summary .summary .toggle.closed:before { - content: "▶"; -} -.inherited-summary .summary .toggle.opened:before { - content: "▼"; -} - -.member, .method { - margin-bottom: 24px; -} - -table.params { - width: 100%; - margin: 10px 0; - border-spacing: 0; - border: 0; - border-collapse: collapse; -} - -table.params thead { - background: #eee; - color: #aaa; -} - -table.params td { - padding: 4px; - border: solid 1px #ddd; -} - -table.params td p { - margin: 0; -} - -.content .detail > * { - margin: 15px 0; -} - -.content .detail > h3 { - color: black; - background-color: #f0f0f0; -} - -.content .detail > div { - margin-left: 10px; -} - -.content .detail > .import-path { - margin-top: -8px; -} - -.content .detail + .detail { - margin-top: 30px; -} - -.content .detail .throw td:first-child { - padding-right: 10px; -} - -.content .detail h4 + :not(pre) { - padding-left: 0; - margin-left: 10px; -} - -.content .detail h4 + ul li { - list-style: none; -} - -.return-param * { - display: inline; -} - -.argument-params { - margin-bottom: 20px; -} - -.return-type { - padding-right: 10px; - font-weight: normal; -} - -.return-desc { - margin-left: 10px; - margin-top: 4px; -} - -.return-desc p { - margin: 0; -} - -.deprecated, .experimental, .instance-docs { - border-left: solid 5px orange; - padding-left: 4px; - margin: 4px 0; -} - -tr.listen p, -tr.throw p, -tr.emit p{ - margin-bottom: 10px; -} - -.version, .since { - color: #aaa; -} - -h3 .right-info { - position: absolute; - right: 4px; - font-size: 14px; -} - -.version + .since:before { - content: '| '; -} - -.see { - margin-top: 10px; -} - -.see h4 { - margin: 4px 0; -} - -.content .detail h4 + .example-doc { - margin: 6px 0; -} - -.example-caption { - position: relative; - bottom: -1px; - display: inline-block; - padding: 4px; - font-style: italic; - background-color: #f5f5f5; - font-weight: bold; - border-radius: 3px; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; -} - -.example-caption + pre.source-code { - margin-top: 0; - border-top-left-radius: 0; -} - -footer, .file-footer { - text-align: right; - font-style: italic; - font-weight: 100; - font-size: 13px; - margin-right: 50px; - margin-left: 270px; - border-top: 1px solid #ddd; - padding-top: 30px; - margin-top: 20px; - padding-bottom: 10px; -} - -footer img { - width: 24px; - vertical-align: middle; - padding-left: 4px; - position: relative; - top: -3px; - opacity: 0.6; -} - -pre.source-code { - padding: 4px; -} - -pre.raw-source-code > code { - padding: 0; - margin: 0; - font-size: 12px; - background: #fff; - border: solid 1px #ddd; - line-height: 1.5; -} - -pre.raw-source-code > code > ol { - counter-reset:number; - list-style:none; - margin:0; - padding:0; - overflow: hidden; -} - -pre.raw-source-code > code > ol li:before { - counter-increment: number; - content: counter(number); - display: inline-block; - min-width: 3em; - color: #aaa; - text-align: right; - padding-right: 1em; -} - -pre.source-code.line-number { - padding: 0; -} - -pre.source-code ol { - background: #eee; - padding-left: 40px; -} - -pre.source-code li { - background: white; - padding-left: 4px; - list-style: decimal; - margin: 0; -} - -pre.source-code.line-number li.active { - background: rgb(255, 255, 150) !important; -} - -pre.source-code.line-number li.error-line { - background: #ffb8bf; -} - -.inner-link-active { - /*background: rgb(255, 255, 150) !important;*/ - background: #039BE5 !important; - color: #fff !important; - padding-left: 0.1em !important; -} - -.inner-link-active a { - color: inherit; -} diff --git a/docs/css/test.css b/docs/css/test.css deleted file mode 100644 index 8ce12669..00000000 --- a/docs/css/test.css +++ /dev/null @@ -1,58 +0,0 @@ -table.test-summary thead { - background: #fafafa; -} - -table.test-summary thead .test-description { - width: 50%; -} - -table.test-summary { - width: 100%; - margin: 10px 0; - border-spacing: 0; - border: 0; - border-collapse: collapse; -} - -table.test-summary thead .test-count { - width: 3em; -} - -table.test-summary tbody tr:hover { - background-color: #eee; -} - -table.test-summary td { - border: solid 1px #ddd; - padding: 4px 10px; - vertical-align: top; -} - -table.test-summary td p { - margin: 0; -} - -table.test-summary tr.test-interface .toggle { - display: inline-block; - float: left; - margin-right: 4px; - cursor: pointer; - font-size: 0.8em; - padding-top: 0.25em; -} - -table.test-summary tr.test-interface .toggle.opened:before { - content: '▼'; -} - -table.test-summary tr.test-interface .toggle.closed:before { - content: '▶'; -} - -table.test-summary .test-target > span { - display: block; - margin-top: 4px; -} -table.test-summary .test-target > span:first-child { - margin-top: 0; -} diff --git a/docs/file/lib/common.js.html b/docs/file/lib/common.js.html deleted file mode 100644 index 0a912a5a..00000000 --- a/docs/file/lib/common.js.html +++ /dev/null @@ -1,136 +0,0 @@ - - - - - - lib/common.js | SignNow - - - - - - - -
- - - Reference - Source - - -
- - - -

lib/common.js

-
'use strict';
-
-/**
- * Common request setting object
- */
-const settings = {
-  api: {
-    host: 'api-dev1.signnow.com', // TODO: chage back to eval
-    port: 443,
-    credentials: '',
-  },
-};
-
-const responseHandler = (callback, { parse = true } = {}) => res => {
-  let rawData = '';
-
-  res.setEncoding('utf8');
-
-  res.on('data', chunk => {
-    rawData += chunk;
-  });
-
-  res.on('end', () => {
-    let parsedData = '';
-    let errors = '';
-
-    try {
-      if (parse) {
-        parsedData = JSON.parse(rawData);
-        errors = parsedData.errors || parsedData.error || parsedData.message || null;
-      }
-    } catch (e) {
-      errors = e;
-      parsedData = null;
-    }
-
-    if (callback) {
-      return callback(errors, parse ? parsedData : rawData);
-    }
-  });
-};
-
-const errorHandler = callback => err => {
-  if (typeof callback === 'function') {
-    return callback(err.message);
-  }
-};
-
-const buildRequestOptions = ({
-  method = 'GET',
-  path = '/',
-  authorization: {
-    type = 'Basic',
-    token = settings.api.credentials,
-  } = {},
-  headers = {},
-}) => {
-  const options = {
-    host: settings.api.host,
-    port: settings.api.port,
-    method,
-    path,
-    headers,
-  };
-  options.headers.Authorization = `${type} ${token}`;
-  return options;
-};
-
-const setProductionApiHost = () => {
-  settings.api.host = 'api.signnow.com';
-};
-
-const setCredentials = credentials => {
-  settings.api.credentials = credentials;
-};
-
-module.exports = {
-  responseHandler,
-  errorHandler,
-  buildRequestOptions,
-  setProductionApiHost,
-  setCredentials,
-};
-
- -
- - - - - - - - - - - - diff --git a/docs/file/lib/common/index.js.html b/docs/file/lib/common/index.js.html deleted file mode 100644 index ce60f46f..00000000 --- a/docs/file/lib/common/index.js.html +++ /dev/null @@ -1,246 +0,0 @@ - - - - - - lib/common/index.js | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -

lib/common/index.js

-
'use strict';
-const {
-  name,
-  version,
-  description,
-} = require('../../package.json');
-
-/**
- * Common request setting object
- */
-const settings = {
-  api: {
-    host: 'api-eval.signnow.com',
-    port: 443,
-    credentials: '',
-  },
-};
-
-const responseHandler = (callback, { parse = true } = {}) => res => {
-  let rawData = '';
-
-  if (parse) {
-    res.setEncoding('utf8');
-  } else {
-    res.setEncoding('binary');
-  }
-
-  res.on('data', chunk => {
-    rawData += chunk;
-  });
-
-  res.on('end', () => {
-    let parsedData = '';
-    let errors = '';
-
-    try {
-      if (parse) {
-        parsedData = JSON.parse(rawData);
-        errors = parsedData.errors || parsedData.error || parsedData.message || null;
-      }
-    } catch (e) {
-      errors = e;
-      parsedData = null;
-    }
-
-    if (callback) {
-      return callback(errors, !errors && (parse ? parsedData : rawData) || null);
-    }
-  });
-};
-
-const errorHandler = callback => err => {
-  if (typeof callback === 'function') {
-    return callback(err.message);
-  }
-};
-
-const buildRequestOptions = ({
-  method = 'GET',
-  path = '/',
-  authorization: {
-    type = 'Basic',
-    token = settings.api.credentials,
-  } = {},
-  headers = {},
-}) => {
-  const options = {
-    host: settings.api.host,
-    port: settings.api.port,
-    method,
-    path,
-    headers,
-  };
-  options.headers.Authorization = `${type} ${token}`;
-  return options;
-};
-
-const setProductionApiHost = () => {
-  settings.api.host = 'api.signnow.com';
-};
-
-const setCredentials = credentials => {
-  settings.api.credentials = credentials;
-};
-
-const getUserAgent = () => `${name} / v${version}, platform node.js, ${description}`;
-
-module.exports = {
-  responseHandler,
-  errorHandler,
-  buildRequestOptions,
-  setProductionApiHost,
-  setCredentials,
-  getUserAgent,
-};
-
- -
- - - - - - - - - - - - diff --git a/docs/file/lib/document-group-template/index.js.html b/docs/file/lib/document-group-template/index.js.html deleted file mode 100644 index 4bc33575..00000000 --- a/docs/file/lib/document-group-template/index.js.html +++ /dev/null @@ -1,498 +0,0 @@ - - - - - - lib/document-group-template/index.js | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -

lib/document-group-template/index.js

-
'use strict';
-const https = require('https');
-const {
-  responseHandler,
-  errorHandler,
-  buildRequestOptions,
-} = require('../common');
-const documentGroup = require('../document-group');
-const createDocumentGroup = documentGroup.create;
-const inviteDocumentGroup = documentGroup.invite;
-const viewDocumentGroup = documentGroup.view;
-
-/**
- * Document Group Template methods
- */
-class DocumentGroupTemplate {
-
-  /**
-   * Document Group Template invite email congfigurations
-   * @typedef {Object} DocumentGroupTemplateInviteEmail
-   * @property {string} [email] - signer's email
-   * @property {string} [subject] - subject of invitation email
-   * @property {string} [message] - content of invitation email
-   * @property {number} [expiration_days] - expiration of invite in days
-   * @property {number} [reminder] - number of days in which to remind about invite via email
-   * @property {boolean} [hasSignActions] - does signer need to sign documents of document group
-   */
-
-  /**
-   * Document Group Template invite action congfigurations
-   * @typedef {Object} DocumentGroupTemplateInviteAction
-   * @property {string} [email] - signer's email
-   * @property {string} [role_name] - signer's role name
-   * @property {string} [action] - name of action with document in signing step
-   * @property {string} [document_id] - ID of document in specific signing step
-   * @property {string} [document_name] - name of document in specific signing step
-   * @property {string} [allow_reassign] - allow reassigning of signer
-   * @property {string} decline_by_signature - signer can decline invite
-   */
-
-  /**
-   * Document Group Template invite step congfigurations
-   * @typedef {Object} DocumentGroupTemplateInviteStep
-   * @property {number} [order] - an order number of invitation step
-   * @property {DocumentGroupTemplateInviteEmail[]} [invite_emails] - Document Group Template invite emails settings
-   * @property {DocumentGroupTemplateInviteAction[]} invite_actions - Document Group Template invite actions settings
-   */
-
-  /**
-   * Document Group Template invite congfigurations
-   * @typedef {Object} DocumentGroupTemplateRoutingDetails
-   * @property {DocumentGroupTemplateInviteStep[]} invite_steps - Document Group Template invite steps settings
-   * @property {number} [include_email_attachments]
-   */
-
-  /**
-   * Create Document Group Template payload
-   * @typedef {Object} DocumentGroupTemplateCreateParams
-   * @property {string} token - your auth token
-   * @property {string[]} template_ids - array of template ids for Document Group Template creation
-   * @property {string} template_group_name - new name of document group
-   * @property {DocumentGroupTemplateRoutingDetails} routing_details - invite congfigurations
-   */
-
-  /**
-   * Create Document Group Template response data
-   * @typedef {Object} DocumentGroupTemplateCreateResponse
-   * @property {string} id - Document Group Template unique id
-   */
-
-  /**
-   * Creates Document Group Template with specified templates and settings
-   * @param {DocumentGroupTemplateCreateParams} data - create Document Group Template payload
-   * @param {function(err: ApiErrorResponse, res: DocumentGroupTemplateCreateResponse)} [callback] - error first node.js callback
-   */
-  static create ({
-    token,
-    template_ids,
-    template_group_name,
-    routing_details,
-  }, callback) {
-    const JSONData = JSON.stringify({
-      template_ids,
-      template_group_name,
-      routing_details,
-    });
-    const req = https
-      .request(buildRequestOptions({
-        method: 'POST',
-        path: '/documentgroup/template',
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-        headers: {
-          'Content-Type': 'application/json',
-          'Content-Length': Buffer.byteLength(JSONData),
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback));
-
-    req.write(JSONData);
-    req.end();
-  }
-
-  /**
-   * Document Group Template view payload
-   * @typedef {Object} DocumentGroupTemplateViewParams
-   * @property {string} id - id of specific Document Group Template
-   * @property {string} token - your auth token
-   */
-
-  /**
-   * Details of single template in group
-   * @typedef {Object} DocumentGroupTemplateItem
-   * @property {string} id - id of template
-   * @property {string} template_name - name of template
-   * @property {string} owner_email - template owner email
-   * @property {?number} readable
-   * @property {DocumentThumbnails} thumbnail - thumbnail urls with different sizes (small, medium, large)
-   * @property {string[]} roles - list of template signer roles
-   */
-
-  /**
-   * Document Group Template view response
-   * @typedef {Object} DocumentGroupTemplateViewResponse
-   * @property {string} id - id of Document Group Template
-   * @property {string} group_name - name of Document Group Template
-   * @property {string} document_group_template_owner_email - Document Group Template owner email
-   * @property {number} shared - is Document Group Template shared or not (values: 0 or 1)
-   * @property {?string} shared_team_id - id of team which Document Group Template is shared with
-   * @property {DocumentGroupTemplateItem[]} templates - each single template details
-   * @property {DocumentGroupTemplateRoutingDetails} routing_details - signing steps configuration
-   * @property {Object[]} originator_organization_settings - originator organization settings
-   */
-
-  /**
-   * Retrieves a Document Group Template detailed data
-   * @param {DocumentGroupTemplateViewParams} data - view Document Group Template details payload
-   * @param {function(err: ApiErrorResponse, res: DocumentGroupTemplateViewResponse)} [callback] - error first node.js callback
-   */
-  static view ({ id, token }, callback) {
-    https
-      .request(buildRequestOptions({
-        method: 'GET',
-        path: `/documentgroup/template/${id}`,
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback))
-      .end();
-  }
-
-  /**
-   * Create Document Group Template invite payload
-   * @typedef {Object} DocumentGroupTemplateInviteParams
-   * @property {string} id - ID of specific Document Group Template
-   * @property {DocumentGroupInviteSettings} [data] - Document Group Template invite settings data
-   * @property {string} token - your auth token
-   */
-
-  /**
-   * Create Document Group Template invite response data
-   * @typedef {DocumentGroupInviteResponse} DocumentGroupTemplateInviteResponse
-   * @property {string} id - an ID of created invite
-   * @property {?string} pending_invite_link - pending invite link
-   */
-
-  /**
-   * Creates an invite to sign a Document Group Template
-   * @param {DocumentGroupTemplateInviteParams} data - create Document Group Template invite payload
-   * @param {function(err: ApiErrorResponse, res: DocumentGroupTemplateInviteResponse)} [callback] - error first node.js callback
-   */
-  static invite ({
-    id,
-    data,
-    token,
-  }, callback) {
-    DocumentGroupTemplate.view({
-      id,
-      token,
-    }, (viewDocGrTplErr, viewDocGrTplRes) => {
-      if (viewDocGrTplErr) {
-        callback(viewDocGrTplErr);
-        return;
-      } else {
-        const {
-          templates,
-          group_name,
-          routing_details = {},
-        } = viewDocGrTplRes;
-        let templateIDs;
-
-        try {
-          templateIDs = templates.map(template => template.id);
-        } catch (err) {
-          callback(err);
-          return;
-        }
-
-        createDocumentGroup({
-          ids: templateIDs,
-          group_name,
-          token,
-        }, (createErr, createRes) => {
-          if (createErr) {
-            callback(createErr);
-            return;
-          } else {
-            const { id: documentGroupId } = createRes;
-
-            viewDocumentGroup({
-              id: documentGroupId,
-              token,
-            }, (viewDocGrErr, viewDocGrRes) => {
-              if (viewDocGrErr) {
-                callback(viewDocGrErr);
-                return;
-              } else {
-                const { documents } = viewDocGrRes;
-                let documentToOriginMap;
-                let inviteSettings;
-
-                try {
-                  documentToOriginMap = documents.reduce((map, doc) => {
-                    map[doc.origin_document_id] = doc.id;
-                    return map;
-                  }, {});
-
-                  inviteSettings = Object.assign({}, (routing_details.invite_steps ? routing_details : {}), data);
-
-                  inviteSettings.invite_steps.forEach(step => {
-                    step.invite_emails = step.invite_emails.map(inviteEmail => {
-                      const {
-                        email,
-                        subject,
-                        message,
-                        expiration_days,
-                        reminder,
-                      } = inviteEmail;
-
-                      return {
-                        email,
-                        subject,
-                        message,
-                        expiration_days,
-                        reminder,
-                      };
-                    });
-
-                    step.invite_actions = step.invite_actions.map(inviteAction => {
-                      const {
-                        email,
-                        role_name,
-                        action,
-                        document_id,
-                        allow_reassign,
-                        decline_by_signature,
-                        authentication,
-                      } = inviteAction;
-
-                      return {
-                        document_id: documentToOriginMap[document_id],
-                        email,
-                        role_name,
-                        action,
-                        allow_reassign,
-                        decline_by_signature,
-                        authentication,
-                      };
-                    });
-                  });
-                } catch (err) {
-                  callback(err);
-                  return;
-                }
-
-                inviteDocumentGroup({
-                  id: documentGroupId,
-                  data: inviteSettings,
-                  token,
-                }, (inviteErr, inviteRes) => {
-                  if (inviteErr) {
-                    callback(inviteErr);
-                    return;
-                  } else {
-                    callback(null, inviteRes);
-                    return;
-                  }
-                });
-              }
-            });
-          }
-        });
-      }
-    });
-  }
-
-}
-
-module.exports = DocumentGroupTemplate;
-
- -
- - - - - - - - - - - - diff --git a/docs/file/lib/document-group/index.js.html b/docs/file/lib/document-group/index.js.html deleted file mode 100644 index fc40c20c..00000000 --- a/docs/file/lib/document-group/index.js.html +++ /dev/null @@ -1,603 +0,0 @@ - - - - - - lib/document-group/index.js | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -

lib/document-group/index.js

-
'use strict';
-
-const https = require('https');
-const {
-  responseHandler,
-  errorHandler,
-  buildRequestOptions,
-} = require('../common');
-const { view } = require('../document');
-const { duplicate } = require('../template');
-
-/**
- * @type {function}
- * @param {DocumentViewParams} data - view document with field extract payload
- * @return {Promise<DocumentViewResponse, ApiErrorResponse>}
- */
-const getDocumentDetails = ({ id, token }) => new Promise((resolve, reject) => {
-  view({
-    id,
-    token,
-  }, (err, res) => {
-    if (err) {
-      reject(err);
-    } else {
-      resolve(res);
-    }
-  });
-});
-
-/**
- * @type {function}
- * @param {DocumentViewResponse} document
- * @return {boolean} is there any field invite in given document
- */
-const hasFieldInvites = document => document.field_invites.length > 0;
-
-/**
- * @type {function}
- * @param {DocumentViewResponse} document
- * @return {boolean} is document a template or not
- */
-const isTemplate = document => document.template === true;
-
-/**
- * @type {function}
- * @param {TemplateDuplicateParams} data - duplicate template payload
- * @return {Promise<string, ApiErrorResponse>} resolves with id of new document
- */
-const makeDocumentFromTemplate = ({ id, token }) => new Promise((resolve, reject) => {
-  duplicate({
-    id,
-    token,
-  }, (err, res) => {
-    if (err) {
-      reject(err);
-    } else {
-      resolve(res.id);
-    }
-  });
-});
-
-
-/**
- * Document Group methods
- */
-class DocumentGroup {
-
-  /**
-   * Create document group payload
-   * @typedef {Object} DocumentGroupCreateParams
-   * @property {string} token - your auth token
-   * @property {string[]} ids - array of document or template ids for document group creation
-   * @property {string} group_name - new name of document group
-   */
-
-  /**
-   * Create document group response data
-   * @typedef {Object} DocumentGroupCreateResponse
-   * @property {string} id - document group unique id
-   */
-
-  /**
-   * Creates document group with specified documents or templates.
-   * At least one document or template must contain fields. Documents should not contain pending invites.
-   * @param {DocumentGroupCreateParams} data - create document group payload
-   * @param {function(err: ApiErrorResponse, res: DocumentGroupCreateResponse)} [callback] - error first node.js callback
-   */
-  static create ({
-    token,
-    ids,
-    group_name,
-  }, callback) {
-    const realDocumentIDs = ids
-      .map(id => {
-        return getDocumentDetails({
-          id,
-          token,
-        })
-          .then(document => {
-            if (isTemplate(document)) {
-              return makeDocumentFromTemplate({
-                id,
-                token,
-              });
-            } else if (hasFieldInvites(document)) {
-              throw new Error('Document in the group must have no pending invites');
-            } else {
-              return id;
-            }
-          });
-      });
-
-    Promise.all(realDocumentIDs)
-      .then(document_ids => {
-        const JSONData = JSON.stringify({
-          document_ids,
-          group_name,
-        });
-
-        const req = https
-          .request(buildRequestOptions({
-            method: 'POST',
-            path: '/documentgroup',
-            authorization: {
-              type: 'Bearer',
-              token,
-            },
-            headers: {
-              'Content-Type': 'application/json',
-              'Content-Length': Buffer.byteLength(JSONData),
-            },
-          }), responseHandler(callback))
-          .on('error', errorHandler(callback));
-
-        req.write(JSONData);
-        req.end();
-      })
-      .catch(err => {
-        callback(err.message);
-        return;
-      });
-  }
-
-  /**
-   * Document Group view payload
-   * @typedef {Object} DocumentGroupViewParams
-   * @property {string} id - id of specific Document Group
-   * @property {string} token - your auth token
-   */
-
-  /**
-   * Details of single Document in group
-   * @typedef {Object} DocumentGroupItem
-   * @property {string} id - an ID of Document
-   * @property {string} document_name - a name of Document
-   * @property {string} origin_document_id - an ID of Document origin
-   * @property {boolean} has_credit_card_number - Document has Credit Card number attached
-   * @property {boolean} has_unassigned_field - Document has unassigned field(s)
-   * @property {DocumentThumbnails} thumbnail - thumbnail urls with different sizes (small, medium, large)
-   * @property {string[]} roles - list of template signer roles
-   */
-
-  /**
-   * Document Group view response data
-   * @typedef {Object} DocumentGroupViewResponse
-   * @property {string} id - an ID of Document Group
-   * @property {string} group_name - a name of Document Group
-   * @property {DocumentGroupItem[]} documents - each single document details
-   * @property {?string} invite_id - an ID of active invite
-   * @property {Object[]} originator_organization_settings - originator organization settings
-   */
-
-  /**
-   * Retrieves a Document Group detailed data
-   * @param {DocumentGroupViewParams} data - view Document Group details payload
-   * @param {function(err: ApiErrorResponse, res: DocumentGroupViewResponse)} [callback] - error first node.js callback
-   */
-  static view ({ id, token }, callback) {
-    https
-      .request(buildRequestOptions({
-        method: 'GET',
-        path: `/documentgroup/${id}`,
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback))
-      .end();
-  }
-
-  /**
-   * Document Group invite email configurations
-   * @typedef {Object} DocumentGroupInviteEmail
-   * @property {string} email - signer's email
-   * @property {string} [subject] - subject of invitation email
-   * @property {string} [message] - content of invitation email
-   * @property {number} [expiration_days] - expiration of invite in days
-   * @property {number} [reminder] - number of days in which to remind about invitation via email
-   */
-
-  /**
-   * Document Group signer's authentication with password config
-   * @typedef {Object} DocumentGroupInviteAuthenticationPassword
-   * @property {string} type - set `password` to authenticate signer with password
-   * @property {string} value - authentication password value
-   */
-
-  /**
-   * Document Group signer's authentication with phone call config
-   * @typedef {Object} DocumentGroupInviteAuthenticationPhoneCall
-   * @property {string} type - set `phone` to authenticate signer with phone call
-   * @property {string} method - set `phone_call` to authenticate signer with phone call
-   * @property {string} phone - phone number
-   */
-
-  /**
-   * Document Group signer's authentication with phone SMS config
-   * @typedef {Object} DocumentGroupInviteAuthenticationPhoneSMS
-   * @property {string} type - set `phone` to authenticate signer with phone SMS
-   * @property {string} method - set `sms` to authenticate signer with phone SMS
-   * @property {string} phone - phone number
-   */
-
-  /**
-   * Document Group invite action configurations
-   * @typedef {Object} DocumentGroupInviteAction
-   * @property {string} email - signer's email
-   * @property {string} role_name - signer's role name
-   * @property {string} action - name of action with document in signing step
-   * @property {string} document_id - ID of document in specific signing step
-   * @property {string} [allow_reassign] - allow reassigning of signer
-   * @property {string} [decline_by_signature] - signer can decline invite
-   * @property {DocumentGroupInviteAuthenticationPassword|DocumentGroupInviteAuthenticationPhoneCall|DocumentGroupInviteAuthenticationPhoneSMS} [authentication] - signer's authentication configuration
-   */
-
-  /**
-   * Document Group invite step configurations
-   * @typedef {Object} DocumentGroupInviteStep
-   * @property {number} order - an order number of invitation step
-   * @property {DocumentGroupInviteEmail[]} [invite_emails] - Document Group invite emails settings
-   * @property {DocumentGroupInviteAction[]} invite_actions - Document Group invite actions settings
-   */
-
-  /**
-   * Document Group invite completion email configuration
-   * @typedef {Object} DocumentGroupInviteCompletionEmailConfig
-   * @property {string} email - email for completion (only from the signers and document owner emails)
-   * @property {number} disable_document_attachment - disable attachment of signed document group to completion email (values: 0|1)
-   */
-
-  /**
-   * Document Group invite settings
-   * @typedef {Object} DocumentGroupInviteSettings
-   * @property {DocumentGroupInviteStep[]} invite_steps - Document Group invite steps settings
-   * @property {DocumentGroupInviteCompletionEmailConfig[]} [completion_emails] - set of completion email configutrations
-   */
-
-  /**
-   * Create Document Group invite payload
-   * @typedef {Object} DocumentGroupInviteParams
-   * @property {string} id - ID of specific Document Group
-   * @property {DocumentGroupInviteSettings} data - Document Group invite settings data
-   * @property {string} token - your auth token
-   */
-
-  /**
-   * Create Document Group invite response data
-   * @typedef {Object} DocumentGroupInviteResponse
-   * @property {string} id - ID of created Document Group invitation
-   * @property {?string} pending_invite_link - pending invite link
-   */
-
-  /**
-   * Creates an invite to sign a Document Group
-   * @param {DocumentGroupInviteParams} data - create Document Group invite payload
-   * @param {function(err: ApiErrorResponse, res: DocumentGroupInviteResponse)} [callback] - error first node.js callback
-   */
-  static invite ({
-    id,
-    data,
-    token,
-  }, callback) {
-    const {
-      invite_steps,
-      completion_emails,
-    } = data;
-
-    const JSONData = JSON.stringify({
-      invite_steps,
-      completion_emails,
-    });
-
-    const req = https
-      .request(buildRequestOptions({
-        method: 'POST',
-        path: `/documentgroup/${id}/groupinvite`,
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-        headers: {
-          'Content-Type': 'application/json',
-          'Content-Length': Buffer.byteLength(JSONData),
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback));
-
-    req.write(JSONData);
-    req.end();
-  }
-
-  /**
-   * Document Group download payload
-   * @typedef {Object} DocumentGroupDownloadParams
-   * @property {string} id - an ID of a Document Group
-   * @property {string} token - your auth token
-   * @property {string} [type='zip'] - type of download flow, can be either `zip` or `merged`
-   * @property {string} [with_history='no'] - type of history merging flow, can be `no`, `after_each_document`, or `after_merged_pdf`
-   * @property {string[]} [document_order] - document order for merging flow
-   */
-
-  /**
-   * Document Group binary data
-   * @typedef {Buffer} DocumentGroupDownloadResponse
-   */
-
-  /**
-   * Downloads a document group.
-   * By default document group will be downloaded as a zip archive and without history.
-   * To download document group as a single merged PDF set `type` to `merged`.
-   * To download document group with history set `with_history` to `after_each_document` or `after_merged_pdf`.
-   * @param {DocumentGroupDownloadParams} data - download Document Group request payload
-   * @param {function(err: ApiErrorResponse, res: DocumentGroupDownloadResponse)} [callback] - error first node.js callback
-   */
-  static download ({
-    id,
-    token,
-    type = 'zip',
-    with_history = 'no',
-    document_order = [],
-  }, callback) {
-    const JSONData = JSON.stringify({
-      type,
-      with_history,
-      document_order,
-    });
-
-    const req = https
-      .request(buildRequestOptions({
-        method: 'POST',
-        path: `/documentgroup/${id}/downloadall`,
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-        headers: {
-          'Content-Type': 'application/json',
-          'Content-Length': Buffer.byteLength(JSONData),
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback));
-
-    req.write(JSONData);
-    req.end();
-  }
-
-  /**
-   * Cancel Document Group Invite payload
-   * @typedef {Object} DocumentGroupCancelInviteParams
-   * @property {string} id - ID of specific Document Group
-   * @property {string} invite_id - ID of Document Group Invite
-   * @property {string} token - your auth token
-   */
-
-  /**
-   * Cancel Document Group Invite response data
-   * @typedef {Object} DocumentGroupCancelInviteResponse
-   * @property {string} status - status of invite cancellation (e.g. "success")
-   */
-
-  /**
-   * Cancels an Invite to sign a specific Document Group
-   * @param {DocumentGroupCancelInviteParams} data - cancel Document Group Invite payload
-   * @param {function(err: ApiErrorResponse, res: DocumentGroupCancelInviteResponse)} [callback] - error first node.js callback
-   */
-  static cancelInvite ({
-    token,
-    id,
-    inviteId,
-  }, callback) {
-
-    https
-      .request(buildRequestOptions({
-        method: 'POST',
-        path: `/documentgroup/${id}/groupinvite/${inviteId}/cancelinvite`,
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback))
-      .end();
-  }
-
-}
-
-module.exports = DocumentGroup;
-
- -
- - - - - - - - - - - - diff --git a/docs/file/lib/document.js.html b/docs/file/lib/document.js.html deleted file mode 100644 index 1604668d..00000000 --- a/docs/file/lib/document.js.html +++ /dev/null @@ -1,1028 +0,0 @@ - - - - - - lib/document.js | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -

lib/document.js

-
'use strict';
-const https = require('https');
-const fs = require('fs');
-const {
-  responseHandler, errorHandler, buildRequestOptions,
-} = require('./common');
-
-// build file multipart/form-data request
-const buildFileRequest = (boundaryKey, mimeType, filename) => {
-  let req = `------FormBoundary${boundaryKey}\r\n`;
-  req += `Content-Disposition: form-data; name="file"; filename="${filename}"\r\n`;
-  req += `Content-Type: ${mimeType}\r\n\r\n`;
-  return req;
-};
-
-// get file mime type
-const getMimeType = path => {
-  const extTypes = {
-    doc: 'application/msword',
-    docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
-    pdf: 'application/pdf',
-    odt: 'application/vnd.oasis.opendocument.text',
-    rtf: 'application/rtf',
-    xml: 'application/xml',
-    xls: 'application/vnd.ms-excel',
-    xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
-    ppt: 'application/vnd.ms-powerpoint',
-    pptx: 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
-    png: 'image/png',
-    jpg: 'image/jpeg',
-    jpeg: 'image/jpeg',
-    gif: 'image/gif',
-    bmp: 'image/bmp',
-  };
-  const pathExtension = path.substr(path.lastIndexOf('.')).replace('.', '');
-  return extTypes[pathExtension.toLowerCase()] || null;
-};
-
-// get filename from path
-const getFileName = path => {
-  if (path.lastIndexOf('/') !== -1) {
-    return path.substr(path.lastIndexOf('/')).replace('/', '');
-  } else {
-    return path;
-  }
-};
-
-// generate randon string
-const randString = x => {
-  let s = '';
-  while (s.length < x && x > 0) {
-    const r = Math.random();
-    s += (r < 0.1 ? Math.floor(r * 100) : String.fromCharCode(Math.floor(r * 26) + (r > 0.5 ? 97 : 65)));
-  }
-  return s;
-};
-
-/**
- * Document methods
- */
-class Document {
-
-  /**
-   * Create document payload
-   * @typedef {Object} DocumentCreateParams
-   * @property {string} filepath - path to file to be uploaded
-   * @property {string} token - your auth token
-   */
-
-  /**
-   * Create document response data
-   * @typedef {Object} DocumentCreateResponse
-   * @property {string} id - an id of created document
-   */
-
-  /**
-   * Uploads a file and creates a document.
-   * This endpoint accepts .pdf, .doc, .docx, .odt, .rtf, .png, .jpg, .jpeg, .gif, .bmp, .xml, .xls, .xlsx, .ppt, .pptx file types
-   * @param {DocumentCreateParams} data - create document payload
-   * @param {function(err: ApiErrorResponse, res: DocumentCreateResponse)} [callback] - error first node.js callback
-   */
-  static create ({ filepath, token }, callback) {
-    const boundaryKey = randString(30);
-    const filename = getFileName(filepath);
-
-    // check mimetype
-    const mimeType = getMimeType(filepath);
-
-    if (!mimeType) {
-      callback('File type isn\'t supported.');
-      return;
-    }
-
-    const file = buildFileRequest(boundaryKey, mimeType, filename);
-    const stat = fs.statSync(filepath);
-    const reader = fs.createReadStream(filepath, { bufferSize: 64 * 1024 });
-    const closingLine = `\r\n------FormBoundary${boundaryKey}--`;
-    const req = https
-      .request(buildRequestOptions({
-        method: 'POST',
-        path: '/document',
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-        headers: {
-          'Content-Type': `multipart/form-data; boundary=----FormBoundary${boundaryKey}`,
-          'Content-Length': stat.size + file.toString().length + closingLine.length,
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback));
-
-    req.write(file);
-    reader.on('end', () => {
-      reader.unpipe(req);
-      req.end(closingLine);
-    });
-
-    // pipe the file and append a closing line
-    reader.pipe(req, { end: false });
-  }
-
-  /**
-   * Upload document with field extract payload
-   * @typedef {Object} DocumentFieldExtractParams
-   * @property {string} filepath - path to file to be uploaded
-   * @property {string} token - your auth token
-   */
-
-  /**
-   * Upload document with field extract response data
-   * @typedef {Object} DocumentFieldExtractResponse
-   * @property {string} id - an id of created document
-   */
-
-  /**
-   * Uploads a file that contains SignNow Document Field Tags.
-   * This endpoint only accepts .pdf (you may convert the document from .doc or .docx to .pdf)
-   * @param {DocumentFieldExtractParams} data - upload document with field extract payload
-   * @param {function(err: ApiErrorResponse, res: DocumentFieldExtractResponse)} [callback] - error first node.js callback
-   */
-  static fieldextract ({ filepath, token }, callback) {
-    const boundaryKey = randString(30);
-    const filename = getFileName(filepath);
-
-    // check mimetype
-    const mimeType = getMimeType(filepath);
-
-    if (!mimeType) {
-      callback('File type isn\'t supported.');
-      return;
-    }
-
-    const file = buildFileRequest(boundaryKey, mimeType, filename);
-    const stat = fs.statSync(filepath);
-    const reader = fs.createReadStream(filepath, { bufferSize: 64 * 1024 });
-    const closingLine = `\r\n------FormBoundary${boundaryKey}--`;
-
-    const req = https
-      .request(buildRequestOptions({
-        method: 'POST',
-        path: '/document/fieldextract',
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-        headers: {
-          'Content-Type': `multipart/form-data; boundary=----FormBoundary${boundaryKey}`,
-          'Content-Length': stat.size + file.toString().length + closingLine.length,
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback));
-
-    req.write(file);
-    reader.on('end', () => {
-      reader.unpipe(req);
-      req.end(closingLine);
-    });
-
-    // pipe the file and append a closing line
-    reader.pipe(req, { end: false });
-  }
-
-
-  /**
-   * Payload to receive user's document list
-   * @typedef {Object} DocumentListParams
-   * @property {string} token - your auth token
-   */
-
-  /**
-   * Document list response item
-   * @typedef {Object} DocumentListItem
-   * @property {string} id - id of specific document
-   * @property {string} user_id - id of user that uploaded document
-   * @property {string} document_name - name of document
-   * @property {string} page_count - amount of pages in the document
-   * @property {string} created - timestamp document was created
-   * @property {string} updated - timestamp document was updated
-   * @property {string} original_filename - original filename with document format (.pdf, .doc, etc...)
-   * @property {?string} origin_document_id - an id of original document (if document is a copy)
-   * @property {string} owner - email of document owner
-   * @property {boolean} template - is document a template or not
-   * @property {?string} origin_user_id - id of user who created document
-   * @property {Object} thumbnail - thumbnail urls with different sizes (small, medium, large)
-   * @property {Object[]} signatures - signature signed elements
-   * @property {Object[]} texts - text and enumeration filled elements
-   * @property {Object[]} checks - checkbox checked elements
-   * @property {Object[]} tags - field types document contains
-   * @property {Object[]} fields - all document fillable fields
-   * @property {Object[]} requests - requests for signing document
-   * @property {Object[]} roles - document signer roles
-   * @property {Object[]} field_invites - sent invites data
-   * @property {number} version_time - document updated timestamp
-   * @property {Object[]} enumeration_options - dropdown options
-   * @property {Object[]} attachments - attachments in document
-   * @property {Object[]} routing_details - signing steps routing details
-   * @property {Object[]} integrations - document integrations
-   * @property {Object[]} hyperlinks - document hyperlinks
-   * @property {Object[]} radiobuttons - checked radiobuttons after document was signed
-   * @property {Object[]} document_group_template_info - document group templates data
-   * @property {Object[]} document_group_info - document group template's data
-   * @property {Object[]} originator_organization_settings - specific organization settings for document
-   * @property {Object[]} field_validators - validation rules for fields (date fields, payment fields etc.)
-   * @property {Object} settings - specific document settings
-   */
-
-  /**
-   * User's Document list response
-   * @typedef {DocumentListItem[]} DocumentListResponse
-   */
-
-  /**
-   * Retrieve user's document list
-   * @param {DocumentListParams} data - payload to receive user's document list
-   * @param {function(err: ApiErrorResponse, res: DocumentListItem)} [callback] - error first node.js callback
-   */
-  static list ({ token }, callback) {
-    https
-      .request(buildRequestOptions({
-        method: 'GET',
-        path: '/user/documentsv2',
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback))
-      .end();
-  }
-
-  /**
-   * Document view payload
-   * @typedef {Object} DocumentViewParams
-   * @property {string} id - id of specific document
-   * @property {string} token - your auth token
-   */
-
-  /**
-   * Document view response of specific document
-   * @typedef {Object} DocumentViewResponse
-   * @property {string} id - id of specific document
-   * @property {string} user_id - id of user that uploaded document
-   * @property {string} document_name - name of document
-   * @property {string} page_count - amount of pages in the document
-   * @property {string} created - timestamp document was created
-   * @property {string} updated - timestamp document was updated
-   * @property {string} original_filename - original filename with document format (.pdf, .doc, etc...)
-   * @property {?string} origin_document_id - an id of original document (if document is a copy)
-   * @property {string} owner - email of document owner
-   * @property {boolean} template - is document a template or not
-   * @property {Object} thumbnail - thumbnail urls with different sizes (small, medium, large)
-   * @property {Object[]} signatures - signature signed elements
-   * @property {Object[]} texts - text and enumeration filled elements
-   * @property {Object[]} checks - checkbox checked elements
-   * @property {Object[]} tags - field types document contains
-   * @property {Object[]} fields - all document fillable fields
-   * @property {Object[]} requests - requests for signing document
-   * @property {Object[]} roles - document signer roles
-   * @property {Object[]} field_invites - sent invites data
-   * @property {number} version_time - document updated timestamp
-   * @property {Object[]} enumeration_options - dropdown options
-   * @property {Object[]} attachments - attachments in document
-   * @property {Object[]} routing_details - signing steps routing details
-   * @property {Object[]} integrations - document integrations
-   * @property {Object[]} hyperlinks - document hyperlinks
-   * @property {Object[]} radiobuttons - checked radiobuttons after document was signed
-   * @property {Object[]} document_group_template_info - document group template's data
-   * @property {Object[]} document_group_info - document group's data
-   * @property {Object[]} originator_organization_settings - specific organization settings for document
-   * @property {Object[]} field_validators - validation rules for fields (date fields, payment fields etc.)
-   * @property {Object} settings - specific document settings
-   * @property {string} parent_id - id of document folder
-   * @property {string} originator_logo - logo url
-   * @property {Object[]} pages - list of document pages with page sources and page size.
-   */
-
-  /**
-   * Retrieves a document detailed data
-   * @param {DocumentViewParams} data - view document details payload
-   * @param {function(err: ApiErrorResponse, res: DocumentViewResponse)} [callback] - error first node.js callback
-   */
-  static view ({ id, token }, callback) {
-    https
-      .request(buildRequestOptions({
-        method: 'GET',
-        path: `/document/${id}`,
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback))
-      .end();
-  }
-
-  /**
-   * @typedef {Object} SignatureField
-   * @property {number} page_number - page number of document
-   * @property {string} type - type of field (signature)
-   * @property {string} name - unique name of the field
-   * @property {string} role - role name
-   * @property {boolean} required - required field
-   * @property {number} height - height of the field
-   * @property {number} width - width of the field
-   * @property {number} x - X coordinate of the field
-   * @property {number} y - Y coordinate of the field
-   * @property {string} [label] - field label
-   */
-
-  /**
-   * @typedef {Object} InitialsField
-   * @property {number} page_number - page number of document
-   * @property {string} type - type of field (initials)
-   * @property {string} name - unique name of the field
-   * @property {string} role - role name
-   * @property {boolean} required - required field
-   * @property {number} height - height of the field
-   * @property {number} width - width of the field
-   * @property {number} x - X coordinate of the field
-   * @property {number} y - Y coordinate of the field
-   * @property {string} [label] - field label
-   */
-
-  /**
-   * @typedef {Object} TextField
-   * @property {number} page_number - page number of document
-   * @property {string} type - type of field (text)
-   * @property {string} name - unique name of the field
-   * @property {string} role - role name
-   * @property {boolean} required - required field
-   * @property {number} height - height of the field
-   * @property {number} width - width of the field
-   * @property {number} x - X coordinate of the field
-   * @property {number} y - Y coordinate of the field
-   * @property {string|number} [prefilled_text] - prefilled field value
-   * @property {string} [validator_id] - field value validator ID
-   * @property {string} [label] - field label
-   */
-
-  /**
-   * @typedef {Object} CheckField
-   * @property {number} page_number - page number of document
-   * @property {string} type - type of field (checkbox)
-   * @property {string} name - unique name of the field
-   * @property {string} role - role name
-   * @property {boolean} required - required field
-   * @property {number} height - height of the field
-   * @property {number} width - width of the field
-   * @property {number} x - X coordinate of the field
-   * @property {number} y - Y coordinate of the field
-   * @property {boolean} [prefilled_text] - prefilled field value
-   * @property {string} [label] - field label
-   */
-
-  /**
-   * @typedef {Object} EnumerationField
-   * @property {number} page_number - page number of document
-   * @property {string} type - type of field (enumeration)
-   * @property {string} name - unique name of the field
-   * @property {string} role - role name
-   * @property {boolean} required - required field
-   * @property {number} height - height of the field
-   * @property {number} width - width of the field
-   * @property {number} x - X coordinate of the field
-   * @property {number} y - Y coordinate of the field
-   * @property {Array<number|string>} enumeration_options - choice options of enumerable field
-   * @property {string|number} [prefilled_text] - prefilled field value
-   * @property {string} [label] - field label
-   * @property {boolean} [custom_defined_option=false] - if 'true' user can change values, if 'false' user can only read
-   */
-
-  /**
-   * @typedef {Object} RadioButton
-   * @property {number} page_number - page number of document
-   * @property {number} height - height of the field
-   * @property {number} width - width of the field
-   * @property {number} x - X coordinate of the field
-   * @property {number} y - Y coordinate of the field
-   * @property {string} value - value of radio button
-   * @property {string} checked - radio button check status
-   * @property {number} created - redio button creation timestamp
-   */
-
-  /**
-   * @typedef {Object} RadioButtonField
-   * @property {number} page_number - page number of document
-   * @property {string} type - type of field (radiobutton)
-   * @property {string} name - unique name of the field
-   * @property {string} role - role name
-   * @property {boolean} required - required field
-   * @property {number} height - height of the field
-   * @property {number} width - width of the field
-   * @property {number} x - X coordinate of the field
-   * @property {number} y - Y coordinate of the field
-   * @property {RadioButton[]} radio - array of radio buttons
-   * @property {string|number} [prefilled_text] - prefilled field value
-   * @property {string} [label] - field label
-   */
-
-  /**
-   * @typedef {Object} FormulaTreeBranchTerminator
-   * @property {string} term - name of field which will participate in calculation formula
-   */
-
-  /**
-   * @typedef {Object} FormulaTreeBranch
-   * @property {FormulaTree} term - a part of formula parsed into tree
-   */
-
-  /**
-   * @typedef {Object} FormulaTree
-   * @property {string} operator - arithmetic operator's token
-   * @property {FormulaTreeBranch|FormulaTreeBranchTerminator} left - left branch of formula tree
-   * @property {FormulaTreeBranch|FormulaTreeBranchTerminator} right - right branch of formula tree
-   */
-
-  /**
-   * @typedef {Object} CalculatedField
-   * @property {number} page_number - page number of document
-   * @property {string} type - type of field (text)
-   * @property {string} name - unique name of the field
-   * @property {string} role - role name
-   * @property {boolean} required - required field
-   * @property {number} height - height of the field
-   * @property {number} width - width of the field
-   * @property {number} x - X coordinate of the field
-   * @property {number} y - Y coordinate of the field
-   * @property {string} formula - arithmetic formula, e.g. 'TextName+EnumerationName'
-   * @property {FormulaTree} calculation_formula - formula parsed into tree
-   * @property {number} calculation_precision - calculation precision
-   * @property {string} [label] - field label
-   * @property {boolean} [custom_defined_option=false] - if 'true' user can change values, if 'false' user can only read
-   */
-
-  /**
-   * @typedef {Object} AttachmentField
-   * @property {number} page_number - page number of document
-   * @property {string} type - type of field (attachment)
-   * @property {string} name - unique name of the field
-   * @property {string} role - role name
-   * @property {boolean} required - required field
-   * @property {number} height - height of the field
-   * @property {number} width - width of the field
-   * @property {number} x - X coordinate of the field
-   * @property {number} y - Y coordinate of the field
-   * @property {string} [label] - field label
-   */
-
-  /**
-   * @typedef {Object} DocumentFields
-   * @property {number} client_timestamp - local time of user
-   * @property {Array<SignatureField|InitialsField|TextField|CheckField|EnumerationField|RadioButtonField|CalculatedField|AttachmentField>} fields - all types of fields
-   */
-
-  /**
-   * Update document payload
-   * @typedef {Object} DocumentUpdateParams
-   * @property {string} id - id of specific document
-   * @property {DocumentFields} fields - set of fields
-   * @property {string} token - your auth token
-   */
-
-  /**
-   * Update document response data
-   * @typedef {Object} DocumentUpdateResponse
-   * @property {string} id - an id of document
-   * @property {Object[]} signatures - signature and initial elements
-   * @property {Object[]} texts - text and enumeration elements
-   * @property {Object[]} checks - checkbox elements
-   * @property {Object[]} attachments - attachment elements
-   * @property {Object[]} radiobuttons - radiobutton elements
-   */
-
-  /**
-   * Updates an existing document.
-   * Adds fields (signature, text, initials, checkbox, radiobutton group, calculated) and elements (signature, text, check).
-   * Every call of this method will add only specified fields into document.
-   * Old fields will be removed
-   * @param {DocumentUpdateParams} data - update document request payload
-   * @param {function(err: ApiErrorResponse, res: DocumentUpdateResponse)} [callback] - error first node.js callback
-   */
-  static update ({
-    id,
-    fields,
-    token,
-  }, callback) {
-    const JSONData = JSON.stringify(fields);
-    const req = https
-      .request(buildRequestOptions({
-        method: 'PUT',
-        path: `/document/${id}`,
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-        headers: {
-          'Content-Type': 'application/json',
-          'Content-Length': Buffer.byteLength(JSONData),
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback));
-
-    req.write(JSONData);
-    req.end();
-  }
-
-  /**
-   * Document download payload
-   * @typedef {Object} DocumentDownloadParams
-   * @property {string} id - id of specific document
-   * @property {string} token - your auth token
-   */
-
-  /**
-   * Document binary data
-   * @typedef {Buffer} DocumentDownloadResponse
-   */
-
-  /**
-   * Downloads document with embedded fields and elements
-   * @param {DocumentDownloadParams} data - download document request payload
-   * @param {function(err: ApiErrorResponse, res: DocumentDownloadResponse)} [callback] - error first node.js callback
-   */
-
-  static download ({ id, token }, callback) {
-    https
-      .request(buildRequestOptions({
-        method: 'GET',
-        path: `/document/${id}/download?type=collapsed`,
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-      }), responseHandler(callback, { parse: false }))
-      .on('error', errorHandler(callback))
-      .end();
-  }
-
-  // creates a one-time use URL for anyone to download the document as a PDF.
-  static share ({ id, token }, callback) {
-    https
-      .request(buildRequestOptions({
-        method: 'POST',
-        path: `/document/${id}/download/link`,
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback))
-      .end();
-  }
-
-  /**
-   * Document invite signer settings
-   * @typedef {Object} SignerSettings
-   * @property {string} email - signer's email
-   * @property {string} role - role name
-   * @property {string} role_id - role unique id (can be discovered in document details)
-   * @property {number} order - role signing order
-   * @property {string} reassign - allow reassign signer
-   * @property {string} decline_by_signature - signer can decline invite
-   * @property {number} reminder - remind via email in days
-   * @property {number} expiration_days - expiration of invite in days
-   * @property {string} [subject] - specify subject of email
-   * @property {string} [message] - specify body of email
-   */
-
-  /**
-   * Document invite settings
-   * @typedef {Object} DocumentInviteSettings
-   * @property {string} from - email of sender
-   * @property {SignerSettings[]|string} to - array of signers or email of single signer
-   * @property {string} [document_id] - an id of document
-   * @property {string[]} [cc] - array with emails of copy receivers
-   * @property {string} [subject] - specify subject of email
-   * @property {string} [message] - specify body of email
-   * @property {string} [on_complete] - on signing complete action
-   */
-
-  /**
-   * Document invite optional settings
-   * @typedef {Object} DocumentInviteOptions
-   * @property {string} [email] - ability to disable invitation by email. to disabale email assign value 'disable'
-   */
-
-  /**
-   * Create document invite payload
-   * @typedef {Object} DocumentInviteParams
-   * @property {string} id - an id of document
-   * @property {DocumentInviteSettings} data - document invite settings
-   * @property {DocumentInviteOptions} [options] - document invite optional settings
-   * @property {string} token - your auth token
-   */
-
-  /**
-   * Create document field invite response data
-   * @typedef {Object} DocumentFieldInviteResponse
-   * @property {string} status - status of invitation, e.g. 'success'
-   */
-
-  /**
-   * Create document free form invite response data
-   * @typedef {Object} DocumentFreeformInviteResponse
-   * @property {string} result - free form invitation result, e.g. 'success'
-   * @property {string} id - unique id of invite
-   * @property {string} callback_url - url for front-end redirect or 'none'
-   */
-
-  /**
-   * Create document invite response data
-   * @typedef {DocumentFieldInviteResponse|DocumentFreeformInviteResponse} DocumentInviteResponse
-   */
-
-  /**
-   * Creates an invite to sign a document.
-   * You can create a simple free form invite(s) or a role-based invite(s).
-   * @param {DocumentInviteParams} data - create document invite payload
-   * @param {function(err: ApiErrorResponse, res: DocumentInviteResponse)} [callback] - error first node.js callback
-   */
-  static invite ({
-    id,
-    data,
-    options: { email } = {},
-    token,
-  }, callback) {
-    const JSONData = JSON.stringify(data);
-    let path = `/document/${id}/invite`;
-
-    if (email === 'disable') {
-      path = `${path}?email=disable`;
-    }
-
-    const req = https
-      .request(buildRequestOptions({
-        method: 'POST',
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-        headers: {
-          'Content-Type': 'application/json',
-          'Content-Length': Buffer.byteLength(JSONData),
-        },
-        path,
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback));
-
-    req.write(JSONData);
-    req.end();
-  }
-
-  // cancel an invite to a document.
-  static cancelInvite ({ id, token }, callback) {
-    https
-      .request(buildRequestOptions({
-        method: 'PUT',
-        path: `/document/${id}/fieldinvitecancel`,
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback))
-      .end();
-  }
-
-  /**
-   * Merge documents optional settings
-   * @typedef {Object} DocumentMergeOptions
-   * @property {boolean} [removeOriginalDocuments=false] - if true original documents will be removed
-   */
-
-  /**
-   * Merge documents payload
-   * @typedef {Object} DocumentMergeParams
-   * @property {string} token - your auth token
-   * @property {string} name - new name for merged document
-   * @property {string[]} document_ids - an array of document IDs
-   * @property {DocumentMergeOptions} options - merge documents optional settings
-   */
-
-  /**
-   * Merge documents response data
-   * @typedef {Object} DocumentMergeResponse
-   * @property {string} document_id - an ID of merged document
-   */
-
-  /**
-   * Merges existing documents into one.
-   * By default original documents are not removed after merging. To remove original documents set `removeOriginalDocuments` option to `true`.
-   * @param {DocumentMergeParams} data - merge documents payload
-   * @param {function(err: ApiErrorResponse, res: DocumentMergeResponse)} [originalCallback] - error first node.js callback
-   */
-  static merge ({
-    name,
-    document_ids,
-    options: { removeOriginalDocuments = false } = {},
-    token,
-  }, originalCallback) {
-    const JSONData = JSON.stringify({
-      upload_document: true,
-      document_ids,
-      name,
-    });
-
-    const callbackWithDocumentDeletion = (mergeErr, mergeRes) => {
-      if (mergeErr) {
-        originalCallback(mergeErr);
-        return;
-      } else {
-
-        const removeDocument = ({ id }) => new Promise((resolve, reject) => {
-          Document.remove({
-            id,
-            token,
-          }, (err, res) => {
-            if (err) {
-              reject(err);
-            } else {
-              resolve(res.status === 'success');
-            }
-          });
-        });
-
-        const documentsDeleted = document_ids
-          .map(id => removeDocument({ id }));
-
-        Promise.all(documentsDeleted)
-          .then(deletionStatuses => deletionStatuses.reduce((generalStatus, currentStatus) => (generalStatus && currentStatus), true))
-          .then(allDocumentsDeleted => {
-            if (allDocumentsDeleted) {
-              originalCallback(null, mergeRes);
-              return;
-            } else {
-              throw new Error('Some of the original documents were not removed');
-            }
-          })
-          .catch(removeErr => {
-            originalCallback(removeErr);
-            return;
-          });
-
-      }
-    };
-
-    const callback = removeOriginalDocuments
-      ? callbackWithDocumentDeletion
-      : originalCallback;
-
-    const req = https
-      .request(buildRequestOptions({
-        method: 'POST',
-        path: '/document/merge',
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-        headers: {
-          'Content-Type': 'application/json',
-          'Content-Length': Buffer.byteLength(JSONData),
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(originalCallback));
-
-    req.write(JSONData);
-    req.end();
-  }
-
-
-
-
-
-
-
-
-  /**
-   * Document history payload
-   * @typedef {Object} DocumentHistoryParams
-   * @property {string} id - id of specific document
-   * @property {string} token - your auth token
-   */
-
-  /**
-   * Document action log item
-   * @typedef {Object} DocumentEvent
-   * @property {string} client_app_name - name of a client application
-   * @property {?string} client_timestamp - client application timestamp
-   * @property {string} created - timestamp of action creation
-   * @property {string} email - email of an actor
-   * @property {string} event - name of event
-   * @property {string} ip_address - actor's IP address
-   * @property {?string} element_id - an ID of specific element
-   * @property {?string} field_id - an ID of specific field
-   * @property {?string} json_attributes - field attributes (e.g. font, style, size etc.)
-   * @property {string} [document_id] - an ID of specific document
-   * @property {string} [origin] - an origin of document
-   * @property {string} [unique_id] - an ID of event
-   * @property {string} [user_agent] - user agent
-   * @property {string} [user_id] - id of an actor
-   * @property {string} [version] - version of signed document (incremented after each signature addition)
-   */
-
-  /**
-   * Document history response data
-   * @typedef {DocumentEvent[]} DocumentHistoryResponse
-   */
-
-  /**
-   * Retrieves a document action log (history) data
-   * @param {DocumentHistoryParams} data -  payload
-   * @param {function(err: ApiErrorResponse, res: DocumentHistoryResponse)} [callback] - error first node.js callback
-   */
-  static history ({ id, token }, callback) {
-    https
-      .request(buildRequestOptions({
-        method: 'GET',
-        path: `/document/${id}/history`,
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback))
-      .end();
-  }
-
-  /**
-   * Remove document payload
-   * @typedef {Object} DocumentRemoveParams
-   * @property {string} id - id of specific document
-   * @property {string} token - your auth token
-   */
-
-  /**
-   * Remove document response data
-   * @typedef {Object} DocumentRemoveResponse
-   * @property {string} status - status of deletion, e.g. 'success'
-   */
-
-  /**
-   * Removes a specified document from folder
-   * @param {DocumentRemoveParams} data - remove document payload
-   * @param {function(err: ApiErrorResponse, res: DocumentRemoveResponse)} [callback] - error first node.js callback
-   */
-  static remove ({ id, token }, callback) {
-    https
-      .request(buildRequestOptions({
-        method: 'DELETE',
-        path: `/document/${id}`,
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback))
-      .end();
-  }
-
-}
-
-module.exports = Document;
-
- -
- - - - - - - - - - - - diff --git a/docs/file/lib/document/index.js.html b/docs/file/lib/document/index.js.html deleted file mode 100644 index 74db8d1e..00000000 --- a/docs/file/lib/document/index.js.html +++ /dev/null @@ -1,1321 +0,0 @@ - - - - - - lib/document/index.js | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -

lib/document/index.js

-
'use strict';
-const https = require('https');
-const { readFileSync } = require('fs');
-const { basename, extname } = require('path');
-const {
-  responseHandler,
-  errorHandler,
-  buildRequestOptions,
-  stringifyQueryParams,
-  getMimeTypeByFileExtension,
-  isDocumentTypeAcceptable,
-  getFormDataBoundary,
-  getByDeclinedStatus,
-  getSignerEmails,
-} = require('../common');
-const { promisify } = require('../../utils');
-
-/**
- * Document methods
- */
-class Document {
-
-  /**
-   * Create document payload
-   * @typedef {Object} DocumentCreateParams
-   * @property {string} filepath - path to file to be uploaded
-   * @property {string} token - your auth token
-   */
-
-  /**
-   * Create document response data
-   * @typedef {Object} DocumentCreateResponse
-   * @property {string} id - an id of created document
-   */
-
-  /**
-   * Uploads a file and creates a document.
-   * This endpoint accepts .pdf, .doc, .docx, .odt, .rtf, .png, .jpg, .jpeg, .gif, .bmp, .xml, .xls, .xlsx, .ppt, .pptx file types
-   * @param {DocumentCreateParams} data - create document payload
-   * @param {function(err: ApiErrorResponse, res: DocumentCreateResponse)} [callback] - error first node.js callback
-   */
-  static create ({ filepath, token }, callback) {
-    const fileExt = extname(filepath).substr(1);
-
-    if (!isDocumentTypeAcceptable(fileExt)) {
-      callback('File type isn\'t supported.');
-      return;
-    }
-
-    let fileContent;
-
-    try {
-      fileContent = readFileSync(filepath);
-    } catch (err) {
-      callback(err);
-      return;
-    }
-
-    const mimeType = getMimeTypeByFileExtension(fileExt);
-    const formDataBoundary = getFormDataBoundary();
-    const formDataBeginning = `--${formDataBoundary}\r\n`
-      .concat(`Content-Disposition: form-data; name="file"; filename="${basename(filepath)}"\r\n`)
-      .concat(`Content-Type: ${mimeType}\r\n\r\n`);
-    const formDataEnding = `\r\n--${formDataBoundary}\r\n`;
-
-    const payload = Buffer.concat([
-      Buffer.from(formDataBeginning, 'utf8'),
-      fileContent,
-      Buffer.from(formDataEnding, 'utf8'),
-    ]);
-
-    const req = https
-      .request(buildRequestOptions({
-        method: 'POST',
-        path: '/document',
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-        headers: {
-          'Content-Type': `multipart/form-data; boundary=${formDataBoundary}`,
-          'Content-Length': Buffer.byteLength(payload),
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback));
-
-    req.write(payload);
-    req.end();
-  }
-
-  /**
-   * Upload document with field extract payload
-   * @typedef {Object} DocumentFieldExtractParams
-   * @property {string} filepath - path to file to be uploaded
-   * @property {string} token - your auth token
-   */
-
-  /**
-   * Upload document with field extract response data
-   * @typedef {Object} DocumentFieldExtractResponse
-   * @property {string} id - an id of created document
-   */
-
-  /**
-   * Uploads a file that contains SignNow Document Field Tags.
-   * This endpoint only accepts .pdf (you may convert the document from .doc or .docx to .pdf)
-   * @param {DocumentFieldExtractParams} data - upload document with field extract payload
-   * @param {function(err: ApiErrorResponse, res: DocumentFieldExtractResponse)} [callback] - error first node.js callback
-   */
-  static fieldextract ({ filepath, token }, callback) {
-    const fileExt = extname(filepath).substr(1);
-
-    if (!isDocumentTypeAcceptable(fileExt)) {
-      callback('File type isn\'t supported.');
-      return;
-    }
-
-    let fileContent;
-
-    try {
-      fileContent = readFileSync(filepath);
-    } catch (err) {
-      callback(err);
-      return;
-    }
-
-    const mimeType = getMimeTypeByFileExtension(fileExt);
-    const formDataBoundary = getFormDataBoundary();
-    const formDataBeginning = `--${formDataBoundary}\r\n`
-      .concat(`Content-Disposition: form-data; name="file"; filename="${basename(filepath)}"\r\n`)
-      .concat(`Content-Type: ${mimeType}\r\n\r\n`);
-    const formDataEnding = `\r\n--${formDataBoundary}\r\n`;
-
-    const payload = Buffer.concat([
-      Buffer.from(formDataBeginning, 'utf8'),
-      Buffer.from(fileContent, 'binary'),
-      Buffer.from(formDataEnding, 'utf8'),
-    ]);
-
-    const req = https
-      .request(buildRequestOptions({
-        method: 'POST',
-        path: '/document/fieldextract',
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-        headers: {
-          'Content-Type': `multipart/form-data; boundary=${formDataBoundary}`,
-          'Content-Length': Buffer.byteLength(payload),
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback));
-
-    req.write(payload);
-    req.end();
-  }
-
-  /**
-   * Payload to receive user's document list
-   * @typedef {Object} DocumentListParams
-   * @property {string} token - your auth token
-   */
-
-  /**
-   * Document list response item
-   * @typedef {Object} DocumentListItem
-   * @property {string} id - id of specific document
-   * @property {string} user_id - id of user that uploaded document
-   * @property {string} document_name - name of document
-   * @property {string} page_count - amount of pages in the document
-   * @property {string} created - timestamp document was created
-   * @property {string} updated - timestamp document was updated
-   * @property {string} original_filename - original filename with document format (.pdf, .doc, etc...)
-   * @property {?string} origin_document_id - an id of original document (if document is a copy)
-   * @property {string} owner - email of document owner
-   * @property {boolean} template - is document a template or not
-   * @property {?string} origin_user_id - id of user who created document
-   * @property {DocumentThumbnails} thumbnail - thumbnail urls with different sizes (small, medium, large)
-   * @property {Object[]} signatures - signature signed elements
-   * @property {Object[]} texts - text and enumeration filled elements
-   * @property {Object[]} checks - checkbox checked elements
-   * @property {Object[]} tags - field types document contains
-   * @property {Object[]} fields - all document fillable fields
-   * @property {Object[]} requests - requests for signing document
-   * @property {Object[]} roles - document signer roles
-   * @property {Object[]} field_invites - sent invites data
-   * @property {number} version_time - document updated timestamp
-   * @property {Object[]} enumeration_options - dropdown options
-   * @property {Object[]} attachments - attachments in document
-   * @property {Object[]} routing_details - signing steps routing details
-   * @property {Object[]} integrations - document integrations
-   * @property {Object[]} hyperlinks - document hyperlinks
-   * @property {Object[]} radiobuttons - checked radiobuttons after document was signed
-   * @property {Object[]} document_group_template_info - document group templates data
-   * @property {Object[]} document_group_info - document group template's data
-   * @property {Object[]} originator_organization_settings - specific organization settings for document
-   * @property {Object[]} field_validators - validation rules for fields (date fields, payment fields etc.)
-   * @property {Object} settings - specific document settings
-   */
-
-  /**
-   * User's Document list response
-   * @typedef {DocumentListItem[]} DocumentListResponse
-   */
-
-  /**
-   * Retrieve user's document list
-   * @param {DocumentListParams} data - payload to receive user's document list
-   * @param {function(err: ApiErrorResponse, res: DocumentListItem)} [callback] - error first node.js callback
-   */
-  static list ({ token }, callback) {
-    https
-      .request(buildRequestOptions({
-        method: 'GET',
-        path: '/user/documentsv2',
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback))
-      .end();
-  }
-
-  /**
-   * Document view payload
-   * @typedef {Object} DocumentViewParams
-   * @property {string} id - id of specific document
-   * @property {string} token - your auth token
-   */
-
-  /**
-   * Document thumbnail urls with different sizes (small, medium, large)
-   * @typedef {Object} DocumentThumbnails
-   * @property {string} large
-   * @property {string} medium
-   * @property {string} small
-   */
-
-  /**
-   * Document view response of specific document
-   * @typedef {Object} DocumentViewResponse
-   * @property {string} id - id of specific document
-   * @property {string} user_id - id of user that uploaded document
-   * @property {string} document_name - name of document
-   * @property {string} page_count - amount of pages in the document
-   * @property {string} created - timestamp document was created
-   * @property {string} updated - timestamp document was updated
-   * @property {string} original_filename - original filename with document format (.pdf, .doc, etc...)
-   * @property {?string} origin_document_id - an id of original document (if document is a copy)
-   * @property {string} owner - email of document owner
-   * @property {boolean} template - is document a template or not
-   * @property {DocumentThumbnails} thumbnail - thumbnail urls with different sizes (small, medium, large)
-   * @property {Object[]} signatures - signature signed elements
-   * @property {Object[]} texts - text and enumeration filled elements
-   * @property {Object[]} checks - checkbox checked elements
-   * @property {Object[]} tags - field types document contains
-   * @property {Object[]} fields - all document fillable fields
-   * @property {Object[]} requests - requests for signing document
-   * @property {Object[]} roles - document signer roles
-   * @property {Object[]} field_invites - sent invites data
-   * @property {number} version_time - document updated timestamp
-   * @property {Object[]} enumeration_options - dropdown options
-   * @property {Object[]} attachments - attachments in document
-   * @property {Object[]} routing_details - signing steps routing details
-   * @property {Object[]} integrations - document integrations
-   * @property {Object[]} hyperlinks - document hyperlinks
-   * @property {Object[]} radiobuttons - checked radiobuttons after document was signed
-   * @property {Object[]} document_group_template_info - document group template's data
-   * @property {Object[]} document_group_info - document group's data
-   * @property {Object[]} originator_organization_settings - specific organization settings for document
-   * @property {Object[]} field_validators - validation rules for fields (date fields, payment fields etc.)
-   * @property {Object} settings - specific document settings
-   * @property {string} parent_id - id of document folder
-   * @property {string} originator_logo - logo url
-   * @property {Object[]} pages - list of document pages with page sources and page size.
-   */
-
-  /**
-   * Retrieves a document detailed data
-   * @param {DocumentViewParams} data - view document details payload
-   * @param {function(err: ApiErrorResponse, res: DocumentViewResponse)} [callback] - error first node.js callback
-   */
-  static view ({ id, token }, callback) {
-    https
-      .request(buildRequestOptions({
-        method: 'GET',
-        path: `/document/${id}`,
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback))
-      .end();
-  }
-
-  /**
-   * @typedef {Object} SignatureField
-   * @property {number} page_number - page number of document
-   * @property {string} type - type of field (signature)
-   * @property {string} name - unique name of the field
-   * @property {string} role - role name
-   * @property {boolean} required - required field
-   * @property {number} height - height of the field
-   * @property {number} width - width of the field
-   * @property {number} x - X coordinate of the field
-   * @property {number} y - Y coordinate of the field
-   * @property {string} [label] - field label
-   */
-
-  /**
-   * @typedef {Object} InitialsField
-   * @property {number} page_number - page number of document
-   * @property {string} type - type of field (initials)
-   * @property {string} name - unique name of the field
-   * @property {string} role - role name
-   * @property {boolean} required - required field
-   * @property {number} height - height of the field
-   * @property {number} width - width of the field
-   * @property {number} x - X coordinate of the field
-   * @property {number} y - Y coordinate of the field
-   * @property {string} [label] - field label
-   */
-
-  /**
-   * @typedef {Object} TextField
-   * @property {number} page_number - page number of document
-   * @property {string} type - type of field (text)
-   * @property {string} name - unique name of the field
-   * @property {string} role - role name
-   * @property {boolean} required - required field
-   * @property {number} height - height of the field
-   * @property {number} width - width of the field
-   * @property {number} x - X coordinate of the field
-   * @property {number} y - Y coordinate of the field
-   * @property {string|number} [prefilled_text] - prefilled field value
-   * @property {string} [validator_id] - field value validator ID
-   * @property {string} [label] - field label
-   */
-
-  /**
-   * @typedef {Object} CheckField
-   * @property {number} page_number - page number of document
-   * @property {string} type - type of field (checkbox)
-   * @property {string} name - unique name of the field
-   * @property {string} role - role name
-   * @property {boolean} required - required field
-   * @property {number} height - height of the field
-   * @property {number} width - width of the field
-   * @property {number} x - X coordinate of the field
-   * @property {number} y - Y coordinate of the field
-   * @property {boolean} [prefilled_text] - prefilled field value
-   * @property {string} [label] - field label
-   */
-
-  /**
-   * @typedef {Object} EnumerationField
-   * @property {number} page_number - page number of document
-   * @property {string} type - type of field (enumeration)
-   * @property {string} name - unique name of the field
-   * @property {string} role - role name
-   * @property {boolean} required - required field
-   * @property {number} height - height of the field
-   * @property {number} width - width of the field
-   * @property {number} x - X coordinate of the field
-   * @property {number} y - Y coordinate of the field
-   * @property {Array<number|string>} enumeration_options - choice options of enumerable field
-   * @property {string|number} [prefilled_text] - prefilled field value
-   * @property {string} [label] - field label
-   * @property {boolean} [custom_defined_option=false] - if 'true' user can change values, if 'false' user can only read
-   */
-
-  /**
-   * @typedef {Object} RadioButton
-   * @property {number} page_number - page number of document
-   * @property {number} height - height of the field
-   * @property {number} width - width of the field
-   * @property {number} x - X coordinate of the field
-   * @property {number} y - Y coordinate of the field
-   * @property {string} value - value of radio button
-   * @property {string} checked - radio button check status
-   * @property {number} created - redio button creation timestamp
-   */
-
-  /**
-   * @typedef {Object} RadioButtonField
-   * @property {number} page_number - page number of document
-   * @property {string} type - type of field (radiobutton)
-   * @property {string} name - unique name of the field
-   * @property {string} role - role name
-   * @property {boolean} required - required field
-   * @property {number} height - height of the field
-   * @property {number} width - width of the field
-   * @property {number} x - X coordinate of the field
-   * @property {number} y - Y coordinate of the field
-   * @property {RadioButton[]} radio - array of radio buttons
-   * @property {string|number} [prefilled_text] - prefilled field value
-   * @property {string} [label] - field label
-   */
-
-  /**
-   * @typedef {Object} FormulaTreeBranchTerminator
-   * @property {string} term - name of field which will participate in calculation formula
-   */
-
-  /**
-   * @typedef {Object} FormulaTreeBranch
-   * @property {FormulaTree} term - a part of formula parsed into tree
-   */
-
-  /**
-   * @typedef {Object} FormulaTree
-   * @property {string} operator - arithmetic operator's token
-   * @property {FormulaTreeBranch|FormulaTreeBranchTerminator} left - left branch of formula tree
-   * @property {FormulaTreeBranch|FormulaTreeBranchTerminator} right - right branch of formula tree
-   */
-
-  /**
-   * @typedef {Object} CalculatedField
-   * @property {number} page_number - page number of document
-   * @property {string} type - type of field (text)
-   * @property {string} name - unique name of the field
-   * @property {string} role - role name
-   * @property {boolean} required - required field
-   * @property {number} height - height of the field
-   * @property {number} width - width of the field
-   * @property {number} x - X coordinate of the field
-   * @property {number} y - Y coordinate of the field
-   * @property {string} formula - arithmetic formula, e.g. 'TextName+EnumerationName'
-   * @property {FormulaTree} calculation_formula - formula parsed into tree
-   * @property {number} calculation_precision - calculation precision
-   * @property {string} [label] - field label
-   * @property {boolean} [custom_defined_option=false] - if 'true' user can change values, if 'false' user can only read
-   */
-
-  /**
-   * @typedef {Object} AttachmentField
-   * @property {number} page_number - page number of document
-   * @property {string} type - type of field (attachment)
-   * @property {string} name - unique name of the field
-   * @property {string} role - role name
-   * @property {boolean} required - required field
-   * @property {number} height - height of the field
-   * @property {number} width - width of the field
-   * @property {number} x - X coordinate of the field
-   * @property {number} y - Y coordinate of the field
-   * @property {string} [label] - field label
-   */
-
-  /**
-   * @typedef {Object} DocumentFields
-   * @property {number} client_timestamp - local time of user
-   * @property {Array<SignatureField|InitialsField|TextField|CheckField|EnumerationField|RadioButtonField|CalculatedField|AttachmentField>} fields - all types of fields
-   */
-
-  /**
-   * Update document payload
-   * @typedef {Object} DocumentUpdateParams
-   * @property {string} id - id of specific document
-   * @property {DocumentFields} fields - set of fields
-   * @property {string} token - your auth token
-   */
-
-  /**
-   * Update document response data
-   * @typedef {Object} DocumentUpdateResponse
-   * @property {string} id - an id of document
-   * @property {Object[]} signatures - signature and initial elements
-   * @property {Object[]} texts - text and enumeration elements
-   * @property {Object[]} checks - checkbox elements
-   * @property {Object[]} attachments - attachment elements
-   * @property {Object[]} radiobuttons - radiobutton elements
-   */
-
-  /**
-   * Updates an existing document.
-   * Adds fields (signature, text, initials, checkbox, radiobutton group, calculated) and elements (signature, text, check).
-   * Every call of this method will add only specified fields into document.
-   * Old fields will be removed
-   * @param {DocumentUpdateParams} data - update document request payload
-   * @param {function(err: ApiErrorResponse, res: DocumentUpdateResponse)} [callback] - error first node.js callback
-   */
-  static update ({
-    id,
-    fields,
-    token,
-  }, callback) {
-    const JSONData = JSON.stringify(fields);
-    const req = https
-      .request(buildRequestOptions({
-        method: 'PUT',
-        path: `/document/${id}`,
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-        headers: {
-          'Content-Type': 'application/json',
-          'Content-Length': Buffer.byteLength(JSONData),
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback));
-
-    req.write(JSONData);
-    req.end();
-  }
-
-  /**
-   * Download document optional settings
-   * @typedef {Object} DocumentDownloadOptions
-   * @property {boolean} [withAttachments=false] - if true document will be downloaded as zip package with its attachments
-   * @property {boolean} [withHistory=false] - if true document will be downloaded with history
-   */
-
-  /**
-   * Document download payload
-   * @typedef {Object} DocumentDownloadParams
-   * @property {string} id - id of specific document
-   * @property {string} token - your auth token
-   * @property {DocumentDownloadOptions} options - download document optional settings
-   */
-
-  /**
-   * Document binary data
-   * @typedef {Buffer} DocumentDownloadResponse
-   */
-
-  /**
-   * Downloads document with embedded fields and elements.
-   * By default document is downloaded without history. To download document with history set `withHistory` option to `true`.
-   * @param {DocumentDownloadParams} data - download document request payload
-   * @param {function(err: ApiErrorResponse, res: DocumentDownloadResponse)} [callback] - error first node.js callback
-   */
-  static download ({
-    id,
-    token,
-    options: {
-      withAttachments = false,
-      withHistory = false,
-    } = {},
-  }, callback) {
-    const queryParams = {};
-    const clientTimestamp = Math.floor(Date.now() / 1000);
-
-    queryParams.type = withAttachments ? 'zip' : 'collapsed';
-    withHistory && (queryParams.with_history = '1');
-
-    https
-      .request(buildRequestOptions({
-        method: 'GET',
-        path: `/document/${id}/download?client_timestamp=${clientTimestamp}&${stringifyQueryParams(queryParams)}`,
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback))
-      .end();
-  }
-
-  /**
-   * Document share payload
-   * @typedef {Object} DocumentShareParams
-   * @property {string} id - id of specific document
-   * @property {string} token - your auth token
-   */
-
-  /**
-   * Document share response data
-   * @typedef {Object} DocumentShareResponse
-   * @property {string} link - link to download specified document in PDF format
-   */
-
-  /**
-   * Requests a link to download document with embedded fields and elements
-   * Link can be used once and then will expire
-   * @param {DocumentShareParams} data - share document request payload
-   * @param {function(err: ApiErrorResponse, res: DocumentShareResponse)} [callback] - error first node.js callback
-   */
-  static share ({ id, token }, callback) {
-    https
-      .request(buildRequestOptions({
-        method: 'POST',
-        path: `/document/${id}/download/link`,
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback))
-      .end();
-  }
-
-  /**
-   * Document invite signer settings
-   * @typedef {Object} SignerSettings
-   * @property {string} email - signer's email
-   * @property {string} role - role name
-   * @property {string} [role_id] - role unique id (can be discovered in document details)
-   * @property {number} order - role signing order
-   * @property {string} reassign - allow reassign signer
-   * @property {string} decline_by_signature - signer can decline invite
-   * @property {number} reminder - remind via email in days
-   * @property {number} expiration_days - expiration of invite in days
-   * @property {string} [subject] - specify subject of email
-   * @property {string} [message] - specify body of email
-   */
-
-  /**
-   * Document invite settings
-   * @typedef {Object} DocumentInviteSettings
-   * @property {string} from - email of sender
-   * @property {SignerSettings[]|string} to - array of signers or email of single signer
-   * @property {string} [document_id] - an id of document
-   * @property {string[]} [cc] - array with emails of copy receivers
-   * @property {string} [subject] - specify subject of email
-   * @property {string} [message] - specify body of email
-   * @property {string} [on_complete] - on signing complete action
-   */
-
-  /**
-   * Document invite optional settings
-   * @typedef {Object} DocumentInviteOptions
-   * @property {string} [email] - ability to disable invitation by email. to disable email assign value 'disable'
-   */
-
-  /**
-   * Create document invite payload
-   * @typedef {Object} DocumentInviteParams
-   * @property {string} id - an id of document
-   * @property {DocumentInviteSettings} data - document invite settings
-   * @property {DocumentInviteOptions} [options] - document invite optional settings
-   * @property {string} token - your auth token
-   */
-
-  /**
-   * Create document field invite response data
-   * @typedef {Object} DocumentFieldInviteResponse
-   * @property {string} status - status of invitation, e.g. 'success'
-   */
-
-  /**
-   * Create document free form invite response data
-   * @typedef {Object} DocumentFreeformInviteResponse
-   * @property {string} result - free form invitation result, e.g. 'success'
-   * @property {string} id - unique id of invite
-   * @property {string} callback_url - url for front-end redirect or 'none'
-   */
-
-  /**
-   * Create document invite response data
-   * @typedef {DocumentFieldInviteResponse|DocumentFreeformInviteResponse} DocumentInviteResponse
-   */
-
-  /**
-   * Creates an invite to sign a document.
-   * You can create a simple free form invite(s) or a role-based invite(s).
-   * @param {DocumentInviteParams} data - create document invite payload
-   * @param {function(err: ApiErrorResponse, res: DocumentInviteResponse)} [callback] - error first node.js callback
-   */
-  static invite ({
-    id,
-    data,
-    options: { email } = {},
-    token,
-  }, callback) {
-    const inviteData = Object.assign({}, data, { document_id: id });
-
-    const JSONData = JSON.stringify(inviteData);
-    let path = `/document/${id}/invite`;
-
-    if (email === 'disable') {
-      path = `${path}?email=disable`;
-    }
-
-    const req = https
-      .request(buildRequestOptions({
-        method: 'POST',
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-        headers: {
-          'Content-Type': 'application/json',
-          'Content-Length': Buffer.byteLength(JSONData),
-        },
-        path,
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback));
-
-    req.write(JSONData);
-    req.end();
-  }
-
-  /**
-   * Cancel freeform invite payload
-   * @typedef {Object} CancelFreeformInviteParams
-   * @property {string} id - unique id of invite
-   * @property {string} token - your auth token
-   */
-
-  /**
-   * Cancel freeform invite response data
-   * @typedef {Object} CancelFreeformInviteResponse
-   * @property {string} id - unique id of invite
-   */
-
-  /**
-   * Cancels sent freeform invite
-   * @param {CancelFreeformInviteParams} data - cancel freeform invite payload
-   * @param {function(err: ApiErrorResponse, res: CancelFreeformInviteResponse)} [callback] - error first node.js callback
-   */
-  static cancelFreeFormInvite ({ id, token }, callback) {
-    https
-      .request(buildRequestOptions({
-        method: 'PUT',
-        path: `/invite/${id}/cancel`,
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback))
-      .end();
-  }
-
-  /**
-   * Cancel document field invite payload
-   * @typedef {Object} DocumentFieldInviteCancelParams
-   * @property {string} id - an id of document
-   * @property {string} token - your auth token
-   */
-
-  /**
-   * Cancel document field invite response data
-   * @typedef {Object} DocumentFieldInviteCancelResponse
-   * @property {string} status - status of field invite cancellation, e.g. 'success'
-   */
-
-  /**
-   * Cancels an invite to a document
-   * @param {DocumentFieldInviteCancelParams} data - cancel field invite payload
-   * @param {function(err: ApiErrorResponse, res: DocumentFieldInviteCancelResponse)} [callback] - error first node.js callback
-   */
-  static cancelFieldInvite ({ id, token }, callback) {
-    https
-      .request(buildRequestOptions({
-        method: 'PUT',
-        path: `/document/${id}/fieldinvitecancel`,
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback))
-      .end();
-  }
-
-  /**
-   * Cancels an invite to a document
-   * @deprecated use Document.cancelFieldInvite instead of this
-   * @param {DocumentFieldInviteCancelParams} data - cancel field invite payload
-   * @param {function(err: ApiErrorResponse, res: DocumentFieldInviteCancelResponse)} [callback] - error first node.js callback
-   */
-  static cancelInvite ({ id, token }, callback) {
-    Document.cancelFieldInvite({
-      id,
-      token,
-    }, callback);
-  }
-
-  /**
-   * Merge documents optional settings
-   * @typedef {Object} DocumentMergeOptions
-   * @property {boolean} [removeOriginalDocuments=false] - if true original documents will be removed
-   */
-
-  /**
-   * Merge documents payload
-   * @typedef {Object} DocumentMergeParams
-   * @property {string} token - your auth token
-   * @property {string} name - new name for merged document
-   * @property {string[]} document_ids - an array of document IDs
-   * @property {DocumentMergeOptions} options - merge documents optional settings
-   */
-
-  /**
-   * Merge documents response data
-   * @typedef {Object} DocumentMergeResponse
-   * @property {string} document_id - an ID of merged document
-   */
-
-  /**
-   * Merges existing documents into one.
-   * By default original documents are not removed after merging. To remove original documents set `removeOriginalDocuments` option to `true`.
-   * @param {DocumentMergeParams} data - merge documents payload
-   * @param {function(err: ApiErrorResponse, res: DocumentMergeResponse)} [originalCallback] - error first node.js callback
-   */
-  static merge ({
-    name,
-    document_ids,
-    options: { removeOriginalDocuments = false } = {},
-    token,
-  }, originalCallback) {
-    const JSONData = JSON.stringify({
-      upload_document: true,
-      document_ids,
-      name,
-    });
-
-    const callbackWithDocumentDeletion = (mergeErr, mergeRes) => {
-      if (mergeErr) {
-        originalCallback(mergeErr);
-        return;
-      } else {
-
-        const removeDocument = ({ id }) => new Promise((resolve, reject) => {
-          Document.remove({
-            id,
-            token,
-          }, (err, res) => {
-            if (err) {
-              reject(err);
-            } else {
-              resolve(res.status === 'success');
-            }
-          });
-        });
-
-        const documentsDeleted = document_ids
-          .map(id => removeDocument({ id }));
-
-        Promise.all(documentsDeleted)
-          .then(deletionStatuses => deletionStatuses.reduce((generalStatus, currentStatus) => (generalStatus && currentStatus), true))
-          .then(allDocumentsDeleted => {
-            if (allDocumentsDeleted) {
-              originalCallback(null, mergeRes);
-              return;
-            } else {
-              throw new Error('Some of the original documents were not removed');
-            }
-          })
-          .catch(removeErr => {
-            originalCallback(removeErr);
-            return;
-          });
-
-      }
-    };
-
-    const callback = removeOriginalDocuments
-      ? callbackWithDocumentDeletion
-      : originalCallback;
-
-    const req = https
-      .request(buildRequestOptions({
-        method: 'POST',
-        path: '/document/merge',
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-        headers: {
-          'Content-Type': 'application/json',
-          'Content-Length': Buffer.byteLength(JSONData),
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(originalCallback));
-
-    req.write(JSONData);
-    req.end();
-  }
-
-  /**
-   * Document history payload
-   * @typedef {Object} DocumentHistoryParams
-   * @property {string} id - id of specific document
-   * @property {string} token - your auth token
-   */
-
-  /**
-   * Document action log item
-   * @typedef {Object} DocumentEvent
-   * @property {string} client_app_name - name of a client application
-   * @property {?string} client_timestamp - client application timestamp
-   * @property {string} created - timestamp of action creation
-   * @property {string} email - email of an actor
-   * @property {string} event - name of event
-   * @property {string} ip_address - actor's IP address
-   * @property {?string} element_id - an ID of specific element
-   * @property {?string} field_id - an ID of specific field
-   * @property {?string} json_attributes - field attributes (e.g. font, style, size etc.)
-   * @property {string} [document_id] - an ID of specific document
-   * @property {string} [origin] - an origin of document
-   * @property {string} [unique_id] - an ID of event
-   * @property {string} [user_agent] - user agent
-   * @property {string} [user_id] - id of an actor
-   * @property {string} [version] - version of signed document (incremented after each signature addition)
-   */
-
-  /**
-   * Document history response data
-   * @typedef {DocumentEvent[]} DocumentHistoryResponse
-   */
-
-  /**
-   * Retrieves a document action log (history) data
-   * @param {DocumentHistoryParams} data -  payload
-   * @param {function(err: ApiErrorResponse, res: DocumentHistoryResponse)} [callback] - error first node.js callback
-   */
-  static history ({ id, token }, callback) {
-    https
-      .request(buildRequestOptions({
-        method: 'GET',
-        path: `/document/${id}/history`,
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback))
-      .end();
-  }
-
-  /**
-   * Document remove optional settings
-   * @typedef {Object} DocumentRemoveOptions
-   * @property {boolean} [cancelInvites=false] - ability to cancel all document invites during deletion
-   */
-
-  /**
-   * Remove document payload
-   * @typedef {Object} DocumentRemoveParams
-   * @property {string} id - id of specific document
-   * @property {string} token - your auth token
-   * @property {DocumentRemoveOptions} [options] - document remove optional settings
-   */
-
-  /**
-   * Remove document response data
-   * @typedef {Object} DocumentRemoveResponse
-   * @property {string} status - status of deletion, e.g. 'success'
-   */
-
-  /**
-   * Removes a specified document from folder
-   * @param {DocumentRemoveParams} data - remove document payload
-   * @param {function(err: ApiErrorResponse, res: DocumentRemoveResponse)} [originalCallback] - error first node.js callback
-   */
-  static remove ({
-    id: documentId,
-    token,
-    options: { cancelInvites = false } = {},
-  }, originalCallback) {
-    const callbackWithInviteCancellation = (removeErr, removeRes) => {
-      if (removeErr) {
-        originalCallback(removeErr);
-        return;
-      } else {
-        promisify(Document.view)({
-          id: documentId,
-          token,
-        })
-          .then(document => {
-            const { field_invites: fieldInvites, requests: freeformInvites } = document;
-            return {
-              fieldInvites,
-              freeformInvites,
-            };
-          })
-          .then(({ fieldInvites, freeformInvites }) => {
-            const fieldInvitesCancelled = new Promise(resolve => {
-              if (Array.isArray(fieldInvites) && fieldInvites.length) {
-                resolve(promisify(Document.cancelFieldInvite)({
-                  id: documentId,
-                  token,
-                }));
-              } else {
-                resolve({ status: 'success' });
-              }
-            })
-              .then(({ status }) => status === 'success');
-
-            const freeformInvitesCancelled = freeformInvites
-              .map(({ id: inviteId }) => {
-                return promisify(Document.cancelFreeFormInvite)({
-                  id: inviteId,
-                  token,
-                })
-                  .then(({ id }) => !!id);
-              });
-
-            Promise.all([
-              fieldInvitesCancelled,
-              ...freeformInvitesCancelled,
-            ])
-              .then(allInvitesCancelled => {
-                if (allInvitesCancelled) {
-                  originalCallback(null, removeRes);
-                  return;
-                } else {
-                  throw new Error('Some of invites have not been cancelled');
-                }
-              })
-              .catch(err => {
-                originalCallback(err.message);
-                return;
-              });
-          });
-      }
-    };
-
-    const callback = cancelInvites
-      ? callbackWithInviteCancellation
-      : originalCallback;
-
-    https
-      .request(buildRequestOptions({
-        method: 'DELETE',
-        path: `/document/${documentId}`,
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(originalCallback))
-      .end();
-  }
-
-  /**
-   * Get Document Signers optional settings
-   * @typedef {Object} DocumentSignersOptions
-   * @property {boolean} [allSignatures=true] - if true receive all document signers email
-   * @property {boolean} [freeFormInvites=false] - if `true` return free from invite signer emails
-   * @property {?string[]} [fieldInvitesStatus=null] - return signers according to specified field invite status(es)
-   * Accepts list of statuses or a single status.
-   * Acceptable statuses: all, pending, declined, fulfilled, created, skipped.
-   * @property {?string[]} [paymentRequestsStatus=null] - return signers according to specified to payment request status(es)
-   * Accepts list of statuses or a single status.
-   * Available statuses: all, pending, fulfilled, created, skipped.
-   */
-
-  /**
-   * Get Document Signers payload
-   * @typedef {Object} DocumentSignersParams
-   * @property {string} id - id of specific document
-   * @property {string} token - your auth token
-   * @property {DocumentSignersOptions} [options] - document signers optional settings,
-   */
-
-  /**
-   * Get Document Signers response data
-   * @typedef {Object} DocumentSignersResponse
-   * @property {string[]}  - emails of document signers
-   */
-
-  /**
-   * Retrieves all signers of specific document
-   * @experimental this class includes breaking change.
-   * @param {DocumentSignersParams} data - get document signers payload
-   * @param {function(err: ApiErrorResponse, res: DocumentSignersResponse)} [callback] - error first node.js callback
-   */
-  static signers ({
-    id,
-    token,
-    options = {},
-  }, callback) {
-    promisify(Document.view)({
-      id,
-      token,
-    })
-      .then(document => {
-        const {
-          requests,
-          field_invites,
-        } = document;
-
-        const {
-          freeFormInvites = false,
-          fieldInviteStatus = null,
-          paymentRequestStatus = null,
-        } = options;
-
-        const emails = [];
-
-        if (Object.keys(options).length === 0) {
-          const fieldInvitesEmails = getSignerEmails(field_invites, 'email') || [];
-          const freeFormInvitesEmails = getSignerEmails(requests, 'signer_email') || [];
-
-          emails.push(...fieldInvitesEmails);
-          emails.push(...freeFormInvitesEmails);
-        }
-
-        if (freeFormInvites) {
-          const freeFomInvites = getSignerEmails(requests, 'signer_email') || [];
-
-          emails.push(...freeFomInvites);
-        }
-
-        if (fieldInviteStatus) {
-          const fieldInvites = getSignerEmails(field_invites, 'email', fieldInviteStatus) || [];
-          const declined = getByDeclinedStatus(field_invites, fieldInviteStatus) || [];
-
-          if (fieldInvites.length > 0) {
-            emails.push(...fieldInvites);
-          } else {
-            emails.push(...fieldInvites);
-            emails.push(...declined);
-          }
-        }
-
-        if (paymentRequestStatus) {
-          const paymentRequests = getSignerEmails(field_invites, 'email', paymentRequestStatus) || [];
-
-          emails.push(...paymentRequests);
-        }
-
-        callback(null, [...new Set(emails)]);
-      })
-      .catch(err => callback(err));
-  }
-}
-
-module.exports = Document;
-
- -
- - - - - - - - - - - - diff --git a/docs/file/lib/documentGroup.js.html b/docs/file/lib/documentGroup.js.html deleted file mode 100644 index 5966f963..00000000 --- a/docs/file/lib/documentGroup.js.html +++ /dev/null @@ -1,437 +0,0 @@ - - - - - - lib/documentGroup.js | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -

lib/documentGroup.js

-
'use strict';
-
-const https = require('https');
-const {
-  responseHandler,
-  errorHandler,
-  buildRequestOptions,
-} = require('./common');
-const { view } = require('./document');
-const { duplicate } = require('./template');
-
-/**
- * @type {function}
- * @param {DocumentViewParams} data - view document with field extract payload
- * @return {Promise<DocumentViewResponse, ApiErrorResponse>}
- */
-const getDocumentDetails = ({ id, token }) => new Promise((resolve, reject) => {
-  view({
-    id,
-    token,
-  }, (err, res) => {
-    if (err) {
-      reject(err);
-    } else {
-      resolve(res);
-    }
-  });
-});
-
-/**
- * @type {function}
- * @param {DocumentViewResponse} document
- * @return {boolean} is there any siganture request in given document
- */
-const hasSignatureInvites = document => document.requests.length > 0;
-
-/**
- * @type {function}
- * @param {DocumentViewResponse} document
- * @return {boolean} is there any field invite in given document
- */
-const hasFieldInvites = document => document.field_invites.length > 0;
-
-/**
- * @type {function}
- * @param {DocumentViewResponse} document
- * @return {boolean} is there any signature in given document
- */
-const hasSignatures = document => document.signatures.length > 0;
-
-/**
- * @type {function}
- * @param {DocumentViewResponse} document
- * @return {boolean} is document a template or not
- */
-const isTemplate = document => document.template === true;
-
-/**
- * @type {function}
- * @param {DocumentViewResponse} document
- * @return {boolean} can document be used for Document Group creation or not
- */
-const canBeAddedToDocumentGroup = document => (
-  !hasSignatureInvites(document)
-  && !hasFieldInvites(document)
-  && !hasSignatures(document)
-);
-
-/**
- * @type {function}
- * @param {TemplateDuplicateParams} data - duplicate template payload
- * @return {Promise<string, ApiErrorResponse>} resolves with id of new document
- */
-const makeDocumentFromTemplate = ({ id, token }) => new Promise((resolve, reject) => {
-  duplicate({
-    id,
-    token,
-  }, (err, res) => {
-    if (err) {
-      reject(err);
-    } else {
-      resolve(res.id);
-    }
-  });
-});
-
-/**
- * Document Group methods
- */
-class DocumentGroup {
-
-  /**
-   * Create document group payload
-   * @typedef {Object} DocumentGroupCreateParams
-   * @property {string} token - your auth token
-   * @property {string[]} ids - array of document or template ids for document group creation
-   * @property {string} group_name - new name of document group
-   */
-
-  /**
-   * Create document group response data
-   * @typedef {Object} DocumentGroupCreateResponse
-   * @property {string} id - document group unique id
-   */
-
-  /**
-   * Creates document group with specified documents or templates.
-   * At least one document or template must contain fields. Documents should not be signed, contain epending invites or signature requests.
-   * @param {DocumentGroupCreateParams} data - create document group payload
-   * @param {function(err: ApiErrorResponse, res: DocumentGroupCreateResponse)} [callback] - error first node.js callback
-   */
-  static create ({
-    token,
-    ids,
-    group_name,
-  }, callback) {
-    const realDocumentIDs = ids
-      .map(id => {
-        return getDocumentDetails({
-          id,
-          token,
-        })
-          .then(document => {
-            if (isTemplate(document)) {
-              return makeDocumentFromTemplate({
-                id,
-                token,
-              });
-            } else if (canBeAddedToDocumentGroup(document)) {
-              return id;
-            } else {
-              throw new Error('Document in the group must have no pending invites, signature requests or completed signatures');
-            }
-          });
-      });
-
-    Promise.all(realDocumentIDs)
-      .then(document_ids => {
-        const JSONData = JSON.stringify({
-          document_ids,
-          group_name,
-        });
-
-        const req = https
-          .request(buildRequestOptions({
-            method: 'POST',
-            path: '/documentgroup',
-            authorization: {
-              type: 'Bearer',
-              token,
-            },
-            headers: {
-              'Content-Type': 'application/json',
-              'Content-Length': Buffer.byteLength(JSONData),
-            },
-          }), responseHandler(callback))
-          .on('error', errorHandler(callback));
-
-        req.write(JSONData);
-        req.end();
-      })
-      .catch(err => {
-        callback(err.message);
-        return;
-      });
-
-  }
-
-  /**
-   * Document Group invite email congfigurations
-   * @typedef {Object} DocumentGroupInviteEmail
-   * @property {string} email - signer's email
-   * @property {string} [subject] - subject of invitation email
-   * @property {string} [message] - content of invitation email
-   * @property {number} [expiration_days] - expiration of invite in days
-   * @property {number} [reminder] - number of days in which to remind about invitation via email
-   */
-
-  /**
-   * Document Group signer's authentication with password config
-   * @typedef {Object} DocumentGroupInviteAuthenticationPassword
-   * @property {string} type - set `password` to authenticate signer with password
-   * @property {string} value - authentication password value
-   */
-
-  /**
-   * Document Group signer's authentication with phone call config
-   * @typedef {Object} DocumentGroupInviteAuthenticationPhoneCall
-   * @property {string} type - set `phone` to authenticate signer with phone call
-   * @property {string} method - set `phone_call` to authenticate signer with phone call
-   * @property {string} phone - phone number
-   */
-
-  /**
-   * Document Group signer's authentication with phone SMS config
-   * @typedef {Object} DocumentGroupInviteAuthenticationPhoneSMS
-   * @property {string} type - set `phone` to authenticate signer with phone SMS
-   * @property {string} method - set `sms` to authenticate signer with phone SMS
-   * @property {string} phone - phone number
-   */
-
-  /**
-   * Document Group invite action congfigurations
-   * @typedef {Object} DocumentGroupInviteAction
-   * @property {string} email - signer's email
-   * @property {string} role_name - signer's role name
-   * @property {string} action - name of action with document in signing step
-   * @property {string} document_id - ID of document in specific signing step
-   * @property {string} [allow_reassign] - allow reassigning of signer
-   * @property {string} [decline_by_signature] - signer can decline invite
-   * @property {DocumentGroupInviteAuthenticationPassword|DocumentGroupInviteAuthenticationPhoneCall|DocumentGroupInviteAuthenticationPhoneSMS} [authentication] - signer's authentication configuration
-   */
-
-  /**
-   * Document Group invite step congfigurations
-   * @typedef {Object} DocumentGroupInviteStep
-   * @property {number} order - an order number of invitation step
-   * @property {DocumentGroupInviteEmail[]} [invite_emails] - Document Group invite emails settings
-   * @property {DocumentGroupInviteAction[]} invite_actions - Document Group invite actions settings
-   */
-
-  /**
-   * Document Group invite completion email configuration
-   * @typedef {Object} DocumentGroupInviteCompletionEmailConfig
-   * @property {string} email - email for completion (only from the signers and document owner emails)
-   * @property {number} disable_document_attachment - disable attachment of signed document group to completion email (values: 0|1)
-   */
-
-  /**
-   * Document Group invite settings
-   * @typedef {Object} DocumentGroupInviteSettings
-   * @property {DocumentGroupInviteStep[]} invite_steps - Document Group invite steps settings
-   * @property {DocumentGroupInviteCompletionEmailConfig[]} [completion_emails] - set of completion email configutrations
-   */
-
-  /**
-   * Create Document Group invite payload
-   * @typedef {Object} DocumentGroupInviteParams
-   * @property {string} id - ID of specific Document Group
-   * @property {DocumentGroupInviteSettings} data - Document Group invite settings data
-   * @property {string} token - your auth token
-   */
-
-  /**
-   * Create document invite response data
-   * @typedef {Object} DocumentGroupInviteResponse
-   * @property {string} id - ID of created Document Group invitation
-   * @property {?string} pending_invite_link - pending invite link
-   */
-
-  /**
-   * Creates an invite to sign a document group
-   * @param {DocumentGroupInviteParams} data - create Document Group invite payload
-   * @param {function(err: ApiErrorResponse, res: DocumentGroupInviteResponse)} [callback] - error first node.js callback
-   */
-  static invite ({
-    id,
-    data,
-    token,
-  }, callback) {
-    const {
-      invite_steps,
-      completion_emails,
-    } = data;
-
-    const JSONData = JSON.stringify({
-      invite_steps,
-      completion_emails,
-    });
-
-    const req = https
-      .request(buildRequestOptions({
-        method: 'POST',
-        path: `/documentgroup/${id}/groupinvite`,
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-        headers: {
-          'Content-Type': 'application/json',
-          'Content-Length': Buffer.byteLength(JSONData),
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback));
-
-    req.write(JSONData);
-    req.end();
-  }
-
-}
-
-module.exports = DocumentGroup;
-
- -
- - - - - - - - - - - - diff --git a/docs/file/lib/documentGroupTemplate.js.html b/docs/file/lib/documentGroupTemplate.js.html deleted file mode 100644 index 982c5498..00000000 --- a/docs/file/lib/documentGroupTemplate.js.html +++ /dev/null @@ -1,250 +0,0 @@ - - - - - - lib/documentGroupTemplate.js | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -

lib/documentGroupTemplate.js

-
'use strict';
-const https = require('https');
-const {
-  responseHandler, errorHandler, buildRequestOptions,
-} = require('./common');
-
-
-/**
- * Document Group Template methods
- */
-class DocumentGroupTemplate {
-
-  /**
-   * Document Group Template invite email congfigurations
-   * @typedef {Object} DocumentGroupTemplateInviteEmail
-   * @property {string} [email] - signer's email
-   * @property {string} [subject] - subject of invitation email
-   * @property {string} [message] - content of invitation email
-   * @property {number} [expiration_days] - expiration of invite in days
-   * @property {number} [reminder] - number of days in which to remind about invite via email
-   * @property {boolean} [hasSignActions] - does signer need to sign documents of document group
-   * @property {string} [allow_reassign] - allow reassigning of signer
-   */
-
-  /**
-   * Document Group Template invite action congfigurations
-   * @typedef {Object} DocumentGroupTemplateInviteAction
-   * @property {string} [email] - signer's email
-   * @property {string} [role_name] - signer's role name
-   * @property {string} [action] - name of action with document in signing step
-   * @property {string} [document_id] - ID of document in specific signing step
-   * @property {string} [document_name] - name of document in specific signing step
-   * @property {string} [role_viewName] - signer's role display name
-   * @property {string} [allow_reassign] - allow reassigning of signer
-   * @property {string} decline_by_signature - signer can decline invite
-   */
-
-  /**
-   * Document Group Template invite step congfigurations
-   * @typedef {Object} DocumentGroupTemplateInviteStep
-   * @property {number} [order] - an order number of invitation step
-   * @property {DocumentGroupTemplateInviteEmail[]} [invite_emails] - Document Group Template invite emails settings
-   * @property {DocumentGroupTemplateInviteAction[]} invite_actions - Document Group Template invite actions settings
-   */
-
-  /**
-   * Document Group Template invite congfigurations
-   * @typedef {Object} DocumentGroupTemplateRoutingDetails
-   * @property {DocumentGroupTemplateInviteStep[]} invite_steps - Document Group Template invite steps settings
-   * @property {number} [include_email_attachments] - TODO:
-   */
-
-  /**
-   * Create Document Group Template payload
-   * @typedef {Object} DocumentGroupTemplateCreateParams
-   * @property {string} token - your auth token
-   * @property {string[]} template_ids - array of template ids for Document Group Template creation
-   * @property {string} template_group_name - new name of document group
-   * @property {DocumentGroupTemplateRoutingDetails} routing_details - invite congfigurations
-   */
-
-  /**
-   * Create Document Group Template response data
-   * @typedef {Object} DocumentGroupTemplateCreateResponse
-   * @property {string} id - Document Group Template unique id
-   */
-
-  /**
-   * Creates Document Group Template with specified templates and settings
-   * @param {DocumentGroupTemplateCreateParams} data - create Document Group Template payload
-   * @param {function(err: ApiErrorResponse, res: DocumentGroupTemplateCreateResponse)} [callback] - error first node.js callback
-   */
-  static create ({
-    token,
-    template_ids,
-    template_group_name,
-    routing_details,
-  }, callback) {
-    const JSONData = JSON.stringify({
-      template_ids,
-      template_group_name,
-      routing_details,
-    });
-    const req = https
-      .request(buildRequestOptions({
-        method: 'POST',
-        path: '/documentgroup/template',
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-        headers: {
-          'Content-Type': 'application/json',
-          'Content-Length': Buffer.byteLength(JSONData),
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback));
-
-    req.write(JSONData);
-    req.end();
-  }
-}
-
-
-module.exports = DocumentGroupTemplate;
-
- -
- - - - - - - - - - - - diff --git a/docs/file/lib/embedded/index.js.html b/docs/file/lib/embedded/index.js.html deleted file mode 100644 index 8f6a8a74..00000000 --- a/docs/file/lib/embedded/index.js.html +++ /dev/null @@ -1,357 +0,0 @@ - - - - - - lib/embedded/index.js | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -

lib/embedded/index.js

-
'use strict';
-const https = require('https');
-const {
-  responseHandler,
-  errorHandler,
-  buildRequestOptions,
-} = require('../common');
-
-/**
- * Embedded methods
- */
-class Embedded {
-
-  /**
-   * Create embedded signing invite payload
-   * @typedef {Object} EmbeddedSigningInvite
-   * @property {string} email - Signer's email address
-   * @property {number} role_id - Signer's role ID
-   * @property {number} order - Order of signing. Cannot be 0
-   * @property {string} auth_method - Signer authentication method. One of (password, email, mfa, social, biometric, other, none)
-   */
-
-  /**
-   * Create embedded signing invites payload
-   * @typedef {Object} EmbeddedCreateInvitesPayload
-   * @property {string} token - Access token.
-   * @property {string} document_id - ID of the requested document.
-   * @property {EmbeddedSigningInvite[]} invites - Array of invites
-   */
-
-  /**
-   * Response EmbeddedInvite
-   * @typedef {Object} EmbeddedInvite
-   * @property {string} id - ID of the sending invite
-   * @property {string} email - Signer's email address
-   * @property {number} role_id - Signer's role ID
-   * @property {number} order - Order of signing
-   * @property {string} status -  Status of the invite
-   */
-
-  /**
-   * Create embedded signing invites response data
-   * @typedef {Object} EmbeddedCreateInvitesResponse
-   * @property {EmbeddedInvite[]} data - Array sending of invites
-   */
-
-  /**
-   * Create embedded signing invites for a document without sending emails.
-   * @param {EmbeddedCreateInvitesPayload} data - Create invites payload
-   * @param {function(err: ApiErrorResponse, res: EmbeddedCreateInvitesResponse)} [callback] - error first node.js callback
-   */
-  static createInvite ({
-    token, document_id, invites,
-  }, callback) {
-    const JSONData = JSON.stringify({ invites });
-    const req = https
-      .request(buildRequestOptions({
-        method: 'POST',
-        path: `/v2/documents/${document_id}/embedded-invites`,
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-        headers: {
-          'Content-Type': 'application/json',
-          'Content-Length': Buffer.byteLength(JSONData),
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback));
-
-    req.write(JSONData);
-    req.end();
-  }
-
-  /**
-   * Generate embedded invite link payload
-   * @typedef {Object} EmbeddedGenerateLinkPayload
-   * @property {string} token - Access token.
-   * @property {string} document_id - ID of the requested document.
-   * @property {string} field_invite_unique_id - ID of the signature invite you'd like to embed.
-   * @property {number} link_expiration - In how many minutes the link expires, ranges from 15 to 45 minutes or null.
-   * @property {string} auth_method - Signer authentication method.
-   */
-
-  /**
-   * Response EmbeddedGeneratedLink
-   * @typedef {Object} EmbeddedGeneratedLink
-   * @property {string} link - Returns a link for embedded invite
-   */
-
-  /**
-   * Generate a link for the embedded invite response data
-   * @typedef {Object} EmbeddedGenerateLinkResponse
-   * @property {EmbeddedGeneratedLink} data - Response data
-   */
-
-  /**
-   * Generate a link for the embedded invite.
-   * @param {EmbeddedGenerateLinkPayload} data - Generate embedded invite link payload
-   * @param {function(err: ApiErrorResponse, res: EmbeddedGenerateLinkResponse)} [callback] - error first node.js callback
-   */
-  static generateInviteLink ({
-    token, document_id, field_invite_unique_id, link_expiration, auth_method,
-  }, callback) {
-    const JSONData = JSON.stringify({
-      link_expiration,
-      auth_method,
-    });
-    const req = https
-      .request(buildRequestOptions({
-        method: 'POST',
-        path: `/v2/documents/${document_id}/embedded-invites/${field_invite_unique_id}/link`,
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-        headers: {
-          'Content-Type': 'application/json',
-          'Content-Length': Buffer.byteLength(JSONData),
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback));
-
-    req.write(JSONData);
-    req.end();
-  }
-
-  /**
-   * Delete embedded invites for a document payload
-   * @typedef {Object} EmbeddedCancelInvitePayload
-   * @property {string} token - Access token.
-   * @property {string} document_id - ID of the requested document.
-   */
-
-  /**
-   * Generate a link for the embedded invite response data
-   * @typedef {Object} EmbeddedCancelInviteResponse
-   * @property {string} status - Returns success when all parameters are correct
-   */
-
-  /**
-   * Delete embedded invites for a document.
-   * @param {EmbeddedCancelInvitePayload} data - Delete embedded invites for a document payload
-   * @param {function(err: ApiErrorResponse, res: EmbeddedCancelInviteResponse)} [callback] - error first node.js callback
-   */
-  static cancelInvites ({ token, document_id }, callback) {
-    const req = https
-      .request(buildRequestOptions({
-        method: 'DELETE',
-        path: `/v2/documents/${document_id}/embedded-invites`,
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-        headers: { 'Content-Type': 'application/json' },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback));
-    req.end();
-  }
-}
-
-module.exports = Embedded;
-
- -
- - - - - - - - - - - - diff --git a/docs/file/lib/enumerations.js.html b/docs/file/lib/enumerations.js.html deleted file mode 100644 index b92218a2..00000000 --- a/docs/file/lib/enumerations.js.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - - - lib/enumerations.js | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -

lib/enumerations.js

-
'use strict';
-const https = require('https');
-const {
-  responseHandler, errorHandler, buildRequestOptions,
-} = require('./common');
-
-
-/**
- * Enumeration Methods
- */
-
-/*
- * add an enumeration field(drop down) to a document.
- * NOTE: must be used with POST /enumeration_options () or the API will not recognize it
- */
-
-exports.addField = function(obj, callback) {
-  const req = https.request(buildRequestOptions({
-    method: 'POST',
-    path: '/enumeration_field',
-    authorization: {
-      type: 'Bearer',
-      token: obj.token,
-    },
-  }), responseHandler(callback));
-
-  req.on('error', errorHandler(callback));
-  req.write(JSON.stringify(obj));
-  req.end();
-};
-
-/*
- * add enumeration options to the field that was created using the REST call above.
- * NOTE: must be used with POST /enumeration_field () or the API will not recognize the field
- */
-
-exports.addOptions = function(obj, callback) {
-  const req = https.request(buildRequestOptions({
-    method: 'POST',
-    path: '/enumeration_options',
-    authorization: {
-      type: 'Bearer',
-      token: obj.token,
-    },
-  }), responseHandler(callback));
-
-  req.on('error', errorHandler(callback));
-  req.write(JSON.stringify(obj));
-  req.end();
-};
-
- -
- - - - - - - - - - - - diff --git a/docs/file/lib/enumerations/index.js.html b/docs/file/lib/enumerations/index.js.html deleted file mode 100644 index fdd428f5..00000000 --- a/docs/file/lib/enumerations/index.js.html +++ /dev/null @@ -1,226 +0,0 @@ - - - - - - lib/enumerations/index.js | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -

lib/enumerations/index.js

-
'use strict';
-const https = require('https');
-const {
-  responseHandler,
-  errorHandler,
-  buildRequestOptions,
-} = require('../common');
-
-
-/**
- * Enumeration methods
- */
-class Enumerations {
-
-  /*
-   * add an enumeration field (drop down) to a document.
-   * NOTE: must be used with POST /enumeration_options () or the API will not recognize it
-   */
-  static addField (data, callback) {
-    const { token } = data;
-    delete data.token;
-
-    const JSONData = JSON.stringify(data);
-    const req = https
-      .request(buildRequestOptions({
-        method: 'POST',
-        path: '/enumeration_field',
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-        headers: {
-          'Content-Type': 'application/json',
-          'Content-Length': Buffer.byteLength(JSONData),
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback));
-
-    req.write(JSONData);
-    req.end();
-  }
-
-  /*
-   * add enumeration options to the field that was created using the REST call above.
-   * NOTE: must be used with POST /enumeration_field () or the API will not recognize the field
-   */
-  static addOptions (data, callback) {
-    const { token } = data;
-    delete data.token;
-
-    const JSONData = JSON.stringify(data);
-    const req = https
-      .request(buildRequestOptions({
-        method: 'POST',
-        path: '/enumeration_options',
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-        headers: {
-          'Content-Type': 'application/json',
-          'Content-Length': Buffer.byteLength(JSONData),
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback));
-
-    req.write(JSONData);
-    req.end();
-  }
-
-}
-
-module.exports = Enumerations;
-
- -
- - - - - - - - - - - - diff --git a/docs/file/lib/folder.js.html b/docs/file/lib/folder.js.html deleted file mode 100644 index 2d6f8a59..00000000 --- a/docs/file/lib/folder.js.html +++ /dev/null @@ -1,144 +0,0 @@ - - - - - - lib/folder.js | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -

lib/folder.js

-
'use strict';
-const https = require('https');
-const {
-  responseHandler, errorHandler, buildRequestOptions,
-} = require('./common');
-
-
-/**
- * Folder Methods
- */
-
-// list folders
-exports.list = function(obj, callback) {
-  const req = https.request(buildRequestOptions({
-    method: 'GET',
-    path: '/folder',
-    authorization: {
-      type: 'Bearer',
-      token: obj.token,
-    },
-  }), responseHandler(callback));
-
-  req.on('error', errorHandler(callback));
-  req.end();
-};
-
-// get documents in a folder
-exports.documents = function(obj, callback) {
-  let path = `/folder/${obj.id}`;
-  let URLParams = '';
-
-  // build filters if supplied
-  if (obj.filter && obj.filter.length > 0) {
-    for (let i=0; i < obj.filter.length; i++) {
-      if (i === 0) {
-        URLParams += `?filters=${Object.keys(obj.filter[i])}&filter-values=${obj.filter[i][Object.keys(obj.filter[i])]}`;
-      } else {
-        URLParams += `&filters=${Object.keys(obj.filter[i])}&filter-values=${obj.filter[i][Object.keys(obj.filter[i])]}`;
-      }
-    }
-  }
-
-  // build sort if supplied
-  if (obj.sort) {
-    if (URLParams.length > 0) {
-      URLParams += '&';
-    } else {
-      URLParams += '?';
-    }
-    URLParams += `sortby=${Object.keys(obj.sort)}&order=${obj.sort[Object.keys(obj.sort)]}`;
-  }
-
-  path = path + URLParams;
-
-  const req = https.request(buildRequestOptions({
-    method: 'GET',
-    authorization: {
-      type: 'Bearer',
-      token: obj.token,
-    },
-    path,
-  }), responseHandler(callback));
-
-  req.on('error', errorHandler(callback));
-  req.end();
-};
-
- -
- - - - - - - - - - - - diff --git a/docs/file/lib/folder/index.js.html b/docs/file/lib/folder/index.js.html deleted file mode 100644 index 5c0c4497..00000000 --- a/docs/file/lib/folder/index.js.html +++ /dev/null @@ -1,231 +0,0 @@ - - - - - - lib/folder/index.js | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -

lib/folder/index.js

-
'use strict';
-const https = require('https');
-const {
-  responseHandler,
-  errorHandler,
-  buildRequestOptions,
-} = require('../common');
-
-
-/**
- * Folder methods
- */
-class Folder {
-
-  // list folders
-  static list ({ token }, callback) {
-    https
-      .request(buildRequestOptions({
-        method: 'GET',
-        path: '/folder',
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback))
-      .end();
-  }
-
-  // get documents in a folder
-  static documents ({
-    id,
-    filter,
-    sort,
-    token,
-  }, callback) {
-    let path = `/folder/${id}`;
-    let URLParams = '';
-
-    // build filters if supplied
-    if (Array.isArray(filter) && filter.length > 0) {
-      for (let i = 0; i < filter.length; i++) {
-        if (i === 0) {
-          URLParams += `?filters=${Object.keys(filter[i])}&filter-values=${filter[i][Object.keys(filter[i])]}`;
-        } else {
-          URLParams += `&filters=${Object.keys(filter[i])}&filter-values=${filter[i][Object.keys(filter[i])]}`;
-        }
-      }
-    }
-
-    // build sort if supplied
-    if (sort) {
-      if (URLParams.length > 0) {
-        URLParams += '&';
-      } else {
-        URLParams += '?';
-      }
-      URLParams += `sortby=${Object.keys(sort)}&order=${sort[Object.keys(sort)]}`;
-    }
-
-    path = path + URLParams;
-
-    https
-      .request(buildRequestOptions({
-        method: 'GET',
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-        path,
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback))
-      .end();
-  }
-
-}
-
-module.exports = Folder;
-
- -
- - - - - - - - - - - - diff --git a/docs/file/lib/index.js.html b/docs/file/lib/index.js.html deleted file mode 100644 index a00ede10..00000000 --- a/docs/file/lib/index.js.html +++ /dev/null @@ -1,275 +0,0 @@ - - - - - - lib/index.js | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -

lib/index.js

-
'use strict';
-const user = require('./user');
-const document = require('./document');
-const folder = require('./folder');
-const webhook = require('./webhook');
-const oauth2 = require('./oauth2');
-const enumerations = require('./enumerations');
-const template = require('./template');
-const link = require('./link');
-const documentGroup = require('./document-group');
-const documentGroupTemplate = require('./document-group-template');
-const embedded = require('./embedded');
-const { setCredentials } = require('./common');
-const { setEnvConfig } = require('../config');
-
-/**
- * Api client initialization params
- * @typedef {Object} InitParams
- * @property {string} credentials - base64 encoded basic API credentials
- * @property {boolean} [production=true] - production/eval API flag. If false uses eval
- */
-
-/**
- * Api client features
- * @typedef {Object} Features
- * @property {User} user - user related methods
- * @property {OAuth2} oauth2 - authentication related methods
- * @property {Document} document - document related methods
- * @property {Template} template - template related methods
- * @property {Link} link - link related methods
- * @property {DocumentGroup} documentGroup - document group related methods
- * @property {DocumentGroupTemplate} documentGroupTemplate - document group template related methods
- * @property {Embedded} embedded - embedded signing related methods
- */
-
-/**
- * SignNow API client initialization
- * @param {InitParams} params - API client initialization params
- * @return {Features}
- */
-module.exports = function init ({
-  production = true,
-  credentials,
-}) {
-  if (credentials) {
-    setCredentials(credentials);
-  }
-
-  if (production) {
-    setEnvConfig('prod');
-  } else {
-    setEnvConfig('eval');
-  }
-
-  return {
-    user,
-    oauth2,
-    document,
-    webhook,
-    folder,
-    enumerations,
-    template,
-    link,
-    documentGroup,
-    documentGroupTemplate,
-    embedded,
-  };
-};
-
-/**
- * Api error object
- * @typedef {Object} ApiError
- * @property {number} code - error code
- * @property {string} message - error message
- */
-
-/**
- * Api error response
- * @typedef {?(ApiError[]|ApiError|Error|string)} ApiErrorResponse
- */
-
- -
- - - - - - - - - - - - diff --git a/docs/file/lib/link.js.html b/docs/file/lib/link.js.html deleted file mode 100644 index 8674541e..00000000 --- a/docs/file/lib/link.js.html +++ /dev/null @@ -1,227 +0,0 @@ - - - - - - lib/link.js | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -

lib/link.js

-
'use strict';
-const https = require('https');
-const {
-  responseHandler, errorHandler, buildRequestOptions,
-} = require('./common');
-const { view } = require('./document');
-
-/**
- * @type {function}
- * @param {DocumentViewParams} data - view document with field extract payload
- * @param {function(err: ApiErrorResponse, res: DocumentViewResponse)} [callback] - error first node.js callback
- */
-const getDocumentDetails = view;
-
-/**
- * Link methods
- */
-class Link {
-
-  /**
-   * Create signing link payload
-   * @typedef {Object} SigningLinkCreateParams
-   * @property {string} document_id - id of specific document
-   * @property {string} token - your auth token
-   */
-
-  /**
-   * Create signing link response data
-   * @typedef {Object} SigningLinkCreateResponse
-   * @property {string} url - invite url with user authorization
-   * @property {string} url_no_signup - invite url without user authorization
-   */
-
-  /**
-   * Creates signing link for specified document
-   * @param {SigningLinkCreateParams} data - create signing link payload
-   * @param {function(err: ApiErrorResponse, res: SigningLinkCreateResponse)} [callback] - error first node.js callback
-   */
-  static create ({ document_id, token }, callback) {
-    getDocumentDetails({
-      id: document_id,
-      token,
-    }, (detailErr, detailRes) => {
-      if (detailErr) {
-        callback(detailErr);
-        return;
-      } else {
-        const { routing_details } = detailRes;
-        const documentHasAtLeastOneUnfixedRole = routing_details
-          .map(routing => routing.data)
-          .reduce((acc, i) => acc.concat(i), [])
-          .some(role => role.default_email === '');
-
-        if (documentHasAtLeastOneUnfixedRole) {
-          const JSONData = JSON.stringify({ document_id });
-          const req = https
-            .request(buildRequestOptions({
-              method: 'POST',
-              path: '/link',
-              authorization: {
-                type: 'Bearer',
-                token,
-              },
-              headers: {
-                'Content-Type': 'application/json',
-                'Content-Length': Buffer.byteLength(JSONData),
-              },
-            }), responseHandler(callback))
-            .on('error', errorHandler(callback));
-
-          req.write(JSONData);
-          req.end();
-        } else {
-          callback('A document must have at least one role that does not have a fixed e-mail to create an invite link.');
-          return;
-        }
-      }
-    });
-  }
-}
-
-module.exports = Link;
-
- -
- - - - - - - - - - - - diff --git a/docs/file/lib/link/index.js.html b/docs/file/lib/link/index.js.html deleted file mode 100644 index 3696575e..00000000 --- a/docs/file/lib/link/index.js.html +++ /dev/null @@ -1,279 +0,0 @@ - - - - - - lib/link/index.js | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -

lib/link/index.js

-
'use strict';
-const https = require('https');
-const {
-  responseHandler,
-  errorHandler,
-  buildRequestOptions,
-} = require('../common');
-const { view } = require('../document');
-
-/**
- * @type {function}
- * @param {DocumentViewParams} data - view document with field extract payload
- * @param {function(err: ApiErrorResponse, res: DocumentViewResponse)} [callback] - error first node.js callback
- */
-const getDocumentDetails = view;
-
-/**
- * Link methods
- */
-class Link {
-
-  /**
-   * Create signing link payload
-   * @typedef {Object} SigningLinkCreateParams
-   * @property {string} document_id - id of specific document
-   * @property {string} token - your auth token
-   */
-
-  /**
-   * Create signing link response data
-   * @typedef {Object} SigningLinkCreateResponse
-   * @property {string} url - invite url with user authorization
-   * @property {string} url_no_signup - invite url without user authorization
-   */
-
-  /**
-   * Creates signing link for specified document
-   * @param {SigningLinkCreateParams} data - create signing link payload
-   * @param {function(err: ApiErrorResponse, res: SigningLinkCreateResponse)} [callback] - error first node.js callback
-   */
-  static create ({ document_id, token }, callback) {
-    getDocumentDetails({
-      id: document_id,
-      token,
-    }, (detailErr, detailRes) => {
-      if (detailErr) {
-        callback(detailErr);
-        return;
-      } else {
-        const { routing_details } = detailRes;
-        const documentHasAtLeastOneUnfixedRole = routing_details
-          .map(routing => routing.data)
-          .reduce((acc, i) => acc.concat(i), [])
-          .some(role => role.default_email === '');
-
-        if (documentHasAtLeastOneUnfixedRole) {
-          const JSONData = JSON.stringify({ document_id });
-          const req = https
-            .request(buildRequestOptions({
-              method: 'POST',
-              path: '/link',
-              authorization: {
-                type: 'Bearer',
-                token,
-              },
-              headers: {
-                'Content-Type': 'application/json',
-                'Content-Length': Buffer.byteLength(JSONData),
-              },
-            }), responseHandler(callback))
-            .on('error', errorHandler(callback));
-
-          req.write(JSONData);
-          req.end();
-        } else {
-          callback('A document must have at least one role that does not have a fixed e-mail to create an invite link.');
-          return;
-        }
-      }
-    });
-  }
-}
-
-module.exports = Link;
-
- -
- - - - - - - - - - - - diff --git a/docs/file/lib/oauth2.js.html b/docs/file/lib/oauth2.js.html deleted file mode 100644 index 05517190..00000000 --- a/docs/file/lib/oauth2.js.html +++ /dev/null @@ -1,277 +0,0 @@ - - - - - - lib/oauth2.js | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -

lib/oauth2.js

-
'use strict';
-const https = require('https');
-const querystring = require('querystring');
-const {
-  responseHandler, errorHandler, buildRequestOptions,
-} = require('./common');
-
-/**
- * OAuth2 methods
- */
-class OAuth2 {
-
-  /**
-   * Request access token payload
-   * @typedef {Object} AccessTokenGetParams
-   * @property {string} username - email of a user
-   * @property {string} password - password of a user
-   */
-
-  /**
-   * Request access token response data
-   * @typedef {Object} AccessTokenGetResponse
-   * @property {number} res.expires_in - time in seconds for which the token was issued
-   * @property {string} res.token_type - type of access token (e.g. 'bearer')
-   * @property {string} res.access_token - access token
-   * @property {string} res.refresh_token - refresh token
-   * @property {string} res.scope - access scopes
-   */
-
-  /**
-   * Requests access token for a user
-   * @param {AccessTokenGetParams} data - access token reques payload
-   * @param {function(err: ApiErrorResponse, res: AccessTokenGetResponse)} [callback] - error first node.js callback
-   */
-  static requestToken (data, callback) {
-    const dataCopy = Object.assign({}, data, { grant_type: 'password' });
-    const dataStringified = querystring.stringify(dataCopy).replace('%40', '@');
-    const req = https
-      .request(buildRequestOptions({
-        method: 'POST',
-        path: '/oauth2/token',
-        authorization: { type: 'Basic' },
-        headers: {
-          'Content-Type': 'application/x-www-form-urlencoded',
-          'Content-Length': Buffer.byteLength(dataStringified),
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback));
-
-    req.write(dataStringified);
-    req.end();
-  }
-
-  /**
-   * Verify access token payload
-   * @typedef {Object} AccessTokenVerifyParams
-   * @property {string} token - your auth token
-   */
-
-  /**
-   * Verify access token response data
-   * @typedef {Object} AccessTokenVerifyResponse
-   * @property {number} res.expires_in - time in seconds for which the token was issued
-   * @property {string} res.token_type - type of access token (e.g. 'bearer')
-   * @property {string} res.access_token - access token
-   * @property {string} res.scope - access scopes
-   */
-
-  /**
-   * Verifies access token
-   * @param {AccessTokenVerifyParams} data - access token request payload
-   * @param {function(err: ApiErrorResponse, res: AccessTokenVerifyResponse)} [callback] - error first node.js callback
-   */
-  static verify ({ token }, callback) {
-    https
-      .request(buildRequestOptions({
-        method: 'GET',
-        path: '/oauth2/token',
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback))
-      .end();
-  }
-
-  /**
-   * Refresh access token payload
-   * @typedef {Object} AccessTokenRefreshParams
-   * @property {string} refresh_token - your refresh token
-   * @property {string} [scope] - access scopes of access token
-   * @property {number} [expiration_time] - time in seconds for which the token was issued
-   */
-
-  /**
-   * Refresh access token response data
-   * @typedef {Object} AccessTokenRefreshResponse
-   * @property {number} res.expires_in - time in seconds for which the token was issued
-   * @property {string} res.token_type - type of access token (e.g. 'bearer')
-   * @property {string} res.access_token - access token
-   * @property {string} res.refresh_token - refresh token
-   * @property {string} res.scope - access scopes
-   */
-
-  /**
-   * Refreshes access token for a user
-   * @param {AccessTokenRefreshParams} data - refresh token request payload
-   * @param {function(err: ApiErrorResponse, res: AccessTokenRefreshResponse)} [callback] - error first node.js callback
-   */
-  static refreshToken (data, callback) {
-    const dataCopy = Object.assign({}, data, { grant_type: 'refresh_token' });
-    const dataStringified = querystring.stringify(dataCopy).replace('%40', '@');
-    const req = https
-      .request(buildRequestOptions({
-        method: 'POST',
-        path: '/oauth2/token',
-        authorization: { type: 'Basic' },
-        headers: {
-          'Content-Type': 'application/x-www-form-urlencoded',
-          'Content-Length': Buffer.byteLength(dataStringified),
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback));
-
-    req.write(dataStringified);
-    req.end();
-  }
-
-}
-
-module.exports = OAuth2;
-
- -
- - - - - - - - - - - - diff --git a/docs/file/lib/oauth2/index.js.html b/docs/file/lib/oauth2/index.js.html deleted file mode 100644 index ffcb1a4f..00000000 --- a/docs/file/lib/oauth2/index.js.html +++ /dev/null @@ -1,329 +0,0 @@ - - - - - - lib/oauth2/index.js | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -

lib/oauth2/index.js

-
'use strict';
-const https = require('https');
-const querystring = require('querystring');
-const {
-  responseHandler,
-  errorHandler,
-  buildRequestOptions,
-} = require('../common');
-
-/**
- * OAuth2 methods
- */
-class OAuth2 {
-
-  /**
-   * Request access token payload
-   * @typedef {Object} AccessTokenGetParams
-   * @property {string} username - email of a user
-   * @property {string} password - password of a user
-   */
-
-  /**
-   * Request access token response data
-   * @typedef {Object} AccessTokenGetResponse
-   * @property {number} expires_in - time in seconds for which the token was issued
-   * @property {string} token_type - type of access token (e.g. 'bearer')
-   * @property {string} access_token - access token
-   * @property {string} refresh_token - refresh token
-   * @property {string} scope - access scopes
-   */
-
-  /**
-   * Requests access token for a user
-   * @param {AccessTokenGetParams} data - access token reques payload
-   * @param {function(err: ApiErrorResponse, res: AccessTokenGetResponse)} [callback] - error first node.js callback
-   */
-  static requestToken (data, callback) {
-    const dataCopy = Object.assign({}, data, { grant_type: 'password' });
-    const dataStringified = querystring.stringify(dataCopy).replace('%40', '@');
-    const req = https
-      .request(buildRequestOptions({
-        method: 'POST',
-        path: '/oauth2/token',
-        authorization: { type: 'Basic' },
-        headers: {
-          'Content-Type': 'application/x-www-form-urlencoded',
-          'Content-Length': Buffer.byteLength(dataStringified),
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback));
-
-    req.write(dataStringified);
-    req.end();
-  }
-
-  /**
-   * Verify access token payload
-   * @typedef {Object} AccessTokenVerifyParams
-   * @property {string} token - your auth token
-   */
-
-  /**
-   * Verify access token response data
-   * @typedef {Object} AccessTokenVerifyResponse
-   * @property {number} expires_in - time in seconds for which the token was issued
-   * @property {string} token_type - type of access token (e.g. 'bearer')
-   * @property {string} access_token - access token
-   * @property {string} scope - access scopes
-   */
-
-  /**
-   * Verifies access token
-   * @param {AccessTokenVerifyParams} data - access token request payload
-   * @param {function(err: ApiErrorResponse, res: AccessTokenVerifyResponse)} [callback] - error first node.js callback
-   */
-  static verify ({ token }, callback) {
-    https
-      .request(buildRequestOptions({
-        method: 'GET',
-        path: '/oauth2/token',
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback))
-      .end();
-  }
-
-  /**
-   * Refresh access token payload
-   * @typedef {Object} AccessTokenRefreshParams
-   * @property {string} refresh_token - your refresh token
-   * @property {string} [scope] - access scopes of access token
-   * @property {number} [expiration_time] - time in seconds for which the token was issued
-   */
-
-  /**
-   * Refresh access token response data
-   * @typedef {Object} AccessTokenRefreshResponse
-   * @property {number} expires_in - time in seconds for which the token was issued
-   * @property {string} token_type - type of access token (e.g. 'bearer')
-   * @property {string} access_token - access token
-   * @property {string} refresh_token - refresh token
-   * @property {string} scope - access scopes
-   */
-
-  /**
-   * Refreshes access token for a user
-   * @param {AccessTokenRefreshParams} data - refresh token request payload
-   * @param {function(err: ApiErrorResponse, res: AccessTokenRefreshResponse)} [callback] - error first node.js callback
-   */
-  static refreshToken (data, callback) {
-    const dataCopy = Object.assign({}, data, { grant_type: 'refresh_token' });
-    const dataStringified = querystring.stringify(dataCopy).replace('%40', '@');
-    const req = https
-      .request(buildRequestOptions({
-        method: 'POST',
-        path: '/oauth2/token',
-        authorization: { type: 'Basic' },
-        headers: {
-          'Content-Type': 'application/x-www-form-urlencoded',
-          'Content-Length': Buffer.byteLength(dataStringified),
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback));
-
-    req.write(dataStringified);
-    req.end();
-  }
-
-}
-
-module.exports = OAuth2;
-
- -
- - - - - - - - - - - - diff --git a/docs/file/lib/signnow.js.html b/docs/file/lib/signnow.js.html deleted file mode 100644 index 097eb2ac..00000000 --- a/docs/file/lib/signnow.js.html +++ /dev/null @@ -1,96 +0,0 @@ - - - - - - lib/signnow.js | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -

lib/signnow.js

-
'use strict';
-const user = require('./user');
-const document = require('./document');
-const folder = require('./folder');
-const webhook = require('./webhook');
-const oauth2 = require('./oauth2');
-const enumerations = require('./enumerations');
-const template = require('./template');
-const link = require('./link');
-const {
-  setProductionApiHost, setCredentials,
-} = require('./common');
-
-
-/**
- * SignNow API Wrapper
- */
-
-module.exports = function({
-  credentials, production,
-}) {
-
-  if (credentials) {
-    setCredentials(credentials);
-  }
-
-  // toggle production
-  if (production) {
-    setProductionApiHost();
-  }
-
-  return {
-    user,
-    oauth2,
-    document,
-    webhook,
-    folder,
-    enumerations,
-    template,
-    link,
-  };
-};
-
- -
- - - - - - - - - - - - diff --git a/docs/file/lib/template.js.html b/docs/file/lib/template.js.html deleted file mode 100644 index c86628ea..00000000 --- a/docs/file/lib/template.js.html +++ /dev/null @@ -1,413 +0,0 @@ - - - - - - lib/template.js | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -

lib/template.js

-
'use strict';
-const https = require('https');
-const {
-  responseHandler, errorHandler, buildRequestOptions,
-} = require('./common');
-const {
-  remove,
-  invite,
-  view,
-} = require('./document');
-
-/**
- * @type {function}
- * @param {DocumentRemoveParams} data - remove document payload
- * @param {function(err: ApiErrorResponse, res: DocumentRemoveResponse)} [callback] - error first node.js callback
- */
-const removeDocument = remove;
-
-/**
- * @type {function}
- * @param {DocumentInviteParams} data - create document invite payload
- * @param {function(err: ApiErrorResponse, res: DocumentInviteResponse)} [callback] - error first node.js callback
- */
-const sendDocumentInvite = invite;
-
-/**
- * @type {function}
- * @param {DocumentViewParams} data - view document with field extract payload
- * @param {function(err: ApiErrorResponse, res: DocumentViewResponse)} [callback] - error first node.js callback
- */
-const getDocumentDetails = view;
-
-/**
- * Template methods
- */
-class Template {
-
-  /**
-   * Document invite optional settings
-   * @typedef {Object} TemplateCreateOptions
-   * @property {boolean} [removeOriginalDocument=false] - if true original document will be removed
-   */
-
-  /**
-   * Create template payload
-   * @typedef {Object} TemplateCreateParams
-   * @property {string} document_id - an id of original document
-   * @property {string} document_name - a name of new template
-   * @property {TemplateCreateOptions} options - create template optional settings
-   * @property {string} token - your auth token
-   */
-
-  /**
-   * Create template response data
-   * @typedef {Object} TemplateCreateResponse
-   * @property {string} id - an id of created template
-   */
-
-  /**
-   * Creates a template by copying an existing unfulfilled and not requested for sign document.
-   * By default original document is not removed after template creation. To remove original document set `removeOriginalDocument` option to `true`.
-   * @param {TemplateCreateParams} data - create template payload
-   * @param {function(err: ApiErrorResponse, res: TemplateCreateResponse)} [originalCallback] - error first node.js callback
-   */
-  static create ({
-    document_id,
-    document_name,
-    options: { removeOriginalDocument = false } = {},
-    token,
-  }, originalCallback) {
-    const JSONData = JSON.stringify({
-      document_id,
-      document_name,
-    });
-
-    const callbackWithDocumentDeletion = (createErr, createRes) => {
-      if (createErr) {
-        originalCallback(createErr);
-        return;
-      } else {
-        removeDocument({
-          id: document_id,
-          token,
-        }, removeErr => {
-          if (removeErr) {
-            originalCallback(removeErr);
-            return;
-          } else {
-            originalCallback(null, createRes);
-            return;
-          }
-        });
-      }
-    };
-
-    const callback = removeOriginalDocument
-      ? callbackWithDocumentDeletion
-      : originalCallback;
-
-    const req = https
-      .request(buildRequestOptions({
-        method: 'POST',
-        path: '/template',
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-        headers: {
-          'Content-Type': 'application/json',
-          'Content-Length': Buffer.byteLength(JSONData),
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(originalCallback));
-
-    req.write(JSONData);
-    req.end();
-  }
-
-  /**
-   * Copy template payload
-   * @typedef {Object} TemplateDuplicateParams
-   * @property {string} id - an id of original template
-   * @property {string} name - a name of new document
-   * @property {string} token - your auth token
-   */
-
-  /**
-   * Copy template response data
-   * @typedef {Object} TemplateDuplicateResponse
-   * @property {string} id - an id of created document
-   * @property {string} name - a name of created document
-   */
-
-  /**
-   * Creates a new document by copying a template.
-   * If a name is not supplied then document name will be set to the original template's name by default.
-   * @param {TemplateDuplicateParams} data - duplicate template payload
-   * @param {function(err: ApiErrorResponse, res: TemplateDuplicateResponse)} [callback] - error first node.js callback
-   */
-  static duplicate ({
-    id: template_id,
-    name: document_name,
-    token,
-  }, callback) {
-    const JSONData = JSON.stringify({
-      template_id,
-      document_name,
-    });
-
-    const req = https
-      .request(buildRequestOptions({
-        method: 'POST',
-        path: `/template/${template_id}/copy`,
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-        headers: {
-          'Content-Type': 'application/json',
-          'Content-Length': Buffer.byteLength(JSONData),
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback));
-
-    req.write(JSONData);
-    req.end();
-  }
-
-  /**
-   * Create invite with template payload
-   * @typedef {DocumentInviteParams} TemplateInviteParams
-   */
-
-  /**
-   * Create invite with template response data
-   * @typedef {DocumentInviteResponse} TemplateInviteResponse
-   */
-
-  /**
-   * Creates an invite to sign a template.
-   * You can create a simple free form invite(s) or a role-based invite(s).
-   * The method copies a template into document and creates an invite using created document.
-   * @param {TemplateInviteParams} data - create template invite payload
-   * @param {function(err: ApiErrorResponse, res: TemplateInviteResponse)} [callback] - error first node.js callback
-   */
-  static invite ({
-    id,
-    data,
-    options,
-    token,
-  }, callback) {
-    Template.duplicate({
-      id,
-      token,
-    }, (copyErr, copyRes) => {
-      if (copyErr) {
-        callback(copyErr);
-        return;
-      } else if (Array.isArray(data.to)) {
-        const { id: documentId } = copyRes;
-
-        getDocumentDetails({
-          id: documentId,
-          token,
-        }, (detailErr, detailRes) => {
-          if (detailErr) {
-            callback(detailErr);
-            return;
-          } else {
-            const inviteData = Object.assign({}, data, { document_id: documentId });
-            const { roles } = detailRes;
-
-            for (const signer of inviteData.to) {
-              try {
-                signer.role_id = roles.find(role => role.name === signer.role).unique_id;
-              } catch (err) {
-                callback(err);
-                return;
-              }
-            }
-
-            sendDocumentInvite({
-              id: documentId,
-              data: inviteData,
-              options,
-              token,
-            }, callback);
-          }
-        });
-      } else {
-        const { id: documentId } = copyRes;
-        const inviteData = Object.assign({}, data, { document_id: documentId });
-
-        sendDocumentInvite({
-          id: documentId,
-          data: inviteData,
-          options,
-          token,
-        }, callback);
-      }
-    });
-  }
-
-  /**
-   * Remove template payload
-   * @typedef {DocumentRemoveParams} TemplateRemoveParams
-   */
-
-  /**
-   * Remove template response data
-   * @typedef {DocumentRemoveResponse} TemplateRemoveResponse
-   */
-
-  /**
-   * Removes a specified template from folder
-   * @param {TemplateRemoveParams} data - remove template payload
-   * @param {function(err: ApiErrorResponse, res: TemplateRemoveResponse)} [callback] - error first node.js callback
-   */
-  static remove ({ id, token }, callback) {
-    removeDocument({
-      id,
-      token,
-    }, callback);
-  }
-
-}
-
-module.exports = Template;
-
- -
- - - - - - - - - - - - diff --git a/docs/file/lib/template/index.js.html b/docs/file/lib/template/index.js.html deleted file mode 100644 index 2ca41d28..00000000 --- a/docs/file/lib/template/index.js.html +++ /dev/null @@ -1,796 +0,0 @@ - - - - - - lib/template/index.js | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -

lib/template/index.js

-
'use strict';
-const https = require('https');
-const { readFileSync } = require('fs');
-const { basename } = require('path');
-const {
-  responseHandler,
-  errorHandler,
-  buildRequestOptions,
-  isCSVFile,
-  getFormDataBoundary,
-} = require('../common');
-const {
-  remove,
-  invite,
-  view,
-} = require('../document');
-const { promisify } = require('../../utils');
-
-/**
- * @type {function}
- * @param {DocumentRemoveParams} data - remove document payload
- * @param {function(err: ApiErrorResponse, res: DocumentRemoveResponse)} [callback] - error first node.js callback
- */
-const removeDocument = remove;
-
-/**
- * @type {function}
- * @param {DocumentInviteParams} data - create document invite payload
- * @param {function(err: ApiErrorResponse, res: DocumentInviteResponse)} [callback] - error first node.js callback
- */
-const sendDocumentInvite = invite;
-
-/**
- * @type {function}
- * @param {DocumentViewParams} data - view document with field extract payload
- * @param {function(err: ApiErrorResponse, res: DocumentViewResponse)} [callback] - error first node.js callback
- */
-const getDocumentDetails = view;
-
-/**
- * Update Signing Role payload
- * @typedef {Object} TemplateUpdateSigningRoleParams
- * @property {string} id - an ID of Actor (role)
- * @property {string} token - your auth token
- * @property {number} signing_order - signing order number
- */
-
-/**
- * Update Signing Role response data
- * @typedef {Object} TemplateUpdateSigningRoleResponse
- * @property {string} id - unique ID of Actor
- * @property {string} document_id - unique ID of Template
- * @property {number} signing_order - signing order number
- */
-
-/**
- * Updates Signing Role with order of actor
- * @param {TemplateUpdateSigningRoleParams} data - update signing role payload
- * @param {function(err: ApiErrorResponse, res: TemplateUpdateSigningRoleResponse)} [callback] - error first node.js callback
- */
-const updateSigningRole = ({
-  id,
-  token,
-  signing_order,
-}, callback) => {
-  const JSONData = JSON.stringify({ signing_order });
-  const req = https
-    .request(buildRequestOptions({
-      method: 'PUT',
-      path: `/role/${id}`,
-      authorization: {
-        type: 'Bearer',
-        token,
-      },
-      headers: {
-        'Content-Type': 'application/json',
-        'Content-Length': Buffer.byteLength(JSONData),
-      },
-    }), responseHandler(callback))
-    .on('error', errorHandler(callback));
-
-  req.write(JSONData);
-  req.end();
-};
-
-/**
- * Template methods
- */
-class Template {
-
-  /**
-   * Document invite optional settings
-   * @typedef {Object} TemplateCreateOptions
-   * @property {boolean} [removeOriginalDocument=false] - if true original document will be removed
-   */
-
-  /**
-   * Create template payload
-   * @typedef {Object} TemplateCreateParams
-   * @property {string} document_id - an id of original document
-   * @property {string} document_name - a name of new template
-   * @property {TemplateCreateOptions} options - create template optional settings
-   * @property {string} token - your auth token
-   */
-
-  /**
-   * Create template response data
-   * @typedef {Object} TemplateCreateResponse
-   * @property {string} id - an id of created template
-   */
-
-  /**
-   * Creates a template by copying an existing unfulfilled and not requested for sign document.
-   * By default original document is not removed after template creation. To remove original document set `removeOriginalDocument` option to `true`.
-   * @param {TemplateCreateParams} data - create template payload
-   * @param {function(err: ApiErrorResponse, res: TemplateCreateResponse)} [originalCallback] - error first node.js callback
-   */
-  static create ({
-    document_id,
-    document_name,
-    options: { removeOriginalDocument = false } = {},
-    token,
-  }, originalCallback) {
-    const JSONData = JSON.stringify({
-      document_id,
-      document_name,
-    });
-
-    const callbackWithDocumentDeletion = (createErr, createRes) => {
-      if (createErr) {
-        originalCallback(createErr);
-        return;
-      } else {
-        removeDocument({
-          id: document_id,
-          token,
-        }, removeErr => {
-          if (removeErr) {
-            originalCallback(removeErr);
-            return;
-          } else {
-            originalCallback(null, createRes);
-            return;
-          }
-        });
-      }
-    };
-
-    const callback = removeOriginalDocument
-      ? callbackWithDocumentDeletion
-      : originalCallback;
-
-    const req = https
-      .request(buildRequestOptions({
-        method: 'POST',
-        path: '/template',
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-        headers: {
-          'Content-Type': 'application/json',
-          'Content-Length': Buffer.byteLength(JSONData),
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(originalCallback));
-
-    req.write(JSONData);
-    req.end();
-  }
-
-  /**
-   * Copy template payload
-   * @typedef {Object} TemplateDuplicateParams
-   * @property {string} id - an id of original template
-   * @property {string} name - a name of new document
-   * @property {string} token - your auth token
-   */
-
-  /**
-   * Copy template response data
-   * @typedef {Object} TemplateDuplicateResponse
-   * @property {string} id - an id of created document
-   * @property {string} name - a name of created document
-   */
-
-  /**
-   * Creates a new document by copying a template.
-   * If a name is not supplied then document name will be set to the original template's name by default.
-   * @param {TemplateDuplicateParams} data - duplicate template payload
-   * @param {function(err: ApiErrorResponse, res: TemplateDuplicateResponse)} [callback] - error first node.js callback
-   */
-  static duplicate ({
-    id: template_id,
-    name: document_name,
-    token,
-  }, callback) {
-    const JSONData = JSON.stringify({
-      template_id,
-      document_name,
-    });
-
-    const req = https
-      .request(buildRequestOptions({
-        method: 'POST',
-        path: `/template/${template_id}/copy`,
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-        headers: {
-          'Content-Type': 'application/json',
-          'Content-Length': Buffer.byteLength(JSONData),
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback));
-
-    req.write(JSONData);
-    req.end();
-  }
-
-  /**
-   * Create invite with template payload
-   * @typedef {DocumentInviteParams} TemplateInviteParams
-   */
-
-  /**
-   * Create invite with template response data
-   * @typedef {DocumentInviteResponse} TemplateInviteResponse
-   */
-
-  /**
-   * Creates an invite to sign a template.
-   * You can create a simple free form invite(s) or a role-based invite(s).
-   * The method copies a template into document and creates an invite using created document.
-   * @param {TemplateInviteParams} data - create template invite payload
-   * @param {function(err: ApiErrorResponse, res: TemplateInviteResponse)} [callback] - error first node.js callback
-   */
-  static invite ({
-    id,
-    data,
-    options,
-    token,
-  }, callback) {
-    Template.duplicate({
-      id,
-      token,
-    }, (copyErr, copyRes) => {
-      if (copyErr) {
-        callback(copyErr);
-        return;
-      } else if (Array.isArray(data.to)) {
-        const { id: documentId } = copyRes;
-
-        getDocumentDetails({
-          id: documentId,
-          token,
-        }, (detailErr, detailRes) => {
-          if (detailErr) {
-            callback(detailErr);
-            return;
-          } else {
-            const inviteData = Object.assign({}, data, { document_id: documentId });
-            const { roles } = detailRes;
-
-            for (const signer of inviteData.to) {
-              try {
-                signer.role_id = roles.find(role => role.name === signer.role).unique_id;
-              } catch (err) {
-                callback(err);
-                return;
-              }
-            }
-
-            sendDocumentInvite({
-              id: documentId,
-              data: inviteData,
-              options,
-              token,
-            }, callback);
-          }
-        });
-      } else {
-        const { id: documentId } = copyRes;
-        const inviteData = Object.assign({}, data, { document_id: documentId });
-
-        sendDocumentInvite({
-          id: documentId,
-          data: inviteData,
-          options,
-          token,
-        }, callback);
-      }
-    });
-  }
-
-  /**
-   * Remove template payload
-   * @typedef {DocumentRemoveParams} TemplateRemoveParams
-   */
-
-  /**
-   * Remove template response data
-   * @typedef {DocumentRemoveResponse} TemplateRemoveResponse
-   */
-
-  /**
-   * Removes a specified template from folder
-   * @param {TemplateRemoveParams} data - remove template payload
-   * @param {function(err: ApiErrorResponse, res: TemplateRemoveResponse)} [callback] - error first node.js callback
-   */
-  static remove ({
-    id,
-    token,
-    options,
-  }, callback) {
-    removeDocument({
-      id,
-      token,
-      options,
-    }, callback);
-  }
-
-  /**
-   * Get Template Routing Details payload
-   * @typedef {Object} TemplateGetRoutingDetailsParams
-   * @property {string} id - an ID of specific Template
-   * @property {string} token - your auth token
-   */
-
-  /**
-   * Template Routing Details item data
-   * @typedef {Object} TemplateRoutingDetailsItem
-   * @property {string} default_email - default email for routing detail
-   * @property {boolean} inviter_role - always `false`
-   * @property {string} name - signer role (actor) name
-   * @property {string} role_id - signer role (actor) unique ID
-   * @property {number} signing_order - order number of signing step
-   */
-
-  /**
-   * Template Routing Details CC step info
-   * @typedef {Object} TemplateRoutingDetailsCCStep
-   * @property {string} email - email of cc step
-   * @property {number} step - step order number
-   * @property {string} name - name of cc step
-   */
-
-  /**
-   * Get Template Routing Details response data
-   * @typedef {Object} TemplateGetRoutingDetailsResponse
-   * @property {TemplateRoutingDetailsItem[]} routing_details - array with routing details
-   * @property {string[]} cc - CC emails
-   * @property {TemplateRoutingDetailsCCStep[]} cc_step - array of CC`s steps
-   * @property {string} invite_link_instructions - invite link instructions
-   */
-
-  /**
-   * Retrieves Routing Details of specified Template
-   * @param {TemplateGetRoutingDetailsParams} data - get Routing Details payload
-   * @param {function(err: ApiErrorResponse, res: TemplateGetRoutingDetailsResponse)} [callback] - error first node.js callback
-   */
-  static getRoutingDetails ({
-    id,
-    token,
-  }, callback) {
-    https
-      .request(buildRequestOptions({
-        method: 'GET',
-        path: `/document/${id}/template/routing/detail`,
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback))
-      .end();
-  }
-
-  /**
-   * Template Update Routing Details item data
-   * @typedef {Object} TemplateUpdateRoutingDetailsItem
-   * @property {string} default_email - default email for routing detail
-   * @property {boolean} inviter_role - always `false`
-   * @property {string} name - signer role (actor) name
-   * @property {string} role_id - signer role (actor) unique ID
-   * @property {number} signing_order - order number of signing step
-   * @property {boolean} decline_by_signature - decline by signature flag
-   */
-
-  /**
-   * Update Template Routing Details settings
-   * @typedef {Object} TemplateUpdateRoutingDetailsSettings
-   * @property {TemplateUpdateRoutingDetailsItem[]} template_data - array with routing details
-   * @property {string[]} cc - CC emails
-   * @property {TemplateRoutingDetailsCCStep[]} cc_step - array of CC steps
-   * @property {string} [invite_link_instructions] - invite signing instructions
-   */
-
-  /**
-   * Update Template Routing Details payload
-   * @typedef {Object} TemplateUpdateRoutingDetailsParams
-   * @property {string} id - an ID of specific Template
-   * @property {string} token - your auth token
-   * @property {TemplateUpdateRoutingDetailsSettings} data - update Template Routing Details settings
-   */
-
-  /**
-   * Update Template Routing Details response data
-   * @typedef {Object} TemplateUpdateRoutingDetailsResponse
-   * @property {string} id - unique ID of template routing details
-   * @property {string} document_id - unique ID of Template
-   * @property {TemplateUpdateRoutingDetailsItem[]} data - array with routing details
-   * @property {string[]} cc - CC emails
-   * @property {TemplateRoutingDetailsCCStep[]} cc_step - array of CC steps
-   * @property {string} invite_link_instructions - invite signing instructions
-   */
-
-  /**
-   * Updates Routing Details of specified template
-   * @param {TemplateUpdateRoutingDetailsParams} data - update Template Routing Details payload
-   * @param {function(err: ApiErrorResponse, res: TemplateUpdateRoutingDetailsResponse)} [callback] - error first node.js callback
-   */
-  static updateRoutingDetails ({
-    id,
-    token,
-    data,
-  }, callback) {
-    const {
-      template_data,
-      cc,
-      cc_step,
-      invite_link_instructions,
-    } = data;
-    const JSONData = JSON.stringify({
-      template_data,
-      cc,
-      cc_step,
-      invite_link_instructions,
-    });
-
-    const updateCallback = (err, res) => {
-      if (err) {
-        callback(err);
-        return;
-      } else {
-        const { data: routingDetails } = res;
-        const rolesUpdated = routingDetails
-          .map(route => {
-            const { role_id, signing_order } = route;
-            return promisify(updateSigningRole)({
-              id: role_id,
-              signing_order,
-              token,
-            });
-          });
-
-        Promise.all(rolesUpdated)
-          .then(roleUpdatesRes => {
-            return roleUpdatesRes.reduce((generalStatus, roleUpdateRes) => (generalStatus && !!roleUpdateRes.id), true);
-          })
-          .then(allRolesUpdated => {
-            if (allRolesUpdated) {
-              callback(null, res);
-              return;
-            } else {
-              throw new Error('Some roles (actors) where not updated');
-            }
-          })
-          .catch(roleUpdatesErr => {
-            callback(roleUpdatesErr);
-            return;
-          });
-      }
-    };
-
-    const req = https
-      .request(buildRequestOptions({
-        method: 'PUT',
-        path: `/document/${id}/template/routing/detail`,
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-        headers: {
-          'Content-Type': 'application/json',
-          'Content-Length': Buffer.byteLength(JSONData),
-        },
-      }), responseHandler(updateCallback))
-      .on('error', errorHandler(callback));
-
-    req.write(JSONData);
-    req.end();
-  }
-
-  /**
-   * Template Bulk Invite settings
-   * @typedef {Object} TemplateBulkInviteSettings
-   * @property {string} file - path to .csv file with roles and their emails. Max file size should be <= 1 Megabyte
-   * @property {string} folder_id - an ID of folder where signed documents will be saved
-   * @property {number} [client_timestamp] - client timestamp in seconds
-   * @property {string} [document_name] - setup prefix for each document name
-   * @property {string} [subject] - custom email subject
-   * @property {string} [email_message] - custom email message
-   */
-
-  /**
-   * Send Template Bulk Invite payload
-   * @typedef {Object} TemplateBulkInviteParams
-   * @property {string} id - an ID of specific Template
-   * @property {string} token - your auth token
-   * @property {TemplateBulkInviteSettings} data - Template Bulk Invite settings
-   */
-
-  /**
-   * Send Template Bulk Invite response data
-   * @typedef {Object} TemplateBulkInviteResponse
-   * @property {string} status - status of sending bulk invites (e.g. "job queued")
-   */
-
-  /**
-   * Sends invites to sign a specified template to multiple signers at once
-   * @experimental internal implementation of this method might be changed
-   * @param {TemplateBulkInviteParams} data - Bulk Invite payload
-   * @param {function(err: ApiErrorResponse, res: TemplateBulkInviteResponse)} [callback] - error first node.js callback
-   */
-  static bulkInvite ({
-    id,
-    token,
-    data,
-  }, callback) {
-    const {
-      file,
-      folder_id,
-      client_timestamp,
-      document_name,
-      subject,
-      email_message,
-    } = data;
-
-    if (!isCSVFile(file)) {
-      callback('The file that was tried to be uploaded is not a CSV file');
-      return;
-    }
-
-    const metaData = {
-      folder_id,
-      client_timestamp,
-      document_name,
-      subject,
-      email_message,
-    };
-
-    const formDataBoundary = getFormDataBoundary();
-    const formDataBeginning = Object
-      .entries(metaData)
-      .reduce((formData, [
-        name,
-        value,
-      ]) => `${formData}--${formDataBoundary}\r\nContent-Disposition: form-data; name="${name}";\r\n\r\n${value}\r\n`, '')
-      .concat(`--${formDataBoundary}\r\n`)
-      .concat(`Content-Disposition: form-data; name="file"; filename="${basename(file)}"\r\n`)
-      .concat('Content-Type: text/csv\r\n\r\n');
-    const formDataEnding = `\r\n--${formDataBoundary}\r\n`;
-    let fileContent;
-
-    try {
-      fileContent = readFileSync(file);
-    } catch (err) {
-      callback(err);
-      return;
-    }
-
-    const payload = Buffer.concat([
-      Buffer.from(formDataBeginning, 'utf8'),
-      Buffer.from(fileContent, 'binary'),
-      Buffer.from(formDataEnding, 'utf8'),
-    ]);
-
-    const req = https
-      .request(buildRequestOptions({
-        method: 'POST',
-        path: `/template/${id}/bulkinvite`,
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-        headers: {
-          'Content-Type': `multipart/form-data; boundary=${formDataBoundary}`,
-          'Content-Length': Buffer.byteLength(payload),
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback));
-
-    req.write(payload);
-    req.end();
-  }
-
-}
-
-module.exports = Template;
-
- -
- - - - - - - - - - - - diff --git a/docs/file/lib/user.js.html b/docs/file/lib/user.js.html deleted file mode 100644 index b9fd86bc..00000000 --- a/docs/file/lib/user.js.html +++ /dev/null @@ -1,247 +0,0 @@ - - - - - - lib/user.js | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -

lib/user.js

-
'use strict';
-const https = require('https');
-const {
-  responseHandler, errorHandler, buildRequestOptions, getUserAgent,
-} = require('./common');
-
-/**
- * User methods
- */
-class User {
-
-  /**
-   * Create user payload
-   * @typedef {Object} UserCreateParams
-   * @property {string} email - email of new user
-   * @property {string} password - password for new user
-   * @property {string} [first_name] - first name of new user
-   * @property {string} [last_name] - last name of new user
-   */
-
-  /**
-   * Create user response data
-   * @typedef {Object} UserCreateResponse
-   * @property {string} id - user unique id
-   * @property {number} verified - user is verified or not
-   * @property {string} email - user email
-   */
-
-  /**
-   * Create new user account
-   * @param {UserCreateParams} data - create user payload
-   * @param {function(err: ApiErrorResponse, res: UserCreateResponse)} [callback] - error first node.js callback
-   */
-  static create (data, callback) {
-    const JSONData = JSON.stringify(data);
-    const req = https
-      .request(buildRequestOptions({
-        method: 'POST',
-        path: '/user',
-        authorization: { type: 'Basic' },
-        headers: {
-          'Content-Type': 'application/json',
-          'Content-Length': Buffer.byteLength(JSONData),
-          'User-Agent': getUserAgent(),
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback));
-
-    req.write(JSONData);
-    req.end();
-  }
-
-  /**
-   * Get user payload
-   * @typedef {Object} UserGetParams
-   * @property {string} token - your auth token
-   */
-
-  /**
-   * Retrieve user response data
-   * @typedef {Object} UserGetResponse
-   * @property {string} id - user unique id
-   * @property {string} first_name - first name
-   * @property {string} last_name - last name
-   * @property {number} active - user is active or not
-   * @property {string} created - user creation timestamp
-   * @property {string[]} emails - user emails
-   * @property {string} primary_email - user primary email
-   * @property {Object[]} subscriptions - user subscriptions data
-   * @property {?Object} cloud_export_account_details - cloud export account details data
-   * @property {boolean} is_logged_in - user is logged in or not
-   * @property {{start_date: string, end_date: string, start_timestamp: number, end_timestamp: number}} billing_period - user billing period data
-   * @property {Object[]} companies - companies where user is a member of
-   * @property {?string} registration_source - resource where user was registered
-   * @property {Object[]} teams - teams where user is a member of
-   * @property {Object} settings - user specific settings
-   * @property {Object[]} organization_settings - organization specific settings where user is a member of
-   * @property {Object[]} merchant_accounts - merchant accounts data
-   */
-
-  /**
-   * Retrieve user account details
-   * @param {UserGetParams} data - get user payload
-   * @param {function(err: ApiErrorResponse, res: UserGetResponse)} [callback] - error first node.js callback
-   */
-  static retrieve ({ token }, callback) {
-    https
-      .request(buildRequestOptions({
-        method: 'GET',
-        path: '/user',
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback))
-      .end();
-  }
-
-}
-
-module.exports = User;
-
- -
- - - - - - - - - - - - diff --git a/docs/file/lib/user/index.js.html b/docs/file/lib/user/index.js.html deleted file mode 100644 index 0a7f0620..00000000 --- a/docs/file/lib/user/index.js.html +++ /dev/null @@ -1,380 +0,0 @@ - - - - - - lib/user/index.js | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -

lib/user/index.js

-
'use strict';
-const https = require('https');
-const {
-  responseHandler,
-  errorHandler,
-  buildRequestOptions,
-} = require('../common');
-
-/**
- * User methods
- */
-class User {
-
-  /**
-   * Create User optional settings
-   * @typedef {Object} CreateUserOptions
-   * @property {boolean} [verifyEmail=false] - if `true` verification email will be sent
-   * @property {number} [startTrial=false] - if `true` start 30 days free trial
-   */
-
-  /**
-   * Create user payload
-   * @typedef {Object} UserCreateParams
-   * @property {string} email - email of new user
-   * @property {string} password - password for new user
-   * @property {string} [first_name] - first name of new user
-   * @property {string} [last_name] - last name of new user
-   * @property {string} [number] - phone number of new user
-   * @property {CreateUserOptions} [options] - create user optional settings
-   */
-
-  /**
-   * Create user response data
-   * @typedef {Object} UserCreateResponse
-   * @property {string} id - user unique id
-   * @property {number} verified - user is verified or not
-   * @property {string} email - user email
-   */
-
-  /**
-   * Create new user account
-   * @param {UserCreateParams} data - create user payload
-   * @param {function(err: ApiErrorResponse, res: UserCreateResponse)} [originalCallback] - error first node.js callback
-   */
-  static create ({
-    email,
-    password,
-    first_name,
-    last_name,
-    number,
-    options: {
-      verifyEmail = false,
-      startTrial = false,
-    } = {},
-  }, originalCallback) {
-    const JSONData = JSON.stringify({
-      skip_30day_trial: startTrial ? 0 : 1,
-      email,
-      password,
-      first_name,
-      last_name,
-      number,
-    });
-
-    const callbackWithEmailVerification = (createErr, createRes) => {
-      if (createErr) {
-        originalCallback(createErr);
-        return;
-      } else {
-        User.verifyEmail({ email }, verifyErr => {
-          if (verifyErr) {
-            originalCallback(verifyErr);
-            return;
-          } else {
-            originalCallback(null, createRes);
-            return;
-          }
-        });
-      }
-    };
-
-    const callback = verifyEmail
-      ? callbackWithEmailVerification
-      : originalCallback;
-
-    const req = https
-      .request(buildRequestOptions({
-        method: 'POST',
-        path: '/user',
-        authorization: { type: 'Basic' },
-        headers: {
-          'Content-Type': 'application/json',
-          'Content-Length': Buffer.byteLength(JSONData),
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback));
-
-    req.write(JSONData);
-    req.end();
-  }
-
-  /**
-   * Get user payload
-   * @typedef {Object} UserGetParams
-   * @property {string} token - your auth token
-   */
-
-  /**
-   * Retrieve user response data
-   * @typedef {Object} UserGetResponse
-   * @property {string} id - user unique id
-   * @property {string} first_name - first name
-   * @property {string} last_name - last name
-   * @property {number} active - user is active or not
-   * @property {string} created - user creation timestamp
-   * @property {string[]} emails - user emails
-   * @property {string} primary_email - user primary email
-   * @property {Object[]} subscriptions - user subscriptions data
-   * @property {?Object} cloud_export_account_details - cloud export account details data
-   * @property {boolean} is_logged_in - user is logged in or not
-   * @property {{start_date: string, end_date: string, start_timestamp: number, end_timestamp: number}} billing_period - user billing period data
-   * @property {Object[]} companies - companies where user is a member of
-   * @property {?string} registration_source - resource where user was registered
-   * @property {Object[]} teams - teams where user is a member of
-   * @property {Object} settings - user specific settings
-   * @property {Object[]} organization_settings - organization specific settings where user is a member of
-   * @property {Object[]} merchant_accounts - merchant accounts data
-   */
-
-  /**
-   * Retrieve user account details
-   * @param {UserGetParams} data - get user payload
-   * @param {function(err: ApiErrorResponse, res: UserGetResponse)} [callback] - error first node.js callback
-   */
-  static retrieve ({ token }, callback) {
-    https
-      .request(buildRequestOptions({
-        method: 'GET',
-        path: '/user',
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback))
-      .end();
-  }
-
-  /**
-   * Verify user email payload
-   * @typedef {Object} UserVerifyEmailParams
-   * @property {string} email - email to verify
-   */
-
-  /**
-   * Verify user email response data
-   * @typedef {Object} UserVerifyEmailResponse
-   * @property {string} status - status of verification email sending, e.g. 'success'
-   */
-
-  /**
-   * Sends email with verification link to user
-   * @param {UserVerifyEmailParams} data - user verify email payload
-   * @param {function(err: ApiErrorResponse, res: UserVerifyEmailResponse)} [callback] - error first node.js callback
-   */
-  static verifyEmail ({ email }, callback) {
-    const JSONData = JSON.stringify({ email });
-    const req = https
-      .request(buildRequestOptions({
-        method: 'POST',
-        path: '/user/verifyemail',
-        authorization: { type: 'Basic' },
-        headers: {
-          'Content-Type': 'application/json',
-          'Content-Length': Buffer.byteLength(JSONData),
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback));
-
-    req.write(JSONData);
-    req.end();
-  }
-}
-
-module.exports = User;
-
- -
- - - - - - - - - - - - diff --git a/docs/file/lib/webhook.js.html b/docs/file/lib/webhook.js.html deleted file mode 100644 index 44d85d39..00000000 --- a/docs/file/lib/webhook.js.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - - - lib/webhook.js | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -

lib/webhook.js

-
'use strict';
-const https = require('https');
-const {
-  responseHandler, errorHandler, buildRequestOptions,
-} = require('./common');
-
-
-/**
- * Webook Methods
- */
-
-// list webhooks
-exports.list = function(obj, callback) {
-  const req = https.request(buildRequestOptions({
-    method: 'GET',
-    path: '/event_subscription',
-    authorization: {
-      type: 'Bearer',
-      token: obj.token,
-    },
-  }), responseHandler(callback));
-
-  req.on('error', errorHandler(callback));
-  req.end();
-};
-
-// create webhook
-exports.create = function(obj, callback) {
-  const JSONData = JSON.stringify({
-    event: obj.event,
-    callback_url: obj.callback_url,
-  });
-
-  const req = https.request(buildRequestOptions({
-    method: 'POST',
-    path: '/event_subscription',
-    authorization: {
-      type: 'Bearer',
-      token: obj.token,
-    },
-    headers: {
-      'Content-Type': 'application/json',
-      'Content-Length': Buffer.byteLength(JSONData),
-    },
-  }), responseHandler(callback));
-
-  req.on('error', errorHandler(callback));
-  req.write(JSONData);
-  req.end();
-};
-
- -
- - - - - - - - - - - - diff --git a/docs/file/lib/webhook/index.js.html b/docs/file/lib/webhook/index.js.html deleted file mode 100644 index 79fc33d3..00000000 --- a/docs/file/lib/webhook/index.js.html +++ /dev/null @@ -1,216 +0,0 @@ - - - - - - lib/webhook/index.js | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -

lib/webhook/index.js

-
'use strict';
-const https = require('https');
-const {
-  responseHandler,
-  errorHandler,
-  buildRequestOptions,
-} = require('../common');
-
-
-/**
- * Webook methods
- */
-class Webhook {
-
-  // list webhooks
-  static list ({ token }, callback) {
-    https
-      .request(buildRequestOptions({
-        method: 'GET',
-        path: '/event_subscription',
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback))
-      .end();
-  }
-
-  // create webhook
-  static create ({
-    event,
-    callback_url,
-    token,
-  }, callback) {
-    const JSONData = JSON.stringify({
-      event,
-      callback_url,
-    });
-
-    const req = https
-      .request(buildRequestOptions({
-        method: 'POST',
-        path: '/event_subscription',
-        authorization: {
-          type: 'Bearer',
-          token,
-        },
-        headers: {
-          'Content-Type': 'application/json',
-          'Content-Length': Buffer.byteLength(JSONData),
-        },
-      }), responseHandler(callback))
-      .on('error', errorHandler(callback));
-
-    req.write(JSONData);
-    req.end();
-  }
-
-}
-
-module.exports = Webhook;
-
- -
- - - - - - - - - - - - diff --git a/docs/function/index.html b/docs/function/index.html deleted file mode 100644 index 293eaddb..00000000 --- a/docs/function/index.html +++ /dev/null @@ -1,305 +0,0 @@ - - - - - - Function | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -

Function

-
- - - - - - - - - -
Static Public Summary
- public - - - - - -
-

- - - - init(params: InitParams): Features -

-
-
- - -

SignNow API client initialization

-
-
-
- - -
-
-

Static Public

- -
-

- public - - - - - - init(params: InitParams): Features - - - - source - -

- -
import init from '@signnow/api-client'
- - -

SignNow API client initialization

-
- - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
paramsInitParams

API client initialization params

-
-
-
- -
-

Return:

- - - - - - - -
Features
-
-
-
- - - - - - - - - - - - - - - -
-
-
- - - - - - - - - - - - diff --git a/docs/identifiers.html b/docs/identifiers.html deleted file mode 100644 index 85cd3c9d..00000000 --- a/docs/identifiers.html +++ /dev/null @@ -1,4406 +0,0 @@ - - - - - - Reference | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -

References

- -
-
- -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
summary
- public - - - - - -
-

- F - - - init(params: InitParams): Features -

-
-
- - -

SignNow API client initialization

-
-
-
- - -
- public - - - - - -
-

- T - - - ApiError: Object -

-
-
- - -

Api error object

-
-
-
- - -
- public - - - - - -
-

- T - - - ApiErrorResponse: ApiError[] | ApiError | Error | string -

-
-
- - -

Api error response

-
-
-
- - -
- public - - - - - -
-

- T - - - Features: Object -

-
-
- - -

Api client features

-
-
-
- - -
- public - - - - - -
-

- T - - - InitParams: Object -

-
-
- - -

Api client initialization params

-
-
-
- - -
-
-
-
-

document

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
summary
- public - - - - - -
-

- C - - - Document -

-
-
- - -

Document methods

-
-
-
- - -
- public - - - - - -
-

- T - - - AttachmentField: Object -

-
-
- - - -
-
- - -
- public - - - - - -
-

- T - - - CalculatedField: Object -

-
-
- - - -
-
- - -
- public - - - - - - -
- - -

Cancel freeform invite payload

-
-
-
- - -
- public - - - - - - -
- - -

Cancel freeform invite response data

-
-
-
- - -
- public - - - - - -
-

- T - - - CheckField: Object -

-
-
- - - -
-
- - -
- public - - - - - -
-

- T - - - DocumentCreateParams: Object -

-
-
- - -

Create document payload

-
-
-
- - -
- public - - - - - -
-

- T - - - DocumentCreateResponse: Object -

-
-
- - -

Create document response data

-
-
-
- - -
- public - - - - - -
-

- T - - - DocumentDownloadOptions: Object -

-
-
- - -

Download document optional settings

-
-
-
- - -
- public - - - - - -
-

- T - - - DocumentDownloadParams: Object -

-
-
- - -

Document download payload

-
-
-
- - -
- public - - - - - -
-

- T - - - DocumentDownloadResponse: Buffer -

-
-
- - -

Document binary data

-
-
-
- - -
- public - - - - - -
-

- T - - - DocumentEvent: Object -

-
-
- - -

Document action log item

-
-
-
- - -
- public - - - - - - -
- - -

Upload document with field extract payload

-
-
-
- - -
- public - - - - - - -
- - -

Upload document with field extract response data

-
-
-
- - -
- public - - - - - - -
- - -

Cancel document field invite payload

-
-
-
- - -
- public - - - - - - -
- - -

Cancel document field invite response data

-
-
-
- - -
- public - - - - - - -
- - -

Create document field invite response data

-
-
-
- - -
- public - - - - - -
-

- T - - - DocumentFields: Object -

-
-
- - - -
-
- - -
- public - - - - - - -
- - -

Create document free form invite response data

-
-
-
- - -
- public - - - - - -
-

- T - - - DocumentHistoryParams: Object -

-
-
- - -

Document history payload

-
-
-
- - -
- public - - - - - - -
- - -

Document history response data

-
-
-
- - -
- public - - - - - -
-

- T - - - DocumentInviteOptions: Object -

-
-
- - -

Document invite optional settings

-
-
-
- - -
- public - - - - - -
-

- T - - - DocumentInviteParams: Object -

-
-
- - -

Create document invite payload

-
-
-
- - -
- public - - - - - - -
- - -

Create document invite response data

-
-
-
- - -
- public - - - - - -
-

- T - - - DocumentInviteSettings: Object -

-
-
- - -

Document invite settings

-
-
-
- - -
- public - - - - - -
-

- T - - - DocumentListItem: Object -

-
-
- - -

Document list response item

-
-
-
- - -
- public - - - - - -
-

- T - - - DocumentListParams: Object -

-
-
- - -

Payload to receive user's document list

-
-
-
- - -
- public - - - - - - -
- - -

User's Document list response

-
-
-
- - -
- public - - - - - -
-

- T - - - DocumentMergeOptions: Object -

-
-
- - -

Merge documents optional settings

-
-
-
- - -
- public - - - - - -
-

- T - - - DocumentMergeParams: Object -

-
-
- - -

Merge documents payload

-
-
-
- - -
- public - - - - - -
-

- T - - - DocumentMergeResponse: Object -

-
-
- - -

Merge documents response data

-
-
-
- - -
- public - - - - - -
-

- T - - - DocumentRemoveOptions: Object -

-
-
- - -

Document remove optional settings

-
-
-
- - -
- public - - - - - -
-

- T - - - DocumentRemoveParams: Object -

-
-
- - -

Remove document payload

-
-
-
- - -
- public - - - - - -
-

- T - - - DocumentRemoveResponse: Object -

-
-
- - -

Remove document response data

-
-
-
- - -
- public - - - - - -
-

- T - - - DocumentShareParams: Object -

-
-
- - -

Document share payload

-
-
-
- - -
- public - - - - - -
-

- T - - - DocumentShareResponse: Object -

-
-
- - -

Document share response data

-
-
-
- - -
- public - - - - - -
-

- T - - - DocumentSignersOptions: Object -

-
-
- - -

Get Document Signers optional settings

-
-
-
- - -
- public - - - - - -
-

- T - - - DocumentSignersParams: Object -

-
-
- - -

Get Document Signers payload

-
-
-
- - -
- public - - - - - -
-

- T - - - DocumentSignersResponse: Object -

-
-
- - -

Get Document Signers response data

-
-
-
- - -
- public - - - - - -
-

- T - - - DocumentThumbnails: Object -

-
-
- - -

Document thumbnail urls with different sizes (small, medium, large)

-
-
-
- - -
- public - - - - - -
-

- T - - - DocumentUpdateParams: Object -

-
-
- - -

Update document payload

-
-
-
- - -
- public - - - - - -
-

- T - - - DocumentUpdateResponse: Object -

-
-
- - -

Update document response data

-
-
-
- - -
- public - - - - - -
-

- T - - - DocumentViewParams: Object -

-
-
- - -

Document view payload

-
-
-
- - -
- public - - - - - -
-

- T - - - DocumentViewResponse: Object -

-
-
- - -

Document view response of specific document

-
-
-
- - -
- public - - - - - -
-

- T - - - EnumerationField: Object -

-
-
- - - -
-
- - -
- public - - - - - -
-

- T - - - FormulaTree: Object -

-
-
- - - -
-
- - -
- public - - - - - -
-

- T - - - FormulaTreeBranch: Object -

-
-
- - - -
-
- - -
- public - - - - - - -
- - - -
-
- - -
- public - - - - - -
-

- T - - - InitialsField: Object -

-
-
- - - -
-
- - -
- public - - - - - -
-

- T - - - RadioButton: Object -

-
-
- - - -
-
- - -
- public - - - - - -
-

- T - - - RadioButtonField: Object -

-
-
- - - -
-
- - -
- public - - - - - -
-

- T - - - SignatureField: Object -

-
-
- - - -
-
- - -
- public - - - - - -
-

- T - - - SignerSettings: Object -

-
-
- - -

Document invite signer settings

-
-
-
- - -
- public - - - - - -
-

- T - - - TextField: Object -

-
-
- - - -
-
- - -
-
-
-
-

document-group

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
summary
- public - - - - - -
-

- C - - - DocumentGroup -

-
-
- - -

Document Group methods

-
-
-
- - -
- public - - - - - - -
- - -

Cancel Document Group Invite payload

-
-
-
- - -
- public - - - - - - -
- - -

Cancel Document Group Invite response data

-
-
-
- - -
- public - - - - - - -
- - -

Create document group payload

-
-
-
- - -
- public - - - - - - -
- - -

Create document group response data

-
-
-
- - -
- public - - - - - - -
- - -

Document Group download payload

-
-
-
- - -
- public - - - - - -
-

- T - - - DocumentGroupDownloadResponse: Buffer -

-
-
- - -

Document Group binary data

-
-
-
- - -
- public - - - - - - -
- - -

Document Group invite action configurations

-
-
-
- - -
- public - - - - - - -
- - -

Document Group signer's authentication with password config

-
-
-
- - -
- public - - - - - - -
- - -

Document Group signer's authentication with phone call config

-
-
-
- - -
- public - - - - - - -
- - -

Document Group signer's authentication with phone SMS config

-
-
-
- - -
- public - - - - - - -
- - -

Document Group invite completion email configuration

-
-
-
- - -
- public - - - - - -
-

- T - - - DocumentGroupInviteEmail: Object -

-
-
- - -

Document Group invite email configurations

-
-
-
- - -
- public - - - - - - -
- - -

Create Document Group invite payload

-
-
-
- - -
- public - - - - - - -
- - -

Create Document Group invite response data

-
-
-
- - -
- public - - - - - - -
- - -

Document Group invite settings

-
-
-
- - -
- public - - - - - -
-

- T - - - DocumentGroupInviteStep: Object -

-
-
- - -

Document Group invite step configurations

-
-
-
- - -
- public - - - - - -
-

- T - - - DocumentGroupItem: Object -

-
-
- - -

Details of single Document in group

-
-
-
- - -
- public - - - - - -
-

- T - - - DocumentGroupViewParams: Object -

-
-
- - -

Document Group view payload

-
-
-
- - -
- public - - - - - - -
- - -

Document Group view response data

-
-
-
- - -
-
-
-
-

document-group-template

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
summary
- public - - - - - -
-

- C - - - DocumentGroupTemplate -

-
-
- - -

Document Group Template methods

-
-
-
- - -
- public - - - - - - -
- - -

Create Document Group Template payload

-
-
-
- - -
- public - - - - - - -
- - -

Create Document Group Template response data

-
-
-
- - -
- public - - - - - - -
- - -

Document Group Template invite action congfigurations

-
-
-
- - -
- public - - - - - - -
- - -

Document Group Template invite email congfigurations

-
-
-
- - -
- public - - - - - - -
- - -

Create Document Group Template invite payload

-
-
-
- - -
- public - - - - - - -
- - -

Create Document Group Template invite response data

-
-
-
- - -
- public - - - - - - -
- - -

Document Group Template invite step congfigurations

-
-
-
- - -
- public - - - - - - -
- - -

Details of single template in group

-
-
-
- - -
- public - - - - - - -
- - -

Document Group Template invite congfigurations

-
-
-
- - -
- public - - - - - - -
- - -

Document Group Template view payload

-
-
-
- - -
- public - - - - - - -
- - -

Document Group Template view response

-
-
-
- - -
-
-
-
-

embedded

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
summary
- public - - - - - -
-

- C - - - Embedded -

-
-
- - -

Embedded methods

-
-
-
- - -
- public - - - - - - -
- - -

Delete embedded invites for a document payload

-
-
-
- - -
- public - - - - - - -
- - -

Generate a link for the embedded invite response data

-
-
-
- - -
- public - - - - - - -
- - -

Create embedded signing invites payload

-
-
-
- - -
- public - - - - - - -
- - -

Create embedded signing invites response data

-
-
-
- - -
- public - - - - - - -
- - -

Generate embedded invite link payload

-
-
-
- - -
- public - - - - - - -
- - -

Generate a link for the embedded invite response data

-
-
-
- - -
- public - - - - - -
-

- T - - - EmbeddedGeneratedLink: Object -

-
-
- - -

Response EmbeddedGeneratedLink

-
-
-
- - -
- public - - - - - -
-

- T - - - EmbeddedInvite: Object -

-
-
- - -

Response EmbeddedInvite

-
-
-
- - -
- public - - - - - -
-

- T - - - EmbeddedSigningInvite: Object -

-
-
- - -

Create embedded signing invite payload

-
-
-
- - -
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
summary
- public - - - - - -
-

- C - - - Link -

-
-
- - -

Link methods

-
-
-
- - -
- public - - - - - -
-

- T - - - SigningLinkCreateParams: Object -

-
-
- - -

Create signing link payload

-
-
-
- - -
- public - - - - - - -
- - -

Create signing link response data

-
-
-
- - -
-
-
-
-

oauth2

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
summary
- public - - - - - -
-

- C - - - OAuth2 -

-
-
- - -

OAuth2 methods

-
-
-
- - -
- public - - - - - -
-

- T - - - AccessTokenGetParams: Object -

-
-
- - -

Request access token payload

-
-
-
- - -
- public - - - - - -
-

- T - - - AccessTokenGetResponse: Object -

-
-
- - -

Request access token response data

-
-
-
- - -
- public - - - - - -
-

- T - - - AccessTokenRefreshParams: Object -

-
-
- - -

Refresh access token payload

-
-
-
- - -
- public - - - - - - -
- - -

Refresh access token response data

-
-
-
- - -
- public - - - - - -
-

- T - - - AccessTokenVerifyParams: Object -

-
-
- - -

Verify access token payload

-
-
-
- - -
- public - - - - - - -
- - -

Verify access token response data

-
-
-
- - -
-
-
-
-

template

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
summary
- public - - - - - -
-

- C - - - Template -

-
-
- - -

Template methods

-
-
-
- - -
- public - - - - - -
-

- T - - - TemplateBulkInviteParams: Object -

-
-
- - -

Send Template Bulk Invite payload

-
-
-
- - -
- public - - - - - - -
- - -

Send Template Bulk Invite response data

-
-
-
- - -
- public - - - - - - -
- - -

Template Bulk Invite settings

-
-
-
- - -
- public - - - - - -
-

- T - - - TemplateCreateOptions: Object -

-
-
- - -

Document invite optional settings

-
-
-
- - -
- public - - - - - -
-

- T - - - TemplateCreateParams: Object -

-
-
- - -

Create template payload

-
-
-
- - -
- public - - - - - -
-

- T - - - TemplateCreateResponse: Object -

-
-
- - -

Create template response data

-
-
-
- - -
- public - - - - - -
-

- T - - - TemplateDuplicateParams: Object -

-
-
- - -

Copy template payload

-
-
-
- - -
- public - - - - - - -
- - -

Copy template response data

-
-
-
- - -
- public - - - - - - -
- - -

Get Template Routing Details payload

-
-
-
- - -
- public - - - - - - -
- - -

Get Template Routing Details response data

-
-
-
- - -
- public - - - - - - -
- - -

Create invite with template payload

-
-
-
- - -
- public - - - - - - -
- - -

Create invite with template response data

-
-
-
- - -
- public - - - - - - -
- - -

Remove template payload

-
-
-
- - -
- public - - - - - - -
- - -

Remove template response data

-
-
-
- - -
- public - - - - - - -
- - -

Template Routing Details CC step info

-
-
-
- - -
- public - - - - - - -
- - -

Template Routing Details item data

-
-
-
- - -
- public - - - - - - -
- - -

Template Update Routing Details item data

-
-
-
- - -
- public - - - - - - -
- - -

Update Template Routing Details payload

-
-
-
- - -
- public - - - - - - -
- - -

Update Template Routing Details response data

-
-
-
- - -
- public - - - - - - -
- - -

Update Template Routing Details settings

-
-
-
- - -
- public - - - - - - -
- - -

Update Signing Role payload

-
-
-
- - -
- public - - - - - - -
- - -

Update Signing Role response data

-
-
-
- - -
-
-
-
-

user

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
summary
- public - - - - - -
-

- C - - - User -

-
-
- - -

User methods

-
-
-
- - -
- public - - - - - -
-

- T - - - CreateUserOptions: Object -

-
-
- - -

Create User optional settings

-
-
-
- - -
- public - - - - - -
-

- T - - - UserCreateParams: Object -

-
-
- - -

Create user payload

-
-
-
- - -
- public - - - - - -
-

- T - - - UserCreateResponse: Object -

-
-
- - -

Create user response data

-
-
-
- - -
- public - - - - - -
-

- T - - - UserGetParams: Object -

-
-
- - -

Get user payload

-
-
-
- - -
- public - - - - - -
-

- T - - - UserGetResponse: Object -

-
-
- - -

Retrieve user response data

-
-
-
- - -
- public - - - - - -
-

- T - - - UserVerifyEmailParams: Object -

-
-
- - -

Verify user email payload

-
-
-
- - -
- public - - - - - -
-

- T - - - UserVerifyEmailResponse: Object -

-
-
- - -

Verify user email response data

-
-
-
- - -
-
-
-
- - -
-
- - - - - - - - - - - - diff --git a/docs/image/badge.svg b/docs/image/badge.svg deleted file mode 100644 index b18426b8..00000000 --- a/docs/image/badge.svg +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - document - document - @ratio@ - @ratio@ - - diff --git a/docs/image/brand_logo.svg b/docs/image/brand_logo.svg deleted file mode 100644 index a7365175..00000000 --- a/docs/image/brand_logo.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/docs/image/esdoc-logo-mini-black.png b/docs/image/esdoc-logo-mini-black.png deleted file mode 100644 index 5d5f9a25..00000000 Binary files a/docs/image/esdoc-logo-mini-black.png and /dev/null differ diff --git a/docs/image/esdoc-logo-mini.png b/docs/image/esdoc-logo-mini.png deleted file mode 100644 index 76ba5b7d..00000000 Binary files a/docs/image/esdoc-logo-mini.png and /dev/null differ diff --git a/docs/image/github.png b/docs/image/github.png deleted file mode 100644 index ea6ff545..00000000 Binary files a/docs/image/github.png and /dev/null differ diff --git a/docs/image/logo.svg b/docs/image/logo.svg deleted file mode 100644 index a7365175..00000000 --- a/docs/image/logo.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/docs/image/manual-badge.svg b/docs/image/manual-badge.svg deleted file mode 100644 index 40296068..00000000 --- a/docs/image/manual-badge.svg +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - manual - manual - @value@ - @value@ - - diff --git a/docs/image/search.png b/docs/image/search.png deleted file mode 100644 index f5d84b69..00000000 Binary files a/docs/image/search.png and /dev/null differ diff --git a/docs/index.html b/docs/index.html deleted file mode 100644 index c0708d1d..00000000 --- a/docs/index.html +++ /dev/null @@ -1,1104 +0,0 @@ - - - - - - Home | SignNow API client - - - - - - - -
- - - Reference - Source - Test - -
- - - -

The Official SignNow API client v1.8.2

SignNow Node.js REST API Wrapper

-

License -Node version support -Snyk vulnerabilities for npm package -NPM package version -Twitter Follow

-

Table of Contents

    -
  1. About SignNow
  2. -
  3. API Contact Information
  4. -
  5. API and Application
  6. -
  7. Installation
  8. -
  9. Documentation
  10. -
  11. Examples -
  12. -
  13. Unit Tests
  14. -
  15. License
  16. -
  17. Additional Contact Information -
  18. -
-

About SignNow

SignNow is a powerful web-based e-signature solution that streamlines the signing process and overall document flow for businesses of any size. SignNow offers SaaS as well as public and private cloud deployment options using the same underlying API. With SignNow you can easily sign, share and manage documents in compliance with international data laws and industry-specific regulations. SignNow enables you to collect signatures from partners, employees and customers from any device within minutes.

-

API Contact Information

If you have questions about the SignNow API, please visit https://docs.signnow.com or email api@signnow.com.

-

See additional contact information at the bottom.

-

API and Application

- - - - - - - - - - - - - - - - - - - - - - - - -
ResourcesSandboxProduction
API:api-eval.signnow.com:443api.signnow.com:443
Application:https://app-eval.signnow.comhttps://app.signnow.com
Entry page:https://eval.signnow.com
-

Installation

@signnow/api-client supports node.js v6.4.0 or later.

-

To install the latest version of @signnow/api-client run:

-
npm install @signnow/api-client
-
-

Documentation

See API reference in our Documentation.

-

Examples

To run the examples you will need an API key. You can get one here https://www.signnow.com/api. For a full list of accepted parameters, refer to the SignNow REST Endpoints API guide: https://docs.signnow.com.

-

Every resource is accessed via your api client instance:

-
const api = require('@signnow/api-client')({
-  credentials: 'ENCODED_CLIENT_CREDENTIALS',
-  production: false, // if false uses eval server
-});
-
-

Every resource returns two parameters. The first param contains any errors and the second contains the results.

-

User

Create a User

By default verification email is not sent. To send it set verifyEmail option to true.

-
api.user.create({
-  email: 'john@domain.com',
-  password: 'your password',
-  first_name: 'John',
-  last_name: 'Wayne',
-  number: '123-456-789',
-  options: { verifyEmail: true } // false by default
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

More: Full example, CLI applet

-

Send Verification Email

api.user.verifyEmail({
-  email: 'john@domain.com',
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

More: Full example, CLI applet

-

Send Verification Email

api.user.verifyEmail({
-  email: 'john@domain.com',
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

More: Full example, CLI applet

-

Retrieve User Information

api.user.retrieve({
-  token: 'your auth token',
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

More: CLI applet

-

OAuth 2.0

Request Access Token

api.oauth2.requestToken({
-  username: 'username',
-  password: 'password',
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

More: Full example, CLI applet

-

Verify Access Token

api.oauth2.verify({
-  token: 'your auth token',
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

More: CLI applet

-

Refresh Access Token

api.oauth2.refreshToken({
-  refresh_token: 'your refresh token',
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

More: CLI applet

-

Document

Retrieve a List of the User’s Documents

api.document.list({
-  token: 'your auth token',
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

More: CLI applet

-

Retrieve a Document Resource

api.document.view({
-  token: 'your auth token',
-  id: 'document id',
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

More: CLI applet

-

Download a Collapsed Document

By default document is downloaded without history or attachments. To download it with history set withHistory option to true. To download it with attachments set withAttachments option to true.

-
api.document.download({
-  token: 'your auth token',
-  id: 'document id',
-  options: { 
-    withAttachments: true, // false by default
-    withHistory: true, // false by default
-  },
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

More: Full example, CLI applet

-

Upload Document

api.document.create({
-  token: 'your auth token',
-  filepath: 'path to file',
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

More: CLI applet

-

Upload File & Extract Fields

api.document.fieldextract({
-  token: 'your auth token',
-  filepath: 'path to file',
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

More: Full example, CLI applet

-

Update Document (add fields)

const fields = {
-  texts: [
-    {
-      size: 8,
-      x: 61,
-      y: 72,
-      page_number: 0,
-      font: 'Arial',
-      data: 'sample text',
-      line_height: 9.075,
-    },
-  ],
-}
-
-api.document.update({
-  token: 'your auth token',
-  id: 'document id',
-  fields,
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

More: Add signature field example, Add text field example, CLI applet

-

Create Invite to Sign a Document

const fieldInvite = {
-  from: 'EMAIL_OF_SENDER',
-  to: [
-    {
-      email: 'EMAIL_OF_SIGNER',
-      role: 'Signer 1',
-      order: 1,
-      reassign: '0',
-      decline_by_signature: '0',
-      reminder: 4,
-      expiration_days: 27,
-      subject: 'Field invite Signer1',
-      message: 'Message',
-    },
-  ],
-};
-
-api.document.invite({
-  data: {
-    ...fieldInvite,
-  },
-  id: 'DOCUMENT_ID_GOES_HERE',
-  token: 'YOUR_AUTH_TOKEN',
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

More: Invite to sign example, Invite with payment request example, CLI applet

-

Create Free Form Invite

api.document.invite({
-  token: 'your auth token',
-  id: 'document id',
-  data: {
-    from: 'email address',
-    to: 'email address',
-  },
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

More: Full example, CLI applet

-

Cancel Field Invite to Sign a Document

api.document.cancelFieldInvite({
-  token: 'your auth token',
-  id: 'document id',
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

Cancel Free Form Invite

api.document.cancelFreeFormInvite({
-  token: 'your auth token',
-  id: 'id of invite',
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

Create a One-time Use Download URL

api.document.share({
-  token: 'your auth token',
-  id: 'document id',
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

More: Full example

-

Merge Existing Documents

By default original documents are not removed after merging. To remove original documents set removeOriginalDocuments option to true.

-
api.document.merge({
-  token: 'your auth token',
-  name: 'the merged doc',
-  document_ids: [
-    '84a18d12bf7473ea3dd0e4dd1cdcded6ba6281aa',
-    'a71d963c49f33176e90c5827069c422616b1500c',
-  ],
-  options: {
-    removeOriginalDocuments: true, // false by default
-  },
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

More: Full example, CLI applet

-

Get Document History

api.document.history({
-  token: 'your auth token',
-  id: 'document id',
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

More: Full example, CLI applet

-

Remove Document

By default document invites are not cancelled during deletion. To cancel all document invites set cancelInvites option to true.

-
api.document.remove({
-  token: 'your auth token',
-  id: 'document id',
-  options: {
-    cancelInvites: true, // false by default
-  },
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

More: CLI applet

-
api.link.create({
-  token: 'your auth token',
-  document_id: 'document or template id',
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

More: Full example, CLI applet

-

Enumerations

Add Enumeration Field to a Document

api.enumerations.addField({
-  token: 'your auth token',
-  document_id: 'document id',
-  x: 150,
-  y: 200,
-  width: 200,
-  height: 50,
-  page_number: 0,
-  role: 'buyer',
-  required: true,
-  label: 'Clothing Brand',
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

Add Enumeration Options to the Field

api.enumerations.addOptions({
-  token: 'your auth token',
-  enumeration_options: [
-    {
-      enumeration_id: '8a3501896160b12d4ef7507a81b2f0998b8137b1',
-      data: 'Active',
-    },
-    {
-      enumeration_id: '8a3501896160b12d4ef7507a81b2f0998b8137b1',
-      data: 'Old Navy',
-    },
-    {
-      enumeration_id: '8a3501896160b12d4ef7507a81b2f0998b8137b1',
-      data: 'Volcom',
-    },
-  ],
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

Template

Create a Template

By default original document is not removed after template creation. To remove original document set removeOriginalDocument option to true.

-
api.template.create({
-  token: 'your auth token',
-  document_id: 'document id',
-  document_name: 'my template',
-  options: {
-    removeOriginalDocument: true, // false by default
-  },
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

More: Full example, CLI applet

-

Create a Document from a Template

api.template.duplicate({
-  token: 'your auth token',
-  id: 'document id',
-  name: 'my template',
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

More: Full example, CLI applet

-

Create Invite to Sign a Template

const fieldInvite = {
-  from: 'EMAIL_OF_SENDER',
-  to: [
-    {
-      email: 'EMAIL_OF_SIGNER',
-      role: 'Signer 1',
-      order: 1,
-      reassign: '0',
-      decline_by_signature: '0',
-      reminder: 4,
-      expiration_days: 27,
-      subject: 'Field invite Signer1',
-      message: 'Message',
-    },
-  ],
-};
-
-api.template.invite({
-  data: {
-    ...fieldInvite,
-  },
-  id: 'TEMPLATE_ID_GOES_HERE',
-  token: 'YOUR_AUTH_TOKEN',
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

More: Full one role example, Full two roles example, CLI applet

-

Create Free Form Invite from Template

api.template.invite({
-  token: 'YOUR_AUTH_TOKEN',
-  id: 'TEMPLATE_ID_GOES_HERE',
-  data: {
-    from: 'EMAIL_OF_SENDER',
-    to: 'EMAIL_OF_SIGNER',
-  },
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

More: Full example, CLI applet

-

Remove Template

api.template.remove({
-  token: 'your auth token',
-  id: 'template id',
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

More: CLI applet

-

View Routing Details

api.template.getRoutingDetails({
-  token: 'your auth token',
-  id: 'template id',
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

More: Full example, CLI applet

-

Update Routing Details

const routingDetails = {
-  template_data: [
-    {
-      default_email: '',
-      inviter_role: false,
-      name: 'Signer 1',
-      role_id: 'SIGNER 1 ROLE ID',
-      signing_order: 1,
-      decline_by_signature: true,
-    },
-    {
-      default_email: 'signer2@mail.com',
-      inviter_role: false,
-      name: 'Signer 2',
-      role_id: 'SIGNER 2 ROLE ID',
-      signing_order: 2,
-    },
-  ],
-  cc: [
-    'cc1@mail.com',
-    'cc2@mail.com',
-  ],
-  cc_step: [
-    {
-      email: 'cc1@mail.com',
-      step: 1,
-      name: 'CC 1',
-    },
-    {
-      email: 'cc2@mail.com',
-      step: 2,
-      name: 'CC 2',
-    },
-  ],
-  invite_link_instructions: 'Invite link signing instruction',
-};
-
-api.template.updateRoutingDetails({
-  data: routingDetails,
-  token: 'your auth token',
-  id: 'template id',
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

More: Full example, CLI applet

-

Folder

Returns a list of folders

api.folder.list({
-  token: 'your auth token',
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

Returns a list of documents inside a folder

- - - - - - - - - - - - - - - - - - - - -
FiltersValues
signing-statuswaiting-for-me, waiting-for-others, signed, pending
document-updatednew Date()
document-creatednew Date()
- - - - - - - - - - - - - - - - - - - - - -
SortValues
document-nameasc/desc
updatedasc/desc
createdasc/desc
-
api.folder.documents({
-  token: 'your auth token',
-  id: 'folder id',
-  filter: [
-    {
-      'signing-status': 'pending',
-    },
-  ],
-  sort: {
-    'document-name': 'asc',
-  },
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

Document Group

Create Document Group

api.documentGroup.create({
-  token: 'your auth token',
-  group_name: 'my document group name',
-  ids: [
-    // put document or template IDs here
-    '84a18d12bf7473ea3dd0e4dd1cdcded6ba6281aa',
-    'a71d963c49f33176e90c5827069c422616b1500c',
-  ],
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

More: Full example, CLI applet

-

View Document Group

api.documentGroup.view({
-  token: 'Your auth token',
-  id: 'Document Group ID',
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

More: Full example, CLI applet

-

Create Invite to Sign a Document Group

const data = {
-  invite_steps: [
-    {
-      order: 1,
-      invite_emails: [
-        {
-          email: 'Email of Signer 1',
-          subject: 'Signer 1 Needs Your Signature',
-          message: 'Signer 1 invited you to sign Document 1',
-          expiration_days: 30,
-          reminder: 0,
-        },
-      ],
-      invite_actions: [
-        {
-          email: 'Email of Signer 1',
-          role_name: 'Signer 1',
-          action: 'sign',
-          document_id: 'Document 1 ID',
-          allow_reassign: '0',
-          decline_by_signature: '0',
-        },
-      ],
-    },
-    {
-      order: 2,
-      invite_emails: [
-        {
-          email: 'Email of Signer 2',
-          subject: 'Signer 2 Needs Your Signature',
-          message: 'Signer 2 invited you to sign Document 2',
-          expiration_days: 30,
-          reminder: 0,
-        },
-      ],
-      invite_actions: [
-        {
-          email: 'Email of Signer 2',
-          role_name: 'Signer 2',
-          action: 'sign',
-          document_id: 'Document 2 ID',
-          allow_reassign: '0',
-          decline_by_signature: '0',
-        },
-      ],
-    },
-  ],
-};
-
-api.documentGroup.invite({
-  token: 'your auth token',
-  id: 'Document Group ID',
-  data,
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

More: Full example, CLI applet

-

Cancel Invite to Sign a Document Group

api.documentGroup.cancelInvite({
-  token: 'your auth token',
-  id: 'Document Group ID',
-  inviteId: 'Document Group invite ID'
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

More: Full example, CLI applet

-

Download Document Group

By default Document Group is downloaded without history as .zip archive with PDF files. To download it as a signle merged PDF set type to merged. To download document group with history set with_history to after_each_document or after_merged_pdf.

-
api.documentGroup.download({
-  token: 'your auth token',
-  id: 'document group ID',
-  type: 'merged', // 'zip' by default
-  with_history: 'after_each_document', // 'no' by default
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

More: Zipped Download Example, Merged Download Example, CLI applet

-

Document Group Template

Create Document Group Template

const routing_details = {
-  invite_steps: [
-    {
-      order: 1,
-      invite_emails: [
-        {
-          email: 'Email of Signer 1',
-          subject: 'Signer 1 Needs Your Signature',
-          message: 'Signer 1 invited you to sign Document 1',
-          expiration_days: 30,
-          reminder: 0,
-          hasSignActions: true,
-          allow_reassign: '0',
-        },
-      ],
-      invite_actions: [
-        {
-          email: 'Email of Signer 1',
-          role_name: 'Signer 1',
-          action: 'sign',
-          document_id: 'b6f4f61a5662c5c4385b02421397b76dc6d9c8af',
-          document_name: 'Document 1',
-          allow_reassign: '0',
-          decline_by_signature: '0',
-        },
-      ],
-    },
-    {
-      order: 2,
-      invite_emails: [
-        {
-          email: 'Email of Signer 2',
-          subject: 'Signer 2 Needs Your Signature',
-          message: 'Signer 2 invited you to sign Document 2',
-          expiration_days: 30,
-          reminder: 0,
-          hasSignActions: true,
-          allow_reassign: '0',
-        },
-      ],
-      invite_actions: [
-        {
-          email: 'Email of Signer 2',
-          role_name: 'Signer 2',
-          action: 'sign',
-          document_id: '14f02aac643770f22a384fe4e7a6b1ed6d15a9b8',
-          document_name: 'Document 2',
-          allow_reassign: '0',
-          decline_by_signature: '0',
-        },
-      ],
-    },
-  ],
-  include_email_attachments: 0,
-};
-
-api.documentGroupTemplate.create({
-  token: 'your auth token',
-  template_ids: [
-      '84a18d12bf7473ea3dd0e4dd1cdcded6ba6281aa',
-      'a71d963c49f33176e90c5827069c422616b1500c',
-    ],
-  template_group_name: 'Document group template name',
-  routing_details,
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

More: Full example, CLI applet

-

View Document Group Template

api.documentGroupTemplate.view({
-  token: 'Your auth token',
-  id: 'Document Group Template ID',
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

More: Full example, CLI applet

-

Create Invite to Sign a Document Group Template

api.documentGroupTemplate.invite({
-  token: 'Your auth token',
-  id: 'Document Group Template ID'
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

More: Full example, CLI applet

-

Webhook

Returns a list of Webhooks

signnow.webhook.list({
-  token: 'your auth token',
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

Create a Webhook

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
EventsDescription
document.createWebhook is triggered when a document is uploaded to users account in SignNow
document.updateWebhook is triggered when a document is updated (fields added, text added, signature added, etc.)
document.deleteWebhook is triggered when a document is deleted from
invite.createWebhook is triggered when an invitation to a SignNow document is created.
invite.updateWebhook is triggered when an invite to SignNow document is updated. Ex. A signer has signed the document.
-
api.webhook.create({
-  token: 'your auth token',
-  event: 'document.create',
-  callback_url: 'http://www.domain.com/path',
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

Embedded

Create embedded signing invites for a document without sending emails

signnow.embedded.createInvite({
-  token: 'access token',
-  document_id: 'document id',
-  invites: [
-    {
-      email: 'email of signer',
-      role_id: 'role id',
-      order: 1,
-      auth_method: 'password',
-    },
-  ],
-}, (err, res) => {
-  // handle error or process response data
-});
-
-
signnow.embedded.generateInviteLink({
-  token: 'access token',
-  document_id: 'document id',
-  field_invite_unique_id: 'field invite unique id',
-  link_expiration: 15,
-  auth_method: 'password',
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

Deletes embedded invites for a document.

signnow.embedded.cancelInvites({
-  token: 'access token',
-  document_id: 'document id',
-}, (err, res) => {
-  // handle error or process response data
-});
-
-

Promisify methods

If you are using node.js version 8.0.0 or higher you can use built in promisify utility:

-
const { promisify } = require('util');
-const api = require('@signnow/api-client')({
-  credentials: 'ENCODED_CLIENT_CREDENTIALS',
-  production: false, // if false uses eval server
-});
-const requestToken = promisify(api.oauth2.requestToken);
-
-requestToken({
-  username: 'username',
-  password: 'password',
-})
-  .then(res => {
-    // process response data
-  })
-  .catch(err => {
-    // handle error
-  });
-
-

If you are using node.js version prior to 8.0.0 you can use our own simple promisify utility:

-
const { promisify } = require('@signnow/api-client/utils');
-const api = require('@signnow/api-client')({
-  credentials: 'ENCODED_CLIENT_CREDENTIALS',
-  production: false, // if false uses eval server
-});
-const requestToken = promisify(api.oauth2.requestToken);
-
-requestToken({
-  username: 'username',
-  password: 'password',
-})
-  .then(res => {
-    // process response data
-  })
-  .catch(err => {
-    // handle error
-  });
-
-

Unit Tests

To run the unit test you will need to install "Mocha" and "Chai". You also need to edit a test.settings.js in the test folder of the api client module. The file need to contain the following:

-
exports.settings = {
-  credentials: '[ENCODED CLIENT CREDENTIALS]',
-  token: '[ACCESS TOKEN]',
-  username: '[SIGNNOW USERNAME]',
-  password: '[SIGNNOW PASSWORD]',
-  documentid: '[EXISTING DOCUMENT ID]',
-  templateid: '[EXISTING TEMPLATE ID]',
-  folderid: '[EXISTING FOLDER ID]',
-  email: '[FROM EMAIL FOR INVITE]',
-  testemail: '[TO EMAIL FOR INVITE]',
-};
-
-

License

This project is released under the MIT License.

-

Additional Contact Information

Support

To contact SignNow support, please email support@signnow.com or api@signnow.com.

-

Sales

For pricing information, please call (800) 831-2050, email sales@signnow.com or visit https://www.signnow.com/contact.

-
-
- - - - - - - - - - - - diff --git a/docs/index.json b/docs/index.json deleted file mode 100644 index 00ba13df..00000000 --- a/docs/index.json +++ /dev/null @@ -1,11273 +0,0 @@ -[ - { - "__docId__": 1, - "kind": "external", - "name": "Infinity", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~Infinity", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 2, - "kind": "external", - "name": "NaN", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~NaN", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 3, - "kind": "external", - "name": "undefined", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~undefined", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 4, - "kind": "external", - "name": "null", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~null", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 5, - "kind": "external", - "name": "Object", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~Object", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 6, - "kind": "external", - "name": "object", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~object", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 7, - "kind": "external", - "name": "Function", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~Function", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 8, - "kind": "external", - "name": "function", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~function", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 9, - "kind": "external", - "name": "Boolean", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~Boolean", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 10, - "kind": "external", - "name": "boolean", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~boolean", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 11, - "kind": "external", - "name": "Symbol", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~Symbol", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 12, - "kind": "external", - "name": "Error", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~Error", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 13, - "kind": "external", - "name": "EvalError", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~EvalError", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 14, - "kind": "external", - "name": "InternalError", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~InternalError", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 15, - "kind": "external", - "name": "RangeError", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~RangeError", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 16, - "kind": "external", - "name": "ReferenceError", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~ReferenceError", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 17, - "kind": "external", - "name": "SyntaxError", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~SyntaxError", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 18, - "kind": "external", - "name": "TypeError", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~TypeError", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 19, - "kind": "external", - "name": "URIError", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~URIError", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 20, - "kind": "external", - "name": "Number", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~Number", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 21, - "kind": "external", - "name": "number", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~number", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 22, - "kind": "external", - "name": "Date", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~Date", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 23, - "kind": "external", - "name": "String", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~String", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 24, - "kind": "external", - "name": "string", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~string", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 25, - "kind": "external", - "name": "RegExp", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~RegExp", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 26, - "kind": "external", - "name": "Array", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~Array", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 27, - "kind": "external", - "name": "Int8Array", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~Int8Array", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 28, - "kind": "external", - "name": "Uint8Array", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~Uint8Array", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 29, - "kind": "external", - "name": "Uint8ClampedArray", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~Uint8ClampedArray", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 30, - "kind": "external", - "name": "Int16Array", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~Int16Array", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 31, - "kind": "external", - "name": "Uint16Array", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~Uint16Array", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 32, - "kind": "external", - "name": "Int32Array", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~Int32Array", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 33, - "kind": "external", - "name": "Uint32Array", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~Uint32Array", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 34, - "kind": "external", - "name": "Float32Array", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~Float32Array", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 35, - "kind": "external", - "name": "Float64Array", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~Float64Array", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 36, - "kind": "external", - "name": "Map", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~Map", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 37, - "kind": "external", - "name": "Set", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~Set", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 38, - "kind": "external", - "name": "WeakMap", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~WeakMap", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 39, - "kind": "external", - "name": "WeakSet", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~WeakSet", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 40, - "kind": "external", - "name": "ArrayBuffer", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~ArrayBuffer", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 41, - "kind": "external", - "name": "DataView", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~DataView", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 42, - "kind": "external", - "name": "JSON", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~JSON", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 43, - "kind": "external", - "name": "Promise", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~Promise", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 44, - "kind": "external", - "name": "Generator", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~Generator", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 45, - "kind": "external", - "name": "GeneratorFunction", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~GeneratorFunction", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 46, - "kind": "external", - "name": "Reflect", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~Reflect", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 47, - "kind": "external", - "name": "Proxy", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy", - "memberof": "lib/.external-ecmascript.js", - "static": true, - "longname": "lib/.external-ecmascript.js~Proxy", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 48, - "kind": "file", - "name": "lib/document/index.js", - "content": "'use strict';\nconst https = require('https');\nconst { readFileSync } = require('fs');\nconst { basename, extname } = require('path');\nconst {\n responseHandler,\n errorHandler,\n buildRequestOptions,\n stringifyQueryParams,\n getMimeTypeByFileExtension,\n isDocumentTypeAcceptable,\n getFormDataBoundary,\n getByDeclinedStatus,\n getSignerEmails,\n} = require('../common');\nconst { promisify } = require('../../utils');\n\n/**\n * Document methods\n */\nclass Document {\n\n /**\n * Create document payload\n * @typedef {Object} DocumentCreateParams\n * @property {string} filepath - path to file to be uploaded\n * @property {string} token - your auth token\n */\n\n /**\n * Create document response data\n * @typedef {Object} DocumentCreateResponse\n * @property {string} id - an id of created document\n */\n\n /**\n * Uploads a file and creates a document.\n * This endpoint accepts .pdf, .doc, .docx, .odt, .rtf, .png, .jpg, .jpeg, .gif, .bmp, .xml, .xls, .xlsx, .ppt, .pptx file types\n * @param {DocumentCreateParams} data - create document payload\n * @param {function(err: ApiErrorResponse, res: DocumentCreateResponse)} [callback] - error first node.js callback\n */\n static create ({ filepath, token }, callback) {\n const fileExt = extname(filepath).substr(1);\n\n if (!isDocumentTypeAcceptable(fileExt)) {\n callback('File type isn\\'t supported.');\n return;\n }\n\n let fileContent;\n\n try {\n fileContent = readFileSync(filepath);\n } catch (err) {\n callback(err);\n return;\n }\n\n const mimeType = getMimeTypeByFileExtension(fileExt);\n const formDataBoundary = getFormDataBoundary();\n const formDataBeginning = `--${formDataBoundary}\\r\\n`\n .concat(`Content-Disposition: form-data; name=\"file\"; filename=\"${basename(filepath)}\"\\r\\n`)\n .concat(`Content-Type: ${mimeType}\\r\\n\\r\\n`);\n const formDataEnding = `\\r\\n--${formDataBoundary}\\r\\n`;\n\n const payload = Buffer.concat([\n Buffer.from(formDataBeginning, 'utf8'),\n fileContent,\n Buffer.from(formDataEnding, 'utf8'),\n ]);\n\n const req = https\n .request(buildRequestOptions({\n method: 'POST',\n path: '/document',\n authorization: {\n type: 'Bearer',\n token,\n },\n headers: {\n 'Content-Type': `multipart/form-data; boundary=${formDataBoundary}`,\n 'Content-Length': Buffer.byteLength(payload),\n },\n }), responseHandler(callback))\n .on('error', errorHandler(callback));\n\n req.write(payload);\n req.end();\n }\n\n /**\n * Upload document with field extract payload\n * @typedef {Object} DocumentFieldExtractParams\n * @property {string} filepath - path to file to be uploaded\n * @property {string} token - your auth token\n */\n\n /**\n * Upload document with field extract response data\n * @typedef {Object} DocumentFieldExtractResponse\n * @property {string} id - an id of created document\n */\n\n /**\n * Uploads a file that contains SignNow Document Field Tags.\n * This endpoint only accepts .pdf (you may convert the document from .doc or .docx to .pdf)\n * @param {DocumentFieldExtractParams} data - upload document with field extract payload\n * @param {function(err: ApiErrorResponse, res: DocumentFieldExtractResponse)} [callback] - error first node.js callback\n */\n static fieldextract ({ filepath, token }, callback) {\n const fileExt = extname(filepath).substr(1);\n\n if (!isDocumentTypeAcceptable(fileExt)) {\n callback('File type isn\\'t supported.');\n return;\n }\n\n let fileContent;\n\n try {\n fileContent = readFileSync(filepath);\n } catch (err) {\n callback(err);\n return;\n }\n\n const mimeType = getMimeTypeByFileExtension(fileExt);\n const formDataBoundary = getFormDataBoundary();\n const formDataBeginning = `--${formDataBoundary}\\r\\n`\n .concat(`Content-Disposition: form-data; name=\"file\"; filename=\"${basename(filepath)}\"\\r\\n`)\n .concat(`Content-Type: ${mimeType}\\r\\n\\r\\n`);\n const formDataEnding = `\\r\\n--${formDataBoundary}\\r\\n`;\n\n const payload = Buffer.concat([\n Buffer.from(formDataBeginning, 'utf8'),\n Buffer.from(fileContent, 'binary'),\n Buffer.from(formDataEnding, 'utf8'),\n ]);\n\n const req = https\n .request(buildRequestOptions({\n method: 'POST',\n path: '/document/fieldextract',\n authorization: {\n type: 'Bearer',\n token,\n },\n headers: {\n 'Content-Type': `multipart/form-data; boundary=${formDataBoundary}`,\n 'Content-Length': Buffer.byteLength(payload),\n },\n }), responseHandler(callback))\n .on('error', errorHandler(callback));\n\n req.write(payload);\n req.end();\n }\n\n /**\n * Payload to receive user's document list\n * @typedef {Object} DocumentListParams\n * @property {string} token - your auth token\n */\n\n /**\n * Document list response item\n * @typedef {Object} DocumentListItem\n * @property {string} id - id of specific document\n * @property {string} user_id - id of user that uploaded document\n * @property {string} document_name - name of document\n * @property {string} page_count - amount of pages in the document\n * @property {string} created - timestamp document was created\n * @property {string} updated - timestamp document was updated\n * @property {string} original_filename - original filename with document format (.pdf, .doc, etc...)\n * @property {?string} origin_document_id - an id of original document (if document is a copy)\n * @property {string} owner - email of document owner\n * @property {boolean} template - is document a template or not\n * @property {?string} origin_user_id - id of user who created document\n * @property {DocumentThumbnails} thumbnail - thumbnail urls with different sizes (small, medium, large)\n * @property {Object[]} signatures - signature signed elements\n * @property {Object[]} texts - text and enumeration filled elements\n * @property {Object[]} checks - checkbox checked elements\n * @property {Object[]} tags - field types document contains\n * @property {Object[]} fields - all document fillable fields\n * @property {Object[]} requests - requests for signing document\n * @property {Object[]} roles - document signer roles\n * @property {Object[]} field_invites - sent invites data\n * @property {number} version_time - document updated timestamp\n * @property {Object[]} enumeration_options - dropdown options\n * @property {Object[]} attachments - attachments in document\n * @property {Object[]} routing_details - signing steps routing details\n * @property {Object[]} integrations - document integrations\n * @property {Object[]} hyperlinks - document hyperlinks\n * @property {Object[]} radiobuttons - checked radiobuttons after document was signed\n * @property {Object[]} document_group_template_info - document group templates data\n * @property {Object[]} document_group_info - document group template's data\n * @property {Object[]} originator_organization_settings - specific organization settings for document\n * @property {Object[]} field_validators - validation rules for fields (date fields, payment fields etc.)\n * @property {Object} settings - specific document settings\n */\n\n /**\n * User's Document list response\n * @typedef {DocumentListItem[]} DocumentListResponse\n */\n\n /**\n * Retrieve user's document list\n * @param {DocumentListParams} data - payload to receive user's document list\n * @param {function(err: ApiErrorResponse, res: DocumentListItem)} [callback] - error first node.js callback\n */\n static list ({ token }, callback) {\n https\n .request(buildRequestOptions({\n method: 'GET',\n path: '/user/documentsv2',\n authorization: {\n type: 'Bearer',\n token,\n },\n }), responseHandler(callback))\n .on('error', errorHandler(callback))\n .end();\n }\n\n /**\n * Document view payload\n * @typedef {Object} DocumentViewParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n */\n\n /**\n * Document thumbnail urls with different sizes (small, medium, large)\n * @typedef {Object} DocumentThumbnails\n * @property {string} large\n * @property {string} medium\n * @property {string} small\n */\n\n /**\n * Document view response of specific document\n * @typedef {Object} DocumentViewResponse\n * @property {string} id - id of specific document\n * @property {string} user_id - id of user that uploaded document\n * @property {string} document_name - name of document\n * @property {string} page_count - amount of pages in the document\n * @property {string} created - timestamp document was created\n * @property {string} updated - timestamp document was updated\n * @property {string} original_filename - original filename with document format (.pdf, .doc, etc...)\n * @property {?string} origin_document_id - an id of original document (if document is a copy)\n * @property {string} owner - email of document owner\n * @property {boolean} template - is document a template or not\n * @property {DocumentThumbnails} thumbnail - thumbnail urls with different sizes (small, medium, large)\n * @property {Object[]} signatures - signature signed elements\n * @property {Object[]} texts - text and enumeration filled elements\n * @property {Object[]} checks - checkbox checked elements\n * @property {Object[]} tags - field types document contains\n * @property {Object[]} fields - all document fillable fields\n * @property {Object[]} requests - requests for signing document\n * @property {Object[]} roles - document signer roles\n * @property {Object[]} field_invites - sent invites data\n * @property {number} version_time - document updated timestamp\n * @property {Object[]} enumeration_options - dropdown options\n * @property {Object[]} attachments - attachments in document\n * @property {Object[]} routing_details - signing steps routing details\n * @property {Object[]} integrations - document integrations\n * @property {Object[]} hyperlinks - document hyperlinks\n * @property {Object[]} radiobuttons - checked radiobuttons after document was signed\n * @property {Object[]} document_group_template_info - document group template's data\n * @property {Object[]} document_group_info - document group's data\n * @property {Object[]} originator_organization_settings - specific organization settings for document\n * @property {Object[]} field_validators - validation rules for fields (date fields, payment fields etc.)\n * @property {Object} settings - specific document settings\n * @property {string} parent_id - id of document folder\n * @property {string} originator_logo - logo url\n * @property {Object[]} pages - list of document pages with page sources and page size.\n */\n\n /**\n * Retrieves a document detailed data\n * @param {DocumentViewParams} data - view document details payload\n * @param {function(err: ApiErrorResponse, res: DocumentViewResponse)} [callback] - error first node.js callback\n */\n static view ({ id, token }, callback) {\n https\n .request(buildRequestOptions({\n method: 'GET',\n path: `/document/${id}`,\n authorization: {\n type: 'Bearer',\n token,\n },\n }), responseHandler(callback))\n .on('error', errorHandler(callback))\n .end();\n }\n\n /**\n * @typedef {Object} SignatureField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (signature)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} [label] - field label\n */\n\n /**\n * @typedef {Object} InitialsField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (initials)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} [label] - field label\n */\n\n /**\n * @typedef {Object} TextField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (text)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string|number} [prefilled_text] - prefilled field value\n * @property {string} [validator_id] - field value validator ID\n * @property {string} [label] - field label\n */\n\n /**\n * @typedef {Object} CheckField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (checkbox)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {boolean} [prefilled_text] - prefilled field value\n * @property {string} [label] - field label\n */\n\n /**\n * @typedef {Object} EnumerationField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (enumeration)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {Array} enumeration_options - choice options of enumerable field\n * @property {string|number} [prefilled_text] - prefilled field value\n * @property {string} [label] - field label\n * @property {boolean} [custom_defined_option=false] - if 'true' user can change values, if 'false' user can only read\n */\n\n /**\n * @typedef {Object} RadioButton\n * @property {number} page_number - page number of document\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} value - value of radio button\n * @property {string} checked - radio button check status\n * @property {number} created - redio button creation timestamp\n */\n\n /**\n * @typedef {Object} RadioButtonField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (radiobutton)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {RadioButton[]} radio - array of radio buttons\n * @property {string|number} [prefilled_text] - prefilled field value\n * @property {string} [label] - field label\n */\n\n /**\n * @typedef {Object} FormulaTreeBranchTerminator\n * @property {string} term - name of field which will participate in calculation formula\n */\n\n /**\n * @typedef {Object} FormulaTreeBranch\n * @property {FormulaTree} term - a part of formula parsed into tree\n */\n\n /**\n * @typedef {Object} FormulaTree\n * @property {string} operator - arithmetic operator's token\n * @property {FormulaTreeBranch|FormulaTreeBranchTerminator} left - left branch of formula tree\n * @property {FormulaTreeBranch|FormulaTreeBranchTerminator} right - right branch of formula tree\n */\n\n /**\n * @typedef {Object} CalculatedField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (text)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} formula - arithmetic formula, e.g. 'TextName+EnumerationName'\n * @property {FormulaTree} calculation_formula - formula parsed into tree\n * @property {number} calculation_precision - calculation precision\n * @property {string} [label] - field label\n * @property {boolean} [custom_defined_option=false] - if 'true' user can change values, if 'false' user can only read\n */\n\n /**\n * @typedef {Object} AttachmentField\n * @property {number} page_number - page number of document\n * @property {string} type - type of field (attachment)\n * @property {string} name - unique name of the field\n * @property {string} role - role name\n * @property {boolean} required - required field\n * @property {number} height - height of the field\n * @property {number} width - width of the field\n * @property {number} x - X coordinate of the field\n * @property {number} y - Y coordinate of the field\n * @property {string} [label] - field label\n */\n\n /**\n * @typedef {Object} DocumentFields\n * @property {number} client_timestamp - local time of user\n * @property {Array} fields - all types of fields\n */\n\n /**\n * Update document payload\n * @typedef {Object} DocumentUpdateParams\n * @property {string} id - id of specific document\n * @property {DocumentFields} fields - set of fields\n * @property {string} token - your auth token\n */\n\n /**\n * Update document response data\n * @typedef {Object} DocumentUpdateResponse\n * @property {string} id - an id of document\n * @property {Object[]} signatures - signature and initial elements\n * @property {Object[]} texts - text and enumeration elements\n * @property {Object[]} checks - checkbox elements\n * @property {Object[]} attachments - attachment elements\n * @property {Object[]} radiobuttons - radiobutton elements\n */\n\n /**\n * Updates an existing document.\n * Adds fields (signature, text, initials, checkbox, radiobutton group, calculated) and elements (signature, text, check).\n * Every call of this method will add only specified fields into document.\n * Old fields will be removed\n * @param {DocumentUpdateParams} data - update document request payload\n * @param {function(err: ApiErrorResponse, res: DocumentUpdateResponse)} [callback] - error first node.js callback\n */\n static update ({\n id,\n fields,\n token,\n }, callback) {\n const JSONData = JSON.stringify(fields);\n const req = https\n .request(buildRequestOptions({\n method: 'PUT',\n path: `/document/${id}`,\n authorization: {\n type: 'Bearer',\n token,\n },\n headers: {\n 'Content-Type': 'application/json',\n 'Content-Length': Buffer.byteLength(JSONData),\n },\n }), responseHandler(callback))\n .on('error', errorHandler(callback));\n\n req.write(JSONData);\n req.end();\n }\n\n /**\n * Download document optional settings\n * @typedef {Object} DocumentDownloadOptions\n * @property {boolean} [withAttachments=false] - if true document will be downloaded as zip package with its attachments\n * @property {boolean} [withHistory=false] - if true document will be downloaded with history\n */\n\n /**\n * Document download payload\n * @typedef {Object} DocumentDownloadParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n * @property {DocumentDownloadOptions} options - download document optional settings\n */\n\n /**\n * Document binary data\n * @typedef {Buffer} DocumentDownloadResponse\n */\n\n /**\n * Downloads document with embedded fields and elements.\n * By default document is downloaded without history. To download document with history set `withHistory` option to `true`.\n * @param {DocumentDownloadParams} data - download document request payload\n * @param {function(err: ApiErrorResponse, res: DocumentDownloadResponse)} [callback] - error first node.js callback\n */\n static download ({\n id,\n token,\n options: {\n withAttachments = false,\n withHistory = false,\n } = {},\n }, callback) {\n const queryParams = {};\n const clientTimestamp = Math.floor(Date.now() / 1000);\n\n queryParams.type = withAttachments ? 'zip' : 'collapsed';\n withHistory && (queryParams.with_history = '1');\n\n https\n .request(buildRequestOptions({\n method: 'GET',\n path: `/document/${id}/download?client_timestamp=${clientTimestamp}&${stringifyQueryParams(queryParams)}`,\n authorization: {\n type: 'Bearer',\n token,\n },\n }), responseHandler(callback))\n .on('error', errorHandler(callback))\n .end();\n }\n\n /**\n * Document share payload\n * @typedef {Object} DocumentShareParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n */\n\n /**\n * Document share response data\n * @typedef {Object} DocumentShareResponse\n * @property {string} link - link to download specified document in PDF format\n */\n\n /**\n * Requests a link to download document with embedded fields and elements\n * Link can be used once and then will expire\n * @param {DocumentShareParams} data - share document request payload\n * @param {function(err: ApiErrorResponse, res: DocumentShareResponse)} [callback] - error first node.js callback\n */\n static share ({ id, token }, callback) {\n https\n .request(buildRequestOptions({\n method: 'POST',\n path: `/document/${id}/download/link`,\n authorization: {\n type: 'Bearer',\n token,\n },\n }), responseHandler(callback))\n .on('error', errorHandler(callback))\n .end();\n }\n\n /**\n * Document invite signer settings\n * @typedef {Object} SignerSettings\n * @property {string} email - signer's email\n * @property {string} role - role name\n * @property {string} [role_id] - role unique id (can be discovered in document details)\n * @property {number} order - role signing order\n * @property {string} reassign - allow reassign signer\n * @property {string} decline_by_signature - signer can decline invite\n * @property {number} reminder - remind via email in days\n * @property {number} expiration_days - expiration of invite in days\n * @property {string} [subject] - specify subject of email\n * @property {string} [message] - specify body of email\n */\n\n /**\n * Document invite settings\n * @typedef {Object} DocumentInviteSettings\n * @property {string} from - email of sender\n * @property {SignerSettings[]|string} to - array of signers or email of single signer\n * @property {string} [document_id] - an id of document\n * @property {string[]} [cc] - array with emails of copy receivers\n * @property {string} [subject] - specify subject of email\n * @property {string} [message] - specify body of email\n * @property {string} [on_complete] - on signing complete action\n */\n\n /**\n * Document invite optional settings\n * @typedef {Object} DocumentInviteOptions\n * @property {string} [email] - ability to disable invitation by email. to disable email assign value 'disable'\n */\n\n /**\n * Create document invite payload\n * @typedef {Object} DocumentInviteParams\n * @property {string} id - an id of document\n * @property {DocumentInviteSettings} data - document invite settings\n * @property {DocumentInviteOptions} [options] - document invite optional settings\n * @property {string} token - your auth token\n */\n\n /**\n * Create document field invite response data\n * @typedef {Object} DocumentFieldInviteResponse\n * @property {string} status - status of invitation, e.g. 'success'\n */\n\n /**\n * Create document free form invite response data\n * @typedef {Object} DocumentFreeformInviteResponse\n * @property {string} result - free form invitation result, e.g. 'success'\n * @property {string} id - unique id of invite\n * @property {string} callback_url - url for front-end redirect or 'none'\n */\n\n /**\n * Create document invite response data\n * @typedef {DocumentFieldInviteResponse|DocumentFreeformInviteResponse} DocumentInviteResponse\n */\n\n /**\n * Creates an invite to sign a document.\n * You can create a simple free form invite(s) or a role-based invite(s).\n * @param {DocumentInviteParams} data - create document invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentInviteResponse)} [callback] - error first node.js callback\n */\n static invite ({\n id,\n data,\n options: { email } = {},\n token,\n }, callback) {\n const inviteData = Object.assign({}, data, { document_id: id });\n\n const JSONData = JSON.stringify(inviteData);\n let path = `/document/${id}/invite`;\n\n if (email === 'disable') {\n path = `${path}?email=disable`;\n }\n\n const req = https\n .request(buildRequestOptions({\n method: 'POST',\n authorization: {\n type: 'Bearer',\n token,\n },\n headers: {\n 'Content-Type': 'application/json',\n 'Content-Length': Buffer.byteLength(JSONData),\n },\n path,\n }), responseHandler(callback))\n .on('error', errorHandler(callback));\n\n req.write(JSONData);\n req.end();\n }\n\n /**\n * Cancel freeform invite payload\n * @typedef {Object} CancelFreeformInviteParams\n * @property {string} id - unique id of invite\n * @property {string} token - your auth token\n */\n\n /**\n * Cancel freeform invite response data\n * @typedef {Object} CancelFreeformInviteResponse\n * @property {string} id - unique id of invite\n */\n\n /**\n * Cancels sent freeform invite\n * @param {CancelFreeformInviteParams} data - cancel freeform invite payload\n * @param {function(err: ApiErrorResponse, res: CancelFreeformInviteResponse)} [callback] - error first node.js callback\n */\n static cancelFreeFormInvite ({ id, token }, callback) {\n https\n .request(buildRequestOptions({\n method: 'PUT',\n path: `/invite/${id}/cancel`,\n authorization: {\n type: 'Bearer',\n token,\n },\n }), responseHandler(callback))\n .on('error', errorHandler(callback))\n .end();\n }\n\n /**\n * Cancel document field invite payload\n * @typedef {Object} DocumentFieldInviteCancelParams\n * @property {string} id - an id of document\n * @property {string} token - your auth token\n */\n\n /**\n * Cancel document field invite response data\n * @typedef {Object} DocumentFieldInviteCancelResponse\n * @property {string} status - status of field invite cancellation, e.g. 'success'\n */\n\n /**\n * Cancels an invite to a document\n * @param {DocumentFieldInviteCancelParams} data - cancel field invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentFieldInviteCancelResponse)} [callback] - error first node.js callback\n */\n static cancelFieldInvite ({ id, token }, callback) {\n https\n .request(buildRequestOptions({\n method: 'PUT',\n path: `/document/${id}/fieldinvitecancel`,\n authorization: {\n type: 'Bearer',\n token,\n },\n }), responseHandler(callback))\n .on('error', errorHandler(callback))\n .end();\n }\n\n /**\n * Cancels an invite to a document\n * @deprecated use Document.cancelFieldInvite instead of this\n * @param {DocumentFieldInviteCancelParams} data - cancel field invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentFieldInviteCancelResponse)} [callback] - error first node.js callback\n */\n static cancelInvite ({ id, token }, callback) {\n Document.cancelFieldInvite({\n id,\n token,\n }, callback);\n }\n\n /**\n * Merge documents optional settings\n * @typedef {Object} DocumentMergeOptions\n * @property {boolean} [removeOriginalDocuments=false] - if true original documents will be removed\n */\n\n /**\n * Merge documents payload\n * @typedef {Object} DocumentMergeParams\n * @property {string} token - your auth token\n * @property {string} name - new name for merged document\n * @property {string[]} document_ids - an array of document IDs\n * @property {DocumentMergeOptions} options - merge documents optional settings\n */\n\n /**\n * Merge documents response data\n * @typedef {Object} DocumentMergeResponse\n * @property {string} document_id - an ID of merged document\n */\n\n /**\n * Merges existing documents into one.\n * By default original documents are not removed after merging. To remove original documents set `removeOriginalDocuments` option to `true`.\n * @param {DocumentMergeParams} data - merge documents payload\n * @param {function(err: ApiErrorResponse, res: DocumentMergeResponse)} [originalCallback] - error first node.js callback\n */\n static merge ({\n name,\n document_ids,\n options: { removeOriginalDocuments = false } = {},\n token,\n }, originalCallback) {\n const JSONData = JSON.stringify({\n upload_document: true,\n document_ids,\n name,\n });\n\n const callbackWithDocumentDeletion = (mergeErr, mergeRes) => {\n if (mergeErr) {\n originalCallback(mergeErr);\n return;\n } else {\n\n const removeDocument = ({ id }) => new Promise((resolve, reject) => {\n Document.remove({\n id,\n token,\n }, (err, res) => {\n if (err) {\n reject(err);\n } else {\n resolve(res.status === 'success');\n }\n });\n });\n\n const documentsDeleted = document_ids\n .map(id => removeDocument({ id }));\n\n Promise.all(documentsDeleted)\n .then(deletionStatuses => deletionStatuses.reduce((generalStatus, currentStatus) => (generalStatus && currentStatus), true))\n .then(allDocumentsDeleted => {\n if (allDocumentsDeleted) {\n originalCallback(null, mergeRes);\n return;\n } else {\n throw new Error('Some of the original documents were not removed');\n }\n })\n .catch(removeErr => {\n originalCallback(removeErr);\n return;\n });\n\n }\n };\n\n const callback = removeOriginalDocuments\n ? callbackWithDocumentDeletion\n : originalCallback;\n\n const req = https\n .request(buildRequestOptions({\n method: 'POST',\n path: '/document/merge',\n authorization: {\n type: 'Bearer',\n token,\n },\n headers: {\n 'Content-Type': 'application/json',\n 'Content-Length': Buffer.byteLength(JSONData),\n },\n }), responseHandler(callback))\n .on('error', errorHandler(originalCallback));\n\n req.write(JSONData);\n req.end();\n }\n\n /**\n * Document history payload\n * @typedef {Object} DocumentHistoryParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n */\n\n /**\n * Document action log item\n * @typedef {Object} DocumentEvent\n * @property {string} client_app_name - name of a client application\n * @property {?string} client_timestamp - client application timestamp\n * @property {string} created - timestamp of action creation\n * @property {string} email - email of an actor\n * @property {string} event - name of event\n * @property {string} ip_address - actor's IP address\n * @property {?string} element_id - an ID of specific element\n * @property {?string} field_id - an ID of specific field\n * @property {?string} json_attributes - field attributes (e.g. font, style, size etc.)\n * @property {string} [document_id] - an ID of specific document\n * @property {string} [origin] - an origin of document\n * @property {string} [unique_id] - an ID of event\n * @property {string} [user_agent] - user agent\n * @property {string} [user_id] - id of an actor\n * @property {string} [version] - version of signed document (incremented after each signature addition)\n */\n\n /**\n * Document history response data\n * @typedef {DocumentEvent[]} DocumentHistoryResponse\n */\n\n /**\n * Retrieves a document action log (history) data\n * @param {DocumentHistoryParams} data - payload\n * @param {function(err: ApiErrorResponse, res: DocumentHistoryResponse)} [callback] - error first node.js callback\n */\n static history ({ id, token }, callback) {\n https\n .request(buildRequestOptions({\n method: 'GET',\n path: `/document/${id}/history`,\n authorization: {\n type: 'Bearer',\n token,\n },\n }), responseHandler(callback))\n .on('error', errorHandler(callback))\n .end();\n }\n\n /**\n * Document remove optional settings\n * @typedef {Object} DocumentRemoveOptions\n * @property {boolean} [cancelInvites=false] - ability to cancel all document invites during deletion\n */\n\n /**\n * Remove document payload\n * @typedef {Object} DocumentRemoveParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n * @property {DocumentRemoveOptions} [options] - document remove optional settings\n */\n\n /**\n * Remove document response data\n * @typedef {Object} DocumentRemoveResponse\n * @property {string} status - status of deletion, e.g. 'success'\n */\n\n /**\n * Removes a specified document from folder\n * @param {DocumentRemoveParams} data - remove document payload\n * @param {function(err: ApiErrorResponse, res: DocumentRemoveResponse)} [originalCallback] - error first node.js callback\n */\n static remove ({\n id: documentId,\n token,\n options: { cancelInvites = false } = {},\n }, originalCallback) {\n const callbackWithInviteCancellation = (removeErr, removeRes) => {\n if (removeErr) {\n originalCallback(removeErr);\n return;\n } else {\n promisify(Document.view)({\n id: documentId,\n token,\n })\n .then(document => {\n const { field_invites: fieldInvites, requests: freeformInvites } = document;\n return {\n fieldInvites,\n freeformInvites,\n };\n })\n .then(({ fieldInvites, freeformInvites }) => {\n const fieldInvitesCancelled = new Promise(resolve => {\n if (Array.isArray(fieldInvites) && fieldInvites.length) {\n resolve(promisify(Document.cancelFieldInvite)({\n id: documentId,\n token,\n }));\n } else {\n resolve({ status: 'success' });\n }\n })\n .then(({ status }) => status === 'success');\n\n const freeformInvitesCancelled = freeformInvites\n .map(({ id: inviteId }) => {\n return promisify(Document.cancelFreeFormInvite)({\n id: inviteId,\n token,\n })\n .then(({ id }) => !!id);\n });\n\n Promise.all([\n fieldInvitesCancelled,\n ...freeformInvitesCancelled,\n ])\n .then(allInvitesCancelled => {\n if (allInvitesCancelled) {\n originalCallback(null, removeRes);\n return;\n } else {\n throw new Error('Some of invites have not been cancelled');\n }\n })\n .catch(err => {\n originalCallback(err.message);\n return;\n });\n });\n }\n };\n\n const callback = cancelInvites\n ? callbackWithInviteCancellation\n : originalCallback;\n\n https\n .request(buildRequestOptions({\n method: 'DELETE',\n path: `/document/${documentId}`,\n authorization: {\n type: 'Bearer',\n token,\n },\n }), responseHandler(callback))\n .on('error', errorHandler(originalCallback))\n .end();\n }\n\n /**\n * Get Document Signers optional settings\n * @typedef {Object} DocumentSignersOptions\n * @property {boolean} [allSignatures=true] - if true receive all document signers email\n * @property {boolean} [freeFormInvites=false] - if `true` return free from invite signer emails\n * @property {?string[]} [fieldInvitesStatus=null] - return signers according to specified field invite status(es)\n * Accepts list of statuses or a single status.\n * Acceptable statuses: all, pending, declined, fulfilled, created, skipped.\n * @property {?string[]} [paymentRequestsStatus=null] - return signers according to specified to payment request status(es)\n * Accepts list of statuses or a single status.\n * Available statuses: all, pending, fulfilled, created, skipped.\n */\n\n /**\n * Get Document Signers payload\n * @typedef {Object} DocumentSignersParams\n * @property {string} id - id of specific document\n * @property {string} token - your auth token\n * @property {DocumentSignersOptions} [options] - document signers optional settings,\n */\n\n /**\n * Get Document Signers response data\n * @typedef {Object} DocumentSignersResponse\n * @property {string[]} - emails of document signers\n */\n\n /**\n * Retrieves all signers of specific document\n * @experimental this class includes breaking change.\n * @param {DocumentSignersParams} data - get document signers payload\n * @param {function(err: ApiErrorResponse, res: DocumentSignersResponse)} [callback] - error first node.js callback\n */\n static signers ({\n id,\n token,\n options = {},\n }, callback) {\n promisify(Document.view)({\n id,\n token,\n })\n .then(document => {\n const {\n requests,\n field_invites,\n } = document;\n\n const {\n freeFormInvites = false,\n fieldInviteStatus = null,\n paymentRequestStatus = null,\n } = options;\n\n const emails = [];\n\n if (Object.keys(options).length === 0) {\n const fieldInvitesEmails = getSignerEmails(field_invites, 'email') || [];\n const freeFormInvitesEmails = getSignerEmails(requests, 'signer_email') || [];\n\n emails.push(...fieldInvitesEmails);\n emails.push(...freeFormInvitesEmails);\n }\n\n if (freeFormInvites) {\n const freeFomInvites = getSignerEmails(requests, 'signer_email') || [];\n\n emails.push(...freeFomInvites);\n }\n\n if (fieldInviteStatus) {\n const fieldInvites = getSignerEmails(field_invites, 'email', fieldInviteStatus) || [];\n const declined = getByDeclinedStatus(field_invites, fieldInviteStatus) || [];\n\n if (fieldInvites.length > 0) {\n emails.push(...fieldInvites);\n } else {\n emails.push(...fieldInvites);\n emails.push(...declined);\n }\n }\n\n if (paymentRequestStatus) {\n const paymentRequests = getSignerEmails(field_invites, 'email', paymentRequestStatus) || [];\n\n emails.push(...paymentRequests);\n }\n\n callback(null, [...new Set(emails)]);\n })\n .catch(err => callback(err));\n }\n}\n\nmodule.exports = Document;\n", - "static": true, - "longname": "/app/lib/document/index.js", - "access": "public", - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 49, - "kind": "class", - "name": "Document", - "memberof": "lib/document/index.js", - "static": true, - "longname": "lib/document/index.js~Document", - "access": "public", - "export": true, - "importPath": "@signnow/api-client/lib/document/index.js", - "importStyle": "Document", - "description": "Document methods", - "lineNumber": 21, - "interface": false - }, - { - "__docId__": 50, - "kind": "typedef", - "name": "DocumentCreateParams", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.DocumentCreateParams", - "access": "public", - "description": "Create document payload", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "filepath", - "description": "path to file to be uploaded" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "token", - "description": "your auth token" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentCreateParams" - } - }, - { - "__docId__": 51, - "kind": "typedef", - "name": "DocumentCreateResponse", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.DocumentCreateResponse", - "access": "public", - "description": "Create document response data", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "id", - "description": "an id of created document" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentCreateResponse" - } - }, - { - "__docId__": 52, - "kind": "method", - "name": "create", - "memberof": "lib/document/index.js~Document", - "generator": false, - "async": false, - "static": true, - "longname": "lib/document/index.js~Document.create", - "access": "public", - "description": "Uploads a file and creates a document.\nThis endpoint accepts .pdf, .doc, .docx, .odt, .rtf, .png, .jpg, .jpeg, .gif, .bmp, .xml, .xls, .xlsx, .ppt, .pptx file types", - "lineNumber": 42, - "params": [ - { - "nullable": null, - "types": [ - "DocumentCreateParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "create document payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: DocumentCreateResponse)" - ], - "spread": false, - "optional": true, - "name": "callback", - "description": "error first node.js callback" - } - ], - "return": null - }, - { - "__docId__": 53, - "kind": "typedef", - "name": "DocumentFieldExtractParams", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.DocumentFieldExtractParams", - "access": "public", - "description": "Upload document with field extract payload", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "filepath", - "description": "path to file to be uploaded" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "token", - "description": "your auth token" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentFieldExtractParams" - } - }, - { - "__docId__": 54, - "kind": "typedef", - "name": "DocumentFieldExtractResponse", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.DocumentFieldExtractResponse", - "access": "public", - "description": "Upload document with field extract response data", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "id", - "description": "an id of created document" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentFieldExtractResponse" - } - }, - { - "__docId__": 55, - "kind": "method", - "name": "fieldextract", - "memberof": "lib/document/index.js~Document", - "generator": false, - "async": false, - "static": true, - "longname": "lib/document/index.js~Document.fieldextract", - "access": "public", - "description": "Uploads a file that contains SignNow Document Field Tags.\nThis endpoint only accepts .pdf (you may convert the document from .doc or .docx to .pdf)", - "lineNumber": 110, - "params": [ - { - "nullable": null, - "types": [ - "DocumentFieldExtractParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "upload document with field extract payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: DocumentFieldExtractResponse)" - ], - "spread": false, - "optional": true, - "name": "callback", - "description": "error first node.js callback" - } - ], - "return": null - }, - { - "__docId__": 56, - "kind": "typedef", - "name": "DocumentListParams", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.DocumentListParams", - "access": "public", - "description": "Payload to receive user's document list", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "token", - "description": "your auth token" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentListParams" - } - }, - { - "__docId__": 57, - "kind": "typedef", - "name": "DocumentListItem", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.DocumentListItem", - "access": "public", - "description": "Document list response item", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "id", - "description": "id of specific document" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "user_id", - "description": "id of user that uploaded document" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "document_name", - "description": "name of document" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "page_count", - "description": "amount of pages in the document" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "created", - "description": "timestamp document was created" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "updated", - "description": "timestamp document was updated" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "original_filename", - "description": "original filename with document format (.pdf, .doc, etc...)" - }, - { - "nullable": true, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "origin_document_id", - "description": "an id of original document (if document is a copy)" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "owner", - "description": "email of document owner" - }, - { - "nullable": null, - "types": [ - "boolean" - ], - "spread": false, - "optional": false, - "name": "template", - "description": "is document a template or not" - }, - { - "nullable": true, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "origin_user_id", - "description": "id of user who created document" - }, - { - "nullable": null, - "types": [ - "DocumentThumbnails" - ], - "spread": false, - "optional": false, - "name": "thumbnail", - "description": "thumbnail urls with different sizes (small, medium, large)" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "signatures", - "description": "signature signed elements" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "texts", - "description": "text and enumeration filled elements" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "checks", - "description": "checkbox checked elements" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "tags", - "description": "field types document contains" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "fields", - "description": "all document fillable fields" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "requests", - "description": "requests for signing document" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "roles", - "description": "document signer roles" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "field_invites", - "description": "sent invites data" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "version_time", - "description": "document updated timestamp" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "enumeration_options", - "description": "dropdown options" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "attachments", - "description": "attachments in document" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "routing_details", - "description": "signing steps routing details" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "integrations", - "description": "document integrations" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "hyperlinks", - "description": "document hyperlinks" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "radiobuttons", - "description": "checked radiobuttons after document was signed" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "document_group_template_info", - "description": "document group templates data" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "document_group_info", - "description": "document group template's data" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "originator_organization_settings", - "description": "specific organization settings for document" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "field_validators", - "description": "validation rules for fields (date fields, payment fields etc.)" - }, - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "settings", - "description": "specific document settings" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentListItem" - } - }, - { - "__docId__": 58, - "kind": "typedef", - "name": "DocumentListResponse", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.DocumentListResponse", - "access": "public", - "description": "User's Document list response", - "type": { - "types": [ - "DocumentListItem[]" - ], - "optional": false, - "name": "DocumentListResponse" - } - }, - { - "__docId__": 59, - "kind": "method", - "name": "list", - "memberof": "lib/document/index.js~Document", - "generator": false, - "async": false, - "static": true, - "longname": "lib/document/index.js~Document.list", - "access": "public", - "description": "Retrieve user's document list", - "lineNumber": 212, - "params": [ - { - "nullable": null, - "types": [ - "DocumentListParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "payload to receive user's document list" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: DocumentListItem)" - ], - "spread": false, - "optional": true, - "name": "callback", - "description": "error first node.js callback" - } - ], - "return": null - }, - { - "__docId__": 60, - "kind": "typedef", - "name": "DocumentViewParams", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.DocumentViewParams", - "access": "public", - "description": "Document view payload", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "id", - "description": "id of specific document" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "token", - "description": "your auth token" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentViewParams" - } - }, - { - "__docId__": 61, - "kind": "typedef", - "name": "DocumentThumbnails", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.DocumentThumbnails", - "access": "public", - "description": "Document thumbnail urls with different sizes (small, medium, large)", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "large", - "description": "" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "medium", - "description": "" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "small", - "description": "" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentThumbnails" - } - }, - { - "__docId__": 62, - "kind": "typedef", - "name": "DocumentViewResponse", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.DocumentViewResponse", - "access": "public", - "description": "Document view response of specific document", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "id", - "description": "id of specific document" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "user_id", - "description": "id of user that uploaded document" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "document_name", - "description": "name of document" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "page_count", - "description": "amount of pages in the document" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "created", - "description": "timestamp document was created" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "updated", - "description": "timestamp document was updated" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "original_filename", - "description": "original filename with document format (.pdf, .doc, etc...)" - }, - { - "nullable": true, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "origin_document_id", - "description": "an id of original document (if document is a copy)" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "owner", - "description": "email of document owner" - }, - { - "nullable": null, - "types": [ - "boolean" - ], - "spread": false, - "optional": false, - "name": "template", - "description": "is document a template or not" - }, - { - "nullable": null, - "types": [ - "DocumentThumbnails" - ], - "spread": false, - "optional": false, - "name": "thumbnail", - "description": "thumbnail urls with different sizes (small, medium, large)" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "signatures", - "description": "signature signed elements" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "texts", - "description": "text and enumeration filled elements" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "checks", - "description": "checkbox checked elements" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "tags", - "description": "field types document contains" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "fields", - "description": "all document fillable fields" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "requests", - "description": "requests for signing document" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "roles", - "description": "document signer roles" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "field_invites", - "description": "sent invites data" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "version_time", - "description": "document updated timestamp" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "enumeration_options", - "description": "dropdown options" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "attachments", - "description": "attachments in document" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "routing_details", - "description": "signing steps routing details" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "integrations", - "description": "document integrations" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "hyperlinks", - "description": "document hyperlinks" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "radiobuttons", - "description": "checked radiobuttons after document was signed" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "document_group_template_info", - "description": "document group template's data" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "document_group_info", - "description": "document group's data" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "originator_organization_settings", - "description": "specific organization settings for document" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "field_validators", - "description": "validation rules for fields (date fields, payment fields etc.)" - }, - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "settings", - "description": "specific document settings" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "parent_id", - "description": "id of document folder" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "originator_logo", - "description": "logo url" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "pages", - "description": "list of document pages with page sources and page size." - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentViewResponse" - } - }, - { - "__docId__": 63, - "kind": "method", - "name": "view", - "memberof": "lib/document/index.js~Document", - "generator": false, - "async": false, - "static": true, - "longname": "lib/document/index.js~Document.view", - "access": "public", - "description": "Retrieves a document detailed data", - "lineNumber": 285, - "params": [ - { - "nullable": null, - "types": [ - "DocumentViewParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "view document details payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: DocumentViewResponse)" - ], - "spread": false, - "optional": true, - "name": "callback", - "description": "error first node.js callback" - } - ], - "return": null - }, - { - "__docId__": 64, - "kind": "typedef", - "name": "SignatureField", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.SignatureField", - "access": "public", - "description": "", - "properties": [ - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "page_number", - "description": "page number of document" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "type", - "description": "type of field (signature)" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "name", - "description": "unique name of the field" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "role", - "description": "role name" - }, - { - "nullable": null, - "types": [ - "boolean" - ], - "spread": false, - "optional": false, - "name": "required", - "description": "required field" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "height", - "description": "height of the field" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "width", - "description": "width of the field" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "x", - "description": "X coordinate of the field" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "y", - "description": "Y coordinate of the field" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "label", - "description": "field label" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "SignatureField" - } - }, - { - "__docId__": 65, - "kind": "typedef", - "name": "InitialsField", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.InitialsField", - "access": "public", - "description": "", - "properties": [ - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "page_number", - "description": "page number of document" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "type", - "description": "type of field (initials)" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "name", - "description": "unique name of the field" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "role", - "description": "role name" - }, - { - "nullable": null, - "types": [ - "boolean" - ], - "spread": false, - "optional": false, - "name": "required", - "description": "required field" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "height", - "description": "height of the field" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "width", - "description": "width of the field" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "x", - "description": "X coordinate of the field" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "y", - "description": "Y coordinate of the field" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "label", - "description": "field label" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "InitialsField" - } - }, - { - "__docId__": 66, - "kind": "typedef", - "name": "TextField", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.TextField", - "access": "public", - "description": "", - "properties": [ - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "page_number", - "description": "page number of document" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "type", - "description": "type of field (text)" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "name", - "description": "unique name of the field" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "role", - "description": "role name" - }, - { - "nullable": null, - "types": [ - "boolean" - ], - "spread": false, - "optional": false, - "name": "required", - "description": "required field" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "height", - "description": "height of the field" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "width", - "description": "width of the field" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "x", - "description": "X coordinate of the field" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "y", - "description": "Y coordinate of the field" - }, - { - "nullable": null, - "types": [ - "string", - "number" - ], - "spread": false, - "optional": true, - "name": "prefilled_text", - "description": "prefilled field value" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "validator_id", - "description": "field value validator ID" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "label", - "description": "field label" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "TextField" - } - }, - { - "__docId__": 67, - "kind": "typedef", - "name": "CheckField", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.CheckField", - "access": "public", - "description": "", - "properties": [ - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "page_number", - "description": "page number of document" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "type", - "description": "type of field (checkbox)" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "name", - "description": "unique name of the field" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "role", - "description": "role name" - }, - { - "nullable": null, - "types": [ - "boolean" - ], - "spread": false, - "optional": false, - "name": "required", - "description": "required field" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "height", - "description": "height of the field" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "width", - "description": "width of the field" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "x", - "description": "X coordinate of the field" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "y", - "description": "Y coordinate of the field" - }, - { - "nullable": null, - "types": [ - "boolean" - ], - "spread": false, - "optional": true, - "name": "prefilled_text", - "description": "prefilled field value" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "label", - "description": "field label" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "CheckField" - } - }, - { - "__docId__": 68, - "kind": "typedef", - "name": "EnumerationField", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.EnumerationField", - "access": "public", - "description": "", - "properties": [ - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "page_number", - "description": "page number of document" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "type", - "description": "type of field (enumeration)" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "name", - "description": "unique name of the field" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "role", - "description": "role name" - }, - { - "nullable": null, - "types": [ - "boolean" - ], - "spread": false, - "optional": false, - "name": "required", - "description": "required field" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "height", - "description": "height of the field" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "width", - "description": "width of the field" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "x", - "description": "X coordinate of the field" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "y", - "description": "Y coordinate of the field" - }, - { - "nullable": null, - "types": [ - "Array" - ], - "spread": false, - "optional": false, - "name": "enumeration_options", - "description": "choice options of enumerable field" - }, - { - "nullable": null, - "types": [ - "string", - "number" - ], - "spread": false, - "optional": true, - "name": "prefilled_text", - "description": "prefilled field value" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "label", - "description": "field label" - }, - { - "nullable": null, - "types": [ - "boolean" - ], - "spread": false, - "optional": true, - "defaultValue": "false", - "defaultRaw": false, - "name": "custom_defined_option", - "description": "if 'true' user can change values, if 'false' user can only read" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "EnumerationField" - } - }, - { - "__docId__": 69, - "kind": "typedef", - "name": "RadioButton", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.RadioButton", - "access": "public", - "description": "", - "properties": [ - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "page_number", - "description": "page number of document" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "height", - "description": "height of the field" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "width", - "description": "width of the field" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "x", - "description": "X coordinate of the field" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "y", - "description": "Y coordinate of the field" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "value", - "description": "value of radio button" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "checked", - "description": "radio button check status" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "created", - "description": "redio button creation timestamp" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "RadioButton" - } - }, - { - "__docId__": 70, - "kind": "typedef", - "name": "RadioButtonField", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.RadioButtonField", - "access": "public", - "description": "", - "properties": [ - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "page_number", - "description": "page number of document" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "type", - "description": "type of field (radiobutton)" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "name", - "description": "unique name of the field" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "role", - "description": "role name" - }, - { - "nullable": null, - "types": [ - "boolean" - ], - "spread": false, - "optional": false, - "name": "required", - "description": "required field" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "height", - "description": "height of the field" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "width", - "description": "width of the field" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "x", - "description": "X coordinate of the field" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "y", - "description": "Y coordinate of the field" - }, - { - "nullable": null, - "types": [ - "RadioButton[]" - ], - "spread": false, - "optional": false, - "name": "radio", - "description": "array of radio buttons" - }, - { - "nullable": null, - "types": [ - "string", - "number" - ], - "spread": false, - "optional": true, - "name": "prefilled_text", - "description": "prefilled field value" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "label", - "description": "field label" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "RadioButtonField" - } - }, - { - "__docId__": 71, - "kind": "typedef", - "name": "FormulaTreeBranchTerminator", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.FormulaTreeBranchTerminator", - "access": "public", - "description": "", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "term", - "description": "name of field which will participate in calculation formula" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "FormulaTreeBranchTerminator" - } - }, - { - "__docId__": 72, - "kind": "typedef", - "name": "FormulaTreeBranch", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.FormulaTreeBranch", - "access": "public", - "description": "", - "properties": [ - { - "nullable": null, - "types": [ - "FormulaTree" - ], - "spread": false, - "optional": false, - "name": "term", - "description": "a part of formula parsed into tree" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "FormulaTreeBranch" - } - }, - { - "__docId__": 73, - "kind": "typedef", - "name": "FormulaTree", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.FormulaTree", - "access": "public", - "description": "", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "operator", - "description": "arithmetic operator's token" - }, - { - "nullable": null, - "types": [ - "FormulaTreeBranch", - "FormulaTreeBranchTerminator" - ], - "spread": false, - "optional": false, - "name": "left", - "description": "left branch of formula tree" - }, - { - "nullable": null, - "types": [ - "FormulaTreeBranch", - "FormulaTreeBranchTerminator" - ], - "spread": false, - "optional": false, - "name": "right", - "description": "right branch of formula tree" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "FormulaTree" - } - }, - { - "__docId__": 74, - "kind": "typedef", - "name": "CalculatedField", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.CalculatedField", - "access": "public", - "description": "", - "properties": [ - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "page_number", - "description": "page number of document" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "type", - "description": "type of field (text)" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "name", - "description": "unique name of the field" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "role", - "description": "role name" - }, - { - "nullable": null, - "types": [ - "boolean" - ], - "spread": false, - "optional": false, - "name": "required", - "description": "required field" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "height", - "description": "height of the field" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "width", - "description": "width of the field" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "x", - "description": "X coordinate of the field" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "y", - "description": "Y coordinate of the field" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "formula", - "description": "arithmetic formula, e.g. 'TextName+EnumerationName'" - }, - { - "nullable": null, - "types": [ - "FormulaTree" - ], - "spread": false, - "optional": false, - "name": "calculation_formula", - "description": "formula parsed into tree" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "calculation_precision", - "description": "calculation precision" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "label", - "description": "field label" - }, - { - "nullable": null, - "types": [ - "boolean" - ], - "spread": false, - "optional": true, - "defaultValue": "false", - "defaultRaw": false, - "name": "custom_defined_option", - "description": "if 'true' user can change values, if 'false' user can only read" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "CalculatedField" - } - }, - { - "__docId__": 75, - "kind": "typedef", - "name": "AttachmentField", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.AttachmentField", - "access": "public", - "description": "", - "properties": [ - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "page_number", - "description": "page number of document" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "type", - "description": "type of field (attachment)" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "name", - "description": "unique name of the field" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "role", - "description": "role name" - }, - { - "nullable": null, - "types": [ - "boolean" - ], - "spread": false, - "optional": false, - "name": "required", - "description": "required field" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "height", - "description": "height of the field" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "width", - "description": "width of the field" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "x", - "description": "X coordinate of the field" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "y", - "description": "Y coordinate of the field" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "label", - "description": "field label" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "AttachmentField" - } - }, - { - "__docId__": 76, - "kind": "typedef", - "name": "DocumentFields", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.DocumentFields", - "access": "public", - "description": "", - "properties": [ - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "client_timestamp", - "description": "local time of user" - }, - { - "nullable": null, - "types": [ - "Array" - ], - "spread": false, - "optional": false, - "name": "fields", - "description": "all types of fields" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentFields" - } - }, - { - "__docId__": 77, - "kind": "typedef", - "name": "DocumentUpdateParams", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.DocumentUpdateParams", - "access": "public", - "description": "Update document payload", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "id", - "description": "id of specific document" - }, - { - "nullable": null, - "types": [ - "DocumentFields" - ], - "spread": false, - "optional": false, - "name": "fields", - "description": "set of fields" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "token", - "description": "your auth token" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentUpdateParams" - } - }, - { - "__docId__": 78, - "kind": "typedef", - "name": "DocumentUpdateResponse", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.DocumentUpdateResponse", - "access": "public", - "description": "Update document response data", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "id", - "description": "an id of document" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "signatures", - "description": "signature and initial elements" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "texts", - "description": "text and enumeration elements" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "checks", - "description": "checkbox elements" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "attachments", - "description": "attachment elements" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "radiobuttons", - "description": "radiobutton elements" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentUpdateResponse" - } - }, - { - "__docId__": 79, - "kind": "method", - "name": "update", - "memberof": "lib/document/index.js~Document", - "generator": false, - "async": false, - "static": true, - "longname": "lib/document/index.js~Document.update", - "access": "public", - "description": "Updates an existing document.\nAdds fields (signature, text, initials, checkbox, radiobutton group, calculated) and elements (signature, text, check).\nEvery call of this method will add only specified fields into document.\nOld fields will be removed", - "lineNumber": 485, - "params": [ - { - "nullable": null, - "types": [ - "DocumentUpdateParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "update document request payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: DocumentUpdateResponse)" - ], - "spread": false, - "optional": true, - "name": "callback", - "description": "error first node.js callback" - } - ], - "return": null - }, - { - "__docId__": 80, - "kind": "typedef", - "name": "DocumentDownloadOptions", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.DocumentDownloadOptions", - "access": "public", - "description": "Download document optional settings", - "properties": [ - { - "nullable": null, - "types": [ - "boolean" - ], - "spread": false, - "optional": true, - "defaultValue": "false", - "defaultRaw": false, - "name": "withAttachments", - "description": "if true document will be downloaded as zip package with its attachments" - }, - { - "nullable": null, - "types": [ - "boolean" - ], - "spread": false, - "optional": true, - "defaultValue": "false", - "defaultRaw": false, - "name": "withHistory", - "description": "if true document will be downloaded with history" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentDownloadOptions" - } - }, - { - "__docId__": 81, - "kind": "typedef", - "name": "DocumentDownloadParams", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.DocumentDownloadParams", - "access": "public", - "description": "Document download payload", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "id", - "description": "id of specific document" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "token", - "description": "your auth token" - }, - { - "nullable": null, - "types": [ - "DocumentDownloadOptions" - ], - "spread": false, - "optional": false, - "name": "options", - "description": "download document optional settings" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentDownloadParams" - } - }, - { - "__docId__": 82, - "kind": "typedef", - "name": "DocumentDownloadResponse", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.DocumentDownloadResponse", - "access": "public", - "description": "Document binary data", - "type": { - "types": [ - "Buffer" - ], - "optional": false, - "name": "DocumentDownloadResponse" - } - }, - { - "__docId__": 83, - "kind": "method", - "name": "download", - "memberof": "lib/document/index.js~Document", - "generator": false, - "async": false, - "static": true, - "longname": "lib/document/index.js~Document.download", - "access": "public", - "description": "Downloads document with embedded fields and elements.\nBy default document is downloaded without history. To download document with history set `withHistory` option to `true`.", - "lineNumber": 536, - "params": [ - { - "nullable": null, - "types": [ - "DocumentDownloadParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "download document request payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: DocumentDownloadResponse)" - ], - "spread": false, - "optional": true, - "name": "callback", - "description": "error first node.js callback" - } - ], - "return": null - }, - { - "__docId__": 84, - "kind": "typedef", - "name": "DocumentShareParams", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.DocumentShareParams", - "access": "public", - "description": "Document share payload", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "id", - "description": "id of specific document" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "token", - "description": "your auth token" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentShareParams" - } - }, - { - "__docId__": 85, - "kind": "typedef", - "name": "DocumentShareResponse", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.DocumentShareResponse", - "access": "public", - "description": "Document share response data", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "link", - "description": "link to download specified document in PDF format" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentShareResponse" - } - }, - { - "__docId__": 86, - "kind": "method", - "name": "share", - "memberof": "lib/document/index.js~Document", - "generator": false, - "async": false, - "static": true, - "longname": "lib/document/index.js~Document.share", - "access": "public", - "description": "Requests a link to download document with embedded fields and elements\nLink can be used once and then will expire", - "lineNumber": 582, - "params": [ - { - "nullable": null, - "types": [ - "DocumentShareParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "share document request payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: DocumentShareResponse)" - ], - "spread": false, - "optional": true, - "name": "callback", - "description": "error first node.js callback" - } - ], - "return": null - }, - { - "__docId__": 87, - "kind": "typedef", - "name": "SignerSettings", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.SignerSettings", - "access": "public", - "description": "Document invite signer settings", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "email", - "description": "signer's email" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "role", - "description": "role name" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "role_id", - "description": "role unique id (can be discovered in document details)" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "order", - "description": "role signing order" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "reassign", - "description": "allow reassign signer" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "decline_by_signature", - "description": "signer can decline invite" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "reminder", - "description": "remind via email in days" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "expiration_days", - "description": "expiration of invite in days" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "subject", - "description": "specify subject of email" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "message", - "description": "specify body of email" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "SignerSettings" - } - }, - { - "__docId__": 88, - "kind": "typedef", - "name": "DocumentInviteSettings", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.DocumentInviteSettings", - "access": "public", - "description": "Document invite settings", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "from", - "description": "email of sender" - }, - { - "nullable": null, - "types": [ - "SignerSettings[]", - "string" - ], - "spread": false, - "optional": false, - "name": "to", - "description": "array of signers or email of single signer" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "document_id", - "description": "an id of document" - }, - { - "nullable": null, - "types": [ - "string[]" - ], - "spread": false, - "optional": true, - "name": "cc", - "description": "array with emails of copy receivers" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "subject", - "description": "specify subject of email" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "message", - "description": "specify body of email" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "on_complete", - "description": "on signing complete action" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentInviteSettings" - } - }, - { - "__docId__": 89, - "kind": "typedef", - "name": "DocumentInviteOptions", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.DocumentInviteOptions", - "access": "public", - "description": "Document invite optional settings", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "email", - "description": "ability to disable invitation by email. to disable email assign value 'disable'" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentInviteOptions" - } - }, - { - "__docId__": 90, - "kind": "typedef", - "name": "DocumentInviteParams", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.DocumentInviteParams", - "access": "public", - "description": "Create document invite payload", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "id", - "description": "an id of document" - }, - { - "nullable": null, - "types": [ - "DocumentInviteSettings" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "document invite settings" - }, - { - "nullable": null, - "types": [ - "DocumentInviteOptions" - ], - "spread": false, - "optional": true, - "name": "options", - "description": "document invite optional settings" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "token", - "description": "your auth token" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentInviteParams" - } - }, - { - "__docId__": 91, - "kind": "typedef", - "name": "DocumentFieldInviteResponse", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.DocumentFieldInviteResponse", - "access": "public", - "description": "Create document field invite response data", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "status", - "description": "status of invitation, e.g. 'success'" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentFieldInviteResponse" - } - }, - { - "__docId__": 92, - "kind": "typedef", - "name": "DocumentFreeformInviteResponse", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.DocumentFreeformInviteResponse", - "access": "public", - "description": "Create document free form invite response data", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "result", - "description": "free form invitation result, e.g. 'success'" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "id", - "description": "unique id of invite" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "callback_url", - "description": "url for front-end redirect or 'none'" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentFreeformInviteResponse" - } - }, - { - "__docId__": 93, - "kind": "typedef", - "name": "DocumentInviteResponse", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.DocumentInviteResponse", - "access": "public", - "description": "Create document invite response data", - "type": { - "types": [ - "DocumentFieldInviteResponse", - "DocumentFreeformInviteResponse" - ], - "optional": false, - "name": "DocumentInviteResponse" - } - }, - { - "__docId__": 94, - "kind": "method", - "name": "invite", - "memberof": "lib/document/index.js~Document", - "generator": false, - "async": false, - "static": true, - "longname": "lib/document/index.js~Document.invite", - "access": "public", - "description": "Creates an invite to sign a document.\nYou can create a simple free form invite(s) or a role-based invite(s).", - "lineNumber": 663, - "params": [ - { - "nullable": null, - "types": [ - "DocumentInviteParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "create document invite payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: DocumentInviteResponse)" - ], - "spread": false, - "optional": true, - "name": "callback", - "description": "error first node.js callback" - } - ], - "return": null - }, - { - "__docId__": 95, - "kind": "typedef", - "name": "CancelFreeformInviteParams", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.CancelFreeformInviteParams", - "access": "public", - "description": "Cancel freeform invite payload", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "id", - "description": "unique id of invite" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "token", - "description": "your auth token" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "CancelFreeformInviteParams" - } - }, - { - "__docId__": 96, - "kind": "typedef", - "name": "CancelFreeformInviteResponse", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.CancelFreeformInviteResponse", - "access": "public", - "description": "Cancel freeform invite response data", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "id", - "description": "unique id of invite" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "CancelFreeformInviteResponse" - } - }, - { - "__docId__": 97, - "kind": "method", - "name": "cancelFreeFormInvite", - "memberof": "lib/document/index.js~Document", - "generator": false, - "async": false, - "static": true, - "longname": "lib/document/index.js~Document.cancelFreeFormInvite", - "access": "public", - "description": "Cancels sent freeform invite", - "lineNumber": 715, - "params": [ - { - "nullable": null, - "types": [ - "CancelFreeformInviteParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "cancel freeform invite payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: CancelFreeformInviteResponse)" - ], - "spread": false, - "optional": true, - "name": "callback", - "description": "error first node.js callback" - } - ], - "return": null - }, - { - "__docId__": 98, - "kind": "typedef", - "name": "DocumentFieldInviteCancelParams", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.DocumentFieldInviteCancelParams", - "access": "public", - "description": "Cancel document field invite payload", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "id", - "description": "an id of document" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "token", - "description": "your auth token" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentFieldInviteCancelParams" - } - }, - { - "__docId__": 99, - "kind": "typedef", - "name": "DocumentFieldInviteCancelResponse", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.DocumentFieldInviteCancelResponse", - "access": "public", - "description": "Cancel document field invite response data", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "status", - "description": "status of field invite cancellation, e.g. 'success'" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentFieldInviteCancelResponse" - } - }, - { - "__docId__": 100, - "kind": "method", - "name": "cancelFieldInvite", - "memberof": "lib/document/index.js~Document", - "generator": false, - "async": false, - "static": true, - "longname": "lib/document/index.js~Document.cancelFieldInvite", - "access": "public", - "description": "Cancels an invite to a document", - "lineNumber": 747, - "params": [ - { - "nullable": null, - "types": [ - "DocumentFieldInviteCancelParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "cancel field invite payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: DocumentFieldInviteCancelResponse)" - ], - "spread": false, - "optional": true, - "name": "callback", - "description": "error first node.js callback" - } - ], - "return": null - }, - { - "__docId__": 101, - "kind": "method", - "name": "cancelInvite", - "memberof": "lib/document/index.js~Document", - "generator": false, - "async": false, - "static": true, - "longname": "lib/document/index.js~Document.cancelInvite", - "access": "public", - "description": "Cancels an invite to a document", - "lineNumber": 767, - "deprecated": "use Document.cancelFieldInvite instead of this", - "params": [ - { - "nullable": null, - "types": [ - "DocumentFieldInviteCancelParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "cancel field invite payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: DocumentFieldInviteCancelResponse)" - ], - "spread": false, - "optional": true, - "name": "callback", - "description": "error first node.js callback" - } - ], - "return": null - }, - { - "__docId__": 102, - "kind": "typedef", - "name": "DocumentMergeOptions", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.DocumentMergeOptions", - "access": "public", - "description": "Merge documents optional settings", - "properties": [ - { - "nullable": null, - "types": [ - "boolean" - ], - "spread": false, - "optional": true, - "defaultValue": "false", - "defaultRaw": false, - "name": "removeOriginalDocuments", - "description": "if true original documents will be removed" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentMergeOptions" - } - }, - { - "__docId__": 103, - "kind": "typedef", - "name": "DocumentMergeParams", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.DocumentMergeParams", - "access": "public", - "description": "Merge documents payload", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "token", - "description": "your auth token" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "name", - "description": "new name for merged document" - }, - { - "nullable": null, - "types": [ - "string[]" - ], - "spread": false, - "optional": false, - "name": "document_ids", - "description": "an array of document IDs" - }, - { - "nullable": null, - "types": [ - "DocumentMergeOptions" - ], - "spread": false, - "optional": false, - "name": "options", - "description": "merge documents optional settings" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentMergeParams" - } - }, - { - "__docId__": 104, - "kind": "typedef", - "name": "DocumentMergeResponse", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.DocumentMergeResponse", - "access": "public", - "description": "Merge documents response data", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "document_id", - "description": "an ID of merged document" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentMergeResponse" - } - }, - { - "__docId__": 105, - "kind": "method", - "name": "merge", - "memberof": "lib/document/index.js~Document", - "generator": false, - "async": false, - "static": true, - "longname": "lib/document/index.js~Document.merge", - "access": "public", - "description": "Merges existing documents into one.\nBy default original documents are not removed after merging. To remove original documents set `removeOriginalDocuments` option to `true`.", - "lineNumber": 801, - "params": [ - { - "nullable": null, - "types": [ - "DocumentMergeParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "merge documents payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: DocumentMergeResponse)" - ], - "spread": false, - "optional": true, - "name": "originalCallback", - "description": "error first node.js callback" - } - ], - "return": null - }, - { - "__docId__": 106, - "kind": "typedef", - "name": "DocumentHistoryParams", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.DocumentHistoryParams", - "access": "public", - "description": "Document history payload", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "id", - "description": "id of specific document" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "token", - "description": "your auth token" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentHistoryParams" - } - }, - { - "__docId__": 107, - "kind": "typedef", - "name": "DocumentEvent", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.DocumentEvent", - "access": "public", - "description": "Document action log item", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "client_app_name", - "description": "name of a client application" - }, - { - "nullable": true, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "client_timestamp", - "description": "client application timestamp" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "created", - "description": "timestamp of action creation" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "email", - "description": "email of an actor" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "event", - "description": "name of event" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "ip_address", - "description": "actor's IP address" - }, - { - "nullable": true, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "element_id", - "description": "an ID of specific element" - }, - { - "nullable": true, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "field_id", - "description": "an ID of specific field" - }, - { - "nullable": true, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "json_attributes", - "description": "field attributes (e.g. font, style, size etc.)" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "document_id", - "description": "an ID of specific document" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "origin", - "description": "an origin of document" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "unique_id", - "description": "an ID of event" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "user_agent", - "description": "user agent" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "user_id", - "description": "id of an actor" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "version", - "description": "version of signed document (incremented after each signature addition)" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentEvent" - } - }, - { - "__docId__": 108, - "kind": "typedef", - "name": "DocumentHistoryResponse", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.DocumentHistoryResponse", - "access": "public", - "description": "Document history response data", - "type": { - "types": [ - "DocumentEvent[]" - ], - "optional": false, - "name": "DocumentHistoryResponse" - } - }, - { - "__docId__": 109, - "kind": "method", - "name": "history", - "memberof": "lib/document/index.js~Document", - "generator": false, - "async": false, - "static": true, - "longname": "lib/document/index.js~Document.history", - "access": "public", - "description": "Retrieves a document action log (history) data", - "lineNumber": 913, - "params": [ - { - "nullable": null, - "types": [ - "DocumentHistoryParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: DocumentHistoryResponse)" - ], - "spread": false, - "optional": true, - "name": "callback", - "description": "error first node.js callback" - } - ], - "return": null - }, - { - "__docId__": 110, - "kind": "typedef", - "name": "DocumentRemoveOptions", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.DocumentRemoveOptions", - "access": "public", - "description": "Document remove optional settings", - "properties": [ - { - "nullable": null, - "types": [ - "boolean" - ], - "spread": false, - "optional": true, - "defaultValue": "false", - "defaultRaw": false, - "name": "cancelInvites", - "description": "ability to cancel all document invites during deletion" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentRemoveOptions" - } - }, - { - "__docId__": 111, - "kind": "typedef", - "name": "DocumentRemoveParams", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.DocumentRemoveParams", - "access": "public", - "description": "Remove document payload", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "id", - "description": "id of specific document" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "token", - "description": "your auth token" - }, - { - "nullable": null, - "types": [ - "DocumentRemoveOptions" - ], - "spread": false, - "optional": true, - "name": "options", - "description": "document remove optional settings" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentRemoveParams" - } - }, - { - "__docId__": 112, - "kind": "typedef", - "name": "DocumentRemoveResponse", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.DocumentRemoveResponse", - "access": "public", - "description": "Remove document response data", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "status", - "description": "status of deletion, e.g. 'success'" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentRemoveResponse" - } - }, - { - "__docId__": 113, - "kind": "method", - "name": "remove", - "memberof": "lib/document/index.js~Document", - "generator": false, - "async": false, - "static": true, - "longname": "lib/document/index.js~Document.remove", - "access": "public", - "description": "Removes a specified document from folder", - "lineNumber": 952, - "params": [ - { - "nullable": null, - "types": [ - "DocumentRemoveParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "remove document payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: DocumentRemoveResponse)" - ], - "spread": false, - "optional": true, - "name": "originalCallback", - "description": "error first node.js callback" - } - ], - "return": null - }, - { - "__docId__": 114, - "kind": "typedef", - "name": "DocumentSignersOptions", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.DocumentSignersOptions", - "access": "public", - "description": "Get Document Signers optional settings", - "properties": [ - { - "nullable": null, - "types": [ - "boolean" - ], - "spread": false, - "optional": true, - "defaultValue": "true", - "defaultRaw": true, - "name": "allSignatures", - "description": "if true receive all document signers email" - }, - { - "nullable": null, - "types": [ - "boolean" - ], - "spread": false, - "optional": true, - "defaultValue": "false", - "defaultRaw": false, - "name": "freeFormInvites", - "description": "if `true` return free from invite signer emails" - }, - { - "nullable": true, - "types": [ - "string[]" - ], - "spread": false, - "optional": true, - "defaultValue": "null", - "defaultRaw": null, - "name": "fieldInvitesStatus", - "description": "return signers according to specified field invite status(es)\nAccepts list of statuses or a single status.\nAcceptable statuses: all, pending, declined, fulfilled, created, skipped." - }, - { - "nullable": true, - "types": [ - "string[]" - ], - "spread": false, - "optional": true, - "defaultValue": "null", - "defaultRaw": null, - "name": "paymentRequestsStatus", - "description": "return signers according to specified to payment request status(es)\nAccepts list of statuses or a single status.\nAvailable statuses: all, pending, fulfilled, created, skipped." - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentSignersOptions" - } - }, - { - "__docId__": 115, - "kind": "typedef", - "name": "DocumentSignersParams", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.DocumentSignersParams", - "access": "public", - "description": "Get Document Signers payload", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "id", - "description": "id of specific document" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "token", - "description": "your auth token" - }, - { - "nullable": null, - "types": [ - "DocumentSignersOptions" - ], - "spread": false, - "optional": true, - "name": "options", - "description": "document signers optional settings," - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentSignersParams" - } - }, - { - "__docId__": 116, - "kind": "typedef", - "name": "DocumentSignersResponse", - "memberof": "lib/document/index.js~Document", - "static": true, - "longname": "lib/document/index.js~Document.DocumentSignersResponse", - "access": "public", - "description": "Get Document Signers response data", - "properties": [ - { - "nullable": null, - "types": [ - "string[]" - ], - "spread": false, - "optional": false, - "name": "-", - "description": "emails of document signers" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentSignersResponse" - } - }, - { - "__docId__": 117, - "kind": "method", - "name": "signers", - "memberof": "lib/document/index.js~Document", - "generator": false, - "async": false, - "static": true, - "longname": "lib/document/index.js~Document.signers", - "access": "public", - "description": "Retrieves all signers of specific document", - "lineNumber": 1065, - "experimental": "this class includes breaking change.", - "params": [ - { - "nullable": null, - "types": [ - "DocumentSignersParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "get document signers payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: DocumentSignersResponse)" - ], - "spread": false, - "optional": true, - "name": "callback", - "description": "error first node.js callback" - } - ], - "return": null - }, - { - "__docId__": 118, - "kind": "file", - "name": "lib/document-group/index.js", - "content": "'use strict';\n\nconst https = require('https');\nconst {\n responseHandler,\n errorHandler,\n buildRequestOptions,\n} = require('../common');\nconst { view } = require('../document');\nconst { duplicate } = require('../template');\n\n/**\n * @type {function}\n * @param {DocumentViewParams} data - view document with field extract payload\n * @return {Promise}\n */\nconst getDocumentDetails = ({ id, token }) => new Promise((resolve, reject) => {\n view({\n id,\n token,\n }, (err, res) => {\n if (err) {\n reject(err);\n } else {\n resolve(res);\n }\n });\n});\n\n/**\n * @type {function}\n * @param {DocumentViewResponse} document\n * @return {boolean} is there any field invite in given document\n */\nconst hasFieldInvites = document => document.field_invites.length > 0;\n\n/**\n * @type {function}\n * @param {DocumentViewResponse} document\n * @return {boolean} is document a template or not\n */\nconst isTemplate = document => document.template === true;\n\n/**\n * @type {function}\n * @param {TemplateDuplicateParams} data - duplicate template payload\n * @return {Promise} resolves with id of new document\n */\nconst makeDocumentFromTemplate = ({ id, token }) => new Promise((resolve, reject) => {\n duplicate({\n id,\n token,\n }, (err, res) => {\n if (err) {\n reject(err);\n } else {\n resolve(res.id);\n }\n });\n});\n\n\n/**\n * Document Group methods\n */\nclass DocumentGroup {\n\n /**\n * Create document group payload\n * @typedef {Object} DocumentGroupCreateParams\n * @property {string} token - your auth token\n * @property {string[]} ids - array of document or template ids for document group creation\n * @property {string} group_name - new name of document group\n */\n\n /**\n * Create document group response data\n * @typedef {Object} DocumentGroupCreateResponse\n * @property {string} id - document group unique id\n */\n\n /**\n * Creates document group with specified documents or templates.\n * At least one document or template must contain fields. Documents should not contain pending invites.\n * @param {DocumentGroupCreateParams} data - create document group payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupCreateResponse)} [callback] - error first node.js callback\n */\n static create ({\n token,\n ids,\n group_name,\n }, callback) {\n const realDocumentIDs = ids\n .map(id => {\n return getDocumentDetails({\n id,\n token,\n })\n .then(document => {\n if (isTemplate(document)) {\n return makeDocumentFromTemplate({\n id,\n token,\n });\n } else if (hasFieldInvites(document)) {\n throw new Error('Document in the group must have no pending invites');\n } else {\n return id;\n }\n });\n });\n\n Promise.all(realDocumentIDs)\n .then(document_ids => {\n const JSONData = JSON.stringify({\n document_ids,\n group_name,\n });\n\n const req = https\n .request(buildRequestOptions({\n method: 'POST',\n path: '/documentgroup',\n authorization: {\n type: 'Bearer',\n token,\n },\n headers: {\n 'Content-Type': 'application/json',\n 'Content-Length': Buffer.byteLength(JSONData),\n },\n }), responseHandler(callback))\n .on('error', errorHandler(callback));\n\n req.write(JSONData);\n req.end();\n })\n .catch(err => {\n callback(err.message);\n return;\n });\n }\n\n /**\n * Document Group view payload\n * @typedef {Object} DocumentGroupViewParams\n * @property {string} id - id of specific Document Group\n * @property {string} token - your auth token\n */\n\n /**\n * Details of single Document in group\n * @typedef {Object} DocumentGroupItem\n * @property {string} id - an ID of Document\n * @property {string} document_name - a name of Document\n * @property {string} origin_document_id - an ID of Document origin\n * @property {boolean} has_credit_card_number - Document has Credit Card number attached\n * @property {boolean} has_unassigned_field - Document has unassigned field(s)\n * @property {DocumentThumbnails} thumbnail - thumbnail urls with different sizes (small, medium, large)\n * @property {string[]} roles - list of template signer roles\n */\n\n /**\n * Document Group view response data\n * @typedef {Object} DocumentGroupViewResponse\n * @property {string} id - an ID of Document Group\n * @property {string} group_name - a name of Document Group\n * @property {DocumentGroupItem[]} documents - each single document details\n * @property {?string} invite_id - an ID of active invite\n * @property {Object[]} originator_organization_settings - originator organization settings\n */\n\n /**\n * Retrieves a Document Group detailed data\n * @param {DocumentGroupViewParams} data - view Document Group details payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupViewResponse)} [callback] - error first node.js callback\n */\n static view ({ id, token }, callback) {\n https\n .request(buildRequestOptions({\n method: 'GET',\n path: `/documentgroup/${id}`,\n authorization: {\n type: 'Bearer',\n token,\n },\n }), responseHandler(callback))\n .on('error', errorHandler(callback))\n .end();\n }\n\n /**\n * Document Group invite email configurations\n * @typedef {Object} DocumentGroupInviteEmail\n * @property {string} email - signer's email\n * @property {string} [subject] - subject of invitation email\n * @property {string} [message] - content of invitation email\n * @property {number} [expiration_days] - expiration of invite in days\n * @property {number} [reminder] - number of days in which to remind about invitation via email\n */\n\n /**\n * Document Group signer's authentication with password config\n * @typedef {Object} DocumentGroupInviteAuthenticationPassword\n * @property {string} type - set `password` to authenticate signer with password\n * @property {string} value - authentication password value\n */\n\n /**\n * Document Group signer's authentication with phone call config\n * @typedef {Object} DocumentGroupInviteAuthenticationPhoneCall\n * @property {string} type - set `phone` to authenticate signer with phone call\n * @property {string} method - set `phone_call` to authenticate signer with phone call\n * @property {string} phone - phone number\n */\n\n /**\n * Document Group signer's authentication with phone SMS config\n * @typedef {Object} DocumentGroupInviteAuthenticationPhoneSMS\n * @property {string} type - set `phone` to authenticate signer with phone SMS\n * @property {string} method - set `sms` to authenticate signer with phone SMS\n * @property {string} phone - phone number\n */\n\n /**\n * Document Group invite action configurations\n * @typedef {Object} DocumentGroupInviteAction\n * @property {string} email - signer's email\n * @property {string} role_name - signer's role name\n * @property {string} action - name of action with document in signing step\n * @property {string} document_id - ID of document in specific signing step\n * @property {string} [allow_reassign] - allow reassigning of signer\n * @property {string} [decline_by_signature] - signer can decline invite\n * @property {DocumentGroupInviteAuthenticationPassword|DocumentGroupInviteAuthenticationPhoneCall|DocumentGroupInviteAuthenticationPhoneSMS} [authentication] - signer's authentication configuration\n */\n\n /**\n * Document Group invite step configurations\n * @typedef {Object} DocumentGroupInviteStep\n * @property {number} order - an order number of invitation step\n * @property {DocumentGroupInviteEmail[]} [invite_emails] - Document Group invite emails settings\n * @property {DocumentGroupInviteAction[]} invite_actions - Document Group invite actions settings\n */\n\n /**\n * Document Group invite completion email configuration\n * @typedef {Object} DocumentGroupInviteCompletionEmailConfig\n * @property {string} email - email for completion (only from the signers and document owner emails)\n * @property {number} disable_document_attachment - disable attachment of signed document group to completion email (values: 0|1)\n */\n\n /**\n * Document Group invite settings\n * @typedef {Object} DocumentGroupInviteSettings\n * @property {DocumentGroupInviteStep[]} invite_steps - Document Group invite steps settings\n * @property {DocumentGroupInviteCompletionEmailConfig[]} [completion_emails] - set of completion email configutrations\n */\n\n /**\n * Create Document Group invite payload\n * @typedef {Object} DocumentGroupInviteParams\n * @property {string} id - ID of specific Document Group\n * @property {DocumentGroupInviteSettings} data - Document Group invite settings data\n * @property {string} token - your auth token\n */\n\n /**\n * Create Document Group invite response data\n * @typedef {Object} DocumentGroupInviteResponse\n * @property {string} id - ID of created Document Group invitation\n * @property {?string} pending_invite_link - pending invite link\n */\n\n /**\n * Creates an invite to sign a Document Group\n * @param {DocumentGroupInviteParams} data - create Document Group invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupInviteResponse)} [callback] - error first node.js callback\n */\n static invite ({\n id,\n data,\n token,\n }, callback) {\n const {\n invite_steps,\n completion_emails,\n } = data;\n\n const JSONData = JSON.stringify({\n invite_steps,\n completion_emails,\n });\n\n const req = https\n .request(buildRequestOptions({\n method: 'POST',\n path: `/documentgroup/${id}/groupinvite`,\n authorization: {\n type: 'Bearer',\n token,\n },\n headers: {\n 'Content-Type': 'application/json',\n 'Content-Length': Buffer.byteLength(JSONData),\n },\n }), responseHandler(callback))\n .on('error', errorHandler(callback));\n\n req.write(JSONData);\n req.end();\n }\n\n /**\n * Document Group download payload\n * @typedef {Object} DocumentGroupDownloadParams\n * @property {string} id - an ID of a Document Group\n * @property {string} token - your auth token\n * @property {string} [type='zip'] - type of download flow, can be either `zip` or `merged`\n * @property {string} [with_history='no'] - type of history merging flow, can be `no`, `after_each_document`, or `after_merged_pdf`\n * @property {string[]} [document_order] - document order for merging flow\n */\n\n /**\n * Document Group binary data\n * @typedef {Buffer} DocumentGroupDownloadResponse\n */\n\n /**\n * Downloads a document group.\n * By default document group will be downloaded as a zip archive and without history.\n * To download document group as a single merged PDF set `type` to `merged`.\n * To download document group with history set `with_history` to `after_each_document` or `after_merged_pdf`.\n * @param {DocumentGroupDownloadParams} data - download Document Group request payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupDownloadResponse)} [callback] - error first node.js callback\n */\n static download ({\n id,\n token,\n type = 'zip',\n with_history = 'no',\n document_order = [],\n }, callback) {\n const JSONData = JSON.stringify({\n type,\n with_history,\n document_order,\n });\n\n const req = https\n .request(buildRequestOptions({\n method: 'POST',\n path: `/documentgroup/${id}/downloadall`,\n authorization: {\n type: 'Bearer',\n token,\n },\n headers: {\n 'Content-Type': 'application/json',\n 'Content-Length': Buffer.byteLength(JSONData),\n },\n }), responseHandler(callback))\n .on('error', errorHandler(callback));\n\n req.write(JSONData);\n req.end();\n }\n\n /**\n * Cancel Document Group Invite payload\n * @typedef {Object} DocumentGroupCancelInviteParams\n * @property {string} id - ID of specific Document Group\n * @property {string} invite_id - ID of Document Group Invite\n * @property {string} token - your auth token\n */\n\n /**\n * Cancel Document Group Invite response data\n * @typedef {Object} DocumentGroupCancelInviteResponse\n * @property {string} status - status of invite cancellation (e.g. \"success\")\n */\n\n /**\n * Cancels an Invite to sign a specific Document Group\n * @param {DocumentGroupCancelInviteParams} data - cancel Document Group Invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupCancelInviteResponse)} [callback] - error first node.js callback\n */\n static cancelInvite ({\n token,\n id,\n inviteId,\n }, callback) {\n\n https\n .request(buildRequestOptions({\n method: 'POST',\n path: `/documentgroup/${id}/groupinvite/${inviteId}/cancelinvite`,\n authorization: {\n type: 'Bearer',\n token,\n },\n }), responseHandler(callback))\n .on('error', errorHandler(callback))\n .end();\n }\n\n}\n\nmodule.exports = DocumentGroup;\n", - "static": true, - "longname": "/app/lib/document-group/index.js", - "access": "public", - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 119, - "kind": "function", - "name": "getDocumentDetails", - "memberof": "lib/document-group/index.js", - "generator": false, - "async": false, - "static": true, - "longname": "lib/document-group/index.js~getDocumentDetails", - "access": "public", - "export": false, - "importPath": "@signnow/api-client/lib/document-group/index.js", - "importStyle": null, - "description": "", - "lineNumber": 17, - "params": [ - { - "nullable": null, - "types": [ - "DocumentViewParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "view document with field extract payload" - } - ], - "return": { - "nullable": null, - "types": [ - "Promise" - ], - "spread": false, - "description": "" - }, - "type": { - "nullable": null, - "types": [ - "function" - ], - "spread": false, - "description": null - }, - "ignore": true - }, - { - "__docId__": 120, - "kind": "function", - "name": "hasFieldInvites", - "memberof": "lib/document-group/index.js", - "generator": false, - "async": false, - "static": true, - "longname": "lib/document-group/index.js~hasFieldInvites", - "access": "public", - "export": false, - "importPath": "@signnow/api-client/lib/document-group/index.js", - "importStyle": null, - "description": "", - "lineNumber": 35, - "params": [ - { - "nullable": null, - "types": [ - "DocumentViewResponse" - ], - "spread": false, - "optional": false, - "name": "document", - "description": "" - } - ], - "return": { - "nullable": null, - "types": [ - "boolean" - ], - "spread": false, - "description": "is there any field invite in given document" - }, - "type": { - "nullable": null, - "types": [ - "function" - ], - "spread": false, - "description": null - }, - "ignore": true - }, - { - "__docId__": 121, - "kind": "function", - "name": "isTemplate", - "memberof": "lib/document-group/index.js", - "generator": false, - "async": false, - "static": true, - "longname": "lib/document-group/index.js~isTemplate", - "access": "public", - "export": false, - "importPath": "@signnow/api-client/lib/document-group/index.js", - "importStyle": null, - "description": "", - "lineNumber": 42, - "params": [ - { - "nullable": null, - "types": [ - "DocumentViewResponse" - ], - "spread": false, - "optional": false, - "name": "document", - "description": "" - } - ], - "return": { - "nullable": null, - "types": [ - "boolean" - ], - "spread": false, - "description": "is document a template or not" - }, - "type": { - "nullable": null, - "types": [ - "function" - ], - "spread": false, - "description": null - }, - "ignore": true - }, - { - "__docId__": 122, - "kind": "function", - "name": "makeDocumentFromTemplate", - "memberof": "lib/document-group/index.js", - "generator": false, - "async": false, - "static": true, - "longname": "lib/document-group/index.js~makeDocumentFromTemplate", - "access": "public", - "export": false, - "importPath": "@signnow/api-client/lib/document-group/index.js", - "importStyle": null, - "description": "", - "lineNumber": 49, - "params": [ - { - "nullable": null, - "types": [ - "TemplateDuplicateParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "duplicate template payload" - } - ], - "return": { - "nullable": null, - "types": [ - "Promise" - ], - "spread": false, - "description": "resolves with id of new document" - }, - "type": { - "nullable": null, - "types": [ - "function" - ], - "spread": false, - "description": null - }, - "ignore": true - }, - { - "__docId__": 123, - "kind": "class", - "name": "DocumentGroup", - "memberof": "lib/document-group/index.js", - "static": true, - "longname": "lib/document-group/index.js~DocumentGroup", - "access": "public", - "export": true, - "importPath": "@signnow/api-client/lib/document-group/index.js", - "importStyle": "DocumentGroup", - "description": "Document Group methods", - "lineNumber": 66, - "interface": false - }, - { - "__docId__": 124, - "kind": "typedef", - "name": "DocumentGroupCreateParams", - "memberof": "lib/document-group/index.js~DocumentGroup", - "static": true, - "longname": "lib/document-group/index.js~DocumentGroup.DocumentGroupCreateParams", - "access": "public", - "description": "Create document group payload", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "token", - "description": "your auth token" - }, - { - "nullable": null, - "types": [ - "string[]" - ], - "spread": false, - "optional": false, - "name": "ids", - "description": "array of document or template ids for document group creation" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "group_name", - "description": "new name of document group" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentGroupCreateParams" - } - }, - { - "__docId__": 125, - "kind": "typedef", - "name": "DocumentGroupCreateResponse", - "memberof": "lib/document-group/index.js~DocumentGroup", - "static": true, - "longname": "lib/document-group/index.js~DocumentGroup.DocumentGroupCreateResponse", - "access": "public", - "description": "Create document group response data", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "id", - "description": "document group unique id" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentGroupCreateResponse" - } - }, - { - "__docId__": 126, - "kind": "method", - "name": "create", - "memberof": "lib/document-group/index.js~DocumentGroup", - "generator": false, - "async": false, - "static": true, - "longname": "lib/document-group/index.js~DocumentGroup.create", - "access": "public", - "description": "Creates document group with specified documents or templates.\nAt least one document or template must contain fields. Documents should not contain pending invites.", - "lineNumber": 88, - "params": [ - { - "nullable": null, - "types": [ - "DocumentGroupCreateParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "create document group payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: DocumentGroupCreateResponse)" - ], - "spread": false, - "optional": true, - "name": "callback", - "description": "error first node.js callback" - } - ], - "return": null - }, - { - "__docId__": 127, - "kind": "typedef", - "name": "DocumentGroupViewParams", - "memberof": "lib/document-group/index.js~DocumentGroup", - "static": true, - "longname": "lib/document-group/index.js~DocumentGroup.DocumentGroupViewParams", - "access": "public", - "description": "Document Group view payload", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "id", - "description": "id of specific Document Group" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "token", - "description": "your auth token" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentGroupViewParams" - } - }, - { - "__docId__": 128, - "kind": "typedef", - "name": "DocumentGroupItem", - "memberof": "lib/document-group/index.js~DocumentGroup", - "static": true, - "longname": "lib/document-group/index.js~DocumentGroup.DocumentGroupItem", - "access": "public", - "description": "Details of single Document in group", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "id", - "description": "an ID of Document" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "document_name", - "description": "a name of Document" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "origin_document_id", - "description": "an ID of Document origin" - }, - { - "nullable": null, - "types": [ - "boolean" - ], - "spread": false, - "optional": false, - "name": "has_credit_card_number", - "description": "Document has Credit Card number attached" - }, - { - "nullable": null, - "types": [ - "boolean" - ], - "spread": false, - "optional": false, - "name": "has_unassigned_field", - "description": "Document has unassigned field(s)" - }, - { - "nullable": null, - "types": [ - "DocumentThumbnails" - ], - "spread": false, - "optional": false, - "name": "thumbnail", - "description": "thumbnail urls with different sizes (small, medium, large)" - }, - { - "nullable": null, - "types": [ - "string[]" - ], - "spread": false, - "optional": false, - "name": "roles", - "description": "list of template signer roles" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentGroupItem" - } - }, - { - "__docId__": 129, - "kind": "typedef", - "name": "DocumentGroupViewResponse", - "memberof": "lib/document-group/index.js~DocumentGroup", - "static": true, - "longname": "lib/document-group/index.js~DocumentGroup.DocumentGroupViewResponse", - "access": "public", - "description": "Document Group view response data", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "id", - "description": "an ID of Document Group" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "group_name", - "description": "a name of Document Group" - }, - { - "nullable": null, - "types": [ - "DocumentGroupItem[]" - ], - "spread": false, - "optional": false, - "name": "documents", - "description": "each single document details" - }, - { - "nullable": true, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "invite_id", - "description": "an ID of active invite" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "originator_organization_settings", - "description": "originator organization settings" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentGroupViewResponse" - } - }, - { - "__docId__": 130, - "kind": "method", - "name": "view", - "memberof": "lib/document-group/index.js~DocumentGroup", - "generator": false, - "async": false, - "static": true, - "longname": "lib/document-group/index.js~DocumentGroup.view", - "access": "public", - "description": "Retrieves a Document Group detailed data", - "lineNumber": 178, - "params": [ - { - "nullable": null, - "types": [ - "DocumentGroupViewParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "view Document Group details payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: DocumentGroupViewResponse)" - ], - "spread": false, - "optional": true, - "name": "callback", - "description": "error first node.js callback" - } - ], - "return": null - }, - { - "__docId__": 131, - "kind": "typedef", - "name": "DocumentGroupInviteEmail", - "memberof": "lib/document-group/index.js~DocumentGroup", - "static": true, - "longname": "lib/document-group/index.js~DocumentGroup.DocumentGroupInviteEmail", - "access": "public", - "description": "Document Group invite email configurations", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "email", - "description": "signer's email" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "subject", - "description": "subject of invitation email" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "message", - "description": "content of invitation email" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": true, - "name": "expiration_days", - "description": "expiration of invite in days" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": true, - "name": "reminder", - "description": "number of days in which to remind about invitation via email" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentGroupInviteEmail" - } - }, - { - "__docId__": 132, - "kind": "typedef", - "name": "DocumentGroupInviteAuthenticationPassword", - "memberof": "lib/document-group/index.js~DocumentGroup", - "static": true, - "longname": "lib/document-group/index.js~DocumentGroup.DocumentGroupInviteAuthenticationPassword", - "access": "public", - "description": "Document Group signer's authentication with password config", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "type", - "description": "set `password` to authenticate signer with password" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "value", - "description": "authentication password value" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentGroupInviteAuthenticationPassword" - } - }, - { - "__docId__": 133, - "kind": "typedef", - "name": "DocumentGroupInviteAuthenticationPhoneCall", - "memberof": "lib/document-group/index.js~DocumentGroup", - "static": true, - "longname": "lib/document-group/index.js~DocumentGroup.DocumentGroupInviteAuthenticationPhoneCall", - "access": "public", - "description": "Document Group signer's authentication with phone call config", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "type", - "description": "set `phone` to authenticate signer with phone call" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "method", - "description": "set `phone_call` to authenticate signer with phone call" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "phone", - "description": "phone number" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentGroupInviteAuthenticationPhoneCall" - } - }, - { - "__docId__": 134, - "kind": "typedef", - "name": "DocumentGroupInviteAuthenticationPhoneSMS", - "memberof": "lib/document-group/index.js~DocumentGroup", - "static": true, - "longname": "lib/document-group/index.js~DocumentGroup.DocumentGroupInviteAuthenticationPhoneSMS", - "access": "public", - "description": "Document Group signer's authentication with phone SMS config", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "type", - "description": "set `phone` to authenticate signer with phone SMS" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "method", - "description": "set `sms` to authenticate signer with phone SMS" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "phone", - "description": "phone number" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentGroupInviteAuthenticationPhoneSMS" - } - }, - { - "__docId__": 135, - "kind": "typedef", - "name": "DocumentGroupInviteAction", - "memberof": "lib/document-group/index.js~DocumentGroup", - "static": true, - "longname": "lib/document-group/index.js~DocumentGroup.DocumentGroupInviteAction", - "access": "public", - "description": "Document Group invite action configurations", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "email", - "description": "signer's email" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "role_name", - "description": "signer's role name" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "action", - "description": "name of action with document in signing step" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "document_id", - "description": "ID of document in specific signing step" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "allow_reassign", - "description": "allow reassigning of signer" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "decline_by_signature", - "description": "signer can decline invite" - }, - { - "nullable": null, - "types": [ - "DocumentGroupInviteAuthenticationPassword", - "DocumentGroupInviteAuthenticationPhoneCall", - "DocumentGroupInviteAuthenticationPhoneSMS" - ], - "spread": false, - "optional": true, - "name": "authentication", - "description": "signer's authentication configuration" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentGroupInviteAction" - } - }, - { - "__docId__": 136, - "kind": "typedef", - "name": "DocumentGroupInviteStep", - "memberof": "lib/document-group/index.js~DocumentGroup", - "static": true, - "longname": "lib/document-group/index.js~DocumentGroup.DocumentGroupInviteStep", - "access": "public", - "description": "Document Group invite step configurations", - "properties": [ - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "order", - "description": "an order number of invitation step" - }, - { - "nullable": null, - "types": [ - "DocumentGroupInviteEmail[]" - ], - "spread": false, - "optional": true, - "name": "invite_emails", - "description": "Document Group invite emails settings" - }, - { - "nullable": null, - "types": [ - "DocumentGroupInviteAction[]" - ], - "spread": false, - "optional": false, - "name": "invite_actions", - "description": "Document Group invite actions settings" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentGroupInviteStep" - } - }, - { - "__docId__": 137, - "kind": "typedef", - "name": "DocumentGroupInviteCompletionEmailConfig", - "memberof": "lib/document-group/index.js~DocumentGroup", - "static": true, - "longname": "lib/document-group/index.js~DocumentGroup.DocumentGroupInviteCompletionEmailConfig", - "access": "public", - "description": "Document Group invite completion email configuration", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "email", - "description": "email for completion (only from the signers and document owner emails)" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "disable_document_attachment", - "description": "disable attachment of signed document group to completion email (values: 0|1)" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentGroupInviteCompletionEmailConfig" - } - }, - { - "__docId__": 138, - "kind": "typedef", - "name": "DocumentGroupInviteSettings", - "memberof": "lib/document-group/index.js~DocumentGroup", - "static": true, - "longname": "lib/document-group/index.js~DocumentGroup.DocumentGroupInviteSettings", - "access": "public", - "description": "Document Group invite settings", - "properties": [ - { - "nullable": null, - "types": [ - "DocumentGroupInviteStep[]" - ], - "spread": false, - "optional": false, - "name": "invite_steps", - "description": "Document Group invite steps settings" - }, - { - "nullable": null, - "types": [ - "DocumentGroupInviteCompletionEmailConfig[]" - ], - "spread": false, - "optional": true, - "name": "completion_emails", - "description": "set of completion email configutrations" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentGroupInviteSettings" - } - }, - { - "__docId__": 139, - "kind": "typedef", - "name": "DocumentGroupInviteParams", - "memberof": "lib/document-group/index.js~DocumentGroup", - "static": true, - "longname": "lib/document-group/index.js~DocumentGroup.DocumentGroupInviteParams", - "access": "public", - "description": "Create Document Group invite payload", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "id", - "description": "ID of specific Document Group" - }, - { - "nullable": null, - "types": [ - "DocumentGroupInviteSettings" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "Document Group invite settings data" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "token", - "description": "your auth token" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentGroupInviteParams" - } - }, - { - "__docId__": 140, - "kind": "typedef", - "name": "DocumentGroupInviteResponse", - "memberof": "lib/document-group/index.js~DocumentGroup", - "static": true, - "longname": "lib/document-group/index.js~DocumentGroup.DocumentGroupInviteResponse", - "access": "public", - "description": "Create Document Group invite response data", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "id", - "description": "ID of created Document Group invitation" - }, - { - "nullable": true, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "pending_invite_link", - "description": "pending invite link" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentGroupInviteResponse" - } - }, - { - "__docId__": 141, - "kind": "method", - "name": "invite", - "memberof": "lib/document-group/index.js~DocumentGroup", - "generator": false, - "async": false, - "static": true, - "longname": "lib/document-group/index.js~DocumentGroup.invite", - "access": "public", - "description": "Creates an invite to sign a Document Group", - "lineNumber": 279, - "params": [ - { - "nullable": null, - "types": [ - "DocumentGroupInviteParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "create Document Group invite payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: DocumentGroupInviteResponse)" - ], - "spread": false, - "optional": true, - "name": "callback", - "description": "error first node.js callback" - } - ], - "return": null - }, - { - "__docId__": 142, - "kind": "typedef", - "name": "DocumentGroupDownloadParams", - "memberof": "lib/document-group/index.js~DocumentGroup", - "static": true, - "longname": "lib/document-group/index.js~DocumentGroup.DocumentGroupDownloadParams", - "access": "public", - "description": "Document Group download payload", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "id", - "description": "an ID of a Document Group" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "token", - "description": "your auth token" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "defaultValue": "'zip'", - "defaultRaw": "'zip'", - "name": "type", - "description": "type of download flow, can be either `zip` or `merged`" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "defaultValue": "'no'", - "defaultRaw": "'no'", - "name": "with_history", - "description": "type of history merging flow, can be `no`, `after_each_document`, or `after_merged_pdf`" - }, - { - "nullable": null, - "types": [ - "string[]" - ], - "spread": false, - "optional": true, - "name": "document_order", - "description": "document order for merging flow" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentGroupDownloadParams" - } - }, - { - "__docId__": 143, - "kind": "typedef", - "name": "DocumentGroupDownloadResponse", - "memberof": "lib/document-group/index.js~DocumentGroup", - "static": true, - "longname": "lib/document-group/index.js~DocumentGroup.DocumentGroupDownloadResponse", - "access": "public", - "description": "Document Group binary data", - "type": { - "types": [ - "Buffer" - ], - "optional": false, - "name": "DocumentGroupDownloadResponse" - } - }, - { - "__docId__": 144, - "kind": "method", - "name": "download", - "memberof": "lib/document-group/index.js~DocumentGroup", - "generator": false, - "async": false, - "static": true, - "longname": "lib/document-group/index.js~DocumentGroup.download", - "access": "public", - "description": "Downloads a document group.\nBy default document group will be downloaded as a zip archive and without history.\nTo download document group as a single merged PDF set `type` to `merged`.\nTo download document group with history set `with_history` to `after_each_document` or `after_merged_pdf`.", - "lineNumber": 336, - "params": [ - { - "nullable": null, - "types": [ - "DocumentGroupDownloadParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "download Document Group request payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: DocumentGroupDownloadResponse)" - ], - "spread": false, - "optional": true, - "name": "callback", - "description": "error first node.js callback" - } - ], - "return": null - }, - { - "__docId__": 145, - "kind": "typedef", - "name": "DocumentGroupCancelInviteParams", - "memberof": "lib/document-group/index.js~DocumentGroup", - "static": true, - "longname": "lib/document-group/index.js~DocumentGroup.DocumentGroupCancelInviteParams", - "access": "public", - "description": "Cancel Document Group Invite payload", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "id", - "description": "ID of specific Document Group" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "invite_id", - "description": "ID of Document Group Invite" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "token", - "description": "your auth token" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentGroupCancelInviteParams" - } - }, - { - "__docId__": 146, - "kind": "typedef", - "name": "DocumentGroupCancelInviteResponse", - "memberof": "lib/document-group/index.js~DocumentGroup", - "static": true, - "longname": "lib/document-group/index.js~DocumentGroup.DocumentGroupCancelInviteResponse", - "access": "public", - "description": "Cancel Document Group Invite response data", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "status", - "description": "status of invite cancellation (e.g. \"success\")" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentGroupCancelInviteResponse" - } - }, - { - "__docId__": 147, - "kind": "method", - "name": "cancelInvite", - "memberof": "lib/document-group/index.js~DocumentGroup", - "generator": false, - "async": false, - "static": true, - "longname": "lib/document-group/index.js~DocumentGroup.cancelInvite", - "access": "public", - "description": "Cancels an Invite to sign a specific Document Group", - "lineNumber": 387, - "params": [ - { - "nullable": null, - "types": [ - "DocumentGroupCancelInviteParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "cancel Document Group Invite payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: DocumentGroupCancelInviteResponse)" - ], - "spread": false, - "optional": true, - "name": "callback", - "description": "error first node.js callback" - } - ], - "return": null - }, - { - "__docId__": 148, - "kind": "file", - "name": "lib/document-group-template/index.js", - "content": "'use strict';\nconst https = require('https');\nconst {\n responseHandler,\n errorHandler,\n buildRequestOptions,\n} = require('../common');\nconst documentGroup = require('../document-group');\nconst createDocumentGroup = documentGroup.create;\nconst inviteDocumentGroup = documentGroup.invite;\nconst viewDocumentGroup = documentGroup.view;\n\n/**\n * Document Group Template methods\n */\nclass DocumentGroupTemplate {\n\n /**\n * Document Group Template invite email congfigurations\n * @typedef {Object} DocumentGroupTemplateInviteEmail\n * @property {string} [email] - signer's email\n * @property {string} [subject] - subject of invitation email\n * @property {string} [message] - content of invitation email\n * @property {number} [expiration_days] - expiration of invite in days\n * @property {number} [reminder] - number of days in which to remind about invite via email\n * @property {boolean} [hasSignActions] - does signer need to sign documents of document group\n */\n\n /**\n * Document Group Template invite action congfigurations\n * @typedef {Object} DocumentGroupTemplateInviteAction\n * @property {string} [email] - signer's email\n * @property {string} [role_name] - signer's role name\n * @property {string} [action] - name of action with document in signing step\n * @property {string} [document_id] - ID of document in specific signing step\n * @property {string} [document_name] - name of document in specific signing step\n * @property {string} [allow_reassign] - allow reassigning of signer\n * @property {string} decline_by_signature - signer can decline invite\n */\n\n /**\n * Document Group Template invite step congfigurations\n * @typedef {Object} DocumentGroupTemplateInviteStep\n * @property {number} [order] - an order number of invitation step\n * @property {DocumentGroupTemplateInviteEmail[]} [invite_emails] - Document Group Template invite emails settings\n * @property {DocumentGroupTemplateInviteAction[]} invite_actions - Document Group Template invite actions settings\n */\n\n /**\n * Document Group Template invite congfigurations\n * @typedef {Object} DocumentGroupTemplateRoutingDetails\n * @property {DocumentGroupTemplateInviteStep[]} invite_steps - Document Group Template invite steps settings\n * @property {number} [include_email_attachments]\n */\n\n /**\n * Create Document Group Template payload\n * @typedef {Object} DocumentGroupTemplateCreateParams\n * @property {string} token - your auth token\n * @property {string[]} template_ids - array of template ids for Document Group Template creation\n * @property {string} template_group_name - new name of document group\n * @property {DocumentGroupTemplateRoutingDetails} routing_details - invite congfigurations\n */\n\n /**\n * Create Document Group Template response data\n * @typedef {Object} DocumentGroupTemplateCreateResponse\n * @property {string} id - Document Group Template unique id\n */\n\n /**\n * Creates Document Group Template with specified templates and settings\n * @param {DocumentGroupTemplateCreateParams} data - create Document Group Template payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupTemplateCreateResponse)} [callback] - error first node.js callback\n */\n static create ({\n token,\n template_ids,\n template_group_name,\n routing_details,\n }, callback) {\n const JSONData = JSON.stringify({\n template_ids,\n template_group_name,\n routing_details,\n });\n const req = https\n .request(buildRequestOptions({\n method: 'POST',\n path: '/documentgroup/template',\n authorization: {\n type: 'Bearer',\n token,\n },\n headers: {\n 'Content-Type': 'application/json',\n 'Content-Length': Buffer.byteLength(JSONData),\n },\n }), responseHandler(callback))\n .on('error', errorHandler(callback));\n\n req.write(JSONData);\n req.end();\n }\n\n /**\n * Document Group Template view payload\n * @typedef {Object} DocumentGroupTemplateViewParams\n * @property {string} id - id of specific Document Group Template\n * @property {string} token - your auth token\n */\n\n /**\n * Details of single template in group\n * @typedef {Object} DocumentGroupTemplateItem\n * @property {string} id - id of template\n * @property {string} template_name - name of template\n * @property {string} owner_email - template owner email\n * @property {?number} readable\n * @property {DocumentThumbnails} thumbnail - thumbnail urls with different sizes (small, medium, large)\n * @property {string[]} roles - list of template signer roles\n */\n\n /**\n * Document Group Template view response\n * @typedef {Object} DocumentGroupTemplateViewResponse\n * @property {string} id - id of Document Group Template\n * @property {string} group_name - name of Document Group Template\n * @property {string} document_group_template_owner_email - Document Group Template owner email\n * @property {number} shared - is Document Group Template shared or not (values: 0 or 1)\n * @property {?string} shared_team_id - id of team which Document Group Template is shared with\n * @property {DocumentGroupTemplateItem[]} templates - each single template details\n * @property {DocumentGroupTemplateRoutingDetails} routing_details - signing steps configuration\n * @property {Object[]} originator_organization_settings - originator organization settings\n */\n\n /**\n * Retrieves a Document Group Template detailed data\n * @param {DocumentGroupTemplateViewParams} data - view Document Group Template details payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupTemplateViewResponse)} [callback] - error first node.js callback\n */\n static view ({ id, token }, callback) {\n https\n .request(buildRequestOptions({\n method: 'GET',\n path: `/documentgroup/template/${id}`,\n authorization: {\n type: 'Bearer',\n token,\n },\n }), responseHandler(callback))\n .on('error', errorHandler(callback))\n .end();\n }\n\n /**\n * Create Document Group Template invite payload\n * @typedef {Object} DocumentGroupTemplateInviteParams\n * @property {string} id - ID of specific Document Group Template\n * @property {DocumentGroupInviteSettings} [data] - Document Group Template invite settings data\n * @property {string} token - your auth token\n */\n\n /**\n * Create Document Group Template invite response data\n * @typedef {DocumentGroupInviteResponse} DocumentGroupTemplateInviteResponse\n * @property {string} id - an ID of created invite\n * @property {?string} pending_invite_link - pending invite link\n */\n\n /**\n * Creates an invite to sign a Document Group Template\n * @param {DocumentGroupTemplateInviteParams} data - create Document Group Template invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentGroupTemplateInviteResponse)} [callback] - error first node.js callback\n */\n static invite ({\n id,\n data,\n token,\n }, callback) {\n DocumentGroupTemplate.view({\n id,\n token,\n }, (viewDocGrTplErr, viewDocGrTplRes) => {\n if (viewDocGrTplErr) {\n callback(viewDocGrTplErr);\n return;\n } else {\n const {\n templates,\n group_name,\n routing_details = {},\n } = viewDocGrTplRes;\n let templateIDs;\n\n try {\n templateIDs = templates.map(template => template.id);\n } catch (err) {\n callback(err);\n return;\n }\n\n createDocumentGroup({\n ids: templateIDs,\n group_name,\n token,\n }, (createErr, createRes) => {\n if (createErr) {\n callback(createErr);\n return;\n } else {\n const { id: documentGroupId } = createRes;\n\n viewDocumentGroup({\n id: documentGroupId,\n token,\n }, (viewDocGrErr, viewDocGrRes) => {\n if (viewDocGrErr) {\n callback(viewDocGrErr);\n return;\n } else {\n const { documents } = viewDocGrRes;\n let documentToOriginMap;\n let inviteSettings;\n\n try {\n documentToOriginMap = documents.reduce((map, doc) => {\n map[doc.origin_document_id] = doc.id;\n return map;\n }, {});\n\n inviteSettings = Object.assign({}, (routing_details.invite_steps ? routing_details : {}), data);\n\n inviteSettings.invite_steps.forEach(step => {\n step.invite_emails = step.invite_emails.map(inviteEmail => {\n const {\n email,\n subject,\n message,\n expiration_days,\n reminder,\n } = inviteEmail;\n\n return {\n email,\n subject,\n message,\n expiration_days,\n reminder,\n };\n });\n\n step.invite_actions = step.invite_actions.map(inviteAction => {\n const {\n email,\n role_name,\n action,\n document_id,\n allow_reassign,\n decline_by_signature,\n authentication,\n } = inviteAction;\n\n return {\n document_id: documentToOriginMap[document_id],\n email,\n role_name,\n action,\n allow_reassign,\n decline_by_signature,\n authentication,\n };\n });\n });\n } catch (err) {\n callback(err);\n return;\n }\n\n inviteDocumentGroup({\n id: documentGroupId,\n data: inviteSettings,\n token,\n }, (inviteErr, inviteRes) => {\n if (inviteErr) {\n callback(inviteErr);\n return;\n } else {\n callback(null, inviteRes);\n return;\n }\n });\n }\n });\n }\n });\n }\n });\n }\n\n}\n\nmodule.exports = DocumentGroupTemplate;\n", - "static": true, - "longname": "/app/lib/document-group-template/index.js", - "access": "public", - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 149, - "kind": "variable", - "name": "createDocumentGroup", - "memberof": "lib/document-group-template/index.js", - "static": true, - "longname": "lib/document-group-template/index.js~createDocumentGroup", - "access": "public", - "export": false, - "importPath": "@signnow/api-client/lib/document-group-template/index.js", - "importStyle": null, - "description": null, - "lineNumber": 9, - "undocument": true, - "type": { - "types": [ - "*" - ] - }, - "ignore": true - }, - { - "__docId__": 150, - "kind": "variable", - "name": "inviteDocumentGroup", - "memberof": "lib/document-group-template/index.js", - "static": true, - "longname": "lib/document-group-template/index.js~inviteDocumentGroup", - "access": "public", - "export": false, - "importPath": "@signnow/api-client/lib/document-group-template/index.js", - "importStyle": null, - "description": null, - "lineNumber": 10, - "undocument": true, - "type": { - "types": [ - "*" - ] - }, - "ignore": true - }, - { - "__docId__": 151, - "kind": "variable", - "name": "viewDocumentGroup", - "memberof": "lib/document-group-template/index.js", - "static": true, - "longname": "lib/document-group-template/index.js~viewDocumentGroup", - "access": "public", - "export": false, - "importPath": "@signnow/api-client/lib/document-group-template/index.js", - "importStyle": null, - "description": null, - "lineNumber": 11, - "undocument": true, - "type": { - "types": [ - "*" - ] - }, - "ignore": true - }, - { - "__docId__": 152, - "kind": "class", - "name": "DocumentGroupTemplate", - "memberof": "lib/document-group-template/index.js", - "static": true, - "longname": "lib/document-group-template/index.js~DocumentGroupTemplate", - "access": "public", - "export": true, - "importPath": "@signnow/api-client/lib/document-group-template/index.js", - "importStyle": "DocumentGroupTemplate", - "description": "Document Group Template methods", - "lineNumber": 16, - "interface": false - }, - { - "__docId__": 153, - "kind": "typedef", - "name": "DocumentGroupTemplateInviteEmail", - "memberof": "lib/document-group-template/index.js~DocumentGroupTemplate", - "static": true, - "longname": "lib/document-group-template/index.js~DocumentGroupTemplate.DocumentGroupTemplateInviteEmail", - "access": "public", - "description": "Document Group Template invite email congfigurations", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "email", - "description": "signer's email" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "subject", - "description": "subject of invitation email" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "message", - "description": "content of invitation email" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": true, - "name": "expiration_days", - "description": "expiration of invite in days" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": true, - "name": "reminder", - "description": "number of days in which to remind about invite via email" - }, - { - "nullable": null, - "types": [ - "boolean" - ], - "spread": false, - "optional": true, - "name": "hasSignActions", - "description": "does signer need to sign documents of document group" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentGroupTemplateInviteEmail" - } - }, - { - "__docId__": 154, - "kind": "typedef", - "name": "DocumentGroupTemplateInviteAction", - "memberof": "lib/document-group-template/index.js~DocumentGroupTemplate", - "static": true, - "longname": "lib/document-group-template/index.js~DocumentGroupTemplate.DocumentGroupTemplateInviteAction", - "access": "public", - "description": "Document Group Template invite action congfigurations", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "email", - "description": "signer's email" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "role_name", - "description": "signer's role name" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "action", - "description": "name of action with document in signing step" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "document_id", - "description": "ID of document in specific signing step" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "document_name", - "description": "name of document in specific signing step" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "allow_reassign", - "description": "allow reassigning of signer" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "decline_by_signature", - "description": "signer can decline invite" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentGroupTemplateInviteAction" - } - }, - { - "__docId__": 155, - "kind": "typedef", - "name": "DocumentGroupTemplateInviteStep", - "memberof": "lib/document-group-template/index.js~DocumentGroupTemplate", - "static": true, - "longname": "lib/document-group-template/index.js~DocumentGroupTemplate.DocumentGroupTemplateInviteStep", - "access": "public", - "description": "Document Group Template invite step congfigurations", - "properties": [ - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": true, - "name": "order", - "description": "an order number of invitation step" - }, - { - "nullable": null, - "types": [ - "DocumentGroupTemplateInviteEmail[]" - ], - "spread": false, - "optional": true, - "name": "invite_emails", - "description": "Document Group Template invite emails settings" - }, - { - "nullable": null, - "types": [ - "DocumentGroupTemplateInviteAction[]" - ], - "spread": false, - "optional": false, - "name": "invite_actions", - "description": "Document Group Template invite actions settings" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentGroupTemplateInviteStep" - } - }, - { - "__docId__": 156, - "kind": "typedef", - "name": "DocumentGroupTemplateRoutingDetails", - "memberof": "lib/document-group-template/index.js~DocumentGroupTemplate", - "static": true, - "longname": "lib/document-group-template/index.js~DocumentGroupTemplate.DocumentGroupTemplateRoutingDetails", - "access": "public", - "description": "Document Group Template invite congfigurations", - "properties": [ - { - "nullable": null, - "types": [ - "DocumentGroupTemplateInviteStep[]" - ], - "spread": false, - "optional": false, - "name": "invite_steps", - "description": "Document Group Template invite steps settings" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": true, - "name": "include_email_attachments", - "description": "" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentGroupTemplateRoutingDetails" - } - }, - { - "__docId__": 157, - "kind": "typedef", - "name": "DocumentGroupTemplateCreateParams", - "memberof": "lib/document-group-template/index.js~DocumentGroupTemplate", - "static": true, - "longname": "lib/document-group-template/index.js~DocumentGroupTemplate.DocumentGroupTemplateCreateParams", - "access": "public", - "description": "Create Document Group Template payload", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "token", - "description": "your auth token" - }, - { - "nullable": null, - "types": [ - "string[]" - ], - "spread": false, - "optional": false, - "name": "template_ids", - "description": "array of template ids for Document Group Template creation" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "template_group_name", - "description": "new name of document group" - }, - { - "nullable": null, - "types": [ - "DocumentGroupTemplateRoutingDetails" - ], - "spread": false, - "optional": false, - "name": "routing_details", - "description": "invite congfigurations" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentGroupTemplateCreateParams" - } - }, - { - "__docId__": 158, - "kind": "typedef", - "name": "DocumentGroupTemplateCreateResponse", - "memberof": "lib/document-group-template/index.js~DocumentGroupTemplate", - "static": true, - "longname": "lib/document-group-template/index.js~DocumentGroupTemplate.DocumentGroupTemplateCreateResponse", - "access": "public", - "description": "Create Document Group Template response data", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "id", - "description": "Document Group Template unique id" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentGroupTemplateCreateResponse" - } - }, - { - "__docId__": 159, - "kind": "method", - "name": "create", - "memberof": "lib/document-group-template/index.js~DocumentGroupTemplate", - "generator": false, - "async": false, - "static": true, - "longname": "lib/document-group-template/index.js~DocumentGroupTemplate.create", - "access": "public", - "description": "Creates Document Group Template with specified templates and settings", - "lineNumber": 76, - "params": [ - { - "nullable": null, - "types": [ - "DocumentGroupTemplateCreateParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "create Document Group Template payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: DocumentGroupTemplateCreateResponse)" - ], - "spread": false, - "optional": true, - "name": "callback", - "description": "error first node.js callback" - } - ], - "return": null - }, - { - "__docId__": 160, - "kind": "typedef", - "name": "DocumentGroupTemplateViewParams", - "memberof": "lib/document-group-template/index.js~DocumentGroupTemplate", - "static": true, - "longname": "lib/document-group-template/index.js~DocumentGroupTemplate.DocumentGroupTemplateViewParams", - "access": "public", - "description": "Document Group Template view payload", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "id", - "description": "id of specific Document Group Template" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "token", - "description": "your auth token" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentGroupTemplateViewParams" - } - }, - { - "__docId__": 161, - "kind": "typedef", - "name": "DocumentGroupTemplateItem", - "memberof": "lib/document-group-template/index.js~DocumentGroupTemplate", - "static": true, - "longname": "lib/document-group-template/index.js~DocumentGroupTemplate.DocumentGroupTemplateItem", - "access": "public", - "description": "Details of single template in group", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "id", - "description": "id of template" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "template_name", - "description": "name of template" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "owner_email", - "description": "template owner email" - }, - { - "nullable": true, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "readable", - "description": "" - }, - { - "nullable": null, - "types": [ - "DocumentThumbnails" - ], - "spread": false, - "optional": false, - "name": "thumbnail", - "description": "thumbnail urls with different sizes (small, medium, large)" - }, - { - "nullable": null, - "types": [ - "string[]" - ], - "spread": false, - "optional": false, - "name": "roles", - "description": "list of template signer roles" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentGroupTemplateItem" - } - }, - { - "__docId__": 162, - "kind": "typedef", - "name": "DocumentGroupTemplateViewResponse", - "memberof": "lib/document-group-template/index.js~DocumentGroupTemplate", - "static": true, - "longname": "lib/document-group-template/index.js~DocumentGroupTemplate.DocumentGroupTemplateViewResponse", - "access": "public", - "description": "Document Group Template view response", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "id", - "description": "id of Document Group Template" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "group_name", - "description": "name of Document Group Template" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "document_group_template_owner_email", - "description": "Document Group Template owner email" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "shared", - "description": "is Document Group Template shared or not (values: 0 or 1)" - }, - { - "nullable": true, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "shared_team_id", - "description": "id of team which Document Group Template is shared with" - }, - { - "nullable": null, - "types": [ - "DocumentGroupTemplateItem[]" - ], - "spread": false, - "optional": false, - "name": "templates", - "description": "each single template details" - }, - { - "nullable": null, - "types": [ - "DocumentGroupTemplateRoutingDetails" - ], - "spread": false, - "optional": false, - "name": "routing_details", - "description": "signing steps configuration" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "originator_organization_settings", - "description": "originator organization settings" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentGroupTemplateViewResponse" - } - }, - { - "__docId__": 163, - "kind": "method", - "name": "view", - "memberof": "lib/document-group-template/index.js~DocumentGroupTemplate", - "generator": false, - "async": false, - "static": true, - "longname": "lib/document-group-template/index.js~DocumentGroupTemplate.view", - "access": "public", - "description": "Retrieves a Document Group Template detailed data", - "lineNumber": 142, - "params": [ - { - "nullable": null, - "types": [ - "DocumentGroupTemplateViewParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "view Document Group Template details payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: DocumentGroupTemplateViewResponse)" - ], - "spread": false, - "optional": true, - "name": "callback", - "description": "error first node.js callback" - } - ], - "return": null - }, - { - "__docId__": 164, - "kind": "typedef", - "name": "DocumentGroupTemplateInviteParams", - "memberof": "lib/document-group-template/index.js~DocumentGroupTemplate", - "static": true, - "longname": "lib/document-group-template/index.js~DocumentGroupTemplate.DocumentGroupTemplateInviteParams", - "access": "public", - "description": "Create Document Group Template invite payload", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "id", - "description": "ID of specific Document Group Template" - }, - { - "nullable": null, - "types": [ - "DocumentGroupInviteSettings" - ], - "spread": false, - "optional": true, - "name": "data", - "description": "Document Group Template invite settings data" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "token", - "description": "your auth token" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DocumentGroupTemplateInviteParams" - } - }, - { - "__docId__": 165, - "kind": "typedef", - "name": "DocumentGroupTemplateInviteResponse", - "memberof": "lib/document-group-template/index.js~DocumentGroupTemplate", - "static": true, - "longname": "lib/document-group-template/index.js~DocumentGroupTemplate.DocumentGroupTemplateInviteResponse", - "access": "public", - "description": "Create Document Group Template invite response data", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "id", - "description": "an ID of created invite" - }, - { - "nullable": true, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "pending_invite_link", - "description": "pending invite link" - } - ], - "type": { - "types": [ - "DocumentGroupInviteResponse" - ], - "optional": false, - "name": "DocumentGroupTemplateInviteResponse" - } - }, - { - "__docId__": 166, - "kind": "method", - "name": "invite", - "memberof": "lib/document-group-template/index.js~DocumentGroupTemplate", - "generator": false, - "async": false, - "static": true, - "longname": "lib/document-group-template/index.js~DocumentGroupTemplate.invite", - "access": "public", - "description": "Creates an invite to sign a Document Group Template", - "lineNumber": 176, - "params": [ - { - "nullable": null, - "types": [ - "DocumentGroupTemplateInviteParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "create Document Group Template invite payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: DocumentGroupTemplateInviteResponse)" - ], - "spread": false, - "optional": true, - "name": "callback", - "description": "error first node.js callback" - } - ], - "return": null - }, - { - "__docId__": 167, - "kind": "file", - "name": "lib/embedded/index.js", - "content": "'use strict';\nconst https = require('https');\nconst {\n responseHandler,\n errorHandler,\n buildRequestOptions,\n} = require('../common');\n\n/**\n * Embedded methods\n */\nclass Embedded {\n\n /**\n * Create embedded signing invite payload\n * @typedef {Object} EmbeddedSigningInvite\n * @property {string} email - Signer's email address\n * @property {number} role_id - Signer's role ID\n * @property {number} order - Order of signing. Cannot be 0\n * @property {string} auth_method - Signer authentication method. One of (password, email, mfa, social, biometric, other, none)\n */\n\n /**\n * Create embedded signing invites payload\n * @typedef {Object} EmbeddedCreateInvitesPayload\n * @property {string} token - Access token.\n * @property {string} document_id - ID of the requested document.\n * @property {EmbeddedSigningInvite[]} invites - Array of invites\n */\n\n /**\n * Response EmbeddedInvite\n * @typedef {Object} EmbeddedInvite\n * @property {string} id - ID of the sending invite\n * @property {string} email - Signer's email address\n * @property {number} role_id - Signer's role ID\n * @property {number} order - Order of signing\n * @property {string} status - Status of the invite\n */\n\n /**\n * Create embedded signing invites response data\n * @typedef {Object} EmbeddedCreateInvitesResponse\n * @property {EmbeddedInvite[]} data - Array sending of invites\n */\n\n /**\n * Create embedded signing invites for a document without sending emails.\n * @param {EmbeddedCreateInvitesPayload} data - Create invites payload\n * @param {function(err: ApiErrorResponse, res: EmbeddedCreateInvitesResponse)} [callback] - error first node.js callback\n */\n static createInvite ({\n token, document_id, invites,\n }, callback) {\n const JSONData = JSON.stringify({ invites });\n const req = https\n .request(buildRequestOptions({\n method: 'POST',\n path: `/v2/documents/${document_id}/embedded-invites`,\n authorization: {\n type: 'Bearer',\n token,\n },\n headers: {\n 'Content-Type': 'application/json',\n 'Content-Length': Buffer.byteLength(JSONData),\n },\n }), responseHandler(callback))\n .on('error', errorHandler(callback));\n\n req.write(JSONData);\n req.end();\n }\n\n /**\n * Generate embedded invite link payload\n * @typedef {Object} EmbeddedGenerateLinkPayload\n * @property {string} token - Access token.\n * @property {string} document_id - ID of the requested document.\n * @property {string} field_invite_unique_id - ID of the signature invite you'd like to embed.\n * @property {number} link_expiration - In how many minutes the link expires, ranges from 15 to 45 minutes or null.\n * @property {string} auth_method - Signer authentication method.\n */\n\n /**\n * Response EmbeddedGeneratedLink\n * @typedef {Object} EmbeddedGeneratedLink\n * @property {string} link - Returns a link for embedded invite\n */\n\n /**\n * Generate a link for the embedded invite response data\n * @typedef {Object} EmbeddedGenerateLinkResponse\n * @property {EmbeddedGeneratedLink} data - Response data\n */\n\n /**\n * Generate a link for the embedded invite.\n * @param {EmbeddedGenerateLinkPayload} data - Generate embedded invite link payload\n * @param {function(err: ApiErrorResponse, res: EmbeddedGenerateLinkResponse)} [callback] - error first node.js callback\n */\n static generateInviteLink ({\n token, document_id, field_invite_unique_id, link_expiration, auth_method,\n }, callback) {\n const JSONData = JSON.stringify({\n link_expiration,\n auth_method,\n });\n const req = https\n .request(buildRequestOptions({\n method: 'POST',\n path: `/v2/documents/${document_id}/embedded-invites/${field_invite_unique_id}/link`,\n authorization: {\n type: 'Bearer',\n token,\n },\n headers: {\n 'Content-Type': 'application/json',\n 'Content-Length': Buffer.byteLength(JSONData),\n },\n }), responseHandler(callback))\n .on('error', errorHandler(callback));\n\n req.write(JSONData);\n req.end();\n }\n\n /**\n * Delete embedded invites for a document payload\n * @typedef {Object} EmbeddedCancelInvitePayload\n * @property {string} token - Access token.\n * @property {string} document_id - ID of the requested document.\n */\n\n /**\n * Generate a link for the embedded invite response data\n * @typedef {Object} EmbeddedCancelInviteResponse\n * @property {string} status - Returns success when all parameters are correct\n */\n\n /**\n * Delete embedded invites for a document.\n * @param {EmbeddedCancelInvitePayload} data - Delete embedded invites for a document payload\n * @param {function(err: ApiErrorResponse, res: EmbeddedCancelInviteResponse)} [callback] - error first node.js callback\n */\n static cancelInvites ({ token, document_id }, callback) {\n const req = https\n .request(buildRequestOptions({\n method: 'DELETE',\n path: `/v2/documents/${document_id}/embedded-invites`,\n authorization: {\n type: 'Bearer',\n token,\n },\n headers: { 'Content-Type': 'application/json' },\n }), responseHandler(callback))\n .on('error', errorHandler(callback));\n req.end();\n }\n}\n\nmodule.exports = Embedded;\n", - "static": true, - "longname": "/app/lib/embedded/index.js", - "access": "public", - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 168, - "kind": "class", - "name": "Embedded", - "memberof": "lib/embedded/index.js", - "static": true, - "longname": "lib/embedded/index.js~Embedded", - "access": "public", - "export": true, - "importPath": "@signnow/api-client/lib/embedded/index.js", - "importStyle": "Embedded", - "description": "Embedded methods", - "lineNumber": 12, - "interface": false - }, - { - "__docId__": 169, - "kind": "typedef", - "name": "EmbeddedSigningInvite", - "memberof": "lib/embedded/index.js~Embedded", - "static": true, - "longname": "lib/embedded/index.js~Embedded.EmbeddedSigningInvite", - "access": "public", - "description": "Create embedded signing invite payload", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "email", - "description": "Signer's email address" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "role_id", - "description": "Signer's role ID" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "order", - "description": "Order of signing. Cannot be 0" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "auth_method", - "description": "Signer authentication method. One of (password, email, mfa, social, biometric, other, none)" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "EmbeddedSigningInvite" - } - }, - { - "__docId__": 170, - "kind": "typedef", - "name": "EmbeddedCreateInvitesPayload", - "memberof": "lib/embedded/index.js~Embedded", - "static": true, - "longname": "lib/embedded/index.js~Embedded.EmbeddedCreateInvitesPayload", - "access": "public", - "description": "Create embedded signing invites payload", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "token", - "description": "Access token." - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "document_id", - "description": "ID of the requested document." - }, - { - "nullable": null, - "types": [ - "EmbeddedSigningInvite[]" - ], - "spread": false, - "optional": false, - "name": "invites", - "description": "Array of invites" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "EmbeddedCreateInvitesPayload" - } - }, - { - "__docId__": 171, - "kind": "typedef", - "name": "EmbeddedInvite", - "memberof": "lib/embedded/index.js~Embedded", - "static": true, - "longname": "lib/embedded/index.js~Embedded.EmbeddedInvite", - "access": "public", - "description": "Response EmbeddedInvite", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "id", - "description": "ID of the sending invite" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "email", - "description": "Signer's email address" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "role_id", - "description": "Signer's role ID" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "order", - "description": "Order of signing" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "status", - "description": "Status of the invite" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "EmbeddedInvite" - } - }, - { - "__docId__": 172, - "kind": "typedef", - "name": "EmbeddedCreateInvitesResponse", - "memberof": "lib/embedded/index.js~Embedded", - "static": true, - "longname": "lib/embedded/index.js~Embedded.EmbeddedCreateInvitesResponse", - "access": "public", - "description": "Create embedded signing invites response data", - "properties": [ - { - "nullable": null, - "types": [ - "EmbeddedInvite[]" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "Array sending of invites" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "EmbeddedCreateInvitesResponse" - } - }, - { - "__docId__": 173, - "kind": "method", - "name": "createInvite", - "memberof": "lib/embedded/index.js~Embedded", - "generator": false, - "async": false, - "static": true, - "longname": "lib/embedded/index.js~Embedded.createInvite", - "access": "public", - "description": "Create embedded signing invites for a document without sending emails.", - "lineNumber": 52, - "params": [ - { - "nullable": null, - "types": [ - "EmbeddedCreateInvitesPayload" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "Create invites payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: EmbeddedCreateInvitesResponse)" - ], - "spread": false, - "optional": true, - "name": "callback", - "description": "error first node.js callback" - } - ], - "return": null - }, - { - "__docId__": 174, - "kind": "typedef", - "name": "EmbeddedGenerateLinkPayload", - "memberof": "lib/embedded/index.js~Embedded", - "static": true, - "longname": "lib/embedded/index.js~Embedded.EmbeddedGenerateLinkPayload", - "access": "public", - "description": "Generate embedded invite link payload", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "token", - "description": "Access token." - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "document_id", - "description": "ID of the requested document." - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "field_invite_unique_id", - "description": "ID of the signature invite you'd like to embed." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "link_expiration", - "description": "In how many minutes the link expires, ranges from 15 to 45 minutes or null." - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "auth_method", - "description": "Signer authentication method." - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "EmbeddedGenerateLinkPayload" - } - }, - { - "__docId__": 175, - "kind": "typedef", - "name": "EmbeddedGeneratedLink", - "memberof": "lib/embedded/index.js~Embedded", - "static": true, - "longname": "lib/embedded/index.js~Embedded.EmbeddedGeneratedLink", - "access": "public", - "description": "Response EmbeddedGeneratedLink", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "link", - "description": "Returns a link for embedded invite" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "EmbeddedGeneratedLink" - } - }, - { - "__docId__": 176, - "kind": "typedef", - "name": "EmbeddedGenerateLinkResponse", - "memberof": "lib/embedded/index.js~Embedded", - "static": true, - "longname": "lib/embedded/index.js~Embedded.EmbeddedGenerateLinkResponse", - "access": "public", - "description": "Generate a link for the embedded invite response data", - "properties": [ - { - "nullable": null, - "types": [ - "EmbeddedGeneratedLink" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "Response data" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "EmbeddedGenerateLinkResponse" - } - }, - { - "__docId__": 177, - "kind": "method", - "name": "generateInviteLink", - "memberof": "lib/embedded/index.js~Embedded", - "generator": false, - "async": false, - "static": true, - "longname": "lib/embedded/index.js~Embedded.generateInviteLink", - "access": "public", - "description": "Generate a link for the embedded invite.", - "lineNumber": 102, - "params": [ - { - "nullable": null, - "types": [ - "EmbeddedGenerateLinkPayload" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "Generate embedded invite link payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: EmbeddedGenerateLinkResponse)" - ], - "spread": false, - "optional": true, - "name": "callback", - "description": "error first node.js callback" - } - ], - "return": null - }, - { - "__docId__": 178, - "kind": "typedef", - "name": "EmbeddedCancelInvitePayload", - "memberof": "lib/embedded/index.js~Embedded", - "static": true, - "longname": "lib/embedded/index.js~Embedded.EmbeddedCancelInvitePayload", - "access": "public", - "description": "Delete embedded invites for a document payload", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "token", - "description": "Access token." - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "document_id", - "description": "ID of the requested document." - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "EmbeddedCancelInvitePayload" - } - }, - { - "__docId__": 179, - "kind": "typedef", - "name": "EmbeddedCancelInviteResponse", - "memberof": "lib/embedded/index.js~Embedded", - "static": true, - "longname": "lib/embedded/index.js~Embedded.EmbeddedCancelInviteResponse", - "access": "public", - "description": "Generate a link for the embedded invite response data", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "status", - "description": "Returns success when all parameters are correct" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "EmbeddedCancelInviteResponse" - } - }, - { - "__docId__": 180, - "kind": "method", - "name": "cancelInvites", - "memberof": "lib/embedded/index.js~Embedded", - "generator": false, - "async": false, - "static": true, - "longname": "lib/embedded/index.js~Embedded.cancelInvites", - "access": "public", - "description": "Delete embedded invites for a document.", - "lineNumber": 146, - "params": [ - { - "nullable": null, - "types": [ - "EmbeddedCancelInvitePayload" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "Delete embedded invites for a document payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: EmbeddedCancelInviteResponse)" - ], - "spread": false, - "optional": true, - "name": "callback", - "description": "error first node.js callback" - } - ], - "return": null - }, - { - "__docId__": 181, - "kind": "file", - "name": "lib/index.js", - "content": "'use strict';\nconst user = require('./user');\nconst document = require('./document');\nconst folder = require('./folder');\nconst webhook = require('./webhook');\nconst oauth2 = require('./oauth2');\nconst enumerations = require('./enumerations');\nconst template = require('./template');\nconst link = require('./link');\nconst documentGroup = require('./document-group');\nconst documentGroupTemplate = require('./document-group-template');\nconst embedded = require('./embedded');\nconst { setCredentials } = require('./common');\nconst { setEnvConfig } = require('../config');\n\n/**\n * Api client initialization params\n * @typedef {Object} InitParams\n * @property {string} credentials - base64 encoded basic API credentials\n * @property {boolean} [production=true] - production/eval API flag. If false uses eval\n */\n\n/**\n * Api client features\n * @typedef {Object} Features\n * @property {User} user - user related methods\n * @property {OAuth2} oauth2 - authentication related methods\n * @property {Document} document - document related methods\n * @property {Template} template - template related methods\n * @property {Link} link - link related methods\n * @property {DocumentGroup} documentGroup - document group related methods\n * @property {DocumentGroupTemplate} documentGroupTemplate - document group template related methods\n * @property {Embedded} embedded - embedded signing related methods\n */\n\n/**\n * SignNow API client initialization\n * @param {InitParams} params - API client initialization params\n * @return {Features}\n */\nmodule.exports = function init ({\n production = true,\n credentials,\n}) {\n if (credentials) {\n setCredentials(credentials);\n }\n\n if (production) {\n setEnvConfig('prod');\n } else {\n setEnvConfig('eval');\n }\n\n return {\n user,\n oauth2,\n document,\n webhook,\n folder,\n enumerations,\n template,\n link,\n documentGroup,\n documentGroupTemplate,\n embedded,\n };\n};\n\n/**\n * Api error object\n * @typedef {Object} ApiError\n * @property {number} code - error code\n * @property {string} message - error message\n */\n\n/**\n * Api error response\n * @typedef {?(ApiError[]|ApiError|Error|string)} ApiErrorResponse\n */\n", - "static": true, - "longname": "/app/lib/index.js", - "access": "public", - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 182, - "kind": "typedef", - "name": "InitParams", - "memberof": "lib/index.js", - "static": true, - "longname": "lib/index.js~InitParams", - "access": "public", - "description": "Api client initialization params", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "credentials", - "description": "base64 encoded basic API credentials" - }, - { - "nullable": null, - "types": [ - "boolean" - ], - "spread": false, - "optional": true, - "defaultValue": "true", - "defaultRaw": true, - "name": "production", - "description": "production/eval API flag. If false uses eval" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "InitParams" - } - }, - { - "__docId__": 183, - "kind": "typedef", - "name": "Features", - "memberof": "lib/index.js", - "static": true, - "longname": "lib/index.js~Features", - "access": "public", - "description": "Api client features", - "properties": [ - { - "nullable": null, - "types": [ - "User" - ], - "spread": false, - "optional": false, - "name": "user", - "description": "user related methods" - }, - { - "nullable": null, - "types": [ - "OAuth2" - ], - "spread": false, - "optional": false, - "name": "oauth2", - "description": "authentication related methods" - }, - { - "nullable": null, - "types": [ - "Document" - ], - "spread": false, - "optional": false, - "name": "document", - "description": "document related methods" - }, - { - "nullable": null, - "types": [ - "Template" - ], - "spread": false, - "optional": false, - "name": "template", - "description": "template related methods" - }, - { - "nullable": null, - "types": [ - "Link" - ], - "spread": false, - "optional": false, - "name": "link", - "description": "link related methods" - }, - { - "nullable": null, - "types": [ - "DocumentGroup" - ], - "spread": false, - "optional": false, - "name": "documentGroup", - "description": "document group related methods" - }, - { - "nullable": null, - "types": [ - "DocumentGroupTemplate" - ], - "spread": false, - "optional": false, - "name": "documentGroupTemplate", - "description": "document group template related methods" - }, - { - "nullable": null, - "types": [ - "Embedded" - ], - "spread": false, - "optional": false, - "name": "embedded", - "description": "embedded signing related methods" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "Features" - } - }, - { - "__docId__": 184, - "kind": "function", - "name": "init", - "memberof": "lib/index.js", - "generator": false, - "async": false, - "static": true, - "longname": "lib/index.js~init", - "access": "public", - "export": true, - "importPath": "@signnow/api-client", - "importStyle": "init", - "description": "SignNow API client initialization", - "lineNumber": 41, - "params": [ - { - "nullable": null, - "types": [ - "InitParams" - ], - "spread": false, - "optional": false, - "name": "params", - "description": "API client initialization params" - } - ], - "return": { - "nullable": null, - "types": [ - "Features" - ], - "spread": false, - "description": "" - } - }, - { - "__docId__": 185, - "kind": "typedef", - "name": "ApiError", - "memberof": "lib/index.js", - "static": true, - "longname": "lib/index.js~ApiError", - "access": "public", - "description": "Api error object", - "properties": [ - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "code", - "description": "error code" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "message", - "description": "error message" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "ApiError" - } - }, - { - "__docId__": 186, - "kind": "typedef", - "name": "ApiErrorResponse", - "memberof": "lib/index.js", - "static": true, - "longname": "lib/index.js~ApiErrorResponse", - "access": "public", - "description": "Api error response", - "type": { - "types": [ - "ApiError[]", - "ApiError", - "Error", - "string" - ], - "optional": false, - "name": "ApiErrorResponse" - } - }, - { - "__docId__": 187, - "kind": "file", - "name": "lib/link/index.js", - "content": "'use strict';\nconst https = require('https');\nconst {\n responseHandler,\n errorHandler,\n buildRequestOptions,\n} = require('../common');\nconst { view } = require('../document');\n\n/**\n * @type {function}\n * @param {DocumentViewParams} data - view document with field extract payload\n * @param {function(err: ApiErrorResponse, res: DocumentViewResponse)} [callback] - error first node.js callback\n */\nconst getDocumentDetails = view;\n\n/**\n * Link methods\n */\nclass Link {\n\n /**\n * Create signing link payload\n * @typedef {Object} SigningLinkCreateParams\n * @property {string} document_id - id of specific document\n * @property {string} token - your auth token\n */\n\n /**\n * Create signing link response data\n * @typedef {Object} SigningLinkCreateResponse\n * @property {string} url - invite url with user authorization\n * @property {string} url_no_signup - invite url without user authorization\n */\n\n /**\n * Creates signing link for specified document\n * @param {SigningLinkCreateParams} data - create signing link payload\n * @param {function(err: ApiErrorResponse, res: SigningLinkCreateResponse)} [callback] - error first node.js callback\n */\n static create ({ document_id, token }, callback) {\n getDocumentDetails({\n id: document_id,\n token,\n }, (detailErr, detailRes) => {\n if (detailErr) {\n callback(detailErr);\n return;\n } else {\n const { routing_details } = detailRes;\n const documentHasAtLeastOneUnfixedRole = routing_details\n .map(routing => routing.data)\n .reduce((acc, i) => acc.concat(i), [])\n .some(role => role.default_email === '');\n\n if (documentHasAtLeastOneUnfixedRole) {\n const JSONData = JSON.stringify({ document_id });\n const req = https\n .request(buildRequestOptions({\n method: 'POST',\n path: '/link',\n authorization: {\n type: 'Bearer',\n token,\n },\n headers: {\n 'Content-Type': 'application/json',\n 'Content-Length': Buffer.byteLength(JSONData),\n },\n }), responseHandler(callback))\n .on('error', errorHandler(callback));\n\n req.write(JSONData);\n req.end();\n } else {\n callback('A document must have at least one role that does not have a fixed e-mail to create an invite link.');\n return;\n }\n }\n });\n }\n}\n\nmodule.exports = Link;\n", - "static": true, - "longname": "/app/lib/link/index.js", - "access": "public", - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 188, - "kind": "variable", - "name": "getDocumentDetails", - "memberof": "lib/link/index.js", - "static": true, - "longname": "lib/link/index.js~getDocumentDetails", - "access": "public", - "export": false, - "importPath": "@signnow/api-client/lib/link/index.js", - "importStyle": null, - "description": "", - "lineNumber": 15, - "params": [ - { - "nullable": null, - "types": [ - "DocumentViewParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "view document with field extract payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: DocumentViewResponse)" - ], - "spread": false, - "optional": true, - "name": "callback", - "description": "error first node.js callback" - } - ], - "type": { - "nullable": null, - "types": [ - "function" - ], - "spread": false, - "description": null - }, - "ignore": true - }, - { - "__docId__": 189, - "kind": "class", - "name": "Link", - "memberof": "lib/link/index.js", - "static": true, - "longname": "lib/link/index.js~Link", - "access": "public", - "export": true, - "importPath": "@signnow/api-client/lib/link/index.js", - "importStyle": "Link", - "description": "Link methods", - "lineNumber": 20, - "interface": false - }, - { - "__docId__": 190, - "kind": "typedef", - "name": "SigningLinkCreateParams", - "memberof": "lib/link/index.js~Link", - "static": true, - "longname": "lib/link/index.js~Link.SigningLinkCreateParams", - "access": "public", - "description": "Create signing link payload", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "document_id", - "description": "id of specific document" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "token", - "description": "your auth token" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "SigningLinkCreateParams" - } - }, - { - "__docId__": 191, - "kind": "typedef", - "name": "SigningLinkCreateResponse", - "memberof": "lib/link/index.js~Link", - "static": true, - "longname": "lib/link/index.js~Link.SigningLinkCreateResponse", - "access": "public", - "description": "Create signing link response data", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "url", - "description": "invite url with user authorization" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "url_no_signup", - "description": "invite url without user authorization" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "SigningLinkCreateResponse" - } - }, - { - "__docId__": 192, - "kind": "method", - "name": "create", - "memberof": "lib/link/index.js~Link", - "generator": false, - "async": false, - "static": true, - "longname": "lib/link/index.js~Link.create", - "access": "public", - "description": "Creates signing link for specified document", - "lineNumber": 41, - "params": [ - { - "nullable": null, - "types": [ - "SigningLinkCreateParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "create signing link payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: SigningLinkCreateResponse)" - ], - "spread": false, - "optional": true, - "name": "callback", - "description": "error first node.js callback" - } - ], - "return": null - }, - { - "__docId__": 193, - "kind": "file", - "name": "lib/oauth2/index.js", - "content": "'use strict';\nconst https = require('https');\nconst querystring = require('querystring');\nconst {\n responseHandler,\n errorHandler,\n buildRequestOptions,\n} = require('../common');\n\n/**\n * OAuth2 methods\n */\nclass OAuth2 {\n\n /**\n * Request access token payload\n * @typedef {Object} AccessTokenGetParams\n * @property {string} username - email of a user\n * @property {string} password - password of a user\n */\n\n /**\n * Request access token response data\n * @typedef {Object} AccessTokenGetResponse\n * @property {number} expires_in - time in seconds for which the token was issued\n * @property {string} token_type - type of access token (e.g. 'bearer')\n * @property {string} access_token - access token\n * @property {string} refresh_token - refresh token\n * @property {string} scope - access scopes\n */\n\n /**\n * Requests access token for a user\n * @param {AccessTokenGetParams} data - access token reques payload\n * @param {function(err: ApiErrorResponse, res: AccessTokenGetResponse)} [callback] - error first node.js callback\n */\n static requestToken (data, callback) {\n const dataCopy = Object.assign({}, data, { grant_type: 'password' });\n const dataStringified = querystring.stringify(dataCopy).replace('%40', '@');\n const req = https\n .request(buildRequestOptions({\n method: 'POST',\n path: '/oauth2/token',\n authorization: { type: 'Basic' },\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n 'Content-Length': Buffer.byteLength(dataStringified),\n },\n }), responseHandler(callback))\n .on('error', errorHandler(callback));\n\n req.write(dataStringified);\n req.end();\n }\n\n /**\n * Verify access token payload\n * @typedef {Object} AccessTokenVerifyParams\n * @property {string} token - your auth token\n */\n\n /**\n * Verify access token response data\n * @typedef {Object} AccessTokenVerifyResponse\n * @property {number} expires_in - time in seconds for which the token was issued\n * @property {string} token_type - type of access token (e.g. 'bearer')\n * @property {string} access_token - access token\n * @property {string} scope - access scopes\n */\n\n /**\n * Verifies access token\n * @param {AccessTokenVerifyParams} data - access token request payload\n * @param {function(err: ApiErrorResponse, res: AccessTokenVerifyResponse)} [callback] - error first node.js callback\n */\n static verify ({ token }, callback) {\n https\n .request(buildRequestOptions({\n method: 'GET',\n path: '/oauth2/token',\n authorization: {\n type: 'Bearer',\n token,\n },\n }), responseHandler(callback))\n .on('error', errorHandler(callback))\n .end();\n }\n\n /**\n * Refresh access token payload\n * @typedef {Object} AccessTokenRefreshParams\n * @property {string} refresh_token - your refresh token\n * @property {string} [scope] - access scopes of access token\n * @property {number} [expiration_time] - time in seconds for which the token was issued\n */\n\n /**\n * Refresh access token response data\n * @typedef {Object} AccessTokenRefreshResponse\n * @property {number} expires_in - time in seconds for which the token was issued\n * @property {string} token_type - type of access token (e.g. 'bearer')\n * @property {string} access_token - access token\n * @property {string} refresh_token - refresh token\n * @property {string} scope - access scopes\n */\n\n /**\n * Refreshes access token for a user\n * @param {AccessTokenRefreshParams} data - refresh token request payload\n * @param {function(err: ApiErrorResponse, res: AccessTokenRefreshResponse)} [callback] - error first node.js callback\n */\n static refreshToken (data, callback) {\n const dataCopy = Object.assign({}, data, { grant_type: 'refresh_token' });\n const dataStringified = querystring.stringify(dataCopy).replace('%40', '@');\n const req = https\n .request(buildRequestOptions({\n method: 'POST',\n path: '/oauth2/token',\n authorization: { type: 'Basic' },\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n 'Content-Length': Buffer.byteLength(dataStringified),\n },\n }), responseHandler(callback))\n .on('error', errorHandler(callback));\n\n req.write(dataStringified);\n req.end();\n }\n\n}\n\nmodule.exports = OAuth2;\n", - "static": true, - "longname": "/app/lib/oauth2/index.js", - "access": "public", - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 194, - "kind": "class", - "name": "OAuth2", - "memberof": "lib/oauth2/index.js", - "static": true, - "longname": "lib/oauth2/index.js~OAuth2", - "access": "public", - "export": true, - "importPath": "@signnow/api-client/lib/oauth2/index.js", - "importStyle": "OAuth2", - "description": "OAuth2 methods", - "lineNumber": 13, - "interface": false - }, - { - "__docId__": 195, - "kind": "typedef", - "name": "AccessTokenGetParams", - "memberof": "lib/oauth2/index.js~OAuth2", - "static": true, - "longname": "lib/oauth2/index.js~OAuth2.AccessTokenGetParams", - "access": "public", - "description": "Request access token payload", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "username", - "description": "email of a user" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "password", - "description": "password of a user" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "AccessTokenGetParams" - } - }, - { - "__docId__": 196, - "kind": "typedef", - "name": "AccessTokenGetResponse", - "memberof": "lib/oauth2/index.js~OAuth2", - "static": true, - "longname": "lib/oauth2/index.js~OAuth2.AccessTokenGetResponse", - "access": "public", - "description": "Request access token response data", - "properties": [ - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "expires_in", - "description": "time in seconds for which the token was issued" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "token_type", - "description": "type of access token (e.g. 'bearer')" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "access_token", - "description": "access token" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "refresh_token", - "description": "refresh token" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "scope", - "description": "access scopes" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "AccessTokenGetResponse" - } - }, - { - "__docId__": 197, - "kind": "method", - "name": "requestToken", - "memberof": "lib/oauth2/index.js~OAuth2", - "generator": false, - "async": false, - "static": true, - "longname": "lib/oauth2/index.js~OAuth2.requestToken", - "access": "public", - "description": "Requests access token for a user", - "lineNumber": 37, - "params": [ - { - "nullable": null, - "types": [ - "AccessTokenGetParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "access token reques payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: AccessTokenGetResponse)" - ], - "spread": false, - "optional": true, - "name": "callback", - "description": "error first node.js callback" - } - ], - "return": null - }, - { - "__docId__": 198, - "kind": "typedef", - "name": "AccessTokenVerifyParams", - "memberof": "lib/oauth2/index.js~OAuth2", - "static": true, - "longname": "lib/oauth2/index.js~OAuth2.AccessTokenVerifyParams", - "access": "public", - "description": "Verify access token payload", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "token", - "description": "your auth token" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "AccessTokenVerifyParams" - } - }, - { - "__docId__": 199, - "kind": "typedef", - "name": "AccessTokenVerifyResponse", - "memberof": "lib/oauth2/index.js~OAuth2", - "static": true, - "longname": "lib/oauth2/index.js~OAuth2.AccessTokenVerifyResponse", - "access": "public", - "description": "Verify access token response data", - "properties": [ - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "expires_in", - "description": "time in seconds for which the token was issued" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "token_type", - "description": "type of access token (e.g. 'bearer')" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "access_token", - "description": "access token" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "scope", - "description": "access scopes" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "AccessTokenVerifyResponse" - } - }, - { - "__docId__": 200, - "kind": "method", - "name": "verify", - "memberof": "lib/oauth2/index.js~OAuth2", - "generator": false, - "async": false, - "static": true, - "longname": "lib/oauth2/index.js~OAuth2.verify", - "access": "public", - "description": "Verifies access token", - "lineNumber": 76, - "params": [ - { - "nullable": null, - "types": [ - "AccessTokenVerifyParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "access token request payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: AccessTokenVerifyResponse)" - ], - "spread": false, - "optional": true, - "name": "callback", - "description": "error first node.js callback" - } - ], - "return": null - }, - { - "__docId__": 201, - "kind": "typedef", - "name": "AccessTokenRefreshParams", - "memberof": "lib/oauth2/index.js~OAuth2", - "static": true, - "longname": "lib/oauth2/index.js~OAuth2.AccessTokenRefreshParams", - "access": "public", - "description": "Refresh access token payload", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "refresh_token", - "description": "your refresh token" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "scope", - "description": "access scopes of access token" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": true, - "name": "expiration_time", - "description": "time in seconds for which the token was issued" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "AccessTokenRefreshParams" - } - }, - { - "__docId__": 202, - "kind": "typedef", - "name": "AccessTokenRefreshResponse", - "memberof": "lib/oauth2/index.js~OAuth2", - "static": true, - "longname": "lib/oauth2/index.js~OAuth2.AccessTokenRefreshResponse", - "access": "public", - "description": "Refresh access token response data", - "properties": [ - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "expires_in", - "description": "time in seconds for which the token was issued" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "token_type", - "description": "type of access token (e.g. 'bearer')" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "access_token", - "description": "access token" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "refresh_token", - "description": "refresh token" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "scope", - "description": "access scopes" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "AccessTokenRefreshResponse" - } - }, - { - "__docId__": 203, - "kind": "method", - "name": "refreshToken", - "memberof": "lib/oauth2/index.js~OAuth2", - "generator": false, - "async": false, - "static": true, - "longname": "lib/oauth2/index.js~OAuth2.refreshToken", - "access": "public", - "description": "Refreshes access token for a user", - "lineNumber": 113, - "params": [ - { - "nullable": null, - "types": [ - "AccessTokenRefreshParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "refresh token request payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: AccessTokenRefreshResponse)" - ], - "spread": false, - "optional": true, - "name": "callback", - "description": "error first node.js callback" - } - ], - "return": null - }, - { - "__docId__": 204, - "kind": "file", - "name": "lib/template/index.js", - "content": "'use strict';\nconst https = require('https');\nconst { readFileSync } = require('fs');\nconst { basename } = require('path');\nconst {\n responseHandler,\n errorHandler,\n buildRequestOptions,\n isCSVFile,\n getFormDataBoundary,\n} = require('../common');\nconst {\n remove,\n invite,\n view,\n} = require('../document');\nconst { promisify } = require('../../utils');\n\n/**\n * @type {function}\n * @param {DocumentRemoveParams} data - remove document payload\n * @param {function(err: ApiErrorResponse, res: DocumentRemoveResponse)} [callback] - error first node.js callback\n */\nconst removeDocument = remove;\n\n/**\n * @type {function}\n * @param {DocumentInviteParams} data - create document invite payload\n * @param {function(err: ApiErrorResponse, res: DocumentInviteResponse)} [callback] - error first node.js callback\n */\nconst sendDocumentInvite = invite;\n\n/**\n * @type {function}\n * @param {DocumentViewParams} data - view document with field extract payload\n * @param {function(err: ApiErrorResponse, res: DocumentViewResponse)} [callback] - error first node.js callback\n */\nconst getDocumentDetails = view;\n\n/**\n * Update Signing Role payload\n * @typedef {Object} TemplateUpdateSigningRoleParams\n * @property {string} id - an ID of Actor (role)\n * @property {string} token - your auth token\n * @property {number} signing_order - signing order number\n */\n\n/**\n * Update Signing Role response data\n * @typedef {Object} TemplateUpdateSigningRoleResponse\n * @property {string} id - unique ID of Actor\n * @property {string} document_id - unique ID of Template\n * @property {number} signing_order - signing order number\n */\n\n/**\n * Updates Signing Role with order of actor\n * @param {TemplateUpdateSigningRoleParams} data - update signing role payload\n * @param {function(err: ApiErrorResponse, res: TemplateUpdateSigningRoleResponse)} [callback] - error first node.js callback\n */\nconst updateSigningRole = ({\n id,\n token,\n signing_order,\n}, callback) => {\n const JSONData = JSON.stringify({ signing_order });\n const req = https\n .request(buildRequestOptions({\n method: 'PUT',\n path: `/role/${id}`,\n authorization: {\n type: 'Bearer',\n token,\n },\n headers: {\n 'Content-Type': 'application/json',\n 'Content-Length': Buffer.byteLength(JSONData),\n },\n }), responseHandler(callback))\n .on('error', errorHandler(callback));\n\n req.write(JSONData);\n req.end();\n};\n\n/**\n * Template methods\n */\nclass Template {\n\n /**\n * Document invite optional settings\n * @typedef {Object} TemplateCreateOptions\n * @property {boolean} [removeOriginalDocument=false] - if true original document will be removed\n */\n\n /**\n * Create template payload\n * @typedef {Object} TemplateCreateParams\n * @property {string} document_id - an id of original document\n * @property {string} document_name - a name of new template\n * @property {TemplateCreateOptions} options - create template optional settings\n * @property {string} token - your auth token\n */\n\n /**\n * Create template response data\n * @typedef {Object} TemplateCreateResponse\n * @property {string} id - an id of created template\n */\n\n /**\n * Creates a template by copying an existing unfulfilled and not requested for sign document.\n * By default original document is not removed after template creation. To remove original document set `removeOriginalDocument` option to `true`.\n * @param {TemplateCreateParams} data - create template payload\n * @param {function(err: ApiErrorResponse, res: TemplateCreateResponse)} [originalCallback] - error first node.js callback\n */\n static create ({\n document_id,\n document_name,\n options: { removeOriginalDocument = false } = {},\n token,\n }, originalCallback) {\n const JSONData = JSON.stringify({\n document_id,\n document_name,\n });\n\n const callbackWithDocumentDeletion = (createErr, createRes) => {\n if (createErr) {\n originalCallback(createErr);\n return;\n } else {\n removeDocument({\n id: document_id,\n token,\n }, removeErr => {\n if (removeErr) {\n originalCallback(removeErr);\n return;\n } else {\n originalCallback(null, createRes);\n return;\n }\n });\n }\n };\n\n const callback = removeOriginalDocument\n ? callbackWithDocumentDeletion\n : originalCallback;\n\n const req = https\n .request(buildRequestOptions({\n method: 'POST',\n path: '/template',\n authorization: {\n type: 'Bearer',\n token,\n },\n headers: {\n 'Content-Type': 'application/json',\n 'Content-Length': Buffer.byteLength(JSONData),\n },\n }), responseHandler(callback))\n .on('error', errorHandler(originalCallback));\n\n req.write(JSONData);\n req.end();\n }\n\n /**\n * Copy template payload\n * @typedef {Object} TemplateDuplicateParams\n * @property {string} id - an id of original template\n * @property {string} name - a name of new document\n * @property {string} token - your auth token\n */\n\n /**\n * Copy template response data\n * @typedef {Object} TemplateDuplicateResponse\n * @property {string} id - an id of created document\n * @property {string} name - a name of created document\n */\n\n /**\n * Creates a new document by copying a template.\n * If a name is not supplied then document name will be set to the original template's name by default.\n * @param {TemplateDuplicateParams} data - duplicate template payload\n * @param {function(err: ApiErrorResponse, res: TemplateDuplicateResponse)} [callback] - error first node.js callback\n */\n static duplicate ({\n id: template_id,\n name: document_name,\n token,\n }, callback) {\n const JSONData = JSON.stringify({\n template_id,\n document_name,\n });\n\n const req = https\n .request(buildRequestOptions({\n method: 'POST',\n path: `/template/${template_id}/copy`,\n authorization: {\n type: 'Bearer',\n token,\n },\n headers: {\n 'Content-Type': 'application/json',\n 'Content-Length': Buffer.byteLength(JSONData),\n },\n }), responseHandler(callback))\n .on('error', errorHandler(callback));\n\n req.write(JSONData);\n req.end();\n }\n\n /**\n * Create invite with template payload\n * @typedef {DocumentInviteParams} TemplateInviteParams\n */\n\n /**\n * Create invite with template response data\n * @typedef {DocumentInviteResponse} TemplateInviteResponse\n */\n\n /**\n * Creates an invite to sign a template.\n * You can create a simple free form invite(s) or a role-based invite(s).\n * The method copies a template into document and creates an invite using created document.\n * @param {TemplateInviteParams} data - create template invite payload\n * @param {function(err: ApiErrorResponse, res: TemplateInviteResponse)} [callback] - error first node.js callback\n */\n static invite ({\n id,\n data,\n options,\n token,\n }, callback) {\n Template.duplicate({\n id,\n token,\n }, (copyErr, copyRes) => {\n if (copyErr) {\n callback(copyErr);\n return;\n } else if (Array.isArray(data.to)) {\n const { id: documentId } = copyRes;\n\n getDocumentDetails({\n id: documentId,\n token,\n }, (detailErr, detailRes) => {\n if (detailErr) {\n callback(detailErr);\n return;\n } else {\n const inviteData = Object.assign({}, data, { document_id: documentId });\n const { roles } = detailRes;\n\n for (const signer of inviteData.to) {\n try {\n signer.role_id = roles.find(role => role.name === signer.role).unique_id;\n } catch (err) {\n callback(err);\n return;\n }\n }\n\n sendDocumentInvite({\n id: documentId,\n data: inviteData,\n options,\n token,\n }, callback);\n }\n });\n } else {\n const { id: documentId } = copyRes;\n const inviteData = Object.assign({}, data, { document_id: documentId });\n\n sendDocumentInvite({\n id: documentId,\n data: inviteData,\n options,\n token,\n }, callback);\n }\n });\n }\n\n /**\n * Remove template payload\n * @typedef {DocumentRemoveParams} TemplateRemoveParams\n */\n\n /**\n * Remove template response data\n * @typedef {DocumentRemoveResponse} TemplateRemoveResponse\n */\n\n /**\n * Removes a specified template from folder\n * @param {TemplateRemoveParams} data - remove template payload\n * @param {function(err: ApiErrorResponse, res: TemplateRemoveResponse)} [callback] - error first node.js callback\n */\n static remove ({\n id,\n token,\n options,\n }, callback) {\n removeDocument({\n id,\n token,\n options,\n }, callback);\n }\n\n /**\n * Get Template Routing Details payload\n * @typedef {Object} TemplateGetRoutingDetailsParams\n * @property {string} id - an ID of specific Template\n * @property {string} token - your auth token\n */\n\n /**\n * Template Routing Details item data\n * @typedef {Object} TemplateRoutingDetailsItem\n * @property {string} default_email - default email for routing detail\n * @property {boolean} inviter_role - always `false`\n * @property {string} name - signer role (actor) name\n * @property {string} role_id - signer role (actor) unique ID\n * @property {number} signing_order - order number of signing step\n */\n\n /**\n * Template Routing Details CC step info\n * @typedef {Object} TemplateRoutingDetailsCCStep\n * @property {string} email - email of cc step\n * @property {number} step - step order number\n * @property {string} name - name of cc step\n */\n\n /**\n * Get Template Routing Details response data\n * @typedef {Object} TemplateGetRoutingDetailsResponse\n * @property {TemplateRoutingDetailsItem[]} routing_details - array with routing details\n * @property {string[]} cc - CC emails\n * @property {TemplateRoutingDetailsCCStep[]} cc_step - array of CC`s steps\n * @property {string} invite_link_instructions - invite link instructions\n */\n\n /**\n * Retrieves Routing Details of specified Template\n * @param {TemplateGetRoutingDetailsParams} data - get Routing Details payload\n * @param {function(err: ApiErrorResponse, res: TemplateGetRoutingDetailsResponse)} [callback] - error first node.js callback\n */\n static getRoutingDetails ({\n id,\n token,\n }, callback) {\n https\n .request(buildRequestOptions({\n method: 'GET',\n path: `/document/${id}/template/routing/detail`,\n authorization: {\n type: 'Bearer',\n token,\n },\n }), responseHandler(callback))\n .on('error', errorHandler(callback))\n .end();\n }\n\n /**\n * Template Update Routing Details item data\n * @typedef {Object} TemplateUpdateRoutingDetailsItem\n * @property {string} default_email - default email for routing detail\n * @property {boolean} inviter_role - always `false`\n * @property {string} name - signer role (actor) name\n * @property {string} role_id - signer role (actor) unique ID\n * @property {number} signing_order - order number of signing step\n * @property {boolean} decline_by_signature - decline by signature flag\n */\n\n /**\n * Update Template Routing Details settings\n * @typedef {Object} TemplateUpdateRoutingDetailsSettings\n * @property {TemplateUpdateRoutingDetailsItem[]} template_data - array with routing details\n * @property {string[]} cc - CC emails\n * @property {TemplateRoutingDetailsCCStep[]} cc_step - array of CC steps\n * @property {string} [invite_link_instructions] - invite signing instructions\n */\n\n /**\n * Update Template Routing Details payload\n * @typedef {Object} TemplateUpdateRoutingDetailsParams\n * @property {string} id - an ID of specific Template\n * @property {string} token - your auth token\n * @property {TemplateUpdateRoutingDetailsSettings} data - update Template Routing Details settings\n */\n\n /**\n * Update Template Routing Details response data\n * @typedef {Object} TemplateUpdateRoutingDetailsResponse\n * @property {string} id - unique ID of template routing details\n * @property {string} document_id - unique ID of Template\n * @property {TemplateUpdateRoutingDetailsItem[]} data - array with routing details\n * @property {string[]} cc - CC emails\n * @property {TemplateRoutingDetailsCCStep[]} cc_step - array of CC steps\n * @property {string} invite_link_instructions - invite signing instructions\n */\n\n /**\n * Updates Routing Details of specified template\n * @param {TemplateUpdateRoutingDetailsParams} data - update Template Routing Details payload\n * @param {function(err: ApiErrorResponse, res: TemplateUpdateRoutingDetailsResponse)} [callback] - error first node.js callback\n */\n static updateRoutingDetails ({\n id,\n token,\n data,\n }, callback) {\n const {\n template_data,\n cc,\n cc_step,\n invite_link_instructions,\n } = data;\n const JSONData = JSON.stringify({\n template_data,\n cc,\n cc_step,\n invite_link_instructions,\n });\n\n const updateCallback = (err, res) => {\n if (err) {\n callback(err);\n return;\n } else {\n const { data: routingDetails } = res;\n const rolesUpdated = routingDetails\n .map(route => {\n const { role_id, signing_order } = route;\n return promisify(updateSigningRole)({\n id: role_id,\n signing_order,\n token,\n });\n });\n\n Promise.all(rolesUpdated)\n .then(roleUpdatesRes => {\n return roleUpdatesRes.reduce((generalStatus, roleUpdateRes) => (generalStatus && !!roleUpdateRes.id), true);\n })\n .then(allRolesUpdated => {\n if (allRolesUpdated) {\n callback(null, res);\n return;\n } else {\n throw new Error('Some roles (actors) where not updated');\n }\n })\n .catch(roleUpdatesErr => {\n callback(roleUpdatesErr);\n return;\n });\n }\n };\n\n const req = https\n .request(buildRequestOptions({\n method: 'PUT',\n path: `/document/${id}/template/routing/detail`,\n authorization: {\n type: 'Bearer',\n token,\n },\n headers: {\n 'Content-Type': 'application/json',\n 'Content-Length': Buffer.byteLength(JSONData),\n },\n }), responseHandler(updateCallback))\n .on('error', errorHandler(callback));\n\n req.write(JSONData);\n req.end();\n }\n\n /**\n * Template Bulk Invite settings\n * @typedef {Object} TemplateBulkInviteSettings\n * @property {string} file - path to .csv file with roles and their emails. Max file size should be <= 1 Megabyte\n * @property {string} folder_id - an ID of folder where signed documents will be saved\n * @property {number} [client_timestamp] - client timestamp in seconds\n * @property {string} [document_name] - setup prefix for each document name\n * @property {string} [subject] - custom email subject\n * @property {string} [email_message] - custom email message\n */\n\n /**\n * Send Template Bulk Invite payload\n * @typedef {Object} TemplateBulkInviteParams\n * @property {string} id - an ID of specific Template\n * @property {string} token - your auth token\n * @property {TemplateBulkInviteSettings} data - Template Bulk Invite settings\n */\n\n /**\n * Send Template Bulk Invite response data\n * @typedef {Object} TemplateBulkInviteResponse\n * @property {string} status - status of sending bulk invites (e.g. \"job queued\")\n */\n\n /**\n * Sends invites to sign a specified template to multiple signers at once\n * @experimental internal implementation of this method might be changed\n * @param {TemplateBulkInviteParams} data - Bulk Invite payload\n * @param {function(err: ApiErrorResponse, res: TemplateBulkInviteResponse)} [callback] - error first node.js callback\n */\n static bulkInvite ({\n id,\n token,\n data,\n }, callback) {\n const {\n file,\n folder_id,\n client_timestamp,\n document_name,\n subject,\n email_message,\n } = data;\n\n if (!isCSVFile(file)) {\n callback('The file that was tried to be uploaded is not a CSV file');\n return;\n }\n\n const metaData = {\n folder_id,\n client_timestamp,\n document_name,\n subject,\n email_message,\n };\n\n const formDataBoundary = getFormDataBoundary();\n const formDataBeginning = Object\n .entries(metaData)\n .reduce((formData, [\n name,\n value,\n ]) => `${formData}--${formDataBoundary}\\r\\nContent-Disposition: form-data; name=\"${name}\";\\r\\n\\r\\n${value}\\r\\n`, '')\n .concat(`--${formDataBoundary}\\r\\n`)\n .concat(`Content-Disposition: form-data; name=\"file\"; filename=\"${basename(file)}\"\\r\\n`)\n .concat('Content-Type: text/csv\\r\\n\\r\\n');\n const formDataEnding = `\\r\\n--${formDataBoundary}\\r\\n`;\n let fileContent;\n\n try {\n fileContent = readFileSync(file);\n } catch (err) {\n callback(err);\n return;\n }\n\n const payload = Buffer.concat([\n Buffer.from(formDataBeginning, 'utf8'),\n Buffer.from(fileContent, 'binary'),\n Buffer.from(formDataEnding, 'utf8'),\n ]);\n\n const req = https\n .request(buildRequestOptions({\n method: 'POST',\n path: `/template/${id}/bulkinvite`,\n authorization: {\n type: 'Bearer',\n token,\n },\n headers: {\n 'Content-Type': `multipart/form-data; boundary=${formDataBoundary}`,\n 'Content-Length': Buffer.byteLength(payload),\n },\n }), responseHandler(callback))\n .on('error', errorHandler(callback));\n\n req.write(payload);\n req.end();\n }\n\n}\n\nmodule.exports = Template;\n", - "static": true, - "longname": "/app/lib/template/index.js", - "access": "public", - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 205, - "kind": "variable", - "name": "removeDocument", - "memberof": "lib/template/index.js", - "static": true, - "longname": "lib/template/index.js~removeDocument", - "access": "public", - "export": false, - "importPath": "@signnow/api-client/lib/template/index.js", - "importStyle": null, - "description": "", - "lineNumber": 24, - "params": [ - { - "nullable": null, - "types": [ - "DocumentRemoveParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "remove document payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: DocumentRemoveResponse)" - ], - "spread": false, - "optional": true, - "name": "callback", - "description": "error first node.js callback" - } - ], - "type": { - "nullable": null, - "types": [ - "function" - ], - "spread": false, - "description": null - }, - "ignore": true - }, - { - "__docId__": 206, - "kind": "variable", - "name": "sendDocumentInvite", - "memberof": "lib/template/index.js", - "static": true, - "longname": "lib/template/index.js~sendDocumentInvite", - "access": "public", - "export": false, - "importPath": "@signnow/api-client/lib/template/index.js", - "importStyle": null, - "description": "", - "lineNumber": 31, - "params": [ - { - "nullable": null, - "types": [ - "DocumentInviteParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "create document invite payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: DocumentInviteResponse)" - ], - "spread": false, - "optional": true, - "name": "callback", - "description": "error first node.js callback" - } - ], - "type": { - "nullable": null, - "types": [ - "function" - ], - "spread": false, - "description": null - }, - "ignore": true - }, - { - "__docId__": 207, - "kind": "variable", - "name": "getDocumentDetails", - "memberof": "lib/template/index.js", - "static": true, - "longname": "lib/template/index.js~getDocumentDetails", - "access": "public", - "export": false, - "importPath": "@signnow/api-client/lib/template/index.js", - "importStyle": null, - "description": "", - "lineNumber": 38, - "params": [ - { - "nullable": null, - "types": [ - "DocumentViewParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "view document with field extract payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: DocumentViewResponse)" - ], - "spread": false, - "optional": true, - "name": "callback", - "description": "error first node.js callback" - } - ], - "type": { - "nullable": null, - "types": [ - "function" - ], - "spread": false, - "description": null - }, - "ignore": true - }, - { - "__docId__": 208, - "kind": "typedef", - "name": "TemplateUpdateSigningRoleParams", - "memberof": "lib/template/index.js", - "static": true, - "longname": "lib/template/index.js~TemplateUpdateSigningRoleParams", - "access": "public", - "description": "Update Signing Role payload", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "id", - "description": "an ID of Actor (role)" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "token", - "description": "your auth token" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "signing_order", - "description": "signing order number" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "TemplateUpdateSigningRoleParams" - } - }, - { - "__docId__": 209, - "kind": "typedef", - "name": "TemplateUpdateSigningRoleResponse", - "memberof": "lib/template/index.js", - "static": true, - "longname": "lib/template/index.js~TemplateUpdateSigningRoleResponse", - "access": "public", - "description": "Update Signing Role response data", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "id", - "description": "unique ID of Actor" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "document_id", - "description": "unique ID of Template" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "signing_order", - "description": "signing order number" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "TemplateUpdateSigningRoleResponse" - } - }, - { - "__docId__": 210, - "kind": "function", - "name": "updateSigningRole", - "memberof": "lib/template/index.js", - "generator": false, - "async": false, - "static": true, - "longname": "lib/template/index.js~updateSigningRole", - "access": "public", - "export": false, - "importPath": "@signnow/api-client/lib/template/index.js", - "importStyle": null, - "description": "Updates Signing Role with order of actor", - "lineNumber": 61, - "params": [ - { - "nullable": null, - "types": [ - "TemplateUpdateSigningRoleParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "update signing role payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: TemplateUpdateSigningRoleResponse)" - ], - "spread": false, - "optional": true, - "name": "callback", - "description": "error first node.js callback" - } - ], - "return": null, - "ignore": true - }, - { - "__docId__": 211, - "kind": "class", - "name": "Template", - "memberof": "lib/template/index.js", - "static": true, - "longname": "lib/template/index.js~Template", - "access": "public", - "export": true, - "importPath": "@signnow/api-client/lib/template/index.js", - "importStyle": "Template", - "description": "Template methods", - "lineNumber": 89, - "interface": false - }, - { - "__docId__": 212, - "kind": "typedef", - "name": "TemplateCreateOptions", - "memberof": "lib/template/index.js~Template", - "static": true, - "longname": "lib/template/index.js~Template.TemplateCreateOptions", - "access": "public", - "description": "Document invite optional settings", - "properties": [ - { - "nullable": null, - "types": [ - "boolean" - ], - "spread": false, - "optional": true, - "defaultValue": "false", - "defaultRaw": false, - "name": "removeOriginalDocument", - "description": "if true original document will be removed" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "TemplateCreateOptions" - } - }, - { - "__docId__": 213, - "kind": "typedef", - "name": "TemplateCreateParams", - "memberof": "lib/template/index.js~Template", - "static": true, - "longname": "lib/template/index.js~Template.TemplateCreateParams", - "access": "public", - "description": "Create template payload", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "document_id", - "description": "an id of original document" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "document_name", - "description": "a name of new template" - }, - { - "nullable": null, - "types": [ - "TemplateCreateOptions" - ], - "spread": false, - "optional": false, - "name": "options", - "description": "create template optional settings" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "token", - "description": "your auth token" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "TemplateCreateParams" - } - }, - { - "__docId__": 214, - "kind": "typedef", - "name": "TemplateCreateResponse", - "memberof": "lib/template/index.js~Template", - "static": true, - "longname": "lib/template/index.js~Template.TemplateCreateResponse", - "access": "public", - "description": "Create template response data", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "id", - "description": "an id of created template" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "TemplateCreateResponse" - } - }, - { - "__docId__": 215, - "kind": "method", - "name": "create", - "memberof": "lib/template/index.js~Template", - "generator": false, - "async": false, - "static": true, - "longname": "lib/template/index.js~Template.create", - "access": "public", - "description": "Creates a template by copying an existing unfulfilled and not requested for sign document.\nBy default original document is not removed after template creation. To remove original document set `removeOriginalDocument` option to `true`.", - "lineNumber": 118, - "params": [ - { - "nullable": null, - "types": [ - "TemplateCreateParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "create template payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: TemplateCreateResponse)" - ], - "spread": false, - "optional": true, - "name": "originalCallback", - "description": "error first node.js callback" - } - ], - "return": null - }, - { - "__docId__": 216, - "kind": "typedef", - "name": "TemplateDuplicateParams", - "memberof": "lib/template/index.js~Template", - "static": true, - "longname": "lib/template/index.js~Template.TemplateDuplicateParams", - "access": "public", - "description": "Copy template payload", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "id", - "description": "an id of original template" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "name", - "description": "a name of new document" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "token", - "description": "your auth token" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "TemplateDuplicateParams" - } - }, - { - "__docId__": 217, - "kind": "typedef", - "name": "TemplateDuplicateResponse", - "memberof": "lib/template/index.js~Template", - "static": true, - "longname": "lib/template/index.js~Template.TemplateDuplicateResponse", - "access": "public", - "description": "Copy template response data", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "id", - "description": "an id of created document" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "name", - "description": "a name of created document" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "TemplateDuplicateResponse" - } - }, - { - "__docId__": 218, - "kind": "method", - "name": "duplicate", - "memberof": "lib/template/index.js~Template", - "generator": false, - "async": false, - "static": true, - "longname": "lib/template/index.js~Template.duplicate", - "access": "public", - "description": "Creates a new document by copying a template.\nIf a name is not supplied then document name will be set to the original template's name by default.", - "lineNumber": 193, - "params": [ - { - "nullable": null, - "types": [ - "TemplateDuplicateParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "duplicate template payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: TemplateDuplicateResponse)" - ], - "spread": false, - "optional": true, - "name": "callback", - "description": "error first node.js callback" - } - ], - "return": null - }, - { - "__docId__": 219, - "kind": "typedef", - "name": "TemplateInviteParams", - "memberof": "lib/template/index.js~Template", - "static": true, - "longname": "lib/template/index.js~Template.TemplateInviteParams", - "access": "public", - "description": "Create invite with template payload", - "type": { - "types": [ - "DocumentInviteParams" - ], - "optional": false, - "name": "TemplateInviteParams" - } - }, - { - "__docId__": 220, - "kind": "typedef", - "name": "TemplateInviteResponse", - "memberof": "lib/template/index.js~Template", - "static": true, - "longname": "lib/template/index.js~Template.TemplateInviteResponse", - "access": "public", - "description": "Create invite with template response data", - "type": { - "types": [ - "DocumentInviteResponse" - ], - "optional": false, - "name": "TemplateInviteResponse" - } - }, - { - "__docId__": 221, - "kind": "method", - "name": "invite", - "memberof": "lib/template/index.js~Template", - "generator": false, - "async": false, - "static": true, - "longname": "lib/template/index.js~Template.invite", - "access": "public", - "description": "Creates an invite to sign a template.\nYou can create a simple free form invite(s) or a role-based invite(s).\nThe method copies a template into document and creates an invite using created document.", - "lineNumber": 239, - "params": [ - { - "nullable": null, - "types": [ - "TemplateInviteParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "create template invite payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: TemplateInviteResponse)" - ], - "spread": false, - "optional": true, - "name": "callback", - "description": "error first node.js callback" - } - ], - "return": null - }, - { - "__docId__": 222, - "kind": "typedef", - "name": "TemplateRemoveParams", - "memberof": "lib/template/index.js~Template", - "static": true, - "longname": "lib/template/index.js~Template.TemplateRemoveParams", - "access": "public", - "description": "Remove template payload", - "type": { - "types": [ - "DocumentRemoveParams" - ], - "optional": false, - "name": "TemplateRemoveParams" - } - }, - { - "__docId__": 223, - "kind": "typedef", - "name": "TemplateRemoveResponse", - "memberof": "lib/template/index.js~Template", - "static": true, - "longname": "lib/template/index.js~Template.TemplateRemoveResponse", - "access": "public", - "description": "Remove template response data", - "type": { - "types": [ - "DocumentRemoveResponse" - ], - "optional": false, - "name": "TemplateRemoveResponse" - } - }, - { - "__docId__": 224, - "kind": "method", - "name": "remove", - "memberof": "lib/template/index.js~Template", - "generator": false, - "async": false, - "static": true, - "longname": "lib/template/index.js~Template.remove", - "access": "public", - "description": "Removes a specified template from folder", - "lineNumber": 312, - "params": [ - { - "nullable": null, - "types": [ - "TemplateRemoveParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "remove template payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: TemplateRemoveResponse)" - ], - "spread": false, - "optional": true, - "name": "callback", - "description": "error first node.js callback" - } - ], - "return": null - }, - { - "__docId__": 225, - "kind": "typedef", - "name": "TemplateGetRoutingDetailsParams", - "memberof": "lib/template/index.js~Template", - "static": true, - "longname": "lib/template/index.js~Template.TemplateGetRoutingDetailsParams", - "access": "public", - "description": "Get Template Routing Details payload", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "id", - "description": "an ID of specific Template" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "token", - "description": "your auth token" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "TemplateGetRoutingDetailsParams" - } - }, - { - "__docId__": 226, - "kind": "typedef", - "name": "TemplateRoutingDetailsItem", - "memberof": "lib/template/index.js~Template", - "static": true, - "longname": "lib/template/index.js~Template.TemplateRoutingDetailsItem", - "access": "public", - "description": "Template Routing Details item data", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "default_email", - "description": "default email for routing detail" - }, - { - "nullable": null, - "types": [ - "boolean" - ], - "spread": false, - "optional": false, - "name": "inviter_role", - "description": "always `false`" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "name", - "description": "signer role (actor) name" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "role_id", - "description": "signer role (actor) unique ID" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "signing_order", - "description": "order number of signing step" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "TemplateRoutingDetailsItem" - } - }, - { - "__docId__": 227, - "kind": "typedef", - "name": "TemplateRoutingDetailsCCStep", - "memberof": "lib/template/index.js~Template", - "static": true, - "longname": "lib/template/index.js~Template.TemplateRoutingDetailsCCStep", - "access": "public", - "description": "Template Routing Details CC step info", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "email", - "description": "email of cc step" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "step", - "description": "step order number" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "name", - "description": "name of cc step" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "TemplateRoutingDetailsCCStep" - } - }, - { - "__docId__": 228, - "kind": "typedef", - "name": "TemplateGetRoutingDetailsResponse", - "memberof": "lib/template/index.js~Template", - "static": true, - "longname": "lib/template/index.js~Template.TemplateGetRoutingDetailsResponse", - "access": "public", - "description": "Get Template Routing Details response data", - "properties": [ - { - "nullable": null, - "types": [ - "TemplateRoutingDetailsItem[]" - ], - "spread": false, - "optional": false, - "name": "routing_details", - "description": "array with routing details" - }, - { - "nullable": null, - "types": [ - "string[]" - ], - "spread": false, - "optional": false, - "name": "cc", - "description": "CC emails" - }, - { - "nullable": null, - "types": [ - "TemplateRoutingDetailsCCStep[]" - ], - "spread": false, - "optional": false, - "name": "cc_step", - "description": "array of CC`s steps" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "invite_link_instructions", - "description": "invite link instructions" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "TemplateGetRoutingDetailsResponse" - } - }, - { - "__docId__": 229, - "kind": "method", - "name": "getRoutingDetails", - "memberof": "lib/template/index.js~Template", - "generator": false, - "async": false, - "static": true, - "longname": "lib/template/index.js~Template.getRoutingDetails", - "access": "public", - "description": "Retrieves Routing Details of specified Template", - "lineNumber": 363, - "params": [ - { - "nullable": null, - "types": [ - "TemplateGetRoutingDetailsParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "get Routing Details payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: TemplateGetRoutingDetailsResponse)" - ], - "spread": false, - "optional": true, - "name": "callback", - "description": "error first node.js callback" - } - ], - "return": null - }, - { - "__docId__": 230, - "kind": "typedef", - "name": "TemplateUpdateRoutingDetailsItem", - "memberof": "lib/template/index.js~Template", - "static": true, - "longname": "lib/template/index.js~Template.TemplateUpdateRoutingDetailsItem", - "access": "public", - "description": "Template Update Routing Details item data", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "default_email", - "description": "default email for routing detail" - }, - { - "nullable": null, - "types": [ - "boolean" - ], - "spread": false, - "optional": false, - "name": "inviter_role", - "description": "always `false`" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "name", - "description": "signer role (actor) name" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "role_id", - "description": "signer role (actor) unique ID" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "signing_order", - "description": "order number of signing step" - }, - { - "nullable": null, - "types": [ - "boolean" - ], - "spread": false, - "optional": false, - "name": "decline_by_signature", - "description": "decline by signature flag" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "TemplateUpdateRoutingDetailsItem" - } - }, - { - "__docId__": 231, - "kind": "typedef", - "name": "TemplateUpdateRoutingDetailsSettings", - "memberof": "lib/template/index.js~Template", - "static": true, - "longname": "lib/template/index.js~Template.TemplateUpdateRoutingDetailsSettings", - "access": "public", - "description": "Update Template Routing Details settings", - "properties": [ - { - "nullable": null, - "types": [ - "TemplateUpdateRoutingDetailsItem[]" - ], - "spread": false, - "optional": false, - "name": "template_data", - "description": "array with routing details" - }, - { - "nullable": null, - "types": [ - "string[]" - ], - "spread": false, - "optional": false, - "name": "cc", - "description": "CC emails" - }, - { - "nullable": null, - "types": [ - "TemplateRoutingDetailsCCStep[]" - ], - "spread": false, - "optional": false, - "name": "cc_step", - "description": "array of CC steps" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "invite_link_instructions", - "description": "invite signing instructions" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "TemplateUpdateRoutingDetailsSettings" - } - }, - { - "__docId__": 232, - "kind": "typedef", - "name": "TemplateUpdateRoutingDetailsParams", - "memberof": "lib/template/index.js~Template", - "static": true, - "longname": "lib/template/index.js~Template.TemplateUpdateRoutingDetailsParams", - "access": "public", - "description": "Update Template Routing Details payload", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "id", - "description": "an ID of specific Template" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "token", - "description": "your auth token" - }, - { - "nullable": null, - "types": [ - "TemplateUpdateRoutingDetailsSettings" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "update Template Routing Details settings" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "TemplateUpdateRoutingDetailsParams" - } - }, - { - "__docId__": 233, - "kind": "typedef", - "name": "TemplateUpdateRoutingDetailsResponse", - "memberof": "lib/template/index.js~Template", - "static": true, - "longname": "lib/template/index.js~Template.TemplateUpdateRoutingDetailsResponse", - "access": "public", - "description": "Update Template Routing Details response data", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "id", - "description": "unique ID of template routing details" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "document_id", - "description": "unique ID of Template" - }, - { - "nullable": null, - "types": [ - "TemplateUpdateRoutingDetailsItem[]" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "array with routing details" - }, - { - "nullable": null, - "types": [ - "string[]" - ], - "spread": false, - "optional": false, - "name": "cc", - "description": "CC emails" - }, - { - "nullable": null, - "types": [ - "TemplateRoutingDetailsCCStep[]" - ], - "spread": false, - "optional": false, - "name": "cc_step", - "description": "array of CC steps" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "invite_link_instructions", - "description": "invite signing instructions" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "TemplateUpdateRoutingDetailsResponse" - } - }, - { - "__docId__": 234, - "kind": "method", - "name": "updateRoutingDetails", - "memberof": "lib/template/index.js~Template", - "generator": false, - "async": false, - "static": true, - "longname": "lib/template/index.js~Template.updateRoutingDetails", - "access": "public", - "description": "Updates Routing Details of specified template", - "lineNumber": 424, - "params": [ - { - "nullable": null, - "types": [ - "TemplateUpdateRoutingDetailsParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "update Template Routing Details payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: TemplateUpdateRoutingDetailsResponse)" - ], - "spread": false, - "optional": true, - "name": "callback", - "description": "error first node.js callback" - } - ], - "return": null - }, - { - "__docId__": 235, - "kind": "typedef", - "name": "TemplateBulkInviteSettings", - "memberof": "lib/template/index.js~Template", - "static": true, - "longname": "lib/template/index.js~Template.TemplateBulkInviteSettings", - "access": "public", - "description": "Template Bulk Invite settings", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "file", - "description": "path to .csv file with roles and their emails. Max file size should be <= 1 Megabyte" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "folder_id", - "description": "an ID of folder where signed documents will be saved" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": true, - "name": "client_timestamp", - "description": "client timestamp in seconds" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "document_name", - "description": "setup prefix for each document name" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "subject", - "description": "custom email subject" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "email_message", - "description": "custom email message" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "TemplateBulkInviteSettings" - } - }, - { - "__docId__": 236, - "kind": "typedef", - "name": "TemplateBulkInviteParams", - "memberof": "lib/template/index.js~Template", - "static": true, - "longname": "lib/template/index.js~Template.TemplateBulkInviteParams", - "access": "public", - "description": "Send Template Bulk Invite payload", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "id", - "description": "an ID of specific Template" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "token", - "description": "your auth token" - }, - { - "nullable": null, - "types": [ - "TemplateBulkInviteSettings" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "Template Bulk Invite settings" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "TemplateBulkInviteParams" - } - }, - { - "__docId__": 237, - "kind": "typedef", - "name": "TemplateBulkInviteResponse", - "memberof": "lib/template/index.js~Template", - "static": true, - "longname": "lib/template/index.js~Template.TemplateBulkInviteResponse", - "access": "public", - "description": "Send Template Bulk Invite response data", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "status", - "description": "status of sending bulk invites (e.g. \"job queued\")" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "TemplateBulkInviteResponse" - } - }, - { - "__docId__": 238, - "kind": "method", - "name": "bulkInvite", - "memberof": "lib/template/index.js~Template", - "generator": false, - "async": false, - "static": true, - "longname": "lib/template/index.js~Template.bulkInvite", - "access": "public", - "description": "Sends invites to sign a specified template to multiple signers at once", - "lineNumber": 527, - "experimental": "internal implementation of this method might be changed", - "params": [ - { - "nullable": null, - "types": [ - "TemplateBulkInviteParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "Bulk Invite payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: TemplateBulkInviteResponse)" - ], - "spread": false, - "optional": true, - "name": "callback", - "description": "error first node.js callback" - } - ], - "return": null - }, - { - "__docId__": 239, - "kind": "file", - "name": "lib/user/index.js", - "content": "'use strict';\nconst https = require('https');\nconst {\n responseHandler,\n errorHandler,\n buildRequestOptions,\n} = require('../common');\n\n/**\n * User methods\n */\nclass User {\n\n /**\n * Create User optional settings\n * @typedef {Object} CreateUserOptions\n * @property {boolean} [verifyEmail=false] - if `true` verification email will be sent\n * @property {number} [startTrial=false] - if `true` start 30 days free trial\n */\n\n /**\n * Create user payload\n * @typedef {Object} UserCreateParams\n * @property {string} email - email of new user\n * @property {string} password - password for new user\n * @property {string} [first_name] - first name of new user\n * @property {string} [last_name] - last name of new user\n * @property {string} [number] - phone number of new user\n * @property {CreateUserOptions} [options] - create user optional settings\n */\n\n /**\n * Create user response data\n * @typedef {Object} UserCreateResponse\n * @property {string} id - user unique id\n * @property {number} verified - user is verified or not\n * @property {string} email - user email\n */\n\n /**\n * Create new user account\n * @param {UserCreateParams} data - create user payload\n * @param {function(err: ApiErrorResponse, res: UserCreateResponse)} [originalCallback] - error first node.js callback\n */\n static create ({\n email,\n password,\n first_name,\n last_name,\n number,\n options: {\n verifyEmail = false,\n startTrial = false,\n } = {},\n }, originalCallback) {\n const JSONData = JSON.stringify({\n skip_30day_trial: startTrial ? 0 : 1,\n email,\n password,\n first_name,\n last_name,\n number,\n });\n\n const callbackWithEmailVerification = (createErr, createRes) => {\n if (createErr) {\n originalCallback(createErr);\n return;\n } else {\n User.verifyEmail({ email }, verifyErr => {\n if (verifyErr) {\n originalCallback(verifyErr);\n return;\n } else {\n originalCallback(null, createRes);\n return;\n }\n });\n }\n };\n\n const callback = verifyEmail\n ? callbackWithEmailVerification\n : originalCallback;\n\n const req = https\n .request(buildRequestOptions({\n method: 'POST',\n path: '/user',\n authorization: { type: 'Basic' },\n headers: {\n 'Content-Type': 'application/json',\n 'Content-Length': Buffer.byteLength(JSONData),\n },\n }), responseHandler(callback))\n .on('error', errorHandler(callback));\n\n req.write(JSONData);\n req.end();\n }\n\n /**\n * Get user payload\n * @typedef {Object} UserGetParams\n * @property {string} token - your auth token\n */\n\n /**\n * Retrieve user response data\n * @typedef {Object} UserGetResponse\n * @property {string} id - user unique id\n * @property {string} first_name - first name\n * @property {string} last_name - last name\n * @property {number} active - user is active or not\n * @property {string} created - user creation timestamp\n * @property {string[]} emails - user emails\n * @property {string} primary_email - user primary email\n * @property {Object[]} subscriptions - user subscriptions data\n * @property {?Object} cloud_export_account_details - cloud export account details data\n * @property {boolean} is_logged_in - user is logged in or not\n * @property {{start_date: string, end_date: string, start_timestamp: number, end_timestamp: number}} billing_period - user billing period data\n * @property {Object[]} companies - companies where user is a member of\n * @property {?string} registration_source - resource where user was registered\n * @property {Object[]} teams - teams where user is a member of\n * @property {Object} settings - user specific settings\n * @property {Object[]} organization_settings - organization specific settings where user is a member of\n * @property {Object[]} merchant_accounts - merchant accounts data\n */\n\n /**\n * Retrieve user account details\n * @param {UserGetParams} data - get user payload\n * @param {function(err: ApiErrorResponse, res: UserGetResponse)} [callback] - error first node.js callback\n */\n static retrieve ({ token }, callback) {\n https\n .request(buildRequestOptions({\n method: 'GET',\n path: '/user',\n authorization: {\n type: 'Bearer',\n token,\n },\n }), responseHandler(callback))\n .on('error', errorHandler(callback))\n .end();\n }\n\n /**\n * Verify user email payload\n * @typedef {Object} UserVerifyEmailParams\n * @property {string} email - email to verify\n */\n\n /**\n * Verify user email response data\n * @typedef {Object} UserVerifyEmailResponse\n * @property {string} status - status of verification email sending, e.g. 'success'\n */\n\n /**\n * Sends email with verification link to user\n * @param {UserVerifyEmailParams} data - user verify email payload\n * @param {function(err: ApiErrorResponse, res: UserVerifyEmailResponse)} [callback] - error first node.js callback\n */\n static verifyEmail ({ email }, callback) {\n const JSONData = JSON.stringify({ email });\n const req = https\n .request(buildRequestOptions({\n method: 'POST',\n path: '/user/verifyemail',\n authorization: { type: 'Basic' },\n headers: {\n 'Content-Type': 'application/json',\n 'Content-Length': Buffer.byteLength(JSONData),\n },\n }), responseHandler(callback))\n .on('error', errorHandler(callback));\n\n req.write(JSONData);\n req.end();\n }\n}\n\nmodule.exports = User;\n", - "static": true, - "longname": "/app/lib/user/index.js", - "access": "public", - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 240, - "kind": "class", - "name": "User", - "memberof": "lib/user/index.js", - "static": true, - "longname": "lib/user/index.js~User", - "access": "public", - "export": true, - "importPath": "@signnow/api-client/lib/user/index.js", - "importStyle": "User", - "description": "User methods", - "lineNumber": 12, - "interface": false - }, - { - "__docId__": 241, - "kind": "typedef", - "name": "CreateUserOptions", - "memberof": "lib/user/index.js~User", - "static": true, - "longname": "lib/user/index.js~User.CreateUserOptions", - "access": "public", - "description": "Create User optional settings", - "properties": [ - { - "nullable": null, - "types": [ - "boolean" - ], - "spread": false, - "optional": true, - "defaultValue": "false", - "defaultRaw": false, - "name": "verifyEmail", - "description": "if `true` verification email will be sent" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": true, - "defaultValue": "false", - "defaultRaw": false, - "name": "startTrial", - "description": "if `true` start 30 days free trial" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "CreateUserOptions" - } - }, - { - "__docId__": 242, - "kind": "typedef", - "name": "UserCreateParams", - "memberof": "lib/user/index.js~User", - "static": true, - "longname": "lib/user/index.js~User.UserCreateParams", - "access": "public", - "description": "Create user payload", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "email", - "description": "email of new user" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "password", - "description": "password for new user" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "first_name", - "description": "first name of new user" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "last_name", - "description": "last name of new user" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "number", - "description": "phone number of new user" - }, - { - "nullable": null, - "types": [ - "CreateUserOptions" - ], - "spread": false, - "optional": true, - "name": "options", - "description": "create user optional settings" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "UserCreateParams" - } - }, - { - "__docId__": 243, - "kind": "typedef", - "name": "UserCreateResponse", - "memberof": "lib/user/index.js~User", - "static": true, - "longname": "lib/user/index.js~User.UserCreateResponse", - "access": "public", - "description": "Create user response data", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "id", - "description": "user unique id" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "verified", - "description": "user is verified or not" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "email", - "description": "user email" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "UserCreateResponse" - } - }, - { - "__docId__": 244, - "kind": "method", - "name": "create", - "memberof": "lib/user/index.js~User", - "generator": false, - "async": false, - "static": true, - "longname": "lib/user/index.js~User.create", - "access": "public", - "description": "Create new user account", - "lineNumber": 45, - "params": [ - { - "nullable": null, - "types": [ - "UserCreateParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "create user payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: UserCreateResponse)" - ], - "spread": false, - "optional": true, - "name": "originalCallback", - "description": "error first node.js callback" - } - ], - "return": null - }, - { - "__docId__": 245, - "kind": "typedef", - "name": "UserGetParams", - "memberof": "lib/user/index.js~User", - "static": true, - "longname": "lib/user/index.js~User.UserGetParams", - "access": "public", - "description": "Get user payload", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "token", - "description": "your auth token" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "UserGetParams" - } - }, - { - "__docId__": 246, - "kind": "typedef", - "name": "UserGetResponse", - "memberof": "lib/user/index.js~User", - "static": true, - "longname": "lib/user/index.js~User.UserGetResponse", - "access": "public", - "description": "Retrieve user response data", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "id", - "description": "user unique id" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "first_name", - "description": "first name" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "last_name", - "description": "last name" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "active", - "description": "user is active or not" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "created", - "description": "user creation timestamp" - }, - { - "nullable": null, - "types": [ - "string[]" - ], - "spread": false, - "optional": false, - "name": "emails", - "description": "user emails" - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "primary_email", - "description": "user primary email" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "subscriptions", - "description": "user subscriptions data" - }, - { - "nullable": true, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "cloud_export_account_details", - "description": "cloud export account details data" - }, - { - "nullable": null, - "types": [ - "boolean" - ], - "spread": false, - "optional": false, - "name": "is_logged_in", - "description": "user is logged in or not" - }, - { - "nullable": null, - "types": [ - "{start_date: string, end_date: string, start_timestamp: number, end_timestamp: number}" - ], - "spread": false, - "optional": false, - "name": "billing_period", - "description": "user billing period data" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "companies", - "description": "companies where user is a member of" - }, - { - "nullable": true, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "registration_source", - "description": "resource where user was registered" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "teams", - "description": "teams where user is a member of" - }, - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "settings", - "description": "user specific settings" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "organization_settings", - "description": "organization specific settings where user is a member of" - }, - { - "nullable": null, - "types": [ - "Object[]" - ], - "spread": false, - "optional": false, - "name": "merchant_accounts", - "description": "merchant accounts data" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "UserGetResponse" - } - }, - { - "__docId__": 247, - "kind": "method", - "name": "retrieve", - "memberof": "lib/user/index.js~User", - "generator": false, - "async": false, - "static": true, - "longname": "lib/user/index.js~User.retrieve", - "access": "public", - "description": "Retrieve user account details", - "lineNumber": 135, - "params": [ - { - "nullable": null, - "types": [ - "UserGetParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "get user payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: UserGetResponse)" - ], - "spread": false, - "optional": true, - "name": "callback", - "description": "error first node.js callback" - } - ], - "return": null - }, - { - "__docId__": 248, - "kind": "typedef", - "name": "UserVerifyEmailParams", - "memberof": "lib/user/index.js~User", - "static": true, - "longname": "lib/user/index.js~User.UserVerifyEmailParams", - "access": "public", - "description": "Verify user email payload", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "email", - "description": "email to verify" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "UserVerifyEmailParams" - } - }, - { - "__docId__": 249, - "kind": "typedef", - "name": "UserVerifyEmailResponse", - "memberof": "lib/user/index.js~User", - "static": true, - "longname": "lib/user/index.js~User.UserVerifyEmailResponse", - "access": "public", - "description": "Verify user email response data", - "properties": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "status", - "description": "status of verification email sending, e.g. 'success'" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "UserVerifyEmailResponse" - } - }, - { - "__docId__": 250, - "kind": "method", - "name": "verifyEmail", - "memberof": "lib/user/index.js~User", - "generator": false, - "async": false, - "static": true, - "longname": "lib/user/index.js~User.verifyEmail", - "access": "public", - "description": "Sends email with verification link to user", - "lineNumber": 166, - "params": [ - { - "nullable": null, - "types": [ - "UserVerifyEmailParams" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "user verify email payload" - }, - { - "nullable": null, - "types": [ - "function(err: ApiErrorResponse, res: UserVerifyEmailResponse)" - ], - "spread": false, - "optional": true, - "name": "callback", - "description": "error first node.js callback" - } - ], - "return": null - }, - { - "kind": "index", - "content": "# The Official SignNow API client v1.8.2\n\nSignNow Node.js REST API Wrapper\n\n[![License](https://img.shields.io/github/license/signnow/SignNowNodeSDK)](https://github.com/signnow/SignNowNodeSDK/blob/master/LICENSE.md)\n[![Node version support](https://img.shields.io/node/v/@signnow/api-client)](#)\n[![Snyk vulnerabilities for npm package](https://img.shields.io/snyk/vulnerabilities/npm/@signnow/api-client)](#)\n[![NPM package version](https://img.shields.io/npm/v/@signnow/api-client)](https://www.npmjs.com/package/@signnow/api-client)\n[![Twitter Follow](https://img.shields.io/twitter/follow/signnow?style=social)](https://twitter.com/signnow?ref_src=https%3A%2F%2Fgithub.com%2Fsignnow%2FSignNowNodeSDK)\n\n### Table of Contents\n\n1. [About SignNow](#about-signnow)\n2. [API Contact Information](#api-contact-info)\n3. [API and Application](#api-and-app)\n4. [Installation](#installation)\n5. [Documentation](#documentation)\n6. [Examples](#examples)\n * [User](#user)\n * [Create a User](#create-user)\n * [Send Verification Email](#verify-email)\n * [Retrieve User Information](#get-user)\n * [OAuth 2.0](#oauth2)\n * [Request Access Token](#get-token)\n * [Verify Access Token](#verify-token)\n * [Refresh Access Token](#refresh-token)\n * [Document](#document)\n * [Retrieve a List of the User’s Documents](#list-documents)\n * [Retrieve a Document Resource](#get-document)\n * [Download a Collapsed Document](#download-document)\n * [Upload Document](#upload-document)\n * [Upload File & Extract Fields](#extract-fields)\n * [Update Document (add fields)](#update-document)\n * [Create Invite to Sign a Document](#field-invite)\n * [Create Free Form Invite](#freeform-invite)\n * [Cancel Field Invite to Sign a Document](#cancel-field-invite)\n * [Cancel Free Form Invite](#cancel-freeform-invite)\n * [Create a One-time Use Download URL](#share-document)\n * [Merge Existing Documents](#merge-documents)\n * [Get Document History](#get-history)\n * [Remove Document](#remove-document)\n * [Links](#links)\n * [Create signing link](#create-signing-link)\n * [Enumerations](#enumerations)\n * [Add Enumeration Field to a Document](#add-enumeration)\n * [Add Enumeration Options to the Field](#enumeration-options)\n * [Template](#template)\n * [Create a Template](#create-template)\n * [Create a Document from a Template](#copy-template)\n * [Create Invite to Sign a Template](#template-field-invite)\n * [Create Free Form Invite from Template](#template-freeform-invite)\n * [Remove Template](#remove-template)\n * [View Routing Details](#routing-details)\n * [Update Routing Details](#update-routing-details)\n * [Folder](#folder)\n * [Returns a list of folders](#list-folders)\n * [Returns a list of documents inside a folder](#list-documents-in-folder)\n * [Document Group](#document-group)\n * [Create Document Group](#create-document-group)\n * [View Document Group](#view-document-group)\n * [Create Invite to Sign a Document Group](#document-group-invite)\n * [Cancel Invite to Sign a Document Group](#cancel-document-group-invite)\n * [Download Document Group](#download-document-group)\n * [Document Group Template](#document-group-template)\n * [Create Document Group Template](#create-document-group-template)\n * [View Document Group Template](#view-documentgroup-template)\n * [Create Invite to Sign a Document Group Template](#invite-documentgroup-template)\n * [Webhook](#webhook)\n * [Returns a list of Webhooks](#list-webhooks)\n * [Create a Webhook](#create-webhook)\n * [Embedded](#embedded)\n * [Create embedded signing invites for a document without sending emails](#embedded-create-invites)\n * [Create a link for the embedded invite.](#embedded-generate-invite)\n * [Delete embedded invites for a document.](#embedded-cancel-invites)\n * [Promisify methods](#promisify)\n7. [Unit Tests](#unit-tests)\n8. [License](#license)\n9. [Additional Contact Information](#contacts)\n * [Support](#support)\n * [Sales](#sales)\n\n### About SignNow\n\n[SignNow](https://www.signnow.com/) is a powerful web-based e-signature solution that streamlines the signing process and overall document flow for businesses of any size. SignNow offers SaaS as well as public and private cloud deployment options using the same underlying API. With SignNow you can easily sign, share and manage documents in compliance with international data laws and industry-specific regulations. SignNow enables you to collect signatures from partners, employees and customers from any device within minutes.\n\n### API Contact Information\n\nIf you have questions about the SignNow API, please visit [https://docs.signnow.com](https://docs.signnow.com) or email [api@signnow.com](mailto:api@signnow.com).\n\nSee additional contact information at the bottom.\n\n### API and Application\n\nResources | Sandbox | Production\n------------- | ------------- | -------------\nAPI: | **api-eval.signnow.com:443** | **api.signnow.com:443**\nApplication: | [https://app-eval.signnow.com](https://app-eval.signnow.com) | [https://app.signnow.com](https://app.signnow.com)\nEntry page: | [https://eval.signnow.com](https://eval.signnow.com) |\n\n## Installation\n\n`@signnow/api-client` supports node.js **v6.4.0** or later.\n\nTo install the latest version of `@signnow/api-client` run:\n\n```bash\nnpm install @signnow/api-client\n```\n\n## Documentation\n\nSee API reference in our [Documentation](https://signnow.github.io/SignNowNodeSDK/).\n\n## Examples\n\nTo run the examples you will need an API key. You can get one here [https://www.signnow.com/api](https://www.signnow.com/api). For a full list of accepted parameters, refer to the SignNow REST Endpoints API guide: [https://docs.signnow.com](https://docs.signnow.com).\n\nEvery resource is accessed via your api client instance:\n\n```javascript\nconst api = require('@signnow/api-client')({\n credentials: 'ENCODED_CLIENT_CREDENTIALS',\n production: false, // if false uses eval server\n});\n```\n\nEvery resource returns two parameters. The first param contains any errors and the second contains the results.\n\n### User\n\n#### Create a User\n\nBy default verification email is not sent. To send it set `verifyEmail` option to `true`.\n\n```javascript\napi.user.create({\n email: 'john@domain.com',\n password: 'your password',\n first_name: 'John',\n last_name: 'Wayne',\n number: '123-456-789',\n options: { verifyEmail: true } // false by default\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\nMore: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/createUser.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/create-user.js)\n\n#### Send Verification Email\n\n```javascript\napi.user.verifyEmail({\n email: 'john@domain.com',\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\nMore: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/sendVerificationEmail.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/verify-email.js)\n\n#### Send Verification Email\n\n```javascript\napi.user.verifyEmail({\n email: 'john@domain.com',\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\nMore: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/sendVerificationEmail.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/verify-email.js)\n\n#### Retrieve User Information\n\n```javascript\napi.user.retrieve({\n token: 'your auth token',\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\nMore: [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/user-info.js)\n\n### OAuth 2.0\n\n#### Request Access Token\n\n```javascript\napi.oauth2.requestToken({\n username: 'username',\n password: 'password',\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\nMore: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/requestAccessToken.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/get-access-token.js)\n\n#### Verify Access Token\n\n```javascript\napi.oauth2.verify({\n token: 'your auth token',\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\nMore: [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/verify-access-token.js)\n\n#### Refresh Access Token\n\n```javascript\napi.oauth2.refreshToken({\n refresh_token: 'your refresh token',\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\nMore: [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/refresh-token.js)\n\n### Document\n\n#### Retrieve a List of the User’s Documents\n\n```javascript\napi.document.list({\n token: 'your auth token',\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\nMore: [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/document-list.js)\n\n#### Retrieve a Document Resource\n\n```javascript\napi.document.view({\n token: 'your auth token',\n id: 'document id',\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\nMore: [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/view-document.js)\n\n#### Download a Collapsed Document\n\nBy default document is downloaded without history or attachments. To download it with history set `withHistory` option to `true`. To download it with attachments set `withAttachments` option to `true`.\n\n```javascript\napi.document.download({\n token: 'your auth token',\n id: 'document id',\n options: { \n withAttachments: true, // false by default\n withHistory: true, // false by default\n },\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\nMore: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/downloadDocument.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/download-document.js)\n\n#### Upload Document\n\n```javascript\napi.document.create({\n token: 'your auth token',\n filepath: 'path to file',\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\nMore: [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/create-document.js)\n\n#### Upload File & Extract Fields\n\n```javascript\napi.document.fieldextract({\n token: 'your auth token',\n filepath: 'path to file',\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\nMore: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/uploadDocumentWithFieldExtract.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/extract-fields.js)\n\n#### Update Document (add fields)\n\n```javascript\nconst fields = {\n texts: [\n {\n size: 8,\n x: 61,\n y: 72,\n page_number: 0,\n font: 'Arial',\n data: 'sample text',\n line_height: 9.075,\n },\n ],\n}\n\napi.document.update({\n token: 'your auth token',\n id: 'document id',\n fields,\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\nMore: [Add signature field example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/addSignatureField.js), [Add text field example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/addTextField.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/update-document.js)\n\n#### Create Invite to Sign a Document\n\n```javascript\nconst fieldInvite = {\n from: 'EMAIL_OF_SENDER',\n to: [\n {\n email: 'EMAIL_OF_SIGNER',\n role: 'Signer 1',\n order: 1,\n reassign: '0',\n decline_by_signature: '0',\n reminder: 4,\n expiration_days: 27,\n subject: 'Field invite Signer1',\n message: 'Message',\n },\n ],\n};\n\napi.document.invite({\n data: {\n ...fieldInvite,\n },\n id: 'DOCUMENT_ID_GOES_HERE',\n token: 'YOUR_AUTH_TOKEN',\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\nMore: [Invite to sign example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/sendDocumentSignatureInviteWithOneRole.js), [Invite with payment request example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/requestPayment.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/create-field-invite.js)\n\n#### Create Free Form Invite\n\n```javascript\napi.document.invite({\n token: 'your auth token',\n id: 'document id',\n data: {\n from: 'email address',\n to: 'email address',\n },\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\nMore: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/sendDocumentFreeformInvite.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/create-freeform-invite.js)\n\n#### Cancel Field Invite to Sign a Document\n\n```javascript\napi.document.cancelFieldInvite({\n token: 'your auth token',\n id: 'document id',\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\n#### Cancel Free Form Invite\n\n```javascript\napi.document.cancelFreeFormInvite({\n token: 'your auth token',\n id: 'id of invite',\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\n#### Create a One-time Use Download URL\n\n```javascript\napi.document.share({\n token: 'your auth token',\n id: 'document id',\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\nMore: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/shareDocument.js)\n\n#### Merge Existing Documents\n\nBy default original documents are not removed after merging. To remove original documents set `removeOriginalDocuments` option to `true`.\n\n```javascript\napi.document.merge({\n token: 'your auth token',\n name: 'the merged doc',\n document_ids: [\n '84a18d12bf7473ea3dd0e4dd1cdcded6ba6281aa',\n 'a71d963c49f33176e90c5827069c422616b1500c',\n ],\n options: {\n removeOriginalDocuments: true, // false by default\n },\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\nMore: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/mergeDocuments.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/merge-documents.js)\n\n#### Get Document History\n\n```javascript\napi.document.history({\n token: 'your auth token',\n id: 'document id',\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\nMore: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/getDocumentHistory.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/document-history.js)\n\n#### Remove Document\n\nBy default document invites are not cancelled during deletion. To cancel all document invites set `cancelInvites` option to `true`.\n\n```javascript\napi.document.remove({\n token: 'your auth token',\n id: 'document id',\n options: {\n cancelInvites: true, // false by default\n },\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\nMore: [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/remove-document.js)\n\n### Links\n\n#### Create Signing Link\n\n```javascript\napi.link.create({\n token: 'your auth token',\n document_id: 'document or template id',\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\nMore: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/createSigningLink.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/create-signing-link.js)\n\n### Enumerations\n\n#### Add Enumeration Field to a Document\n\n```javascript\napi.enumerations.addField({\n token: 'your auth token',\n document_id: 'document id',\n x: 150,\n y: 200,\n width: 200,\n height: 50,\n page_number: 0,\n role: 'buyer',\n required: true,\n label: 'Clothing Brand',\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\n#### Add Enumeration Options to the Field\n\n```javascript\napi.enumerations.addOptions({\n token: 'your auth token',\n enumeration_options: [\n {\n enumeration_id: '8a3501896160b12d4ef7507a81b2f0998b8137b1',\n data: 'Active',\n },\n {\n enumeration_id: '8a3501896160b12d4ef7507a81b2f0998b8137b1',\n data: 'Old Navy',\n },\n {\n enumeration_id: '8a3501896160b12d4ef7507a81b2f0998b8137b1',\n data: 'Volcom',\n },\n ],\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\n### Template\n\n#### Create a Template\n\nBy default original document is not removed after template creation. To remove original document set `removeOriginalDocument` option to `true`.\n\n```javascript\napi.template.create({\n token: 'your auth token',\n document_id: 'document id',\n document_name: 'my template',\n options: {\n removeOriginalDocument: true, // false by default\n },\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\nMore: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/createTemplate.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/create-template.js)\n\n#### Create a Document from a Template\n\n```javascript\napi.template.duplicate({\n token: 'your auth token',\n id: 'document id',\n name: 'my template',\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\nMore: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/createDocumentFromTemplate.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/duplicate-template.js)\n\n#### Create Invite to Sign a Template\n\n```javascript\nconst fieldInvite = {\n from: 'EMAIL_OF_SENDER',\n to: [\n {\n email: 'EMAIL_OF_SIGNER',\n role: 'Signer 1',\n order: 1,\n reassign: '0',\n decline_by_signature: '0',\n reminder: 4,\n expiration_days: 27,\n subject: 'Field invite Signer1',\n message: 'Message',\n },\n ],\n};\n\napi.template.invite({\n data: {\n ...fieldInvite,\n },\n id: 'TEMPLATE_ID_GOES_HERE',\n token: 'YOUR_AUTH_TOKEN',\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\nMore: [Full one role example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/sendTemplateSignatureInviteWithOneRole%20copy.js), [Full two roles example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/sendTemplateSignatureInviteWithMultipleRole.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/template-field-invite.js)\n\n#### Create Free Form Invite from Template\n\n```javascript\napi.template.invite({\n token: 'YOUR_AUTH_TOKEN',\n id: 'TEMPLATE_ID_GOES_HERE',\n data: {\n from: 'EMAIL_OF_SENDER',\n to: 'EMAIL_OF_SIGNER',\n },\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\nMore: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/sendTemplateFreeformInvite.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/template-freeform-invite.js)\n\n#### Remove Template\n\n```javascript\napi.template.remove({\n token: 'your auth token',\n id: 'template id',\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\nMore: [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/remove-template.js)\n\n#### View Routing Details\n\n```javascript\napi.template.getRoutingDetails({\n token: 'your auth token',\n id: 'template id',\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\nMore: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/getRoutingDetails.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/routing-details.js)\n\n#### Update Routing Details\n\n```javascript\nconst routingDetails = {\n template_data: [\n {\n default_email: '',\n inviter_role: false,\n name: 'Signer 1',\n role_id: 'SIGNER 1 ROLE ID',\n signing_order: 1,\n decline_by_signature: true,\n },\n {\n default_email: 'signer2@mail.com',\n inviter_role: false,\n name: 'Signer 2',\n role_id: 'SIGNER 2 ROLE ID',\n signing_order: 2,\n },\n ],\n cc: [\n 'cc1@mail.com',\n 'cc2@mail.com',\n ],\n cc_step: [\n {\n email: 'cc1@mail.com',\n step: 1,\n name: 'CC 1',\n },\n {\n email: 'cc2@mail.com',\n step: 2,\n name: 'CC 2',\n },\n ],\n invite_link_instructions: 'Invite link signing instruction',\n};\n\napi.template.updateRoutingDetails({\n data: routingDetails,\n token: 'your auth token',\n id: 'template id',\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\nMore: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/updateTemplateRoutingDetails.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/update-routing-details.js)\n\n### Folder\n\n#### Returns a list of folders\n\n```javascript\napi.folder.list({\n token: 'your auth token',\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\n#### Returns a list of documents inside a folder\n\nFilters | Values\n------------- | -------------\n```signing-status``` | ```waiting-for-me```, ```waiting-for-others```, ```signed```, ```pending```\n```document-updated``` | ```new Date()```\n```document-created``` | ```new Date()```\n\nSort | Values\n------------- | -------------\n```document-name``` | ```asc```/```desc```\n```updated``` | ```asc```/```desc```\n```created``` | ```asc```/```desc```\n\n```javascript\napi.folder.documents({\n token: 'your auth token',\n id: 'folder id',\n filter: [\n {\n 'signing-status': 'pending',\n },\n ],\n sort: {\n 'document-name': 'asc',\n },\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\n### Document Group\n\n#### Create Document Group\n\n```javascript\napi.documentGroup.create({\n token: 'your auth token',\n group_name: 'my document group name',\n ids: [\n // put document or template IDs here\n '84a18d12bf7473ea3dd0e4dd1cdcded6ba6281aa',\n 'a71d963c49f33176e90c5827069c422616b1500c',\n ],\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\nMore: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/createDocumentGroup.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/create-document-group.js)\n\n#### View Document Group\n\n```javascript\napi.documentGroup.view({\n token: 'Your auth token',\n id: 'Document Group ID',\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\nMore: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/viewDocumentGroup.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/view-document-group.js)\n\n#### Create Invite to Sign a Document Group\n\n```javascript\nconst data = {\n invite_steps: [\n {\n order: 1,\n invite_emails: [\n {\n email: 'Email of Signer 1',\n subject: 'Signer 1 Needs Your Signature',\n message: 'Signer 1 invited you to sign Document 1',\n expiration_days: 30,\n reminder: 0,\n },\n ],\n invite_actions: [\n {\n email: 'Email of Signer 1',\n role_name: 'Signer 1',\n action: 'sign',\n document_id: 'Document 1 ID',\n allow_reassign: '0',\n decline_by_signature: '0',\n },\n ],\n },\n {\n order: 2,\n invite_emails: [\n {\n email: 'Email of Signer 2',\n subject: 'Signer 2 Needs Your Signature',\n message: 'Signer 2 invited you to sign Document 2',\n expiration_days: 30,\n reminder: 0,\n },\n ],\n invite_actions: [\n {\n email: 'Email of Signer 2',\n role_name: 'Signer 2',\n action: 'sign',\n document_id: 'Document 2 ID',\n allow_reassign: '0',\n decline_by_signature: '0',\n },\n ],\n },\n ],\n};\n\napi.documentGroup.invite({\n token: 'your auth token',\n id: 'Document Group ID',\n data,\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\nMore: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/createDocumentGroupInvite.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/document-group-invite.js)\n\n#### Cancel Invite to Sign a Document Group\n\n```javascript\napi.documentGroup.cancelInvite({\n token: 'your auth token',\n id: 'Document Group ID',\n inviteId: 'Document Group invite ID'\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\nMore: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/cancelDocumentGroupInvite.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/cancel-documentgroup-invite.js)\n\n#### Download Document Group\n\nBy default Document Group is downloaded without history as .zip archive with PDF files. To download it as a signle merged PDF set `type` to `merged`. To download document group with history set `with_history` to `after_each_document` or `after_merged_pdf`.\n\n```javascript\napi.documentGroup.download({\n token: 'your auth token',\n id: 'document group ID',\n type: 'merged', // 'zip' by default\n with_history: 'after_each_document', // 'no' by default\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\nMore: [Zipped Download Example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/downloadZippedDocumentGroup.js), [Merged Download Example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/downloadMergedDocumentGroup.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/download-document-group.js)\n\n### Document Group Template\n\n#### Create Document Group Template\n\n```javascript\nconst routing_details = {\n invite_steps: [\n {\n order: 1,\n invite_emails: [\n {\n email: 'Email of Signer 1',\n subject: 'Signer 1 Needs Your Signature',\n message: 'Signer 1 invited you to sign Document 1',\n expiration_days: 30,\n reminder: 0,\n hasSignActions: true,\n allow_reassign: '0',\n },\n ],\n invite_actions: [\n {\n email: 'Email of Signer 1',\n role_name: 'Signer 1',\n action: 'sign',\n document_id: 'b6f4f61a5662c5c4385b02421397b76dc6d9c8af',\n document_name: 'Document 1',\n allow_reassign: '0',\n decline_by_signature: '0',\n },\n ],\n },\n {\n order: 2,\n invite_emails: [\n {\n email: 'Email of Signer 2',\n subject: 'Signer 2 Needs Your Signature',\n message: 'Signer 2 invited you to sign Document 2',\n expiration_days: 30,\n reminder: 0,\n hasSignActions: true,\n allow_reassign: '0',\n },\n ],\n invite_actions: [\n {\n email: 'Email of Signer 2',\n role_name: 'Signer 2',\n action: 'sign',\n document_id: '14f02aac643770f22a384fe4e7a6b1ed6d15a9b8',\n document_name: 'Document 2',\n allow_reassign: '0',\n decline_by_signature: '0',\n },\n ],\n },\n ],\n include_email_attachments: 0,\n};\n\napi.documentGroupTemplate.create({\n token: 'your auth token',\n template_ids: [\n '84a18d12bf7473ea3dd0e4dd1cdcded6ba6281aa',\n 'a71d963c49f33176e90c5827069c422616b1500c',\n ],\n template_group_name: 'Document group template name',\n routing_details,\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\nMore: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/createDocumentGroupTemplate.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/create-document-group-template.js)\n\n#### View Document Group Template\n\n```javascript\napi.documentGroupTemplate.view({\n token: 'Your auth token',\n id: 'Document Group Template ID',\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\nMore: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/viewDocumentGroupTemplate.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/view-documentgroup-template.js)\n\n#### Create Invite to Sign a Document Group Template\n\n```javascript\napi.documentGroupTemplate.invite({\n token: 'Your auth token',\n id: 'Document Group Template ID'\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\nMore: [Full example](https://github.com/signnow/SignNowNodeSDK/blob/master/samples/snippets/inviteDocumentGroupTemplate.js), [CLI applet](https://github.com/signnow/SignNowNodeSDK/blob/master/bin/invite-documentgroup-template.js)\n\n### Webhook\n\n#### Returns a list of Webhooks\n\n```javascript\nsignnow.webhook.list({\n token: 'your auth token',\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\n#### Create a Webhook\n\nEvents | Description\n------------- | -------------\n```document.create``` | Webhook is triggered when a document is uploaded to users account in SignNow\n```document.update``` | Webhook is triggered when a document is updated (fields added, text added, signature added, etc.)\n```document.delete``` | Webhook is triggered when a document is deleted from\n```invite.create``` | Webhook is triggered when an invitation to a SignNow document is created.\n```invite.update``` | Webhook is triggered when an invite to SignNow document is updated. Ex. A signer has signed the document.\n\n```javascript\napi.webhook.create({\n token: 'your auth token',\n event: 'document.create',\n callback_url: 'http://www.domain.com/path',\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\n\n### Embedded\n\n#### Create embedded signing invites for a document without sending emails\n\n```javascript\nsignnow.embedded.createInvite({\n token: 'access token',\n document_id: 'document id',\n invites: [\n {\n email: 'email of signer',\n role_id: 'role id',\n order: 1,\n auth_method: 'password',\n },\n ],\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\n#### Creates a link for the embedded invite.\n\n```javascript\nsignnow.embedded.generateInviteLink({\n token: 'access token',\n document_id: 'document id',\n field_invite_unique_id: 'field invite unique id',\n link_expiration: 15,\n auth_method: 'password',\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\n#### Deletes embedded invites for a document.\n\n```javascript\nsignnow.embedded.cancelInvites({\n token: 'access token',\n document_id: 'document id',\n}, (err, res) => {\n // handle error or process response data\n});\n```\n\n### Promisify methods\n\nIf you are using node.js version **8.0.0** or higher you can use built in [*promisify*](https://nodejs.org/api/util.html#util_util_promisify_original) utility:\n\n```javascript\nconst { promisify } = require('util');\nconst api = require('@signnow/api-client')({\n credentials: 'ENCODED_CLIENT_CREDENTIALS',\n production: false, // if false uses eval server\n});\nconst requestToken = promisify(api.oauth2.requestToken);\n\nrequestToken({\n username: 'username',\n password: 'password',\n})\n .then(res => {\n // process response data\n })\n .catch(err => {\n // handle error\n });\n```\n\nIf you are using node.js version prior to **8.0.0** you can use our own simple *promisify* utility:\n\n```javascript\nconst { promisify } = require('@signnow/api-client/utils');\nconst api = require('@signnow/api-client')({\n credentials: 'ENCODED_CLIENT_CREDENTIALS',\n production: false, // if false uses eval server\n});\nconst requestToken = promisify(api.oauth2.requestToken);\n\nrequestToken({\n username: 'username',\n password: 'password',\n})\n .then(res => {\n // process response data\n })\n .catch(err => {\n // handle error\n });\n```\n\n## Unit Tests\n\nTo run the unit test you will need to install \"Mocha\" and \"Chai\". You also need to edit a [test.settings.js](https://github.com/signnow/SignNowNodeSDK/blob/master/test/test.settings.js) in the [test](https://github.com/signnow/SignNowNodeSDK/tree/master/test) folder of the api client module. The file need to contain the following:\n\n```javascript\nexports.settings = {\n credentials: '[ENCODED CLIENT CREDENTIALS]',\n token: '[ACCESS TOKEN]',\n username: '[SIGNNOW USERNAME]',\n password: '[SIGNNOW PASSWORD]',\n documentid: '[EXISTING DOCUMENT ID]',\n templateid: '[EXISTING TEMPLATE ID]',\n folderid: '[EXISTING FOLDER ID]',\n email: '[FROM EMAIL FOR INVITE]',\n testemail: '[TO EMAIL FOR INVITE]',\n};\n```\n\n## License\n\nThis project is released under the MIT [License](https://github.com/signnow/SignNowNodeSDK/blob/master/LICENSE.md).\n\n## Additional Contact Information\n\n### Support\n\nTo contact SignNow support, please email [support@signnow.com](mailto:support@signnow.com) or [api@signnow.com](mailto:api@signnow.com).\n\n### Sales\n\nFor pricing information, please call [(800) 831-2050](tel:8008312050), email [sales@signnow.com](mailto:sales@signnow.com) or visit [https://www.signnow.com/contact](https://www.signnow.com/contact).\n", - "longname": "/app/README.md", - "name": "./README.md", - "static": true, - "access": "public" - }, - { - "kind": "packageJSON", - "content": "{\n \"name\": \"@signnow/api-client\",\n \"clientName\": \"SignNow Node.js API Client\",\n \"description\": \"SignNow REST Service Wrapper\",\n \"version\": \"1.8.2\",\n \"author\": {\n \"name\": \"SignNow Team\",\n \"email\": \"api@signnow.com\"\n },\n \"keywords\": [\n \"signnow\",\n \"document\",\n \"sign\",\n \"online\",\n \"electronic\",\n \"signature\",\n \"api\",\n \"client\"\n ],\n \"main\": \"lib/index.js\",\n \"repository\": \"github:signnow/SignNowNodeSDK\",\n \"scripts\": {\n \"lint\": \"./node_modules/.bin/eslint '**/*.js'\",\n \"lint:fix\": \"./node_modules/.bin/eslint '**/*.js' --fix\",\n \"docs\": \"./node_modules/.bin/esdoc\",\n \"preversion\": \"npm run lint\",\n \"version\": \"./tools/update-readme.js && npm run docs && git add -A .\",\n \"postversion\": \"git push && git push --tags\"\n },\n \"devDependencies\": {\n \"chai\": \"*\",\n \"esdoc\": \"1.1.0\",\n \"esdoc-ecmascript-proposal-plugin\": \"1.0.0\",\n \"esdoc-external-nodejs-plugin\": \"1.0.0\",\n \"esdoc-inject-style-plugin\": \"1.0.0\",\n \"esdoc-node\": \"1.0.4\",\n \"esdoc-standard-plugin\": \"1.0.0\",\n \"eslint\": \"6.0.1\",\n \"husky\": \"3.0.2\",\n \"mocha\": \"*\"\n },\n \"engines\": {\n \"node\": \">=6.4.0\"\n },\n \"files\": [\n \"lib\",\n \"config\",\n \"utils\",\n \"bin\"\n ],\n \"bin\": {\n \"sn:cancel-field-invite\": \"./bin/cancel-field-invite.js\",\n \"sn:cancel-freeform-invite\": \"./bin/cancel-freeform-invite.js\",\n \"sn:create-document-group-template\": \"./bin/create-document-group-template.js\",\n \"sn:create-document-group\": \"./bin/create-document-group.js\",\n \"sn:create-document\": \"./bin/create-document.js\",\n \"sn:create-field-invite\": \"./bin/create-field-invite.js\",\n \"sn:create-freeform-invite\": \"./bin/create-freeform-invite.js\",\n \"sn:create-signing-link\": \"./bin/create-signing-link.js\",\n \"sn:create-template\": \"./bin/create-template.js\",\n \"sn:create-user\": \"./bin/create-user.js\",\n \"sn:document-group-invite\": \"./bin/document-group-invite.js\",\n \"sn:document-history\": \"./bin/document-history.js\",\n \"sn:document-list\": \"./bin/document-list.js\",\n \"sn:download-document\": \"./bin/download-document.js\",\n \"sn:download-document-group\": \"./bin/download-document-group.js\",\n \"sn:extract-fields\": \"./bin/extract-fields.js\",\n \"sn:get-access-token\": \"./bin/get-access-token.js\",\n \"sn:invite-documentgroup-template\": \"./bin/invite-documentgroup-template.js\",\n \"sn:merge-documents\": \"./bin/merge-documents.js\",\n \"sn:refresh-token\": \"./bin/refresh-token.js\",\n \"sn:remove-document\": \"./bin/remove-document.js\",\n \"sn:remove-template\": \"./bin/remove-template.js\",\n \"sn:verify-email\": \"./bin/verify-email.js\",\n \"sn:share-document\": \"./bin/share-document.js\",\n \"sn:template-field-invite\": \"./bin/template-field-invite.js\",\n \"sn:template-freeform-invite\": \"./bin/template-freeform-invite.js\",\n \"sn:update-document\": \"./bin/update-document.js\",\n \"sn:user-info\": \"./bin/user-info.js\",\n \"sn:verify-access-token\": \"./bin/verify-access-token.js\",\n \"sn:view-document-group\": \"./bin/view-document-group.js\",\n \"sn:view-document\": \"./bin/view-document.js\",\n \"sn:view-documentgroup-template\": \"./bin/view-documentgroup-template.js\",\n \"sn:routing-details\": \"./bin/routing-details.js\",\n \"sn:update-routing-details\": \"./bin/update-routing-details.js\",\n \"sn:cancel-documentgroup-invite\": \"./bin/cancel-documentgroup-invite.js\",\n \"sn:duplicate-template\": \"./bin/duplicate-template.js\",\n \"sn:bulk-invite\": \"./bin/bulk-invite.js\",\n \"sn:document-signers\": \"./bin/document-signers.js\",\n \"sn:embedded-create-invites\": \"./bin/embedded-create-invites.js\",\n \"sn:embedded-generate-link\": \"./bin/embedded-generate-link.js\",\n \"sn:embedded-cancel-invites\": \"./bin/embedded-cancel-invites.js\"\n },\n \"license\": \"MIT\"\n}\n", - "longname": "/app/package.json", - "name": "package.json", - "static": true, - "access": "public" - }, - { - "__docId__": 251, - "kind": "testFile", - "name": "test/document.test.js", - "content": "'use strict';\n\nconst { settings } = require('./test.settings');\nconst signnow = require('../lib/signnow')({\n credentials: settings.credentials,\n production: settings.production, // (false by defult)\n});\n\n(function() {\n\n describe('document', () => {\n\n describe('.list()', () => {\n it('should return a list of documents', done => {\n signnow.document.list({ token: settings.token }, (err, res) => {\n if (err) { throw err[0].message; }\n res.should.be.a('array');\n res[0].should.have.property('document_name');\n done();\n });\n }).timeout(10000);\n });\n\n describe('.view()', () => {\n it('should return a document resource', done => {\n signnow.document.view({\n token: settings.token,\n id: settings.documentid,\n }, (err, res) => {\n if (err) { throw err[0].message; }\n res.should.have.property('document_name');\n done();\n });\n });\n });\n\n describe('.download()', () => {\n it('should download a collapsed document', done => {\n signnow.document.download({\n token: settings.token,\n id: settings.documentid,\n }, (err, res) => {\n if (err) { throw err[0].message; }\n res.should.exist();\n done();\n });\n });\n });\n\n describe('.update()', () => {\n it('should update a document and return the document id', done => {\n const fields = {\n texts: [\n {\n size: 8,\n x: 61,\n y: 72,\n page_number: 0,\n font: 'Arial',\n data: 'sample text',\n line_height: 9.075,\n },\n ],\n };\n\n signnow.document.update({\n token: settings.token,\n id: settings.documentid,\n fields,\n }, (err, res) => {\n if (err) { throw err[0].message; }\n res.should.have.property('id');\n done();\n });\n });\n });\n\n describe.skip('.invite()', () => {\n it('should send an invite to sign a document', done => {\n signnow.document.invite({\n token: settings.token,\n id: settings.documentid,\n from: settings.email,\n to: settings.testemail,\n }, (err, res) => {\n if (err) { throw err[0].message; }\n res.should.have.property('result', 'success');\n done();\n });\n });\n });\n\n describe('.cancelInvite()', () => {\n it('should cancel all invites to a document', done => {\n signnow.document.cancelInvite({\n token: settings.token,\n id: settings.documentid,\n }, (err, res) => {\n if (err) { throw err[0].message; }\n res.should.have.property('status', 'success');\n done();\n });\n });\n });\n\n describe('.share()', () => {\n it('should return a link to download the document', done => {\n signnow.document.share({\n token: settings.token,\n id: settings.documentid,\n }, (err, res) => {\n if (err) { throw err[0].message; }\n res.should.have.property('link');\n done();\n });\n });\n });\n\n describe.skip('.merge()', () => {\n it('should merge two documents and return the new document name', done => {\n signnow.document.merge({\n token: settings.token,\n name: 'Mocha Unit Test',\n document_ids: [\n 'xxx',\n 'xxx',\n ],\n }, (err, res) => {\n if (err) { throw err[0].message; }\n res.should.have.property('name');\n res.should.have.property('document_ids');\n done();\n });\n });\n });\n\n describe.skip('.create()', () => {\n it('should upload a file and create a new document', done => {\n signnow.document.create({\n token: settings.token,\n filepath: `${__dirname}/test.doc`,\n }, (err, res) => {\n if (err) { return done(err[0].message); }\n res.should.have.property('id');\n done();\n });\n }).timeout(20000);\n });\n\n describe.skip('.extractfields()', () => {\n it('should upload a file containing SignNow field tags', done => {\n signnow.document.extractfields({\n token: settings.token,\n filepath: `${__dirname}/test.doc`,\n }, (err, res) => {\n if (err) { return done(err[0].message); }\n res.should.have.property('id');\n done();\n });\n }).timeout(20000);\n });\n\n describe.skip('.history()', () => {\n it('should return the history of a document', done => {\n signnow.document.history({\n token: settings.token,\n id: settings.documentid,\n }, (err, res) => {\n if (err) { return done(err[0].message); }\n res.should.be.a('array');\n res[0].should.have.property('event');\n done();\n });\n });\n });\n\n });\n\n})();\n", - "static": true, - "longname": "/app/test/document.test.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 252, - "kind": "test", - "name": "describe0", - "testId": 0, - "memberof": "test/document.test.js", - "testDepth": 0, - "static": true, - "longname": "test/document.test.js~describe0", - "access": null, - "description": "document", - "lineNumber": 11 - }, - { - "__docId__": 253, - "kind": "test", - "name": "describe1", - "testId": 1, - "memberof": "test/document.test.js~describe0", - "testDepth": 1, - "static": true, - "longname": "test/document.test.js~describe0.describe1", - "access": null, - "description": ".list()", - "lineNumber": 13 - }, - { - "__docId__": 254, - "kind": "test", - "name": "describe2", - "testId": 2, - "memberof": "test/document.test.js~describe0", - "testDepth": 1, - "static": true, - "longname": "test/document.test.js~describe0.describe2", - "access": null, - "description": ".view()", - "lineNumber": 24 - }, - { - "__docId__": 255, - "kind": "test", - "name": "it3", - "testId": 3, - "memberof": "test/document.test.js~describe0.describe2", - "testDepth": 2, - "static": true, - "longname": "test/document.test.js~describe0.describe2.it3", - "access": null, - "description": "should return a document resource", - "lineNumber": 25 - }, - { - "__docId__": 256, - "kind": "test", - "name": "describe4", - "testId": 4, - "memberof": "test/document.test.js~describe0", - "testDepth": 1, - "static": true, - "longname": "test/document.test.js~describe0.describe4", - "access": null, - "description": ".download()", - "lineNumber": 37 - }, - { - "__docId__": 257, - "kind": "test", - "name": "it5", - "testId": 5, - "memberof": "test/document.test.js~describe0.describe4", - "testDepth": 2, - "static": true, - "longname": "test/document.test.js~describe0.describe4.it5", - "access": null, - "description": "should download a collapsed document", - "lineNumber": 38 - }, - { - "__docId__": 258, - "kind": "test", - "name": "describe6", - "testId": 6, - "memberof": "test/document.test.js~describe0", - "testDepth": 1, - "static": true, - "longname": "test/document.test.js~describe0.describe6", - "access": null, - "description": ".update()", - "lineNumber": 50 - }, - { - "__docId__": 259, - "kind": "test", - "name": "it7", - "testId": 7, - "memberof": "test/document.test.js~describe0.describe6", - "testDepth": 2, - "static": true, - "longname": "test/document.test.js~describe0.describe6.it7", - "access": null, - "description": "should update a document and return the document id", - "lineNumber": 51 - }, - { - "__docId__": 260, - "kind": "test", - "name": "it8", - "testId": 8, - "memberof": "test/document.test.js~describe0", - "testDepth": 1, - "static": true, - "longname": "test/document.test.js~describe0.it8", - "access": null, - "description": "should send an invite to sign a document", - "lineNumber": 79 - }, - { - "__docId__": 261, - "kind": "test", - "name": "describe9", - "testId": 9, - "memberof": "test/document.test.js~describe0", - "testDepth": 1, - "static": true, - "longname": "test/document.test.js~describe0.describe9", - "access": null, - "description": ".cancelInvite()", - "lineNumber": 93 - }, - { - "__docId__": 262, - "kind": "test", - "name": "it10", - "testId": 10, - "memberof": "test/document.test.js~describe0.describe9", - "testDepth": 2, - "static": true, - "longname": "test/document.test.js~describe0.describe9.it10", - "access": null, - "description": "should cancel all invites to a document", - "lineNumber": 94 - }, - { - "__docId__": 263, - "kind": "test", - "name": "describe11", - "testId": 11, - "memberof": "test/document.test.js~describe0", - "testDepth": 1, - "static": true, - "longname": "test/document.test.js~describe0.describe11", - "access": null, - "description": ".share()", - "lineNumber": 106 - }, - { - "__docId__": 264, - "kind": "test", - "name": "it12", - "testId": 12, - "memberof": "test/document.test.js~describe0.describe11", - "testDepth": 2, - "static": true, - "longname": "test/document.test.js~describe0.describe11.it12", - "access": null, - "description": "should return a link to download the document", - "lineNumber": 107 - }, - { - "__docId__": 265, - "kind": "test", - "name": "it13", - "testId": 13, - "memberof": "test/document.test.js~describe0", - "testDepth": 1, - "static": true, - "longname": "test/document.test.js~describe0.it13", - "access": null, - "description": "should merge two documents and return the new document name", - "lineNumber": 120 - }, - { - "__docId__": 266, - "kind": "test", - "name": "it14", - "testId": 14, - "memberof": "test/document.test.js~describe0", - "testDepth": 1, - "static": true, - "longname": "test/document.test.js~describe0.it14", - "access": null, - "description": "should return the history of a document", - "lineNumber": 164 - }, - { - "__docId__": 267, - "kind": "testFile", - "name": "test/embedded.test.js", - "content": "'use strict';\nconst { settings } = require('./test.settings');\nconst signnow = require('../lib')({\n credentials: settings.credentials,\n production: settings.production, // (false by default)\n});\n\n(function() {\n\n describe('embedded', () => {\n\n describe.skip('.createInvite()', () => {\n it('should create a new embedded signing invites for a document without sending emails', done => {\n signnow.embedded.createInvite({\n token: settings.token,\n document_id: settings.documentid,\n invites: [settings.documentInvite],\n }, (err, res) => {\n if (err) { throw err[0].message; }\n res.should.be.a('object');\n res.should.have.property('data');\n done();\n });\n });\n });\n\n describe.skip('.generateInviteLink()', () => {\n it('should create a link for the embedded invite.', done => {\n signnow.embedded.generateInviteLink({\n token: settings.token,\n document_id: settings.documentid,\n field_invite_unique_id: settings.fieldInviteUniqueId,\n link_expiration: 15,\n auth_method: 'password',\n }, (err, res) => {\n if (err) { throw err[0].message; }\n res.should.be.a('object');\n res.should.have.property('data');\n done();\n });\n });\n });\n\n describe.skip('.cancelInvites()', () => {\n it('should delete embedded invites for a document.', done => {\n signnow.embedded.cancelInvites({\n token: settings.token,\n document_id: settings.documentid,\n }, (err, res) => {\n if (err) { throw err[0].message; }\n res.should.be.a('object');\n res.should.have.property('status');\n done();\n });\n });\n });\n\n });\n\n})();\n", - "static": true, - "longname": "/app/test/embedded.test.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 268, - "kind": "test", - "name": "describe15", - "testId": 15, - "memberof": "test/embedded.test.js", - "testDepth": 0, - "static": true, - "longname": "test/embedded.test.js~describe15", - "access": null, - "description": "embedded", - "lineNumber": 10 - }, - { - "__docId__": 269, - "kind": "test", - "name": "it16", - "testId": 16, - "memberof": "test/embedded.test.js~describe15", - "testDepth": 1, - "static": true, - "longname": "test/embedded.test.js~describe15.it16", - "access": null, - "description": "should create a new embedded signing invites for a document without sending emails", - "lineNumber": 13 - }, - { - "__docId__": 270, - "kind": "test", - "name": "it17", - "testId": 17, - "memberof": "test/embedded.test.js~describe15", - "testDepth": 1, - "static": true, - "longname": "test/embedded.test.js~describe15.it17", - "access": null, - "description": "should create a link for the embedded invite.", - "lineNumber": 28 - }, - { - "__docId__": 271, - "kind": "test", - "name": "it18", - "testId": 18, - "memberof": "test/embedded.test.js~describe15", - "testDepth": 1, - "static": true, - "longname": "test/embedded.test.js~describe15.it18", - "access": null, - "description": "should delete embedded invites for a document.", - "lineNumber": 45 - }, - { - "__docId__": 272, - "kind": "testFile", - "name": "test/enumeration.test.js", - "content": "'use strict';\nconst { settings } = require('./test.settings');\nconst signnow = require('../lib')({\n credentials: settings.credentials,\n production: settings.production, // (false by defult)\n});\n\n(function() {\n\n describe('enumerations', () => {\n\n describe('.addField()', () => {\n it('should add an enumeration field(drop down) to a document and return the document id', done => {\n signnow.enumerations.addField({\n token: settings.token,\n document_id: settings.documentid,\n x: 150,\n y: 200,\n width: 200,\n height: 50,\n page_number: 0,\n role: 'buyer',\n required: true,\n label: 'Clothing Brand',\n }, (err, res) => {\n if (err) { throw err[0].message; }\n res.should.have.property('id');\n done();\n });\n });\n });\n\n describe('.addOptions()', () => {\n let fieldId = '';\n before(done => {\n signnow.enumerations.addField({\n token: settings.token,\n document_id: settings.documentid,\n x: 150,\n y: 200,\n width: 200,\n height: 50,\n page_number: 0,\n role: 'buyer',\n required: true,\n label: 'Clothing Brand',\n }, (err, res) => {\n if (err) { throw err[0].message; }\n fieldId = res.id;\n done();\n });\n });\n it('should add enumeration options to the field we just created and return an array', done => {\n signnow.enumerations.addOptions({\n token: settings.token,\n enumeration_options: [\n {\n enumeration_id: fieldId,\n data: 'Active',\n },\n {\n enumeration_id: fieldId,\n data: 'Old Navy',\n },\n {\n enumeration_id: fieldId,\n data: 'Volcom',\n },\n ],\n }, (err, res) => {\n if (err) { throw err[0].message; }\n res.should.be.a('array');\n done();\n });\n });\n });\n\n });\n\n})();\n", - "static": true, - "longname": "/app/test/enumeration.test.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 273, - "kind": "test", - "name": "describe19", - "testId": 19, - "memberof": "test/enumeration.test.js", - "testDepth": 0, - "static": true, - "longname": "test/enumeration.test.js~describe19", - "access": null, - "description": "enumerations", - "lineNumber": 10 - }, - { - "__docId__": 274, - "kind": "test", - "name": "describe20", - "testId": 20, - "memberof": "test/enumeration.test.js~describe19", - "testDepth": 1, - "static": true, - "longname": "test/enumeration.test.js~describe19.describe20", - "access": null, - "description": ".addField()", - "lineNumber": 12 - }, - { - "__docId__": 275, - "kind": "test", - "name": "it21", - "testId": 21, - "memberof": "test/enumeration.test.js~describe19.describe20", - "testDepth": 2, - "static": true, - "longname": "test/enumeration.test.js~describe19.describe20.it21", - "access": null, - "description": "should add an enumeration field(drop down) to a document and return the document id", - "lineNumber": 13 - }, - { - "__docId__": 276, - "kind": "test", - "name": "describe22", - "testId": 22, - "memberof": "test/enumeration.test.js~describe19", - "testDepth": 1, - "static": true, - "longname": "test/enumeration.test.js~describe19.describe22", - "access": null, - "description": ".addOptions()", - "lineNumber": 33 - }, - { - "__docId__": 277, - "kind": "test", - "name": "it23", - "testId": 23, - "memberof": "test/enumeration.test.js~describe19.describe22", - "testDepth": 2, - "static": true, - "longname": "test/enumeration.test.js~describe19.describe22.it23", - "access": null, - "description": "should add enumeration options to the field we just created and return an array", - "lineNumber": 53 - }, - { - "__docId__": 278, - "kind": "testFile", - "name": "test/folder.test.js", - "content": "'use strict';\nconst { settings } = require('./test.settings');\nconst signnow = require('../lib')({\n credentials: settings.credentials,\n production: settings.production, // (false by defult)\n});\n\n(function() {\n\n describe('folder', () => {\n\n describe('.list()', () => {\n it('should return a list of folders', done => {\n signnow.folder.list({ token: settings.token }, (err, res) => {\n if (err) { throw err[0].message; }\n res.should.be.a('object');\n res.should.have.property('folders');\n done();\n });\n });\n });\n\n describe('.documents()', () => {\n it('should return all documents inside a folder', done => {\n signnow.folder.documents({\n token: settings.token,\n id: settings.folderid,\n filter: [\n { 'signing-status': 'pending' },\n { 'signing-status': 'waiting-for-me' },\n ],\n sort: { 'document-name': 'asc' },\n }, (err, res) => {\n if (err) { throw err[0].message; }\n res.should.be.a('object');\n res.should.have.property('documents');\n done();\n });\n });\n });\n\n\n });\n\n})();\n", - "static": true, - "longname": "/app/test/folder.test.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 279, - "kind": "test", - "name": "describe24", - "testId": 24, - "memberof": "test/folder.test.js", - "testDepth": 0, - "static": true, - "longname": "test/folder.test.js~describe24", - "access": null, - "description": "folder", - "lineNumber": 10 - }, - { - "__docId__": 280, - "kind": "test", - "name": "describe25", - "testId": 25, - "memberof": "test/folder.test.js~describe24", - "testDepth": 1, - "static": true, - "longname": "test/folder.test.js~describe24.describe25", - "access": null, - "description": ".list()", - "lineNumber": 12 - }, - { - "__docId__": 281, - "kind": "test", - "name": "it26", - "testId": 26, - "memberof": "test/folder.test.js~describe24.describe25", - "testDepth": 2, - "static": true, - "longname": "test/folder.test.js~describe24.describe25.it26", - "access": null, - "description": "should return a list of folders", - "lineNumber": 13 - }, - { - "__docId__": 282, - "kind": "test", - "name": "describe27", - "testId": 27, - "memberof": "test/folder.test.js~describe24", - "testDepth": 1, - "static": true, - "longname": "test/folder.test.js~describe24.describe27", - "access": null, - "description": ".documents()", - "lineNumber": 23 - }, - { - "__docId__": 283, - "kind": "test", - "name": "it28", - "testId": 28, - "memberof": "test/folder.test.js~describe24.describe27", - "testDepth": 2, - "static": true, - "longname": "test/folder.test.js~describe24.describe27.it28", - "access": null, - "description": "should return all documents inside a folder", - "lineNumber": 24 - }, - { - "__docId__": 284, - "kind": "testFile", - "name": "test/link.test.js", - "content": "'use strict';\nconst { settings } = require('./test.settings');\nconst signnow = require('../lib')({\n credentials: settings.credentials,\n production: settings.production, // (false by defult)\n});\n\n(function() {\n\n describe('link', () => {\n\n describe('.create()', () => {\n it('should create a new signing link and return two urls', done => {\n signnow.link.create({ document_id: settings.documentid }, (err, res) => {\n if (err) { throw err[0].message; }\n res.should.be.a('object');\n res.should.have.property('url');\n done();\n });\n });\n });\n\n\n });\n\n})();\n", - "static": true, - "longname": "/app/test/link.test.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 285, - "kind": "test", - "name": "describe29", - "testId": 29, - "memberof": "test/link.test.js", - "testDepth": 0, - "static": true, - "longname": "test/link.test.js~describe29", - "access": null, - "description": "link", - "lineNumber": 10 - }, - { - "__docId__": 286, - "kind": "test", - "name": "describe30", - "testId": 30, - "memberof": "test/link.test.js~describe29", - "testDepth": 1, - "static": true, - "longname": "test/link.test.js~describe29.describe30", - "access": null, - "description": ".create()", - "lineNumber": 12 - }, - { - "__docId__": 287, - "kind": "test", - "name": "it31", - "testId": 31, - "memberof": "test/link.test.js~describe29.describe30", - "testDepth": 2, - "static": true, - "longname": "test/link.test.js~describe29.describe30.it31", - "access": null, - "description": "should create a new signing link and return two urls", - "lineNumber": 13 - }, - { - "__docId__": 288, - "kind": "testFile", - "name": "test/oauth.test.js", - "content": "'use strict';\nconst { settings } = require('./test.settings');\nconst signnow = require('../lib')({\n credentials: settings.credentials,\n production: settings.production, // (false by defult)\n});\n\n(function() {\n\n describe('oauth2', () => {\n\n describe('.requestToken()', () => {\n it('should return an access token', done => {\n signnow.oauth2.requestToken({\n username: settings.username,\n password: settings.password,\n }, (err, res) => {\n if (err) { throw err[0].message; }\n res.should.have.property('access_token');\n done();\n });\n });\n });\n\n describe('.verify()', () => {\n it('should return a verified access token', done => {\n signnow.oauth2.verify({ token: settings.token }, (err, res) => {\n if (err) { throw err[0].message; }\n res.should.have.property('access_token');\n done();\n });\n });\n });\n\n });\n\n})();\n", - "static": true, - "longname": "/app/test/oauth.test.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 289, - "kind": "test", - "name": "describe32", - "testId": 32, - "memberof": "test/oauth.test.js", - "testDepth": 0, - "static": true, - "longname": "test/oauth.test.js~describe32", - "access": null, - "description": "oauth2", - "lineNumber": 10 - }, - { - "__docId__": 290, - "kind": "test", - "name": "describe33", - "testId": 33, - "memberof": "test/oauth.test.js~describe32", - "testDepth": 1, - "static": true, - "longname": "test/oauth.test.js~describe32.describe33", - "access": null, - "description": ".requestToken()", - "lineNumber": 12 - }, - { - "__docId__": 291, - "kind": "test", - "name": "it34", - "testId": 34, - "memberof": "test/oauth.test.js~describe32.describe33", - "testDepth": 2, - "static": true, - "longname": "test/oauth.test.js~describe32.describe33.it34", - "access": null, - "description": "should return an access token", - "lineNumber": 13 - }, - { - "__docId__": 292, - "kind": "test", - "name": "describe35", - "testId": 35, - "memberof": "test/oauth.test.js~describe32", - "testDepth": 1, - "static": true, - "longname": "test/oauth.test.js~describe32.describe35", - "access": null, - "description": ".verify()", - "lineNumber": 25 - }, - { - "__docId__": 293, - "kind": "test", - "name": "it36", - "testId": 36, - "memberof": "test/oauth.test.js~describe32.describe35", - "testDepth": 2, - "static": true, - "longname": "test/oauth.test.js~describe32.describe35.it36", - "access": null, - "description": "should return a verified access token", - "lineNumber": 26 - }, - { - "__docId__": 294, - "kind": "testFile", - "name": "test/template.test.js", - "content": "'use strict';\nconst { settings } = require('./test.settings');\nconst signnow = require('../lib')({\n credentials: settings.credentials,\n production: settings.production, // (false by defult)\n});\n\n(function() {\n\n describe('template', () => {\n\n describe.skip('.create()', () => {\n it('should create a template by flattening an existing document and return the template id', done => {\n signnow.template.create({\n token: settings.token,\n document_id: settings.documentid,\n document_name: 'Mocha Unit Test Template',\n }, (err, res) => {\n if (err) { throw err[0].message; }\n res.should.have.property('id');\n done();\n });\n });\n });\n\n describe.skip('.create()', () => {\n it('should create a template by flattening an existing document and return the template id', done => {\n signnow.template.create({\n token: settings.token,\n document_id: settings.templateid,\n document_name: 'Mocha Unit Test Duplicate Template',\n }, (err, res) => {\n if (err) { throw err[0].message; }\n res.should.have.property('id');\n done();\n });\n });\n });\n\n });\n\n})();\n", - "static": true, - "longname": "/app/test/template.test.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 295, - "kind": "test", - "name": "describe37", - "testId": 37, - "memberof": "test/template.test.js", - "testDepth": 0, - "static": true, - "longname": "test/template.test.js~describe37", - "access": null, - "description": "template", - "lineNumber": 10 - }, - { - "__docId__": 296, - "kind": "test", - "name": "it38", - "testId": 38, - "memberof": "test/template.test.js~describe37", - "testDepth": 1, - "static": true, - "longname": "test/template.test.js~describe37.it38", - "access": null, - "description": "should create a template by flattening an existing document and return the template id", - "lineNumber": 13 - }, - { - "__docId__": 297, - "kind": "test", - "name": "it39", - "testId": 39, - "memberof": "test/template.test.js~describe37", - "testDepth": 1, - "static": true, - "longname": "test/template.test.js~describe37.it39", - "access": null, - "description": "should create a template by flattening an existing document and return the template id", - "lineNumber": 27 - }, - { - "__docId__": 298, - "kind": "testFile", - "name": "test/user.test.js", - "content": "'use strict';\nconst { settings } = require('./test.settings');\nconst signnow = require('../lib/signnow')({\n credentials: settings.credentials,\n production: settings.production, // (false by defult)\n});\n\n(function() {\n\n // generate random string\n function randString (x) {\n let s = '';\n while (s.length < x && x > 0) {\n const r = Math.random();\n s += (r < 0.1 ? Math.floor(r * 100) : String.fromCharCode(Math.floor(r * 26) + (r > 0.5 ? 97 : 65)));\n }\n return s;\n }\n\n describe('user', () => {\n\n describe('.create()', () => {\n it('should create a new user account', done => {\n const userObj = {\n first_name: `Unit${randString(4)}`,\n last_name: `Test${randString(4)}`,\n email: `unit.test${randString(4)}@domain.com`,\n password: 'MacBookPr0',\n };\n\n // console.log(userObj);\n signnow.user.create(userObj, (err, res) => {\n if (err) { throw err[0].message; }\n res.should.have.property('id');\n done();\n });\n });\n });\n\n describe('.retrieve()', () => {\n it('should retrieve user resource', done => {\n signnow.user.retrieve({ token: settings.token }, (err, res) => {\n if (err) { throw err[0].message; }\n res.should.have.property('first_name');\n done();\n });\n });\n });\n\n });\n\n})();\n", - "static": true, - "longname": "/app/test/user.test.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 299, - "kind": "test", - "name": "describe40", - "testId": 40, - "memberof": "test/user.test.js", - "testDepth": 0, - "static": true, - "longname": "test/user.test.js~describe40", - "access": null, - "description": "user", - "lineNumber": 20 - }, - { - "__docId__": 300, - "kind": "test", - "name": "describe41", - "testId": 41, - "memberof": "test/user.test.js~describe40", - "testDepth": 1, - "static": true, - "longname": "test/user.test.js~describe40.describe41", - "access": null, - "description": ".create()", - "lineNumber": 22 - }, - { - "__docId__": 301, - "kind": "test", - "name": "it42", - "testId": 42, - "memberof": "test/user.test.js~describe40.describe41", - "testDepth": 2, - "static": true, - "longname": "test/user.test.js~describe40.describe41.it42", - "access": null, - "description": "should create a new user account", - "lineNumber": 23 - }, - { - "__docId__": 302, - "kind": "test", - "name": "describe43", - "testId": 43, - "memberof": "test/user.test.js~describe40", - "testDepth": 1, - "static": true, - "longname": "test/user.test.js~describe40.describe43", - "access": null, - "description": ".retrieve()", - "lineNumber": 40 - }, - { - "__docId__": 303, - "kind": "test", - "name": "it44", - "testId": 44, - "memberof": "test/user.test.js~describe40.describe43", - "testDepth": 2, - "static": true, - "longname": "test/user.test.js~describe40.describe43.it44", - "access": null, - "description": "should retrieve user resource", - "lineNumber": 41 - }, - { - "__docId__": 304, - "kind": "testFile", - "name": "test/webhook.test.js", - "content": "'use strict';\nconst { settings } = require('./test.settings');\nconst signnow = require('../lib')({\n credentials: settings.credentials,\n production: settings.production, // (false by defult)\n});\n\n(function() {\n\n describe('webhook', () => {\n\n describe('.list()', () => {\n it('should return a list of webhooks', done => {\n signnow.webhook.list({ token: settings.token }, (err, res) => {\n if (err) { throw err[0].message; }\n res.should.be.a('object');\n res.should.have.property('subscriptions');\n done();\n });\n });\n });\n\n describe('.create()', () => {\n it('should create a new webhook and return an id', done => {\n signnow.webhook.create({\n token: settings.token,\n event: 'document.create',\n callback_url: 'http://requestb.in/qwmphiqw',\n }, (err, res) => {\n if (err) { throw err[0].message; }\n res.should.be.a('object');\n res.should.have.property('id');\n done();\n });\n });\n });\n\n\n });\n\n})();\n", - "static": true, - "longname": "/app/test/webhook.test.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 305, - "kind": "test", - "name": "describe45", - "testId": 45, - "memberof": "test/webhook.test.js", - "testDepth": 0, - "static": true, - "longname": "test/webhook.test.js~describe45", - "access": null, - "description": "webhook", - "lineNumber": 10 - }, - { - "__docId__": 306, - "kind": "test", - "name": "describe46", - "testId": 46, - "memberof": "test/webhook.test.js~describe45", - "testDepth": 1, - "static": true, - "longname": "test/webhook.test.js~describe45.describe46", - "access": null, - "description": ".list()", - "lineNumber": 12 - }, - { - "__docId__": 307, - "kind": "test", - "name": "it47", - "testId": 47, - "memberof": "test/webhook.test.js~describe45.describe46", - "testDepth": 2, - "static": true, - "longname": "test/webhook.test.js~describe45.describe46.it47", - "access": null, - "description": "should return a list of webhooks", - "lineNumber": 13 - }, - { - "__docId__": 308, - "kind": "test", - "name": "describe48", - "testId": 48, - "memberof": "test/webhook.test.js~describe45", - "testDepth": 1, - "static": true, - "longname": "test/webhook.test.js~describe45.describe48", - "access": null, - "description": ".create()", - "lineNumber": 23 - }, - { - "__docId__": 309, - "kind": "test", - "name": "it49", - "testId": 49, - "memberof": "test/webhook.test.js~describe45.describe48", - "testDepth": 2, - "static": true, - "longname": "test/webhook.test.js~describe45.describe48.it49", - "access": null, - "description": "should create a new webhook and return an id", - "lineNumber": 24 - } -] \ No newline at end of file diff --git a/docs/inject/css/0-custom.css b/docs/inject/css/0-custom.css deleted file mode 100644 index 2ddc1238..00000000 --- a/docs/inject/css/0-custom.css +++ /dev/null @@ -1,11 +0,0 @@ -img[src="./image/brand_logo.svg"] { - width: 96px !important; -} - -td[data-ice=type].code { - word-break: break-word; -} - -.github-markdown img:not([src*=".svg"]) { - box-shadow: none; -} diff --git a/docs/inject/css/0-logo.css b/docs/inject/css/0-logo.css deleted file mode 100644 index 2958e4c5..00000000 --- a/docs/inject/css/0-logo.css +++ /dev/null @@ -1,3 +0,0 @@ -img[src="./image/brand_logo.svg"] { - width: 96px !important; -} diff --git a/docs/lint.json b/docs/lint.json deleted file mode 100644 index 0637a088..00000000 --- a/docs/lint.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/docs/script/inherited-summary.js b/docs/script/inherited-summary.js deleted file mode 100644 index 0a35b6df..00000000 --- a/docs/script/inherited-summary.js +++ /dev/null @@ -1,28 +0,0 @@ -(function(){ - function toggle(ev) { - var button = ev.target; - var parent = ev.target.parentElement; - while(parent) { - if (parent.tagName === 'TABLE' && parent.classList.contains('summary')) break; - parent = parent.parentElement; - } - - if (!parent) return; - - var tbody = parent.querySelector('tbody'); - if (button.classList.contains('opened')) { - button.classList.remove('opened'); - button.classList.add('closed'); - tbody.style.display = 'none'; - } else { - button.classList.remove('closed'); - button.classList.add('opened'); - tbody.style.display = 'block'; - } - } - - var buttons = document.querySelectorAll('.inherited-summary thead .toggle'); - for (var i = 0; i < buttons.length; i++) { - buttons[i].addEventListener('click', toggle); - } -})(); diff --git a/docs/script/inner-link.js b/docs/script/inner-link.js deleted file mode 100644 index ad1c9429..00000000 --- a/docs/script/inner-link.js +++ /dev/null @@ -1,32 +0,0 @@ -// inner link(#foo) can not correctly scroll, because page has fixed header, -// so, I manually scroll. -(function(){ - var matched = location.hash.match(/errorLines=([\d,]+)/); - if (matched) return; - - function adjust() { - window.scrollBy(0, -55); - var el = document.querySelector('.inner-link-active'); - if (el) el.classList.remove('inner-link-active'); - - // ``[ ] . ' " @`` are not valid in DOM id. so must escape these. - var id = location.hash.replace(/([\[\].'"@$])/g, '\\$1'); - var el = document.querySelector(id); - if (el) el.classList.add('inner-link-active'); - } - - window.addEventListener('hashchange', adjust); - - if (location.hash) { - setTimeout(adjust, 0); - } -})(); - -(function(){ - var els = document.querySelectorAll('[href^="#"]'); - var href = location.href.replace(/#.*$/, ''); // remove existed hash - for (var i = 0; i < els.length; i++) { - var el = els[i]; - el.href = href + el.getAttribute('href'); // because el.href is absolute path - } -})(); diff --git a/docs/script/manual.js b/docs/script/manual.js deleted file mode 100644 index de0bfe25..00000000 --- a/docs/script/manual.js +++ /dev/null @@ -1,12 +0,0 @@ -(function(){ - var matched = location.pathname.match(/\/(manual\/.*\.html)$/); - if (!matched) return; - - var currentName = matched[1]; - var cssClass = '.navigation .manual-toc li[data-link="' + currentName + '"]'; - var styleText = cssClass + '{ display: block; }\n'; - styleText += cssClass + '.indent-h1 a { color: #039BE5 }'; - var style = document.createElement('style'); - style.textContent = styleText; - document.querySelector('head').appendChild(style); -})(); diff --git a/docs/script/patch-for-local.js b/docs/script/patch-for-local.js deleted file mode 100644 index 5756d135..00000000 --- a/docs/script/patch-for-local.js +++ /dev/null @@ -1,8 +0,0 @@ -(function(){ - if (location.protocol === 'file:') { - var elms = document.querySelectorAll('a[href="./"]'); - for (var i = 0; i < elms.length; i++) { - elms[i].href = './index.html'; - } - } -})(); diff --git a/docs/script/prettify/Apache-License-2.0.txt b/docs/script/prettify/Apache-License-2.0.txt deleted file mode 100644 index d6456956..00000000 --- a/docs/script/prettify/Apache-License-2.0.txt +++ /dev/null @@ -1,202 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/docs/script/prettify/prettify.js b/docs/script/prettify/prettify.js deleted file mode 100755 index 3b74b5bd..00000000 --- a/docs/script/prettify/prettify.js +++ /dev/null @@ -1,46 +0,0 @@ -!function(){/* - - Copyright (C) 2006 Google Inc. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ -window.PR_SHOULD_USE_CONTINUATION=!0; -(function(){function T(a){function d(e){var b=e.charCodeAt(0);if(92!==b)return b;var a=e.charAt(1);return(b=w[a])?b:"0"<=a&&"7">=a?parseInt(e.substring(1),8):"u"===a||"x"===a?parseInt(e.substring(2),16):e.charCodeAt(1)}function f(e){if(32>e)return(16>e?"\\x0":"\\x")+e.toString(16);e=String.fromCharCode(e);return"\\"===e||"-"===e||"]"===e||"^"===e?"\\"+e:e}function b(e){var b=e.substring(1,e.length-1).match(/\\u[0-9A-Fa-f]{4}|\\x[0-9A-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\s\S]|-|[^-\\]/g);e= -[];var a="^"===b[0],c=["["];a&&c.push("^");for(var a=a?1:0,g=b.length;ak||122k||90k||122h[0]&&(h[1]+1>h[0]&&c.push("-"),c.push(f(h[1])));c.push("]");return c.join("")}function v(e){for(var a=e.source.match(/(?:\[(?:[^\x5C\x5D]|\\[\s\S])*\]|\\u[A-Fa-f0-9]{4}|\\x[A-Fa-f0-9]{2}|\\[0-9]+|\\[^ux0-9]|\(\?[:!=]|[\(\)\^]|[^\x5B\x5C\(\)\^]+)/g),c=a.length,d=[],g=0,h=0;g/,null])):d.push(["com",/^#[^\r\n]*/,null,"#"]));a.cStyleComments&&(f.push(["com",/^\/\/[^\r\n]*/,null]),f.push(["com",/^\/\*[\s\S]*?(?:\*\/|$)/,null]));if(b=a.regexLiterals){var v=(b=1|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*("+ -("/(?=[^/*"+b+"])(?:[^/\\x5B\\x5C"+b+"]|\\x5C"+v+"|\\x5B(?:[^\\x5C\\x5D"+b+"]|\\x5C"+v+")*(?:\\x5D|$))+/")+")")])}(b=a.types)&&f.push(["typ",b]);b=(""+a.keywords).replace(/^ | $/g,"");b.length&&f.push(["kwd",new RegExp("^(?:"+b.replace(/[\s,]+/g,"|")+")\\b"),null]);d.push(["pln",/^\s+/,null," \r\n\t\u00a0"]);b="^.[^\\s\\w.$@'\"`/\\\\]*";a.regexLiterals&&(b+="(?!s*/)");f.push(["lit",/^@[a-z_$][a-z_$@0-9]*/i,null],["typ",/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],["pln",/^[a-z_$][a-z_$@0-9]*/i, -null],["lit",/^(?:0x[a-f0-9]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+\-]?\d+)?)[a-z]*/i,null,"0123456789"],["pln",/^\\[\s\S]?/,null],["pun",new RegExp(b),null]);return G(d,f)}function L(a,d,f){function b(a){var c=a.nodeType;if(1==c&&!A.test(a.className))if("br"===a.nodeName)v(a),a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)b(a);else if((3==c||4==c)&&f){var d=a.nodeValue,q=d.match(n);q&&(c=d.substring(0,q.index),a.nodeValue=c,(d=d.substring(q.index+q[0].length))&& -a.parentNode.insertBefore(l.createTextNode(d),a.nextSibling),v(a),c||a.parentNode.removeChild(a))}}function v(a){function b(a,c){var d=c?a.cloneNode(!1):a,k=a.parentNode;if(k){var k=b(k,1),e=a.nextSibling;k.appendChild(d);for(var f=e;f;f=e)e=f.nextSibling,k.appendChild(f)}return d}for(;!a.nextSibling;)if(a=a.parentNode,!a)return;a=b(a.nextSibling,0);for(var d;(d=a.parentNode)&&1===d.nodeType;)a=d;c.push(a)}for(var A=/(?:^|\s)nocode(?:\s|$)/,n=/\r\n?|\n/,l=a.ownerDocument,m=l.createElement("li");a.firstChild;)m.appendChild(a.firstChild); -for(var c=[m],p=0;p=+v[1],d=/\n/g,A=a.a,n=A.length,f=0,l=a.c,m=l.length,b=0,c=a.g,p=c.length,w=0;c[p]=n;var r,e;for(e=r=0;e=h&&(b+=2);f>=k&&(w+=2)}}finally{g&&(g.style.display=a)}}catch(x){E.console&&console.log(x&&x.stack||x)}}var E=window,C=["break,continue,do,else,for,if,return,while"], -F=[[C,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],H=[F,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"], -O=[F,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],P=[F,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"], -F=[F,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],Q=[C,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],R=[C,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],C=[C,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"], -S=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,W=/\S/,X=y({keywords:[H,P,O,F,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",Q,R,C],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),I={};t(X,["default-code"]);t(G([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),"default-markup htm html mxml xhtml xml xsl".split(" "));t(G([["pln",/^[\s]+/,null," \t\r\n"],["atv",/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null, -"\"'"]],[["tag",/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],["pun",/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]);t(G([],[["atv",/^[\s\S]+/]]),["uq.val"]);t(y({keywords:H, -hashComments:!0,cStyleComments:!0,types:S}),"c cc cpp cxx cyc m".split(" "));t(y({keywords:"null,true,false"}),["json"]);t(y({keywords:P,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:S}),["cs"]);t(y({keywords:O,cStyleComments:!0}),["java"]);t(y({keywords:C,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]);t(y({keywords:Q,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]);t(y({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END", -hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]);t(y({keywords:R,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]);t(y({keywords:F,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]);t(y({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0, -regexLiterals:!0}),["coffee"]);t(G([],[["str",/^[\s\S]+/]]),["regex"]);var Y=E.PR={createSimpleLexer:G,registerLangHandler:t,sourceDecorator:y,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit",PR_NOCODE:"nocode",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ",prettyPrintOne:E.prettyPrintOne=function(a,d,f){f=f||!1;d=d||null;var b=document.createElement("div");b.innerHTML="
"+a+"
"; -b=b.firstChild;f&&L(b,f,!0);M({j:d,m:f,h:b,l:1,a:null,i:null,c:null,g:null});return b.innerHTML},prettyPrint:E.prettyPrint=function(a,d){function f(){for(var b=E.PR_SHOULD_USE_CONTINUATION?c.now()+250:Infinity;p' + pair[2] + ''); - } - } - - var innerHTML = ''; - for (kind in html) { - var list = html[kind]; - if (!list.length) continue; - innerHTML += '
  • ' + kind + '
  • \n' + list.join('\n'); - } - result.innerHTML = innerHTML; - if (innerHTML) result.style.display = 'block'; - selectedIndex = -1; - }); - - // down, up and enter key are pressed, select search result. - input.addEventListener('keydown', function(ev){ - if (ev.keyCode === 40) { - // arrow down - var current = result.children[selectedIndex]; - var selected = result.children[selectedIndex + 1]; - if (selected && selected.classList.contains('search-separator')) { - var selected = result.children[selectedIndex + 2]; - selectedIndex++; - } - - if (selected) { - if (current) current.classList.remove('selected'); - selectedIndex++; - selected.classList.add('selected'); - } - } else if (ev.keyCode === 38) { - // arrow up - var current = result.children[selectedIndex]; - var selected = result.children[selectedIndex - 1]; - if (selected && selected.classList.contains('search-separator')) { - var selected = result.children[selectedIndex - 2]; - selectedIndex--; - } - - if (selected) { - if (current) current.classList.remove('selected'); - selectedIndex--; - selected.classList.add('selected'); - } - } else if (ev.keyCode === 13) { - // enter - var current = result.children[selectedIndex]; - if (current) { - var link = current.querySelector('a'); - if (link) location.href = link.href; - } - } else { - return; - } - - ev.preventDefault(); - }); - - // select search result when search result is mouse over. - result.addEventListener('mousemove', function(ev){ - var current = result.children[selectedIndex]; - if (current) current.classList.remove('selected'); - - var li = ev.target; - while (li) { - if (li.nodeName === 'LI') break; - li = li.parentElement; - } - - if (li) { - selectedIndex = Array.prototype.indexOf.call(result.children, li); - li.classList.add('selected'); - } - }); - - // clear search result when body is clicked. - document.body.addEventListener('click', function(ev){ - selectedIndex = -1; - result.style.display = 'none'; - result.innerHTML = ''; - }); - -})(); diff --git a/docs/script/search_index.js b/docs/script/search_index.js deleted file mode 100644 index eb230052..00000000 --- a/docs/script/search_index.js +++ /dev/null @@ -1,1784 +0,0 @@ -window.esdocSearchIndex = [ - [ - "@signnow/api-client/lib/document/index.js~document", - "class/lib/document/index.js~Document.html", - "Document @signnow/api-client/lib/document/index.js", - "class" - ], - [ - "@signnow/api-client/lib/document-group/index.js~documentgroup", - "class/lib/document-group/index.js~DocumentGroup.html", - "DocumentGroup @signnow/api-client/lib/document-group/index.js", - "class" - ], - [ - "@signnow/api-client/lib/document-group-template/index.js~documentgrouptemplate", - "class/lib/document-group-template/index.js~DocumentGroupTemplate.html", - "DocumentGroupTemplate @signnow/api-client/lib/document-group-template/index.js", - "class" - ], - [ - "@signnow/api-client/lib/embedded/index.js~embedded", - "class/lib/embedded/index.js~Embedded.html", - "Embedded @signnow/api-client/lib/embedded/index.js", - "class" - ], - [ - "@signnow/api-client/lib/link/index.js~link", - "class/lib/link/index.js~Link.html", - "Link @signnow/api-client/lib/link/index.js", - "class" - ], - [ - "@signnow/api-client/lib/oauth2/index.js~oauth2", - "class/lib/oauth2/index.js~OAuth2.html", - "OAuth2 @signnow/api-client/lib/oauth2/index.js", - "class" - ], - [ - "@signnow/api-client/lib/template/index.js~template", - "class/lib/template/index.js~Template.html", - "Template @signnow/api-client/lib/template/index.js", - "class" - ], - [ - "@signnow/api-client/lib/user/index.js~user", - "class/lib/user/index.js~User.html", - "User @signnow/api-client/lib/user/index.js", - "class" - ], - [ - "@signnow/api-client~init", - "function/index.html#static-function-init", - "init @signnow/api-client", - "function" - ], - [ - "", - "test-file/test/document.test.js.html#lineNumber11", - "document", - "test" - ], - [ - "", - "test-file/test/document.test.js.html#lineNumber93", - "document .cancelInvite()", - "test" - ], - [ - "", - "test-file/test/document.test.js.html#lineNumber94", - "document .cancelInvite() should cancel all invites to a document", - "test" - ], - [ - "", - "test-file/test/document.test.js.html#lineNumber37", - "document .download()", - "test" - ], - [ - "", - "test-file/test/document.test.js.html#lineNumber38", - "document .download() should download a collapsed document", - "test" - ], - [ - "", - "test-file/test/document.test.js.html#lineNumber13", - "document .list()", - "test" - ], - [ - "", - "test-file/test/document.test.js.html#lineNumber106", - "document .share()", - "test" - ], - [ - "", - "test-file/test/document.test.js.html#lineNumber107", - "document .share() should return a link to download the document", - "test" - ], - [ - "", - "test-file/test/document.test.js.html#lineNumber50", - "document .update()", - "test" - ], - [ - "", - "test-file/test/document.test.js.html#lineNumber51", - "document .update() should update a document and return the document id", - "test" - ], - [ - "", - "test-file/test/document.test.js.html#lineNumber24", - "document .view()", - "test" - ], - [ - "", - "test-file/test/document.test.js.html#lineNumber25", - "document .view() should return a document resource", - "test" - ], - [ - "", - "test-file/test/document.test.js.html#lineNumber120", - "document should merge two documents and return the new document name", - "test" - ], - [ - "", - "test-file/test/document.test.js.html#lineNumber164", - "document should return the history of a document", - "test" - ], - [ - "", - "test-file/test/document.test.js.html#lineNumber79", - "document should send an invite to sign a document", - "test" - ], - [ - "", - "test-file/test/embedded.test.js.html#lineNumber10", - "embedded", - "test" - ], - [ - "", - "test-file/test/embedded.test.js.html#lineNumber28", - "embedded should create a link for the embedded invite.", - "test" - ], - [ - "", - "test-file/test/embedded.test.js.html#lineNumber13", - "embedded should create a new embedded signing invites for a document without sending emails", - "test" - ], - [ - "", - "test-file/test/embedded.test.js.html#lineNumber45", - "embedded should delete embedded invites for a document.", - "test" - ], - [ - "", - "test-file/test/enumeration.test.js.html#lineNumber10", - "enumerations", - "test" - ], - [ - "", - "test-file/test/enumeration.test.js.html#lineNumber12", - "enumerations .addField()", - "test" - ], - [ - "", - "test-file/test/enumeration.test.js.html#lineNumber13", - "enumerations .addField() should add an enumeration field(drop down) to a document and return the document id", - "test" - ], - [ - "", - "test-file/test/enumeration.test.js.html#lineNumber33", - "enumerations .addOptions()", - "test" - ], - [ - "", - "test-file/test/enumeration.test.js.html#lineNumber53", - "enumerations .addOptions() should add enumeration options to the field we just created and return an array", - "test" - ], - [ - "", - "test-file/test/folder.test.js.html#lineNumber10", - "folder", - "test" - ], - [ - "", - "test-file/test/folder.test.js.html#lineNumber23", - "folder .documents()", - "test" - ], - [ - "", - "test-file/test/folder.test.js.html#lineNumber24", - "folder .documents() should return all documents inside a folder", - "test" - ], - [ - "", - "test-file/test/folder.test.js.html#lineNumber12", - "folder .list()", - "test" - ], - [ - "", - "test-file/test/folder.test.js.html#lineNumber13", - "folder .list() should return a list of folders", - "test" - ], - [ - "lib/.external-ecmascript.js~array", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array", - "lib/.external-ecmascript.js~Array", - "external" - ], - [ - "lib/.external-ecmascript.js~arraybuffer", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer", - "lib/.external-ecmascript.js~ArrayBuffer", - "external" - ], - [ - "lib/.external-ecmascript.js~boolean", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", - "lib/.external-ecmascript.js~Boolean", - "external" - ], - [ - "lib/.external-ecmascript.js~dataview", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView", - "lib/.external-ecmascript.js~DataView", - "external" - ], - [ - "lib/.external-ecmascript.js~date", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date", - "lib/.external-ecmascript.js~Date", - "external" - ], - [ - "lib/.external-ecmascript.js~error", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error", - "lib/.external-ecmascript.js~Error", - "external" - ], - [ - "lib/.external-ecmascript.js~evalerror", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError", - "lib/.external-ecmascript.js~EvalError", - "external" - ], - [ - "lib/.external-ecmascript.js~float32array", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array", - "lib/.external-ecmascript.js~Float32Array", - "external" - ], - [ - "lib/.external-ecmascript.js~float64array", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array", - "lib/.external-ecmascript.js~Float64Array", - "external" - ], - [ - "lib/.external-ecmascript.js~function", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", - "lib/.external-ecmascript.js~Function", - "external" - ], - [ - "lib/.external-ecmascript.js~generator", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator", - "lib/.external-ecmascript.js~Generator", - "external" - ], - [ - "lib/.external-ecmascript.js~generatorfunction", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction", - "lib/.external-ecmascript.js~GeneratorFunction", - "external" - ], - [ - "lib/.external-ecmascript.js~infinity", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity", - "lib/.external-ecmascript.js~Infinity", - "external" - ], - [ - "lib/.external-ecmascript.js~int16array", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array", - "lib/.external-ecmascript.js~Int16Array", - "external" - ], - [ - "lib/.external-ecmascript.js~int32array", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array", - "lib/.external-ecmascript.js~Int32Array", - "external" - ], - [ - "lib/.external-ecmascript.js~int8array", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array", - "lib/.external-ecmascript.js~Int8Array", - "external" - ], - [ - "lib/.external-ecmascript.js~internalerror", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError", - "lib/.external-ecmascript.js~InternalError", - "external" - ], - [ - "lib/.external-ecmascript.js~json", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON", - "lib/.external-ecmascript.js~JSON", - "external" - ], - [ - "lib/.external-ecmascript.js~map", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map", - "lib/.external-ecmascript.js~Map", - "external" - ], - [ - "lib/.external-ecmascript.js~nan", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN", - "lib/.external-ecmascript.js~NaN", - "external" - ], - [ - "lib/.external-ecmascript.js~number", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", - "lib/.external-ecmascript.js~Number", - "external" - ], - [ - "lib/.external-ecmascript.js~object", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", - "lib/.external-ecmascript.js~Object", - "external" - ], - [ - "lib/.external-ecmascript.js~promise", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise", - "lib/.external-ecmascript.js~Promise", - "external" - ], - [ - "lib/.external-ecmascript.js~proxy", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy", - "lib/.external-ecmascript.js~Proxy", - "external" - ], - [ - "lib/.external-ecmascript.js~rangeerror", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError", - "lib/.external-ecmascript.js~RangeError", - "external" - ], - [ - "lib/.external-ecmascript.js~referenceerror", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError", - "lib/.external-ecmascript.js~ReferenceError", - "external" - ], - [ - "lib/.external-ecmascript.js~reflect", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect", - "lib/.external-ecmascript.js~Reflect", - "external" - ], - [ - "lib/.external-ecmascript.js~regexp", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp", - "lib/.external-ecmascript.js~RegExp", - "external" - ], - [ - "lib/.external-ecmascript.js~set", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set", - "lib/.external-ecmascript.js~Set", - "external" - ], - [ - "lib/.external-ecmascript.js~string", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", - "lib/.external-ecmascript.js~String", - "external" - ], - [ - "lib/.external-ecmascript.js~symbol", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol", - "lib/.external-ecmascript.js~Symbol", - "external" - ], - [ - "lib/.external-ecmascript.js~syntaxerror", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError", - "lib/.external-ecmascript.js~SyntaxError", - "external" - ], - [ - "lib/.external-ecmascript.js~typeerror", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError", - "lib/.external-ecmascript.js~TypeError", - "external" - ], - [ - "lib/.external-ecmascript.js~urierror", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError", - "lib/.external-ecmascript.js~URIError", - "external" - ], - [ - "lib/.external-ecmascript.js~uint16array", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array", - "lib/.external-ecmascript.js~Uint16Array", - "external" - ], - [ - "lib/.external-ecmascript.js~uint32array", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array", - "lib/.external-ecmascript.js~Uint32Array", - "external" - ], - [ - "lib/.external-ecmascript.js~uint8array", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array", - "lib/.external-ecmascript.js~Uint8Array", - "external" - ], - [ - "lib/.external-ecmascript.js~uint8clampedarray", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray", - "lib/.external-ecmascript.js~Uint8ClampedArray", - "external" - ], - [ - "lib/.external-ecmascript.js~weakmap", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap", - "lib/.external-ecmascript.js~WeakMap", - "external" - ], - [ - "lib/.external-ecmascript.js~weakset", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet", - "lib/.external-ecmascript.js~WeakSet", - "external" - ], - [ - "lib/.external-ecmascript.js~boolean", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", - "lib/.external-ecmascript.js~boolean", - "external" - ], - [ - "lib/.external-ecmascript.js~function", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", - "lib/.external-ecmascript.js~function", - "external" - ], - [ - "lib/.external-ecmascript.js~null", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null", - "lib/.external-ecmascript.js~null", - "external" - ], - [ - "lib/.external-ecmascript.js~number", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", - "lib/.external-ecmascript.js~number", - "external" - ], - [ - "lib/.external-ecmascript.js~object", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", - "lib/.external-ecmascript.js~object", - "external" - ], - [ - "lib/.external-ecmascript.js~string", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", - "lib/.external-ecmascript.js~string", - "external" - ], - [ - "lib/.external-ecmascript.js~undefined", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined", - "lib/.external-ecmascript.js~undefined", - "external" - ], - [ - "lib/document-group-template/index.js", - "file/lib/document-group-template/index.js.html", - "lib/document-group-template/index.js", - "file" - ], - [ - "lib/document-group-template/index.js~documentgrouptemplate.documentgrouptemplatecreateparams", - "typedef/index.html#static-typedef-DocumentGroupTemplateCreateParams", - "lib/document-group-template/index.js~DocumentGroupTemplate.DocumentGroupTemplateCreateParams", - "typedef" - ], - [ - "lib/document-group-template/index.js~documentgrouptemplate.documentgrouptemplatecreateresponse", - "typedef/index.html#static-typedef-DocumentGroupTemplateCreateResponse", - "lib/document-group-template/index.js~DocumentGroupTemplate.DocumentGroupTemplateCreateResponse", - "typedef" - ], - [ - "lib/document-group-template/index.js~documentgrouptemplate.documentgrouptemplateinviteaction", - "typedef/index.html#static-typedef-DocumentGroupTemplateInviteAction", - "lib/document-group-template/index.js~DocumentGroupTemplate.DocumentGroupTemplateInviteAction", - "typedef" - ], - [ - "lib/document-group-template/index.js~documentgrouptemplate.documentgrouptemplateinviteemail", - "typedef/index.html#static-typedef-DocumentGroupTemplateInviteEmail", - "lib/document-group-template/index.js~DocumentGroupTemplate.DocumentGroupTemplateInviteEmail", - "typedef" - ], - [ - "lib/document-group-template/index.js~documentgrouptemplate.documentgrouptemplateinviteparams", - "typedef/index.html#static-typedef-DocumentGroupTemplateInviteParams", - "lib/document-group-template/index.js~DocumentGroupTemplate.DocumentGroupTemplateInviteParams", - "typedef" - ], - [ - "lib/document-group-template/index.js~documentgrouptemplate.documentgrouptemplateinviteresponse", - "typedef/index.html#static-typedef-DocumentGroupTemplateInviteResponse", - "lib/document-group-template/index.js~DocumentGroupTemplate.DocumentGroupTemplateInviteResponse", - "typedef" - ], - [ - "lib/document-group-template/index.js~documentgrouptemplate.documentgrouptemplateinvitestep", - "typedef/index.html#static-typedef-DocumentGroupTemplateInviteStep", - "lib/document-group-template/index.js~DocumentGroupTemplate.DocumentGroupTemplateInviteStep", - "typedef" - ], - [ - "lib/document-group-template/index.js~documentgrouptemplate.documentgrouptemplateitem", - "typedef/index.html#static-typedef-DocumentGroupTemplateItem", - "lib/document-group-template/index.js~DocumentGroupTemplate.DocumentGroupTemplateItem", - "typedef" - ], - [ - "lib/document-group-template/index.js~documentgrouptemplate.documentgrouptemplateroutingdetails", - "typedef/index.html#static-typedef-DocumentGroupTemplateRoutingDetails", - "lib/document-group-template/index.js~DocumentGroupTemplate.DocumentGroupTemplateRoutingDetails", - "typedef" - ], - [ - "lib/document-group-template/index.js~documentgrouptemplate.documentgrouptemplateviewparams", - "typedef/index.html#static-typedef-DocumentGroupTemplateViewParams", - "lib/document-group-template/index.js~DocumentGroupTemplate.DocumentGroupTemplateViewParams", - "typedef" - ], - [ - "lib/document-group-template/index.js~documentgrouptemplate.documentgrouptemplateviewresponse", - "typedef/index.html#static-typedef-DocumentGroupTemplateViewResponse", - "lib/document-group-template/index.js~DocumentGroupTemplate.DocumentGroupTemplateViewResponse", - "typedef" - ], - [ - "lib/document-group-template/index.js~documentgrouptemplate.create", - "class/lib/document-group-template/index.js~DocumentGroupTemplate.html#static-method-create", - "lib/document-group-template/index.js~DocumentGroupTemplate.create", - "method" - ], - [ - "lib/document-group-template/index.js~documentgrouptemplate.invite", - "class/lib/document-group-template/index.js~DocumentGroupTemplate.html#static-method-invite", - "lib/document-group-template/index.js~DocumentGroupTemplate.invite", - "method" - ], - [ - "lib/document-group-template/index.js~documentgrouptemplate.view", - "class/lib/document-group-template/index.js~DocumentGroupTemplate.html#static-method-view", - "lib/document-group-template/index.js~DocumentGroupTemplate.view", - "method" - ], - [ - "lib/document-group/index.js", - "file/lib/document-group/index.js.html", - "lib/document-group/index.js", - "file" - ], - [ - "lib/document-group/index.js~documentgroup.documentgroupcancelinviteparams", - "typedef/index.html#static-typedef-DocumentGroupCancelInviteParams", - "lib/document-group/index.js~DocumentGroup.DocumentGroupCancelInviteParams", - "typedef" - ], - [ - "lib/document-group/index.js~documentgroup.documentgroupcancelinviteresponse", - "typedef/index.html#static-typedef-DocumentGroupCancelInviteResponse", - "lib/document-group/index.js~DocumentGroup.DocumentGroupCancelInviteResponse", - "typedef" - ], - [ - "lib/document-group/index.js~documentgroup.documentgroupcreateparams", - "typedef/index.html#static-typedef-DocumentGroupCreateParams", - "lib/document-group/index.js~DocumentGroup.DocumentGroupCreateParams", - "typedef" - ], - [ - "lib/document-group/index.js~documentgroup.documentgroupcreateresponse", - "typedef/index.html#static-typedef-DocumentGroupCreateResponse", - "lib/document-group/index.js~DocumentGroup.DocumentGroupCreateResponse", - "typedef" - ], - [ - "lib/document-group/index.js~documentgroup.documentgroupdownloadparams", - "typedef/index.html#static-typedef-DocumentGroupDownloadParams", - "lib/document-group/index.js~DocumentGroup.DocumentGroupDownloadParams", - "typedef" - ], - [ - "lib/document-group/index.js~documentgroup.documentgroupdownloadresponse", - "typedef/index.html#static-typedef-DocumentGroupDownloadResponse", - "lib/document-group/index.js~DocumentGroup.DocumentGroupDownloadResponse", - "typedef" - ], - [ - "lib/document-group/index.js~documentgroup.documentgroupinviteaction", - "typedef/index.html#static-typedef-DocumentGroupInviteAction", - "lib/document-group/index.js~DocumentGroup.DocumentGroupInviteAction", - "typedef" - ], - [ - "lib/document-group/index.js~documentgroup.documentgroupinviteauthenticationpassword", - "typedef/index.html#static-typedef-DocumentGroupInviteAuthenticationPassword", - "lib/document-group/index.js~DocumentGroup.DocumentGroupInviteAuthenticationPassword", - "typedef" - ], - [ - "lib/document-group/index.js~documentgroup.documentgroupinviteauthenticationphonecall", - "typedef/index.html#static-typedef-DocumentGroupInviteAuthenticationPhoneCall", - "lib/document-group/index.js~DocumentGroup.DocumentGroupInviteAuthenticationPhoneCall", - "typedef" - ], - [ - "lib/document-group/index.js~documentgroup.documentgroupinviteauthenticationphonesms", - "typedef/index.html#static-typedef-DocumentGroupInviteAuthenticationPhoneSMS", - "lib/document-group/index.js~DocumentGroup.DocumentGroupInviteAuthenticationPhoneSMS", - "typedef" - ], - [ - "lib/document-group/index.js~documentgroup.documentgroupinvitecompletionemailconfig", - "typedef/index.html#static-typedef-DocumentGroupInviteCompletionEmailConfig", - "lib/document-group/index.js~DocumentGroup.DocumentGroupInviteCompletionEmailConfig", - "typedef" - ], - [ - "lib/document-group/index.js~documentgroup.documentgroupinviteemail", - "typedef/index.html#static-typedef-DocumentGroupInviteEmail", - "lib/document-group/index.js~DocumentGroup.DocumentGroupInviteEmail", - "typedef" - ], - [ - "lib/document-group/index.js~documentgroup.documentgroupinviteparams", - "typedef/index.html#static-typedef-DocumentGroupInviteParams", - "lib/document-group/index.js~DocumentGroup.DocumentGroupInviteParams", - "typedef" - ], - [ - "lib/document-group/index.js~documentgroup.documentgroupinviteresponse", - "typedef/index.html#static-typedef-DocumentGroupInviteResponse", - "lib/document-group/index.js~DocumentGroup.DocumentGroupInviteResponse", - "typedef" - ], - [ - "lib/document-group/index.js~documentgroup.documentgroupinvitesettings", - "typedef/index.html#static-typedef-DocumentGroupInviteSettings", - "lib/document-group/index.js~DocumentGroup.DocumentGroupInviteSettings", - "typedef" - ], - [ - "lib/document-group/index.js~documentgroup.documentgroupinvitestep", - "typedef/index.html#static-typedef-DocumentGroupInviteStep", - "lib/document-group/index.js~DocumentGroup.DocumentGroupInviteStep", - "typedef" - ], - [ - "lib/document-group/index.js~documentgroup.documentgroupitem", - "typedef/index.html#static-typedef-DocumentGroupItem", - "lib/document-group/index.js~DocumentGroup.DocumentGroupItem", - "typedef" - ], - [ - "lib/document-group/index.js~documentgroup.documentgroupviewparams", - "typedef/index.html#static-typedef-DocumentGroupViewParams", - "lib/document-group/index.js~DocumentGroup.DocumentGroupViewParams", - "typedef" - ], - [ - "lib/document-group/index.js~documentgroup.documentgroupviewresponse", - "typedef/index.html#static-typedef-DocumentGroupViewResponse", - "lib/document-group/index.js~DocumentGroup.DocumentGroupViewResponse", - "typedef" - ], - [ - "lib/document-group/index.js~documentgroup.cancelinvite", - "class/lib/document-group/index.js~DocumentGroup.html#static-method-cancelInvite", - "lib/document-group/index.js~DocumentGroup.cancelInvite", - "method" - ], - [ - "lib/document-group/index.js~documentgroup.create", - "class/lib/document-group/index.js~DocumentGroup.html#static-method-create", - "lib/document-group/index.js~DocumentGroup.create", - "method" - ], - [ - "lib/document-group/index.js~documentgroup.download", - "class/lib/document-group/index.js~DocumentGroup.html#static-method-download", - "lib/document-group/index.js~DocumentGroup.download", - "method" - ], - [ - "lib/document-group/index.js~documentgroup.invite", - "class/lib/document-group/index.js~DocumentGroup.html#static-method-invite", - "lib/document-group/index.js~DocumentGroup.invite", - "method" - ], - [ - "lib/document-group/index.js~documentgroup.view", - "class/lib/document-group/index.js~DocumentGroup.html#static-method-view", - "lib/document-group/index.js~DocumentGroup.view", - "method" - ], - [ - "lib/document/index.js", - "file/lib/document/index.js.html", - "lib/document/index.js", - "file" - ], - [ - "lib/document/index.js~document.attachmentfield", - "typedef/index.html#static-typedef-AttachmentField", - "lib/document/index.js~Document.AttachmentField", - "typedef" - ], - [ - "lib/document/index.js~document.calculatedfield", - "typedef/index.html#static-typedef-CalculatedField", - "lib/document/index.js~Document.CalculatedField", - "typedef" - ], - [ - "lib/document/index.js~document.cancelfreeforminviteparams", - "typedef/index.html#static-typedef-CancelFreeformInviteParams", - "lib/document/index.js~Document.CancelFreeformInviteParams", - "typedef" - ], - [ - "lib/document/index.js~document.cancelfreeforminviteresponse", - "typedef/index.html#static-typedef-CancelFreeformInviteResponse", - "lib/document/index.js~Document.CancelFreeformInviteResponse", - "typedef" - ], - [ - "lib/document/index.js~document.checkfield", - "typedef/index.html#static-typedef-CheckField", - "lib/document/index.js~Document.CheckField", - "typedef" - ], - [ - "lib/document/index.js~document.documentcreateparams", - "typedef/index.html#static-typedef-DocumentCreateParams", - "lib/document/index.js~Document.DocumentCreateParams", - "typedef" - ], - [ - "lib/document/index.js~document.documentcreateresponse", - "typedef/index.html#static-typedef-DocumentCreateResponse", - "lib/document/index.js~Document.DocumentCreateResponse", - "typedef" - ], - [ - "lib/document/index.js~document.documentdownloadoptions", - "typedef/index.html#static-typedef-DocumentDownloadOptions", - "lib/document/index.js~Document.DocumentDownloadOptions", - "typedef" - ], - [ - "lib/document/index.js~document.documentdownloadparams", - "typedef/index.html#static-typedef-DocumentDownloadParams", - "lib/document/index.js~Document.DocumentDownloadParams", - "typedef" - ], - [ - "lib/document/index.js~document.documentdownloadresponse", - "typedef/index.html#static-typedef-DocumentDownloadResponse", - "lib/document/index.js~Document.DocumentDownloadResponse", - "typedef" - ], - [ - "lib/document/index.js~document.documentevent", - "typedef/index.html#static-typedef-DocumentEvent", - "lib/document/index.js~Document.DocumentEvent", - "typedef" - ], - [ - "lib/document/index.js~document.documentfieldextractparams", - "typedef/index.html#static-typedef-DocumentFieldExtractParams", - "lib/document/index.js~Document.DocumentFieldExtractParams", - "typedef" - ], - [ - "lib/document/index.js~document.documentfieldextractresponse", - "typedef/index.html#static-typedef-DocumentFieldExtractResponse", - "lib/document/index.js~Document.DocumentFieldExtractResponse", - "typedef" - ], - [ - "lib/document/index.js~document.documentfieldinvitecancelparams", - "typedef/index.html#static-typedef-DocumentFieldInviteCancelParams", - "lib/document/index.js~Document.DocumentFieldInviteCancelParams", - "typedef" - ], - [ - "lib/document/index.js~document.documentfieldinvitecancelresponse", - "typedef/index.html#static-typedef-DocumentFieldInviteCancelResponse", - "lib/document/index.js~Document.DocumentFieldInviteCancelResponse", - "typedef" - ], - [ - "lib/document/index.js~document.documentfieldinviteresponse", - "typedef/index.html#static-typedef-DocumentFieldInviteResponse", - "lib/document/index.js~Document.DocumentFieldInviteResponse", - "typedef" - ], - [ - "lib/document/index.js~document.documentfields", - "typedef/index.html#static-typedef-DocumentFields", - "lib/document/index.js~Document.DocumentFields", - "typedef" - ], - [ - "lib/document/index.js~document.documentfreeforminviteresponse", - "typedef/index.html#static-typedef-DocumentFreeformInviteResponse", - "lib/document/index.js~Document.DocumentFreeformInviteResponse", - "typedef" - ], - [ - "lib/document/index.js~document.documenthistoryparams", - "typedef/index.html#static-typedef-DocumentHistoryParams", - "lib/document/index.js~Document.DocumentHistoryParams", - "typedef" - ], - [ - "lib/document/index.js~document.documenthistoryresponse", - "typedef/index.html#static-typedef-DocumentHistoryResponse", - "lib/document/index.js~Document.DocumentHistoryResponse", - "typedef" - ], - [ - "lib/document/index.js~document.documentinviteoptions", - "typedef/index.html#static-typedef-DocumentInviteOptions", - "lib/document/index.js~Document.DocumentInviteOptions", - "typedef" - ], - [ - "lib/document/index.js~document.documentinviteparams", - "typedef/index.html#static-typedef-DocumentInviteParams", - "lib/document/index.js~Document.DocumentInviteParams", - "typedef" - ], - [ - "lib/document/index.js~document.documentinviteresponse", - "typedef/index.html#static-typedef-DocumentInviteResponse", - "lib/document/index.js~Document.DocumentInviteResponse", - "typedef" - ], - [ - "lib/document/index.js~document.documentinvitesettings", - "typedef/index.html#static-typedef-DocumentInviteSettings", - "lib/document/index.js~Document.DocumentInviteSettings", - "typedef" - ], - [ - "lib/document/index.js~document.documentlistitem", - "typedef/index.html#static-typedef-DocumentListItem", - "lib/document/index.js~Document.DocumentListItem", - "typedef" - ], - [ - "lib/document/index.js~document.documentlistparams", - "typedef/index.html#static-typedef-DocumentListParams", - "lib/document/index.js~Document.DocumentListParams", - "typedef" - ], - [ - "lib/document/index.js~document.documentlistresponse", - "typedef/index.html#static-typedef-DocumentListResponse", - "lib/document/index.js~Document.DocumentListResponse", - "typedef" - ], - [ - "lib/document/index.js~document.documentmergeoptions", - "typedef/index.html#static-typedef-DocumentMergeOptions", - "lib/document/index.js~Document.DocumentMergeOptions", - "typedef" - ], - [ - "lib/document/index.js~document.documentmergeparams", - "typedef/index.html#static-typedef-DocumentMergeParams", - "lib/document/index.js~Document.DocumentMergeParams", - "typedef" - ], - [ - "lib/document/index.js~document.documentmergeresponse", - "typedef/index.html#static-typedef-DocumentMergeResponse", - "lib/document/index.js~Document.DocumentMergeResponse", - "typedef" - ], - [ - "lib/document/index.js~document.documentremoveoptions", - "typedef/index.html#static-typedef-DocumentRemoveOptions", - "lib/document/index.js~Document.DocumentRemoveOptions", - "typedef" - ], - [ - "lib/document/index.js~document.documentremoveparams", - "typedef/index.html#static-typedef-DocumentRemoveParams", - "lib/document/index.js~Document.DocumentRemoveParams", - "typedef" - ], - [ - "lib/document/index.js~document.documentremoveresponse", - "typedef/index.html#static-typedef-DocumentRemoveResponse", - "lib/document/index.js~Document.DocumentRemoveResponse", - "typedef" - ], - [ - "lib/document/index.js~document.documentshareparams", - "typedef/index.html#static-typedef-DocumentShareParams", - "lib/document/index.js~Document.DocumentShareParams", - "typedef" - ], - [ - "lib/document/index.js~document.documentshareresponse", - "typedef/index.html#static-typedef-DocumentShareResponse", - "lib/document/index.js~Document.DocumentShareResponse", - "typedef" - ], - [ - "lib/document/index.js~document.documentsignersoptions", - "typedef/index.html#static-typedef-DocumentSignersOptions", - "lib/document/index.js~Document.DocumentSignersOptions", - "typedef" - ], - [ - "lib/document/index.js~document.documentsignersparams", - "typedef/index.html#static-typedef-DocumentSignersParams", - "lib/document/index.js~Document.DocumentSignersParams", - "typedef" - ], - [ - "lib/document/index.js~document.documentsignersresponse", - "typedef/index.html#static-typedef-DocumentSignersResponse", - "lib/document/index.js~Document.DocumentSignersResponse", - "typedef" - ], - [ - "lib/document/index.js~document.documentthumbnails", - "typedef/index.html#static-typedef-DocumentThumbnails", - "lib/document/index.js~Document.DocumentThumbnails", - "typedef" - ], - [ - "lib/document/index.js~document.documentupdateparams", - "typedef/index.html#static-typedef-DocumentUpdateParams", - "lib/document/index.js~Document.DocumentUpdateParams", - "typedef" - ], - [ - "lib/document/index.js~document.documentupdateresponse", - "typedef/index.html#static-typedef-DocumentUpdateResponse", - "lib/document/index.js~Document.DocumentUpdateResponse", - "typedef" - ], - [ - "lib/document/index.js~document.documentviewparams", - "typedef/index.html#static-typedef-DocumentViewParams", - "lib/document/index.js~Document.DocumentViewParams", - "typedef" - ], - [ - "lib/document/index.js~document.documentviewresponse", - "typedef/index.html#static-typedef-DocumentViewResponse", - "lib/document/index.js~Document.DocumentViewResponse", - "typedef" - ], - [ - "lib/document/index.js~document.enumerationfield", - "typedef/index.html#static-typedef-EnumerationField", - "lib/document/index.js~Document.EnumerationField", - "typedef" - ], - [ - "lib/document/index.js~document.formulatree", - "typedef/index.html#static-typedef-FormulaTree", - "lib/document/index.js~Document.FormulaTree", - "typedef" - ], - [ - "lib/document/index.js~document.formulatreebranch", - "typedef/index.html#static-typedef-FormulaTreeBranch", - "lib/document/index.js~Document.FormulaTreeBranch", - "typedef" - ], - [ - "lib/document/index.js~document.formulatreebranchterminator", - "typedef/index.html#static-typedef-FormulaTreeBranchTerminator", - "lib/document/index.js~Document.FormulaTreeBranchTerminator", - "typedef" - ], - [ - "lib/document/index.js~document.initialsfield", - "typedef/index.html#static-typedef-InitialsField", - "lib/document/index.js~Document.InitialsField", - "typedef" - ], - [ - "lib/document/index.js~document.radiobutton", - "typedef/index.html#static-typedef-RadioButton", - "lib/document/index.js~Document.RadioButton", - "typedef" - ], - [ - "lib/document/index.js~document.radiobuttonfield", - "typedef/index.html#static-typedef-RadioButtonField", - "lib/document/index.js~Document.RadioButtonField", - "typedef" - ], - [ - "lib/document/index.js~document.signaturefield", - "typedef/index.html#static-typedef-SignatureField", - "lib/document/index.js~Document.SignatureField", - "typedef" - ], - [ - "lib/document/index.js~document.signersettings", - "typedef/index.html#static-typedef-SignerSettings", - "lib/document/index.js~Document.SignerSettings", - "typedef" - ], - [ - "lib/document/index.js~document.textfield", - "typedef/index.html#static-typedef-TextField", - "lib/document/index.js~Document.TextField", - "typedef" - ], - [ - "lib/document/index.js~document.cancelfieldinvite", - "class/lib/document/index.js~Document.html#static-method-cancelFieldInvite", - "lib/document/index.js~Document.cancelFieldInvite", - "method" - ], - [ - "lib/document/index.js~document.cancelfreeforminvite", - "class/lib/document/index.js~Document.html#static-method-cancelFreeFormInvite", - "lib/document/index.js~Document.cancelFreeFormInvite", - "method" - ], - [ - "lib/document/index.js~document.cancelinvite", - "class/lib/document/index.js~Document.html#static-method-cancelInvite", - "lib/document/index.js~Document.cancelInvite", - "method" - ], - [ - "lib/document/index.js~document.create", - "class/lib/document/index.js~Document.html#static-method-create", - "lib/document/index.js~Document.create", - "method" - ], - [ - "lib/document/index.js~document.download", - "class/lib/document/index.js~Document.html#static-method-download", - "lib/document/index.js~Document.download", - "method" - ], - [ - "lib/document/index.js~document.fieldextract", - "class/lib/document/index.js~Document.html#static-method-fieldextract", - "lib/document/index.js~Document.fieldextract", - "method" - ], - [ - "lib/document/index.js~document.history", - "class/lib/document/index.js~Document.html#static-method-history", - "lib/document/index.js~Document.history", - "method" - ], - [ - "lib/document/index.js~document.invite", - "class/lib/document/index.js~Document.html#static-method-invite", - "lib/document/index.js~Document.invite", - "method" - ], - [ - "lib/document/index.js~document.list", - "class/lib/document/index.js~Document.html#static-method-list", - "lib/document/index.js~Document.list", - "method" - ], - [ - "lib/document/index.js~document.merge", - "class/lib/document/index.js~Document.html#static-method-merge", - "lib/document/index.js~Document.merge", - "method" - ], - [ - "lib/document/index.js~document.remove", - "class/lib/document/index.js~Document.html#static-method-remove", - "lib/document/index.js~Document.remove", - "method" - ], - [ - "lib/document/index.js~document.share", - "class/lib/document/index.js~Document.html#static-method-share", - "lib/document/index.js~Document.share", - "method" - ], - [ - "lib/document/index.js~document.signers", - "class/lib/document/index.js~Document.html#static-method-signers", - "lib/document/index.js~Document.signers", - "method" - ], - [ - "lib/document/index.js~document.update", - "class/lib/document/index.js~Document.html#static-method-update", - "lib/document/index.js~Document.update", - "method" - ], - [ - "lib/document/index.js~document.view", - "class/lib/document/index.js~Document.html#static-method-view", - "lib/document/index.js~Document.view", - "method" - ], - [ - "lib/embedded/index.js", - "file/lib/embedded/index.js.html", - "lib/embedded/index.js", - "file" - ], - [ - "lib/embedded/index.js~embedded.embeddedcancelinvitepayload", - "typedef/index.html#static-typedef-EmbeddedCancelInvitePayload", - "lib/embedded/index.js~Embedded.EmbeddedCancelInvitePayload", - "typedef" - ], - [ - "lib/embedded/index.js~embedded.embeddedcancelinviteresponse", - "typedef/index.html#static-typedef-EmbeddedCancelInviteResponse", - "lib/embedded/index.js~Embedded.EmbeddedCancelInviteResponse", - "typedef" - ], - [ - "lib/embedded/index.js~embedded.embeddedcreateinvitespayload", - "typedef/index.html#static-typedef-EmbeddedCreateInvitesPayload", - "lib/embedded/index.js~Embedded.EmbeddedCreateInvitesPayload", - "typedef" - ], - [ - "lib/embedded/index.js~embedded.embeddedcreateinvitesresponse", - "typedef/index.html#static-typedef-EmbeddedCreateInvitesResponse", - "lib/embedded/index.js~Embedded.EmbeddedCreateInvitesResponse", - "typedef" - ], - [ - "lib/embedded/index.js~embedded.embeddedgeneratelinkpayload", - "typedef/index.html#static-typedef-EmbeddedGenerateLinkPayload", - "lib/embedded/index.js~Embedded.EmbeddedGenerateLinkPayload", - "typedef" - ], - [ - "lib/embedded/index.js~embedded.embeddedgeneratelinkresponse", - "typedef/index.html#static-typedef-EmbeddedGenerateLinkResponse", - "lib/embedded/index.js~Embedded.EmbeddedGenerateLinkResponse", - "typedef" - ], - [ - "lib/embedded/index.js~embedded.embeddedgeneratedlink", - "typedef/index.html#static-typedef-EmbeddedGeneratedLink", - "lib/embedded/index.js~Embedded.EmbeddedGeneratedLink", - "typedef" - ], - [ - "lib/embedded/index.js~embedded.embeddedinvite", - "typedef/index.html#static-typedef-EmbeddedInvite", - "lib/embedded/index.js~Embedded.EmbeddedInvite", - "typedef" - ], - [ - "lib/embedded/index.js~embedded.embeddedsigninginvite", - "typedef/index.html#static-typedef-EmbeddedSigningInvite", - "lib/embedded/index.js~Embedded.EmbeddedSigningInvite", - "typedef" - ], - [ - "lib/embedded/index.js~embedded.cancelinvites", - "class/lib/embedded/index.js~Embedded.html#static-method-cancelInvites", - "lib/embedded/index.js~Embedded.cancelInvites", - "method" - ], - [ - "lib/embedded/index.js~embedded.createinvite", - "class/lib/embedded/index.js~Embedded.html#static-method-createInvite", - "lib/embedded/index.js~Embedded.createInvite", - "method" - ], - [ - "lib/embedded/index.js~embedded.generateinvitelink", - "class/lib/embedded/index.js~Embedded.html#static-method-generateInviteLink", - "lib/embedded/index.js~Embedded.generateInviteLink", - "method" - ], - [ - "lib/index.js", - "file/lib/index.js.html", - "lib/index.js", - "file" - ], - [ - "lib/index.js~apierror", - "typedef/index.html#static-typedef-ApiError", - "lib/index.js~ApiError", - "typedef" - ], - [ - "lib/index.js~apierrorresponse", - "typedef/index.html#static-typedef-ApiErrorResponse", - "lib/index.js~ApiErrorResponse", - "typedef" - ], - [ - "lib/index.js~features", - "typedef/index.html#static-typedef-Features", - "lib/index.js~Features", - "typedef" - ], - [ - "lib/index.js~initparams", - "typedef/index.html#static-typedef-InitParams", - "lib/index.js~InitParams", - "typedef" - ], - [ - "lib/link/index.js", - "file/lib/link/index.js.html", - "lib/link/index.js", - "file" - ], - [ - "lib/link/index.js~link.signinglinkcreateparams", - "typedef/index.html#static-typedef-SigningLinkCreateParams", - "lib/link/index.js~Link.SigningLinkCreateParams", - "typedef" - ], - [ - "lib/link/index.js~link.signinglinkcreateresponse", - "typedef/index.html#static-typedef-SigningLinkCreateResponse", - "lib/link/index.js~Link.SigningLinkCreateResponse", - "typedef" - ], - [ - "lib/link/index.js~link.create", - "class/lib/link/index.js~Link.html#static-method-create", - "lib/link/index.js~Link.create", - "method" - ], - [ - "lib/oauth2/index.js", - "file/lib/oauth2/index.js.html", - "lib/oauth2/index.js", - "file" - ], - [ - "lib/oauth2/index.js~oauth2.accesstokengetparams", - "typedef/index.html#static-typedef-AccessTokenGetParams", - "lib/oauth2/index.js~OAuth2.AccessTokenGetParams", - "typedef" - ], - [ - "lib/oauth2/index.js~oauth2.accesstokengetresponse", - "typedef/index.html#static-typedef-AccessTokenGetResponse", - "lib/oauth2/index.js~OAuth2.AccessTokenGetResponse", - "typedef" - ], - [ - "lib/oauth2/index.js~oauth2.accesstokenrefreshparams", - "typedef/index.html#static-typedef-AccessTokenRefreshParams", - "lib/oauth2/index.js~OAuth2.AccessTokenRefreshParams", - "typedef" - ], - [ - "lib/oauth2/index.js~oauth2.accesstokenrefreshresponse", - "typedef/index.html#static-typedef-AccessTokenRefreshResponse", - "lib/oauth2/index.js~OAuth2.AccessTokenRefreshResponse", - "typedef" - ], - [ - "lib/oauth2/index.js~oauth2.accesstokenverifyparams", - "typedef/index.html#static-typedef-AccessTokenVerifyParams", - "lib/oauth2/index.js~OAuth2.AccessTokenVerifyParams", - "typedef" - ], - [ - "lib/oauth2/index.js~oauth2.accesstokenverifyresponse", - "typedef/index.html#static-typedef-AccessTokenVerifyResponse", - "lib/oauth2/index.js~OAuth2.AccessTokenVerifyResponse", - "typedef" - ], - [ - "lib/oauth2/index.js~oauth2.refreshtoken", - "class/lib/oauth2/index.js~OAuth2.html#static-method-refreshToken", - "lib/oauth2/index.js~OAuth2.refreshToken", - "method" - ], - [ - "lib/oauth2/index.js~oauth2.requesttoken", - "class/lib/oauth2/index.js~OAuth2.html#static-method-requestToken", - "lib/oauth2/index.js~OAuth2.requestToken", - "method" - ], - [ - "lib/oauth2/index.js~oauth2.verify", - "class/lib/oauth2/index.js~OAuth2.html#static-method-verify", - "lib/oauth2/index.js~OAuth2.verify", - "method" - ], - [ - "lib/template/index.js", - "file/lib/template/index.js.html", - "lib/template/index.js", - "file" - ], - [ - "lib/template/index.js~template.templatebulkinviteparams", - "typedef/index.html#static-typedef-TemplateBulkInviteParams", - "lib/template/index.js~Template.TemplateBulkInviteParams", - "typedef" - ], - [ - "lib/template/index.js~template.templatebulkinviteresponse", - "typedef/index.html#static-typedef-TemplateBulkInviteResponse", - "lib/template/index.js~Template.TemplateBulkInviteResponse", - "typedef" - ], - [ - "lib/template/index.js~template.templatebulkinvitesettings", - "typedef/index.html#static-typedef-TemplateBulkInviteSettings", - "lib/template/index.js~Template.TemplateBulkInviteSettings", - "typedef" - ], - [ - "lib/template/index.js~template.templatecreateoptions", - "typedef/index.html#static-typedef-TemplateCreateOptions", - "lib/template/index.js~Template.TemplateCreateOptions", - "typedef" - ], - [ - "lib/template/index.js~template.templatecreateparams", - "typedef/index.html#static-typedef-TemplateCreateParams", - "lib/template/index.js~Template.TemplateCreateParams", - "typedef" - ], - [ - "lib/template/index.js~template.templatecreateresponse", - "typedef/index.html#static-typedef-TemplateCreateResponse", - "lib/template/index.js~Template.TemplateCreateResponse", - "typedef" - ], - [ - "lib/template/index.js~template.templateduplicateparams", - "typedef/index.html#static-typedef-TemplateDuplicateParams", - "lib/template/index.js~Template.TemplateDuplicateParams", - "typedef" - ], - [ - "lib/template/index.js~template.templateduplicateresponse", - "typedef/index.html#static-typedef-TemplateDuplicateResponse", - "lib/template/index.js~Template.TemplateDuplicateResponse", - "typedef" - ], - [ - "lib/template/index.js~template.templategetroutingdetailsparams", - "typedef/index.html#static-typedef-TemplateGetRoutingDetailsParams", - "lib/template/index.js~Template.TemplateGetRoutingDetailsParams", - "typedef" - ], - [ - "lib/template/index.js~template.templategetroutingdetailsresponse", - "typedef/index.html#static-typedef-TemplateGetRoutingDetailsResponse", - "lib/template/index.js~Template.TemplateGetRoutingDetailsResponse", - "typedef" - ], - [ - "lib/template/index.js~template.templateinviteparams", - "typedef/index.html#static-typedef-TemplateInviteParams", - "lib/template/index.js~Template.TemplateInviteParams", - "typedef" - ], - [ - "lib/template/index.js~template.templateinviteresponse", - "typedef/index.html#static-typedef-TemplateInviteResponse", - "lib/template/index.js~Template.TemplateInviteResponse", - "typedef" - ], - [ - "lib/template/index.js~template.templateremoveparams", - "typedef/index.html#static-typedef-TemplateRemoveParams", - "lib/template/index.js~Template.TemplateRemoveParams", - "typedef" - ], - [ - "lib/template/index.js~template.templateremoveresponse", - "typedef/index.html#static-typedef-TemplateRemoveResponse", - "lib/template/index.js~Template.TemplateRemoveResponse", - "typedef" - ], - [ - "lib/template/index.js~template.templateroutingdetailsccstep", - "typedef/index.html#static-typedef-TemplateRoutingDetailsCCStep", - "lib/template/index.js~Template.TemplateRoutingDetailsCCStep", - "typedef" - ], - [ - "lib/template/index.js~template.templateroutingdetailsitem", - "typedef/index.html#static-typedef-TemplateRoutingDetailsItem", - "lib/template/index.js~Template.TemplateRoutingDetailsItem", - "typedef" - ], - [ - "lib/template/index.js~template.templateupdateroutingdetailsitem", - "typedef/index.html#static-typedef-TemplateUpdateRoutingDetailsItem", - "lib/template/index.js~Template.TemplateUpdateRoutingDetailsItem", - "typedef" - ], - [ - "lib/template/index.js~template.templateupdateroutingdetailsparams", - "typedef/index.html#static-typedef-TemplateUpdateRoutingDetailsParams", - "lib/template/index.js~Template.TemplateUpdateRoutingDetailsParams", - "typedef" - ], - [ - "lib/template/index.js~template.templateupdateroutingdetailsresponse", - "typedef/index.html#static-typedef-TemplateUpdateRoutingDetailsResponse", - "lib/template/index.js~Template.TemplateUpdateRoutingDetailsResponse", - "typedef" - ], - [ - "lib/template/index.js~template.templateupdateroutingdetailssettings", - "typedef/index.html#static-typedef-TemplateUpdateRoutingDetailsSettings", - "lib/template/index.js~Template.TemplateUpdateRoutingDetailsSettings", - "typedef" - ], - [ - "lib/template/index.js~template.bulkinvite", - "class/lib/template/index.js~Template.html#static-method-bulkInvite", - "lib/template/index.js~Template.bulkInvite", - "method" - ], - [ - "lib/template/index.js~template.create", - "class/lib/template/index.js~Template.html#static-method-create", - "lib/template/index.js~Template.create", - "method" - ], - [ - "lib/template/index.js~template.duplicate", - "class/lib/template/index.js~Template.html#static-method-duplicate", - "lib/template/index.js~Template.duplicate", - "method" - ], - [ - "lib/template/index.js~template.getroutingdetails", - "class/lib/template/index.js~Template.html#static-method-getRoutingDetails", - "lib/template/index.js~Template.getRoutingDetails", - "method" - ], - [ - "lib/template/index.js~template.invite", - "class/lib/template/index.js~Template.html#static-method-invite", - "lib/template/index.js~Template.invite", - "method" - ], - [ - "lib/template/index.js~template.remove", - "class/lib/template/index.js~Template.html#static-method-remove", - "lib/template/index.js~Template.remove", - "method" - ], - [ - "lib/template/index.js~template.updateroutingdetails", - "class/lib/template/index.js~Template.html#static-method-updateRoutingDetails", - "lib/template/index.js~Template.updateRoutingDetails", - "method" - ], - [ - "lib/template/index.js~templateupdatesigningroleparams", - "typedef/index.html#static-typedef-TemplateUpdateSigningRoleParams", - "lib/template/index.js~TemplateUpdateSigningRoleParams", - "typedef" - ], - [ - "lib/template/index.js~templateupdatesigningroleresponse", - "typedef/index.html#static-typedef-TemplateUpdateSigningRoleResponse", - "lib/template/index.js~TemplateUpdateSigningRoleResponse", - "typedef" - ], - [ - "lib/user/index.js", - "file/lib/user/index.js.html", - "lib/user/index.js", - "file" - ], - [ - "lib/user/index.js~user.createuseroptions", - "typedef/index.html#static-typedef-CreateUserOptions", - "lib/user/index.js~User.CreateUserOptions", - "typedef" - ], - [ - "lib/user/index.js~user.usercreateparams", - "typedef/index.html#static-typedef-UserCreateParams", - "lib/user/index.js~User.UserCreateParams", - "typedef" - ], - [ - "lib/user/index.js~user.usercreateresponse", - "typedef/index.html#static-typedef-UserCreateResponse", - "lib/user/index.js~User.UserCreateResponse", - "typedef" - ], - [ - "lib/user/index.js~user.usergetparams", - "typedef/index.html#static-typedef-UserGetParams", - "lib/user/index.js~User.UserGetParams", - "typedef" - ], - [ - "lib/user/index.js~user.usergetresponse", - "typedef/index.html#static-typedef-UserGetResponse", - "lib/user/index.js~User.UserGetResponse", - "typedef" - ], - [ - "lib/user/index.js~user.userverifyemailparams", - "typedef/index.html#static-typedef-UserVerifyEmailParams", - "lib/user/index.js~User.UserVerifyEmailParams", - "typedef" - ], - [ - "lib/user/index.js~user.userverifyemailresponse", - "typedef/index.html#static-typedef-UserVerifyEmailResponse", - "lib/user/index.js~User.UserVerifyEmailResponse", - "typedef" - ], - [ - "lib/user/index.js~user.create", - "class/lib/user/index.js~User.html#static-method-create", - "lib/user/index.js~User.create", - "method" - ], - [ - "lib/user/index.js~user.retrieve", - "class/lib/user/index.js~User.html#static-method-retrieve", - "lib/user/index.js~User.retrieve", - "method" - ], - [ - "lib/user/index.js~user.verifyemail", - "class/lib/user/index.js~User.html#static-method-verifyEmail", - "lib/user/index.js~User.verifyEmail", - "method" - ], - [ - "", - "test-file/test/link.test.js.html#lineNumber10", - "link", - "test" - ], - [ - "", - "test-file/test/link.test.js.html#lineNumber12", - "link .create()", - "test" - ], - [ - "", - "test-file/test/link.test.js.html#lineNumber13", - "link .create() should create a new signing link and return two urls", - "test" - ], - [ - "", - "test-file/test/oauth.test.js.html#lineNumber10", - "oauth2", - "test" - ], - [ - "", - "test-file/test/oauth.test.js.html#lineNumber12", - "oauth2 .requestToken()", - "test" - ], - [ - "", - "test-file/test/oauth.test.js.html#lineNumber13", - "oauth2 .requestToken() should return an access token", - "test" - ], - [ - "", - "test-file/test/oauth.test.js.html#lineNumber25", - "oauth2 .verify()", - "test" - ], - [ - "", - "test-file/test/oauth.test.js.html#lineNumber26", - "oauth2 .verify() should return a verified access token", - "test" - ], - [ - "", - "test-file/test/template.test.js.html#lineNumber10", - "template", - "test" - ], - [ - "", - "test-file/test/template.test.js.html#lineNumber27", - "template should create a template by flattening an existing document and return the template id", - "test" - ], - [ - "", - "test-file/test/template.test.js.html#lineNumber13", - "template should create a template by flattening an existing document and return the template id", - "test" - ], - [ - "test/document.test.js", - "test-file/test/document.test.js.html", - "test/document.test.js", - "testFile" - ], - [ - "test/embedded.test.js", - "test-file/test/embedded.test.js.html", - "test/embedded.test.js", - "testFile" - ], - [ - "test/enumeration.test.js", - "test-file/test/enumeration.test.js.html", - "test/enumeration.test.js", - "testFile" - ], - [ - "test/folder.test.js", - "test-file/test/folder.test.js.html", - "test/folder.test.js", - "testFile" - ], - [ - "test/link.test.js", - "test-file/test/link.test.js.html", - "test/link.test.js", - "testFile" - ], - [ - "test/oauth.test.js", - "test-file/test/oauth.test.js.html", - "test/oauth.test.js", - "testFile" - ], - [ - "test/template.test.js", - "test-file/test/template.test.js.html", - "test/template.test.js", - "testFile" - ], - [ - "test/user.test.js", - "test-file/test/user.test.js.html", - "test/user.test.js", - "testFile" - ], - [ - "test/webhook.test.js", - "test-file/test/webhook.test.js.html", - "test/webhook.test.js", - "testFile" - ], - [ - "", - "test-file/test/user.test.js.html#lineNumber20", - "user", - "test" - ], - [ - "", - "test-file/test/user.test.js.html#lineNumber22", - "user .create()", - "test" - ], - [ - "", - "test-file/test/user.test.js.html#lineNumber23", - "user .create() should create a new user account", - "test" - ], - [ - "", - "test-file/test/user.test.js.html#lineNumber40", - "user .retrieve()", - "test" - ], - [ - "", - "test-file/test/user.test.js.html#lineNumber41", - "user .retrieve() should retrieve user resource", - "test" - ], - [ - "", - "test-file/test/webhook.test.js.html#lineNumber10", - "webhook", - "test" - ], - [ - "", - "test-file/test/webhook.test.js.html#lineNumber23", - "webhook .create()", - "test" - ], - [ - "", - "test-file/test/webhook.test.js.html#lineNumber24", - "webhook .create() should create a new webhook and return an id", - "test" - ], - [ - "", - "test-file/test/webhook.test.js.html#lineNumber12", - "webhook .list()", - "test" - ], - [ - "", - "test-file/test/webhook.test.js.html#lineNumber13", - "webhook .list() should return a list of webhooks", - "test" - ] -] \ No newline at end of file diff --git a/docs/script/test-summary.js b/docs/script/test-summary.js deleted file mode 100644 index 2abad3bc..00000000 --- a/docs/script/test-summary.js +++ /dev/null @@ -1,54 +0,0 @@ -(function(){ - function toggle(ev) { - var button = ev.target; - var parent = ev.target.parentElement; - while(parent) { - if (parent.tagName === 'TR' && parent.classList.contains('test-interface')) break; - parent = parent.parentElement; - } - - if (!parent) return; - - var direction; - if (button.classList.contains('opened')) { - button.classList.remove('opened'); - button.classList.add('closed'); - direction = 'closed'; - } else { - button.classList.remove('closed'); - button.classList.add('opened'); - direction = 'opened'; - } - - var targetDepth = parseInt(parent.dataset.testDepth, 10) + 1; - var nextElement = parent.nextElementSibling; - while (nextElement) { - var depth = parseInt(nextElement.dataset.testDepth, 10); - if (depth >= targetDepth) { - if (direction === 'opened') { - if (depth === targetDepth) nextElement.style.display = ''; - } else if (direction === 'closed') { - nextElement.style.display = 'none'; - var innerButton = nextElement.querySelector('.toggle'); - if (innerButton && innerButton.classList.contains('opened')) { - innerButton.classList.remove('opened'); - innerButton.classList.add('closed'); - } - } - } else { - break; - } - nextElement = nextElement.nextElementSibling; - } - } - - var buttons = document.querySelectorAll('.test-summary tr.test-interface .toggle'); - for (var i = 0; i < buttons.length; i++) { - buttons[i].addEventListener('click', toggle); - } - - var topDescribes = document.querySelectorAll('.test-summary tr[data-test-depth="0"]'); - for (var i = 0; i < topDescribes.length; i++) { - topDescribes[i].style.display = ''; - } -})(); diff --git a/docs/source.html b/docs/source.html deleted file mode 100644 index 2868c260..00000000 --- a/docs/source.html +++ /dev/null @@ -1,281 +0,0 @@ - - - - - - Source | SignNow API client - - - - - - - -
    - - - Reference - Source - Test - -
    - - - -

    Source 58/61

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    FileIdentifierDocumentSizeLinesUpdated
    lib/document-group-template/index.jsDocumentGroupTemplate57 %4/710661 byte3032021-04-05 11:20:20 (UTC)
    lib/document-group/index.jsDocumentGroup100 %10/1013319 byte4082021-04-05 11:20:20 (UTC)
    lib/document/index.jsDocument100 %16/1640279 byte11262021-04-05 11:20:20 (UTC)
    lib/embedded/index.jsEmbedded100 %4/45330 byte1622021-04-05 11:20:20 (UTC)
    lib/index.jsinit100 %1/12173 byte802021-04-05 11:20:20 (UTC)
    lib/link/index.jsLink100 %3/32516 byte842021-04-05 11:20:20 (UTC)
    lib/oauth2/index.jsOAuth2100 %4/44406 byte1342021-04-05 11:20:20 (UTC)
    lib/template/index.jsTemplate100 %12/1218055 byte6012021-04-05 11:20:20 (UTC)
    lib/user/index.jsUser100 %4/45636 byte1852021-04-05 11:20:20 (UTC)
    -
    - - - - - - - - - - - - diff --git a/docs/test-file/test/document.test.js.html b/docs/test-file/test/document.test.js.html deleted file mode 100644 index adbf582a..00000000 --- a/docs/test-file/test/document.test.js.html +++ /dev/null @@ -1,374 +0,0 @@ - - - - - - test/document.test.js | SignNow API client - - - - - - - -
    - - - Reference - Source - Test - -
    - - - -

    test/document.test.js

    -
    'use strict';
    -
    -const { settings } = require('./test.settings');
    -const signnow = require('../lib/signnow')({
    -  credentials: settings.credentials,
    -  production: settings.production, // (false by defult)
    -});
    -
    -(function() {
    -
    -  describe('document', () => {
    -
    -    describe('.list()', () => {
    -      it('should return a list of documents', done => {
    -        signnow.document.list({ token: settings.token }, (err, res) => {
    -          if (err) { throw err[0].message; }
    -          res.should.be.a('array');
    -          res[0].should.have.property('document_name');
    -          done();
    -        });
    -      }).timeout(10000);
    -    });
    -
    -    describe('.view()', () => {
    -      it('should return a document resource', done => {
    -        signnow.document.view({
    -          token: settings.token,
    -          id: settings.documentid,
    -        }, (err, res) => {
    -          if (err) { throw err[0].message; }
    -          res.should.have.property('document_name');
    -          done();
    -        });
    -      });
    -    });
    -
    -    describe('.download()', () => {
    -      it('should download a collapsed document', done => {
    -        signnow.document.download({
    -          token: settings.token,
    -          id: settings.documentid,
    -        }, (err, res) => {
    -          if (err) { throw err[0].message; }
    -          res.should.exist();
    -          done();
    -        });
    -      });
    -    });
    -
    -    describe('.update()', () => {
    -      it('should update a document and return the document id', done => {
    -        const fields = {
    -          texts: [
    -            {
    -              size: 8,
    -              x: 61,
    -              y: 72,
    -              page_number: 0,
    -              font: 'Arial',
    -              data: 'sample text',
    -              line_height: 9.075,
    -            },
    -          ],
    -        };
    -
    -        signnow.document.update({
    -          token: settings.token,
    -          id: settings.documentid,
    -          fields,
    -        }, (err, res) => {
    -          if (err) { throw err[0].message; }
    -          res.should.have.property('id');
    -          done();
    -        });
    -      });
    -    });
    -
    -    describe.skip('.invite()', () => {
    -      it('should send an invite to sign a document', done => {
    -        signnow.document.invite({
    -          token: settings.token,
    -          id: settings.documentid,
    -          from: settings.email,
    -          to: settings.testemail,
    -        }, (err, res) => {
    -          if (err) { throw err[0].message; }
    -          res.should.have.property('result', 'success');
    -          done();
    -        });
    -      });
    -    });
    -
    -    describe('.cancelInvite()', () => {
    -      it('should cancel all invites to a document', done => {
    -        signnow.document.cancelInvite({
    -          token: settings.token,
    -          id: settings.documentid,
    -        }, (err, res) => {
    -          if (err) { throw err[0].message; }
    -          res.should.have.property('status', 'success');
    -          done();
    -        });
    -      });
    -    });
    -
    -    describe('.share()', () => {
    -      it('should return a link to download the document', done => {
    -        signnow.document.share({
    -          token: settings.token,
    -          id: settings.documentid,
    -        }, (err, res) => {
    -          if (err) { throw err[0].message; }
    -          res.should.have.property('link');
    -          done();
    -        });
    -      });
    -    });
    -
    -    describe.skip('.merge()', () => {
    -      it('should merge two documents and return the new document name', done => {
    -        signnow.document.merge({
    -          token: settings.token,
    -          name: 'Mocha Unit Test',
    -          document_ids: [
    -            'xxx',
    -            'xxx',
    -          ],
    -        }, (err, res) => {
    -          if (err) { throw err[0].message; }
    -          res.should.have.property('name');
    -          res.should.have.property('document_ids');
    -          done();
    -        });
    -      });
    -    });
    -
    -    describe.skip('.create()', () => {
    -      it('should upload a file and create a new document', done => {
    -        signnow.document.create({
    -          token: settings.token,
    -          filepath: `${__dirname}/test.doc`,
    -        }, (err, res) => {
    -          if (err) { return done(err[0].message); }
    -          res.should.have.property('id');
    -          done();
    -        });
    -      }).timeout(20000);
    -    });
    -
    -    describe.skip('.extractfields()', () => {
    -      it('should upload a file containing SignNow field tags', done => {
    -        signnow.document.extractfields({
    -          token: settings.token,
    -          filepath: `${__dirname}/test.doc`,
    -        }, (err, res) => {
    -          if (err) { return done(err[0].message); }
    -          res.should.have.property('id');
    -          done();
    -        });
    -      }).timeout(20000);
    -    });
    -
    -    describe.skip('.history()', () => {
    -      it('should return the history of a document', done => {
    -        signnow.document.history({
    -          token: settings.token,
    -          id: settings.documentid,
    -        }, (err, res) => {
    -          if (err) { return done(err[0].message); }
    -          res.should.be.a('array');
    -          res[0].should.have.property('event');
    -          done();
    -        });
    -      });
    -    });
    -
    -  });
    -
    -})();
    -
    - -
    - - - - - - - - - - - - diff --git a/docs/test-file/test/embedded.test.js.html b/docs/test-file/test/embedded.test.js.html deleted file mode 100644 index 57c57032..00000000 --- a/docs/test-file/test/embedded.test.js.html +++ /dev/null @@ -1,255 +0,0 @@ - - - - - - test/embedded.test.js | SignNow API client - - - - - - - -
    - - - Reference - Source - Test - -
    - - - -

    test/embedded.test.js

    -
    'use strict';
    -const { settings } = require('./test.settings');
    -const signnow = require('../lib')({
    -  credentials: settings.credentials,
    -  production: settings.production, // (false by default)
    -});
    -
    -(function() {
    -
    -  describe('embedded', () => {
    -
    -    describe.skip('.createInvite()', () => {
    -      it('should create a new embedded signing invites for a document without sending emails', done => {
    -        signnow.embedded.createInvite({
    -          token: settings.token,
    -          document_id: settings.documentid,
    -          invites: [settings.documentInvite],
    -        }, (err, res) => {
    -          if (err) { throw err[0].message; }
    -          res.should.be.a('object');
    -          res.should.have.property('data');
    -          done();
    -        });
    -      });
    -    });
    -
    -    describe.skip('.generateInviteLink()', () => {
    -      it('should create a link for the embedded invite.', done => {
    -        signnow.embedded.generateInviteLink({
    -          token: settings.token,
    -          document_id: settings.documentid,
    -          field_invite_unique_id: settings.fieldInviteUniqueId,
    -          link_expiration: 15,
    -          auth_method: 'password',
    -        }, (err, res) => {
    -          if (err) { throw err[0].message; }
    -          res.should.be.a('object');
    -          res.should.have.property('data');
    -          done();
    -        });
    -      });
    -    });
    -
    -    describe.skip('.cancelInvites()', () => {
    -      it('should delete embedded invites for a document.', done => {
    -        signnow.embedded.cancelInvites({
    -          token: settings.token,
    -          document_id: settings.documentid,
    -        }, (err, res) => {
    -          if (err) { throw err[0].message; }
    -          res.should.be.a('object');
    -          res.should.have.property('status');
    -          done();
    -        });
    -      });
    -    });
    -
    -  });
    -
    -})();
    -
    - -
    - - - - - - - - - - - - diff --git a/docs/test-file/test/enumeration.test.js.html b/docs/test-file/test/enumeration.test.js.html deleted file mode 100644 index 4aeb73c0..00000000 --- a/docs/test-file/test/enumeration.test.js.html +++ /dev/null @@ -1,275 +0,0 @@ - - - - - - test/enumeration.test.js | SignNow API client - - - - - - - -
    - - - Reference - Source - Test - -
    - - - -

    test/enumeration.test.js

    -
    'use strict';
    -const { settings } = require('./test.settings');
    -const signnow = require('../lib')({
    -  credentials: settings.credentials,
    -  production: settings.production, // (false by defult)
    -});
    -
    -(function() {
    -
    -  describe('enumerations', () => {
    -
    -    describe('.addField()', () => {
    -      it('should add an enumeration field(drop down) to a document and return the document id', done => {
    -        signnow.enumerations.addField({
    -          token: settings.token,
    -          document_id: settings.documentid,
    -          x: 150,
    -          y: 200,
    -          width: 200,
    -          height: 50,
    -          page_number: 0,
    -          role: 'buyer',
    -          required: true,
    -          label: 'Clothing Brand',
    -        }, (err, res) => {
    -          if (err) { throw err[0].message; }
    -          res.should.have.property('id');
    -          done();
    -        });
    -      });
    -    });
    -
    -    describe('.addOptions()', () => {
    -      let fieldId = '';
    -      before(done => {
    -        signnow.enumerations.addField({
    -          token: settings.token,
    -          document_id: settings.documentid,
    -          x: 150,
    -          y: 200,
    -          width: 200,
    -          height: 50,
    -          page_number: 0,
    -          role: 'buyer',
    -          required: true,
    -          label: 'Clothing Brand',
    -        }, (err, res) => {
    -          if (err) { throw err[0].message; }
    -          fieldId = res.id;
    -          done();
    -        });
    -      });
    -      it('should add enumeration options to the field we just created and return an array', done => {
    -        signnow.enumerations.addOptions({
    -          token: settings.token,
    -          enumeration_options: [
    -            {
    -              enumeration_id: fieldId,
    -              data: 'Active',
    -            },
    -            {
    -              enumeration_id: fieldId,
    -              data: 'Old Navy',
    -            },
    -            {
    -              enumeration_id: fieldId,
    -              data: 'Volcom',
    -            },
    -          ],
    -        }, (err, res) => {
    -          if (err) { throw err[0].message; }
    -          res.should.be.a('array');
    -          done();
    -        });
    -      });
    -    });
    -
    -  });
    -
    -})();
    -
    - -
    - - - - - - - - - - - - diff --git a/docs/test-file/test/folder.test.js.html b/docs/test-file/test/folder.test.js.html deleted file mode 100644 index 3bac8758..00000000 --- a/docs/test-file/test/folder.test.js.html +++ /dev/null @@ -1,240 +0,0 @@ - - - - - - test/folder.test.js | SignNow API client - - - - - - - -
    - - - Reference - Source - Test - -
    - - - -

    test/folder.test.js

    -
    'use strict';
    -const { settings } = require('./test.settings');
    -const signnow = require('../lib')({
    -  credentials: settings.credentials,
    -  production: settings.production, // (false by defult)
    -});
    -
    -(function() {
    -
    -  describe('folder', () => {
    -
    -    describe('.list()', () => {
    -      it('should return a list of folders', done => {
    -        signnow.folder.list({ token: settings.token }, (err, res) => {
    -          if (err) { throw err[0].message; }
    -          res.should.be.a('object');
    -          res.should.have.property('folders');
    -          done();
    -        });
    -      });
    -    });
    -
    -    describe('.documents()', () => {
    -      it('should return all documents inside a folder', done => {
    -        signnow.folder.documents({
    -          token: settings.token,
    -          id: settings.folderid,
    -          filter: [
    -            { 'signing-status': 'pending' },
    -            { 'signing-status': 'waiting-for-me' },
    -          ],
    -          sort: { 'document-name': 'asc' },
    -        }, (err, res) => {
    -          if (err) { throw err[0].message; }
    -          res.should.be.a('object');
    -          res.should.have.property('documents');
    -          done();
    -        });
    -      });
    -    });
    -
    -
    -  });
    -
    -})();
    -
    - -
    - - - - - - - - - - - - diff --git a/docs/test-file/test/link.test.js.html b/docs/test-file/test/link.test.js.html deleted file mode 100644 index aeea028b..00000000 --- a/docs/test-file/test/link.test.js.html +++ /dev/null @@ -1,221 +0,0 @@ - - - - - - test/link.test.js | SignNow API client - - - - - - - -
    - - - Reference - Source - Test - -
    - - - -

    test/link.test.js

    -
    'use strict';
    -const { settings } = require('./test.settings');
    -const signnow = require('../lib')({
    -  credentials: settings.credentials,
    -  production: settings.production, // (false by defult)
    -});
    -
    -(function() {
    -
    -  describe('link', () => {
    -
    -    describe('.create()', () => {
    -      it('should create a new signing link and return two urls', done => {
    -        signnow.link.create({ document_id: settings.documentid }, (err, res) => {
    -          if (err) { throw err[0].message; }
    -          res.should.be.a('object');
    -          res.should.have.property('url');
    -          done();
    -        });
    -      });
    -    });
    -
    -
    -  });
    -
    -})();
    -
    - -
    - - - - - - - - - - - - diff --git a/docs/test-file/test/oauth.test.js.html b/docs/test-file/test/oauth.test.js.html deleted file mode 100644 index 272e0d1c..00000000 --- a/docs/test-file/test/oauth.test.js.html +++ /dev/null @@ -1,232 +0,0 @@ - - - - - - test/oauth.test.js | SignNow API client - - - - - - - -
    - - - Reference - Source - Test - -
    - - - -

    test/oauth.test.js

    -
    'use strict';
    -const { settings } = require('./test.settings');
    -const signnow = require('../lib')({
    -  credentials: settings.credentials,
    -  production: settings.production, // (false by defult)
    -});
    -
    -(function() {
    -
    -  describe('oauth2', () => {
    -
    -    describe('.requestToken()', () => {
    -      it('should return an access token', done => {
    -        signnow.oauth2.requestToken({
    -          username: settings.username,
    -          password: settings.password,
    -        }, (err, res) => {
    -          if (err) { throw err[0].message; }
    -          res.should.have.property('access_token');
    -          done();
    -        });
    -      });
    -    });
    -
    -    describe('.verify()', () => {
    -      it('should return a verified access token', done => {
    -        signnow.oauth2.verify({ token: settings.token }, (err, res) => {
    -          if (err) { throw err[0].message; }
    -          res.should.have.property('access_token');
    -          done();
    -        });
    -      });
    -    });
    -
    -  });
    -
    -})();
    -
    - -
    - - - - - - - - - - - - diff --git a/docs/test-file/test/template.test.js.html b/docs/test-file/test/template.test.js.html deleted file mode 100644 index 3d60ae03..00000000 --- a/docs/test-file/test/template.test.js.html +++ /dev/null @@ -1,237 +0,0 @@ - - - - - - test/template.test.js | SignNow API client - - - - - - - -
    - - - Reference - Source - Test - -
    - - - -

    test/template.test.js

    -
    'use strict';
    -const { settings } = require('./test.settings');
    -const signnow = require('../lib')({
    -  credentials: settings.credentials,
    -  production: settings.production, // (false by defult)
    -});
    -
    -(function() {
    -
    -  describe('template', () => {
    -
    -    describe.skip('.create()', () => {
    -      it('should create a template by flattening an existing document and return the template id', done => {
    -        signnow.template.create({
    -          token: settings.token,
    -          document_id: settings.documentid,
    -          document_name: 'Mocha Unit Test Template',
    -        }, (err, res) => {
    -          if (err) { throw err[0].message; }
    -          res.should.have.property('id');
    -          done();
    -        });
    -      });
    -    });
    -
    -    describe.skip('.create()', () => {
    -      it('should create a template by flattening an existing document and return the template id', done => {
    -        signnow.template.create({
    -          token: settings.token,
    -          document_id: settings.templateid,
    -          document_name: 'Mocha Unit Test Duplicate Template',
    -        }, (err, res) => {
    -          if (err) { throw err[0].message; }
    -          res.should.have.property('id');
    -          done();
    -        });
    -      });
    -    });
    -
    -  });
    -
    -})();
    -
    - -
    - - - - - - - - - - - - diff --git a/docs/test-file/test/user.test.js.html b/docs/test-file/test/user.test.js.html deleted file mode 100644 index 68720b50..00000000 --- a/docs/test-file/test/user.test.js.html +++ /dev/null @@ -1,247 +0,0 @@ - - - - - - test/user.test.js | SignNow API client - - - - - - - -
    - - - Reference - Source - Test - -
    - - - -

    test/user.test.js

    -
    'use strict';
    -const { settings } = require('./test.settings');
    -const signnow = require('../lib/signnow')({
    -  credentials: settings.credentials,
    -  production: settings.production, // (false by defult)
    -});
    -
    -(function() {
    -
    -  // generate random string
    -  function randString (x) {
    -    let s = '';
    -    while (s.length < x && x > 0) {
    -      const r = Math.random();
    -      s += (r < 0.1 ? Math.floor(r * 100) : String.fromCharCode(Math.floor(r * 26) + (r > 0.5 ? 97 : 65)));
    -    }
    -    return s;
    -  }
    -
    -  describe('user', () => {
    -
    -    describe('.create()', () => {
    -      it('should create a new user account', done => {
    -        const userObj = {
    -          first_name: `Unit${randString(4)}`,
    -          last_name: `Test${randString(4)}`,
    -          email: `unit.test${randString(4)}@domain.com`,
    -          password: 'MacBookPr0',
    -        };
    -
    -        // console.log(userObj);
    -        signnow.user.create(userObj, (err, res) => {
    -          if (err) { throw err[0].message; }
    -          res.should.have.property('id');
    -          done();
    -        });
    -      });
    -    });
    -
    -    describe('.retrieve()', () => {
    -      it('should retrieve user resource', done => {
    -        signnow.user.retrieve({ token: settings.token }, (err, res) => {
    -          if (err) { throw err[0].message; }
    -          res.should.have.property('first_name');
    -          done();
    -        });
    -      });
    -    });
    -
    -  });
    -
    -})();
    -
    - -
    - - - - - - - - - - - - diff --git a/docs/test-file/test/webhook.test.js.html b/docs/test-file/test/webhook.test.js.html deleted file mode 100644 index 87b32b60..00000000 --- a/docs/test-file/test/webhook.test.js.html +++ /dev/null @@ -1,236 +0,0 @@ - - - - - - test/webhook.test.js | SignNow API client - - - - - - - -
    - - - Reference - Source - Test - -
    - - - -

    test/webhook.test.js

    -
    'use strict';
    -const { settings } = require('./test.settings');
    -const signnow = require('../lib')({
    -  credentials: settings.credentials,
    -  production: settings.production, // (false by defult)
    -});
    -
    -(function() {
    -
    -  describe('webhook', () => {
    -
    -    describe('.list()', () => {
    -      it('should return a list of webhooks', done => {
    -        signnow.webhook.list({ token: settings.token }, (err, res) => {
    -          if (err) { throw err[0].message; }
    -          res.should.be.a('object');
    -          res.should.have.property('subscriptions');
    -          done();
    -        });
    -      });
    -    });
    -
    -    describe('.create()', () => {
    -      it('should create a new webhook and return an id', done => {
    -        signnow.webhook.create({
    -          token: settings.token,
    -          event: 'document.create',
    -          callback_url: 'http://requestb.in/qwmphiqw',
    -        }, (err, res) => {
    -          if (err) { throw err[0].message; }
    -          res.should.be.a('object');
    -          res.should.have.property('id');
    -          done();
    -        });
    -      });
    -    });
    -
    -
    -  });
    -
    -})();
    -
    - -
    - - - - - - - - - - - - diff --git a/docs/test.html b/docs/test.html deleted file mode 100644 index 8bff0e54..00000000 --- a/docs/test.html +++ /dev/null @@ -1,502 +0,0 @@ - - - - - - Test | SignNow API client - - - - - - - -
    - - - Reference - Source - Test - -
    - - - -

    Test

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    DescriptionIdentifier
    -
    - - - - - - - - - - - - diff --git a/docs/typedef/index.html b/docs/typedef/index.html deleted file mode 100644 index 5220027f..00000000 --- a/docs/typedef/index.html +++ /dev/null @@ -1,14794 +0,0 @@ - - - - - - Typedef | SignNow API client - - - - - - - -
    - - - Reference - Source - Test - -
    - - - -

    Typedef

    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Static Public Summary
    - public - - - - - -
    -

    - - - - AccessTokenGetParams: Object -

    -
    -
    - - -

    Request access token payload

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Request access token response data

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Refresh access token payload

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Refresh access token response data

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Verify access token payload

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Verify access token response data

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - - ApiError: Object -

    -
    -
    - - -

    Api error object

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - - ApiErrorResponse: ApiError[] | ApiError | Error | string -

    -
    -
    - - -

    Api error response

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - - AttachmentField: Object -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - - CalculatedField: Object -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - - -
    - - -

    Cancel freeform invite payload

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Cancel freeform invite response data

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - - CheckField: Object -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - - CreateUserOptions: Object -

    -
    -
    - - -

    Create User optional settings

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - - DocumentCreateParams: Object -

    -
    -
    - - -

    Create document payload

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Create document response data

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Download document optional settings

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Document download payload

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - - DocumentDownloadResponse: Buffer -

    -
    -
    - - -

    Document binary data

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - - DocumentEvent: Object -

    -
    -
    - - -

    Document action log item

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Upload document with field extract payload

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Upload document with field extract response data

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Cancel document field invite payload

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Cancel document field invite response data

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Create document field invite response data

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - - DocumentFields: Object -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - - -
    - - -

    Create document free form invite response data

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Cancel Document Group Invite payload

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Cancel Document Group Invite response data

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Create document group payload

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Create document group response data

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Document Group download payload

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - - DocumentGroupDownloadResponse: Buffer -

    -
    -
    - - -

    Document Group binary data

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Document Group invite action configurations

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Document Group signer's authentication with password config

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Document Group signer's authentication with phone call config

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Document Group signer's authentication with phone SMS config

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Document Group invite completion email configuration

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Document Group invite email configurations

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Create Document Group invite payload

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Create Document Group invite response data

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Document Group invite settings

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Document Group invite step configurations

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - - DocumentGroupItem: Object -

    -
    -
    - - -

    Details of single Document in group

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Create Document Group Template payload

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Create Document Group Template response data

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Document Group Template invite action congfigurations

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Document Group Template invite email congfigurations

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Create Document Group Template invite payload

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Create Document Group Template invite response data

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Document Group Template invite step congfigurations

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Details of single template in group

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Document Group Template invite congfigurations

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Document Group Template view payload

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Document Group Template view response

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Document Group view payload

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Document Group view response data

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - - DocumentHistoryParams: Object -

    -
    -
    - - -

    Document history payload

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Document history response data

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - - DocumentInviteOptions: Object -

    -
    -
    - - -

    Document invite optional settings

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - - DocumentInviteParams: Object -

    -
    -
    - - -

    Create document invite payload

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Create document invite response data

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Document invite settings

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - - DocumentListItem: Object -

    -
    -
    - - -

    Document list response item

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - - DocumentListParams: Object -

    -
    -
    - - -

    Payload to receive user's document list

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    User's Document list response

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - - DocumentMergeOptions: Object -

    -
    -
    - - -

    Merge documents optional settings

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - - DocumentMergeParams: Object -

    -
    -
    - - -

    Merge documents payload

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - - DocumentMergeResponse: Object -

    -
    -
    - - -

    Merge documents response data

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - - DocumentRemoveOptions: Object -

    -
    -
    - - -

    Document remove optional settings

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - - DocumentRemoveParams: Object -

    -
    -
    - - -

    Remove document payload

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Remove document response data

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - - DocumentShareParams: Object -

    -
    -
    - - -

    Document share payload

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - - DocumentShareResponse: Object -

    -
    -
    - - -

    Document share response data

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Get Document Signers optional settings

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - - DocumentSignersParams: Object -

    -
    -
    - - -

    Get Document Signers payload

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Get Document Signers response data

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - - DocumentThumbnails: Object -

    -
    -
    - - -

    Document thumbnail urls with different sizes (small, medium, large)

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - - DocumentUpdateParams: Object -

    -
    -
    - - -

    Update document payload

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Update document response data

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - - DocumentViewParams: Object -

    -
    -
    - - -

    Document view payload

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - - DocumentViewResponse: Object -

    -
    -
    - - -

    Document view response of specific document

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Delete embedded invites for a document payload

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Generate a link for the embedded invite response data

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Create embedded signing invites payload

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Create embedded signing invites response data

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Generate embedded invite link payload

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Generate a link for the embedded invite response data

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - - EmbeddedGeneratedLink: Object -

    -
    -
    - - -

    Response EmbeddedGeneratedLink

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - - EmbeddedInvite: Object -

    -
    -
    - - -

    Response EmbeddedInvite

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - - EmbeddedSigningInvite: Object -

    -
    -
    - - -

    Create embedded signing invite payload

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - - EnumerationField: Object -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - - Features: Object -

    -
    -
    - - -

    Api client features

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - - FormulaTree: Object -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - - FormulaTreeBranch: Object -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - - -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - - InitParams: Object -

    -
    -
    - - -

    Api client initialization params

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - - InitialsField: Object -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - - RadioButton: Object -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - - RadioButtonField: Object -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - - SignatureField: Object -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - - SignerSettings: Object -

    -
    -
    - - -

    Document invite signer settings

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Create signing link payload

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Create signing link response data

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Send Template Bulk Invite payload

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Send Template Bulk Invite response data

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Template Bulk Invite settings

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - - TemplateCreateOptions: Object -

    -
    -
    - - -

    Document invite optional settings

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - - TemplateCreateParams: Object -

    -
    -
    - - -

    Create template payload

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Create template response data

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Copy template payload

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Copy template response data

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Get Template Routing Details payload

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Get Template Routing Details response data

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Create invite with template payload

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Create invite with template response data

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Remove template payload

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Remove template response data

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Template Routing Details CC step info

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Template Routing Details item data

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Template Update Routing Details item data

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Update Template Routing Details payload

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Update Template Routing Details response data

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Update Template Routing Details settings

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Update Signing Role payload

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Update Signing Role response data

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - - TextField: Object -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - - UserCreateParams: Object -

    -
    -
    - - -

    Create user payload

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - - UserCreateResponse: Object -

    -
    -
    - - -

    Create user response data

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - - UserGetParams: Object -

    -
    -
    - - -

    Get user payload

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - - UserGetResponse: Object -

    -
    -
    - - -

    Retrieve user response data

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - - UserVerifyEmailParams: Object -

    -
    -
    - - -

    Verify user email payload

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Verify user email response data

    -
    -
    -
    - - -
    -
    -

    Static Public

    - -
    -

    - public - - - - - - AccessTokenGetParams: Object - - - - source - -

    - - - - -

    Request access token payload

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    usernamestring

    email of a user

    -
    passwordstring

    password of a user

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - AccessTokenGetResponse: Object - - - - source - -

    - - - - -

    Request access token response data

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    expires_innumber

    time in seconds for which the token was issued

    -
    token_typestring

    type of access token (e.g. 'bearer')

    -
    access_tokenstring

    access token

    -
    refresh_tokenstring

    refresh token

    -
    scopestring

    access scopes

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - AccessTokenRefreshParams: Object - - - - source - -

    - - - - -

    Refresh access token payload

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    refresh_tokenstring

    your refresh token

    -
    scopestring
    • optional

    access scopes of access token

    -
    expiration_timenumber
    • optional

    time in seconds for which the token was issued

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - AccessTokenRefreshResponse: Object - - - - source - -

    - - - - -

    Refresh access token response data

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    expires_innumber

    time in seconds for which the token was issued

    -
    token_typestring

    type of access token (e.g. 'bearer')

    -
    access_tokenstring

    access token

    -
    refresh_tokenstring

    refresh token

    -
    scopestring

    access scopes

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - AccessTokenVerifyParams: Object - - - - source - -

    - - - - -

    Verify access token payload

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    tokenstring

    your auth token

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - AccessTokenVerifyResponse: Object - - - - source - -

    - - - - -

    Verify access token response data

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    expires_innumber

    time in seconds for which the token was issued

    -
    token_typestring

    type of access token (e.g. 'bearer')

    -
    access_tokenstring

    access token

    -
    scopestring

    access scopes

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - ApiError: Object - - - - source - -

    - - - - -

    Api error object

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    codenumber

    error code

    -
    messagestring

    error message

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - ApiErrorResponse: ApiError[] | ApiError | Error | string - - - - source - -

    - - - - -

    Api error response

    -
    - - - -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - AttachmentField: Object - - - - source - -

    - - - - - - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    page_numbernumber

    page number of document

    -
    typestring

    type of field (attachment)

    -
    namestring

    unique name of the field

    -
    rolestring

    role name

    -
    requiredboolean

    required field

    -
    heightnumber

    height of the field

    -
    widthnumber

    width of the field

    -
    xnumber

    X coordinate of the field

    -
    ynumber

    Y coordinate of the field

    -
    labelstring
    • optional

    field label

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - CalculatedField: Object - - - - source - -

    - - - - - - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    page_numbernumber

    page number of document

    -
    typestring

    type of field (text)

    -
    namestring

    unique name of the field

    -
    rolestring

    role name

    -
    requiredboolean

    required field

    -
    heightnumber

    height of the field

    -
    widthnumber

    width of the field

    -
    xnumber

    X coordinate of the field

    -
    ynumber

    Y coordinate of the field

    -
    formulastring

    arithmetic formula, e.g. 'TextName+EnumerationName'

    -
    calculation_formulaFormulaTree

    formula parsed into tree

    -
    calculation_precisionnumber

    calculation precision

    -
    labelstring
    • optional

    field label

    -
    custom_defined_optionboolean
    • optional
    • -
    • default: false

    if 'true' user can change values, if 'false' user can only read

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - CancelFreeformInviteParams: Object - - - - source - -

    - - - - -

    Cancel freeform invite payload

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    idstring

    unique id of invite

    -
    tokenstring

    your auth token

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - CancelFreeformInviteResponse: Object - - - - source - -

    - - - - -

    Cancel freeform invite response data

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    idstring

    unique id of invite

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - CheckField: Object - - - - source - -

    - - - - - - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    page_numbernumber

    page number of document

    -
    typestring

    type of field (checkbox)

    -
    namestring

    unique name of the field

    -
    rolestring

    role name

    -
    requiredboolean

    required field

    -
    heightnumber

    height of the field

    -
    widthnumber

    width of the field

    -
    xnumber

    X coordinate of the field

    -
    ynumber

    Y coordinate of the field

    -
    prefilled_textboolean
    • optional

    prefilled field value

    -
    labelstring
    • optional

    field label

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - CreateUserOptions: Object - - - - source - -

    - - - - -

    Create User optional settings

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    verifyEmailboolean
    • optional
    • -
    • default: false

    if true verification email will be sent

    -
    startTrialnumber
    • optional
    • -
    • default: false

    if true start 30 days free trial

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentCreateParams: Object - - - - source - -

    - - - - -

    Create document payload

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    filepathstring

    path to file to be uploaded

    -
    tokenstring

    your auth token

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentCreateResponse: Object - - - - source - -

    - - - - -

    Create document response data

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    idstring

    an id of created document

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentDownloadOptions: Object - - - - source - -

    - - - - -

    Download document optional settings

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    withAttachmentsboolean
    • optional
    • -
    • default: false

    if true document will be downloaded as zip package with its attachments

    -
    withHistoryboolean
    • optional
    • -
    • default: false

    if true document will be downloaded with history

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentDownloadParams: Object - - - - source - -

    - - - - -

    Document download payload

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    idstring

    id of specific document

    -
    tokenstring

    your auth token

    -
    optionsDocumentDownloadOptions

    download document optional settings

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentDownloadResponse: Buffer - - - - source - -

    - - - - -

    Document binary data

    -
    - - - -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentEvent: Object - - - - source - -

    - - - - -

    Document action log item

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    client_app_namestring

    name of a client application

    -
    client_timestampstring
    • nullable: true

    client application timestamp

    -
    createdstring

    timestamp of action creation

    -
    emailstring

    email of an actor

    -
    eventstring

    name of event

    -
    ip_addressstring

    actor's IP address

    -
    element_idstring
    • nullable: true

    an ID of specific element

    -
    field_idstring
    • nullable: true

    an ID of specific field

    -
    json_attributesstring
    • nullable: true

    field attributes (e.g. font, style, size etc.)

    -
    document_idstring
    • optional

    an ID of specific document

    -
    originstring
    • optional

    an origin of document

    -
    unique_idstring
    • optional

    an ID of event

    -
    user_agentstring
    • optional

    user agent

    -
    user_idstring
    • optional

    id of an actor

    -
    versionstring
    • optional

    version of signed document (incremented after each signature addition)

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentFieldExtractParams: Object - - - - source - -

    - - - - -

    Upload document with field extract payload

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    filepathstring

    path to file to be uploaded

    -
    tokenstring

    your auth token

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentFieldExtractResponse: Object - - - - source - -

    - - - - -

    Upload document with field extract response data

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    idstring

    an id of created document

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentFieldInviteCancelParams: Object - - - - source - -

    - - - - -

    Cancel document field invite payload

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    idstring

    an id of document

    -
    tokenstring

    your auth token

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentFieldInviteCancelResponse: Object - - - - source - -

    - - - - -

    Cancel document field invite response data

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    statusstring

    status of field invite cancellation, e.g. 'success'

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentFieldInviteResponse: Object - - - - source - -

    - - - - -

    Create document field invite response data

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    statusstring

    status of invitation, e.g. 'success'

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentFields: Object - - - - source - -

    - - - - - - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    client_timestampnumber

    local time of user

    -
    fieldsArray<SignatureField|InitialsField|TextField|CheckField|EnumerationField|RadioButtonField|CalculatedField|AttachmentField>

    all types of fields

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentFreeformInviteResponse: Object - - - - source - -

    - - - - -

    Create document free form invite response data

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    resultstring

    free form invitation result, e.g. 'success'

    -
    idstring

    unique id of invite

    -
    callback_urlstring

    url for front-end redirect or 'none'

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentGroupCancelInviteParams: Object - - - - source - -

    - - - - -

    Cancel Document Group Invite payload

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    idstring

    ID of specific Document Group

    -
    invite_idstring

    ID of Document Group Invite

    -
    tokenstring

    your auth token

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentGroupCancelInviteResponse: Object - - - - source - -

    - - - - -

    Cancel Document Group Invite response data

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    statusstring

    status of invite cancellation (e.g. "success")

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentGroupCreateParams: Object - - - - source - -

    - - - - -

    Create document group payload

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    tokenstring

    your auth token

    -
    idsstring[]

    array of document or template ids for document group creation

    -
    group_namestring

    new name of document group

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentGroupCreateResponse: Object - - - - source - -

    - - - - -

    Create document group response data

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    idstring

    document group unique id

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentGroupDownloadParams: Object - - - - source - -

    - - - - -

    Document Group download payload

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    idstring

    an ID of a Document Group

    -
    tokenstring

    your auth token

    -
    typestring
    • optional
    • -
    • default: 'zip'

    type of download flow, can be either zip or merged

    -
    with_historystring
    • optional
    • -
    • default: 'no'

    type of history merging flow, can be no, after_each_document, or after_merged_pdf

    -
    document_orderstring[]
    • optional

    document order for merging flow

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentGroupDownloadResponse: Buffer - - - - source - -

    - - - - -

    Document Group binary data

    -
    - - - -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentGroupInviteAction: Object - - - - source - -

    - - - - -

    Document Group invite action configurations

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    emailstring

    signer's email

    -
    role_namestring

    signer's role name

    -
    actionstring

    name of action with document in signing step

    -
    document_idstring

    ID of document in specific signing step

    -
    allow_reassignstring
    • optional

    allow reassigning of signer

    -
    decline_by_signaturestring
    • optional

    signer can decline invite

    -
    authenticationDocumentGroupInviteAuthenticationPassword | DocumentGroupInviteAuthenticationPhoneCall | DocumentGroupInviteAuthenticationPhoneSMS
    • optional

    signer's authentication configuration

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentGroupInviteAuthenticationPassword: Object - - - - source - -

    - - - - -

    Document Group signer's authentication with password config

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    typestring

    set password to authenticate signer with password

    -
    valuestring

    authentication password value

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentGroupInviteAuthenticationPhoneCall: Object - - - - source - -

    - - - - -

    Document Group signer's authentication with phone call config

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    typestring

    set phone to authenticate signer with phone call

    -
    methodstring

    set phone_call to authenticate signer with phone call

    -
    phonestring

    phone number

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentGroupInviteAuthenticationPhoneSMS: Object - - - - source - -

    - - - - -

    Document Group signer's authentication with phone SMS config

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    typestring

    set phone to authenticate signer with phone SMS

    -
    methodstring

    set sms to authenticate signer with phone SMS

    -
    phonestring

    phone number

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentGroupInviteCompletionEmailConfig: Object - - - - source - -

    - - - - -

    Document Group invite completion email configuration

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    emailstring

    email for completion (only from the signers and document owner emails)

    -
    disable_document_attachmentnumber

    disable attachment of signed document group to completion email (values: 0|1)

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentGroupInviteEmail: Object - - - - source - -

    - - - - -

    Document Group invite email configurations

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    emailstring

    signer's email

    -
    subjectstring
    • optional

    subject of invitation email

    -
    messagestring
    • optional

    content of invitation email

    -
    expiration_daysnumber
    • optional

    expiration of invite in days

    -
    remindernumber
    • optional

    number of days in which to remind about invitation via email

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentGroupInviteParams: Object - - - - source - -

    - - - - -

    Create Document Group invite payload

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    idstring

    ID of specific Document Group

    -
    dataDocumentGroupInviteSettings

    Document Group invite settings data

    -
    tokenstring

    your auth token

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentGroupInviteResponse: Object - - - - source - -

    - - - - -

    Create Document Group invite response data

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    idstring

    ID of created Document Group invitation

    -
    pending_invite_linkstring
    • nullable: true

    pending invite link

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentGroupInviteSettings: Object - - - - source - -

    - - - - -

    Document Group invite settings

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    invite_stepsDocumentGroupInviteStep[]

    Document Group invite steps settings

    -
    completion_emailsDocumentGroupInviteCompletionEmailConfig[]
    • optional

    set of completion email configutrations

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentGroupInviteStep: Object - - - - source - -

    - - - - -

    Document Group invite step configurations

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    ordernumber

    an order number of invitation step

    -
    invite_emailsDocumentGroupInviteEmail[]
    • optional

    Document Group invite emails settings

    -
    invite_actionsDocumentGroupInviteAction[]

    Document Group invite actions settings

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentGroupItem: Object - - - - source - -

    - - - - -

    Details of single Document in group

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    idstring

    an ID of Document

    -
    document_namestring

    a name of Document

    -
    origin_document_idstring

    an ID of Document origin

    -
    has_credit_card_numberboolean

    Document has Credit Card number attached

    -
    has_unassigned_fieldboolean

    Document has unassigned field(s)

    -
    thumbnailDocumentThumbnails

    thumbnail urls with different sizes (small, medium, large)

    -
    rolesstring[]

    list of template signer roles

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentGroupTemplateCreateParams: Object - - - - source - -

    - - - - -

    Create Document Group Template payload

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    tokenstring

    your auth token

    -
    template_idsstring[]

    array of template ids for Document Group Template creation

    -
    template_group_namestring

    new name of document group

    -
    routing_detailsDocumentGroupTemplateRoutingDetails

    invite congfigurations

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentGroupTemplateCreateResponse: Object - - - - source - -

    - - - - -

    Create Document Group Template response data

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    idstring

    Document Group Template unique id

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentGroupTemplateInviteAction: Object - - - - source - -

    - - - - -

    Document Group Template invite action congfigurations

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    emailstring
    • optional

    signer's email

    -
    role_namestring
    • optional

    signer's role name

    -
    actionstring
    • optional

    name of action with document in signing step

    -
    document_idstring
    • optional

    ID of document in specific signing step

    -
    document_namestring
    • optional

    name of document in specific signing step

    -
    allow_reassignstring
    • optional

    allow reassigning of signer

    -
    decline_by_signaturestring

    signer can decline invite

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentGroupTemplateInviteEmail: Object - - - - source - -

    - - - - -

    Document Group Template invite email congfigurations

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    emailstring
    • optional

    signer's email

    -
    subjectstring
    • optional

    subject of invitation email

    -
    messagestring
    • optional

    content of invitation email

    -
    expiration_daysnumber
    • optional

    expiration of invite in days

    -
    remindernumber
    • optional

    number of days in which to remind about invite via email

    -
    hasSignActionsboolean
    • optional

    does signer need to sign documents of document group

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentGroupTemplateInviteParams: Object - - - - source - -

    - - - - -

    Create Document Group Template invite payload

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    idstring

    ID of specific Document Group Template

    -
    dataDocumentGroupInviteSettings
    • optional

    Document Group Template invite settings data

    -
    tokenstring

    your auth token

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentGroupTemplateInviteResponse: DocumentGroupInviteResponse - - - - source - -

    - - - - -

    Create Document Group Template invite response data

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    idstring

    an ID of created invite

    -
    pending_invite_linkstring
    • nullable: true

    pending invite link

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentGroupTemplateInviteStep: Object - - - - source - -

    - - - - -

    Document Group Template invite step congfigurations

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    ordernumber
    • optional

    an order number of invitation step

    -
    invite_emailsDocumentGroupTemplateInviteEmail[]
    • optional

    Document Group Template invite emails settings

    -
    invite_actionsDocumentGroupTemplateInviteAction[]

    Document Group Template invite actions settings

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentGroupTemplateItem: Object - - - - source - -

    - - - - -

    Details of single template in group

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    idstring

    id of template

    -
    template_namestring

    name of template

    -
    owner_emailstring

    template owner email

    -
    readablenumber
    • nullable: true
    thumbnailDocumentThumbnails

    thumbnail urls with different sizes (small, medium, large)

    -
    rolesstring[]

    list of template signer roles

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentGroupTemplateRoutingDetails: Object - - - - source - -

    - - - - -

    Document Group Template invite congfigurations

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    invite_stepsDocumentGroupTemplateInviteStep[]

    Document Group Template invite steps settings

    -
    include_email_attachmentsnumber
    • optional
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentGroupTemplateViewParams: Object - - - - source - -

    - - - - -

    Document Group Template view payload

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    idstring

    id of specific Document Group Template

    -
    tokenstring

    your auth token

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentGroupTemplateViewResponse: Object - - - - source - -

    - - - - -

    Document Group Template view response

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    idstring

    id of Document Group Template

    -
    group_namestring

    name of Document Group Template

    -
    document_group_template_owner_emailstring

    Document Group Template owner email

    -
    sharednumber

    is Document Group Template shared or not (values: 0 or 1)

    -
    shared_team_idstring
    • nullable: true

    id of team which Document Group Template is shared with

    -
    templatesDocumentGroupTemplateItem[]

    each single template details

    -
    routing_detailsDocumentGroupTemplateRoutingDetails

    signing steps configuration

    -
    originator_organization_settingsObject[]

    originator organization settings

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentGroupViewParams: Object - - - - source - -

    - - - - -

    Document Group view payload

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    idstring

    id of specific Document Group

    -
    tokenstring

    your auth token

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentGroupViewResponse: Object - - - - source - -

    - - - - -

    Document Group view response data

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    idstring

    an ID of Document Group

    -
    group_namestring

    a name of Document Group

    -
    documentsDocumentGroupItem[]

    each single document details

    -
    invite_idstring
    • nullable: true

    an ID of active invite

    -
    originator_organization_settingsObject[]

    originator organization settings

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentHistoryParams: Object - - - - source - -

    - - - - -

    Document history payload

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    idstring

    id of specific document

    -
    tokenstring

    your auth token

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentHistoryResponse: DocumentEvent[] - - - - source - -

    - - - - -

    Document history response data

    -
    - - - -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentInviteOptions: Object - - - - source - -

    - - - - -

    Document invite optional settings

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    emailstring
    • optional

    ability to disable invitation by email. to disable email assign value 'disable'

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentInviteParams: Object - - - - source - -

    - - - - -

    Create document invite payload

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    idstring

    an id of document

    -
    dataDocumentInviteSettings

    document invite settings

    -
    optionsDocumentInviteOptions
    • optional

    document invite optional settings

    -
    tokenstring

    your auth token

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentInviteResponse: DocumentFieldInviteResponse | DocumentFreeformInviteResponse - - - - source - -

    - - - - -

    Create document invite response data

    -
    - - - -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentInviteSettings: Object - - - - source - -

    - - - - -

    Document invite settings

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    fromstring

    email of sender

    -
    toSignerSettings[] | string

    array of signers or email of single signer

    -
    document_idstring
    • optional

    an id of document

    -
    ccstring[]
    • optional

    array with emails of copy receivers

    -
    subjectstring
    • optional

    specify subject of email

    -
    messagestring
    • optional

    specify body of email

    -
    on_completestring
    • optional

    on signing complete action

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentListItem: Object - - - - source - -

    - - - - -

    Document list response item

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    idstring

    id of specific document

    -
    user_idstring

    id of user that uploaded document

    -
    document_namestring

    name of document

    -
    page_countstring

    amount of pages in the document

    -
    createdstring

    timestamp document was created

    -
    updatedstring

    timestamp document was updated

    -
    original_filenamestring

    original filename with document format (.pdf, .doc, etc...)

    -
    origin_document_idstring
    • nullable: true

    an id of original document (if document is a copy)

    -
    ownerstring

    email of document owner

    -
    templateboolean

    is document a template or not

    -
    origin_user_idstring
    • nullable: true

    id of user who created document

    -
    thumbnailDocumentThumbnails

    thumbnail urls with different sizes (small, medium, large)

    -
    signaturesObject[]

    signature signed elements

    -
    textsObject[]

    text and enumeration filled elements

    -
    checksObject[]

    checkbox checked elements

    -
    tagsObject[]

    field types document contains

    -
    fieldsObject[]

    all document fillable fields

    -
    requestsObject[]

    requests for signing document

    -
    rolesObject[]

    document signer roles

    -
    field_invitesObject[]

    sent invites data

    -
    version_timenumber

    document updated timestamp

    -
    enumeration_optionsObject[]

    dropdown options

    -
    attachmentsObject[]

    attachments in document

    -
    routing_detailsObject[]

    signing steps routing details

    -
    integrationsObject[]

    document integrations

    -
    hyperlinksObject[]

    document hyperlinks

    -
    radiobuttonsObject[]

    checked radiobuttons after document was signed

    -
    document_group_template_infoObject[]

    document group templates data

    -
    document_group_infoObject[]

    document group template's data

    -
    originator_organization_settingsObject[]

    specific organization settings for document

    -
    field_validatorsObject[]

    validation rules for fields (date fields, payment fields etc.)

    -
    settingsObject

    specific document settings

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentListParams: Object - - - - source - -

    - - - - -

    Payload to receive user's document list

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    tokenstring

    your auth token

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentListResponse: DocumentListItem[] - - - - source - -

    - - - - -

    User's Document list response

    -
    - - - -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentMergeOptions: Object - - - - source - -

    - - - - -

    Merge documents optional settings

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    removeOriginalDocumentsboolean
    • optional
    • -
    • default: false

    if true original documents will be removed

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentMergeParams: Object - - - - source - -

    - - - - -

    Merge documents payload

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    tokenstring

    your auth token

    -
    namestring

    new name for merged document

    -
    document_idsstring[]

    an array of document IDs

    -
    optionsDocumentMergeOptions

    merge documents optional settings

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentMergeResponse: Object - - - - source - -

    - - - - -

    Merge documents response data

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    document_idstring

    an ID of merged document

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentRemoveOptions: Object - - - - source - -

    - - - - -

    Document remove optional settings

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    cancelInvitesboolean
    • optional
    • -
    • default: false

    ability to cancel all document invites during deletion

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentRemoveParams: Object - - - - source - -

    - - - - -

    Remove document payload

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    idstring

    id of specific document

    -
    tokenstring

    your auth token

    -
    optionsDocumentRemoveOptions
    • optional

    document remove optional settings

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentRemoveResponse: Object - - - - source - -

    - - - - -

    Remove document response data

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    statusstring

    status of deletion, e.g. 'success'

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentShareParams: Object - - - - source - -

    - - - - -

    Document share payload

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    idstring

    id of specific document

    -
    tokenstring

    your auth token

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentShareResponse: Object - - - - source - -

    - - - - -

    Document share response data

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    linkstring

    link to download specified document in PDF format

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentSignersOptions: Object - - - - source - -

    - - - - -

    Get Document Signers optional settings

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    allSignaturesboolean
    • optional
    • -
    • default: true

    if true receive all document signers email

    -
    freeFormInvitesboolean
    • optional
    • -
    • default: false

    if true return free from invite signer emails

    -
    fieldInvitesStatusstring[]
    • optional
    • -
    • default: null
    • -
    • nullable: true

    return signers according to specified field invite status(es) -Accepts list of statuses or a single status. -Acceptable statuses: all, pending, declined, fulfilled, created, skipped.

    -
    paymentRequestsStatusstring[]
    • optional
    • -
    • default: null
    • -
    • nullable: true

    return signers according to specified to payment request status(es) -Accepts list of statuses or a single status. -Available statuses: all, pending, fulfilled, created, skipped.

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentSignersParams: Object - - - - source - -

    - - - - -

    Get Document Signers payload

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    idstring

    id of specific document

    -
    tokenstring

    your auth token

    -
    optionsDocumentSignersOptions
    • optional

    document signers optional settings,

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentSignersResponse: Object - - - - source - -

    - - - - -

    Get Document Signers response data

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    -string[]

    emails of document signers

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentThumbnails: Object - - - - source - -

    - - - - -

    Document thumbnail urls with different sizes (small, medium, large)

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    largestring
    mediumstring
    smallstring
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentUpdateParams: Object - - - - source - -

    - - - - -

    Update document payload

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    idstring

    id of specific document

    -
    fieldsDocumentFields

    set of fields

    -
    tokenstring

    your auth token

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentUpdateResponse: Object - - - - source - -

    - - - - -

    Update document response data

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    idstring

    an id of document

    -
    signaturesObject[]

    signature and initial elements

    -
    textsObject[]

    text and enumeration elements

    -
    checksObject[]

    checkbox elements

    -
    attachmentsObject[]

    attachment elements

    -
    radiobuttonsObject[]

    radiobutton elements

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentViewParams: Object - - - - source - -

    - - - - -

    Document view payload

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    idstring

    id of specific document

    -
    tokenstring

    your auth token

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - DocumentViewResponse: Object - - - - source - -

    - - - - -

    Document view response of specific document

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    idstring

    id of specific document

    -
    user_idstring

    id of user that uploaded document

    -
    document_namestring

    name of document

    -
    page_countstring

    amount of pages in the document

    -
    createdstring

    timestamp document was created

    -
    updatedstring

    timestamp document was updated

    -
    original_filenamestring

    original filename with document format (.pdf, .doc, etc...)

    -
    origin_document_idstring
    • nullable: true

    an id of original document (if document is a copy)

    -
    ownerstring

    email of document owner

    -
    templateboolean

    is document a template or not

    -
    thumbnailDocumentThumbnails

    thumbnail urls with different sizes (small, medium, large)

    -
    signaturesObject[]

    signature signed elements

    -
    textsObject[]

    text and enumeration filled elements

    -
    checksObject[]

    checkbox checked elements

    -
    tagsObject[]

    field types document contains

    -
    fieldsObject[]

    all document fillable fields

    -
    requestsObject[]

    requests for signing document

    -
    rolesObject[]

    document signer roles

    -
    field_invitesObject[]

    sent invites data

    -
    version_timenumber

    document updated timestamp

    -
    enumeration_optionsObject[]

    dropdown options

    -
    attachmentsObject[]

    attachments in document

    -
    routing_detailsObject[]

    signing steps routing details

    -
    integrationsObject[]

    document integrations

    -
    hyperlinksObject[]

    document hyperlinks

    -
    radiobuttonsObject[]

    checked radiobuttons after document was signed

    -
    document_group_template_infoObject[]

    document group template's data

    -
    document_group_infoObject[]

    document group's data

    -
    originator_organization_settingsObject[]

    specific organization settings for document

    -
    field_validatorsObject[]

    validation rules for fields (date fields, payment fields etc.)

    -
    settingsObject

    specific document settings

    -
    parent_idstring

    id of document folder

    -
    originator_logostring

    logo url

    -
    pagesObject[]

    list of document pages with page sources and page size.

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - EmbeddedCancelInvitePayload: Object - - - - source - -

    - - - - -

    Delete embedded invites for a document payload

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    tokenstring

    Access token.

    -
    document_idstring

    ID of the requested document.

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - EmbeddedCancelInviteResponse: Object - - - - source - -

    - - - - -

    Generate a link for the embedded invite response data

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    statusstring

    Returns success when all parameters are correct

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - EmbeddedCreateInvitesPayload: Object - - - - source - -

    - - - - -

    Create embedded signing invites payload

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    tokenstring

    Access token.

    -
    document_idstring

    ID of the requested document.

    -
    invitesEmbeddedSigningInvite[]

    Array of invites

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - EmbeddedCreateInvitesResponse: Object - - - - source - -

    - - - - -

    Create embedded signing invites response data

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    dataEmbeddedInvite[]

    Array sending of invites

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - EmbeddedGenerateLinkPayload: Object - - - - source - -

    - - - - -

    Generate embedded invite link payload

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    tokenstring

    Access token.

    -
    document_idstring

    ID of the requested document.

    -
    field_invite_unique_idstring

    ID of the signature invite you'd like to embed.

    -
    link_expirationnumber

    In how many minutes the link expires, ranges from 15 to 45 minutes or null.

    -
    auth_methodstring

    Signer authentication method.

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - EmbeddedGenerateLinkResponse: Object - - - - source - -

    - - - - -

    Generate a link for the embedded invite response data

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    dataEmbeddedGeneratedLink

    Response data

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    - - - - - -

    Response EmbeddedGeneratedLink

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    linkstring

    Returns a link for embedded invite

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - EmbeddedInvite: Object - - - - source - -

    - - - - -

    Response EmbeddedInvite

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    idstring

    ID of the sending invite

    -
    emailstring

    Signer's email address

    -
    role_idnumber

    Signer's role ID

    -
    ordernumber

    Order of signing

    -
    statusstring

    Status of the invite

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - EmbeddedSigningInvite: Object - - - - source - -

    - - - - -

    Create embedded signing invite payload

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    emailstring

    Signer's email address

    -
    role_idnumber

    Signer's role ID

    -
    ordernumber

    Order of signing. Cannot be 0

    -
    auth_methodstring

    Signer authentication method. One of (password, email, mfa, social, biometric, other, none)

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - EnumerationField: Object - - - - source - -

    - - - - - - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    page_numbernumber

    page number of document

    -
    typestring

    type of field (enumeration)

    -
    namestring

    unique name of the field

    -
    rolestring

    role name

    -
    requiredboolean

    required field

    -
    heightnumber

    height of the field

    -
    widthnumber

    width of the field

    -
    xnumber

    X coordinate of the field

    -
    ynumber

    Y coordinate of the field

    -
    enumeration_optionsArray<number|string>

    choice options of enumerable field

    -
    prefilled_textstring | number
    • optional

    prefilled field value

    -
    labelstring
    • optional

    field label

    -
    custom_defined_optionboolean
    • optional
    • -
    • default: false

    if 'true' user can change values, if 'false' user can only read

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - Features: Object - - - - source - -

    - - - - -

    Api client features

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    userUser

    user related methods

    -
    oauth2OAuth2

    authentication related methods

    -
    documentDocument

    document related methods

    -
    templateTemplate

    template related methods

    -
    linkLink

    link related methods

    -
    documentGroupDocumentGroup

    document group related methods

    -
    documentGroupTemplateDocumentGroupTemplate

    document group template related methods

    -
    embeddedEmbedded

    embedded signing related methods

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - FormulaTree: Object - - - - source - -

    - - - - - - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    operatorstring

    arithmetic operator's token

    -
    leftFormulaTreeBranch | FormulaTreeBranchTerminator

    left branch of formula tree

    -
    rightFormulaTreeBranch | FormulaTreeBranchTerminator

    right branch of formula tree

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - FormulaTreeBranch: Object - - - - source - -

    - - - - - - - - -
    -

    Properties:

    - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    termFormulaTree

    a part of formula parsed into tree

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - FormulaTreeBranchTerminator: Object - - - - source - -

    - - - - - - - - -
    -

    Properties:

    - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    termstring

    name of field which will participate in calculation formula

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - InitParams: Object - - - - source - -

    - - - - -

    Api client initialization params

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    credentialsstring

    base64 encoded basic API credentials

    -
    productionboolean
    • optional
    • -
    • default: true

    production/eval API flag. If false uses eval

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - InitialsField: Object - - - - source - -

    - - - - - - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    page_numbernumber

    page number of document

    -
    typestring

    type of field (initials)

    -
    namestring

    unique name of the field

    -
    rolestring

    role name

    -
    requiredboolean

    required field

    -
    heightnumber

    height of the field

    -
    widthnumber

    width of the field

    -
    xnumber

    X coordinate of the field

    -
    ynumber

    Y coordinate of the field

    -
    labelstring
    • optional

    field label

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - RadioButton: Object - - - - source - -

    - - - - - - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    page_numbernumber

    page number of document

    -
    heightnumber

    height of the field

    -
    widthnumber

    width of the field

    -
    xnumber

    X coordinate of the field

    -
    ynumber

    Y coordinate of the field

    -
    valuestring

    value of radio button

    -
    checkedstring

    radio button check status

    -
    creatednumber

    redio button creation timestamp

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - RadioButtonField: Object - - - - source - -

    - - - - - - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    page_numbernumber

    page number of document

    -
    typestring

    type of field (radiobutton)

    -
    namestring

    unique name of the field

    -
    rolestring

    role name

    -
    requiredboolean

    required field

    -
    heightnumber

    height of the field

    -
    widthnumber

    width of the field

    -
    xnumber

    X coordinate of the field

    -
    ynumber

    Y coordinate of the field

    -
    radioRadioButton[]

    array of radio buttons

    -
    prefilled_textstring | number
    • optional

    prefilled field value

    -
    labelstring
    • optional

    field label

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - SignatureField: Object - - - - source - -

    - - - - - - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    page_numbernumber

    page number of document

    -
    typestring

    type of field (signature)

    -
    namestring

    unique name of the field

    -
    rolestring

    role name

    -
    requiredboolean

    required field

    -
    heightnumber

    height of the field

    -
    widthnumber

    width of the field

    -
    xnumber

    X coordinate of the field

    -
    ynumber

    Y coordinate of the field

    -
    labelstring
    • optional

    field label

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - SignerSettings: Object - - - - source - -

    - - - - -

    Document invite signer settings

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    emailstring

    signer's email

    -
    rolestring

    role name

    -
    role_idstring
    • optional

    role unique id (can be discovered in document details)

    -
    ordernumber

    role signing order

    -
    reassignstring

    allow reassign signer

    -
    decline_by_signaturestring

    signer can decline invite

    -
    remindernumber

    remind via email in days

    -
    expiration_daysnumber

    expiration of invite in days

    -
    subjectstring
    • optional

    specify subject of email

    -
    messagestring
    • optional

    specify body of email

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - SigningLinkCreateParams: Object - - - - source - -

    - - - - -

    Create signing link payload

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    document_idstring

    id of specific document

    -
    tokenstring

    your auth token

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - SigningLinkCreateResponse: Object - - - - source - -

    - - - - -

    Create signing link response data

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    urlstring

    invite url with user authorization

    -
    url_no_signupstring

    invite url without user authorization

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - TemplateBulkInviteParams: Object - - - - source - -

    - - - - -

    Send Template Bulk Invite payload

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    idstring

    an ID of specific Template

    -
    tokenstring

    your auth token

    -
    dataTemplateBulkInviteSettings

    Template Bulk Invite settings

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - TemplateBulkInviteResponse: Object - - - - source - -

    - - - - -

    Send Template Bulk Invite response data

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    statusstring

    status of sending bulk invites (e.g. "job queued")

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - TemplateBulkInviteSettings: Object - - - - source - -

    - - - - -

    Template Bulk Invite settings

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    filestring

    path to .csv file with roles and their emails. Max file size should be <= 1 Megabyte

    -
    folder_idstring

    an ID of folder where signed documents will be saved

    -
    client_timestampnumber
    • optional

    client timestamp in seconds

    -
    document_namestring
    • optional

    setup prefix for each document name

    -
    subjectstring
    • optional

    custom email subject

    -
    email_messagestring
    • optional

    custom email message

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - TemplateCreateOptions: Object - - - - source - -

    - - - - -

    Document invite optional settings

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    removeOriginalDocumentboolean
    • optional
    • -
    • default: false

    if true original document will be removed

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - TemplateCreateParams: Object - - - - source - -

    - - - - -

    Create template payload

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    document_idstring

    an id of original document

    -
    document_namestring

    a name of new template

    -
    optionsTemplateCreateOptions

    create template optional settings

    -
    tokenstring

    your auth token

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - TemplateCreateResponse: Object - - - - source - -

    - - - - -

    Create template response data

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    idstring

    an id of created template

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - TemplateDuplicateParams: Object - - - - source - -

    - - - - -

    Copy template payload

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    idstring

    an id of original template

    -
    namestring

    a name of new document

    -
    tokenstring

    your auth token

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - TemplateDuplicateResponse: Object - - - - source - -

    - - - - -

    Copy template response data

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    idstring

    an id of created document

    -
    namestring

    a name of created document

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - TemplateGetRoutingDetailsParams: Object - - - - source - -

    - - - - -

    Get Template Routing Details payload

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    idstring

    an ID of specific Template

    -
    tokenstring

    your auth token

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - TemplateGetRoutingDetailsResponse: Object - - - - source - -

    - - - - -

    Get Template Routing Details response data

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    routing_detailsTemplateRoutingDetailsItem[]

    array with routing details

    -
    ccstring[]

    CC emails

    -
    cc_stepTemplateRoutingDetailsCCStep[]

    array of CC`s steps

    -
    invite_link_instructionsstring

    invite link instructions

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - TemplateInviteParams: DocumentInviteParams - - - - source - -

    - - - - -

    Create invite with template payload

    -
    - - - -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - TemplateInviteResponse: DocumentInviteResponse - - - - source - -

    - - - - -

    Create invite with template response data

    -
    - - - -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - TemplateRemoveParams: DocumentRemoveParams - - - - source - -

    - - - - -

    Remove template payload

    -
    - - - -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - TemplateRemoveResponse: DocumentRemoveResponse - - - - source - -

    - - - - -

    Remove template response data

    -
    - - - -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - TemplateRoutingDetailsCCStep: Object - - - - source - -

    - - - - -

    Template Routing Details CC step info

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    emailstring

    email of cc step

    -
    stepnumber

    step order number

    -
    namestring

    name of cc step

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - TemplateRoutingDetailsItem: Object - - - - source - -

    - - - - -

    Template Routing Details item data

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    default_emailstring

    default email for routing detail

    -
    inviter_roleboolean

    always false

    -
    namestring

    signer role (actor) name

    -
    role_idstring

    signer role (actor) unique ID

    -
    signing_ordernumber

    order number of signing step

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - TemplateUpdateRoutingDetailsItem: Object - - - - source - -

    - - - - -

    Template Update Routing Details item data

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    default_emailstring

    default email for routing detail

    -
    inviter_roleboolean

    always false

    -
    namestring

    signer role (actor) name

    -
    role_idstring

    signer role (actor) unique ID

    -
    signing_ordernumber

    order number of signing step

    -
    decline_by_signatureboolean

    decline by signature flag

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - TemplateUpdateRoutingDetailsParams: Object - - - - source - -

    - - - - -

    Update Template Routing Details payload

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    idstring

    an ID of specific Template

    -
    tokenstring

    your auth token

    -
    dataTemplateUpdateRoutingDetailsSettings

    update Template Routing Details settings

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - TemplateUpdateRoutingDetailsResponse: Object - - - - source - -

    - - - - -

    Update Template Routing Details response data

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    idstring

    unique ID of template routing details

    -
    document_idstring

    unique ID of Template

    -
    dataTemplateUpdateRoutingDetailsItem[]

    array with routing details

    -
    ccstring[]

    CC emails

    -
    cc_stepTemplateRoutingDetailsCCStep[]

    array of CC steps

    -
    invite_link_instructionsstring

    invite signing instructions

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - TemplateUpdateRoutingDetailsSettings: Object - - - - source - -

    - - - - -

    Update Template Routing Details settings

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    template_dataTemplateUpdateRoutingDetailsItem[]

    array with routing details

    -
    ccstring[]

    CC emails

    -
    cc_stepTemplateRoutingDetailsCCStep[]

    array of CC steps

    -
    invite_link_instructionsstring
    • optional

    invite signing instructions

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - TemplateUpdateSigningRoleParams: Object - - - - source - -

    - - - - -

    Update Signing Role payload

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    idstring

    an ID of Actor (role)

    -
    tokenstring

    your auth token

    -
    signing_ordernumber

    signing order number

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - TemplateUpdateSigningRoleResponse: Object - - - - source - -

    - - - - -

    Update Signing Role response data

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    idstring

    unique ID of Actor

    -
    document_idstring

    unique ID of Template

    -
    signing_ordernumber

    signing order number

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - TextField: Object - - - - source - -

    - - - - - - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    page_numbernumber

    page number of document

    -
    typestring

    type of field (text)

    -
    namestring

    unique name of the field

    -
    rolestring

    role name

    -
    requiredboolean

    required field

    -
    heightnumber

    height of the field

    -
    widthnumber

    width of the field

    -
    xnumber

    X coordinate of the field

    -
    ynumber

    Y coordinate of the field

    -
    prefilled_textstring | number
    • optional

    prefilled field value

    -
    validator_idstring
    • optional

    field value validator ID

    -
    labelstring
    • optional

    field label

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - UserCreateParams: Object - - - - source - -

    - - - - -

    Create user payload

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    emailstring

    email of new user

    -
    passwordstring

    password for new user

    -
    first_namestring
    • optional

    first name of new user

    -
    last_namestring
    • optional

    last name of new user

    -
    numberstring
    • optional

    phone number of new user

    -
    optionsCreateUserOptions
    • optional

    create user optional settings

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - UserCreateResponse: Object - - - - source - -

    - - - - -

    Create user response data

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    idstring

    user unique id

    -
    verifiednumber

    user is verified or not

    -
    emailstring

    user email

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - UserGetParams: Object - - - - source - -

    - - - - -

    Get user payload

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    tokenstring

    your auth token

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - UserGetResponse: Object - - - - source - -

    - - - - -

    Retrieve user response data

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    idstring

    user unique id

    -
    first_namestring

    first name

    -
    last_namestring

    last name

    -
    activenumber

    user is active or not

    -
    createdstring

    user creation timestamp

    -
    emailsstring[]

    user emails

    -
    primary_emailstring

    user primary email

    -
    subscriptionsObject[]

    user subscriptions data

    -
    cloud_export_account_detailsObject
    • nullable: true

    cloud export account details data

    -
    is_logged_inboolean

    user is logged in or not

    -
    billing_period{start_date: string, end_date: string, start_timestamp: number, end_timestamp: number}

    user billing period data

    -
    companiesObject[]

    companies where user is a member of

    -
    registration_sourcestring
    • nullable: true

    resource where user was registered

    -
    teamsObject[]

    teams where user is a member of

    -
    settingsObject

    user specific settings

    -
    organization_settingsObject[]

    organization specific settings where user is a member of

    -
    merchant_accountsObject[]

    merchant accounts data

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - UserVerifyEmailParams: Object - - - - source - -

    - - - - -

    Verify user email payload

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    emailstring

    email to verify

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -

    - public - - - - - - UserVerifyEmailResponse: Object - - - - source - -

    - - - - -

    Verify user email response data

    -
    - - - -
    -

    Properties:

    - - - - - - - - - - - - - -
    NameTypeAttributeDescription
    statusstring

    status of verification email sending, e.g. 'success'

    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -
    - - - - - - - - - - - - diff --git a/docs/variable/index.html b/docs/variable/index.html deleted file mode 100644 index 2f3ca27b..00000000 --- a/docs/variable/index.html +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - Variable | SignNow API client - - - - - - - -
    - - - Reference - Source - Test - -
    - - - -

    Variable

    -
    - - - - - - - - - -
    Static Public Summary
    - public - - - - - -
    -

    - - - - user: User -

    -
    -
    - - - -
    -
    - - -
    -
    -

    Static Public

    - -
    -

    - public - - - - - - user: User - - - - source - -

    - - - - - - - - -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -
    - - - - - - - - - - - - diff --git a/eslint.config.mjs b/eslint.config.mjs new file mode 100644 index 00000000..f3065f5c --- /dev/null +++ b/eslint.config.mjs @@ -0,0 +1,31 @@ +import globals from 'globals'; +import pluginJs from '@eslint/js'; +import tseslint from 'typescript-eslint'; +import stylisticTs from '@stylistic/eslint-plugin-ts'; + +/** @type {import('eslint').Linter.Config[]} */ +export default [ + { files: ['**/*.{js,mjs,cjs,ts}'] }, + { languageOptions: { globals: globals.browser } }, + pluginJs.configs.recommended, + ...tseslint.configs.strict, + { + plugins: { + '@stylistic/ts': stylisticTs, + }, + rules: { + '@stylistic/ts/semi': 'error', + '@stylistic/ts/member-delimiter-style': 'error', + '@stylistic/ts/quotes': ['error', 'single'], + '@stylistic/ts/object-curly-spacing': ['error', 'always'], + '@stylistic/ts/key-spacing': ['error', { mode: 'strict' }], + '@stylistic/ts/comma-spacing': 'error', + '@stylistic/ts/space-infix-ops': 'error', + '@stylistic/ts/quote-props': ['error', 'as-needed', { keywords: false, unnecessary: true, numbers: false }], + '@stylistic/ts/lines-between-class-members': 'error', + '@typescript-eslint/explicit-function-return-type': 'error', + '@typescript-eslint/explicit-member-accessibility': ['error', { overrides: { constructors: 'no-public' } }], + '@typescript-eslint/no-empty-object-type': 'off' + } + } +]; diff --git a/examples/_data/bulk_invite.csv b/examples/_data/bulk_invite.csv new file mode 100755 index 00000000..5761958f --- /dev/null +++ b/examples/_data/bulk_invite.csv @@ -0,0 +1 @@ +Recipient 1|test@signnow.com,blank_0_test diff --git a/examples/_data/demo.pdf b/examples/_data/demo.pdf new file mode 100644 index 00000000..757bb1f3 Binary files /dev/null and b/examples/_data/demo.pdf differ diff --git a/examples/document/documentDownloadGet.ts b/examples/document/documentDownloadGet.ts new file mode 100644 index 00000000..4d2d2f5d --- /dev/null +++ b/examples/document/documentDownloadGet.ts @@ -0,0 +1,19 @@ +import { DocumentDownloadGetRequest, DocumentDownloadGetResponse } from '../../src/api/document'; +import { displayResult } from '../../src/core/error/displayResult'; +import { Sdk } from '../../src/core/sdk'; + +export async function documentDownloadGet(documentId: string): Promise { + const sdk = await new Sdk().authenticate(); + const client = sdk.getClient(); + + const documentDownloadGet = new DocumentDownloadGetRequest(documentId); + + documentDownloadGet.withHistory('no'); + documentDownloadGet.withType('collapsed'); + + const response = await client.send(documentDownloadGet); + + return response; +} + +documentDownloadGet('8612b8e9ea3e4fe8aa997ea4ab43619e56a32691').then(displayResult).catch(displayResult); diff --git a/examples/document/documentFields.ts b/examples/document/documentFields.ts new file mode 100644 index 00000000..a6489863 --- /dev/null +++ b/examples/document/documentFields.ts @@ -0,0 +1,15 @@ +import { displayResult } from '../../src/core/error/displayResult'; +import { Sdk } from '../../src/core/sdk'; +import { FieldsGetRequest, FieldsGetResponse } from '../../src/api/document'; + +export async function getDocumentFields(documentId: string): Promise { + const sdk = await new Sdk().authenticate(); + const client = sdk.getClient(); + + const fieldsGetRequest = new FieldsGetRequest(documentId); + const response = await client.send(fieldsGetRequest); + + return response; +} + +getDocumentFields('6c9f255cfb7c42cbbe74b8fba05ca97c90467730').then(displayResult).catch(displayResult); diff --git a/examples/document/documentGet.ts b/examples/document/documentGet.ts new file mode 100644 index 00000000..59934e01 --- /dev/null +++ b/examples/document/documentGet.ts @@ -0,0 +1,15 @@ +import { DocumentGetRequest, DocumentGetResponse } from '../../src/api/document'; +import { displayResult } from '../../src/core/error/displayResult'; +import { Sdk } from '../../src/core/sdk'; + +export async function getDocument(documentId: string): Promise { + const sdk = await new Sdk().authenticate(); + const client = sdk.getClient(); + + const documentGet = new DocumentGetRequest(documentId); + const response = await client.send(documentGet); + + return response; +} + +getDocument('29db9956636d481f9c532ef64951ae78209f7483').then(displayResult).catch(displayResult); diff --git a/examples/document/documentPost.ts b/examples/document/documentPost.ts new file mode 100644 index 00000000..7c49946e --- /dev/null +++ b/examples/document/documentPost.ts @@ -0,0 +1,15 @@ +import { DocumentPostRequest, DocumentPostResponse } from '../../src/api/document'; +import { displayResult } from '../../src/core/error/displayResult'; +import { Sdk } from '../../src/core/sdk'; + +export async function postDocument(): Promise { + const sdk = await new Sdk().authenticate(); + const client = sdk.getClient(); + + const documentPost = new DocumentPostRequest('./examples/_data/demo.pdf', 'test.pdf'); + const response = await client.send(documentPost); + + return response; +} + +postDocument().then(displayResult).catch(displayResult); diff --git a/examples/documentGroup/delete.ts b/examples/documentGroup/delete.ts new file mode 100644 index 00000000..29cd908a --- /dev/null +++ b/examples/documentGroup/delete.ts @@ -0,0 +1,17 @@ +import { DocumentGroupDelete as DocumentGroupDeleteRequest } from '../../src/api/documentGroup/request/documentGroupDelete'; +import { DocumentGroupDelete as DocumentGroupDeleteResponse } from '../../src/api/documentGroup/response/documentGroupDelete'; +import { displayResult } from '../../src/core/error/displayResult'; +import { Sdk } from '../../src/core/sdk'; + +export async function deleteDocumentGroup(documentGroupId: string): Promise { + const sdk = await new Sdk().authenticate(); + const client = sdk.getClient(); + + const documentGroupDelete = new DocumentGroupDeleteRequest(documentGroupId); + + const response = await client.send(documentGroupDelete); + + return response; +} + +deleteDocumentGroup('4612b8e9ef3e4fe8aa999ea4ab43619e56a32692').then(displayResult).catch(displayResult); diff --git a/examples/documentGroup/documentGroupPost.ts b/examples/documentGroup/documentGroupPost.ts new file mode 100644 index 00000000..799b3a84 --- /dev/null +++ b/examples/documentGroup/documentGroupPost.ts @@ -0,0 +1,29 @@ +import { DocumentPostRequest, DocumentPostResponse } from '../../src/api/document'; +import { DocumentGroupPost as DocumentGroupPostRequest } from '../../src/api/documentGroup/request/documentGroupPost'; +import { DocumentGroupPost as DocumentGroupPostResponse } from '../../src/api/documentGroup/response/documentGroupPost'; +import { displayResult } from '../../src/core/error/displayResult'; +import { Sdk } from '../../src/core/sdk'; + +export async function createDocumentGroup(): Promise { + const sdk = await new Sdk().authenticate(); + const client = sdk.getClient(); + + // Source data + const documentGroupName = 'Example Document Group'; + + // 1. Upload several documents + const documentPost1 = new DocumentPostRequest('./examples/_data/demo.pdf', 'document_1.pdf'); + const responseDocumentPost1 = await client.send(documentPost1); + const documentId1 = responseDocumentPost1.id; + + const documentPost2 = new DocumentPostRequest('./examples/_data/demo.pdf', 'document_2.pdf'); + const responseDocumentPost2 = await client.send(documentPost2); + const documentId2 = responseDocumentPost2.id; + + const documentGroupPost = new DocumentGroupPostRequest([documentId1, documentId2], documentGroupName); + const documentGroupResponse = await client.send(documentGroupPost); + + return documentGroupResponse; +} + +createDocumentGroup().then(displayResult).catch(displayResult); diff --git a/examples/documentGroup/downloadPost.ts b/examples/documentGroup/downloadPost.ts new file mode 100644 index 00000000..8d5419f7 --- /dev/null +++ b/examples/documentGroup/downloadPost.ts @@ -0,0 +1,21 @@ +import { DownloadDocumentGroupPost } from '../../src/api/documentGroup/request/downloadDocumentGroupPost'; +import { displayResult } from '../../src/core/error/displayResult'; +import { Sdk } from '../../src/core/sdk'; + +export async function downloadDocumentGroup(documentGroupId: string): Promise { + const sdk = await new Sdk().authenticate(); + const client = sdk.getClient(); + + const downloadDocumentGroup = new DownloadDocumentGroupPost( + documentGroupId, + 'merged', // type: 'merged' to combine all document PDFs into one, 'zip' for ZIP archive, etc. + 'no', // withHistory: 'yes' or 'no' for including document history + [] // documentOrder: optional array of document IDs to specify order + ); + + const response = await client.send(downloadDocumentGroup); + + return response; +} + +downloadDocumentGroup('a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6').then(displayResult).catch(displayResult); diff --git a/examples/documentGroupInvite/documentGroupInvitePost.ts b/examples/documentGroupInvite/documentGroupInvitePost.ts new file mode 100644 index 00000000..719cc559 --- /dev/null +++ b/examples/documentGroupInvite/documentGroupInvitePost.ts @@ -0,0 +1,105 @@ +import { DocumentPostRequest, DocumentPostResponse, DocumentPutRequest, DocumentPutResponse } from '../../src/api/document'; +import { DocumentGroupPost as DocumentGroupPostRequest } from '../../src/api/documentGroup/request/documentGroupPost'; +import { DocumentGroupPost as DocumentGroupPostResponse } from '../../src/api/documentGroup/response/documentGroupPost'; +import { GroupInvitePostRequest, GroupInvitePostResponse } from '../../src/api/documentGroupInvite'; +import { InviteStepInviteActionRequest } from '../../src/api/documentGroupInvite'; +import { InviteStepInviteStepRequest } from '../../src/api/documentGroupInvite'; +import { displayResult } from '../../src/core/error/displayResult'; +import { Sdk } from '../../src/core/sdk'; + +export async function sendDocumentGroupInvite(): Promise { + const sdk = await new Sdk().authenticate(); + const client = sdk.getClient(); + + // Source data + const signerEmail = 'signer@signnow.com'; + const signerRole = 'CTO'; + const documentGroupName = 'Contract Package'; + + // 1. Upload the first document + const documentPost1 = new DocumentPostRequest('./examples/_data/demo.pdf', 'agreement.pdf'); + const responseDocumentPost1 = await client.send(documentPost1); + const documentId1 = responseDocumentPost1.id; + + // 2. Add a field to the first document + const fieldDoc1 = { + x: 205, + y: 18, + width: 122, + height: 12, + type: 'text', + page_number: 0, + required: true, + role: signerRole, + name: 'text_field', + label: 'Decision reason' + }; + const documentPut1 = new DocumentPutRequest(documentId1, [fieldDoc1]); + await client.send(documentPut1); + + // 2. Upload the second document + const documentPost2 = new DocumentPostRequest('./examples/_data/demo.pdf', 'addendum.pdf'); + const responseDocumentPost2 = await client.send(documentPost2); + const documentId2 = responseDocumentPost2.id; + + // 3. Add a field to the second document + const fieldDoc2 = { + x: 205, + y: 18, + width: 122, + height: 12, + type: 'text', + page_number: 0, + required: true, + role: signerRole, + name: 'text_field', + label: 'Decision reason' + }; + const documentPut2 = new DocumentPutRequest(documentId2, [fieldDoc2]); + await client.send(documentPut2); + + // 4. Create a document group with the two documents + const documentGroupPost = new DocumentGroupPostRequest([documentId1, documentId2], documentGroupName); + const responseDocumentGroupPost = await client.send(documentGroupPost); + const documentGroupId = responseDocumentGroupPost.id; + + // 5. Define invite actions for the document group + const inviteActions: InviteStepInviteActionRequest[] = [ + { + email: signerEmail, + role_name: signerRole, + action: 'sign', + document_id: documentId1 + }, + { + email: signerEmail, + role_name: signerRole, + action: 'sign', + document_id: documentId2 + } + ]; + + // 6. Create invite steps + const inviteSteps: InviteStepInviteStepRequest[] = [ + { + order: 1, + invite_actions: inviteActions + } + ]; + + // 7. Optional CC recipients + const ccRecipients = ['cc_recipient@example.com']; + + // 8. Send the document group invitation + const groupInvitePost = new GroupInvitePostRequest( + documentGroupId, + inviteSteps, + ccRecipients + ); + + const response = await client.send(groupInvitePost); + + return response; +} + +sendDocumentGroupInvite().then(displayResult).catch(displayResult); diff --git a/examples/documentInvite/cancelFreeFormPut.ts b/examples/documentInvite/cancelFreeFormPut.ts new file mode 100644 index 00000000..515e4a72 --- /dev/null +++ b/examples/documentInvite/cancelFreeFormPut.ts @@ -0,0 +1,27 @@ +import { CancelFreeFormInvitePut } from '../../src/api/documentInvite/request/cancelFreeFormInvitePut'; +import { CancelFreeFormInvitePut as CancelFreeFormInvitePutResponse } from '../../src/api/documentInvite/response/cancelFreeFormInvitePut'; +import { Sdk } from '../../src/core/sdk'; +import { displayResult } from '../../src/core/error/displayResult'; + +export async function cancelFreeFormInvite(): Promise { + const sdk = await new Sdk().authenticate(); + const client = sdk.getClient(); + + // Source data: + // you can use inviteId = response.id + // when calling the example from ./freeForm.ts. + const inviteId = '12ed3bade98041ee92f9c43c3012ddefbdead045'; + const cancelReason = 'The invite was sent by mistake.'; + + // Cancel the free-form invite + const cancelFreeFormInvite = new CancelFreeFormInvitePut( + inviteId, + cancelReason + ); + + const response = await client.send(cancelFreeFormInvite); + + return response; +} + +cancelFreeFormInvite().then(displayResult).catch(displayResult); diff --git a/examples/documentInvite/fieldInvitePost.ts b/examples/documentInvite/fieldInvitePost.ts new file mode 100644 index 00000000..0cf3013b --- /dev/null +++ b/examples/documentInvite/fieldInvitePost.ts @@ -0,0 +1,68 @@ +import { DocumentPostRequest, DocumentPostResponse, DocumentGetRequest, DocumentGetResponse, DocumentPutRequest, DocumentPutResponse } from '../../src/api/document'; +import { SendInvitePost } from '../../src/api/documentInvite/request/sendInvitePost'; +import { SendInvitePost as SendInvitePostResponse } from '../../src/api/documentInvite/response/sendInvitePost'; +import { To } from '../../src/api/documentInvite/request/data/to'; +import { displayResult } from '../../src/core/error/displayResult'; +import { Sdk } from '../../src/core/sdk'; + +export async function sendFieldInvite(): Promise { + const sdk = await new Sdk().authenticate(); + const client = sdk.getClient(); + + // Source data + const senderEmail = 'sender@example.com'; + const signerEmail = 'signer@signnow.com'; + const signerRole = 'HR Manager'; + const emailSubject = 'You have got an invitation to sign the contact'; + const emailMessage = 'Please review and sign the attached document'; + + // 1. Upload the document + const documentPost = new DocumentPostRequest('./examples/_data/demo.pdf', 'test.pdf'); + const responseDocumentPost = await client.send(documentPost); + const documentId = responseDocumentPost.id; + + // 2. Add fields and roles to the document + const field = { + x: 205, + y: 18, + width: 122, + height: 12, + type: 'text', + page_number: 0, + required: true, + role: signerRole, + name: 'text_field', + label: 'Decision reason' + }; + const documentPut = new DocumentPutRequest(documentId, [field]); + await client.send(documentPut); + + // 3. Get the document by id to retrieve the roles IDs + const documentGet = new DocumentGetRequest(documentId); + const responseDocumentGet = await client.send(documentGet); + const roles = responseDocumentGet.roles; + + // 4. Send an invite for signature + const recipients: To[] = roles.map(role => ({ + email: signerEmail, + role: role.name, + role_id: role.unique_id, + order: parseInt(role.signing_order, 10), + subject: emailSubject, + message: emailMessage + })); + + const sendInviteRequest = new SendInvitePost( + documentId, + recipients, + senderEmail, + emailSubject, + emailMessage + ); + + const response = await client.send(sendInviteRequest); + + return response; +} + +sendFieldInvite().then(displayResult).catch(displayResult); diff --git a/examples/documentInvite/freeForm.ts b/examples/documentInvite/freeForm.ts new file mode 100644 index 00000000..e69de29b diff --git a/examples/documentInvite/freeFormPost.ts b/examples/documentInvite/freeFormPost.ts new file mode 100644 index 00000000..132aa4fc --- /dev/null +++ b/examples/documentInvite/freeFormPost.ts @@ -0,0 +1,31 @@ +import { DocumentPostRequest, DocumentPostResponse } from '../../src/api/document'; +import { FreeFormInvitePost } from '../../src/api/documentInvite/request/freeFormInvitePost'; +import { FreeFormInvitePost as FreeFormInvitePostResponse } from '../../src/api/documentInvite/response/freeFormInvitePost'; +import { displayResult } from '../../src/core/error/displayResult'; +import { Sdk } from '../../src/core/sdk'; + +export async function sendFreeFormInvite(): Promise { + const sdk = await new Sdk().authenticate(); + const client = sdk.getClient(); + + const senderEmail = 'sender@signnow.com'; + const recipientEmail = 'recipient@signnow.com'; + + // 1. Upload the document + const documentPost = new DocumentPostRequest('./examples/_data/demo.pdf', 'test.pdf'); + const responseDocumentPost = await client.send(documentPost); + const documentId = responseDocumentPost.id; + + // 2. Send a free-form invite + const freeFormInvite = new FreeFormInvitePost( + documentId, + recipientEmail, + senderEmail + ); + + const response = await client.send(freeFormInvite); + + return response; +} + +sendFreeFormInvite().then(displayResult).catch(displayResult); diff --git a/examples/documentInvite/signingLinkPost.ts b/examples/documentInvite/signingLinkPost.ts new file mode 100644 index 00000000..04fd6fbf --- /dev/null +++ b/examples/documentInvite/signingLinkPost.ts @@ -0,0 +1,47 @@ +import { DocumentPostRequest, DocumentPostResponse, DocumentPutRequest, DocumentPutResponse } from '../../src/api/document'; +import { displayResult } from '../../src/core/error/displayResult'; +import { SigningLinkPost } from '../../src/api/documentInvite/request/signingLinkPost'; +import { SigningLinkPost as SigningLinkPostResponse } from '../../src/api/documentInvite/response/signingLinkPost'; +import { Sdk } from '../../src/core/sdk'; + +export async function createSigningLink(): Promise { + const sdk = await new Sdk().authenticate(); + const client = sdk.getClient(); + + // Source data + const redirectUri = 'https://www.example.com/after-signing'; + const signerRole = 'Manager'; + + // 1. Upload the document + const documentPost = new DocumentPostRequest('./examples/_data/demo.pdf', 'test.pdf'); + const responseDocumentPost = await client.send(documentPost); + const documentId = responseDocumentPost.id; + + // 2. Add fields and roles to the document + const field = { + x: 205, + y: 18, + width: 122, + height: 12, + type: 'text', + page_number: 0, + required: true, + role: signerRole, + name: 'text_field', + label: 'Decision reason' + }; + const documentPut = new DocumentPutRequest(documentId, [field]); + await client.send(documentPut); + + // 3. Generate a signing link for the document + const signingLinkPost = new SigningLinkPost( + documentId, + redirectUri + ); + + const response = await client.send(signingLinkPost); + + return response; +} + +createSigningLink().then(displayResult).catch(displayResult); diff --git a/examples/embeddedEditor/documentEditorPost.ts b/examples/embeddedEditor/documentEditorPost.ts new file mode 100644 index 00000000..639dd245 --- /dev/null +++ b/examples/embeddedEditor/documentEditorPost.ts @@ -0,0 +1,34 @@ +import { DocumentPostRequest, DocumentPostResponse } from '../../src/api/document'; +import { DocumentEmbeddedEditorLinkPost } from '../../src/api/embeddedEditor/request/documentEmbeddedEditorLinkPost'; +import { DocumentEmbeddedEditorLinkPost as DocumentEmbeddedEditorLinkPostResponse } from '../../src/api/embeddedEditor/response/documentEmbeddedEditorLinkPost'; +import { displayResult } from '../../src/core/error/displayResult'; +import { Sdk } from '../../src/core/sdk'; + +export async function createEmbeddedEditorLink(): Promise { + const sdk = await new Sdk().authenticate(); + const client = sdk.getClient(); + + // Source data + const redirectUri = 'https://signnow.com'; // Redirect URI after the document is signed + const redirectTarget = 'self'; // Target for the redirect: 'self'|'blank' + const linkExpiration = 15; // Link will expire in 15 minutes + + // 1. Upload the document + const documentPost = new DocumentPostRequest('./examples/_data/demo.pdf', 'contract.pdf'); + const responseDocumentPost = await client.send(documentPost); + const documentId = responseDocumentPost.id; + + // 2. Create a link to embedded editor for the document + const editorRequest = new DocumentEmbeddedEditorLinkPost( + documentId, + redirectUri, + redirectTarget, + linkExpiration + ); + + const response = await client.send(editorRequest); + + return response; +} + +createEmbeddedEditorLink().then(displayResult).catch(displayResult); diff --git a/examples/embeddedEditor/documentGroupEditorPost.ts b/examples/embeddedEditor/documentGroupEditorPost.ts new file mode 100644 index 00000000..514b7b66 --- /dev/null +++ b/examples/embeddedEditor/documentGroupEditorPost.ts @@ -0,0 +1,50 @@ +import { DocumentPostRequest, DocumentPostResponse } from '../../src/api/document'; +import { DocumentGroupPost } from '../../src/api/documentGroup/request/documentGroupPost'; +import { DocumentGroupPost as DocumentGroupPostResponse } from '../../src/api/documentGroup/response/documentGroupPost'; +import { DocumentGroupEmbeddedEditorLinkPost } from '../../src/api/embeddedEditor/request/documentGroupEmbeddedEditorLinkPost'; +import { DocumentGroupEmbeddedEditorLinkPost as DocumentGroupEmbeddedEditorLinkPostResponse } from '../../src/api/embeddedEditor/response/documentGroupEmbeddedEditorLinkPost'; +import { displayResult } from '../../src/core/error/displayResult'; +import { Sdk } from '../../src/core/sdk'; + +export async function createDocumentGroupEmbeddedEditorLink(): Promise { + const sdk = await new Sdk().authenticate(); + const client = sdk.getClient(); + + // Source data + const groupName = 'Embedded Invite Document Group'; + const redirectUri = 'https://example.com/document-group-completed'; // Redirect URI after the document group is signed + const redirectTarget = 'self'; + const linkExpiration = 15; // Link will expire in 15 minutes + + // 1. Upload first document + const documentPost1 = new DocumentPostRequest('./examples/_data/demo.pdf', 'contract1.pdf'); + const documentResponse1 = await client.send(documentPost1); + const documentId1 = documentResponse1.id; + + // 2. Upload second document + const documentPost2 = new DocumentPostRequest('./examples/_data/demo.pdf', 'contract2.pdf'); + const documentResponse2 = await client.send(documentPost2); + const documentId2 = documentResponse2.id; + + // 3. Create document group + const documentGroupPost = new DocumentGroupPost( + [documentId1, documentId2], + groupName + ); + const documentGroupResponse = await client.send(documentGroupPost); + const groupId = documentGroupResponse.id; + + // 4. Create a link to embedded editor for the document group + const editorRequest = new DocumentGroupEmbeddedEditorLinkPost( + groupId, + redirectUri, + redirectTarget, + linkExpiration + ); + + const response = await client.send(editorRequest); + + return response; +} + +createDocumentGroupEmbeddedEditorLink().then(displayResult).catch(displayResult); diff --git a/examples/embeddedInvite/embeddedDocumentGroupInvite.ts b/examples/embeddedInvite/embeddedDocumentGroupInvite.ts new file mode 100644 index 00000000..f91aeef6 --- /dev/null +++ b/examples/embeddedInvite/embeddedDocumentGroupInvite.ts @@ -0,0 +1,140 @@ +import { DocumentPostRequest, DocumentPostResponse, DocumentPutRequest, DocumentPutResponse } from '../../src/api/document'; +import { Sdk } from '../../src/core/sdk'; +import { displayResult } from '../../src/core/error/displayResult'; +import { Invite } from '../../src/api/embeddedGroupInvite/request/data/invite/invite'; +import { Document } from '../../src/api/embeddedGroupInvite/request/data/invite/document'; +import { Signer } from '../../src/api/embeddedGroupInvite/request/data/invite/signer'; +import { GroupInvitePost as EmbeddedGroupInvitePostRequest } from '../../src/api/embeddedGroupInvite/request/groupInvitePost'; +import { GroupInvitePost as EmbeddedGroupInvitePostResponse } from '../../src/api/embeddedGroupInvite/response/groupInvitePost'; +import { DocumentGroupPost as DocumentGroupPostRequest } from '../../src/api/documentGroup/request/documentGroupPost'; +import { DocumentGroupPost as DocumentGroupPostResponse } from '../../src/api/documentGroup/response/documentGroupPost'; + +export async function createEmbeddedDocumentGroupInvite(): Promise { + const sdk = await new Sdk().authenticate(); + const client = sdk.getClient(); + + // Source data + const documentGroupName = 'Test Document Group'; + const signers = [{ + email: 'signer1@signnow.com', + role: 'Manager', + first_name: 'John', + last_name: 'Doe', + redirect_uri: 'https://www.example.com/after-signing' + }, { + email: 'signer2@signnow.com', + role: 'Department Head', + first_name: 'María', + last_name: 'Fernández' + }]; + + // 1. Upload documents for a group invite + const documentPost1 = new DocumentPostRequest('./examples/_data/demo.pdf', 'first_document.pdf'); + const documentResponse1 = await client.send(documentPost1); + const documentId1 = documentResponse1.id; + + const documentPost2 = new DocumentPostRequest('./examples/_data/demo.pdf', 'second_document.pdf'); + const documentResponse2 = await client.send(documentPost2); + const documentId2 = documentResponse2.id; + + // 2. Add fields and roles to both documents + const field1Doc1 = { + x: 205, + y: 18, + width: 122, + height: 12, + type: 'text', + page_number: 0, + required: true, + role: signers[0].role, + name: 'text_field_1', + label: 'First Document Field 1' + }; + const documentPut1 = new DocumentPutRequest(documentId1, [field1Doc1]); + await client.send(documentPut1); + + const field1Doc2 = { + x: 205, + y: 100, + width: 122, + height: 12, + type: 'text', + page_number: 0, + required: true, + role: signers[1].role, + name: 'text_field_1', + label: 'Second Document Field 1' + }; + const documentPut2 = new DocumentPutRequest(documentId2, [field1Doc2]); + await client.send(documentPut2); + + // 3. Create a document group of the uploaded documents + const documentGroupPost = new DocumentGroupPostRequest([documentId1, documentId2], documentGroupName); + const documentGroupResponse = await client.send(documentGroupPost); + const documentGroupId = documentGroupResponse.id; + + // 3. Create embedded group invite + const documentsSinger1: Document[] = [ + { + id: documentId1, + role: signers[0].role, + action: 'sign' + } + ]; + + const embeddedSigners1: Signer[] = [ + { + email: signers[0].email, + auth_method: 'none', // No authentication required + documents: documentsSinger1, + first_name: signers[0].first_name, + last_name: signers[0].last_name, + language: 'en', + redirect_uri: signers[0].redirect_uri, + redirect_target: 'blank' + } + ]; + + const documentsSinger2: Document[] = [ + { + id: documentId2, + role: signers[1].role, + action: 'sign' + } + ]; + + const embeddedSigners2: Signer[] = [ + { + email: signers[1].email, + auth_method: 'none', // No authentication required + documents: documentsSinger2, + first_name: signers[1].first_name, + last_name: signers[1].last_name, + language: 'es' + } + ]; + + // Define invites with order + const invites: Invite[] = [ + { + order: 1, + signers: embeddedSigners1 + }, + { + order: 2, + signers: embeddedSigners2 + } + ]; + + const embeddedGroupInviteRequest = new EmbeddedGroupInvitePostRequest( + documentGroupId, + invites, + true // sign_as_merged + ); + + const response = await client.send(embeddedGroupInviteRequest); + + return response; +} + +createEmbeddedDocumentGroupInvite().then(displayResult).catch(displayResult); diff --git a/examples/embeddedInvite/embeddedDocumentInvite.ts b/examples/embeddedInvite/embeddedDocumentInvite.ts new file mode 100644 index 00000000..eed368a5 --- /dev/null +++ b/examples/embeddedInvite/embeddedDocumentInvite.ts @@ -0,0 +1,97 @@ +import { DocumentGetRequest, DocumentGetResponse, DocumentPostRequest, DocumentPostResponse, DocumentPutRequest, DocumentPutResponse } from '../../src/api/document'; +import { DocumentInvitePostRequest, DocumentInvitePostResponse, InviteRequest } from '../../src/api/embeddedInvite'; +import { displayResult } from '../../src/core/error/displayResult'; +import { Sdk } from '../../src/core/sdk'; + +export async function createEmbeddedInvite(): Promise { + const sdk = await new Sdk().authenticate(); + const client = sdk.getClient(); + + // Source data + // signer names are optional + const signers = [{ + email: 'signer1@signnow.com', + role: 'Engineer', + first_name: 'John', + last_name: 'Doe' + }, { + email: 'signer2@signnow.com', + role: 'Accountant', + first_name: 'Jane', + last_name: 'Smith' + }]; + + // 1. Upload document + const documentPost = new DocumentPostRequest('./examples/_data/demo.pdf', 'document_to_sign.pdf'); + const responseDocumentPost = await client.send(documentPost); + const documentId = responseDocumentPost.id; + + // 2. Add fields and roles to the document + const fieldForRole1 = { + x: 205, + y: 18, + width: 122, + height: 12, + type: 'text', + page_number: 0, + required: true, + role: signers[0].role, + name: 'text_field_engineer', + label: 'Engineer decision' + }; + const fieldForRole2 = { + x: 205, + y: 36, + width: 122, + height: 12, + type: 'text', + page_number: 0, + required: true, + role: signers[1].role, + name: 'text_field_accountant', + label: 'Accountant decision' + }; + const documentPut = new DocumentPutRequest(documentId, [fieldForRole1, fieldForRole2]); + await client.send(documentPut); + + // 3. Get the document by id to retrieve the roles IDs + const documentGet = new DocumentGetRequest(documentId); + const responseDocumentGet = await client.send(documentGet); + const roleIds = responseDocumentGet.roles.map(role => role.unique_id); + + // 4. Create embedded invite + // Define the invitees with their roles and settings + const invites: InviteRequest[] = [ + { + email: signers[0].email, + role_id: roleIds[0], // Use the first role ID from the document + order: 1, + auth_method: 'none', // No authentication required + first_name: signers[0].first_name, + last_name: signers[0].last_name + }, + { + email: signers[1].email, + role_id: roleIds[1], // Use the second role ID from the document + order: 2, + auth_method: 'password', // Password authentication + first_name: signers[1].first_name, + last_name: signers[1].last_name, + authentication: { + password: 'just.not.12345', // Password for authentication + type: 'password' + } + } + ]; + + const embeddedInviteRequest = new DocumentInvitePostRequest( + documentId, + invites + ); + + const response = await client.send(embeddedInviteRequest); + + return response; +} + +createEmbeddedInvite().then(displayResult).catch(displayResult); diff --git a/examples/embeddedSending/documentGroupSending.ts b/examples/embeddedSending/documentGroupSending.ts new file mode 100644 index 00000000..884cc935 --- /dev/null +++ b/examples/embeddedSending/documentGroupSending.ts @@ -0,0 +1,79 @@ +import { DocumentPostRequest, DocumentPostResponse, DocumentPutRequest, DocumentPutResponse } from '../../src/api/document'; +import { DocumentGroupPost as DocumentGroupPostRequest } from '../../src/api/documentGroup/request/documentGroupPost'; +import { DocumentGroupPost as DocumentGroupPostResponse } from '../../src/api/documentGroup/response/documentGroupPost'; +import { DocumentGroupEmbeddedSendingLinkPost as DocumentGroupEmbeddedSendingLinkPostRequest } from '../../src/api/embeddedSending/request/documentGroupEmbeddedSendingLinkPost'; +import { DocumentGroupEmbeddedSendingLinkPost as DocumentGroupEmbeddedSendingLinkPostResponse } from '../../src/api/embeddedSending/response/documentGroupEmbeddedSendingLinkPost'; +import { displayResult } from '../../src/core/error/displayResult'; +import { Sdk } from '../../src/core/sdk'; + +export async function createEmbeddedDocumentGroupSending(): Promise { + const sdk = await new Sdk().authenticate(); + const client = sdk.getClient(); + + // Source data + const documentGroupName = 'Embedded Sending Document Group'; + const signerRole1 = 'Manager'; + const signerRole2 = 'Accountant'; + const redirectUri = 'https://www.example.com/group-sending-completed'; + const linkExpiration = 30; // Link expiration time in minutes (0 means no expiration) + const redirectTarget = 'blank'; + + // 1. Upload documents for a group + const documentPost1 = new DocumentPostRequest('./examples/_data/demo.pdf', 'first_document.pdf'); + const documentResponse1 = await client.send(documentPost1); + const documentId1 = documentResponse1.id; + + const documentPost2 = new DocumentPostRequest('./examples/_data/demo.pdf', 'second_document.pdf'); + const documentResponse2 = await client.send(documentPost2); + const documentId2 = documentResponse2.id; + + // 2. Add fields to both documents + const field1Doc1 = { + x: 205, + y: 18, + width: 122, + height: 12, + type: 'text', + page_number: 0, + required: true, + role: signerRole1, + name: 'text_field_1', + label: 'First Document Field' + }; + const documentPut1 = new DocumentPutRequest(documentId1, [field1Doc1]); + await client.send(documentPut1); + + const field1Doc2 = { + x: 205, + y: 100, + width: 122, + height: 12, + type: 'text', + page_number: 0, + required: true, + role: signerRole2, + name: 'text_field_1', + label: 'Second Document Field' + }; + const documentPut2 = new DocumentPutRequest(documentId2, [field1Doc2]); + await client.send(documentPut2); + + // 3. Create a document group of the uploaded documents + const documentGroupPost = new DocumentGroupPostRequest([documentId1, documentId2], documentGroupName); + const documentGroupResponse = await client.send(documentGroupPost); + const documentGroupId = documentGroupResponse.id; + + // 4. Create embedded sending link for the document group + const embeddedGroupSendingRequest = new DocumentGroupEmbeddedSendingLinkPostRequest( + documentGroupId, + redirectUri, + linkExpiration, + redirectTarget + ); + + const response = await client.send(embeddedGroupSendingRequest); + + return response; +} + +createEmbeddedDocumentGroupSending().then(displayResult).catch(displayResult); diff --git a/examples/embeddedSending/documentSending.ts b/examples/embeddedSending/documentSending.ts new file mode 100644 index 00000000..680135d2 --- /dev/null +++ b/examples/embeddedSending/documentSending.ts @@ -0,0 +1,67 @@ +import { DocumentPostRequest, DocumentPostResponse, DocumentPutRequest, DocumentPutResponse } from '../../src/api/document'; +import { DocumentEmbeddedSendingLinkPost as DocumentEmbeddedSendingLinkPostRequest } from '../../src/api/embeddedSending/request/documentEmbeddedSendingLinkPost'; +import { DocumentGroupEmbeddedSendingLinkPost as DocumentGroupEmbeddedSendingLinkPostResponse } from '../../src/api/embeddedSending/response/documentGroupEmbeddedSendingLinkPost'; +import { displayResult } from '../../src/core/error/displayResult'; +import { Sdk } from '../../src/core/sdk'; + +export async function createEmbeddedDocumentSending(): Promise { + const sdk = await new Sdk().authenticate(); + const client = sdk.getClient(); + + // Source data + const signerRole = 'Manager'; + const redirectUri = 'https://www.example.com/sending-completed'; // URL to redirect after signing + const redirectTarget = 'blank'; + const sendingType = 'invite'; + const linkExpiration = 15; // Link expiration time in minutes (0 means no expiration) + + // 1. Upload document + const documentPost = new DocumentPostRequest('./examples/_data/demo.pdf', 'document_to_send.pdf'); + const responseDocumentPost = await client.send(documentPost); + const documentId = responseDocumentPost.id; + + // 2. Add fields to the document + const field1 = { + x: 205, + y: 20, + width: 150, + height: 14, + type: 'text', + page_number: 0, + required: true, + role: signerRole, + name: 'text_field_1', + label: 'Enter your name' + }; + + const field2 = { + x: 205, + y: 60, + width: 150, + height: 14, + type: 'signature', + page_number: 0, + required: true, + role: signerRole, + name: 'signature_field_1', + label: 'Sign here' + }; + + const documentPut = new DocumentPutRequest(documentId, [field1, field2]); + await client.send(documentPut); + + // 3. Create embedded sending link + const embeddedSendingRequest = new DocumentEmbeddedSendingLinkPostRequest( + documentId, + sendingType, + redirectUri, + linkExpiration, + redirectTarget + ); + + const response = await client.send(embeddedSendingRequest); + + return response; +} + +createEmbeddedDocumentSending().then(displayResult).catch(displayResult); diff --git a/examples/template/bulkInvitePost.ts b/examples/template/bulkInvitePost.ts new file mode 100644 index 00000000..a715809b --- /dev/null +++ b/examples/template/bulkInvitePost.ts @@ -0,0 +1,65 @@ +import { Field } from '../../src/api/document/request/data/field'; +import { DocumentGet as DocumentGetRequest } from '../../src/api/document/request/documentGet'; +import { DocumentPost as DocumentPostRequest } from '../../src/api/document/request/documentPost'; +import { DocumentPut as DocumentPutRequest } from '../../src/api/document/request/documentPut'; +import { DocumentGet as DocumentGetResponse } from '../../src/api/document/response/documentGet'; +import { DocumentPost as DocumentPostResponse } from '../../src/api/document/response/documentPost'; +import { DocumentPut as DocumentPutResponse } from '../../src/api/document/response/documentPut'; +import { BulkInvitePost as BulkInvitePostRequest } from '../../src/api/template/request/bulkInvitePost'; +import { TemplatePost as TemplatePostRequest } from '../../src/api/template/request/templatePost'; +import { BulkInvitePost as BulkInvitePostResponse } from '../../src/api/template/response/bulkInvitePost'; +import { TemplatePost as TemplatePostResponse } from '../../src/api/template/response/templatePost'; +import { Sdk } from '../../src/core/sdk'; + +export async function postBulkInvite(): Promise { + const sdk = await new Sdk().authenticate(); + const client = sdk.getClient(); + + /** + * Upload a document. + */ + const documentPost = new DocumentPostRequest('./examples/_data/demo.pdf'); + const documentPostResponse = await client.send(documentPost); + + /** + * Add a field to the document. + */ + const fields: Field[] = [{ + x: 358, + y: 171, + width: 177, + height: 50, + type: 'signature', + page_number: 0, + required: true, + role: 'Recipient 1' + }]; + const documentPut = new DocumentPutRequest(documentPostResponse.id, fields); + await client.send(documentPut); + + /** + * Get document information to retrieve the Documents folder. + */ + const documentGet = new DocumentGetRequest(documentPostResponse.id); + const documentGetResponse = await client.send(documentGet); + + /** + * Create a template from document. + */ + const templatePost = new TemplatePostRequest(documentPostResponse.id, 'demo.pdf'); + const templatePostResponse = await client.send(templatePost); + + /** + * Create multiple invites to different signers from one template + */ + const bulkInvitePost = new BulkInvitePostRequest( + templatePostResponse.id, + './examples/_data/bulk_invite.csv', + documentGetResponse.parent_id + ); + const response = await client.send(bulkInvitePost); + + return response; +} + +postBulkInvite().then(console.log, console.error); diff --git a/examples/template/cloneTemplatePost.ts b/examples/template/cloneTemplatePost.ts new file mode 100644 index 00000000..52797a63 --- /dev/null +++ b/examples/template/cloneTemplatePost.ts @@ -0,0 +1,34 @@ +import { DocumentPost as DocumentPostRequest } from '../../src/api/document/request/documentPost'; +import { DocumentPost as DocumentPostResponse } from '../../src/api/document/response/documentPost'; +import { CloneTemplatePost as CloneTemplatePostRequest } from '../../src/api/template/request/cloneTemplatePost'; +import { TemplatePost as TemplatePostRequest } from '../../src/api/template/request/templatePost'; +import { CloneTemplatePost as CloneTemplatePostResponse } from '../../src/api/template/response/cloneTemplatePost'; +import { TemplatePost as TemplatePostResponse } from '../../src/api/template/response/templatePost'; +import { Sdk } from '../../src/core/sdk'; + +export async function postTemplateCopy(): Promise { + const sdk = await new Sdk().authenticate(); + const client = sdk.getClient(); + + /** + * Upload a document. + */ + const documentPost = new DocumentPostRequest('./examples/_data/demo.pdf'); + const documentPostResponse = await client.send(documentPost); + + /** + * Create a template from document. + */ + const templatePost = new TemplatePostRequest(documentPostResponse.id, 'demo-template.pdf'); + const templatePostResponse = await client.send(templatePost); + + /** + * Create a document from a template. + */ + const templateCopyPost = new CloneTemplatePostRequest(templatePostResponse.id, 'demo-template-copy.pdf'); + const response = await client.send(templateCopyPost); + + return response; +} + +postTemplateCopy().then(console.log, console.error); diff --git a/examples/template/routingDetailsGet.ts b/examples/template/routingDetailsGet.ts new file mode 100644 index 00000000..b2b46d85 --- /dev/null +++ b/examples/template/routingDetailsGet.ts @@ -0,0 +1,53 @@ +import { Field } from '../../src/api/document/request/data/field'; +import { DocumentPost as DocumentPostRequest } from '../../src/api/document/request/documentPost'; +import { DocumentPut as DocumentPutRequest } from '../../src/api/document/request/documentPut'; +import { DocumentPost as DocumentPostResponse } from '../../src/api/document/response/documentPost'; +import { DocumentPut as DocumentPutResponse } from '../../src/api/document/response/documentPut'; +import { RoutingDetailsGet as RoutingDetailsGetRequest } from '../../src/api/template/request/routingDetailsGet'; +import { RoutingDetailsPost as RoutingDetailsPostRequest } from '../../src/api/template/request/routingDetailsPost'; +import { RoutingDetailsGet as RoutingDetailsGetResponse } from '../../src/api/template/response/routingDetailsGet'; +import { RoutingDetailsPost as RoutingDetailsPostResponse } from '../../src/api/template/response/routingDetailsPost'; +import { Sdk } from '../../src/core/sdk'; + +export async function getRoutingDetails(): Promise { + const sdk = await new Sdk().authenticate(); + const client = sdk.getClient(); + + /** + * Upload a document. + */ + const documentPost = new DocumentPostRequest('./examples/_data/demo.pdf'); + const documentPostResponse = await client.send(documentPost); + + /** + * Add a field to the document. + */ + const fields: Field[] = [{ + x: 358, + y: 171, + width: 177, + height: 50, + type: 'signature', + page_number: 0, + required: true, + role: 'Signer 1' + }]; + const documentPut = new DocumentPutRequest(documentPostResponse.id, fields); + await client.send(documentPut); + + /** + * Create routing details for the document. + */ + const routingDetailsPost = new RoutingDetailsPostRequest(documentPostResponse.id); + await client.send(routingDetailsPost); + + /** + * Get routing details for the document. + */ + const routingDetailsGet = new RoutingDetailsGetRequest(documentPostResponse.id); + const response = await client.send(routingDetailsGet); + + return response; +} + +getRoutingDetails().then(console.log, console.error); diff --git a/examples/template/routingDetailsPost.ts b/examples/template/routingDetailsPost.ts new file mode 100644 index 00000000..354925c2 --- /dev/null +++ b/examples/template/routingDetailsPost.ts @@ -0,0 +1,26 @@ +import { DocumentPost as DocumentPostRequest } from '../../src/api/document/request/documentPost'; +import { DocumentPost as DocumentPostResponse } from '../../src/api/document/response/documentPost'; +import { RoutingDetailsPost as RoutingDetailsPostRequest } from '../../src/api/template/request/routingDetailsPost'; +import { RoutingDetailsPost as RoutingDetailsPostResponse } from '../../src/api/template/response/routingDetailsPost'; +import { Sdk } from '../../src/core/sdk'; + +export async function postRoutingDetails(): Promise { + const sdk = await new Sdk().authenticate(); + const client = sdk.getClient(); + + /** + * Upload a document. + */ + const documentPost = new DocumentPostRequest('./examples/_data/demo.pdf'); + const documentPostResponse = await client.send(documentPost); + + /** + * Create routing details for the document. + */ + const routingDetailsPost = new RoutingDetailsPostRequest(documentPostResponse.id); + const response = await client.send(routingDetailsPost); + + return response; +} + +postRoutingDetails().then(console.log, console.error); diff --git a/examples/template/routingDetailsPut.ts b/examples/template/routingDetailsPut.ts new file mode 100644 index 00000000..cc77d1c6 --- /dev/null +++ b/examples/template/routingDetailsPut.ts @@ -0,0 +1,26 @@ +import { DocumentPost as DocumentPostRequest } from '../../src/api/document/request/documentPost'; +import { DocumentPost as DocumentPostResponse } from '../../src/api/document/response/documentPost'; +import { RoutingDetailsPut as RoutingDetailsPutRequest } from '../../src/api/template/request/routingDetailsPut'; +import { RoutingDetailsPut as RoutingDetailsPutResponse } from '../../src/api/template/response/routingDetailsPut'; +import { Sdk } from '../../src/core/sdk'; + +export async function putRoutingDetails(): Promise { + const sdk = await new Sdk().authenticate(); + const client = sdk.getClient(); + + /** + * Upload a document. + */ + const documentPost = new DocumentPostRequest('./examples/_data/demo.pdf'); + const documentPostResponse = await client.send(documentPost); + + /** + * Update routing details for the document. + */ + const routingDetailsPut = new RoutingDetailsPutRequest(documentPostResponse.id); + const response = await client.send(routingDetailsPut); + + return response; +} + +putRoutingDetails().then(console.log, console.error); diff --git a/examples/template/templatePost.ts b/examples/template/templatePost.ts new file mode 100644 index 00000000..2835ae11 --- /dev/null +++ b/examples/template/templatePost.ts @@ -0,0 +1,26 @@ +import { DocumentPost as DocumentPostRequest } from '../../src/api/document/request/documentPost'; +import { DocumentPost as DocumentPostResponse } from '../../src/api/document/response/documentPost'; +import { TemplatePost as TemplatePostRequest } from '../../src/api/template/request/templatePost'; +import { TemplatePost as TemplatePostResponse } from '../../src/api/template/response/templatePost'; +import { Sdk } from '../../src/core/sdk'; + +export async function postTemplate(): Promise { + const sdk = await new Sdk().authenticate(); + const client = sdk.getClient(); + + /** + * Upload a document. + */ + const documentPost = new DocumentPostRequest('./examples/_data/demo.pdf'); + const documentPostResponse = await client.send(documentPost); + + /** + * Create a template from document. + */ + const templatePost = new TemplatePostRequest(documentPostResponse.id, 'demo.pdf'); + const response = await client.send(templatePost); + + return response; +} + +postTemplate().then(console.log, console.error); diff --git a/examples/user/userGet.ts b/examples/user/userGet.ts new file mode 100644 index 00000000..62c58f38 --- /dev/null +++ b/examples/user/userGet.ts @@ -0,0 +1,14 @@ +import { UserGetRequest, UserGetResponse } from '../../src/api/user'; +import { Sdk } from '../../src/core/sdk'; + +export async function getUser(): Promise { + const sdk = await new Sdk().authenticate(); + const client = sdk.getClient(); + + const userGetRequest = new UserGetRequest(); + const response = await client.send(userGetRequest); + + return response; +} + +getUser().then(console.log, console.error); diff --git a/examples/webhook/subscriptionGet.ts b/examples/webhook/subscriptionGet.ts new file mode 100644 index 00000000..6fab0c43 --- /dev/null +++ b/examples/webhook/subscriptionGet.ts @@ -0,0 +1,15 @@ +import { SubscriptionGet } from '../../src/api/webhook/request/subscriptionGet'; +import { SubscriptionGet as SubscriptionGetResponse } from '../../src/api/webhook/response/subscriptionGet'; +import { displayResult } from '../../src/core/error/displayResult'; +import { Sdk } from '../../src/core/sdk'; + +export async function getWebhookSubscriptions(): Promise { + const sdk = await new Sdk().authenticate(); + const client = sdk.getClient(); + + const subscriptionRequest = new SubscriptionGet(); + const response = await client.send(subscriptionRequest); + return response; +} + +getWebhookSubscriptions().then(displayResult).catch(displayResult); diff --git a/examples/webhook/subscriptionPost.ts b/examples/webhook/subscriptionPost.ts new file mode 100644 index 00000000..48a80e2e --- /dev/null +++ b/examples/webhook/subscriptionPost.ts @@ -0,0 +1,30 @@ +import { SubscriptionPost } from '../../src/api/webhook/request/subscriptionPost'; +import { displayResult } from '../../src/core/error/displayResult'; +import { Sdk } from '../../src/core/sdk'; +import { SubscriptionPost as SubscriptionPostResponse } from '../../src/api/webhook/response/subscriptionPost'; + +export async function createWebhookSubscription(): Promise { + const sdk = await new Sdk().authenticate(); + const client = sdk.getClient(); + + // Source data + const event = 'user.document.open'; + const userId = 'f9e2e54a7dfa85818d6fc2b4a5425675e15d3403';// '6612b8e9ea3e4fe8aa997ea4ab43619e56a32692'; // document id or user id + const action = 'callback'; + const attributes = { + callback: 'https://demo.requestcatcher.com/4', // your callback url + use_tls_12: false, + }; + + const subscriptionRequest = new SubscriptionPost( + event, + userId, + action, + attributes + ); + + const response = await client.send(subscriptionRequest); + return response; +} + +createWebhookSubscription().then(displayResult).catch(displayResult); diff --git a/jest.config.ts b/jest.config.ts new file mode 100644 index 00000000..bc74f877 --- /dev/null +++ b/jest.config.ts @@ -0,0 +1,14 @@ +const config = { + testEnvironment: 'node', + testMatch: ['/tests/**/*.test.[jt]s?(x)'], + setupFiles: ['dotenv/config'], + preset: 'ts-jest/presets/default-esm', // or other ESM presets + moduleNameMapper: { + '^(\\.{1,2}/.*)\\.js$': '$1', + }, + transform: { + '^.+.tsx?$': ['ts-jest', {}], + }, +}; + +export default config; diff --git a/lib/common/index.js b/lib/common/index.js deleted file mode 100644 index 8fae1692..00000000 --- a/lib/common/index.js +++ /dev/null @@ -1,294 +0,0 @@ -'use strict'; -const { - type: OSType, - release: OSVersion, - platform, - arch, -} = require('os'); -const { extname } = require('path'); -const { getEnvConfig } = require('../../config'); -const { - version: clientVersion, - clientName, -} = require('../../package.json'); - -const NOT_CONTENT_STATUS_CODE = 204; - -const acceptedDocumentExtensions = [ - 'doc', - 'docx', - 'pdf', - 'odt', - 'rtf', - 'xml', - 'xls', - 'xlsx', - 'ppt', - 'pptx', - 'png', - 'jpg', - 'jpeg', - 'gif', - 'bmp', -]; - -const fileExtensionsToMimeTypesMap = { - doc: 'application/msword', - docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', - pdf: 'application/pdf', - odt: 'application/vnd.oasis.opendocument.text', - rtf: 'application/rtf', - xml: 'application/xml', - xls: 'application/vnd.ms-excel', - xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', - ppt: 'application/vnd.ms-powerpoint', - pptx: 'application/vnd.openxmlformats-officedocument.presentationml.presentation', - png: 'image/png', - jpg: 'image/jpeg', - jpeg: 'image/jpeg', - gif: 'image/gif', - bmp: 'image/bmp', - csv: 'text/csv', -}; - -const responseHandler = callback => res => { - let rawData = ''; - const { statusCode } = res; - res - .setEncoding('binary') - .on('data', chunk => { - rawData += chunk; - }) - .on('end', () => { - let parsedData = ''; - let errors = ''; - - try { - const utf8data = rawData.toString('utf8'); - parsedData = statusCode === NOT_CONTENT_STATUS_CODE - ? { status: 'success' } - : JSON.parse(utf8data); - errors = parsedData.errors || parsedData.error || parsedData.message || parsedData['404'] || null; - } catch (e) { - parsedData = null; - } - - if (callback) { - callback(errors, !errors && (parsedData || rawData) || null); - return; - } - }); -}; - -const errorHandler = callback => err => { - if (typeof callback === 'function') { - return callback(err.message); - } -}; - -/** - * Composes user agent string in format: - * / ( ; ; ) / - * @return {string} - */ -const getUserAgent = () => { - const { version: runtimeVersion } = process; - return `${clientName}/v${clientVersion} (${OSType()} ${OSVersion()}; ${platform()}; ${arch()}) node/${runtimeVersion}`; -}; - -/** - * @type {string} - */ -let basicCredentials; - -/** - * @return {string} - */ -const getCredentials = () => basicCredentials; - -/** - * @return {string} - */ -const setCredentials = credentials => { - return basicCredentials = credentials; -}; - -/** - * Build Request authorization settings - * @typedef {Object} BuildRequestAuthorization - * @property {string} [type="Basic"] - * @property {string} [token=basicCredentials] - */ - -/** - * Build Request Options object params - * @typedef {Object} BuildRequestOptionsParams - * @property {string} [method="GET"] - * @property {string} [path="/"] - * @property {BuildRequestAuthorization} [authorization] - * @property {Object} [headers] - */ - -/** - * Request Options object - * @typedef {Object} RequestOptions - * @property {string} host - * @property {string} port - * @property {string} method - * @property {string} path - * @property {Object} headers - */ - -/** - * Builds Request Options object - * @param {BuildRequestOptionsParams} - * @return {RequestOptions} - */ -const buildRequestOptions = ({ - method = 'GET', - path = '/', - authorization: { - type = 'Basic', - token = getCredentials(), - } = {}, - headers = {}, -}) => { - const { api: { host, port } } = getEnvConfig(); - const options = { - host, - port, - method, - path, - headers, - }; - options.headers.Authorization = `${type} ${token}`; - options.headers['User-Agent'] = getUserAgent(); - return options; -}; - -/** - * @param {Object} queryParams - * @return {string} - */ -const stringifyQueryParams = queryParams => Object - .entries(queryParams) - .reduce((acc, cur) => `${acc}${cur.join('=')}&`, '') - .slice(0, -1); - -/** - * Generate random string - * @param {string} filePath - * @return {string} - */ -const getRandomString = strLength => { - let str = ''; - while (str.length < strLength && strLength > 0) { - const r = Math.random(); - str += (r < 0.1 ? Math.floor(r * 100) : String.fromCharCode(Math.floor(r * 26) + (r > 0.5 ? 97 : 65))); - } - return str; -}; - -/** - * Form boundary for multipart/form-data request - * @return {string} - */ -const getFormDataBoundary = () => `SNFormBoundary${getRandomString(30)}`; - -/** - * Get file MIME type of file by its path - * @param {string} fileExt - * @return {string} - */ -const getMimeTypeByFileExtension = fileExt => fileExtensionsToMimeTypesMap[fileExt]; - -/** - * Check if file is acceptable for uploading - * @param {string} fileExtension - * @return {boolean} - */ -const isDocumentTypeAcceptable = fileExtension => acceptedDocumentExtensions.includes(fileExtension); - -/** - * Checks if file has .csv extension - * @param {string} filePath - * @return {boolean} - */ -const isCSVFile = filePath => extname(filePath).substr(1).toLowerCase() === 'csv'; - -/** - * Return signer emails by status - * @param {Object[]} arr - * @param {string} key - * @param {string} status - * @return {string[]} - */ -const getByStatus = (arr, key, status) => arr - .filter(field => field.status === status) - .map(val => val[key]); - -/** - * Returns signer emails by key and status - * @param {Object[]} arr - * @param {string} key - * @param {string|string[]} status - * @return {string[]} - */ -const getSignerEmails = (arr, key, status) => { - if (!arr || arr.length <= 0) { - return; - } - - if (!status || status === 'all' || status.includes('all')) { - return arr - .map(val => val[key]) - .filter(val => val !== ''); - } - - if (typeof status === 'string' && status !== 'all') { - return getByStatus(arr, key, status); - } - - if (Array.isArray(status)) { - const emailsByStatus = []; - - status.forEach(value => { - const filteredEmails = getByStatus(arr, key, value); - - emailsByStatus.push(filteredEmails); - }); - - return emailsByStatus.flat(); - } - - return arr; -}; - -/** - * Returns signer emails with declined to sign status - * @param {Object[]} arr - * @param {string[]} status - */ -const getByDeclinedStatus = (arr, status) => { - if (status.includes('declined') || status === 'declined') { - return arr - .filter(invite => invite.status === 'pending' && invite.declined.length > 0) - .map(val => val.email); - } else { - return []; - } -}; - -module.exports = { - responseHandler, - errorHandler, - buildRequestOptions, - setCredentials, - stringifyQueryParams, - getMimeTypeByFileExtension, - isDocumentTypeAcceptable, - isCSVFile, - getFormDataBoundary, - getByDeclinedStatus, - getSignerEmails, -}; diff --git a/lib/document-group-template/index.js b/lib/document-group-template/index.js deleted file mode 100644 index 254d69fc..00000000 --- a/lib/document-group-template/index.js +++ /dev/null @@ -1,303 +0,0 @@ -'use strict'; -const https = require('https'); -const { - responseHandler, - errorHandler, - buildRequestOptions, -} = require('../common'); -const documentGroup = require('../document-group'); -const createDocumentGroup = documentGroup.create; -const inviteDocumentGroup = documentGroup.invite; -const viewDocumentGroup = documentGroup.view; - -/** - * Document Group Template methods - */ -class DocumentGroupTemplate { - - /** - * Document Group Template invite email congfigurations - * @typedef {Object} DocumentGroupTemplateInviteEmail - * @property {string} [email] - signer's email - * @property {string} [subject] - subject of invitation email - * @property {string} [message] - content of invitation email - * @property {number} [expiration_days] - expiration of invite in days - * @property {number} [reminder] - number of days in which to remind about invite via email - * @property {boolean} [hasSignActions] - does signer need to sign documents of document group - */ - - /** - * Document Group Template invite action congfigurations - * @typedef {Object} DocumentGroupTemplateInviteAction - * @property {string} [email] - signer's email - * @property {string} [role_name] - signer's role name - * @property {string} [action] - name of action with document in signing step - * @property {string} [document_id] - ID of document in specific signing step - * @property {string} [document_name] - name of document in specific signing step - * @property {string} [allow_reassign] - allow reassigning of signer - * @property {string} decline_by_signature - signer can decline invite - */ - - /** - * Document Group Template invite step congfigurations - * @typedef {Object} DocumentGroupTemplateInviteStep - * @property {number} [order] - an order number of invitation step - * @property {DocumentGroupTemplateInviteEmail[]} [invite_emails] - Document Group Template invite emails settings - * @property {DocumentGroupTemplateInviteAction[]} invite_actions - Document Group Template invite actions settings - */ - - /** - * Document Group Template invite congfigurations - * @typedef {Object} DocumentGroupTemplateRoutingDetails - * @property {DocumentGroupTemplateInviteStep[]} invite_steps - Document Group Template invite steps settings - * @property {number} [include_email_attachments] - */ - - /** - * Create Document Group Template payload - * @typedef {Object} DocumentGroupTemplateCreateParams - * @property {string} token - your auth token - * @property {string[]} template_ids - array of template ids for Document Group Template creation - * @property {string} template_group_name - new name of document group - * @property {DocumentGroupTemplateRoutingDetails} routing_details - invite congfigurations - */ - - /** - * Create Document Group Template response data - * @typedef {Object} DocumentGroupTemplateCreateResponse - * @property {string} id - Document Group Template unique id - */ - - /** - * Creates Document Group Template with specified templates and settings - * @param {DocumentGroupTemplateCreateParams} data - create Document Group Template payload - * @param {function(err: ApiErrorResponse, res: DocumentGroupTemplateCreateResponse)} [callback] - error first node.js callback - */ - static create ({ - token, - template_ids, - template_group_name, - routing_details, - }, callback) { - const JSONData = JSON.stringify({ - template_ids, - template_group_name, - routing_details, - }); - const req = https - .request(buildRequestOptions({ - method: 'POST', - path: '/documentgroup/template', - authorization: { - type: 'Bearer', - token, - }, - headers: { - 'Content-Type': 'application/json', - 'Content-Length': Buffer.byteLength(JSONData), - }, - }), responseHandler(callback)) - .on('error', errorHandler(callback)); - - req.write(JSONData); - req.end(); - } - - /** - * Document Group Template view payload - * @typedef {Object} DocumentGroupTemplateViewParams - * @property {string} id - id of specific Document Group Template - * @property {string} token - your auth token - */ - - /** - * Details of single template in group - * @typedef {Object} DocumentGroupTemplateItem - * @property {string} id - id of template - * @property {string} template_name - name of template - * @property {string} owner_email - template owner email - * @property {?number} readable - * @property {DocumentThumbnails} thumbnail - thumbnail urls with different sizes (small, medium, large) - * @property {string[]} roles - list of template signer roles - */ - - /** - * Document Group Template view response - * @typedef {Object} DocumentGroupTemplateViewResponse - * @property {string} id - id of Document Group Template - * @property {string} group_name - name of Document Group Template - * @property {string} document_group_template_owner_email - Document Group Template owner email - * @property {number} shared - is Document Group Template shared or not (values: 0 or 1) - * @property {?string} shared_team_id - id of team which Document Group Template is shared with - * @property {DocumentGroupTemplateItem[]} templates - each single template details - * @property {DocumentGroupTemplateRoutingDetails} routing_details - signing steps configuration - * @property {Object[]} originator_organization_settings - originator organization settings - */ - - /** - * Retrieves a Document Group Template detailed data - * @param {DocumentGroupTemplateViewParams} data - view Document Group Template details payload - * @param {function(err: ApiErrorResponse, res: DocumentGroupTemplateViewResponse)} [callback] - error first node.js callback - */ - static view ({ id, token }, callback) { - https - .request(buildRequestOptions({ - method: 'GET', - path: `/documentgroup/template/${id}`, - authorization: { - type: 'Bearer', - token, - }, - }), responseHandler(callback)) - .on('error', errorHandler(callback)) - .end(); - } - - /** - * Create Document Group Template invite payload - * @typedef {Object} DocumentGroupTemplateInviteParams - * @property {string} id - ID of specific Document Group Template - * @property {DocumentGroupInviteSettings} [data] - Document Group Template invite settings data - * @property {string} token - your auth token - */ - - /** - * Create Document Group Template invite response data - * @typedef {DocumentGroupInviteResponse} DocumentGroupTemplateInviteResponse - * @property {string} id - an ID of created invite - * @property {?string} pending_invite_link - pending invite link - */ - - /** - * Creates an invite to sign a Document Group Template - * @param {DocumentGroupTemplateInviteParams} data - create Document Group Template invite payload - * @param {function(err: ApiErrorResponse, res: DocumentGroupTemplateInviteResponse)} [callback] - error first node.js callback - */ - static invite ({ - id, - data, - token, - }, callback) { - DocumentGroupTemplate.view({ - id, - token, - }, (viewDocGrTplErr, viewDocGrTplRes) => { - if (viewDocGrTplErr) { - callback(viewDocGrTplErr); - return; - } else { - const { - templates, - group_name, - routing_details = {}, - } = viewDocGrTplRes; - let templateIDs; - - try { - templateIDs = templates.map(template => template.id); - } catch (err) { - callback(err); - return; - } - - createDocumentGroup({ - ids: templateIDs, - group_name, - token, - }, (createErr, createRes) => { - if (createErr) { - callback(createErr); - return; - } else { - const { id: documentGroupId } = createRes; - - viewDocumentGroup({ - id: documentGroupId, - token, - }, (viewDocGrErr, viewDocGrRes) => { - if (viewDocGrErr) { - callback(viewDocGrErr); - return; - } else { - const { documents } = viewDocGrRes; - let documentToOriginMap; - let inviteSettings; - - try { - documentToOriginMap = documents.reduce((map, doc) => { - map[doc.origin_document_id] = doc.id; - return map; - }, {}); - - inviteSettings = Object.assign({}, (routing_details.invite_steps ? routing_details : {}), data); - - inviteSettings.invite_steps.forEach(step => { - step.invite_emails = step.invite_emails.map(inviteEmail => { - const { - email, - subject, - message, - expiration_days, - reminder, - } = inviteEmail; - - return { - email, - subject, - message, - expiration_days, - reminder, - }; - }); - - step.invite_actions = step.invite_actions.map(inviteAction => { - const { - email, - role_name, - action, - document_id, - allow_reassign, - decline_by_signature, - authentication, - } = inviteAction; - - return { - document_id: documentToOriginMap[document_id], - email, - role_name, - action, - allow_reassign, - decline_by_signature, - authentication, - }; - }); - }); - } catch (err) { - callback(err); - return; - } - - inviteDocumentGroup({ - id: documentGroupId, - data: inviteSettings, - token, - }, (inviteErr, inviteRes) => { - if (inviteErr) { - callback(inviteErr); - return; - } else { - callback(null, inviteRes); - return; - } - }); - } - }); - } - }); - } - }); - } - -} - -module.exports = DocumentGroupTemplate; diff --git a/lib/document-group/index.js b/lib/document-group/index.js deleted file mode 100644 index 17bec9b7..00000000 --- a/lib/document-group/index.js +++ /dev/null @@ -1,408 +0,0 @@ -'use strict'; - -const https = require('https'); -const { - responseHandler, - errorHandler, - buildRequestOptions, -} = require('../common'); -const { view } = require('../document'); -const { duplicate } = require('../template'); - -/** - * @type {function} - * @param {DocumentViewParams} data - view document with field extract payload - * @return {Promise} - */ -const getDocumentDetails = ({ id, token }) => new Promise((resolve, reject) => { - view({ - id, - token, - }, (err, res) => { - if (err) { - reject(err); - } else { - resolve(res); - } - }); -}); - -/** - * @type {function} - * @param {DocumentViewResponse} document - * @return {boolean} is there any field invite in given document - */ -const hasFieldInvites = document => document.field_invites.length > 0; - -/** - * @type {function} - * @param {DocumentViewResponse} document - * @return {boolean} is document a template or not - */ -const isTemplate = document => document.template === true; - -/** - * @type {function} - * @param {TemplateDuplicateParams} data - duplicate template payload - * @return {Promise} resolves with id of new document - */ -const makeDocumentFromTemplate = ({ id, token }) => new Promise((resolve, reject) => { - duplicate({ - id, - token, - }, (err, res) => { - if (err) { - reject(err); - } else { - resolve(res.id); - } - }); -}); - - -/** - * Document Group methods - */ -class DocumentGroup { - - /** - * Create document group payload - * @typedef {Object} DocumentGroupCreateParams - * @property {string} token - your auth token - * @property {string[]} ids - array of document or template ids for document group creation - * @property {string} group_name - new name of document group - */ - - /** - * Create document group response data - * @typedef {Object} DocumentGroupCreateResponse - * @property {string} id - document group unique id - */ - - /** - * Creates document group with specified documents or templates. - * At least one document or template must contain fields. Documents should not contain pending invites. - * @param {DocumentGroupCreateParams} data - create document group payload - * @param {function(err: ApiErrorResponse, res: DocumentGroupCreateResponse)} [callback] - error first node.js callback - */ - static create ({ - token, - ids, - group_name, - }, callback) { - const realDocumentIDs = ids - .map(id => { - return getDocumentDetails({ - id, - token, - }) - .then(document => { - if (isTemplate(document)) { - return makeDocumentFromTemplate({ - id, - token, - }); - } else if (hasFieldInvites(document)) { - throw new Error('Document in the group must have no pending invites'); - } else { - return id; - } - }); - }); - - Promise.all(realDocumentIDs) - .then(document_ids => { - const JSONData = JSON.stringify({ - document_ids, - group_name, - }); - - const req = https - .request(buildRequestOptions({ - method: 'POST', - path: '/documentgroup', - authorization: { - type: 'Bearer', - token, - }, - headers: { - 'Content-Type': 'application/json', - 'Content-Length': Buffer.byteLength(JSONData), - }, - }), responseHandler(callback)) - .on('error', errorHandler(callback)); - - req.write(JSONData); - req.end(); - }) - .catch(err => { - callback(err.message); - return; - }); - } - - /** - * Document Group view payload - * @typedef {Object} DocumentGroupViewParams - * @property {string} id - id of specific Document Group - * @property {string} token - your auth token - */ - - /** - * Details of single Document in group - * @typedef {Object} DocumentGroupItem - * @property {string} id - an ID of Document - * @property {string} document_name - a name of Document - * @property {string} origin_document_id - an ID of Document origin - * @property {boolean} has_credit_card_number - Document has Credit Card number attached - * @property {boolean} has_unassigned_field - Document has unassigned field(s) - * @property {DocumentThumbnails} thumbnail - thumbnail urls with different sizes (small, medium, large) - * @property {string[]} roles - list of template signer roles - */ - - /** - * Document Group view response data - * @typedef {Object} DocumentGroupViewResponse - * @property {string} id - an ID of Document Group - * @property {string} group_name - a name of Document Group - * @property {DocumentGroupItem[]} documents - each single document details - * @property {?string} invite_id - an ID of active invite - * @property {Object[]} originator_organization_settings - originator organization settings - */ - - /** - * Retrieves a Document Group detailed data - * @param {DocumentGroupViewParams} data - view Document Group details payload - * @param {function(err: ApiErrorResponse, res: DocumentGroupViewResponse)} [callback] - error first node.js callback - */ - static view ({ id, token }, callback) { - https - .request(buildRequestOptions({ - method: 'GET', - path: `/documentgroup/${id}`, - authorization: { - type: 'Bearer', - token, - }, - }), responseHandler(callback)) - .on('error', errorHandler(callback)) - .end(); - } - - /** - * Document Group invite email configurations - * @typedef {Object} DocumentGroupInviteEmail - * @property {string} email - signer's email - * @property {string} [subject] - subject of invitation email - * @property {string} [message] - content of invitation email - * @property {number} [expiration_days] - expiration of invite in days - * @property {number} [reminder] - number of days in which to remind about invitation via email - */ - - /** - * Document Group signer's authentication with password config - * @typedef {Object} DocumentGroupInviteAuthenticationPassword - * @property {string} type - set `password` to authenticate signer with password - * @property {string} value - authentication password value - */ - - /** - * Document Group signer's authentication with phone call config - * @typedef {Object} DocumentGroupInviteAuthenticationPhoneCall - * @property {string} type - set `phone` to authenticate signer with phone call - * @property {string} method - set `phone_call` to authenticate signer with phone call - * @property {string} phone - phone number - */ - - /** - * Document Group signer's authentication with phone SMS config - * @typedef {Object} DocumentGroupInviteAuthenticationPhoneSMS - * @property {string} type - set `phone` to authenticate signer with phone SMS - * @property {string} method - set `sms` to authenticate signer with phone SMS - * @property {string} phone - phone number - */ - - /** - * Document Group invite action configurations - * @typedef {Object} DocumentGroupInviteAction - * @property {string} email - signer's email - * @property {string} role_name - signer's role name - * @property {string} action - name of action with document in signing step - * @property {string} document_id - ID of document in specific signing step - * @property {string} [allow_reassign] - allow reassigning of signer - * @property {string} [decline_by_signature] - signer can decline invite - * @property {DocumentGroupInviteAuthenticationPassword|DocumentGroupInviteAuthenticationPhoneCall|DocumentGroupInviteAuthenticationPhoneSMS} [authentication] - signer's authentication configuration - */ - - /** - * Document Group invite step configurations - * @typedef {Object} DocumentGroupInviteStep - * @property {number} order - an order number of invitation step - * @property {DocumentGroupInviteEmail[]} [invite_emails] - Document Group invite emails settings - * @property {DocumentGroupInviteAction[]} invite_actions - Document Group invite actions settings - */ - - /** - * Document Group invite completion email configuration - * @typedef {Object} DocumentGroupInviteCompletionEmailConfig - * @property {string} email - email for completion (only from the signers and document owner emails) - * @property {number} disable_document_attachment - disable attachment of signed document group to completion email (values: 0|1) - */ - - /** - * Document Group invite settings - * @typedef {Object} DocumentGroupInviteSettings - * @property {DocumentGroupInviteStep[]} invite_steps - Document Group invite steps settings - * @property {DocumentGroupInviteCompletionEmailConfig[]} [completion_emails] - set of completion email configutrations - */ - - /** - * Create Document Group invite payload - * @typedef {Object} DocumentGroupInviteParams - * @property {string} id - ID of specific Document Group - * @property {DocumentGroupInviteSettings} data - Document Group invite settings data - * @property {string} token - your auth token - */ - - /** - * Create Document Group invite response data - * @typedef {Object} DocumentGroupInviteResponse - * @property {string} id - ID of created Document Group invitation - * @property {?string} pending_invite_link - pending invite link - */ - - /** - * Creates an invite to sign a Document Group - * @param {DocumentGroupInviteParams} data - create Document Group invite payload - * @param {function(err: ApiErrorResponse, res: DocumentGroupInviteResponse)} [callback] - error first node.js callback - */ - static invite ({ - id, - data, - token, - }, callback) { - const { - invite_steps, - completion_emails, - } = data; - - const JSONData = JSON.stringify({ - invite_steps, - completion_emails, - }); - - const req = https - .request(buildRequestOptions({ - method: 'POST', - path: `/documentgroup/${id}/groupinvite`, - authorization: { - type: 'Bearer', - token, - }, - headers: { - 'Content-Type': 'application/json', - 'Content-Length': Buffer.byteLength(JSONData), - }, - }), responseHandler(callback)) - .on('error', errorHandler(callback)); - - req.write(JSONData); - req.end(); - } - - /** - * Document Group download payload - * @typedef {Object} DocumentGroupDownloadParams - * @property {string} id - an ID of a Document Group - * @property {string} token - your auth token - * @property {string} [type='zip'] - type of download flow, can be either `zip` or `merged` - * @property {string} [with_history='no'] - type of history merging flow, can be `no`, `after_each_document`, or `after_merged_pdf` - * @property {string[]} [document_order] - document order for merging flow - */ - - /** - * Document Group binary data - * @typedef {Buffer} DocumentGroupDownloadResponse - */ - - /** - * Downloads a document group. - * By default document group will be downloaded as a zip archive and without history. - * To download document group as a single merged PDF set `type` to `merged`. - * To download document group with history set `with_history` to `after_each_document` or `after_merged_pdf`. - * @param {DocumentGroupDownloadParams} data - download Document Group request payload - * @param {function(err: ApiErrorResponse, res: DocumentGroupDownloadResponse)} [callback] - error first node.js callback - */ - static download ({ - id, - token, - type = 'zip', - with_history = 'no', - document_order = [], - }, callback) { - const JSONData = JSON.stringify({ - type, - with_history, - document_order, - }); - - const req = https - .request(buildRequestOptions({ - method: 'POST', - path: `/documentgroup/${id}/downloadall`, - authorization: { - type: 'Bearer', - token, - }, - headers: { - 'Content-Type': 'application/json', - 'Content-Length': Buffer.byteLength(JSONData), - }, - }), responseHandler(callback)) - .on('error', errorHandler(callback)); - - req.write(JSONData); - req.end(); - } - - /** - * Cancel Document Group Invite payload - * @typedef {Object} DocumentGroupCancelInviteParams - * @property {string} id - ID of specific Document Group - * @property {string} invite_id - ID of Document Group Invite - * @property {string} token - your auth token - */ - - /** - * Cancel Document Group Invite response data - * @typedef {Object} DocumentGroupCancelInviteResponse - * @property {string} status - status of invite cancellation (e.g. "success") - */ - - /** - * Cancels an Invite to sign a specific Document Group - * @param {DocumentGroupCancelInviteParams} data - cancel Document Group Invite payload - * @param {function(err: ApiErrorResponse, res: DocumentGroupCancelInviteResponse)} [callback] - error first node.js callback - */ - static cancelInvite ({ - token, - id, - inviteId, - }, callback) { - - https - .request(buildRequestOptions({ - method: 'POST', - path: `/documentgroup/${id}/groupinvite/${inviteId}/cancelinvite`, - authorization: { - type: 'Bearer', - token, - }, - }), responseHandler(callback)) - .on('error', errorHandler(callback)) - .end(); - } - -} - -module.exports = DocumentGroup; diff --git a/lib/document/index.js b/lib/document/index.js deleted file mode 100644 index 0e25c96b..00000000 --- a/lib/document/index.js +++ /dev/null @@ -1,1126 +0,0 @@ -'use strict'; -const https = require('https'); -const { readFileSync } = require('fs'); -const { basename, extname } = require('path'); -const { - responseHandler, - errorHandler, - buildRequestOptions, - stringifyQueryParams, - getMimeTypeByFileExtension, - isDocumentTypeAcceptable, - getFormDataBoundary, - getByDeclinedStatus, - getSignerEmails, -} = require('../common'); -const { promisify } = require('../../utils'); - -/** - * Document methods - */ -class Document { - - /** - * Create document payload - * @typedef {Object} DocumentCreateParams - * @property {string} filepath - path to file to be uploaded - * @property {string} token - your auth token - */ - - /** - * Create document response data - * @typedef {Object} DocumentCreateResponse - * @property {string} id - an id of created document - */ - - /** - * Uploads a file and creates a document. - * This endpoint accepts .pdf, .doc, .docx, .odt, .rtf, .png, .jpg, .jpeg, .gif, .bmp, .xml, .xls, .xlsx, .ppt, .pptx file types - * @param {DocumentCreateParams} data - create document payload - * @param {function(err: ApiErrorResponse, res: DocumentCreateResponse)} [callback] - error first node.js callback - */ - static create ({ filepath, token }, callback) { - const fileExt = extname(filepath).substr(1); - - if (!isDocumentTypeAcceptable(fileExt)) { - callback('File type isn\'t supported.'); - return; - } - - let fileContent; - - try { - fileContent = readFileSync(filepath); - } catch (err) { - callback(err); - return; - } - - const mimeType = getMimeTypeByFileExtension(fileExt); - const formDataBoundary = getFormDataBoundary(); - const formDataBeginning = `--${formDataBoundary}\r\n` - .concat(`Content-Disposition: form-data; name="file"; filename="${basename(filepath)}"\r\n`) - .concat(`Content-Type: ${mimeType}\r\n\r\n`); - const formDataEnding = `\r\n--${formDataBoundary}\r\n`; - - const payload = Buffer.concat([ - Buffer.from(formDataBeginning, 'utf8'), - fileContent, - Buffer.from(formDataEnding, 'utf8'), - ]); - - const req = https - .request(buildRequestOptions({ - method: 'POST', - path: '/document', - authorization: { - type: 'Bearer', - token, - }, - headers: { - 'Content-Type': `multipart/form-data; boundary=${formDataBoundary}`, - 'Content-Length': Buffer.byteLength(payload), - }, - }), responseHandler(callback)) - .on('error', errorHandler(callback)); - - req.write(payload); - req.end(); - } - - /** - * Upload document with field extract payload - * @typedef {Object} DocumentFieldExtractParams - * @property {string} filepath - path to file to be uploaded - * @property {string} token - your auth token - */ - - /** - * Upload document with field extract response data - * @typedef {Object} DocumentFieldExtractResponse - * @property {string} id - an id of created document - */ - - /** - * Uploads a file that contains SignNow Document Field Tags. - * This endpoint only accepts .pdf (you may convert the document from .doc or .docx to .pdf) - * @param {DocumentFieldExtractParams} data - upload document with field extract payload - * @param {function(err: ApiErrorResponse, res: DocumentFieldExtractResponse)} [callback] - error first node.js callback - */ - static fieldextract ({ filepath, token }, callback) { - const fileExt = extname(filepath).substr(1); - - if (!isDocumentTypeAcceptable(fileExt)) { - callback('File type isn\'t supported.'); - return; - } - - let fileContent; - - try { - fileContent = readFileSync(filepath); - } catch (err) { - callback(err); - return; - } - - const mimeType = getMimeTypeByFileExtension(fileExt); - const formDataBoundary = getFormDataBoundary(); - const formDataBeginning = `--${formDataBoundary}\r\n` - .concat(`Content-Disposition: form-data; name="file"; filename="${basename(filepath)}"\r\n`) - .concat(`Content-Type: ${mimeType}\r\n\r\n`); - const formDataEnding = `\r\n--${formDataBoundary}\r\n`; - - const payload = Buffer.concat([ - Buffer.from(formDataBeginning, 'utf8'), - Buffer.from(fileContent, 'binary'), - Buffer.from(formDataEnding, 'utf8'), - ]); - - const req = https - .request(buildRequestOptions({ - method: 'POST', - path: '/document/fieldextract', - authorization: { - type: 'Bearer', - token, - }, - headers: { - 'Content-Type': `multipart/form-data; boundary=${formDataBoundary}`, - 'Content-Length': Buffer.byteLength(payload), - }, - }), responseHandler(callback)) - .on('error', errorHandler(callback)); - - req.write(payload); - req.end(); - } - - /** - * Payload to receive user's document list - * @typedef {Object} DocumentListParams - * @property {string} token - your auth token - */ - - /** - * Document list response item - * @typedef {Object} DocumentListItem - * @property {string} id - id of specific document - * @property {string} user_id - id of user that uploaded document - * @property {string} document_name - name of document - * @property {string} page_count - amount of pages in the document - * @property {string} created - timestamp document was created - * @property {string} updated - timestamp document was updated - * @property {string} original_filename - original filename with document format (.pdf, .doc, etc...) - * @property {?string} origin_document_id - an id of original document (if document is a copy) - * @property {string} owner - email of document owner - * @property {boolean} template - is document a template or not - * @property {?string} origin_user_id - id of user who created document - * @property {DocumentThumbnails} thumbnail - thumbnail urls with different sizes (small, medium, large) - * @property {Object[]} signatures - signature signed elements - * @property {Object[]} texts - text and enumeration filled elements - * @property {Object[]} checks - checkbox checked elements - * @property {Object[]} tags - field types document contains - * @property {Object[]} fields - all document fillable fields - * @property {Object[]} requests - requests for signing document - * @property {Object[]} roles - document signer roles - * @property {Object[]} field_invites - sent invites data - * @property {number} version_time - document updated timestamp - * @property {Object[]} enumeration_options - dropdown options - * @property {Object[]} attachments - attachments in document - * @property {Object[]} routing_details - signing steps routing details - * @property {Object[]} integrations - document integrations - * @property {Object[]} hyperlinks - document hyperlinks - * @property {Object[]} radiobuttons - checked radiobuttons after document was signed - * @property {Object[]} document_group_template_info - document group templates data - * @property {Object[]} document_group_info - document group template's data - * @property {Object[]} originator_organization_settings - specific organization settings for document - * @property {Object[]} field_validators - validation rules for fields (date fields, payment fields etc.) - * @property {Object} settings - specific document settings - */ - - /** - * User's Document list response - * @typedef {DocumentListItem[]} DocumentListResponse - */ - - /** - * Retrieve user's document list - * @param {DocumentListParams} data - payload to receive user's document list - * @param {function(err: ApiErrorResponse, res: DocumentListItem)} [callback] - error first node.js callback - */ - static list ({ token }, callback) { - https - .request(buildRequestOptions({ - method: 'GET', - path: '/user/documentsv2', - authorization: { - type: 'Bearer', - token, - }, - }), responseHandler(callback)) - .on('error', errorHandler(callback)) - .end(); - } - - /** - * Document view payload - * @typedef {Object} DocumentViewParams - * @property {string} id - id of specific document - * @property {string} token - your auth token - */ - - /** - * Document thumbnail urls with different sizes (small, medium, large) - * @typedef {Object} DocumentThumbnails - * @property {string} large - * @property {string} medium - * @property {string} small - */ - - /** - * Document view response of specific document - * @typedef {Object} DocumentViewResponse - * @property {string} id - id of specific document - * @property {string} user_id - id of user that uploaded document - * @property {string} document_name - name of document - * @property {string} page_count - amount of pages in the document - * @property {string} created - timestamp document was created - * @property {string} updated - timestamp document was updated - * @property {string} original_filename - original filename with document format (.pdf, .doc, etc...) - * @property {?string} origin_document_id - an id of original document (if document is a copy) - * @property {string} owner - email of document owner - * @property {boolean} template - is document a template or not - * @property {DocumentThumbnails} thumbnail - thumbnail urls with different sizes (small, medium, large) - * @property {Object[]} signatures - signature signed elements - * @property {Object[]} texts - text and enumeration filled elements - * @property {Object[]} checks - checkbox checked elements - * @property {Object[]} tags - field types document contains - * @property {Object[]} fields - all document fillable fields - * @property {Object[]} requests - requests for signing document - * @property {Object[]} roles - document signer roles - * @property {Object[]} field_invites - sent invites data - * @property {number} version_time - document updated timestamp - * @property {Object[]} enumeration_options - dropdown options - * @property {Object[]} attachments - attachments in document - * @property {Object[]} routing_details - signing steps routing details - * @property {Object[]} integrations - document integrations - * @property {Object[]} hyperlinks - document hyperlinks - * @property {Object[]} radiobuttons - checked radiobuttons after document was signed - * @property {Object[]} document_group_template_info - document group template's data - * @property {Object[]} document_group_info - document group's data - * @property {Object[]} originator_organization_settings - specific organization settings for document - * @property {Object[]} field_validators - validation rules for fields (date fields, payment fields etc.) - * @property {Object} settings - specific document settings - * @property {string} parent_id - id of document folder - * @property {string} originator_logo - logo url - * @property {Object[]} pages - list of document pages with page sources and page size. - */ - - /** - * Retrieves a document detailed data - * @param {DocumentViewParams} data - view document details payload - * @param {function(err: ApiErrorResponse, res: DocumentViewResponse)} [callback] - error first node.js callback - */ - static view ({ id, token }, callback) { - https - .request(buildRequestOptions({ - method: 'GET', - path: `/document/${id}`, - authorization: { - type: 'Bearer', - token, - }, - }), responseHandler(callback)) - .on('error', errorHandler(callback)) - .end(); - } - - /** - * @typedef {Object} SignatureField - * @property {number} page_number - page number of document - * @property {string} type - type of field (signature) - * @property {string} name - unique name of the field - * @property {string} role - role name - * @property {boolean} required - required field - * @property {number} height - height of the field - * @property {number} width - width of the field - * @property {number} x - X coordinate of the field - * @property {number} y - Y coordinate of the field - * @property {string} [label] - field label - */ - - /** - * @typedef {Object} InitialsField - * @property {number} page_number - page number of document - * @property {string} type - type of field (initials) - * @property {string} name - unique name of the field - * @property {string} role - role name - * @property {boolean} required - required field - * @property {number} height - height of the field - * @property {number} width - width of the field - * @property {number} x - X coordinate of the field - * @property {number} y - Y coordinate of the field - * @property {string} [label] - field label - */ - - /** - * @typedef {Object} TextField - * @property {number} page_number - page number of document - * @property {string} type - type of field (text) - * @property {string} name - unique name of the field - * @property {string} role - role name - * @property {boolean} required - required field - * @property {number} height - height of the field - * @property {number} width - width of the field - * @property {number} x - X coordinate of the field - * @property {number} y - Y coordinate of the field - * @property {string|number} [prefilled_text] - prefilled field value - * @property {string} [validator_id] - field value validator ID - * @property {string} [label] - field label - */ - - /** - * @typedef {Object} CheckField - * @property {number} page_number - page number of document - * @property {string} type - type of field (checkbox) - * @property {string} name - unique name of the field - * @property {string} role - role name - * @property {boolean} required - required field - * @property {number} height - height of the field - * @property {number} width - width of the field - * @property {number} x - X coordinate of the field - * @property {number} y - Y coordinate of the field - * @property {boolean} [prefilled_text] - prefilled field value - * @property {string} [label] - field label - */ - - /** - * @typedef {Object} EnumerationField - * @property {number} page_number - page number of document - * @property {string} type - type of field (enumeration) - * @property {string} name - unique name of the field - * @property {string} role - role name - * @property {boolean} required - required field - * @property {number} height - height of the field - * @property {number} width - width of the field - * @property {number} x - X coordinate of the field - * @property {number} y - Y coordinate of the field - * @property {Array} enumeration_options - choice options of enumerable field - * @property {string|number} [prefilled_text] - prefilled field value - * @property {string} [label] - field label - * @property {boolean} [custom_defined_option=false] - if 'true' user can change values, if 'false' user can only read - */ - - /** - * @typedef {Object} RadioButton - * @property {number} page_number - page number of document - * @property {number} height - height of the field - * @property {number} width - width of the field - * @property {number} x - X coordinate of the field - * @property {number} y - Y coordinate of the field - * @property {string} value - value of radio button - * @property {string} checked - radio button check status - * @property {number} created - redio button creation timestamp - */ - - /** - * @typedef {Object} RadioButtonField - * @property {number} page_number - page number of document - * @property {string} type - type of field (radiobutton) - * @property {string} name - unique name of the field - * @property {string} role - role name - * @property {boolean} required - required field - * @property {number} height - height of the field - * @property {number} width - width of the field - * @property {number} x - X coordinate of the field - * @property {number} y - Y coordinate of the field - * @property {RadioButton[]} radio - array of radio buttons - * @property {string|number} [prefilled_text] - prefilled field value - * @property {string} [label] - field label - */ - - /** - * @typedef {Object} FormulaTreeBranchTerminator - * @property {string} term - name of field which will participate in calculation formula - */ - - /** - * @typedef {Object} FormulaTreeBranch - * @property {FormulaTree} term - a part of formula parsed into tree - */ - - /** - * @typedef {Object} FormulaTree - * @property {string} operator - arithmetic operator's token - * @property {FormulaTreeBranch|FormulaTreeBranchTerminator} left - left branch of formula tree - * @property {FormulaTreeBranch|FormulaTreeBranchTerminator} right - right branch of formula tree - */ - - /** - * @typedef {Object} CalculatedField - * @property {number} page_number - page number of document - * @property {string} type - type of field (text) - * @property {string} name - unique name of the field - * @property {string} role - role name - * @property {boolean} required - required field - * @property {number} height - height of the field - * @property {number} width - width of the field - * @property {number} x - X coordinate of the field - * @property {number} y - Y coordinate of the field - * @property {string} formula - arithmetic formula, e.g. 'TextName+EnumerationName' - * @property {FormulaTree} calculation_formula - formula parsed into tree - * @property {number} calculation_precision - calculation precision - * @property {string} [label] - field label - * @property {boolean} [custom_defined_option=false] - if 'true' user can change values, if 'false' user can only read - */ - - /** - * @typedef {Object} AttachmentField - * @property {number} page_number - page number of document - * @property {string} type - type of field (attachment) - * @property {string} name - unique name of the field - * @property {string} role - role name - * @property {boolean} required - required field - * @property {number} height - height of the field - * @property {number} width - width of the field - * @property {number} x - X coordinate of the field - * @property {number} y - Y coordinate of the field - * @property {string} [label] - field label - */ - - /** - * @typedef {Object} DocumentFields - * @property {number} client_timestamp - local time of user - * @property {Array} fields - all types of fields - */ - - /** - * Update document payload - * @typedef {Object} DocumentUpdateParams - * @property {string} id - id of specific document - * @property {DocumentFields} fields - set of fields - * @property {string} token - your auth token - */ - - /** - * Update document response data - * @typedef {Object} DocumentUpdateResponse - * @property {string} id - an id of document - * @property {Object[]} signatures - signature and initial elements - * @property {Object[]} texts - text and enumeration elements - * @property {Object[]} checks - checkbox elements - * @property {Object[]} attachments - attachment elements - * @property {Object[]} radiobuttons - radiobutton elements - */ - - /** - * Updates an existing document. - * Adds fields (signature, text, initials, checkbox, radiobutton group, calculated) and elements (signature, text, check). - * Every call of this method will add only specified fields into document. - * Old fields will be removed - * @param {DocumentUpdateParams} data - update document request payload - * @param {function(err: ApiErrorResponse, res: DocumentUpdateResponse)} [callback] - error first node.js callback - */ - static update ({ - id, - fields, - token, - }, callback) { - const JSONData = JSON.stringify(fields); - const req = https - .request(buildRequestOptions({ - method: 'PUT', - path: `/document/${id}`, - authorization: { - type: 'Bearer', - token, - }, - headers: { - 'Content-Type': 'application/json', - 'Content-Length': Buffer.byteLength(JSONData), - }, - }), responseHandler(callback)) - .on('error', errorHandler(callback)); - - req.write(JSONData); - req.end(); - } - - /** - * Download document optional settings - * @typedef {Object} DocumentDownloadOptions - * @property {boolean} [withAttachments=false] - if true document will be downloaded as zip package with its attachments - * @property {boolean} [withHistory=false] - if true document will be downloaded with history - */ - - /** - * Document download payload - * @typedef {Object} DocumentDownloadParams - * @property {string} id - id of specific document - * @property {string} token - your auth token - * @property {DocumentDownloadOptions} options - download document optional settings - */ - - /** - * Document binary data - * @typedef {Buffer} DocumentDownloadResponse - */ - - /** - * Downloads document with embedded fields and elements. - * By default document is downloaded without history. To download document with history set `withHistory` option to `true`. - * @param {DocumentDownloadParams} data - download document request payload - * @param {function(err: ApiErrorResponse, res: DocumentDownloadResponse)} [callback] - error first node.js callback - */ - static download ({ - id, - token, - options: { - withAttachments = false, - withHistory = false, - } = {}, - }, callback) { - const queryParams = {}; - const clientTimestamp = Math.floor(Date.now() / 1000); - - queryParams.type = withAttachments ? 'zip' : 'collapsed'; - withHistory && (queryParams.with_history = '1'); - - https - .request(buildRequestOptions({ - method: 'GET', - path: `/document/${id}/download?client_timestamp=${clientTimestamp}&${stringifyQueryParams(queryParams)}`, - authorization: { - type: 'Bearer', - token, - }, - }), responseHandler(callback)) - .on('error', errorHandler(callback)) - .end(); - } - - /** - * Document share payload - * @typedef {Object} DocumentShareParams - * @property {string} id - id of specific document - * @property {string} token - your auth token - */ - - /** - * Document share response data - * @typedef {Object} DocumentShareResponse - * @property {string} link - link to download specified document in PDF format - */ - - /** - * Requests a link to download document with embedded fields and elements - * Link can be used once and then will expire - * @param {DocumentShareParams} data - share document request payload - * @param {function(err: ApiErrorResponse, res: DocumentShareResponse)} [callback] - error first node.js callback - */ - static share ({ id, token }, callback) { - https - .request(buildRequestOptions({ - method: 'POST', - path: `/document/${id}/download/link`, - authorization: { - type: 'Bearer', - token, - }, - }), responseHandler(callback)) - .on('error', errorHandler(callback)) - .end(); - } - - /** - * Document invite signer settings - * @typedef {Object} SignerSettings - * @property {string} email - signer's email - * @property {string} role - role name - * @property {string} [role_id] - role unique id (can be discovered in document details) - * @property {number} order - role signing order - * @property {string} reassign - allow reassign signer - * @property {string} decline_by_signature - signer can decline invite - * @property {number} reminder - remind via email in days - * @property {number} expiration_days - expiration of invite in days - * @property {string} [subject] - specify subject of email - * @property {string} [message] - specify body of email - */ - - /** - * Document invite settings - * @typedef {Object} DocumentInviteSettings - * @property {string} from - email of sender - * @property {SignerSettings[]|string} to - array of signers or email of single signer - * @property {string} [document_id] - an id of document - * @property {string[]} [cc] - array with emails of copy receivers - * @property {string} [subject] - specify subject of email - * @property {string} [message] - specify body of email - * @property {string} [on_complete] - on signing complete action - */ - - /** - * Document invite optional settings - * @typedef {Object} DocumentInviteOptions - * @property {string} [email] - ability to disable invitation by email. to disable email assign value 'disable' - */ - - /** - * Create document invite payload - * @typedef {Object} DocumentInviteParams - * @property {string} id - an id of document - * @property {DocumentInviteSettings} data - document invite settings - * @property {DocumentInviteOptions} [options] - document invite optional settings - * @property {string} token - your auth token - */ - - /** - * Create document field invite response data - * @typedef {Object} DocumentFieldInviteResponse - * @property {string} status - status of invitation, e.g. 'success' - */ - - /** - * Create document free form invite response data - * @typedef {Object} DocumentFreeformInviteResponse - * @property {string} result - free form invitation result, e.g. 'success' - * @property {string} id - unique id of invite - * @property {string} callback_url - url for front-end redirect or 'none' - */ - - /** - * Create document invite response data - * @typedef {DocumentFieldInviteResponse|DocumentFreeformInviteResponse} DocumentInviteResponse - */ - - /** - * Creates an invite to sign a document. - * You can create a simple free form invite(s) or a role-based invite(s). - * @param {DocumentInviteParams} data - create document invite payload - * @param {function(err: ApiErrorResponse, res: DocumentInviteResponse)} [callback] - error first node.js callback - */ - static invite ({ - id, - data, - options: { email } = {}, - token, - }, callback) { - const inviteData = Object.assign({}, data, { document_id: id }); - - const JSONData = JSON.stringify(inviteData); - let path = `/document/${id}/invite`; - - if (email === 'disable') { - path = `${path}?email=disable`; - } - - const req = https - .request(buildRequestOptions({ - method: 'POST', - authorization: { - type: 'Bearer', - token, - }, - headers: { - 'Content-Type': 'application/json', - 'Content-Length': Buffer.byteLength(JSONData), - }, - path, - }), responseHandler(callback)) - .on('error', errorHandler(callback)); - - req.write(JSONData); - req.end(); - } - - /** - * Cancel freeform invite payload - * @typedef {Object} CancelFreeformInviteParams - * @property {string} id - unique id of invite - * @property {string} token - your auth token - */ - - /** - * Cancel freeform invite response data - * @typedef {Object} CancelFreeformInviteResponse - * @property {string} id - unique id of invite - */ - - /** - * Cancels sent freeform invite - * @param {CancelFreeformInviteParams} data - cancel freeform invite payload - * @param {function(err: ApiErrorResponse, res: CancelFreeformInviteResponse)} [callback] - error first node.js callback - */ - static cancelFreeFormInvite ({ id, token }, callback) { - https - .request(buildRequestOptions({ - method: 'PUT', - path: `/invite/${id}/cancel`, - authorization: { - type: 'Bearer', - token, - }, - }), responseHandler(callback)) - .on('error', errorHandler(callback)) - .end(); - } - - /** - * Cancel document field invite payload - * @typedef {Object} DocumentFieldInviteCancelParams - * @property {string} id - an id of document - * @property {string} token - your auth token - */ - - /** - * Cancel document field invite response data - * @typedef {Object} DocumentFieldInviteCancelResponse - * @property {string} status - status of field invite cancellation, e.g. 'success' - */ - - /** - * Cancels an invite to a document - * @param {DocumentFieldInviteCancelParams} data - cancel field invite payload - * @param {function(err: ApiErrorResponse, res: DocumentFieldInviteCancelResponse)} [callback] - error first node.js callback - */ - static cancelFieldInvite ({ id, token }, callback) { - https - .request(buildRequestOptions({ - method: 'PUT', - path: `/document/${id}/fieldinvitecancel`, - authorization: { - type: 'Bearer', - token, - }, - }), responseHandler(callback)) - .on('error', errorHandler(callback)) - .end(); - } - - /** - * Cancels an invite to a document - * @deprecated use Document.cancelFieldInvite instead of this - * @param {DocumentFieldInviteCancelParams} data - cancel field invite payload - * @param {function(err: ApiErrorResponse, res: DocumentFieldInviteCancelResponse)} [callback] - error first node.js callback - */ - static cancelInvite ({ id, token }, callback) { - Document.cancelFieldInvite({ - id, - token, - }, callback); - } - - /** - * Merge documents optional settings - * @typedef {Object} DocumentMergeOptions - * @property {boolean} [removeOriginalDocuments=false] - if true original documents will be removed - */ - - /** - * Merge documents payload - * @typedef {Object} DocumentMergeParams - * @property {string} token - your auth token - * @property {string} name - new name for merged document - * @property {string[]} document_ids - an array of document IDs - * @property {DocumentMergeOptions} options - merge documents optional settings - */ - - /** - * Merge documents response data - * @typedef {Object} DocumentMergeResponse - * @property {string} document_id - an ID of merged document - */ - - /** - * Merges existing documents into one. - * By default original documents are not removed after merging. To remove original documents set `removeOriginalDocuments` option to `true`. - * @param {DocumentMergeParams} data - merge documents payload - * @param {function(err: ApiErrorResponse, res: DocumentMergeResponse)} [originalCallback] - error first node.js callback - */ - static merge ({ - name, - document_ids, - options: { removeOriginalDocuments = false } = {}, - token, - }, originalCallback) { - const JSONData = JSON.stringify({ - upload_document: true, - document_ids, - name, - }); - - const callbackWithDocumentDeletion = (mergeErr, mergeRes) => { - if (mergeErr) { - originalCallback(mergeErr); - return; - } else { - - const removeDocument = ({ id }) => new Promise((resolve, reject) => { - Document.remove({ - id, - token, - }, (err, res) => { - if (err) { - reject(err); - } else { - resolve(res.status === 'success'); - } - }); - }); - - const documentsDeleted = document_ids - .map(id => removeDocument({ id })); - - Promise.all(documentsDeleted) - .then(deletionStatuses => deletionStatuses.reduce((generalStatus, currentStatus) => (generalStatus && currentStatus), true)) - .then(allDocumentsDeleted => { - if (allDocumentsDeleted) { - originalCallback(null, mergeRes); - return; - } else { - throw new Error('Some of the original documents were not removed'); - } - }) - .catch(removeErr => { - originalCallback(removeErr); - return; - }); - - } - }; - - const callback = removeOriginalDocuments - ? callbackWithDocumentDeletion - : originalCallback; - - const req = https - .request(buildRequestOptions({ - method: 'POST', - path: '/document/merge', - authorization: { - type: 'Bearer', - token, - }, - headers: { - 'Content-Type': 'application/json', - 'Content-Length': Buffer.byteLength(JSONData), - }, - }), responseHandler(callback)) - .on('error', errorHandler(originalCallback)); - - req.write(JSONData); - req.end(); - } - - /** - * Document history payload - * @typedef {Object} DocumentHistoryParams - * @property {string} id - id of specific document - * @property {string} token - your auth token - */ - - /** - * Document action log item - * @typedef {Object} DocumentEvent - * @property {string} client_app_name - name of a client application - * @property {?string} client_timestamp - client application timestamp - * @property {string} created - timestamp of action creation - * @property {string} email - email of an actor - * @property {string} event - name of event - * @property {string} ip_address - actor's IP address - * @property {?string} element_id - an ID of specific element - * @property {?string} field_id - an ID of specific field - * @property {?string} json_attributes - field attributes (e.g. font, style, size etc.) - * @property {string} [document_id] - an ID of specific document - * @property {string} [origin] - an origin of document - * @property {string} [unique_id] - an ID of event - * @property {string} [user_agent] - user agent - * @property {string} [user_id] - id of an actor - * @property {string} [version] - version of signed document (incremented after each signature addition) - */ - - /** - * Document history response data - * @typedef {DocumentEvent[]} DocumentHistoryResponse - */ - - /** - * Retrieves a document action log (history) data - * @param {DocumentHistoryParams} data - payload - * @param {function(err: ApiErrorResponse, res: DocumentHistoryResponse)} [callback] - error first node.js callback - */ - static history ({ id, token }, callback) { - https - .request(buildRequestOptions({ - method: 'GET', - path: `/document/${id}/history`, - authorization: { - type: 'Bearer', - token, - }, - }), responseHandler(callback)) - .on('error', errorHandler(callback)) - .end(); - } - - /** - * Document remove optional settings - * @typedef {Object} DocumentRemoveOptions - * @property {boolean} [cancelInvites=false] - ability to cancel all document invites during deletion - */ - - /** - * Remove document payload - * @typedef {Object} DocumentRemoveParams - * @property {string} id - id of specific document - * @property {string} token - your auth token - * @property {DocumentRemoveOptions} [options] - document remove optional settings - */ - - /** - * Remove document response data - * @typedef {Object} DocumentRemoveResponse - * @property {string} status - status of deletion, e.g. 'success' - */ - - /** - * Removes a specified document from folder - * @param {DocumentRemoveParams} data - remove document payload - * @param {function(err: ApiErrorResponse, res: DocumentRemoveResponse)} [originalCallback] - error first node.js callback - */ - static remove ({ - id: documentId, - token, - options: { cancelInvites = false } = {}, - }, originalCallback) { - const callbackWithInviteCancellation = (removeErr, removeRes) => { - if (removeErr) { - originalCallback(removeErr); - return; - } else { - promisify(Document.view)({ - id: documentId, - token, - }) - .then(document => { - const { field_invites: fieldInvites, requests: freeformInvites } = document; - return { - fieldInvites, - freeformInvites, - }; - }) - .then(({ fieldInvites, freeformInvites }) => { - const fieldInvitesCancelled = new Promise(resolve => { - if (Array.isArray(fieldInvites) && fieldInvites.length) { - resolve(promisify(Document.cancelFieldInvite)({ - id: documentId, - token, - })); - } else { - resolve({ status: 'success' }); - } - }) - .then(({ status }) => status === 'success'); - - const freeformInvitesCancelled = freeformInvites - .map(({ id: inviteId }) => { - return promisify(Document.cancelFreeFormInvite)({ - id: inviteId, - token, - }) - .then(({ id }) => !!id); - }); - - Promise.all([ - fieldInvitesCancelled, - ...freeformInvitesCancelled, - ]) - .then(allInvitesCancelled => { - if (allInvitesCancelled) { - originalCallback(null, removeRes); - return; - } else { - throw new Error('Some of invites have not been cancelled'); - } - }) - .catch(err => { - originalCallback(err.message); - return; - }); - }); - } - }; - - const callback = cancelInvites - ? callbackWithInviteCancellation - : originalCallback; - - https - .request(buildRequestOptions({ - method: 'DELETE', - path: `/document/${documentId}`, - authorization: { - type: 'Bearer', - token, - }, - }), responseHandler(callback)) - .on('error', errorHandler(originalCallback)) - .end(); - } - - /** - * Get Document Signers optional settings - * @typedef {Object} DocumentSignersOptions - * @property {boolean} [allSignatures=true] - if true receive all document signers email - * @property {boolean} [freeFormInvites=false] - if `true` return free from invite signer emails - * @property {?string[]} [fieldInvitesStatus=null] - return signers according to specified field invite status(es) - * Accepts list of statuses or a single status. - * Acceptable statuses: all, pending, declined, fulfilled, created, skipped. - * @property {?string[]} [paymentRequestsStatus=null] - return signers according to specified to payment request status(es) - * Accepts list of statuses or a single status. - * Available statuses: all, pending, fulfilled, created, skipped. - */ - - /** - * Get Document Signers payload - * @typedef {Object} DocumentSignersParams - * @property {string} id - id of specific document - * @property {string} token - your auth token - * @property {DocumentSignersOptions} [options] - document signers optional settings, - */ - - /** - * Get Document Signers response data - * @typedef {Object} DocumentSignersResponse - * @property {string[]} - emails of document signers - */ - - /** - * Retrieves all signers of specific document - * @experimental this class includes breaking change. - * @param {DocumentSignersParams} data - get document signers payload - * @param {function(err: ApiErrorResponse, res: DocumentSignersResponse)} [callback] - error first node.js callback - */ - static signers ({ - id, - token, - options = {}, - }, callback) { - promisify(Document.view)({ - id, - token, - }) - .then(document => { - const { - requests, - field_invites, - } = document; - - const { - freeFormInvites = false, - fieldInviteStatus = null, - paymentRequestStatus = null, - } = options; - - const emails = []; - - if (Object.keys(options).length === 0) { - const fieldInvitesEmails = getSignerEmails(field_invites, 'email') || []; - const freeFormInvitesEmails = getSignerEmails(requests, 'signer_email') || []; - - emails.push(...fieldInvitesEmails); - emails.push(...freeFormInvitesEmails); - } - - if (freeFormInvites) { - const freeFomInvites = getSignerEmails(requests, 'signer_email') || []; - - emails.push(...freeFomInvites); - } - - if (fieldInviteStatus) { - const fieldInvites = getSignerEmails(field_invites, 'email', fieldInviteStatus) || []; - const declined = getByDeclinedStatus(field_invites, fieldInviteStatus) || []; - - if (fieldInvites.length > 0) { - emails.push(...fieldInvites); - } else { - emails.push(...fieldInvites); - emails.push(...declined); - } - } - - if (paymentRequestStatus) { - const paymentRequests = getSignerEmails(field_invites, 'email', paymentRequestStatus) || []; - - emails.push(...paymentRequests); - } - - callback(null, [...new Set(emails)]); - }) - .catch(err => callback(err)); - } -} - -module.exports = Document; diff --git a/lib/embedded/index.js b/lib/embedded/index.js deleted file mode 100644 index 7ac7c2c6..00000000 --- a/lib/embedded/index.js +++ /dev/null @@ -1,162 +0,0 @@ -'use strict'; -const https = require('https'); -const { - responseHandler, - errorHandler, - buildRequestOptions, -} = require('../common'); - -/** - * Embedded methods - */ -class Embedded { - - /** - * Create embedded signing invite payload - * @typedef {Object} EmbeddedSigningInvite - * @property {string} email - Signer's email address - * @property {number} role_id - Signer's role ID - * @property {number} order - Order of signing. Cannot be 0 - * @property {string} auth_method - Signer authentication method. One of (password, email, mfa, social, biometric, other, none) - */ - - /** - * Create embedded signing invites payload - * @typedef {Object} EmbeddedCreateInvitesPayload - * @property {string} token - Access token. - * @property {string} document_id - ID of the requested document. - * @property {EmbeddedSigningInvite[]} invites - Array of invites - */ - - /** - * Response EmbeddedInvite - * @typedef {Object} EmbeddedInvite - * @property {string} id - ID of the sending invite - * @property {string} email - Signer's email address - * @property {number} role_id - Signer's role ID - * @property {number} order - Order of signing - * @property {string} status - Status of the invite - */ - - /** - * Create embedded signing invites response data - * @typedef {Object} EmbeddedCreateInvitesResponse - * @property {EmbeddedInvite[]} data - Array sending of invites - */ - - /** - * Create embedded signing invites for a document without sending emails. - * @param {EmbeddedCreateInvitesPayload} data - Create invites payload - * @param {function(err: ApiErrorResponse, res: EmbeddedCreateInvitesResponse)} [callback] - error first node.js callback - */ - static createInvite ({ - token, document_id, invites, - }, callback) { - const JSONData = JSON.stringify({ invites }); - const req = https - .request(buildRequestOptions({ - method: 'POST', - path: `/v2/documents/${document_id}/embedded-invites`, - authorization: { - type: 'Bearer', - token, - }, - headers: { - 'Content-Type': 'application/json', - 'Content-Length': Buffer.byteLength(JSONData), - }, - }), responseHandler(callback)) - .on('error', errorHandler(callback)); - - req.write(JSONData); - req.end(); - } - - /** - * Generate embedded invite link payload - * @typedef {Object} EmbeddedGenerateLinkPayload - * @property {string} token - Access token. - * @property {string} document_id - ID of the requested document. - * @property {string} field_invite_unique_id - ID of the signature invite you'd like to embed. - * @property {number} link_expiration - In how many minutes the link expires, ranges from 15 to 45 minutes or null. - * @property {string} auth_method - Signer authentication method. - */ - - /** - * Response EmbeddedGeneratedLink - * @typedef {Object} EmbeddedGeneratedLink - * @property {string} link - Returns a link for embedded invite - */ - - /** - * Generate a link for the embedded invite response data - * @typedef {Object} EmbeddedGenerateLinkResponse - * @property {EmbeddedGeneratedLink} data - Response data - */ - - /** - * Generate a link for the embedded invite. - * @param {EmbeddedGenerateLinkPayload} data - Generate embedded invite link payload - * @param {function(err: ApiErrorResponse, res: EmbeddedGenerateLinkResponse)} [callback] - error first node.js callback - */ - static generateInviteLink ({ - token, document_id, field_invite_unique_id, link_expiration, auth_method, - }, callback) { - const JSONData = JSON.stringify({ - link_expiration, - auth_method, - }); - const req = https - .request(buildRequestOptions({ - method: 'POST', - path: `/v2/documents/${document_id}/embedded-invites/${field_invite_unique_id}/link`, - authorization: { - type: 'Bearer', - token, - }, - headers: { - 'Content-Type': 'application/json', - 'Content-Length': Buffer.byteLength(JSONData), - }, - }), responseHandler(callback)) - .on('error', errorHandler(callback)); - - req.write(JSONData); - req.end(); - } - - /** - * Delete embedded invites for a document payload - * @typedef {Object} EmbeddedCancelInvitePayload - * @property {string} token - Access token. - * @property {string} document_id - ID of the requested document. - */ - - /** - * Generate a link for the embedded invite response data - * @typedef {Object} EmbeddedCancelInviteResponse - * @property {string} status - Returns success when all parameters are correct - */ - - /** - * Delete embedded invites for a document. - * @param {EmbeddedCancelInvitePayload} data - Delete embedded invites for a document payload - * @param {function(err: ApiErrorResponse, res: EmbeddedCancelInviteResponse)} [callback] - error first node.js callback - */ - static cancelInvites ({ token, document_id }, callback) { - const req = https - .request(buildRequestOptions({ - method: 'DELETE', - path: `/v2/documents/${document_id}/embedded-invites`, - authorization: { - type: 'Bearer', - token, - }, - headers: { 'Content-Type': 'application/json' }, - }), responseHandler(callback)) - .on('error', errorHandler(callback)); - req.end(); - } -} - -module.exports = Embedded; diff --git a/lib/enumerations/index.js b/lib/enumerations/index.js deleted file mode 100644 index f9bbfcea..00000000 --- a/lib/enumerations/index.js +++ /dev/null @@ -1,73 +0,0 @@ -'use strict'; -const https = require('https'); -const { - responseHandler, - errorHandler, - buildRequestOptions, -} = require('../common'); - - -/** - * Enumeration methods - */ -class Enumerations { - - /* - * add an enumeration field (drop down) to a document. - * NOTE: must be used with POST /enumeration_options () or the API will not recognize it - */ - static addField (data, callback) { - const { token } = data; - delete data.token; - - const JSONData = JSON.stringify(data); - const req = https - .request(buildRequestOptions({ - method: 'POST', - path: '/enumeration_field', - authorization: { - type: 'Bearer', - token, - }, - headers: { - 'Content-Type': 'application/json', - 'Content-Length': Buffer.byteLength(JSONData), - }, - }), responseHandler(callback)) - .on('error', errorHandler(callback)); - - req.write(JSONData); - req.end(); - } - - /* - * add enumeration options to the field that was created using the REST call above. - * NOTE: must be used with POST /enumeration_field () or the API will not recognize the field - */ - static addOptions (data, callback) { - const { token } = data; - delete data.token; - - const JSONData = JSON.stringify(data); - const req = https - .request(buildRequestOptions({ - method: 'POST', - path: '/enumeration_options', - authorization: { - type: 'Bearer', - token, - }, - headers: { - 'Content-Type': 'application/json', - 'Content-Length': Buffer.byteLength(JSONData), - }, - }), responseHandler(callback)) - .on('error', errorHandler(callback)); - - req.write(JSONData); - req.end(); - } - -} - -module.exports = Enumerations; diff --git a/lib/folder/index.js b/lib/folder/index.js deleted file mode 100644 index 3c14163e..00000000 --- a/lib/folder/index.js +++ /dev/null @@ -1,78 +0,0 @@ -'use strict'; -const https = require('https'); -const { - responseHandler, - errorHandler, - buildRequestOptions, -} = require('../common'); - - -/** - * Folder methods - */ -class Folder { - - // list folders - static list ({ token }, callback) { - https - .request(buildRequestOptions({ - method: 'GET', - path: '/folder', - authorization: { - type: 'Bearer', - token, - }, - }), responseHandler(callback)) - .on('error', errorHandler(callback)) - .end(); - } - - // get documents in a folder - static documents ({ - id, - filter, - sort, - token, - }, callback) { - let path = `/folder/${id}`; - let URLParams = ''; - - // build filters if supplied - if (Array.isArray(filter) && filter.length > 0) { - for (let i = 0; i < filter.length; i++) { - if (i === 0) { - URLParams += `?filters=${Object.keys(filter[i])}&filter-values=${filter[i][Object.keys(filter[i])]}`; - } else { - URLParams += `&filters=${Object.keys(filter[i])}&filter-values=${filter[i][Object.keys(filter[i])]}`; - } - } - } - - // build sort if supplied - if (sort) { - if (URLParams.length > 0) { - URLParams += '&'; - } else { - URLParams += '?'; - } - URLParams += `sortby=${Object.keys(sort)}&order=${sort[Object.keys(sort)]}`; - } - - path = path + URLParams; - - https - .request(buildRequestOptions({ - method: 'GET', - authorization: { - type: 'Bearer', - token, - }, - path, - }), responseHandler(callback)) - .on('error', errorHandler(callback)) - .end(); - } - -} - -module.exports = Folder; diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 7d4d3c38..00000000 --- a/lib/index.js +++ /dev/null @@ -1,80 +0,0 @@ -'use strict'; -const user = require('./user'); -const document = require('./document'); -const folder = require('./folder'); -const webhook = require('./webhook'); -const oauth2 = require('./oauth2'); -const enumerations = require('./enumerations'); -const template = require('./template'); -const link = require('./link'); -const documentGroup = require('./document-group'); -const documentGroupTemplate = require('./document-group-template'); -const embedded = require('./embedded'); -const { setCredentials } = require('./common'); -const { setEnvConfig } = require('../config'); - -/** - * Api client initialization params - * @typedef {Object} InitParams - * @property {string} credentials - base64 encoded basic API credentials - * @property {boolean} [production=true] - production/eval API flag. If false uses eval - */ - -/** - * Api client features - * @typedef {Object} Features - * @property {User} user - user related methods - * @property {OAuth2} oauth2 - authentication related methods - * @property {Document} document - document related methods - * @property {Template} template - template related methods - * @property {Link} link - link related methods - * @property {DocumentGroup} documentGroup - document group related methods - * @property {DocumentGroupTemplate} documentGroupTemplate - document group template related methods - * @property {Embedded} embedded - embedded signing related methods - */ - -/** - * SignNow API client initialization - * @param {InitParams} params - API client initialization params - * @return {Features} - */ -module.exports = function init ({ - production = true, - credentials, -}) { - if (credentials) { - setCredentials(credentials); - } - - if (production) { - setEnvConfig('prod'); - } else { - setEnvConfig('eval'); - } - - return { - user, - oauth2, - document, - webhook, - folder, - enumerations, - template, - link, - documentGroup, - documentGroupTemplate, - embedded, - }; -}; - -/** - * Api error object - * @typedef {Object} ApiError - * @property {number} code - error code - * @property {string} message - error message - */ - -/** - * Api error response - * @typedef {?(ApiError[]|ApiError|Error|string)} ApiErrorResponse - */ diff --git a/lib/link/index.js b/lib/link/index.js deleted file mode 100644 index 3cdd340a..00000000 --- a/lib/link/index.js +++ /dev/null @@ -1,84 +0,0 @@ -'use strict'; -const https = require('https'); -const { - responseHandler, - errorHandler, - buildRequestOptions, -} = require('../common'); -const { view } = require('../document'); - -/** - * @type {function} - * @param {DocumentViewParams} data - view document with field extract payload - * @param {function(err: ApiErrorResponse, res: DocumentViewResponse)} [callback] - error first node.js callback - */ -const getDocumentDetails = view; - -/** - * Link methods - */ -class Link { - - /** - * Create signing link payload - * @typedef {Object} SigningLinkCreateParams - * @property {string} document_id - id of specific document - * @property {string} token - your auth token - */ - - /** - * Create signing link response data - * @typedef {Object} SigningLinkCreateResponse - * @property {string} url - invite url with user authorization - * @property {string} url_no_signup - invite url without user authorization - */ - - /** - * Creates signing link for specified document - * @param {SigningLinkCreateParams} data - create signing link payload - * @param {function(err: ApiErrorResponse, res: SigningLinkCreateResponse)} [callback] - error first node.js callback - */ - static create ({ document_id, token }, callback) { - getDocumentDetails({ - id: document_id, - token, - }, (detailErr, detailRes) => { - if (detailErr) { - callback(detailErr); - return; - } else { - const { routing_details } = detailRes; - const documentHasAtLeastOneUnfixedRole = routing_details - .map(routing => routing.data) - .reduce((acc, i) => acc.concat(i), []) - .some(role => role.default_email === ''); - - if (documentHasAtLeastOneUnfixedRole) { - const JSONData = JSON.stringify({ document_id }); - const req = https - .request(buildRequestOptions({ - method: 'POST', - path: '/link', - authorization: { - type: 'Bearer', - token, - }, - headers: { - 'Content-Type': 'application/json', - 'Content-Length': Buffer.byteLength(JSONData), - }, - }), responseHandler(callback)) - .on('error', errorHandler(callback)); - - req.write(JSONData); - req.end(); - } else { - callback('A document must have at least one role that does not have a fixed e-mail to create an invite link.'); - return; - } - } - }); - } -} - -module.exports = Link; diff --git a/lib/oauth2/index.js b/lib/oauth2/index.js deleted file mode 100644 index d23274af..00000000 --- a/lib/oauth2/index.js +++ /dev/null @@ -1,134 +0,0 @@ -'use strict'; -const https = require('https'); -const querystring = require('querystring'); -const { - responseHandler, - errorHandler, - buildRequestOptions, -} = require('../common'); - -/** - * OAuth2 methods - */ -class OAuth2 { - - /** - * Request access token payload - * @typedef {Object} AccessTokenGetParams - * @property {string} username - email of a user - * @property {string} password - password of a user - */ - - /** - * Request access token response data - * @typedef {Object} AccessTokenGetResponse - * @property {number} expires_in - time in seconds for which the token was issued - * @property {string} token_type - type of access token (e.g. 'bearer') - * @property {string} access_token - access token - * @property {string} refresh_token - refresh token - * @property {string} scope - access scopes - */ - - /** - * Requests access token for a user - * @param {AccessTokenGetParams} data - access token reques payload - * @param {function(err: ApiErrorResponse, res: AccessTokenGetResponse)} [callback] - error first node.js callback - */ - static requestToken (data, callback) { - const dataCopy = Object.assign({}, data, { grant_type: 'password' }); - const dataStringified = querystring.stringify(dataCopy).replace('%40', '@'); - const req = https - .request(buildRequestOptions({ - method: 'POST', - path: '/oauth2/token', - authorization: { type: 'Basic' }, - headers: { - 'Content-Type': 'application/x-www-form-urlencoded', - 'Content-Length': Buffer.byteLength(dataStringified), - }, - }), responseHandler(callback)) - .on('error', errorHandler(callback)); - - req.write(dataStringified); - req.end(); - } - - /** - * Verify access token payload - * @typedef {Object} AccessTokenVerifyParams - * @property {string} token - your auth token - */ - - /** - * Verify access token response data - * @typedef {Object} AccessTokenVerifyResponse - * @property {number} expires_in - time in seconds for which the token was issued - * @property {string} token_type - type of access token (e.g. 'bearer') - * @property {string} access_token - access token - * @property {string} scope - access scopes - */ - - /** - * Verifies access token - * @param {AccessTokenVerifyParams} data - access token request payload - * @param {function(err: ApiErrorResponse, res: AccessTokenVerifyResponse)} [callback] - error first node.js callback - */ - static verify ({ token }, callback) { - https - .request(buildRequestOptions({ - method: 'GET', - path: '/oauth2/token', - authorization: { - type: 'Bearer', - token, - }, - }), responseHandler(callback)) - .on('error', errorHandler(callback)) - .end(); - } - - /** - * Refresh access token payload - * @typedef {Object} AccessTokenRefreshParams - * @property {string} refresh_token - your refresh token - * @property {string} [scope] - access scopes of access token - * @property {number} [expiration_time] - time in seconds for which the token was issued - */ - - /** - * Refresh access token response data - * @typedef {Object} AccessTokenRefreshResponse - * @property {number} expires_in - time in seconds for which the token was issued - * @property {string} token_type - type of access token (e.g. 'bearer') - * @property {string} access_token - access token - * @property {string} refresh_token - refresh token - * @property {string} scope - access scopes - */ - - /** - * Refreshes access token for a user - * @param {AccessTokenRefreshParams} data - refresh token request payload - * @param {function(err: ApiErrorResponse, res: AccessTokenRefreshResponse)} [callback] - error first node.js callback - */ - static refreshToken (data, callback) { - const dataCopy = Object.assign({}, data, { grant_type: 'refresh_token' }); - const dataStringified = querystring.stringify(dataCopy).replace('%40', '@'); - const req = https - .request(buildRequestOptions({ - method: 'POST', - path: '/oauth2/token', - authorization: { type: 'Basic' }, - headers: { - 'Content-Type': 'application/x-www-form-urlencoded', - 'Content-Length': Buffer.byteLength(dataStringified), - }, - }), responseHandler(callback)) - .on('error', errorHandler(callback)); - - req.write(dataStringified); - req.end(); - } - -} - -module.exports = OAuth2; diff --git a/lib/template/index.js b/lib/template/index.js deleted file mode 100644 index 748bdae0..00000000 --- a/lib/template/index.js +++ /dev/null @@ -1,601 +0,0 @@ -'use strict'; -const https = require('https'); -const { readFileSync } = require('fs'); -const { basename } = require('path'); -const { - responseHandler, - errorHandler, - buildRequestOptions, - isCSVFile, - getFormDataBoundary, -} = require('../common'); -const { - remove, - invite, - view, -} = require('../document'); -const { promisify } = require('../../utils'); - -/** - * @type {function} - * @param {DocumentRemoveParams} data - remove document payload - * @param {function(err: ApiErrorResponse, res: DocumentRemoveResponse)} [callback] - error first node.js callback - */ -const removeDocument = remove; - -/** - * @type {function} - * @param {DocumentInviteParams} data - create document invite payload - * @param {function(err: ApiErrorResponse, res: DocumentInviteResponse)} [callback] - error first node.js callback - */ -const sendDocumentInvite = invite; - -/** - * @type {function} - * @param {DocumentViewParams} data - view document with field extract payload - * @param {function(err: ApiErrorResponse, res: DocumentViewResponse)} [callback] - error first node.js callback - */ -const getDocumentDetails = view; - -/** - * Update Signing Role payload - * @typedef {Object} TemplateUpdateSigningRoleParams - * @property {string} id - an ID of Actor (role) - * @property {string} token - your auth token - * @property {number} signing_order - signing order number - */ - -/** - * Update Signing Role response data - * @typedef {Object} TemplateUpdateSigningRoleResponse - * @property {string} id - unique ID of Actor - * @property {string} document_id - unique ID of Template - * @property {number} signing_order - signing order number - */ - -/** - * Updates Signing Role with order of actor - * @param {TemplateUpdateSigningRoleParams} data - update signing role payload - * @param {function(err: ApiErrorResponse, res: TemplateUpdateSigningRoleResponse)} [callback] - error first node.js callback - */ -const updateSigningRole = ({ - id, - token, - signing_order, -}, callback) => { - const JSONData = JSON.stringify({ signing_order }); - const req = https - .request(buildRequestOptions({ - method: 'PUT', - path: `/role/${id}`, - authorization: { - type: 'Bearer', - token, - }, - headers: { - 'Content-Type': 'application/json', - 'Content-Length': Buffer.byteLength(JSONData), - }, - }), responseHandler(callback)) - .on('error', errorHandler(callback)); - - req.write(JSONData); - req.end(); -}; - -/** - * Template methods - */ -class Template { - - /** - * Document invite optional settings - * @typedef {Object} TemplateCreateOptions - * @property {boolean} [removeOriginalDocument=false] - if true original document will be removed - */ - - /** - * Create template payload - * @typedef {Object} TemplateCreateParams - * @property {string} document_id - an id of original document - * @property {string} document_name - a name of new template - * @property {TemplateCreateOptions} options - create template optional settings - * @property {string} token - your auth token - */ - - /** - * Create template response data - * @typedef {Object} TemplateCreateResponse - * @property {string} id - an id of created template - */ - - /** - * Creates a template by copying an existing unfulfilled and not requested for sign document. - * By default original document is not removed after template creation. To remove original document set `removeOriginalDocument` option to `true`. - * @param {TemplateCreateParams} data - create template payload - * @param {function(err: ApiErrorResponse, res: TemplateCreateResponse)} [originalCallback] - error first node.js callback - */ - static create ({ - document_id, - document_name, - options: { removeOriginalDocument = false } = {}, - token, - }, originalCallback) { - const JSONData = JSON.stringify({ - document_id, - document_name, - }); - - const callbackWithDocumentDeletion = (createErr, createRes) => { - if (createErr) { - originalCallback(createErr); - return; - } else { - removeDocument({ - id: document_id, - token, - }, removeErr => { - if (removeErr) { - originalCallback(removeErr); - return; - } else { - originalCallback(null, createRes); - return; - } - }); - } - }; - - const callback = removeOriginalDocument - ? callbackWithDocumentDeletion - : originalCallback; - - const req = https - .request(buildRequestOptions({ - method: 'POST', - path: '/template', - authorization: { - type: 'Bearer', - token, - }, - headers: { - 'Content-Type': 'application/json', - 'Content-Length': Buffer.byteLength(JSONData), - }, - }), responseHandler(callback)) - .on('error', errorHandler(originalCallback)); - - req.write(JSONData); - req.end(); - } - - /** - * Copy template payload - * @typedef {Object} TemplateDuplicateParams - * @property {string} id - an id of original template - * @property {string} name - a name of new document - * @property {string} token - your auth token - */ - - /** - * Copy template response data - * @typedef {Object} TemplateDuplicateResponse - * @property {string} id - an id of created document - * @property {string} name - a name of created document - */ - - /** - * Creates a new document by copying a template. - * If a name is not supplied then document name will be set to the original template's name by default. - * @param {TemplateDuplicateParams} data - duplicate template payload - * @param {function(err: ApiErrorResponse, res: TemplateDuplicateResponse)} [callback] - error first node.js callback - */ - static duplicate ({ - id: template_id, - name: document_name, - token, - }, callback) { - const JSONData = JSON.stringify({ - template_id, - document_name, - }); - - const req = https - .request(buildRequestOptions({ - method: 'POST', - path: `/template/${template_id}/copy`, - authorization: { - type: 'Bearer', - token, - }, - headers: { - 'Content-Type': 'application/json', - 'Content-Length': Buffer.byteLength(JSONData), - }, - }), responseHandler(callback)) - .on('error', errorHandler(callback)); - - req.write(JSONData); - req.end(); - } - - /** - * Create invite with template payload - * @typedef {DocumentInviteParams} TemplateInviteParams - */ - - /** - * Create invite with template response data - * @typedef {DocumentInviteResponse} TemplateInviteResponse - */ - - /** - * Creates an invite to sign a template. - * You can create a simple free form invite(s) or a role-based invite(s). - * The method copies a template into document and creates an invite using created document. - * @param {TemplateInviteParams} data - create template invite payload - * @param {function(err: ApiErrorResponse, res: TemplateInviteResponse)} [callback] - error first node.js callback - */ - static invite ({ - id, - data, - options, - token, - }, callback) { - Template.duplicate({ - id, - token, - }, (copyErr, copyRes) => { - if (copyErr) { - callback(copyErr); - return; - } else if (Array.isArray(data.to)) { - const { id: documentId } = copyRes; - - getDocumentDetails({ - id: documentId, - token, - }, (detailErr, detailRes) => { - if (detailErr) { - callback(detailErr); - return; - } else { - const inviteData = Object.assign({}, data, { document_id: documentId }); - const { roles } = detailRes; - - for (const signer of inviteData.to) { - try { - signer.role_id = roles.find(role => role.name === signer.role).unique_id; - } catch (err) { - callback(err); - return; - } - } - - sendDocumentInvite({ - id: documentId, - data: inviteData, - options, - token, - }, callback); - } - }); - } else { - const { id: documentId } = copyRes; - const inviteData = Object.assign({}, data, { document_id: documentId }); - - sendDocumentInvite({ - id: documentId, - data: inviteData, - options, - token, - }, callback); - } - }); - } - - /** - * Remove template payload - * @typedef {DocumentRemoveParams} TemplateRemoveParams - */ - - /** - * Remove template response data - * @typedef {DocumentRemoveResponse} TemplateRemoveResponse - */ - - /** - * Removes a specified template from folder - * @param {TemplateRemoveParams} data - remove template payload - * @param {function(err: ApiErrorResponse, res: TemplateRemoveResponse)} [callback] - error first node.js callback - */ - static remove ({ - id, - token, - options, - }, callback) { - removeDocument({ - id, - token, - options, - }, callback); - } - - /** - * Get Template Routing Details payload - * @typedef {Object} TemplateGetRoutingDetailsParams - * @property {string} id - an ID of specific Template - * @property {string} token - your auth token - */ - - /** - * Template Routing Details item data - * @typedef {Object} TemplateRoutingDetailsItem - * @property {string} default_email - default email for routing detail - * @property {boolean} inviter_role - always `false` - * @property {string} name - signer role (actor) name - * @property {string} role_id - signer role (actor) unique ID - * @property {number} signing_order - order number of signing step - */ - - /** - * Template Routing Details CC step info - * @typedef {Object} TemplateRoutingDetailsCCStep - * @property {string} email - email of cc step - * @property {number} step - step order number - * @property {string} name - name of cc step - */ - - /** - * Get Template Routing Details response data - * @typedef {Object} TemplateGetRoutingDetailsResponse - * @property {TemplateRoutingDetailsItem[]} routing_details - array with routing details - * @property {string[]} cc - CC emails - * @property {TemplateRoutingDetailsCCStep[]} cc_step - array of CC`s steps - * @property {string} invite_link_instructions - invite link instructions - */ - - /** - * Retrieves Routing Details of specified Template - * @param {TemplateGetRoutingDetailsParams} data - get Routing Details payload - * @param {function(err: ApiErrorResponse, res: TemplateGetRoutingDetailsResponse)} [callback] - error first node.js callback - */ - static getRoutingDetails ({ - id, - token, - }, callback) { - https - .request(buildRequestOptions({ - method: 'GET', - path: `/document/${id}/template/routing/detail`, - authorization: { - type: 'Bearer', - token, - }, - }), responseHandler(callback)) - .on('error', errorHandler(callback)) - .end(); - } - - /** - * Template Update Routing Details item data - * @typedef {Object} TemplateUpdateRoutingDetailsItem - * @property {string} default_email - default email for routing detail - * @property {boolean} inviter_role - always `false` - * @property {string} name - signer role (actor) name - * @property {string} role_id - signer role (actor) unique ID - * @property {number} signing_order - order number of signing step - * @property {boolean} decline_by_signature - decline by signature flag - */ - - /** - * Update Template Routing Details settings - * @typedef {Object} TemplateUpdateRoutingDetailsSettings - * @property {TemplateUpdateRoutingDetailsItem[]} template_data - array with routing details - * @property {string[]} cc - CC emails - * @property {TemplateRoutingDetailsCCStep[]} cc_step - array of CC steps - * @property {string} [invite_link_instructions] - invite signing instructions - */ - - /** - * Update Template Routing Details payload - * @typedef {Object} TemplateUpdateRoutingDetailsParams - * @property {string} id - an ID of specific Template - * @property {string} token - your auth token - * @property {TemplateUpdateRoutingDetailsSettings} data - update Template Routing Details settings - */ - - /** - * Update Template Routing Details response data - * @typedef {Object} TemplateUpdateRoutingDetailsResponse - * @property {string} id - unique ID of template routing details - * @property {string} document_id - unique ID of Template - * @property {TemplateUpdateRoutingDetailsItem[]} data - array with routing details - * @property {string[]} cc - CC emails - * @property {TemplateRoutingDetailsCCStep[]} cc_step - array of CC steps - * @property {string} invite_link_instructions - invite signing instructions - */ - - /** - * Updates Routing Details of specified template - * @param {TemplateUpdateRoutingDetailsParams} data - update Template Routing Details payload - * @param {function(err: ApiErrorResponse, res: TemplateUpdateRoutingDetailsResponse)} [callback] - error first node.js callback - */ - static updateRoutingDetails ({ - id, - token, - data, - }, callback) { - const { - template_data, - cc, - cc_step, - invite_link_instructions, - } = data; - const JSONData = JSON.stringify({ - template_data, - cc, - cc_step, - invite_link_instructions, - }); - - const updateCallback = (err, res) => { - if (err) { - callback(err); - return; - } else { - const { data: routingDetails } = res; - const rolesUpdated = routingDetails - .map(route => { - const { role_id, signing_order } = route; - return promisify(updateSigningRole)({ - id: role_id, - signing_order, - token, - }); - }); - - Promise.all(rolesUpdated) - .then(roleUpdatesRes => { - return roleUpdatesRes.reduce((generalStatus, roleUpdateRes) => (generalStatus && !!roleUpdateRes.id), true); - }) - .then(allRolesUpdated => { - if (allRolesUpdated) { - callback(null, res); - return; - } else { - throw new Error('Some roles (actors) where not updated'); - } - }) - .catch(roleUpdatesErr => { - callback(roleUpdatesErr); - return; - }); - } - }; - - const req = https - .request(buildRequestOptions({ - method: 'PUT', - path: `/document/${id}/template/routing/detail`, - authorization: { - type: 'Bearer', - token, - }, - headers: { - 'Content-Type': 'application/json', - 'Content-Length': Buffer.byteLength(JSONData), - }, - }), responseHandler(updateCallback)) - .on('error', errorHandler(callback)); - - req.write(JSONData); - req.end(); - } - - /** - * Template Bulk Invite settings - * @typedef {Object} TemplateBulkInviteSettings - * @property {string} file - path to .csv file with roles and their emails. Max file size should be <= 1 Megabyte - * @property {string} folder_id - an ID of folder where signed documents will be saved - * @property {number} [client_timestamp] - client timestamp in seconds - * @property {string} [document_name] - setup prefix for each document name - * @property {string} [subject] - custom email subject - * @property {string} [email_message] - custom email message - */ - - /** - * Send Template Bulk Invite payload - * @typedef {Object} TemplateBulkInviteParams - * @property {string} id - an ID of specific Template - * @property {string} token - your auth token - * @property {TemplateBulkInviteSettings} data - Template Bulk Invite settings - */ - - /** - * Send Template Bulk Invite response data - * @typedef {Object} TemplateBulkInviteResponse - * @property {string} status - status of sending bulk invites (e.g. "job queued") - */ - - /** - * Sends invites to sign a specified template to multiple signers at once - * @experimental internal implementation of this method might be changed - * @param {TemplateBulkInviteParams} data - Bulk Invite payload - * @param {function(err: ApiErrorResponse, res: TemplateBulkInviteResponse)} [callback] - error first node.js callback - */ - static bulkInvite ({ - id, - token, - data, - }, callback) { - const { - file, - folder_id, - client_timestamp, - document_name, - subject, - email_message, - } = data; - - if (!isCSVFile(file)) { - callback('The file that was tried to be uploaded is not a CSV file'); - return; - } - - const metaData = { - folder_id, - client_timestamp, - document_name, - subject, - email_message, - }; - - const formDataBoundary = getFormDataBoundary(); - const formDataBeginning = Object - .entries(metaData) - .reduce((formData, [ - name, - value, - ]) => `${formData}--${formDataBoundary}\r\nContent-Disposition: form-data; name="${name}";\r\n\r\n${value}\r\n`, '') - .concat(`--${formDataBoundary}\r\n`) - .concat(`Content-Disposition: form-data; name="file"; filename="${basename(file)}"\r\n`) - .concat('Content-Type: text/csv\r\n\r\n'); - const formDataEnding = `\r\n--${formDataBoundary}\r\n`; - let fileContent; - - try { - fileContent = readFileSync(file); - } catch (err) { - callback(err); - return; - } - - const payload = Buffer.concat([ - Buffer.from(formDataBeginning, 'utf8'), - Buffer.from(fileContent, 'binary'), - Buffer.from(formDataEnding, 'utf8'), - ]); - - const req = https - .request(buildRequestOptions({ - method: 'POST', - path: `/template/${id}/bulkinvite`, - authorization: { - type: 'Bearer', - token, - }, - headers: { - 'Content-Type': `multipart/form-data; boundary=${formDataBoundary}`, - 'Content-Length': Buffer.byteLength(payload), - }, - }), responseHandler(callback)) - .on('error', errorHandler(callback)); - - req.write(payload); - req.end(); - } - -} - -module.exports = Template; diff --git a/lib/user/index.js b/lib/user/index.js deleted file mode 100644 index 9e916f6b..00000000 --- a/lib/user/index.js +++ /dev/null @@ -1,185 +0,0 @@ -'use strict'; -const https = require('https'); -const { - responseHandler, - errorHandler, - buildRequestOptions, -} = require('../common'); - -/** - * User methods - */ -class User { - - /** - * Create User optional settings - * @typedef {Object} CreateUserOptions - * @property {boolean} [verifyEmail=false] - if `true` verification email will be sent - * @property {number} [startTrial=false] - if `true` start 30 days free trial - */ - - /** - * Create user payload - * @typedef {Object} UserCreateParams - * @property {string} email - email of new user - * @property {string} password - password for new user - * @property {string} [first_name] - first name of new user - * @property {string} [last_name] - last name of new user - * @property {string} [number] - phone number of new user - * @property {CreateUserOptions} [options] - create user optional settings - */ - - /** - * Create user response data - * @typedef {Object} UserCreateResponse - * @property {string} id - user unique id - * @property {number} verified - user is verified or not - * @property {string} email - user email - */ - - /** - * Create new user account - * @param {UserCreateParams} data - create user payload - * @param {function(err: ApiErrorResponse, res: UserCreateResponse)} [originalCallback] - error first node.js callback - */ - static create ({ - email, - password, - first_name, - last_name, - number, - options: { - verifyEmail = false, - startTrial = false, - } = {}, - }, originalCallback) { - const JSONData = JSON.stringify({ - skip_30day_trial: startTrial ? 0 : 1, - email, - password, - first_name, - last_name, - number, - }); - - const callbackWithEmailVerification = (createErr, createRes) => { - if (createErr) { - originalCallback(createErr); - return; - } else { - User.verifyEmail({ email }, verifyErr => { - if (verifyErr) { - originalCallback(verifyErr); - return; - } else { - originalCallback(null, createRes); - return; - } - }); - } - }; - - const callback = verifyEmail - ? callbackWithEmailVerification - : originalCallback; - - const req = https - .request(buildRequestOptions({ - method: 'POST', - path: '/user', - authorization: { type: 'Basic' }, - headers: { - 'Content-Type': 'application/json', - 'Content-Length': Buffer.byteLength(JSONData), - }, - }), responseHandler(callback)) - .on('error', errorHandler(callback)); - - req.write(JSONData); - req.end(); - } - - /** - * Get user payload - * @typedef {Object} UserGetParams - * @property {string} token - your auth token - */ - - /** - * Retrieve user response data - * @typedef {Object} UserGetResponse - * @property {string} id - user unique id - * @property {string} first_name - first name - * @property {string} last_name - last name - * @property {number} active - user is active or not - * @property {string} created - user creation timestamp - * @property {string[]} emails - user emails - * @property {string} primary_email - user primary email - * @property {Object[]} subscriptions - user subscriptions data - * @property {?Object} cloud_export_account_details - cloud export account details data - * @property {boolean} is_logged_in - user is logged in or not - * @property {{start_date: string, end_date: string, start_timestamp: number, end_timestamp: number}} billing_period - user billing period data - * @property {Object[]} companies - companies where user is a member of - * @property {?string} registration_source - resource where user was registered - * @property {Object[]} teams - teams where user is a member of - * @property {Object} settings - user specific settings - * @property {Object[]} organization_settings - organization specific settings where user is a member of - * @property {Object[]} merchant_accounts - merchant accounts data - */ - - /** - * Retrieve user account details - * @param {UserGetParams} data - get user payload - * @param {function(err: ApiErrorResponse, res: UserGetResponse)} [callback] - error first node.js callback - */ - static retrieve ({ token }, callback) { - https - .request(buildRequestOptions({ - method: 'GET', - path: '/user', - authorization: { - type: 'Bearer', - token, - }, - }), responseHandler(callback)) - .on('error', errorHandler(callback)) - .end(); - } - - /** - * Verify user email payload - * @typedef {Object} UserVerifyEmailParams - * @property {string} email - email to verify - */ - - /** - * Verify user email response data - * @typedef {Object} UserVerifyEmailResponse - * @property {string} status - status of verification email sending, e.g. 'success' - */ - - /** - * Sends email with verification link to user - * @param {UserVerifyEmailParams} data - user verify email payload - * @param {function(err: ApiErrorResponse, res: UserVerifyEmailResponse)} [callback] - error first node.js callback - */ - static verifyEmail ({ email }, callback) { - const JSONData = JSON.stringify({ email }); - const req = https - .request(buildRequestOptions({ - method: 'POST', - path: '/user/verifyemail', - authorization: { type: 'Basic' }, - headers: { - 'Content-Type': 'application/json', - 'Content-Length': Buffer.byteLength(JSONData), - }, - }), responseHandler(callback)) - .on('error', errorHandler(callback)); - - req.write(JSONData); - req.end(); - } -} - -module.exports = User; diff --git a/lib/webhook/index.js b/lib/webhook/index.js deleted file mode 100644 index 235c17f0..00000000 --- a/lib/webhook/index.js +++ /dev/null @@ -1,62 +0,0 @@ -'use strict'; -const https = require('https'); -const { - responseHandler, - errorHandler, - buildRequestOptions, -} = require('../common'); - - -/** - * Webook methods - */ -class Webhook { - - // list webhooks - static list ({ token }, callback) { - https - .request(buildRequestOptions({ - method: 'GET', - path: '/event_subscription', - authorization: { - type: 'Bearer', - token, - }, - }), responseHandler(callback)) - .on('error', errorHandler(callback)) - .end(); - } - - // create webhook - static create ({ - event, - callback_url, - token, - }, callback) { - const JSONData = JSON.stringify({ - event, - callback_url, - }); - - const req = https - .request(buildRequestOptions({ - method: 'POST', - path: '/event_subscription', - authorization: { - type: 'Bearer', - token, - }, - headers: { - 'Content-Type': 'application/json', - 'Content-Length': Buffer.byteLength(JSONData), - }, - }), responseHandler(callback)) - .on('error', errorHandler(callback)); - - req.write(JSONData); - req.end(); - } - -} - -module.exports = Webhook; diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index af6be1f4..00000000 --- a/package-lock.json +++ /dev/null @@ -1,3575 +0,0 @@ -{ - "name": "@signnow/api-client", - "version": "1.8.2", - "lockfileVersion": 1, - "requires": true, - "dependencies": { - "@babel/code-frame": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0.tgz", - "integrity": "sha512-OfC2uemaknXr87bdLUkWog7nYuliM9Ij5HUcajsVcMCpQrcLmtxRbVFTIqmcSkSeYRBFBRxs2FiUqFJDLdiebA==", - "dev": true, - "requires": { - "@babel/highlight": "^7.0.0" - } - }, - "@babel/highlight": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0.tgz", - "integrity": "sha512-UFMC4ZeFC48Tpvj7C8UgLvtkaUuovQX+5xNWrsIoMG8o2z+XFKjKaN9iVmS84dPwVN00W4wPmqvYoZF3EGAsfw==", - "dev": true, - "requires": { - "chalk": "^2.0.0", - "esutils": "^2.0.2", - "js-tokens": "^4.0.0" - } - }, - "@types/node": { - "version": "12.0.10", - "resolved": "https://registry.npmjs.org/@types/node/-/node-12.0.10.tgz", - "integrity": "sha512-LcsGbPomWsad6wmMNv7nBLw7YYYyfdYcz6xryKYQhx89c3XXan+8Q6AJ43G5XDIaklaVkK3mE4fCb0SBvMiPSQ==", - "dev": true - }, - "@types/normalize-package-data": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz", - "integrity": "sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA==", - "dev": true - }, - "abab": { - "version": "1.0.4", - "resolved": "http://npm.pdffiller.com/abab/-/abab-1.0.4.tgz", - "integrity": "sha1-X6rZwsB/YN12dw9xzwJbYqY8/U4=", - "dev": true, - "optional": true - }, - "acorn": { - "version": "6.1.1", - "resolved": "http://npm.pdffiller.com/acorn/-/acorn-6.1.1.tgz", - "integrity": "sha512-jPTiwtOxaHNaAPg/dmrJ/beuzLRnXtB0kQPQ8JpotKJgTB6rX6c8mlf315941pyjBSaPg8NHXS9fhP4u17DpGA==", - "dev": true - }, - "acorn-globals": { - "version": "1.0.9", - "resolved": "http://npm.pdffiller.com/acorn-globals/-/acorn-globals-1.0.9.tgz", - "integrity": "sha1-VbtemGkVB7dFedBRNBMhfDgMVM8=", - "dev": true, - "optional": true, - "requires": { - "acorn": "^2.1.0" - }, - "dependencies": { - "acorn": { - "version": "2.7.0", - "resolved": "http://npm.pdffiller.com/acorn/-/acorn-2.7.0.tgz", - "integrity": "sha1-q259nYhqrKiwhbwzEreaGYQz8Oc=", - "dev": true, - "optional": true - } - } - }, - "acorn-jsx": { - "version": "5.0.1", - "resolved": "http://npm.pdffiller.com/acorn-jsx/-/acorn-jsx-5.0.1.tgz", - "integrity": "sha512-HJ7CfNHrfJLlNTzIEUTj43LNWGkqpRLxm3YjAlcD0ACydk9XynzYsCBHxut+iqt+1aBXkx9UP/w/ZqMr13XIzg==", - "dev": true - }, - "ajv": { - "version": "6.10.0", - "resolved": "http://npm.pdffiller.com/ajv/-/ajv-6.10.0.tgz", - "integrity": "sha512-nffhOpkymDECQyR0mnsUtoCE8RlX38G0rYP+wgLWFyZuUyuuojSSvi/+euOiQBIn63whYwYVIIH1TvE3tu4OEg==", - "dev": true, - "requires": { - "fast-deep-equal": "^2.0.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "ansi-colors": { - "version": "3.2.3", - "resolved": "http://npm.pdffiller.com/ansi-colors/-/ansi-colors-3.2.3.tgz", - "integrity": "sha512-LEHHyuhlPY3TmuUYMh2oz89lTShfvgbmzaBcxve9t/9Wuy7Dwf4yoAKcND7KFT1HAQfqZ12qtc+DUrBMeKF9nw==", - "dev": true - }, - "ansi-escapes": { - "version": "3.2.0", - "resolved": "http://npm.pdffiller.com/ansi-escapes/-/ansi-escapes-3.2.0.tgz", - "integrity": "sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ==", - "dev": true - }, - "ansi-regex": { - "version": "3.0.0", - "resolved": "http://npm.pdffiller.com/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", - "dev": true - }, - "ansi-styles": { - "version": "3.2.1", - "resolved": "http://npm.pdffiller.com/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "argparse": { - "version": "1.0.10", - "resolved": "http://npm.pdffiller.com/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, - "requires": { - "sprintf-js": "~1.0.2" - } - }, - "asn1": { - "version": "0.2.4", - "resolved": "http://npm.pdffiller.com/asn1/-/asn1-0.2.4.tgz", - "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", - "dev": true, - "optional": true, - "requires": { - "safer-buffer": "~2.1.0" - } - }, - "assert-plus": { - "version": "1.0.0", - "resolved": "http://npm.pdffiller.com/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", - "dev": true, - "optional": true - }, - "assertion-error": { - "version": "1.1.0", - "resolved": "http://npm.pdffiller.com/assertion-error/-/assertion-error-1.1.0.tgz", - "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", - "dev": true - }, - "astral-regex": { - "version": "1.0.0", - "resolved": "http://npm.pdffiller.com/astral-regex/-/astral-regex-1.0.0.tgz", - "integrity": "sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==", - "dev": true - }, - "asynckit": { - "version": "0.4.0", - "resolved": "http://npm.pdffiller.com/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", - "dev": true, - "optional": true - }, - "aws-sign2": { - "version": "0.7.0", - "resolved": "http://npm.pdffiller.com/aws-sign2/-/aws-sign2-0.7.0.tgz", - "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=", - "dev": true, - "optional": true - }, - "aws4": { - "version": "1.8.0", - "resolved": "http://npm.pdffiller.com/aws4/-/aws4-1.8.0.tgz", - "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==", - "dev": true, - "optional": true - }, - "babel-code-frame": { - "version": "6.26.0", - "resolved": "http://npm.pdffiller.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz", - "integrity": "sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=", - "dev": true, - "requires": { - "chalk": "^1.1.3", - "esutils": "^2.0.2", - "js-tokens": "^3.0.2" - }, - "dependencies": { - "ansi-regex": { - "version": "2.1.1", - "resolved": "http://npm.pdffiller.com/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true - }, - "ansi-styles": { - "version": "2.2.1", - "resolved": "http://npm.pdffiller.com/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "http://npm.pdffiller.com/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "js-tokens": { - "version": "3.0.2", - "resolved": "http://npm.pdffiller.com/js-tokens/-/js-tokens-3.0.2.tgz", - "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=", - "dev": true - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "http://npm.pdffiller.com/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "http://npm.pdffiller.com/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "babel-generator": { - "version": "6.26.1", - "resolved": "http://npm.pdffiller.com/babel-generator/-/babel-generator-6.26.1.tgz", - "integrity": "sha512-HyfwY6ApZj7BYTcJURpM5tznulaBvyio7/0d4zFOeMPUmfxkCjHocCuoLa2SAGzBI8AREcH3eP3758F672DppA==", - "dev": true, - "requires": { - "babel-messages": "^6.23.0", - "babel-runtime": "^6.26.0", - "babel-types": "^6.26.0", - "detect-indent": "^4.0.0", - "jsesc": "^1.3.0", - "lodash": "^4.17.4", - "source-map": "^0.5.7", - "trim-right": "^1.0.1" - } - }, - "babel-messages": { - "version": "6.23.0", - "resolved": "http://npm.pdffiller.com/babel-messages/-/babel-messages-6.23.0.tgz", - "integrity": "sha1-8830cDhYA1sqKVHG7F7fbGLyYw4=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0" - } - }, - "babel-runtime": { - "version": "6.26.0", - "resolved": "http://npm.pdffiller.com/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "babel-traverse": { - "version": "6.26.0", - "resolved": "http://npm.pdffiller.com/babel-traverse/-/babel-traverse-6.26.0.tgz", - "integrity": "sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4=", - "dev": true, - "requires": { - "babel-code-frame": "^6.26.0", - "babel-messages": "^6.23.0", - "babel-runtime": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "debug": "^2.6.8", - "globals": "^9.18.0", - "invariant": "^2.2.2", - "lodash": "^4.17.4" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "http://npm.pdffiller.com/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "globals": { - "version": "9.18.0", - "resolved": "http://npm.pdffiller.com/globals/-/globals-9.18.0.tgz", - "integrity": "sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==", - "dev": true - }, - "ms": { - "version": "2.0.0", - "resolved": "http://npm.pdffiller.com/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - } - } - }, - "babel-types": { - "version": "6.26.0", - "resolved": "http://npm.pdffiller.com/babel-types/-/babel-types-6.26.0.tgz", - "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", - "dev": true, - "requires": { - "babel-runtime": "^6.26.0", - "esutils": "^2.0.2", - "lodash": "^4.17.4", - "to-fast-properties": "^1.0.3" - } - }, - "babylon": { - "version": "6.18.0", - "resolved": "http://npm.pdffiller.com/babylon/-/babylon-6.18.0.tgz", - "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", - "dev": true - }, - "balanced-match": { - "version": "1.0.0", - "resolved": "http://npm.pdffiller.com/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "dev": true - }, - "bcrypt-pbkdf": { - "version": "1.0.2", - "resolved": "http://npm.pdffiller.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", - "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", - "dev": true, - "optional": true, - "requires": { - "tweetnacl": "^0.14.3" - } - }, - "boolbase": { - "version": "1.0.0", - "resolved": "http://npm.pdffiller.com/boolbase/-/boolbase-1.0.0.tgz", - "integrity": "sha1-aN/1++YMUes3cl6p4+0xDcwed24=", - "dev": true - }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "http://npm.pdffiller.com/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "browser-stdout": { - "version": "1.3.1", - "resolved": "http://npm.pdffiller.com/browser-stdout/-/browser-stdout-1.3.1.tgz", - "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", - "dev": true - }, - "caller-callsite": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/caller-callsite/-/caller-callsite-2.0.0.tgz", - "integrity": "sha1-hH4PzgoiN1CpoCfFSzNzGtMVQTQ=", - "dev": true, - "requires": { - "callsites": "^2.0.0" - }, - "dependencies": { - "callsites": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-2.0.0.tgz", - "integrity": "sha1-BuuE8A7qQT2oav/vrL/7Ngk7PFA=", - "dev": true - } - } - }, - "caller-path": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/caller-path/-/caller-path-2.0.0.tgz", - "integrity": "sha1-Ro+DBE42mrIBD6xfBs7uFbsssfQ=", - "dev": true, - "requires": { - "caller-callsite": "^2.0.0" - } - }, - "callsites": { - "version": "3.1.0", - "resolved": "http://npm.pdffiller.com/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true - }, - "camelcase": { - "version": "5.3.1", - "resolved": "http://npm.pdffiller.com/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true - }, - "caseless": { - "version": "0.12.0", - "resolved": "http://npm.pdffiller.com/caseless/-/caseless-0.12.0.tgz", - "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", - "dev": true, - "optional": true - }, - "chai": { - "version": "4.2.0", - "resolved": "http://npm.pdffiller.com/chai/-/chai-4.2.0.tgz", - "integrity": "sha512-XQU3bhBukrOsQCuwZndwGcCVQHyZi53fQ6Ys1Fym7E4olpIqqZZhhoFJoaKVvV17lWQoXYwgWN2nF5crA8J2jw==", - "dev": true, - "requires": { - "assertion-error": "^1.1.0", - "check-error": "^1.0.2", - "deep-eql": "^3.0.1", - "get-func-name": "^2.0.0", - "pathval": "^1.1.0", - "type-detect": "^4.0.5" - } - }, - "chalk": { - "version": "2.4.2", - "resolved": "http://npm.pdffiller.com/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "dependencies": { - "supports-color": { - "version": "5.5.0", - "resolved": "http://npm.pdffiller.com/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } - } - }, - "chardet": { - "version": "0.7.0", - "resolved": "http://npm.pdffiller.com/chardet/-/chardet-0.7.0.tgz", - "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==", - "dev": true - }, - "check-error": { - "version": "1.0.2", - "resolved": "http://npm.pdffiller.com/check-error/-/check-error-1.0.2.tgz", - "integrity": "sha1-V00xLt2Iu13YkS6Sht1sCu1KrII=", - "dev": true - }, - "cheerio": { - "version": "1.0.0-rc.2", - "resolved": "http://npm.pdffiller.com/cheerio/-/cheerio-1.0.0-rc.2.tgz", - "integrity": "sha1-S59TqBsn5NXawxwP/Qz6A8xoMNs=", - "dev": true, - "requires": { - "css-select": "~1.2.0", - "dom-serializer": "~0.1.0", - "entities": "~1.1.1", - "htmlparser2": "^3.9.1", - "lodash": "^4.15.0", - "parse5": "^3.0.1" - } - }, - "ci-info": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", - "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==", - "dev": true - }, - "cli-cursor": { - "version": "2.1.0", - "resolved": "http://npm.pdffiller.com/cli-cursor/-/cli-cursor-2.1.0.tgz", - "integrity": "sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU=", - "dev": true, - "requires": { - "restore-cursor": "^2.0.0" - } - }, - "cli-width": { - "version": "2.2.0", - "resolved": "http://npm.pdffiller.com/cli-width/-/cli-width-2.2.0.tgz", - "integrity": "sha1-/xnt6Kml5XkyQUewwR8PvLq+1jk=", - "dev": true - }, - "cliui": { - "version": "4.1.0", - "resolved": "http://npm.pdffiller.com/cliui/-/cliui-4.1.0.tgz", - "integrity": "sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ==", - "dev": true, - "requires": { - "string-width": "^2.1.1", - "strip-ansi": "^4.0.0", - "wrap-ansi": "^2.0.0" - } - }, - "code-point-at": { - "version": "1.1.0", - "resolved": "http://npm.pdffiller.com/code-point-at/-/code-point-at-1.1.0.tgz", - "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", - "dev": true - }, - "color-convert": { - "version": "1.9.3", - "resolved": "http://npm.pdffiller.com/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "requires": { - "color-name": "1.1.3" - } - }, - "color-logger": { - "version": "0.0.6", - "resolved": "http://npm.pdffiller.com/color-logger/-/color-logger-0.0.6.tgz", - "integrity": "sha1-5WJF7ymCJlcRDHy3WpzXhstp7Rs=", - "dev": true - }, - "color-name": { - "version": "1.1.3", - "resolved": "http://npm.pdffiller.com/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true - }, - "combined-stream": { - "version": "1.0.8", - "resolved": "http://npm.pdffiller.com/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "dev": true, - "optional": true, - "requires": { - "delayed-stream": "~1.0.0" - } - }, - "concat-map": { - "version": "0.0.1", - "resolved": "http://npm.pdffiller.com/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true - }, - "core-js": { - "version": "2.6.9", - "resolved": "http://npm.pdffiller.com/core-js/-/core-js-2.6.9.tgz", - "integrity": "sha512-HOpZf6eXmnl7la+cUdMnLvUxKNqLUzJvgIziQ0DiF3JwSImNphIqdGqzj6hIKyX04MmV0poclQ7+wjWvxQyR2A==", - "dev": true - }, - "core-util-is": { - "version": "1.0.2", - "resolved": "http://npm.pdffiller.com/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", - "dev": true - }, - "cosmiconfig": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-5.2.1.tgz", - "integrity": "sha512-H65gsXo1SKjf8zmrJ67eJk8aIRKV5ff2D4uKZIBZShbhGSpEmsQOPW/SKMKYhSTrqR7ufy6RP69rPogdaPh/kA==", - "dev": true, - "requires": { - "import-fresh": "^2.0.0", - "is-directory": "^0.3.1", - "js-yaml": "^3.13.1", - "parse-json": "^4.0.0" - }, - "dependencies": { - "import-fresh": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-2.0.0.tgz", - "integrity": "sha1-2BNVwVYS04bGH53dOSLUMEgipUY=", - "dev": true, - "requires": { - "caller-path": "^2.0.0", - "resolve-from": "^3.0.0" - } - }, - "resolve-from": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz", - "integrity": "sha1-six699nWiBvItuZTM17rywoYh0g=", - "dev": true - } - } - }, - "cross-spawn": { - "version": "6.0.5", - "resolved": "http://npm.pdffiller.com/cross-spawn/-/cross-spawn-6.0.5.tgz", - "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", - "dev": true, - "requires": { - "nice-try": "^1.0.4", - "path-key": "^2.0.1", - "semver": "^5.5.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - } - }, - "css-select": { - "version": "1.2.0", - "resolved": "http://npm.pdffiller.com/css-select/-/css-select-1.2.0.tgz", - "integrity": "sha1-KzoRBTnFNV8c2NMUYj6HCxIeyFg=", - "dev": true, - "requires": { - "boolbase": "~1.0.0", - "css-what": "2.1", - "domutils": "1.5.1", - "nth-check": "~1.0.1" - } - }, - "css-what": { - "version": "2.1.3", - "resolved": "http://npm.pdffiller.com/css-what/-/css-what-2.1.3.tgz", - "integrity": "sha512-a+EPoD+uZiNfh+5fxw2nO9QwFa6nJe2Or35fGY6Ipw1R3R4AGz1d1TEZrCegvw2YTmZ0jXirGYlzxxpYSHwpEg==", - "dev": true - }, - "cssom": { - "version": "0.3.6", - "resolved": "http://npm.pdffiller.com/cssom/-/cssom-0.3.6.tgz", - "integrity": "sha512-DtUeseGk9/GBW0hl0vVPpU22iHL6YB5BUX7ml1hB+GMpo0NX5G4voX3kdWiMSEguFtcW3Vh3djqNF4aIe6ne0A==", - "dev": true, - "optional": true - }, - "cssstyle": { - "version": "0.2.37", - "resolved": "http://npm.pdffiller.com/cssstyle/-/cssstyle-0.2.37.tgz", - "integrity": "sha1-VBCXI0yyUTyDzu06zdwn/yeYfVQ=", - "dev": true, - "optional": true, - "requires": { - "cssom": "0.3.x" - } - }, - "dashdash": { - "version": "1.14.1", - "resolved": "http://npm.pdffiller.com/dashdash/-/dashdash-1.14.1.tgz", - "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", - "dev": true, - "optional": true, - "requires": { - "assert-plus": "^1.0.0" - } - }, - "debug": { - "version": "3.2.6", - "resolved": "http://npm.pdffiller.com/debug/-/debug-3.2.6.tgz", - "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - }, - "decamelize": { - "version": "1.2.0", - "resolved": "http://npm.pdffiller.com/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", - "dev": true - }, - "deep-eql": { - "version": "3.0.1", - "resolved": "http://npm.pdffiller.com/deep-eql/-/deep-eql-3.0.1.tgz", - "integrity": "sha512-+QeIQyN5ZuO+3Uk5DYh6/1eKO0m0YmJFGNmFHGACpf1ClL1nmlV/p4gNgbl2pJGxgXb4faqo6UE+M5ACEMyVcw==", - "dev": true, - "requires": { - "type-detect": "^4.0.0" - } - }, - "deep-is": { - "version": "0.1.3", - "resolved": "http://npm.pdffiller.com/deep-is/-/deep-is-0.1.3.tgz", - "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", - "dev": true - }, - "define-properties": { - "version": "1.1.3", - "resolved": "http://npm.pdffiller.com/define-properties/-/define-properties-1.1.3.tgz", - "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", - "dev": true, - "requires": { - "object-keys": "^1.0.12" - } - }, - "delayed-stream": { - "version": "1.0.0", - "resolved": "http://npm.pdffiller.com/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", - "dev": true, - "optional": true - }, - "detect-indent": { - "version": "4.0.0", - "resolved": "http://npm.pdffiller.com/detect-indent/-/detect-indent-4.0.0.tgz", - "integrity": "sha1-920GQ1LN9Docts5hnE7jqUdd4gg=", - "dev": true, - "requires": { - "repeating": "^2.0.0" - } - }, - "diff": { - "version": "3.5.0", - "resolved": "http://npm.pdffiller.com/diff/-/diff-3.5.0.tgz", - "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", - "dev": true - }, - "doctrine": { - "version": "3.0.0", - "resolved": "http://npm.pdffiller.com/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", - "dev": true, - "requires": { - "esutils": "^2.0.2" - } - }, - "dom-serializer": { - "version": "0.1.1", - "resolved": "http://npm.pdffiller.com/dom-serializer/-/dom-serializer-0.1.1.tgz", - "integrity": "sha512-l0IU0pPzLWSHBcieZbpOKgkIn3ts3vAh7ZuFyXNwJxJXk/c4Gwj9xaTJwIDVQCXawWD0qb3IzMGH5rglQaO0XA==", - "dev": true, - "requires": { - "domelementtype": "^1.3.0", - "entities": "^1.1.1" - } - }, - "domelementtype": { - "version": "1.3.1", - "resolved": "http://npm.pdffiller.com/domelementtype/-/domelementtype-1.3.1.tgz", - "integrity": "sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w==", - "dev": true - }, - "domhandler": { - "version": "2.4.2", - "resolved": "http://npm.pdffiller.com/domhandler/-/domhandler-2.4.2.tgz", - "integrity": "sha512-JiK04h0Ht5u/80fdLMCEmV4zkNh2BcoMFBmZ/91WtYZ8qVXSKjiw7fXMgFPnHcSZgOo3XdinHvmnDUeMf5R4wA==", - "dev": true, - "requires": { - "domelementtype": "1" - } - }, - "domutils": { - "version": "1.5.1", - "resolved": "http://npm.pdffiller.com/domutils/-/domutils-1.5.1.tgz", - "integrity": "sha1-3NhIiib1Y9YQeeSMn3t+Mjc2gs8=", - "dev": true, - "requires": { - "dom-serializer": "0", - "domelementtype": "1" - } - }, - "ecc-jsbn": { - "version": "0.1.2", - "resolved": "http://npm.pdffiller.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", - "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", - "dev": true, - "optional": true, - "requires": { - "jsbn": "~0.1.0", - "safer-buffer": "^2.1.0" - } - }, - "emoji-regex": { - "version": "7.0.3", - "resolved": "http://npm.pdffiller.com/emoji-regex/-/emoji-regex-7.0.3.tgz", - "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", - "dev": true - }, - "end-of-stream": { - "version": "1.4.1", - "resolved": "http://npm.pdffiller.com/end-of-stream/-/end-of-stream-1.4.1.tgz", - "integrity": "sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q==", - "dev": true, - "requires": { - "once": "^1.4.0" - } - }, - "entities": { - "version": "1.1.2", - "resolved": "http://npm.pdffiller.com/entities/-/entities-1.1.2.tgz", - "integrity": "sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w==", - "dev": true - }, - "error-ex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", - "dev": true, - "requires": { - "is-arrayish": "^0.2.1" - } - }, - "es-abstract": { - "version": "1.13.0", - "resolved": "http://npm.pdffiller.com/es-abstract/-/es-abstract-1.13.0.tgz", - "integrity": "sha512-vDZfg/ykNxQVwup/8E1BZhVzFfBxs9NqMzGcvIJrqg5k2/5Za2bWo40dK2J1pgLngZ7c+Shh8lwYtLGyrwPutg==", - "dev": true, - "requires": { - "es-to-primitive": "^1.2.0", - "function-bind": "^1.1.1", - "has": "^1.0.3", - "is-callable": "^1.1.4", - "is-regex": "^1.0.4", - "object-keys": "^1.0.12" - } - }, - "es-to-primitive": { - "version": "1.2.0", - "resolved": "http://npm.pdffiller.com/es-to-primitive/-/es-to-primitive-1.2.0.tgz", - "integrity": "sha512-qZryBOJjV//LaxLTV6UC//WewneB3LcXOL9NP++ozKVXsIIIpm/2c13UDiD9Jp2eThsecw9m3jPqDwTyobcdbg==", - "dev": true, - "requires": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" - } - }, - "escape-html": { - "version": "1.0.3", - "resolved": "http://npm.pdffiller.com/escape-html/-/escape-html-1.0.3.tgz", - "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=", - "dev": true - }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "http://npm.pdffiller.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true - }, - "escodegen": { - "version": "1.11.1", - "resolved": "http://npm.pdffiller.com/escodegen/-/escodegen-1.11.1.tgz", - "integrity": "sha512-JwiqFD9KdGVVpeuRa68yU3zZnBEOcPs0nKW7wZzXky8Z7tffdYUHbe11bPCV5jYlK6DVdKLWLm0f5I/QlL0Kmw==", - "dev": true, - "optional": true, - "requires": { - "esprima": "^3.1.3", - "estraverse": "^4.2.0", - "esutils": "^2.0.2", - "optionator": "^0.8.1", - "source-map": "~0.6.1" - }, - "dependencies": { - "esprima": { - "version": "3.1.3", - "resolved": "http://npm.pdffiller.com/esprima/-/esprima-3.1.3.tgz", - "integrity": "sha1-/cpRzuYTOJXjyI1TXOSdv/YqRjM=", - "dev": true, - "optional": true - }, - "source-map": { - "version": "0.6.1", - "resolved": "http://npm.pdffiller.com/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "optional": true - } - } - }, - "esdoc": { - "version": "1.1.0", - "resolved": "http://npm.pdffiller.com/esdoc/-/esdoc-1.1.0.tgz", - "integrity": "sha512-vsUcp52XJkOWg9m1vDYplGZN2iDzvmjDL5M/Mp8qkoDG3p2s0yIQCIjKR5wfPBaM3eV14a6zhQNYiNTCVzPnxA==", - "dev": true, - "requires": { - "babel-generator": "6.26.1", - "babel-traverse": "6.26.0", - "babylon": "6.18.0", - "cheerio": "1.0.0-rc.2", - "color-logger": "0.0.6", - "escape-html": "1.0.3", - "fs-extra": "5.0.0", - "ice-cap": "0.0.4", - "marked": "0.3.19", - "minimist": "1.2.0", - "taffydb": "2.7.3" - }, - "dependencies": { - "minimist": { - "version": "1.2.0", - "resolved": "http://npm.pdffiller.com/minimist/-/minimist-1.2.0.tgz", - "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", - "dev": true - } - } - }, - "esdoc-accessor-plugin": { - "version": "1.0.0", - "resolved": "http://npm.pdffiller.com/esdoc-accessor-plugin/-/esdoc-accessor-plugin-1.0.0.tgz", - "integrity": "sha1-eRukhy5sQDUVznSbE0jW8Ck62es=", - "dev": true - }, - "esdoc-brand-plugin": { - "version": "1.0.1", - "resolved": "http://npm.pdffiller.com/esdoc-brand-plugin/-/esdoc-brand-plugin-1.0.1.tgz", - "integrity": "sha512-Yv9j3M7qk5PSLmSeD6MbPsfIsEf8K43EdH8qZpE/GZwnJCRVmDPrZJ1cLDj/fPu6P35YqgcEaJK4E2NL/CKA7g==", - "dev": true, - "requires": { - "cheerio": "0.22.0" - }, - "dependencies": { - "cheerio": { - "version": "0.22.0", - "resolved": "http://npm.pdffiller.com/cheerio/-/cheerio-0.22.0.tgz", - "integrity": "sha1-qbqoYKP5tZWmuBsahocxIe06Jp4=", - "dev": true, - "requires": { - "css-select": "~1.2.0", - "dom-serializer": "~0.1.0", - "entities": "~1.1.1", - "htmlparser2": "^3.9.1", - "lodash.assignin": "^4.0.9", - "lodash.bind": "^4.1.4", - "lodash.defaults": "^4.0.1", - "lodash.filter": "^4.4.0", - "lodash.flatten": "^4.2.0", - "lodash.foreach": "^4.3.0", - "lodash.map": "^4.4.0", - "lodash.merge": "^4.4.0", - "lodash.pick": "^4.2.1", - "lodash.reduce": "^4.4.0", - "lodash.reject": "^4.4.0", - "lodash.some": "^4.4.0" - } - } - } - }, - "esdoc-coverage-plugin": { - "version": "1.1.0", - "resolved": "http://npm.pdffiller.com/esdoc-coverage-plugin/-/esdoc-coverage-plugin-1.1.0.tgz", - "integrity": "sha1-OGmGnNf4eJH5cmJXh2laKZrs5Fw=", - "dev": true - }, - "esdoc-ecmascript-proposal-plugin": { - "version": "1.0.0", - "resolved": "http://npm.pdffiller.com/esdoc-ecmascript-proposal-plugin/-/esdoc-ecmascript-proposal-plugin-1.0.0.tgz", - "integrity": "sha1-OQ3FZWuoooMOOdujVw15E43y/9k=", - "dev": true - }, - "esdoc-external-ecmascript-plugin": { - "version": "1.0.0", - "resolved": "http://npm.pdffiller.com/esdoc-external-ecmascript-plugin/-/esdoc-external-ecmascript-plugin-1.0.0.tgz", - "integrity": "sha1-ePVl1KDFGFrGMVJhTc4f4ahmiNs=", - "dev": true, - "requires": { - "fs-extra": "1.0.0" - }, - "dependencies": { - "fs-extra": { - "version": "1.0.0", - "resolved": "http://npm.pdffiller.com/fs-extra/-/fs-extra-1.0.0.tgz", - "integrity": "sha1-zTzl9+fLYUWIP8rjGR6Yd/hYeVA=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "jsonfile": "^2.1.0", - "klaw": "^1.0.0" - } - }, - "jsonfile": { - "version": "2.4.0", - "resolved": "http://npm.pdffiller.com/jsonfile/-/jsonfile-2.4.0.tgz", - "integrity": "sha1-NzaitCi4e72gzIO1P6PWM6NcKug=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.6" - } - } - } - }, - "esdoc-external-nodejs-plugin": { - "version": "1.0.0", - "resolved": "http://npm.pdffiller.com/esdoc-external-nodejs-plugin/-/esdoc-external-nodejs-plugin-1.0.0.tgz", - "integrity": "sha1-mAHpgCCIo1nfJc4fSLSWGjQ5Zj8=", - "dev": true, - "requires": { - "fs-extra": "1.0.0" - }, - "dependencies": { - "fs-extra": { - "version": "1.0.0", - "resolved": "http://npm.pdffiller.com/fs-extra/-/fs-extra-1.0.0.tgz", - "integrity": "sha1-zTzl9+fLYUWIP8rjGR6Yd/hYeVA=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "jsonfile": "^2.1.0", - "klaw": "^1.0.0" - } - }, - "jsonfile": { - "version": "2.4.0", - "resolved": "http://npm.pdffiller.com/jsonfile/-/jsonfile-2.4.0.tgz", - "integrity": "sha1-NzaitCi4e72gzIO1P6PWM6NcKug=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.6" - } - } - } - }, - "esdoc-inject-style-plugin": { - "version": "1.0.0", - "resolved": "http://npm.pdffiller.com/esdoc-inject-style-plugin/-/esdoc-inject-style-plugin-1.0.0.tgz", - "integrity": "sha1-oTWXNou5+4nDZeBmSVyvl6Tey7E=", - "dev": true, - "requires": { - "cheerio": "0.22.0", - "fs-extra": "1.0.0" - }, - "dependencies": { - "cheerio": { - "version": "0.22.0", - "resolved": "http://npm.pdffiller.com/cheerio/-/cheerio-0.22.0.tgz", - "integrity": "sha1-qbqoYKP5tZWmuBsahocxIe06Jp4=", - "dev": true, - "requires": { - "css-select": "~1.2.0", - "dom-serializer": "~0.1.0", - "entities": "~1.1.1", - "htmlparser2": "^3.9.1", - "lodash.assignin": "^4.0.9", - "lodash.bind": "^4.1.4", - "lodash.defaults": "^4.0.1", - "lodash.filter": "^4.4.0", - "lodash.flatten": "^4.2.0", - "lodash.foreach": "^4.3.0", - "lodash.map": "^4.4.0", - "lodash.merge": "^4.4.0", - "lodash.pick": "^4.2.1", - "lodash.reduce": "^4.4.0", - "lodash.reject": "^4.4.0", - "lodash.some": "^4.4.0" - } - }, - "fs-extra": { - "version": "1.0.0", - "resolved": "http://npm.pdffiller.com/fs-extra/-/fs-extra-1.0.0.tgz", - "integrity": "sha1-zTzl9+fLYUWIP8rjGR6Yd/hYeVA=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "jsonfile": "^2.1.0", - "klaw": "^1.0.0" - } - }, - "jsonfile": { - "version": "2.4.0", - "resolved": "http://npm.pdffiller.com/jsonfile/-/jsonfile-2.4.0.tgz", - "integrity": "sha1-NzaitCi4e72gzIO1P6PWM6NcKug=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.6" - } - } - } - }, - "esdoc-integrate-manual-plugin": { - "version": "1.0.0", - "resolved": "http://npm.pdffiller.com/esdoc-integrate-manual-plugin/-/esdoc-integrate-manual-plugin-1.0.0.tgz", - "integrity": "sha1-GFSmqhwIEDXXyMUeO91PtlqkcRw=", - "dev": true - }, - "esdoc-integrate-test-plugin": { - "version": "1.0.0", - "resolved": "http://npm.pdffiller.com/esdoc-integrate-test-plugin/-/esdoc-integrate-test-plugin-1.0.0.tgz", - "integrity": "sha1-4tDQAJD38MNeXS8sAzMnp55T5Ak=", - "dev": true - }, - "esdoc-lint-plugin": { - "version": "1.0.2", - "resolved": "http://npm.pdffiller.com/esdoc-lint-plugin/-/esdoc-lint-plugin-1.0.2.tgz", - "integrity": "sha512-24AYqD2WbZI9We02I7/6dzAa7yUliRTFUaJCZAcYJMQicJT5gUrNFVaI8XmWEN/mhF3szIn1uZBNWeLul4CmNw==", - "dev": true - }, - "esdoc-node": { - "version": "1.0.4", - "resolved": "http://npm.pdffiller.com/esdoc-node/-/esdoc-node-1.0.4.tgz", - "integrity": "sha512-th9rhOdO3oFiv9YJWv8+RT2fzILxhvlvT9w0bZJVU9y6glXyA1zAiGrFAAI96HC8ArGOnlXDz6jbTBBAWa3UXg==", - "dev": true - }, - "esdoc-publish-html-plugin": { - "version": "1.1.2", - "resolved": "http://npm.pdffiller.com/esdoc-publish-html-plugin/-/esdoc-publish-html-plugin-1.1.2.tgz", - "integrity": "sha512-hG1fZmTcEp3P/Hv/qKiMdG1qSp8MjnVZMMkxL5P5ry7I2sX0HQ4P9lt2lms+90Lt0r340HHhSuVx107UL7dphg==", - "dev": true, - "requires": { - "babel-generator": "6.11.4", - "cheerio": "0.22.0", - "escape-html": "1.0.3", - "fs-extra": "1.0.0", - "ice-cap": "0.0.4", - "marked": "0.3.19", - "taffydb": "2.7.2" - }, - "dependencies": { - "babel-generator": { - "version": "6.11.4", - "resolved": "http://npm.pdffiller.com/babel-generator/-/babel-generator-6.11.4.tgz", - "integrity": "sha1-FPaTOrsgxiZm0n47e59bncBxKpo=", - "dev": true, - "requires": { - "babel-messages": "^6.8.0", - "babel-runtime": "^6.9.0", - "babel-types": "^6.10.2", - "detect-indent": "^3.0.1", - "lodash": "^4.2.0", - "source-map": "^0.5.0" - } - }, - "cheerio": { - "version": "0.22.0", - "resolved": "http://npm.pdffiller.com/cheerio/-/cheerio-0.22.0.tgz", - "integrity": "sha1-qbqoYKP5tZWmuBsahocxIe06Jp4=", - "dev": true, - "requires": { - "css-select": "~1.2.0", - "dom-serializer": "~0.1.0", - "entities": "~1.1.1", - "htmlparser2": "^3.9.1", - "lodash.assignin": "^4.0.9", - "lodash.bind": "^4.1.4", - "lodash.defaults": "^4.0.1", - "lodash.filter": "^4.4.0", - "lodash.flatten": "^4.2.0", - "lodash.foreach": "^4.3.0", - "lodash.map": "^4.4.0", - "lodash.merge": "^4.4.0", - "lodash.pick": "^4.2.1", - "lodash.reduce": "^4.4.0", - "lodash.reject": "^4.4.0", - "lodash.some": "^4.4.0" - } - }, - "detect-indent": { - "version": "3.0.1", - "resolved": "http://npm.pdffiller.com/detect-indent/-/detect-indent-3.0.1.tgz", - "integrity": "sha1-ncXl3bzu+DJXZLlFGwK8bVQIT3U=", - "dev": true, - "requires": { - "get-stdin": "^4.0.1", - "minimist": "^1.1.0", - "repeating": "^1.1.0" - } - }, - "fs-extra": { - "version": "1.0.0", - "resolved": "http://npm.pdffiller.com/fs-extra/-/fs-extra-1.0.0.tgz", - "integrity": "sha1-zTzl9+fLYUWIP8rjGR6Yd/hYeVA=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "jsonfile": "^2.1.0", - "klaw": "^1.0.0" - } - }, - "jsonfile": { - "version": "2.4.0", - "resolved": "http://npm.pdffiller.com/jsonfile/-/jsonfile-2.4.0.tgz", - "integrity": "sha1-NzaitCi4e72gzIO1P6PWM6NcKug=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.6" - } - }, - "minimist": { - "version": "1.2.0", - "resolved": "http://npm.pdffiller.com/minimist/-/minimist-1.2.0.tgz", - "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", - "dev": true - }, - "repeating": { - "version": "1.1.3", - "resolved": "http://npm.pdffiller.com/repeating/-/repeating-1.1.3.tgz", - "integrity": "sha1-PUEUIYh3U3SU+X93+Xhfq4EPpKw=", - "dev": true, - "requires": { - "is-finite": "^1.0.0" - } - }, - "taffydb": { - "version": "2.7.2", - "resolved": "http://npm.pdffiller.com/taffydb/-/taffydb-2.7.2.tgz", - "integrity": "sha1-e/gQalwaSCUbPjvAoOFzJIn9Dcg=", - "dev": true - } - } - }, - "esdoc-standard-plugin": { - "version": "1.0.0", - "resolved": "http://npm.pdffiller.com/esdoc-standard-plugin/-/esdoc-standard-plugin-1.0.0.tgz", - "integrity": "sha1-ZhIBysfvhokkkCRG/awVJyU8XU0=", - "dev": true, - "requires": { - "esdoc-accessor-plugin": "^1.0.0", - "esdoc-brand-plugin": "^1.0.0", - "esdoc-coverage-plugin": "^1.0.0", - "esdoc-external-ecmascript-plugin": "^1.0.0", - "esdoc-integrate-manual-plugin": "^1.0.0", - "esdoc-integrate-test-plugin": "^1.0.0", - "esdoc-lint-plugin": "^1.0.0", - "esdoc-publish-html-plugin": "^1.0.0", - "esdoc-type-inference-plugin": "^1.0.0", - "esdoc-undocumented-identifier-plugin": "^1.0.0", - "esdoc-unexported-identifier-plugin": "^1.0.0" - } - }, - "esdoc-type-inference-plugin": { - "version": "1.0.2", - "resolved": "http://npm.pdffiller.com/esdoc-type-inference-plugin/-/esdoc-type-inference-plugin-1.0.2.tgz", - "integrity": "sha512-tMIcEHNe1uhUGA7lT1UTWc9hs2dzthnTgmqXpmeUhurk7fL2tinvoH+IVvG/sLROzwOGZQS9zW/F9KWnpMzLIQ==", - "dev": true - }, - "esdoc-undocumented-identifier-plugin": { - "version": "1.0.0", - "resolved": "http://npm.pdffiller.com/esdoc-undocumented-identifier-plugin/-/esdoc-undocumented-identifier-plugin-1.0.0.tgz", - "integrity": "sha1-guBdNxwy0ShxFA8dXIHsmf2cwsg=", - "dev": true - }, - "esdoc-unexported-identifier-plugin": { - "version": "1.0.0", - "resolved": "http://npm.pdffiller.com/esdoc-unexported-identifier-plugin/-/esdoc-unexported-identifier-plugin-1.0.0.tgz", - "integrity": "sha1-H5h0xqfCvr+a05fDzrdcnGnaurE=", - "dev": true - }, - "eslint": { - "version": "6.0.1", - "resolved": "http://npm.pdffiller.com/eslint/-/eslint-6.0.1.tgz", - "integrity": "sha512-DyQRaMmORQ+JsWShYsSg4OPTjY56u1nCjAmICrE8vLWqyLKxhFXOthwMj1SA8xwfrv0CofLNVnqbfyhwCkaO0w==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.0.0", - "ajv": "^6.10.0", - "chalk": "^2.1.0", - "cross-spawn": "^6.0.5", - "debug": "^4.0.1", - "doctrine": "^3.0.0", - "eslint-scope": "^4.0.3", - "eslint-utils": "^1.3.1", - "eslint-visitor-keys": "^1.0.0", - "espree": "^6.0.0", - "esquery": "^1.0.1", - "esutils": "^2.0.2", - "file-entry-cache": "^5.0.1", - "functional-red-black-tree": "^1.0.1", - "glob-parent": "^3.1.0", - "globals": "^11.7.0", - "ignore": "^4.0.6", - "import-fresh": "^3.0.0", - "imurmurhash": "^0.1.4", - "inquirer": "^6.2.2", - "is-glob": "^4.0.0", - "js-yaml": "^3.13.1", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.3.0", - "lodash": "^4.17.11", - "minimatch": "^3.0.4", - "mkdirp": "^0.5.1", - "natural-compare": "^1.4.0", - "optionator": "^0.8.2", - "progress": "^2.0.0", - "regexpp": "^2.0.1", - "semver": "^5.5.1", - "strip-ansi": "^4.0.0", - "strip-json-comments": "^2.0.1", - "table": "^5.2.3", - "text-table": "^0.2.0" - }, - "dependencies": { - "debug": { - "version": "4.1.1", - "resolved": "http://npm.pdffiller.com/debug/-/debug-4.1.1.tgz", - "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - } - } - }, - "eslint-scope": { - "version": "4.0.3", - "resolved": "http://npm.pdffiller.com/eslint-scope/-/eslint-scope-4.0.3.tgz", - "integrity": "sha512-p7VutNr1O/QrxysMo3E45FjYDTeXBy0iTltPFNSqKAIfjDSXC+4dj+qfyuD8bfAXrW/y6lW3O76VaYNPKfpKrg==", - "dev": true, - "requires": { - "esrecurse": "^4.1.0", - "estraverse": "^4.1.1" - } - }, - "eslint-utils": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-1.4.2.tgz", - "integrity": "sha512-eAZS2sEUMlIeCjBeubdj45dmBHQwPHWyBcT1VSYB7o9x9WRRqKxyUoiXlRjyAwzN7YEzHJlYg0NmzDRWx6GP4Q==", - "dev": true, - "requires": { - "eslint-visitor-keys": "^1.0.0" - } - }, - "eslint-visitor-keys": { - "version": "1.0.0", - "resolved": "http://npm.pdffiller.com/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz", - "integrity": "sha512-qzm/XxIbxm/FHyH341ZrbnMUpe+5Bocte9xkmFMzPMjRaZMcXww+MpBptFvtU+79L362nqiLhekCxCxDPaUMBQ==", - "dev": true - }, - "espree": { - "version": "6.0.0", - "resolved": "http://npm.pdffiller.com/espree/-/espree-6.0.0.tgz", - "integrity": "sha512-lJvCS6YbCn3ImT3yKkPe0+tJ+mH6ljhGNjHQH9mRtiO6gjhVAOhVXW1yjnwqGwTkK3bGbye+hb00nFNmu0l/1Q==", - "dev": true, - "requires": { - "acorn": "^6.0.7", - "acorn-jsx": "^5.0.0", - "eslint-visitor-keys": "^1.0.0" - } - }, - "esprima": { - "version": "4.0.1", - "resolved": "http://npm.pdffiller.com/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true - }, - "esquery": { - "version": "1.0.1", - "resolved": "http://npm.pdffiller.com/esquery/-/esquery-1.0.1.tgz", - "integrity": "sha512-SmiyZ5zIWH9VM+SRUReLS5Q8a7GxtRdxEBVZpm98rJM7Sb+A9DVCndXfkeFUd3byderg+EbDkfnevfCwynWaNA==", - "dev": true, - "requires": { - "estraverse": "^4.0.0" - } - }, - "esrecurse": { - "version": "4.2.1", - "resolved": "http://npm.pdffiller.com/esrecurse/-/esrecurse-4.2.1.tgz", - "integrity": "sha512-64RBB++fIOAXPw3P9cy89qfMlvZEXZkqqJkjqqXIvzP5ezRZjW+lPWjw35UX/3EhUPFYbg5ER4JYgDw4007/DQ==", - "dev": true, - "requires": { - "estraverse": "^4.1.0" - } - }, - "estraverse": { - "version": "4.2.0", - "resolved": "http://npm.pdffiller.com/estraverse/-/estraverse-4.2.0.tgz", - "integrity": "sha1-De4/7TH81GlhjOc0IJn8GvoL2xM=", - "dev": true - }, - "esutils": { - "version": "2.0.2", - "resolved": "http://npm.pdffiller.com/esutils/-/esutils-2.0.2.tgz", - "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=", - "dev": true - }, - "execa": { - "version": "1.0.0", - "resolved": "http://npm.pdffiller.com/execa/-/execa-1.0.0.tgz", - "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", - "dev": true, - "requires": { - "cross-spawn": "^6.0.0", - "get-stream": "^4.0.0", - "is-stream": "^1.1.0", - "npm-run-path": "^2.0.0", - "p-finally": "^1.0.0", - "signal-exit": "^3.0.0", - "strip-eof": "^1.0.0" - } - }, - "extend": { - "version": "3.0.2", - "resolved": "http://npm.pdffiller.com/extend/-/extend-3.0.2.tgz", - "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", - "dev": true, - "optional": true - }, - "external-editor": { - "version": "3.0.3", - "resolved": "http://npm.pdffiller.com/external-editor/-/external-editor-3.0.3.tgz", - "integrity": "sha512-bn71H9+qWoOQKyZDo25mOMVpSmXROAsTJVVVYzrrtol3d4y+AsKjf4Iwl2Q+IuT0kFSQ1qo166UuIwqYq7mGnA==", - "dev": true, - "requires": { - "chardet": "^0.7.0", - "iconv-lite": "^0.4.24", - "tmp": "^0.0.33" - } - }, - "extsprintf": { - "version": "1.3.0", - "resolved": "http://npm.pdffiller.com/extsprintf/-/extsprintf-1.3.0.tgz", - "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", - "dev": true, - "optional": true - }, - "fast-deep-equal": { - "version": "2.0.1", - "resolved": "http://npm.pdffiller.com/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", - "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=", - "dev": true - }, - "fast-json-stable-stringify": { - "version": "2.0.0", - "resolved": "http://npm.pdffiller.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", - "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=", - "dev": true - }, - "fast-levenshtein": { - "version": "2.0.6", - "resolved": "http://npm.pdffiller.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", - "dev": true - }, - "figures": { - "version": "2.0.0", - "resolved": "http://npm.pdffiller.com/figures/-/figures-2.0.0.tgz", - "integrity": "sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI=", - "dev": true, - "requires": { - "escape-string-regexp": "^1.0.5" - } - }, - "file-entry-cache": { - "version": "5.0.1", - "resolved": "http://npm.pdffiller.com/file-entry-cache/-/file-entry-cache-5.0.1.tgz", - "integrity": "sha512-bCg29ictuBaKUwwArK4ouCaqDgLZcysCFLmM/Yn/FDoqndh/9vNuQfXRDvTuXKLxfD/JtZQGKFT8MGcJBK644g==", - "dev": true, - "requires": { - "flat-cache": "^2.0.1" - } - }, - "find-up": { - "version": "3.0.0", - "resolved": "http://npm.pdffiller.com/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", - "dev": true, - "requires": { - "locate-path": "^3.0.0" - } - }, - "flat": { - "version": "4.1.0", - "resolved": "http://npm.pdffiller.com/flat/-/flat-4.1.0.tgz", - "integrity": "sha512-Px/TiLIznH7gEDlPXcUD4KnBusa6kR6ayRUVcnEAbreRIuhkqow/mun59BuRXwoYk7ZQOLW1ZM05ilIvK38hFw==", - "dev": true, - "requires": { - "is-buffer": "~2.0.3" - } - }, - "flat-cache": { - "version": "2.0.1", - "resolved": "http://npm.pdffiller.com/flat-cache/-/flat-cache-2.0.1.tgz", - "integrity": "sha512-LoQe6yDuUMDzQAEH8sgmh4Md6oZnc/7PjtwjNFSzveXqSHt6ka9fPBuso7IGf9Rz4uqnSnWiFH2B/zj24a5ReA==", - "dev": true, - "requires": { - "flatted": "^2.0.0", - "rimraf": "2.6.3", - "write": "1.0.3" - } - }, - "flatted": { - "version": "2.0.0", - "resolved": "http://npm.pdffiller.com/flatted/-/flatted-2.0.0.tgz", - "integrity": "sha512-R+H8IZclI8AAkSBRQJLVOsxwAoHd6WC40b4QTNWIjzAa6BXOBfQcM587MXDTVPeYaopFNWHUFLx7eNmHDSxMWg==", - "dev": true - }, - "forever-agent": { - "version": "0.6.1", - "resolved": "http://npm.pdffiller.com/forever-agent/-/forever-agent-0.6.1.tgz", - "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", - "dev": true, - "optional": true - }, - "form-data": { - "version": "2.3.3", - "resolved": "http://npm.pdffiller.com/form-data/-/form-data-2.3.3.tgz", - "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", - "dev": true, - "optional": true, - "requires": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.6", - "mime-types": "^2.1.12" - } - }, - "fs-extra": { - "version": "5.0.0", - "resolved": "http://npm.pdffiller.com/fs-extra/-/fs-extra-5.0.0.tgz", - "integrity": "sha512-66Pm4RYbjzdyeuqudYqhFiNBbCIuI9kgRqLPSHIlXHidW8NIQtVdkM1yeZ4lXwuhbTETv3EUGMNHAAw6hiundQ==", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" - } - }, - "fs.realpath": { - "version": "1.0.0", - "resolved": "http://npm.pdffiller.com/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true - }, - "function-bind": { - "version": "1.1.1", - "resolved": "http://npm.pdffiller.com/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", - "dev": true - }, - "functional-red-black-tree": { - "version": "1.0.1", - "resolved": "http://npm.pdffiller.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", - "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", - "dev": true - }, - "get-caller-file": { - "version": "2.0.5", - "resolved": "http://npm.pdffiller.com/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true - }, - "get-func-name": { - "version": "2.0.0", - "resolved": "http://npm.pdffiller.com/get-func-name/-/get-func-name-2.0.0.tgz", - "integrity": "sha1-6td0q+5y4gQJQzoGY2YCPdaIekE=", - "dev": true - }, - "get-stdin": { - "version": "4.0.1", - "resolved": "http://npm.pdffiller.com/get-stdin/-/get-stdin-4.0.1.tgz", - "integrity": "sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4=", - "dev": true - }, - "get-stream": { - "version": "4.1.0", - "resolved": "http://npm.pdffiller.com/get-stream/-/get-stream-4.1.0.tgz", - "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", - "dev": true, - "requires": { - "pump": "^3.0.0" - } - }, - "getpass": { - "version": "0.1.7", - "resolved": "http://npm.pdffiller.com/getpass/-/getpass-0.1.7.tgz", - "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", - "dev": true, - "optional": true, - "requires": { - "assert-plus": "^1.0.0" - } - }, - "glob": { - "version": "7.1.3", - "resolved": "http://npm.pdffiller.com/glob/-/glob-7.1.3.tgz", - "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", - "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "glob-parent": { - "version": "3.1.0", - "resolved": "http://npm.pdffiller.com/glob-parent/-/glob-parent-3.1.0.tgz", - "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", - "dev": true, - "requires": { - "is-glob": "^3.1.0", - "path-dirname": "^1.0.0" - }, - "dependencies": { - "is-glob": { - "version": "3.1.0", - "resolved": "http://npm.pdffiller.com/is-glob/-/is-glob-3.1.0.tgz", - "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", - "dev": true, - "requires": { - "is-extglob": "^2.1.0" - } - } - } - }, - "globals": { - "version": "11.12.0", - "resolved": "http://npm.pdffiller.com/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", - "dev": true - }, - "graceful-fs": { - "version": "4.2.0", - "resolved": "http://npm.pdffiller.com/graceful-fs/-/graceful-fs-4.2.0.tgz", - "integrity": "sha512-jpSvDPV4Cq/bgtpndIWbI5hmYxhQGHPC4d4cqBPb4DLniCfhJokdXhwhaDuLBGLQdvvRum/UiX6ECVIPvDXqdg==", - "dev": true - }, - "growl": { - "version": "1.10.5", - "resolved": "http://npm.pdffiller.com/growl/-/growl-1.10.5.tgz", - "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", - "dev": true - }, - "har-schema": { - "version": "2.0.0", - "resolved": "http://npm.pdffiller.com/har-schema/-/har-schema-2.0.0.tgz", - "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=", - "dev": true, - "optional": true - }, - "har-validator": { - "version": "5.1.3", - "resolved": "http://npm.pdffiller.com/har-validator/-/har-validator-5.1.3.tgz", - "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==", - "dev": true, - "optional": true, - "requires": { - "ajv": "^6.5.5", - "har-schema": "^2.0.0" - } - }, - "has": { - "version": "1.0.3", - "resolved": "http://npm.pdffiller.com/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dev": true, - "requires": { - "function-bind": "^1.1.1" - } - }, - "has-ansi": { - "version": "2.0.0", - "resolved": "http://npm.pdffiller.com/has-ansi/-/has-ansi-2.0.0.tgz", - "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "2.1.1", - "resolved": "http://npm.pdffiller.com/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true - } - } - }, - "has-flag": { - "version": "3.0.0", - "resolved": "http://npm.pdffiller.com/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true - }, - "has-symbols": { - "version": "1.0.0", - "resolved": "http://npm.pdffiller.com/has-symbols/-/has-symbols-1.0.0.tgz", - "integrity": "sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q=", - "dev": true - }, - "he": { - "version": "1.2.0", - "resolved": "http://npm.pdffiller.com/he/-/he-1.2.0.tgz", - "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", - "dev": true - }, - "hosted-git-info": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.7.1.tgz", - "integrity": "sha512-7T/BxH19zbcCTa8XkMlbK5lTo1WtgkFi3GvdWEyNuc4Vex7/9Dqbnpsf4JMydcfj9HCg4zUWFTL3Za6lapg5/w==", - "dev": true - }, - "htmlparser2": { - "version": "3.10.1", - "resolved": "http://npm.pdffiller.com/htmlparser2/-/htmlparser2-3.10.1.tgz", - "integrity": "sha512-IgieNijUMbkDovyoKObU1DUhm1iwNYE/fuifEoEHfd1oZKZDaONBSkal7Y01shxsM49R4XaMdGez3WnF9UfiCQ==", - "dev": true, - "requires": { - "domelementtype": "^1.3.1", - "domhandler": "^2.3.0", - "domutils": "^1.5.1", - "entities": "^1.1.1", - "inherits": "^2.0.1", - "readable-stream": "^3.1.1" - } - }, - "http-signature": { - "version": "1.2.0", - "resolved": "http://npm.pdffiller.com/http-signature/-/http-signature-1.2.0.tgz", - "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", - "dev": true, - "optional": true, - "requires": { - "assert-plus": "^1.0.0", - "jsprim": "^1.2.2", - "sshpk": "^1.7.0" - } - }, - "husky": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/husky/-/husky-3.0.2.tgz", - "integrity": "sha512-WXCtaME2x0o4PJlKY4ap8BzLA+D0zlvefqAvLCPriOOu+x0dpO5uc5tlB7CY6/0SE2EESmoZsj4jW5D09KrJoA==", - "dev": true, - "requires": { - "chalk": "^2.4.2", - "cosmiconfig": "^5.2.1", - "execa": "^1.0.0", - "get-stdin": "^7.0.0", - "is-ci": "^2.0.0", - "opencollective-postinstall": "^2.0.2", - "pkg-dir": "^4.2.0", - "please-upgrade-node": "^3.1.1", - "read-pkg": "^5.1.1", - "run-node": "^1.0.0", - "slash": "^3.0.0" - }, - "dependencies": { - "get-stdin": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-7.0.0.tgz", - "integrity": "sha512-zRKcywvrXlXsA0v0i9Io4KDRaAw7+a1ZpjRwl9Wox8PFlVCCHra7E9c4kqXCoCM9nR5tBkaTTZRBoCm60bFqTQ==", - "dev": true - } - } - }, - "ice-cap": { - "version": "0.0.4", - "resolved": "http://npm.pdffiller.com/ice-cap/-/ice-cap-0.0.4.tgz", - "integrity": "sha1-im0xq0ysjUtW3k+pRt8zUlYbbhg=", - "dev": true, - "requires": { - "cheerio": "0.20.0", - "color-logger": "0.0.3" - }, - "dependencies": { - "cheerio": { - "version": "0.20.0", - "resolved": "http://npm.pdffiller.com/cheerio/-/cheerio-0.20.0.tgz", - "integrity": "sha1-XHEPK6uVZTJyhCugHG6mGzVF7DU=", - "dev": true, - "requires": { - "css-select": "~1.2.0", - "dom-serializer": "~0.1.0", - "entities": "~1.1.1", - "htmlparser2": "~3.8.1", - "jsdom": "^7.0.2", - "lodash": "^4.1.0" - } - }, - "color-logger": { - "version": "0.0.3", - "resolved": "http://npm.pdffiller.com/color-logger/-/color-logger-0.0.3.tgz", - "integrity": "sha1-2bIt0dlz4Waxi/MT+fSBu6TfIBg=", - "dev": true - }, - "domhandler": { - "version": "2.3.0", - "resolved": "http://npm.pdffiller.com/domhandler/-/domhandler-2.3.0.tgz", - "integrity": "sha1-LeWaCCLVAn+r/28DLCsloqir5zg=", - "dev": true, - "requires": { - "domelementtype": "1" - } - }, - "htmlparser2": { - "version": "3.8.3", - "resolved": "http://npm.pdffiller.com/htmlparser2/-/htmlparser2-3.8.3.tgz", - "integrity": "sha1-mWwosZFRaovoZQGn15dX5ccMEGg=", - "dev": true, - "requires": { - "domelementtype": "1", - "domhandler": "2.3", - "domutils": "1.5", - "entities": "1.0", - "readable-stream": "1.1" - }, - "dependencies": { - "entities": { - "version": "1.0.0", - "resolved": "http://npm.pdffiller.com/entities/-/entities-1.0.0.tgz", - "integrity": "sha1-sph6o4ITR/zeZCsk/fyeT7cSvyY=", - "dev": true - } - } - }, - "readable-stream": { - "version": "1.1.14", - "resolved": "http://npm.pdffiller.com/readable-stream/-/readable-stream-1.1.14.tgz", - "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" - } - }, - "string_decoder": { - "version": "0.10.31", - "resolved": "http://npm.pdffiller.com/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", - "dev": true - } - } - }, - "iconv-lite": { - "version": "0.4.24", - "resolved": "http://npm.pdffiller.com/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dev": true, - "requires": { - "safer-buffer": ">= 2.1.2 < 3" - } - }, - "ignore": { - "version": "4.0.6", - "resolved": "http://npm.pdffiller.com/ignore/-/ignore-4.0.6.tgz", - "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", - "dev": true - }, - "import-fresh": { - "version": "3.0.0", - "resolved": "http://npm.pdffiller.com/import-fresh/-/import-fresh-3.0.0.tgz", - "integrity": "sha512-pOnA9tfM3Uwics+SaBLCNyZZZbK+4PTu0OPZtLlMIrv17EdBoC15S9Kn8ckJ9TZTyKb3ywNE5y1yeDxxGA7nTQ==", - "dev": true, - "requires": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - } - }, - "imurmurhash": { - "version": "0.1.4", - "resolved": "http://npm.pdffiller.com/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", - "dev": true - }, - "inflight": { - "version": "1.0.6", - "resolved": "http://npm.pdffiller.com/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": true, - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherits": { - "version": "2.0.3", - "resolved": "http://npm.pdffiller.com/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", - "dev": true - }, - "inquirer": { - "version": "6.4.1", - "resolved": "http://npm.pdffiller.com/inquirer/-/inquirer-6.4.1.tgz", - "integrity": "sha512-/Jw+qPZx4EDYsaT6uz7F4GJRNFMRdKNeUZw3ZnKV8lyuUgz/YWRCSUAJMZSVhSq4Ec0R2oYnyi6b3d4JXcL5Nw==", - "dev": true, - "requires": { - "ansi-escapes": "^3.2.0", - "chalk": "^2.4.2", - "cli-cursor": "^2.1.0", - "cli-width": "^2.0.0", - "external-editor": "^3.0.3", - "figures": "^2.0.0", - "lodash": "^4.17.11", - "mute-stream": "0.0.7", - "run-async": "^2.2.0", - "rxjs": "^6.4.0", - "string-width": "^2.1.0", - "strip-ansi": "^5.1.0", - "through": "^2.3.6" - }, - "dependencies": { - "ansi-regex": { - "version": "4.1.0", - "resolved": "http://npm.pdffiller.com/ansi-regex/-/ansi-regex-4.1.0.tgz", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", - "dev": true - }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "http://npm.pdffiller.com/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "requires": { - "ansi-regex": "^4.1.0" - } - } - } - }, - "invariant": { - "version": "2.2.4", - "resolved": "http://npm.pdffiller.com/invariant/-/invariant-2.2.4.tgz", - "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", - "dev": true, - "requires": { - "loose-envify": "^1.0.0" - } - }, - "invert-kv": { - "version": "2.0.0", - "resolved": "http://npm.pdffiller.com/invert-kv/-/invert-kv-2.0.0.tgz", - "integrity": "sha512-wPVv/y/QQ/Uiirj/vh3oP+1Ww+AWehmi1g5fFWGPF6IpCBCDVrhgHRMvrLfdYcwDh3QJbGXDW4JAuzxElLSqKA==", - "dev": true - }, - "is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", - "dev": true - }, - "is-buffer": { - "version": "2.0.3", - "resolved": "http://npm.pdffiller.com/is-buffer/-/is-buffer-2.0.3.tgz", - "integrity": "sha512-U15Q7MXTuZlrbymiz95PJpZxu8IlipAp4dtS3wOdgPXx3mqBnslrWU14kxfHB+Py/+2PVKSr37dMAgM2A4uArw==", - "dev": true - }, - "is-callable": { - "version": "1.1.4", - "resolved": "http://npm.pdffiller.com/is-callable/-/is-callable-1.1.4.tgz", - "integrity": "sha512-r5p9sxJjYnArLjObpjA4xu5EKI3CuKHkJXMhT7kwbpUyIFD1n5PMAsoPvWnvtZiNz7LjkYDRZhd7FlI0eMijEA==", - "dev": true - }, - "is-ci": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", - "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", - "dev": true, - "requires": { - "ci-info": "^2.0.0" - } - }, - "is-date-object": { - "version": "1.0.1", - "resolved": "http://npm.pdffiller.com/is-date-object/-/is-date-object-1.0.1.tgz", - "integrity": "sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY=", - "dev": true - }, - "is-directory": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/is-directory/-/is-directory-0.3.1.tgz", - "integrity": "sha1-YTObbyR1/Hcv2cnYP1yFddwVSuE=", - "dev": true - }, - "is-extglob": { - "version": "2.1.1", - "resolved": "http://npm.pdffiller.com/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", - "dev": true - }, - "is-finite": { - "version": "1.0.2", - "resolved": "http://npm.pdffiller.com/is-finite/-/is-finite-1.0.2.tgz", - "integrity": "sha1-zGZ3aVYCvlUO8R6LSqYwU0K20Ko=", - "dev": true, - "requires": { - "number-is-nan": "^1.0.0" - } - }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "http://npm.pdffiller.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "dev": true - }, - "is-glob": { - "version": "4.0.1", - "resolved": "http://npm.pdffiller.com/is-glob/-/is-glob-4.0.1.tgz", - "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", - "dev": true, - "requires": { - "is-extglob": "^2.1.1" - } - }, - "is-promise": { - "version": "2.1.0", - "resolved": "http://npm.pdffiller.com/is-promise/-/is-promise-2.1.0.tgz", - "integrity": "sha1-eaKp7OfwlugPNtKy87wWwf9L8/o=", - "dev": true - }, - "is-regex": { - "version": "1.0.4", - "resolved": "http://npm.pdffiller.com/is-regex/-/is-regex-1.0.4.tgz", - "integrity": "sha1-VRdIm1RwkbCTDglWVM7SXul+lJE=", - "dev": true, - "requires": { - "has": "^1.0.1" - } - }, - "is-stream": { - "version": "1.1.0", - "resolved": "http://npm.pdffiller.com/is-stream/-/is-stream-1.1.0.tgz", - "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", - "dev": true - }, - "is-symbol": { - "version": "1.0.2", - "resolved": "http://npm.pdffiller.com/is-symbol/-/is-symbol-1.0.2.tgz", - "integrity": "sha512-HS8bZ9ox60yCJLH9snBpIwv9pYUAkcuLhSA1oero1UB5y9aiQpRA8y2ex945AOtCZL1lJDeIk3G5LthswI46Lw==", - "dev": true, - "requires": { - "has-symbols": "^1.0.0" - } - }, - "is-typedarray": { - "version": "1.0.0", - "resolved": "http://npm.pdffiller.com/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", - "dev": true, - "optional": true - }, - "isarray": { - "version": "0.0.1", - "resolved": "http://npm.pdffiller.com/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", - "dev": true - }, - "isexe": { - "version": "2.0.0", - "resolved": "http://npm.pdffiller.com/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", - "dev": true - }, - "isstream": { - "version": "0.1.2", - "resolved": "http://npm.pdffiller.com/isstream/-/isstream-0.1.2.tgz", - "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", - "dev": true, - "optional": true - }, - "js-tokens": { - "version": "4.0.0", - "resolved": "http://npm.pdffiller.com/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true - }, - "js-yaml": { - "version": "3.13.1", - "resolved": "http://npm.pdffiller.com/js-yaml/-/js-yaml-3.13.1.tgz", - "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", - "dev": true, - "requires": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - } - }, - "jsbn": { - "version": "0.1.1", - "resolved": "http://npm.pdffiller.com/jsbn/-/jsbn-0.1.1.tgz", - "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", - "dev": true, - "optional": true - }, - "jsdom": { - "version": "7.2.2", - "resolved": "http://npm.pdffiller.com/jsdom/-/jsdom-7.2.2.tgz", - "integrity": "sha1-QLQCdwwr2iNGkJa+6Rq2deOx/G4=", - "dev": true, - "optional": true, - "requires": { - "abab": "^1.0.0", - "acorn": "^2.4.0", - "acorn-globals": "^1.0.4", - "cssom": ">= 0.3.0 < 0.4.0", - "cssstyle": ">= 0.2.29 < 0.3.0", - "escodegen": "^1.6.1", - "nwmatcher": ">= 1.3.7 < 2.0.0", - "parse5": "^1.5.1", - "request": "^2.55.0", - "sax": "^1.1.4", - "symbol-tree": ">= 3.1.0 < 4.0.0", - "tough-cookie": "^2.2.0", - "webidl-conversions": "^2.0.0", - "whatwg-url-compat": "~0.6.5", - "xml-name-validator": ">= 2.0.1 < 3.0.0" - }, - "dependencies": { - "acorn": { - "version": "2.7.0", - "resolved": "http://npm.pdffiller.com/acorn/-/acorn-2.7.0.tgz", - "integrity": "sha1-q259nYhqrKiwhbwzEreaGYQz8Oc=", - "dev": true, - "optional": true - }, - "parse5": { - "version": "1.5.1", - "resolved": "http://npm.pdffiller.com/parse5/-/parse5-1.5.1.tgz", - "integrity": "sha1-m387DeMr543CQBsXVzzK8Pb1nZQ=", - "dev": true, - "optional": true - } - } - }, - "jsesc": { - "version": "1.3.0", - "resolved": "http://npm.pdffiller.com/jsesc/-/jsesc-1.3.0.tgz", - "integrity": "sha1-RsP+yMGJKxKwgz25vHYiF226s0s=", - "dev": true - }, - "json-parse-better-errors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", - "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", - "dev": true - }, - "json-schema": { - "version": "0.2.3", - "resolved": "http://npm.pdffiller.com/json-schema/-/json-schema-0.2.3.tgz", - "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", - "dev": true, - "optional": true - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "http://npm.pdffiller.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "http://npm.pdffiller.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", - "dev": true - }, - "json-stringify-safe": { - "version": "5.0.1", - "resolved": "http://npm.pdffiller.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", - "dev": true, - "optional": true - }, - "jsonfile": { - "version": "4.0.0", - "resolved": "http://npm.pdffiller.com/jsonfile/-/jsonfile-4.0.0.tgz", - "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.6" - } - }, - "jsprim": { - "version": "1.4.1", - "resolved": "http://npm.pdffiller.com/jsprim/-/jsprim-1.4.1.tgz", - "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", - "dev": true, - "optional": true, - "requires": { - "assert-plus": "1.0.0", - "extsprintf": "1.3.0", - "json-schema": "0.2.3", - "verror": "1.10.0" - } - }, - "klaw": { - "version": "1.3.1", - "resolved": "http://npm.pdffiller.com/klaw/-/klaw-1.3.1.tgz", - "integrity": "sha1-QIhDO0azsbolnXh4XY6W9zugJDk=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.9" - } - }, - "lcid": { - "version": "2.0.0", - "resolved": "http://npm.pdffiller.com/lcid/-/lcid-2.0.0.tgz", - "integrity": "sha512-avPEb8P8EGnwXKClwsNUgryVjllcRqtMYa49NTsbQagYuT1DcXnl1915oxWjoyGrXR6zH/Y0Zc96xWsPcoDKeA==", - "dev": true, - "requires": { - "invert-kv": "^2.0.0" - } - }, - "levn": { - "version": "0.3.0", - "resolved": "http://npm.pdffiller.com/levn/-/levn-0.3.0.tgz", - "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", - "dev": true, - "requires": { - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2" - } - }, - "lines-and-columns": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz", - "integrity": "sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=", - "dev": true - }, - "locate-path": { - "version": "3.0.0", - "resolved": "http://npm.pdffiller.com/locate-path/-/locate-path-3.0.0.tgz", - "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", - "dev": true, - "requires": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" - } - }, - "lodash": { - "version": "4.17.15", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", - "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", - "dev": true - }, - "lodash.assignin": { - "version": "4.2.0", - "resolved": "http://npm.pdffiller.com/lodash.assignin/-/lodash.assignin-4.2.0.tgz", - "integrity": "sha1-uo31+4QesKPoBEIysOJjqNxqKKI=", - "dev": true - }, - "lodash.bind": { - "version": "4.2.1", - "resolved": "http://npm.pdffiller.com/lodash.bind/-/lodash.bind-4.2.1.tgz", - "integrity": "sha1-euMBfpOWIqwxt9fX3LGzTbFpDTU=", - "dev": true - }, - "lodash.defaults": { - "version": "4.2.0", - "resolved": "http://npm.pdffiller.com/lodash.defaults/-/lodash.defaults-4.2.0.tgz", - "integrity": "sha1-0JF4cW/+pN3p5ft7N/bwgCJ0WAw=", - "dev": true - }, - "lodash.filter": { - "version": "4.6.0", - "resolved": "http://npm.pdffiller.com/lodash.filter/-/lodash.filter-4.6.0.tgz", - "integrity": "sha1-ZosdSYFgOuHMWm+nYBQ+SAtMSs4=", - "dev": true - }, - "lodash.flatten": { - "version": "4.4.0", - "resolved": "http://npm.pdffiller.com/lodash.flatten/-/lodash.flatten-4.4.0.tgz", - "integrity": "sha1-8xwiIlqWMtK7+OSt2+8kCqdlph8=", - "dev": true - }, - "lodash.foreach": { - "version": "4.5.0", - "resolved": "http://npm.pdffiller.com/lodash.foreach/-/lodash.foreach-4.5.0.tgz", - "integrity": "sha1-Gmo16s5AEoDH8G3d7DUWWrJ+PlM=", - "dev": true - }, - "lodash.map": { - "version": "4.6.0", - "resolved": "http://npm.pdffiller.com/lodash.map/-/lodash.map-4.6.0.tgz", - "integrity": "sha1-dx7Hg540c9nEzeKLGTlMNWL09tM=", - "dev": true - }, - "lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true - }, - "lodash.pick": { - "version": "4.4.0", - "resolved": "http://npm.pdffiller.com/lodash.pick/-/lodash.pick-4.4.0.tgz", - "integrity": "sha1-UvBWEP/53tQiYRRB7R/BI6AwAbM=", - "dev": true - }, - "lodash.reduce": { - "version": "4.6.0", - "resolved": "http://npm.pdffiller.com/lodash.reduce/-/lodash.reduce-4.6.0.tgz", - "integrity": "sha1-8atrg5KZrUj3hKu/R2WW8DuRTTs=", - "dev": true - }, - "lodash.reject": { - "version": "4.6.0", - "resolved": "http://npm.pdffiller.com/lodash.reject/-/lodash.reject-4.6.0.tgz", - "integrity": "sha1-gNZJLcFHCGS79YNTO2UfQqn1JBU=", - "dev": true - }, - "lodash.some": { - "version": "4.6.0", - "resolved": "http://npm.pdffiller.com/lodash.some/-/lodash.some-4.6.0.tgz", - "integrity": "sha1-G7nzFO9ri63tE7VJFpsqlF62jk0=", - "dev": true - }, - "log-symbols": { - "version": "2.2.0", - "resolved": "http://npm.pdffiller.com/log-symbols/-/log-symbols-2.2.0.tgz", - "integrity": "sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg==", - "dev": true, - "requires": { - "chalk": "^2.0.1" - } - }, - "loose-envify": { - "version": "1.4.0", - "resolved": "http://npm.pdffiller.com/loose-envify/-/loose-envify-1.4.0.tgz", - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", - "dev": true, - "requires": { - "js-tokens": "^3.0.0 || ^4.0.0" - } - }, - "map-age-cleaner": { - "version": "0.1.3", - "resolved": "http://npm.pdffiller.com/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz", - "integrity": "sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==", - "dev": true, - "requires": { - "p-defer": "^1.0.0" - } - }, - "marked": { - "version": "0.3.19", - "resolved": "http://npm.pdffiller.com/marked/-/marked-0.3.19.tgz", - "integrity": "sha512-ea2eGWOqNxPcXv8dyERdSr/6FmzvWwzjMxpfGB/sbMccXoct+xY+YukPD+QTUZwyvK7BZwcr4m21WBOW41pAkg==", - "dev": true - }, - "mem": { - "version": "4.3.0", - "resolved": "http://npm.pdffiller.com/mem/-/mem-4.3.0.tgz", - "integrity": "sha512-qX2bG48pTqYRVmDB37rn/6PT7LcR8T7oAX3bf99u1Tt1nzxYfxkgqDwUwolPlXweM0XzBOBFzSx4kfp7KP1s/w==", - "dev": true, - "requires": { - "map-age-cleaner": "^0.1.1", - "mimic-fn": "^2.0.0", - "p-is-promise": "^2.0.0" - } - }, - "mime-db": { - "version": "1.40.0", - "resolved": "http://npm.pdffiller.com/mime-db/-/mime-db-1.40.0.tgz", - "integrity": "sha512-jYdeOMPy9vnxEqFRRo6ZvTZ8d9oPb+k18PKoYNYUe2stVEBPPwsln/qWzdbmaIvnhZ9v2P+CuecK+fpUfsV2mA==", - "dev": true, - "optional": true - }, - "mime-types": { - "version": "2.1.24", - "resolved": "http://npm.pdffiller.com/mime-types/-/mime-types-2.1.24.tgz", - "integrity": "sha512-WaFHS3MCl5fapm3oLxU4eYDw77IQM2ACcxQ9RIxfaC3ooc6PFuBMGZZsYpvoXS5D5QTWPieo1jjLdAm3TBP3cQ==", - "dev": true, - "optional": true, - "requires": { - "mime-db": "1.40.0" - } - }, - "mimic-fn": { - "version": "2.1.0", - "resolved": "http://npm.pdffiller.com/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "dev": true - }, - "minimatch": { - "version": "3.0.4", - "resolved": "http://npm.pdffiller.com/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "minimist": { - "version": "0.0.8", - "resolved": "http://npm.pdffiller.com/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", - "dev": true - }, - "mkdirp": { - "version": "0.5.1", - "resolved": "http://npm.pdffiller.com/mkdirp/-/mkdirp-0.5.1.tgz", - "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", - "dev": true, - "requires": { - "minimist": "0.0.8" - } - }, - "mocha": { - "version": "6.1.4", - "resolved": "http://npm.pdffiller.com/mocha/-/mocha-6.1.4.tgz", - "integrity": "sha512-PN8CIy4RXsIoxoFJzS4QNnCH4psUCPWc4/rPrst/ecSJJbLBkubMiyGCP2Kj/9YnWbotFqAoeXyXMucj7gwCFg==", - "dev": true, - "requires": { - "ansi-colors": "3.2.3", - "browser-stdout": "1.3.1", - "debug": "3.2.6", - "diff": "3.5.0", - "escape-string-regexp": "1.0.5", - "find-up": "3.0.0", - "glob": "7.1.3", - "growl": "1.10.5", - "he": "1.2.0", - "js-yaml": "3.13.1", - "log-symbols": "2.2.0", - "minimatch": "3.0.4", - "mkdirp": "0.5.1", - "ms": "2.1.1", - "node-environment-flags": "1.0.5", - "object.assign": "4.1.0", - "strip-json-comments": "2.0.1", - "supports-color": "6.0.0", - "which": "1.3.1", - "wide-align": "1.1.3", - "yargs": "13.2.2", - "yargs-parser": "13.0.0", - "yargs-unparser": "1.5.0" - } - }, - "ms": { - "version": "2.1.1", - "resolved": "http://npm.pdffiller.com/ms/-/ms-2.1.1.tgz", - "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", - "dev": true - }, - "mute-stream": { - "version": "0.0.7", - "resolved": "http://npm.pdffiller.com/mute-stream/-/mute-stream-0.0.7.tgz", - "integrity": "sha1-MHXOk7whuPq0PhvE2n6BFe0ee6s=", - "dev": true - }, - "natural-compare": { - "version": "1.4.0", - "resolved": "http://npm.pdffiller.com/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", - "dev": true - }, - "nice-try": { - "version": "1.0.5", - "resolved": "http://npm.pdffiller.com/nice-try/-/nice-try-1.0.5.tgz", - "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", - "dev": true - }, - "node-environment-flags": { - "version": "1.0.5", - "resolved": "http://npm.pdffiller.com/node-environment-flags/-/node-environment-flags-1.0.5.tgz", - "integrity": "sha512-VNYPRfGfmZLx0Ye20jWzHUjyTW/c+6Wq+iLhDzUI4XmhrDd9l/FozXV3F2xOaXjvp0co0+v1YSR3CMP6g+VvLQ==", - "dev": true, - "requires": { - "object.getownpropertydescriptors": "^2.0.3", - "semver": "^5.7.0" - } - }, - "normalize-package-data": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", - "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", - "dev": true, - "requires": { - "hosted-git-info": "^2.1.4", - "resolve": "^1.10.0", - "semver": "2 || 3 || 4 || 5", - "validate-npm-package-license": "^3.0.1" - } - }, - "npm-run-path": { - "version": "2.0.2", - "resolved": "http://npm.pdffiller.com/npm-run-path/-/npm-run-path-2.0.2.tgz", - "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", - "dev": true, - "requires": { - "path-key": "^2.0.0" - } - }, - "nth-check": { - "version": "1.0.2", - "resolved": "http://npm.pdffiller.com/nth-check/-/nth-check-1.0.2.tgz", - "integrity": "sha512-WeBOdju8SnzPN5vTUJYxYUxLeXpCaVP5i5e0LF8fg7WORF2Wd7wFX/pk0tYZk7s8T+J7VLy0Da6J1+wCT0AtHg==", - "dev": true, - "requires": { - "boolbase": "~1.0.0" - } - }, - "number-is-nan": { - "version": "1.0.1", - "resolved": "http://npm.pdffiller.com/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", - "dev": true - }, - "nwmatcher": { - "version": "1.4.4", - "resolved": "http://npm.pdffiller.com/nwmatcher/-/nwmatcher-1.4.4.tgz", - "integrity": "sha512-3iuY4N5dhgMpCUrOVnuAdGrgxVqV2cJpM+XNccjR2DKOB1RUP0aA+wGXEiNziG/UKboFyGBIoKOaNlJxx8bciQ==", - "dev": true, - "optional": true - }, - "oauth-sign": { - "version": "0.9.0", - "resolved": "http://npm.pdffiller.com/oauth-sign/-/oauth-sign-0.9.0.tgz", - "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", - "dev": true, - "optional": true - }, - "object-keys": { - "version": "1.1.1", - "resolved": "http://npm.pdffiller.com/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "dev": true - }, - "object.assign": { - "version": "4.1.0", - "resolved": "http://npm.pdffiller.com/object.assign/-/object.assign-4.1.0.tgz", - "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==", - "dev": true, - "requires": { - "define-properties": "^1.1.2", - "function-bind": "^1.1.1", - "has-symbols": "^1.0.0", - "object-keys": "^1.0.11" - } - }, - "object.getownpropertydescriptors": { - "version": "2.0.3", - "resolved": "http://npm.pdffiller.com/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz", - "integrity": "sha1-h1jIRvW0B62rDyNuCYbxSwUcqhY=", - "dev": true, - "requires": { - "define-properties": "^1.1.2", - "es-abstract": "^1.5.1" - } - }, - "once": { - "version": "1.4.0", - "resolved": "http://npm.pdffiller.com/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dev": true, - "requires": { - "wrappy": "1" - } - }, - "onetime": { - "version": "2.0.1", - "resolved": "http://npm.pdffiller.com/onetime/-/onetime-2.0.1.tgz", - "integrity": "sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ=", - "dev": true, - "requires": { - "mimic-fn": "^1.0.0" - }, - "dependencies": { - "mimic-fn": { - "version": "1.2.0", - "resolved": "http://npm.pdffiller.com/mimic-fn/-/mimic-fn-1.2.0.tgz", - "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==", - "dev": true - } - } - }, - "opencollective-postinstall": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/opencollective-postinstall/-/opencollective-postinstall-2.0.2.tgz", - "integrity": "sha512-pVOEP16TrAO2/fjej1IdOyupJY8KDUM1CvsaScRbw6oddvpQoOfGk4ywha0HKKVAD6RkW4x6Q+tNBwhf3Bgpuw==", - "dev": true - }, - "optionator": { - "version": "0.8.2", - "resolved": "http://npm.pdffiller.com/optionator/-/optionator-0.8.2.tgz", - "integrity": "sha1-NkxeQJ0/TWMB1sC0wFu6UBgK62Q=", - "dev": true, - "requires": { - "deep-is": "~0.1.3", - "fast-levenshtein": "~2.0.4", - "levn": "~0.3.0", - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2", - "wordwrap": "~1.0.0" - } - }, - "os-locale": { - "version": "3.1.0", - "resolved": "http://npm.pdffiller.com/os-locale/-/os-locale-3.1.0.tgz", - "integrity": "sha512-Z8l3R4wYWM40/52Z+S265okfFj8Kt2cC2MKY+xNi3kFs+XGI7WXu/I309QQQYbRW4ijiZ+yxs9pqEhJh0DqW3Q==", - "dev": true, - "requires": { - "execa": "^1.0.0", - "lcid": "^2.0.0", - "mem": "^4.0.0" - } - }, - "os-tmpdir": { - "version": "1.0.2", - "resolved": "http://npm.pdffiller.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz", - "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", - "dev": true - }, - "p-defer": { - "version": "1.0.0", - "resolved": "http://npm.pdffiller.com/p-defer/-/p-defer-1.0.0.tgz", - "integrity": "sha1-n26xgvbJqozXQwBKfU+WsZaw+ww=", - "dev": true - }, - "p-finally": { - "version": "1.0.0", - "resolved": "http://npm.pdffiller.com/p-finally/-/p-finally-1.0.0.tgz", - "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", - "dev": true - }, - "p-is-promise": { - "version": "2.1.0", - "resolved": "http://npm.pdffiller.com/p-is-promise/-/p-is-promise-2.1.0.tgz", - "integrity": "sha512-Y3W0wlRPK8ZMRbNq97l4M5otioeA5lm1z7bkNkxCka8HSPjR0xRWmpCmc9utiaLP9Jb1eD8BgeIxTW4AIF45Pg==", - "dev": true - }, - "p-limit": { - "version": "2.2.0", - "resolved": "http://npm.pdffiller.com/p-limit/-/p-limit-2.2.0.tgz", - "integrity": "sha512-pZbTJpoUsCzV48Mc9Nh51VbwO0X9cuPFE8gYwx9BTCt9SF8/b7Zljd2fVgOxhIF/HDTKgpVzs+GPhyKfjLLFRQ==", - "dev": true, - "requires": { - "p-try": "^2.0.0" - } - }, - "p-locate": { - "version": "3.0.0", - "resolved": "http://npm.pdffiller.com/p-locate/-/p-locate-3.0.0.tgz", - "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", - "dev": true, - "requires": { - "p-limit": "^2.0.0" - } - }, - "p-try": { - "version": "2.2.0", - "resolved": "http://npm.pdffiller.com/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true - }, - "parent-module": { - "version": "1.0.1", - "resolved": "http://npm.pdffiller.com/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, - "requires": { - "callsites": "^3.0.0" - } - }, - "parse-json": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", - "dev": true, - "requires": { - "error-ex": "^1.3.1", - "json-parse-better-errors": "^1.0.1" - } - }, - "parse5": { - "version": "3.0.3", - "resolved": "http://npm.pdffiller.com/parse5/-/parse5-3.0.3.tgz", - "integrity": "sha512-rgO9Zg5LLLkfJF9E6CCmXlSE4UVceloys8JrFqCcHloC3usd/kJCyPDwH2SOlzix2j3xaP9sUX3e8+kvkuleAA==", - "dev": true, - "requires": { - "@types/node": "*" - } - }, - "path-dirname": { - "version": "1.0.2", - "resolved": "http://npm.pdffiller.com/path-dirname/-/path-dirname-1.0.2.tgz", - "integrity": "sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA=", - "dev": true - }, - "path-exists": { - "version": "3.0.0", - "resolved": "http://npm.pdffiller.com/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", - "dev": true - }, - "path-is-absolute": { - "version": "1.0.1", - "resolved": "http://npm.pdffiller.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true - }, - "path-key": { - "version": "2.0.1", - "resolved": "http://npm.pdffiller.com/path-key/-/path-key-2.0.1.tgz", - "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", - "dev": true - }, - "path-parse": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", - "dev": true - }, - "pathval": { - "version": "1.1.0", - "resolved": "http://npm.pdffiller.com/pathval/-/pathval-1.1.0.tgz", - "integrity": "sha1-uULm1L3mUwBe9rcTYd74cn0GReA=", - "dev": true - }, - "performance-now": { - "version": "2.1.0", - "resolved": "http://npm.pdffiller.com/performance-now/-/performance-now-2.1.0.tgz", - "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", - "dev": true, - "optional": true - }, - "pkg-dir": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", - "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", - "dev": true, - "requires": { - "find-up": "^4.0.0" - }, - "dependencies": { - "find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "requires": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - } - }, - "locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "requires": { - "p-locate": "^4.1.0" - } - }, - "p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "requires": { - "p-limit": "^2.2.0" - } - }, - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true - } - } - }, - "please-upgrade-node": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/please-upgrade-node/-/please-upgrade-node-3.1.1.tgz", - "integrity": "sha512-KY1uHnQ2NlQHqIJQpnh/i54rKkuxCEBx+voJIS/Mvb+L2iYd2NMotwduhKTMjfC1uKoX3VXOxLjIYG66dfJTVQ==", - "dev": true, - "requires": { - "semver-compare": "^1.0.0" - } - }, - "prelude-ls": { - "version": "1.1.2", - "resolved": "http://npm.pdffiller.com/prelude-ls/-/prelude-ls-1.1.2.tgz", - "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", - "dev": true - }, - "progress": { - "version": "2.0.3", - "resolved": "http://npm.pdffiller.com/progress/-/progress-2.0.3.tgz", - "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", - "dev": true - }, - "psl": { - "version": "1.1.33", - "resolved": "http://npm.pdffiller.com/psl/-/psl-1.1.33.tgz", - "integrity": "sha512-LTDP2uSrsc7XCb5lO7A8BI1qYxRe/8EqlRvMeEl6rsnYAqDOl8xHR+8lSAIVfrNaSAlTPTNOCgNjWcoUL3AZsw==", - "dev": true, - "optional": true - }, - "pump": { - "version": "3.0.0", - "resolved": "http://npm.pdffiller.com/pump/-/pump-3.0.0.tgz", - "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", - "dev": true, - "requires": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - }, - "punycode": { - "version": "2.1.1", - "resolved": "http://npm.pdffiller.com/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", - "dev": true - }, - "qs": { - "version": "6.5.2", - "resolved": "http://npm.pdffiller.com/qs/-/qs-6.5.2.tgz", - "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==", - "dev": true, - "optional": true - }, - "read-pkg": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", - "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", - "dev": true, - "requires": { - "@types/normalize-package-data": "^2.4.0", - "normalize-package-data": "^2.5.0", - "parse-json": "^5.0.0", - "type-fest": "^0.6.0" - }, - "dependencies": { - "parse-json": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.0.0.tgz", - "integrity": "sha512-OOY5b7PAEFV0E2Fir1KOkxchnZNCdowAJgQ5NuxjpBKTRP3pQhwkrkxqQjeoKJ+fO7bCpmIZaogI4eZGDMEGOw==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-better-errors": "^1.0.1", - "lines-and-columns": "^1.1.6" - } - } - } - }, - "readable-stream": { - "version": "3.4.0", - "resolved": "http://npm.pdffiller.com/readable-stream/-/readable-stream-3.4.0.tgz", - "integrity": "sha512-jItXPLmrSR8jmTRmRWJXCnGJsfy85mB3Wd/uINMXA65yrnFo0cPClFIUWzo2najVNSl+mx7/4W8ttlLWJe99pQ==", - "dev": true, - "requires": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - } - }, - "regenerator-runtime": { - "version": "0.11.1", - "resolved": "http://npm.pdffiller.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - }, - "regexpp": { - "version": "2.0.1", - "resolved": "http://npm.pdffiller.com/regexpp/-/regexpp-2.0.1.tgz", - "integrity": "sha512-lv0M6+TkDVniA3aD1Eg0DVpfU/booSu7Eev3TDO/mZKHBfVjgCGTV4t4buppESEYDtkArYFOxTJWv6S5C+iaNw==", - "dev": true - }, - "repeating": { - "version": "2.0.1", - "resolved": "http://npm.pdffiller.com/repeating/-/repeating-2.0.1.tgz", - "integrity": "sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo=", - "dev": true, - "requires": { - "is-finite": "^1.0.0" - } - }, - "request": { - "version": "2.88.0", - "resolved": "http://npm.pdffiller.com/request/-/request-2.88.0.tgz", - "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==", - "dev": true, - "optional": true, - "requires": { - "aws-sign2": "~0.7.0", - "aws4": "^1.8.0", - "caseless": "~0.12.0", - "combined-stream": "~1.0.6", - "extend": "~3.0.2", - "forever-agent": "~0.6.1", - "form-data": "~2.3.2", - "har-validator": "~5.1.0", - "http-signature": "~1.2.0", - "is-typedarray": "~1.0.0", - "isstream": "~0.1.2", - "json-stringify-safe": "~5.0.1", - "mime-types": "~2.1.19", - "oauth-sign": "~0.9.0", - "performance-now": "^2.1.0", - "qs": "~6.5.2", - "safe-buffer": "^5.1.2", - "tough-cookie": "~2.4.3", - "tunnel-agent": "^0.6.0", - "uuid": "^3.3.2" - }, - "dependencies": { - "punycode": { - "version": "1.4.1", - "resolved": "http://npm.pdffiller.com/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", - "dev": true, - "optional": true - }, - "tough-cookie": { - "version": "2.4.3", - "resolved": "http://npm.pdffiller.com/tough-cookie/-/tough-cookie-2.4.3.tgz", - "integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==", - "dev": true, - "optional": true, - "requires": { - "psl": "^1.1.24", - "punycode": "^1.4.1" - } - } - } - }, - "require-directory": { - "version": "2.1.1", - "resolved": "http://npm.pdffiller.com/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", - "dev": true - }, - "require-main-filename": { - "version": "2.0.0", - "resolved": "http://npm.pdffiller.com/require-main-filename/-/require-main-filename-2.0.0.tgz", - "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", - "dev": true - }, - "resolve": { - "version": "1.12.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", - "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", - "dev": true, - "requires": { - "path-parse": "^1.0.6" - } - }, - "resolve-from": { - "version": "4.0.0", - "resolved": "http://npm.pdffiller.com/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true - }, - "restore-cursor": { - "version": "2.0.0", - "resolved": "http://npm.pdffiller.com/restore-cursor/-/restore-cursor-2.0.0.tgz", - "integrity": "sha1-n37ih/gv0ybU/RYpI9YhKe7g368=", - "dev": true, - "requires": { - "onetime": "^2.0.0", - "signal-exit": "^3.0.2" - } - }, - "rimraf": { - "version": "2.6.3", - "resolved": "http://npm.pdffiller.com/rimraf/-/rimraf-2.6.3.tgz", - "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", - "dev": true, - "requires": { - "glob": "^7.1.3" - } - }, - "run-async": { - "version": "2.3.0", - "resolved": "http://npm.pdffiller.com/run-async/-/run-async-2.3.0.tgz", - "integrity": "sha1-A3GrSuC91yDUFm19/aZP96RFpsA=", - "dev": true, - "requires": { - "is-promise": "^2.1.0" - } - }, - "run-node": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/run-node/-/run-node-1.0.0.tgz", - "integrity": "sha512-kc120TBlQ3mih1LSzdAJXo4xn/GWS2ec0l3S+syHDXP9uRr0JAT8Qd3mdMuyjqCzeZktgP3try92cEgf9Nks8A==", - "dev": true - }, - "rxjs": { - "version": "6.5.2", - "resolved": "http://npm.pdffiller.com/rxjs/-/rxjs-6.5.2.tgz", - "integrity": "sha512-HUb7j3kvb7p7eCUHE3FqjoDsC1xfZQ4AHFWfTKSpZ+sAhhz5X1WX0ZuUqWbzB2QhSLp3DoLUG+hMdEDKqWo2Zg==", - "dev": true, - "requires": { - "tslib": "^1.9.0" - } - }, - "safe-buffer": { - "version": "5.1.2", - "resolved": "http://npm.pdffiller.com/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true - }, - "safer-buffer": { - "version": "2.1.2", - "resolved": "http://npm.pdffiller.com/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true - }, - "sax": { - "version": "1.2.4", - "resolved": "http://npm.pdffiller.com/sax/-/sax-1.2.4.tgz", - "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", - "dev": true, - "optional": true - }, - "semver": { - "version": "5.7.0", - "resolved": "http://npm.pdffiller.com/semver/-/semver-5.7.0.tgz", - "integrity": "sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA==", - "dev": true - }, - "semver-compare": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz", - "integrity": "sha1-De4hahyUGrN+nvsXiPavxf9VN/w=", - "dev": true - }, - "set-blocking": { - "version": "2.0.0", - "resolved": "http://npm.pdffiller.com/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", - "dev": true - }, - "shebang-command": { - "version": "1.2.0", - "resolved": "http://npm.pdffiller.com/shebang-command/-/shebang-command-1.2.0.tgz", - "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", - "dev": true, - "requires": { - "shebang-regex": "^1.0.0" - } - }, - "shebang-regex": { - "version": "1.0.0", - "resolved": "http://npm.pdffiller.com/shebang-regex/-/shebang-regex-1.0.0.tgz", - "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", - "dev": true - }, - "signal-exit": { - "version": "3.0.2", - "resolved": "http://npm.pdffiller.com/signal-exit/-/signal-exit-3.0.2.tgz", - "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", - "dev": true - }, - "slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true - }, - "slice-ansi": { - "version": "2.1.0", - "resolved": "http://npm.pdffiller.com/slice-ansi/-/slice-ansi-2.1.0.tgz", - "integrity": "sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.0", - "astral-regex": "^1.0.0", - "is-fullwidth-code-point": "^2.0.0" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "http://npm.pdffiller.com/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "spdx-correct": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.0.tgz", - "integrity": "sha512-lr2EZCctC2BNR7j7WzJ2FpDznxky1sjfxvvYEyzxNyb6lZXHODmEoJeFu4JupYlkfha1KZpJyoqiJ7pgA1qq8Q==", - "dev": true, - "requires": { - "spdx-expression-parse": "^3.0.0", - "spdx-license-ids": "^3.0.0" - } - }, - "spdx-exceptions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.2.0.tgz", - "integrity": "sha512-2XQACfElKi9SlVb1CYadKDXvoajPgBVPn/gOQLrTvHdElaVhr7ZEbqJaRnJLVNeaI4cMEAgVCeBMKF6MWRDCRA==", - "dev": true - }, - "spdx-expression-parse": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz", - "integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==", - "dev": true, - "requires": { - "spdx-exceptions": "^2.1.0", - "spdx-license-ids": "^3.0.0" - } - }, - "spdx-license-ids": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.5.tgz", - "integrity": "sha512-J+FWzZoynJEXGphVIS+XEh3kFSjZX/1i9gFBaWQcB+/tmpe2qUsSBABpcxqxnAxFdiUFEgAX1bjYGQvIZmoz9Q==", - "dev": true - }, - "sprintf-js": { - "version": "1.0.3", - "resolved": "http://npm.pdffiller.com/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": true - }, - "sshpk": { - "version": "1.16.1", - "resolved": "http://npm.pdffiller.com/sshpk/-/sshpk-1.16.1.tgz", - "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==", - "dev": true, - "optional": true, - "requires": { - "asn1": "~0.2.3", - "assert-plus": "^1.0.0", - "bcrypt-pbkdf": "^1.0.0", - "dashdash": "^1.12.0", - "ecc-jsbn": "~0.1.1", - "getpass": "^0.1.1", - "jsbn": "~0.1.0", - "safer-buffer": "^2.0.2", - "tweetnacl": "~0.14.0" - } - }, - "string-width": { - "version": "2.1.1", - "resolved": "http://npm.pdffiller.com/string-width/-/string-width-2.1.1.tgz", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", - "dev": true, - "requires": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - } - }, - "string_decoder": { - "version": "1.2.0", - "resolved": "http://npm.pdffiller.com/string_decoder/-/string_decoder-1.2.0.tgz", - "integrity": "sha512-6YqyX6ZWEYguAxgZzHGL7SsCeGx3V2TtOTqZz1xSTSWnqsbWwbptafNyvf/ACquZUXV3DANr5BDIwNYe1mN42w==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - }, - "strip-ansi": { - "version": "4.0.0", - "resolved": "http://npm.pdffiller.com/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", - "dev": true, - "requires": { - "ansi-regex": "^3.0.0" - } - }, - "strip-eof": { - "version": "1.0.0", - "resolved": "http://npm.pdffiller.com/strip-eof/-/strip-eof-1.0.0.tgz", - "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", - "dev": true - }, - "strip-json-comments": { - "version": "2.0.1", - "resolved": "http://npm.pdffiller.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", - "dev": true - }, - "supports-color": { - "version": "6.0.0", - "resolved": "http://npm.pdffiller.com/supports-color/-/supports-color-6.0.0.tgz", - "integrity": "sha512-on9Kwidc1IUQo+bQdhi8+Tijpo0e1SS6RoGo2guUwn5vdaxw8RXOF9Vb2ws+ihWOmh4JnCJOvaziZWP1VABaLg==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - }, - "symbol-tree": { - "version": "3.2.4", - "resolved": "http://npm.pdffiller.com/symbol-tree/-/symbol-tree-3.2.4.tgz", - "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", - "dev": true, - "optional": true - }, - "table": { - "version": "5.4.1", - "resolved": "http://npm.pdffiller.com/table/-/table-5.4.1.tgz", - "integrity": "sha512-E6CK1/pZe2N75rGZQotFOdmzWQ1AILtgYbMAbAjvms0S1l5IDB47zG3nCnFGB/w+7nB3vKofbLXCH7HPBo864w==", - "dev": true, - "requires": { - "ajv": "^6.9.1", - "lodash": "^4.17.11", - "slice-ansi": "^2.1.0", - "string-width": "^3.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "4.1.0", - "resolved": "http://npm.pdffiller.com/ansi-regex/-/ansi-regex-4.1.0.tgz", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", - "dev": true - }, - "string-width": { - "version": "3.1.0", - "resolved": "http://npm.pdffiller.com/string-width/-/string-width-3.1.0.tgz", - "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", - "dev": true, - "requires": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" - } - }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "http://npm.pdffiller.com/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "requires": { - "ansi-regex": "^4.1.0" - } - } - } - }, - "taffydb": { - "version": "2.7.3", - "resolved": "http://npm.pdffiller.com/taffydb/-/taffydb-2.7.3.tgz", - "integrity": "sha1-KtNxaWKUmPylvIQkMJbTzeDsOjQ=", - "dev": true - }, - "text-table": { - "version": "0.2.0", - "resolved": "http://npm.pdffiller.com/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", - "dev": true - }, - "through": { - "version": "2.3.8", - "resolved": "http://npm.pdffiller.com/through/-/through-2.3.8.tgz", - "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", - "dev": true - }, - "tmp": { - "version": "0.0.33", - "resolved": "http://npm.pdffiller.com/tmp/-/tmp-0.0.33.tgz", - "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", - "dev": true, - "requires": { - "os-tmpdir": "~1.0.2" - } - }, - "to-fast-properties": { - "version": "1.0.3", - "resolved": "http://npm.pdffiller.com/to-fast-properties/-/to-fast-properties-1.0.3.tgz", - "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=", - "dev": true - }, - "tough-cookie": { - "version": "2.5.0", - "resolved": "http://npm.pdffiller.com/tough-cookie/-/tough-cookie-2.5.0.tgz", - "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", - "dev": true, - "optional": true, - "requires": { - "psl": "^1.1.28", - "punycode": "^2.1.1" - } - }, - "tr46": { - "version": "0.0.3", - "resolved": "http://npm.pdffiller.com/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=", - "dev": true, - "optional": true - }, - "trim-right": { - "version": "1.0.1", - "resolved": "http://npm.pdffiller.com/trim-right/-/trim-right-1.0.1.tgz", - "integrity": "sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=", - "dev": true - }, - "tslib": { - "version": "1.10.0", - "resolved": "http://npm.pdffiller.com/tslib/-/tslib-1.10.0.tgz", - "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", - "dev": true - }, - "tunnel-agent": { - "version": "0.6.0", - "resolved": "http://npm.pdffiller.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz", - "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", - "dev": true, - "optional": true, - "requires": { - "safe-buffer": "^5.0.1" - } - }, - "tweetnacl": { - "version": "0.14.5", - "resolved": "http://npm.pdffiller.com/tweetnacl/-/tweetnacl-0.14.5.tgz", - "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", - "dev": true, - "optional": true - }, - "type-check": { - "version": "0.3.2", - "resolved": "http://npm.pdffiller.com/type-check/-/type-check-0.3.2.tgz", - "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", - "dev": true, - "requires": { - "prelude-ls": "~1.1.2" - } - }, - "type-detect": { - "version": "4.0.8", - "resolved": "http://npm.pdffiller.com/type-detect/-/type-detect-4.0.8.tgz", - "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", - "dev": true - }, - "type-fest": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", - "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", - "dev": true - }, - "universalify": { - "version": "0.1.2", - "resolved": "http://npm.pdffiller.com/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", - "dev": true - }, - "uri-js": { - "version": "4.2.2", - "resolved": "http://npm.pdffiller.com/uri-js/-/uri-js-4.2.2.tgz", - "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", - "dev": true, - "requires": { - "punycode": "^2.1.0" - } - }, - "util-deprecate": { - "version": "1.0.2", - "resolved": "http://npm.pdffiller.com/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", - "dev": true - }, - "uuid": { - "version": "3.3.2", - "resolved": "http://npm.pdffiller.com/uuid/-/uuid-3.3.2.tgz", - "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==", - "dev": true, - "optional": true - }, - "validate-npm-package-license": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", - "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", - "dev": true, - "requires": { - "spdx-correct": "^3.0.0", - "spdx-expression-parse": "^3.0.0" - } - }, - "verror": { - "version": "1.10.0", - "resolved": "http://npm.pdffiller.com/verror/-/verror-1.10.0.tgz", - "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", - "dev": true, - "optional": true, - "requires": { - "assert-plus": "^1.0.0", - "core-util-is": "1.0.2", - "extsprintf": "^1.2.0" - } - }, - "webidl-conversions": { - "version": "2.0.1", - "resolved": "http://npm.pdffiller.com/webidl-conversions/-/webidl-conversions-2.0.1.tgz", - "integrity": "sha1-O/glj30xjHRDw28uFpQCoaZwNQY=", - "dev": true, - "optional": true - }, - "whatwg-url-compat": { - "version": "0.6.5", - "resolved": "http://npm.pdffiller.com/whatwg-url-compat/-/whatwg-url-compat-0.6.5.tgz", - "integrity": "sha1-AImBEa9om7CXVBzVpFymyHmERb8=", - "dev": true, - "optional": true, - "requires": { - "tr46": "~0.0.1" - } - }, - "which": { - "version": "1.3.1", - "resolved": "http://npm.pdffiller.com/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "dev": true, - "requires": { - "isexe": "^2.0.0" - } - }, - "which-module": { - "version": "2.0.0", - "resolved": "http://npm.pdffiller.com/which-module/-/which-module-2.0.0.tgz", - "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", - "dev": true - }, - "wide-align": { - "version": "1.1.3", - "resolved": "http://npm.pdffiller.com/wide-align/-/wide-align-1.1.3.tgz", - "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", - "dev": true, - "requires": { - "string-width": "^1.0.2 || 2" - } - }, - "wordwrap": { - "version": "1.0.0", - "resolved": "http://npm.pdffiller.com/wordwrap/-/wordwrap-1.0.0.tgz", - "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=", - "dev": true - }, - "wrap-ansi": { - "version": "2.1.0", - "resolved": "http://npm.pdffiller.com/wrap-ansi/-/wrap-ansi-2.1.0.tgz", - "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", - "dev": true, - "requires": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1" - }, - "dependencies": { - "ansi-regex": { - "version": "2.1.1", - "resolved": "http://npm.pdffiller.com/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "1.0.0", - "resolved": "http://npm.pdffiller.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", - "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", - "dev": true, - "requires": { - "number-is-nan": "^1.0.0" - } - }, - "string-width": { - "version": "1.0.2", - "resolved": "http://npm.pdffiller.com/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", - "dev": true, - "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "http://npm.pdffiller.com/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - } - } - }, - "wrappy": { - "version": "1.0.2", - "resolved": "http://npm.pdffiller.com/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true - }, - "write": { - "version": "1.0.3", - "resolved": "http://npm.pdffiller.com/write/-/write-1.0.3.tgz", - "integrity": "sha512-/lg70HAjtkUgWPVZhZcm+T4hkL8Zbtp1nFNOn3lRrxnlv50SRBv7cR7RqR+GMsd3hUXy9hWBo4CHTbFTcOYwig==", - "dev": true, - "requires": { - "mkdirp": "^0.5.1" - } - }, - "xml-name-validator": { - "version": "2.0.1", - "resolved": "http://npm.pdffiller.com/xml-name-validator/-/xml-name-validator-2.0.1.tgz", - "integrity": "sha1-TYuPHszTQZqjYgYb7O9RXh5VljU=", - "dev": true, - "optional": true - }, - "y18n": { - "version": "4.0.0", - "resolved": "http://npm.pdffiller.com/y18n/-/y18n-4.0.0.tgz", - "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==", - "dev": true - }, - "yargs": { - "version": "13.2.2", - "resolved": "http://npm.pdffiller.com/yargs/-/yargs-13.2.2.tgz", - "integrity": "sha512-WyEoxgyTD3w5XRpAQNYUB9ycVH/PQrToaTXdYXRdOXvEy1l19br+VJsc0vcO8PTGg5ro/l/GY7F/JMEBmI0BxA==", - "dev": true, - "requires": { - "cliui": "^4.0.0", - "find-up": "^3.0.0", - "get-caller-file": "^2.0.1", - "os-locale": "^3.1.0", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^3.0.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^13.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "4.1.0", - "resolved": "http://npm.pdffiller.com/ansi-regex/-/ansi-regex-4.1.0.tgz", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", - "dev": true - }, - "string-width": { - "version": "3.1.0", - "resolved": "http://npm.pdffiller.com/string-width/-/string-width-3.1.0.tgz", - "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", - "dev": true, - "requires": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" - } - }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "http://npm.pdffiller.com/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "requires": { - "ansi-regex": "^4.1.0" - } - } - } - }, - "yargs-parser": { - "version": "13.0.0", - "resolved": "http://npm.pdffiller.com/yargs-parser/-/yargs-parser-13.0.0.tgz", - "integrity": "sha512-w2LXjoL8oRdRQN+hOyppuXs+V/fVAYtpcrRxZuF7Kt/Oc+Jr2uAcVntaUTNT6w5ihoWfFDpNY8CPx1QskxZ/pw==", - "dev": true, - "requires": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - } - }, - "yargs-unparser": { - "version": "1.5.0", - "resolved": "http://npm.pdffiller.com/yargs-unparser/-/yargs-unparser-1.5.0.tgz", - "integrity": "sha512-HK25qidFTCVuj/D1VfNiEndpLIeJN78aqgR23nL3y4N0U/91cOAzqfHlF8n2BvoNDcZmJKin3ddNSvOxSr8flw==", - "dev": true, - "requires": { - "flat": "^4.1.0", - "lodash": "^4.17.11", - "yargs": "^12.0.5" - }, - "dependencies": { - "get-caller-file": { - "version": "1.0.3", - "resolved": "http://npm.pdffiller.com/get-caller-file/-/get-caller-file-1.0.3.tgz", - "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==", - "dev": true - }, - "require-main-filename": { - "version": "1.0.1", - "resolved": "http://npm.pdffiller.com/require-main-filename/-/require-main-filename-1.0.1.tgz", - "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=", - "dev": true - }, - "yargs": { - "version": "12.0.5", - "resolved": "http://npm.pdffiller.com/yargs/-/yargs-12.0.5.tgz", - "integrity": "sha512-Lhz8TLaYnxq/2ObqHDql8dX8CJi97oHxrjUcYtzKbbykPtVW9WB+poxI+NM2UIzsMgNCZTIf0AQwsjK5yMAqZw==", - "dev": true, - "requires": { - "cliui": "^4.0.0", - "decamelize": "^1.2.0", - "find-up": "^3.0.0", - "get-caller-file": "^1.0.1", - "os-locale": "^3.0.0", - "require-directory": "^2.1.1", - "require-main-filename": "^1.0.1", - "set-blocking": "^2.0.0", - "string-width": "^2.0.0", - "which-module": "^2.0.0", - "y18n": "^3.2.1 || ^4.0.0", - "yargs-parser": "^11.1.1" - } - }, - "yargs-parser": { - "version": "11.1.1", - "resolved": "http://npm.pdffiller.com/yargs-parser/-/yargs-parser-11.1.1.tgz", - "integrity": "sha512-C6kB/WJDiaxONLJQnF8ccx9SEeoTTLek8RVbaOIsrAUS8VrBEXfmeSnCZxygc+XC2sNMBIwOOnfcxiynjHsVSQ==", - "dev": true, - "requires": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - } - } - } - } - } -} diff --git a/package.json b/package.json index 22961dca..fae08462 100644 --- a/package.json +++ b/package.json @@ -1,95 +1,38 @@ { - "name": "@signnow/api-client", - "clientName": "SignNow Node.js API Client", - "description": "SignNow REST Service Wrapper", - "version": "1.8.2", - "author": { - "name": "SignNow Team", - "email": "api@signnow.com" - }, - "keywords": [ - "signnow", - "document", - "sign", - "online", - "electronic", - "signature", - "api", - "client" - ], - "main": "lib/index.js", - "repository": "github:signnow/SignNowNodeSDK", + "name": "nodejs-sdk-3.0", + "version": "1.0.0", + "description": "signNow API NODEJS SDK", + "main": "index.ts", + "type": "module", "scripts": { - "lint": "./node_modules/.bin/eslint '**/*.js'", - "lint:fix": "./node_modules/.bin/eslint '**/*.js' --fix", - "docs": "./node_modules/.bin/esdoc", - "preversion": "npm run lint", - "version": "./tools/update-readme.js && npm run docs && git add -A .", - "postversion": "git push && git push --tags" - }, - "devDependencies": { - "chai": "*", - "esdoc": "1.1.0", - "esdoc-ecmascript-proposal-plugin": "1.0.0", - "esdoc-external-nodejs-plugin": "1.0.0", - "esdoc-inject-style-plugin": "1.0.0", - "esdoc-node": "1.0.4", - "esdoc-standard-plugin": "1.0.0", - "eslint": "6.0.1", - "husky": "3.0.2", - "mocha": "*" + "start": "tsx index.ts", + "test": "DOTENV_CONFIG_PATH=.env.test jest", + "eslint": "eslint . --fix" }, "engines": { - "node": ">=6.4.0" + "node": ">=20.x.x", + "npm": ">=10.x.x" }, - "files": [ - "lib", - "config", - "utils", - "bin" - ], - "bin": { - "sn:cancel-field-invite": "./bin/cancel-field-invite.js", - "sn:cancel-freeform-invite": "./bin/cancel-freeform-invite.js", - "sn:create-document-group-template": "./bin/create-document-group-template.js", - "sn:create-document-group": "./bin/create-document-group.js", - "sn:create-document": "./bin/create-document.js", - "sn:create-field-invite": "./bin/create-field-invite.js", - "sn:create-freeform-invite": "./bin/create-freeform-invite.js", - "sn:create-signing-link": "./bin/create-signing-link.js", - "sn:create-template": "./bin/create-template.js", - "sn:create-user": "./bin/create-user.js", - "sn:document-group-invite": "./bin/document-group-invite.js", - "sn:document-history": "./bin/document-history.js", - "sn:document-list": "./bin/document-list.js", - "sn:download-document": "./bin/download-document.js", - "sn:download-document-group": "./bin/download-document-group.js", - "sn:extract-fields": "./bin/extract-fields.js", - "sn:get-access-token": "./bin/get-access-token.js", - "sn:invite-documentgroup-template": "./bin/invite-documentgroup-template.js", - "sn:merge-documents": "./bin/merge-documents.js", - "sn:refresh-token": "./bin/refresh-token.js", - "sn:remove-document": "./bin/remove-document.js", - "sn:remove-template": "./bin/remove-template.js", - "sn:verify-email": "./bin/verify-email.js", - "sn:share-document": "./bin/share-document.js", - "sn:template-field-invite": "./bin/template-field-invite.js", - "sn:template-freeform-invite": "./bin/template-freeform-invite.js", - "sn:update-document": "./bin/update-document.js", - "sn:user-info": "./bin/user-info.js", - "sn:verify-access-token": "./bin/verify-access-token.js", - "sn:view-document-group": "./bin/view-document-group.js", - "sn:view-document": "./bin/view-document.js", - "sn:view-documentgroup-template": "./bin/view-documentgroup-template.js", - "sn:routing-details": "./bin/routing-details.js", - "sn:update-routing-details": "./bin/update-routing-details.js", - "sn:cancel-documentgroup-invite": "./bin/cancel-documentgroup-invite.js", - "sn:duplicate-template": "./bin/duplicate-template.js", - "sn:bulk-invite": "./bin/bulk-invite.js", - "sn:document-signers": "./bin/document-signers.js", - "sn:embedded-create-invites": "./bin/embedded-create-invites.js", - "sn:embedded-generate-link": "./bin/embedded-generate-link.js", - "sn:embedded-cancel-invites": "./bin/embedded-cancel-invites.js" + "author": "", + "license": "ISC", + "devDependencies": { + "@eslint/js": "^9.15.0", + "@faker-js/faker": "^9.5.1", + "@stylistic/eslint-plugin-ts": "^2.11.0", + "@types/node": "^22.9.1", + "@types/node-fetch": "^2.6.12", + "eslint": "^9.15.0", + "globals": "^15.12.0", + "jest": "^29.7.0", + "ts-jest": "^29.2.5", + "ts-node": "^10.9.2", + "tsx": "^4.19.2", + "typescript": "^5.8.3", + "typescript-eslint": "^8.16.0" }, - "license": "MIT" + "dependencies": { + "dotenv": "^16.4.5", + "form-data": "^4.0.1", + "node-fetch": "^2.7.0" + } } diff --git a/samples/files/pdf-sample.pdf b/samples/files/pdf-sample.pdf deleted file mode 100644 index f698ff53..00000000 Binary files a/samples/files/pdf-sample.pdf and /dev/null differ diff --git a/samples/files/text-tags-sample.pdf b/samples/files/text-tags-sample.pdf deleted file mode 100644 index d2f8e5ec..00000000 Binary files a/samples/files/text-tags-sample.pdf and /dev/null differ diff --git a/samples/sample-app.js b/samples/sample-app.js deleted file mode 100644 index f5d7f50d..00000000 --- a/samples/sample-app.js +++ /dev/null @@ -1,627 +0,0 @@ -/* - * to run sample app from the project root folder type in your console: - * > node samples/sample-app - */ - -'use strict'; -const { promisify } = require('util'); - -const [ - clientId, - clientSecret, - username, - password, -] = process.argv.slice(2); - -const snApi = require('../lib')({ - credentials: Buffer.from(`${clientId}:${clientSecret}`).toString('base64'), - production: false, // (false uses eval server) -}); - -// 1. get access token (authentication) -snApi.oauth2.requestToken({ - username, - password, -}, (err, res) => { - console.log('-------------------------------'); - console.log(' 1. snApi.oauth2.requestToken: '); - console.log('-------------------------------'); - if (err) { - console.error(err); - console.log('\n'); - } else { - console.log(res); - console.log('\n'); - - const { access_token: token } = res; - - // 2. verify access token - snApi.oauth2.verify({ token }, (err2, res2) => { - console.log('-------------------------'); - console.log(' 2. snApi.oauth2.verify: '); - console.log('-------------------------'); - if (err2) { - console.error(err2); - console.log('\n'); - } else { - console.log(res2); - console.log('\n'); - } - }); - - // 3. get user data - snApi.user.retrieve({ token }, (err3, res3) => { - console.log('-------------------------'); - console.log(' 3. snApi.user.retrieve: '); - console.log('-------------------------'); - if (err3) { - console.error(err3); - console.log('\n'); - } else { - console.log(res3); - console.log('\n'); - } - }); - - // 17. Get a list of folders - snApi.folder.list({ token }, (err17, res17) => { - console.log('------------------------'); - console.log(' 17. snApi.folder.list: '); - console.log('------------------------'); - if (err17) { - console.error(err17); - console.log('\n'); - } else { - console.log(res17); - console.log('\n'); - - const { id } = res17.folders.find(folder => folder.name === 'Documents'); - - // 18. Get a list of documents inside a folder - id && snApi.folder.documents({ - filter: [{ 'signing-status': 'signed' }], - sort: { updated: 'desc' }, - id, - token, - }, (err18, res18) => { - console.log('-----------------------------'); - console.log(' 18. snApi.folder.documents: '); - console.log('-----------------------------'); - if (err18) { - console.error(err18); - console.log('\n'); - } else { - console.log(res18); - console.log('\n'); - } - }); - - } - - }); - - // 4. get documnet list - snApi.document.list({ token }, (err4, res4) => { - console.log('-------------------------'); - console.log(' 4. snApi.document.list: '); - console.log('-------------------------'); - if (err4) { - console.error(err4); - console.log('\n'); - } else { - const docList = Array.isArray(res4) && res4.map(doc => doc.id); - - console.log(docList); - console.log('\n'); - - - // 6. download document - snApi.document.download({ - id: docList[0], - token, - }, err6 => { - console.log('-----------------------------'); - console.log(' 6. snApi.document.download: '); - console.log('-----------------------------'); - if (err6) { - console.error(err6); - console.log('\n'); - } else { - - // TODO: write file onto disk - // console.log(res6); - console.log('file has been downloaded'); - console.log('\n'); - } - }); - - - // 13. Merges Existing Documents - snApi.document.merge({ - token, - name: 'the merged doc', - document_ids: [ - docList[2], - docList[3], - ], - }, (err13, res13) => { - console.log('---------------------------'); - console.log(' 13. snApi.document.merge: '); - console.log('---------------------------'); - if (err13) { - console.error(err13); - console.log('\n'); - } else { - console.log(res13); - console.log('\n'); - } - - const { document_id: id } = res13; - - // 14. Get Document History - id && snApi.document.history({ - token, - id, - }, (err14, res14) => { - console.log('-----------------------------'); - console.log(' 14. snApi.document.history: '); - console.log('-----------------------------'); - if (err14) { - console.error(err14); - console.log('\n'); - } else { - console.log(res14); - console.log('\n'); - } - - - }); - - - }); - - } - }); - - - // 7. upload document - snApi.document.create({ - filepath: 'samples/files/pdf-sample.pdf', - token, - }, (err7, res7) => { - console.log('---------------------------'); - console.log(' 7. snApi.document.create: '); - console.log('---------------------------'); - if (err7) { - console.error(err7); - console.log('\n'); - } else { - console.log(res7); - console.log('\n'); - - const { id } = res7; - - // 10. Create Invite to Sign a Document (without fields) - id && snApi.document.invite({ - data: { - from: username, - to: 'russellswift11@yopmail.com', - }, - id, - token, - }, (err10, res10) => { - console.log('---------------------------------------------'); - console.log(' 10. snApi.document.invite (without fields): '); - console.log('---------------------------------------------'); - if (err10) { - console.error(err10); - console.log('\n'); - } else { - console.log(res10); - console.log('\n'); - } - - /* - * 11. Cancel an Invite to a Document (without fields) - * snApi.document.cancelInvite({ - * id, - * token, - * }, (err11, res11) => { - * console.log('---------------------------------------------------'); - * console.log(' 11. snApi.document.cancelInvite (without fields): '); - * console.log('---------------------------------------------------'); - * if (err11) { - * console.error(err11); - * console.log('\n'); - * } else { - * console.log(res11); - * console.log('\n'); - * } - * }); - */ - - }); - } - }); - - - - // 7. upload document - snApi.document.create({ - filepath: 'samples/files/pdf-sample.pdf', - token, - }, (err7, res7) => { - console.log('---------------------------'); - console.log(' 7. snApi.document.create: '); - console.log('---------------------------'); - if (err7) { - console.error(err7); - console.log('\n'); - } else { - console.log(res7); - console.log('\n'); - - const { id } = res7; - - const fields = { - client_timestamp: 1527859375, - fields: [ - { - page_number: 0, - type: 'signature', - name: 'FieldName', - role: 'Singer 1', - required: true, - height: 40, - width: 50, - x: 217, - y: 32, - }, - { - page_number: 0, - type: 'enumeration', - name: 'EnumerationName', - role: 'Singer 1', - prefilled_text: 123, - label: 'EnumerationLabel', - required: true, - custom_defined_option: false, - enumeration_options: [ - 123, - 1234, - 12345, - ], - height: 40, - width: 50, - x: 100, - y: 32, - }, - { - page_number: 0, - type: 'text', - name: 'TextName', - role: 'Singer 1', - prefilled_text: 123, - validator_id: '1f9486ae822d30ba3df2cb8e65303ebfb8c803e8', - label: 'TextLabel', - required: true, - height: 40, - width: 50, - x: 217, - y: 120, - }, - { - page_number: 0, - type: 'radiobutton', - name: 'RadiobuttonName', - role: 'Singer 1', - prefilled_text: 'RadioButtonValue2', - label: 'RadiobuttonLabel', - required: true, - radio: [ - { - value: 'RadioButtonValue1', - checked: '0', - created: 1527859375, - height: 30, - width: 30, - x: 551, - y: 203, - page_number: 0, - }, - { - value: 'RadioButtonValue2', - checked: '0', - created: 1527859375, - height: 30, - width: 30, - x: 551, - y: 241, - page_number: 0, - }, - ], - height: 34, - width: 34, - x: 228, - y: 167, - }, - { - page_number: 0, - type: 'checkbox', - name: 'CheckboxName', - role: 'Singer 1', - prefilled_text: true, - label: 'checkboxLabel', - required: true, - height: 15, - width: 11, - x: 70, - y: 270, - }, - { - page_number: 0, - type: 'attachment', - name: 'AttachmentName', - role: 'Singer 1', - label: 'AttachmentLabel', - required: true, - height: 40, - width: 35, - x: 70, - y: 350, - }, - { - page_number: 0, - type: 'text', - name: 'CalculatedName', - role: 'Singer 1', - formula: 'TextName+EnumerationName', - custom_defined_option: false, - required: true, - calculation_formula: { - operator: 'add', - left: { term: 'TextName' }, - right: { term: 'EnumerationName' }, - }, - calculation_precision: 2, - height: 40, - width: 50, - x: 350, - y: 55, - }, - { - page_number: 0, - type: 'initials', - name: 'InitialsName', - role: 'Singer 1', - label: 'InitialsLabel', - required: true, - height: 52, - width: 33, - x: 300, - y: 443, - }, - ], - }; - - // 9. Update Document (add fields) - id && snApi.document.update({ - id, - fields, - token, - }, (err9, res9) => { - console.log('---------------------------'); - console.log(' 9. snApi.document.update: '); - console.log('---------------------------'); - if (err9) { - console.error(err9); - console.log('\n'); - } else { - console.log(res9); - console.log('\n'); - - const { id: id9 } = res9; - - // 5. get document data - id9 && snApi.document.view({ - id: id9, - token, - }, (err5, res5) => { - console.log('-------------------------'); - console.log(' 5. snApi.document.view: '); - console.log('-------------------------'); - if (err5) { - console.error(err5); - console.log('\n'); - } else { - console.log(res5); - console.log('\n'); - - const roleId = res5.roles[0].unique_id; - - const fieldinvite = { - document_id: id9, - to: [ - { - email: 'russellswift11@yopmail.com', - role_id: roleId, - role: 'Signer 1', - order: 1, - reassign: '0', - decline_by_signature: '0', - reminder: 0, - expiration_days: 30, - authentication_type: 'password', - password: '123456', - subject: 'Auth', - message: 'AUTH message "AUTH"', - }, - ], - from: username, - cc: [ - 'russellswift3@yopmail.com', - 'russellswift4@yopmail.com', - ], - cc_step: [ - { - name: 'CC 1', - email: 'russellswift3@yopmail.com', - step: 1, - }, - ], - subject: 'test@signnow.com Needs Your Signature', - message: 'test@signnow.com invited you to sign "2 signers document"', - }; - - - // 10. Create Invite to Sign a Document (with fields) - id9 && snApi.document.invite({ - data: Object.assign({}, fieldinvite), - id: id9, - token, - }, (err10, res10) => { - console.log('------------------------------------------'); - console.log(' 10. snApi.document.invite (with fields): '); - console.log('------------------------------------------'); - if (err10) { - console.error(err10); - console.log('\n'); - } else { - console.log(res10); - console.log('\n'); - } - - // 11. Cancel an Invite to a Document (with fields) - snApi.document.cancelInvite({ - id: id9, - token, - }, (err11, res11) => { - console.log('------------------------------------------------'); - console.log(' 11. snApi.document.cancelInvite (with fields): '); - console.log('------------------------------------------------'); - if (err11) { - console.error(err11); - console.log('\n'); - } else { - console.log(res11); - console.log('\n'); - } - - - // 12. Create a One-time Use Download URL - snApi.document.share({ - token, - id: id9, - }, (err12, res12) => { - console.log('---------------------------'); - console.log(' 12. snApi.document.share: '); - console.log('---------------------------'); - if (err12) { - console.error(err12); - console.log('\n'); - } else { - console.log(res12); - console.log('\n'); - } - }); - - // 15. Create a Template - const createTemplate = promisify(snApi.template.create); - createTemplate({ - document_id: id9, - document_name: 'sdk template', - token, - }) - .then(res15 => { - console.log('----------------------------'); - console.log(' 15. snApi.template.create: '); - console.log('----------------------------'); - - console.log(res15); - console.log('\n'); - - const { id: id15 } = res15; - - // 16. Duplicate a Template - snApi.template.duplicate({ - name: 'sdk template duplicated', - id: id15, - token, - }, (err16, res16) => { - console.log('-------------------------------'); - console.log(' 16. snApi.template.duplicate: '); - console.log('-------------------------------'); - if (err16) { - console.error(err16); - console.log('\n'); - } else { - console.log(res16); - console.log('\n'); - - const { id: id16 } = res16; - - // 19. create signing link - snApi.link.create({ - document_id: id16, - token, - }, (err19, res19) => { - console.log('------------------------'); - console.log(' 19. snApi.link.create: '); - console.log('------------------------'); - if (err19) { - console.error(err19); - console.log('\n'); - } else { - console.log(res19); - console.log('\n'); - } - }); - - } - - }); - - }) - .catch(err15 => { - console.error(err15); - console.log('\n'); - }); - - }); - - - }); - - - } - }); - - - } - }); - - - } - }); - - - // 8. Upload File & Extract Fields - snApi.document.fieldextract({ - filepath: 'samples/files/pdf-sample.pdf', - token, - }, (err8, res8) => { - console.log('---------------------------------'); - console.log(' 8. snApi.document.fieldextract: '); - console.log('---------------------------------'); - if (err8) { - console.error(err8); - console.log('\n'); - } else { - console.log(res8); - console.log('\n'); - } - }); - - - } -}); diff --git a/samples/snippets/addSignatureField.js b/samples/snippets/addSignatureField.js deleted file mode 100644 index f7f49369..00000000 --- a/samples/snippets/addSignatureField.js +++ /dev/null @@ -1,74 +0,0 @@ -'use strict'; - -const signnow = require('@signnow/api-client')({ - credentials: 'BASE64_ENCODED_CLIENT_CREDENTIALS', - production: true, // if false then uses eval server -}); -const addSignatureField = signnow.document.update; - -const id = 'DOCUMENT_ID_GOES_HERE'; -const token = 'YOUR_ACCESS_TOKEN'; - -/** - * @typedef {Object} SignatureField - * @property {number} page_number - page number of document - * @property {string} type - type of field - * @property {string} name - unique name of the field - * @property {string} role - role name - * @property {boolean} required - required field - * @property {number} height - height of the field - * @property {number} width - width of the field - * @property {number} x - X coordinate of the field - * @property {number} y - Y coordinate of the field - */ - -/** - * @type {Object} - * @property {number} client_timestamp - local time of user - * @property {SignatureField[]} fields - */ -const fields = { - client_timestamp: 1527859375, - fields: [ - { - page_number: 0, - type: 'signature', - name: 'FieldName', - role: 'Signer 1', - required: true, - height: 40, - width: 50, - x: 217, - y: 32, - }, - ], -}; - -/** - * @param {Object} res - * @param {string} res.id - an id of document - * @param {Object[]} res.signatures - signature and initial elements - * @param {Object[]} res.texts - text and enumeration elements - * @param {Object[]} res.checks - checkbox elements - * @param {Object[]} res.attachments - attachment elements - * @param {Object[]} res.radiobuttons - radiobutton elements - */ -const handleResponse = res => { - console.log(res); -}; - -const handleError = err => { - console.error(err); -}; - -addSignatureField({ - id, - fields, - token, -}, (err, res) => { - if (err) { - handleError(err); - } else { - handleResponse(res); - } -}); diff --git a/samples/snippets/addTextField.js b/samples/snippets/addTextField.js deleted file mode 100644 index 15b0f019..00000000 --- a/samples/snippets/addTextField.js +++ /dev/null @@ -1,80 +0,0 @@ -'use strict'; - -const signnow = require('@signnow/api-client')({ - credentials: 'BASE64_ENCODED_CLIENT_CREDENTIALS', - production: true, // if false then uses eval server -}); -const addTextField = signnow.document.update; - -const id = 'DOCUMENT_ID_GOES_HERE'; -const token = 'YOUR_ACCESS_TOKEN'; - -/** - * @typedef {Object} SignatureField - * @property {number} page_number - page number of document - * @property {string} type - type of field - * @property {string} name - unique name of the field - * @property {string} role - role name - * @property {boolean} required - required field - * @property {number} height - height of the field - * @property {number} width - width of the field - * @property {number} x - X coordinate of the field - * @property {number} y - Y coordinate of the field - * @property {?string} prefilled_text - prefilled value of a field - * @property {?string} validator_id - input validator id - * @property {?string} label - */ - -/** - * @type {Object} - * @property {number} client_timestamp - local time of user - * @property {SignatureField[]} fields - */ -const fields = { - client_timestamp: 1527859375, - fields: [ - { - page_number: 0, - type: 'text', - name: 'TextName', - role: 'Singer 1', - prefilled_text: '123', - validator_id: '1f9486ae822d30ba3df2cb8e65303ebfb8c803e8', - label: 'TextLabel', - required: true, - height: 40, - width: 50, - x: 217, - y: 120, - }, - ], -}; - -/** - * @param {Object} res - * @param {string} res.id - an id of document - * @param {Object[]} res.signatures - signature and initial elements - * @param {Object[]} res.texts - text and enumeration elements - * @param {Object[]} res.checks - checkbox elements - * @param {Object[]} res.attachments - attachment elements - * @param {Object[]} res.radiobuttons - radiobutton elements - */ -const handleResponse = res => { - console.log(res); -}; - -const handleError = err => { - console.error(err); -}; - -addTextField({ - id, - fields, - token, -}, (err, res) => { - if (err) { - handleError(err); - } else { - handleResponse(res); - } -}); diff --git a/samples/snippets/cancelDocumentFieldInvite.js b/samples/snippets/cancelDocumentFieldInvite.js deleted file mode 100644 index ac1fb026..00000000 --- a/samples/snippets/cancelDocumentFieldInvite.js +++ /dev/null @@ -1,33 +0,0 @@ -'use strict'; - -const signnow = require('@signnow/api-client')({ - credentials: 'BASE64_ENCODED_CLIENT_CREDENTIALS', - production: true, // if false then uses eval server -}); -const cancelDocumentFieldInvite = signnow.document.cancelFieldInvite; - -const id = 'DOCUMENT_ID'; -const token = 'YOUR_ACCESS_TOKEN'; - -/** - * @param {Object} res - * @param {string} res.status - status of field invite cancelation, e.g. 'success' - */ -const handleResponse = res => { - console.log(res); -}; - -const handleError = err => { - console.error(err); -}; - -cancelDocumentFieldInvite({ - id, - token, -}, (err, res) => { - if (err) { - handleError(err); - } else { - handleResponse(res); - } -}); diff --git a/samples/snippets/cancelDocumentGroupInvite.js b/samples/snippets/cancelDocumentGroupInvite.js deleted file mode 100644 index e3b38d1b..00000000 --- a/samples/snippets/cancelDocumentGroupInvite.js +++ /dev/null @@ -1,35 +0,0 @@ -'use strict'; - -const signnow = require('@signnow/api-client')({ - credentials: 'BASE64_ENCODED_CLIENT_CREDENTIALS', - production: true, // if false then uses eval server -}); -const { cancelInvite: cancelDocumentGroupInvite } = signnow.documentGroup; - -const id = 'ID_OF_DOCUMENTGROUP'; -const inviteId = 'ID_OF_INVITE'; -const token = 'YOUR_ACCESS_TOKEN'; - -/** - * @param {Object} res - * @param {string} res.status - status of invite cancellation (e.g. "success") - */ -const handleResponse = res => { - console.log(res); -}; - -const handleError = err => { - console.error(err); -}; - -cancelDocumentGroupInvite({ - id, - inviteId, - token, -}, (err, res) => { - if (err) { - handleError(err); - } else { - handleResponse(res); - } -}); diff --git a/samples/snippets/cancelFreeFormInvite.js b/samples/snippets/cancelFreeFormInvite.js deleted file mode 100644 index 96b919d5..00000000 --- a/samples/snippets/cancelFreeFormInvite.js +++ /dev/null @@ -1,33 +0,0 @@ -'use strict'; - -const signnow = require('@signnow/api-client')({ - credentials: 'BASE64_ENCODED_CLIENT_CREDENTIALS', - production: true, // if false then uses eval server -}); -const { cancelFreeFormInvite: cancelDocumentFreeFormInvite } = signnow.document; - -const id = 'ID_OF_INVITE'; -const token = 'YOUR_ACCESS_TOKEN'; - -/** - * @param {Object} res - * @param {string} res.id - an id of invite - */ -const handleResponse = res => { - console.log(res); -}; - -const handleError = err => { - console.error(err); -}; - -cancelDocumentFreeFormInvite({ - id, - token, -}, (err, res) => { - if (err) { - handleError(err); - } else { - handleResponse(res); - } -}); diff --git a/samples/snippets/createDocumentFromTemplate.js b/samples/snippets/createDocumentFromTemplate.js deleted file mode 100644 index 392c39b5..00000000 --- a/samples/snippets/createDocumentFromTemplate.js +++ /dev/null @@ -1,37 +0,0 @@ -'use strict'; - -const signnow = require('@signnow/api-client')({ - credentials: 'BASE64_ENCODED_CLIENT_CREDENTIALS', - production: true, // if false then uses eval server -}); -const { duplicate: createDocumentFromTemplate } = signnow.template; - -const templateId = 'TEMPLATE_ID'; -const documentName = 'NEW_DOCUMENT_NAME'; -const token = 'YOUR_ACCESS_TOKEN'; - -/** - * @param {Object} res - * @param {string} res.id - an id of created Document - * @param {string} res.name - a name of created Document - */ - -const handleResponse = res => { - console.log(res); -}; - -const handleError = err => { - console.error(err); -}; - -createDocumentFromTemplate({ - id: templateId, - name: documentName, - token, -}, (err, res) => { - if (err) { - handleError(err); - } else { - handleResponse(res); - } -}); diff --git a/samples/snippets/createDocumentGroup.js b/samples/snippets/createDocumentGroup.js deleted file mode 100644 index bec19c3d..00000000 --- a/samples/snippets/createDocumentGroup.js +++ /dev/null @@ -1,44 +0,0 @@ -'use strict'; - -const signnow = require('@signnow/api-client')({ - credentials: 'BASE64_ENCODED_CLIENT_CREDENTIALS', - production: true, // if false then uses eval server -}); -const createDocumentGroup = signnow.documentGroup.create; - -const group_name = 'NAME_OF_NEW_DOCUMENT_GROUP'; -const token = 'YOUR_ACCESS_TOKEN'; - -// At least one document or template must contain fields -// Documents should not contain sent invites -const ids = [ - 'DOCUMENT_1_ID', - 'DOCUMENT_2_ID', - 'TEMPLATE_1_ID', - - // ... -]; - -/** -* @param {Object} res -* @param {string} res.id - id of created document group -*/ -const handleResponse = res => { - console.log(res); -}; - -const handleError = err => { - console.error(err); -}; - -createDocumentGroup({ - group_name, - ids, - token, -}, (err, res) => { - if (err) { - handleError(err); - } else { - handleResponse(res); - } -}); diff --git a/samples/snippets/createDocumentGroupInvite.js b/samples/snippets/createDocumentGroupInvite.js deleted file mode 100644 index a12605ca..00000000 --- a/samples/snippets/createDocumentGroupInvite.js +++ /dev/null @@ -1,88 +0,0 @@ -'use strict'; - -const signnow = require('@signnow/api-client')({ - credentials: 'BASE64_ENCODED_CLIENT_CREDENTIALS', - production: true, // if false then uses eval server -}); -const createDocumentGroupInvite = signnow.documentGroup.invite; - -const token = 'YOUR_ACCESS_TOKEN'; -const id = 'DOCUMENT_GROUP_ID'; - -/** - * see API Reference for invite configuration info - * at https://signnow.github.io/SignNowNodeSDK/class/lib/documentGroup.js~DocumentGroup.html#static-method-invite - */ -const data = { - invite_steps: [ - { - order: 1, - invite_emails: [ - { - email: 'Email of Signer 1', - subject: 'Signer 1 Needs Your Signature', - message: 'Signer 1 invited you to sign Document 1', - expiration_days: 30, - reminder: 0, - }, - ], - invite_actions: [ - { - email: 'Email of Signer 1', - role_name: 'Signer 1', - action: 'sign', - document_id: 'Document 1 ID', - allow_reassign: '0', - decline_by_signature: '0', - }, - ], - }, - { - order: 2, - invite_emails: [ - { - email: 'Email of Signer 2', - subject: 'Signer 2 Needs Your Signature', - message: 'Signer 2 invited you to sign Document 2', - expiration_days: 30, - reminder: 0, - }, - ], - invite_actions: [ - { - email: 'Email of Signer 2', - role_name: 'Signer 2', - action: 'sign', - document_id: 'Document 2 ID', - allow_reassign: '0', - decline_by_signature: '0', - }, - ], - }, - ], -}; - -/** - * @param {Object} res - * @param {string} res.id - ID of created Document Group invitation - * @param {?string} res.pending_invite_link - */ -const handleResponse = res => { - console.log(res); -}; - -const handleError = err => { - console.error(err); -}; - -createDocumentGroupInvite({ - token, - id, - data, -}, (err, res) => { - if (err) { - handleError(err); - } else { - handleResponse(res); - } -}); diff --git a/samples/snippets/createDocumentGroupTemplate.js b/samples/snippets/createDocumentGroupTemplate.js deleted file mode 100644 index 7be2614e..00000000 --- a/samples/snippets/createDocumentGroupTemplate.js +++ /dev/null @@ -1,101 +0,0 @@ -'use strict'; - -const signnow = require('@signnow/api-client')({ - credentials: 'BASE64_ENCODED_CLIENT_CREDENTIALS', - production: true, // if false then uses eval server -}); -const createDocumentGroupTemplate = signnow.documentGroupTemplate.create; - -const token = 'YOUR_ACCESS_TOKEN'; -const template_group_name = 'NAME_OF_NEW_DOCUMENT_GROUP_TEMPLATE'; -const template_ids = [ - 'TEMPLATE_1_ID', - 'TEMPLATE_2_ID', - - // ... -]; - -/** - * see API Reference for routing details configuration info - * at https://signnow.github.io/SignNowNodeSDK/class/lib/documentGroupTemplate.js~DocumentGroupTemplate.html#static-method-create - */ -const routing_details = { - invite_steps: [ - { - order: 1, - invite_emails: [ - { - email: 'Email of Signer 1', - subject: 'Signer 1 Needs Your Signature', - message: 'Signer 1 invited you to sign Document 1', - expiration_days: 30, - reminder: 0, - hasSignActions: true, - allow_reassign: '0', - }, - ], - invite_actions: [ - { - email: 'Email of Signer 1', - role_name: 'Signer 1', - action: 'sign', - document_id: 'TEMPLATE_1_ID', - document_name: 'Document 1', - allow_reassign: '0', - decline_by_signature: '0', - }, - ], - }, - { - order: 2, - invite_emails: [ - { - email: 'Email of Signer 2', - subject: 'Signer 2 Needs Your Signature', - message: 'Signer 2 invited you to sign Document 2', - expiration_days: 30, - reminder: 0, - hasSignActions: true, - allow_reassign: '0', - }, - ], - invite_actions: [ - { - email: 'Email of Signer 2', - role_name: 'Signer 2', - action: 'sign', - document_id: 'TEMPLATE_2_ID', - document_name: 'Document 2', - allow_reassign: '0', - decline_by_signature: '0', - }, - ], - }, - ], - include_email_attachments: 0, -}; - -/** - * @param {Object} res - * @param {string} res.id - id of created document group template - */ -const handleResponse = res => { - console.log(res); -}; - -const handleError = err => { - console.error(err); -}; - -createDocumentGroupTemplate({ - template_group_name, - template_ids, - routing_details, - token, -}, (err, res) => { - if (err) { - handleError(err); - } else { - handleResponse(res); - } -}); diff --git a/samples/snippets/createSigningLink.js b/samples/snippets/createSigningLink.js deleted file mode 100644 index 2c44761f..00000000 --- a/samples/snippets/createSigningLink.js +++ /dev/null @@ -1,34 +0,0 @@ -'use strict'; - -const signnow = require('@signnow/api-client')({ - credentials: 'BASE64_ENCODED_CLIENT_CREDENTIALS', - production: true, // if false then uses eval server -}); -const createSigningLink = signnow.link.create; - -const document_id = 'DOCUMENT_OR_TEMPLATE_ID_GOES_HERE'; -const token = 'YOUR_ACCESS_TOKEN'; - -/** - * @param {Object} res - * @param {string} res.url - url for logged in user - * @param {string} res.url_no_signup - url for not logged in user - */ -const handleResponse = res => { - console.log(res); -}; - -const handleError = err => { - console.error(err); -}; - -createSigningLink({ - document_id, - token, -}, (err, res) => { - if (err) { - handleError(err); - } else { - handleResponse(res); - } -}); diff --git a/samples/snippets/createTemplate.js b/samples/snippets/createTemplate.js deleted file mode 100644 index 0182c3a3..00000000 --- a/samples/snippets/createTemplate.js +++ /dev/null @@ -1,35 +0,0 @@ -'use strict'; - -const signnow = require('@signnow/api-client')({ - credentials: 'BASE64_ENCODED_CLIENT_CREDENTIALS', - production: true, // if false then uses eval server -}); -const createTemplate = signnow.template.create; - -const document_id = 'DOCUMENT_ID_GOES_HERE'; -const document_name = 'NEW_TEMPLATE_NAME'; -const token = 'YOUR_ACCESS_TOKEN'; - -/** - * @param {Object} res - * @param {string} res.id - an id of created template - */ -const handleResponse = res => { - console.log(res); -}; - -const handleError = err => { - console.error(err); -}; - -createTemplate({ - document_id, - document_name, - token, -}, (err, res) => { - if (err) { - handleError(err); - } else { - handleResponse(res); - } -}); diff --git a/samples/snippets/createUser.js b/samples/snippets/createUser.js deleted file mode 100644 index cf822603..00000000 --- a/samples/snippets/createUser.js +++ /dev/null @@ -1,46 +0,0 @@ -'use strict'; - -const signnow = require('@signnow/api-client')({ - credentials: 'BASE64_ENCODED_CLIENT_CREDENTIALS', - production: true, // if false then uses eval server -}); -const { create: createUser } = signnow.user; - -const email = 'USER_EMAIL_GOES_HERE'; -const password = 'PASSWORD_GOES_HERE'; -const first_name = 'USER_FIRST_NAME'; -const last_name = 'LAST_FIRST_NAME'; -const number = 'PHONE_NUMBER'; -const options = { - verifyEmail: true, - startTrial: true, -}; - -/** - * @param {Object} res - * @property {string} res.id - user unique id - * @property {number} res.verified - user is verified or not - * @property {string} res.email - user email - */ -const handleResponse = res => { - console.log(res); -}; - -const handleError = err => { - console.error(err); -}; - -createUser({ - email, - password, - first_name, - last_name, - number, - options, -}, (err, res) => { - if (err) { - handleError(err); - } else { - handleResponse(res); - } -}); diff --git a/samples/snippets/documentSigners.js b/samples/snippets/documentSigners.js deleted file mode 100644 index 7a4c7102..00000000 --- a/samples/snippets/documentSigners.js +++ /dev/null @@ -1,54 +0,0 @@ -'use strict'; - -const signnow = require('@signnow/api-client')({ - credentials: 'BASE64_ENCODED_CLIENT_CREDENTIALS', - production: true, // if false then uses eval server -}); -const { signers: getDocumentSigners } = signnow.document; - -const id = 'DOCUMENT_ID_GOES_HERE'; -const token = 'YOUR_ACCESS_TOKEN'; - -/** - * Get Document Signers optional settings - * @type {Object} - * @property {boolean} [allSignatures=true] - if true receive all document signers email - * @property {boolean} [freeFormInvites=false] - if `true` return free from invite signer emails - * @property {?string[]} [fieldInvitesStatus=null] - return signers according to specified field invite status(es) - * Accepts list of statuses or a single status. - * Acceptable statuses: all, pending, declined, fulfilled, created, skipped. - * @property {?string[]} [paymentRequestsStatus=null] - return signers according to specified to payment request status(es) - * Accepts list of statuses or a single status. - * Available statuses: all, pending, fulfilled, created, skipped. - */ -const options = { - freeFormInvites: false, - fieldInviteStatus: [ - 'pending', - 'skipped', - ], - paymentRequestStatus: 'pending', -}; - -/** - * @param {string[]} res - emails of document signers - */ -const handleResponse = res => { - console.log(res); -}; - -const handleError = err => { - console.error(err); -}; - -getDocumentSigners({ - id, - token, - options, -}, (err, res) => { - if (err) { - handleError(err); - } else { - handleResponse(res); - } -}); diff --git a/samples/snippets/downloadDocument.js b/samples/snippets/downloadDocument.js deleted file mode 100644 index a81496b6..00000000 --- a/samples/snippets/downloadDocument.js +++ /dev/null @@ -1,32 +0,0 @@ -'use strict'; - -const signnow = require('@signnow/api-client')({ - credentials: 'BASE64_ENCODED_CLIENT_CREDENTIALS', - production: true, // if false then uses eval server -}); -const downloadDocument = signnow.document.download; - -const id = 'DOCUMENT_ID_GOES_HERE'; -const token = 'YOUR_ACCESS_TOKEN'; - -/** - * @param {Binary} res - binary data (file) of the entire document - */ -const handleResponse = res => { - console.log(res); -}; - -const handleError = err => { - console.error(err); -}; - -downloadDocument({ - id, - token, -}, (err, res) => { - if (err) { - handleError(err); - } else { - handleResponse(res); - } -}); diff --git a/samples/snippets/downloadDocumentWithAttachments.js b/samples/snippets/downloadDocumentWithAttachments.js deleted file mode 100644 index 5d45a573..00000000 --- a/samples/snippets/downloadDocumentWithAttachments.js +++ /dev/null @@ -1,35 +0,0 @@ -'use strict'; - -const fs = require('fs'); -const signnow = require('@signnow/api-client')({ - credentials: 'BASE64_ENCODED_CLIENT_CREDENTIALS', - production: true, // if false then uses eval server -}); -const { download: downloadDocument } = signnow.document; - -const id = 'DOCUMENT_ID_GOES_HERE'; -const token = 'YOUR_ACCESS_TOKEN'; -const options = { withAttachments: true }; - -/** - * @param {Buffer} res - binary data of zip package - */ -const handleResponse = res => { - fs.writeFileSync('absolute/path', res, { encoding: 'binary' }); -}; - -const handleError = err => { - console.error(err); -}; - -downloadDocument({ - id, - token, - options, -}, (err, res) => { - if (err) { - handleError(err); - } else { - handleResponse(res); - } -}); diff --git a/samples/snippets/downloadDocumentWithHistory.js b/samples/snippets/downloadDocumentWithHistory.js deleted file mode 100644 index c05c4bf8..00000000 --- a/samples/snippets/downloadDocumentWithHistory.js +++ /dev/null @@ -1,34 +0,0 @@ -'use strict'; - -const signnow = require('@signnow/api-client')({ - credentials: 'BASE64_ENCODED_CLIENT_CREDENTIALS', - production: true, // if false then uses eval server -}); -const downloadDocument = signnow.document.download; - -const id = 'DOCUMENT_ID_GOES_HERE'; -const token = 'YOUR_ACCESS_TOKEN'; -const options = { withHistory: true }; // option points on downloading document with history - -/** - * @param {Buffer} res - binary data (file) of the entire document - */ -const handleResponse = res => { - console.log(res); // save the file to your disk or pipe it to another handler -}; - -const handleError = err => { - console.error(err); -}; - -downloadDocument({ - id, - token, - options, -}, (err, res) => { - if (err) { - handleError(err); - } else { - handleResponse(res); - } -}); diff --git a/samples/snippets/downloadMergedDocumentGroup.js b/samples/snippets/downloadMergedDocumentGroup.js deleted file mode 100644 index 929a5281..00000000 --- a/samples/snippets/downloadMergedDocumentGroup.js +++ /dev/null @@ -1,42 +0,0 @@ -'use strict'; - -const fs = require('fs'); -const signnow = require('@signnow/api-client')({ - credentials: 'BASE64_ENCODED_CLIENT_CREDENTIALS', - production: true, // if false then uses eval server -}); -const { download: downloadDocumentGroup } = signnow.documentGroup; - -const id = 'DOCUMENT_GROUP_ID_GOES_HERE'; -const token = 'YOUR_ACCESS_TOKEN'; - -// specify the order in which group's documents will be merged -const document_order = [ - 'DOCUMENT_ID_1', - 'DOCUMENT_ID_2', -]; - -/** - * @param {Buffer} res - binary data of the merged Document Group (PDF file) - */ -const handleResponse = res => { - fs.writeFileSync('absolute/path', res, { encoding: 'binary' }); -}; - -const handleError = err => { - console.error(err); -}; - -downloadDocumentGroup({ - id, - token, - type: 'merged', - with_history: 'after_merged_pdf', - document_order, -}, (err, res) => { - if (err) { - handleError(err); - } else { - handleResponse(res); - } -}); diff --git a/samples/snippets/downloadZippedDocumentGroup.js b/samples/snippets/downloadZippedDocumentGroup.js deleted file mode 100644 index c318c5b0..00000000 --- a/samples/snippets/downloadZippedDocumentGroup.js +++ /dev/null @@ -1,33 +0,0 @@ -'use strict'; - -const fs = require('fs'); -const signnow = require('@signnow/api-client')({ - credentials: 'BASE64_ENCODED_CLIENT_CREDENTIALS', - production: true, // if false then uses eval server -}); -const { download: downloadDocumentGroup } = signnow.documentGroup; - -const id = 'DOCUMENT_GROUP_ID_GOES_HERE'; -const token = 'YOUR_ACCESS_TOKEN'; - -/** - * @param {Buffer} res - binary data of the zipped Document Group (ZIP archive) - */ -const handleResponse = res => { - fs.writeFileSync('absolute/path', res, { encoding: 'binary' }); -}; - -const handleError = err => { - console.error(err); -}; - -downloadDocumentGroup({ - id, - token, -}, (err, res) => { - if (err) { - handleError(err); - } else { - handleResponse(res); - } -}); diff --git a/samples/snippets/embeddedCancelInvites.js b/samples/snippets/embeddedCancelInvites.js deleted file mode 100644 index ad7ab712..00000000 --- a/samples/snippets/embeddedCancelInvites.js +++ /dev/null @@ -1,32 +0,0 @@ -'use strict'; - -const signnow = require('@signnow/api-client')({ - credentials: 'BASE64_ENCODED_CLIENT_CREDENTIALS', - production: true, // if false then uses eval server -}); -const { cancelInvites } = signnow.embedded; - -const token = 'YOUR_ACCESS_TOKEN'; -const documentId = 'DOCUMENT_ID_GOES_HERE'; - -/** - * @param {Object} res - */ -const handleResponse = res => { - console.log(res); -}; - -const handleError = err => { - console.error(err); -}; - -cancelInvites({ - token, - document_id: documentId, -}, (err, res) => { - if (err) { - handleError(err); - } else { - handleResponse(res); - } -}); diff --git a/samples/snippets/embeddedCreateInvites.js b/samples/snippets/embeddedCreateInvites.js deleted file mode 100644 index 14d8902b..00000000 --- a/samples/snippets/embeddedCreateInvites.js +++ /dev/null @@ -1,41 +0,0 @@ -'use strict'; - -const signnow = require('@signnow/api-client')({ - credentials: 'BASE64_ENCODED_CLIENT_CREDENTIALS', - production: true, // if false then uses eval server -}); -const { createInvite } = signnow.embedded; - -const token = 'YOUR_ACCESS_TOKEN'; -const documentId = 'DOCUMENT_ID_GOES_HERE'; -const invites = [ - { - email: 'EMAIL_OF_SIGNER', - role_id: 'ROLE_ID', - order: 1, - auth_method: 'password', - }, -]; - -/** - * @param {Object} res - */ -const handleResponse = res => { - console.log(res); -}; - -const handleError = err => { - console.error(err); -}; - -createInvite({ - document_id: documentId, - invites, - token, -}, (err, res) => { - if (err) { - handleError(err); - } else { - handleResponse(res); - } -}); diff --git a/samples/snippets/embeddedGenerateInviteLink.js b/samples/snippets/embeddedGenerateInviteLink.js deleted file mode 100644 index 2fa91839..00000000 --- a/samples/snippets/embeddedGenerateInviteLink.js +++ /dev/null @@ -1,38 +0,0 @@ -'use strict'; - -const signnow = require('@signnow/api-client')({ - credentials: 'BASE64_ENCODED_CLIENT_CREDENTIALS', - production: true, // if false then uses eval server -}); -const { generateInviteLink } = signnow.embedded; - -const token = 'YOUR_ACCESS_TOKEN'; -const documentId = 'DOCUMENT_ID_GOES_HERE'; -const fieldInviteUniqueId = 'FIELD_INVITE_ID_GOES_HERE'; -const linkExpiration = 'LINK_EXPIRATION'; -const authMethod = 'SIGNER_AUTH_METHOD'; - -/** - * @param {Object} res - */ -const handleResponse = res => { - console.log(res); -}; - -const handleError = err => { - console.error(err); -}; - -generateInviteLink({ - token, - document_id: documentId, - field_invite_unique_id: fieldInviteUniqueId, - link_expiration: linkExpiration, - auth_method: authMethod, -}, (err, res) => { - if (err) { - handleError(err); - } else { - handleResponse(res); - } -}); diff --git a/samples/snippets/getDocumentHistory.js b/samples/snippets/getDocumentHistory.js deleted file mode 100644 index 46ee42fe..00000000 --- a/samples/snippets/getDocumentHistory.js +++ /dev/null @@ -1,51 +0,0 @@ -'use strict'; - -const signnow = require('@signnow/api-client')({ - credentials: 'BASE64_ENCODED_CLIENT_CREDENTIALS', - production: true, // if false then uses eval server -}); -const getDocumentHistory = signnow.document.history; - -const id = 'DOCUMENT_ID_GOES_HERE'; -const token = 'YOUR_ACCESS_TOKEN'; - -/** - * @typedef {Object} DocumentEvent - * @property {string} client_app_name - * @property {?string} client_timestamp - * @property {string} created - timestamp of action creation - * @property {string} email - email of actor - * @property {string} event - * @property {string} ip_address - * @property {?string} element_id - * @property {?string} field_id - * @property {?string} json_attributes - * @property {string} [document_id] - * @property {string} [origin] - * @property {string} [unique_id] - * @property {string} [user_agent] - * @property {string} [user_id] - id of actor - * @property {string} [version] - version of signed document (incremented after each signature addition) - */ - -/** - * @param {DocumentEvent[]} res - */ -const handleResponse = res => { - console.log(res); -}; - -const handleError = err => { - console.error(err); -}; - -getDocumentHistory({ - id, - token, -}, (err, res) => { - if (err) { - handleError(err); - } else { - handleResponse(res); - } -}); diff --git a/samples/snippets/getRoutingDetails.js b/samples/snippets/getRoutingDetails.js deleted file mode 100644 index 6bb7d48d..00000000 --- a/samples/snippets/getRoutingDetails.js +++ /dev/null @@ -1,41 +0,0 @@ -'use strict'; - -const signnow = require('@signnow/api-client')({ - credentials: 'BASE64_ENCODED_CLIENT_CREDENTIALS', - production: true, // if false then uses eval server -}); -const { getRoutingDetails } = signnow.template; - -const id = 'TEMPLATE_ID_GOES_HERE'; -const token = 'YOUR_ACCESS_TOKEN'; - -/** - * Get Template Routing Details response data - * @typedef {Object} TemplateGetRoutingDetailsResponse - * @property {Object[]} routing_details - array with routing details - * @property {string[]} cc - CC emails - * @property {Object[]} cc_step - array of CC`s steps - * @property {string} invite_link_instructions - invite link instructions - */ - -/** - * @param {TemplateGetRoutingDetailsResponse} res - */ -const handleResponse = res => { - console.log(res); -}; - -const handleError = err => { - console.error(err); -}; - -getRoutingDetails({ - id, - token, -}, (err, res) => { - if (err) { - handleError(err); - } else { - handleResponse(res); - } -}); diff --git a/samples/snippets/getUrlToOpenEmbeddedSigning.js b/samples/snippets/getUrlToOpenEmbeddedSigning.js deleted file mode 100644 index 2a103e16..00000000 --- a/samples/snippets/getUrlToOpenEmbeddedSigning.js +++ /dev/null @@ -1,34 +0,0 @@ -'use strict'; - -const signnow = require('@signnow/api-client')({ - credentials: 'BASE64_ENCODED_CLIENT_CREDENTIALS', - production: true, // if false then uses eval server -}); -const getEmbeddedSigningUrl = signnow.link.create; - -const document_id = 'DOCUMENT_OR_TEMPLATE_ID_GOES_HERE'; -const token = 'YOUR_ACCESS_TOKEN'; - -/** - * @param {Object} res - * @param {string} res.url - url for logged in user - * @param {string} res.url_no_signup - url for not logged in user - */ -const handleResponse = res => { - console.log(res); -}; - -const handleError = err => { - console.error(err); -}; - -getEmbeddedSigningUrl({ - document_id, - token, -}, (err, res) => { - if (err) { - handleError(err); - } else { - handleResponse(res); - } -}); diff --git a/samples/snippets/inviteDocumentGroupTemplate.js b/samples/snippets/inviteDocumentGroupTemplate.js deleted file mode 100644 index cafdfb0c..00000000 --- a/samples/snippets/inviteDocumentGroupTemplate.js +++ /dev/null @@ -1,39 +0,0 @@ -'use strict'; - -const signnow = require('@signnow/api-client')({ - credentials: 'BASE64_ENCODED_CLIENT_CREDENTIALS', - production: true, // if false then uses eval server -}); -const { invite: inviteDocumentGroupTemplate } = signnow.documentGroupTemplate; - -const id = 'DOCUMENT_GROUP_TEMPLATE_ID_GOES_HERE'; -const token = 'YOUR_ACCESS_TOKEN'; - -/** - * Create Document Group Template invite response data - * @typedef {Object} DocumentGroupTemplateInviteResponse - * @property {string} id - an ID of created invite - * @property {?string} pending_invite_link - pending invite link - */ - -/** - * @param {DocumentGroupTemplateInviteResponse} res - */ -const handleResponse = res => { - console.log(res); -}; - -const handleError = err => { - console.error(err); -}; - -inviteDocumentGroupTemplate({ - id, - token, -}, (err, res) => { - if (err) { - handleError(err); - } else { - handleResponse(res); - } -}); diff --git a/samples/snippets/mergeDocuments.js b/samples/snippets/mergeDocuments.js deleted file mode 100644 index 8115327a..00000000 --- a/samples/snippets/mergeDocuments.js +++ /dev/null @@ -1,40 +0,0 @@ -'use strict'; - -const signnow = require('@signnow/api-client')({ - credentials: 'BASE64_ENCODED_CLIENT_CREDENTIALS', - production: true, // if false then uses eval server -}); -const mergeDocuments = signnow.document.merge; - -const name = 'NAME_OF_MERGED_DOCUMENT'; -const token = 'YOUR_ACCESS_TOKEN'; -const document_ids = [ - 'DOCUMENT_1_ID', - 'DOCUMENT_2_ID', - - // ... -]; - -/** - * @param {Object} res - * @param {string} res.document_id - id of merged document - */ -const handleResponse = res => { - console.log(res); -}; - -const handleError = err => { - console.error(err); -}; - -mergeDocuments({ - name, - document_ids, - token, -}, (err, res) => { - if (err) { - handleError(err); - } else { - handleResponse(res); - } -}); diff --git a/samples/snippets/requestAccessToken.js b/samples/snippets/requestAccessToken.js deleted file mode 100644 index 5f2507a6..00000000 --- a/samples/snippets/requestAccessToken.js +++ /dev/null @@ -1,38 +0,0 @@ -'use strict'; - -const signnow = require('@signnow/api-client')({ - credentials: 'BASE64_ENCODED_CLIENT_CREDENTIALS', - production: true, // if false then uses eval server -}); -const { requestToken } = signnow.oauth2; - -const username = 'USER_EMAIL_GOES_HERE'; -const password = 'PASSWORD_GOES_HERE'; - -/** - * @param {Object} res - * @param {number} res.expires_in - time in seconds for which the token was issued - * @param {string} res.token_type - e.g. 'bearer' - * @param {string} res.access_token - * @param {string} res.refresh_token - * @param {string} res.scope - * @param {number} res.last_login - */ -const handleResponse = res => { - console.log(res); -}; - -const handleError = err => { - console.error(err); -}; - -requestToken({ - username, - password, -}, (err, res) => { - if (err) { - handleError(err); - } else { - handleResponse(res); - } -}); diff --git a/samples/snippets/requestPayment.js b/samples/snippets/requestPayment.js deleted file mode 100644 index e676631b..00000000 --- a/samples/snippets/requestPayment.js +++ /dev/null @@ -1,90 +0,0 @@ -'use strict'; - -const signnow = require('@signnow/api-client')({ - credentials: 'BASE64_ENCODED_CLIENT_CREDENTIALS', - production: true, // if false then uses eval server -}); -const sendInviteWithPaymentRequest = signnow.document.invite; - -const id = 'DOCUMENT_ID_GOES_HERE'; -const token = 'YOUR_ACCESS_TOKEN'; - -/** - * @typedef {Object} PaymentRequest - * @property {string} type - type of payment request (fixed|calculated) - * @property {number} amount - * @property {string} currency - * @property {string} merchant_id - */ - -/** - * @typedef {Object} SignerSettings - * @property {string} email - signer's email - * @property {string} role - ole name - * @property {string} role_id - role unique idr - * @property {number} order - role signing order - * @property {string} reassign - allow reassign signer - * @property {string} decline_by_signature - signer can decline invite - * @property {number} reminder - remind via email in days - * @property {number} expiration_days - expiration of invite in days - * @property {?string} subject - specify subject of email - * @property {?string} message - specify body of email - * @property {?PaymentRequest} payment_request - payment request settings - */ - -/** - * @type {Object} - * @property {string} document_id - * @property {SignerSettings[]} to - array of signers - * @property {string} from - email of sender - * @property {?string[]} cc - array with emails - * @property {?string} subject - specify subject of email - * @property {?string} message - specify body of email - * @property {?string} on_complete - on signing complete action - */ -const fieldInviteWithPaymentRequest = { - to: [ - { - email: 'EMAIL_OF_SIGNER', - role: 'Signer 1', - order: 1, - reassign: '0', - decline_by_signature: '0', - reminder: 4, - expiration_days: 27, - subject: 'Field invite Signer1', - message: 'Message', - payment_request: { - type: 'fixed', - amount: 12, - currency: 'US Dollar', - merchant_id: 'MERCHANT_ID', - }, - }, - ], - from: 'EMAIL_OF_SENDER', -}; - -/** - * @param {Object} res - * @param {string} res.status - e.g. 'success' - */ -const handleResponse = res => { - console.log(res); -}; - -const handleError = err => { - console.error(err); -}; - -sendInviteWithPaymentRequest({ - data: { ...fieldInviteWithPaymentRequest }, - id, - token, -}, (err, res) => { - if (err) { - handleError(err); - } else { - handleResponse(res); - } -}); diff --git a/samples/snippets/sendDocumentFreeformInvite.js b/samples/snippets/sendDocumentFreeformInvite.js deleted file mode 100644 index 9512aa91..00000000 --- a/samples/snippets/sendDocumentFreeformInvite.js +++ /dev/null @@ -1,41 +0,0 @@ -'use strict'; - -const signnow = require('@signnow/api-client')({ - credentials: 'BASE64_ENCODED_CLIENT_CREDENTIALS', - production: true, // if false then uses eval server -}); -const sendFreeformInvite = signnow.document.invite; - -const from = 'EMAIL_OF_SENDER_GOES_HERE'; -const to = 'EMAIL_OF_RECIPIENT_GOES_HERE'; -const id = 'DOCUMENT_ID_GOES_HERE'; -const token = 'YOUR_ACCESS_TOKEN'; - -/** - * @param {Object} res - * @param {string} res.result - e.g. 'success' - * @param {string} res.id - invite unique id - * @param {string} res.callback_url - url for front end redirect or 'none' - */ -const handleResponse = res => { - console.log(res); -}; - -const handleError = err => { - console.error(err); -}; - -sendFreeformInvite({ - data: { - from, - to, - }, - id, - token, -}, (err, res) => { - if (err) { - handleError(err); - } else { - handleResponse(res); - } -}); diff --git a/samples/snippets/sendDocumentSignatureInviteWithOneRole.js b/samples/snippets/sendDocumentSignatureInviteWithOneRole.js deleted file mode 100644 index b5a42185..00000000 --- a/samples/snippets/sendDocumentSignatureInviteWithOneRole.js +++ /dev/null @@ -1,75 +0,0 @@ -'use strict'; - -const signnow = require('@signnow/api-client')({ - credentials: 'BASE64_ENCODED_CLIENT_CREDENTIALS', - production: true, // if false then uses eval server -}); -const sendInvite = signnow.document.invite; - -const id = 'DOCUMENT_ID_GOES_HERE'; -const token = 'YOUR_ACCESS_TOKEN'; - -/** - * @typedef {Object} SignerSettings - * @property {string} email - signer's email - * @property {string} role - ole name - * @property {string} role_id - role unique idr - * @property {number} order - role signing order - * @property {string} reassign - allow reassign signer - * @property {string} decline_by_signature - signer can decline invite - * @property {number} reminder - remind via email in days - * @property {number} expiration_days - expiration of invite in days - * @property {?string} subject - specify subject of email - * @property {?string} message - specify body of email - */ - -/** - * @type {Object} - * @property {string} document_id - * @property {SignerSettings[]} to - array of signers - * @property {string} from - email of sender - * @property {?string[]} cc - array with emails - * @property {?string} subject - specify subject of email - * @property {?string} message - specify body of email - * @property {?string} on_complete - on signing complete action - */ -const fieldInvite = { - to: [ - { - email: 'EMAIL_OF_SIGNER', - role: 'Signer 1', - order: 1, - reassign: '0', - decline_by_signature: '0', - reminder: 4, - expiration_days: 27, - subject: 'Field invite Signer1', - message: 'Message', - }, - ], - from: 'EMAIL_OF_SENDER', -}; - -/** - * @param {Object} res - * @param {string} res.status - e.g. 'success' - */ -const handleResponse = res => { - console.log(res); -}; - -const handleError = err => { - console.error(err); -}; - -sendInvite({ - data: { ...fieldInvite }, - id, - token, -}, (err, res) => { - if (err) { - handleError(err); - } else { - handleResponse(res); - } -}); diff --git a/samples/snippets/sendTemplateBulkInvite.js b/samples/snippets/sendTemplateBulkInvite.js deleted file mode 100644 index 46d9c969..00000000 --- a/samples/snippets/sendTemplateBulkInvite.js +++ /dev/null @@ -1,44 +0,0 @@ -'use strict'; - -const signnow = require('@signnow/api-client')({ - credentials: 'BASE64_ENCODED_CLIENT_CREDENTIALS', - production: true, // if false then uses eval server -}); -const { bulkInvite: sendTemplateBulkInvite } = signnow.template; - -const id = 'TEMPLATE_ID_GOES_HERE'; -const token = 'YOUR_ACCESS_TOKEN'; -const file = 'PATH_TO_CSV_FILE'; -const folderId = 'ID_IF_FOLDER_FOR_SIGNED_DOCUMENTS'; - -/** - * Send Template Bulk Invite response data - * @typedef {Object} TemplateBulkInviteResponse - * @property {string} status - status of sending bulk invites (e.g. "job queued") - */ - -/** - * @param {TemplateBulkInviteResponse} res - */ -const handleResponse = res => { - console.log(res); -}; - -const handleError = err => { - console.error(err); -}; - -sendTemplateBulkInvite({ - data: { - folder_id: folderId, - file, - }, - id, - token, -}, (err, res) => { - if (err) { - handleError(err); - } else { - handleResponse(res); - } -}); diff --git a/samples/snippets/sendTemplateFreeformInvite.js b/samples/snippets/sendTemplateFreeformInvite.js deleted file mode 100644 index 7bccdac0..00000000 --- a/samples/snippets/sendTemplateFreeformInvite.js +++ /dev/null @@ -1,41 +0,0 @@ -'use strict'; - -const signnow = require('@signnow/api-client')({ - credentials: 'BASE64_ENCODED_CLIENT_CREDENTIALS', - production: true, // if false then uses eval server -}); -const sendFreeformInvite = signnow.document.invite; - -const from = 'EMAIL_OF_SENDER_GOES_HERE'; -const to = 'EMAIL_OF_RECIPIENT_GOES_HERE'; -const id = 'TEMPLATE_ID_GOES_HERE'; -const token = 'YOUR_ACCESS_TOKEN'; - -/** - * @param {Object} res - * @param {string} res.result - e.g. 'success' - * @param {string} res.id - invite unique id - * @param {string} res.callback_url - url for front end redirect or 'none' - */ -const handleResponse = res => { - console.log(res); -}; - -const handleError = err => { - console.error(err); -}; - -sendFreeformInvite({ - data: { - from, - to, - }, - id, - token, -}, (err, res) => { - if (err) { - handleError(err); - } else { - handleResponse(res); - } -}); diff --git a/samples/snippets/sendTemplateSignatureInviteWithMultipleRole.js b/samples/snippets/sendTemplateSignatureInviteWithMultipleRole.js deleted file mode 100644 index 19548cac..00000000 --- a/samples/snippets/sendTemplateSignatureInviteWithMultipleRole.js +++ /dev/null @@ -1,86 +0,0 @@ -'use strict'; - -const signnow = require('@signnow/api-client')({ - credentials: 'BASE64_ENCODED_CLIENT_CREDENTIALS', - production: true, // if false then uses eval server -}); -const sendInvite = signnow.document.invite; - -const id = 'TEMPLATE_ID_GOES_HERE'; -const token = 'YOUR_ACCESS_TOKEN'; - -/** - * @typedef {Object} SignerSettings - * @property {string} email - signer's email - * @property {string} role - ole name - * @property {number} order - role signing order - * @property {string} reassign - allow reassign signer - * @property {string} decline_by_signature - signer can decline invite - * @property {number} reminder - remind via email in days - * @property {number} expiration_days - expiration of invite in days - * @property {string} [subject] - specify subject of email - * @property {string} [message] - specify body of email - */ - -/** - * @type {Object} - * @property {string} document_id - * @property {SignerSettings[]} to - array of signers - * @property {string} from - email of sender - * @property {string[]} [cc] - array with emails - * @property {string} [subject] - specify subject of email - * @property {string} [message] - specify body of email - * @property {string} [on_complete] - on signing complete action - */ -const fieldInvite = { - document_id: 'TEMPLATE_ID_GOES_HERE', - to: [ - { - email: 'EMAIL_OF_SIGNER_1', - role: 'Signer 1', - order: 1, - reassign: '0', - decline_by_signature: '0', - reminder: 4, - expiration_days: 27, - subject: 'Field invite Signer1', - message: 'Message1', - }, - { - email: 'EMAIL_OF_SIGNER_2', - role: 'Signer 2', - order: 1, - reassign: '0', - decline_by_signature: '0', - reminder: 4, - expiration_days: 27, - subject: 'Field invite Signer2', - message: 'Message2', - }, - ], - from: 'EMAIL_OF_SENDER', -}; - -/** - * @param {Object} res - * @param {string} res.status - e.g. 'success' - */ -const handleResponse = res => { - console.log(res); -}; - -const handleError = err => { - console.error(err); -}; - -sendInvite({ - data: { ...fieldInvite }, - id, - token, -}, (err, res) => { - if (err) { - handleError(err); - } else { - handleResponse(res); - } -}); diff --git a/samples/snippets/sendTemplateSignatureInviteWithOneRole copy.js b/samples/snippets/sendTemplateSignatureInviteWithOneRole copy.js deleted file mode 100644 index 3c740249..00000000 --- a/samples/snippets/sendTemplateSignatureInviteWithOneRole copy.js +++ /dev/null @@ -1,75 +0,0 @@ -'use strict'; - -const signnow = require('@signnow/api-client')({ - credentials: 'BASE64_ENCODED_CLIENT_CREDENTIALS', - production: true, // if false then uses eval server -}); -const sendInvite = signnow.document.invite; - -const id = 'TEMPLATE_ID_GOES_HERE'; -const token = 'YOUR_ACCESS_TOKEN'; - -/** - * @typedef {Object} SignerSettings - * @property {string} email - signer's email - * @property {string} role - ole name - * @property {number} order - role signing order - * @property {string} reassign - allow reassign signer - * @property {string} decline_by_signature - signer can decline invite - * @property {number} reminder - remind via email in days - * @property {number} expiration_days - expiration of invite in days - * @property {string} [subject] - specify subject of email - * @property {string} [message] - specify body of email - */ - -/** - * @type {Object} - * @property {string} document_id - * @property {SignerSettings[]} to - array of signers - * @property {string} from - email of sender - * @property {string[]} [cc] - array with emails - * @property {string} [subject] - specify subject of email - * @property {string} [message] - specify body of email - * @property {string} [on_complete] - on signing complete action - */ -const fieldInvite = { - document_id: 'TEMPLATE_ID_GOES_HERE', - to: [ - { - email: 'EMAIL_OF_SIGNER', - role: 'Signer 1', - order: 1, - reassign: '0', - decline_by_signature: '0', - reminder: 4, - expiration_days: 27, - subject: 'Field invite Signer1', - message: 'Message', - }, - ], - from: 'EMAIL_OF_SENDER', -}; - -/** - * @param {Object} res - * @param {string} res.status - e.g. 'success' - */ -const handleResponse = res => { - console.log(res); -}; - -const handleError = err => { - console.error(err); -}; - -sendInvite({ - data: { ...fieldInvite }, - id, - token, -}, (err, res) => { - if (err) { - handleError(err); - } else { - handleResponse(res); - } -}); diff --git a/samples/snippets/sendVerificationEmail.js b/samples/snippets/sendVerificationEmail.js deleted file mode 100644 index 84eb55a4..00000000 --- a/samples/snippets/sendVerificationEmail.js +++ /dev/null @@ -1,30 +0,0 @@ -'use strict'; - -const signnow = require('@signnow/api-client')({ - credentials: 'BASE64_ENCODED_CLIENT_CREDENTIALS', - production: true, // if false then uses eval server -}); -const { verifyEmail: verifyUserEmail } = signnow.user; - -const email = 'USER_EMAIL_GOES_HERE'; - -/** - * @param {Object} res - * @param {string} res.status - status of verification email sending, e.g. 'success' - */ -const handleResponse = res => { - console.log(res); -}; - -const handleError = err => { - console.error(err); -}; - -verifyUserEmail({ email }, - (err, res) => { - if (err) { - handleError(err); - } else { - handleResponse(res); - } - }); diff --git a/samples/snippets/shareDocument.js b/samples/snippets/shareDocument.js deleted file mode 100644 index c73b8ad0..00000000 --- a/samples/snippets/shareDocument.js +++ /dev/null @@ -1,33 +0,0 @@ -'use strict'; - -const signnow = require('@signnow/api-client')({ - credentials: 'BASE64_ENCODED_CLIENT_CREDENTIALS', - production: true, // if false then uses eval server -}); -const shareDocument = signnow.document.share; - -const id = 'DOCUMENT_ID_GOES_HERE'; -const token = 'YOUR_ACCESS_TOKEN'; - -/** - * @param {Object} res - * @param {string} res.link - one time download link - */ -const handleResponse = res => { - console.log(res); -}; - -const handleError = err => { - console.error(err); -}; - -shareDocument({ - id, - token, -}, (err, res) => { - if (err) { - handleError(err); - } else { - handleResponse(res); - } -}); diff --git a/samples/snippets/updateTemplateRoutingDetails.js b/samples/snippets/updateTemplateRoutingDetails.js deleted file mode 100644 index f0df476f..00000000 --- a/samples/snippets/updateTemplateRoutingDetails.js +++ /dev/null @@ -1,100 +0,0 @@ -'use strict'; - -const signnow = require('@signnow/api-client')({ - credentials: 'BASE64_ENCODED_CLIENT_CREDENTIALS', - production: true, // if false then uses eval server -}); -const { updateRoutingDetails } = signnow.template; - -const id = 'TEMPLATE_ID_GOES_HERE'; -const token = 'YOUR_ACCESS_TOKEN'; - -/** - * Template Update Routing Details item data - * @typedef {Object} TemplateUpdateRoutingDetailsItem - * @property {string} default_email - default email for routing detail - * @property {boolean} inviter_role - always `false` - * @property {string} name - signer role (actor) name - * @property {string} role_id - signer role (actor) unique ID - * @property {number} signing_order - order number of signing step - * @property {boolean} decline_by_signature - decline by signature flag - */ - -/** - * Update Template Routing Details payload - * @type {Object} - * @property {TemplateUpdateRoutingDetailsItem[]} template_data - array with routing details - * @property {string[]} cc - CC emails - * @property {Object[]} cc_step - array of CC steps - * @property {string} [invite_link_instructions] - invite signing instructions - */ -const routingDetails = { - template_data: [ - { - default_email: '', - inviter_role: false, - name: 'Signer 1', - role_id: 'SIGNER 1 ROLE ID', - signing_order: 1, - decline_by_signature: true, - }, - { - default_email: 'signer2@mail.com', - inviter_role: false, - name: 'Signer 2', - role_id: 'SIGNER 2 ROLE ID', - signing_order: 2, - }, - ], - cc: [ - 'cc1@mail.com', - 'cc2@mail.com', - ], - cc_step: [ - { - email: 'cc1@mail.com', - step: 1, - name: 'CC 1', - }, - { - email: 'cc2@mail.com', - step: 2, - name: 'CC 2', - }, - ], - invite_link_instructions: 'Invite link signing instruction', -}; - -/** - * Update Template Routing Details response data - * @typedef {Object} TemplateUpdateRoutingDetailsResponse - * @property {string} id - unique ID of template routing details - * @property {string} document_id - unique ID of Template - * @property {Object[]} data - array with routing details - * @property {string[]} cc - CC emails - * @property {Object[]} cc_step - array of CC steps - * @property {string} invite_link_instructions - invite signing instructions - */ - -/** - * @param {TemplateUpdateRoutingDetailsResponse} res - */ -const handleResponse = res => { - console.log(res); -}; - -const handleError = err => { - console.error(err); -}; - -updateRoutingDetails({ - data: routingDetails, - id, - token, -}, (err, res) => { - if (err) { - handleError(err); - } else { - handleResponse(res); - } -}); diff --git a/samples/snippets/uploadDocument.js b/samples/snippets/uploadDocument.js deleted file mode 100644 index ef881f04..00000000 --- a/samples/snippets/uploadDocument.js +++ /dev/null @@ -1,33 +0,0 @@ -'use strict'; - -const signnow = require('@signnow/api-client')({ - credentials: 'BASE64_ENCODED_CLIENT_CREDENTIALS', - production: true, // if false then uses eval server -}); -const { create: uploadDocument } = signnow.document; - -const filepath = 'PATH_TO_FILE_TO_BE_UPLOADED'; -const token = 'YOUR_ACCESS_TOKEN'; - -/** - * @param {Object} res - * @param {string} res.id - an id of created Document - */ -const handleResponse = res => { - console.log(res); -}; - -const handleError = err => { - console.error(err); -}; - -uploadDocument({ - filepath, - token, -}, (err, res) => { - if (err) { - handleError(err); - } else { - handleResponse(res); - } -}); diff --git a/samples/snippets/uploadDocumentWithFieldExtract.js b/samples/snippets/uploadDocumentWithFieldExtract.js deleted file mode 100644 index 990df461..00000000 --- a/samples/snippets/uploadDocumentWithFieldExtract.js +++ /dev/null @@ -1,33 +0,0 @@ -'use strict'; - -const signnow = require('@signnow/api-client')({ - credentials: 'BASE64_ENCODED_CLIENT_CREDENTIALS', - production: true, // if false then uses eval server -}); -const uploadDocumentWithFieldExtract = signnow.document.fieldextract; - -const filepath = 'FILE_PATH_GOES_HERE'; -const token = 'YOUR_ACCESS_TOKEN'; - -/** - * @param {Object} res - * @param {string} res.id - an id of created document - */ -const handleResponse = res => { - console.log(res); -}; - -const handleError = err => { - console.error(err); -}; - -uploadDocumentWithFieldExtract({ - filepath, - token, -}, (err, res) => { - if (err) { - handleError(err); - } else { - handleResponse(res); - } -}); diff --git a/samples/snippets/viewDocumentGroup.js b/samples/snippets/viewDocumentGroup.js deleted file mode 100644 index 05ef973e..00000000 --- a/samples/snippets/viewDocumentGroup.js +++ /dev/null @@ -1,42 +0,0 @@ -'use strict'; - -const signnow = require('@signnow/api-client')({ - credentials: 'BASE64_ENCODED_CLIENT_CREDENTIALS', - production: true, // if false then uses eval server -}); -const viewDocumentGroup = signnow.documentGroup.view; - -const id = 'DOCUMENT_GROUP_ID_GOES_HERE'; -const token = 'YOUR_ACCESS_TOKEN'; - -/** - * Document Group view response data - * @typedef {Object} DocumentGroupViewResponse - * @property {string} id - an ID of Document Group - * @property {string} group_name - a name of Document Group - * @property {Object[]} documents - each single document details - * @property {?string} invite_id - an ID of active invite - * @property {Object[]} originator_organization_settings - originator organization settings - */ - -/** - * @param {DocumentGroupViewResponse} res - */ -const handleResponse = res => { - console.log(res); -}; - -const handleError = err => { - console.error(err); -}; - -viewDocumentGroup({ - id, - token, -}, (err, res) => { - if (err) { - handleError(err); - } else { - handleResponse(res); - } -}); diff --git a/samples/snippets/viewDocumentGroupTemplate.js b/samples/snippets/viewDocumentGroupTemplate.js deleted file mode 100644 index 85ab83b3..00000000 --- a/samples/snippets/viewDocumentGroupTemplate.js +++ /dev/null @@ -1,45 +0,0 @@ -'use strict'; - -const signnow = require('@signnow/api-client')({ - credentials: 'BASE64_ENCODED_CLIENT_CREDENTIALS', - production: true, // if false then uses eval server -}); -const { view: viewDocumentGroupTemplate } = signnow.documentGroupTemplate; - -const id = 'DOCUMENT_GROUP_TEMPLATE_ID_GOES_HERE'; -const token = 'YOUR_ACCESS_TOKEN'; - -/** - * Document Group Template view response - * @typedef {Object} DocumentGroupTemplateViewResponse - * @property {string} id - id of Document Group Template - * @property {string} group_name - name of Document Group Template - * @property {string} document_group_template_owner_email - Document Group Template owner email - * @property {number} shared - is Document Group Template shared or not (values: 0 or 1) - * @property {?string} shared_team_id - id of team which Document Group Template is shared with - * @property {Object[]} templates - each single template details - * @property {Object} routing_details - signing steps configuration - * @property {Object[]} originator_organization_settings - originator organization settings - */ - -/** - * @param {DocumentGroupTemplateViewResponse} res - */ -const handleResponse = res => { - console.log(res); -}; - -const handleError = err => { - console.error(err); -}; - -viewDocumentGroupTemplate({ - id, - token, -}, (err, res) => { - if (err) { - handleError(err); - } else { - handleResponse(res); - } -}); diff --git a/src/api/auth/index.ts b/src/api/auth/index.ts new file mode 100644 index 00000000..82460529 --- /dev/null +++ b/src/api/auth/index.ts @@ -0,0 +1,15 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export type { RefreshTokenPost as RefreshTokenPostResponse } from './response/refreshTokenPost'; +export type { TokenGet as TokenGetResponse } from './response/tokenGet'; +export type { TokenPost as TokenPostResponse } from './response/tokenPost'; +export { RefreshTokenPost as RefreshTokenPostRequest } from './request/refreshTokenPost'; +export { TokenGet as TokenGetRequest } from './request/tokenGet'; +export { TokenPost as TokenPostRequest } from './request/tokenPost'; diff --git a/src/api/auth/request/refreshTokenPost.ts b/src/api/auth/request/refreshTokenPost.ts new file mode 100644 index 00000000..ab8b5a89 --- /dev/null +++ b/src/api/auth/request/refreshTokenPost.ts @@ -0,0 +1,56 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class RefreshTokenPost implements BaseClass { + private queryParams: Record = {}; + + constructor( + private refreshToken: string, + private scope: string = '*', + private expirationTime: string = '', + private grantType: string = 'refresh_token', + ) {} + + public getPayload(): Record { + return { + refresh_token: this.refreshToken, + scope: this.scope, + expiration_time: this.expirationTime, + grant_type: this.grantType, + }; + } + + public getMethod(): string { + return HttpMethod.POST; + } + + public getUrl(): string { + return '/oauth2/token'; + } + + public getAuthMethod(): string { + return HttpAuthType.BASIC; + } + + public getContentType(): string { + return 'application/x-www-form-urlencoded'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): null { + return null; + } +} diff --git a/src/api/auth/request/tokenGet.ts b/src/api/auth/request/tokenGet.ts new file mode 100644 index 00000000..0d1d10ed --- /dev/null +++ b/src/api/auth/request/tokenGet.ts @@ -0,0 +1,44 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class TokenGet implements BaseClass { + private queryParams: Record = {}; + + public getPayload(): null { + return null; + } + + public getMethod(): string { + return HttpMethod.GET; + } + + public getUrl(): string { + return '/oauth2/token'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): null { + return null; + } +} diff --git a/src/api/auth/request/tokenPost.ts b/src/api/auth/request/tokenPost.ts new file mode 100644 index 00000000..a1d794cf --- /dev/null +++ b/src/api/auth/request/tokenPost.ts @@ -0,0 +1,58 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class TokenPost implements BaseClass { + private queryParams: Record = {}; + + constructor( + private username: string, + private password: string, + private grantType: string, + private scope: string = '*', + private code: string = '', + ) {} + + public getPayload(): Record { + return { + username: this.username, + password: this.password, + grant_type: this.grantType, + scope: this.scope, + code: this.code, + }; + } + + public getMethod(): string { + return HttpMethod.POST; + } + + public getUrl(): string { + return '/oauth2/token'; + } + + public getAuthMethod(): string { + return HttpAuthType.BASIC; + } + + public getContentType(): string { + return 'application/x-www-form-urlencoded'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): null { + return null; + } +} diff --git a/src/api/auth/response/refreshTokenPost.ts b/src/api/auth/response/refreshTokenPost.ts new file mode 100644 index 00000000..00a322aa --- /dev/null +++ b/src/api/auth/response/refreshTokenPost.ts @@ -0,0 +1,17 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface RefreshTokenPost { + expires_in: number; + token_type: string; + access_token: string; + refresh_token: string; + scope: string; + last_login: number; +} diff --git a/src/api/auth/response/tokenGet.ts b/src/api/auth/response/tokenGet.ts new file mode 100644 index 00000000..c08d8c52 --- /dev/null +++ b/src/api/auth/response/tokenGet.ts @@ -0,0 +1,15 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface TokenGet { + access_token: string; + scope: string; + expires_in: string; + token_type: string; +} diff --git a/src/api/auth/response/tokenPost.ts b/src/api/auth/response/tokenPost.ts new file mode 100644 index 00000000..e5d51f17 --- /dev/null +++ b/src/api/auth/response/tokenPost.ts @@ -0,0 +1,17 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface TokenPost { + expires_in: number; + token_type: string; + access_token: string; + refresh_token: string; + scope: string; + last_login: number; +} diff --git a/src/api/document/index.ts b/src/api/document/index.ts new file mode 100644 index 00000000..455294f2 --- /dev/null +++ b/src/api/document/index.ts @@ -0,0 +1,88 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export type { Attachment as AttachmentRequest } from './request/data/attachment'; +export type { Attachment as AttachmentResponse } from './response/data/attachment'; +export type { Check as CheckRequest } from './request/data/check'; +export type { Check as CheckResponse } from './response/data/check'; +export type { Data as DataResponse } from './response/data/data'; +export type { Data as RoutingDetailDataResponse } from './response/data/routingDetail/data'; +export type { DeactivateElement as DeactivateElementRequest } from './request/data/deactivateElement'; +export type { Declined as FieldInviteDeclinedResponse } from './response/data/fieldInvite/declined'; +export type { DisplayJsonAttribute as DisplayJsonAttributeResponse } from './response/data/displayJsonAttribute'; +export type { DocumentDownloadGet as DocumentDownloadGetResponse } from './response/documentDownloadGet'; +export type { DocumentDownloadLinkPost as DocumentDownloadLinkPostResponse } from './response/documentDownloadLinkPost'; +export type { DocumentGet as DocumentGetResponse } from './response/documentGet'; +export type { DocumentGroupInfo as DocumentGroupInfoResponse } from './response/data/documentGroupInfo'; +export type { DocumentGroupTemplateInfo as DocumentGroupTemplateInfoResponse } from './response/data/documentGroupTemplateInfo'; +export type { DocumentMergePost as DocumentMergePostResponse } from './response/documentMergePost'; +export type { DocumentMovePost as DocumentMovePostResponse } from './response/documentMovePost'; +export type { DocumentPost as DocumentPostResponse } from './response/documentPost'; +export type { DocumentPut as DocumentPutResponse } from './response/documentPut'; +export type { EmailGroup as FieldInviteEmailGroupResponse } from './response/data/fieldInvite/emailGroup'; +export type { EmailGroup as ViewerFieldInviteEmailGroupResponse } from './response/data/viewerFieldInvite/emailGroup'; +export type { EmailStatus as FieldInviteEmailStatusResponse } from './response/data/fieldInvite/emailStatus'; +export type { EmailStatus as RequestEmailStatusResponse } from './response/data/request/emailStatus'; +export type { EmailStatus as ViewerFieldInviteEmailStatusResponse } from './response/data/viewerFieldInvite/emailStatus'; +export type { EmbeddedSigner as FieldInviteEmbeddedSignerResponse } from './response/data/fieldInvite/embeddedSigner'; +export type { EntityLabel as EntityLabelResponse } from './response/data/entityLabel'; +export type { EnumerationOption as EnumerationOptionResponse } from './response/data/enumerationOption'; +export type { ExportedTo as ExportedToExportedToResponse } from './response/data/exportedTo/exportedTo'; +export type { Field as FieldRequest } from './request/data/field'; +export type { Field as FieldResponse } from './response/data/field'; +export type { FieldExtractPost as FieldExtractPostResponse } from './response/fieldExtractPost'; +export type { FieldInvite as FieldInviteFieldInviteResponse } from './response/data/fieldInvite/fieldInvite'; +export type { FieldValidator as FieldValidatorResponse } from './response/data/fieldValidator'; +export type { FieldsData as FieldsDataResponse } from './response/data/fieldsData'; +export type { FieldsGet as FieldsGetResponse } from './response/fieldsGet'; +export type { FreeformInvite as FreeformInviteResponse } from './response/data/freeformInvite'; +export type { Hyperlink as HyperlinkRequest } from './request/data/hyperlink'; +export type { Hyperlink as HyperlinkResponse } from './response/data/hyperlink'; +export type { Insert as InsertResponse } from './response/data/insert'; +export type { Integration as IntegrationResponse } from './response/data/integration'; +export type { IntegrationObject as IntegrationObjectRequest } from './request/data/integrationObject'; +export type { IntegrationObject as IntegrationObjectResponse } from './response/data/integrationObject'; +export type { JsonAttribute as JsonAttributeResponse } from './response/data/jsonAttribute'; +export type { Line as LineLineRequest } from './request/data/line/line'; +export type { Line as LineLineResponse } from './response/data/line/line'; +export type { OriginatorOrganizationSettings as OriginatorOrganizationSettingsResponse } from './response/data/originatorOrganizationSettings'; +export type { Page as PageResponse } from './response/data/page'; +export type { Payment as PaymentResponse } from './response/data/payment'; +export type { Radio as RadiobuttonRadioRequest } from './request/data/radiobutton/radio'; +export type { Radio as RadiobuttonRadioResponse } from './response/data/radiobutton/radio'; +export type { Radio as TagRadioRequest } from './request/data/tag/radio'; +export type { Radiobutton as RadiobuttonRadiobuttonRequest } from './request/data/radiobutton/radiobutton'; +export type { Radiobutton as RadiobuttonRadiobuttonResponse } from './response/data/radiobutton/radiobutton'; +export type { Request as RequestRequestResponse } from './response/data/request/request'; +export type { Role as RoleResponse } from './response/data/role'; +export type { RoutingDetail as RoutingDetailRoutingDetailResponse } from './response/data/routingDetail/routingDetail'; +export type { Seal as SealResponse } from './response/data/seal'; +export type { Settings as SettingsResponse } from './response/data/settings'; +export type { ShareInfo as ShareInfoResponse } from './response/data/shareInfo'; +export type { Signature as SignatureRequest } from './request/data/signature'; +export type { Signature as SignatureResponse } from './response/data/signature'; +export type { SigningSessionSettings as SigningSessionSettingsResponse } from './response/data/signingSessionSettings'; +export type { Size as SizeResponse } from './response/data/size'; +export type { Storage as ExportedToStorageResponse } from './response/data/exportedTo/storage'; +export type { Tag as TagResponse } from './response/data/tag'; +export type { Tag as TagTagRequest } from './request/data/tag/tag'; +export type { Text as TextRequest } from './request/data/text'; +export type { Text as TextResponse } from './response/data/text'; +export type { Thumbnail as ThumbnailResponse } from './response/data/thumbnail'; +export type { ViewerFieldInvite as ViewerFieldInviteViewerFieldInviteResponse } from './response/data/viewerFieldInvite/viewerFieldInvite'; +export type { ViewerRole as ViewerRoleResponse } from './response/data/viewerRole'; +export { DocumentDownloadGet as DocumentDownloadGetRequest } from './request/documentDownloadGet'; +export { DocumentDownloadLinkPost as DocumentDownloadLinkPostRequest } from './request/documentDownloadLinkPost'; +export { DocumentGet as DocumentGetRequest } from './request/documentGet'; +export { DocumentMergePost as DocumentMergePostRequest } from './request/documentMergePost'; +export { DocumentMovePost as DocumentMovePostRequest } from './request/documentMovePost'; +export { DocumentPost as DocumentPostRequest } from './request/documentPost'; +export { DocumentPut as DocumentPutRequest } from './request/documentPut'; +export { FieldExtractPost as FieldExtractPostRequest } from './request/fieldExtractPost'; +export { FieldsGet as FieldsGetRequest } from './request/fieldsGet'; diff --git a/src/api/document/request/data/attachment.ts b/src/api/document/request/data/attachment.ts new file mode 100644 index 00000000..8bbfbaa5 --- /dev/null +++ b/src/api/document/request/data/attachment.ts @@ -0,0 +1,13 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Attachment { + attachment_unique_id?: string; + field_id?: string; +} diff --git a/src/api/document/request/data/check.ts b/src/api/document/request/data/check.ts new file mode 100644 index 00000000..8ae25130 --- /dev/null +++ b/src/api/document/request/data/check.ts @@ -0,0 +1,17 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Check { + x: number; + y: number; + width: number; + height: number; + subtype: string; + page_number: number; +} diff --git a/src/api/document/request/data/deactivateElement.ts b/src/api/document/request/data/deactivateElement.ts new file mode 100644 index 00000000..a9693744 --- /dev/null +++ b/src/api/document/request/data/deactivateElement.ts @@ -0,0 +1,13 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface DeactivateElement { + type: string; + unique_id: string; +} diff --git a/src/api/document/request/data/field.ts b/src/api/document/request/data/field.ts new file mode 100644 index 00000000..e04ca42b --- /dev/null +++ b/src/api/document/request/data/field.ts @@ -0,0 +1,35 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Field { + x: number; + y: number; + width: number; + height: number; + type: string; + page_number: number; + required: boolean; + role: string; + custom_defined_option?: boolean; + name?: string; + tooltip?: string; + formula?: string; + conditional?: boolean; + stretch_to_grid?: boolean; + active?: boolean; + bold?: boolean; + italic?: boolean; + underline?: boolean; + subtype?: string; + align?: string; + calculation_precision?: string; + color?: string; + label?: string; + validator_id?: string; +} diff --git a/src/api/document/request/data/hyperlink.ts b/src/api/document/request/data/hyperlink.ts new file mode 100644 index 00000000..2f1abf5b --- /dev/null +++ b/src/api/document/request/data/hyperlink.ts @@ -0,0 +1,20 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Hyperlink { + x: number; + y: number; + size: number; + width: number; + height: number; + page_number: number; + font: string; + line_height: number; + field_id?: string; +} diff --git a/src/api/document/request/data/integrationObject.ts b/src/api/document/request/data/integrationObject.ts new file mode 100644 index 00000000..7c93631e --- /dev/null +++ b/src/api/document/request/data/integrationObject.ts @@ -0,0 +1,29 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface IntegrationObject { + x: number; + y: number; + size: number; + width: number; + height: number; + page_number: number; + font: string; + data: string; + status: number; + color: string; + created: number; + active: boolean; + line_height: number; + bold?: boolean; + italic?: boolean; + underline?: boolean; + field_id?: string; + api_integration_id?: string | null; +} diff --git a/src/api/document/request/data/line/line.ts b/src/api/document/request/data/line/line.ts new file mode 100644 index 00000000..0eb0ac98 --- /dev/null +++ b/src/api/document/request/data/line/line.ts @@ -0,0 +1,20 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Line { + x: number; + y: number; + width: number; + height: number; + subtype: string; + page_number: number; + fill_color: string; + line_width: number; + control_points?: number[]; +} diff --git a/src/api/document/request/data/radiobutton/radio.ts b/src/api/document/request/data/radiobutton/radio.ts new file mode 100644 index 00000000..52c49d05 --- /dev/null +++ b/src/api/document/request/data/radiobutton/radio.ts @@ -0,0 +1,18 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Radio { + x: number; + y: number; + width: number; + height: number; + value: string; + checked: number; + page_number: number; +} diff --git a/src/api/document/request/data/radiobutton/radiobutton.ts b/src/api/document/request/data/radiobutton/radiobutton.ts new file mode 100644 index 00000000..3a472e14 --- /dev/null +++ b/src/api/document/request/data/radiobutton/radiobutton.ts @@ -0,0 +1,25 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Radio } from './radio'; + +export interface Radiobutton { + page_number: number; + x: number; + y: number; + line_height: number; + status: number; + is_printed: number; + size: number; + subtype: string; + name: string; + font: string; + radio: Radio[]; + field_id?: string; +} diff --git a/src/api/document/request/data/signature.ts b/src/api/document/request/data/signature.ts new file mode 100644 index 00000000..e51844cf --- /dev/null +++ b/src/api/document/request/data/signature.ts @@ -0,0 +1,22 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Signature { + x: number; + y: number; + width: number; + height: number; + page_number: number; + data: string; + subtype?: string; + signature_request_id?: string; + field_id?: string; + signing_reason?: string; + owner_as_recipient?: boolean; +} diff --git a/src/api/document/request/data/tag/radio.ts b/src/api/document/request/data/tag/radio.ts new file mode 100644 index 00000000..440d5f47 --- /dev/null +++ b/src/api/document/request/data/tag/radio.ts @@ -0,0 +1,20 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Radio { + page_number: number; + x: number; + y: number; + width: number; + height: number; + checked?: string; + value?: string; + x_offset?: number; + y_offset?: number; +} diff --git a/src/api/document/request/data/tag/tag.ts b/src/api/document/request/data/tag/tag.ts new file mode 100644 index 00000000..a5f9eee7 --- /dev/null +++ b/src/api/document/request/data/tag/tag.ts @@ -0,0 +1,35 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Radio } from './radio'; + +export interface Tag { + type: string; + x: number; + y: number; + page_number: number; + role: string; + required: boolean; + width: number; + height: number; + tag_name?: string; + name?: string; + label?: string; + align?: string; + valign?: string; + prefilled_text?: string; + validator_id?: string; + dependency?: string; + hint?: string; + link?: string; + custom_defined_option?: boolean; + lock_to_sign_date?: boolean; + radio?: Radio[]; + enumeration_options?: string[]; +} diff --git a/src/api/document/request/data/text.ts b/src/api/document/request/data/text.ts new file mode 100644 index 00000000..3e81ee20 --- /dev/null +++ b/src/api/document/request/data/text.ts @@ -0,0 +1,22 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Text { + x: number; + y: number; + size: number; + width: number; + height: number; + subtype: string; + page_number: number; + data: string; + font: string; + line_height: number; + field_id?: string; +} diff --git a/src/api/document/request/documentDownloadGet.ts b/src/api/document/request/documentDownloadGet.ts new file mode 100644 index 00000000..950c054a --- /dev/null +++ b/src/api/document/request/documentDownloadGet.ts @@ -0,0 +1,62 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class DocumentDownloadGet implements BaseClass { + private queryParams: Record = {}; + + constructor(private documentId: string) {} + + public getPayload(): Record { + return { + document_id: this.documentId, + }; + } + + public getMethod(): string { + return HttpMethod.GET; + } + + public getUrl(): string { + return '/document/{document_id}/download'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/pdf'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { document_id: string } { + return { + document_id: this.documentId, + }; + } + + public withType(type: string): this { + this.queryParams['type'] = type; + + return this; + } + + public withHistory(withHistory: string): this { + this.queryParams['with_history'] = withHistory; + + return this; + } +} diff --git a/src/api/document/request/documentDownloadLinkPost.ts b/src/api/document/request/documentDownloadLinkPost.ts new file mode 100644 index 00000000..b8c139f2 --- /dev/null +++ b/src/api/document/request/documentDownloadLinkPost.ts @@ -0,0 +1,50 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class DocumentDownloadLinkPost implements BaseClass { + private queryParams: Record = {}; + + constructor(private documentId: string) {} + + public getPayload(): Record { + return { + document_id: this.documentId, + }; + } + + public getMethod(): string { + return HttpMethod.POST; + } + + public getUrl(): string { + return '/document/{document_id}/download/link'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { document_id: string } { + return { + document_id: this.documentId, + }; + } +} diff --git a/src/api/document/request/documentGet.ts b/src/api/document/request/documentGet.ts new file mode 100644 index 00000000..cddb5962 --- /dev/null +++ b/src/api/document/request/documentGet.ts @@ -0,0 +1,50 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class DocumentGet implements BaseClass { + private queryParams: Record = {}; + + constructor(private documentId: string) {} + + public getPayload(): Record { + return { + document_id: this.documentId, + }; + } + + public getMethod(): string { + return HttpMethod.GET; + } + + public getUrl(): string { + return '/document/{document_id}'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { document_id: string } { + return { + document_id: this.documentId, + }; + } +} diff --git a/src/api/document/request/documentMergePost.ts b/src/api/document/request/documentMergePost.ts new file mode 100644 index 00000000..c1554dcf --- /dev/null +++ b/src/api/document/request/documentMergePost.ts @@ -0,0 +1,54 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class DocumentMergePost implements BaseClass { + private queryParams: Record = {}; + + constructor( + private name: string, + private documentIds: string[] = [], + private uploadDocument: boolean = false, + ) {} + + public getPayload(): Record { + return { + name: this.name, + document_ids: this.documentIds, + upload_document: this.uploadDocument, + }; + } + + public getMethod(): string { + return HttpMethod.POST; + } + + public getUrl(): string { + return '/document/merge'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): null { + return null; + } +} diff --git a/src/api/document/request/documentMovePost.ts b/src/api/document/request/documentMovePost.ts new file mode 100644 index 00000000..4c2d5577 --- /dev/null +++ b/src/api/document/request/documentMovePost.ts @@ -0,0 +1,54 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class DocumentMovePost implements BaseClass { + private queryParams: Record = {}; + + constructor( + private documentId: string, + private folderId: string, + ) {} + + public getPayload(): Record { + return { + document_id: this.documentId, + folder_id: this.folderId, + }; + } + + public getMethod(): string { + return HttpMethod.POST; + } + + public getUrl(): string { + return '/document/{document_id}/move'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { document_id: string } { + return { + document_id: this.documentId, + }; + } +} diff --git a/src/api/document/request/documentPost.ts b/src/api/document/request/documentPost.ts new file mode 100644 index 00000000..8a169eb6 --- /dev/null +++ b/src/api/document/request/documentPost.ts @@ -0,0 +1,66 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class DocumentPost implements BaseClass { + private queryParams: Record = {}; + + constructor( + private file: string, + private name: string = '', + private checkFields: boolean = false, + private saveFields: number = 0, + private makeTemplate: number = 0, + private password: string | null = null, + private folderId: string | null = null, + private originTemplateId: string | null = null, + private clientTimestamp: number = 0, + ) {} + + public getPayload(): Record { + return { + file: this.file, + name: this.name, + check_fields: this.checkFields, + save_fields: this.saveFields, + make_template: this.makeTemplate, + password: this.password, + folder_id: this.folderId, + origin_template_id: this.originTemplateId, + client_timestamp: this.clientTimestamp, + }; + } + + public getMethod(): string { + return HttpMethod.POST; + } + + public getUrl(): string { + return '/document'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'multipart/form-data'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): null { + return null; + } +} diff --git a/src/api/document/request/documentPut.ts b/src/api/document/request/documentPut.ts new file mode 100644 index 00000000..6fef454c --- /dev/null +++ b/src/api/document/request/documentPut.ts @@ -0,0 +1,86 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; +import { Field } from './data/field'; +import { Line } from './data/line/line'; +import { Check } from './data/check'; +import { Radiobutton } from './data/radiobutton/radiobutton'; +import { Signature } from './data/signature'; +import { Text } from './data/text'; +import { Attachment } from './data/attachment'; +import { Hyperlink } from './data/hyperlink'; +import { IntegrationObject } from './data/integrationObject'; +import { DeactivateElement } from './data/deactivateElement'; + +export class DocumentPut implements BaseClass { + private queryParams: Record = {}; + + constructor( + private documentId: string, + private fields: Field[], + private lines: Line[] = [], + private checks: Check[] = [], + private radiobuttons: Radiobutton[] = [], + private signatures: Signature[] = [], + private texts: Text[] = [], + private attachments: Attachment[] = [], + private hyperlinks: Hyperlink[] = [], + private integrationObjects: IntegrationObject[] = [], + private deactivateElements: DeactivateElement[] = [], + private documentName: string | null = null, + private clientTimestamp: string = '', + ) {} + + public getPayload(): Record { + return { + document_id: this.documentId, + fields: this.fields, + lines: this.lines, + checks: this.checks, + radiobuttons: this.radiobuttons, + signatures: this.signatures, + texts: this.texts, + attachments: this.attachments, + hyperlinks: this.hyperlinks, + integration_objects: this.integrationObjects, + deactivate_elements: this.deactivateElements, + document_name: this.documentName, + client_timestamp: this.clientTimestamp, + }; + } + + public getMethod(): string { + return HttpMethod.PUT; + } + + public getUrl(): string { + return '/document/{document_id}'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { document_id: string } { + return { + document_id: this.documentId, + }; + } +} diff --git a/src/api/document/request/fieldExtractPost.ts b/src/api/document/request/fieldExtractPost.ts new file mode 100644 index 00000000..b6327cf3 --- /dev/null +++ b/src/api/document/request/fieldExtractPost.ts @@ -0,0 +1,59 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; +import { Tag } from './data/tag/tag'; + +export class FieldExtractPost implements BaseClass { + private queryParams: Record = {}; + + constructor( + private file: string, + private tags: Tag[] = [], + private parseType: string = 'default', + private password: string | null = null, + private clientTimestamp: number = 0, + ) {} + + public getPayload(): Record { + return { + file: this.file, + tags: this.tags, + parse_type: this.parseType, + password: this.password, + client_timestamp: this.clientTimestamp, + }; + } + + public getMethod(): string { + return HttpMethod.POST; + } + + public getUrl(): string { + return '/document/fieldextract'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'multipart/form-data'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): null { + return null; + } +} diff --git a/src/api/document/request/fieldsGet.ts b/src/api/document/request/fieldsGet.ts new file mode 100644 index 00000000..41a37a2e --- /dev/null +++ b/src/api/document/request/fieldsGet.ts @@ -0,0 +1,50 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class FieldsGet implements BaseClass { + private queryParams: Record = {}; + + constructor(private documentId: string) {} + + public getPayload(): Record { + return { + document_id: this.documentId, + }; + } + + public getMethod(): string { + return HttpMethod.GET; + } + + public getUrl(): string { + return '/v2/documents/{document_id}/fields'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { document_id: string } { + return { + document_id: this.documentId, + }; + } +} diff --git a/src/api/document/response/data/attachment.ts b/src/api/document/response/data/attachment.ts new file mode 100644 index 00000000..05181852 --- /dev/null +++ b/src/api/document/response/data/attachment.ts @@ -0,0 +1,29 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { JsonAttribute } from './jsonAttribute'; + +export interface Attachment { + id: string; + user_id: string; + page_number: string; + width: string; + height: string; + x: string; + y: string; + line_height: number; + created: string; + json_attributes: JsonAttribute; + original_attachment_name?: string | null; + filename?: string | null; + file_type?: string | null; + mime_type?: string | null; + file_size?: string | null; + allow_editing?: boolean; +} diff --git a/src/api/document/response/data/check.ts b/src/api/document/response/data/check.ts new file mode 100644 index 00000000..bf69c6a4 --- /dev/null +++ b/src/api/document/response/data/check.ts @@ -0,0 +1,22 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Check { + id: string; + page_number: string; + x: string; + y: string; + width: string; + height: string; + created: string; + allow_editing: boolean; + owner_as_recipient: boolean; + user_id?: string | null; + email?: string; +} diff --git a/src/api/document/response/data/data.ts b/src/api/document/response/data/data.ts new file mode 100644 index 00000000..02768ec6 --- /dev/null +++ b/src/api/document/response/data/data.ts @@ -0,0 +1,15 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Data { + id: string; + name: string; + type: string; + value?: string; +} diff --git a/src/api/document/response/data/displayJsonAttribute.ts b/src/api/document/response/data/displayJsonAttribute.ts new file mode 100644 index 00000000..bf560c58 --- /dev/null +++ b/src/api/document/response/data/displayJsonAttribute.ts @@ -0,0 +1,18 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface DisplayJsonAttribute { + web_short_name: string; + web_description: string; + common: boolean; + disabled: boolean; + date_time_field_order?: number | null; + text_field_order?: number | null; + web_locale_key?: string; +} diff --git a/src/api/document/response/data/documentGroupInfo.ts b/src/api/document/response/data/documentGroupInfo.ts new file mode 100644 index 00000000..3a289323 --- /dev/null +++ b/src/api/document/response/data/documentGroupInfo.ts @@ -0,0 +1,21 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { FreeformInvite } from './freeformInvite'; + +export interface DocumentGroupInfo { + document_group_id?: string | null; + document_group_name?: string | null; + invite_id?: string | null; + invite_status?: string | null; + sign_as_merged?: boolean; + doc_count_in_group?: number; + freeform_invite?: FreeformInvite; + state?: string | null; +} diff --git a/src/api/document/response/data/documentGroupTemplateInfo.ts b/src/api/document/response/data/documentGroupTemplateInfo.ts new file mode 100644 index 00000000..513d33d4 --- /dev/null +++ b/src/api/document/response/data/documentGroupTemplateInfo.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface DocumentGroupTemplateInfo { + document_group_template_id: string; + document_group_template_name: string; + shared: number; +} diff --git a/src/api/document/response/data/entityLabel.ts b/src/api/document/response/data/entityLabel.ts new file mode 100644 index 00000000..30b49473 --- /dev/null +++ b/src/api/document/response/data/entityLabel.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface EntityLabel { + label_name: string; + is_system: boolean; + updated: string; +} diff --git a/src/api/document/response/data/enumerationOption.ts b/src/api/document/response/data/enumerationOption.ts new file mode 100644 index 00000000..b5bfdc59 --- /dev/null +++ b/src/api/document/response/data/enumerationOption.ts @@ -0,0 +1,19 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { JsonAttribute } from './jsonAttribute'; + +export interface EnumerationOption { + id: string; + enumeration_id: string; + data: string; + created: string; + updated: string; + json_attributes: JsonAttribute; +} diff --git a/src/api/document/response/data/exportedTo/exportedTo.ts b/src/api/document/response/data/exportedTo/exportedTo.ts new file mode 100644 index 00000000..86542e68 --- /dev/null +++ b/src/api/document/response/data/exportedTo/exportedTo.ts @@ -0,0 +1,17 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Storage } from './storage'; + +export interface ExportedTo { + export_domain: string; + is_exported: boolean; + exported_user_ids: string[]; + storages?: Storage[]; +} diff --git a/src/api/document/response/data/exportedTo/storage.ts b/src/api/document/response/data/exportedTo/storage.ts new file mode 100644 index 00000000..908639fa --- /dev/null +++ b/src/api/document/response/data/exportedTo/storage.ts @@ -0,0 +1,13 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Storage { + is_active: boolean; + account?: string; +} diff --git a/src/api/document/response/data/field.ts b/src/api/document/response/data/field.ts new file mode 100644 index 00000000..351638e9 --- /dev/null +++ b/src/api/document/response/data/field.ts @@ -0,0 +1,25 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { JsonAttribute } from './jsonAttribute'; + +export interface Field { + id: string; + type: string; + role_id: string; + json_attributes: JsonAttribute; + role: string; + originator: string; + fulfiller?: string | null; + field_request_id?: string | null; + field_request_canceled?: string | null; + element_id?: string | null; + field_id?: string | null; + template_field_id?: string | null; +} diff --git a/src/api/document/response/data/fieldInvite/declined.ts b/src/api/document/response/data/fieldInvite/declined.ts new file mode 100644 index 00000000..029b03bf --- /dev/null +++ b/src/api/document/response/data/fieldInvite/declined.ts @@ -0,0 +1,12 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Declined { + declined_text: string; +} diff --git a/src/api/document/response/data/fieldInvite/emailGroup.ts b/src/api/document/response/data/fieldInvite/emailGroup.ts new file mode 100644 index 00000000..06edd46f --- /dev/null +++ b/src/api/document/response/data/fieldInvite/emailGroup.ts @@ -0,0 +1,13 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface EmailGroup { + id?: string | null; + name?: string | null; +} diff --git a/src/api/document/response/data/fieldInvite/emailStatus.ts b/src/api/document/response/data/fieldInvite/emailStatus.ts new file mode 100644 index 00000000..d2d1e6cd --- /dev/null +++ b/src/api/document/response/data/fieldInvite/emailStatus.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface EmailStatus { + status: string; + created_at: number; + last_reaction_at: number; +} diff --git a/src/api/document/response/data/fieldInvite/embeddedSigner.ts b/src/api/document/response/data/fieldInvite/embeddedSigner.ts new file mode 100644 index 00000000..b9fa485e --- /dev/null +++ b/src/api/document/response/data/fieldInvite/embeddedSigner.ts @@ -0,0 +1,13 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface EmbeddedSigner { + first_name: string; + last_name: string; +} diff --git a/src/api/document/response/data/fieldInvite/fieldInvite.ts b/src/api/document/response/data/fieldInvite/fieldInvite.ts new file mode 100644 index 00000000..343f3072 --- /dev/null +++ b/src/api/document/response/data/fieldInvite/fieldInvite.ts @@ -0,0 +1,69 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { EmailGroup } from './emailGroup'; +import { EmailStatus } from './emailStatus'; +import { Declined } from './declined'; +import { EmbeddedSigner } from './embeddedSigner'; + +export interface FieldInvite { + id: string; + signer_user_id: string; + status: string; + password_protected: string; + created: string; + updated: string; + email_group: EmailGroup; + email: string; + email_statuses: EmailStatus[]; + role: string; + role_id: string; + reminder: string; + expiration_time: string | null; + redirect_target: string; + is_full_declined: boolean; + is_embedded: boolean; + is_document_locked: string; + declined: Declined[]; + delivery_type: string; + id_verification_required: string; + id_verified: string; + embedded_signer: EmbeddedSigner[]; + language: string | null; + signer_phone_invite?: string | null; + password_type?: string; + password_method?: string; + reassign?: string; + pfrmerchant_account_name?: string | null; + redirect_uri?: string | null; + decline_redirect_uri?: string | null; + close_redirect_uri?: string | null; + is_draft_exists?: string; + required_preset_signature_name?: string | null; + decline_by_signature?: string | null; + electronic_consent_required?: number | null; + payment_request?: string | null; + pfrid?: string | null; + pfrtype?: string | null; + pfrmerchant_id?: string | null; + pfrstatus?: string | null; + pframount?: string | null; + pfrpayment_transaction_id?: string | null; + pfrcreated?: string | null; + pfrmerchant_type?: string | null; + pfrcurrency_name?: string | null; + pfrjson_attributes?: string | null; + electronic_consent_id?: string | null; + stripe_ach_bank_account_verified?: string; + stripe_ach_bank_account_present?: string; + prefill_signature_name?: string | null; + force_new_signature?: number | null; + signing_instructions?: string | null; + signature_type?: string | null; +} diff --git a/src/api/document/response/data/fieldValidator.ts b/src/api/document/response/data/fieldValidator.ts new file mode 100644 index 00000000..74bba67a --- /dev/null +++ b/src/api/document/response/data/fieldValidator.ts @@ -0,0 +1,21 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { DisplayJsonAttribute } from './displayJsonAttribute'; + +export interface FieldValidator { + id: string; + name: string; + regex_expression: string; + description: string; + scope: string; + error_message?: string; + display_json_attributes?: DisplayJsonAttribute; + formula_calculation?: string; +} diff --git a/src/api/document/response/data/fieldsData.ts b/src/api/document/response/data/fieldsData.ts new file mode 100644 index 00000000..31b8ea4a --- /dev/null +++ b/src/api/document/response/data/fieldsData.ts @@ -0,0 +1,15 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface FieldsData { + id: string; + name: string; + type: string; + value?: string | null; +} diff --git a/src/api/document/response/data/freeformInvite.ts b/src/api/document/response/data/freeformInvite.ts new file mode 100644 index 00000000..b3dc6fef --- /dev/null +++ b/src/api/document/response/data/freeformInvite.ts @@ -0,0 +1,12 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface FreeformInvite { + id?: string | null; +} diff --git a/src/api/document/response/data/hyperlink.ts b/src/api/document/response/data/hyperlink.ts new file mode 100644 index 00000000..3dee1676 --- /dev/null +++ b/src/api/document/response/data/hyperlink.ts @@ -0,0 +1,25 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Hyperlink { + id: string; + page_number: string; + x: string; + y: string; + font: string; + size: string; + data: string; + label: string; + line_height: string; + original_font_size: string; + created: string; + allow_editing: boolean; + user_id?: string | null; + email?: string; +} diff --git a/src/api/document/response/data/insert.ts b/src/api/document/response/data/insert.ts new file mode 100644 index 00000000..138e2d70 --- /dev/null +++ b/src/api/document/response/data/insert.ts @@ -0,0 +1,15 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Insert { + id: string; + location: string; + email?: string; + transaction_id?: string | null; +} diff --git a/src/api/document/response/data/integration.ts b/src/api/document/response/data/integration.ts new file mode 100644 index 00000000..05ba2fc2 --- /dev/null +++ b/src/api/document/response/data/integration.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Integration { + id: string; + integration_id?: string | null; + data?: string; +} diff --git a/src/api/document/response/data/integrationObject.ts b/src/api/document/response/data/integrationObject.ts new file mode 100644 index 00000000..aafbd647 --- /dev/null +++ b/src/api/document/response/data/integrationObject.ts @@ -0,0 +1,29 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { JsonAttribute } from './jsonAttribute'; + +export interface IntegrationObject { + id: string; + page_number: string; + font: string; + size: string; + data: string; + x: string; + y: string; + json_attributes: JsonAttribute; + line_height: number; + user_id?: string | null; + email?: string | null; + api_integration_id?: string | null; + created?: string; + allow_editing?: boolean; + width?: string; + height?: string; +} diff --git a/src/api/document/response/data/jsonAttribute.ts b/src/api/document/response/data/jsonAttribute.ts new file mode 100644 index 00000000..0eae844a --- /dev/null +++ b/src/api/document/response/data/jsonAttribute.ts @@ -0,0 +1,23 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface JsonAttribute { + page_number: number; + x: number; + y: number; + width: number; + height: number; + required: boolean; + name?: string; + label?: string; + bold?: boolean; + underline?: boolean; + max_lines?: number; + validator_id?: string; +} diff --git a/src/api/document/response/data/line/line.ts b/src/api/document/response/data/line/line.ts new file mode 100644 index 00000000..8a0b7231 --- /dev/null +++ b/src/api/document/response/data/line/line.ts @@ -0,0 +1,25 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Line { + id: string; + page_number: string; + subtype: string; + x: string; + y: string; + width: string; + height: string; + line_width: string; + control_points: number[]; + created: string; + allow_editing: boolean; + user_id?: string | null; + email?: string; + fill_color?: string | null; +} diff --git a/src/api/document/response/data/originatorOrganizationSettings.ts b/src/api/document/response/data/originatorOrganizationSettings.ts new file mode 100644 index 00000000..80c1fe3f --- /dev/null +++ b/src/api/document/response/data/originatorOrganizationSettings.ts @@ -0,0 +1,13 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface OriginatorOrganizationSettings { + setting: string; + value: string; +} diff --git a/src/api/document/response/data/page.ts b/src/api/document/response/data/page.ts new file mode 100644 index 00000000..c89b6ee5 --- /dev/null +++ b/src/api/document/response/data/page.ts @@ -0,0 +1,15 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Size } from './size'; + +export interface Page { + src: string; + size: Size; +} diff --git a/src/api/document/response/data/payment.ts b/src/api/document/response/data/payment.ts new file mode 100644 index 00000000..cc98565e --- /dev/null +++ b/src/api/document/response/data/payment.ts @@ -0,0 +1,22 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Payment { + id: string; + user_id: string; + email: string; + created: string; + amount: string; + payment_request_id?: string | null; + merchant_id?: string | null; + merchant_type?: string | null; + merchant_account_name?: string | null; + currency_name?: string | null; + currency?: string | null; +} diff --git a/src/api/document/response/data/radiobutton/radio.ts b/src/api/document/response/data/radiobutton/radio.ts new file mode 100644 index 00000000..8360601e --- /dev/null +++ b/src/api/document/response/data/radiobutton/radio.ts @@ -0,0 +1,20 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Radio { + radio_id: string; + created: string; + page_number: string; + x: string; + y: string; + width: string; + height: string; + checked: string; + value: string; +} diff --git a/src/api/document/response/data/radiobutton/radiobutton.ts b/src/api/document/response/data/radiobutton/radiobutton.ts new file mode 100644 index 00000000..079b97fd --- /dev/null +++ b/src/api/document/response/data/radiobutton/radiobutton.ts @@ -0,0 +1,26 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Radio } from './radio'; + +export interface Radiobutton { + id: string; + user_id: string; + name: string; + server_created_timestamp: string; + x: string; + y: string; + size: string; + line_height: string; + page_number: string; + is_printed: boolean; + font: string; + original_font_size: string; + radio: Radio[]; +} diff --git a/src/api/document/response/data/request/emailStatus.ts b/src/api/document/response/data/request/emailStatus.ts new file mode 100644 index 00000000..d2d1e6cd --- /dev/null +++ b/src/api/document/response/data/request/emailStatus.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface EmailStatus { + status: string; + created_at: number; + last_reaction_at: number; +} diff --git a/src/api/document/response/data/request/request.ts b/src/api/document/response/data/request/request.ts new file mode 100644 index 00000000..d1d61904 --- /dev/null +++ b/src/api/document/response/data/request/request.ts @@ -0,0 +1,27 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { EmailStatus } from './emailStatus'; + +export interface Request { + id: string; + unique_id: string; + user_id: string; + created: string; + originator_email: string | null; + signer_email: string | null; + redirect_target: string; + signature_id?: string | null; + signer_user_id?: string | null; + canceled?: boolean | null; + redirect_uri?: string | null; + close_redirect_uri?: string | null; + language?: string | null; + email_statuses?: EmailStatus[]; +} diff --git a/src/api/document/response/data/role.ts b/src/api/document/response/data/role.ts new file mode 100644 index 00000000..f336f9f0 --- /dev/null +++ b/src/api/document/response/data/role.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Role { + unique_id: string; + signing_order: string; + name: string; +} diff --git a/src/api/document/response/data/routingDetail/data.ts b/src/api/document/response/data/routingDetail/data.ts new file mode 100644 index 00000000..5188ccdb --- /dev/null +++ b/src/api/document/response/data/routingDetail/data.ts @@ -0,0 +1,16 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Data { + default_email: string; + inviter_role: boolean; + name: string; + role_id: string; + signing_order: number; +} diff --git a/src/api/document/response/data/routingDetail/routingDetail.ts b/src/api/document/response/data/routingDetail/routingDetail.ts new file mode 100644 index 00000000..83ac93e8 --- /dev/null +++ b/src/api/document/response/data/routingDetail/routingDetail.ts @@ -0,0 +1,16 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Data } from './data'; + +export interface RoutingDetail { + id: string; + data: Data[]; + created: number; +} diff --git a/src/api/document/response/data/seal.ts b/src/api/document/response/data/seal.ts new file mode 100644 index 00000000..929f4c5e --- /dev/null +++ b/src/api/document/response/data/seal.ts @@ -0,0 +1,23 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Seal { + id: string; + page_number: string; + x: string; + y: string; + width: string; + height: string; + created: string; + unique_id?: string | null; + customer_user_id?: string | null; + email?: string; + transaction_id?: string | null; + data?: string; +} diff --git a/src/api/document/response/data/settings.ts b/src/api/document/response/data/settings.ts new file mode 100644 index 00000000..bf511e7f --- /dev/null +++ b/src/api/document/response/data/settings.ts @@ -0,0 +1,56 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Settings { + no_document_attachment: boolean; + copy_export: boolean; + no_document_file_attachments: boolean; + no_user_signature_return: boolean; + mobileweb_option: boolean; + require_drawn_signatures: boolean; + org_allowed_team_admins: boolean; + cloud_auto_export: boolean; + digitally_sign_dowloaded_docs: boolean; + invite_completion_redirect_url: boolean; + invite_decline_redirect_url: boolean; + add_signature_stamp: boolean; + pending_invite_document_view_notification: boolean; + signing_link_document_download: boolean; + required_preset_signature_name: boolean; + cloud_export_with_history: boolean; + emailed_docs_include_history: boolean; + require_email_subject: boolean; + document_completion_retention_days: boolean; + enable_hyperlink_protection: boolean; + enable_advanced_threat_protection: boolean; + require_login_for_signing: boolean; + logout_on_signing: boolean; + audit_trail_completion_retention_days: boolean; + front_end_session_length: boolean; + email_admin_on_banned_login: boolean; + add_signature_stamp_with_name: boolean; + cfr_title21_part11: boolean; + unsuccessful_logout_attempts_allowed: boolean; + require_authentication_for_invites: boolean; + electronic_consent_required: boolean; + electronic_consent_text: boolean; + document_guide: boolean; + watermark_downloaded_document: boolean; + restrict_download: boolean; + disable_email_notifications: boolean; + upload_limit: boolean; + document_schema_extended: boolean; + invite_update_notifications_for_all_invites_at_invite_create: boolean; + enable_full_story_tracker: boolean; + document_attachment_only_for_signer: boolean; + sso_only_login: boolean; + block_export_options_when_credit_card_validation_is_used: boolean; + only_administrator_is_able_to_invite_to_the_team: boolean; + block_login_via_social_networks: boolean; +} diff --git a/src/api/document/response/data/shareInfo.ts b/src/api/document/response/data/shareInfo.ts new file mode 100644 index 00000000..f2082d4a --- /dev/null +++ b/src/api/document/response/data/shareInfo.ts @@ -0,0 +1,12 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface ShareInfo { + is_team_shared: boolean; +} diff --git a/src/api/document/response/data/signature.ts b/src/api/document/response/data/signature.ts new file mode 100644 index 00000000..ce478b56 --- /dev/null +++ b/src/api/document/response/data/signature.ts @@ -0,0 +1,25 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Signature { + id: string; + user_id: string; + signature_request_id: string | null; + email: string; + page_number: string; + width: string; + height: string; + x: string; + y: string; + subtype: string; + allow_editing: boolean; + created: number; + owner_as_recipient?: boolean; + data?: string; +} diff --git a/src/api/document/response/data/signingSessionSettings.ts b/src/api/document/response/data/signingSessionSettings.ts new file mode 100644 index 00000000..a1d285ff --- /dev/null +++ b/src/api/document/response/data/signingSessionSettings.ts @@ -0,0 +1,12 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface SigningSessionSettings { + welcome_message: string | null; +} diff --git a/src/api/document/response/data/size.ts b/src/api/document/response/data/size.ts new file mode 100644 index 00000000..45094f83 --- /dev/null +++ b/src/api/document/response/data/size.ts @@ -0,0 +1,13 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Size { + width: number; + height: number; +} diff --git a/src/api/document/response/data/tag.ts b/src/api/document/response/data/tag.ts new file mode 100644 index 00000000..4fedec9e --- /dev/null +++ b/src/api/document/response/data/tag.ts @@ -0,0 +1,13 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Tag { + type: string; + name: string; +} diff --git a/src/api/document/response/data/text.ts b/src/api/document/response/data/text.ts new file mode 100644 index 00000000..de16db76 --- /dev/null +++ b/src/api/document/response/data/text.ts @@ -0,0 +1,36 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Text { + id: string; + font: string; + size: string; + data: string; + page_number: string; + x: string; + y: string; + subtype: string; + created: string; + align: string; + is_width_fixed: boolean; + allow_editing: boolean; + owner_as_recipient?: boolean | null; + user_id?: string | null; + email?: string; + width?: string; + height?: string; + line_height?: number; + color?: string | null; + italic?: boolean; + underline?: boolean; + bold?: boolean; + original_font_size?: string | null; + prefill_content_type?: string | null; + integration_object_id?: string | null; +} diff --git a/src/api/document/response/data/thumbnail.ts b/src/api/document/response/data/thumbnail.ts new file mode 100644 index 00000000..92504707 --- /dev/null +++ b/src/api/document/response/data/thumbnail.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Thumbnail { + small: string; + medium: string; + large: string; +} diff --git a/src/api/document/response/data/viewerFieldInvite/emailGroup.ts b/src/api/document/response/data/viewerFieldInvite/emailGroup.ts new file mode 100644 index 00000000..06edd46f --- /dev/null +++ b/src/api/document/response/data/viewerFieldInvite/emailGroup.ts @@ -0,0 +1,13 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface EmailGroup { + id?: string | null; + name?: string | null; +} diff --git a/src/api/document/response/data/viewerFieldInvite/emailStatus.ts b/src/api/document/response/data/viewerFieldInvite/emailStatus.ts new file mode 100644 index 00000000..d2d1e6cd --- /dev/null +++ b/src/api/document/response/data/viewerFieldInvite/emailStatus.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface EmailStatus { + status: string; + created_at: number; + last_reaction_at: number; +} diff --git a/src/api/document/response/data/viewerFieldInvite/viewerFieldInvite.ts b/src/api/document/response/data/viewerFieldInvite/viewerFieldInvite.ts new file mode 100644 index 00000000..20c27e03 --- /dev/null +++ b/src/api/document/response/data/viewerFieldInvite/viewerFieldInvite.ts @@ -0,0 +1,26 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { EmailGroup } from './emailGroup'; +import { EmailStatus } from './emailStatus'; + +export interface ViewerFieldInvite { + id: string; + status: string; + created: string; + updated: string; + email: string; + redirect_target: string; + email_group: EmailGroup; + email_statuses: EmailStatus[]; + signer_user_id?: string | null; + role?: string | null; + role_id?: string | null; + close_redirect_uri?: string | null; +} diff --git a/src/api/document/response/data/viewerRole.ts b/src/api/document/response/data/viewerRole.ts new file mode 100644 index 00000000..222a748d --- /dev/null +++ b/src/api/document/response/data/viewerRole.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface ViewerRole { + unique_id: string; + signing_order: string; + name: string; +} diff --git a/src/api/document/response/documentDownloadGet.ts b/src/api/document/response/documentDownloadGet.ts new file mode 100644 index 00000000..ae8559d8 --- /dev/null +++ b/src/api/document/response/documentDownloadGet.ts @@ -0,0 +1,11 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface DocumentDownloadGet { +} diff --git a/src/api/document/response/documentDownloadLinkPost.ts b/src/api/document/response/documentDownloadLinkPost.ts new file mode 100644 index 00000000..2bb57bd3 --- /dev/null +++ b/src/api/document/response/documentDownloadLinkPost.ts @@ -0,0 +1,12 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface DocumentDownloadLinkPost { + link: string; +} diff --git a/src/api/document/response/documentGet.ts b/src/api/document/response/documentGet.ts new file mode 100644 index 00000000..4ceacac2 --- /dev/null +++ b/src/api/document/response/documentGet.ts @@ -0,0 +1,95 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Page } from './data/page'; +import { EntityLabel } from './data/entityLabel'; +import { RoutingDetail } from './data/routingDetail/routingDetail'; +import { Thumbnail } from './data/thumbnail'; +import { Signature } from './data/signature'; +import { Tag } from './data/tag'; +import { Field } from './data/field'; +import { Role } from './data/role'; +import { ViewerRole } from './data/viewerRole'; +import { FieldInvite } from './data/fieldInvite/fieldInvite'; +import { ViewerFieldInvite } from './data/viewerFieldInvite/viewerFieldInvite'; +import { SigningSessionSettings } from './data/signingSessionSettings'; +import { EnumerationOption } from './data/enumerationOption'; +import { Payment } from './data/payment'; +import { Integration } from './data/integration'; +import { IntegrationObject } from './data/integrationObject'; +import { ExportedTo } from './data/exportedTo/exportedTo'; +import { Radiobutton } from './data/radiobutton/radiobutton'; +import { Seal } from './data/seal'; +import { Check } from './data/check'; +import { Text } from './data/text'; +import { Line } from './data/line/line'; +import { Attachment } from './data/attachment'; +import { Hyperlink } from './data/hyperlink'; +import { Request } from './data/request/request'; +import { Insert } from './data/insert'; +import { FieldsData } from './data/fieldsData'; +import { FieldValidator } from './data/fieldValidator'; +import { OriginatorOrganizationSettings } from './data/originatorOrganizationSettings'; +import { DocumentGroupInfo } from './data/documentGroupInfo'; +import { DocumentGroupTemplateInfo } from './data/documentGroupTemplateInfo'; +import { Settings } from './data/settings'; +import { ShareInfo } from './data/shareInfo'; + +export interface DocumentGet { + id: string; + user_id: string; + document_name: string; + page_count: string; + created: number; + updated: number; + original_filename: string; + owner: string; + owner_name: string; + template: boolean; + parent_id: string; + originator_logo: string; + pages: Page[]; + version_time: number; + routing_details: RoutingDetail[]; + thumbnail: Thumbnail; + signatures: Signature[]; + tags: Tag[]; + fields: Field[]; + roles: Role[]; + viewer_roles: ViewerRole[]; + signing_session_settings: SigningSessionSettings; + originator_organization_settings: OriginatorOrganizationSettings[]; + document_group_info: DocumentGroupInfo; + settings: Settings; + share_info: ShareInfo; + origin_user_id?: string | null; + origin_document_id?: string | null; + recently_used?: string; + default_folder?: string; + entity_labels?: EntityLabel[]; + field_invites?: FieldInvite[]; + viewer_field_invites?: ViewerFieldInvite[]; + enumeration_options?: EnumerationOption[]; + payments?: Payment[]; + integrations?: Integration[]; + integration_objects?: IntegrationObject[]; + exported_to?: ExportedTo[]; + radiobuttons?: Radiobutton[]; + seals?: Seal[]; + checks?: Check[]; + texts?: Text[]; + lines?: Line[]; + attachments?: Attachment[]; + hyperlinks?: Hyperlink[]; + requests?: Request[]; + inserts?: Insert[]; + fields_data?: FieldsData[]; + field_validators?: FieldValidator[]; + document_group_template_info?: DocumentGroupTemplateInfo[]; +} diff --git a/src/api/document/response/documentMergePost.ts b/src/api/document/response/documentMergePost.ts new file mode 100644 index 00000000..192aea4f --- /dev/null +++ b/src/api/document/response/documentMergePost.ts @@ -0,0 +1,12 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface DocumentMergePost { + document_id?: string[]; +} diff --git a/src/api/document/response/documentMovePost.ts b/src/api/document/response/documentMovePost.ts new file mode 100644 index 00000000..ff47d3bd --- /dev/null +++ b/src/api/document/response/documentMovePost.ts @@ -0,0 +1,12 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface DocumentMovePost { + result: string; +} diff --git a/src/api/document/response/documentPost.ts b/src/api/document/response/documentPost.ts new file mode 100644 index 00000000..adf134ba --- /dev/null +++ b/src/api/document/response/documentPost.ts @@ -0,0 +1,12 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface DocumentPost { + id: string; +} diff --git a/src/api/document/response/documentPut.ts b/src/api/document/response/documentPut.ts new file mode 100644 index 00000000..729ded02 --- /dev/null +++ b/src/api/document/response/documentPut.ts @@ -0,0 +1,12 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface DocumentPut { + id: string; +} diff --git a/src/api/document/response/fieldExtractPost.ts b/src/api/document/response/fieldExtractPost.ts new file mode 100644 index 00000000..3fc47247 --- /dev/null +++ b/src/api/document/response/fieldExtractPost.ts @@ -0,0 +1,12 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface FieldExtractPost { + id: string; +} diff --git a/src/api/document/response/fieldsGet.ts b/src/api/document/response/fieldsGet.ts new file mode 100644 index 00000000..7da08bf2 --- /dev/null +++ b/src/api/document/response/fieldsGet.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Data } from './data/data'; + +export interface FieldsGet { + data: Data[]; +} diff --git a/src/api/documentField/index.ts b/src/api/documentField/index.ts new file mode 100644 index 00000000..d900cb25 --- /dev/null +++ b/src/api/documentField/index.ts @@ -0,0 +1,12 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export type { DocumentPrefillPut as DocumentPrefillPutResponse } from './response/documentPrefillPut'; +export type { Field as FieldRequest } from './request/data/field'; +export { DocumentPrefillPut as DocumentPrefillPutRequest } from './request/documentPrefillPut'; diff --git a/src/api/documentField/request/data/field.ts b/src/api/documentField/request/data/field.ts new file mode 100644 index 00000000..a2288423 --- /dev/null +++ b/src/api/documentField/request/data/field.ts @@ -0,0 +1,13 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Field { + field_name: string; + prefilled_text: string; +} diff --git a/src/api/documentField/request/documentPrefillPut.ts b/src/api/documentField/request/documentPrefillPut.ts new file mode 100644 index 00000000..e8ac7dca --- /dev/null +++ b/src/api/documentField/request/documentPrefillPut.ts @@ -0,0 +1,55 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; +import { Field } from './data/field'; + +export class DocumentPrefillPut implements BaseClass { + private queryParams: Record = {}; + + constructor( + private documentId: string, + private fields: Field[], + ) {} + + public getPayload(): Record { + return { + document_id: this.documentId, + fields: this.fields, + }; + } + + public getMethod(): string { + return HttpMethod.PUT; + } + + public getUrl(): string { + return '/v2/documents/{document_id}/prefill-texts'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { document_id: string } { + return { + document_id: this.documentId, + }; + } +} diff --git a/src/api/documentField/response/documentPrefillPut.ts b/src/api/documentField/response/documentPrefillPut.ts new file mode 100644 index 00000000..58d43934 --- /dev/null +++ b/src/api/documentField/response/documentPrefillPut.ts @@ -0,0 +1,11 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface DocumentPrefillPut { +} diff --git a/src/api/documentGroup/index.ts b/src/api/documentGroup/index.ts new file mode 100644 index 00000000..c9e01cc1 --- /dev/null +++ b/src/api/documentGroup/index.ts @@ -0,0 +1,20 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export type { AllowedUnmappedSignDocument as DataAllowedUnmappedSignDocumentResponse } from './response/data/data/allowedUnmappedSignDocument'; +export type { Attribute as DataAttributeResponse } from './response/data/data/attribute'; +export type { Authentication as DataAuthenticationResponse } from './response/data/data/authentication'; +export type { Data as DataDataResponse } from './response/data/data/data'; +export type { Document as DataDocumentResponse } from './response/data/data/document'; +export type { DocumentGroupRecipientsGet as DocumentGroupRecipientsGetResponse } from './response/documentGroupRecipientsGet'; +export type { EmailGroup as DataEmailGroupResponse } from './response/data/data/emailGroup'; +export type { Recipient as DataRecipientResponse } from './response/data/data/recipient'; +export type { Reminder as DataReminderResponse } from './response/data/data/reminder'; +export type { UnmappedDocument as DataUnmappedDocumentResponse } from './response/data/data/unmappedDocument'; +export { DocumentGroupRecipientsGet as DocumentGroupRecipientsGetRequest } from './request/documentGroupRecipientsGet'; diff --git a/src/api/documentGroup/request/documentGroupDelete.ts b/src/api/documentGroup/request/documentGroupDelete.ts new file mode 100644 index 00000000..a013e436 --- /dev/null +++ b/src/api/documentGroup/request/documentGroupDelete.ts @@ -0,0 +1,50 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class DocumentGroupDelete implements BaseClass { + private queryParams: Record = {}; + + constructor(private documentGroupId: string) {} + + public getPayload(): Record { + return { + document_group_id: this.documentGroupId, + }; + } + + public getMethod(): string { + return HttpMethod.DELETE; + } + + public getUrl(): string { + return '/documentgroup/{document_group_id}'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { document_group_id: string } { + return { + document_group_id: this.documentGroupId, + }; + } +} diff --git a/src/api/documentGroup/request/documentGroupGet.ts b/src/api/documentGroup/request/documentGroupGet.ts new file mode 100644 index 00000000..e4e1cf7f --- /dev/null +++ b/src/api/documentGroup/request/documentGroupGet.ts @@ -0,0 +1,50 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class DocumentGroupGet implements BaseClass { + private queryParams: Record = {}; + + constructor(private documentGroupId: string) {} + + public getPayload(): Record { + return { + document_group_id: this.documentGroupId, + }; + } + + public getMethod(): string { + return HttpMethod.GET; + } + + public getUrl(): string { + return '/documentgroup/{document_group_id}'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { document_group_id: string } { + return { + document_group_id: this.documentGroupId, + }; + } +} diff --git a/src/api/documentGroup/request/documentGroupPost.ts b/src/api/documentGroup/request/documentGroupPost.ts new file mode 100644 index 00000000..824da5e6 --- /dev/null +++ b/src/api/documentGroup/request/documentGroupPost.ts @@ -0,0 +1,52 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class DocumentGroupPost implements BaseClass { + private queryParams: Record = {}; + + constructor( + private documentIds: string[], + private groupName: string, + ) {} + + public getPayload(): Record { + return { + document_ids: this.documentIds, + group_name: this.groupName, + }; + } + + public getMethod(): string { + return HttpMethod.POST; + } + + public getUrl(): string { + return '/documentgroup'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): null { + return null; + } +} diff --git a/src/api/documentGroup/request/documentGroupRecipientsGet.ts b/src/api/documentGroup/request/documentGroupRecipientsGet.ts new file mode 100644 index 00000000..dbd27102 --- /dev/null +++ b/src/api/documentGroup/request/documentGroupRecipientsGet.ts @@ -0,0 +1,50 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class DocumentGroupRecipientsGet implements BaseClass { + private queryParams: Record = {}; + + constructor(private documentGroupId: string) {} + + public getPayload(): Record { + return { + document_group_id: this.documentGroupId, + }; + } + + public getMethod(): string { + return HttpMethod.GET; + } + + public getUrl(): string { + return '/v2/document-groups/{document_group_id}/recipients'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { document_group_id: string } { + return { + document_group_id: this.documentGroupId, + }; + } +} diff --git a/src/api/documentGroup/request/downloadDocumentGroupPost.ts b/src/api/documentGroup/request/downloadDocumentGroupPost.ts new file mode 100644 index 00000000..894087d6 --- /dev/null +++ b/src/api/documentGroup/request/downloadDocumentGroupPost.ts @@ -0,0 +1,58 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class DownloadDocumentGroupPost implements BaseClass { + private queryParams: Record = {}; + + constructor( + private documentGroupId: string, + private type: string, + private withHistory: string, + private documentOrder: string[] = [], + ) {} + + public getPayload(): Record { + return { + document_group_id: this.documentGroupId, + type: this.type, + with_history: this.withHistory, + document_order: this.documentOrder, + }; + } + + public getMethod(): string { + return HttpMethod.POST; + } + + public getUrl(): string { + return '/documentgroup/{document_group_id}/downloadall'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { document_group_id: string } { + return { + document_group_id: this.documentGroupId, + }; + } +} diff --git a/src/api/documentGroup/response/data/data/allowedUnmappedSignDocument.ts b/src/api/documentGroup/response/data/data/allowedUnmappedSignDocument.ts new file mode 100644 index 00000000..ee7c3fe4 --- /dev/null +++ b/src/api/documentGroup/response/data/data/allowedUnmappedSignDocument.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface AllowedUnmappedSignDocument { + id: string; + role: string; + recipient: string; +} diff --git a/src/api/documentGroup/response/data/data/attribute.ts b/src/api/documentGroup/response/data/data/attribute.ts new file mode 100644 index 00000000..39b05207 --- /dev/null +++ b/src/api/documentGroup/response/data/data/attribute.ts @@ -0,0 +1,22 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Reminder } from './reminder'; +import { Authentication } from './authentication'; + +export interface Attribute { + allow_forwarding: boolean; + show_decline_button: boolean; + i_am_recipient: boolean; + message?: string; + subject?: string; + expiration_days?: number; + reminder?: Reminder; + authentication?: Authentication; +} diff --git a/src/api/documentGroup/response/data/data/authentication.ts b/src/api/documentGroup/response/data/data/authentication.ts new file mode 100644 index 00000000..a2459178 --- /dev/null +++ b/src/api/documentGroup/response/data/data/authentication.ts @@ -0,0 +1,15 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Authentication { + type: string; + value: string; + phone?: string; + method?: string; +} diff --git a/src/api/documentGroup/response/data/data/data.ts b/src/api/documentGroup/response/data/data/data.ts new file mode 100644 index 00000000..e54057ee --- /dev/null +++ b/src/api/documentGroup/response/data/data/data.ts @@ -0,0 +1,19 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Recipient } from './recipient'; +import { UnmappedDocument } from './unmappedDocument'; +import { AllowedUnmappedSignDocument } from './allowedUnmappedSignDocument'; + +export interface Data { + recipients: Recipient[]; + unmapped_documents: UnmappedDocument[]; + allowed_unmapped_sign_documents: AllowedUnmappedSignDocument[]; + cc: string[]; +} diff --git a/src/api/documentGroup/response/data/data/document.ts b/src/api/documentGroup/response/data/data/document.ts new file mode 100644 index 00000000..126ac696 --- /dev/null +++ b/src/api/documentGroup/response/data/data/document.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Document { + id: string; + role: string; + action: string; +} diff --git a/src/api/documentGroup/response/data/data/emailGroup.ts b/src/api/documentGroup/response/data/data/emailGroup.ts new file mode 100644 index 00000000..a15e4445 --- /dev/null +++ b/src/api/documentGroup/response/data/data/emailGroup.ts @@ -0,0 +1,12 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface EmailGroup { + id?: string; +} diff --git a/src/api/documentGroup/response/data/data/recipient.ts b/src/api/documentGroup/response/data/data/recipient.ts new file mode 100644 index 00000000..3953cb95 --- /dev/null +++ b/src/api/documentGroup/response/data/data/recipient.ts @@ -0,0 +1,21 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { EmailGroup } from './emailGroup'; +import { Attribute } from './attribute'; +import { Document } from './document'; + +export interface Recipient { + name: string; + email: string; + order: number; + documents: Document[]; + email_group?: EmailGroup; + attributes?: Attribute; +} diff --git a/src/api/documentGroup/response/data/data/reminder.ts b/src/api/documentGroup/response/data/data/reminder.ts new file mode 100644 index 00000000..e7f2d1e5 --- /dev/null +++ b/src/api/documentGroup/response/data/data/reminder.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Reminder { + remind_after?: number; + remind_before?: number; + remind_repeat?: number; +} diff --git a/src/api/documentGroup/response/data/data/unmappedDocument.ts b/src/api/documentGroup/response/data/data/unmappedDocument.ts new file mode 100644 index 00000000..0a33abbc --- /dev/null +++ b/src/api/documentGroup/response/data/data/unmappedDocument.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface UnmappedDocument { + id: string; + role: string; + action: string; +} diff --git a/src/api/documentGroup/response/data/document/document.ts b/src/api/documentGroup/response/data/document/document.ts new file mode 100644 index 00000000..93b85028 --- /dev/null +++ b/src/api/documentGroup/response/data/document/document.ts @@ -0,0 +1,20 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Thumbnail } from './thumbnail'; + +export interface Document { + id: string; + roles: string[]; + document_name: string; + thumbnail: Thumbnail; + origin_document_id?: string | null; + has_unassigned_field?: boolean; + has_credit_card_number?: boolean; +} diff --git a/src/api/documentGroup/response/data/document/thumbnail.ts b/src/api/documentGroup/response/data/document/thumbnail.ts new file mode 100644 index 00000000..92504707 --- /dev/null +++ b/src/api/documentGroup/response/data/document/thumbnail.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Thumbnail { + small: string; + medium: string; + large: string; +} diff --git a/src/api/documentGroup/response/data/originatorOrganizationSettings.ts b/src/api/documentGroup/response/data/originatorOrganizationSettings.ts new file mode 100644 index 00000000..80c1fe3f --- /dev/null +++ b/src/api/documentGroup/response/data/originatorOrganizationSettings.ts @@ -0,0 +1,13 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface OriginatorOrganizationSettings { + setting: string; + value: string; +} diff --git a/src/api/documentGroup/response/documentGroupDelete.ts b/src/api/documentGroup/response/documentGroupDelete.ts new file mode 100644 index 00000000..1069d906 --- /dev/null +++ b/src/api/documentGroup/response/documentGroupDelete.ts @@ -0,0 +1,12 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface DocumentGroupDelete { + status: string; +} diff --git a/src/api/documentGroup/response/documentGroupGet.ts b/src/api/documentGroup/response/documentGroupGet.ts new file mode 100644 index 00000000..609461ef --- /dev/null +++ b/src/api/documentGroup/response/documentGroupGet.ts @@ -0,0 +1,19 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Document } from './data/document/document'; +import { OriginatorOrganizationSettings } from './data/originatorOrganizationSettings'; + +export interface DocumentGroupGet { + id: string; + group_name: string; + documents: Document[]; + originator_organization_settings: OriginatorOrganizationSettings[]; + invite_id?: string | null; +} diff --git a/src/api/documentGroup/response/documentGroupPost.ts b/src/api/documentGroup/response/documentGroupPost.ts new file mode 100644 index 00000000..2a3aada6 --- /dev/null +++ b/src/api/documentGroup/response/documentGroupPost.ts @@ -0,0 +1,12 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface DocumentGroupPost { + id: string; +} diff --git a/src/api/documentGroup/response/documentGroupRecipientsGet.ts b/src/api/documentGroup/response/documentGroupRecipientsGet.ts new file mode 100644 index 00000000..a1fd760b --- /dev/null +++ b/src/api/documentGroup/response/documentGroupRecipientsGet.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Data } from './data/data/data'; + +export interface DocumentGroupRecipientsGet { + data: Data; +} diff --git a/src/api/documentGroup/response/downloadDocumentGroupPost.ts b/src/api/documentGroup/response/downloadDocumentGroupPost.ts new file mode 100644 index 00000000..0d4b6472 --- /dev/null +++ b/src/api/documentGroup/response/downloadDocumentGroupPost.ts @@ -0,0 +1,11 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface DownloadDocumentGroupPost { +} diff --git a/src/api/documentGroupInvite/index.ts b/src/api/documentGroupInvite/index.ts new file mode 100644 index 00000000..48d3d4a5 --- /dev/null +++ b/src/api/documentGroupInvite/index.ts @@ -0,0 +1,36 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export type { Action as InviteActionResponse } from './response/data/invite/action'; +export type { Authentication as InviteStepAuthenticationRequest } from './request/data/inviteStep/authentication'; +export type { CancelGroupInvitePost as CancelGroupInvitePostResponse } from './response/cancelGroupInvitePost'; +export type { CompletionEmail as CompletionEmailRequest } from './request/data/completionEmail'; +export type { Email as EmailGroupEmailRequest } from './request/data/emailGroup/email'; +export type { EmailGroup as EmailGroupEmailGroupRequest } from './request/data/emailGroup/emailGroup'; +export type { EmailGroup as InviteStepEmailGroupRequest } from './request/data/inviteStep/emailGroup'; +export type { GroupInviteGet as GroupInviteGetResponse } from './response/groupInviteGet'; +export type { GroupInvitePost as GroupInvitePostResponse } from './response/groupInvitePost'; +export type { Invite as InviteInviteResponse } from './response/data/invite/invite'; +export type { Invite as InviteResponse } from './response/data/invite'; +export type { InviteAction as InviteStepInviteActionRequest } from './request/data/inviteStep/inviteAction'; +export type { InviteEmail as InviteEmailRequest } from './request/data/inviteEmail'; +export type { InviteEmail as InviteStepInviteEmailRequest } from './request/data/inviteStep/inviteEmail'; +export type { InviteStep as InviteStepInviteStepRequest } from './request/data/inviteStep/inviteStep'; +export type { PaymentRequest as InviteStepPaymentRequestRequest } from './request/data/inviteStep/paymentRequest'; +export type { PendingInviteGet as PendingInviteGetResponse } from './response/pendingInviteGet'; +export type { ReassignSignerPost as ReassignSignerPostResponse } from './response/reassignSignerPost'; +export type { ResendGroupInvitePost as ResendGroupInvitePostResponse } from './response/resendGroupInvitePost'; +export type { Step as InviteStepResponse } from './response/data/invite/step'; +export type { UpdateInviteActionAttribute as UpdateInviteActionAttributeRequest } from './request/data/updateInviteActionAttribute'; +export { CancelGroupInvitePost as CancelGroupInvitePostRequest } from './request/cancelGroupInvitePost'; +export { GroupInviteGet as GroupInviteGetRequest } from './request/groupInviteGet'; +export { GroupInvitePost as GroupInvitePostRequest } from './request/groupInvitePost'; +export { PendingInviteGet as PendingInviteGetRequest } from './request/pendingInviteGet'; +export { ReassignSignerPost as ReassignSignerPostRequest } from './request/reassignSignerPost'; +export { ResendGroupInvitePost as ResendGroupInvitePostRequest } from './request/resendGroupInvitePost'; diff --git a/src/api/documentGroupInvite/request/cancelGroupInvitePost.ts b/src/api/documentGroupInvite/request/cancelGroupInvitePost.ts new file mode 100644 index 00000000..feefe55b --- /dev/null +++ b/src/api/documentGroupInvite/request/cancelGroupInvitePost.ts @@ -0,0 +1,55 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class CancelGroupInvitePost implements BaseClass { + private queryParams: Record = {}; + + constructor( + private documentGroupId: string, + private inviteId: string, + ) {} + + public getPayload(): Record { + return { + document_group_id: this.documentGroupId, + invite_id: this.inviteId, + }; + } + + public getMethod(): string { + return HttpMethod.POST; + } + + public getUrl(): string { + return '/documentgroup/{document_group_id}/groupinvite/{invite_id}/cancelinvite'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { document_group_id: string; invite_id: string } { + return { + document_group_id: this.documentGroupId, + invite_id: this.inviteId, + }; + } +} diff --git a/src/api/documentGroupInvite/request/data/completionEmail.ts b/src/api/documentGroupInvite/request/data/completionEmail.ts new file mode 100644 index 00000000..c307530a --- /dev/null +++ b/src/api/documentGroupInvite/request/data/completionEmail.ts @@ -0,0 +1,15 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface CompletionEmail { + email?: string; + disable_document_attachment?: number; + subject?: string; + message?: string; +} diff --git a/src/api/documentGroupInvite/request/data/emailGroup/email.ts b/src/api/documentGroupInvite/request/data/emailGroup/email.ts new file mode 100644 index 00000000..59aabc72 --- /dev/null +++ b/src/api/documentGroupInvite/request/data/emailGroup/email.ts @@ -0,0 +1,12 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Email { + email: string; +} diff --git a/src/api/documentGroupInvite/request/data/emailGroup/emailGroup.ts b/src/api/documentGroupInvite/request/data/emailGroup/emailGroup.ts new file mode 100644 index 00000000..6b9cc2d2 --- /dev/null +++ b/src/api/documentGroupInvite/request/data/emailGroup/emailGroup.ts @@ -0,0 +1,16 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Email } from './email'; + +export interface EmailGroup { + id: string; + name: string; + emails?: Email[]; +} diff --git a/src/api/documentGroupInvite/request/data/inviteEmail.ts b/src/api/documentGroupInvite/request/data/inviteEmail.ts new file mode 100644 index 00000000..c8cc4065 --- /dev/null +++ b/src/api/documentGroupInvite/request/data/inviteEmail.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface InviteEmail { + email?: string; + reminder?: number; + expiration_days?: number; +} diff --git a/src/api/documentGroupInvite/request/data/inviteStep/authentication.ts b/src/api/documentGroupInvite/request/data/inviteStep/authentication.ts new file mode 100644 index 00000000..4d9eaad4 --- /dev/null +++ b/src/api/documentGroupInvite/request/data/inviteStep/authentication.ts @@ -0,0 +1,16 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Authentication { + type: string; + value: string; + method?: string; + phone?: string; + message?: string; +} diff --git a/src/api/documentGroupInvite/request/data/inviteStep/emailGroup.ts b/src/api/documentGroupInvite/request/data/inviteStep/emailGroup.ts new file mode 100644 index 00000000..c6051490 --- /dev/null +++ b/src/api/documentGroupInvite/request/data/inviteStep/emailGroup.ts @@ -0,0 +1,12 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface EmailGroup { + name?: string; +} diff --git a/src/api/documentGroupInvite/request/data/inviteStep/inviteAction.ts b/src/api/documentGroupInvite/request/data/inviteStep/inviteAction.ts new file mode 100644 index 00000000..fe46f318 --- /dev/null +++ b/src/api/documentGroupInvite/request/data/inviteStep/inviteAction.ts @@ -0,0 +1,29 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { EmailGroup } from './emailGroup'; +import { Authentication } from './authentication'; +import { PaymentRequest } from './paymentRequest'; + +export interface InviteAction { + email: string; + role_name: string; + action: string; + document_id: string; + email_group?: EmailGroup; + required_preset_signature_name?: string; + allow_reassign?: string; + decline_by_signature?: string; + authentication?: Authentication; + payment_request?: PaymentRequest; + redirect_uri?: string; + decline_redirect_uri?: string; + redirect_target?: string; + language?: string; +} diff --git a/src/api/documentGroupInvite/request/data/inviteStep/inviteEmail.ts b/src/api/documentGroupInvite/request/data/inviteStep/inviteEmail.ts new file mode 100644 index 00000000..73b0beb5 --- /dev/null +++ b/src/api/documentGroupInvite/request/data/inviteStep/inviteEmail.ts @@ -0,0 +1,19 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { EmailGroup } from './emailGroup'; + +export interface InviteEmail { + email: string; + subject: string; + message: string; + email_group?: EmailGroup; + expiration_days?: number; + reminder?: number; +} diff --git a/src/api/documentGroupInvite/request/data/inviteStep/inviteStep.ts b/src/api/documentGroupInvite/request/data/inviteStep/inviteStep.ts new file mode 100644 index 00000000..0f7b57f0 --- /dev/null +++ b/src/api/documentGroupInvite/request/data/inviteStep/inviteStep.ts @@ -0,0 +1,17 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { InviteEmail } from './inviteEmail'; +import { InviteAction } from './inviteAction'; + +export interface InviteStep { + order: number; + invite_actions: InviteAction[]; + invite_emails?: InviteEmail[]; +} diff --git a/src/api/documentGroupInvite/request/data/inviteStep/paymentRequest.ts b/src/api/documentGroupInvite/request/data/inviteStep/paymentRequest.ts new file mode 100644 index 00000000..77b968c2 --- /dev/null +++ b/src/api/documentGroupInvite/request/data/inviteStep/paymentRequest.ts @@ -0,0 +1,15 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface PaymentRequest { + merchant_id?: string; + currency?: string; + type?: string; + amount?: string; +} diff --git a/src/api/documentGroupInvite/request/data/updateInviteActionAttribute.ts b/src/api/documentGroupInvite/request/data/updateInviteActionAttribute.ts new file mode 100644 index 00000000..e72b48be --- /dev/null +++ b/src/api/documentGroupInvite/request/data/updateInviteActionAttribute.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface UpdateInviteActionAttribute { + document_id?: string; + allow_reassign?: number; + decline_by_signature?: string; +} diff --git a/src/api/documentGroupInvite/request/groupInviteGet.ts b/src/api/documentGroupInvite/request/groupInviteGet.ts new file mode 100644 index 00000000..36c4cb9a --- /dev/null +++ b/src/api/documentGroupInvite/request/groupInviteGet.ts @@ -0,0 +1,55 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class GroupInviteGet implements BaseClass { + private queryParams: Record = {}; + + constructor( + private documentGroupId: string, + private inviteId: string, + ) {} + + public getPayload(): Record { + return { + document_group_id: this.documentGroupId, + invite_id: this.inviteId, + }; + } + + public getMethod(): string { + return HttpMethod.GET; + } + + public getUrl(): string { + return '/documentgroup/{document_group_id}/groupinvite/{invite_id}'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { document_group_id: string; invite_id: string } { + return { + document_group_id: this.documentGroupId, + invite_id: this.inviteId, + }; + } +} diff --git a/src/api/documentGroupInvite/request/groupInvitePost.ts b/src/api/documentGroupInvite/request/groupInvitePost.ts new file mode 100644 index 00000000..6e49a076 --- /dev/null +++ b/src/api/documentGroupInvite/request/groupInvitePost.ts @@ -0,0 +1,71 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; +import { InviteStep } from './data/inviteStep/inviteStep'; +import { EmailGroup } from './data/emailGroup/emailGroup'; +import { CompletionEmail } from './data/completionEmail'; + +export class GroupInvitePost implements BaseClass { + private queryParams: Record = {}; + + constructor( + private documentGroupId: string, + private inviteSteps: InviteStep[], + private cc: string[], + private emailGroups: EmailGroup[] = [], + private completionEmails: CompletionEmail[] = [], + private signAsMerged: boolean = true, + private clientTimestamp: number = 0, + private ccSubject: string = '', + private ccMessage: string = '', + ) {} + + public getPayload(): Record { + return { + document_group_id: this.documentGroupId, + invite_steps: this.inviteSteps, + email_groups: this.emailGroups, + completion_emails: this.completionEmails, + sign_as_merged: this.signAsMerged, + client_timestamp: this.clientTimestamp, + cc: this.cc, + cc_subject: this.ccSubject, + cc_message: this.ccMessage, + }; + } + + public getMethod(): string { + return HttpMethod.POST; + } + + public getUrl(): string { + return '/documentgroup/{document_group_id}/groupinvite'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { document_group_id: string } { + return { + document_group_id: this.documentGroupId, + }; + } +} diff --git a/src/api/documentGroupInvite/request/pendingInviteGet.ts b/src/api/documentGroupInvite/request/pendingInviteGet.ts new file mode 100644 index 00000000..39733f93 --- /dev/null +++ b/src/api/documentGroupInvite/request/pendingInviteGet.ts @@ -0,0 +1,55 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class PendingInviteGet implements BaseClass { + private queryParams: Record = {}; + + constructor( + private documentGroupId: string, + private inviteId: string, + ) {} + + public getPayload(): Record { + return { + document_group_id: this.documentGroupId, + invite_id: this.inviteId, + }; + } + + public getMethod(): string { + return HttpMethod.GET; + } + + public getUrl(): string { + return '/documentgroup/{document_group_id}/groupinvite/{invite_id}/pendinginvites'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { document_group_id: string; invite_id: string } { + return { + document_group_id: this.documentGroupId, + invite_id: this.inviteId, + }; + } +} diff --git a/src/api/documentGroupInvite/request/reassignSignerPost.ts b/src/api/documentGroupInvite/request/reassignSignerPost.ts new file mode 100644 index 00000000..1ea41974 --- /dev/null +++ b/src/api/documentGroupInvite/request/reassignSignerPost.ts @@ -0,0 +1,68 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; +import { InviteEmail } from './data/inviteEmail'; +import { UpdateInviteActionAttribute } from './data/updateInviteActionAttribute'; + +export class ReassignSignerPost implements BaseClass { + private queryParams: Record = {}; + + constructor( + private documentGroupId: string, + private inviteId: string, + private stepId: string, + private userToUpdate: string, + private replaceWithThisUser: string = '', + private inviteEmail: InviteEmail = [], + private updateInviteActionAttributes: UpdateInviteActionAttribute[] = [], + ) {} + + public getPayload(): Record { + return { + document_group_id: this.documentGroupId, + invite_id: this.inviteId, + step_id: this.stepId, + user_to_update: this.userToUpdate, + replace_with_this_user: this.replaceWithThisUser, + invite_email: this.inviteEmail, + update_invite_action_attributes: this.updateInviteActionAttributes, + }; + } + + public getMethod(): string { + return HttpMethod.POST; + } + + public getUrl(): string { + return '/documentgroup/{document_group_id}/groupinvite/{invite_id}/invitestep/{step_id}/update'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { document_group_id: string; invite_id: string; step_id: string } { + return { + document_group_id: this.documentGroupId, + invite_id: this.inviteId, + step_id: this.stepId, + }; + } +} diff --git a/src/api/documentGroupInvite/request/resendGroupInvitePost.ts b/src/api/documentGroupInvite/request/resendGroupInvitePost.ts new file mode 100644 index 00000000..9c760270 --- /dev/null +++ b/src/api/documentGroupInvite/request/resendGroupInvitePost.ts @@ -0,0 +1,57 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class ResendGroupInvitePost implements BaseClass { + private queryParams: Record = {}; + + constructor( + private documentGroupId: string, + private inviteId: string, + private email: string = '', + ) {} + + public getPayload(): Record { + return { + document_group_id: this.documentGroupId, + invite_id: this.inviteId, + email: this.email, + }; + } + + public getMethod(): string { + return HttpMethod.POST; + } + + public getUrl(): string { + return '/documentgroup/{document_group_id}/groupinvite/{invite_id}/resendinvites'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { document_group_id: string; invite_id: string } { + return { + document_group_id: this.documentGroupId, + invite_id: this.inviteId, + }; + } +} diff --git a/src/api/documentGroupInvite/response/cancelGroupInvitePost.ts b/src/api/documentGroupInvite/response/cancelGroupInvitePost.ts new file mode 100644 index 00000000..7d2f3b87 --- /dev/null +++ b/src/api/documentGroupInvite/response/cancelGroupInvitePost.ts @@ -0,0 +1,12 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface CancelGroupInvitePost { + status: string; +} diff --git a/src/api/documentGroupInvite/response/data/invite.ts b/src/api/documentGroupInvite/response/data/invite.ts new file mode 100644 index 00000000..7e59c256 --- /dev/null +++ b/src/api/documentGroupInvite/response/data/invite.ts @@ -0,0 +1,16 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Invite { + link: string; + document_name: string; + inviter_email: string; + action: string; + status: string; +} diff --git a/src/api/documentGroupInvite/response/data/invite/action.ts b/src/api/documentGroupInvite/response/data/invite/action.ts new file mode 100644 index 00000000..48d01cce --- /dev/null +++ b/src/api/documentGroupInvite/response/data/invite/action.ts @@ -0,0 +1,16 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Action { + action: string; + document_id: string; + status: string; + role_name: string; + email?: string; +} diff --git a/src/api/documentGroupInvite/response/data/invite/invite.ts b/src/api/documentGroupInvite/response/data/invite/invite.ts new file mode 100644 index 00000000..cb7ae801 --- /dev/null +++ b/src/api/documentGroupInvite/response/data/invite/invite.ts @@ -0,0 +1,16 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Step } from './step'; + +export interface Invite { + id: string; + status: string; + steps: Step[]; +} diff --git a/src/api/documentGroupInvite/response/data/invite/step.ts b/src/api/documentGroupInvite/response/data/invite/step.ts new file mode 100644 index 00000000..a86305be --- /dev/null +++ b/src/api/documentGroupInvite/response/data/invite/step.ts @@ -0,0 +1,17 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Action } from './action'; + +export interface Step { + id: string; + status: string; + order: number; + actions: Action[]; +} diff --git a/src/api/documentGroupInvite/response/groupInviteGet.ts b/src/api/documentGroupInvite/response/groupInviteGet.ts new file mode 100644 index 00000000..4a1aa6b3 --- /dev/null +++ b/src/api/documentGroupInvite/response/groupInviteGet.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Invite } from './data/invite/invite'; + +export interface GroupInviteGet { + invite: Invite; +} diff --git a/src/api/documentGroupInvite/response/groupInvitePost.ts b/src/api/documentGroupInvite/response/groupInvitePost.ts new file mode 100644 index 00000000..ce446c84 --- /dev/null +++ b/src/api/documentGroupInvite/response/groupInvitePost.ts @@ -0,0 +1,13 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface GroupInvitePost { + id: string; + pending_invite_link?: string | null; +} diff --git a/src/api/documentGroupInvite/response/pendingInviteGet.ts b/src/api/documentGroupInvite/response/pendingInviteGet.ts new file mode 100644 index 00000000..2b6161ba --- /dev/null +++ b/src/api/documentGroupInvite/response/pendingInviteGet.ts @@ -0,0 +1,17 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Invite } from './data/invite'; + +export interface PendingInviteGet { + invites: Invite[]; + document_group_name: string; + sign_as_merged: boolean; + owner_organization_id?: string | null; +} diff --git a/src/api/documentGroupInvite/response/reassignSignerPost.ts b/src/api/documentGroupInvite/response/reassignSignerPost.ts new file mode 100644 index 00000000..ca38a527 --- /dev/null +++ b/src/api/documentGroupInvite/response/reassignSignerPost.ts @@ -0,0 +1,12 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface ReassignSignerPost { + status: string; +} diff --git a/src/api/documentGroupInvite/response/resendGroupInvitePost.ts b/src/api/documentGroupInvite/response/resendGroupInvitePost.ts new file mode 100644 index 00000000..c1b6424e --- /dev/null +++ b/src/api/documentGroupInvite/response/resendGroupInvitePost.ts @@ -0,0 +1,12 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface ResendGroupInvitePost { + status: string; +} diff --git a/src/api/documentInvite/index.ts b/src/api/documentInvite/index.ts new file mode 100644 index 00000000..04acfb27 --- /dev/null +++ b/src/api/documentInvite/index.ts @@ -0,0 +1,31 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export type { CancelFreeFormInvitePut as CancelFreeFormInvitePutResponse } from './response/cancelFreeFormInvitePut'; +export type { CancelInvitePut as CancelInvitePutResponse } from './response/cancelInvitePut'; +export type { CcStep as CcStepRequest } from './request/data/ccStep'; +export type { Data as DataResponse } from './response/data/data'; +export type { Email as EmailGroupEmailRequest } from './request/data/emailGroup/email'; +export type { EmailGroup as EmailGroupEmailGroupRequest } from './request/data/emailGroup/emailGroup'; +export type { EmailGroup as EmailGroupRequest } from './request/data/emailGroup'; +export type { FreeFormInviteGet as FreeFormInviteGetResponse } from './response/freeFormInviteGet'; +export type { FreeFormInvitePost as FreeFormInvitePostResponse } from './response/freeFormInvitePost'; +export type { Meta as MetaMetaResponse } from './response/data/meta/meta'; +export type { Pagination as MetaPaginationResponse } from './response/data/meta/pagination'; +export type { SendInvitePost as SendInvitePostResponse } from './response/sendInvitePost'; +export type { Signature as SignatureRequest } from './request/data/signature'; +export type { SigningLinkPost as SigningLinkPostResponse } from './response/signingLinkPost'; +export type { To as ToRequest } from './request/data/to'; +export type { Viewer as ViewerRequest } from './request/data/viewer'; +export { CancelFreeFormInvitePut as CancelFreeFormInvitePutRequest } from './request/cancelFreeFormInvitePut'; +export { CancelInvitePut as CancelInvitePutRequest } from './request/cancelInvitePut'; +export { FreeFormInviteGet as FreeFormInviteGetRequest } from './request/freeFormInviteGet'; +export { FreeFormInvitePost as FreeFormInvitePostRequest } from './request/freeFormInvitePost'; +export { SendInvitePost as SendInvitePostRequest } from './request/sendInvitePost'; +export { SigningLinkPost as SigningLinkPostRequest } from './request/signingLinkPost'; diff --git a/src/api/documentInvite/request/cancelFreeFormInvitePut.ts b/src/api/documentInvite/request/cancelFreeFormInvitePut.ts new file mode 100644 index 00000000..f8ad23f6 --- /dev/null +++ b/src/api/documentInvite/request/cancelFreeFormInvitePut.ts @@ -0,0 +1,54 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class CancelFreeFormInvitePut implements BaseClass { + private queryParams: Record = {}; + + constructor( + private inviteId: string, + private reason: string = '', + ) {} + + public getPayload(): Record { + return { + invite_id: this.inviteId, + reason: this.reason, + }; + } + + public getMethod(): string { + return HttpMethod.PUT; + } + + public getUrl(): string { + return '/invite/{invite_id}/cancel'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { invite_id: string } { + return { + invite_id: this.inviteId, + }; + } +} diff --git a/src/api/documentInvite/request/cancelInvitePut.ts b/src/api/documentInvite/request/cancelInvitePut.ts new file mode 100644 index 00000000..85234a1a --- /dev/null +++ b/src/api/documentInvite/request/cancelInvitePut.ts @@ -0,0 +1,54 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class CancelInvitePut implements BaseClass { + private queryParams: Record = {}; + + constructor( + private documentId: string, + private reason: string, + ) {} + + public getPayload(): Record { + return { + document_id: this.documentId, + reason: this.reason, + }; + } + + public getMethod(): string { + return HttpMethod.PUT; + } + + public getUrl(): string { + return '/document/{document_id}/fieldinvitecancel'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { document_id: string } { + return { + document_id: this.documentId, + }; + } +} diff --git a/src/api/documentInvite/request/data/ccStep.ts b/src/api/documentInvite/request/data/ccStep.ts new file mode 100644 index 00000000..c66e742b --- /dev/null +++ b/src/api/documentInvite/request/data/ccStep.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface CcStep { + name: string; + email: string; + step: number; +} diff --git a/src/api/documentInvite/request/data/emailGroup.ts b/src/api/documentInvite/request/data/emailGroup.ts new file mode 100644 index 00000000..3362cbca --- /dev/null +++ b/src/api/documentInvite/request/data/emailGroup.ts @@ -0,0 +1,12 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface EmailGroup { + name: string; +} diff --git a/src/api/documentInvite/request/data/emailGroup/email.ts b/src/api/documentInvite/request/data/emailGroup/email.ts new file mode 100644 index 00000000..59aabc72 --- /dev/null +++ b/src/api/documentInvite/request/data/emailGroup/email.ts @@ -0,0 +1,12 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Email { + email: string; +} diff --git a/src/api/documentInvite/request/data/emailGroup/emailGroup.ts b/src/api/documentInvite/request/data/emailGroup/emailGroup.ts new file mode 100644 index 00000000..f65b7f3f --- /dev/null +++ b/src/api/documentInvite/request/data/emailGroup/emailGroup.ts @@ -0,0 +1,16 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Email } from './email'; + +export interface EmailGroup { + id: string; + name: string; + emails: Email[]; +} diff --git a/src/api/documentInvite/request/data/signature.ts b/src/api/documentInvite/request/data/signature.ts new file mode 100644 index 00000000..9aa4e653 --- /dev/null +++ b/src/api/documentInvite/request/data/signature.ts @@ -0,0 +1,12 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Signature { + type: string; +} diff --git a/src/api/documentInvite/request/data/to.ts b/src/api/documentInvite/request/data/to.ts new file mode 100644 index 00000000..90424d06 --- /dev/null +++ b/src/api/documentInvite/request/data/to.ts @@ -0,0 +1,40 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { EmailGroup } from './emailGroup'; +import { Signature } from './signature'; + +export interface To { + email: string; + role_id: string; + role: string; + order: number; + subject: string; + message: string; + email_group?: EmailGroup; + prefill_signature_name?: string; + required_preset_signature_name?: string; + force_new_signature?: number; + reassign?: string; + decline_by_signature?: string; + reminder?: number | null; + expiration_days?: number | null; + authentication_type?: string; + password?: string; + phone?: string; + phone_invite?: string; + method?: string; + authentication_sms_message?: string; + redirect_uri?: string; + decline_redirect_uri?: string; + close_redirect_uri?: string; + redirect_target?: string; + language?: string; + signature?: Signature; +} diff --git a/src/api/documentInvite/request/data/viewer.ts b/src/api/documentInvite/request/data/viewer.ts new file mode 100644 index 00000000..4336897b --- /dev/null +++ b/src/api/documentInvite/request/data/viewer.ts @@ -0,0 +1,18 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Viewer { + email: string; + role: string; + order: number; + subject: string; + message: string; + close_redirect_uri?: string; + redirect_target?: string; +} diff --git a/src/api/documentInvite/request/freeFormInviteGet.ts b/src/api/documentInvite/request/freeFormInviteGet.ts new file mode 100644 index 00000000..667c9b95 --- /dev/null +++ b/src/api/documentInvite/request/freeFormInviteGet.ts @@ -0,0 +1,50 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class FreeFormInviteGet implements BaseClass { + private queryParams: Record = {}; + + constructor(private documentId: string) {} + + public getPayload(): Record { + return { + document_id: this.documentId, + }; + } + + public getMethod(): string { + return HttpMethod.GET; + } + + public getUrl(): string { + return '/v2/documents/{document_id}/free-form-invites'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { document_id: string } { + return { + document_id: this.documentId, + }; + } +} diff --git a/src/api/documentInvite/request/freeFormInvitePost.ts b/src/api/documentInvite/request/freeFormInvitePost.ts new file mode 100644 index 00000000..154a28eb --- /dev/null +++ b/src/api/documentInvite/request/freeFormInvitePost.ts @@ -0,0 +1,80 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class FreeFormInvitePost implements BaseClass { + private queryParams: Record = {}; + + constructor( + private documentId: string, + private to: string, + private from: string | null = null, + private cc: string[] = [], + private subject: string | null = null, + private message: string | null = null, + private ccSubject: string | null = null, + private ccMessage: string | null = null, + private language: string | null = null, + private clientTimestamp: number | null = null, + private callbackUrl: string | null = null, + private isFirstInviteInSequence: boolean | null = null, + private redirectUri: string | null = null, + private closeRedirectUri: string | null = null, + private redirectTarget: string = '', + ) {} + + public getPayload(): Record { + return { + document_id: this.documentId, + to: this.to, + from: this.from, + cc: this.cc, + subject: this.subject, + message: this.message, + cc_subject: this.ccSubject, + cc_message: this.ccMessage, + language: this.language, + client_timestamp: this.clientTimestamp, + callback_url: this.callbackUrl, + is_first_invite_in_sequence: this.isFirstInviteInSequence, + redirect_uri: this.redirectUri, + close_redirect_uri: this.closeRedirectUri, + redirect_target: this.redirectTarget, + }; + } + + public getMethod(): string { + return HttpMethod.POST; + } + + public getUrl(): string { + return '/document/{document_id}/invite'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { document_id: string } { + return { + document_id: this.documentId, + }; + } +} diff --git a/src/api/documentInvite/request/sendInvitePost.ts b/src/api/documentInvite/request/sendInvitePost.ts new file mode 100644 index 00000000..0b173b16 --- /dev/null +++ b/src/api/documentInvite/request/sendInvitePost.ts @@ -0,0 +1,76 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; +import { To } from './data/to'; +import { EmailGroup } from './data/emailGroup/emailGroup'; +import { CcStep } from './data/ccStep'; +import { Viewer } from './data/viewer'; + +export class SendInvitePost implements BaseClass { + private queryParams: Record = {}; + + constructor( + private documentId: string, + private to: To[], + private from: string, + private subject: string, + private message: string, + private emailGroups: EmailGroup[] = [], + private cc: string[] = [], + private ccStep: CcStep[] = [], + private viewers: Viewer[] = [], + private ccSubject: string = '', + private ccMessage: string = '', + ) {} + + public getPayload(): Record { + return { + document_id: this.documentId, + to: this.to, + from: this.from, + email_groups: this.emailGroups, + cc: this.cc, + cc_step: this.ccStep, + viewers: this.viewers, + subject: this.subject, + message: this.message, + cc_subject: this.ccSubject, + cc_message: this.ccMessage, + }; + } + + public getMethod(): string { + return HttpMethod.POST; + } + + public getUrl(): string { + return '/document/{document_id}/invite'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { document_id: string } { + return { + document_id: this.documentId, + }; + } +} diff --git a/src/api/documentInvite/request/signingLinkPost.ts b/src/api/documentInvite/request/signingLinkPost.ts new file mode 100644 index 00000000..f398567d --- /dev/null +++ b/src/api/documentInvite/request/signingLinkPost.ts @@ -0,0 +1,52 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class SigningLinkPost implements BaseClass { + private queryParams: Record = {}; + + constructor( + private documentId: string, + private redirectUri: string = '', + ) {} + + public getPayload(): Record { + return { + document_id: this.documentId, + redirect_uri: this.redirectUri, + }; + } + + public getMethod(): string { + return HttpMethod.POST; + } + + public getUrl(): string { + return '/link'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): null { + return null; + } +} diff --git a/src/api/documentInvite/response/cancelFreeFormInvitePut.ts b/src/api/documentInvite/response/cancelFreeFormInvitePut.ts new file mode 100644 index 00000000..5ce44b70 --- /dev/null +++ b/src/api/documentInvite/response/cancelFreeFormInvitePut.ts @@ -0,0 +1,12 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface CancelFreeFormInvitePut { + id?: string; +} diff --git a/src/api/documentInvite/response/cancelInvitePut.ts b/src/api/documentInvite/response/cancelInvitePut.ts new file mode 100644 index 00000000..4c72b64f --- /dev/null +++ b/src/api/documentInvite/response/cancelInvitePut.ts @@ -0,0 +1,12 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface CancelInvitePut { + status: string; +} diff --git a/src/api/documentInvite/response/data/data.ts b/src/api/documentInvite/response/data/data.ts new file mode 100644 index 00000000..1eef88b6 --- /dev/null +++ b/src/api/documentInvite/response/data/data.ts @@ -0,0 +1,15 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Data { + id: string; + status: string; + created: number; + email: string; +} diff --git a/src/api/documentInvite/response/data/meta/meta.ts b/src/api/documentInvite/response/data/meta/meta.ts new file mode 100644 index 00000000..c390a37a --- /dev/null +++ b/src/api/documentInvite/response/data/meta/meta.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Pagination } from './pagination'; + +export interface Meta { + pagination: Pagination; +} diff --git a/src/api/documentInvite/response/data/meta/pagination.ts b/src/api/documentInvite/response/data/meta/pagination.ts new file mode 100644 index 00000000..b618899c --- /dev/null +++ b/src/api/documentInvite/response/data/meta/pagination.ts @@ -0,0 +1,17 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Pagination { + total: number; + count: number; + per_page: number; + current_page: number; + total_pages: number; + links: string[]; +} diff --git a/src/api/documentInvite/response/freeFormInviteGet.ts b/src/api/documentInvite/response/freeFormInviteGet.ts new file mode 100644 index 00000000..f22d82ac --- /dev/null +++ b/src/api/documentInvite/response/freeFormInviteGet.ts @@ -0,0 +1,16 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Data } from './data/data'; +import { Meta } from './data/meta/meta'; + +export interface FreeFormInviteGet { + meta: Meta; + data?: Data[]; +} diff --git a/src/api/documentInvite/response/freeFormInvitePost.ts b/src/api/documentInvite/response/freeFormInvitePost.ts new file mode 100644 index 00000000..f8ac1c89 --- /dev/null +++ b/src/api/documentInvite/response/freeFormInvitePost.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface FreeFormInvitePost { + result: string; + id: string; + callback_url: string; +} diff --git a/src/api/documentInvite/response/sendInvitePost.ts b/src/api/documentInvite/response/sendInvitePost.ts new file mode 100644 index 00000000..53916549 --- /dev/null +++ b/src/api/documentInvite/response/sendInvitePost.ts @@ -0,0 +1,12 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface SendInvitePost { + status: string; +} diff --git a/src/api/documentInvite/response/signingLinkPost.ts b/src/api/documentInvite/response/signingLinkPost.ts new file mode 100644 index 00000000..41f3e91e --- /dev/null +++ b/src/api/documentInvite/response/signingLinkPost.ts @@ -0,0 +1,13 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface SigningLinkPost { + url: string; + url_no_signup: string; +} diff --git a/src/api/embeddedEditor/index.ts b/src/api/embeddedEditor/index.ts new file mode 100644 index 00000000..9a0603b3 --- /dev/null +++ b/src/api/embeddedEditor/index.ts @@ -0,0 +1,12 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export type { Data as DataResponse } from './response/data/data'; +export type { DocumentGroupEmbeddedEditorLinkPost as DocumentGroupEmbeddedEditorLinkPostResponse } from './response/documentGroupEmbeddedEditorLinkPost'; +export { DocumentGroupEmbeddedEditorLinkPost as DocumentGroupEmbeddedEditorLinkPostRequest } from './request/documentGroupEmbeddedEditorLinkPost'; diff --git a/src/api/embeddedEditor/request/documentEmbeddedEditorLinkPost.ts b/src/api/embeddedEditor/request/documentEmbeddedEditorLinkPost.ts new file mode 100644 index 00000000..cecf2054 --- /dev/null +++ b/src/api/embeddedEditor/request/documentEmbeddedEditorLinkPost.ts @@ -0,0 +1,58 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class DocumentEmbeddedEditorLinkPost implements BaseClass { + private queryParams: Record = {}; + + constructor( + private documentId: string, + private redirectUri: string = '', + private redirectTarget: string = '', + private linkExpiration: number = 0, + ) {} + + public getPayload(): Record { + return { + document_id: this.documentId, + redirect_uri: this.redirectUri, + redirect_target: this.redirectTarget, + link_expiration: this.linkExpiration, + }; + } + + public getMethod(): string { + return HttpMethod.POST; + } + + public getUrl(): string { + return '/v2/documents/{document_id}/embedded-editor'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { document_id: string } { + return { + document_id: this.documentId, + }; + } +} diff --git a/src/api/embeddedEditor/request/documentGroupEmbeddedEditorLinkPost.ts b/src/api/embeddedEditor/request/documentGroupEmbeddedEditorLinkPost.ts new file mode 100644 index 00000000..2265e82d --- /dev/null +++ b/src/api/embeddedEditor/request/documentGroupEmbeddedEditorLinkPost.ts @@ -0,0 +1,58 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class DocumentGroupEmbeddedEditorLinkPost implements BaseClass { + private queryParams: Record = {}; + + constructor( + private documentGroupId: string, + private redirectUri: string = '', + private redirectTarget: string = '', + private linkExpiration: number = 0, + ) {} + + public getPayload(): Record { + return { + document_group_id: this.documentGroupId, + redirect_uri: this.redirectUri, + redirect_target: this.redirectTarget, + link_expiration: this.linkExpiration, + }; + } + + public getMethod(): string { + return HttpMethod.POST; + } + + public getUrl(): string { + return '/v2/document-groups/{document_group_id}/embedded-editor'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { document_group_id: string } { + return { + document_group_id: this.documentGroupId, + }; + } +} diff --git a/src/api/embeddedEditor/response/data/data.ts b/src/api/embeddedEditor/response/data/data.ts new file mode 100644 index 00000000..16f27adc --- /dev/null +++ b/src/api/embeddedEditor/response/data/data.ts @@ -0,0 +1,12 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Data { + url: string; +} diff --git a/src/api/embeddedEditor/response/documentEmbeddedEditorLinkPost.ts b/src/api/embeddedEditor/response/documentEmbeddedEditorLinkPost.ts new file mode 100644 index 00000000..00760a8b --- /dev/null +++ b/src/api/embeddedEditor/response/documentEmbeddedEditorLinkPost.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Data } from './data/data'; + +export interface DocumentEmbeddedEditorLinkPost { + data: Data; +} diff --git a/src/api/embeddedEditor/response/documentGroupEmbeddedEditorLinkPost.ts b/src/api/embeddedEditor/response/documentGroupEmbeddedEditorLinkPost.ts new file mode 100644 index 00000000..6d48ff75 --- /dev/null +++ b/src/api/embeddedEditor/response/documentGroupEmbeddedEditorLinkPost.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Data } from './data/data'; + +export interface DocumentGroupEmbeddedEditorLinkPost { + data: Data; +} diff --git a/src/api/embeddedGroupInvite/index.ts b/src/api/embeddedGroupInvite/index.ts new file mode 100644 index 00000000..1881959b --- /dev/null +++ b/src/api/embeddedGroupInvite/index.ts @@ -0,0 +1,19 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export type { Data as DataResponse } from './response/data/data'; +export type { Document as InviteDocumentRequest } from './request/data/invite/document'; +export type { GroupInviteDelete as GroupInviteDeleteResponse } from './response/groupInviteDelete'; +export type { GroupInviteLinkPost as GroupInviteLinkPostResponse } from './response/groupInviteLinkPost'; +export type { GroupInvitePost as GroupInvitePostResponse } from './response/groupInvitePost'; +export type { Invite as InviteInviteRequest } from './request/data/invite/invite'; +export type { Signer as InviteSignerRequest } from './request/data/invite/signer'; +export { GroupInviteDelete as GroupInviteDeleteRequest } from './request/groupInviteDelete'; +export { GroupInviteLinkPost as GroupInviteLinkPostRequest } from './request/groupInviteLinkPost'; +export { GroupInvitePost as GroupInvitePostRequest } from './request/groupInvitePost'; diff --git a/src/api/embeddedGroupInvite/request/data/invite/document.ts b/src/api/embeddedGroupInvite/request/data/invite/document.ts new file mode 100644 index 00000000..2fdb8819 --- /dev/null +++ b/src/api/embeddedGroupInvite/request/data/invite/document.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Document { + id: string; + action: string; + role?: string | null; +} diff --git a/src/api/embeddedGroupInvite/request/data/invite/invite.ts b/src/api/embeddedGroupInvite/request/data/invite/invite.ts new file mode 100644 index 00000000..f86d1152 --- /dev/null +++ b/src/api/embeddedGroupInvite/request/data/invite/invite.ts @@ -0,0 +1,15 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Signer } from './signer'; + +export interface Invite { + order: number; + signers: Signer[]; +} diff --git a/src/api/embeddedGroupInvite/request/data/invite/signer.ts b/src/api/embeddedGroupInvite/request/data/invite/signer.ts new file mode 100644 index 00000000..af5fedb5 --- /dev/null +++ b/src/api/embeddedGroupInvite/request/data/invite/signer.ts @@ -0,0 +1,23 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Document } from './document'; + +export interface Signer { + email: string; + auth_method: string; + documents: Document[]; + first_name?: string | null; + last_name?: string | null; + language?: string; + required_preset_signature_name?: string; + redirect_uri?: string; + decline_redirect_uri?: string; + redirect_target?: string; +} diff --git a/src/api/embeddedGroupInvite/request/groupInviteDelete.ts b/src/api/embeddedGroupInvite/request/groupInviteDelete.ts new file mode 100644 index 00000000..bf1c1ea8 --- /dev/null +++ b/src/api/embeddedGroupInvite/request/groupInviteDelete.ts @@ -0,0 +1,50 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class GroupInviteDelete implements BaseClass { + private queryParams: Record = {}; + + constructor(private documentGroupId: string) {} + + public getPayload(): Record { + return { + document_group_id: this.documentGroupId, + }; + } + + public getMethod(): string { + return HttpMethod.DELETE; + } + + public getUrl(): string { + return '/v2/document-groups/{document_group_id}/embedded-invites'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { document_group_id: string } { + return { + document_group_id: this.documentGroupId, + }; + } +} diff --git a/src/api/embeddedGroupInvite/request/groupInviteLinkPost.ts b/src/api/embeddedGroupInvite/request/groupInviteLinkPost.ts new file mode 100644 index 00000000..3223ce69 --- /dev/null +++ b/src/api/embeddedGroupInvite/request/groupInviteLinkPost.ts @@ -0,0 +1,61 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class GroupInviteLinkPost implements BaseClass { + private queryParams: Record = {}; + + constructor( + private documentGroupId: string, + private embeddedInviteId: string, + private email: string = '', + private authMethod: string = '', + private linkExpiration: number = 0, + ) {} + + public getPayload(): Record { + return { + document_group_id: this.documentGroupId, + embedded_invite_id: this.embeddedInviteId, + email: this.email, + auth_method: this.authMethod, + link_expiration: this.linkExpiration, + }; + } + + public getMethod(): string { + return HttpMethod.POST; + } + + public getUrl(): string { + return '/v2/document-groups/{document_group_id}/embedded-invites/{embedded_invite_id}/link'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { document_group_id: string; embedded_invite_id: string } { + return { + document_group_id: this.documentGroupId, + embedded_invite_id: this.embeddedInviteId, + }; + } +} diff --git a/src/api/embeddedGroupInvite/request/groupInvitePost.ts b/src/api/embeddedGroupInvite/request/groupInvitePost.ts new file mode 100644 index 00000000..89446ca2 --- /dev/null +++ b/src/api/embeddedGroupInvite/request/groupInvitePost.ts @@ -0,0 +1,57 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; +import { Invite } from './data/invite/invite'; + +export class GroupInvitePost implements BaseClass { + private queryParams: Record = {}; + + constructor( + private documentGroupId: string, + private invites: Invite[], + private signAsMerged: boolean, + ) {} + + public getPayload(): Record { + return { + document_group_id: this.documentGroupId, + invites: this.invites, + sign_as_merged: this.signAsMerged, + }; + } + + public getMethod(): string { + return HttpMethod.POST; + } + + public getUrl(): string { + return '/v2/document-groups/{document_group_id}/embedded-invites'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { document_group_id: string } { + return { + document_group_id: this.documentGroupId, + }; + } +} diff --git a/src/api/embeddedGroupInvite/response/data/data.ts b/src/api/embeddedGroupInvite/response/data/data.ts new file mode 100644 index 00000000..943e6072 --- /dev/null +++ b/src/api/embeddedGroupInvite/response/data/data.ts @@ -0,0 +1,12 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Data { + link: string; +} diff --git a/src/api/embeddedGroupInvite/response/groupInviteDelete.ts b/src/api/embeddedGroupInvite/response/groupInviteDelete.ts new file mode 100644 index 00000000..ed9fea04 --- /dev/null +++ b/src/api/embeddedGroupInvite/response/groupInviteDelete.ts @@ -0,0 +1,11 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface GroupInviteDelete { +} diff --git a/src/api/embeddedGroupInvite/response/groupInviteLinkPost.ts b/src/api/embeddedGroupInvite/response/groupInviteLinkPost.ts new file mode 100644 index 00000000..50a2a3b7 --- /dev/null +++ b/src/api/embeddedGroupInvite/response/groupInviteLinkPost.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Data } from './data/data'; + +export interface GroupInviteLinkPost { + data: Data; +} diff --git a/src/api/embeddedGroupInvite/response/groupInvitePost.ts b/src/api/embeddedGroupInvite/response/groupInvitePost.ts new file mode 100644 index 00000000..1325672e --- /dev/null +++ b/src/api/embeddedGroupInvite/response/groupInvitePost.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Data } from './data/data'; + +export interface GroupInvitePost { + data: Data; +} diff --git a/src/api/embeddedInvite/index.ts b/src/api/embeddedInvite/index.ts new file mode 100644 index 00000000..d58a5071 --- /dev/null +++ b/src/api/embeddedInvite/index.ts @@ -0,0 +1,18 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export type { Authentication as AuthenticationRequest } from './request/data/authentication'; +export type { Data as DataResponse } from './response/data/data'; +export type { DocumentInviteDelete as DocumentInviteDeleteResponse } from './response/documentInviteDelete'; +export type { DocumentInviteLinkPost as DocumentInviteLinkPostResponse } from './response/documentInviteLinkPost'; +export type { DocumentInvitePost as DocumentInvitePostResponse } from './response/documentInvitePost'; +export type { Invite as InviteRequest } from './request/data/invite'; +export { DocumentInviteDelete as DocumentInviteDeleteRequest } from './request/documentInviteDelete'; +export { DocumentInviteLinkPost as DocumentInviteLinkPostRequest } from './request/documentInviteLinkPost'; +export { DocumentInvitePost as DocumentInvitePostRequest } from './request/documentInvitePost'; diff --git a/src/api/embeddedInvite/request/data/authentication.ts b/src/api/embeddedInvite/request/data/authentication.ts new file mode 100644 index 00000000..7a0b93be --- /dev/null +++ b/src/api/embeddedInvite/request/data/authentication.ts @@ -0,0 +1,16 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Authentication { + type: string; + password?: string; + method?: string; + phone?: string; + sms_message?: string; +} diff --git a/src/api/embeddedInvite/request/data/invite.ts b/src/api/embeddedInvite/request/data/invite.ts new file mode 100644 index 00000000..29a286f9 --- /dev/null +++ b/src/api/embeddedInvite/request/data/invite.ts @@ -0,0 +1,27 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Authentication } from './authentication'; + +export interface Invite { + email: string; + role_id: string; + order: number; + auth_method: string; + language?: string; + first_name?: string; + last_name?: string; + prefill_signature_name?: string; + required_preset_signature_name?: string; + force_new_signature?: number; + redirect_uri?: string; + decline_redirect_uri?: string; + redirect_target?: string; + authentication?: Authentication | null; +} diff --git a/src/api/embeddedInvite/request/documentInviteDelete.ts b/src/api/embeddedInvite/request/documentInviteDelete.ts new file mode 100644 index 00000000..97cf6874 --- /dev/null +++ b/src/api/embeddedInvite/request/documentInviteDelete.ts @@ -0,0 +1,50 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class DocumentInviteDelete implements BaseClass { + private queryParams: Record = {}; + + constructor(private documentId: string) {} + + public getPayload(): Record { + return { + document_id: this.documentId, + }; + } + + public getMethod(): string { + return HttpMethod.DELETE; + } + + public getUrl(): string { + return '/v2/documents/{document_id}/embedded-invites'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { document_id: string } { + return { + document_id: this.documentId, + }; + } +} diff --git a/src/api/embeddedInvite/request/documentInviteLinkPost.ts b/src/api/embeddedInvite/request/documentInviteLinkPost.ts new file mode 100644 index 00000000..749e5da8 --- /dev/null +++ b/src/api/embeddedInvite/request/documentInviteLinkPost.ts @@ -0,0 +1,59 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class DocumentInviteLinkPost implements BaseClass { + private queryParams: Record = {}; + + constructor( + private documentId: string, + private fieldInviteId: string, + private authMethod: string = '', + private linkExpiration: number = 0, + ) {} + + public getPayload(): Record { + return { + document_id: this.documentId, + field_invite_id: this.fieldInviteId, + auth_method: this.authMethod, + link_expiration: this.linkExpiration, + }; + } + + public getMethod(): string { + return HttpMethod.POST; + } + + public getUrl(): string { + return '/v2/documents/{document_id}/embedded-invites/{field_invite_id}/link'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { document_id: string; field_invite_id: string } { + return { + document_id: this.documentId, + field_invite_id: this.fieldInviteId, + }; + } +} diff --git a/src/api/embeddedInvite/request/documentInvitePost.ts b/src/api/embeddedInvite/request/documentInvitePost.ts new file mode 100644 index 00000000..fa55a8e3 --- /dev/null +++ b/src/api/embeddedInvite/request/documentInvitePost.ts @@ -0,0 +1,57 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; +import { Invite } from './data/invite'; + +export class DocumentInvitePost implements BaseClass { + private queryParams: Record = {}; + + constructor( + private documentId: string, + private invites: Invite[], + private nameFormula: string = '', + ) {} + + public getPayload(): Record { + return { + document_id: this.documentId, + name_formula: this.nameFormula, + invites: this.invites, + }; + } + + public getMethod(): string { + return HttpMethod.POST; + } + + public getUrl(): string { + return '/v2/documents/{document_id}/embedded-invites'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { document_id: string } { + return { + document_id: this.documentId, + }; + } +} diff --git a/src/api/embeddedInvite/response/data/data.ts b/src/api/embeddedInvite/response/data/data.ts new file mode 100644 index 00000000..943e6072 --- /dev/null +++ b/src/api/embeddedInvite/response/data/data.ts @@ -0,0 +1,12 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Data { + link: string; +} diff --git a/src/api/embeddedInvite/response/documentInviteDelete.ts b/src/api/embeddedInvite/response/documentInviteDelete.ts new file mode 100644 index 00000000..87cf1cf2 --- /dev/null +++ b/src/api/embeddedInvite/response/documentInviteDelete.ts @@ -0,0 +1,11 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface DocumentInviteDelete { +} diff --git a/src/api/embeddedInvite/response/documentInviteLinkPost.ts b/src/api/embeddedInvite/response/documentInviteLinkPost.ts new file mode 100644 index 00000000..dc85ab63 --- /dev/null +++ b/src/api/embeddedInvite/response/documentInviteLinkPost.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Data } from './data/data'; + +export interface DocumentInviteLinkPost { + data: Data; +} diff --git a/src/api/embeddedInvite/response/documentInvitePost.ts b/src/api/embeddedInvite/response/documentInvitePost.ts new file mode 100644 index 00000000..c5b8c134 --- /dev/null +++ b/src/api/embeddedInvite/response/documentInvitePost.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Data } from './data/data'; + +export interface DocumentInvitePost { + data: Data[]; +} diff --git a/src/api/embeddedSending/index.ts b/src/api/embeddedSending/index.ts new file mode 100644 index 00000000..fe36c8fc --- /dev/null +++ b/src/api/embeddedSending/index.ts @@ -0,0 +1,12 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export type { Data as DataResponse } from './response/data/data'; +export type { DocumentGroupEmbeddedSendingLinkPost as DocumentGroupEmbeddedSendingLinkPostResponse } from './response/documentGroupEmbeddedSendingLinkPost'; +export { DocumentGroupEmbeddedSendingLinkPost as DocumentGroupEmbeddedSendingLinkPostRequest } from './request/documentGroupEmbeddedSendingLinkPost'; diff --git a/src/api/embeddedSending/request/documentEmbeddedSendingLinkPost.ts b/src/api/embeddedSending/request/documentEmbeddedSendingLinkPost.ts new file mode 100644 index 00000000..ad94caa9 --- /dev/null +++ b/src/api/embeddedSending/request/documentEmbeddedSendingLinkPost.ts @@ -0,0 +1,60 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class DocumentEmbeddedSendingLinkPost implements BaseClass { + private queryParams: Record = {}; + + constructor( + private documentId: string, + private type: string, + private redirectUri: string = '', + private linkExpiration: number = 0, + private redirectTarget: string = '', + ) {} + + public getPayload(): Record { + return { + document_id: this.documentId, + type: this.type, + redirect_uri: this.redirectUri, + link_expiration: this.linkExpiration, + redirect_target: this.redirectTarget, + }; + } + + public getMethod(): string { + return HttpMethod.POST; + } + + public getUrl(): string { + return '/v2/documents/{document_id}/embedded-sending'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { document_id: string } { + return { + document_id: this.documentId, + }; + } +} diff --git a/src/api/embeddedSending/request/documentGroupEmbeddedSendingLinkPost.ts b/src/api/embeddedSending/request/documentGroupEmbeddedSendingLinkPost.ts new file mode 100644 index 00000000..9e5b0723 --- /dev/null +++ b/src/api/embeddedSending/request/documentGroupEmbeddedSendingLinkPost.ts @@ -0,0 +1,58 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class DocumentGroupEmbeddedSendingLinkPost implements BaseClass { + private queryParams: Record = {}; + + constructor( + private documentGroupId: string, + private redirectUri: string = '', + private linkExpiration: number = 0, + private redirectTarget: string = '', + ) {} + + public getPayload(): Record { + return { + document_group_id: this.documentGroupId, + redirect_uri: this.redirectUri, + link_expiration: this.linkExpiration, + redirect_target: this.redirectTarget, + }; + } + + public getMethod(): string { + return HttpMethod.POST; + } + + public getUrl(): string { + return '/v2/document-groups/{document_group_id}/embedded-sending'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { document_group_id: string } { + return { + document_group_id: this.documentGroupId, + }; + } +} diff --git a/src/api/embeddedSending/response/data/data.ts b/src/api/embeddedSending/response/data/data.ts new file mode 100644 index 00000000..16f27adc --- /dev/null +++ b/src/api/embeddedSending/response/data/data.ts @@ -0,0 +1,12 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Data { + url: string; +} diff --git a/src/api/embeddedSending/response/documentEmbeddedSendingLinkPost.ts b/src/api/embeddedSending/response/documentEmbeddedSendingLinkPost.ts new file mode 100644 index 00000000..c62781d6 --- /dev/null +++ b/src/api/embeddedSending/response/documentEmbeddedSendingLinkPost.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Data } from './data/data'; + +export interface DocumentEmbeddedSendingLinkPost { + data: Data; +} diff --git a/src/api/embeddedSending/response/documentGroupEmbeddedSendingLinkPost.ts b/src/api/embeddedSending/response/documentGroupEmbeddedSendingLinkPost.ts new file mode 100644 index 00000000..edf10a1b --- /dev/null +++ b/src/api/embeddedSending/response/documentGroupEmbeddedSendingLinkPost.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Data } from './data/data'; + +export interface DocumentGroupEmbeddedSendingLinkPost { + data: Data; +} diff --git a/src/api/folder/index.ts b/src/api/folder/index.ts new file mode 100644 index 00000000..34ad4382 --- /dev/null +++ b/src/api/folder/index.ts @@ -0,0 +1,38 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export type { Attachment as DocumentAttachmentResponse } from './response/data/document/attachment'; +export type { Check as DocumentCheckResponse } from './response/data/document/check'; +export type { Data as DocumentDataResponse } from './response/data/document/data'; +export type { Document as DocumentDocumentResponse } from './response/data/document/document'; +export type { DocumentGroupInfo as DocumentDocumentGroupInfoResponse } from './response/data/document/documentGroupInfo'; +export type { EmailGroup as DocumentEmailGroupResponse } from './response/data/document/emailGroup'; +export type { EmailSentStatus as DocumentEmailSentStatusResponse } from './response/data/document/emailSentStatus'; +export type { EnumerationOption as DocumentEnumerationOptionResponse } from './response/data/document/enumerationOption'; +export type { Field as DocumentFieldResponse } from './response/data/document/field'; +export type { FieldInvite as DocumentFieldInviteResponse } from './response/data/document/fieldInvite'; +export type { Folder as FolderResponse } from './response/data/folder'; +export type { FolderDocumentsGet as FolderDocumentsGetResponse } from './response/folderDocumentsGet'; +export type { FolderGet as FolderGetResponse } from './response/folderGet'; +export type { FreeformInvite as DocumentFreeformInviteResponse } from './response/data/document/freeformInvite'; +export type { Insert as DocumentInsertResponse } from './response/data/document/insert'; +export type { Integration as DocumentIntegrationResponse } from './response/data/document/integration'; +export type { JsonAttribute as DocumentJsonAttributeResponse } from './response/data/document/jsonAttribute'; +export type { Radiobutton as DocumentRadiobuttonResponse } from './response/data/document/radiobutton'; +export type { Reminder as DocumentReminderResponse } from './response/data/document/reminder'; +export type { Request as DocumentRequestResponse } from './response/data/document/request'; +export type { Role as DocumentRoleResponse } from './response/data/document/role'; +export type { RoutingDetail as DocumentRoutingDetailResponse } from './response/data/document/routingDetail'; +export type { Seal as DocumentSealResponse } from './response/data/document/seal'; +export type { Signature as DocumentSignatureResponse } from './response/data/document/signature'; +export type { Tag as DocumentTagResponse } from './response/data/document/tag'; +export type { Text as DocumentTextResponse } from './response/data/document/text'; +export type { Thumbnail as DocumentThumbnailResponse } from './response/data/document/thumbnail'; +export { FolderDocumentsGet as FolderDocumentsGetRequest } from './request/folderDocumentsGet'; +export { FolderGet as FolderGetRequest } from './request/folderGet'; diff --git a/src/api/folder/request/folderDocumentsGet.ts b/src/api/folder/request/folderDocumentsGet.ts new file mode 100644 index 00000000..6a65e19c --- /dev/null +++ b/src/api/folder/request/folderDocumentsGet.ts @@ -0,0 +1,50 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class FolderDocumentsGet implements BaseClass { + private queryParams: Record = {}; + + constructor(private folderId: string) {} + + public getPayload(): Record { + return { + folder_id: this.folderId, + }; + } + + public getMethod(): string { + return HttpMethod.GET; + } + + public getUrl(): string { + return '/folder/{folder_id}'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { folder_id: string } { + return { + folder_id: this.folderId, + }; + } +} diff --git a/src/api/folder/request/folderGet.ts b/src/api/folder/request/folderGet.ts new file mode 100644 index 00000000..3062b6f8 --- /dev/null +++ b/src/api/folder/request/folderGet.ts @@ -0,0 +1,44 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class FolderGet implements BaseClass { + private queryParams: Record = {}; + + public getPayload(): null { + return null; + } + + public getMethod(): string { + return HttpMethod.GET; + } + + public getUrl(): string { + return '/folder'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): null { + return null; + } +} diff --git a/src/api/folder/response/data/document/attachment.ts b/src/api/folder/response/data/document/attachment.ts new file mode 100644 index 00000000..e27c674e --- /dev/null +++ b/src/api/folder/response/data/document/attachment.ts @@ -0,0 +1,25 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Attachment { + id: string; + user_id: string; + page_number: string; + width: string; + height: string; + x: string; + y: string; + created: string; + line_height?: string | null; + original_attachment_name?: string | null; + filename?: string | null; + file_type?: string | null; + mime_type?: string | null; + file_size?: string | null; +} diff --git a/src/api/folder/response/data/document/check.ts b/src/api/folder/response/data/document/check.ts new file mode 100644 index 00000000..cc7c3411 --- /dev/null +++ b/src/api/folder/response/data/document/check.ts @@ -0,0 +1,20 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Check { + id: string; + user_id: string; + email: string; + page_number: string; + width: string; + height: string; + x: string; + y: string; + created: number; +} diff --git a/src/api/folder/response/data/document/data.ts b/src/api/folder/response/data/document/data.ts new file mode 100644 index 00000000..e13278fc --- /dev/null +++ b/src/api/folder/response/data/document/data.ts @@ -0,0 +1,23 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Reminder } from './reminder'; + +export interface Data { + name?: string | null; + inviter_role?: boolean | null; + signing_order?: number | null; + delivery_type?: string | null; + default_email?: string | null; + role_id?: string | null; + decline_by_signature?: boolean | null; + reassign?: boolean | null; + expiration_days?: number | null; + reminder?: Reminder | null; +} diff --git a/src/api/folder/response/data/document/document.ts b/src/api/folder/response/data/document/document.ts new file mode 100644 index 00000000..a48bbe44 --- /dev/null +++ b/src/api/folder/response/data/document/document.ts @@ -0,0 +1,61 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Thumbnail } from './thumbnail'; +import { Role } from './role'; +import { RoutingDetail } from './routingDetail'; +import { FieldInvite } from './fieldInvite'; +import { Signature } from './signature'; +import { Seal } from './seal'; +import { Text } from './text'; +import { Check } from './check'; +import { Radiobutton } from './radiobutton'; +import { Integration } from './integration'; +import { Insert } from './insert'; +import { Tag } from './tag'; +import { Field } from './field'; +import { Request } from './request'; +import { EnumerationOption } from './enumerationOption'; +import { Attachment } from './attachment'; +import { DocumentGroupInfo } from './documentGroupInfo'; + +export interface Document { + id: string; + user_id: string; + document_name: string; + page_count: string; + created: string; + updated: string; + version_time: string; + original_filename: string; + owner: string; + origin_user_id: string | null; + thumbnail: Thumbnail; + template: boolean; + roles: Role[]; + routing_details: RoutingDetail[]; + field_invites: FieldInvite[]; + signatures: Signature[]; + seals: Seal[]; + texts: Text[]; + checks: Check[]; + radiobuttons: Radiobutton[]; + integrations: Integration[]; + inserts: Insert[]; + tags: Tag[]; + fields: Field[]; + requests: Request[]; + enumeration_options: EnumerationOption[]; + attachments: Attachment[]; + document_group_info: DocumentGroupInfo; + origin_document_id?: string | null; + project_id?: string | null; + is_favorite?: boolean | null; + recently_used?: string | null; +} diff --git a/src/api/folder/response/data/document/documentGroupInfo.ts b/src/api/folder/response/data/document/documentGroupInfo.ts new file mode 100644 index 00000000..929c8aec --- /dev/null +++ b/src/api/folder/response/data/document/documentGroupInfo.ts @@ -0,0 +1,21 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { FreeformInvite } from './freeformInvite'; + +export interface DocumentGroupInfo { + freeform_invite: FreeformInvite; + document_group_id?: string | null; + document_group_name?: string | null; + invite_id?: string | null; + invite_status?: string | null; + state?: string | null; + doc_count_in_group?: number | null; + sign_as_merged?: boolean | null; +} diff --git a/src/api/folder/response/data/document/emailGroup.ts b/src/api/folder/response/data/document/emailGroup.ts new file mode 100644 index 00000000..06edd46f --- /dev/null +++ b/src/api/folder/response/data/document/emailGroup.ts @@ -0,0 +1,13 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface EmailGroup { + id?: string | null; + name?: string | null; +} diff --git a/src/api/folder/response/data/document/emailSentStatus.ts b/src/api/folder/response/data/document/emailSentStatus.ts new file mode 100644 index 00000000..281248be --- /dev/null +++ b/src/api/folder/response/data/document/emailSentStatus.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface EmailSentStatus { + status: string; + created_at: number; + last_reaction_at: number; +} diff --git a/src/api/folder/response/data/document/enumerationOption.ts b/src/api/folder/response/data/document/enumerationOption.ts new file mode 100644 index 00000000..eabf5d9f --- /dev/null +++ b/src/api/folder/response/data/document/enumerationOption.ts @@ -0,0 +1,22 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface EnumerationOption { + id: string; + page_number: string | null; + width: string | null; + height: string | null; + created: number; + enumeration_id?: string | null; + user_id?: string | null; + data?: string | null; + email?: string | null; + x?: string | null; + y?: string | null; +} diff --git a/src/api/folder/response/data/document/field.ts b/src/api/folder/response/data/document/field.ts new file mode 100644 index 00000000..a81383d8 --- /dev/null +++ b/src/api/folder/response/data/document/field.ts @@ -0,0 +1,24 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { JsonAttribute } from './jsonAttribute'; + +export interface Field { + id: string; + type: string; + role_id: string; + json_attributes: JsonAttribute; + role: string; + originator: string; + fulfiller?: string | null; + field_request_id?: string | null; + element_id?: string | null; + template_field_id?: string | null; + field_id?: string | null; +} diff --git a/src/api/folder/response/data/document/fieldInvite.ts b/src/api/folder/response/data/document/fieldInvite.ts new file mode 100644 index 00000000..7b8bffbf --- /dev/null +++ b/src/api/folder/response/data/document/fieldInvite.ts @@ -0,0 +1,46 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { EmailSentStatus } from './emailSentStatus'; +import { EmailGroup } from './emailGroup'; + +export interface FieldInvite { + id: string; + signer_user_id: string; + status: string; + created: string; + updated: string; + email: string; + role: string; + role_id: string; + email_sent_statuses: EmailSentStatus[]; + is_document_locked: string; + password_protected: string; + password_type: string; + password_method: string; + reassign: string; + id_verification_required: string; + id_verified: string; + email_group: EmailGroup; + reminder?: string | null; + expiration_time?: string | null; + electronic_consent_id?: string | null; + prefill_signature_name?: string | null; + force_new_signature?: string | null; + electronic_consent_required?: string | null; + decline_by_signature?: string | null; + signing_instructions?: string | null; + payment_request?: string | null; + is_draft_exists?: string | null; + is_full_declined?: string | null; + is_embedded?: string | null; + delivery_type?: string | null; + signer_phone_invite?: string | null; + signature_type?: string | null; +} diff --git a/src/api/folder/response/data/document/freeformInvite.ts b/src/api/folder/response/data/document/freeformInvite.ts new file mode 100644 index 00000000..b3dc6fef --- /dev/null +++ b/src/api/folder/response/data/document/freeformInvite.ts @@ -0,0 +1,12 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface FreeformInvite { + id?: string | null; +} diff --git a/src/api/folder/response/data/document/insert.ts b/src/api/folder/response/data/document/insert.ts new file mode 100644 index 00000000..a6f2895f --- /dev/null +++ b/src/api/folder/response/data/document/insert.ts @@ -0,0 +1,20 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Insert { + id: string; + user_id: string; + email: string; + page_number: string; + width: string; + height: string; + x: string; + y: string; + created: number; +} diff --git a/src/api/folder/response/data/document/integration.ts b/src/api/folder/response/data/document/integration.ts new file mode 100644 index 00000000..95e51520 --- /dev/null +++ b/src/api/folder/response/data/document/integration.ts @@ -0,0 +1,20 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Integration { + id: string; + user_id: string; + email: string; + page_number: string; + width: string; + height: string; + x: string; + y: string; + created: number; +} diff --git a/src/api/folder/response/data/document/jsonAttribute.ts b/src/api/folder/response/data/document/jsonAttribute.ts new file mode 100644 index 00000000..ed4380f7 --- /dev/null +++ b/src/api/folder/response/data/document/jsonAttribute.ts @@ -0,0 +1,31 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface JsonAttribute { + page_number: number; + x: number; + y: number; + width: number; + height: number; + required: boolean; + label?: string | null; + name?: string | null; + color?: string | null; + bold?: boolean | null; + italic?: boolean | null; + underline?: boolean | null; + align?: string | null; + valign?: string | null; + font?: string | null; + size?: number | null; + font_size?: number | null; + arrangement?: string | null; + max_lines?: number | null; + max_chars?: number | null; +} diff --git a/src/api/folder/response/data/document/radiobutton.ts b/src/api/folder/response/data/document/radiobutton.ts new file mode 100644 index 00000000..1764ef00 --- /dev/null +++ b/src/api/folder/response/data/document/radiobutton.ts @@ -0,0 +1,20 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Radiobutton { + id: string; + user_id: string; + email: string; + page_number: string; + width: string; + height: string; + x: string; + y: string; + created: number; +} diff --git a/src/api/folder/response/data/document/reminder.ts b/src/api/folder/response/data/document/reminder.ts new file mode 100644 index 00000000..66200c29 --- /dev/null +++ b/src/api/folder/response/data/document/reminder.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Reminder { + reminder_before?: number; + remind_after?: number; + remind_repeat?: number; +} diff --git a/src/api/folder/response/data/document/request.ts b/src/api/folder/response/data/document/request.ts new file mode 100644 index 00000000..7fe2fc80 --- /dev/null +++ b/src/api/folder/response/data/document/request.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { EmailSentStatus } from './emailSentStatus'; + +export interface Request { + email_sent_statuses: EmailSentStatus[]; +} diff --git a/src/api/folder/response/data/document/role.ts b/src/api/folder/response/data/document/role.ts new file mode 100644 index 00000000..f336f9f0 --- /dev/null +++ b/src/api/folder/response/data/document/role.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Role { + unique_id: string; + signing_order: string; + name: string; +} diff --git a/src/api/folder/response/data/document/routingDetail.ts b/src/api/folder/response/data/document/routingDetail.ts new file mode 100644 index 00000000..568c8d95 --- /dev/null +++ b/src/api/folder/response/data/document/routingDetail.ts @@ -0,0 +1,18 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Data } from './data'; + +export interface RoutingDetail { + id: string; + created: string; + updated: string; + data?: Data | null; + invite_link_instructions?: string | null; +} diff --git a/src/api/folder/response/data/document/seal.ts b/src/api/folder/response/data/document/seal.ts new file mode 100644 index 00000000..825d62d3 --- /dev/null +++ b/src/api/folder/response/data/document/seal.ts @@ -0,0 +1,20 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Seal { + id: string; + user_id: string; + email: string; + page_number: string; + width: string; + height: string; + x: string; + y: string; + created: number; +} diff --git a/src/api/folder/response/data/document/signature.ts b/src/api/folder/response/data/document/signature.ts new file mode 100644 index 00000000..b0dd89b6 --- /dev/null +++ b/src/api/folder/response/data/document/signature.ts @@ -0,0 +1,20 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Signature { + id: string; + user_id: string; + email: string; + page_number: string; + width: string; + height: string; + x: string; + y: string; + created: number; +} diff --git a/src/api/folder/response/data/document/tag.ts b/src/api/folder/response/data/document/tag.ts new file mode 100644 index 00000000..4fedec9e --- /dev/null +++ b/src/api/folder/response/data/document/tag.ts @@ -0,0 +1,13 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Tag { + type: string; + name: string; +} diff --git a/src/api/folder/response/data/document/text.ts b/src/api/folder/response/data/document/text.ts new file mode 100644 index 00000000..d796e6d4 --- /dev/null +++ b/src/api/folder/response/data/document/text.ts @@ -0,0 +1,22 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Text { + id: string; + user_id: string; + page_number: string; + email: string; + font: string; + size: string; + data: string; + x: string; + y: string; + line_height: string; + created: number; +} diff --git a/src/api/folder/response/data/document/thumbnail.ts b/src/api/folder/response/data/document/thumbnail.ts new file mode 100644 index 00000000..92504707 --- /dev/null +++ b/src/api/folder/response/data/document/thumbnail.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Thumbnail { + small: string; + medium: string; + large: string; +} diff --git a/src/api/folder/response/data/folder.ts b/src/api/folder/response/data/folder.ts new file mode 100644 index 00000000..cadcb0e9 --- /dev/null +++ b/src/api/folder/response/data/folder.ts @@ -0,0 +1,19 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Folder { + id: string; + user_id: string; + name: string; + created: string; + shared: boolean; + document_count: string; + template_count: string; + folder_count: string; +} diff --git a/src/api/folder/response/folderDocumentsGet.ts b/src/api/folder/response/folderDocumentsGet.ts new file mode 100644 index 00000000..a20620cd --- /dev/null +++ b/src/api/folder/response/folderDocumentsGet.ts @@ -0,0 +1,24 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Folder } from './data/folder'; +import { Document } from './data/document/document'; + +export interface FolderDocumentsGet { + id: string; + created: string; + name: string; + user_id: string; + system_folder: boolean; + shared: boolean; + folders: Folder[]; + total_documents: number; + documents: Document[]; + parent_id?: string | null; +} diff --git a/src/api/folder/response/folderGet.ts b/src/api/folder/response/folderGet.ts new file mode 100644 index 00000000..24c1e675 --- /dev/null +++ b/src/api/folder/response/folderGet.ts @@ -0,0 +1,27 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Folder } from './data/folder'; +import { Document } from './data/document/document'; + +export interface FolderGet { + id: string; + created: number; + name: string; + user_id: string; + system_folder: boolean; + shared: boolean; + folders: Folder[]; + total_documents: number; + documents: Document[]; + parent_id?: string | null; + team_name?: string | null; + team_id?: string | null; + team_type?: string | null; +} diff --git a/src/api/smartFields/index.ts b/src/api/smartFields/index.ts new file mode 100644 index 00000000..ac90c2a0 --- /dev/null +++ b/src/api/smartFields/index.ts @@ -0,0 +1,12 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export type { Data as DataRequest } from './request/data/data'; +export type { DocumentPrefillSmartFieldPost as DocumentPrefillSmartFieldPostResponse } from './response/documentPrefillSmartFieldPost'; +export { DocumentPrefillSmartFieldPost as DocumentPrefillSmartFieldPostRequest } from './request/documentPrefillSmartFieldPost'; diff --git a/src/api/smartFields/request/data/data.ts b/src/api/smartFields/request/data/data.ts new file mode 100644 index 00000000..55243bea --- /dev/null +++ b/src/api/smartFields/request/data/data.ts @@ -0,0 +1,12 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Data { + field_name?: string; +} diff --git a/src/api/smartFields/request/documentPrefillSmartFieldPost.ts b/src/api/smartFields/request/documentPrefillSmartFieldPost.ts new file mode 100644 index 00000000..56b7dc8c --- /dev/null +++ b/src/api/smartFields/request/documentPrefillSmartFieldPost.ts @@ -0,0 +1,57 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; +import { Data } from './data/data'; + +export class DocumentPrefillSmartFieldPost implements BaseClass { + private queryParams: Record = {}; + + constructor( + private documentId: string, + private data: Data[], + private clientTimestamp: string, + ) {} + + public getPayload(): Record { + return { + document_id: this.documentId, + data: this.data, + client_timestamp: this.clientTimestamp, + }; + } + + public getMethod(): string { + return HttpMethod.POST; + } + + public getUrl(): string { + return '/document/{document_id}/integration/object/smartfields'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { document_id: string } { + return { + document_id: this.documentId, + }; + } +} diff --git a/src/api/smartFields/response/documentPrefillSmartFieldPost.ts b/src/api/smartFields/response/documentPrefillSmartFieldPost.ts new file mode 100644 index 00000000..d4b1ad67 --- /dev/null +++ b/src/api/smartFields/response/documentPrefillSmartFieldPost.ts @@ -0,0 +1,12 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface DocumentPrefillSmartFieldPost { + status: string; +} diff --git a/src/api/template/index.ts b/src/api/template/index.ts new file mode 100644 index 00000000..189c8bf0 --- /dev/null +++ b/src/api/template/index.ts @@ -0,0 +1,49 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export type { Approver as ApproverRequest } from './request/data/approver'; +export type { Approver as ApproverResponse } from './response/data/approver'; +export type { Attribute as AttributeResponse } from './response/data/attribute'; +export type { Authentication as RoutingDetailAuthenticationResponse } from './response/data/routingDetail/authentication'; +export type { BulkInvitePost as BulkInvitePostResponse } from './response/bulkInvitePost'; +export type { CcStep as CcStepRequest } from './request/data/ccStep'; +export type { CcStep as CcStepResponse } from './response/data/ccStep'; +export type { CloneTemplatePost as CloneTemplatePostResponse } from './response/cloneTemplatePost'; +export type { Data as DataResponse } from './response/data/data'; +export type { GroupTemplateGet as GroupTemplateGetResponse } from './response/groupTemplateGet'; +export type { GroupTemplatePut as GroupTemplatePutResponse } from './response/groupTemplatePut'; +export type { InviteAction as RoutingDetailInviteActionRequest } from './request/data/routingDetail/inviteAction'; +export type { InviteAction as RoutingDetailInviteActionResponse } from './response/data/routingDetail/inviteAction'; +export type { InviteEmail as RoutingDetailInviteEmailRequest } from './request/data/routingDetail/inviteEmail'; +export type { InviteEmail as RoutingDetailInviteEmailResponse } from './response/data/routingDetail/inviteEmail'; +export type { InviteStep as RoutingDetailInviteStepRequest } from './request/data/routingDetail/inviteStep'; +export type { InviteStep as RoutingDetailInviteStepResponse } from './response/data/routingDetail/inviteStep'; +export type { Reminder as RoutingDetailReminderResponse } from './response/data/routingDetail/reminder'; +export type { RoutingDetail as RoutingDetailResponse } from './response/data/routingDetail'; +export type { RoutingDetail as RoutingDetailRoutingDetailRequest } from './request/data/routingDetail/routingDetail'; +export type { RoutingDetail as RoutingDetailRoutingDetailResponse } from './response/data/routingDetail/routingDetail'; +export type { RoutingDetailsGet as RoutingDetailsGetResponse } from './response/routingDetailsGet'; +export type { RoutingDetailsPost as RoutingDetailsPostResponse } from './response/routingDetailsPost'; +export type { RoutingDetailsPut as RoutingDetailsPutResponse } from './response/routingDetailsPut'; +export type { ShareInfo as ShareInfoResponse } from './response/data/shareInfo'; +export type { Template as TemplateTemplateResponse } from './response/data/template/template'; +export type { TemplateData as TemplateDataRequest } from './request/data/templateData'; +export type { TemplateDataObject as TemplateDataObjectRequest } from './request/data/templateDataObject'; +export type { TemplatePost as TemplatePostResponse } from './response/templatePost'; +export type { Thumbnail as TemplateThumbnailResponse } from './response/data/template/thumbnail'; +export type { Viewer as ViewerRequest } from './request/data/viewer'; +export type { Viewer as ViewerResponse } from './response/data/viewer'; +export { BulkInvitePost as BulkInvitePostRequest } from './request/bulkInvitePost'; +export { CloneTemplatePost as CloneTemplatePostRequest } from './request/cloneTemplatePost'; +export { GroupTemplateGet as GroupTemplateGetRequest } from './request/groupTemplateGet'; +export { GroupTemplatePut as GroupTemplatePutRequest } from './request/groupTemplatePut'; +export { RoutingDetailsGet as RoutingDetailsGetRequest } from './request/routingDetailsGet'; +export { RoutingDetailsPost as RoutingDetailsPostRequest } from './request/routingDetailsPost'; +export { RoutingDetailsPut as RoutingDetailsPutRequest } from './request/routingDetailsPut'; +export { TemplatePost as TemplatePostRequest } from './request/templatePost'; diff --git a/src/api/template/request/bulkInvitePost.ts b/src/api/template/request/bulkInvitePost.ts new file mode 100644 index 00000000..c01e8687 --- /dev/null +++ b/src/api/template/request/bulkInvitePost.ts @@ -0,0 +1,64 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class BulkInvitePost implements BaseClass { + private queryParams: Record = {}; + + constructor( + private documentId: string, + private file: string, + private folderId: string, + private clientTimestamp: number = 0, + private documentName: string = '', + private subject: string = '', + private emailMessage: string = '', + ) {} + + public getPayload(): Record { + return { + document_id: this.documentId, + file: this.file, + folder_id: this.folderId, + client_timestamp: this.clientTimestamp, + document_name: this.documentName, + subject: this.subject, + email_message: this.emailMessage, + }; + } + + public getMethod(): string { + return HttpMethod.POST; + } + + public getUrl(): string { + return '/template/{document_id}/bulkinvite'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'multipart/form-data'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { document_id: string } { + return { + document_id: this.documentId, + }; + } +} diff --git a/src/api/template/request/cloneTemplatePost.ts b/src/api/template/request/cloneTemplatePost.ts new file mode 100644 index 00000000..836c1456 --- /dev/null +++ b/src/api/template/request/cloneTemplatePost.ts @@ -0,0 +1,58 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class CloneTemplatePost implements BaseClass { + private queryParams: Record = {}; + + constructor( + private templateId: string, + private documentName: string | null = null, + private clientTimestamp: string | null = null, + private folderId: string | null = null, + ) {} + + public getPayload(): Record { + return { + template_id: this.templateId, + document_name: this.documentName, + client_timestamp: this.clientTimestamp, + folder_id: this.folderId, + }; + } + + public getMethod(): string { + return HttpMethod.POST; + } + + public getUrl(): string { + return '/template/{template_id}/copy'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { template_id: string } { + return { + template_id: this.templateId, + }; + } +} diff --git a/src/api/template/request/data/approver.ts b/src/api/template/request/data/approver.ts new file mode 100644 index 00000000..25e95463 --- /dev/null +++ b/src/api/template/request/data/approver.ts @@ -0,0 +1,15 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Approver { + name: string; + signing_order: number; + default_email?: string; + inviter_role?: boolean; +} diff --git a/src/api/template/request/data/ccStep.ts b/src/api/template/request/data/ccStep.ts new file mode 100644 index 00000000..ffac74bc --- /dev/null +++ b/src/api/template/request/data/ccStep.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface CcStep { + email: string; + name: string; + step: number; +} diff --git a/src/api/template/request/data/routingDetail/inviteAction.ts b/src/api/template/request/data/routingDetail/inviteAction.ts new file mode 100644 index 00000000..41e1e9be --- /dev/null +++ b/src/api/template/request/data/routingDetail/inviteAction.ts @@ -0,0 +1,18 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface InviteAction { + email: string; + role_name: string; + action: string; + document_id: string; + document_name: string; + allow_reassign?: string; + decline_by_signature?: string; +} diff --git a/src/api/template/request/data/routingDetail/inviteEmail.ts b/src/api/template/request/data/routingDetail/inviteEmail.ts new file mode 100644 index 00000000..c5e25285 --- /dev/null +++ b/src/api/template/request/data/routingDetail/inviteEmail.ts @@ -0,0 +1,17 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface InviteEmail { + email: string; + subject: string; + message: string; + allow_reassign: string; + expiration_days?: number; + reminder?: number; +} diff --git a/src/api/template/request/data/routingDetail/inviteStep.ts b/src/api/template/request/data/routingDetail/inviteStep.ts new file mode 100644 index 00000000..0f7b57f0 --- /dev/null +++ b/src/api/template/request/data/routingDetail/inviteStep.ts @@ -0,0 +1,17 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { InviteEmail } from './inviteEmail'; +import { InviteAction } from './inviteAction'; + +export interface InviteStep { + order: number; + invite_actions: InviteAction[]; + invite_emails?: InviteEmail[]; +} diff --git a/src/api/template/request/data/routingDetail/routingDetail.ts b/src/api/template/request/data/routingDetail/routingDetail.ts new file mode 100644 index 00000000..88edc121 --- /dev/null +++ b/src/api/template/request/data/routingDetail/routingDetail.ts @@ -0,0 +1,15 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { InviteStep } from './inviteStep'; + +export interface RoutingDetail { + invite_steps: InviteStep[]; + include_email_attachments: number; +} diff --git a/src/api/template/request/data/templateData.ts b/src/api/template/request/data/templateData.ts new file mode 100644 index 00000000..caf3e018 --- /dev/null +++ b/src/api/template/request/data/templateData.ts @@ -0,0 +1,16 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface TemplateData { + inviter_role: boolean; + name: string; + role_id: string; + signing_order: number; + default_email?: string; +} diff --git a/src/api/template/request/data/templateDataObject.ts b/src/api/template/request/data/templateDataObject.ts new file mode 100644 index 00000000..4be43534 --- /dev/null +++ b/src/api/template/request/data/templateDataObject.ts @@ -0,0 +1,13 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface TemplateDataObject { + name?: string | null; + role_id?: string | null; +} diff --git a/src/api/template/request/data/viewer.ts b/src/api/template/request/data/viewer.ts new file mode 100644 index 00000000..06933e4f --- /dev/null +++ b/src/api/template/request/data/viewer.ts @@ -0,0 +1,15 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Viewer { + name: string; + signing_order: number; + default_email?: string; + inviter_role?: boolean; +} diff --git a/src/api/template/request/groupTemplateGet.ts b/src/api/template/request/groupTemplateGet.ts new file mode 100644 index 00000000..d65bebe1 --- /dev/null +++ b/src/api/template/request/groupTemplateGet.ts @@ -0,0 +1,50 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class GroupTemplateGet implements BaseClass { + private queryParams: Record = {}; + + constructor(private templateId: string) {} + + public getPayload(): Record { + return { + template_id: this.templateId, + }; + } + + public getMethod(): string { + return HttpMethod.GET; + } + + public getUrl(): string { + return '/documentgroup/template/{template_id}'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { template_id: string } { + return { + template_id: this.templateId, + }; + } +} diff --git a/src/api/template/request/groupTemplatePut.ts b/src/api/template/request/groupTemplatePut.ts new file mode 100644 index 00000000..a40ccba6 --- /dev/null +++ b/src/api/template/request/groupTemplatePut.ts @@ -0,0 +1,61 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; +import { RoutingDetail } from './data/routingDetail/routingDetail'; + +export class GroupTemplatePut implements BaseClass { + private queryParams: Record = {}; + + constructor( + private templateId: string, + private routingDetails: RoutingDetail, + private templateGroupName: string, + private templateIdsToAdd: string[] = [], + private templateIdsToRemove: string[] = [], + ) {} + + public getPayload(): Record { + return { + template_id: this.templateId, + template_ids_to_add: this.templateIdsToAdd, + template_ids_to_remove: this.templateIdsToRemove, + routing_details: this.routingDetails, + template_group_name: this.templateGroupName, + }; + } + + public getMethod(): string { + return HttpMethod.PUT; + } + + public getUrl(): string { + return '/documentgroup/template/{template_id}'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { template_id: string } { + return { + template_id: this.templateId, + }; + } +} diff --git a/src/api/template/request/routingDetailsGet.ts b/src/api/template/request/routingDetailsGet.ts new file mode 100644 index 00000000..7c4e9e08 --- /dev/null +++ b/src/api/template/request/routingDetailsGet.ts @@ -0,0 +1,50 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class RoutingDetailsGet implements BaseClass { + private queryParams: Record = {}; + + constructor(private documentId: string) {} + + public getPayload(): Record { + return { + document_id: this.documentId, + }; + } + + public getMethod(): string { + return HttpMethod.GET; + } + + public getUrl(): string { + return '/document/{document_id}/template/routing/detail'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { document_id: string } { + return { + document_id: this.documentId, + }; + } +} diff --git a/src/api/template/request/routingDetailsPost.ts b/src/api/template/request/routingDetailsPost.ts new file mode 100644 index 00000000..8c2d3b35 --- /dev/null +++ b/src/api/template/request/routingDetailsPost.ts @@ -0,0 +1,50 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class RoutingDetailsPost implements BaseClass { + private queryParams: Record = {}; + + constructor(private documentId: string) {} + + public getPayload(): Record { + return { + document_id: this.documentId, + }; + } + + public getMethod(): string { + return HttpMethod.POST; + } + + public getUrl(): string { + return '/document/{document_id}/template/routing/detail'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { document_id: string } { + return { + document_id: this.documentId, + }; + } +} diff --git a/src/api/template/request/routingDetailsPut.ts b/src/api/template/request/routingDetailsPut.ts new file mode 100644 index 00000000..42e68c81 --- /dev/null +++ b/src/api/template/request/routingDetailsPut.ts @@ -0,0 +1,71 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; +import { TemplateData } from './data/templateData'; +import { TemplateDataObject } from './data/templateDataObject'; +import { CcStep } from './data/ccStep'; +import { Viewer } from './data/viewer'; +import { Approver } from './data/approver'; + +export class RoutingDetailsPut implements BaseClass { + private queryParams: Record = {}; + + constructor( + private documentId: string, + private templateData: TemplateData[] | null = [], + private templateDataObject: TemplateDataObject[] | null = [], + private cc: string[] | null = [], + private ccStep: CcStep[] | null = [], + private viewers: Viewer[] | null = [], + private approvers: Approver[] | null = [], + private inviteLinkInstructions: string[] | null = [], + ) {} + + public getPayload(): Record { + return { + document_id: this.documentId, + template_data: this.templateData, + template_data_object: this.templateDataObject, + cc: this.cc, + cc_step: this.ccStep, + viewers: this.viewers, + approvers: this.approvers, + invite_link_instructions: this.inviteLinkInstructions, + }; + } + + public getMethod(): string { + return HttpMethod.PUT; + } + + public getUrl(): string { + return '/document/{document_id}/template/routing/detail'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { document_id: string } { + return { + document_id: this.documentId, + }; + } +} diff --git a/src/api/template/request/templatePost.ts b/src/api/template/request/templatePost.ts new file mode 100644 index 00000000..368b3f02 --- /dev/null +++ b/src/api/template/request/templatePost.ts @@ -0,0 +1,52 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class TemplatePost implements BaseClass { + private queryParams: Record = {}; + + constructor( + private documentId: string, + private documentName: string, + ) {} + + public getPayload(): Record { + return { + document_id: this.documentId, + document_name: this.documentName, + }; + } + + public getMethod(): string { + return HttpMethod.POST; + } + + public getUrl(): string { + return '/template'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): null { + return null; + } +} diff --git a/src/api/template/response/bulkInvitePost.ts b/src/api/template/response/bulkInvitePost.ts new file mode 100644 index 00000000..37493840 --- /dev/null +++ b/src/api/template/response/bulkInvitePost.ts @@ -0,0 +1,12 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface BulkInvitePost { + status: string; +} diff --git a/src/api/template/response/cloneTemplatePost.ts b/src/api/template/response/cloneTemplatePost.ts new file mode 100644 index 00000000..9e7e5d3c --- /dev/null +++ b/src/api/template/response/cloneTemplatePost.ts @@ -0,0 +1,13 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface CloneTemplatePost { + id: string; + name: string; +} diff --git a/src/api/template/response/data/approver.ts b/src/api/template/response/data/approver.ts new file mode 100644 index 00000000..dae88c15 --- /dev/null +++ b/src/api/template/response/data/approver.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Approver { + default_email: string; + name: string; + signing_order: number; +} diff --git a/src/api/template/response/data/attribute.ts b/src/api/template/response/data/attribute.ts new file mode 100644 index 00000000..07580d57 --- /dev/null +++ b/src/api/template/response/data/attribute.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Attribute { + brand_id: string; + redirect_uri: string; + on_complete: string; +} diff --git a/src/api/template/response/data/ccStep.ts b/src/api/template/response/data/ccStep.ts new file mode 100644 index 00000000..ffac74bc --- /dev/null +++ b/src/api/template/response/data/ccStep.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface CcStep { + email: string; + name: string; + step: number; +} diff --git a/src/api/template/response/data/data.ts b/src/api/template/response/data/data.ts new file mode 100644 index 00000000..7451fc2f --- /dev/null +++ b/src/api/template/response/data/data.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Data { + name: string; + role_id: string; + signing_order: number; +} diff --git a/src/api/template/response/data/routingDetail.ts b/src/api/template/response/data/routingDetail.ts new file mode 100644 index 00000000..8b8a5e96 --- /dev/null +++ b/src/api/template/response/data/routingDetail.ts @@ -0,0 +1,18 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface RoutingDetail { + name: string; + role_id: string; + default_email: string; + inviter_role: boolean; + signing_order: number; + decline_by_signature?: boolean; + delivery_type?: string | null; +} diff --git a/src/api/template/response/data/routingDetail/authentication.ts b/src/api/template/response/data/routingDetail/authentication.ts new file mode 100644 index 00000000..9a561400 --- /dev/null +++ b/src/api/template/response/data/routingDetail/authentication.ts @@ -0,0 +1,12 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Authentication { + type?: string | null; +} diff --git a/src/api/template/response/data/routingDetail/inviteAction.ts b/src/api/template/response/data/routingDetail/inviteAction.ts new file mode 100644 index 00000000..aa621736 --- /dev/null +++ b/src/api/template/response/data/routingDetail/inviteAction.ts @@ -0,0 +1,22 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Authentication } from './authentication'; + +export interface InviteAction { + email: string; + document_id: string; + document_name: string; + allow_reassign: number; + decline_by_signature: number; + lock: boolean; + action: string; + role_name: string; + authentication?: Authentication; +} diff --git a/src/api/template/response/data/routingDetail/inviteEmail.ts b/src/api/template/response/data/routingDetail/inviteEmail.ts new file mode 100644 index 00000000..2780442c --- /dev/null +++ b/src/api/template/response/data/routingDetail/inviteEmail.ts @@ -0,0 +1,19 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Reminder } from './reminder'; + +export interface InviteEmail { + email: string; + subject: string; + message: string; + expiration_days: number; + has_sign_actions: boolean; + reminder?: Reminder; +} diff --git a/src/api/template/response/data/routingDetail/inviteStep.ts b/src/api/template/response/data/routingDetail/inviteStep.ts new file mode 100644 index 00000000..0f7b57f0 --- /dev/null +++ b/src/api/template/response/data/routingDetail/inviteStep.ts @@ -0,0 +1,17 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { InviteEmail } from './inviteEmail'; +import { InviteAction } from './inviteAction'; + +export interface InviteStep { + order: number; + invite_actions: InviteAction[]; + invite_emails?: InviteEmail[]; +} diff --git a/src/api/template/response/data/routingDetail/reminder.ts b/src/api/template/response/data/routingDetail/reminder.ts new file mode 100644 index 00000000..660e382a --- /dev/null +++ b/src/api/template/response/data/routingDetail/reminder.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Reminder { + remind_after: number; + remind_before: number; + remind_repeat: number; +} diff --git a/src/api/template/response/data/routingDetail/routingDetail.ts b/src/api/template/response/data/routingDetail/routingDetail.ts new file mode 100644 index 00000000..1b5aa7c7 --- /dev/null +++ b/src/api/template/response/data/routingDetail/routingDetail.ts @@ -0,0 +1,16 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { InviteStep } from './inviteStep'; + +export interface RoutingDetail { + sign_as_merged: boolean; + invite_steps: InviteStep[]; + include_email_attachments?: string | null; +} diff --git a/src/api/template/response/data/shareInfo.ts b/src/api/template/response/data/shareInfo.ts new file mode 100644 index 00000000..8c307a43 --- /dev/null +++ b/src/api/template/response/data/shareInfo.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface ShareInfo { + is_team_shared: boolean; + role: string; + is_personally_shared_to_others: boolean; +} diff --git a/src/api/template/response/data/template/template.ts b/src/api/template/response/data/template/template.ts new file mode 100644 index 00000000..4993007f --- /dev/null +++ b/src/api/template/response/data/template/template.ts @@ -0,0 +1,19 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Thumbnail } from './thumbnail'; + +export interface Template { + roles: string[]; + template_name: string; + id: string; + owner_email: string; + thumbnail: Thumbnail; + readable?: boolean | null; +} diff --git a/src/api/template/response/data/template/thumbnail.ts b/src/api/template/response/data/template/thumbnail.ts new file mode 100644 index 00000000..92504707 --- /dev/null +++ b/src/api/template/response/data/template/thumbnail.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Thumbnail { + small: string; + medium: string; + large: string; +} diff --git a/src/api/template/response/data/viewer.ts b/src/api/template/response/data/viewer.ts new file mode 100644 index 00000000..b799c58c --- /dev/null +++ b/src/api/template/response/data/viewer.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Viewer { + default_email: string; + name: string; + signing_order: number; +} diff --git a/src/api/template/response/groupTemplateGet.ts b/src/api/template/response/groupTemplateGet.ts new file mode 100644 index 00000000..da6d84ab --- /dev/null +++ b/src/api/template/response/groupTemplateGet.ts @@ -0,0 +1,31 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { RoutingDetail } from './data/routingDetail/routingDetail'; +import { Template } from './data/template/template'; +import { ShareInfo } from './data/shareInfo'; + +export interface GroupTemplateGet { + id: string; + user_id: string; + group_name: string; + folder_id: string; + routing_details: RoutingDetail; + templates: Template[]; + shared: number; + document_group_template_owner_email: string; + shared_team_id: string | null; + own_as_merged: boolean; + email_action_on_complete: string | null; + created: number; + updated: number; + recently_used: number; + pinned: boolean; + share_info?: ShareInfo | null; +} diff --git a/src/api/template/response/groupTemplatePut.ts b/src/api/template/response/groupTemplatePut.ts new file mode 100644 index 00000000..87241b31 --- /dev/null +++ b/src/api/template/response/groupTemplatePut.ts @@ -0,0 +1,11 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface GroupTemplatePut { +} diff --git a/src/api/template/response/routingDetailsGet.ts b/src/api/template/response/routingDetailsGet.ts new file mode 100644 index 00000000..c499ab27 --- /dev/null +++ b/src/api/template/response/routingDetailsGet.ts @@ -0,0 +1,24 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { RoutingDetail } from './data/routingDetail'; +import { CcStep } from './data/ccStep'; +import { Viewer } from './data/viewer'; +import { Approver } from './data/approver'; +import { Attribute } from './data/attribute'; + +export interface RoutingDetailsGet { + routing_details: RoutingDetail[]; + cc: string[]; + cc_step: CcStep[]; + viewers: Viewer[]; + approvers: Approver[]; + attributes: Attribute; + invite_link_instructions?: string[]; +} diff --git a/src/api/template/response/routingDetailsPost.ts b/src/api/template/response/routingDetailsPost.ts new file mode 100644 index 00000000..d407e0b8 --- /dev/null +++ b/src/api/template/response/routingDetailsPost.ts @@ -0,0 +1,22 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { RoutingDetail } from './data/routingDetail'; +import { CcStep } from './data/ccStep'; +import { Viewer } from './data/viewer'; +import { Approver } from './data/approver'; + +export interface RoutingDetailsPost { + routing_details: RoutingDetail[]; + cc?: string[]; + cc_step?: CcStep[]; + viewers?: Viewer[]; + approvers?: Approver[]; + invite_link_instructions?: string[]; +} diff --git a/src/api/template/response/routingDetailsPut.ts b/src/api/template/response/routingDetailsPut.ts new file mode 100644 index 00000000..383f35de --- /dev/null +++ b/src/api/template/response/routingDetailsPut.ts @@ -0,0 +1,24 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Data } from './data/data'; +import { CcStep } from './data/ccStep'; +import { Viewer } from './data/viewer'; +import { Approver } from './data/approver'; + +export interface RoutingDetailsPut { + id: string; + document_id: string; + data: Data; + cc: string[]; + cc_step: CcStep[]; + viewers: Viewer[]; + approvers: Approver[]; + invite_link_instructions: string[]; +} diff --git a/src/api/template/response/templatePost.ts b/src/api/template/response/templatePost.ts new file mode 100644 index 00000000..560151b0 --- /dev/null +++ b/src/api/template/response/templatePost.ts @@ -0,0 +1,12 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface TemplatePost { + id: string; +} diff --git a/src/api/user/index.ts b/src/api/user/index.ts new file mode 100644 index 00000000..386b2ab1 --- /dev/null +++ b/src/api/user/index.ts @@ -0,0 +1,47 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export type { ActiveLogo as ActiveLogoResponse } from './response/data/activeLogo'; +export type { Admin as TeamAdminResponse } from './response/data/team/admin'; +export type { Api as PremiumAccessApiResponse } from './response/data/premiumAccess/api'; +export type { BillingPeriod as BillingPeriodResponse } from './response/data/billingPeriod'; +export type { CloudExportAccountDetail as CloudExportAccountDetailResponse } from './response/data/cloudExportAccountDetail'; +export type { Company as CompanyResponse } from './response/data/company'; +export type { Domain as DomainResponse } from './response/data/domain'; +export type { EmailVerifyPut as EmailVerifyPutResponse } from './response/emailVerifyPut'; +export type { GatewaySubscription as GatewaySubscriptionResponse } from './response/data/gatewaySubscription'; +export type { GatewaySubscription as PremiumAccessGatewaySubscriptionResponse } from './response/data/premiumAccess/gatewaySubscription'; +export type { InitialGet as InitialGetResponse } from './response/initialGet'; +export type { InitialPut as InitialPutResponse } from './response/initialPut'; +export type { IssueNotification as IssueNotificationResponse } from './response/data/issueNotification'; +export type { Logo as LogoResponse } from './response/data/logo'; +export type { Marketplace as PremiumAccessMarketplaceResponse } from './response/data/premiumAccess/marketplace'; +export type { MerchantAccount as MerchantAccountMerchantAccountResponse } from './response/data/merchantAccount/merchantAccount'; +export type { Organization as OrganizationResponse } from './response/data/organization'; +export type { OrganizationSettings as OrganizationSettingsResponse } from './response/data/organizationSettings'; +export type { Plan as PremiumAccessPlanResponse } from './response/data/premiumAccess/plan'; +export type { PremiumAccess as PremiumAccessPremiumAccessResponse } from './response/data/premiumAccess/premiumAccess'; +export type { ResetPasswordPost as ResetPasswordPostResponse } from './response/resetPasswordPost'; +export type { Settings as SettingsResponse } from './response/data/settings'; +export type { Status as StatusResponse } from './response/data/status'; +export type { Subscription as PremiumAccessSubscriptionResponse } from './response/data/premiumAccess/subscription'; +export type { Subscription as SubscriptionResponse } from './response/data/subscription'; +export type { Team as TeamResponse } from './response/data/team'; +export type { Team as TeamTeamResponse } from './response/data/team/team'; +export type { User as PremiumAccessUserResponse } from './response/data/premiumAccess/user'; +export type { UserGet as UserGetResponse } from './response/userGet'; +export type { UserPost as UserPostResponse } from './response/userPost'; +export type { UserPut as UserPutResponse } from './response/userPut'; +export { EmailVerifyPut as EmailVerifyPutRequest } from './request/emailVerifyPut'; +export { InitialGet as InitialGetRequest } from './request/initialGet'; +export { InitialPut as InitialPutRequest } from './request/initialPut'; +export { ResetPasswordPost as ResetPasswordPostRequest } from './request/resetPasswordPost'; +export { UserGet as UserGetRequest } from './request/userGet'; +export { UserPost as UserPostRequest } from './request/userPost'; +export { UserPut as UserPutRequest } from './request/userPut'; diff --git a/src/api/user/request/emailVerifyPut.ts b/src/api/user/request/emailVerifyPut.ts new file mode 100644 index 00000000..565d921d --- /dev/null +++ b/src/api/user/request/emailVerifyPut.ts @@ -0,0 +1,52 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class EmailVerifyPut implements BaseClass { + private queryParams: Record = {}; + + constructor( + private email: string, + private verificationToken: string, + ) {} + + public getPayload(): Record { + return { + email: this.email, + verification_token: this.verificationToken, + }; + } + + public getMethod(): string { + return HttpMethod.PUT; + } + + public getUrl(): string { + return '/user/email/verify'; + } + + public getAuthMethod(): string { + return HttpAuthType.BASIC; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): null { + return null; + } +} diff --git a/src/api/user/request/initialGet.ts b/src/api/user/request/initialGet.ts new file mode 100644 index 00000000..549a427c --- /dev/null +++ b/src/api/user/request/initialGet.ts @@ -0,0 +1,44 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class InitialGet implements BaseClass { + private queryParams: Record = {}; + + public getPayload(): null { + return null; + } + + public getMethod(): string { + return HttpMethod.GET; + } + + public getUrl(): string { + return '/user/initial'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): null { + return null; + } +} diff --git a/src/api/user/request/initialPut.ts b/src/api/user/request/initialPut.ts new file mode 100644 index 00000000..a11bc013 --- /dev/null +++ b/src/api/user/request/initialPut.ts @@ -0,0 +1,48 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class InitialPut implements BaseClass { + private queryParams: Record = {}; + + constructor(private data: string) {} + + public getPayload(): Record { + return { + data: this.data, + }; + } + + public getMethod(): string { + return HttpMethod.PUT; + } + + public getUrl(): string { + return '/user/initial'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): null { + return null; + } +} diff --git a/src/api/user/request/resetPasswordPost.ts b/src/api/user/request/resetPasswordPost.ts new file mode 100644 index 00000000..e04f0abe --- /dev/null +++ b/src/api/user/request/resetPasswordPost.ts @@ -0,0 +1,48 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class ResetPasswordPost implements BaseClass { + private queryParams: Record = {}; + + constructor(private email: string) {} + + public getPayload(): Record { + return { + email: this.email, + }; + } + + public getMethod(): string { + return HttpMethod.POST; + } + + public getUrl(): string { + return '/user/forgotpassword'; + } + + public getAuthMethod(): string { + return HttpAuthType.BASIC; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): null { + return null; + } +} diff --git a/src/api/user/request/userGet.ts b/src/api/user/request/userGet.ts new file mode 100644 index 00000000..e2b16a9e --- /dev/null +++ b/src/api/user/request/userGet.ts @@ -0,0 +1,44 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class UserGet implements BaseClass { + private queryParams: Record = {}; + + public getPayload(): null { + return null; + } + + public getMethod(): string { + return HttpMethod.GET; + } + + public getUrl(): string { + return '/user'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): null { + return null; + } +} diff --git a/src/api/user/request/userPost.ts b/src/api/user/request/userPost.ts new file mode 100644 index 00000000..5800e481 --- /dev/null +++ b/src/api/user/request/userPost.ts @@ -0,0 +1,58 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class UserPost implements BaseClass { + private queryParams: Record = {}; + + constructor( + private email: string, + private password: string, + private firstName: string = '', + private lastName: string = '', + private number: string = '', + ) {} + + public getPayload(): Record { + return { + email: this.email, + password: this.password, + first_name: this.firstName, + last_name: this.lastName, + number: this.number, + }; + } + + public getMethod(): string { + return HttpMethod.POST; + } + + public getUrl(): string { + return '/user'; + } + + public getAuthMethod(): string { + return HttpAuthType.BASIC; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): null { + return null; + } +} diff --git a/src/api/user/request/userPut.ts b/src/api/user/request/userPut.ts new file mode 100644 index 00000000..6bfb188a --- /dev/null +++ b/src/api/user/request/userPut.ts @@ -0,0 +1,58 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class UserPut implements BaseClass { + private queryParams: Record = {}; + + constructor( + private firstName: string, + private lastName: string, + private password: string = '', + private oldPassword: string = '', + private logoutAll: string = '', + ) {} + + public getPayload(): Record { + return { + first_name: this.firstName, + last_name: this.lastName, + password: this.password, + old_password: this.oldPassword, + logout_all: this.logoutAll, + }; + } + + public getMethod(): string { + return HttpMethod.PUT; + } + + public getUrl(): string { + return '/user'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): null { + return null; + } +} diff --git a/src/api/user/response/data/activeLogo.ts b/src/api/user/response/data/activeLogo.ts new file mode 100644 index 00000000..37431aa2 --- /dev/null +++ b/src/api/user/response/data/activeLogo.ts @@ -0,0 +1,13 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface ActiveLogo { + id?: string | null; + uri?: string | null; +} diff --git a/src/api/user/response/data/billingPeriod.ts b/src/api/user/response/data/billingPeriod.ts new file mode 100644 index 00000000..1550020c --- /dev/null +++ b/src/api/user/response/data/billingPeriod.ts @@ -0,0 +1,15 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface BillingPeriod { + start_date: string; + end_date: string; + start_timestamp: number; + end_timestamp: number; +} diff --git a/src/api/user/response/data/cloudExportAccountDetail.ts b/src/api/user/response/data/cloudExportAccountDetail.ts new file mode 100644 index 00000000..f0376051 --- /dev/null +++ b/src/api/user/response/data/cloudExportAccountDetail.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface CloudExportAccountDetail { + username?: string | null; + short_files_servicename?: string | null; + long_files_servicename?: string | null; +} diff --git a/src/api/user/response/data/company.ts b/src/api/user/response/data/company.ts new file mode 100644 index 00000000..8e0b6fbb --- /dev/null +++ b/src/api/user/response/data/company.ts @@ -0,0 +1,13 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Company { + name?: string; + full_access?: boolean; +} diff --git a/src/api/user/response/data/domain.ts b/src/api/user/response/data/domain.ts new file mode 100644 index 00000000..c23f450a --- /dev/null +++ b/src/api/user/response/data/domain.ts @@ -0,0 +1,13 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Domain { + id: string; + domain: string; +} diff --git a/src/api/user/response/data/gatewaySubscription.ts b/src/api/user/response/data/gatewaySubscription.ts new file mode 100644 index 00000000..b135781c --- /dev/null +++ b/src/api/user/response/data/gatewaySubscription.ts @@ -0,0 +1,13 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface GatewaySubscription { + gateway?: string; + auto_renew?: boolean; +} diff --git a/src/api/user/response/data/issueNotification.ts b/src/api/user/response/data/issueNotification.ts new file mode 100644 index 00000000..a930baeb --- /dev/null +++ b/src/api/user/response/data/issueNotification.ts @@ -0,0 +1,13 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface IssueNotification { + title: string; + description: string; +} diff --git a/src/api/user/response/data/logo.ts b/src/api/user/response/data/logo.ts new file mode 100644 index 00000000..127ceb42 --- /dev/null +++ b/src/api/user/response/data/logo.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Logo { + id: string; + name: string; + active: boolean; +} diff --git a/src/api/user/response/data/merchantAccount/merchantAccount.ts b/src/api/user/response/data/merchantAccount/merchantAccount.ts new file mode 100644 index 00000000..31d78208 --- /dev/null +++ b/src/api/user/response/data/merchantAccount/merchantAccount.ts @@ -0,0 +1,18 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface MerchantAccount { + id: string; + scope: string; + merchant_type: string; + merchant_account_name: string; + currencies: string[]; + currency: string; + currency_name: string; +} diff --git a/src/api/user/response/data/organization.ts b/src/api/user/response/data/organization.ts new file mode 100644 index 00000000..f63f878a --- /dev/null +++ b/src/api/user/response/data/organization.ts @@ -0,0 +1,28 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Domain } from './domain'; +import { Logo } from './logo'; +import { ActiveLogo } from './activeLogo'; +import { Team } from './team'; + +export interface Organization { + is_admin: boolean; + is_superadmin: boolean; + is_workspace: boolean; + id?: string; + name?: string; + deleted?: string; + created?: string; + updated?: string; + domains?: Domain[]; + logos?: Logo[]; + active_logo?: ActiveLogo[]; + teams?: Team[]; +} diff --git a/src/api/user/response/data/organizationSettings.ts b/src/api/user/response/data/organizationSettings.ts new file mode 100644 index 00000000..b0d3e224 --- /dev/null +++ b/src/api/user/response/data/organizationSettings.ts @@ -0,0 +1,13 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface OrganizationSettings { + setting: string; + value: string; +} diff --git a/src/api/user/response/data/premiumAccess/api.ts b/src/api/user/response/data/premiumAccess/api.ts new file mode 100644 index 00000000..57cbf4e3 --- /dev/null +++ b/src/api/user/response/data/premiumAccess/api.ts @@ -0,0 +1,15 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Api { + key: string; + created_at: number; + expired_at: number; + level: string; +} diff --git a/src/api/user/response/data/premiumAccess/gatewaySubscription.ts b/src/api/user/response/data/premiumAccess/gatewaySubscription.ts new file mode 100644 index 00000000..0d537ed6 --- /dev/null +++ b/src/api/user/response/data/premiumAccess/gatewaySubscription.ts @@ -0,0 +1,13 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface GatewaySubscription { + gateway?: string | null; + auto_renew?: boolean | null; +} diff --git a/src/api/user/response/data/premiumAccess/marketplace.ts b/src/api/user/response/data/premiumAccess/marketplace.ts new file mode 100644 index 00000000..561efa5f --- /dev/null +++ b/src/api/user/response/data/premiumAccess/marketplace.ts @@ -0,0 +1,12 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Marketplace { + name?: string | null; +} diff --git a/src/api/user/response/data/premiumAccess/plan.ts b/src/api/user/response/data/premiumAccess/plan.ts new file mode 100644 index 00000000..6821faef --- /dev/null +++ b/src/api/user/response/data/premiumAccess/plan.ts @@ -0,0 +1,24 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Plan { + id: number; + plan_id: string; + name: string; + price: string; + billing_cycle: number; + active: boolean; + groups: string[]; + level: string; + type: string; + api_requests: number; + unit_price: number; + is_trial: boolean; + is_marketplace: boolean; +} diff --git a/src/api/user/response/data/premiumAccess/premiumAccess.ts b/src/api/user/response/data/premiumAccess/premiumAccess.ts new file mode 100644 index 00000000..a08dee04 --- /dev/null +++ b/src/api/user/response/data/premiumAccess/premiumAccess.ts @@ -0,0 +1,24 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { User } from './user'; +import { Subscription } from './subscription'; +import { Api } from './api'; + +export interface PremiumAccess { + subscription: Subscription; + api: Api; + error?: boolean; + user?: User; + active?: boolean; + plan?: string; + business?: boolean; + trial?: boolean; + credit_card?: boolean; +} diff --git a/src/api/user/response/data/premiumAccess/subscription.ts b/src/api/user/response/data/premiumAccess/subscription.ts new file mode 100644 index 00000000..e4a0d00a --- /dev/null +++ b/src/api/user/response/data/premiumAccess/subscription.ts @@ -0,0 +1,30 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Plan } from './plan'; +import { Marketplace } from './marketplace'; +import { GatewaySubscription } from './gatewaySubscription'; + +export interface Subscription { + serial_number: string; + name: string; + term: number; + seats: number; + used_seats: number; + expired_at: number; + created_at: number; + updated_at: number; + key: string; + version: string; + plan: Plan; + admin_email: string; + status: string; + marketplace?: Marketplace; + gateway_subscription?: GatewaySubscription; +} diff --git a/src/api/user/response/data/premiumAccess/user.ts b/src/api/user/response/data/premiumAccess/user.ts new file mode 100644 index 00000000..0c0ce6e2 --- /dev/null +++ b/src/api/user/response/data/premiumAccess/user.ts @@ -0,0 +1,18 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface User { + username: string; + email: string; + added_date: number; + status: string; + admin: string; + first_name?: string; + last_name?: string; +} diff --git a/src/api/user/response/data/settings.ts b/src/api/user/response/data/settings.ts new file mode 100644 index 00000000..a4af6651 --- /dev/null +++ b/src/api/user/response/data/settings.ts @@ -0,0 +1,119 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Settings { + no_document_attachment: boolean; + copy_export: boolean; + no_document_file_attachments: boolean; + no_user_signature_return: boolean; + mobileweb_option: boolean; + require_drawn_signatures: boolean; + org_allowed_team_admins: boolean; + cloud_auto_export: boolean; + digitally_sign_dowloaded_docs: boolean; + invite_completion_redirect_url: boolean; + invite_decline_redirect_url: boolean; + add_signature_stamp: boolean; + pending_invite_document_view_notification: boolean; + signing_link_document_download: boolean; + required_preset_signature_name: boolean; + cloud_export_with_history: boolean; + emailed_docs_include_history: boolean; + document_completion_retention_days: boolean; + enable_hyperlink_protection: boolean; + enable_advanced_threat_protection: boolean; + require_login_for_signing: boolean; + logout_on_signing: boolean; + audit_trail_completion_retention_days: boolean; + front_end_session_length: boolean; + email_admin_on_banned_login: boolean; + add_signature_stamp_with_name: boolean; + cfr_title21_part11: boolean; + unsuccessful_logout_attempts_allowed: boolean; + require_authentication_for_invites: boolean; + electronic_consent_required: boolean; + electronic_consent_text: boolean; + document_guide: boolean; + watermark_downloaded_document: boolean; + restrict_download: boolean; + disable_email_notifications: boolean; + upload_limit: boolean; + document_schema_extended: boolean; + invite_update_notifications_for_all_invites_at_invite_create: boolean; + enable_full_story_tracker: boolean; + document_attachment_only_for_signer: boolean; + sso_only_login: boolean; + block_export_options_when_credit_card_validation_is_used: boolean; + only_administrator_is_able_to_invite_to_the_team: boolean; + block_login_via_social_networks: boolean; + redirect_to_registration_when_fields_saved: boolean; + common_experiments: boolean; + hide_decline_to_sign_option_in_signing_session: boolean; + hide_upgrade_subscription_button: boolean; + do_no_consent_redirect_url: boolean; + lock_signing_date_by_default: boolean; + allow_download_certificate: boolean; + have_merged_document_group_option: boolean; + enable_eu_date_format: boolean; + guide_signers_only_through_required_fields: boolean; + allow_document_copying_to_other_accounts: boolean; + email_custom_subject: boolean; + email_custom_message: boolean; + invite_expiration_days: boolean; + enable_mfa: boolean; + enable_document_download_link_for_invite_completion_mails: boolean; + allow_big_attachment_file: boolean; + allow_big_count_of_attachment_fields_per_document?: boolean; + enable_hyperlink_field?: boolean; + disable_download_action_in_editor?: boolean; + signature_stamp_position?: boolean; + enable_pki?: boolean; + enable_document_comments?: boolean; + cc_completion_email_contain_only_downloading_document_link?: boolean; + save_signer_signature_and_initials?: boolean; + auto_apply_signatures_and_initials_to_document_fields?: boolean; + block_organization_selfleave_by_member?: boolean; + receive_signer_email_after_sent_field_invite_to_yourself?: boolean; + date_format?: boolean; + completed_document_name_formula?: boolean; + agreement_to_test_new_functionality_in_organization?: boolean; + agree_to_be_beta_tester?: boolean; + default_field_invite_remind_before?: boolean; + default_field_invite_remind_after?: boolean; + default_field_invite_remind_repeat?: boolean; + default_field_invite_expiration_time?: boolean; + email_logo_position?: boolean; + email_btn_bkgd_color?: boolean; + email_btn_text_color?: boolean; + allow_edit_document_after_signing?: boolean; + allow_embedded_extended_token_expiration?: boolean; + every_signature_and_initials_field_requires_user_authentication?: boolean; + enable_render_pages_in_editor_as_images?: boolean; + enable_team_admin_move_docs?: boolean; + disable_email_recipients?: boolean; + allow_team_admin_rename_docs?: boolean; + email_footer_enabled?: boolean; + parse_only_signature_fields?: boolean; + flatten_before_aspose?: boolean; + run_experiments?: boolean; + disable_form_search?: boolean; + allow_team_admin_create_csv_report_for_shared_template?: boolean; + enable_team_generic_email?: boolean; + use_team_generic_data?: boolean; + signing_reason?: boolean; + allow_qes?: boolean; + enable_qes?: boolean; + advanced_signing_flow?: boolean; + document_prefill_disable_fields_existing_validation?: boolean; + disable_problem_invite_email_notifications?: boolean; + default_workspace_assigned?: boolean; + workspace_organization?: boolean; + default_workspace?: boolean; + workspace_subscription_admin?: boolean; +} diff --git a/src/api/user/response/data/status.ts b/src/api/user/response/data/status.ts new file mode 100644 index 00000000..c52fe8d3 --- /dev/null +++ b/src/api/user/response/data/status.ts @@ -0,0 +1,16 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Status { + bad_copy_token?: boolean; + has_copy_token?: boolean; + has_cloud_export_token?: boolean; + bad_cloud_export_token?: boolean; + has_salesforce_token?: boolean; +} diff --git a/src/api/user/response/data/subscription.ts b/src/api/user/response/data/subscription.ts new file mode 100644 index 00000000..af2fb898 --- /dev/null +++ b/src/api/user/response/data/subscription.ts @@ -0,0 +1,29 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { GatewaySubscription } from './gatewaySubscription'; + +export interface Subscription { + id: string; + subscription_id: string; + name: string; + expired: number; + created: number; + updated: number; + plan: string; + mobile_plan_type: string; + credit_card: boolean; + trial: boolean; + term: number; + seat_admin_email: string; + plan_version: number; + is_usage_based: boolean; + is_usage_based_seat_free: boolean; + gateway_subscription?: GatewaySubscription; +} diff --git a/src/api/user/response/data/team.ts b/src/api/user/response/data/team.ts new file mode 100644 index 00000000..f87817ed --- /dev/null +++ b/src/api/user/response/data/team.ts @@ -0,0 +1,13 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Team { + id: string; + name: string; +} diff --git a/src/api/user/response/data/team/admin.ts b/src/api/user/response/data/team/admin.ts new file mode 100644 index 00000000..8db4642b --- /dev/null +++ b/src/api/user/response/data/team/admin.ts @@ -0,0 +1,17 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Admin { + id: string; + is_secondary: string; + email: string; + billing: number; + document_access: number; + primary: boolean; +} diff --git a/src/api/user/response/data/team/team.ts b/src/api/user/response/data/team/team.ts new file mode 100644 index 00000000..680974a7 --- /dev/null +++ b/src/api/user/response/data/team/team.ts @@ -0,0 +1,21 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Admin } from './admin'; + +export interface Team { + id: string; + team: string; + type: string; + created_since: string; + role: string; + document_count: number; + admins: Admin[]; + workspace_id?: string | null; +} diff --git a/src/api/user/response/emailVerifyPut.ts b/src/api/user/response/emailVerifyPut.ts new file mode 100644 index 00000000..cc4183eb --- /dev/null +++ b/src/api/user/response/emailVerifyPut.ts @@ -0,0 +1,12 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface EmailVerifyPut { + email?: string; +} diff --git a/src/api/user/response/initialGet.ts b/src/api/user/response/initialGet.ts new file mode 100644 index 00000000..818ba16b --- /dev/null +++ b/src/api/user/response/initialGet.ts @@ -0,0 +1,16 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface InitialGet { + unique_id: string; + width: string; + height: string; + data: string; + created: string; +} diff --git a/src/api/user/response/initialPut.ts b/src/api/user/response/initialPut.ts new file mode 100644 index 00000000..1970824f --- /dev/null +++ b/src/api/user/response/initialPut.ts @@ -0,0 +1,15 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface InitialPut { + id: string; + width: string; + height: string; + created: string; +} diff --git a/src/api/user/response/resetPasswordPost.ts b/src/api/user/response/resetPasswordPost.ts new file mode 100644 index 00000000..f9feb441 --- /dev/null +++ b/src/api/user/response/resetPasswordPost.ts @@ -0,0 +1,12 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface ResetPasswordPost { + status: string; +} diff --git a/src/api/user/response/userGet.ts b/src/api/user/response/userGet.ts new file mode 100644 index 00000000..6604a716 --- /dev/null +++ b/src/api/user/response/userGet.ts @@ -0,0 +1,61 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Subscription } from './data/subscription'; +import { CloudExportAccountDetail } from './data/cloudExportAccountDetail'; +import { BillingPeriod } from './data/billingPeriod'; +import { PremiumAccess } from './data/premiumAccess/premiumAccess'; +import { Company } from './data/company'; +import { Team } from './data/team/team'; +import { Status } from './data/status'; +import { Settings } from './data/settings'; +import { OrganizationSettings } from './data/organizationSettings'; +import { IssueNotification } from './data/issueNotification'; +import { MerchantAccount } from './data/merchantAccount/merchantAccount'; +import { Organization } from './data/organization'; + +export interface UserGet { + id: string; + first_name: string; + last_name: string; + active: string; + verified: string; + type: number; + pro: number; + created: string; + emails: string[]; + primary_email: string; + subscriptions: Subscription[]; + credits: number; + has_atticus_access: boolean; + is_logged_in: boolean; + billing_period: BillingPeriod; + premium_access: PremiumAccess; + companies: Company[]; + document_count: number; + monthly_document_count: number; + lifetime_document_count: number; + teams: Team[]; + google_apps: boolean; + facebook_apps: boolean; + microsoft_apps: boolean; + status: Status; + settings: Settings; + organization_settings: OrganizationSettings[]; + issue_notifications: IssueNotification[]; + merchant_accounts: MerchantAccount[]; + cloud_export_account_details?: CloudExportAccountDetail | null; + organization?: Organization | null; + registration_source?: string | null; + avatar_url?: string | null; + signer_phone_invite?: string | null; + locale?: string | null; + password_changed?: number | null; + upload_limit?: number | null; +} diff --git a/src/api/user/response/userPost.ts b/src/api/user/response/userPost.ts new file mode 100644 index 00000000..e73cff58 --- /dev/null +++ b/src/api/user/response/userPost.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface UserPost { + id: string; + verified: number; + email: string; +} diff --git a/src/api/user/response/userPut.ts b/src/api/user/response/userPut.ts new file mode 100644 index 00000000..7a1437dd --- /dev/null +++ b/src/api/user/response/userPut.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface UserPut { + id: string; + first_name: string; + last_name: string; +} diff --git a/src/api/webhook/index.ts b/src/api/webhook/index.ts new file mode 100644 index 00000000..cca3bafc --- /dev/null +++ b/src/api/webhook/index.ts @@ -0,0 +1,23 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export type { Attribute as AttributeRequest } from './request/data/attribute'; +export type { Content as DataContentResponse } from './response/data/data/content'; +export type { Data as DataDataResponse } from './response/data/data/data'; +export type { Header as DataHeaderResponse } from './response/data/data/header'; +export type { Header as HeaderRequest } from './request/data/header'; +export type { JsonAttribute as DataJsonAttributeResponse } from './response/data/data/jsonAttribute'; +export type { SubscriptionDelete as SubscriptionDeleteResponse } from './response/subscriptionDelete'; +export type { SubscriptionGet as SubscriptionGetResponse } from './response/subscriptionGet'; +export type { SubscriptionPost as SubscriptionPostResponse } from './response/subscriptionPost'; +export type { SubscriptionPut as SubscriptionPutResponse } from './response/subscriptionPut'; +export { SubscriptionDelete as SubscriptionDeleteRequest } from './request/subscriptionDelete'; +export { SubscriptionGet as SubscriptionGetRequest } from './request/subscriptionGet'; +export { SubscriptionPost as SubscriptionPostRequest } from './request/subscriptionPost'; +export { SubscriptionPut as SubscriptionPutRequest } from './request/subscriptionPut'; diff --git a/src/api/webhook/request/data/attribute.ts b/src/api/webhook/request/data/attribute.ts new file mode 100644 index 00000000..c5001c24 --- /dev/null +++ b/src/api/webhook/request/data/attribute.ts @@ -0,0 +1,18 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Header } from './header'; + +export interface Attribute { + callback: string; + use_tls_12?: boolean; + integration_id?: string; + docid_queryparam?: boolean; + headers?: Header | null; +} diff --git a/src/api/webhook/request/data/header.ts b/src/api/webhook/request/data/header.ts new file mode 100644 index 00000000..100902bb --- /dev/null +++ b/src/api/webhook/request/data/header.ts @@ -0,0 +1,15 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Header { + string_head?: string; + int_head?: number; + bool_head?: boolean; + float_head?: number; +} diff --git a/src/api/webhook/request/subscriptionDelete.ts b/src/api/webhook/request/subscriptionDelete.ts new file mode 100644 index 00000000..49af1bd8 --- /dev/null +++ b/src/api/webhook/request/subscriptionDelete.ts @@ -0,0 +1,50 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class SubscriptionDelete implements BaseClass { + private queryParams: Record = {}; + + constructor(private eventSubscriptionId: string) {} + + public getPayload(): Record { + return { + event_subscription_id: this.eventSubscriptionId, + }; + } + + public getMethod(): string { + return HttpMethod.DELETE; + } + + public getUrl(): string { + return '/api/v2/events/{event_subscription_id}'; + } + + public getAuthMethod(): string { + return HttpAuthType.BASIC; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { event_subscription_id: string } { + return { + event_subscription_id: this.eventSubscriptionId, + }; + } +} diff --git a/src/api/webhook/request/subscriptionGet.ts b/src/api/webhook/request/subscriptionGet.ts new file mode 100644 index 00000000..8ccf837f --- /dev/null +++ b/src/api/webhook/request/subscriptionGet.ts @@ -0,0 +1,44 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class SubscriptionGet implements BaseClass { + private queryParams: Record = {}; + + public getPayload(): null { + return null; + } + + public getMethod(): string { + return HttpMethod.GET; + } + + public getUrl(): string { + return '/api/v2/events'; + } + + public getAuthMethod(): string { + return HttpAuthType.BASIC; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): null { + return null; + } +} diff --git a/src/api/webhook/request/subscriptionPost.ts b/src/api/webhook/request/subscriptionPost.ts new file mode 100644 index 00000000..6bb0d6db --- /dev/null +++ b/src/api/webhook/request/subscriptionPost.ts @@ -0,0 +1,59 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; +import { Attribute } from './data/attribute'; + +export class SubscriptionPost implements BaseClass { + private queryParams: Record = {}; + + constructor( + private event: string, + private entityId: string, + private action: string = '', + private attributes: Attribute = { callback: '' }, + private secretKey: string = '', + ) {} + + public getPayload(): Record { + return { + event: this.event, + entity_id: this.entityId, + action: this.action, + attributes: this.attributes, + secret_key: this.secretKey, + }; + } + + public getMethod(): string { + return HttpMethod.POST; + } + + public getUrl(): string { + return '/api/v2/events'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): null { + return null; + } +} diff --git a/src/api/webhook/request/subscriptionPut.ts b/src/api/webhook/request/subscriptionPut.ts new file mode 100644 index 00000000..02117306 --- /dev/null +++ b/src/api/webhook/request/subscriptionPut.ts @@ -0,0 +1,61 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; +import { Attribute } from './data/attribute'; + +export class SubscriptionPut implements BaseClass { + private queryParams: Record = {}; + + constructor( + private eventSubscriptionId: string, + private event: string, + private entityId: string, + private action: string, + private attributes: Attribute, + ) {} + + public getPayload(): Record { + return { + event_subscription_id: this.eventSubscriptionId, + event: this.event, + entity_id: this.entityId, + action: this.action, + attributes: this.attributes, + }; + } + + public getMethod(): string { + return HttpMethod.PUT; + } + + public getUrl(): string { + return '/api/v2/events/{event_subscription_id}'; + } + + public getAuthMethod(): string { + return HttpAuthType.BASIC; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { event_subscription_id: string } { + return { + event_subscription_id: this.eventSubscriptionId, + }; + } +} diff --git a/src/api/webhook/response/data/data/content.ts b/src/api/webhook/response/data/data/content.ts new file mode 100644 index 00000000..4789a6b2 --- /dev/null +++ b/src/api/webhook/response/data/data/content.ts @@ -0,0 +1,16 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Content { + key?: string; + key1?: string; + key2?: string; + account_id?: string; + source?: string; +} diff --git a/src/api/webhook/response/data/data/data.ts b/src/api/webhook/response/data/data/data.ts new file mode 100644 index 00000000..f41331e2 --- /dev/null +++ b/src/api/webhook/response/data/data/data.ts @@ -0,0 +1,21 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { JsonAttribute } from './jsonAttribute'; +import { Content } from './content'; + +export interface Data { + id: string; + event: string; + entity_id: number; + action: string; + json_attributes: JsonAttribute; + created: number; + content?: Content; +} diff --git a/src/api/webhook/response/data/data/header.ts b/src/api/webhook/response/data/data/header.ts new file mode 100644 index 00000000..e805c059 --- /dev/null +++ b/src/api/webhook/response/data/data/header.ts @@ -0,0 +1,15 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Header { + string_head?: string | null; + int_head?: number | null; + bool_head?: boolean | null; + float_head?: number | null; +} diff --git a/src/api/webhook/response/data/data/jsonAttribute.ts b/src/api/webhook/response/data/data/jsonAttribute.ts new file mode 100644 index 00000000..688ff9aa --- /dev/null +++ b/src/api/webhook/response/data/data/jsonAttribute.ts @@ -0,0 +1,19 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Header } from './header'; + +export interface JsonAttribute { + use_tls12: boolean; + docid_queryparam: boolean; + callback_url: string; + integration_id?: string | null; + headers?: Header | null; + secret_key?: string; +} diff --git a/src/api/webhook/response/subscriptionDelete.ts b/src/api/webhook/response/subscriptionDelete.ts new file mode 100644 index 00000000..06b4d6e4 --- /dev/null +++ b/src/api/webhook/response/subscriptionDelete.ts @@ -0,0 +1,11 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface SubscriptionDelete { +} diff --git a/src/api/webhook/response/subscriptionGet.ts b/src/api/webhook/response/subscriptionGet.ts new file mode 100644 index 00000000..e81235d3 --- /dev/null +++ b/src/api/webhook/response/subscriptionGet.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Data } from './data/data/data'; + +export interface SubscriptionGet { + data: Data[]; +} diff --git a/src/api/webhook/response/subscriptionPost.ts b/src/api/webhook/response/subscriptionPost.ts new file mode 100644 index 00000000..4e69b331 --- /dev/null +++ b/src/api/webhook/response/subscriptionPost.ts @@ -0,0 +1,11 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface SubscriptionPost { +} diff --git a/src/api/webhook/response/subscriptionPut.ts b/src/api/webhook/response/subscriptionPut.ts new file mode 100644 index 00000000..a6638f60 --- /dev/null +++ b/src/api/webhook/response/subscriptionPut.ts @@ -0,0 +1,11 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface SubscriptionPut { +} diff --git a/src/api/webhookV2/index.ts b/src/api/webhookV2/index.ts new file mode 100644 index 00000000..dd998a21 --- /dev/null +++ b/src/api/webhookV2/index.ts @@ -0,0 +1,39 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export type { Attribute as AttributeRequestV2 } from './request/data/attribute'; +export type { CallbackGet as CallbackGetResponseV2 } from './response/callbackGet'; +export type { CallbacksAllGet as CallbacksAllGetResponseV2 } from './response/callbacksAllGet'; +export type { Content as ContentResponseV2 } from './response/data/content'; +export type { Content as DataContentResponseV2 } from './response/data/data/content'; +export type { Data as DataDataResponseV2 } from './response/data/data/data'; +export type { Data as DataResponseV2 } from './response/data/data'; +export type { EventSubscriptionAllGet as EventSubscriptionAllGetResponseV2 } from './response/eventSubscriptionAllGet'; +export type { EventSubscriptionDelete as EventSubscriptionDeleteResponseV2 } from './response/eventSubscriptionDelete'; +export type { EventSubscriptionGet as EventSubscriptionGetResponseV2 } from './response/eventSubscriptionGet'; +export type { EventSubscriptionPut as EventSubscriptionPutResponseV2 } from './response/eventSubscriptionPut'; +export type { EventSubscriptionsCallbacksAllGet as EventSubscriptionsCallbacksAllGetResponseV2 } from './response/eventSubscriptionsCallbacksAllGet'; +export type { Header as DataHeaderResponseV2 } from './response/data/data/header'; +export type { Header as HeaderRequestV2 } from './request/data/header'; +export type { Header as HeaderResponseV2 } from './response/data/header'; +export type { JsonAttribute as DataJsonAttributeResponseV2 } from './response/data/data/jsonAttribute'; +export type { JsonAttribute as JsonAttributeResponseV2 } from './response/data/jsonAttribute'; +export type { Meta as DataMetaResponseV2 } from './response/data/data/meta'; +export type { Meta as MetaResponseV2 } from './response/data/meta'; +export type { RequestContent as DataRequestContentResponseV2 } from './response/data/data/requestContent'; +export type { RequestContent as RequestContentResponseV2 } from './response/data/requestContent'; +export type { RequestHeader as DataRequestHeaderResponseV2 } from './response/data/data/requestHeader'; +export type { RequestHeader as RequestHeaderResponseV2 } from './response/data/requestHeader'; +export { CallbackGet as CallbackGetRequestV2 } from './request/callbackGet'; +export { CallbacksAllGet as CallbacksAllGetRequestV2 } from './request/callbacksAllGet'; +export { EventSubscriptionAllGet as EventSubscriptionAllGetRequestV2 } from './request/eventSubscriptionAllGet'; +export { EventSubscriptionDelete as EventSubscriptionDeleteRequestV2 } from './request/eventSubscriptionDelete'; +export { EventSubscriptionGet as EventSubscriptionGetRequestV2 } from './request/eventSubscriptionGet'; +export { EventSubscriptionPut as EventSubscriptionPutRequestV2 } from './request/eventSubscriptionPut'; +export { EventSubscriptionsCallbacksAllGet as EventSubscriptionsCallbacksAllGetRequestV2 } from './request/eventSubscriptionsCallbacksAllGet'; diff --git a/src/api/webhookV2/request/callbackGet.ts b/src/api/webhookV2/request/callbackGet.ts new file mode 100644 index 00000000..1d59fed6 --- /dev/null +++ b/src/api/webhookV2/request/callbackGet.ts @@ -0,0 +1,55 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class CallbackGet implements BaseClass { + private queryParams: Record = {}; + + constructor( + private eventSubscriptionId: string, + private callbackId: string, + ) {} + + public getPayload(): Record { + return { + event_subscription_id: this.eventSubscriptionId, + callback_id: this.callbackId, + }; + } + + public getMethod(): string { + return HttpMethod.GET; + } + + public getUrl(): string { + return '/v2/event-subscriptions/{event_subscription_id}/callbacks/{callback_id}'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { event_subscription_id: string, callback_id: string } { + return { + event_subscription_id: this.eventSubscriptionId, + callback_id: this.callbackId, + }; + } +} diff --git a/src/api/webhookV2/request/callbacksAllGet.ts b/src/api/webhookV2/request/callbacksAllGet.ts new file mode 100644 index 00000000..99c3eccc --- /dev/null +++ b/src/api/webhookV2/request/callbacksAllGet.ts @@ -0,0 +1,50 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class CallbacksAllGet implements BaseClass { + private queryParams: Record = {}; + + constructor(private eventSubscriptionId: string) {} + + public getPayload(): Record { + return { + event_subscription_id: this.eventSubscriptionId, + }; + } + + public getMethod(): string { + return HttpMethod.GET; + } + + public getUrl(): string { + return '/v2/event-subscriptions/{event_subscription_id}/callbacks'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { event_subscription_id: string } { + return { + event_subscription_id: this.eventSubscriptionId, + }; + } +} diff --git a/src/api/webhookV2/request/data/attribute.ts b/src/api/webhookV2/request/data/attribute.ts new file mode 100644 index 00000000..d36d5441 --- /dev/null +++ b/src/api/webhookV2/request/data/attribute.ts @@ -0,0 +1,21 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Header } from './header'; + +export interface Attribute { + callback: string; + delete_access_token?: boolean; + use_tls12?: boolean; + integration_id?: string; + docid_queryparam?: boolean; + headers?: Header | null; + include_metadata?: boolean; + secret_key?: string; +} diff --git a/src/api/webhookV2/request/data/header.ts b/src/api/webhookV2/request/data/header.ts new file mode 100644 index 00000000..bff9d0de --- /dev/null +++ b/src/api/webhookV2/request/data/header.ts @@ -0,0 +1,15 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Header { + string_head: string; + int_head: number; + bool_head: boolean; + float_head: number; +} diff --git a/src/api/webhookV2/request/eventSubscriptionAllGet.ts b/src/api/webhookV2/request/eventSubscriptionAllGet.ts new file mode 100644 index 00000000..6bf90bb6 --- /dev/null +++ b/src/api/webhookV2/request/eventSubscriptionAllGet.ts @@ -0,0 +1,44 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class EventSubscriptionAllGet implements BaseClass { + private queryParams: Record = {}; + + public getPayload(): null { + return null; + } + + public getMethod(): string { + return HttpMethod.GET; + } + + public getUrl(): string { + return '/v2/event-subscriptions'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): null { + return null; + } +} diff --git a/src/api/webhookV2/request/eventSubscriptionDelete.ts b/src/api/webhookV2/request/eventSubscriptionDelete.ts new file mode 100644 index 00000000..cd457ba8 --- /dev/null +++ b/src/api/webhookV2/request/eventSubscriptionDelete.ts @@ -0,0 +1,50 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class EventSubscriptionDelete implements BaseClass { + private queryParams: Record = {}; + + constructor(private eventSubscriptionId: string) {} + + public getPayload(): Record { + return { + event_subscription_id: this.eventSubscriptionId, + }; + } + + public getMethod(): string { + return HttpMethod.DELETE; + } + + public getUrl(): string { + return '/v2/event-subscriptions/{event_subscription_id}'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { event_subscription_id: string } { + return { + event_subscription_id: this.eventSubscriptionId, + }; + } +} diff --git a/src/api/webhookV2/request/eventSubscriptionGet.ts b/src/api/webhookV2/request/eventSubscriptionGet.ts new file mode 100644 index 00000000..741552ef --- /dev/null +++ b/src/api/webhookV2/request/eventSubscriptionGet.ts @@ -0,0 +1,50 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class EventSubscriptionGet implements BaseClass { + private queryParams: Record = {}; + + constructor(private eventSubscriptionId: string) {} + + public getPayload(): Record { + return { + event_subscription_id: this.eventSubscriptionId, + }; + } + + public getMethod(): string { + return HttpMethod.GET; + } + + public getUrl(): string { + return '/v2/event-subscriptions/{event_subscription_id}'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { event_subscription_id: string } { + return { + event_subscription_id: this.eventSubscriptionId, + }; + } +} diff --git a/src/api/webhookV2/request/eventSubscriptionPut.ts b/src/api/webhookV2/request/eventSubscriptionPut.ts new file mode 100644 index 00000000..76f84d8c --- /dev/null +++ b/src/api/webhookV2/request/eventSubscriptionPut.ts @@ -0,0 +1,61 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; +import { Attribute } from './data/attribute'; + +export class EventSubscriptionPut implements BaseClass { + private queryParams: Record = {}; + + constructor( + private eventSubscriptionId: string, + private event: string, + private entityId: string, + private action: string, + private attributes: Attribute, + ) {} + + public getPayload(): Record { + return { + event_subscription_id: this.eventSubscriptionId, + event: this.event, + entity_id: this.entityId, + action: this.action, + attributes: this.attributes, + }; + } + + public getMethod(): string { + return HttpMethod.PUT; + } + + public getUrl(): string { + return '/v2/event-subscriptions/{event_subscription_id}'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): { event_subscription_id: string } { + return { + event_subscription_id: this.eventSubscriptionId, + }; + } +} diff --git a/src/api/webhookV2/request/eventSubscriptionsCallbacksAllGet.ts b/src/api/webhookV2/request/eventSubscriptionsCallbacksAllGet.ts new file mode 100644 index 00000000..c30606ee --- /dev/null +++ b/src/api/webhookV2/request/eventSubscriptionsCallbacksAllGet.ts @@ -0,0 +1,44 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { BaseClass } from '../../../types/baseClass'; +import { HttpMethod } from '../../../core/contstants'; +import { HttpAuthType } from '../../../core/contstants'; + +export class EventSubscriptionsCallbacksAllGet implements BaseClass { + private queryParams: Record = {}; + + public getPayload(): null { + return null; + } + + public getMethod(): string { + return HttpMethod.GET; + } + + public getUrl(): string { + return '/v2/event-subscriptions/callbacks'; + } + + public getAuthMethod(): string { + return HttpAuthType.BEARER; + } + + public getContentType(): string { + return 'application/json'; + } + + public getQueryParams(): Record { + return this.queryParams; + } + + public getUriParams(): null { + return null; + } +} diff --git a/src/api/webhookV2/response/callbackGet.ts b/src/api/webhookV2/response/callbackGet.ts new file mode 100644 index 00000000..be140c76 --- /dev/null +++ b/src/api/webhookV2/response/callbackGet.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Data } from './data/data'; + +export interface CallbackGet { + data?: Data; +} diff --git a/src/api/webhookV2/response/callbacksAllGet.ts b/src/api/webhookV2/response/callbacksAllGet.ts new file mode 100644 index 00000000..eab1d126 --- /dev/null +++ b/src/api/webhookV2/response/callbacksAllGet.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Data } from './data/data'; + +export interface CallbacksAllGet { + data?: Data; +} diff --git a/src/api/webhookV2/response/data/content.ts b/src/api/webhookV2/response/data/content.ts new file mode 100644 index 00000000..78bf73ac --- /dev/null +++ b/src/api/webhookV2/response/data/content.ts @@ -0,0 +1,15 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Content { + document_id: string; + document_name: string; + user_id: string; + viewer_user_unique_id: string; +} diff --git a/src/api/webhookV2/response/data/data.ts b/src/api/webhookV2/response/data/data.ts new file mode 100644 index 00000000..0e2e4efd --- /dev/null +++ b/src/api/webhookV2/response/data/data.ts @@ -0,0 +1,30 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { RequestHeader } from './requestHeader'; +import { RequestContent } from './requestContent'; + +export interface Data { + id: string; + application_name: string; + entity_id: string; + entity_type: string; + event_subscription_id: string; + event_subscription_active: boolean; + event_name: string; + callback_url: string; + request_method: string; + duration: number; + request_start_time: number; + request_end_time: number; + request_content: RequestContent; + response_content: string; + response_status_code: number; + request_headers?: RequestHeader; +} diff --git a/src/api/webhookV2/response/data/data/content.ts b/src/api/webhookV2/response/data/data/content.ts new file mode 100644 index 00000000..78bf73ac --- /dev/null +++ b/src/api/webhookV2/response/data/data/content.ts @@ -0,0 +1,15 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Content { + document_id: string; + document_name: string; + user_id: string; + viewer_user_unique_id: string; +} diff --git a/src/api/webhookV2/response/data/data/data.ts b/src/api/webhookV2/response/data/data/data.ts new file mode 100644 index 00000000..0f0d4bd9 --- /dev/null +++ b/src/api/webhookV2/response/data/data/data.ts @@ -0,0 +1,30 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { RequestHeader } from './requestHeader'; +import { RequestContent } from './requestContent'; + +export interface Data { + id: string; + application_name: string; + entity_id: string; + event_subscription_id: string; + event_subscription_active: boolean; + event_name: string; + callback_url: string; + request_method: string; + request_start_time: number; + request_end_time: number; + duration: number; + request_content: RequestContent; + response_content: string; + response_status_code: number; + event_type?: string | null; + request_headers?: RequestHeader; +} diff --git a/src/api/webhookV2/response/data/data/header.ts b/src/api/webhookV2/response/data/data/header.ts new file mode 100644 index 00000000..e805c059 --- /dev/null +++ b/src/api/webhookV2/response/data/data/header.ts @@ -0,0 +1,15 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Header { + string_head?: string | null; + int_head?: number | null; + bool_head?: boolean | null; + float_head?: number | null; +} diff --git a/src/api/webhookV2/response/data/data/jsonAttribute.ts b/src/api/webhookV2/response/data/data/jsonAttribute.ts new file mode 100644 index 00000000..79bc4a6d --- /dev/null +++ b/src/api/webhookV2/response/data/data/jsonAttribute.ts @@ -0,0 +1,20 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Header } from './header'; + +export interface JsonAttribute { + use_tls12: boolean; + callback_url: string; + docid_queryparam?: boolean; + integration_id?: string | null; + headers?: Header | null; + include_metadata?: boolean; + delete_access_token?: boolean; +} diff --git a/src/api/webhookV2/response/data/data/meta.ts b/src/api/webhookV2/response/data/data/meta.ts new file mode 100644 index 00000000..fe0498d8 --- /dev/null +++ b/src/api/webhookV2/response/data/data/meta.ts @@ -0,0 +1,17 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Meta { + timestamp: number; + event: string; + environment: string; + callback_url: string; + initiator_id: string; + access_token: string; +} diff --git a/src/api/webhookV2/response/data/data/requestContent.ts b/src/api/webhookV2/response/data/data/requestContent.ts new file mode 100644 index 00000000..57f2afa0 --- /dev/null +++ b/src/api/webhookV2/response/data/data/requestContent.ts @@ -0,0 +1,16 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Meta } from './meta'; +import { Content } from './content'; + +export interface RequestContent { + meta: Meta; + content: Content; +} diff --git a/src/api/webhookV2/response/data/data/requestHeader.ts b/src/api/webhookV2/response/data/data/requestHeader.ts new file mode 100644 index 00000000..5a03a8c1 --- /dev/null +++ b/src/api/webhookV2/response/data/data/requestHeader.ts @@ -0,0 +1,15 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface RequestHeader { + string_head?: string | null; + int_head?: number | null; + bool_head?: boolean | null; + float_head?: number | null; +} diff --git a/src/api/webhookV2/response/data/header.ts b/src/api/webhookV2/response/data/header.ts new file mode 100644 index 00000000..e805c059 --- /dev/null +++ b/src/api/webhookV2/response/data/header.ts @@ -0,0 +1,15 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Header { + string_head?: string | null; + int_head?: number | null; + bool_head?: boolean | null; + float_head?: number | null; +} diff --git a/src/api/webhookV2/response/data/jsonAttribute.ts b/src/api/webhookV2/response/data/jsonAttribute.ts new file mode 100644 index 00000000..f86f9a9d --- /dev/null +++ b/src/api/webhookV2/response/data/jsonAttribute.ts @@ -0,0 +1,20 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Header } from './header'; + +export interface JsonAttribute { + use_tls12: boolean; + docid_queryparam: boolean; + callback_url: string; + delete_access_token: boolean; + include_metadata: boolean; + integration_id?: string; + headers?: Header | null; +} diff --git a/src/api/webhookV2/response/data/meta.ts b/src/api/webhookV2/response/data/meta.ts new file mode 100644 index 00000000..f31e404a --- /dev/null +++ b/src/api/webhookV2/response/data/meta.ts @@ -0,0 +1,17 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface Meta { + timestamp: number; + event: string; + environment: string; + initiator_id: string; + callback_url: string; + access_token: string; +} diff --git a/src/api/webhookV2/response/data/requestContent.ts b/src/api/webhookV2/response/data/requestContent.ts new file mode 100644 index 00000000..57f2afa0 --- /dev/null +++ b/src/api/webhookV2/response/data/requestContent.ts @@ -0,0 +1,16 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Meta } from './meta'; +import { Content } from './content'; + +export interface RequestContent { + meta: Meta; + content: Content; +} diff --git a/src/api/webhookV2/response/data/requestHeader.ts b/src/api/webhookV2/response/data/requestHeader.ts new file mode 100644 index 00000000..5a03a8c1 --- /dev/null +++ b/src/api/webhookV2/response/data/requestHeader.ts @@ -0,0 +1,15 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface RequestHeader { + string_head?: string | null; + int_head?: number | null; + bool_head?: boolean | null; + float_head?: number | null; +} diff --git a/src/api/webhookV2/response/eventSubscriptionAllGet.ts b/src/api/webhookV2/response/eventSubscriptionAllGet.ts new file mode 100644 index 00000000..61ba1a45 --- /dev/null +++ b/src/api/webhookV2/response/eventSubscriptionAllGet.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Data } from './data/data/data'; + +export interface EventSubscriptionAllGet { + data?: Data[]; +} diff --git a/src/api/webhookV2/response/eventSubscriptionDelete.ts b/src/api/webhookV2/response/eventSubscriptionDelete.ts new file mode 100644 index 00000000..c2ccdb67 --- /dev/null +++ b/src/api/webhookV2/response/eventSubscriptionDelete.ts @@ -0,0 +1,11 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface EventSubscriptionDelete { +} diff --git a/src/api/webhookV2/response/eventSubscriptionGet.ts b/src/api/webhookV2/response/eventSubscriptionGet.ts new file mode 100644 index 00000000..b0e60e85 --- /dev/null +++ b/src/api/webhookV2/response/eventSubscriptionGet.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Data } from './data/data'; + +export interface EventSubscriptionGet { + data?: Data; +} diff --git a/src/api/webhookV2/response/eventSubscriptionPut.ts b/src/api/webhookV2/response/eventSubscriptionPut.ts new file mode 100644 index 00000000..455f2493 --- /dev/null +++ b/src/api/webhookV2/response/eventSubscriptionPut.ts @@ -0,0 +1,11 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface EventSubscriptionPut { +} diff --git a/src/api/webhookV2/response/eventSubscriptionsCallbacksAllGet.ts b/src/api/webhookV2/response/eventSubscriptionsCallbacksAllGet.ts new file mode 100644 index 00000000..bc7c8eb1 --- /dev/null +++ b/src/api/webhookV2/response/eventSubscriptionsCallbacksAllGet.ts @@ -0,0 +1,14 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Data } from './data/data/data'; + +export interface EventSubscriptionsCallbacksAllGet { + data?: Data[]; +} diff --git a/src/core/apiClient.ts b/src/core/apiClient.ts new file mode 100644 index 00000000..036acf4b --- /dev/null +++ b/src/core/apiClient.ts @@ -0,0 +1,296 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import fs from 'fs'; +import fetch, { BodyInit, Response } from 'node-fetch'; +import FormData from 'form-data'; + +import { Config } from './config/config'; +import { BaseClass } from '../types/baseClass'; +import { FileDownloader } from './response/fileDownloader'; +import { HttpStatusCode } from './contstants'; +import { SignNowApiException } from './error/signNowApiException'; + +/** + * Client for making API requests to SignNow + */ +export class ApiClient { + private readonly config: Config; + + private readonly fileDownloader: FileDownloader; + + constructor( + private bearerToken?: string, + private headers?: Record, + ) { + this.config = new Config(); + this.fileDownloader = new FileDownloader(this.config); + } + + /** + * Sets the bearer token for authentication + */ + public setBearerToken(bearerToken: string): void { + this.bearerToken = bearerToken; + } + + /** + * Gets the bearer token + * @returns The bearer token + */ + public getBearerToken(): string | undefined { + return this.bearerToken; + } + + /** + * Sends an API request + * @param request The request object implementing BaseClass + * @returns The response data + */ + public async send(request: BaseClass): Promise { + return this.makeRequest( + request.getMethod(), + this.buildUri(request), + this.getHeaders(request), + this.getBody(request), + ); + } + + /** + * Makes an HTTP request to the API + */ + private async makeRequest( + method: string, + url: string, + headers: Record, + body?: BodyInit + ): Promise { + const apiUrl = `${this.config.getApiHost()}${url}`; + const response = await fetch(apiUrl, { method, headers, body }); + + this.validateResponse(response); + + const contentType = response.headers.get('content-type') || ''; + + if (contentType && this.isFileContentType(contentType)) { + const filePath = await this.fileDownloader.downloadFile(response); + return filePath as unknown as T; + } + + if (this.isSuccessWithNoContent(response.status)) { + return {} as T; + } + + return response.json(); + } + + /** + * Checks if the response status indicates success with no content + * @param status HTTP status code + * @returns True if the status is 201 (Created) or 204 (No Content) + */ + private isSuccessWithNoContent(status: number): boolean { + return status === 201 || status === 204; + } + + /** + * Validates API response and throws appropriate exceptions for error status codes + */ + private validateResponse(response: Response): void { + const responseStatus = response.status; + + switch (true) { + case responseStatus >= HttpStatusCode.REDIRECT && responseStatus < HttpStatusCode.CLIENT_ERROR: + throw new SignNowApiException('SignNow API call was redirected.', response); + case responseStatus >= HttpStatusCode.CLIENT_ERROR && responseStatus < HttpStatusCode.SERVER_ERROR: + throw new SignNowApiException('SignNow API call was invalid.', response); + case responseStatus >= HttpStatusCode.SERVER_ERROR: + throw new SignNowApiException('SignNow API call has failed due to server error.', response); + } + } + + /** + * Builds the URI with parameters replaced from the request + */ + private buildUri(request: BaseClass): string { + let uri = request.getUrl(); + const params = request.getUriParams(); + const queryParams = request.getQueryParams(); + + if (params === null) { + return uri; + } + + for (const [paramName, paramValue] of Object.entries(params)) { + uri = uri.replace(`{${paramName}}`, paramValue); + } + + // Add query parameters if available + // const queryParams = 'getQueryParams' in request ? request.getQueryParams() : null; + if (queryParams && Object.keys(queryParams).length > 0) { + uri = this.appendQueryParams(uri, queryParams); + } + + return uri; + } + + /** + * Creates headers for the request based on authentication method and content type + */ + private getHeaders(request: BaseClass): Record { + const isBasicAuth = request.getAuthMethod() === 'basic'; + const contentType = request.getContentType(); + const authValue = isBasicAuth + ? `Basic ${this.config.getApiBasicToken()}` + : `Bearer ${this.bearerToken}`; + + const headers: Record = { + ...this.headers, + Accept: 'application/json', + Authorization: authValue, + 'User-Agent': this.config.getClientName(), + 'Content-Type': contentType, + }; + + if (contentType === 'multipart/form-data') { + delete headers['Content-Type']; + } + + return headers; + } + + /** + * Builds the request body based on the content type and payload + */ + private getBody(request: BaseClass): BodyInit | undefined { + const payload = request.getPayload(); + const method = request.getMethod().toLowerCase(); + + if (!payload || !['post', 'put'].includes(method)) { + return undefined; + } + + const contentType = request.getContentType(); + const cleanPayload = this.clearPayload(payload); + + switch (contentType) { + case 'application/x-www-form-urlencoded': + return this.createUrlEncodedBody(cleanPayload); + + case 'multipart/form-data': + return this.createMultipartFormBody(cleanPayload); + + default: + return JSON.stringify(cleanPayload); + } + } + + /** + * Removes empty values, empty arrays, and null values from the payload + * @param payload The input payload to clean + * @returns Cleaned payload with empty values removed + */ + private clearPayload(payload: Record): Record { + const result: Record = {}; + + for (const [key, value] of Object.entries(payload)) { + if (value === null || value === '') { + continue; + } + + if (Array.isArray(value) && value.length === 0) { + continue; + } + + result[key] = value; + } + + return result; + } + + /** + * Creates a URL encoded form body from payload + */ + private createUrlEncodedBody(payload: Record): URLSearchParams { + const searchParams = new URLSearchParams(); + + for (const [key, value] of Object.entries(payload)) { + if (value !== undefined && value !== null) { + searchParams.append(key, String(value)); + } + } + + return searchParams; + } + + /** + * Creates a multipart form body from payload + */ + private createMultipartFormBody(payload: Record): FormData { + const formData = new FormData(); + + for (const [key, value] of Object.entries(payload)) { + if (value === undefined || value === null) { + continue; + } + + if (key === 'file' && typeof value === 'string') { + formData.append('file', fs.createReadStream(value)); + } else { + formData.append(key, String(value)); + } + } + + return formData; + } + + /** + * Checks if the content type indicates a file to download + */ + private isFileContentType(contentType: string): boolean { + return contentType.includes('application/pdf') + || contentType.includes('application/zip'); + } + + /** + * Appends query parameters to a URL + * @param url Base URL to append parameters to + * @param params Object containing query parameters + * @returns URL with appended query parameters + */ + private appendQueryParams(url: string, params: Record): string { + if (!params || Object.keys(params).length === 0) { + return url; + } + + const searchParams = new URLSearchParams(); + + Object.entries(params).forEach(([key, value]) => { + if (value === null || value === undefined) { + return; + } + + if (Array.isArray(value)) { + value.forEach(item => { + searchParams.append(`${key}[]`, String(item)); + }); + } else { + searchParams.append(key, String(value)); + } + }); + + const queryString = searchParams.toString(); + if (!queryString) { + return url; + } + + const separator = url.includes('?') ? '&' : '?'; + return `${url}${separator}${queryString}`; + } +} diff --git a/src/core/config/config.ts b/src/core/config/config.ts new file mode 100644 index 00000000..859ce1c9 --- /dev/null +++ b/src/core/config/config.ts @@ -0,0 +1,49 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import * as dotenv from 'dotenv'; + +const DEFAULT_DOWNLOADS_DIR = './storage/downloads'; +const CLIENT_NAME = 'SignNowApiClient/v3.0.0 (JS)'; + +dotenv.config(); + +export class Config { + constructor( + private SIGNNOW_API_HOST = process.env.SIGNNOW_API_HOST || '', + private SIGNNOW_API_BASIC_TOKEN = process.env.SIGNNOW_API_BASIC_TOKEN || '', + private SIGNNOW_API_USERNAME = process.env.SIGNNOW_API_USERNAME || '', + private SIGNNOW_API_PASSWORD = process.env.SIGNNOW_API_PASSWORD || '', + private SIGNNOW_DOWNLOADS_DIR = process.env.SIGNNOW_DOWNLOADS_DIR || '', + ) {} + + public getApiHost(): string { + return this.SIGNNOW_API_HOST; + } + + public getApiBasicToken(): string { + return this.SIGNNOW_API_BASIC_TOKEN; + } + + public getApiUsername(): string { + return this.SIGNNOW_API_USERNAME; + } + + public getApiPassword(): string { + return this.SIGNNOW_API_PASSWORD; + } + + public getDownloadDirectory(): string { + return this.SIGNNOW_DOWNLOADS_DIR || DEFAULT_DOWNLOADS_DIR; + } + + public getClientName(): string { + return CLIENT_NAME; + } +} diff --git a/src/core/contstants.ts b/src/core/contstants.ts new file mode 100644 index 00000000..d41fdc47 --- /dev/null +++ b/src/core/contstants.ts @@ -0,0 +1,27 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export enum HttpStatusCode { + REDIRECT = 300, + CLIENT_ERROR = 400, + SERVER_ERROR = 500, +} + +export enum HttpMethod { + PUT = 'put', + GET = 'get', + POST = 'post', + DELETE = 'delete', + PATCH = 'patch', +} + +export enum HttpAuthType { + BEARER = 'bearer', + BASIC = 'basic', +} diff --git a/src/core/error/displayResult.ts b/src/core/error/displayResult.ts new file mode 100644 index 00000000..448d91f2 --- /dev/null +++ b/src/core/error/displayResult.ts @@ -0,0 +1,28 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { SignNowApiException } from './signNowApiException'; + +export async function displayResult(result: unknown): Promise { + if (result instanceof Error) { + if (result instanceof SignNowApiException) { + try { + const response = result.getResponse(); + const responseText = await response.text(); + console.error('Error response:', JSON.parse(responseText)); + } catch (err) { + console.error('Error parsing response text:', err instanceof Error ? err.message : err); + } + } else { + console.error('Error message:', result.message); + } + } else { + console.log('API response:', result); + } +} diff --git a/src/core/error/signNowApiException.ts b/src/core/error/signNowApiException.ts new file mode 100644 index 00000000..eb91fd14 --- /dev/null +++ b/src/core/error/signNowApiException.ts @@ -0,0 +1,21 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { Response } from 'node-fetch'; + +export class SignNowApiException extends Error { + constructor(message: string, private response: Response) { + super(message); + this.name = 'SignNowApiException'; + } + + public getResponse(): Response { + return this.response; + } +} diff --git a/src/core/response/fileDownloader.ts b/src/core/response/fileDownloader.ts new file mode 100644 index 00000000..c9c76e84 --- /dev/null +++ b/src/core/response/fileDownloader.ts @@ -0,0 +1,135 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import fs from 'fs'; +import path from 'path'; +import { randomBytes } from 'crypto'; +import { Response } from 'node-fetch'; +import { Config } from '../config/config'; + +/** + * Handles downloading and saving files from API responses + */ +export class FileDownloader { + private readonly SANITIZE_FILENAME_REGEX = /[/\\?%*:|"<>]/g; + + private readonly FILENAME_DISPOSITION_REGEX = { + extended: /filename\*?=['"]?(?:UTF-\d['"]?)?([^;\r\n"']*)['"]?;?/i, + standard: /filename=['"]?([^;\r\n"']*)['"]?;?/i + }; + + private readonly contentTypeMap: Record = { + 'application/pdf': '.pdf', + 'application/zip': '.zip' + }; + + constructor(private readonly config: Config) {} + + /** + * Downloads a file from an API response and saves it to disk + * @param response The API response containing the file + * @returns The path to the saved file + */ + public async downloadFile(response: Response): Promise { + const buffer = await this.getBufferFromResponse(response); + const downloadDir = this.ensureDownloadDirectory(); + const contentType = response.headers.get('content-type') || ''; + + let filename = this.extractFilenameFromHeaders(response); + if (!filename) { + filename = this.generateFileName(contentType); + } else if (!path.extname(filename)) { + const extension = this.getExtensionFromContentType(contentType); + filename = `${filename}${extension}`; + } + + const filePath = path.join(downloadDir, filename); + this.saveBufferToFile(filePath, buffer); + + return filePath; + } + + /** + * Gets the appropriate file extension for a given content type + */ + public getExtensionFromContentType(contentType: string): string { + for (const [type, extension] of Object.entries(this.contentTypeMap)) { + if (contentType.includes(type)) { + return extension; + } + } + + return '.bin'; + } + + /** + * Generates a unique filename with appropriate extension based on content type + */ + public generateFileName(contentType: string): string { + const timestamp = Date.now(); + const randomString = randomBytes(8).toString('hex'); + const extension = this.getExtensionFromContentType(contentType); + + return `document_${timestamp}_${randomString}${extension}`; + } + + /** + * Extracts and sanitizes the filename from response headers + */ + private extractFilenameFromHeaders(response: Response): string { + const contentDisposition = response.headers.get('content-disposition'); + if (!contentDisposition) { + return ''; + } + + const filenameMatch = + contentDisposition.match(this.FILENAME_DISPOSITION_REGEX.extended) || + contentDisposition.match(this.FILENAME_DISPOSITION_REGEX.standard); + + if (filenameMatch && filenameMatch[1]) { + return this.sanitizeFilename(decodeURIComponent(filenameMatch[1].trim())); + } + + return ''; + } + + /** + * Sanitizes a filename by replacing invalid characters + */ + private sanitizeFilename(filename: string): string { + return filename.replace(this.SANITIZE_FILENAME_REGEX, '_'); + } + + /** + * Creates the download directory if it doesn't exist + */ + private ensureDownloadDirectory(): string { + const downloadDir = this.config.getDownloadDirectory(); + if (!fs.existsSync(downloadDir)) { + fs.mkdirSync(downloadDir, { recursive: true }); + } + + return downloadDir; + } + + /** + * Converts response to buffer + */ + private async getBufferFromResponse(response: Response): Promise { + const blob = await response.blob(); + return Buffer.from(await blob.arrayBuffer()); + } + + /** + * Saves buffer to file + */ + private saveBufferToFile(filePath: string, buffer: Buffer): void { + fs.writeFileSync(filePath, buffer); + } +} diff --git a/src/core/sdk.ts b/src/core/sdk.ts new file mode 100644 index 00000000..a44f21d9 --- /dev/null +++ b/src/core/sdk.ts @@ -0,0 +1,54 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { ApiClient } from './apiClient'; +import { Config } from './config/config'; +import { TokenPost } from '../api/auth/request/tokenPost'; +import { TokenPost as TokenResponse } from '../api/auth/response/tokenPost'; + +export class Sdk { + private API_VERSION = '2024-11-27'; + + private GRANT_TYPE_PASSWORD = 'password'; + + private apiClient: ApiClient; + + private config: Config; + + constructor() { + this.apiClient = new ApiClient(); + this.config = new Config(); + } + + public async authenticate(username = this.config.getApiUsername(), password = this.config.getApiPassword()): Promise { + const request = new TokenPost(username, password, this.GRANT_TYPE_PASSWORD); + const response = await this.apiClient.send(request); + + this.apiClient.setBearerToken(response.access_token); + + return this; + } + + public version(): string { + return this.API_VERSION; + } + + public getClient(): ApiClient { + return this.apiClient; + } + + public actualBearerToken(): string | undefined { + return this.apiClient.getBearerToken(); + } + + public setBearerToken(bearerToken: string): Sdk { + this.apiClient.setBearerToken(bearerToken); + return this; + } +} diff --git a/src/types/baseClass.ts b/src/types/baseClass.ts new file mode 100644 index 00000000..3d36cd7b --- /dev/null +++ b/src/types/baseClass.ts @@ -0,0 +1,24 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export interface BaseClass { + getPayload(): Record | null; + + getMethod(): string; + + getUrl(): string; + + getUriParams(): Record | null; + + getQueryParams(): Record; + + getAuthMethod(): string; + + getContentType(): string; +} diff --git a/src/types/metaPagination.ts b/src/types/metaPagination.ts new file mode 100644 index 00000000..e7c4fe24 --- /dev/null +++ b/src/types/metaPagination.ts @@ -0,0 +1,28 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +type PaginationObjectLinks = { + next?: string; + previous?: string; +}; + +type PaginationLinks = PaginationObjectLinks | string[]; + +interface Pagination { + count: number; + currentPage: number; + perPage: number; + total: number; + totalPages: number; + links?: PaginationLinks; +} + +export interface MetaPagination { + pagination: Pagination; +} \ No newline at end of file diff --git a/storage/downloads/.gitignore b/storage/downloads/.gitignore new file mode 100644 index 00000000..c96a04f0 --- /dev/null +++ b/storage/downloads/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore \ No newline at end of file diff --git a/test/document.test.js b/test/document.test.js deleted file mode 100644 index c8db8ec9..00000000 --- a/test/document.test.js +++ /dev/null @@ -1,179 +0,0 @@ -'use strict'; - -const { settings } = require('./test.settings'); -const signnow = require('../lib/signnow')({ - credentials: settings.credentials, - production: settings.production, // (false by defult) -}); - -(function() { - - describe('document', () => { - - describe('.list()', () => { - it('should return a list of documents', done => { - signnow.document.list({ token: settings.token }, (err, res) => { - if (err) { throw err[0].message; } - res.should.be.a('array'); - res[0].should.have.property('document_name'); - done(); - }); - }).timeout(10000); - }); - - describe('.view()', () => { - it('should return a document resource', done => { - signnow.document.view({ - token: settings.token, - id: settings.documentid, - }, (err, res) => { - if (err) { throw err[0].message; } - res.should.have.property('document_name'); - done(); - }); - }); - }); - - describe('.download()', () => { - it('should download a collapsed document', done => { - signnow.document.download({ - token: settings.token, - id: settings.documentid, - }, (err, res) => { - if (err) { throw err[0].message; } - res.should.exist(); - done(); - }); - }); - }); - - describe('.update()', () => { - it('should update a document and return the document id', done => { - const fields = { - texts: [ - { - size: 8, - x: 61, - y: 72, - page_number: 0, - font: 'Arial', - data: 'sample text', - line_height: 9.075, - }, - ], - }; - - signnow.document.update({ - token: settings.token, - id: settings.documentid, - fields, - }, (err, res) => { - if (err) { throw err[0].message; } - res.should.have.property('id'); - done(); - }); - }); - }); - - describe.skip('.invite()', () => { - it('should send an invite to sign a document', done => { - signnow.document.invite({ - token: settings.token, - id: settings.documentid, - from: settings.email, - to: settings.testemail, - }, (err, res) => { - if (err) { throw err[0].message; } - res.should.have.property('result', 'success'); - done(); - }); - }); - }); - - describe('.cancelInvite()', () => { - it('should cancel all invites to a document', done => { - signnow.document.cancelInvite({ - token: settings.token, - id: settings.documentid, - }, (err, res) => { - if (err) { throw err[0].message; } - res.should.have.property('status', 'success'); - done(); - }); - }); - }); - - describe('.share()', () => { - it('should return a link to download the document', done => { - signnow.document.share({ - token: settings.token, - id: settings.documentid, - }, (err, res) => { - if (err) { throw err[0].message; } - res.should.have.property('link'); - done(); - }); - }); - }); - - describe.skip('.merge()', () => { - it('should merge two documents and return the new document name', done => { - signnow.document.merge({ - token: settings.token, - name: 'Mocha Unit Test', - document_ids: [ - 'xxx', - 'xxx', - ], - }, (err, res) => { - if (err) { throw err[0].message; } - res.should.have.property('name'); - res.should.have.property('document_ids'); - done(); - }); - }); - }); - - describe.skip('.create()', () => { - it('should upload a file and create a new document', done => { - signnow.document.create({ - token: settings.token, - filepath: `${__dirname}/test.doc`, - }, (err, res) => { - if (err) { return done(err[0].message); } - res.should.have.property('id'); - done(); - }); - }).timeout(20000); - }); - - describe.skip('.extractfields()', () => { - it('should upload a file containing SignNow field tags', done => { - signnow.document.extractfields({ - token: settings.token, - filepath: `${__dirname}/test.doc`, - }, (err, res) => { - if (err) { return done(err[0].message); } - res.should.have.property('id'); - done(); - }); - }).timeout(20000); - }); - - describe.skip('.history()', () => { - it('should return the history of a document', done => { - signnow.document.history({ - token: settings.token, - id: settings.documentid, - }, (err, res) => { - if (err) { return done(err[0].message); } - res.should.be.a('array'); - res[0].should.have.property('event'); - done(); - }); - }); - }); - - }); - -})(); diff --git a/test/embedded.test.js b/test/embedded.test.js deleted file mode 100644 index 180c0acc..00000000 --- a/test/embedded.test.js +++ /dev/null @@ -1,60 +0,0 @@ -'use strict'; -const { settings } = require('./test.settings'); -const signnow = require('../lib')({ - credentials: settings.credentials, - production: settings.production, // (false by default) -}); - -(function() { - - describe('embedded', () => { - - describe.skip('.createInvite()', () => { - it('should create a new embedded signing invites for a document without sending emails', done => { - signnow.embedded.createInvite({ - token: settings.token, - document_id: settings.documentid, - invites: [settings.documentInvite], - }, (err, res) => { - if (err) { throw err[0].message; } - res.should.be.a('object'); - res.should.have.property('data'); - done(); - }); - }); - }); - - describe.skip('.generateInviteLink()', () => { - it('should create a link for the embedded invite.', done => { - signnow.embedded.generateInviteLink({ - token: settings.token, - document_id: settings.documentid, - field_invite_unique_id: settings.fieldInviteUniqueId, - link_expiration: 15, - auth_method: 'password', - }, (err, res) => { - if (err) { throw err[0].message; } - res.should.be.a('object'); - res.should.have.property('data'); - done(); - }); - }); - }); - - describe.skip('.cancelInvites()', () => { - it('should delete embedded invites for a document.', done => { - signnow.embedded.cancelInvites({ - token: settings.token, - document_id: settings.documentid, - }, (err, res) => { - if (err) { throw err[0].message; } - res.should.be.a('object'); - res.should.have.property('status'); - done(); - }); - }); - }); - - }); - -})(); diff --git a/test/enumeration.test.js b/test/enumeration.test.js deleted file mode 100644 index 403e809d..00000000 --- a/test/enumeration.test.js +++ /dev/null @@ -1,80 +0,0 @@ -'use strict'; -const { settings } = require('./test.settings'); -const signnow = require('../lib')({ - credentials: settings.credentials, - production: settings.production, // (false by defult) -}); - -(function() { - - describe('enumerations', () => { - - describe('.addField()', () => { - it('should add an enumeration field(drop down) to a document and return the document id', done => { - signnow.enumerations.addField({ - token: settings.token, - document_id: settings.documentid, - x: 150, - y: 200, - width: 200, - height: 50, - page_number: 0, - role: 'buyer', - required: true, - label: 'Clothing Brand', - }, (err, res) => { - if (err) { throw err[0].message; } - res.should.have.property('id'); - done(); - }); - }); - }); - - describe('.addOptions()', () => { - let fieldId = ''; - before(done => { - signnow.enumerations.addField({ - token: settings.token, - document_id: settings.documentid, - x: 150, - y: 200, - width: 200, - height: 50, - page_number: 0, - role: 'buyer', - required: true, - label: 'Clothing Brand', - }, (err, res) => { - if (err) { throw err[0].message; } - fieldId = res.id; - done(); - }); - }); - it('should add enumeration options to the field we just created and return an array', done => { - signnow.enumerations.addOptions({ - token: settings.token, - enumeration_options: [ - { - enumeration_id: fieldId, - data: 'Active', - }, - { - enumeration_id: fieldId, - data: 'Old Navy', - }, - { - enumeration_id: fieldId, - data: 'Volcom', - }, - ], - }, (err, res) => { - if (err) { throw err[0].message; } - res.should.be.a('array'); - done(); - }); - }); - }); - - }); - -})(); diff --git a/test/folder.test.js b/test/folder.test.js deleted file mode 100644 index c6aac59c..00000000 --- a/test/folder.test.js +++ /dev/null @@ -1,45 +0,0 @@ -'use strict'; -const { settings } = require('./test.settings'); -const signnow = require('../lib')({ - credentials: settings.credentials, - production: settings.production, // (false by defult) -}); - -(function() { - - describe('folder', () => { - - describe('.list()', () => { - it('should return a list of folders', done => { - signnow.folder.list({ token: settings.token }, (err, res) => { - if (err) { throw err[0].message; } - res.should.be.a('object'); - res.should.have.property('folders'); - done(); - }); - }); - }); - - describe('.documents()', () => { - it('should return all documents inside a folder', done => { - signnow.folder.documents({ - token: settings.token, - id: settings.folderid, - filter: [ - { 'signing-status': 'pending' }, - { 'signing-status': 'waiting-for-me' }, - ], - sort: { 'document-name': 'asc' }, - }, (err, res) => { - if (err) { throw err[0].message; } - res.should.be.a('object'); - res.should.have.property('documents'); - done(); - }); - }); - }); - - - }); - -})(); diff --git a/test/link.test.js b/test/link.test.js deleted file mode 100644 index 4b693b32..00000000 --- a/test/link.test.js +++ /dev/null @@ -1,26 +0,0 @@ -'use strict'; -const { settings } = require('./test.settings'); -const signnow = require('../lib')({ - credentials: settings.credentials, - production: settings.production, // (false by defult) -}); - -(function() { - - describe('link', () => { - - describe('.create()', () => { - it('should create a new signing link and return two urls', done => { - signnow.link.create({ document_id: settings.documentid }, (err, res) => { - if (err) { throw err[0].message; } - res.should.be.a('object'); - res.should.have.property('url'); - done(); - }); - }); - }); - - - }); - -})(); diff --git a/test/oauth.test.js b/test/oauth.test.js deleted file mode 100644 index 45405f5c..00000000 --- a/test/oauth.test.js +++ /dev/null @@ -1,37 +0,0 @@ -'use strict'; -const { settings } = require('./test.settings'); -const signnow = require('../lib')({ - credentials: settings.credentials, - production: settings.production, // (false by defult) -}); - -(function() { - - describe('oauth2', () => { - - describe('.requestToken()', () => { - it('should return an access token', done => { - signnow.oauth2.requestToken({ - username: settings.username, - password: settings.password, - }, (err, res) => { - if (err) { throw err[0].message; } - res.should.have.property('access_token'); - done(); - }); - }); - }); - - describe('.verify()', () => { - it('should return a verified access token', done => { - signnow.oauth2.verify({ token: settings.token }, (err, res) => { - if (err) { throw err[0].message; } - res.should.have.property('access_token'); - done(); - }); - }); - }); - - }); - -})(); diff --git a/test/template.test.js b/test/template.test.js deleted file mode 100644 index 127df770..00000000 --- a/test/template.test.js +++ /dev/null @@ -1,42 +0,0 @@ -'use strict'; -const { settings } = require('./test.settings'); -const signnow = require('../lib')({ - credentials: settings.credentials, - production: settings.production, // (false by defult) -}); - -(function() { - - describe('template', () => { - - describe.skip('.create()', () => { - it('should create a template by flattening an existing document and return the template id', done => { - signnow.template.create({ - token: settings.token, - document_id: settings.documentid, - document_name: 'Mocha Unit Test Template', - }, (err, res) => { - if (err) { throw err[0].message; } - res.should.have.property('id'); - done(); - }); - }); - }); - - describe.skip('.create()', () => { - it('should create a template by flattening an existing document and return the template id', done => { - signnow.template.create({ - token: settings.token, - document_id: settings.templateid, - document_name: 'Mocha Unit Test Duplicate Template', - }, (err, res) => { - if (err) { throw err[0].message; } - res.should.have.property('id'); - done(); - }); - }); - }); - - }); - -})(); diff --git a/test/test.doc b/test/test.doc deleted file mode 100644 index 555f04f2..00000000 Binary files a/test/test.doc and /dev/null differ diff --git a/test/test.settings.js b/test/test.settings.js deleted file mode 100644 index 9f5b3389..00000000 --- a/test/test.settings.js +++ /dev/null @@ -1,24 +0,0 @@ -'use strict'; - -/** - * Test Settings - */ - -exports.settings = { - credentials: '[ENCODED CLIENT CREDENTIALS]', - token: '[ACCESS TOKEN]', - username: '[SIGNNOW USERNAME]', - password: '[SIGNNOW PASSWORD]', - documentid: '[EXISTING DOCUMENT ID]', - templateid: '[EXISTING TEMPLATE ID]', - folderid: '[EXISTING FOLDER ID]', - email: '[FROM EMAIL FOR INVITE]', - testemail: '[TO EMAIL FOR INVITE]', - fieldInviteUniqueId: '[EXISTING FIEND INVITE ID]', - documentInvite: { - email: '[SIGNER EMAIL]', - role_id: '[ROLE ID]', - order: 1, - auth_method: '[SIGNER AUTH METHOD', - }, -}; diff --git a/test/user.test.js b/test/user.test.js deleted file mode 100644 index e8985b4d..00000000 --- a/test/user.test.js +++ /dev/null @@ -1,52 +0,0 @@ -'use strict'; -const { settings } = require('./test.settings'); -const signnow = require('../lib/signnow')({ - credentials: settings.credentials, - production: settings.production, // (false by defult) -}); - -(function() { - - // generate random string - function randString (x) { - let s = ''; - while (s.length < x && x > 0) { - const r = Math.random(); - s += (r < 0.1 ? Math.floor(r * 100) : String.fromCharCode(Math.floor(r * 26) + (r > 0.5 ? 97 : 65))); - } - return s; - } - - describe('user', () => { - - describe('.create()', () => { - it('should create a new user account', done => { - const userObj = { - first_name: `Unit${randString(4)}`, - last_name: `Test${randString(4)}`, - email: `unit.test${randString(4)}@domain.com`, - password: 'MacBookPr0', - }; - - // console.log(userObj); - signnow.user.create(userObj, (err, res) => { - if (err) { throw err[0].message; } - res.should.have.property('id'); - done(); - }); - }); - }); - - describe('.retrieve()', () => { - it('should retrieve user resource', done => { - signnow.user.retrieve({ token: settings.token }, (err, res) => { - if (err) { throw err[0].message; } - res.should.have.property('first_name'); - done(); - }); - }); - }); - - }); - -})(); diff --git a/test/webhook.test.js b/test/webhook.test.js deleted file mode 100644 index 820f2131..00000000 --- a/test/webhook.test.js +++ /dev/null @@ -1,41 +0,0 @@ -'use strict'; -const { settings } = require('./test.settings'); -const signnow = require('../lib')({ - credentials: settings.credentials, - production: settings.production, // (false by defult) -}); - -(function() { - - describe('webhook', () => { - - describe('.list()', () => { - it('should return a list of webhooks', done => { - signnow.webhook.list({ token: settings.token }, (err, res) => { - if (err) { throw err[0].message; } - res.should.be.a('object'); - res.should.have.property('subscriptions'); - done(); - }); - }); - }); - - describe('.create()', () => { - it('should create a new webhook and return an id', done => { - signnow.webhook.create({ - token: settings.token, - event: 'document.create', - callback_url: 'http://requestb.in/qwmphiqw', - }, (err, res) => { - if (err) { throw err[0].message; } - res.should.be.a('object'); - res.should.have.property('id'); - done(); - }); - }); - }); - - - }); - -})(); diff --git a/tests/_data/demo.pdf b/tests/_data/demo.pdf new file mode 100644 index 00000000..757bb1f3 Binary files /dev/null and b/tests/_data/demo.pdf differ diff --git a/tests/api/auth/refreshToken.test.ts b/tests/api/auth/refreshToken.test.ts new file mode 100644 index 00000000..7fa2c10a --- /dev/null +++ b/tests/api/auth/refreshToken.test.ts @@ -0,0 +1,36 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { RefreshTokenPost } from '../../../src/api/auth/request/refreshTokenPost'; +import { RefreshTokenPost as RefreshTokenPostResponse } from '../../../src/api/auth/response/refreshTokenPost'; + +describe('refreshTokenPost', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const refreshTokenPost = new RefreshTokenPost( + faker.refreshToken(), + faker.scope(), + faker.expirationTime(), + faker.grantType() + ); + + const response = await client.send(refreshTokenPost); + + const expectation = expectationReader.get('refresh_access_token', 'post'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/auth/token.test.ts b/tests/api/auth/token.test.ts new file mode 100644 index 00000000..8a503fe9 --- /dev/null +++ b/tests/api/auth/token.test.ts @@ -0,0 +1,54 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { TokenPost } from '../../../src/api/auth/request/tokenPost'; +import { TokenPost as TokenPostResponse } from '../../../src/api/auth/response/tokenPost'; +import { TokenGet } from '../../../src/api/auth/request/tokenGet'; +import { TokenGet as TokenGetResponse } from '../../../src/api/auth/response/tokenGet'; + +describe('tokenPost', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const tokenPost = new TokenPost( + faker.username(), + faker.password(), + faker.grantType(), + faker.scope(), + faker.code() + ); + + const response = await client.send(tokenPost); + + const expectation = expectationReader.get('generate_access_token', 'post'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); + +describe('tokenGet', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const tokenGet = new TokenGet(); + + const response = await client.send(tokenGet); + + const expectation = expectationReader.get('verify_access_token', 'get'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/document/document.test.ts b/tests/api/document/document.test.ts new file mode 100644 index 00000000..7a9e748b --- /dev/null +++ b/tests/api/document/document.test.ts @@ -0,0 +1,93 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { DocumentPost } from '../../../src/api/document/request/documentPost'; +import { DocumentPost as DocumentPostResponse } from '../../../src/api/document/response/documentPost'; +import { DocumentGet } from '../../../src/api/document/request/documentGet'; +import { DocumentGet as DocumentGetResponse } from '../../../src/api/document/response/documentGet'; +import { DocumentPut } from '../../../src/api/document/request/documentPut'; +import { DocumentPut as DocumentPutResponse } from '../../../src/api/document/response/documentPut'; + +describe('documentPost', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const documentPost = new DocumentPost( + faker.file(), + faker.name(), + faker.boolean(), + faker.saveFields(), + faker.makeTemplate(), + faker.password(), + faker.folderId(), + faker.originTemplateId(), + faker.clientTimestampAsNumber() + ); + + const response = await client.send(documentPost); + + const expectation = expectationReader.get('upload_document', 'post'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); + +describe('documentGet', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const documentGet = new DocumentGet( + faker.documentId() + ); + + const response = await client.send(documentGet); + + const expectation = expectationReader.get('get_document', 'get'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); + +describe('documentPut', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const documentPut = new DocumentPut( + faker.documentId(), + faker.documentFields(), + faker.documentLines(), + faker.documentChecks(), + faker.documentRadiobuttons(), + faker.documentSignatures(), + faker.documentTexts(), + faker.documentAttachments(), + faker.documentHyperlinks(), + faker.documentIntegrationObjects(), + faker.documentDeactivateElements(), + faker.documentName(), + faker.clientTimestampAsString() + ); + + const response = await client.send(documentPut); + + const expectation = expectationReader.get('update_document', 'put'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/document/documentDownload.test.ts b/tests/api/document/documentDownload.test.ts new file mode 100644 index 00000000..762e6420 --- /dev/null +++ b/tests/api/document/documentDownload.test.ts @@ -0,0 +1,29 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { Faker } from '../../core/mock/faker'; +import { DocumentDownloadGet } from '../../../src/api/document/request/documentDownloadGet'; +import { DocumentDownloadGet as DocumentDownloadGetResponse } from '../../../src/api/document/response/documentDownloadGet'; + +describe('documentDownloadGet', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const client = sdk.getClient(); + const faker = new Faker(); + const documentDownloadGet = new DocumentDownloadGet( + faker.documentId() + ); + + const response = await client.send(documentDownloadGet); + + expect(typeof response).toBe('string'); + }); +}); diff --git a/tests/api/document/documentDownloadLink.test.ts b/tests/api/document/documentDownloadLink.test.ts new file mode 100644 index 00000000..f905f392 --- /dev/null +++ b/tests/api/document/documentDownloadLink.test.ts @@ -0,0 +1,33 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { DocumentDownloadLinkPost } from '../../../src/api/document/request/documentDownloadLinkPost'; +import { DocumentDownloadLinkPost as DocumentDownloadLinkPostResponse } from '../../../src/api/document/response/documentDownloadLinkPost'; + +describe('documentDownloadLinkPost', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const documentDownloadLinkPost = new DocumentDownloadLinkPost( + faker.documentId() + ); + + const response = await client.send(documentDownloadLinkPost); + + const expectation = expectationReader.get('create_document_download_link', 'post'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/document/documentMerge.test.ts b/tests/api/document/documentMerge.test.ts new file mode 100644 index 00000000..d30d076b --- /dev/null +++ b/tests/api/document/documentMerge.test.ts @@ -0,0 +1,35 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { DocumentMergePost } from '../../../src/api/document/request/documentMergePost'; +import { DocumentMergePost as DocumentMergePostResponse } from '../../../src/api/document/response/documentMergePost'; + +describe('documentMergePost', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const documentMergePost = new DocumentMergePost( + faker.name(), + faker.documentDocumentMergeDocumentIds(), + faker.boolean() + ); + + const response = await client.send(documentMergePost); + + const expectation = expectationReader.get('merge_documents', 'post'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/document/documentMove.test.ts b/tests/api/document/documentMove.test.ts new file mode 100644 index 00000000..a2cc9758 --- /dev/null +++ b/tests/api/document/documentMove.test.ts @@ -0,0 +1,34 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { DocumentMovePost } from '../../../src/api/document/request/documentMovePost'; +import { DocumentMovePost as DocumentMovePostResponse } from '../../../src/api/document/response/documentMovePost'; + +describe('documentMovePost', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const documentMovePost = new DocumentMovePost( + faker.documentId(), + faker.folderId() + ); + + const response = await client.send(documentMovePost); + + const expectation = expectationReader.get('move_document', 'post'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/document/fieldExtract.test.ts b/tests/api/document/fieldExtract.test.ts new file mode 100644 index 00000000..6118bcff --- /dev/null +++ b/tests/api/document/fieldExtract.test.ts @@ -0,0 +1,37 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { FieldExtractPost } from '../../../src/api/document/request/fieldExtractPost'; +import { FieldExtractPost as FieldExtractPostResponse } from '../../../src/api/document/response/fieldExtractPost'; + +describe('fieldExtractPost', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const fieldExtractPost = new FieldExtractPost( + faker.file(), + faker.documentFieldExtractTags(), + faker.parseType(), + faker.password(), + faker.clientTimestampAsNumber() + ); + + const response = await client.send(fieldExtractPost); + + const expectation = expectationReader.get('upload_document_with_tags_extract', 'post'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/document/fields.test.ts b/tests/api/document/fields.test.ts new file mode 100644 index 00000000..3567f13e --- /dev/null +++ b/tests/api/document/fields.test.ts @@ -0,0 +1,33 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { FieldsGet } from '../../../src/api/document/request/fieldsGet'; +import { FieldsGet as FieldsGetResponse } from '../../../src/api/document/response/fieldsGet'; + +describe('fieldsGet', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const fieldsGet = new FieldsGet( + faker.documentId() + ); + + const response = await client.send(fieldsGet); + + const expectation = expectationReader.get('get_document_fields', 'get'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/documentField/documentPrefill.test.ts b/tests/api/documentField/documentPrefill.test.ts new file mode 100644 index 00000000..d4342c7c --- /dev/null +++ b/tests/api/documentField/documentPrefill.test.ts @@ -0,0 +1,34 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { DocumentPrefillPut } from '../../../src/api/documentField/request/documentPrefillPut'; +import { DocumentPrefillPut as DocumentPrefillPutResponse } from '../../../src/api/documentField/response/documentPrefillPut'; + +describe('documentPrefillPut', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const documentPrefillPut = new DocumentPrefillPut( + faker.documentId(), + faker.documentFieldDocumentPrefillFields() + ); + + const response = await client.send(documentPrefillPut); + + const expectation = expectationReader.get('prefill_text_fields', 'put'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/documentGroup/documentGroup.test.ts b/tests/api/documentGroup/documentGroup.test.ts new file mode 100644 index 00000000..ad756586 --- /dev/null +++ b/tests/api/documentGroup/documentGroup.test.ts @@ -0,0 +1,74 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { DocumentGroupPost } from '../../../src/api/documentGroup/request/documentGroupPost'; +import { DocumentGroupPost as DocumentGroupPostResponse } from '../../../src/api/documentGroup/response/documentGroupPost'; +import { DocumentGroupGet } from '../../../src/api/documentGroup/request/documentGroupGet'; +import { DocumentGroupGet as DocumentGroupGetResponse } from '../../../src/api/documentGroup/response/documentGroupGet'; +import { DocumentGroupDelete } from '../../../src/api/documentGroup/request/documentGroupDelete'; +import { DocumentGroupDelete as DocumentGroupDeleteResponse } from '../../../src/api/documentGroup/response/documentGroupDelete'; + +describe('documentGroupPost', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const documentGroupPost = new DocumentGroupPost( + faker.documentGroupDocumentIds(), + faker.groupName() + ); + + const response = await client.send(documentGroupPost); + + const expectation = expectationReader.get('create_document_group', 'post'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); + +describe('documentGroupGet', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const documentGroupGet = new DocumentGroupGet( + faker.documentGroupId() + ); + + const response = await client.send(documentGroupGet); + + const expectation = expectationReader.get('get_document_group', 'get'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); + +describe('documentGroupDelete', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const documentGroupDelete = new DocumentGroupDelete( + faker.documentGroupId() + ); + + const response = await client.send(documentGroupDelete); + + const expectation = expectationReader.get('delete_document_group', 'delete'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/documentGroup/documentGroupRecipients.test.ts b/tests/api/documentGroup/documentGroupRecipients.test.ts new file mode 100644 index 00000000..58ba253e --- /dev/null +++ b/tests/api/documentGroup/documentGroupRecipients.test.ts @@ -0,0 +1,33 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { DocumentGroupRecipientsGet } from '../../../src/api/documentGroup/request/documentGroupRecipientsGet'; +import { DocumentGroupRecipientsGet as DocumentGroupRecipientsGetResponse } from '../../../src/api/documentGroup/response/documentGroupRecipientsGet'; + +describe('documentGroupRecipientsGet', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const documentGroupRecipientsGet = new DocumentGroupRecipientsGet( + faker.documentGroupId() + ); + + const response = await client.send(documentGroupRecipientsGet); + + const expectation = expectationReader.get('get_document_group_recipients', 'get'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/documentGroup/downloadDocumentGroup.test.ts b/tests/api/documentGroup/downloadDocumentGroup.test.ts new file mode 100644 index 00000000..0014877e --- /dev/null +++ b/tests/api/documentGroup/downloadDocumentGroup.test.ts @@ -0,0 +1,36 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { DownloadDocumentGroupPost } from '../../../src/api/documentGroup/request/downloadDocumentGroupPost'; +import { DownloadDocumentGroupPost as DownloadDocumentGroupPostResponse } from '../../../src/api/documentGroup/response/downloadDocumentGroupPost'; + +describe('downloadDocumentGroupPost', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const downloadDocumentGroupPost = new DownloadDocumentGroupPost( + faker.documentGroupId(), + faker.type(), + faker.withHistory(), + faker.documentGroupDownloadDocumentGroupDocumentOrder() + ); + + const response = await client.send(downloadDocumentGroupPost); + + const expectation = expectationReader.get('download_document_group', 'post'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/documentGroupInvite/cancelGroupInvite.test.ts b/tests/api/documentGroupInvite/cancelGroupInvite.test.ts new file mode 100644 index 00000000..cfcee68d --- /dev/null +++ b/tests/api/documentGroupInvite/cancelGroupInvite.test.ts @@ -0,0 +1,34 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { CancelGroupInvitePost } from '../../../src/api/documentGroupInvite/request/cancelGroupInvitePost'; +import { CancelGroupInvitePost as CancelGroupInvitePostResponse } from '../../../src/api/documentGroupInvite/response/cancelGroupInvitePost'; + +describe('cancelGroupInvitePost', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const cancelGroupInvitePost = new CancelGroupInvitePost( + faker.documentGroupId(), + faker.inviteId() + ); + + const response = await client.send(cancelGroupInvitePost); + + const expectation = expectationReader.get('cancel_document_group_invite', 'post'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/documentGroupInvite/groupInvite.test.ts b/tests/api/documentGroupInvite/groupInvite.test.ts new file mode 100644 index 00000000..a6a0c8fb --- /dev/null +++ b/tests/api/documentGroupInvite/groupInvite.test.ts @@ -0,0 +1,62 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { GroupInvitePost } from '../../../src/api/documentGroupInvite/request/groupInvitePost'; +import { GroupInvitePost as GroupInvitePostResponse } from '../../../src/api/documentGroupInvite/response/groupInvitePost'; +import { GroupInviteGet } from '../../../src/api/documentGroupInvite/request/groupInviteGet'; +import { GroupInviteGet as GroupInviteGetResponse } from '../../../src/api/documentGroupInvite/response/groupInviteGet'; + +describe('groupInvitePost', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const groupInvitePost = new GroupInvitePost( + faker.documentGroupId(), + faker.documentGroupInviteGroupInviteInviteSteps(), + faker.documentGroupInviteGroupInviteCc(), + faker.documentGroupInviteGroupInviteEmailGroups(), + faker.documentGroupInviteGroupInviteCompletionEmails(), + faker.boolean(), + faker.clientTimestampAsNumber(), + faker.ccSubject(), + faker.ccMessage() + ); + + const response = await client.send(groupInvitePost); + + const expectation = expectationReader.get('invite_to_sign_document_group', 'post'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); + +describe('groupInviteGet', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const groupInviteGet = new GroupInviteGet( + faker.documentGroupId(), + faker.inviteId() + ); + + const response = await client.send(groupInviteGet); + + const expectation = expectationReader.get('get_document_group_invite', 'get'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/documentGroupInvite/pendingInvite.test.ts b/tests/api/documentGroupInvite/pendingInvite.test.ts new file mode 100644 index 00000000..d08628c3 --- /dev/null +++ b/tests/api/documentGroupInvite/pendingInvite.test.ts @@ -0,0 +1,34 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { PendingInviteGet } from '../../../src/api/documentGroupInvite/request/pendingInviteGet'; +import { PendingInviteGet as PendingInviteGetResponse } from '../../../src/api/documentGroupInvite/response/pendingInviteGet'; + +describe('pendingInviteGet', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const pendingInviteGet = new PendingInviteGet( + faker.documentGroupId(), + faker.inviteId() + ); + + const response = await client.send(pendingInviteGet); + + const expectation = expectationReader.get('get_pending_document_group_invites', 'get'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/documentGroupInvite/reassignSigner.test.ts b/tests/api/documentGroupInvite/reassignSigner.test.ts new file mode 100644 index 00000000..e3d30f87 --- /dev/null +++ b/tests/api/documentGroupInvite/reassignSigner.test.ts @@ -0,0 +1,39 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { ReassignSignerPost } from '../../../src/api/documentGroupInvite/request/reassignSignerPost'; +import { ReassignSignerPost as ReassignSignerPostResponse } from '../../../src/api/documentGroupInvite/response/reassignSignerPost'; + +describe('reassignSignerPost', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const reassignSignerPost = new ReassignSignerPost( + faker.documentGroupId(), + faker.inviteId(), + faker.stepId(), + faker.userToUpdate(), + faker.replaceWithThisUser(), + faker.documentGroupInviteReassignSignerInviteEmail(), + faker.documentGroupInviteReassignSignerUpdateInviteActionAttributes() + ); + + const response = await client.send(reassignSignerPost); + + const expectation = expectationReader.get('reassign_signer_for_document_group_invite', 'post'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/documentGroupInvite/resendGroupInvite.test.ts b/tests/api/documentGroupInvite/resendGroupInvite.test.ts new file mode 100644 index 00000000..6ec8e44f --- /dev/null +++ b/tests/api/documentGroupInvite/resendGroupInvite.test.ts @@ -0,0 +1,35 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { ResendGroupInvitePost } from '../../../src/api/documentGroupInvite/request/resendGroupInvitePost'; +import { ResendGroupInvitePost as ResendGroupInvitePostResponse } from '../../../src/api/documentGroupInvite/response/resendGroupInvitePost'; + +describe('resendGroupInvitePost', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const resendGroupInvitePost = new ResendGroupInvitePost( + faker.documentGroupId(), + faker.inviteId(), + faker.email() + ); + + const response = await client.send(resendGroupInvitePost); + + const expectation = expectationReader.get('resend_document_group_invite', 'post'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/documentInvite/cancelFreeFormInvite.test.ts b/tests/api/documentInvite/cancelFreeFormInvite.test.ts new file mode 100644 index 00000000..477b1e00 --- /dev/null +++ b/tests/api/documentInvite/cancelFreeFormInvite.test.ts @@ -0,0 +1,34 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { CancelFreeFormInvitePut } from '../../../src/api/documentInvite/request/cancelFreeFormInvitePut'; +import { CancelFreeFormInvitePut as CancelFreeFormInvitePutResponse } from '../../../src/api/documentInvite/response/cancelFreeFormInvitePut'; + +describe('cancelFreeFormInvitePut', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const cancelFreeFormInvitePut = new CancelFreeFormInvitePut( + faker.inviteId(), + faker.reason() + ); + + const response = await client.send(cancelFreeFormInvitePut); + + const expectation = expectationReader.get('cancel_free_form_invite', 'put'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/documentInvite/cancelInvite.test.ts b/tests/api/documentInvite/cancelInvite.test.ts new file mode 100644 index 00000000..1b04f00d --- /dev/null +++ b/tests/api/documentInvite/cancelInvite.test.ts @@ -0,0 +1,34 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { CancelInvitePut } from '../../../src/api/documentInvite/request/cancelInvitePut'; +import { CancelInvitePut as CancelInvitePutResponse } from '../../../src/api/documentInvite/response/cancelInvitePut'; + +describe('cancelInvitePut', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const cancelInvitePut = new CancelInvitePut( + faker.documentId(), + faker.reason() + ); + + const response = await client.send(cancelInvitePut); + + const expectation = expectationReader.get('cancel_invite', 'put'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/documentInvite/freeFormInvite.test.ts b/tests/api/documentInvite/freeFormInvite.test.ts new file mode 100644 index 00000000..f898e646 --- /dev/null +++ b/tests/api/documentInvite/freeFormInvite.test.ts @@ -0,0 +1,67 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { FreeFormInvitePost } from '../../../src/api/documentInvite/request/freeFormInvitePost'; +import { FreeFormInvitePost as FreeFormInvitePostResponse } from '../../../src/api/documentInvite/response/freeFormInvitePost'; +import { FreeFormInviteGet } from '../../../src/api/documentInvite/request/freeFormInviteGet'; +import { FreeFormInviteGet as FreeFormInviteGetResponse } from '../../../src/api/documentInvite/response/freeFormInviteGet'; + +describe('freeFormInvitePost', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const freeFormInvitePost = new FreeFormInvitePost( + faker.documentId(), + faker.to(), + faker.from(), + faker.documentInviteFreeFormInviteCc(), + faker.subject(), + faker.message(), + faker.ccSubject(), + faker.ccMessage(), + faker.language(), + faker.clientTimestampAsNumber(), + faker.callbackUrl(), + faker.boolean(), + faker.redirectUri(), + faker.closeRedirectUri(), + faker.redirectTarget() + ); + + const response = await client.send(freeFormInvitePost); + + const expectation = expectationReader.get('create_free_form_invite', 'post'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); + +describe('freeFormInviteGet', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const freeFormInviteGet = new FreeFormInviteGet( + faker.documentId() + ); + + const response = await client.send(freeFormInviteGet); + + const expectation = expectationReader.get('get_document_free_form_invites', 'get'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/documentInvite/sendInvite.test.ts b/tests/api/documentInvite/sendInvite.test.ts new file mode 100644 index 00000000..6ca9c9d3 --- /dev/null +++ b/tests/api/documentInvite/sendInvite.test.ts @@ -0,0 +1,43 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { SendInvitePost } from '../../../src/api/documentInvite/request/sendInvitePost'; +import { SendInvitePost as SendInvitePostResponse } from '../../../src/api/documentInvite/response/sendInvitePost'; + +describe('sendInvitePost', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const sendInvitePost = new SendInvitePost( + faker.documentId(), + faker.documentInviteSendInviteTo(), + faker.from(), + faker.subject(), + faker.message(), + faker.documentInviteSendInviteEmailGroups(), + faker.documentInviteSendInviteCc(), + faker.documentInviteSendInviteCcStep(), + faker.documentInviteSendInviteViewers(), + faker.ccSubject(), + faker.ccMessage() + ); + + const response = await client.send(sendInvitePost); + + const expectation = expectationReader.get('send_field_invite', 'post'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/documentInvite/signingLink.test.ts b/tests/api/documentInvite/signingLink.test.ts new file mode 100644 index 00000000..bedc5fb7 --- /dev/null +++ b/tests/api/documentInvite/signingLink.test.ts @@ -0,0 +1,34 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { SigningLinkPost } from '../../../src/api/documentInvite/request/signingLinkPost'; +import { SigningLinkPost as SigningLinkPostResponse } from '../../../src/api/documentInvite/response/signingLinkPost'; + +describe('signingLinkPost', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const signingLinkPost = new SigningLinkPost( + faker.documentId(), + faker.redirectUri() + ); + + const response = await client.send(signingLinkPost); + + const expectation = expectationReader.get('create_signing_link', 'post'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/embeddedEditor/documentEmbeddedEditorLink.test.ts b/tests/api/embeddedEditor/documentEmbeddedEditorLink.test.ts new file mode 100644 index 00000000..eaa81774 --- /dev/null +++ b/tests/api/embeddedEditor/documentEmbeddedEditorLink.test.ts @@ -0,0 +1,36 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { DocumentEmbeddedEditorLinkPost } from '../../../src/api/embeddedEditor/request/documentEmbeddedEditorLinkPost'; +import { DocumentEmbeddedEditorLinkPost as DocumentEmbeddedEditorLinkPostResponse } from '../../../src/api/embeddedEditor/response/documentEmbeddedEditorLinkPost'; + +describe('documentEmbeddedEditorLinkPost', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const documentEmbeddedEditorLinkPost = new DocumentEmbeddedEditorLinkPost( + faker.documentId(), + faker.redirectUri(), + faker.redirectTarget(), + faker.linkExpiration() + ); + + const response = await client.send(documentEmbeddedEditorLinkPost); + + const expectation = expectationReader.get('create_document_embedded_editor_link', 'post'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/embeddedEditor/documentGroupEmbeddedEditorLink.test.ts b/tests/api/embeddedEditor/documentGroupEmbeddedEditorLink.test.ts new file mode 100644 index 00000000..7786628a --- /dev/null +++ b/tests/api/embeddedEditor/documentGroupEmbeddedEditorLink.test.ts @@ -0,0 +1,36 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { DocumentGroupEmbeddedEditorLinkPost } from '../../../src/api/embeddedEditor/request/documentGroupEmbeddedEditorLinkPost'; +import { DocumentGroupEmbeddedEditorLinkPost as DocumentGroupEmbeddedEditorLinkPostResponse } from '../../../src/api/embeddedEditor/response/documentGroupEmbeddedEditorLinkPost'; + +describe('documentGroupEmbeddedEditorLinkPost', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const documentGroupEmbeddedEditorLinkPost = new DocumentGroupEmbeddedEditorLinkPost( + faker.documentGroupId(), + faker.redirectUri(), + faker.redirectTarget(), + faker.linkExpiration() + ); + + const response = await client.send(documentGroupEmbeddedEditorLinkPost); + + const expectation = expectationReader.get('create_document_group_embedded_editor_link', 'post'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/embeddedGroupInvite/groupInvite.test.ts b/tests/api/embeddedGroupInvite/groupInvite.test.ts new file mode 100644 index 00000000..dfbe4c71 --- /dev/null +++ b/tests/api/embeddedGroupInvite/groupInvite.test.ts @@ -0,0 +1,55 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { GroupInvitePost } from '../../../src/api/embeddedGroupInvite/request/groupInvitePost'; +import { GroupInvitePost as GroupInvitePostResponse } from '../../../src/api/embeddedGroupInvite/response/groupInvitePost'; +import { GroupInviteDelete } from '../../../src/api/embeddedGroupInvite/request/groupInviteDelete'; +import { GroupInviteDelete as GroupInviteDeleteResponse } from '../../../src/api/embeddedGroupInvite/response/groupInviteDelete'; + +describe('groupInvitePost', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const groupInvitePost = new GroupInvitePost( + faker.documentGroupId(), + faker.embeddedGroupInviteGroupInviteInvites(), + faker.boolean() + ); + + const response = await client.send(groupInvitePost); + + const expectation = expectationReader.get('create_embedded_invite_for_document_group', 'post'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); + +describe('groupInviteDelete', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const groupInviteDelete = new GroupInviteDelete( + faker.documentGroupId() + ); + + const response = await client.send(groupInviteDelete); + + const expectation = expectationReader.get('delete_embedded_doc_group_invites', 'delete'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/embeddedGroupInvite/groupInviteLink.test.ts b/tests/api/embeddedGroupInvite/groupInviteLink.test.ts new file mode 100644 index 00000000..5e170e79 --- /dev/null +++ b/tests/api/embeddedGroupInvite/groupInviteLink.test.ts @@ -0,0 +1,37 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { GroupInviteLinkPost } from '../../../src/api/embeddedGroupInvite/request/groupInviteLinkPost'; +import { GroupInviteLinkPost as GroupInviteLinkPostResponse } from '../../../src/api/embeddedGroupInvite/response/groupInviteLinkPost'; + +describe('groupInviteLinkPost', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const groupInviteLinkPost = new GroupInviteLinkPost( + faker.documentGroupId(), + faker.embeddedInviteId(), + faker.email(), + faker.authMethod(), + faker.linkExpiration() + ); + + const response = await client.send(groupInviteLinkPost); + + const expectation = expectationReader.get('create_link_for_embedded_invite_document_group', 'post'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/embeddedInvite/documentInvite.test.ts b/tests/api/embeddedInvite/documentInvite.test.ts new file mode 100644 index 00000000..6efba3b9 --- /dev/null +++ b/tests/api/embeddedInvite/documentInvite.test.ts @@ -0,0 +1,55 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { DocumentInvitePost } from '../../../src/api/embeddedInvite/request/documentInvitePost'; +import { DocumentInvitePost as DocumentInvitePostResponse } from '../../../src/api/embeddedInvite/response/documentInvitePost'; +import { DocumentInviteDelete } from '../../../src/api/embeddedInvite/request/documentInviteDelete'; +import { DocumentInviteDelete as DocumentInviteDeleteResponse } from '../../../src/api/embeddedInvite/response/documentInviteDelete'; + +describe('documentInvitePost', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const documentInvitePost = new DocumentInvitePost( + faker.documentId(), + faker.embeddedInviteDocumentInviteInvites(), + faker.nameFormula() + ); + + const response = await client.send(documentInvitePost); + + const expectation = expectationReader.get('create_embedded_invite', 'post'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); + +describe('documentInviteDelete', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const documentInviteDelete = new DocumentInviteDelete( + faker.documentId() + ); + + const response = await client.send(documentInviteDelete); + + const expectation = expectationReader.get('delete_embedded_invite', 'delete'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/embeddedInvite/documentInviteLink.test.ts b/tests/api/embeddedInvite/documentInviteLink.test.ts new file mode 100644 index 00000000..e49b8b10 --- /dev/null +++ b/tests/api/embeddedInvite/documentInviteLink.test.ts @@ -0,0 +1,36 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { DocumentInviteLinkPost } from '../../../src/api/embeddedInvite/request/documentInviteLinkPost'; +import { DocumentInviteLinkPost as DocumentInviteLinkPostResponse } from '../../../src/api/embeddedInvite/response/documentInviteLinkPost'; + +describe('documentInviteLinkPost', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const documentInviteLinkPost = new DocumentInviteLinkPost( + faker.documentId(), + faker.fieldInviteId(), + faker.authMethod(), + faker.linkExpiration() + ); + + const response = await client.send(documentInviteLinkPost); + + const expectation = expectationReader.get('create_link_for_embedded_invite', 'post'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/embeddedSending/documentEmbeddedSendingLink.test.ts b/tests/api/embeddedSending/documentEmbeddedSendingLink.test.ts new file mode 100644 index 00000000..d1d7dd85 --- /dev/null +++ b/tests/api/embeddedSending/documentEmbeddedSendingLink.test.ts @@ -0,0 +1,37 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { DocumentEmbeddedSendingLinkPost } from '../../../src/api/embeddedSending/request/documentEmbeddedSendingLinkPost'; +import { DocumentEmbeddedSendingLinkPost as DocumentEmbeddedSendingLinkPostResponse } from '../../../src/api/embeddedSending/response/documentEmbeddedSendingLinkPost'; + +describe('documentEmbeddedSendingLinkPost', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const documentEmbeddedSendingLinkPost = new DocumentEmbeddedSendingLinkPost( + faker.documentId(), + faker.type(), + faker.redirectUri(), + faker.linkExpiration(), + faker.redirectTarget() + ); + + const response = await client.send(documentEmbeddedSendingLinkPost); + + const expectation = expectationReader.get('create_document_embedded_sending_link', 'post'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/embeddedSending/documentGroupEmbeddedSendingLink.test.ts b/tests/api/embeddedSending/documentGroupEmbeddedSendingLink.test.ts new file mode 100644 index 00000000..b55c106a --- /dev/null +++ b/tests/api/embeddedSending/documentGroupEmbeddedSendingLink.test.ts @@ -0,0 +1,36 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { DocumentGroupEmbeddedSendingLinkPost } from '../../../src/api/embeddedSending/request/documentGroupEmbeddedSendingLinkPost'; +import { DocumentGroupEmbeddedSendingLinkPost as DocumentGroupEmbeddedSendingLinkPostResponse } from '../../../src/api/embeddedSending/response/documentGroupEmbeddedSendingLinkPost'; + +describe('documentGroupEmbeddedSendingLinkPost', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const documentGroupEmbeddedSendingLinkPost = new DocumentGroupEmbeddedSendingLinkPost( + faker.documentGroupId(), + faker.redirectUri(), + faker.linkExpiration(), + faker.redirectTarget() + ); + + const response = await client.send(documentGroupEmbeddedSendingLinkPost); + + const expectation = expectationReader.get('create_document_group_embedded_sending_link', 'post'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/folder/folder.test.ts b/tests/api/folder/folder.test.ts new file mode 100644 index 00000000..92a5cbf4 --- /dev/null +++ b/tests/api/folder/folder.test.ts @@ -0,0 +1,29 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { FolderGet } from '../../../src/api/folder/request/folderGet'; +import { FolderGet as FolderGetResponse } from '../../../src/api/folder/response/folderGet'; + +describe('folderGet', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const folderGet = new FolderGet(); + + const response = await client.send(folderGet); + + const expectation = expectationReader.get('get_folder', 'get'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/folder/folderDocuments.test.ts b/tests/api/folder/folderDocuments.test.ts new file mode 100644 index 00000000..e315e647 --- /dev/null +++ b/tests/api/folder/folderDocuments.test.ts @@ -0,0 +1,33 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { FolderDocumentsGet } from '../../../src/api/folder/request/folderDocumentsGet'; +import { FolderDocumentsGet as FolderDocumentsGetResponse } from '../../../src/api/folder/response/folderDocumentsGet'; + +describe('folderDocumentsGet', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const folderDocumentsGet = new FolderDocumentsGet( + faker.folderId() + ); + + const response = await client.send(folderDocumentsGet); + + const expectation = expectationReader.get('get_folder_documents', 'get'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/smartFields/documentPrefillSmartField.test.ts b/tests/api/smartFields/documentPrefillSmartField.test.ts new file mode 100644 index 00000000..8be85c88 --- /dev/null +++ b/tests/api/smartFields/documentPrefillSmartField.test.ts @@ -0,0 +1,35 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { DocumentPrefillSmartFieldPost } from '../../../src/api/smartFields/request/documentPrefillSmartFieldPost'; +import { DocumentPrefillSmartFieldPost as DocumentPrefillSmartFieldPostResponse } from '../../../src/api/smartFields/response/documentPrefillSmartFieldPost'; + +describe('documentPrefillSmartFieldPost', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const documentPrefillSmartFieldPost = new DocumentPrefillSmartFieldPost( + faker.documentId(), + faker.smartFieldsDocumentPrefillSmartFieldData(), + faker.clientTimestampAsString() + ); + + const response = await client.send(documentPrefillSmartFieldPost); + + const expectation = expectationReader.get('prefill_smart_fields', 'post'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/template/bulkInvite.test.ts b/tests/api/template/bulkInvite.test.ts new file mode 100644 index 00000000..5ecb181d --- /dev/null +++ b/tests/api/template/bulkInvite.test.ts @@ -0,0 +1,39 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { BulkInvitePost } from '../../../src/api/template/request/bulkInvitePost'; +import { BulkInvitePost as BulkInvitePostResponse } from '../../../src/api/template/response/bulkInvitePost'; + +describe('bulkInvitePost', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const bulkInvitePost = new BulkInvitePost( + faker.documentId(), + faker.file(), + faker.folderId(), + faker.clientTimestampAsNumber(), + faker.documentName(), + faker.subject(), + faker.message() + ); + + const response = await client.send(bulkInvitePost); + + const expectation = expectationReader.get('bulk_invite', 'post'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/template/cloneTemplate.test.ts b/tests/api/template/cloneTemplate.test.ts new file mode 100644 index 00000000..3a7e4b14 --- /dev/null +++ b/tests/api/template/cloneTemplate.test.ts @@ -0,0 +1,36 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { CloneTemplatePost } from '../../../src/api/template/request/cloneTemplatePost'; +import { CloneTemplatePost as CloneTemplatePostResponse } from '../../../src/api/template/response/cloneTemplatePost'; + +describe('cloneTemplatePost', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const cloneTemplatePost = new CloneTemplatePost( + faker.templateId(), + faker.documentName(), + faker.clientTimestampAsString(), + faker.folderId() + ); + + const response = await client.send(cloneTemplatePost); + + const expectation = expectationReader.get('create_document_with_template', 'post'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/template/groupTemplate.test.ts b/tests/api/template/groupTemplate.test.ts new file mode 100644 index 00000000..7f10233c --- /dev/null +++ b/tests/api/template/groupTemplate.test.ts @@ -0,0 +1,55 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { GroupTemplateGet } from '../../../src/api/template/request/groupTemplateGet'; +import { GroupTemplateGet as GroupTemplateGetResponse } from '../../../src/api/template/response/groupTemplateGet'; +import { GroupTemplatePut } from '../../../src/api/template/request/groupTemplatePut'; +import { GroupTemplatePut as GroupTemplatePutResponse } from '../../../src/api/template/response/groupTemplatePut'; + +describe('groupTemplateGet', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const groupTemplateGet = new GroupTemplateGet( + faker.templateId() + ); + + const response = await client.send(groupTemplateGet); + + const expectation = expectationReader.get('get_document_group_template', 'get'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); + +describe('groupTemplatePut', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const groupTemplatePut = new GroupTemplatePut( + faker.templateId(), + faker.routingDetails(), + faker.groupName() + ); + + const response = await client.send(groupTemplatePut); + + const expectation = expectationReader.get('update_document_group_template', 'put'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/template/routingDetails.test.ts b/tests/api/template/routingDetails.test.ts new file mode 100644 index 00000000..b20bcfc9 --- /dev/null +++ b/tests/api/template/routingDetails.test.ts @@ -0,0 +1,73 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { RoutingDetailsPost } from '../../../src/api/template/request/routingDetailsPost'; +import { RoutingDetailsPost as RoutingDetailsPostResponse } from '../../../src/api/template/response/routingDetailsPost'; +import { RoutingDetailsPut } from '../../../src/api/template/request/routingDetailsPut'; +import { RoutingDetailsPut as RoutingDetailsPutResponse } from '../../../src/api/template/response/routingDetailsPut'; +import { RoutingDetailsGet } from '../../../src/api/template/request/routingDetailsGet'; +import { RoutingDetailsGet as RoutingDetailsGetResponse } from '../../../src/api/template/response/routingDetailsGet'; + +describe('routingDetailsPost', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const routingDetailsPost = new RoutingDetailsPost( + faker.documentId() + ); + + const response = await client.send(routingDetailsPost); + + const expectation = expectationReader.get('create_routing_details', 'post'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); + +describe('routingDetailsPut', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const routingDetailsPut = new RoutingDetailsPut( + faker.documentId() + ); + + const response = await client.send(routingDetailsPut); + + const expectation = expectationReader.get('update_routing_details', 'put'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); + +describe('routingDetailsGet', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const routingDetailsGet = new RoutingDetailsGet( + faker.documentId() + ); + + const response = await client.send(routingDetailsGet); + + const expectation = expectationReader.get('get_routing_details', 'get'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/template/template.test.ts b/tests/api/template/template.test.ts new file mode 100644 index 00000000..007b187f --- /dev/null +++ b/tests/api/template/template.test.ts @@ -0,0 +1,34 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { TemplatePost } from '../../../src/api/template/request/templatePost'; +import { TemplatePost as TemplatePostResponse } from '../../../src/api/template/response/templatePost'; + +describe('templatePost', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const templatePost = new TemplatePost( + faker.documentId(), + faker.documentName() + ); + + const response = await client.send(templatePost); + + const expectation = expectationReader.get('create_template', 'post'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/user/emailVerify.test.ts b/tests/api/user/emailVerify.test.ts new file mode 100644 index 00000000..b8d559d7 --- /dev/null +++ b/tests/api/user/emailVerify.test.ts @@ -0,0 +1,34 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { EmailVerifyPut } from '../../../src/api/user/request/emailVerifyPut'; +import { EmailVerifyPut as EmailVerifyPutResponse } from '../../../src/api/user/response/emailVerifyPut'; + +describe('emailVerifyPut', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const emailVerifyPut = new EmailVerifyPut( + faker.email(), + faker.verificationToken() + ); + + const response = await client.send(emailVerifyPut); + + const expectation = expectationReader.get('user_email_verify', 'put'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/user/initial.test.ts b/tests/api/user/initial.test.ts new file mode 100644 index 00000000..ba7ed0ed --- /dev/null +++ b/tests/api/user/initial.test.ts @@ -0,0 +1,50 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { InitialGet } from '../../../src/api/user/request/initialGet'; +import { InitialGet as InitialGetResponse } from '../../../src/api/user/response/initialGet'; +import { InitialPut } from '../../../src/api/user/request/initialPut'; +import { InitialPut as InitialPutResponse } from '../../../src/api/user/response/initialPut'; + +describe('initialGet', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const initialGet = new InitialGet(); + + const response = await client.send(initialGet); + + const expectation = expectationReader.get('get_user_initials', 'get'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); + +describe('initialPut', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const initialPut = new InitialPut( + faker.data() + ); + + const response = await client.send(initialPut); + + const expectation = expectationReader.get('update_user_initials', 'put'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/user/resetPassword.test.ts b/tests/api/user/resetPassword.test.ts new file mode 100644 index 00000000..e77b8055 --- /dev/null +++ b/tests/api/user/resetPassword.test.ts @@ -0,0 +1,33 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { ResetPasswordPost } from '../../../src/api/user/request/resetPasswordPost'; +import { ResetPasswordPost as ResetPasswordPostResponse } from '../../../src/api/user/response/resetPasswordPost'; + +describe('resetPasswordPost', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const resetPasswordPost = new ResetPasswordPost( + faker.email() + ); + + const response = await client.send(resetPasswordPost); + + const expectation = expectationReader.get('reset_password', 'post'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/user/user.test.ts b/tests/api/user/user.test.ts new file mode 100644 index 00000000..e7f50ff9 --- /dev/null +++ b/tests/api/user/user.test.ts @@ -0,0 +1,78 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { UserPost } from '../../../src/api/user/request/userPost'; +import { UserPost as UserPostResponse } from '../../../src/api/user/response/userPost'; +import { UserPut } from '../../../src/api/user/request/userPut'; +import { UserPut as UserPutResponse } from '../../../src/api/user/response/userPut'; +import { UserGet } from '../../../src/api/user/request/userGet'; +import { UserGet as UserGetResponse } from '../../../src/api/user/response/userGet'; + +describe('userPost', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const userPost = new UserPost( + faker.email(), + faker.password(), + faker.firstName(), + faker.lastName(), + faker.number() + ); + + const response = await client.send(userPost); + + const expectation = expectationReader.get('create_user', 'post'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); + +describe('userPut', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const userPut = new UserPut( + faker.firstName(), + faker.lastName(), + faker.password(), + faker.oldPassword(), + faker.logoutAll() + ); + + const response = await client.send(userPut); + + const expectation = expectationReader.get('update_user', 'put'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); + +describe('userGet', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const userGet = new UserGet(); + + const response = await client.send(userGet); + + const expectation = expectationReader.get('get_user_info', 'get'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/webhook/subscription.test.ts b/tests/api/webhook/subscription.test.ts new file mode 100644 index 00000000..c677bb02 --- /dev/null +++ b/tests/api/webhook/subscription.test.ts @@ -0,0 +1,98 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { SubscriptionPost } from '../../../src/api/webhook/request/subscriptionPost'; +import { SubscriptionPost as SubscriptionPostResponse } from '../../../src/api/webhook/response/subscriptionPost'; +import { SubscriptionGet } from '../../../src/api/webhook/request/subscriptionGet'; +import { SubscriptionGet as SubscriptionGetResponse } from '../../../src/api/webhook/response/subscriptionGet'; +import { SubscriptionPut } from '../../../src/api/webhook/request/subscriptionPut'; +import { SubscriptionPut as SubscriptionPutResponse } from '../../../src/api/webhook/response/subscriptionPut'; +import { SubscriptionDelete } from '../../../src/api/webhook/request/subscriptionDelete'; +import { SubscriptionDelete as SubscriptionDeleteResponse } from '../../../src/api/webhook/response/subscriptionDelete'; + +describe('subscriptionPost', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const subscriptionPost = new SubscriptionPost( + faker.event(), + faker.entityId(), + faker.action(), + faker.webhookSubscriptionAttributes(), + faker.secretKey() + ); + + const response = await client.send(subscriptionPost); + + const expectation = expectationReader.get('create_event_subscription', 'post'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); + +describe('subscriptionGet', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const subscriptionGet = new SubscriptionGet(); + + const response = await client.send(subscriptionGet); + + const expectation = expectationReader.get('get_event_subscriptions', 'get'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); + +describe('subscriptionPut', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const subscriptionPut = new SubscriptionPut( + faker.eventSubscriptionId(), + faker.event(), + faker.entityId(), + faker.action(), + faker.webhookSubscriptionAttributes() + ); + + const response = await client.send(subscriptionPut); + + const expectation = expectationReader.get('update_event_subscription', 'put'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); + +describe('subscriptionDelete', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const subscriptionDelete = new SubscriptionDelete( + faker.eventSubscriptionId() + ); + + const response = await client.send(subscriptionDelete); + + const expectation = expectationReader.get('delete_event_subscription', 'delete'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/webhookV2/callback.test.ts b/tests/api/webhookV2/callback.test.ts new file mode 100644 index 00000000..2efbe218 --- /dev/null +++ b/tests/api/webhookV2/callback.test.ts @@ -0,0 +1,34 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { CallbackGet } from '../../../src/api/webhookV2/request/callbackGet'; +import { CallbackGet as CallbackGetResponse } from '../../../src/api/webhookV2/response/callbackGet'; + +describe('callbackGet', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const callbackGet = new CallbackGet( + faker.eventSubscriptionId(), + faker.callbackId() + ); + + const response = await client.send(callbackGet); + + const expectation = expectationReader.get('get_event_subscription_callback', 'get'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/webhookV2/callbacksAll.test.ts b/tests/api/webhookV2/callbacksAll.test.ts new file mode 100644 index 00000000..f8e6b389 --- /dev/null +++ b/tests/api/webhookV2/callbacksAll.test.ts @@ -0,0 +1,33 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { CallbacksAllGet } from '../../../src/api/webhookV2/request/callbacksAllGet'; +import { CallbacksAllGet as CallbacksAllGetResponse } from '../../../src/api/webhookV2/response/callbacksAllGet'; + +describe('callbacksAllGet', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const callbacksAllGet = new CallbacksAllGet( + faker.eventSubscriptionId() + ); + + const response = await client.send(callbacksAllGet); + + const expectation = expectationReader.get('get_event_subscription_callbacks_v2', 'get'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/webhookV2/eventSubscription.test.ts b/tests/api/webhookV2/eventSubscription.test.ts new file mode 100644 index 00000000..e016da12 --- /dev/null +++ b/tests/api/webhookV2/eventSubscription.test.ts @@ -0,0 +1,77 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { Faker } from '../../core/mock/faker'; +import { EventSubscriptionGet } from '../../../src/api/webhookV2/request/eventSubscriptionGet'; +import { EventSubscriptionGet as EventSubscriptionGetResponse } from '../../../src/api/webhookV2/response/eventSubscriptionGet'; +import { EventSubscriptionPut } from '../../../src/api/webhookV2/request/eventSubscriptionPut'; +import { EventSubscriptionPut as EventSubscriptionPutResponse } from '../../../src/api/webhookV2/response/eventSubscriptionPut'; +import { EventSubscriptionDelete } from '../../../src/api/webhookV2/request/eventSubscriptionDelete'; +import { EventSubscriptionDelete as EventSubscriptionDeleteResponse } from '../../../src/api/webhookV2/response/eventSubscriptionDelete'; + +describe('eventSubscriptionGet', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const eventSubscriptionGet = new EventSubscriptionGet( + faker.eventSubscriptionId() + ); + + const response = await client.send(eventSubscriptionGet); + + const expectation = expectationReader.get('get_event_subscription_v2', 'get'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); + +describe('eventSubscriptionPut', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const eventSubscriptionPut = new EventSubscriptionPut( + faker.eventSubscriptionId(), + faker.event(), + faker.entityId(), + faker.action(), + faker.webhookV2EventSubscriptionAttributes() + ); + + const response = await client.send(eventSubscriptionPut); + + const expectation = expectationReader.get('update_event_subscriptions_subscription_v2', 'put'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); + +describe('eventSubscriptionDelete', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const faker = new Faker(); + const eventSubscriptionDelete = new EventSubscriptionDelete( + faker.eventSubscriptionId() + ); + + const response = await client.send(eventSubscriptionDelete); + + const expectation = expectationReader.get('delete_event_subscription_v2', 'delete'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/webhookV2/eventSubscriptionAll.test.ts b/tests/api/webhookV2/eventSubscriptionAll.test.ts new file mode 100644 index 00000000..2f4f1279 --- /dev/null +++ b/tests/api/webhookV2/eventSubscriptionAll.test.ts @@ -0,0 +1,29 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { EventSubscriptionAllGet } from '../../../src/api/webhookV2/request/eventSubscriptionAllGet'; +import { EventSubscriptionAllGet as EventSubscriptionAllGetResponse } from '../../../src/api/webhookV2/response/eventSubscriptionAllGet'; + +describe('eventSubscriptionAllGet', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const eventSubscriptionAllGet = new EventSubscriptionAllGet(); + + const response = await client.send(eventSubscriptionAllGet); + + const expectation = expectationReader.get('get_event_subscriptions_v2', 'get'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/api/webhookV2/eventSubscriptionsCallbacksAll.test.ts b/tests/api/webhookV2/eventSubscriptionsCallbacksAll.test.ts new file mode 100644 index 00000000..b340607c --- /dev/null +++ b/tests/api/webhookV2/eventSubscriptionsCallbacksAll.test.ts @@ -0,0 +1,29 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { describe, expect, it } from '@jest/globals'; +import { Sdk } from '../../../src/core/sdk'; +import { ExpectationReader } from '../../core/mock/expectation/expectationReader'; +import { EventSubscriptionsCallbacksAllGet } from '../../../src/api/webhookV2/request/eventSubscriptionsCallbacksAllGet'; +import { EventSubscriptionsCallbacksAllGet as EventSubscriptionsCallbacksAllGetResponse } from '../../../src/api/webhookV2/response/eventSubscriptionsCallbacksAllGet'; + +describe('eventSubscriptionsCallbacksAllGet', () => { + it('Should return correct response', async () => { + const sdk = await new Sdk().authenticate(); + const expectationReader = new ExpectationReader(); + const client = sdk.getClient(); + const eventSubscriptionsCallbacksAllGet = new EventSubscriptionsCallbacksAllGet(); + + const response = await client.send(eventSubscriptionsCallbacksAllGet); + + const expectation = expectationReader.get('get_all_event_subscriptions_callbacks_v2', 'get'); + + expect(response).toEqual(JSON.parse(expectation.getBody())); + }); +}); diff --git a/tests/core/exception/runtimeTestException.ts b/tests/core/exception/runtimeTestException.ts new file mode 100644 index 00000000..7804a724 --- /dev/null +++ b/tests/core/exception/runtimeTestException.ts @@ -0,0 +1,15 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export class RuntimeTestException extends Error { + constructor(message: string) { + super(message); + this.name = 'RuntimeTestException'; + } +} diff --git a/tests/core/mock/expectation/expectation.ts b/tests/core/mock/expectation/expectation.ts new file mode 100644 index 00000000..097828df --- /dev/null +++ b/tests/core/mock/expectation/expectation.ts @@ -0,0 +1,52 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { RuntimeTestException } from '../../exception/runtimeTestException'; + +export class Expectation { + private readonly name: string; + + private readonly data: Record; + + constructor(name: string, data: Record) { + this.name = name; + this.data = data; + } + + public getName(): string { + return this.name; + } + + public get(name: string): string { + if (name.startsWith('get')) { + name = name.slice(3); + } + + if (!name) { + throw new RuntimeTestException('Invalid expectation method usage.'); + } + + const key = this.convertCamelCaseToSnakeCase(name); + const parsedBody = JSON.parse(this.getBody()); + + if (!(key in parsedBody)) { + throw new RuntimeTestException('Invalid expectation property is called.'); + } + + return this.data[name]; + } + + private convertCamelCaseToSnakeCase(value: string): string { + return value.replace(/([A-Z])/g, '_$1').toLowerCase(); + } + + public getBody(): string { + return this.data.body; + } +} diff --git a/tests/core/mock/expectation/expectationReader.ts b/tests/core/mock/expectation/expectationReader.ts new file mode 100644 index 00000000..fe020b74 --- /dev/null +++ b/tests/core/mock/expectation/expectationReader.ts @@ -0,0 +1,68 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import * as fs from 'fs'; +import * as path from 'path'; +import { Expectation } from './expectation'; +import { MockConfig } from '../mockConfig'; +import { RuntimeTestException } from '../../exception/runtimeTestException'; + +export class ExpectationReader { + private static JSON_EXTENSION: string = '.json'; + + private readonly expectationDirectory: string; + + private mockConfig: MockConfig; + + constructor() { + this.mockConfig = new MockConfig; + this.expectationDirectory = this.readExpectationDirectory(); + } + + public get(actionName: string, methodName: string): Expectation { + const fileName = this.getExpectationFileName(actionName, methodName); + const filePath = this.getExpectationFilePath(fileName); + + if (!fs.existsSync(filePath)) { + throw new RuntimeTestException(`Not found expectation file ${fileName} in ${this.getExpectationDirectory()}.`); + } + + try { + const fileContent = fs.readFileSync(filePath, 'utf-8'); + const data = JSON.parse(fileContent); + return new Expectation(fileName, data.response); + } catch (error: unknown) { + if (error instanceof Error) { + throw new RuntimeTestException(`Failed to load Expectation file: ${error.message}`); + } + + throw new RuntimeTestException('Failed to load Expectation file: Unknown error'); + } + } + + public getExpectationDirectory(): string { + return this.expectationDirectory; + } + + private readExpectationDirectory(): string { + if (!this.mockConfig.expectationsDir) { + throw new RuntimeTestException('Not found required key "expectations-dir" in .phiremock config file.'); + } + + return this.mockConfig.expectationsDir; + } + + private getExpectationFilePath(fileName: string): string { + return path.join(this.expectationDirectory, fileName); + } + + private getExpectationFileName(actionName: string, methodName: string): string { + return `${actionName}_${methodName.toLowerCase()}${ExpectationReader.JSON_EXTENSION}`; + } +} diff --git a/tests/core/mock/faker.ts b/tests/core/mock/faker.ts new file mode 100644 index 00000000..8fd250af --- /dev/null +++ b/tests/core/mock/faker.ts @@ -0,0 +1,764 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +import { faker } from '@faker-js/faker'; +import { Attachment } from '../../../src/api/document/request/data/attachment'; +import { Check } from '../../../src/api/document/request/data/check'; +import { Data } from '../../../src/api/smartFields/request/data/data'; +import { DeactivateElement } from '../../../src/api/document/request/data/deactivateElement'; +import { Field as DocumentPrefillField } from '../../../src/api/documentField/request/data/field'; +import { Field } from '../../../src/api/document/request/data/field'; +import { Hyperlink } from '../../../src/api/document/request/data/hyperlink'; +import { IntegrationObject } from '../../../src/api/document/request/data/integrationObject'; +import { Line } from '../../../src/api/document/request/data/line/line'; +import { Radio } from '../../../src/api/document/request/data/radiobutton/radio'; +import { Radiobutton } from '../../../src/api/document/request/data/radiobutton/radiobutton'; +import { Signature } from '../../../src/api/document/request/data/signature'; +import { Tag } from '../../../src/api/document/request/data/tag/tag'; +import { Text } from '../../../src/api/document/request/data/text'; +import { RoutingDetail } from '../../../src/api/template/request/data/routingDetail/routingDetail'; +import { InviteAction } from '../../../src/api/template/request/data/routingDetail/inviteAction'; +import { InviteStep } from '../../../src/api/template/request/data/routingDetail/inviteStep'; +import { To } from '../../../src/api/documentInvite/request/data/to'; +import { CcStep } from '../../../src/api/documentInvite/request/data/ccStep'; +import { Viewer } from '../../../src/api/documentInvite/request/data/viewer'; +import { EmailGroup } from '../../../src/api/documentInvite/request/data/emailGroup/emailGroup'; +import { Email } from '../../../src/api/documentInvite/request/data/emailGroup/email'; +import { Invite as EmbeddedInvite } from '../../../src/api/embeddedInvite/request/data/invite'; +import { InviteStep as GroupInviteStep } from '../../../src/api/documentGroupInvite/request/data/inviteStep/inviteStep'; +import { InviteAction as GroupInviteAction } from '../../../src/api/documentGroupInvite/request/data/inviteStep/inviteAction'; +import { EmailGroup as GroupEmailGroup } from '../../../src/api/documentGroupInvite/request/data/emailGroup/emailGroup'; +import { Email as GroupEmail } from '../../../src/api/documentGroupInvite/request/data/emailGroup/email'; +import { CompletionEmail as GroupCompletionEmail } from '../../../src/api/documentGroupInvite/request/data/completionEmail'; +import { InviteEmail as ReassignGroupInviteEmail } from '../../../src/api/documentGroupInvite/request/data/inviteEmail'; +import { UpdateInviteActionAttribute as GroupUpdateInviteActionAttribute } from '../../../src/api/documentGroupInvite/request/data/updateInviteActionAttribute'; +import { Invite as EmbeddedGroupInvite } from '../../../src/api/embeddedGroupInvite/request/data/invite/invite'; +import { Document as EmbeddedGroupInviteDocument } from '../../../src/api/embeddedGroupInvite/request/data/invite/document'; +import { Signer as EmbeddedGroupInviteSigner } from '../../../src/api/embeddedGroupInvite/request/data/invite/signer'; +import { AttributeRequest } from '../../../src/api/webhook'; +import { AttributeRequestV2 } from '../../../src/api/webhookV2'; + +export class Faker { + private faker: typeof faker; + + constructor() { + this.faker = faker; + } + + public uid(): string { + return this.faker.string.alphanumeric(40).toLowerCase(); + } + + public documentId(): string { + return this.uid(); + } + + public documentGroupId(): string { + return this.uid(); + } + + public folderId(): string { + return this.uid(); + } + + public templateId(): string { + return this.uid(); + } + + public eventSubscriptionId(): string { + return this.uid(); + } + + public callbackId(): string { + return this.uid(); + } + + public entityId(): string { + return this.uid(); + } + + public fieldInviteId(): string { + return this.uid(); + } + + public inviteId(): string { + return this.uid(); + } + + public stepId(): string { + return this.uid(); + } + + public embeddedInviteId(): string { + return this.uid(); + } + + public documentName(): string { + return 'document_' + this.string(); + } + + public name(): string { + return this.faker.person.firstName(); + } + + public email(): string { + return this.faker.internet.email(); + } + + public url(): string { + return this.faker.internet.url(); + } + + public redirectUri(): string { + return this.url(); + } + + public closeRedirectUri(): string { + return this.url(); + } + + public from(): string { + return this.email(); + } + + public to(): string { + return this.email(); + } + + public oldPassword(): string { + return this.password(); + } + + public userToUpdate(): string { + return this.email(); + } + + public replaceWithThisUser(): string { + return this.email(); + } + + public username(): string { + return this.faker.internet.username(); + } + + public password(): string { + return this.faker.internet.password(); + } + + public logoutAll(): string { + return this.string(); + } + + public scope(): string { + return '*'; + } + + public grantType(): string { + return 'password'; + } + + public token(): string { + return this.faker.string.alphanumeric(64); + } + + public refreshToken(): string { + return this.token(); + } + + public verificationToken(): string { + return this.token(); + } + + public reason(): string { + return this.string(); + } + + public message(): string { + return this.string(); + } + + public subject(): string { + return this.string(); + } + + public saveFields(): number { + return 0; + } + + public makeTemplate(): number { + return 0; + } + + public originTemplateId(): string { + return this.uid(); + } + + public role(suffix: string = ''): string { + return 'Signer' + suffix; + } + + public actionSign(): string { + return 'sign'; + } + + public actionView(): string { + return 'view'; + } + + public authMethod(): string { + return this.faker.helpers.arrayElement([ + this.authMethodEmail(), + this.authMethodMfa(), + this.authMethodPassword(), + this.authMethodSocial(), + this.authMethodBiometric(), + this.authMethodNone(), + ]); + } + + public authMethodEmail(): string { + return 'email'; + } + + public authMethodMfa(): string { + return 'mfa'; + } + + public authMethodSocial(): string { + return 'social'; + } + + public authMethodBiometric(): string { + return 'biometric'; + } + + public authMethodPassword(): string { + return 'password'; + } + + public authMethodNone(): string { + return 'none'; + } + + public linkExpiration(): number { + return 40; + } + + public expirationTime(): string { + return this.faker.date.future().toISOString(); + } + + public file(): string { + return `${__dirname}/../../_data/demo.pdf`; + } + + public language(): string { + return this.faker.helpers.arrayElement(['en', 'es', 'fr']); + } + + public redirectTarget(): string { + return this.faker.helpers.arrayElement(['blank', 'self']); + } + + public color(): string { + return this.faker.color.rgb({ format: 'hex' }); + } + + public dataImageBase64(): string { + return 'data:image/png;base64,' + btoa('fakeImageData'); + } + + public callbackUrl(): string { + return this.url(); + } + + public clientTimestamp(asString: boolean = true): string | number { + return asString ? new Date().getTime().toString() : new Date().getTime(); + } + + public clientTimestampAsString(): string { + return new Date().getTime().toString(); + } + + public clientTimestampAsNumber(): number { + return new Date().getTime(); + } + + public code(): string { + return this.string(); + } + + public documentFieldExtractTags(): Tag[] { + return [ + { + type: 'text', + x: 100, + y: 100, + page_number: 0, + role: 'Signer', + required: true, + width: 100, + height: 16, + }, + ]; + } + + public documentFields(): Field[] { + return [ + { + x: 100, + y: 150, + page_number: 0, + height: 15, + width: 20, + type: 'text', + required: true, + role: 'Signer', + custom_defined_option: false, + name: 'field_1', + label: 'Text Field_1', + validator_id: this.uid(), + }, + ]; + } + + public documentDocumentMergeDocumentIds(count: number = 2): string[] { + const ids: string[] = []; + for (let i = 1; i <= count; i++) { + ids.push(this.documentId()); + } + + return ids; + } + + public documentDeactivateElements(): DeactivateElement[] { + return [ + { + type: 'text', + unique_id: this.uid(), + }, + { + type: 'check', + unique_id: this.uid(), + }, + ]; + } + + public documentLines(): Line[] { + return [ + { + x: 100, + y: 100, + width: 100, + height: 15, + subtype: 'line', + page_number: 0, + fill_color: this.color(), + line_width: 2, + control_points: [158.0, 100.0], + }, + ]; + } + + public documentChecks(): Check[] { + return [ + { + x: 100, + y: 100, + width: 100, + height: 15, + subtype: 'check', + page_number: 0, + }, + ]; + } + + public documentRadiobuttons(): Radiobutton[] { + const radio: Radio[] = [ + { + x: 100, + y: 100, + width: 100, + height: 15, + value: 'Yes', + checked: 0, + page_number: 0, + }, + ]; + + return [ + { + page_number: 0, + x: 100, + y: 100, + line_height: 3, + status: 0, + is_printed: 0, + size: 10, + subtype: 'radiobutton', + name: 'radiobutton_1', + font: 'Arial', + radio: radio, + }, + ]; + } + + public documentSignatures(): Signature[] { + return [ + { + x: 100, + y: 100, + width: 100, + height: 15, + page_number: 0, + data: this.dataImageBase64(), + subtype: 'signature', + }, + ]; + } + + public documentTexts(): Text[] { + return [ + { + x: 100, + y: 100, + size: 10, + width: 115, + height: 15, + subtype: 'text', + page_number: 0, + data: 'Text', + font: 'Arial', + line_height: 3, + field_id: this.uid(), + }, + ]; + } + + public documentAttachments(): Attachment[] { + return [ + { + attachment_unique_id: this.uid(), + field_id: this.uid(), + }, + ]; + } + + public documentHyperlinks(): Hyperlink[] { + return [ + { + x: 100, + y: 100, + size: 3, + width: 100, + height: 15, + page_number: 0, + font: 'Arial', + line_height: 3, + }, + ]; + } + + public documentIntegrationObjects(): IntegrationObject[] { + return [ + { + x: 100, + y: 100, + size: 3, + width: 100, + height: 15, + page_number: 0, + font: 'Arial', + data: 'Integration Object', + status: 1, + color: this.color(), + created: this.clientTimestampAsNumber(), + active: true, + line_height: 3, + }, + ]; + } + + public documentFieldDocumentPrefillFields(): DocumentPrefillField[] { + return [ + { + field_name: 'field_1', + prefilled_text: 'prefilled text', + }, + ]; + } + + public smartFieldsDocumentPrefillSmartFieldData(): Data[] { + return [ + { + field_name: 'to be inserted into smart field', + }, + ]; + } + + public firstName(): string { + return this.faker.person.firstName(); + } + + public lastName(): string { + return this.faker.person.lastName(); + } + + public number(): string { + return this.string(); + } + + public parseType(): string { + return this.string(); + } + + public data(): string { + return this.string(); + } + + public boolean(): boolean { + return this.faker.datatype.boolean(); + } + + public routingDetails(): RoutingDetail { + const inviteActions: InviteAction[] = [{ + email: this.email(), + role_name: this.role(), + action: this.actionSign(), + document_id: this.documentId(), + document_name: this.documentName() + } + ]; + + const inviteSteps: InviteStep[] = [{ + order: 1, + invite_actions: inviteActions + }]; + + return { + invite_steps: inviteSteps, + include_email_attachments: 1 + }; + } + + public groupName(): string { + return 'group_' + this.string(); + } + + public documentInviteSendInviteTo(): To[] { + return [ + { + email: this.email(), + role_id: this.uid(), + role: this.role(), + order: 1, + subject: 'Invite to sign a document', + message: 'Please, sign this document', + }, + ]; + } + + public documentInviteSendInviteCc(): string[] { + return [this.email(), this.email()]; + } + + public documentInviteFreeFormInviteCc(): string[] { + return [this.email(), this.email()]; + } + + public documentInviteSendInviteCcStep(): CcStep[] { + return [ + { + name: this.name(), + email: this.email(), + step: 1, + }, + { + name: this.name(), + email: this.email(), + step: 2, + }, + ]; + } + + public documentInviteSendInviteViewers(): Viewer[] { + return [ + { + email: this.email(), + role: this.role(), + order: 1, + subject: 'Invite to sign a document', + message: 'Please, sign this document', + }, + ]; + } + + public documentInviteSendInviteEmailGroups(): EmailGroup[] { + const emails: Email[] = [ + { + email: this.email(), + }, + ]; + + return [ + { + id: this.uid(), + name: this.name(), + emails: emails, + }, + ]; + } + + public embeddedInviteDocumentInviteInvites(): EmbeddedInvite[] { + return [ + { + email: this.email(), + role_id: this.uid(), + order: 1, + auth_method: this.authMethodNone(), + }, + ]; + } + + public nameFormula(): string { + return this.string(); + } + + public type(): string { + return this.string(); + } + + public withHistory(): string { + return 'no'; + } + + public documentGroupDocumentIds(): string[] { + return [this.documentId(), this.documentId()]; + } + + public documentGroupDownloadDocumentGroupDocumentOrder(): string[] { + return [this.documentId(), this.documentId()]; + } + + public documentGroupInviteGroupInviteInviteSteps(): GroupInviteStep[] { + const actions: GroupInviteAction[] = [ + { + email: this.email(), + role_name: this.role(), + action: this.actionSign(), + document_id: this.documentId(), + }, + ]; + + return [ + { + order: 1, + invite_actions: actions, + }, + ]; + } + + public documentGroupInviteGroupInviteCc(): string[] { + return [this.email(), this.email()]; + } + + public documentGroupInviteGroupInviteEmailGroups(): GroupEmailGroup[] { + const emails: GroupEmail[] = [{ email: this.email() }, { email: this.email() }]; + + return [ + { + id: this.uid(), + name: this.name(), + emails: emails, + }, + ]; + } + + public documentGroupInviteGroupInviteCompletionEmails(): GroupCompletionEmail[] { + return [ + { + email: this.email(), + disable_document_attachment: 0, + subject: this.subject(), + message: this.message(), + }, + ]; + } + + public documentGroupInviteReassignSignerInviteEmail(): ReassignGroupInviteEmail { + return { + email: this.email(), + }; + } + + public documentGroupInviteReassignSignerUpdateInviteActionAttributes(): GroupUpdateInviteActionAttribute[] { + return [ + { + document_id: this.documentId(), + }, + ]; + } + + public embeddedGroupInviteGroupInviteInvites(): EmbeddedGroupInvite[] { + const documents: EmbeddedGroupInviteDocument[] = [{ + id: this.documentId(), + role: this.role(), + action: this.actionSign() + }]; + + const signers: EmbeddedGroupInviteSigner[] = [{ + email: this.email(), + auth_method: this.authMethodNone(), + documents: documents, + first_name: this.firstName(), + last_name: this.lastName() + }]; + + return [{ + order: 1, + signers: signers + }]; + } + + public ccSubject(): string { + return this.string(); + } + + public ccMessage(): string { + return this.string(); + } + + public event(): string { + return this.string(); + } + + public action(): string { + return this.string(); + } + + public secretKey(): string { + return this.string(); + } + + public webhookSubscriptionAttributes(): AttributeRequest { + return { + callback: this.url(), + }; + } + + public webhookV2EventSubscriptionAttributes(): AttributeRequestV2 { + return { + callback: this.url(), + }; + } + + private string(): string { + return this.faker.word.noun(); + } +} diff --git a/tests/core/mock/mockConfig.ts b/tests/core/mock/mockConfig.ts new file mode 100644 index 00000000..74284a56 --- /dev/null +++ b/tests/core/mock/mockConfig.ts @@ -0,0 +1,25 @@ +/* + * This file is a part of signNow SDK API client. + * + * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) + * + * For more details on copyright, see LICENSE.md file + * that was distributed with this source code. + */ + +export class MockConfig { + public readonly port: number; + + public readonly ip: string; + + public readonly expectationsDir: string; + + public readonly debug: number; + + constructor() { + this.port = 8086; + this.ip = '0.0.0.0'; + this.expectationsDir = `${__dirname}/../../resources/wiremock/mappings`; + this.debug = 1; + } +} diff --git a/tests/resources/wiremock-config.env b/tests/resources/wiremock-config.env new file mode 100644 index 00000000..d5a24354 --- /dev/null +++ b/tests/resources/wiremock-config.env @@ -0,0 +1,8 @@ +## +## WireMock configuration to mock signNow API request +## during the test phase +## + +WIREMOCK_PORT=8086 +WIREMOCK_ROOT_DIR="$(pwd)/tests/resources/wiremock/mappings" +WIREMOCK_IMAGE=wiremock/wiremock:3.9.1 diff --git a/tests/resources/wiremock/mappings/bulk_invite_post.json b/tests/resources/wiremock/mappings/bulk_invite_post.json new file mode 100644 index 00000000..57af3f49 --- /dev/null +++ b/tests/resources/wiremock/mappings/bulk_invite_post.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "POST", + "urlPathPattern": "/template/[0-9a-z]{40}/bulkinvite" + }, + "response": { + "status": 200, + "body": "{\"status\":\"success\"}", + "headers": { + "Content-Type": "multipart/form-data" + } + } +} diff --git a/tests/resources/wiremock/mappings/cancel_document_group_invite_post.json b/tests/resources/wiremock/mappings/cancel_document_group_invite_post.json new file mode 100644 index 00000000..70f85d0e --- /dev/null +++ b/tests/resources/wiremock/mappings/cancel_document_group_invite_post.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "POST", + "urlPathPattern": "/documentgroup/[0-9a-z]{40}/groupinvite/[0-9a-z]{40}/cancelinvite" + }, + "response": { + "status": 200, + "body": "{\"status\":\"success\"}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/cancel_free_form_invite_put.json b/tests/resources/wiremock/mappings/cancel_free_form_invite_put.json new file mode 100644 index 00000000..62545bd4 --- /dev/null +++ b/tests/resources/wiremock/mappings/cancel_free_form_invite_put.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "PUT", + "urlPathPattern": "/invite/[0-9a-z]{40}/cancel" + }, + "response": { + "status": 200, + "body": "{}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/cancel_invite_put.json b/tests/resources/wiremock/mappings/cancel_invite_put.json new file mode 100644 index 00000000..bc099d3c --- /dev/null +++ b/tests/resources/wiremock/mappings/cancel_invite_put.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "PUT", + "urlPathPattern": "/document/[0-9a-z]{40}/fieldinvitecancel" + }, + "response": { + "status": 200, + "body": "{\"status\":\"success\"}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/create_document_download_link_post.json b/tests/resources/wiremock/mappings/create_document_download_link_post.json new file mode 100644 index 00000000..52f78440 --- /dev/null +++ b/tests/resources/wiremock/mappings/create_document_download_link_post.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "POST", + "urlPathPattern": "/document/[0-9a-z]{40}/download/link" + }, + "response": { + "status": 200, + "body": "{\"link\":\"https:\\/\\/www.reichert.com\\/est-quia-non-quia-placeat-quo-animi-eos-doloribus\"}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/create_document_embedded_editor_link_post.json b/tests/resources/wiremock/mappings/create_document_embedded_editor_link_post.json new file mode 100644 index 00000000..0c869a29 --- /dev/null +++ b/tests/resources/wiremock/mappings/create_document_embedded_editor_link_post.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "POST", + "urlPathPattern": "/v2/documents/[0-9a-z]{40}/embedded-editor" + }, + "response": { + "status": 200, + "body": "{\"data\":{\"url\":\"https:\\/\\/www.bahringer.com\\/quis-ducimus-temporibus-est-omnis-praesentium-est\"}}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/create_document_embedded_sending_link_post.json b/tests/resources/wiremock/mappings/create_document_embedded_sending_link_post.json new file mode 100644 index 00000000..6f6e0b2d --- /dev/null +++ b/tests/resources/wiremock/mappings/create_document_embedded_sending_link_post.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "POST", + "urlPathPattern": "/v2/documents/[0-9a-z]{40}/embedded-sending" + }, + "response": { + "status": 200, + "body": "{\"data\":{\"url\":\"https:\\/\\/www.langworth.com\\/in-incidunt-est-fugiat-voluptas\"}}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/create_document_group_embedded_editor_link_post.json b/tests/resources/wiremock/mappings/create_document_group_embedded_editor_link_post.json new file mode 100644 index 00000000..b0b79b19 --- /dev/null +++ b/tests/resources/wiremock/mappings/create_document_group_embedded_editor_link_post.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "POST", + "urlPathPattern": "/v2/document-groups/[0-9a-z]{40}/embedded-editor" + }, + "response": { + "status": 200, + "body": "{\"data\":{\"url\":\"http:\\/\\/www.connelly.org\\/\"}}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/create_document_group_embedded_sending_link_post.json b/tests/resources/wiremock/mappings/create_document_group_embedded_sending_link_post.json new file mode 100644 index 00000000..0ac996de --- /dev/null +++ b/tests/resources/wiremock/mappings/create_document_group_embedded_sending_link_post.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "POST", + "urlPathPattern": "/v2/document-groups/[0-9a-z]{40}/embedded-sending" + }, + "response": { + "status": 200, + "body": "{\"data\":{\"url\":\"http:\\/\\/cremin.com\\/vero-eos-accusantium-error-eum-suscipit-magni\"}}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/create_document_group_post.json b/tests/resources/wiremock/mappings/create_document_group_post.json new file mode 100644 index 00000000..15575be4 --- /dev/null +++ b/tests/resources/wiremock/mappings/create_document_group_post.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "POST", + "url": "/documentgroup" + }, + "response": { + "status": 200, + "body": "{\"id\":\"163df679f737ecfd00f4cddba2ec09d9bf19affa\"}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/create_document_with_template_post.json b/tests/resources/wiremock/mappings/create_document_with_template_post.json new file mode 100644 index 00000000..7180bde9 --- /dev/null +++ b/tests/resources/wiremock/mappings/create_document_with_template_post.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "POST", + "urlPathPattern": "/template/[0-9a-z]{40}/copy" + }, + "response": { + "status": 200, + "body": "{\"id\":\"b3b2e1e26c78074bd605cb8ac741f237abe1f86f\",\"name\":\"et\"}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/create_embedded_invite_for_document_group_post.json b/tests/resources/wiremock/mappings/create_embedded_invite_for_document_group_post.json new file mode 100644 index 00000000..a0db9905 --- /dev/null +++ b/tests/resources/wiremock/mappings/create_embedded_invite_for_document_group_post.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "POST", + "urlPathPattern": "/v2/document-groups/[0-9a-z]{40}/embedded-invites" + }, + "response": { + "status": 200, + "body": "{\"data\":{\"id\":\"6326c6582ecdd0b85d03919990c8442fae941499\"}}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/create_embedded_invite_post.json b/tests/resources/wiremock/mappings/create_embedded_invite_post.json new file mode 100644 index 00000000..7f64a007 --- /dev/null +++ b/tests/resources/wiremock/mappings/create_embedded_invite_post.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "POST", + "urlPathPattern": "/v2/documents/[0-9a-z]{40}/embedded-invites" + }, + "response": { + "status": 200, + "body": "{\"data\":[{\"id\":\"092b57b0e7b5aef63d066c7d5fbe6471d319b0a2\",\"email\":\"coconnell@gmail.com\",\"role_id\":\"ea4d4f0159273555f0f1712d2d945ce1c20e1b88\",\"order\":62272,\"status\":\"success\"}]}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/create_event_subscription_post.json b/tests/resources/wiremock/mappings/create_event_subscription_post.json new file mode 100644 index 00000000..c6526f3d --- /dev/null +++ b/tests/resources/wiremock/mappings/create_event_subscription_post.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "POST", + "url": "/api/v2/events" + }, + "response": { + "status": 200, + "body": "{}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/create_free_form_invite_post.json b/tests/resources/wiremock/mappings/create_free_form_invite_post.json new file mode 100644 index 00000000..db70cbfe --- /dev/null +++ b/tests/resources/wiremock/mappings/create_free_form_invite_post.json @@ -0,0 +1,14 @@ +{ + "request": { + "method": "POST", + "urlPathPattern": "/document/[0-9a-z]{40}/invite", + "bodyPatterns": [{"matchesJsonPath": "$.[?(@.to =~ /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$/)]"}] + }, + "response": { + "status": 200, + "body": "{\"result\":\"success\",\"id\":\"2bdb4ce13705895b1cd67f32cb63072079bb3f78\",\"callback_url\":\"https:\\/\\/www.gutmann.biz\\/in-laborum-quia-enim-ut-et-nisi-neque\"}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/create_link_for_embedded_invite_document_group_post.json b/tests/resources/wiremock/mappings/create_link_for_embedded_invite_document_group_post.json new file mode 100644 index 00000000..26ceb1f1 --- /dev/null +++ b/tests/resources/wiremock/mappings/create_link_for_embedded_invite_document_group_post.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "POST", + "urlPathPattern": "/v2/document-groups/[0-9a-z]{40}/embedded-invites/[0-9a-z]{40}/link" + }, + "response": { + "status": 200, + "body": "{\"data\":{\"link\":\"http:\\/\\/brekke.com\\/laudantium-rerum-quos-fugit-ut.html\"}}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/create_link_for_embedded_invite_post.json b/tests/resources/wiremock/mappings/create_link_for_embedded_invite_post.json new file mode 100644 index 00000000..5a6d3d67 --- /dev/null +++ b/tests/resources/wiremock/mappings/create_link_for_embedded_invite_post.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "POST", + "urlPathPattern": "/v2/documents/[0-9a-z]{40}/embedded-invites/[0-9a-z]{40}/link" + }, + "response": { + "status": 200, + "body": "{\"data\":{\"link\":\"http:\\/\\/jones.com\\/consectetur-quia-quo-excepturi-modi-asperiores-aut-iusto-placeat\"}}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/create_routing_details_post.json b/tests/resources/wiremock/mappings/create_routing_details_post.json new file mode 100644 index 00000000..8ffc13e9 --- /dev/null +++ b/tests/resources/wiremock/mappings/create_routing_details_post.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "POST", + "urlPathPattern": "/document/[0-9a-z]{40}/template/routing/detail" + }, + "response": { + "status": 200, + "body": "{\"routing_details\":[{\"default_email\":\"stroman.vergie@ziemann.com\",\"inviter_role\":false,\"name\":\"voluptas\",\"role_id\":\"58d17313c97523fdbdbc5582fbaff3795fc4f145\",\"signing_order\":43559}]}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/create_signing_link_post.json b/tests/resources/wiremock/mappings/create_signing_link_post.json new file mode 100644 index 00000000..b293a8a2 --- /dev/null +++ b/tests/resources/wiremock/mappings/create_signing_link_post.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "POST", + "url": "/link" + }, + "response": { + "status": 200, + "body": "{\"url\":\"http:\\/\\/walsh.com\\/voluptatem-nemo-veniam-dolor-modi-repellendus\",\"url_no_signup\":\"http:\\/\\/www.smitham.info\\/aut-quae-vitae-eos-assumenda-veniam-saepe.html\"}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/create_template_post.json b/tests/resources/wiremock/mappings/create_template_post.json new file mode 100644 index 00000000..7e18416b --- /dev/null +++ b/tests/resources/wiremock/mappings/create_template_post.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "POST", + "url": "/template" + }, + "response": { + "status": 200, + "body": "{\"id\":\"cfbc3f5c5d33434c200def3e41549b87b3749acd\"}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/create_user_post.json b/tests/resources/wiremock/mappings/create_user_post.json new file mode 100644 index 00000000..22de1dc2 --- /dev/null +++ b/tests/resources/wiremock/mappings/create_user_post.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "POST", + "url": "/user" + }, + "response": { + "status": 200, + "body": "{\"id\":\"6ec532c0312c9014ca87c260ef73ebac0f7c236b\",\"verified\":70647,\"email\":\"wkonopelski@crist.com\"}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/delete_document_delete.json b/tests/resources/wiremock/mappings/delete_document_delete.json new file mode 100755 index 00000000..93f4ca5a --- /dev/null +++ b/tests/resources/wiremock/mappings/delete_document_delete.json @@ -0,0 +1,14 @@ +{ + "request": { + "method": "DELETE", + "urlPathPattern": "/document/[0-9a-z]{40}" + }, + "response": { + "status": 200, + "body": "{\"status\":\"ducimus\"}", + "headers": { + "Content-Type": "application/json" + } + } +} + diff --git a/tests/resources/wiremock/mappings/delete_document_group_delete.json b/tests/resources/wiremock/mappings/delete_document_group_delete.json new file mode 100644 index 00000000..a068e15f --- /dev/null +++ b/tests/resources/wiremock/mappings/delete_document_group_delete.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "DELETE", + "urlPathPattern": "/documentgroup/[0-9a-z]{40}" + }, + "response": { + "status": 200, + "body": "{\"status\":\"success\"}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/delete_embedded_doc_group_invites_delete.json b/tests/resources/wiremock/mappings/delete_embedded_doc_group_invites_delete.json new file mode 100644 index 00000000..c5b2a38a --- /dev/null +++ b/tests/resources/wiremock/mappings/delete_embedded_doc_group_invites_delete.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "DELETE", + "urlPathPattern": "/v2/document-groups/[0-9a-z]{40}/embedded-invites" + }, + "response": { + "status": 200, + "body": "{}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/delete_embedded_invite_delete.json b/tests/resources/wiremock/mappings/delete_embedded_invite_delete.json new file mode 100644 index 00000000..6d3ef02c --- /dev/null +++ b/tests/resources/wiremock/mappings/delete_embedded_invite_delete.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "DELETE", + "urlPathPattern": "/v2/documents/[0-9a-z]{40}/embedded-invites" + }, + "response": { + "status": 200, + "body": "{}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/delete_event_subscription_delete.json b/tests/resources/wiremock/mappings/delete_event_subscription_delete.json new file mode 100644 index 00000000..4ce1581e --- /dev/null +++ b/tests/resources/wiremock/mappings/delete_event_subscription_delete.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "DELETE", + "urlPathPattern": "/api/v2/events/[0-9a-z]{40}" + }, + "response": { + "status": 200, + "body": "{}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/delete_event_subscription_v2_delete.json b/tests/resources/wiremock/mappings/delete_event_subscription_v2_delete.json new file mode 100644 index 00000000..5c1a70da --- /dev/null +++ b/tests/resources/wiremock/mappings/delete_event_subscription_v2_delete.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "DELETE", + "urlPathPattern": "/v2/event-subscriptions/[0-9a-z]{40}" + }, + "response": { + "status": 200, + "body": "{}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/download_document_get.json b/tests/resources/wiremock/mappings/download_document_get.json new file mode 100644 index 00000000..047f3987 --- /dev/null +++ b/tests/resources/wiremock/mappings/download_document_get.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "GET", + "urlPathPattern": "/document/[0-9a-z]{40}/download" + }, + "response": { + "status": 200, + "body": "%PDF-1.4\\n1 0 obj\\n<< /Type /Catalog /Pages 2 0 R >>\\nendobj\\n2 0 obj\\n<< /Type /Pages /Count 1 /Kids [3 0 R] >>\\nendobj\\n3 0 obj\\n<< /Type /Page /Parent 2 0 R /Resources << >> /MediaBox [0 0 612 792] >>\\nendobj\\nxref\\n0 4\\n0000000000 65535 f \\n0000000010 00000 n \\n0000000050 00000 n \\n0000000100 00000 n \\ntrailer\\n<< /Size 4 /Root 1 0 R >>\\nstartxref\\n150\\n%%EOF\\n", + "headers": { + "Content-Type": "application/pdf" + } + } +} diff --git a/tests/resources/wiremock/mappings/download_document_group_post.json b/tests/resources/wiremock/mappings/download_document_group_post.json new file mode 100644 index 00000000..fa739970 --- /dev/null +++ b/tests/resources/wiremock/mappings/download_document_group_post.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "POST", + "urlPathPattern": "/documentgroup/[0-9a-z]{40}/downloadall" + }, + "response": { + "status": 200, + "body": "{}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/generate_access_token_post.json b/tests/resources/wiremock/mappings/generate_access_token_post.json new file mode 100644 index 00000000..eacc30d9 --- /dev/null +++ b/tests/resources/wiremock/mappings/generate_access_token_post.json @@ -0,0 +1,14 @@ +{ + "request": { + "method": "POST", + "url": "/oauth2/token", + "bodyPatterns": [{"matches": "(.*)password=(.*)"}] + }, + "response": { + "status": 200, + "body": "{\"expires_in\":382973089,\"token_type\":\"bearer\",\"access_token\":\"b4c2eb71b3ca97699743d66dc09aceb6670ed61568558185b28fa33236254e56\",\"refresh_token\":\"a794a110b29cd6b543f6a4ac31138fb6406b8ce5b225518cba739bb9841a3225\",\"scope\":\"*\",\"last_login\":644336355}", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + } + } +} diff --git a/tests/resources/wiremock/mappings/get_all_event_subscriptions_callbacks_v2_get.json b/tests/resources/wiremock/mappings/get_all_event_subscriptions_callbacks_v2_get.json new file mode 100644 index 00000000..9c808875 --- /dev/null +++ b/tests/resources/wiremock/mappings/get_all_event_subscriptions_callbacks_v2_get.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "GET", + "url": "/v2/event-subscriptions/callbacks" + }, + "response": { + "status": 200, + "body": "{}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/get_document_fields_get.json b/tests/resources/wiremock/mappings/get_document_fields_get.json new file mode 100644 index 00000000..16413ae7 --- /dev/null +++ b/tests/resources/wiremock/mappings/get_document_fields_get.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "GET", + "urlPathPattern": "/v2/documents/[0-9a-z]{40}/fields" + }, + "response": { + "status": 200, + "body": "{\"data\":[{\"id\":\"bf3d237e71dbada5c47408a251dcce1704fc1d6f\",\"name\":\"qui\",\"type\":\"similique\",\"value\":\"id\"}]}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/get_document_free_form_invites_get.json b/tests/resources/wiremock/mappings/get_document_free_form_invites_get.json new file mode 100644 index 00000000..58c4c373 --- /dev/null +++ b/tests/resources/wiremock/mappings/get_document_free_form_invites_get.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "GET", + "urlPathPattern": "/v2/documents/[0-9a-z]{40}/free-form-invites" + }, + "response": { + "status": 200, + "body": "{\"meta\":{\"pagination\":{\"total\":33773,\"count\":54180,\"per_page\":51444,\"current_page\":29590,\"total_pages\":44811,\"links\":[\"eveniet\"]}}}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/get_document_get.json b/tests/resources/wiremock/mappings/get_document_get.json new file mode 100644 index 00000000..214f1625 --- /dev/null +++ b/tests/resources/wiremock/mappings/get_document_get.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "GET", + "urlPathPattern": "/document/[0-9a-z]{40}" + }, + "response": { + "status": 200, + "body": "{\"id\":\"d6b016f5607925f4db97df810ec1e0b46f0343a3\",\"user_id\":\"e0c22f6e8e7d5b825b4247824e5c4c82c55f7f05\",\"document_name\":\"maiores natus\",\"page_count\":\"0\",\"created\":736328300,\"updated\":784295396,\"original_filename\":\"corrupti.docx\",\"owner\":\"block.arianna@gmail.com\",\"owner_name\":\"Mrs. Amiya Vandervort\",\"template\":false,\"parent_id\":\"0e9950781231f6f9d9c25ab38efe0a0170a1e68a\",\"originator_logo\":\"\",\"pages\":[{\"src\":\"https:\\/\\/api.signnow.com\\/document\\/4c222523f7d3374c09acd4acf5d93bee8197e23d\\/thumbnail?size=large&page=0\",\"size\":{\"width\":809,\"height\":451}}],\"version_time\":966948913,\"routing_details\":[{\"id\":\"4bb9c2dce36f9d8db6a86f577eee120b3834d657\",\"data\":[{\"default_email\":\"hmorissette@hotmail.com\",\"inviter_role\":true,\"name\":\"Signer\",\"role_id\":\"4943814dab5c7866285d3732f690c803832c2dc4\",\"signing_order\":40835}],\"created\":798621047}],\"thumbnail\":{\"small\":\"https:\\/\\/api.signnow.com\\/document\\/5ffd1690d4bc15fbf7112bf4426d530ba325ac74\\/thumbnail?size=small\",\"medium\":\"https:\\/\\/api.signnow.com\\/document\\/5ffd1690d4bc15fbf7112bf4426d530ba325ac74\\/thumbnail?size=medium\",\"large\":\"https:\\/\\/api.signnow.com\\/document\\/5ffd1690d4bc15fbf7112bf4426d530ba325ac74\\/thumbnail?size=large\"},\"signatures\":[{\"id\":\"29631a3642eb1c67d94dccfee313add59af0051f\",\"user_id\":\"a196ca6f1c7e8432367b7252c31bd43b5ed749fe\",\"signature_request_id\":\"f7416c10218c264947a2cf7779ec4275795de708\",\"email\":\"arch75@hotmail.com\",\"page_number\":\"velit\",\"width\":\"voluptatem\",\"height\":\"ut\",\"x\":\"eos\",\"y\":\"doloremque\",\"subtype\":\"quidem\",\"allow_editing\":false,\"owner_as_recipient\":false,\"created\":725138207,\"data\":\"iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAABHNCSVQICAgIfAhkiAAAABl0RVh0U29mdHdhcmUAZ25vbWUtc2NyZWVuc2hvdO8Dvz4AAAApSURBVAiZVcvBCQAgEMTAObH\\/itX1IYgG8ksqc8RDA9WO6CDrFpXkWzZ2uwn\\/AFD5ZAAAAABJRU5ErkJggg==\"}],\"tags\":[{\"type\":\"doloribus\",\"name\":\"minima\"}],\"fields\":[{\"id\":\"9a90a06e40b688e48e3e00efaafc6ddc9b2bea7c\",\"type\":\"eius\",\"role_id\":\"e020123fbf872f663e7e90d874081d57a07fd9a5\",\"json_attributes\":{\"page_number\":0,\"x\":51414,\"y\":77456,\"width\":13968,\"height\":75247,\"required\":true,\"name\":\"qui\",\"label\":\"incidunt\",\"bold\":false,\"underline\":false,\"max_lines\":78861,\"validator_id\":\"a83fe585c08d5c3db78c77906c084e23ecf115e4\"},\"role\":\"voluptate\",\"originator\":\"ted78@gmail.com\",\"fulfiller\":\"kira.lemke@dubuque.com\",\"field_request_id\":\"e2940f6994cb2de8a7e0cc61ab98b92c655105c2\",\"field_request_canceled\":\"doloribus\",\"element_id\":\"a8dd4ea33dde96824efa020d603f123d36f8ac13\",\"field_id\":\"a35b0cb703c4a083601baea48876308c1b96b648\",\"template_field_id\":\"aac79e6c7e718ca5982225c3d636b51fd6d8f841\"}],\"roles\":[{\"unique_id\":\"qui\",\"signing_order\":\"quo\",\"name\":\"recusandae\"}],\"viewer_roles\":[{\"unique_id\":\"voluptatem\",\"signing_order\":\"a\",\"name\":\"numquam\"}],\"signing_session_settings\":{\"welcome_message\":\"at\"},\"originator_organization_settings\":[{\"setting\":\"praesentium\",\"value\":\"autem\"}],\"document_group_info\":{\"document_group_id\":\"sit\",\"document_group_name\":\"beatae\",\"invite_id\":\"laboriosam\",\"invite_status\":\"consequuntur\",\"sign_as_merged\":false,\"doc_count_in_group\":0,\"freeform_invite\":{\"id\":\"72496c6960a61e3701880e7a2d3ccdc6b3efa807\"},\"state\":\"aperiam\"},\"settings\":{\"no_document_attachment\":true,\"copy_export\":false,\"no_document_file_attachments\":true,\"no_user_signature_return\":true,\"mobileweb_option\":true,\"require_drawn_signatures\":false,\"org_allowed_team_admins\":true,\"cloud_auto_export\":true,\"digitally_sign_dowloaded_docs\":false,\"invite_completion_redirect_url\":true,\"invite_decline_redirect_url\":true,\"add_signature_stamp\":false,\"pending_invite_document_view_notification\":true,\"signing_link_document_download\":true,\"required_preset_signature_name\":false,\"cloud_export_with_history\":false,\"emailed_docs_include_history\":true,\"require_email_subject\":true,\"document_completion_retention_days\":false,\"enable_hyperlink_protection\":true,\"enable_advanced_threat_protection\":true,\"require_login_for_signing\":true,\"logout_on_signing\":false,\"audit_trail_completion_retention_days\":false,\"front_end_session_length\":true,\"email_admin_on_banned_login\":false,\"add_signature_stamp_with_name\":true,\"cfr_title_21_part_11\":false,\"unsuccessful_logout_attempts_allowed\":false,\"require_authentication_for_invites\":false,\"electronic_consent_required\":false,\"electronic_consent_text\":false,\"document_guide\":false,\"watermark_downloaded_document\":false,\"restrict_download\":true,\"disable_email_notifications\":false,\"upload_limit\":false,\"document_schema_extended\":true,\"invite_update_notifications_for_all_invites_at_invite_create\":false,\"enable_full_story_tracker\":false,\"document_attachment_only_for_signer\":true,\"sso-only-login\":true,\"block_export_options_when_credit_card_validation_is_used\":true,\"only_administrator_is_able_to_invite_to_the_team\":false,\"block_login_via_social_networks\":true},\"share_info\":{\"is_team_shared\":false}}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/get_document_group_get.json b/tests/resources/wiremock/mappings/get_document_group_get.json new file mode 100644 index 00000000..4b95d812 --- /dev/null +++ b/tests/resources/wiremock/mappings/get_document_group_get.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "GET", + "urlPathPattern": "/documentgroup/[0-9a-z]{40}" + }, + "response": { + "status": 200, + "body": "{\"id\":\"3a17e73f57712570acf78da5f6056908d4cb24b3\",\"group_name\":\"architecto\",\"documents\":[{\"id\":\"dc0850bbaf4b6db08ecfda0eaa1ddc4f220cc6c9\",\"roles\":[\"sapiente\"],\"document_name\":\"quia ut\",\"thumbnail\":{\"small\":\"https:\\/\\/api.signnow.com\\/document\\/c1dd2815eb4e60ef397cecc01794d861d81571c4\\/thumbnail?size=small\",\"medium\":\"https:\\/\\/api.signnow.com\\/document\\/c1dd2815eb4e60ef397cecc01794d861d81571c4\\/thumbnail?size=medium\",\"large\":\"https:\\/\\/api.signnow.com\\/document\\/c1dd2815eb4e60ef397cecc01794d861d81571c4\\/thumbnail?size=large\"},\"origin_document_id\":\"772a920760184eac70513ee9b459dcbf946d4aad\",\"has_unassigned_field\":false,\"has_credit_card_number\":false}],\"originator_organization_settings\":[{\"setting\":\"culpa\",\"value\":\"et\"}]}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/get_document_group_invite_get.json b/tests/resources/wiremock/mappings/get_document_group_invite_get.json new file mode 100644 index 00000000..4842caec --- /dev/null +++ b/tests/resources/wiremock/mappings/get_document_group_invite_get.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "GET", + "urlPathPattern": "/documentgroup/[0-9a-z]{40}/groupinvite/[0-9a-z]{40}" + }, + "response": { + "status": 200, + "body": "{\"invite\":{\"id\":\"f469f80c441e5547a173b15981ee4c17bcf644c5\",\"status\":\"soluta\",\"steps\":[{\"id\":\"95883ffb2d1971d02604f1814765be89fc75f6aa\",\"status\":\"praesentium\",\"order\":53494,\"actions\":[{\"action\":\"qui\",\"email\":\"abbigail.abshire@hotmail.com\",\"document_id\":\"db631f0c4998e012e1519aaa7cc3ad276c935a51\",\"status\":\"non\",\"role_name\":\"nemo\"}]}]}}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/get_document_group_recipients_get.json b/tests/resources/wiremock/mappings/get_document_group_recipients_get.json new file mode 100644 index 00000000..8108b717 --- /dev/null +++ b/tests/resources/wiremock/mappings/get_document_group_recipients_get.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "GET", + "urlPathPattern": "/v2/document-groups/[0-9a-z]{40}/recipients" + }, + "response": { + "status": 200, + "body": "{\"data\":{\"recipients\":[{\"name\":\"tempore\",\"email\":\"layne.terry@yahoo.com\",\"email_group\":{\"id\":\"246d4a175643748e8ba9e50428f5587a1e2304fe\"},\"order\":45790,\"attributes\":{\"message\":\"dolorem\",\"subject\":\"accusantium\",\"expiration_days\":96614,\"reminder\":{\"remind_after\":53973,\"remind_before\":48364,\"remind_repeat\":43534},\"allow_forwarding\":true,\"show_decline_button\":true,\"i_am_recipient\":false,\"authentication\":{\"type\":\"laboriosam\",\"value\":\"aliquid\",\"phone\":\"et\",\"method\":\"laboriosam\"}},\"documents\":[{\"id\":\"303d778e5e62e8cd2ec18440d2fcfc7038e5d135\",\"role\":\"ab\",\"action\":\"saepe\"}]}],\"unmapped_documents\":[{\"id\":\"49abb8d546450880f519434be9d01261bb37152e\",\"role\":\"dolor\",\"action\":\"maiores\"}],\"allowed_unmapped_sign_documents\":[{\"id\":\"3e9d2eced121ad69d239cb6dbd337a42e3219b3b\",\"role\":\"excepturi\",\"recipient\":\"aut\"}],\"cc\":[\"consequatur\"]}}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/get_document_group_template_get.json b/tests/resources/wiremock/mappings/get_document_group_template_get.json new file mode 100644 index 00000000..754f6ac0 --- /dev/null +++ b/tests/resources/wiremock/mappings/get_document_group_template_get.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "GET", + "urlPathPattern": "/documentgroup/template/[0-9a-z]{40}" + }, + "response": { + "status": 200, + "body": "{\"id\":\"ff2c51a349c8d872928e0a18ff34019908fdb6bb\",\"user_id\":\"294d3f5f1ae979c7c8d66b7ee721de09c85c9b2b\",\"group_name\":\"asperiores\",\"folder_id\":\"620b4df12ac1f9b37d005b5f4e8d9fce510a14b5\",\"routing_details\":{\"sign_as_merged\":false,\"include_email_attachments\":\"rerum\",\"invite_steps\":[{\"order\":48004,\"invite_emails\":[],\"invite_actions\":[{\"email\":\"ileuschke@wehner.com\",\"document_id\":\"29731d2c57f9ad243c58905152ded9e5a11975bb\",\"document_name\":\"porro laudantium\",\"authentication\":{\"type\":\"officiis\"},\"allow_reassign\":42540,\"decline_by_signature\":45560,\"lock\":false,\"action\":\"soluta\",\"role_name\":\"exercitationem\"}]}]},\"templates\":[{\"roles\":[\"esse\"],\"template_name\":\"et\",\"id\":\"f1fac9f500fd881756e5206bf944dff0a325d86c\",\"owner_email\":\"rosalia14@hotmail.com\",\"thumbnail\":{\"small\":\"https:\\/\\/api.signnow.com\\/document\\/fcc67339fabb9187048c7fabc30de30ba78444c8\\/thumbnail?size=small\",\"medium\":\"https:\\/\\/api.signnow.com\\/document\\/fcc67339fabb9187048c7fabc30de30ba78444c8\\/thumbnail?size=medium\",\"large\":\"https:\\/\\/api.signnow.com\\/document\\/fcc67339fabb9187048c7fabc30de30ba78444c8\\/thumbnail?size=large\"},\"readable\":true}],\"shared\":66609,\"document_group_template_owner_email\":\"kaela.nitzsche@hotmail.com\",\"shared_team_id\":\"ffddbb9e70355f7d7eef8bf1f220bf3d82644e08\",\"own_as_merged\":true,\"email_action_on_complete\":\"provident\",\"created\":898031334,\"updated\":846756172,\"recently_used\":825749879,\"pinned\":false}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/get_document_history_full_get.json b/tests/resources/wiremock/mappings/get_document_history_full_get.json new file mode 100755 index 00000000..e81c0117 --- /dev/null +++ b/tests/resources/wiremock/mappings/get_document_history_full_get.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "GET", + "urlPathPattern": "/document/[0-9a-z]{40}/historyfull" + }, + "response": { + "status": 200, + "body": "{\"unique_id\":\"390ae6c63917c1e05a5ae3618aa16bf1541c595d\",\"user_id\":\"6a86c63793da0354bb1fcbb341e82ffe395642f6\",\"document_id\":\"8d75e14f6da7ca4f0f043373cbffad118c048727\",\"client_app_name\":\"hic\",\"ip_address\":\"9.228.153.3\",\"email\":\"carmella.adams@hartmann.biz\",\"json_attributes\":{\"page_number\":0,\"x\":60019,\"y\":85443,\"width\":29580,\"height\":41630,\"required\":true,\"name\":\"labore\",\"label\":\"soluta\",\"bold\":false,\"underline\":false,\"max_lines\":39535,\"validator_id\":\"b558ee58669c4044d25ae621c3596520a0631063\"},\"client_timestamp\": 1672751421,\"created\":1328281139,\"event\":\"exercitationem\"}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/get_event_subscription_callback_get.json b/tests/resources/wiremock/mappings/get_event_subscription_callback_get.json new file mode 100644 index 00000000..66f46b06 --- /dev/null +++ b/tests/resources/wiremock/mappings/get_event_subscription_callback_get.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "GET", + "urlPathPattern": "/v2/event-subscriptions/[0-9a-z]{40}/callbacks/[0-9a-z]{40}" + }, + "response": { + "status": 200, + "body": "{}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/get_event_subscription_callbacks_v2_get.json b/tests/resources/wiremock/mappings/get_event_subscription_callbacks_v2_get.json new file mode 100644 index 00000000..d32a7d49 --- /dev/null +++ b/tests/resources/wiremock/mappings/get_event_subscription_callbacks_v2_get.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "GET", + "urlPathPattern": "/v2/event-subscriptions/[0-9a-z]{40}/callbacks" + }, + "response": { + "status": 200, + "body": "{}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/get_event_subscription_v2_get.json b/tests/resources/wiremock/mappings/get_event_subscription_v2_get.json new file mode 100644 index 00000000..85ba89e0 --- /dev/null +++ b/tests/resources/wiremock/mappings/get_event_subscription_v2_get.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "GET", + "urlPathPattern": "/v2/event-subscriptions/[0-9a-z]{40}" + }, + "response": { + "status": 200, + "body": "{}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/get_event_subscriptions_get.json b/tests/resources/wiremock/mappings/get_event_subscriptions_get.json new file mode 100644 index 00000000..be456ac6 --- /dev/null +++ b/tests/resources/wiremock/mappings/get_event_subscriptions_get.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "GET", + "url": "/api/v2/events" + }, + "response": { + "status": 200, + "body": "{\"data\":[{\"id\":\"06a26b942b863a797b63e49afae4abf1e2ed2a33\",\"event\":\"perferendis\",\"entity_id\":36322,\"action\":\"ut\",\"json_attributes\":{\"use_tls_12\":false,\"docid_queryparam\":false,\"integration_id\":\"0b5dab2c7a68f208211b4b5903916dd6383df4c8\",\"callback_url\":\"https:\\/\\/www.blick.com\\/mollitia-et-molestiae-ullam\",\"headers\":{\"string_head\":\"in\",\"int_head\":83444,\"bool_head\":false,\"float_head\":283916976.8772552},\"secret_key\":\"3c2bb9bc36a78f19d27ebf810b0ff9f20de726f6\"},\"created\":1136643764,\"content\":{\"key\":\"id\",\"key1\":\"rem\",\"key2\":\"voluptas\",\"account_id\":\"ea01e5e1b88ec86259dab938e3707fe5ec20a8ac\",\"source\":\"voluptatem\"}}]}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/get_event_subscriptions_v2_get.json b/tests/resources/wiremock/mappings/get_event_subscriptions_v2_get.json new file mode 100644 index 00000000..68347e16 --- /dev/null +++ b/tests/resources/wiremock/mappings/get_event_subscriptions_v2_get.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "GET", + "url": "/v2/event-subscriptions" + }, + "response": { + "status": 200, + "body": "{}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/get_folder_documents_get.json b/tests/resources/wiremock/mappings/get_folder_documents_get.json new file mode 100644 index 00000000..e03b4c39 --- /dev/null +++ b/tests/resources/wiremock/mappings/get_folder_documents_get.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "GET", + "urlPathPattern": "/folder/[0-9a-z]{40}" + }, + "response": { + "status": 200, + "body": "{\"id\":\"68a1473b637fe0da35d1de410280a136d91cc9a0\",\"created\":\"256873086\",\"name\":\"ut\",\"user_id\":\"0c057ef7cef13f9a6051ed83dfd724f9616fd8fe\",\"system_folder\":false,\"shared\":true,\"folders\":[{\"id\":\"76094defc438fa83bd9b09ea7be56c36040e45fe\",\"user_id\":\"c8928f928cfc973e20fa47ae3a27a9ef2a2ba66b\",\"name\":\"beatae\",\"created\":\"955587034\",\"shared\":false,\"document_count\":\"21852\",\"template_count\":\"90426\",\"folder_count\":\"78238\"}],\"total_documents\":70614,\"documents\":[{\"id\":\"b912411002fd6bb1a68213fc3f69c4a8fcbf2b3e\",\"user_id\":\"2aed10d0b72db1c4199258e0bb649a680299aae6\",\"document_name\":\"ea et\",\"page_count\":\"52299\",\"created\":\"167959901\",\"updated\":\"1386624563\",\"version_time\":\"642068346\",\"original_filename\":\"et.jpeg\",\"origin_document_id\":\"a244f63582cf3b44ece2044739c92fd1c8e10973\",\"owner\":\"mhegmann@baumbach.com\",\"origin_user_id\":\"167a64a828256cc1d9542bdc3280ceed811ae9e9\",\"project_id\":\"1fe4ba89c9f5b889d082a855ee06e546eaf66100\",\"thumbnail\":{\"small\":\"https:\\/\\/api.signnow.com\\/document\\/ebcad3b784d1e52618a6dc9dab75c38781fb584d\\/thumbnail?size=small\",\"medium\":\"https:\\/\\/api.signnow.com\\/document\\/ebcad3b784d1e52618a6dc9dab75c38781fb584d\\/thumbnail?size=medium\",\"large\":\"https:\\/\\/api.signnow.com\\/document\\/ebcad3b784d1e52618a6dc9dab75c38781fb584d\\/thumbnail?size=large\"},\"template\":true,\"is_favorite\":true,\"roles\":[{\"unique_id\":\"52b43342afeda24516573401b227196307447c5e\",\"signing_order\":\"natus\",\"name\":\"perferendis\"}],\"routing_details\":[{\"id\":\"fc54a4485b41011cb12bb01dda3f34eff44fdc2c\",\"data\":{\"name\":\"qui\",\"inviter_role\":true,\"signing_order\":93349,\"delivery_type\":\"dolore\",\"default_email\":\"botsford.dallin@gmail.com\",\"role_id\":\"129661754d1f39bbd60294d1a25f25370618a632\",\"decline_by_signature\":true,\"reassign\":false,\"expiration_days\":76723,\"reminder\":{\"reminder_before\":0,\"remind_after\":0,\"remind_repeat\":0}},\"created\":\"753854417\",\"updated\":\"322122948\",\"invite_link_instructions\":\"aperiam\"}],\"field_invites\":[{\"id\":\"ffc8284271c40275fd7adb95881a1144e1d518e2\",\"signer_user_id\":\"11d5bb826a09ff62b4dcaca3ad4d152101555175\",\"status\":\"rerum\",\"created\":\"953980567\",\"updated\":\"1423776501\",\"email\":\"kquigley@yahoo.com\",\"role\":\"eius\",\"role_id\":\"d491a3d6bca2345db374a507efdfe8912019fbeb\",\"email_sent_statuses\":[{\"status\":\"qui\",\"created_at\":101681480,\"last_reaction_at\":348127257}],\"is_document_locked\":\"0\",\"password_protected\":\"1\",\"password_type\":\"nulla\",\"password_method\":\"sint\",\"reassign\":\"0\",\"id_verification_required\":\"eos\",\"id_verified\":\"cumque\",\"reminder\":\"51894\",\"expiration_time\":\"57769\",\"electronic_consent_id\":\"et\",\"prefill_signature_name\":\"pariatur\",\"force_new_signature\":\"0\",\"electronic_consent_required\":\"1\",\"decline_by_signature\":\"amet\",\"signing_instructions\":\"ea\",\"payment_request\":\"nihil\",\"is_draft_exists\":\"1\",\"is_full_declined\":\"0\",\"is_embedded\":\"0\",\"delivery_type\":\"non\",\"signer_phone_invite\":\"autem\",\"signature_type\":\"expedita\",\"email_group\":{\"id\":\"d97873c8d5bb17fc6cfc1fc4c03cf5cfa86f7cd4\",\"name\":\"et\"}}],\"signatures\":[{\"id\":\"e701203291e4e8d867e10cff92475491ef4beb47\",\"user_id\":\"8537ed6954f0a91c2cf70c480f0510c90540d253\",\"email\":\"lilian02@yahoo.com\",\"page_number\":\"voluptate\",\"width\":\"expedita\",\"height\":\"totam\",\"x\":\"minima\",\"y\":\"quod\",\"created\":318876337}],\"seals\":[{\"id\":\"9aafec476c15064835e1a51b9b009d315601e29c\",\"user_id\":\"3ddebb14c422f46906fae9fb759f9267ba71fd43\",\"email\":\"kovacek.cody@harvey.info\",\"page_number\":\"sed\",\"width\":\"exercitationem\",\"height\":\"delectus\",\"x\":\"hic\",\"y\":\"repudiandae\",\"created\":562612184}],\"texts\":[{\"id\":\"b8b382036e042f3e880c994bcad50cd699b3bee4\",\"user_id\":\"ef12ee3a458ff2e19ee282ac97f7125283aa2847\",\"page_number\":\"0\",\"email\":\"kunde.briana@weimann.com\",\"font\":\"Arial\",\"size\":\"12\",\"data\":\"Autem reiciendis quae ipsam ab necessitatibus beatae molestiae aut. Quia delectus inventore et molestiae reprehenderit aspernatur asperiores. Sed ducimus amet aut est.\",\"x\":\"21\",\"y\":\"40\",\"line_height\":\"0.00\",\"created\":\"1745152228\"}],\"checks\":[{\"id\":\"53b58abeb6d91d9e6aa0147c8ad962e220f539c0\",\"user_id\":\"3f60253711c531d5cf9a36f2d5b0dec9aa7fc18d\",\"email\":\"rgibson@yahoo.com\",\"page_number\":\"esse\",\"width\":\"est\",\"height\":\"quisquam\",\"x\":\"asperiores\",\"y\":\"hic\",\"created\":1111260873}],\"radiobuttons\":[{\"id\":\"6276ca7df22c259411b2550e5a8c14635f3bc1a0\",\"user_id\":\"6c979c05fc9bd544e1cff70400d5cf291590e235\",\"email\":\"muhammad36@connelly.com\",\"page_number\":\"vitae\",\"width\":\"illum\",\"height\":\"occaecati\",\"x\":\"quis\",\"y\":\"labore\",\"created\":1267884375}],\"integrations\":[{\"id\":\"216eb30c1a90f08049da01309b6b74fba1d38d6d\",\"user_id\":\"bbabe35dd6a45db3e7ac744a5472bde7c1bc8b38\",\"email\":\"sibyl98@hotmail.com\",\"page_number\":\"rerum\",\"width\":\"laudantium\",\"height\":\"dolores\",\"x\":\"aut\",\"y\":\"corporis\",\"created\":776228785}],\"inserts\":[{\"id\":\"2dc9d6cedbf27427025a6eeb48a242669774f293\",\"user_id\":\"55718e4894c5ef43f53f9ef45f23f778404caae5\",\"email\":\"micah.monahan@yahoo.com\",\"page_number\":\"est\",\"width\":\"magni\",\"height\":\"placeat\",\"x\":\"magnam\",\"y\":\"sed\",\"created\":278355514}],\"tags\":[{\"type\":\"id\",\"name\":\"et\"}],\"fields\":[{\"id\":\"4a75152e69abdb77fb215a0f65077b9b88c574ab\",\"type\":\"unde\",\"role_id\":\"960a834693cc1b7671a14bb4947375b1c1cb9595\",\"json_attributes\":{\"page_number\":89873,\"x\":33836,\"y\":757,\"width\":17476,\"height\":32872,\"required\":false,\"label\":\"cum\",\"name\":\"similique\",\"color\":\"#1dfedf\",\"bold\":true,\"italic\":false,\"underline\":false,\"align\":\"ad\",\"valign\":\"repudiandae\",\"font\":\"quis\",\"size\":66870,\"font_size\":57319,\"arrangement\":\"quidem\",\"max_lines\":93672,\"max_chars\":82081},\"role\":\"explicabo\",\"originator\":\"hickle.gerda@mckenzie.net\",\"fulfiller\":\"kip71@gmail.com\",\"field_request_id\":\"48243c27fd98fe6c72d5f2e4445174971be14dac\",\"element_id\":\"1278524d912dbc4e5c115f36931a5469e11d19c5\",\"template_field_id\":\"637843bb5cf8cd986180282e3932f28fc35cab04\",\"field_id\":\"1d59e36fefb833f23a39779dc9e62a3fb13308f3\"}],\"requests\":[{\"email_sent_statuses\":[{\"status\":\"excepturi\",\"created_at\":965644497,\"last_reaction_at\":212003690}]}],\"enumeration_options\":[{\"id\":\"5be9347764f73dc2dc1ebf9b1aec3678d0ccecea\",\"enumeration_id\":\"0a6befde197d9912cb94de8003c8fd2fa199cac5\",\"user_id\":\"ac15a1c7c251037eb1b99f28197f913e2a2a7b51\",\"data\":\"aut\",\"email\":\"wiza.nayeli@gmail.com\",\"page_number\":\"occaecati\",\"width\":\"ea\",\"height\":\"ut\",\"x\":\"aut\",\"y\":\"sed\",\"created\":1174678298}],\"attachments\":[{\"id\":\"ac975e3b85fbcd2431cf244dd292af55b4a0355b\",\"user_id\":\"73bf7497f1db28e0e0ab1f8c2df5725e4cdde0a1\",\"page_number\":\"itaque\",\"width\":\"ducimus\",\"height\":\"debitis\",\"x\":\"voluptatem\",\"y\":\"doloremque\",\"line_height\":\"aut\",\"created\":\"693376167\",\"original_attachment_name\":\"sit.doc\",\"filename\":\"ratione.jpeg\",\"file_type\":\"vero\",\"mime_type\":\"voluptatum\",\"file_size\":\"eum\"}],\"document_group_info\":{\"document_group_id\":\"dafcfc183ea0606e2943a640af32f9358aa0ae91\",\"document_group_name\":\"perspiciatis\",\"invite_id\":\"6cd82099bd87a4cae08f4fd79734f67329151f6c\",\"invite_status\":\"quod\",\"state\":\"sed\",\"doc_count_in_group\":82054,\"sign_as_merged\":false,\"freeform_invite\":{\"id\":\"6f83772fb5b259ffc7a7631e84e9fd54f0b6a223\"}},\"recently_used\":\"1458146569\"}]}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/get_folder_get.json b/tests/resources/wiremock/mappings/get_folder_get.json new file mode 100644 index 00000000..e3909e23 --- /dev/null +++ b/tests/resources/wiremock/mappings/get_folder_get.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "GET", + "url": "/folder" + }, + "response": { + "status": 200, + "body": "{\"id\":\"44bb5040c3073410f79dbbac36baa6226b9c711f\",\"created\":893001868,\"name\":\"nam\",\"user_id\":\"7096bff1e0318f952341a447d6330d867276104c\",\"system_folder\":true,\"shared\":false,\"folders\":[{\"id\":\"89d87ec3787d0e80b96d92a9b56f8d5510aa5c65\",\"created\":\"104162392\",\"name\":\"molestiae\",\"user_id\":\"aee52f03fe52a929f3c40008d927a8a2ff11f4c2\",\"shared\":true,\"document_count\":\"27511\",\"template_count\":\"37727\",\"folder_count\":\"94933\"}],\"total_documents\":18431,\"documents\":[{\"id\":\"4f088a3f4eb96f6874e027b548634c39da07e72b\",\"user_id\":\"7e6145d95f256780c18221d2ac18e157e68834ec\",\"document_name\":\"vero est\",\"page_count\":\"52724\",\"created\":1493449439,\"updated\":511129918,\"original_filename\":\"ea.jpeg\",\"origin_document_id\":\"1835d6484c3a6dbf38cf09b38697c180bfacdc70\",\"owner\":\"marianna.beahan@yahoo.com\",\"origin_user_id\":\"6ce481bef2ed3d36d92c8b4834f026bc12d8e27b\",\"thumbnail\":{\"small\":\"https:\\/\\/api.signnow.com\\/document\\/3a8896be3fea4d453c00a19ee227fd8f8d921f1a\\/thumbnail?size=small\",\"medium\":\"https:\\/\\/api.signnow.com\\/document\\/3a8896be3fea4d453c00a19ee227fd8f8d921f1a\\/thumbnail?size=medium\",\"large\":\"https:\\/\\/api.signnow.com\\/document\\/3a8896be3fea4d453c00a19ee227fd8f8d921f1a\\/thumbnail?size=large\"},\"template\":true,\"is_favorite\":true,\"signatures\":[{\"id\":\"80771933fedf9ffc5611b7e39608d6f0a21f6c0f\",\"user_id\":\"d91c1609d041623600caffb098f87a771d2948a7\",\"email\":\"filomena40@hotmail.com\",\"page_number\":\"possimus\",\"width\":\"eos\",\"height\":\"sit\",\"x\":\"nisi\",\"y\":\"odit\",\"created\":164170859}],\"seals\":[{\"id\":\"8941aaafbf9682c030ca261af423ae098ec8d153\",\"user_id\":\"6fac39ab1096f198da68e4e102b02a5eca75316f\",\"email\":\"nella.auer@gmail.com\",\"page_number\":\"nostrum\",\"width\":\"alias\",\"height\":\"accusamus\",\"x\":\"et\",\"y\":\"ex\",\"created\":1181615573}],\"texts\":[{\"id\":\"d714fd68d41698d6169ee65dd2b5545503d8c361\",\"user_id\":\"2addb370c1f62df0b46a22ca21d19d99f71a65e9\",\"page_number\":\"0\",\"email\":\"judge.hyatt@hagenes.com\",\"font\":\"Arial\",\"size\":\"12\",\"data\":\"Omnis labore fugit similique eius. Perspiciatis animi eveniet dolorum architecto quas esse qui deserunt. Rem consequatur sed qui sit iusto consequatur.\",\"x\":\"53\",\"y\":\"52\",\"line_height\":\"0.00\",\"created\":\"1745152228\"}],\"checks\":[{\"id\":\"dc318c9ce32c6eb42f34bd3ec418b6ffae7f88ab\",\"user_id\":\"24fad98f7ab44d65bac727719a58db744c9d55d2\",\"email\":\"white.herminio@hotmail.com\",\"page_number\":\"rerum\",\"width\":\"autem\",\"height\":\"qui\",\"x\":\"porro\",\"y\":\"ut\",\"created\":1469321023}],\"inserts\":[{\"id\":\"90b0fe544d30628cc220ecf3ad65a18c51877d47\",\"user_id\":\"daf16667e0937241d7c01b0ad4ad0fa70c47a1f0\",\"email\":\"linwood.flatley@hotmail.com\",\"page_number\":\"in\",\"width\":\"est\",\"height\":\"praesentium\",\"x\":\"et\",\"y\":\"cumque\",\"created\":1650425151}],\"tags\":[{\"type\":\"minima\",\"name\":\"blanditiis\"}],\"fields\":[{\"id\":\"110fa2eb801a473461ae6fb2bb67e0966b1ab658\",\"type\":\"cumque\",\"role_id\":\"4d0d02656d341383e7631813b6422aad9473147f\",\"json_attributes\":{\"page_number\":86306,\"x\":28520,\"y\":95934,\"width\":96243,\"height\":62529,\"required\":false,\"label\":\"earum\"},\"role\":\"et\",\"originator\":\"elisabeth34@yahoo.com\",\"fulfiller\":\"emcclure@hotmail.com\",\"field_request_id\":\"2a9fbc0a46ef730c7001635649a8becf2ae3c698\",\"element_id\":\"baf48d59005f515632a4a62f023843eeded9c503\",\"template_field_id\":\"1124453f98e4095abe4fd913a30f25bae5efc351\",\"field_id\":\"f70acb9fe3164067b19ad827b83b2b3029cea557\"}],\"requests\":[{\"email_sent_statuses\":[{\"status\":\"sed\",\"created_at\":570780104,\"last_reaction_at\":1469823832}]}],\"roles\":[{\"unique_id\":\"51920758c4b94b9df014400d860d175268d20928\",\"signing_order\":\"veritatis\",\"name\":\"voluptas\"}],\"field_invites\":[{\"id\":\"887c69f6b04a1e38b02217c388d78441aeb2ee4f\",\"status\":\"nihil\",\"updated\":926215127,\"email\":\"ratke.jessika@gmail.com\",\"role\":\"voluptas\",\"email_sent_statuses\":[{\"status\":\"alias\",\"created_at\":414080399,\"last_reaction_at\":549874832}]}],\"version_time\":1634221864,\"enumeration_options\":[{\"id\":\"c39c2f98f2e71761a30560c5334636762f513244\",\"enumeration_id\":\"84c120f16420f87fb66c023f3af60c3689bb4298\",\"user_id\":\"bf00e55a8fc60ba088afe9a55a92aef4c315012a\",\"data\":\"repellat\",\"email\":\"kuhlman.dino@crona.com\",\"page_number\":\"qui\",\"width\":\"dolorum\",\"height\":\"sequi\",\"x\":\"enim\",\"y\":\"dolorem\",\"created\":843824189}],\"attachments\":[{\"id\":\"2ba96c6f4356ba695cf26b9156afc40d789f8cc1\",\"user_id\":\"77fede1e39f59c104bc163097472d8e512407f61\",\"page_number\":\"hic\",\"width\":\"dolores\",\"height\":\"ducimus\",\"x\":\"error\",\"y\":\"deleniti\",\"line_height\":\"non\",\"created\":\"123771856\",\"original_attachment_name\":\"quasi.jpeg\",\"filename\":\"accusantium.jpeg\",\"file_type\":\"accusantium\",\"mime_type\":\"porro\",\"file_size\":\"quaerat\"}]}]}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/get_pending_document_group_invites_get.json b/tests/resources/wiremock/mappings/get_pending_document_group_invites_get.json new file mode 100644 index 00000000..48c2b05f --- /dev/null +++ b/tests/resources/wiremock/mappings/get_pending_document_group_invites_get.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "GET", + "urlPathPattern": "/documentgroup/[0-9a-z]{40}/groupinvite/[0-9a-z]{40}/pendinginvites" + }, + "response": { + "status": 200, + "body": "{\"invites\":[{\"link\":\"http:\\/\\/jakubowski.com\\/magni-vero-enim-ut-dolores-ut-dignissimos.html\",\"document_name\":\"facere sed\",\"inviter_email\":\"kovacek.carroll@yahoo.com\",\"action\":\"molestias\",\"status\":\"occaecati\"}],\"document_group_name\":\"quo\",\"sign_as_merged\":false}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/get_routing_details_get.json b/tests/resources/wiremock/mappings/get_routing_details_get.json new file mode 100644 index 00000000..a6df9d73 --- /dev/null +++ b/tests/resources/wiremock/mappings/get_routing_details_get.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "GET", + "urlPathPattern": "/document/[0-9a-z]{40}/template/routing/detail" + }, + "response": { + "status": 200, + "body": "{\"routing_details\":[{\"name\":\"culpa\",\"role_id\":\"eb216aa0bdf5ffac277305c4e8d0006b6e444166\",\"default_email\":\"orrin39@marks.biz\",\"inviter_role\":false,\"signing_order\":60061,\"decline_by_signature\":false,\"delivery_type\":\"commodi\"}],\"cc\":[\"easter.moore@yahoo.com\"],\"cc_step\":[{\"email\":\"schmeler.lavern@pagac.com\",\"name\":\"quia\",\"step\":98078}],\"viewers\":[{\"default_email\":\"gunner.stamm@casper.com\",\"name\":\"repellat\",\"signing_order\":66761}],\"approvers\":[{\"default_email\":\"kuvalis.rhett@reynolds.com\",\"name\":\"modi\",\"signing_order\":13980}],\"attributes\":{\"brand_id\":\"autem\",\"redirect_uri\":\"https:\\/\\/www.becker.com\\/laboriosam-voluptatem-amet-quod-sit-quos\",\"on_complete\":\"quo\"}}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/get_user_info_get.json b/tests/resources/wiremock/mappings/get_user_info_get.json new file mode 100644 index 00000000..b4599bd5 --- /dev/null +++ b/tests/resources/wiremock/mappings/get_user_info_get.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "GET", + "url": "/user" + }, + "response": { + "status": 200, + "body": "{\"id\":\"53bddc552dfb459cbde25d7283aead9538fa1981\",\"first_name\":\"ea\",\"last_name\":\"doloribus\",\"active\":\"1\",\"verified\":\"1\",\"type\":70659,\"pro\":53624,\"created\":\"651600105\",\"emails\":[\"stamm.barney@gmail.com\"],\"primary_email\":\"kathryn.dare@gmail.com\",\"subscriptions\":[{\"id\":\"cbbfd58b43ec88e2a8690a2a8e4a8ce4e4835a8b\",\"subscription_id\":\"4c4fc6ba558efb943286d52caee6c3de31174336\",\"name\":\"sint\",\"expired\":363737590,\"created\":501316462,\"updated\":72831233,\"plan\":\"iste\",\"mobile_plan_type\":\"earum\",\"credit_card\":false,\"trial\":true,\"term\":54769,\"seat_admin_email\":\"myron89@yahoo.com\",\"plan_version\":30437,\"is_usage_based\":true,\"is_usage_based_seat_free\":false,\"gateway_subscription\":{\"gateway\":\"consequuntur\",\"auto_renew\":true}}],\"credits\":63373,\"has_atticus_access\":false,\"is_logged_in\":true,\"billing_period\":{\"start_date\":\"05\\/10\\/2024\",\"end_date\":\"05\\/05\\/2006\",\"start_timestamp\":1267205585,\"end_timestamp\":652486320},\"premium_access\":{\"error\":true,\"user\":{\"username\":\"odell.schultz\",\"email\":\"lucius94@hotmail.com\",\"first_name\":\"ullam\",\"last_name\":\"nam\",\"added_date\":41247,\"status\":\"aut\",\"admin\":\"corrupti\"},\"active\":true,\"subscription\":{\"serial_number\":\"repellat\",\"name\":\"cum\",\"term\":26995,\"seats\":64795,\"used_seats\":17526,\"expired_at\":21209,\"created_at\":40948,\"updated_at\":30213,\"key\":\"animi\",\"version\":\"quaerat\",\"plan\":{\"id\":95962,\"plan_id\":\"9a8f4af98a7180583a928f8bc64fc3f3051e63f1\",\"name\":\"nisi\",\"price\":\"nisi\",\"billing_cycle\":88316,\"active\":true,\"groups\":[\"tempore\"],\"level\":\"perspiciatis\",\"type\":\"autem\",\"api_requests\":65717,\"unit_price\":88491,\"is_trial\":true,\"is_marketplace\":false},\"admin_email\":\"paucek.marta@hahn.com\",\"status\":\"aspernatur\",\"marketplace\":{\"name\":\"libero\"},\"gateway_subscription\":{\"gateway\":\"at\",\"auto_renew\":false}},\"plan\":\"vitae\",\"business\":true,\"trial\":true,\"credit_card\":false,\"api\":{\"key\":\"d60bc5c7eb7687df7213196ce54b5f59cc047220\",\"created_at\":1440619444,\"expired_at\":1211768728,\"level\":\"alias\"}},\"companies\":[{\"name\":\"ut\",\"full_access\":true}],\"document_count\":22837,\"monthly_document_count\":79558,\"lifetime_document_count\":1159134066,\"teams\":[{\"id\":\"f7cce07690d37f1d9a595b37955ed12981963be2\",\"team\":\"quo\",\"type\":\"esse\",\"created_since\":\"608874684\",\"role\":\"sit\",\"document_count\":69481,\"workspace_id\":\"18acabd1f8c482e74bb50ed0812e5c586f717291\",\"admins\":[{\"id\":\"4334af62dff9bec19ca3e759c85df6da9d87b21d\",\"is_secondary\":\"illo\",\"email\":\"fwunsch@gmail.com\",\"billing\":27713,\"document_access\":50182,\"primary\":true}]}],\"googleapps\":false,\"facebookapps\":true,\"microsoftapps\":true,\"status\":{\"bad_copy_token\":false,\"has_copy_token\":false,\"has_cloud_export_token\":true,\"bad_cloud_export_token\":true,\"has_salesforce_token\":true},\"settings\":{\"no_document_attachment\":true,\"copy_export\":false,\"no_document_file_attachments\":false,\"no_user_signature_return\":false,\"mobileweb_option\":false,\"require_drawn_signatures\":true,\"org_allowed_team_admins\":false,\"cloud_auto_export\":false,\"digitally_sign_dowloaded_docs\":false,\"invite_completion_redirect_url\":true,\"invite_decline_redirect_url\":true,\"add_signature_stamp\":true,\"pending_invite_document_view_notification\":false,\"signing_link_document_download\":true,\"required_preset_signature_name\":true,\"cloud_export_with_history\":false,\"emailed_docs_include_history\":true,\"document_completion_retention_days\":true,\"enable_hyperlink_protection\":true,\"enable_advanced_threat_protection\":true,\"require_login_for_signing\":true,\"logout_on_signing\":false,\"audit_trail_completion_retention_days\":true,\"front_end_session_length\":true,\"email_admin_on_banned_login\":false,\"add_signature_stamp_with_name\":false,\"cfr_title_21_part_11\":false,\"unsuccessful_logout_attempts_allowed\":true,\"require_authentication_for_invites\":true,\"electronic_consent_required\":false,\"electronic_consent_text\":true,\"document_guide\":true,\"watermark_downloaded_document\":true,\"restrict_download\":false,\"disable_email_notifications\":false,\"upload_limit\":true,\"document_schema_extended\":true,\"invite_update_notifications_for_all_invites_at_invite_create\":true,\"enable_full_story_tracker\":false,\"document_attachment_only_for_signer\":false,\"sso-only-login\":false,\"block_export_options_when_credit_card_validation_is_used\":false,\"only_administrator_is_able_to_invite_to_the_team\":false,\"block_login_via_social_networks\":true,\"redirect_to_registration_when_fields_saved\":false,\"common_experiments\":true,\"hide_decline_to_sign_option_in_signing_session\":false,\"hide_upgrade_subscription_button\":false,\"do_no_consent_redirect_url\":true,\"lock_signing_date_by_default\":false,\"allow_download_certificate\":false,\"have_merged_document_group_option\":false,\"enable_eu_date_format\":true,\"guide_signers_only_through_required_fields\":false,\"allow_document_copying_to_other_accounts\":false,\"email_custom_subject\":false,\"email_custom_message\":false,\"invite_expiration_days\":false,\"enable_mfa\":true,\"enable_document_download_link_for_invite_completion_mails\":false,\"allow_big_attachment_file\":true,\"allow_big_count_of_attachment_fields_per_document\":false,\"enable_hyperlink_field\":true,\"disable_download_action_in_editor\":false,\"signature_stamp_position\":false,\"enable_pki\":true,\"enable_document_comments\":true,\"cc_completion_email_contain_only_downloading_document_link\":true,\"save_signer_signature_and_initials\":true,\"auto_apply_signatures_and_initials_to_document_fields\":true,\"block_organization_selfleave_by_member\":false,\"receive_signer_email_after_sent_field_invite_to_yourself\":true,\"date_format\":true,\"completed_document_name_formula\":true,\"agreement_to_test_new_functionality_in_organization\":true,\"agree_to_be_beta_tester\":false,\"default_field_invite_remind_before\":false,\"default_field_invite_remind_after\":true,\"default_field_invite_remind_repeat\":true,\"default_field_invite_expiration_time\":1719247852,\"email_logo_position\":true,\"email_btn_bkgd_color\":false,\"email_btn_text_color\":true,\"allow_edit_document_after_signing\":true,\"allow_embedded_extended_token_expiration\":true,\"every_signature_and_initials_field_requires_user_authentication\":false,\"enable_render_pages_in_editor_as_images\":true,\"enable_team_admin_move_docs\":false,\"disable_email_recipients\":true,\"allow_team_admin_rename_docs\":false,\"email_footer_enabled\":true,\"parse_only_signature_fields\":true,\"flatten_before_aspose\":false,\"run_experiments\":false,\"disable_form_search\":true,\"allow_team_admin_create_csv_report_for_shared_template\":true,\"enable_team_generic_email\":false,\"use_team_generic_data\":false,\"signing_reason\":false,\"allow_qes\":true,\"enable_qes\":false,\"advanced_signing_flow\":true,\"document_prefill_disable_fields_existing_validation\":false,\"disable_problem_invite_email_notifications\":false,\"default_workspace_assigned\":true,\"workspace_organization\":false,\"default_workspace\":true,\"workspace_subscription_admin\":true},\"organization_settings\":[{\"setting\":\"provident\",\"value\":\"explicabo\"}],\"issue_notifications\":[{\"title\":\"aliquid\",\"description\":\"dolorem\"}],\"merchant_accounts\":[{\"id\":\"08581f59938159b6e270376409fff67e209e3c99\",\"scope\":\"voluptates\",\"merchant_type\":\"iusto\",\"merchant_account_name\":\"quia\",\"currencies\":[\"quo\"],\"currency\":\"VUV\",\"currency_name\":\"totam\"}]}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/get_user_initials_get.json b/tests/resources/wiremock/mappings/get_user_initials_get.json new file mode 100644 index 00000000..4d08112d --- /dev/null +++ b/tests/resources/wiremock/mappings/get_user_initials_get.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "GET", + "url": "/user/initial" + }, + "response": { + "status": 200, + "body": "{\"unique_id\":\"ba7b8649b4387e5538dcaceb3f4001e3b467f2b5\",\"width\":\"77177\",\"height\":\"21925\",\"data\":\"iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAABHNCSVQICAgIfAhkiAAAABl0RVh0U29mdHdhcmUAZ25vbWUtc2NyZWVuc2hvdO8Dvz4AAAApSURBVAiZVcvBCQAgEMTAObH\\/itX1IYgG8ksqc8RDA9WO6CDrFpXkWzZ2uwn\\/AFD5ZAAAAABJRU5ErkJggg==\",\"created\":\"254071286\"}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/invite_to_sign_document_group_post.json b/tests/resources/wiremock/mappings/invite_to_sign_document_group_post.json new file mode 100644 index 00000000..a393bc92 --- /dev/null +++ b/tests/resources/wiremock/mappings/invite_to_sign_document_group_post.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "POST", + "urlPathPattern": "/documentgroup/[0-9a-z]{40}/groupinvite" + }, + "response": { + "status": 200, + "body": "{\"id\":\"7db86fcd838e5983526e3093212c9f7251f447fc\"}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/merge_documents_post.json b/tests/resources/wiremock/mappings/merge_documents_post.json new file mode 100644 index 00000000..b6b3b545 --- /dev/null +++ b/tests/resources/wiremock/mappings/merge_documents_post.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "POST", + "url": "/document/merge" + }, + "response": { + "status": 200, + "body": "{}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/move_document_post.json b/tests/resources/wiremock/mappings/move_document_post.json new file mode 100644 index 00000000..3a7b54c3 --- /dev/null +++ b/tests/resources/wiremock/mappings/move_document_post.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "POST", + "urlPathPattern": "/document/[0-9a-z]{40}/move" + }, + "response": { + "status": 200, + "body": "{\"result\":\"itaque\"}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/prefill_smart_fields_post.json b/tests/resources/wiremock/mappings/prefill_smart_fields_post.json new file mode 100644 index 00000000..a17f3ca5 --- /dev/null +++ b/tests/resources/wiremock/mappings/prefill_smart_fields_post.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "POST", + "urlPathPattern": "/document/[0-9a-z]{40}/integration/object/smartfields" + }, + "response": { + "status": 200, + "body": "{\"status\":\"est\"}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/prefill_text_fields_put.json b/tests/resources/wiremock/mappings/prefill_text_fields_put.json new file mode 100644 index 00000000..73393fd4 --- /dev/null +++ b/tests/resources/wiremock/mappings/prefill_text_fields_put.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "PUT", + "urlPathPattern": "/v2/documents/[0-9a-z]{40}/prefill-texts" + }, + "response": { + "status": 200, + "body": "{}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/reassign_signer_for_document_group_invite_post.json b/tests/resources/wiremock/mappings/reassign_signer_for_document_group_invite_post.json new file mode 100644 index 00000000..560bc39d --- /dev/null +++ b/tests/resources/wiremock/mappings/reassign_signer_for_document_group_invite_post.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "POST", + "urlPathPattern": "/documentgroup/[0-9a-z]{40}/groupinvite/[0-9a-z]{40}/invitestep/[0-9a-z]{40}/update" + }, + "response": { + "status": 200, + "body": "{\"status\":\"success\"}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/refresh_access_token_post.json b/tests/resources/wiremock/mappings/refresh_access_token_post.json new file mode 100644 index 00000000..f6144127 --- /dev/null +++ b/tests/resources/wiremock/mappings/refresh_access_token_post.json @@ -0,0 +1,14 @@ +{ + "request": { + "method": "POST", + "url": "/oauth2/token", + "bodyPatterns": [{"matches": "(.*)refresh_token=(.*)"}] + }, + "response": { + "status": 200, + "body": "{\"expires_in\":1489230235,\"token_type\":\"bearer\",\"access_token\":\"170393c3ea4ebf3769ef3b87de0f9d6f1e1772177a4ed64b0841d2a8df869c62\",\"refresh_token\":\"0bedcb556b757cd2a273e08db0f2f4f1f75e9b2e12b4471c1c9ad17ad1cd94e6\",\"scope\":\"*\",\"last_login\":793660579}", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + } + } +} diff --git a/tests/resources/wiremock/mappings/resend_document_group_invite_post.json b/tests/resources/wiremock/mappings/resend_document_group_invite_post.json new file mode 100644 index 00000000..e2216675 --- /dev/null +++ b/tests/resources/wiremock/mappings/resend_document_group_invite_post.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "POST", + "urlPathPattern": "/documentgroup/[0-9a-z]{40}/groupinvite/[0-9a-z]{40}/resendinvites" + }, + "response": { + "status": 200, + "body": "{\"status\":\"success\"}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/reset_password_post.json b/tests/resources/wiremock/mappings/reset_password_post.json new file mode 100644 index 00000000..d222cfce --- /dev/null +++ b/tests/resources/wiremock/mappings/reset_password_post.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "POST", + "url": "/user/forgotpassword" + }, + "response": { + "status": 200, + "body": "{\"status\":\"success\"}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/send_field_invite_post.json b/tests/resources/wiremock/mappings/send_field_invite_post.json new file mode 100644 index 00000000..e7be117b --- /dev/null +++ b/tests/resources/wiremock/mappings/send_field_invite_post.json @@ -0,0 +1,14 @@ +{ + "request": { + "method": "POST", + "urlPathPattern": "/document/[0-9a-z]{40}/invite", + "bodyPatterns": [{"matchesJsonPath": "$.to[?(@.email)]"}] + }, + "response": { + "status": 200, + "body": "{\"status\":\"success\"}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/status.json b/tests/resources/wiremock/mappings/status.json new file mode 100644 index 00000000..91d2a484 --- /dev/null +++ b/tests/resources/wiremock/mappings/status.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "GET", + "url": "/status" + }, + "response": { + "status": 200, + "body": "{\"server\":\"signNow API mock server\",\"based\":\"WireMock v3.9.1\"}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/update_document_group_template_put.json b/tests/resources/wiremock/mappings/update_document_group_template_put.json new file mode 100644 index 00000000..fb916657 --- /dev/null +++ b/tests/resources/wiremock/mappings/update_document_group_template_put.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "PUT", + "urlPathPattern": "/documentgroup/template/[0-9a-z]{40}" + }, + "response": { + "status": 200, + "body": "{}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/update_document_put.json b/tests/resources/wiremock/mappings/update_document_put.json new file mode 100644 index 00000000..626a51b4 --- /dev/null +++ b/tests/resources/wiremock/mappings/update_document_put.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "PUT", + "urlPathPattern": "/document/[0-9a-z]{40}" + }, + "response": { + "status": 200, + "body": "{\"id\":\"f29dc255ecaac21406925a55f6f5c2fd8d09af88\"}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/update_event_subscription_put.json b/tests/resources/wiremock/mappings/update_event_subscription_put.json new file mode 100644 index 00000000..c3af82d2 --- /dev/null +++ b/tests/resources/wiremock/mappings/update_event_subscription_put.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "PUT", + "urlPathPattern": "/api/v2/events/[0-9a-z]{40}" + }, + "response": { + "status": 200, + "body": "{}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/update_event_subscriptions_subscription_v2_put.json b/tests/resources/wiremock/mappings/update_event_subscriptions_subscription_v2_put.json new file mode 100644 index 00000000..e96ee359 --- /dev/null +++ b/tests/resources/wiremock/mappings/update_event_subscriptions_subscription_v2_put.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "PUT", + "urlPathPattern": "/v2/event-subscriptions/[0-9a-z]{40}" + }, + "response": { + "status": 200, + "body": "{}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/update_routing_details_put.json b/tests/resources/wiremock/mappings/update_routing_details_put.json new file mode 100644 index 00000000..090f6204 --- /dev/null +++ b/tests/resources/wiremock/mappings/update_routing_details_put.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "PUT", + "urlPathPattern": "/document/[0-9a-z]{40}/template/routing/detail" + }, + "response": { + "status": 200, + "body": "{\"id\":\"0df6cbb6db21eccc3e877484309e21c8565f5d38\",\"document_id\":\"06c205dda08cfa585315e33e4da8abea3ce4aaa5\",\"data\":{\"name\":\"possimus\",\"role_id\":\"bd52ce73acee4cb6d8f83cddb1c29c8598dcc325\",\"signing_order\":79415},\"cc\":[\"tina.braun@gmail.com\"],\"cc_step\":[{\"email\":\"andreanne74@will.com\",\"name\":\"ex\",\"step\":35059}],\"viewers\":[{\"default_email\":\"smiller@yahoo.com\",\"name\":\"illum\",\"signing_order\":88622}],\"approvers\":[{\"default_email\":\"kassulke.eula@yahoo.com\",\"name\":\"maxime\",\"signing_order\":81167}],\"invite_link_instructions\":[\"aut\"]}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/update_user_initials_put.json b/tests/resources/wiremock/mappings/update_user_initials_put.json new file mode 100644 index 00000000..e1e321e4 --- /dev/null +++ b/tests/resources/wiremock/mappings/update_user_initials_put.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "PUT", + "url": "/user/initial" + }, + "response": { + "status": 200, + "body": "{\"id\":\"03629d93ddf8c3cd22b219c0b80e8147db58d938\",\"width\":\"33118\",\"height\":\"23324\",\"created\":\"795835049\"}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/update_user_put.json b/tests/resources/wiremock/mappings/update_user_put.json new file mode 100644 index 00000000..f470bc21 --- /dev/null +++ b/tests/resources/wiremock/mappings/update_user_put.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "PUT", + "url": "/user" + }, + "response": { + "status": 200, + "body": "{\"id\":\"d74103ef85c2d42daa377b04113492bb2d46b85e\",\"first_name\":\"minus\",\"last_name\":\"debitis\"}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/upload_document_post.json b/tests/resources/wiremock/mappings/upload_document_post.json new file mode 100644 index 00000000..15861fd2 --- /dev/null +++ b/tests/resources/wiremock/mappings/upload_document_post.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "POST", + "url": "/document" + }, + "response": { + "status": 200, + "body": "{\"id\":\"f7a05b0f82152552840b0c4a4544f69233b1f427\"}", + "headers": { + "Content-Type": "multipart/form-data" + } + } +} diff --git a/tests/resources/wiremock/mappings/upload_document_with_tags_extract_post.json b/tests/resources/wiremock/mappings/upload_document_with_tags_extract_post.json new file mode 100644 index 00000000..ce92f562 --- /dev/null +++ b/tests/resources/wiremock/mappings/upload_document_with_tags_extract_post.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "POST", + "url": "/document/fieldextract" + }, + "response": { + "status": 200, + "body": "{\"id\":\"81ed436fd4b0761f510371935e64280369610f4c\"}", + "headers": { + "Content-Type": "multipart/form-data" + } + } +} diff --git a/tests/resources/wiremock/mappings/user_email_verify_put.json b/tests/resources/wiremock/mappings/user_email_verify_put.json new file mode 100644 index 00000000..67d3d885 --- /dev/null +++ b/tests/resources/wiremock/mappings/user_email_verify_put.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "PUT", + "url": "/user/email/verify" + }, + "response": { + "status": 200, + "body": "{}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tests/resources/wiremock/mappings/verify_access_token_get.json b/tests/resources/wiremock/mappings/verify_access_token_get.json new file mode 100644 index 00000000..2e5c52a9 --- /dev/null +++ b/tests/resources/wiremock/mappings/verify_access_token_get.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "GET", + "url": "/oauth2/token" + }, + "response": { + "status": 200, + "body": "{\"access_token\":\"320d88e4ca62bfaef22f1e78b20339ba9a858b44e64b75dcd33a076972c5403b\",\"scope\":\"*\",\"expires_in\":\"1096626775\",\"token_type\":\"bearer\"}", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/tools/update-readme.js b/tools/update-readme.js deleted file mode 100755 index 1aee51ba..00000000 --- a/tools/update-readme.js +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env node -'use strict'; - -const fs = require('fs'); -const { version } = require('../package.json'); -const readme = './README.md'; - -fs.readFile(readme, 'utf8', (err, data) => { - if (err) { - console.log(err); - return; - } else { - const result = data.replace(/v[.\d]{5}/, `v${version}`); - - fs.writeFile(readme, result, 'utf8', writeErr => { - if (writeErr) { - console.log(err); - return; - } - }); - } -}); diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 00000000..2978aec3 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,33 @@ +{ + "compilerOptions": { + "strict": true, + + "skipLibCheck": true, + "module": "ES2022", + "moduleResolution": "node", + "target": "ES2022", + "isolatedModules": true, + "esModuleInterop": true, + "noEmit": true, + "outDir": "./dist", + + "forceConsistentCasingInFileNames": true, + "declaration": true, + "resolveJsonModule": true, + "noImplicitAny": true, + + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + + "removeComments": true, + "sourceMap": true, + "noLib": false, + }, + "exclude": [ + "dist", + "node_modules" + ], + "include": ["**/*.ts"], +} \ No newline at end of file diff --git a/utils/index.js b/utils/index.js deleted file mode 100644 index 3e92ef69..00000000 --- a/utils/index.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; - -const promisify = clientMethod => payload => new Promise((resolve, reject) => { - clientMethod(payload, (err, res) => { - if (err) { - reject(err); - } else { - resolve(res); - } - }); -}); - -module.exports = { promisify };